@estevia/evafusion-agent 1.7.0 → 1.7.1

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.
Files changed (3) hide show
  1. package/dist/index.js +14 -14
  2. package/dist/index.mjs +354 -352
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import u, { forwardRef as er, isValidElement as wt, useContext as Gt, useState as Ae, useMemo as It, useCallback as ct, useEffect as Ie, useRef as St } from "react";
2
- import { motion as Ge, AnimatePresence as Dt } from "framer-motion";
1
+ import f, { forwardRef as er, isValidElement as wt, useContext as Gt, useState as Ae, useMemo as It, useCallback as ct, useEffect as Ie, useRef as St } from "react";
2
+ import { motion as Ge, AnimatePresence as Pt } from "framer-motion";
3
3
  import tr from "react-dom";
4
4
  import { EvaFusionClient as rr } from "@estevia/evafusion-sdk";
5
5
  import { Layout as ar, Users as nr, Check as or, Copy as ir, Trash2 as sr, Settings2 as Ar, Minimize2 as lr, X as Et, AlertCircle as cr, Cpu as yt, Database as dr, Shield as ur, SendHorizontal as fr, Sparkles as pr } from "lucide-react";
6
- var Pt = { exports: {} }, $e = {};
6
+ var Dt = { exports: {} }, $e = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -17,15 +17,15 @@ var jt;
17
17
  function gr() {
18
18
  if (jt) return $e;
19
19
  jt = 1;
20
- var e = u, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function d(A, f, p) {
22
- var v, b = {}, T = null, o = null;
23
- p !== void 0 && (T = "" + p), f.key !== void 0 && (T = "" + f.key), f.ref !== void 0 && (o = f.ref);
24
- for (v in f) i.call(f, v) && !c.hasOwnProperty(v) && (b[v] = f[v]);
25
- if (A && A.defaultProps) for (v in f = A.defaultProps, f) b[v] === void 0 && (b[v] = f[v]);
26
- return { $$typeof: a, type: A, key: T, ref: o, props: b, _owner: s.current };
20
+ var e = f, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, A = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function u(s, d, p) {
22
+ var v, b = {}, M = null, o = null;
23
+ p !== void 0 && (M = "" + p), d.key !== void 0 && (M = "" + d.key), d.ref !== void 0 && (o = d.ref);
24
+ for (v in d) i.call(d, v) && !c.hasOwnProperty(v) && (b[v] = d[v]);
25
+ if (s && s.defaultProps) for (v in d = s.defaultProps, d) b[v] === void 0 && (b[v] = d[v]);
26
+ return { $$typeof: a, type: s, key: M, ref: o, props: b, _owner: A.current };
27
27
  }
28
- return $e.Fragment = n, $e.jsx = d, $e.jsxs = d, $e;
28
+ return $e.Fragment = n, $e.jsx = u, $e.jsxs = u, $e;
29
29
  }
30
30
  var et = {};
31
31
  /**
@@ -40,15 +40,15 @@ var et = {};
40
40
  var zt;
41
41
  function mr() {
42
42
  return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
43
- var e = u, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), A = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), Q = Symbol.iterator, w = "@@iterator";
44
- function M(t) {
43
+ var e = f, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), Q = Symbol.iterator, w = "@@iterator";
44
+ function T(t) {
45
45
  if (t === null || typeof t != "object")
46
46
  return null;
47
47
  var l = Q && t[Q] || t[w];
48
48
  return typeof l == "function" ? l : null;
49
49
  }
50
50
  var X = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function D(t) {
51
+ function P(t) {
52
52
  {
53
53
  for (var l = arguments.length, m = new Array(l > 1 ? l - 1 : 0), x = 1; x < l; x++)
54
54
  m[x - 1] = arguments[x];
@@ -65,10 +65,10 @@ function mr() {
65
65
  F.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, F);
66
66
  }
67
67
  }
68
- var R = !1, k = !1, P = !1, Y = !1, ne = !1, W;
68
+ var R = !1, k = !1, D = !1, Y = !1, ne = !1, W;
69
69
  W = Symbol.for("react.module.reference");
70
70
  function oe(t) {
71
- return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || ne || t === s || t === p || t === v || Y || t === o || R || k || P || typeof t == "object" && t !== null && (t.$$typeof === T || t.$$typeof === b || t.$$typeof === d || t.$$typeof === A || t.$$typeof === f || // This needs to include all possible module reference object
71
+ return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || ne || t === A || t === p || t === v || Y || t === o || R || k || D || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === b || t.$$typeof === u || t.$$typeof === s || t.$$typeof === d || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
@@ -87,7 +87,7 @@ function mr() {
87
87
  function re(t) {
88
88
  if (t == null)
89
89
  return null;
90
- if (typeof t.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
90
+ if (typeof t.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
91
91
  return t.displayName || t.name || null;
92
92
  if (typeof t == "string")
93
93
  return t;
@@ -98,7 +98,7 @@ function mr() {
98
98
  return "Portal";
99
99
  case c:
100
100
  return "Profiler";
101
- case s:
101
+ case A:
102
102
  return "StrictMode";
103
103
  case p:
104
104
  return "Suspense";
@@ -107,18 +107,18 @@ function mr() {
107
107
  }
108
108
  if (typeof t == "object")
109
109
  switch (t.$$typeof) {
110
- case A:
110
+ case s:
111
111
  var l = t;
112
112
  return h(l) + ".Consumer";
113
- case d:
113
+ case u:
114
114
  var m = t;
115
115
  return h(m._context) + ".Provider";
116
- case f:
116
+ case d:
117
117
  return te(t, t.render, "ForwardRef");
118
118
  case b:
119
119
  var x = t.displayName || null;
120
120
  return x !== null ? x : re(t.type) || "Memo";
121
- case T: {
121
+ case M: {
122
122
  var I = t, F = I._payload, z = I._init;
123
123
  try {
124
124
  return re(z(F));
@@ -188,11 +188,11 @@ function mr() {
188
188
  })
189
189
  });
190
190
  }
191
- g < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ g < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
194
  var _ = X.ReactCurrentDispatcher, L;
195
- function Te(t, l, m) {
195
+ function Me(t, l, m) {
196
196
  {
197
197
  if (L === void 0)
198
198
  try {
@@ -278,7 +278,7 @@ function mr() {
278
278
  } finally {
279
279
  xe = !1, _.current = F, K(), Error.prepareStackTrace = I;
280
280
  }
281
- var Fe = t ? t.displayName || t.name : "", Le = Fe ? Te(Fe) : "";
281
+ var Fe = t ? t.displayName || t.name : "", Le = Fe ? Me(Fe) : "";
282
282
  return typeof t == "function" && Ce.set(t, Le), Le;
283
283
  }
284
284
  function at(t, l, m) {
@@ -294,20 +294,20 @@ function mr() {
294
294
  if (typeof t == "function")
295
295
  return Se(t, ft(t));
296
296
  if (typeof t == "string")
297
- return Te(t);
297
+ return Me(t);
298
298
  switch (t) {
299
299
  case p:
300
- return Te("Suspense");
300
+ return Me("Suspense");
301
301
  case v:
302
- return Te("SuspenseList");
302
+ return Me("SuspenseList");
303
303
  }
304
304
  if (typeof t == "object")
305
305
  switch (t.$$typeof) {
306
- case f:
306
+ case d:
307
307
  return at(t.render);
308
308
  case b:
309
309
  return Qe(t.type, l, m);
310
- case T: {
310
+ case M: {
311
311
  var x = t, I = x._payload, F = x._init;
312
312
  try {
313
313
  return Qe(F(I), l, m);
@@ -317,7 +317,7 @@ function mr() {
317
317
  }
318
318
  return "";
319
319
  }
320
- var Me = Object.prototype.hasOwnProperty, nt = {}, Ye = X.ReactDebugCurrentFrame;
320
+ var Te = Object.prototype.hasOwnProperty, nt = {}, Ye = X.ReactDebugCurrentFrame;
321
321
  function Ve(t) {
322
322
  if (t) {
323
323
  var l = t._owner, m = Qe(t.type, t._source, l ? l.type : null);
@@ -327,7 +327,7 @@ function mr() {
327
327
  }
328
328
  function ot(t, l, m, x, I) {
329
329
  {
330
- var F = Function.call.bind(Me);
330
+ var F = Function.call.bind(Te);
331
331
  for (var z in t)
332
332
  if (F(t, z)) {
333
333
  var j = void 0;
@@ -340,7 +340,7 @@ function mr() {
340
340
  } catch ($) {
341
341
  j = $;
342
342
  }
343
- j && !(j instanceof Error) && (Ve(I), D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", m, z, typeof j), Ve(null)), j instanceof Error && !(j.message in nt) && (nt[j.message] = !0, Ve(I), D("Failed %s type: %s", m, j.message), Ve(null));
343
+ j && !(j instanceof Error) && (Ve(I), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", m, z, typeof j), Ve(null)), j instanceof Error && !(j.message in nt) && (nt[j.message] = !0, Ve(I), P("Failed %s type: %s", m, j.message), Ve(null));
344
344
  }
345
345
  }
346
346
  }
@@ -366,16 +366,16 @@ function mr() {
366
366
  }
367
367
  function ie(t) {
368
368
  if (pt(t))
369
- return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(t)), it(t);
369
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(t)), it(t);
370
370
  }
371
- var De = X.ReactCurrentOwner, gt = {
371
+ var Pe = X.ReactCurrentOwner, gt = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
376
  }, st, ke;
377
377
  function mt(t) {
378
- if (Me.call(t, "ref")) {
378
+ if (Te.call(t, "ref")) {
379
379
  var l = Object.getOwnPropertyDescriptor(t, "ref").get;
380
380
  if (l && l.isReactWarning)
381
381
  return !1;
@@ -383,7 +383,7 @@ function mr() {
383
383
  return t.ref !== void 0;
384
384
  }
385
385
  function At(t) {
386
- if (Me.call(t, "key")) {
386
+ if (Te.call(t, "key")) {
387
387
  var l = Object.getOwnPropertyDescriptor(t, "key").get;
388
388
  if (l && l.isReactWarning)
389
389
  return !1;
@@ -391,12 +391,12 @@ function mr() {
391
391
  return t.key !== void 0;
392
392
  }
393
393
  function Ze(t, l) {
394
- typeof t.ref == "string" && De.current;
394
+ typeof t.ref == "string" && Pe.current;
395
395
  }
396
396
  function Oe(t, l) {
397
397
  {
398
398
  var m = function() {
399
- st || (st = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
399
+ st || (st = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
400
400
  };
401
401
  m.isReactWarning = !0, Object.defineProperty(t, "key", {
402
402
  get: m,
@@ -407,7 +407,7 @@ function mr() {
407
407
  function lt(t, l) {
408
408
  {
409
409
  var m = function() {
410
- ke || (ke = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
410
+ ke || (ke = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
411
411
  };
412
412
  m.isReactWarning = !0, Object.defineProperty(t, "ref", {
413
413
  get: m,
@@ -449,7 +449,7 @@ function mr() {
449
449
  var F, z = {}, j = null, se = null;
450
450
  m !== void 0 && (ie(m), j = "" + m), At(l) && (ie(l.key), j = "" + l.key), mt(l) && (se = l.ref, Ze(l, I));
451
451
  for (F in l)
452
- Me.call(l, F) && !gt.hasOwnProperty(F) && (z[F] = l[F]);
452
+ Te.call(l, F) && !gt.hasOwnProperty(F) && (z[F] = l[F]);
453
453
  if (t && t.defaultProps) {
454
454
  var $ = t.defaultProps;
455
455
  for (F in $)
@@ -459,11 +459,11 @@ function mr() {
459
459
  var ae = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
460
460
  j && Oe(z, ae), se && lt(z, ae);
461
461
  }
462
- return Ee(t, j, se, I, x, De.current, z);
462
+ return Ee(t, j, se, I, x, Pe.current, z);
463
463
  }
464
464
  }
465
465
  var Je = X.ReactCurrentOwner, Ke = X.ReactDebugCurrentFrame;
466
- function Pe(t) {
466
+ function De(t) {
467
467
  if (t) {
468
468
  var l = t._owner, m = Qe(t.type, t._source, l ? l.type : null);
469
469
  Ke.setExtraStackFrame(m);
@@ -513,7 +513,7 @@ Check the top-level render call using <` + m + ">.");
513
513
  return;
514
514
  y[m] = !0;
515
515
  var x = "";
516
- t && t._owner && t._owner !== Je.current && (x = " It was passed a child from " + re(t._owner.type) + "."), Pe(t), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), Pe(null);
516
+ t && t._owner && t._owner !== Je.current && (x = " It was passed a child from " + re(t._owner.type) + "."), De(t), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), De(null);
517
517
  }
518
518
  }
519
519
  function le(t, l) {
@@ -528,7 +528,7 @@ Check the top-level render call using <` + m + ">.");
528
528
  else if (He(t))
529
529
  t._store && (t._store.validated = !0);
530
530
  else if (t) {
531
- var I = M(t);
531
+ var I = T(t);
532
532
  if (typeof I == "function" && I !== t.entries)
533
533
  for (var F = I.call(t), z; !(z = F.next()).done; )
534
534
  He(z.value) && U(z.value, l);
@@ -543,7 +543,7 @@ Check the top-level render call using <` + m + ">.");
543
543
  var m;
544
544
  if (typeof l == "function")
545
545
  m = l.propTypes;
546
- else if (typeof l == "object" && (l.$$typeof === f || // Note: Memo only checks outer props here.
546
+ else if (typeof l == "object" && (l.$$typeof === d || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
548
  l.$$typeof === b))
549
549
  m = l.propTypes;
@@ -555,9 +555,9 @@ Check the top-level render call using <` + m + ">.");
555
555
  } else if (l.PropTypes !== void 0 && !_e) {
556
556
  _e = !0;
557
557
  var I = re(l);
558
- D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
558
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
559
559
  }
560
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
563
  function be(t) {
@@ -565,11 +565,11 @@ Check the top-level render call using <` + m + ">.");
565
565
  for (var l = Object.keys(t.props), m = 0; m < l.length; m++) {
566
566
  var x = l[m];
567
567
  if (x !== "children" && x !== "key") {
568
- Pe(t), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Pe(null);
568
+ De(t), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), De(null);
569
569
  break;
570
570
  }
571
571
  }
572
- t.ref !== null && (Pe(t), D("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
572
+ t.ref !== null && (De(t), P("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
573
573
  }
574
574
  }
575
575
  var we = {};
@@ -582,7 +582,7 @@ Check the top-level render call using <` + m + ">.");
582
582
  var se = ht();
583
583
  se ? j += se : j += me();
584
584
  var $;
585
- t === null ? $ = "null" : Ue(t) ? $ = "array" : t !== void 0 && t.$$typeof === a ? ($ = "<" + (re(t.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, j);
585
+ t === null ? $ = "null" : Ue(t) ? $ = "array" : t !== void 0 && t.$$typeof === a ? ($ = "<" + (re(t.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, j);
586
586
  }
587
587
  var ae = vt(t, l, m, I, F);
588
588
  if (ae == null)
@@ -596,17 +596,17 @@ Check the top-level render call using <` + m + ">.");
596
596
  le(ge[Fe], t);
597
597
  Object.freeze && Object.freeze(ge);
598
598
  } else
599
- D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
600
  else
601
601
  le(ge, t);
602
602
  }
603
- if (Me.call(l, "key")) {
603
+ if (Te.call(l, "key")) {
604
604
  var Le = re(t), de = Object.keys(l).filter(function($t) {
605
605
  return $t !== "key";
606
606
  }), bt = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
607
607
  if (!we[Le + bt]) {
608
608
  var _t = de.length > 0 ? "{" + de.join(": ..., ") + ": ...}" : "{}";
609
- D(`A props object containing a "key" prop is being spread into JSX:
609
+ P(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
@@ -627,8 +627,8 @@ React keys must be passed directly to JSX without using spread:
627
627
  et.Fragment = i, et.jsx = Jt, et.jsxs = Kt;
628
628
  }()), et;
629
629
  }
630
- process.env.NODE_ENV === "production" ? Pt.exports = gr() : Pt.exports = mr();
631
- var r = Pt.exports, vr = (e) => {
630
+ process.env.NODE_ENV === "production" ? Dt.exports = gr() : Dt.exports = mr();
631
+ var r = Dt.exports, vr = (e) => {
632
632
  switch (e) {
633
633
  case "success":
634
634
  return wr;
@@ -641,15 +641,15 @@ var r = Pt.exports, vr = (e) => {
641
641
  default:
642
642
  return null;
643
643
  }
644
- }, hr = Array(12).fill(0), br = ({ visible: e, className: a }) => u.createElement("div", { className: ["sonner-loading-wrapper", a].filter(Boolean).join(" "), "data-visible": e }, u.createElement("div", { className: "sonner-spinner" }, hr.map((n, i) => u.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${i}` })))), wr = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, u.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), yr = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, u.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), xr = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, u.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), Cr = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, u.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Br = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, u.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), u.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), Dr = () => {
645
- let [e, a] = u.useState(document.hidden);
646
- return u.useEffect(() => {
644
+ }, hr = Array(12).fill(0), br = ({ visible: e, className: a }) => f.createElement("div", { className: ["sonner-loading-wrapper", a].filter(Boolean).join(" "), "data-visible": e }, f.createElement("div", { className: "sonner-spinner" }, hr.map((n, i) => f.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${i}` })))), wr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), yr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), xr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), Cr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Br = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, f.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), f.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), Pr = () => {
645
+ let [e, a] = f.useState(document.hidden);
646
+ return f.useEffect(() => {
647
647
  let n = () => {
648
648
  a(document.hidden);
649
649
  };
650
650
  return document.addEventListener("visibilitychange", n), () => window.removeEventListener("visibilitychange", n);
651
651
  }, []), e;
652
- }, Nt = 1, Pr = class {
652
+ }, Nt = 1, Dr = class {
653
653
  constructor() {
654
654
  this.subscribe = (e) => (this.subscribers.push(e), () => {
655
655
  let a = this.subscribers.indexOf(e);
@@ -660,45 +660,45 @@ var r = Pt.exports, vr = (e) => {
660
660
  this.publish(e), this.toasts = [...this.toasts, e];
661
661
  }, this.create = (e) => {
662
662
  var a;
663
- let { message: n, ...i } = e, s = typeof (e == null ? void 0 : e.id) == "number" || ((a = e.id) == null ? void 0 : a.length) > 0 ? e.id : Nt++, c = this.toasts.find((A) => A.id === s), d = e.dismissible === void 0 ? !0 : e.dismissible;
664
- return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), c ? this.toasts = this.toasts.map((A) => A.id === s ? (this.publish({ ...A, ...e, id: s, title: n }), { ...A, ...e, id: s, dismissible: d, title: n }) : A) : this.addToast({ title: n, ...i, dismissible: d, id: s }), s;
663
+ let { message: n, ...i } = e, A = typeof (e == null ? void 0 : e.id) == "number" || ((a = e.id) == null ? void 0 : a.length) > 0 ? e.id : Nt++, c = this.toasts.find((s) => s.id === A), u = e.dismissible === void 0 ? !0 : e.dismissible;
664
+ return this.dismissedToasts.has(A) && this.dismissedToasts.delete(A), c ? this.toasts = this.toasts.map((s) => s.id === A ? (this.publish({ ...s, ...e, id: A, title: n }), { ...s, ...e, id: A, dismissible: u, title: n }) : s) : this.addToast({ title: n, ...i, dismissible: u, id: A }), A;
665
665
  }, this.dismiss = (e) => (this.dismissedToasts.add(e), e || this.toasts.forEach((a) => {
666
666
  this.subscribers.forEach((n) => n({ id: a.id, dismiss: !0 }));
667
667
  }), this.subscribers.forEach((a) => a({ id: e, dismiss: !0 })), e), this.message = (e, a) => this.create({ ...a, message: e }), this.error = (e, a) => this.create({ ...a, message: e, type: "error" }), this.success = (e, a) => this.create({ ...a, type: "success", message: e }), this.info = (e, a) => this.create({ ...a, type: "info", message: e }), this.warning = (e, a) => this.create({ ...a, type: "warning", message: e }), this.loading = (e, a) => this.create({ ...a, type: "loading", message: e }), this.promise = (e, a) => {
668
668
  if (!a) return;
669
669
  let n;
670
670
  a.loading !== void 0 && (n = this.create({ ...a, promise: e, type: "loading", message: a.loading, description: typeof a.description != "function" ? a.description : void 0 }));
671
- let i = e instanceof Promise ? e : e(), s = n !== void 0, c, d = i.then(async (f) => {
672
- if (c = ["resolve", f], u.isValidElement(f)) s = !1, this.create({ id: n, type: "default", message: f });
673
- else if (Tr(f) && !f.ok) {
674
- s = !1;
675
- let p = typeof a.error == "function" ? await a.error(`HTTP error! status: ${f.status}`) : a.error, v = typeof a.description == "function" ? await a.description(`HTTP error! status: ${f.status}`) : a.description;
671
+ let i = e instanceof Promise ? e : e(), A = n !== void 0, c, u = i.then(async (d) => {
672
+ if (c = ["resolve", d], f.isValidElement(d)) A = !1, this.create({ id: n, type: "default", message: d });
673
+ else if (Mr(d) && !d.ok) {
674
+ A = !1;
675
+ let p = typeof a.error == "function" ? await a.error(`HTTP error! status: ${d.status}`) : a.error, v = typeof a.description == "function" ? await a.description(`HTTP error! status: ${d.status}`) : a.description;
676
676
  this.create({ id: n, type: "error", message: p, description: v });
677
677
  } else if (a.success !== void 0) {
678
- s = !1;
679
- let p = typeof a.success == "function" ? await a.success(f) : a.success, v = typeof a.description == "function" ? await a.description(f) : a.description;
678
+ A = !1;
679
+ let p = typeof a.success == "function" ? await a.success(d) : a.success, v = typeof a.description == "function" ? await a.description(d) : a.description;
680
680
  this.create({ id: n, type: "success", message: p, description: v });
681
681
  }
682
- }).catch(async (f) => {
683
- if (c = ["reject", f], a.error !== void 0) {
684
- s = !1;
685
- let p = typeof a.error == "function" ? await a.error(f) : a.error, v = typeof a.description == "function" ? await a.description(f) : a.description;
682
+ }).catch(async (d) => {
683
+ if (c = ["reject", d], a.error !== void 0) {
684
+ A = !1;
685
+ let p = typeof a.error == "function" ? await a.error(d) : a.error, v = typeof a.description == "function" ? await a.description(d) : a.description;
686
686
  this.create({ id: n, type: "error", message: p, description: v });
687
687
  }
688
688
  }).finally(() => {
689
- var f;
690
- s && (this.dismiss(n), n = void 0), (f = a.finally) == null || f.call(a);
691
- }), A = () => new Promise((f, p) => d.then(() => c[0] === "reject" ? p(c[1]) : f(c[1])).catch(p));
692
- return typeof n != "string" && typeof n != "number" ? { unwrap: A } : Object.assign(n, { unwrap: A });
689
+ var d;
690
+ A && (this.dismiss(n), n = void 0), (d = a.finally) == null || d.call(a);
691
+ }), s = () => new Promise((d, p) => u.then(() => c[0] === "reject" ? p(c[1]) : d(c[1])).catch(p));
692
+ return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
693
693
  }, this.custom = (e, a) => {
694
694
  let n = (a == null ? void 0 : a.id) || Nt++;
695
695
  return this.create({ jsx: e(n), id: n, ...a }), n;
696
696
  }, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
697
697
  }
698
- }, ue = new Pr(), Nr = (e, a) => {
698
+ }, ue = new Dr(), Nr = (e, a) => {
699
699
  let n = (a == null ? void 0 : a.id) || Nt++;
700
700
  return ue.addToast({ title: e, ...a, id: n }), n;
701
- }, Tr = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Mr = Nr, Or = () => ue.toasts, Er = () => ue.getActiveToasts(), ut = Object.assign(Mr, { success: ue.success, info: ue.info, warning: ue.warning, error: ue.error, custom: ue.custom, message: ue.message, promise: ue.promise, dismiss: ue.dismiss, loading: ue.loading }, { getHistory: Or, getToasts: Er });
701
+ }, Mr = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Tr = Nr, Or = () => ue.toasts, Er = () => ue.getActiveToasts(), ut = Object.assign(Tr, { success: ue.success, info: ue.info, warning: ue.warning, error: ue.error, custom: ue.custom, message: ue.message, promise: ue.promise, dismiss: ue.dismiss, loading: ue.loading }, { getHistory: Or, getToasts: Er });
702
702
  function jr(e, { insertAt: a } = {}) {
703
703
  if (typeof document > "u") return;
704
704
  let n = document.head || document.getElementsByTagName("head")[0], i = document.createElement("style");
@@ -718,37 +718,37 @@ function Ir(e) {
718
718
  return a && i.push(a), n && i.push(n), i;
719
719
  }
720
720
  var Sr = (e) => {
721
- var a, n, i, s, c, d, A, f, p, v, b;
722
- let { invert: T, toast: o, unstyled: Q, interacting: w, setHeights: M, visibleToasts: X, heights: D, index: ee, toasts: R, expanded: k, removeToast: P, defaultRichColors: Y, closeButton: ne, style: W, cancelButtonStyle: oe, actionButtonStyle: te, className: h = "", descriptionClassName: re = "", duration: H, position: g, gap: V, loadingIcon: S, expandByDefault: fe, classNames: C, icons: J, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: E } = e, [O, N] = u.useState(null), [K, _] = u.useState(null), [L, Te] = u.useState(!1), [xe, Ce] = u.useState(!1), [Re, Se] = u.useState(!1), [at, ft] = u.useState(!1), [Qe, Me] = u.useState(!1), [nt, Ye] = u.useState(0), [Ve, ot] = u.useState(0), Xe = u.useRef(o.duration || H || Rt), Ue = u.useRef(null), Be = u.useRef(null), pt = ee === 0, it = ee + 1 <= X, ie = o.type, De = o.dismissible !== !1, gt = o.className || "", st = o.descriptionClassName || "", ke = u.useMemo(() => D.findIndex((y) => y.toastId === o.id) || 0, [D, o.id]), mt = u.useMemo(() => {
721
+ var a, n, i, A, c, u, s, d, p, v, b;
722
+ let { invert: M, toast: o, unstyled: Q, interacting: w, setHeights: T, visibleToasts: X, heights: P, index: ee, toasts: R, expanded: k, removeToast: D, defaultRichColors: Y, closeButton: ne, style: W, cancelButtonStyle: oe, actionButtonStyle: te, className: h = "", descriptionClassName: re = "", duration: H, position: g, gap: V, loadingIcon: S, expandByDefault: fe, classNames: C, icons: J, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: E } = e, [O, N] = f.useState(null), [K, _] = f.useState(null), [L, Me] = f.useState(!1), [xe, Ce] = f.useState(!1), [Re, Se] = f.useState(!1), [at, ft] = f.useState(!1), [Qe, Te] = f.useState(!1), [nt, Ye] = f.useState(0), [Ve, ot] = f.useState(0), Xe = f.useRef(o.duration || H || Rt), Ue = f.useRef(null), Be = f.useRef(null), pt = ee === 0, it = ee + 1 <= X, ie = o.type, Pe = o.dismissible !== !1, gt = o.className || "", st = o.descriptionClassName || "", ke = f.useMemo(() => P.findIndex((y) => y.toastId === o.id) || 0, [P, o.id]), mt = f.useMemo(() => {
723
723
  var y;
724
724
  return (y = o.closeButton) != null ? y : ne;
725
- }, [o.closeButton, ne]), At = u.useMemo(() => o.duration || H || Rt, [o.duration, H]), Ze = u.useRef(0), Oe = u.useRef(0), lt = u.useRef(0), Ee = u.useRef(null), [vt, Je] = g.split("-"), Ke = u.useMemo(() => D.reduce((y, G, U) => U >= ke ? y : y + G.height, 0), [D, ke]), Pe = Dr(), _e = o.invert || T, He = ie === "loading";
726
- Oe.current = u.useMemo(() => ke * V + Ke, [ke, Ke]), u.useEffect(() => {
725
+ }, [o.closeButton, ne]), At = f.useMemo(() => o.duration || H || Rt, [o.duration, H]), Ze = f.useRef(0), Oe = f.useRef(0), lt = f.useRef(0), Ee = f.useRef(null), [vt, Je] = g.split("-"), Ke = f.useMemo(() => P.reduce((y, G, U) => U >= ke ? y : y + G.height, 0), [P, ke]), De = Pr(), _e = o.invert || M, He = ie === "loading";
726
+ Oe.current = f.useMemo(() => ke * V + Ke, [ke, Ke]), f.useEffect(() => {
727
727
  Xe.current = At;
728
- }, [At]), u.useEffect(() => {
729
- Te(!0);
730
- }, []), u.useEffect(() => {
728
+ }, [At]), f.useEffect(() => {
729
+ Me(!0);
730
+ }, []), f.useEffect(() => {
731
731
  let y = Be.current;
732
732
  if (y) {
733
733
  let G = y.getBoundingClientRect().height;
734
- return ot(G), M((U) => [{ toastId: o.id, height: G, position: o.position }, ...U]), () => M((U) => U.filter((le) => le.toastId !== o.id));
734
+ return ot(G), T((U) => [{ toastId: o.id, height: G, position: o.position }, ...U]), () => T((U) => U.filter((le) => le.toastId !== o.id));
735
735
  }
736
- }, [M, o.id]), u.useLayoutEffect(() => {
736
+ }, [T, o.id]), f.useLayoutEffect(() => {
737
737
  if (!L) return;
738
738
  let y = Be.current, G = y.style.height;
739
739
  y.style.height = "auto";
740
740
  let U = y.getBoundingClientRect().height;
741
- y.style.height = G, ot(U), M((le) => le.find((pe) => pe.toastId === o.id) ? le.map((pe) => pe.toastId === o.id ? { ...pe, height: U } : pe) : [{ toastId: o.id, height: U, position: o.position }, ...le]);
742
- }, [L, o.title, o.description, M, o.id]);
743
- let me = u.useCallback(() => {
744
- Ce(!0), Ye(Oe.current), M((y) => y.filter((G) => G.toastId !== o.id)), setTimeout(() => {
745
- P(o);
741
+ y.style.height = G, ot(U), T((le) => le.find((pe) => pe.toastId === o.id) ? le.map((pe) => pe.toastId === o.id ? { ...pe, height: U } : pe) : [{ toastId: o.id, height: U, position: o.position }, ...le]);
742
+ }, [L, o.title, o.description, T, o.id]);
743
+ let me = f.useCallback(() => {
744
+ Ce(!0), Ye(Oe.current), T((y) => y.filter((G) => G.toastId !== o.id)), setTimeout(() => {
745
+ D(o);
746
746
  }, Gr);
747
- }, [o, P, M, Oe]);
748
- u.useEffect(() => {
747
+ }, [o, D, T, Oe]);
748
+ f.useEffect(() => {
749
749
  if (o.promise && ie === "loading" || o.duration === 1 / 0 || o.type === "loading") return;
750
750
  let y;
751
- return k || w || E && Pe ? (() => {
751
+ return k || w || E && De ? (() => {
752
752
  if (lt.current < Ze.current) {
753
753
  let G = (/* @__PURE__ */ new Date()).getTime() - Ze.current;
754
754
  Xe.current = Xe.current - G;
@@ -758,42 +758,42 @@ var Sr = (e) => {
758
758
  var G;
759
759
  (G = o.onAutoClose) == null || G.call(o, o), me();
760
760
  }, Xe.current)), () => clearTimeout(y);
761
- }, [k, w, o, ie, E, Pe, me]), u.useEffect(() => {
761
+ }, [k, w, o, ie, E, De, me]), f.useEffect(() => {
762
762
  o.delete && me();
763
763
  }, [me, o.delete]);
764
764
  function ht() {
765
765
  var y, G, U;
766
- return J != null && J.loading ? u.createElement("div", { className: ve(C == null ? void 0 : C.loader, (y = o == null ? void 0 : o.classNames) == null ? void 0 : y.loader, "sonner-loader"), "data-visible": ie === "loading" }, J.loading) : S ? u.createElement("div", { className: ve(C == null ? void 0 : C.loader, (G = o == null ? void 0 : o.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ie === "loading" }, S) : u.createElement(br, { className: ve(C == null ? void 0 : C.loader, (U = o == null ? void 0 : o.classNames) == null ? void 0 : U.loader), visible: ie === "loading" });
766
+ return J != null && J.loading ? f.createElement("div", { className: ve(C == null ? void 0 : C.loader, (y = o == null ? void 0 : o.classNames) == null ? void 0 : y.loader, "sonner-loader"), "data-visible": ie === "loading" }, J.loading) : S ? f.createElement("div", { className: ve(C == null ? void 0 : C.loader, (G = o == null ? void 0 : o.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ie === "loading" }, S) : f.createElement(br, { className: ve(C == null ? void 0 : C.loader, (U = o == null ? void 0 : o.classNames) == null ? void 0 : U.loader), visible: ie === "loading" });
767
767
  }
768
- return u.createElement("li", { tabIndex: 0, ref: Be, className: ve(h, gt, C == null ? void 0 : C.toast, (a = o == null ? void 0 : o.classNames) == null ? void 0 : a.toast, C == null ? void 0 : C.default, C == null ? void 0 : C[ie], (n = o == null ? void 0 : o.classNames) == null ? void 0 : n[ie]), "data-sonner-toast": "", "data-rich-colors": (i = o.richColors) != null ? i : Y, "data-styled": !(o.jsx || o.unstyled || Q), "data-mounted": L, "data-promise": !!o.promise, "data-swiped": Qe, "data-removed": xe, "data-visible": it, "data-y-position": vt, "data-x-position": Je, "data-index": ee, "data-front": pt, "data-swiping": Re, "data-dismissible": De, "data-type": ie, "data-invert": _e, "data-swipe-out": at, "data-swipe-direction": K, "data-expanded": !!(k || fe && L), style: { "--index": ee, "--toasts-before": ee, "--z-index": R.length - ee, "--offset": `${xe ? nt : Oe.current}px`, "--initial-height": fe ? "auto" : `${Ve}px`, ...W, ...o.style }, onDragEnd: () => {
768
+ return f.createElement("li", { tabIndex: 0, ref: Be, className: ve(h, gt, C == null ? void 0 : C.toast, (a = o == null ? void 0 : o.classNames) == null ? void 0 : a.toast, C == null ? void 0 : C.default, C == null ? void 0 : C[ie], (n = o == null ? void 0 : o.classNames) == null ? void 0 : n[ie]), "data-sonner-toast": "", "data-rich-colors": (i = o.richColors) != null ? i : Y, "data-styled": !(o.jsx || o.unstyled || Q), "data-mounted": L, "data-promise": !!o.promise, "data-swiped": Qe, "data-removed": xe, "data-visible": it, "data-y-position": vt, "data-x-position": Je, "data-index": ee, "data-front": pt, "data-swiping": Re, "data-dismissible": Pe, "data-type": ie, "data-invert": _e, "data-swipe-out": at, "data-swipe-direction": K, "data-expanded": !!(k || fe && L), style: { "--index": ee, "--toasts-before": ee, "--z-index": R.length - ee, "--offset": `${xe ? nt : Oe.current}px`, "--initial-height": fe ? "auto" : `${Ve}px`, ...W, ...o.style }, onDragEnd: () => {
769
769
  Se(!1), N(null), Ee.current = null;
770
770
  }, onPointerDown: (y) => {
771
- He || !De || (Ue.current = /* @__PURE__ */ new Date(), Ye(Oe.current), y.target.setPointerCapture(y.pointerId), y.target.tagName !== "BUTTON" && (Se(!0), Ee.current = { x: y.clientX, y: y.clientY }));
771
+ He || !Pe || (Ue.current = /* @__PURE__ */ new Date(), Ye(Oe.current), y.target.setPointerCapture(y.pointerId), y.target.tagName !== "BUTTON" && (Se(!0), Ee.current = { x: y.clientX, y: y.clientY }));
772
772
  }, onPointerUp: () => {
773
773
  var y, G, U, le;
774
- if (at || !De) return;
774
+ if (at || !Pe) return;
775
775
  Ee.current = null;
776
776
  let pe = Number(((y = Be.current) == null ? void 0 : y.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), be = Number(((G = Be.current) == null ? void 0 : G.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((U = Ue.current) == null ? void 0 : U.getTime()), ce = O === "x" ? pe : be, ye = Math.abs(ce) / we;
777
777
  if (Math.abs(ce) >= Lr || ye > 0.11) {
778
- Ye(Oe.current), (le = o.onDismiss) == null || le.call(o, o), _(O === "x" ? pe > 0 ? "right" : "left" : be > 0 ? "down" : "up"), me(), ft(!0), Me(!1);
778
+ Ye(Oe.current), (le = o.onDismiss) == null || le.call(o, o), _(O === "x" ? pe > 0 ? "right" : "left" : be > 0 ? "down" : "up"), me(), ft(!0), Te(!1);
779
779
  return;
780
780
  }
781
781
  Se(!1), N(null);
782
782
  }, onPointerMove: (y) => {
783
783
  var G, U, le, pe;
784
- if (!Ee.current || !De || ((G = window.getSelection()) == null ? void 0 : G.toString().length) > 0) return;
784
+ if (!Ee.current || !Pe || ((G = window.getSelection()) == null ? void 0 : G.toString().length) > 0) return;
785
785
  let be = y.clientY - Ee.current.y, we = y.clientX - Ee.current.x, ce = (U = e.swipeDirections) != null ? U : Ir(g);
786
786
  !O && (Math.abs(we) > 1 || Math.abs(be) > 1) && N(Math.abs(we) > Math.abs(be) ? "x" : "y");
787
787
  let ye = { x: 0, y: 0 };
788
- O === "y" ? (ce.includes("top") || ce.includes("bottom")) && (ce.includes("top") && be < 0 || ce.includes("bottom") && be > 0) && (ye.y = be) : O === "x" && (ce.includes("left") || ce.includes("right")) && (ce.includes("left") && we < 0 || ce.includes("right") && we > 0) && (ye.x = we), (Math.abs(ye.x) > 0 || Math.abs(ye.y) > 0) && Me(!0), (le = Be.current) == null || le.style.setProperty("--swipe-amount-x", `${ye.x}px`), (pe = Be.current) == null || pe.style.setProperty("--swipe-amount-y", `${ye.y}px`);
789
- } }, mt && !o.jsx ? u.createElement("button", { "aria-label": Z, "data-disabled": He, "data-close-button": !0, onClick: He || !De ? () => {
788
+ O === "y" ? (ce.includes("top") || ce.includes("bottom")) && (ce.includes("top") && be < 0 || ce.includes("bottom") && be > 0) && (ye.y = be) : O === "x" && (ce.includes("left") || ce.includes("right")) && (ce.includes("left") && we < 0 || ce.includes("right") && we > 0) && (ye.x = we), (Math.abs(ye.x) > 0 || Math.abs(ye.y) > 0) && Te(!0), (le = Be.current) == null || le.style.setProperty("--swipe-amount-x", `${ye.x}px`), (pe = Be.current) == null || pe.style.setProperty("--swipe-amount-y", `${ye.y}px`);
789
+ } }, mt && !o.jsx ? f.createElement("button", { "aria-label": Z, "data-disabled": He, "data-close-button": !0, onClick: He || !Pe ? () => {
790
790
  } : () => {
791
791
  var y;
792
792
  me(), (y = o.onDismiss) == null || y.call(o, o);
793
- }, className: ve(C == null ? void 0 : C.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, (c = J == null ? void 0 : J.close) != null ? c : Br) : null, o.jsx || wt(o.title) ? o.jsx ? o.jsx : typeof o.title == "function" ? o.title() : o.title : u.createElement(u.Fragment, null, ie || o.icon || o.promise ? u.createElement("div", { "data-icon": "", className: ve(C == null ? void 0 : C.icon, (d = o == null ? void 0 : o.classNames) == null ? void 0 : d.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ht() : null, o.type !== "loading" ? o.icon || (J == null ? void 0 : J[ie]) || vr(ie) : null) : null, u.createElement("div", { "data-content": "", className: ve(C == null ? void 0 : C.content, (A = o == null ? void 0 : o.classNames) == null ? void 0 : A.content) }, u.createElement("div", { "data-title": "", className: ve(C == null ? void 0 : C.title, (f = o == null ? void 0 : o.classNames) == null ? void 0 : f.title) }, typeof o.title == "function" ? o.title() : o.title), o.description ? u.createElement("div", { "data-description": "", className: ve(re, st, C == null ? void 0 : C.description, (p = o == null ? void 0 : o.classNames) == null ? void 0 : p.description) }, typeof o.description == "function" ? o.description() : o.description) : null), wt(o.cancel) ? o.cancel : o.cancel && dt(o.cancel) ? u.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || oe, onClick: (y) => {
793
+ }, className: ve(C == null ? void 0 : C.closeButton, (A = o == null ? void 0 : o.classNames) == null ? void 0 : A.closeButton) }, (c = J == null ? void 0 : J.close) != null ? c : Br) : null, o.jsx || wt(o.title) ? o.jsx ? o.jsx : typeof o.title == "function" ? o.title() : o.title : f.createElement(f.Fragment, null, ie || o.icon || o.promise ? f.createElement("div", { "data-icon": "", className: ve(C == null ? void 0 : C.icon, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ht() : null, o.type !== "loading" ? o.icon || (J == null ? void 0 : J[ie]) || vr(ie) : null) : null, f.createElement("div", { "data-content": "", className: ve(C == null ? void 0 : C.content, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.content) }, f.createElement("div", { "data-title": "", className: ve(C == null ? void 0 : C.title, (d = o == null ? void 0 : o.classNames) == null ? void 0 : d.title) }, typeof o.title == "function" ? o.title() : o.title), o.description ? f.createElement("div", { "data-description": "", className: ve(re, st, C == null ? void 0 : C.description, (p = o == null ? void 0 : o.classNames) == null ? void 0 : p.description) }, typeof o.description == "function" ? o.description() : o.description) : null), wt(o.cancel) ? o.cancel : o.cancel && dt(o.cancel) ? f.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || oe, onClick: (y) => {
794
794
  var G, U;
795
- dt(o.cancel) && De && ((U = (G = o.cancel).onClick) == null || U.call(G, y), me());
796
- }, className: ve(C == null ? void 0 : C.cancelButton, (v = o == null ? void 0 : o.classNames) == null ? void 0 : v.cancelButton) }, o.cancel.label) : null, wt(o.action) ? o.action : o.action && dt(o.action) ? u.createElement("button", { "data-button": !0, "data-action": !0, style: o.actionButtonStyle || te, onClick: (y) => {
795
+ dt(o.cancel) && Pe && ((U = (G = o.cancel).onClick) == null || U.call(G, y), me());
796
+ }, className: ve(C == null ? void 0 : C.cancelButton, (v = o == null ? void 0 : o.classNames) == null ? void 0 : v.cancelButton) }, o.cancel.label) : null, wt(o.action) ? o.action : o.action && dt(o.action) ? f.createElement("button", { "data-button": !0, "data-action": !0, style: o.actionButtonStyle || te, onClick: (y) => {
797
797
  var G, U;
798
798
  dt(o.action) && ((U = (G = o.action).onClick) == null || U.call(G, y), !y.defaultPrevented && me());
799
799
  }, className: ve(C == null ? void 0 : C.actionButton, (b = o == null ? void 0 : o.classNames) == null ? void 0 : b.actionButton) }, o.action.label) : null));
@@ -805,26 +805,26 @@ function Xt() {
805
805
  }
806
806
  function Qr(e, a) {
807
807
  let n = {};
808
- return [e, a].forEach((i, s) => {
809
- let c = s === 1, d = c ? "--mobile-offset" : "--offset", A = c ? Xr : Rr;
810
- function f(p) {
808
+ return [e, a].forEach((i, A) => {
809
+ let c = A === 1, u = c ? "--mobile-offset" : "--offset", s = c ? Xr : Rr;
810
+ function d(p) {
811
811
  ["top", "right", "bottom", "left"].forEach((v) => {
812
- n[`${d}-${v}`] = typeof p == "number" ? `${p}px` : p;
812
+ n[`${u}-${v}`] = typeof p == "number" ? `${p}px` : p;
813
813
  });
814
814
  }
815
- typeof i == "number" || typeof i == "string" ? f(i) : typeof i == "object" ? ["top", "right", "bottom", "left"].forEach((p) => {
816
- i[p] === void 0 ? n[`${d}-${p}`] = A : n[`${d}-${p}`] = typeof i[p] == "number" ? `${i[p]}px` : i[p];
817
- }) : f(A);
815
+ typeof i == "number" || typeof i == "string" ? d(i) : typeof i == "object" ? ["top", "right", "bottom", "left"].forEach((p) => {
816
+ i[p] === void 0 ? n[`${u}-${p}`] = s : n[`${u}-${p}`] = typeof i[p] == "number" ? `${i[p]}px` : i[p];
817
+ }) : d(s);
818
818
  }), n;
819
819
  }
820
820
  var Yr = er(function(e, a) {
821
- let { invert: n, position: i = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: d, className: A, offset: f, mobileOffset: p, theme: v = "light", richColors: b, duration: T, style: o, visibleToasts: Q = zr, toastOptions: w, dir: M = Xt(), gap: X = Hr, loadingIcon: D, icons: ee, containerAriaLabel: R = "Notifications", pauseWhenPageIsHidden: k } = e, [P, Y] = u.useState([]), ne = u.useMemo(() => Array.from(new Set([i].concat(P.filter((E) => E.position).map((E) => E.position)))), [P, i]), [W, oe] = u.useState([]), [te, h] = u.useState(!1), [re, H] = u.useState(!1), [g, V] = u.useState(v !== "system" ? v : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), S = u.useRef(null), fe = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), C = u.useRef(null), J = u.useRef(!1), Z = u.useCallback((E) => {
821
+ let { invert: n, position: i = "bottom-right", hotkey: A = ["altKey", "KeyT"], expand: c, closeButton: u, className: s, offset: d, mobileOffset: p, theme: v = "light", richColors: b, duration: M, style: o, visibleToasts: Q = zr, toastOptions: w, dir: T = Xt(), gap: X = Hr, loadingIcon: P, icons: ee, containerAriaLabel: R = "Notifications", pauseWhenPageIsHidden: k } = e, [D, Y] = f.useState([]), ne = f.useMemo(() => Array.from(new Set([i].concat(D.filter((E) => E.position).map((E) => E.position)))), [D, i]), [W, oe] = f.useState([]), [te, h] = f.useState(!1), [re, H] = f.useState(!1), [g, V] = f.useState(v !== "system" ? v : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), S = f.useRef(null), fe = A.join("+").replace(/Key/g, "").replace(/Digit/g, ""), C = f.useRef(null), J = f.useRef(!1), Z = f.useCallback((E) => {
822
822
  Y((O) => {
823
823
  var N;
824
824
  return (N = O.find((K) => K.id === E.id)) != null && N.delete || ue.dismiss(E.id), O.filter(({ id: K }) => K !== E.id);
825
825
  });
826
826
  }, []);
827
- return u.useEffect(() => ue.subscribe((E) => {
827
+ return f.useEffect(() => ue.subscribe((E) => {
828
828
  if (E.dismiss) {
829
829
  Y((O) => O.map((N) => N.id === E.id ? { ...N, delete: !0 } : N));
830
830
  return;
@@ -837,7 +837,7 @@ var Yr = er(function(e, a) {
837
837
  });
838
838
  });
839
839
  });
840
- }), []), u.useEffect(() => {
840
+ }), []), f.useEffect(() => {
841
841
  if (v !== "system") {
842
842
  V(v);
843
843
  return;
@@ -857,22 +857,22 @@ var Yr = er(function(e, a) {
857
857
  }
858
858
  });
859
859
  }
860
- }, [v]), u.useEffect(() => {
861
- P.length <= 1 && h(!1);
862
- }, [P]), u.useEffect(() => {
860
+ }, [v]), f.useEffect(() => {
861
+ D.length <= 1 && h(!1);
862
+ }, [D]), f.useEffect(() => {
863
863
  let E = (O) => {
864
864
  var N, K;
865
- s.every((_) => O[_] || O.code === _) && (h(!0), (N = S.current) == null || N.focus()), O.code === "Escape" && (document.activeElement === S.current || (K = S.current) != null && K.contains(document.activeElement)) && h(!1);
865
+ A.every((_) => O[_] || O.code === _) && (h(!0), (N = S.current) == null || N.focus()), O.code === "Escape" && (document.activeElement === S.current || (K = S.current) != null && K.contains(document.activeElement)) && h(!1);
866
866
  };
867
867
  return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
868
- }, [s]), u.useEffect(() => {
868
+ }, [A]), f.useEffect(() => {
869
869
  if (S.current) return () => {
870
870
  C.current && (C.current.focus({ preventScroll: !0 }), C.current = null, J.current = !1);
871
871
  };
872
- }, [S.current]), u.createElement("section", { ref: a, "aria-label": `${R} ${fe}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, ne.map((E, O) => {
872
+ }, [S.current]), f.createElement("section", { ref: a, "aria-label": `${R} ${fe}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, ne.map((E, O) => {
873
873
  var N;
874
874
  let [K, _] = E.split("-");
875
- return P.length ? u.createElement("ol", { key: E, dir: M === "auto" ? Xt() : M, tabIndex: -1, ref: S, className: A, "data-sonner-toaster": !0, "data-theme": g, "data-y-position": K, "data-lifted": te && P.length > 1 && !c, "data-x-position": _, style: { "--front-toast-height": `${((N = W[0]) == null ? void 0 : N.height) || 0}px`, "--width": `${kr}px`, "--gap": `${X}px`, ...o, ...Qr(f, p) }, onBlur: (L) => {
875
+ return D.length ? f.createElement("ol", { key: E, dir: T === "auto" ? Xt() : T, tabIndex: -1, ref: S, className: s, "data-sonner-toaster": !0, "data-theme": g, "data-y-position": K, "data-lifted": te && D.length > 1 && !c, "data-x-position": _, style: { "--front-toast-height": `${((N = W[0]) == null ? void 0 : N.height) || 0}px`, "--width": `${kr}px`, "--gap": `${X}px`, ...o, ...Qr(d, p) }, onBlur: (L) => {
876
876
  J.current && !L.currentTarget.contains(L.relatedTarget) && (J.current = !1, C.current && (C.current.focus({ preventScroll: !0 }), C.current = null));
877
877
  }, onFocus: (L) => {
878
878
  L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || J.current || (J.current = !0, C.current = L.relatedTarget);
@@ -880,9 +880,9 @@ var Yr = er(function(e, a) {
880
880
  re || h(!1);
881
881
  }, onDragEnd: () => h(!1), onPointerDown: (L) => {
882
882
  L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || H(!0);
883
- }, onPointerUp: () => H(!1) }, P.filter((L) => !L.position && O === 0 || L.position === E).map((L, Te) => {
883
+ }, onPointerUp: () => H(!1) }, D.filter((L) => !L.position && O === 0 || L.position === E).map((L, Me) => {
884
884
  var xe, Ce;
885
- return u.createElement(Sr, { key: L.id, icons: ee, index: Te, toast: L, defaultRichColors: b, duration: (xe = w == null ? void 0 : w.duration) != null ? xe : T, className: w == null ? void 0 : w.className, descriptionClassName: w == null ? void 0 : w.descriptionClassName, invert: n, visibleToasts: Q, closeButton: (Ce = w == null ? void 0 : w.closeButton) != null ? Ce : d, interacting: re, position: E, style: w == null ? void 0 : w.style, unstyled: w == null ? void 0 : w.unstyled, classNames: w == null ? void 0 : w.classNames, cancelButtonStyle: w == null ? void 0 : w.cancelButtonStyle, actionButtonStyle: w == null ? void 0 : w.actionButtonStyle, removeToast: Z, toasts: P.filter((Re) => Re.position == L.position), heights: W.filter((Re) => Re.position == L.position), setHeights: oe, expandByDefault: c, gap: X, loadingIcon: D, expanded: te, pauseWhenPageIsHidden: k, swipeDirections: e.swipeDirections });
885
+ return f.createElement(Sr, { key: L.id, icons: ee, index: Me, toast: L, defaultRichColors: b, duration: (xe = w == null ? void 0 : w.duration) != null ? xe : M, className: w == null ? void 0 : w.className, descriptionClassName: w == null ? void 0 : w.descriptionClassName, invert: n, visibleToasts: Q, closeButton: (Ce = w == null ? void 0 : w.closeButton) != null ? Ce : u, interacting: re, position: E, style: w == null ? void 0 : w.style, unstyled: w == null ? void 0 : w.unstyled, classNames: w == null ? void 0 : w.classNames, cancelButtonStyle: w == null ? void 0 : w.cancelButtonStyle, actionButtonStyle: w == null ? void 0 : w.actionButtonStyle, removeToast: Z, toasts: D.filter((Re) => Re.position == L.position), heights: W.filter((Re) => Re.position == L.position), setHeights: oe, expandByDefault: c, gap: X, loadingIcon: P, expanded: te, pauseWhenPageIsHidden: k, swipeDirections: e.swipeDirections });
886
886
  })) : null;
887
887
  }));
888
888
  });
@@ -909,18 +909,18 @@ const Qt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAKqCAYAAACkSiwxAA
909
909
  )
910
910
  ]
911
911
  }
912
- ), Mt = u.createContext(null);
912
+ ), Tt = f.createContext(null);
913
913
  function Yt(e) {
914
914
  var a, n, i = "";
915
915
  if (typeof e == "string" || typeof e == "number") i += e;
916
916
  else if (typeof e == "object") if (Array.isArray(e)) {
917
- var s = e.length;
918
- for (a = 0; a < s; a++) e[a] && (n = Yt(e[a])) && (i && (i += " "), i += n);
917
+ var A = e.length;
918
+ for (a = 0; a < A; a++) e[a] && (n = Yt(e[a])) && (i && (i += " "), i += n);
919
919
  } else for (n in e) e[n] && (i && (i += " "), i += n);
920
920
  return i;
921
921
  }
922
922
  function Ur() {
923
- for (var e, a, n = 0, i = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (a = Yt(e)) && (i && (i += " "), i += a);
923
+ for (var e, a, n = 0, i = "", A = arguments.length; n < A; n++) (e = arguments[n]) && (a = Yt(e)) && (i && (i += " "), i += a);
924
924
  return i;
925
925
  }
926
926
  const Ot = "-", Fr = (e) => {
@@ -929,28 +929,28 @@ const Ot = "-", Fr = (e) => {
929
929
  conflictingClassGroupModifiers: i
930
930
  } = e;
931
931
  return {
932
- getClassGroupId: (d) => {
933
- const A = d.split(Ot);
934
- return A[0] === "" && A.length !== 1 && A.shift(), Vt(A, a) || qr(d);
932
+ getClassGroupId: (u) => {
933
+ const s = u.split(Ot);
934
+ return s[0] === "" && s.length !== 1 && s.shift(), Vt(s, a) || qr(u);
935
935
  },
936
- getConflictingClassGroupIds: (d, A) => {
937
- const f = n[d] || [];
938
- return A && i[d] ? [...f, ...i[d]] : f;
936
+ getConflictingClassGroupIds: (u, s) => {
937
+ const d = n[u] || [];
938
+ return s && i[u] ? [...d, ...i[u]] : d;
939
939
  }
940
940
  };
941
941
  }, Vt = (e, a) => {
942
- var d;
942
+ var u;
943
943
  if (e.length === 0)
944
944
  return a.classGroupId;
945
- const n = e[0], i = a.nextPart.get(n), s = i ? Vt(e.slice(1), i) : void 0;
946
- if (s)
947
- return s;
945
+ const n = e[0], i = a.nextPart.get(n), A = i ? Vt(e.slice(1), i) : void 0;
946
+ if (A)
947
+ return A;
948
948
  if (a.validators.length === 0)
949
949
  return;
950
950
  const c = e.join(Ot);
951
- return (d = a.validators.find(({
952
- validator: A
953
- }) => A(c))) == null ? void 0 : d.classGroupId;
951
+ return (u = a.validators.find(({
952
+ validator: s
953
+ }) => s(c))) == null ? void 0 : u.classGroupId;
954
954
  }, kt = /^\[(.+)\]$/, qr = (e) => {
955
955
  if (kt.test(e)) {
956
956
  const a = kt.exec(e)[1], n = a == null ? void 0 : a.substring(0, a.indexOf(":"));
@@ -965,29 +965,29 @@ const Ot = "-", Fr = (e) => {
965
965
  nextPart: /* @__PURE__ */ new Map(),
966
966
  validators: []
967
967
  };
968
- return Jr(Object.entries(e.classGroups), n).forEach(([c, d]) => {
969
- Tt(d, i, c, a);
968
+ return Jr(Object.entries(e.classGroups), n).forEach(([c, u]) => {
969
+ Mt(u, i, c, a);
970
970
  }), i;
971
- }, Tt = (e, a, n, i) => {
972
- e.forEach((s) => {
973
- if (typeof s == "string") {
974
- const c = s === "" ? a : Ht(a, s);
971
+ }, Mt = (e, a, n, i) => {
972
+ e.forEach((A) => {
973
+ if (typeof A == "string") {
974
+ const c = A === "" ? a : Ht(a, A);
975
975
  c.classGroupId = n;
976
976
  return;
977
977
  }
978
- if (typeof s == "function") {
979
- if (Zr(s)) {
980
- Tt(s(i), a, n, i);
978
+ if (typeof A == "function") {
979
+ if (Zr(A)) {
980
+ Mt(A(i), a, n, i);
981
981
  return;
982
982
  }
983
983
  a.validators.push({
984
- validator: s,
984
+ validator: A,
985
985
  classGroupId: n
986
986
  });
987
987
  return;
988
988
  }
989
- Object.entries(s).forEach(([c, d]) => {
990
- Tt(d, Ht(a, c), n, i);
989
+ Object.entries(A).forEach(([c, u]) => {
990
+ Mt(u, Ht(a, c), n, i);
991
991
  });
992
992
  });
993
993
  }, Ht = (e, a) => {
@@ -999,8 +999,8 @@ const Ot = "-", Fr = (e) => {
999
999
  }), n = n.nextPart.get(i);
1000
1000
  }), n;
1001
1001
  }, Zr = (e) => e.isThemeGetter, Jr = (e, a) => a ? e.map(([n, i]) => {
1002
- const s = i.map((c) => typeof c == "string" ? a + c : typeof c == "object" ? Object.fromEntries(Object.entries(c).map(([d, A]) => [a + d, A])) : c);
1003
- return [n, s];
1002
+ const A = i.map((c) => typeof c == "string" ? a + c : typeof c == "object" ? Object.fromEntries(Object.entries(c).map(([u, s]) => [a + u, s])) : c);
1003
+ return [n, A];
1004
1004
  }) : e, Kr = (e) => {
1005
1005
  if (e < 1)
1006
1006
  return {
@@ -1010,54 +1010,54 @@ const Ot = "-", Fr = (e) => {
1010
1010
  }
1011
1011
  };
1012
1012
  let a = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
1013
- const s = (c, d) => {
1014
- n.set(c, d), a++, a > e && (a = 0, i = n, n = /* @__PURE__ */ new Map());
1013
+ const A = (c, u) => {
1014
+ n.set(c, u), a++, a > e && (a = 0, i = n, n = /* @__PURE__ */ new Map());
1015
1015
  };
1016
1016
  return {
1017
1017
  get(c) {
1018
- let d = n.get(c);
1019
- if (d !== void 0)
1020
- return d;
1021
- if ((d = i.get(c)) !== void 0)
1022
- return s(c, d), d;
1018
+ let u = n.get(c);
1019
+ if (u !== void 0)
1020
+ return u;
1021
+ if ((u = i.get(c)) !== void 0)
1022
+ return A(c, u), u;
1023
1023
  },
1024
- set(c, d) {
1025
- n.has(c) ? n.set(c, d) : s(c, d);
1024
+ set(c, u) {
1025
+ n.has(c) ? n.set(c, u) : A(c, u);
1026
1026
  }
1027
1027
  };
1028
1028
  }, Ut = "!", _r = (e) => {
1029
1029
  const {
1030
1030
  separator: a,
1031
1031
  experimentalParseClassName: n
1032
- } = e, i = a.length === 1, s = a[0], c = a.length, d = (A) => {
1033
- const f = [];
1032
+ } = e, i = a.length === 1, A = a[0], c = a.length, u = (s) => {
1033
+ const d = [];
1034
1034
  let p = 0, v = 0, b;
1035
- for (let M = 0; M < A.length; M++) {
1036
- let X = A[M];
1035
+ for (let T = 0; T < s.length; T++) {
1036
+ let X = s[T];
1037
1037
  if (p === 0) {
1038
- if (X === s && (i || A.slice(M, M + c) === a)) {
1039
- f.push(A.slice(v, M)), v = M + c;
1038
+ if (X === A && (i || s.slice(T, T + c) === a)) {
1039
+ d.push(s.slice(v, T)), v = T + c;
1040
1040
  continue;
1041
1041
  }
1042
1042
  if (X === "/") {
1043
- b = M;
1043
+ b = T;
1044
1044
  continue;
1045
1045
  }
1046
1046
  }
1047
1047
  X === "[" ? p++ : X === "]" && p--;
1048
1048
  }
1049
- const T = f.length === 0 ? A : A.substring(v), o = T.startsWith(Ut), Q = o ? T.substring(1) : T, w = b && b > v ? b - v : void 0;
1049
+ const M = d.length === 0 ? s : s.substring(v), o = M.startsWith(Ut), Q = o ? M.substring(1) : M, w = b && b > v ? b - v : void 0;
1050
1050
  return {
1051
- modifiers: f,
1051
+ modifiers: d,
1052
1052
  hasImportantModifier: o,
1053
1053
  baseClassName: Q,
1054
1054
  maybePostfixModifierPosition: w
1055
1055
  };
1056
1056
  };
1057
- return n ? (A) => n({
1058
- className: A,
1059
- parseClassName: d
1060
- }) : d;
1057
+ return n ? (s) => n({
1058
+ className: s,
1059
+ parseClassName: u
1060
+ }) : u;
1061
1061
  }, $r = (e) => {
1062
1062
  if (e.length <= 1)
1063
1063
  return e;
@@ -1074,40 +1074,40 @@ const Ot = "-", Fr = (e) => {
1074
1074
  const {
1075
1075
  parseClassName: n,
1076
1076
  getClassGroupId: i,
1077
- getConflictingClassGroupIds: s
1078
- } = a, c = [], d = e.trim().split(ta);
1079
- let A = "";
1080
- for (let f = d.length - 1; f >= 0; f -= 1) {
1081
- const p = d[f], {
1077
+ getConflictingClassGroupIds: A
1078
+ } = a, c = [], u = e.trim().split(ta);
1079
+ let s = "";
1080
+ for (let d = u.length - 1; d >= 0; d -= 1) {
1081
+ const p = u[d], {
1082
1082
  modifiers: v,
1083
1083
  hasImportantModifier: b,
1084
- baseClassName: T,
1084
+ baseClassName: M,
1085
1085
  maybePostfixModifierPosition: o
1086
1086
  } = n(p);
1087
- let Q = !!o, w = i(Q ? T.substring(0, o) : T);
1087
+ let Q = !!o, w = i(Q ? M.substring(0, o) : M);
1088
1088
  if (!w) {
1089
1089
  if (!Q) {
1090
- A = p + (A.length > 0 ? " " + A : A);
1090
+ s = p + (s.length > 0 ? " " + s : s);
1091
1091
  continue;
1092
1092
  }
1093
- if (w = i(T), !w) {
1094
- A = p + (A.length > 0 ? " " + A : A);
1093
+ if (w = i(M), !w) {
1094
+ s = p + (s.length > 0 ? " " + s : s);
1095
1095
  continue;
1096
1096
  }
1097
1097
  Q = !1;
1098
1098
  }
1099
- const M = $r(v).join(":"), X = b ? M + Ut : M, D = X + w;
1100
- if (c.includes(D))
1099
+ const T = $r(v).join(":"), X = b ? T + Ut : T, P = X + w;
1100
+ if (c.includes(P))
1101
1101
  continue;
1102
- c.push(D);
1103
- const ee = s(w, Q);
1102
+ c.push(P);
1103
+ const ee = A(w, Q);
1104
1104
  for (let R = 0; R < ee.length; ++R) {
1105
1105
  const k = ee[R];
1106
1106
  c.push(X + k);
1107
1107
  }
1108
- A = p + (A.length > 0 ? " " + A : A);
1108
+ s = p + (s.length > 0 ? " " + s : s);
1109
1109
  }
1110
- return A;
1110
+ return s;
1111
1111
  };
1112
1112
  function aa() {
1113
1113
  let e = 0, a, n, i = "";
@@ -1124,17 +1124,17 @@ const Ft = (e) => {
1124
1124
  return n;
1125
1125
  };
1126
1126
  function na(e, ...a) {
1127
- let n, i, s, c = d;
1128
- function d(f) {
1127
+ let n, i, A, c = u;
1128
+ function u(d) {
1129
1129
  const p = a.reduce((v, b) => b(v), e());
1130
- return n = ea(p), i = n.cache.get, s = n.cache.set, c = A, A(f);
1130
+ return n = ea(p), i = n.cache.get, A = n.cache.set, c = s, s(d);
1131
1131
  }
1132
- function A(f) {
1133
- const p = i(f);
1132
+ function s(d) {
1133
+ const p = i(d);
1134
1134
  if (p)
1135
1135
  return p;
1136
- const v = ra(f, n);
1137
- return s(f, v), v;
1136
+ const v = ra(d, n);
1137
+ return A(d, v), v;
1138
1138
  }
1139
1139
  return function() {
1140
1140
  return c(aa.apply(null, arguments));
@@ -1152,7 +1152,7 @@ const q = (e) => {
1152
1152
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1153
1153
  Aa.test(e) && !la.test(e)
1154
1154
  ), Wt = () => !1, wa = (e) => ca.test(e), ya = (e) => da.test(e), xa = () => {
1155
- const e = q("colors"), a = q("spacing"), n = q("blur"), i = q("brightness"), s = q("borderColor"), c = q("borderRadius"), d = q("borderSpacing"), A = q("borderWidth"), f = q("contrast"), p = q("grayscale"), v = q("hueRotate"), b = q("invert"), T = q("gap"), o = q("gradientColorStops"), Q = q("gradientColorStopPositions"), w = q("inset"), M = q("margin"), X = q("opacity"), D = q("padding"), ee = q("saturate"), R = q("scale"), k = q("sepia"), P = q("skew"), Y = q("space"), ne = q("translate"), W = () => ["auto", "contain", "none"], oe = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", B, a], h = () => [B, a], re = () => ["", Ne, je], H = () => ["auto", qe, B], g = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], S = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], fe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], C = () => ["", "0", B], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [qe, B];
1155
+ const e = q("colors"), a = q("spacing"), n = q("blur"), i = q("brightness"), A = q("borderColor"), c = q("borderRadius"), u = q("borderSpacing"), s = q("borderWidth"), d = q("contrast"), p = q("grayscale"), v = q("hueRotate"), b = q("invert"), M = q("gap"), o = q("gradientColorStops"), Q = q("gradientColorStopPositions"), w = q("inset"), T = q("margin"), X = q("opacity"), P = q("padding"), ee = q("saturate"), R = q("scale"), k = q("sepia"), D = q("skew"), Y = q("space"), ne = q("translate"), W = () => ["auto", "contain", "none"], oe = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", B, a], h = () => [B, a], re = () => ["", Ne, je], H = () => ["auto", qe, B], g = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], S = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], fe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], C = () => ["", "0", B], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [qe, B];
1156
1156
  return {
1157
1157
  cacheSize: 500,
1158
1158
  separator: ":",
@@ -1535,21 +1535,21 @@ const q = (e) => {
1535
1535
  * @see https://tailwindcss.com/docs/gap
1536
1536
  */
1537
1537
  gap: [{
1538
- gap: [T]
1538
+ gap: [M]
1539
1539
  }],
1540
1540
  /**
1541
1541
  * Gap X
1542
1542
  * @see https://tailwindcss.com/docs/gap
1543
1543
  */
1544
1544
  "gap-x": [{
1545
- "gap-x": [T]
1545
+ "gap-x": [M]
1546
1546
  }],
1547
1547
  /**
1548
1548
  * Gap Y
1549
1549
  * @see https://tailwindcss.com/docs/gap
1550
1550
  */
1551
1551
  "gap-y": [{
1552
- "gap-y": [T]
1552
+ "gap-y": [M]
1553
1553
  }],
1554
1554
  /**
1555
1555
  * Justify Content
@@ -1620,126 +1620,126 @@ const q = (e) => {
1620
1620
  * @see https://tailwindcss.com/docs/padding
1621
1621
  */
1622
1622
  p: [{
1623
- p: [D]
1623
+ p: [P]
1624
1624
  }],
1625
1625
  /**
1626
1626
  * Padding X
1627
1627
  * @see https://tailwindcss.com/docs/padding
1628
1628
  */
1629
1629
  px: [{
1630
- px: [D]
1630
+ px: [P]
1631
1631
  }],
1632
1632
  /**
1633
1633
  * Padding Y
1634
1634
  * @see https://tailwindcss.com/docs/padding
1635
1635
  */
1636
1636
  py: [{
1637
- py: [D]
1637
+ py: [P]
1638
1638
  }],
1639
1639
  /**
1640
1640
  * Padding Start
1641
1641
  * @see https://tailwindcss.com/docs/padding
1642
1642
  */
1643
1643
  ps: [{
1644
- ps: [D]
1644
+ ps: [P]
1645
1645
  }],
1646
1646
  /**
1647
1647
  * Padding End
1648
1648
  * @see https://tailwindcss.com/docs/padding
1649
1649
  */
1650
1650
  pe: [{
1651
- pe: [D]
1651
+ pe: [P]
1652
1652
  }],
1653
1653
  /**
1654
1654
  * Padding Top
1655
1655
  * @see https://tailwindcss.com/docs/padding
1656
1656
  */
1657
1657
  pt: [{
1658
- pt: [D]
1658
+ pt: [P]
1659
1659
  }],
1660
1660
  /**
1661
1661
  * Padding Right
1662
1662
  * @see https://tailwindcss.com/docs/padding
1663
1663
  */
1664
1664
  pr: [{
1665
- pr: [D]
1665
+ pr: [P]
1666
1666
  }],
1667
1667
  /**
1668
1668
  * Padding Bottom
1669
1669
  * @see https://tailwindcss.com/docs/padding
1670
1670
  */
1671
1671
  pb: [{
1672
- pb: [D]
1672
+ pb: [P]
1673
1673
  }],
1674
1674
  /**
1675
1675
  * Padding Left
1676
1676
  * @see https://tailwindcss.com/docs/padding
1677
1677
  */
1678
1678
  pl: [{
1679
- pl: [D]
1679
+ pl: [P]
1680
1680
  }],
1681
1681
  /**
1682
1682
  * Margin
1683
1683
  * @see https://tailwindcss.com/docs/margin
1684
1684
  */
1685
1685
  m: [{
1686
- m: [M]
1686
+ m: [T]
1687
1687
  }],
1688
1688
  /**
1689
1689
  * Margin X
1690
1690
  * @see https://tailwindcss.com/docs/margin
1691
1691
  */
1692
1692
  mx: [{
1693
- mx: [M]
1693
+ mx: [T]
1694
1694
  }],
1695
1695
  /**
1696
1696
  * Margin Y
1697
1697
  * @see https://tailwindcss.com/docs/margin
1698
1698
  */
1699
1699
  my: [{
1700
- my: [M]
1700
+ my: [T]
1701
1701
  }],
1702
1702
  /**
1703
1703
  * Margin Start
1704
1704
  * @see https://tailwindcss.com/docs/margin
1705
1705
  */
1706
1706
  ms: [{
1707
- ms: [M]
1707
+ ms: [T]
1708
1708
  }],
1709
1709
  /**
1710
1710
  * Margin End
1711
1711
  * @see https://tailwindcss.com/docs/margin
1712
1712
  */
1713
1713
  me: [{
1714
- me: [M]
1714
+ me: [T]
1715
1715
  }],
1716
1716
  /**
1717
1717
  * Margin Top
1718
1718
  * @see https://tailwindcss.com/docs/margin
1719
1719
  */
1720
1720
  mt: [{
1721
- mt: [M]
1721
+ mt: [T]
1722
1722
  }],
1723
1723
  /**
1724
1724
  * Margin Right
1725
1725
  * @see https://tailwindcss.com/docs/margin
1726
1726
  */
1727
1727
  mr: [{
1728
- mr: [M]
1728
+ mr: [T]
1729
1729
  }],
1730
1730
  /**
1731
1731
  * Margin Bottom
1732
1732
  * @see https://tailwindcss.com/docs/margin
1733
1733
  */
1734
1734
  mb: [{
1735
- mb: [M]
1735
+ mb: [T]
1736
1736
  }],
1737
1737
  /**
1738
1738
  * Margin Left
1739
1739
  * @see https://tailwindcss.com/docs/margin
1740
1740
  */
1741
1741
  ml: [{
1742
- ml: [M]
1742
+ ml: [T]
1743
1743
  }],
1744
1744
  /**
1745
1745
  * Space Between X
@@ -2271,63 +2271,63 @@ const q = (e) => {
2271
2271
  * @see https://tailwindcss.com/docs/border-width
2272
2272
  */
2273
2273
  "border-w": [{
2274
- border: [A]
2274
+ border: [s]
2275
2275
  }],
2276
2276
  /**
2277
2277
  * Border Width X
2278
2278
  * @see https://tailwindcss.com/docs/border-width
2279
2279
  */
2280
2280
  "border-w-x": [{
2281
- "border-x": [A]
2281
+ "border-x": [s]
2282
2282
  }],
2283
2283
  /**
2284
2284
  * Border Width Y
2285
2285
  * @see https://tailwindcss.com/docs/border-width
2286
2286
  */
2287
2287
  "border-w-y": [{
2288
- "border-y": [A]
2288
+ "border-y": [s]
2289
2289
  }],
2290
2290
  /**
2291
2291
  * Border Width Start
2292
2292
  * @see https://tailwindcss.com/docs/border-width
2293
2293
  */
2294
2294
  "border-w-s": [{
2295
- "border-s": [A]
2295
+ "border-s": [s]
2296
2296
  }],
2297
2297
  /**
2298
2298
  * Border Width End
2299
2299
  * @see https://tailwindcss.com/docs/border-width
2300
2300
  */
2301
2301
  "border-w-e": [{
2302
- "border-e": [A]
2302
+ "border-e": [s]
2303
2303
  }],
2304
2304
  /**
2305
2305
  * Border Width Top
2306
2306
  * @see https://tailwindcss.com/docs/border-width
2307
2307
  */
2308
2308
  "border-w-t": [{
2309
- "border-t": [A]
2309
+ "border-t": [s]
2310
2310
  }],
2311
2311
  /**
2312
2312
  * Border Width Right
2313
2313
  * @see https://tailwindcss.com/docs/border-width
2314
2314
  */
2315
2315
  "border-w-r": [{
2316
- "border-r": [A]
2316
+ "border-r": [s]
2317
2317
  }],
2318
2318
  /**
2319
2319
  * Border Width Bottom
2320
2320
  * @see https://tailwindcss.com/docs/border-width
2321
2321
  */
2322
2322
  "border-w-b": [{
2323
- "border-b": [A]
2323
+ "border-b": [s]
2324
2324
  }],
2325
2325
  /**
2326
2326
  * Border Width Left
2327
2327
  * @see https://tailwindcss.com/docs/border-width
2328
2328
  */
2329
2329
  "border-w-l": [{
2330
- "border-l": [A]
2330
+ "border-l": [s]
2331
2331
  }],
2332
2332
  /**
2333
2333
  * Border Opacity
@@ -2348,7 +2348,7 @@ const q = (e) => {
2348
2348
  * @see https://tailwindcss.com/docs/divide-width
2349
2349
  */
2350
2350
  "divide-x": [{
2351
- "divide-x": [A]
2351
+ "divide-x": [s]
2352
2352
  }],
2353
2353
  /**
2354
2354
  * Divide Width X Reverse
@@ -2360,7 +2360,7 @@ const q = (e) => {
2360
2360
  * @see https://tailwindcss.com/docs/divide-width
2361
2361
  */
2362
2362
  "divide-y": [{
2363
- "divide-y": [A]
2363
+ "divide-y": [s]
2364
2364
  }],
2365
2365
  /**
2366
2366
  * Divide Width Y Reverse
@@ -2386,70 +2386,70 @@ const q = (e) => {
2386
2386
  * @see https://tailwindcss.com/docs/border-color
2387
2387
  */
2388
2388
  "border-color": [{
2389
- border: [s]
2389
+ border: [A]
2390
2390
  }],
2391
2391
  /**
2392
2392
  * Border Color X
2393
2393
  * @see https://tailwindcss.com/docs/border-color
2394
2394
  */
2395
2395
  "border-color-x": [{
2396
- "border-x": [s]
2396
+ "border-x": [A]
2397
2397
  }],
2398
2398
  /**
2399
2399
  * Border Color Y
2400
2400
  * @see https://tailwindcss.com/docs/border-color
2401
2401
  */
2402
2402
  "border-color-y": [{
2403
- "border-y": [s]
2403
+ "border-y": [A]
2404
2404
  }],
2405
2405
  /**
2406
2406
  * Border Color S
2407
2407
  * @see https://tailwindcss.com/docs/border-color
2408
2408
  */
2409
2409
  "border-color-s": [{
2410
- "border-s": [s]
2410
+ "border-s": [A]
2411
2411
  }],
2412
2412
  /**
2413
2413
  * Border Color E
2414
2414
  * @see https://tailwindcss.com/docs/border-color
2415
2415
  */
2416
2416
  "border-color-e": [{
2417
- "border-e": [s]
2417
+ "border-e": [A]
2418
2418
  }],
2419
2419
  /**
2420
2420
  * Border Color Top
2421
2421
  * @see https://tailwindcss.com/docs/border-color
2422
2422
  */
2423
2423
  "border-color-t": [{
2424
- "border-t": [s]
2424
+ "border-t": [A]
2425
2425
  }],
2426
2426
  /**
2427
2427
  * Border Color Right
2428
2428
  * @see https://tailwindcss.com/docs/border-color
2429
2429
  */
2430
2430
  "border-color-r": [{
2431
- "border-r": [s]
2431
+ "border-r": [A]
2432
2432
  }],
2433
2433
  /**
2434
2434
  * Border Color Bottom
2435
2435
  * @see https://tailwindcss.com/docs/border-color
2436
2436
  */
2437
2437
  "border-color-b": [{
2438
- "border-b": [s]
2438
+ "border-b": [A]
2439
2439
  }],
2440
2440
  /**
2441
2441
  * Border Color Left
2442
2442
  * @see https://tailwindcss.com/docs/border-color
2443
2443
  */
2444
2444
  "border-color-l": [{
2445
- "border-l": [s]
2445
+ "border-l": [A]
2446
2446
  }],
2447
2447
  /**
2448
2448
  * Divide Color
2449
2449
  * @see https://tailwindcss.com/docs/divide-color
2450
2450
  */
2451
2451
  "divide-color": [{
2452
- divide: [s]
2452
+ divide: [A]
2453
2453
  }],
2454
2454
  /**
2455
2455
  * Outline Style
@@ -2583,7 +2583,7 @@ const q = (e) => {
2583
2583
  * @see https://tailwindcss.com/docs/contrast
2584
2584
  */
2585
2585
  contrast: [{
2586
- contrast: [f]
2586
+ contrast: [d]
2587
2587
  }],
2588
2588
  /**
2589
2589
  * Drop Shadow
@@ -2654,7 +2654,7 @@ const q = (e) => {
2654
2654
  * @see https://tailwindcss.com/docs/backdrop-contrast
2655
2655
  */
2656
2656
  "backdrop-contrast": [{
2657
- "backdrop-contrast": [f]
2657
+ "backdrop-contrast": [d]
2658
2658
  }],
2659
2659
  /**
2660
2660
  * Backdrop Grayscale
@@ -2711,21 +2711,21 @@ const q = (e) => {
2711
2711
  * @see https://tailwindcss.com/docs/border-spacing
2712
2712
  */
2713
2713
  "border-spacing": [{
2714
- "border-spacing": [d]
2714
+ "border-spacing": [u]
2715
2715
  }],
2716
2716
  /**
2717
2717
  * Border Spacing X
2718
2718
  * @see https://tailwindcss.com/docs/border-spacing
2719
2719
  */
2720
2720
  "border-spacing-x": [{
2721
- "border-spacing-x": [d]
2721
+ "border-spacing-x": [u]
2722
2722
  }],
2723
2723
  /**
2724
2724
  * Border Spacing Y
2725
2725
  * @see https://tailwindcss.com/docs/border-spacing
2726
2726
  */
2727
2727
  "border-spacing-y": [{
2728
- "border-spacing-y": [d]
2728
+ "border-spacing-y": [u]
2729
2729
  }],
2730
2730
  /**
2731
2731
  * Table Layout
@@ -2832,14 +2832,14 @@ const q = (e) => {
2832
2832
  * @see https://tailwindcss.com/docs/skew
2833
2833
  */
2834
2834
  "skew-x": [{
2835
- "skew-x": [P]
2835
+ "skew-x": [D]
2836
2836
  }],
2837
2837
  /**
2838
2838
  * Skew Y
2839
2839
  * @see https://tailwindcss.com/docs/skew
2840
2840
  */
2841
2841
  "skew-y": [{
2842
- "skew-y": [P]
2842
+ "skew-y": [D]
2843
2843
  }],
2844
2844
  /**
2845
2845
  * Transform Origin
@@ -3785,43 +3785,43 @@ const Lt = [
3785
3785
  ]`
3786
3786
  }
3787
3787
  ], Ba = () => {
3788
- const e = Gt(Mt);
3788
+ const e = Gt(Tt);
3789
3789
  if (!e)
3790
3790
  throw new Error("useEvaAgent must be used within an EvaFusionAgent provider");
3791
- const { client: a, config: n } = e, [i, s] = Ae([]), [c, d] = Ae(""), [A, f] = Ae(!1), [p, v] = Ae(n.defaultVariant || "ANALYST"), [b, T] = Ae({
3791
+ const { client: a, config: n } = e, [i, A] = Ae([]), [c, u] = Ae(""), [s, d] = Ae(!1), [p, v] = Ae(n.defaultVariant || "ANALYST"), [b, M] = Ae({
3792
3792
  vertical: "SOFTWARE_DEV",
3793
3793
  focus: "DISCOVERY",
3794
3794
  data: n.initialData || null
3795
3795
  }), [o, Q] = Ae(""), w = It(() => Lt.filter(
3796
3796
  (R) => R.vertical === b.vertical && R.variant === p
3797
- ), [b.vertical, p]), M = ct((R) => {
3798
- const k = Lt.find((P) => P.id === R);
3797
+ ), [b.vertical, p]), T = ct((R) => {
3798
+ const k = Lt.find((D) => D.id === R);
3799
3799
  if (k) {
3800
- Q(R), d(k.prompt || "");
3801
- let P = k.data || null;
3802
- if (P && typeof P == "string")
3800
+ Q(R), u(k.prompt || "");
3801
+ let D = k.data || null;
3802
+ if (D && typeof D == "string")
3803
3803
  try {
3804
- const Y = JSON.parse(P);
3805
- P = JSON.stringify(Y, null, 2);
3804
+ const Y = JSON.parse(D);
3805
+ D = JSON.stringify(Y, null, 2);
3806
3806
  } catch {
3807
3807
  }
3808
- else P && typeof P == "object" && (P = JSON.stringify(P, null, 2));
3809
- T((Y) => ({
3808
+ else D && typeof D == "object" && (D = JSON.stringify(D, null, 2));
3809
+ M((Y) => ({
3810
3810
  ...Y,
3811
3811
  focus: k.focus || Y.focus,
3812
- data: P
3812
+ data: D
3813
3813
  }));
3814
3814
  } else
3815
- Q(""), T((P) => ({ ...P, data: null }));
3815
+ Q(""), M((D) => ({ ...D, data: null }));
3816
3816
  }, []), X = ct(() => {
3817
- s([]), n.persist && localStorage.removeItem(`eva_agent_chat_${n.apiKey}`), ut.info("Neural session reset.");
3817
+ A([]), n.persist && localStorage.removeItem(`eva_agent_chat_${n.apiKey}`), ut.info("Neural session reset.");
3818
3818
  }, [n.apiKey, n.persist, n]);
3819
3819
  Ie(() => {
3820
3820
  if (n.persist) {
3821
3821
  const R = localStorage.getItem(`eva_agent_chat_${n.apiKey}`);
3822
3822
  if (R)
3823
3823
  try {
3824
- s(JSON.parse(R));
3824
+ A(JSON.parse(R));
3825
3825
  } catch (k) {
3826
3826
  console.error("Failed to load chat history", k);
3827
3827
  }
@@ -3829,17 +3829,17 @@ const Lt = [
3829
3829
  }, [n.apiKey, n.persist]), Ie(() => {
3830
3830
  n.persist && i.length > 0 && localStorage.setItem(`eva_agent_chat_${n.apiKey}`, JSON.stringify(i));
3831
3831
  }, [i, n.apiKey, n.persist]);
3832
- const D = ct((R) => {
3833
- T((k) => ({ ...k, ...R })), R.vertical && Q("");
3832
+ const P = ct((R) => {
3833
+ M((k) => ({ ...k, ...R })), R.vertical && Q("");
3834
3834
  }, []), ee = ct(async (R) => {
3835
3835
  const k = R || c;
3836
- if (!k.trim() || !a || A) return;
3837
- const P = {
3836
+ if (!k.trim() || !a || s) return;
3837
+ const D = {
3838
3838
  role: "user",
3839
3839
  content: k,
3840
3840
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
3841
3841
  };
3842
- s((Y) => [...Y, P]), R || d(""), f(!0);
3842
+ A((Y) => [...Y, D]), R || u(""), d(!0);
3843
3843
  try {
3844
3844
  const Y = {
3845
3845
  prompt: k,
@@ -3877,51 +3877,53 @@ ${h.diagram}`)) : te = String(h);
3877
3877
  rawPayload: oe.data,
3878
3878
  usage: oe.data.usage
3879
3879
  };
3880
- s((H) => [...H, re]);
3880
+ A((H) => [...H, re]);
3881
3881
  } else
3882
3882
  ut.error("Neural synthesis failed. Please check payload integrity.");
3883
3883
  } catch (Y) {
3884
3884
  ut.error(`API Error: ${Y.message || "Failed to reach EvaFusion"}`);
3885
3885
  } finally {
3886
- f(!1);
3886
+ d(!1);
3887
3887
  }
3888
- }, [c, a, A, p, b]);
3888
+ }, [c, a, s, p, b]);
3889
3889
  return {
3890
3890
  messages: i,
3891
3891
  input: c,
3892
- setInput: d,
3893
- isProcessing: A,
3892
+ setInput: u,
3893
+ isProcessing: s,
3894
3894
  activeVariant: p,
3895
3895
  setActiveVariant: v,
3896
3896
  handleSend: ee,
3897
3897
  payloadConfig: b,
3898
- updatePayloadConfig: D,
3898
+ updatePayloadConfig: P,
3899
3899
  samples: w.map((R) => ({ ...R, isDataDriven: !!R.data })),
3900
3900
  selectedSampleId: o,
3901
- applySample: M,
3901
+ applySample: T,
3902
3902
  clearChat: X,
3903
3903
  isAuthorized: !!a
3904
3904
  };
3905
3905
  }, Ct = ({ chart: e }) => {
3906
- const a = St(null), [n, i] = Ae(null), [s, c] = Ae(!1);
3906
+ const a = St(null), [n, i] = Ae(null), [A, c] = Ae(!1);
3907
3907
  return Ie(() => {
3908
- const d = document.createElement("style");
3909
- return d.id = "eva-hide-mermaid-errors", d.innerHTML = `
3908
+ const u = document.createElement("style");
3909
+ return u.id = "eva-hide-mermaid-errors", u.innerHTML = `
3910
3910
  .mermaidTip, #dmermaid, [id^="dmermaid"], .mermaid-error { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
3911
3911
  #mermaid-error-container { display: none !important; }
3912
- `, document.head.appendChild(d), () => {
3913
- var A;
3914
- (A = document.getElementById("eva-hide-mermaid-errors")) == null || A.remove();
3912
+ `, document.head.appendChild(u), () => {
3913
+ var s;
3914
+ (s = document.getElementById("eva-hide-mermaid-errors")) == null || s.remove();
3915
3915
  };
3916
3916
  }, []), Ie(() => {
3917
- if (window.__EVA_CORE_RENDERER__) {
3917
+ if (window.__EVA_PRIVATE_ENGINE__) {
3918
3918
  c(!0);
3919
3919
  return;
3920
3920
  }
3921
- const d = document.createElement("script");
3922
- d.id = "eva-mermaid-core", d.src = "https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js", d.async = !0, d.onload = () => {
3923
- const A = window.mermaid;
3924
- A && (window.__EVA_CORE_RENDERER__ = A, A.initialize({
3921
+ const u = window.mermaid;
3922
+ u && (window.__GLOBAL_MERMAID_BACKUP__ = u, window.mermaid = void 0);
3923
+ const s = document.createElement("script");
3924
+ s.id = "eva-mermaid-isolated", s.src = "https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js", s.async = !0, s.onload = () => {
3925
+ const d = window.mermaid;
3926
+ d && (window.__EVA_PRIVATE_ENGINE__ = d, window.__GLOBAL_MERMAID_BACKUP__ && (window.mermaid = window.__GLOBAL_MERMAID_BACKUP__), d.initialize({
3925
3927
  startOnLoad: !1,
3926
3928
  theme: "dark",
3927
3929
  securityLevel: "loose",
@@ -3934,30 +3936,30 @@ ${h.diagram}`)) : te = String(h);
3934
3936
  tertiaryColor: "#1e1e38"
3935
3937
  }
3936
3938
  }), c(!0));
3937
- }, document.body.appendChild(d);
3939
+ }, document.body.appendChild(s);
3938
3940
  }, []), Ie(() => {
3939
- var d;
3940
- if (s && a.current) {
3941
- const A = window.__EVA_CORE_RENDERER__;
3942
- if (!A) return;
3943
- const f = `mermaid-render-${Math.random().toString(36).slice(2, 11)}`;
3941
+ var u;
3942
+ if (A && a.current) {
3943
+ const s = window.__EVA_PRIVATE_ENGINE__;
3944
+ if (!s) return;
3945
+ const d = `mermaid-render-${Math.random().toString(36).slice(2, 11)}`;
3944
3946
  let p = e.trim().replace(/\\n/g, `
3945
3947
  `).replace(/^`{3}mermaid\n?/, "").replace(/\n?`{3}$/, "").trim();
3946
3948
  const v = /(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)[\s\S]+/i, b = p.match(v);
3947
3949
  b && (p = b[0].trim());
3948
- let T = p.split(`
3950
+ let M = p.split(`
3949
3951
  `);
3950
- if (T.length > 0) {
3951
- const o = T[0].toLowerCase();
3952
+ if (M.length > 0) {
3953
+ const o = M[0].toLowerCase();
3952
3954
  if (o.startsWith("graph ") || o.startsWith("flowchart ")) {
3953
- const Q = ((d = o.match(/\s(td|lr|bt|rl)/i)) == null ? void 0 : d[0]) || " TD";
3954
- T[0] = `flowchart${Q}`, p = T.join(`
3955
+ const Q = ((u = o.match(/\s(td|lr|bt|rl)/i)) == null ? void 0 : u[0]) || " TD";
3956
+ M[0] = `flowchart${Q}`, p = M.join(`
3955
3957
  `);
3956
3958
  }
3957
3959
  }
3958
3960
  p = p.replace(/;/g, "");
3959
3961
  try {
3960
- A.render(f, p).then((o) => {
3962
+ s.render(d, p).then((o) => {
3961
3963
  a.current && (a.current.innerHTML = o.svg);
3962
3964
  }).catch((o) => {
3963
3965
  console.error("Mermaid Render Error:", o), i("Neural Blueprint Syntax Error");
@@ -3966,8 +3968,8 @@ ${h.diagram}`)) : te = String(h);
3966
3968
  i("Neural Blueprint Sync Failed");
3967
3969
  }
3968
3970
  }
3969
- }, [e, s]), n ? /* @__PURE__ */ r.jsx("div", { className: "text-[10px] text-rose-500 italic p-4 bg-rose-500/5 rounded-xl border border-rose-500/10", children: n }) : s ? /* @__PURE__ */ r.jsx("div", { className: "w-full overflow-x-auto no-scrollbar bg-black/40 rounded-xl p-4 border border-white/5 my-4", children: /* @__PURE__ */ r.jsx("div", { ref: a, className: "flex justify-center" }) }) : /* @__PURE__ */ r.jsx("div", { className: "p-8 flex items-center justify-center", children: /* @__PURE__ */ r.jsx("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-amber-500" }) });
3970
- }, Da = ({ tasks: e, team: a }) => !e && !a ? null : /* @__PURE__ */ r.jsxs("div", { className: "space-y-6 mt-6", children: [
3971
+ }, [e, A]), n ? /* @__PURE__ */ r.jsx("div", { className: "text-[10px] text-rose-500 italic p-4 bg-rose-500/5 rounded-xl border border-rose-500/10", children: n }) : A ? /* @__PURE__ */ r.jsx("div", { className: "w-full overflow-x-auto no-scrollbar bg-black/40 rounded-xl p-4 border border-white/5 my-4", children: /* @__PURE__ */ r.jsx("div", { ref: a, className: "flex justify-center" }) }) : /* @__PURE__ */ r.jsx("div", { className: "p-8 flex items-center justify-center", children: /* @__PURE__ */ r.jsx("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-amber-500" }) });
3972
+ }, Pa = ({ tasks: e, team: a }) => !e && !a ? null : /* @__PURE__ */ r.jsxs("div", { className: "space-y-6 mt-6", children: [
3971
3973
  e && e.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: "space-y-3", children: [
3972
3974
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 text-amber-500", children: [
3973
3975
  /* @__PURE__ */ r.jsx(ar, { size: 14 }),
@@ -4002,7 +4004,7 @@ ${h.diagram}`)) : te = String(h);
4002
4004
  /* @__PURE__ */ r.jsx("h5", { className: "text-[10px] font-black uppercase tracking-widest", children: "Team Resonance Map" })
4003
4005
  ] }),
4004
4006
  /* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-2 gap-2", children: a.map((n, i) => {
4005
- var s;
4007
+ var A;
4006
4008
  return /* @__PURE__ */ r.jsxs("div", { className: "bg-white/5 border border-white/5 p-3 rounded-xl space-y-2", children: [
4007
4009
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
4008
4010
  /* @__PURE__ */ r.jsx("div", { className: "w-6 h-6 rounded-lg bg-indigo-500/20 flex items-center justify-center text-[10px] font-black text-indigo-400", children: n.name[0] }),
@@ -4011,7 +4013,7 @@ ${h.diagram}`)) : te = String(h);
4011
4013
  /* @__PURE__ */ r.jsx("div", { className: "text-[8px] text-slate-500 uppercase font-black", children: n.role })
4012
4014
  ] })
4013
4015
  ] }),
4014
- /* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap gap-1", children: (s = n.skills) == null ? void 0 : s.slice(0, 2).map((c, d) => /* @__PURE__ */ r.jsx("span", { className: "text-[7px] bg-white/5 text-slate-400 px-1 py-0.5 rounded", children: c }, d)) })
4016
+ /* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap gap-1", children: (A = n.skills) == null ? void 0 : A.slice(0, 2).map((c, u) => /* @__PURE__ */ r.jsx("span", { className: "text-[7px] bg-white/5 text-slate-400 px-1 py-0.5 rounded", children: c }, u)) })
4015
4017
  ] }, i);
4016
4018
  }) })
4017
4019
  ] })
@@ -4020,13 +4022,13 @@ ${h.diagram}`)) : te = String(h);
4020
4022
  const a = Object.keys(e[0] || {}).filter((n) => n !== "id");
4021
4023
  return /* @__PURE__ */ r.jsx("div", { className: "w-full overflow-hidden rounded-2xl border border-white/5 bg-slate-900/40 my-4", children: /* @__PURE__ */ r.jsx("div", { className: "overflow-x-auto no-scrollbar", children: /* @__PURE__ */ r.jsxs("table", { className: "w-full text-left border-collapse", children: [
4022
4024
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsx("tr", { className: "bg-white/5 border-b border-white/5", children: a.map((n) => /* @__PURE__ */ r.jsx("th", { className: "p-3 text-[8px] font-black text-slate-500 uppercase tracking-widest", children: n }, n)) }) }),
4023
- /* @__PURE__ */ r.jsx("tbody", { className: "divide-y divide-white/5", children: e.map((n, i) => /* @__PURE__ */ r.jsx("tr", { className: "hover:bg-white/[0.02] transition-colors", children: a.map((s) => /* @__PURE__ */ r.jsx("td", { className: "p-3 text-[10px] font-medium text-slate-300", children: s.toLowerCase() === "status" ? /* @__PURE__ */ r.jsx("span", { className: he(
4025
+ /* @__PURE__ */ r.jsx("tbody", { className: "divide-y divide-white/5", children: e.map((n, i) => /* @__PURE__ */ r.jsx("tr", { className: "hover:bg-white/[0.02] transition-colors", children: a.map((A) => /* @__PURE__ */ r.jsx("td", { className: "p-3 text-[10px] font-medium text-slate-300", children: A.toLowerCase() === "status" ? /* @__PURE__ */ r.jsx("span", { className: he(
4024
4026
  "px-1.5 py-0.5 rounded-full text-[8px] font-black uppercase tracking-widest",
4025
- n[s] === "Nominal" ? "bg-emerald-500/20 text-emerald-500" : "bg-amber-500/20 text-amber-500"
4026
- ), children: n[s] }) : n[s] }, s)) }, i)) })
4027
+ n[A] === "Nominal" ? "bg-emerald-500/20 text-emerald-500" : "bg-amber-500/20 text-amber-500"
4028
+ ), children: n[A] }) : n[A] }, A)) }, i)) })
4027
4029
  ] }) }) });
4028
- }, Pa = ({ usage: e, rawPayload: a }) => {
4029
- const [n, i] = Ae(!1), s = () => {
4030
+ }, Da = ({ usage: e, rawPayload: a }) => {
4031
+ const [n, i] = Ae(!1), A = () => {
4030
4032
  navigator.clipboard.writeText(JSON.stringify(a, null, 2)), i(!0), ut.success("Neural payload copied to clipboard"), setTimeout(() => i(!1), 2e3);
4031
4033
  };
4032
4034
  return /* @__PURE__ */ r.jsxs("div", { className: "mt-8 pt-6 border-t border-white/5 flex items-center justify-between", children: [
@@ -4043,7 +4045,7 @@ ${h.diagram}`)) : te = String(h);
4043
4045
  /* @__PURE__ */ r.jsxs(
4044
4046
  "button",
4045
4047
  {
4046
- onClick: s,
4048
+ onClick: A,
4047
4049
  className: "flex items-center gap-2 px-3 py-1.5 rounded-lg bg-white/5 border border-white/10 text-[9px] font-black uppercase tracking-widest text-slate-400 hover:text-amber-500 hover:bg-amber-500/5 hover:border-amber-500/20 transition-all",
4048
4050
  children: [
4049
4051
  n ? /* @__PURE__ */ r.jsx(or, { size: 12, className: "text-emerald-500" }) : /* @__PURE__ */ r.jsx(ir, { size: 12 }),
@@ -4053,29 +4055,29 @@ ${h.diagram}`)) : te = String(h);
4053
4055
  )
4054
4056
  ] });
4055
4057
  }, Na = ({ onClose: e, onMinimize: a }) => {
4056
- const n = Gt(Mt), [i, s] = Ae(!1), [c, d] = Ae(!1), A = St(null);
4058
+ const n = Gt(Tt), [i, A] = Ae(!1), [c, u] = Ae(!1), s = St(null);
4057
4059
  if (!n) return null;
4058
4060
  const {
4059
- messages: f,
4061
+ messages: d,
4060
4062
  input: p,
4061
4063
  setInput: v,
4062
4064
  isProcessing: b,
4063
- activeVariant: T,
4065
+ activeVariant: M,
4064
4066
  setActiveVariant: o,
4065
4067
  handleSend: Q,
4066
4068
  payloadConfig: w,
4067
- updatePayloadConfig: M,
4069
+ updatePayloadConfig: T,
4068
4070
  samples: X,
4069
- selectedSampleId: D,
4071
+ selectedSampleId: P,
4070
4072
  applySample: ee,
4071
4073
  clearChat: R,
4072
4074
  isAuthorized: k
4073
- } = Ba(), [P, Y] = Ae(w), [ne, W] = Ae(T);
4075
+ } = Ba(), [D, Y] = Ae(w), [ne, W] = Ae(M);
4074
4076
  Ie(() => {
4075
- i && (Y(w), W(T));
4077
+ i && (Y(w), W(M));
4076
4078
  }, [i]);
4077
4079
  const oe = () => {
4078
- o(ne), M(P), s(!1);
4080
+ o(ne), T(D), A(!1);
4079
4081
  }, te = [
4080
4082
  { id: "SOFTWARE_DEV", name: "Software & Cloud" },
4081
4083
  { id: "FINANCE", name: "Finance & Quants" },
@@ -4085,11 +4087,11 @@ ${h.diagram}`)) : te = String(h);
4085
4087
  { id: "RETAIL", name: "Retail & Commerce" }
4086
4088
  ], h = () => {
4087
4089
  var g;
4088
- (g = A.current) == null || g.scrollIntoView({ behavior: "smooth" });
4090
+ (g = s.current) == null || g.scrollIntoView({ behavior: "smooth" });
4089
4091
  };
4090
4092
  Ie(() => {
4091
4093
  h();
4092
- }, [f, b]);
4094
+ }, [d, b]);
4093
4095
  const re = (g) => g.isDataDriven ? " [DATA]" : " [PROMPT]", H = ({ msg: g }) => {
4094
4096
  const { content: V, rawPayload: S, usage: fe } = g, C = V.split(/(?=### )/g), J = (Z) => Z.includes("```mermaid") ? Z.split(/```mermaid([\s\S]*?)```/).map((O, N) => N % 2 === 1 ? /* @__PURE__ */ r.jsx(Ct, { chart: O.trim() }, N) : /* @__PURE__ */ r.jsx("div", { children: J(O) }, N)) : Z.split(`
4095
4097
  `).map((E, O) => {
@@ -4133,13 +4135,13 @@ ${h.diagram}`)) : te = String(h);
4133
4135
  return /* @__PURE__ */ r.jsx("div", { children: J(Z) }, E);
4134
4136
  }),
4135
4137
  S && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4136
- S.tasks && /* @__PURE__ */ r.jsx(Da, { tasks: S.tasks, team: S.team }),
4138
+ S.tasks && /* @__PURE__ */ r.jsx(Pa, { tasks: S.tasks, team: S.team }),
4137
4139
  S.nodes && /* @__PURE__ */ r.jsx(Bt, { data: S.nodes }),
4138
4140
  S.metrics && /* @__PURE__ */ r.jsx(Bt, { data: S.metrics }),
4139
4141
  Array.isArray(S.data) && /* @__PURE__ */ r.jsx(Bt, { data: S.data }),
4140
4142
  S.diagram && /* @__PURE__ */ r.jsx(Ct, { chart: S.diagram })
4141
4143
  ] }),
4142
- /* @__PURE__ */ r.jsx(Pa, { usage: fe, rawPayload: S })
4144
+ /* @__PURE__ */ r.jsx(Da, { usage: fe, rawPayload: S })
4143
4145
  ] });
4144
4146
  };
4145
4147
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -4195,7 +4197,7 @@ ${h.diagram}`)) : te = String(h);
4195
4197
  /* @__PURE__ */ r.jsx(
4196
4198
  "button",
4197
4199
  {
4198
- onClick: () => s(!i),
4200
+ onClick: () => A(!i),
4199
4201
  className: he(
4200
4202
  "p-2 rounded-lg transition-all",
4201
4203
  i ? "bg-amber-500/20 text-amber-500" : "text-slate-400 hover:text-white hover:bg-white/5"
@@ -4227,17 +4229,17 @@ ${h.diagram}`)) : te = String(h);
4227
4229
  onClick: () => o(g),
4228
4230
  className: he(
4229
4231
  "px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest transition-all whitespace-nowrap border",
4230
- T === g ? "shadow-[0_0_15px_rgba(212,175,55,0.3)] border-amber-500" : "text-slate-400 border-white/5 hover:border-white/20 hover:text-white"
4232
+ M === g ? "shadow-[0_0_15px_rgba(212,175,55,0.3)] border-amber-500" : "text-slate-400 border-white/5 hover:border-white/20 hover:text-white"
4231
4233
  ),
4232
4234
  style: {
4233
- backgroundColor: T === g ? "#d4af37" : "transparent",
4234
- color: T === g ? "black" : void 0
4235
+ backgroundColor: M === g ? "#d4af37" : "transparent",
4236
+ color: M === g ? "black" : void 0
4235
4237
  },
4236
4238
  children: g
4237
4239
  },
4238
4240
  g
4239
4241
  )) }),
4240
- /* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto eva-agent-scrollbar p-6 space-y-6 relative", children: k ? f.length === 0 ? /* @__PURE__ */ r.jsxs("div", { className: "h-full flex flex-col items-center justify-center text-center p-8 space-y-8", children: [
4242
+ /* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto eva-agent-scrollbar p-6 space-y-6 relative", children: k ? d.length === 0 ? /* @__PURE__ */ r.jsxs("div", { className: "h-full flex flex-col items-center justify-center text-center p-8 space-y-8", children: [
4241
4243
  /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
4242
4244
  /* @__PURE__ */ r.jsx("div", { className: "absolute inset-0 bg-amber-500/5 rounded-full blur-3xl animate-pulse" }),
4243
4245
  /* @__PURE__ */ r.jsx(yt, { size: 64, className: "text-amber-500/20 relative z-10" })
@@ -4260,7 +4262,7 @@ ${h.diagram}`)) : te = String(h);
4260
4262
  V
4261
4263
  )) })
4262
4264
  ] }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4263
- f.map((g, V) => /* @__PURE__ */ r.jsxs("div", { className: he(
4265
+ d.map((g, V) => /* @__PURE__ */ r.jsxs("div", { className: he(
4264
4266
  "flex flex-col space-y-2",
4265
4267
  g.role === "user" ? "items-end" : "items-start"
4266
4268
  ), children: [
@@ -4317,13 +4319,13 @@ ${h.diagram}`)) : te = String(h);
4317
4319
  ] })
4318
4320
  ] })
4319
4321
  ] }),
4320
- /* @__PURE__ */ r.jsx("div", { ref: A })
4322
+ /* @__PURE__ */ r.jsx("div", { ref: s })
4321
4323
  ] }) : /* @__PURE__ */ r.jsxs("div", { className: "h-full flex flex-col items-center justify-center text-center p-8 space-y-4", children: [
4322
4324
  /* @__PURE__ */ r.jsx(cr, { size: 48, className: "text-rose-500/40 mb-2" }),
4323
4325
  /* @__PURE__ */ r.jsx("h4", { className: "text-sm font-black text-white uppercase tracking-widest", children: "Neural Link Restricted" }),
4324
4326
  /* @__PURE__ */ r.jsx("p", { className: "text-[10px] text-slate-500 uppercase tracking-widest leading-relaxed max-w-[240px]", children: "Authentication failed. Please verify your API Key context to re-establish the neural link." })
4325
4327
  ] }) }),
4326
- /* @__PURE__ */ r.jsx(Dt, { children: i && /* @__PURE__ */ r.jsxs(
4328
+ /* @__PURE__ */ r.jsx(Pt, { children: i && /* @__PURE__ */ r.jsxs(
4327
4329
  Ge.div,
4328
4330
  {
4329
4331
  initial: { y: "100%" },
@@ -4336,7 +4338,7 @@ ${h.diagram}`)) : te = String(h);
4336
4338
  /* @__PURE__ */ r.jsx(dr, { size: 14, className: "text-amber-500" }),
4337
4339
  "Neural Configuration"
4338
4340
  ] }),
4339
- /* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), className: "text-slate-400 hover:text-white", children: /* @__PURE__ */ r.jsx(Et, { size: 16 }) })
4341
+ /* @__PURE__ */ r.jsx("button", { onClick: () => A(!1), className: "text-slate-400 hover:text-white", children: /* @__PURE__ */ r.jsx(Et, { size: 16 }) })
4340
4342
  ] }),
4341
4343
  /* @__PURE__ */ r.jsxs("div", { className: "flex-1 p-6 space-y-6 overflow-y-auto eva-agent-scrollbar", children: [
4342
4344
  /* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
@@ -4358,7 +4360,7 @@ ${h.diagram}`)) : te = String(h);
4358
4360
  /* @__PURE__ */ r.jsx(
4359
4361
  "select",
4360
4362
  {
4361
- value: P.vertical,
4363
+ value: D.vertical,
4362
4364
  onChange: (g) => Y((V) => ({ ...V, vertical: g.target.value })),
4363
4365
  className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-white outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
4364
4366
  style: { color: "white", backgroundColor: "#0a0a20" },
@@ -4371,7 +4373,7 @@ ${h.diagram}`)) : te = String(h);
4371
4373
  /* @__PURE__ */ r.jsxs(
4372
4374
  "select",
4373
4375
  {
4374
- value: P.focus,
4376
+ value: D.focus,
4375
4377
  onChange: (g) => Y((V) => ({ ...V, focus: g.target.value })),
4376
4378
  className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-white outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
4377
4379
  style: { color: "white", backgroundColor: "#0a0a20" },
@@ -4391,7 +4393,7 @@ ${h.diagram}`)) : te = String(h);
4391
4393
  /* @__PURE__ */ r.jsxs(
4392
4394
  "select",
4393
4395
  {
4394
- value: D,
4396
+ value: P,
4395
4397
  onChange: (g) => {
4396
4398
  ee(g.target.value);
4397
4399
  },
@@ -4412,7 +4414,7 @@ ${h.diagram}`)) : te = String(h);
4412
4414
  /* @__PURE__ */ r.jsx(
4413
4415
  "textarea",
4414
4416
  {
4415
- value: P.data ? typeof P.data == "string" ? P.data : JSON.stringify(P.data, null, 2) : "",
4417
+ value: D.data ? typeof D.data == "string" ? D.data : JSON.stringify(D.data, null, 2) : "",
4416
4418
  onChange: (g) => {
4417
4419
  Y((V) => ({ ...V, data: g.target.value }));
4418
4420
  },
@@ -4423,7 +4425,7 @@ ${h.diagram}`)) : te = String(h);
4423
4425
  ] }),
4424
4426
  /* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
4425
4427
  /* @__PURE__ */ r.jsx("label", { className: "text-[8px] font-black text-slate-500 uppercase tracking-widest ml-1", children: "Current Neural Prompt (Preview)" }),
4426
- /* @__PURE__ */ r.jsx("div", { className: "w-full bg-amber-500/5 border border-amber-500/10 rounded-xl p-4 text-[10px] font-medium text-slate-300 min-h-[60px] max-h-[120px] overflow-y-auto italic leading-relaxed", children: p || (D ? "Neural template active. Ready for synthesis." : "Type in chat to preview prompt...") })
4428
+ /* @__PURE__ */ r.jsx("div", { className: "w-full bg-amber-500/5 border border-amber-500/10 rounded-xl p-4 text-[10px] font-medium text-slate-300 min-h-[60px] max-h-[120px] overflow-y-auto italic leading-relaxed", children: p || (P ? "Neural template active. Ready for synthesis." : "Type in chat to preview prompt...") })
4427
4429
  ] }),
4428
4430
  /* @__PURE__ */ r.jsxs("div", { className: "pt-4 pb-8", children: [
4429
4431
  /* @__PURE__ */ r.jsxs(
@@ -4443,7 +4445,7 @@ ${h.diagram}`)) : te = String(h);
4443
4445
  /* @__PURE__ */ r.jsx("div", { className: "p-6", children: /* @__PURE__ */ r.jsx(
4444
4446
  "button",
4445
4447
  {
4446
- onClick: () => s(!1),
4448
+ onClick: () => A(!1),
4447
4449
  className: "w-full h-12 rounded-xl bg-amber-500 hover:bg-amber-600 text-black text-[10px] font-black uppercase tracking-widest shadow-xl shadow-amber-500/20 transition-all active:scale-[0.98]",
4448
4450
  children: "Confirm Configuration"
4449
4451
  }
@@ -4495,7 +4497,7 @@ ${h.diagram}`)) : te = String(h);
4495
4497
  }
4496
4498
  )
4497
4499
  ] });
4498
- }, Ta = {
4500
+ }, Ma = {
4499
4501
  PROD: "https://evafusion-live.esteviatech.com",
4500
4502
  DEV: "https://api-dev.protrack.esteviatech.com",
4501
4503
  QA: "https://api-qa.protrack.esteviatech.com",
@@ -4505,38 +4507,38 @@ ${h.diagram}`)) : te = String(h);
4505
4507
  apiKey: a,
4506
4508
  baseUrl: n,
4507
4509
  environment: i = "PROD",
4508
- persist: s = !0,
4510
+ persist: A = !0,
4509
4511
  theme: c = "dark"
4510
- } = e, [d, A] = Ae(!1), [f, p] = Ae(!1), v = It(() => {
4512
+ } = e, [u, s] = Ae(!1), [d, p] = Ae(!1), v = It(() => {
4511
4513
  if (!a) return null;
4512
- const b = n || Ta[i];
4514
+ const b = n || Ma[i];
4513
4515
  return new rr({
4514
4516
  apiKey: a,
4515
4517
  baseUrl: b,
4516
4518
  environment: i
4517
4519
  });
4518
4520
  }, [a, n, i]);
4519
- return /* @__PURE__ */ r.jsx(Mt.Provider, { value: {
4521
+ return /* @__PURE__ */ r.jsx(Tt.Provider, { value: {
4520
4522
  client: v,
4521
- isOpen: d,
4522
- setIsOpen: A,
4523
- isMinimized: f,
4523
+ isOpen: u,
4524
+ setIsOpen: s,
4525
+ isMinimized: d,
4524
4526
  setIsMinimized: p,
4525
4527
  config: e
4526
4528
  }, children: /* @__PURE__ */ r.jsxs("div", { className: "eva-fusion-agent-root", children: [
4527
4529
  /* @__PURE__ */ r.jsx(Yr, { position: "top-center", richColors: !0 }),
4528
- /* @__PURE__ */ r.jsx(Dt, { children: (!d || f) && /* @__PURE__ */ r.jsx(
4530
+ /* @__PURE__ */ r.jsx(Pt, { children: (!u || d) && /* @__PURE__ */ r.jsx(
4529
4531
  Vr,
4530
4532
  {
4531
4533
  onClick: () => {
4532
- A(!0), p(!1);
4534
+ s(!0), p(!1);
4533
4535
  }
4534
4536
  }
4535
4537
  ) }),
4536
- /* @__PURE__ */ r.jsx(Dt, { children: d && !f && /* @__PURE__ */ r.jsx(
4538
+ /* @__PURE__ */ r.jsx(Pt, { children: u && !d && /* @__PURE__ */ r.jsx(
4537
4539
  Na,
4538
4540
  {
4539
- onClose: () => A(!1),
4541
+ onClose: () => s(!1),
4540
4542
  onMinimize: () => p(!0)
4541
4543
  }
4542
4544
  ) })