ordify-chat-widget 1.0.46 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- var An = Object.defineProperty;
2
- var Tn = (e, t, r) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var gt = (e, t, r) => Tn(e, typeof t != "symbol" ? t + "" : t, r);
4
- import * as Ot from "react";
5
- import F, { useState as J, useRef as ae, useEffect as De, useCallback as Z, useMemo as Bt, forwardRef as Lr, createElement as Ze, useContext as Fr, useImperativeHandle as En, useLayoutEffect as Mn, createContext as _n } from "react";
6
- var Kr = { exports: {} }, nt = {};
1
+ var Tn = Object.defineProperty;
2
+ var En = (e, t, r) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var bt = (e, t, r) => En(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import * as Bt from "react";
5
+ import F, { useState as J, useRef as ae, useEffect as De, useCallback as Z, useMemo as Pt, forwardRef as Fr, createElement as Je, useContext as Kr, useImperativeHandle as Mn, useLayoutEffect as _n, createContext as Rn } from "react";
6
+ var Wr = { exports: {} }, ot = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -13,42 +13,42 @@ var Kr = { exports: {} }, nt = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var Rn = F, zn = Symbol.for("react.element"), Dn = Symbol.for("react.fragment"), Nn = Object.prototype.hasOwnProperty, On = Rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Bn = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function Wr(e, t, r) {
16
+ var zn = F, Dn = Symbol.for("react.element"), On = Symbol.for("react.fragment"), Nn = Object.prototype.hasOwnProperty, Bn = zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Pn = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function Ur(e, t, r) {
18
18
  var n, a = {}, c = null, u = null;
19
19
  r !== void 0 && (c = "" + r), t.key !== void 0 && (c = "" + t.key), t.ref !== void 0 && (u = t.ref);
20
- for (n in t) Nn.call(t, n) && !Bn.hasOwnProperty(n) && (a[n] = t[n]);
20
+ for (n in t) Nn.call(t, n) && !Pn.hasOwnProperty(n) && (a[n] = t[n]);
21
21
  if (e && e.defaultProps) for (n in t = e.defaultProps, t) a[n] === void 0 && (a[n] = t[n]);
22
- return { $$typeof: zn, type: e, key: c, ref: u, props: a, _owner: On.current };
23
- }
24
- nt.Fragment = Dn;
25
- nt.jsx = Wr;
26
- nt.jsxs = Wr;
27
- Kr.exports = nt;
28
- var l = Kr.exports;
29
- function We() {
22
+ return { $$typeof: Dn, type: e, key: c, ref: u, props: a, _owner: Bn.current };
23
+ }
24
+ ot.Fragment = On;
25
+ ot.jsx = Ur;
26
+ ot.jsxs = Ur;
27
+ Wr.exports = ot;
28
+ var l = Wr.exports;
29
+ function Ue() {
30
30
  return Math.random().toString(36).substr(2, 9);
31
31
  }
32
- function si(e) {
32
+ function ii(e) {
33
33
  return new Intl.DateTimeFormat("en-US", {
34
34
  hour: "2-digit",
35
35
  minute: "2-digit",
36
36
  hour12: !0
37
37
  }).format(e);
38
38
  }
39
- function ii(e, t) {
39
+ function ci(e, t) {
40
40
  let r;
41
41
  return (...n) => {
42
42
  clearTimeout(r), r = setTimeout(() => e(...n), t);
43
43
  };
44
44
  }
45
- function ci(e, t) {
45
+ function li(e, t) {
46
46
  let r;
47
47
  return (...n) => {
48
48
  r || (e(...n), r = !0, setTimeout(() => r = !1, t));
49
49
  };
50
50
  }
51
- function Pn(e) {
51
+ function Ln(e) {
52
52
  return {
53
53
  id: e.id,
54
54
  name: e.name,
@@ -60,10 +60,10 @@ function Pn(e) {
60
60
  oauth_token: null
61
61
  };
62
62
  }
63
- class Ln {
63
+ class Fn {
64
64
  constructor(t) {
65
- gt(this, "config");
66
- gt(this, "warnedLegacyApiKey", !1);
65
+ bt(this, "config");
66
+ bt(this, "warnedLegacyApiKey", !1);
67
67
  if (this.config = t, !this.config.publishableKey && !this.config.apiKey)
68
68
  throw new Error("Either publishableKey or apiKey is required.");
69
69
  this.config.publishableKey && this.config.apiKey && console.warn("[Ordify] Both publishableKey and apiKey provided. publishableKey will be used.");
@@ -88,7 +88,7 @@ class Ln {
88
88
  });
89
89
  }
90
90
  async sendMessage(t, r, n, a) {
91
- const c = this.usePublishableKey() ? `/widget/chat/${this.config.agentId}` : `/chat/agents/${this.config.agentId}`, u = `${this.config.apiBaseUrl}${c}`, d = a != null && a.length ? a.map(Pn) : void 0, h = {
91
+ const c = this.usePublishableKey() ? `/widget/chat/${this.config.agentId}` : `/chat/agents/${this.config.agentId}`, u = `${this.config.apiBaseUrl}${c}`, d = a != null && a.length ? a.map(Ln) : void 0, h = {
92
92
  message: t,
93
93
  sessionId: r,
94
94
  context: n
@@ -201,7 +201,7 @@ class Ln {
201
201
  return r.json();
202
202
  }
203
203
  }
204
- function Fn(e) {
204
+ function Kn(e) {
205
205
  try {
206
206
  if (e.startsWith("data: ")) {
207
207
  const t = e.slice(6).trim();
@@ -215,18 +215,18 @@ function Fn(e) {
215
215
  }
216
216
  return null;
217
217
  }
218
- function ar(e) {
218
+ function sr(e) {
219
219
  const t = (e.attachments || []).map((r) => r.id).join("|");
220
220
  return `${e.role}:${e.content.trim()}:${t}`;
221
221
  }
222
- function Kn(e) {
222
+ function Wn(e) {
223
223
  const t = e.attachments;
224
224
  if (!t || !Array.isArray(t) || t.length === 0) return;
225
225
  const r = [];
226
226
  for (const n of t) {
227
227
  const a = n.url || "";
228
228
  a && r.push({
229
- id: n.id || We(),
229
+ id: n.id || Ue(),
230
230
  name: String(n.name || "attachment"),
231
231
  type: n.type === "image" ? "image" : "document",
232
232
  url: a,
@@ -237,9 +237,9 @@ function Kn(e) {
237
237
  }
238
238
  return r.length ? r : void 0;
239
239
  }
240
- function Wn(e) {
240
+ function Un(e) {
241
241
  const [t, r] = J([]), [n, a] = J(!1), [c, u] = J(null), [d, h] = J(e.sessionId || null), [g, b] = J(!1), [p, w] = J(!1), [k, $] = J(!1), [j, S] = J(!1), [o, i] = J(!1), s = ae(null), f = ae(""), m = ae(!1), y = ae(!1), x = ae(!1), A = `${e.publishableKey ?? ""}|${e.apiKey ?? ""}|${e.apiBaseUrl ?? ""}|${e.agentId}`;
242
- f.current !== A && (s.current = null, f.current = A), s.current || (s.current = new Ln({
242
+ f.current !== A && (s.current = null, f.current = A), s.current || (s.current = new Fn({
243
243
  publishableKey: e.publishableKey,
244
244
  apiKey: e.apiKey,
245
245
  apiBaseUrl: e.apiBaseUrl || "https://api.ordify.ai",
@@ -270,29 +270,29 @@ function Wn(e) {
270
270
  try {
271
271
  const v = await s.current.getSessionWithMessages(D);
272
272
  if (v.messages && v.messages.length > 0) {
273
- const N = v.messages.map((R) => ({
274
- id: R.id || We(),
273
+ const O = v.messages.map((R) => ({
274
+ id: R.id || Ue(),
275
275
  content: R.content || "",
276
276
  role: R.role === "assistant" ? "assistant" : "user",
277
277
  timestamp: R.timestamp ? new Date(R.timestamp) : /* @__PURE__ */ new Date(),
278
278
  sessionId: D,
279
- attachments: Kn(R)
279
+ attachments: Wn(R)
280
280
  }));
281
281
  r((R) => {
282
282
  if (R.length > 0) {
283
- const W = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
283
+ const W = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
284
284
  return R.forEach((z) => {
285
285
  W.set(z.id, z);
286
- const U = ar(z);
287
- O.has(U) || O.set(U, z);
288
- }), N.forEach((z) => {
289
- const U = ar(z);
290
- !W.has(z.id) && !O.has(U) ? (W.set(z.id, z), O.set(U, z)) : W.has(z.id) && W.set(z.id, z);
286
+ const U = sr(z);
287
+ N.has(U) || N.set(U, z);
288
+ }), O.forEach((z) => {
289
+ const U = sr(z);
290
+ !W.has(z.id) && !N.has(U) ? (W.set(z.id, z), N.set(U, z)) : W.has(z.id) && W.set(z.id, z);
291
291
  }), Array.from(W.values()).sort(
292
292
  (z, U) => z.timestamp.getTime() - U.timestamp.getTime()
293
293
  );
294
294
  }
295
- return N;
295
+ return O;
296
296
  }), $(!0), i(!0);
297
297
  } else
298
298
  $(!1);
@@ -311,12 +311,12 @@ function Wn(e) {
311
311
  return s.current.uploadAttachment(I);
312
312
  }, []), P = Z(
313
313
  async (I, D, H) => {
314
- const v = I.trim(), N = !!(H && H.length > 0);
315
- if (!(!v && !N || n)) {
314
+ const v = I.trim(), O = !!(H && H.length > 0);
315
+ if (!(!v && !O || n)) {
316
316
  a(!0), u(null);
317
317
  try {
318
318
  const R = H != null && H.length ? H.map((V) => ({ ...V })) : void 0, W = {
319
- id: We(),
319
+ id: Ue(),
320
320
  content: v,
321
321
  role: "user",
322
322
  timestamp: /* @__PURE__ */ new Date(),
@@ -324,20 +324,20 @@ function Wn(e) {
324
324
  attachments: R
325
325
  };
326
326
  r((V) => [...V, W]), i(!0);
327
- let O = d || e.sessionId || null;
328
- O ? O !== d && h(O) : (O = (await s.current.createSession()).id, C.current.add(O), e.onSessionCreated && e.onSessionCreated(O)), x.current = !0;
327
+ let N = d || e.sessionId || null;
328
+ N ? N !== d && h(N) : (N = (await s.current.createSession()).id, C.current.add(N), e.onSessionCreated && e.onSessionCreated(N)), x.current = !0;
329
329
  const z = (await s.current.sendMessage(
330
330
  v || "(see attachments)",
331
- O,
331
+ N,
332
332
  D,
333
333
  R
334
334
  )).getReader(), U = new TextDecoder();
335
335
  let Q = {
336
- id: We(),
336
+ id: Ue(),
337
337
  content: "",
338
338
  role: "assistant",
339
339
  timestamp: /* @__PURE__ */ new Date(),
340
- sessionId: O
340
+ sessionId: N
341
341
  };
342
342
  for (r((V) => [...V, Q]); ; ) {
343
343
  const { done: V, value: ie } = await z.read();
@@ -346,7 +346,7 @@ function Wn(e) {
346
346
  `);
347
347
  for (const ke of ce) {
348
348
  if (!ke.trim()) continue;
349
- const ne = Fn(ke);
349
+ const ne = Kn(ke);
350
350
  if (ne) {
351
351
  if (ne.type === "stream" && ne.text)
352
352
  Q.content += ne.text, r((ee) => ee.find((_e) => _e.id === Q.id) ? ee.map(
@@ -357,7 +357,7 @@ function Wn(e) {
357
357
  }
358
358
  }
359
359
  }
360
- O && O !== d && h(O), e.onMessage && e.onMessage(Q);
360
+ N && N !== d && h(N), e.onMessage && e.onMessage(Q);
361
361
  } catch (R) {
362
362
  const W = R instanceof Error ? R.message : "Failed to send message";
363
363
  u(W), e.onError && e.onError(R instanceof Error ? R : new Error(W));
@@ -372,17 +372,17 @@ function Wn(e) {
372
372
  const D = !(d || e.sessionId) || !k, H = e.quickQuestions && e.quickQuestions.length > 0;
373
373
  if ((e.initialMessage || e.initialContext) && D && !p && !n && !j && !m.current && y.current && !H) {
374
374
  w(!0), m.current = !0;
375
- let v, N;
375
+ let v, O;
376
376
  if (e.initialMessage && e.initialContext)
377
- v = e.initialMessage, N = e.initialContext;
377
+ v = e.initialMessage, O = e.initialContext;
378
378
  else if (e.initialMessage)
379
- v = e.initialMessage, N = void 0;
379
+ v = e.initialMessage, O = void 0;
380
380
  else if (e.initialContext)
381
- v = "Hi", N = e.initialContext;
381
+ v = "Hi", O = e.initialContext;
382
382
  else
383
383
  return;
384
384
  setTimeout(() => {
385
- P(v, N);
385
+ P(v, O);
386
386
  }, 0);
387
387
  }
388
388
  }, [e.initialMessage, e.initialContext, p, n, j, k, d, e.sessionId, P]), {
@@ -398,9 +398,15 @@ function Wn(e) {
398
398
  hasSessionStarted: o
399
399
  };
400
400
  }
401
- function Un(e) {
402
- return Bt(() => {
403
- const t = e.agentId || process.env.ORDIFY_AGENT_ID, r = e.publishableKey || process.env.ORDIFY_PUBLISHABLE_KEY, n = e.apiKey || process.env.ORDIFY_API_KEY, a = e.apiBaseUrl || process.env.ORDIFY_API_BASE_URL || "https://r.ordify.ai";
401
+ function Le(e) {
402
+ if (typeof process > "u" || !process.env)
403
+ return;
404
+ const t = process.env[e];
405
+ return typeof t == "string" && t.length > 0 ? t : void 0;
406
+ }
407
+ function Hn(e) {
408
+ return Pt(() => {
409
+ const t = e.agentId || Le("ORDIFY_AGENT_ID"), r = e.publishableKey || Le("ORDIFY_PUBLISHABLE_KEY"), n = e.apiKey || Le("ORDIFY_API_KEY"), a = e.apiBaseUrl || Le("ORDIFY_API_BASE_URL") || "https://r.ordify.ai";
404
410
  if (!t)
405
411
  throw new Error("Ordify agent ID is required. Provide agentId prop or set ORDIFY_AGENT_ID environment variable.");
406
412
  if (!r && !n)
@@ -448,13 +454,13 @@ function Un(e) {
448
454
  * This source code is licensed under the ISC license.
449
455
  * See the LICENSE file in the root directory of this source tree.
450
456
  */
451
- const Hn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qn = (e) => e.replace(
457
+ const qn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Gn = (e) => e.replace(
452
458
  /^([A-Z])|[\s-_]+(\w)/g,
453
459
  (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
454
- ), sr = (e) => {
455
- const t = qn(e);
460
+ ), ir = (e) => {
461
+ const t = Gn(e);
456
462
  return t.charAt(0).toUpperCase() + t.slice(1);
457
- }, Ur = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Gn = (e) => {
463
+ }, Hr = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Yn = (e) => {
458
464
  for (const t in e)
459
465
  if (t.startsWith("aria-") || t === "role" || t === "title")
460
466
  return !0;
@@ -465,7 +471,7 @@ const Hn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qn = (
465
471
  * This source code is licensed under the ISC license.
466
472
  * See the LICENSE file in the root directory of this source tree.
467
473
  */
468
- var Yn = {
474
+ var Qn = {
469
475
  xmlns: "http://www.w3.org/2000/svg",
470
476
  width: 24,
471
477
  height: 24,
@@ -482,7 +488,7 @@ var Yn = {
482
488
  * This source code is licensed under the ISC license.
483
489
  * See the LICENSE file in the root directory of this source tree.
484
490
  */
485
- const Qn = Lr(
491
+ const Vn = Fr(
486
492
  ({
487
493
  color: e = "currentColor",
488
494
  size: t = 24,
@@ -492,21 +498,21 @@ const Qn = Lr(
492
498
  children: c,
493
499
  iconNode: u,
494
500
  ...d
495
- }, h) => Ze(
501
+ }, h) => Je(
496
502
  "svg",
497
503
  {
498
504
  ref: h,
499
- ...Yn,
505
+ ...Qn,
500
506
  width: t,
501
507
  height: t,
502
508
  stroke: e,
503
509
  strokeWidth: n ? Number(r) * 24 / Number(t) : r,
504
- className: Ur("lucide", a),
505
- ...!c && !Gn(d) && { "aria-hidden": "true" },
510
+ className: Hr("lucide", a),
511
+ ...!c && !Yn(d) && { "aria-hidden": "true" },
506
512
  ...d
507
513
  },
508
514
  [
509
- ...u.map(([g, b]) => Ze(g, b)),
515
+ ...u.map(([g, b]) => Je(g, b)),
510
516
  ...Array.isArray(c) ? c : [c]
511
517
  ]
512
518
  )
@@ -517,20 +523,20 @@ const Qn = Lr(
517
523
  * This source code is licensed under the ISC license.
518
524
  * See the LICENSE file in the root directory of this source tree.
519
525
  */
520
- const ot = (e, t) => {
521
- const r = Lr(
522
- ({ className: n, ...a }, c) => Ze(Qn, {
526
+ const at = (e, t) => {
527
+ const r = Fr(
528
+ ({ className: n, ...a }, c) => Je(Vn, {
523
529
  ref: c,
524
530
  iconNode: t,
525
- className: Ur(
526
- `lucide-${Hn(sr(e))}`,
531
+ className: Hr(
532
+ `lucide-${qn(ir(e))}`,
527
533
  `lucide-${e}`,
528
534
  n
529
535
  ),
530
536
  ...a
531
537
  })
532
538
  );
533
- return r.displayName = sr(e), r;
539
+ return r.displayName = ir(e), r;
534
540
  };
535
541
  /**
536
542
  * @license lucide-react v0.544.0 - ISC
@@ -538,31 +544,31 @@ const ot = (e, t) => {
538
544
  * This source code is licensed under the ISC license.
539
545
  * See the LICENSE file in the root directory of this source tree.
540
546
  */
541
- const Vn = [
547
+ const Zn = [
542
548
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
543
549
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
544
550
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
545
551
  ["path", { d: "M16 13H8", key: "t4e002" }],
546
552
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
547
- ], Zn = ot("file-text", Vn);
553
+ ], Jn = at("file-text", Zn);
548
554
  /**
549
555
  * @license lucide-react v0.544.0 - ISC
550
556
  *
551
557
  * This source code is licensed under the ISC license.
552
558
  * See the LICENSE file in the root directory of this source tree.
553
559
  */
554
- const Jn = [
560
+ const Xn = [
555
561
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
556
562
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
557
563
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
558
- ], Xn = ot("image", Jn);
564
+ ], eo = at("image", Xn);
559
565
  /**
560
566
  * @license lucide-react v0.544.0 - ISC
561
567
  *
562
568
  * This source code is licensed under the ISC license.
563
569
  * See the LICENSE file in the root directory of this source tree.
564
570
  */
565
- const eo = [
571
+ const to = [
566
572
  [
567
573
  "path",
568
574
  {
@@ -570,17 +576,17 @@ const eo = [
570
576
  key: "1miecu"
571
577
  }
572
578
  ]
573
- ], to = ot("paperclip", eo);
579
+ ], ro = at("paperclip", to);
574
580
  /**
575
581
  * @license lucide-react v0.544.0 - ISC
576
582
  *
577
583
  * This source code is licensed under the ISC license.
578
584
  * See the LICENSE file in the root directory of this source tree.
579
585
  */
580
- const ro = [
586
+ const no = [
581
587
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
582
588
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
583
- ], no = ot("x", ro);
589
+ ], oo = at("x", no);
584
590
  var X = function() {
585
591
  return X = Object.assign || function(t) {
586
592
  for (var r, n = 1, a = arguments.length; n < a; n++) {
@@ -590,16 +596,16 @@ var X = function() {
590
596
  return t;
591
597
  }, X.apply(this, arguments);
592
598
  };
593
- function Je(e, t, r) {
599
+ function Xe(e, t, r) {
594
600
  if (r || arguments.length === 2) for (var n = 0, a = t.length, c; n < a; n++)
595
601
  (c || !(n in t)) && (c || (c = Array.prototype.slice.call(t, 0, n)), c[n] = t[n]);
596
602
  return e.concat(c || Array.prototype.slice.call(t));
597
603
  }
598
- var L = "-ms-", Ne = "-moz-", B = "-webkit-", Hr = "comm", at = "rule", Pt = "decl", oo = "@import", qr = "@keyframes", ao = "@layer", Gr = Math.abs, Lt = String.fromCharCode, Et = Object.assign;
599
- function so(e, t) {
604
+ var L = "-ms-", Oe = "-moz-", B = "-webkit-", qr = "comm", st = "rule", Lt = "decl", ao = "@import", Gr = "@keyframes", so = "@layer", Yr = Math.abs, Ft = String.fromCharCode, Mt = Object.assign;
605
+ function io(e, t) {
600
606
  return Y(e, 0) ^ 45 ? (((t << 2 ^ Y(e, 0)) << 2 ^ Y(e, 1)) << 2 ^ Y(e, 2)) << 2 ^ Y(e, 3) : 0;
601
607
  }
602
- function Yr(e) {
608
+ function Qr(e) {
603
609
  return e.trim();
604
610
  }
605
611
  function de(e, t) {
@@ -608,7 +614,7 @@ function de(e, t) {
608
614
  function _(e, t, r) {
609
615
  return e.replace(t, r);
610
616
  }
611
- function Ue(e, t, r) {
617
+ function He(e, t, r) {
612
618
  return e.indexOf(t, r);
613
619
  }
614
620
  function Y(e, t) {
@@ -620,51 +626,51 @@ function $e(e, t, r) {
620
626
  function se(e) {
621
627
  return e.length;
622
628
  }
623
- function Qr(e) {
629
+ function Vr(e) {
624
630
  return e.length;
625
631
  }
626
632
  function ze(e, t) {
627
633
  return t.push(e), e;
628
634
  }
629
- function io(e, t) {
635
+ function co(e, t) {
630
636
  return e.map(t).join("");
631
637
  }
632
- function ir(e, t) {
638
+ function cr(e, t) {
633
639
  return e.filter(function(r) {
634
640
  return !de(r, t);
635
641
  });
636
642
  }
637
- var st = 1, Se = 1, Vr = 0, te = 0, G = 0, Me = "";
638
- function it(e, t, r, n, a, c, u, d) {
639
- return { value: e, root: t, parent: r, type: n, props: a, children: c, line: st, column: Se, length: u, return: "", siblings: d };
643
+ var it = 1, Se = 1, Zr = 0, te = 0, G = 0, Me = "";
644
+ function ct(e, t, r, n, a, c, u, d) {
645
+ return { value: e, root: t, parent: r, type: n, props: a, children: c, line: it, column: Se, length: u, return: "", siblings: d };
640
646
  }
641
647
  function fe(e, t) {
642
- return Et(it("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
648
+ return Mt(ct("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
643
649
  }
644
650
  function we(e) {
645
651
  for (; e.root; )
646
652
  e = fe(e.root, { children: [e] });
647
653
  ze(e, e.siblings);
648
654
  }
649
- function co() {
655
+ function lo() {
650
656
  return G;
651
657
  }
652
- function lo() {
653
- return G = te > 0 ? Y(Me, --te) : 0, Se--, G === 10 && (Se = 1, st--), G;
658
+ function uo() {
659
+ return G = te > 0 ? Y(Me, --te) : 0, Se--, G === 10 && (Se = 1, it--), G;
654
660
  }
655
661
  function re() {
656
- return G = te < Vr ? Y(Me, te++) : 0, Se++, G === 10 && (Se = 1, st++), G;
662
+ return G = te < Zr ? Y(Me, te++) : 0, Se++, G === 10 && (Se = 1, it++), G;
657
663
  }
658
664
  function ge() {
659
665
  return Y(Me, te);
660
666
  }
661
- function He() {
667
+ function qe() {
662
668
  return te;
663
669
  }
664
- function ct(e, t) {
670
+ function lt(e, t) {
665
671
  return $e(Me, e, t);
666
672
  }
667
- function Mt(e) {
673
+ function _t(e) {
668
674
  switch (e) {
669
675
  case 0:
670
676
  case 9:
@@ -696,36 +702,36 @@ function Mt(e) {
696
702
  }
697
703
  return 0;
698
704
  }
699
- function uo(e) {
700
- return st = Se = 1, Vr = se(Me = e), te = 0, [];
701
- }
702
705
  function po(e) {
706
+ return it = Se = 1, Zr = se(Me = e), te = 0, [];
707
+ }
708
+ function fo(e) {
703
709
  return Me = "", e;
704
710
  }
705
- function bt(e) {
706
- return Yr(ct(te - 1, _t(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
711
+ function xt(e) {
712
+ return Qr(lt(te - 1, Rt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
707
713
  }
708
- function fo(e) {
714
+ function ho(e) {
709
715
  for (; (G = ge()) && G < 33; )
710
716
  re();
711
- return Mt(e) > 2 || Mt(G) > 3 ? "" : " ";
717
+ return _t(e) > 2 || _t(G) > 3 ? "" : " ";
712
718
  }
713
- function ho(e, t) {
719
+ function mo(e, t) {
714
720
  for (; --t && re() && !(G < 48 || G > 102 || G > 57 && G < 65 || G > 70 && G < 97); )
715
721
  ;
716
- return ct(e, He() + (t < 6 && ge() == 32 && re() == 32));
722
+ return lt(e, qe() + (t < 6 && ge() == 32 && re() == 32));
717
723
  }
718
- function _t(e) {
724
+ function Rt(e) {
719
725
  for (; re(); )
720
726
  switch (G) {
721
727
  case e:
722
728
  return te;
723
729
  case 34:
724
730
  case 39:
725
- e !== 34 && e !== 39 && _t(G);
731
+ e !== 34 && e !== 39 && Rt(G);
726
732
  break;
727
733
  case 40:
728
- e === 41 && _t(e);
734
+ e === 41 && Rt(e);
729
735
  break;
730
736
  case 92:
731
737
  re();
@@ -733,47 +739,47 @@ function _t(e) {
733
739
  }
734
740
  return te;
735
741
  }
736
- function mo(e, t) {
742
+ function go(e, t) {
737
743
  for (; re() && e + G !== 57; )
738
744
  if (e + G === 84 && ge() === 47)
739
745
  break;
740
- return "/*" + ct(t, te - 1) + "*" + Lt(e === 47 ? e : re());
746
+ return "/*" + lt(t, te - 1) + "*" + Ft(e === 47 ? e : re());
741
747
  }
742
- function go(e) {
743
- for (; !Mt(ge()); )
748
+ function bo(e) {
749
+ for (; !_t(ge()); )
744
750
  re();
745
- return ct(e, te);
751
+ return lt(e, te);
746
752
  }
747
- function bo(e) {
748
- return po(qe("", null, null, null, [""], e = uo(e), 0, [0], e));
753
+ function xo(e) {
754
+ return fo(Ge("", null, null, null, [""], e = po(e), 0, [0], e));
749
755
  }
750
- function qe(e, t, r, n, a, c, u, d, h) {
756
+ function Ge(e, t, r, n, a, c, u, d, h) {
751
757
  for (var g = 0, b = 0, p = u, w = 0, k = 0, $ = 0, j = 1, S = 1, o = 1, i = 0, s = "", f = a, m = c, y = n, x = s; S; )
752
758
  switch ($ = i, i = re()) {
753
759
  case 40:
754
760
  if ($ != 108 && Y(x, p - 1) == 58) {
755
- Ue(x += _(bt(i), "&", "&\f"), "&\f", Gr(g ? d[g - 1] : 0)) != -1 && (o = -1);
761
+ He(x += _(xt(i), "&", "&\f"), "&\f", Yr(g ? d[g - 1] : 0)) != -1 && (o = -1);
756
762
  break;
757
763
  }
758
764
  case 34:
759
765
  case 39:
760
766
  case 91:
761
- x += bt(i);
767
+ x += xt(i);
762
768
  break;
763
769
  case 9:
764
770
  case 10:
765
771
  case 13:
766
772
  case 32:
767
- x += fo($);
773
+ x += ho($);
768
774
  break;
769
775
  case 92:
770
- x += ho(He() - 1, 7);
776
+ x += mo(qe() - 1, 7);
771
777
  continue;
772
778
  case 47:
773
779
  switch (ge()) {
774
780
  case 42:
775
781
  case 47:
776
- ze(xo(mo(re(), He()), t, r, h), h);
782
+ ze(yo(go(re(), qe()), t, r, h), h);
777
783
  break;
778
784
  default:
779
785
  x += "/";
@@ -789,24 +795,24 @@ function qe(e, t, r, n, a, c, u, d, h) {
789
795
  case 125:
790
796
  S = 0;
791
797
  case 59 + b:
792
- o == -1 && (x = _(x, /\f/g, "")), k > 0 && se(x) - p && ze(k > 32 ? lr(x + ";", n, r, p - 1, h) : lr(_(x, " ", "") + ";", n, r, p - 2, h), h);
798
+ o == -1 && (x = _(x, /\f/g, "")), k > 0 && se(x) - p && ze(k > 32 ? dr(x + ";", n, r, p - 1, h) : dr(_(x, " ", "") + ";", n, r, p - 2, h), h);
793
799
  break;
794
800
  case 59:
795
801
  x += ";";
796
802
  default:
797
- if (ze(y = cr(x, t, r, g, b, a, d, s, f = [], m = [], p, c), c), i === 123)
803
+ if (ze(y = lr(x, t, r, g, b, a, d, s, f = [], m = [], p, c), c), i === 123)
798
804
  if (b === 0)
799
- qe(x, t, y, y, f, c, p, d, m);
805
+ Ge(x, t, y, y, f, c, p, d, m);
800
806
  else
801
807
  switch (w === 99 && Y(x, 3) === 110 ? 100 : w) {
802
808
  case 100:
803
809
  case 108:
804
810
  case 109:
805
811
  case 115:
806
- qe(e, y, y, n && ze(cr(e, y, y, 0, 0, a, d, s, a, f = [], p, m), m), a, m, p, d, n ? f : m);
812
+ Ge(e, y, y, n && ze(lr(e, y, y, 0, 0, a, d, s, a, f = [], p, m), m), a, m, p, d, n ? f : m);
807
813
  break;
808
814
  default:
809
- qe(x, y, y, y, [""], m, 0, d, m);
815
+ Ge(x, y, y, y, [""], m, 0, d, m);
810
816
  }
811
817
  }
812
818
  g = b = k = 0, j = o = 1, s = x = "", p = u;
@@ -817,10 +823,10 @@ function qe(e, t, r, n, a, c, u, d, h) {
817
823
  if (j < 1) {
818
824
  if (i == 123)
819
825
  --j;
820
- else if (i == 125 && j++ == 0 && lo() == 125)
826
+ else if (i == 125 && j++ == 0 && uo() == 125)
821
827
  continue;
822
828
  }
823
- switch (x += Lt(i), i * j) {
829
+ switch (x += Ft(i), i * j) {
824
830
  case 38:
825
831
  o = b > 0 ? 1 : (x += "\f", -1);
826
832
  break;
@@ -828,7 +834,7 @@ function qe(e, t, r, n, a, c, u, d, h) {
828
834
  d[g++] = (se(x) - 1) * o, o = 1;
829
835
  break;
830
836
  case 64:
831
- ge() === 45 && (x += bt(re())), w = ge(), b = p = se(s = x += go(He())), i++;
837
+ ge() === 45 && (x += xt(re())), w = ge(), b = p = se(s = x += bo(qe())), i++;
832
838
  break;
833
839
  case 45:
834
840
  $ === 45 && se(x) == 2 && (j = 0);
@@ -836,20 +842,20 @@ function qe(e, t, r, n, a, c, u, d, h) {
836
842
  }
837
843
  return c;
838
844
  }
839
- function cr(e, t, r, n, a, c, u, d, h, g, b, p) {
840
- for (var w = a - 1, k = a === 0 ? c : [""], $ = Qr(k), j = 0, S = 0, o = 0; j < n; ++j)
841
- for (var i = 0, s = $e(e, w + 1, w = Gr(S = u[j])), f = e; i < $; ++i)
842
- (f = Yr(S > 0 ? k[i] + " " + s : _(s, /&\f/g, k[i]))) && (h[o++] = f);
843
- return it(e, t, r, a === 0 ? at : d, h, g, b, p);
845
+ function lr(e, t, r, n, a, c, u, d, h, g, b, p) {
846
+ for (var w = a - 1, k = a === 0 ? c : [""], $ = Vr(k), j = 0, S = 0, o = 0; j < n; ++j)
847
+ for (var i = 0, s = $e(e, w + 1, w = Yr(S = u[j])), f = e; i < $; ++i)
848
+ (f = Qr(S > 0 ? k[i] + " " + s : _(s, /&\f/g, k[i]))) && (h[o++] = f);
849
+ return ct(e, t, r, a === 0 ? st : d, h, g, b, p);
844
850
  }
845
- function xo(e, t, r, n) {
846
- return it(e, t, r, Hr, Lt(co()), $e(e, 2, -2), 0, n);
851
+ function yo(e, t, r, n) {
852
+ return ct(e, t, r, qr, Ft(lo()), $e(e, 2, -2), 0, n);
847
853
  }
848
- function lr(e, t, r, n, a) {
849
- return it(e, t, r, Pt, $e(e, 0, n), $e(e, n + 1, -1), n, a);
854
+ function dr(e, t, r, n, a) {
855
+ return ct(e, t, r, Lt, $e(e, 0, n), $e(e, n + 1, -1), n, a);
850
856
  }
851
- function Zr(e, t, r) {
852
- switch (so(e, t)) {
857
+ function Jr(e, t, r) {
858
+ switch (io(e, t)) {
853
859
  case 5103:
854
860
  return B + "print-" + e + e;
855
861
  case 5737:
@@ -879,13 +885,13 @@ function Zr(e, t, r) {
879
885
  case 3829:
880
886
  return B + e + e;
881
887
  case 4789:
882
- return Ne + e + e;
888
+ return Oe + e + e;
883
889
  case 5349:
884
890
  case 4246:
885
891
  case 4810:
886
892
  case 6968:
887
893
  case 2756:
888
- return B + e + Ne + e + L + e + e;
894
+ return B + e + Oe + e + L + e + e;
889
895
  case 5936:
890
896
  switch (Y(e, t + 11)) {
891
897
  case 114:
@@ -932,7 +938,7 @@ function Zr(e, t, r) {
932
938
  case 3616:
933
939
  return r && r.some(function(n, a) {
934
940
  return t = a, de(n.props, /grid-\w+-end/);
935
- }) ? ~Ue(e + (r = r[t].value), "span", 0) ? e : L + _(e, "-start", "") + e + L + "grid-row-span:" + (~Ue(r, "span", 0) ? de(r, /\d+/) : +de(r, /\d+/) - +de(e, /\d+/)) + ";" : L + _(e, "-start", "") + e;
941
+ }) ? ~He(e + (r = r[t].value), "span", 0) ? e : L + _(e, "-start", "") + e + L + "grid-row-span:" + (~He(r, "span", 0) ? de(r, /\d+/) : +de(r, /\d+/) - +de(e, /\d+/)) + ";" : L + _(e, "-start", "") + e;
936
942
  case 4896:
937
943
  case 4128:
938
944
  return r && r.some(function(n) {
@@ -961,9 +967,9 @@ function Zr(e, t, r) {
961
967
  if (Y(e, t + 4) !== 45)
962
968
  break;
963
969
  case 102:
964
- return _(e, /(.+:)(.+)-([^]+)/, "$1" + B + "$2-$3$1" + Ne + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
970
+ return _(e, /(.+:)(.+)-([^]+)/, "$1" + B + "$2-$3$1" + Oe + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
965
971
  case 115:
966
- return ~Ue(e, "stretch", 0) ? Zr(_(e, "stretch", "fill-available"), t, r) + e : e;
972
+ return ~He(e, "stretch", 0) ? Jr(_(e, "stretch", "fill-available"), t, r) + e : e;
967
973
  }
968
974
  break;
969
975
  case 5152:
@@ -992,65 +998,65 @@ function Zr(e, t, r) {
992
998
  }
993
999
  return e;
994
1000
  }
995
- function Xe(e, t) {
1001
+ function et(e, t) {
996
1002
  for (var r = "", n = 0; n < e.length; n++)
997
1003
  r += t(e[n], n, e, t) || "";
998
1004
  return r;
999
1005
  }
1000
- function yo(e, t, r, n) {
1006
+ function ko(e, t, r, n) {
1001
1007
  switch (e.type) {
1002
- case ao:
1008
+ case so:
1003
1009
  if (e.children.length) break;
1004
- case oo:
1005
- case Pt:
1010
+ case ao:
1011
+ case Lt:
1006
1012
  return e.return = e.return || e.value;
1007
- case Hr:
1008
- return "";
1009
1013
  case qr:
1010
- return e.return = e.value + "{" + Xe(e.children, n) + "}";
1011
- case at:
1014
+ return "";
1015
+ case Gr:
1016
+ return e.return = e.value + "{" + et(e.children, n) + "}";
1017
+ case st:
1012
1018
  if (!se(e.value = e.props.join(","))) return "";
1013
1019
  }
1014
- return se(r = Xe(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1020
+ return se(r = et(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1015
1021
  }
1016
- function ko(e) {
1017
- var t = Qr(e);
1022
+ function wo(e) {
1023
+ var t = Vr(e);
1018
1024
  return function(r, n, a, c) {
1019
1025
  for (var u = "", d = 0; d < t; d++)
1020
1026
  u += e[d](r, n, a, c) || "";
1021
1027
  return u;
1022
1028
  };
1023
1029
  }
1024
- function wo(e) {
1030
+ function vo(e) {
1025
1031
  return function(t) {
1026
1032
  t.root || (t = t.return) && e(t);
1027
1033
  };
1028
1034
  }
1029
- function vo(e, t, r, n) {
1035
+ function $o(e, t, r, n) {
1030
1036
  if (e.length > -1 && !e.return)
1031
1037
  switch (e.type) {
1032
- case Pt:
1033
- e.return = Zr(e.value, e.length, r);
1038
+ case Lt:
1039
+ e.return = Jr(e.value, e.length, r);
1034
1040
  return;
1035
- case qr:
1036
- return Xe([fe(e, { value: _(e.value, "@", "@" + B) })], n);
1037
- case at:
1041
+ case Gr:
1042
+ return et([fe(e, { value: _(e.value, "@", "@" + B) })], n);
1043
+ case st:
1038
1044
  if (e.length)
1039
- return io(r = e.props, function(a) {
1045
+ return co(r = e.props, function(a) {
1040
1046
  switch (de(a, n = /(::plac\w+|:read-\w+)/)) {
1041
1047
  case ":read-only":
1042
1048
  case ":read-write":
1043
- we(fe(e, { props: [_(a, /:(read-\w+)/, ":" + Ne + "$1")] })), we(fe(e, { props: [a] })), Et(e, { props: ir(r, n) });
1049
+ we(fe(e, { props: [_(a, /:(read-\w+)/, ":" + Oe + "$1")] })), we(fe(e, { props: [a] })), Mt(e, { props: cr(r, n) });
1044
1050
  break;
1045
1051
  case "::placeholder":
1046
- we(fe(e, { props: [_(a, /:(plac\w+)/, ":" + B + "input-$1")] })), we(fe(e, { props: [_(a, /:(plac\w+)/, ":" + Ne + "$1")] })), we(fe(e, { props: [_(a, /:(plac\w+)/, L + "input-$1")] })), we(fe(e, { props: [a] })), Et(e, { props: ir(r, n) });
1052
+ we(fe(e, { props: [_(a, /:(plac\w+)/, ":" + B + "input-$1")] })), we(fe(e, { props: [_(a, /:(plac\w+)/, ":" + Oe + "$1")] })), we(fe(e, { props: [_(a, /:(plac\w+)/, L + "input-$1")] })), we(fe(e, { props: [a] })), Mt(e, { props: cr(r, n) });
1047
1053
  break;
1048
1054
  }
1049
1055
  return "";
1050
1056
  });
1051
1057
  }
1052
1058
  }
1053
- var $o = {
1059
+ var So = {
1054
1060
  animationIterationCount: 1,
1055
1061
  aspectRatio: 1,
1056
1062
  borderImageOutset: 1,
@@ -1098,58 +1104,58 @@ var $o = {
1098
1104
  strokeMiterlimit: 1,
1099
1105
  strokeOpacity: 1,
1100
1106
  strokeWidth: 1
1101
- }, Ce = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Jr = "active", Xr = "data-styled-version", lt = "6.1.19", Ft = `/*!sc*/
1102
- `, et = typeof window < "u" && typeof document < "u", So = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" && process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY), dt = Object.freeze([]), je = Object.freeze({});
1103
- function Co(e, t, r) {
1107
+ }, Ce = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Xr = "active", en = "data-styled-version", dt = "6.1.19", Kt = `/*!sc*/
1108
+ `, tt = typeof window < "u" && typeof document < "u", Co = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" && process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY), ut = Object.freeze([]), je = Object.freeze({});
1109
+ function jo(e, t, r) {
1104
1110
  return r === void 0 && (r = je), e.theme !== r.theme && e.theme || t || r.theme;
1105
1111
  }
1106
- var en = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), jo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Io = /(^-|-$)/g;
1107
- function dr(e) {
1108
- return e.replace(jo, "-").replace(Io, "");
1112
+ var tn = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Io = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ao = /(^-|-$)/g;
1113
+ function ur(e) {
1114
+ return e.replace(Io, "-").replace(Ao, "");
1109
1115
  }
1110
- var Ao = /(a)(d)/gi, Le = 52, ur = function(e) {
1116
+ var To = /(a)(d)/gi, Fe = 52, pr = function(e) {
1111
1117
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1112
1118
  };
1113
- function Rt(e) {
1119
+ function zt(e) {
1114
1120
  var t, r = "";
1115
- for (t = Math.abs(e); t > Le; t = t / Le | 0) r = ur(t % Le) + r;
1116
- return (ur(t % Le) + r).replace(Ao, "$1-$2");
1121
+ for (t = Math.abs(e); t > Fe; t = t / Fe | 0) r = pr(t % Fe) + r;
1122
+ return (pr(t % Fe) + r).replace(To, "$1-$2");
1117
1123
  }
1118
- var xt, tn = 5381, ve = function(e, t) {
1124
+ var yt, rn = 5381, ve = function(e, t) {
1119
1125
  for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
1120
1126
  return e;
1121
- }, rn = function(e) {
1122
- return ve(tn, e);
1127
+ }, nn = function(e) {
1128
+ return ve(rn, e);
1123
1129
  };
1124
- function To(e) {
1125
- return Rt(rn(e) >>> 0);
1126
- }
1127
1130
  function Eo(e) {
1131
+ return zt(nn(e) >>> 0);
1132
+ }
1133
+ function Mo(e) {
1128
1134
  return e.displayName || e.name || "Component";
1129
1135
  }
1130
- function yt(e) {
1136
+ function kt(e) {
1131
1137
  return typeof e == "string" && !0;
1132
1138
  }
1133
- var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.memo") : 60115, Mo = nn ? Symbol.for("react.forward_ref") : 60112, _o = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ro = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, an = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, zo = ((xt = {})[Mo] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, xt[on] = an, xt);
1134
- function pr(e) {
1135
- return ("type" in (t = e) && t.type.$$typeof) === on ? an : "$$typeof" in e ? zo[e.$$typeof] : _o;
1139
+ var on = typeof Symbol == "function" && Symbol.for, an = on ? Symbol.for("react.memo") : 60115, _o = on ? Symbol.for("react.forward_ref") : 60112, Ro = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, zo = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, sn = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Do = ((yt = {})[_o] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, yt[an] = sn, yt);
1140
+ function fr(e) {
1141
+ return ("type" in (t = e) && t.type.$$typeof) === an ? sn : "$$typeof" in e ? Do[e.$$typeof] : Ro;
1136
1142
  var t;
1137
1143
  }
1138
- var Do = Object.defineProperty, No = Object.getOwnPropertyNames, fr = Object.getOwnPropertySymbols, Oo = Object.getOwnPropertyDescriptor, Bo = Object.getPrototypeOf, hr = Object.prototype;
1139
- function sn(e, t, r) {
1144
+ var Oo = Object.defineProperty, No = Object.getOwnPropertyNames, hr = Object.getOwnPropertySymbols, Bo = Object.getOwnPropertyDescriptor, Po = Object.getPrototypeOf, mr = Object.prototype;
1145
+ function cn(e, t, r) {
1140
1146
  if (typeof t != "string") {
1141
- if (hr) {
1142
- var n = Bo(t);
1143
- n && n !== hr && sn(e, n, r);
1147
+ if (mr) {
1148
+ var n = Po(t);
1149
+ n && n !== mr && cn(e, n, r);
1144
1150
  }
1145
1151
  var a = No(t);
1146
- fr && (a = a.concat(fr(t)));
1147
- for (var c = pr(e), u = pr(t), d = 0; d < a.length; ++d) {
1152
+ hr && (a = a.concat(hr(t)));
1153
+ for (var c = fr(e), u = fr(t), d = 0; d < a.length; ++d) {
1148
1154
  var h = a[d];
1149
- if (!(h in Ro || r && r[h] || u && h in u || c && h in c)) {
1150
- var g = Oo(t, h);
1155
+ if (!(h in zo || r && r[h] || u && h in u || c && h in c)) {
1156
+ var g = Bo(t, h);
1151
1157
  try {
1152
- Do(e, h, g);
1158
+ Oo(e, h, g);
1153
1159
  } catch {
1154
1160
  }
1155
1161
  }
@@ -1160,13 +1166,13 @@ function sn(e, t, r) {
1160
1166
  function Ie(e) {
1161
1167
  return typeof e == "function";
1162
1168
  }
1163
- function Kt(e) {
1169
+ function Wt(e) {
1164
1170
  return typeof e == "object" && "styledComponentId" in e;
1165
1171
  }
1166
1172
  function me(e, t) {
1167
1173
  return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1168
1174
  }
1169
- function mr(e, t) {
1175
+ function gr(e, t) {
1170
1176
  if (e.length === 0) return "";
1171
1177
  for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
1172
1178
  return r;
@@ -1174,20 +1180,20 @@ function mr(e, t) {
1174
1180
  function Be(e) {
1175
1181
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1176
1182
  }
1177
- function zt(e, t, r) {
1183
+ function Dt(e, t, r) {
1178
1184
  if (r === void 0 && (r = !1), !r && !Be(e) && !Array.isArray(e)) return t;
1179
- if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = zt(e[n], t[n]);
1180
- else if (Be(t)) for (var n in t) e[n] = zt(e[n], t[n]);
1185
+ if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Dt(e[n], t[n]);
1186
+ else if (Be(t)) for (var n in t) e[n] = Dt(e[n], t[n]);
1181
1187
  return e;
1182
1188
  }
1183
- function Wt(e, t) {
1189
+ function Ut(e, t) {
1184
1190
  Object.defineProperty(e, "toString", { value: t });
1185
1191
  }
1186
1192
  function Pe(e) {
1187
1193
  for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1188
1194
  return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : ""));
1189
1195
  }
1190
- var Po = function() {
1196
+ var Lo = function() {
1191
1197
  function e(t) {
1192
1198
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1193
1199
  }
@@ -1210,49 +1216,49 @@ var Po = function() {
1210
1216
  }, e.prototype.getGroup = function(t) {
1211
1217
  var r = "";
1212
1218
  if (t >= this.length || this.groupSizes[t] === 0) return r;
1213
- for (var n = this.groupSizes[t], a = this.indexOfGroup(t), c = a + n, u = a; u < c; u++) r += "".concat(this.tag.getRule(u)).concat(Ft);
1219
+ for (var n = this.groupSizes[t], a = this.indexOfGroup(t), c = a + n, u = a; u < c; u++) r += "".concat(this.tag.getRule(u)).concat(Kt);
1214
1220
  return r;
1215
1221
  }, e;
1216
- }(), Ge = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Map(), Ye = 1, Fe = function(e) {
1217
- if (Ge.has(e)) return Ge.get(e);
1218
- for (; tt.has(Ye); ) Ye++;
1219
- var t = Ye++;
1220
- return Ge.set(e, t), tt.set(t, e), t;
1221
- }, Lo = function(e, t) {
1222
- Ye = t + 1, Ge.set(e, t), tt.set(t, e);
1223
- }, Fo = "style[".concat(Ce, "][").concat(Xr, '="').concat(lt, '"]'), Ko = new RegExp("^".concat(Ce, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Wo = function(e, t, r) {
1222
+ }(), Ye = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map(), Qe = 1, Ke = function(e) {
1223
+ if (Ye.has(e)) return Ye.get(e);
1224
+ for (; rt.has(Qe); ) Qe++;
1225
+ var t = Qe++;
1226
+ return Ye.set(e, t), rt.set(t, e), t;
1227
+ }, Fo = function(e, t) {
1228
+ Qe = t + 1, Ye.set(e, t), rt.set(t, e);
1229
+ }, Ko = "style[".concat(Ce, "][").concat(en, '="').concat(dt, '"]'), Wo = new RegExp("^".concat(Ce, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Uo = function(e, t, r) {
1224
1230
  for (var n, a = r.split(","), c = 0, u = a.length; c < u; c++) (n = a[c]) && e.registerName(t, n);
1225
- }, Uo = function(e, t) {
1226
- for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Ft), a = [], c = 0, u = n.length; c < u; c++) {
1231
+ }, Ho = function(e, t) {
1232
+ for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Kt), a = [], c = 0, u = n.length; c < u; c++) {
1227
1233
  var d = n[c].trim();
1228
1234
  if (d) {
1229
- var h = d.match(Ko);
1235
+ var h = d.match(Wo);
1230
1236
  if (h) {
1231
1237
  var g = 0 | parseInt(h[1], 10), b = h[2];
1232
- g !== 0 && (Lo(b, g), Wo(e, b, h[3]), e.getTag().insertRules(g, a)), a.length = 0;
1238
+ g !== 0 && (Fo(b, g), Uo(e, b, h[3]), e.getTag().insertRules(g, a)), a.length = 0;
1233
1239
  } else a.push(d);
1234
1240
  }
1235
1241
  }
1236
- }, gr = function(e) {
1237
- for (var t = document.querySelectorAll(Fo), r = 0, n = t.length; r < n; r++) {
1242
+ }, br = function(e) {
1243
+ for (var t = document.querySelectorAll(Ko), r = 0, n = t.length; r < n; r++) {
1238
1244
  var a = t[r];
1239
- a && a.getAttribute(Ce) !== Jr && (Uo(e, a), a.parentNode && a.parentNode.removeChild(a));
1245
+ a && a.getAttribute(Ce) !== Xr && (Ho(e, a), a.parentNode && a.parentNode.removeChild(a));
1240
1246
  }
1241
1247
  };
1242
- function Ho() {
1248
+ function qo() {
1243
1249
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1244
1250
  }
1245
- var cn = function(e) {
1251
+ var ln = function(e) {
1246
1252
  var t = document.head, r = e || t, n = document.createElement("style"), a = function(d) {
1247
1253
  var h = Array.from(d.querySelectorAll("style[".concat(Ce, "]")));
1248
1254
  return h[h.length - 1];
1249
1255
  }(r), c = a !== void 0 ? a.nextSibling : null;
1250
- n.setAttribute(Ce, Jr), n.setAttribute(Xr, lt);
1251
- var u = Ho();
1256
+ n.setAttribute(Ce, Xr), n.setAttribute(en, dt);
1257
+ var u = qo();
1252
1258
  return u && n.setAttribute("nonce", u), r.insertBefore(n, c), n;
1253
- }, qo = function() {
1259
+ }, Go = function() {
1254
1260
  function e(t) {
1255
- this.element = cn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
1261
+ this.element = ln(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
1256
1262
  if (r.sheet) return r.sheet;
1257
1263
  for (var n = document.styleSheets, a = 0, c = n.length; a < c; a++) {
1258
1264
  var u = n[a];
@@ -1273,9 +1279,9 @@ var cn = function(e) {
1273
1279
  var r = this.sheet.cssRules[t];
1274
1280
  return r && r.cssText ? r.cssText : "";
1275
1281
  }, e;
1276
- }(), Go = function() {
1282
+ }(), Yo = function() {
1277
1283
  function e(t) {
1278
- this.element = cn(t), this.nodes = this.element.childNodes, this.length = 0;
1284
+ this.element = ln(t), this.nodes = this.element.childNodes, this.length = 0;
1279
1285
  }
1280
1286
  return e.prototype.insertRule = function(t, r) {
1281
1287
  if (t <= this.length && t >= 0) {
@@ -1288,7 +1294,7 @@ var cn = function(e) {
1288
1294
  }, e.prototype.getRule = function(t) {
1289
1295
  return t < this.length ? this.nodes[t].textContent : "";
1290
1296
  }, e;
1291
- }(), Yo = function() {
1297
+ }(), Qo = function() {
1292
1298
  function e(t) {
1293
1299
  this.rules = [], this.length = 0;
1294
1300
  }
@@ -1299,15 +1305,15 @@ var cn = function(e) {
1299
1305
  }, e.prototype.getRule = function(t) {
1300
1306
  return t < this.length ? this.rules[t] : "";
1301
1307
  }, e;
1302
- }(), br = et, Qo = { isServer: !et, useCSSOMInjection: !So }, ln = function() {
1308
+ }(), xr = tt, Vo = { isServer: !tt, useCSSOMInjection: !Co }, dn = function() {
1303
1309
  function e(t, r, n) {
1304
1310
  t === void 0 && (t = je), r === void 0 && (r = {});
1305
1311
  var a = this;
1306
- this.options = X(X({}, Qo), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && et && br && (br = !1, gr(this)), Wt(this, function() {
1312
+ this.options = X(X({}, Vo), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && tt && xr && (xr = !1, br(this)), Ut(this, function() {
1307
1313
  return function(c) {
1308
1314
  for (var u = c.getTag(), d = u.length, h = "", g = function(p) {
1309
1315
  var w = function(o) {
1310
- return tt.get(o);
1316
+ return rt.get(o);
1311
1317
  }(p);
1312
1318
  if (w === void 0) return "continue";
1313
1319
  var k = c.names.get(w), $ = u.getGroup(p);
@@ -1315,16 +1321,16 @@ var cn = function(e) {
1315
1321
  var j = "".concat(Ce, ".g").concat(p, '[id="').concat(w, '"]'), S = "";
1316
1322
  k !== void 0 && k.forEach(function(o) {
1317
1323
  o.length > 0 && (S += "".concat(o, ","));
1318
- }), h += "".concat($).concat(j, '{content:"').concat(S, '"}').concat(Ft);
1324
+ }), h += "".concat($).concat(j, '{content:"').concat(S, '"}').concat(Kt);
1319
1325
  }, b = 0; b < d; b++) g(b);
1320
1326
  return h;
1321
1327
  }(a);
1322
1328
  });
1323
1329
  }
1324
1330
  return e.registerId = function(t) {
1325
- return Fe(t);
1331
+ return Ke(t);
1326
1332
  }, e.prototype.rehydrate = function() {
1327
- !this.server && et && gr(this);
1333
+ !this.server && tt && br(this);
1328
1334
  }, e.prototype.reconstructWithOptions = function(t, r) {
1329
1335
  return r === void 0 && (r = !0), new e(X(X({}, this.options), t), this.gs, r && this.names || void 0);
1330
1336
  }, e.prototype.allocateGSInstance = function(t) {
@@ -1332,124 +1338,124 @@ var cn = function(e) {
1332
1338
  }, e.prototype.getTag = function() {
1333
1339
  return this.tag || (this.tag = (t = function(r) {
1334
1340
  var n = r.useCSSOMInjection, a = r.target;
1335
- return r.isServer ? new Yo(a) : n ? new qo(a) : new Go(a);
1336
- }(this.options), new Po(t)));
1341
+ return r.isServer ? new Qo(a) : n ? new Go(a) : new Yo(a);
1342
+ }(this.options), new Lo(t)));
1337
1343
  var t;
1338
1344
  }, e.prototype.hasNameForId = function(t, r) {
1339
1345
  return this.names.has(t) && this.names.get(t).has(r);
1340
1346
  }, e.prototype.registerName = function(t, r) {
1341
- if (Fe(t), this.names.has(t)) this.names.get(t).add(r);
1347
+ if (Ke(t), this.names.has(t)) this.names.get(t).add(r);
1342
1348
  else {
1343
1349
  var n = /* @__PURE__ */ new Set();
1344
1350
  n.add(r), this.names.set(t, n);
1345
1351
  }
1346
1352
  }, e.prototype.insertRules = function(t, r, n) {
1347
- this.registerName(t, r), this.getTag().insertRules(Fe(t), n);
1353
+ this.registerName(t, r), this.getTag().insertRules(Ke(t), n);
1348
1354
  }, e.prototype.clearNames = function(t) {
1349
1355
  this.names.has(t) && this.names.get(t).clear();
1350
1356
  }, e.prototype.clearRules = function(t) {
1351
- this.getTag().clearGroup(Fe(t)), this.clearNames(t);
1357
+ this.getTag().clearGroup(Ke(t)), this.clearNames(t);
1352
1358
  }, e.prototype.clearTag = function() {
1353
1359
  this.tag = void 0;
1354
1360
  }, e;
1355
- }(), Vo = /&/g, Zo = /^\s*\/\/.*$/gm;
1356
- function dn(e, t) {
1361
+ }(), Zo = /&/g, Jo = /^\s*\/\/.*$/gm;
1362
+ function un(e, t) {
1357
1363
  return e.map(function(r) {
1358
1364
  return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
1359
1365
  return "".concat(t, " ").concat(n);
1360
- })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = dn(r.children, t)), r;
1366
+ })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = un(r.children, t)), r;
1361
1367
  });
1362
1368
  }
1363
- function Jo(e) {
1364
- var t, r, n, a = je, c = a.options, u = c === void 0 ? je : c, d = a.plugins, h = d === void 0 ? dt : d, g = function(w, k, $) {
1369
+ function Xo(e) {
1370
+ var t, r, n, a = je, c = a.options, u = c === void 0 ? je : c, d = a.plugins, h = d === void 0 ? ut : d, g = function(w, k, $) {
1365
1371
  return $.startsWith(r) && $.endsWith(r) && $.replaceAll(r, "").length > 0 ? ".".concat(t) : w;
1366
1372
  }, b = h.slice();
1367
1373
  b.push(function(w) {
1368
- w.type === at && w.value.includes("&") && (w.props[0] = w.props[0].replace(Vo, r).replace(n, g));
1369
- }), u.prefix && b.push(vo), b.push(yo);
1374
+ w.type === st && w.value.includes("&") && (w.props[0] = w.props[0].replace(Zo, r).replace(n, g));
1375
+ }), u.prefix && b.push($o), b.push(ko);
1370
1376
  var p = function(w, k, $, j) {
1371
1377
  k === void 0 && (k = ""), $ === void 0 && ($ = ""), j === void 0 && (j = "&"), t = j, r = k, n = new RegExp("\\".concat(r, "\\b"), "g");
1372
- var S = w.replace(Zo, ""), o = bo($ || k ? "".concat($, " ").concat(k, " { ").concat(S, " }") : S);
1373
- u.namespace && (o = dn(o, u.namespace));
1378
+ var S = w.replace(Jo, ""), o = xo($ || k ? "".concat($, " ").concat(k, " { ").concat(S, " }") : S);
1379
+ u.namespace && (o = un(o, u.namespace));
1374
1380
  var i = [];
1375
- return Xe(o, ko(b.concat(wo(function(s) {
1381
+ return et(o, wo(b.concat(vo(function(s) {
1376
1382
  return i.push(s);
1377
1383
  })))), i;
1378
1384
  };
1379
1385
  return p.hash = h.length ? h.reduce(function(w, k) {
1380
1386
  return k.name || Pe(15), ve(w, k.name);
1381
- }, tn).toString() : "", p;
1387
+ }, rn).toString() : "", p;
1382
1388
  }
1383
- var Xo = new ln(), Dt = Jo(), un = F.createContext({ shouldForwardProp: void 0, styleSheet: Xo, stylis: Dt });
1384
- un.Consumer;
1389
+ var ea = new dn(), Ot = Xo(), pn = F.createContext({ shouldForwardProp: void 0, styleSheet: ea, stylis: Ot });
1390
+ pn.Consumer;
1385
1391
  F.createContext(void 0);
1386
- function xr() {
1387
- return Fr(un);
1392
+ function yr() {
1393
+ return Kr(pn);
1388
1394
  }
1389
- var ea = function() {
1395
+ var ta = function() {
1390
1396
  function e(t, r) {
1391
1397
  var n = this;
1392
1398
  this.inject = function(a, c) {
1393
- c === void 0 && (c = Dt);
1399
+ c === void 0 && (c = Ot);
1394
1400
  var u = n.name + c.hash;
1395
1401
  a.hasNameForId(n.id, u) || a.insertRules(n.id, u, c(n.rules, u, "@keyframes"));
1396
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, Wt(this, function() {
1402
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, Ut(this, function() {
1397
1403
  throw Pe(12, String(n.name));
1398
1404
  });
1399
1405
  }
1400
1406
  return e.prototype.getName = function(t) {
1401
- return t === void 0 && (t = Dt), this.name + t.hash;
1407
+ return t === void 0 && (t = Ot), this.name + t.hash;
1402
1408
  }, e;
1403
- }(), ta = function(e) {
1409
+ }(), ra = function(e) {
1404
1410
  return e >= "A" && e <= "Z";
1405
1411
  };
1406
- function yr(e) {
1412
+ function kr(e) {
1407
1413
  for (var t = "", r = 0; r < e.length; r++) {
1408
1414
  var n = e[r];
1409
1415
  if (r === 1 && n === "-" && e[0] === "-") return e;
1410
- ta(n) ? t += "-" + n.toLowerCase() : t += n;
1416
+ ra(n) ? t += "-" + n.toLowerCase() : t += n;
1411
1417
  }
1412
1418
  return t.startsWith("ms-") ? "-" + t : t;
1413
1419
  }
1414
- var pn = function(e) {
1420
+ var fn = function(e) {
1415
1421
  return e == null || e === !1 || e === "";
1416
- }, fn = function(e) {
1422
+ }, hn = function(e) {
1417
1423
  var t, r, n = [];
1418
1424
  for (var a in e) {
1419
1425
  var c = e[a];
1420
- e.hasOwnProperty(a) && !pn(c) && (Array.isArray(c) && c.isCss || Ie(c) ? n.push("".concat(yr(a), ":"), c, ";") : Be(c) ? n.push.apply(n, Je(Je(["".concat(a, " {")], fn(c), !1), ["}"], !1)) : n.push("".concat(yr(a), ": ").concat((t = a, (r = c) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in $o || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
1426
+ e.hasOwnProperty(a) && !fn(c) && (Array.isArray(c) && c.isCss || Ie(c) ? n.push("".concat(kr(a), ":"), c, ";") : Be(c) ? n.push.apply(n, Xe(Xe(["".concat(a, " {")], hn(c), !1), ["}"], !1)) : n.push("".concat(kr(a), ": ").concat((t = a, (r = c) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in So || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
1421
1427
  }
1422
1428
  return n;
1423
1429
  };
1424
1430
  function be(e, t, r, n) {
1425
- if (pn(e)) return [];
1426
- if (Kt(e)) return [".".concat(e.styledComponentId)];
1431
+ if (fn(e)) return [];
1432
+ if (Wt(e)) return [".".concat(e.styledComponentId)];
1427
1433
  if (Ie(e)) {
1428
1434
  if (!Ie(c = e) || c.prototype && c.prototype.isReactComponent || !t) return [e];
1429
1435
  var a = e(t);
1430
1436
  return be(a, t, r, n);
1431
1437
  }
1432
1438
  var c;
1433
- return e instanceof ea ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Be(e) ? fn(e) : Array.isArray(e) ? Array.prototype.concat.apply(dt, e.map(function(u) {
1439
+ return e instanceof ta ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Be(e) ? hn(e) : Array.isArray(e) ? Array.prototype.concat.apply(ut, e.map(function(u) {
1434
1440
  return be(u, t, r, n);
1435
1441
  })) : [e.toString()];
1436
1442
  }
1437
- function ra(e) {
1443
+ function na(e) {
1438
1444
  for (var t = 0; t < e.length; t += 1) {
1439
1445
  var r = e[t];
1440
- if (Ie(r) && !Kt(r)) return !1;
1446
+ if (Ie(r) && !Wt(r)) return !1;
1441
1447
  }
1442
1448
  return !0;
1443
1449
  }
1444
- var na = rn(lt), oa = function() {
1450
+ var oa = nn(dt), aa = function() {
1445
1451
  function e(t, r, n) {
1446
- this.rules = t, this.staticRulesId = "", this.isStatic = (n === void 0 || n.isStatic) && ra(t), this.componentId = r, this.baseHash = ve(na, r), this.baseStyle = n, ln.registerId(r);
1452
+ this.rules = t, this.staticRulesId = "", this.isStatic = (n === void 0 || n.isStatic) && na(t), this.componentId = r, this.baseHash = ve(oa, r), this.baseStyle = n, dn.registerId(r);
1447
1453
  }
1448
1454
  return e.prototype.generateAndInjectStyles = function(t, r, n) {
1449
1455
  var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
1450
1456
  if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) a = me(a, this.staticRulesId);
1451
1457
  else {
1452
- var c = mr(be(this.rules, t, r, n)), u = Rt(ve(this.baseHash, c) >>> 0);
1458
+ var c = gr(be(this.rules, t, r, n)), u = zt(ve(this.baseHash, c) >>> 0);
1453
1459
  if (!r.hasNameForId(this.componentId, u)) {
1454
1460
  var d = n(c, ".".concat(u), void 0, this.componentId);
1455
1461
  r.insertRules(this.componentId, u, d);
@@ -1461,29 +1467,29 @@ var na = rn(lt), oa = function() {
1461
1467
  var p = this.rules[b];
1462
1468
  if (typeof p == "string") g += p;
1463
1469
  else if (p) {
1464
- var w = mr(be(p, t, r, n));
1470
+ var w = gr(be(p, t, r, n));
1465
1471
  h = ve(h, w + b), g += w;
1466
1472
  }
1467
1473
  }
1468
1474
  if (g) {
1469
- var k = Rt(h >>> 0);
1475
+ var k = zt(h >>> 0);
1470
1476
  r.hasNameForId(this.componentId, k) || r.insertRules(this.componentId, k, n(g, ".".concat(k), void 0, this.componentId)), a = me(a, k);
1471
1477
  }
1472
1478
  }
1473
1479
  return a;
1474
1480
  }, e;
1475
- }(), hn = F.createContext(void 0);
1476
- hn.Consumer;
1477
- var kt = {};
1478
- function aa(e, t, r) {
1479
- var n = Kt(e), a = e, c = !yt(e), u = t.attrs, d = u === void 0 ? dt : u, h = t.componentId, g = h === void 0 ? function(f, m) {
1480
- var y = typeof f != "string" ? "sc" : dr(f);
1481
- kt[y] = (kt[y] || 0) + 1;
1482
- var x = "".concat(y, "-").concat(To(lt + y + kt[y]));
1481
+ }(), mn = F.createContext(void 0);
1482
+ mn.Consumer;
1483
+ var wt = {};
1484
+ function sa(e, t, r) {
1485
+ var n = Wt(e), a = e, c = !kt(e), u = t.attrs, d = u === void 0 ? ut : u, h = t.componentId, g = h === void 0 ? function(f, m) {
1486
+ var y = typeof f != "string" ? "sc" : ur(f);
1487
+ wt[y] = (wt[y] || 0) + 1;
1488
+ var x = "".concat(y, "-").concat(Eo(dt + y + wt[y]));
1483
1489
  return m ? "".concat(m, "-").concat(x) : x;
1484
1490
  }(t.displayName, t.parentComponentId) : h, b = t.displayName, p = b === void 0 ? function(f) {
1485
- return yt(f) ? "styled.".concat(f) : "Styled(".concat(Eo(f), ")");
1486
- }(e) : b, w = t.displayName && t.componentId ? "".concat(dr(t.displayName), "-").concat(t.componentId) : t.componentId || g, k = n && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, $ = t.shouldForwardProp;
1491
+ return kt(f) ? "styled.".concat(f) : "Styled(".concat(Mo(f), ")");
1492
+ }(e) : b, w = t.displayName && t.componentId ? "".concat(ur(t.displayName), "-").concat(t.componentId) : t.componentId || g, k = n && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, $ = t.shouldForwardProp;
1487
1493
  if (n && a.shouldForwardProp) {
1488
1494
  var j = a.shouldForwardProp;
1489
1495
  if (t.shouldForwardProp) {
@@ -1493,22 +1499,22 @@ function aa(e, t, r) {
1493
1499
  };
1494
1500
  } else $ = j;
1495
1501
  }
1496
- var o = new oa(r, w, n ? a.componentStyle : void 0);
1502
+ var o = new aa(r, w, n ? a.componentStyle : void 0);
1497
1503
  function i(f, m) {
1498
1504
  return function(y, x, A) {
1499
- var M = y.attrs, C = y.componentStyle, E = y.defaultProps, K = y.foldedComponentIds, P = y.styledComponentId, I = y.target, D = F.useContext(hn), H = xr(), v = y.shouldForwardProp || H.shouldForwardProp, N = Co(x, D, E) || je, R = function(Q, V, ie) {
1505
+ var M = y.attrs, C = y.componentStyle, E = y.defaultProps, K = y.foldedComponentIds, P = y.styledComponentId, I = y.target, D = F.useContext(mn), H = yr(), v = y.shouldForwardProp || H.shouldForwardProp, O = jo(x, D, E) || je, R = function(Q, V, ie) {
1500
1506
  for (var ye, ce = X(X({}, V), { className: void 0, theme: ie }), ke = 0; ke < Q.length; ke += 1) {
1501
1507
  var ne = Ie(ye = Q[ke]) ? ye(ce) : ye;
1502
1508
  for (var ee in ne) ce[ee] = ee === "className" ? me(ce[ee], ne[ee]) : ee === "style" ? X(X({}, ce[ee]), ne[ee]) : ne[ee];
1503
1509
  }
1504
1510
  return V.className && (ce.className = me(ce.className, V.className)), ce;
1505
- }(M, x, N), W = R.as || I, O = {};
1506
- for (var q in R) R[q] === void 0 || q[0] === "$" || q === "as" || q === "theme" && R.theme === N || (q === "forwardedAs" ? O.as = R.forwardedAs : v && !v(q, W) || (O[q] = R[q]));
1511
+ }(M, x, O), W = R.as || I, N = {};
1512
+ for (var q in R) R[q] === void 0 || q[0] === "$" || q === "as" || q === "theme" && R.theme === O || (q === "forwardedAs" ? N.as = R.forwardedAs : v && !v(q, W) || (N[q] = R[q]));
1507
1513
  var z = function(Q, V) {
1508
- var ie = xr(), ye = Q.generateAndInjectStyles(V, ie.styleSheet, ie.stylis);
1514
+ var ie = yr(), ye = Q.generateAndInjectStyles(V, ie.styleSheet, ie.stylis);
1509
1515
  return ye;
1510
1516
  }(C, R), U = me(K, P);
1511
- return z && (U += " " + z), R.className && (U += " " + R.className), O[yt(W) && !en.has(W) ? "class" : "className"] = U, A && (O.ref = A), Ze(W, O);
1517
+ return z && (U += " " + z), R.className && (U += " " + R.className), N[kt(W) && !tn.has(W) ? "class" : "className"] = U, A && (N.ref = A), Je(W, N);
1512
1518
  }(s, f, m);
1513
1519
  }
1514
1520
  i.displayName = p;
@@ -1518,31 +1524,31 @@ function aa(e, t, r) {
1518
1524
  }, set: function(f) {
1519
1525
  this._foldedDefaultProps = n ? function(m) {
1520
1526
  for (var y = [], x = 1; x < arguments.length; x++) y[x - 1] = arguments[x];
1521
- for (var A = 0, M = y; A < M.length; A++) zt(m, M[A], !0);
1527
+ for (var A = 0, M = y; A < M.length; A++) Dt(m, M[A], !0);
1522
1528
  return m;
1523
1529
  }({}, a.defaultProps, f) : f;
1524
- } }), Wt(s, function() {
1530
+ } }), Ut(s, function() {
1525
1531
  return ".".concat(s.styledComponentId);
1526
- }), c && sn(s, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), s;
1532
+ }), c && cn(s, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), s;
1527
1533
  }
1528
- function kr(e, t) {
1534
+ function wr(e, t) {
1529
1535
  for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
1530
1536
  return r;
1531
1537
  }
1532
- var wr = function(e) {
1538
+ var vr = function(e) {
1533
1539
  return Object.assign(e, { isCss: !0 });
1534
1540
  };
1535
- function sa(e) {
1541
+ function ia(e) {
1536
1542
  for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1537
- if (Ie(e) || Be(e)) return wr(be(kr(dt, Je([e], t, !0))));
1543
+ if (Ie(e) || Be(e)) return vr(be(wr(ut, Xe([e], t, !0))));
1538
1544
  var n = e;
1539
- return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? be(n) : wr(be(kr(n, t)));
1545
+ return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? be(n) : vr(be(wr(n, t)));
1540
1546
  }
1541
1547
  function Nt(e, t, r) {
1542
1548
  if (r === void 0 && (r = je), !t) throw Pe(1, t);
1543
1549
  var n = function(a) {
1544
1550
  for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
1545
- return e(t, r, sa.apply(void 0, Je([a], c, !1)));
1551
+ return e(t, r, ia.apply(void 0, Xe([a], c, !1)));
1546
1552
  };
1547
1553
  return n.attrs = function(a) {
1548
1554
  return Nt(e, t, X(X({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
@@ -1550,18 +1556,18 @@ function Nt(e, t, r) {
1550
1556
  return Nt(e, t, X(X({}, r), a));
1551
1557
  }, n;
1552
1558
  }
1553
- var mn = function(e) {
1554
- return Nt(aa, e);
1555
- }, T = mn;
1556
- en.forEach(function(e) {
1557
- T[e] = mn(e);
1559
+ var gn = function(e) {
1560
+ return Nt(sa, e);
1561
+ }, T = gn;
1562
+ tn.forEach(function(e) {
1563
+ T[e] = gn(e);
1558
1564
  });
1559
- const ia = T.div`
1565
+ const ca = T.div`
1560
1566
  display: flex;
1561
1567
  flex-wrap: wrap;
1562
1568
  gap: 6px;
1563
1569
  margin-bottom: 6px;
1564
- `, ca = T.div`
1570
+ `, la = T.div`
1565
1571
  display: inline-flex;
1566
1572
  align-items: center;
1567
1573
  gap: 6px;
@@ -1578,18 +1584,18 @@ const ia = T.div`
1578
1584
  border-color: #4b5563;
1579
1585
  background: ${(e) => e.$isImage ? "rgba(59, 130, 246, 0.2)" : "rgba(107, 114, 128, 0.25)"};
1580
1586
  }
1581
- `, la = T.img`
1587
+ `, da = T.img`
1582
1588
  width: 28px;
1583
1589
  height: 28px;
1584
1590
  object-fit: cover;
1585
1591
  border-radius: 4px;
1586
- `, da = T.span`
1592
+ `, ua = T.span`
1587
1593
  overflow: hidden;
1588
1594
  text-overflow: ellipsis;
1589
1595
  white-space: nowrap;
1590
1596
  flex: 1;
1591
1597
  min-width: 0;
1592
- `, ua = T.button`
1598
+ `, pa = T.button`
1593
1599
  display: flex;
1594
1600
  align-items: center;
1595
1601
  justify-content: center;
@@ -1606,16 +1612,16 @@ const ia = T.div`
1606
1612
  }
1607
1613
  `;
1608
1614
  function Ae({ attachments: e, onRemove: t, readOnly: r }) {
1609
- return e.length ? /* @__PURE__ */ l.jsx(ia, { children: e.map((n) => {
1615
+ return e.length ? /* @__PURE__ */ l.jsx(ca, { children: e.map((n) => {
1610
1616
  const a = n.type === "image", c = a && (n.preview || n.url);
1611
- return /* @__PURE__ */ l.jsxs(ca, { $isImage: a, title: n.name, children: [
1612
- c ? /* @__PURE__ */ l.jsx(la, { src: n.preview || n.url, alt: "", loading: "lazy", decoding: "async" }) : a ? /* @__PURE__ */ l.jsx(Xn, { size: 16, "aria-hidden": !0 }) : /* @__PURE__ */ l.jsx(Zn, { size: 16, "aria-hidden": !0 }),
1613
- /* @__PURE__ */ l.jsx(da, { children: n.name }),
1614
- !r && t && /* @__PURE__ */ l.jsx(ua, { type: "button", onClick: () => t(n.id), "aria-label": `Remove ${n.name}`, children: /* @__PURE__ */ l.jsx(no, { size: 14 }) })
1617
+ return /* @__PURE__ */ l.jsxs(la, { $isImage: a, title: n.name, children: [
1618
+ c ? /* @__PURE__ */ l.jsx(da, { src: n.preview || n.url, alt: "", loading: "lazy", decoding: "async" }) : a ? /* @__PURE__ */ l.jsx(eo, { size: 16, "aria-hidden": !0 }) : /* @__PURE__ */ l.jsx(Jn, { size: 16, "aria-hidden": !0 }),
1619
+ /* @__PURE__ */ l.jsx(ua, { children: n.name }),
1620
+ !r && t && /* @__PURE__ */ l.jsx(pa, { type: "button", onClick: () => t(n.id), "aria-label": `Remove ${n.name}`, children: /* @__PURE__ */ l.jsx(oo, { size: 14 }) })
1615
1621
  ] }, n.id);
1616
1622
  }) }) : null;
1617
1623
  }
1618
- const gn = [
1624
+ const bn = [
1619
1625
  "application/pdf",
1620
1626
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1621
1627
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -1628,7 +1634,7 @@ const gn = [
1628
1634
  "image/jpeg",
1629
1635
  "image/webp",
1630
1636
  "image/gif"
1631
- ], pa = {
1637
+ ], fa = {
1632
1638
  ".pdf": "application/pdf",
1633
1639
  ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1634
1640
  ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -1643,12 +1649,12 @@ const gn = [
1643
1649
  ".webp": "image/webp",
1644
1650
  ".gif": "image/gif"
1645
1651
  };
1646
- function fa(e) {
1652
+ function ha(e) {
1647
1653
  const t = e.lastIndexOf(".");
1648
1654
  if (!(t < 0))
1649
- return pa[e.slice(t).toLowerCase()];
1655
+ return fa[e.slice(t).toLowerCase()];
1650
1656
  }
1651
- async function Ut(e) {
1657
+ async function Ht(e) {
1652
1658
  var r;
1653
1659
  if (!e) return [];
1654
1660
  const t = [];
@@ -1657,14 +1663,14 @@ async function Ut(e) {
1657
1663
  t.push(e.files[n]);
1658
1664
  return t;
1659
1665
  }
1660
- function bn(e, t, r) {
1666
+ function xn(e, t, r) {
1661
1667
  if (e.size > t)
1662
1668
  return `File too large (max ${Math.floor(t / (1024 * 1024))}MB)`;
1663
1669
  if (r.includes(e.type)) return null;
1664
- const n = fa(e.name);
1670
+ const n = ha(e.name);
1665
1671
  return n && r.includes(n) ? null : "File type not allowed for attachments";
1666
1672
  }
1667
- const ha = T.button`
1673
+ const ma = T.button`
1668
1674
  display: flex;
1669
1675
  align-items: center;
1670
1676
  justify-content: center;
@@ -1695,7 +1701,7 @@ const ha = T.button`
1695
1701
  border-color: #4b5563;
1696
1702
  color: #e5e7eb;
1697
1703
  }
1698
- `, ma = T.button`
1704
+ `, ga = T.button`
1699
1705
  display: flex;
1700
1706
  align-items: center;
1701
1707
  justify-content: center;
@@ -1739,12 +1745,12 @@ const ha = T.button`
1739
1745
  }
1740
1746
  }
1741
1747
  `;
1742
- function Ht({
1748
+ function qt({
1743
1749
  disabled: e,
1744
1750
  integrated: t = !1,
1745
1751
  maxFileBytes: r,
1746
1752
  maxFiles: n,
1747
- allowedMime: a = gn,
1753
+ allowedMime: a = bn,
1748
1754
  currentCount: c,
1749
1755
  uploadAttachment: u,
1750
1756
  onUploaded: d,
@@ -1766,7 +1772,7 @@ function Ht({
1766
1772
  h == null || h(`You can attach at most ${n} files per message.`);
1767
1773
  break;
1768
1774
  }
1769
- const y = bn(m, r, a);
1775
+ const y = xn(m, r, a);
1770
1776
  if (y) {
1771
1777
  h == null || h(`${m.name}: ${y}`);
1772
1778
  continue;
@@ -1787,7 +1793,7 @@ function Ht({
1787
1793
  ), $ = (i) => {
1788
1794
  const s = i.target.files;
1789
1795
  s != null && s.length && k(s), i.target.value = "";
1790
- }, j = c >= n, S = !!(e || b || j), o = t ? ma : ha;
1796
+ }, j = c >= n, S = !!(e || b || j), o = t ? ga : ma;
1791
1797
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1792
1798
  /* @__PURE__ */ l.jsx(
1793
1799
  "input",
@@ -1811,7 +1817,7 @@ function Ht({
1811
1817
  var i;
1812
1818
  return (i = g.current) == null ? void 0 : i.click();
1813
1819
  },
1814
- children: /* @__PURE__ */ l.jsx(to, { size: 16, strokeWidth: 2 })
1820
+ children: /* @__PURE__ */ l.jsx(ro, { size: 16, strokeWidth: 2 })
1815
1821
  }
1816
1822
  )
1817
1823
  ] });
@@ -1825,31 +1831,31 @@ function he() {
1825
1831
  return e;
1826
1832
  }, he.apply(this, arguments);
1827
1833
  }
1828
- const ga = ["children", "options"], vr = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), $r = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, ba = ["style", "script", "pre"], xa = ["src", "href", "data", "formAction", "srcDoc", "action"], ya = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, ka = /mailto:/i, wa = /\n{2,}$/, Sr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, va = /^ *> ?/gm, $a = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Sa = /^ {2,}\n/, Ca = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Cr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, jr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, ja = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Ia = /^(?:\n *)*\n/, Aa = /\r\n?/g, Ta = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Ea = /^\[\^([^\]]+)]/, Ma = /\f/g, _a = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Ra = /^\s*?\[(x|\s)\]/, Ir = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ar = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Tr = /^([^\n]+)\n *(=|-){3,} *\n/, wt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, za = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Er = /^<!--[\s\S]*?(?:-->)/, Da = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, vt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Na = /^\{.*\}$/, Oa = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Ba = /^<([^ >]+@[^ >]+)>/, Pa = /^<([^ >]+:\/[^ >]+)>/, La = /-([a-z])?/gi, Mr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Fa = /^[^\n]+(?: \n|\n{2,})/, Ka = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Wa = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Ua = /^\[([^\]]*)\] ?\[([^\]]*)\]/, Ha = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, qa = /\t/g, Ga = /(^ *\||\| *$)/g, Ya = /^ *:-+: *$/, Qa = /^ *:-+ *$/, Va = /^ *-+: *$/, ut = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, pt = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Za = RegExp(`^([*_])\\1${ut(1)}${pt}\\1\\1(?!\\1)`), Ja = RegExp(`^([*_])${ut(0)}${pt}\\1(?!\\1)`), Xa = RegExp(`^(==)${ut(0)}${pt}\\1`), es = RegExp(`^(~~)${ut(0)}${pt}\\1`), ts = /^(:[a-zA-Z0-9-_]+:)/, rs = /^\\([^0-9A-Za-z\s])/, ns = /\\([^0-9A-Za-z\s])/g, os = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, as = /^\n+/, ss = /^([ \t]*)/, is = /(?:^|\n)( *)$/, qt = "(?:\\d+\\.)", Gt = "(?:[*+-])";
1829
- function xn(e) {
1830
- return "( *)(" + (e === 1 ? qt : Gt) + ") +";
1831
- }
1832
- const yn = xn(1), kn = xn(2);
1833
- function wn(e) {
1834
- return RegExp("^" + (e === 1 ? yn : kn));
1834
+ const ba = ["children", "options"], $r = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), Sr = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, xa = ["style", "script", "pre"], ya = ["src", "href", "data", "formAction", "srcDoc", "action"], ka = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, wa = /mailto:/i, va = /\n{2,}$/, Cr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, $a = /^ *> ?/gm, Sa = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ca = /^ {2,}\n/, ja = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, jr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Ir = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Ia = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Aa = /^(?:\n *)*\n/, Ta = /\r\n?/g, Ea = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Ma = /^\[\^([^\]]+)]/, _a = /\f/g, Ra = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, za = /^\s*?\[(x|\s)\]/, Ar = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Tr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Er = /^([^\n]+)\n *(=|-){3,} *\n/, vt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Da = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Mr = /^<!--[\s\S]*?(?:-->)/, Oa = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, $t = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Na = /^\{.*\}$/, Ba = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Pa = /^<([^ >]+@[^ >]+)>/, La = /^<([^ >]+:\/[^ >]+)>/, Fa = /-([a-z])?/gi, _r = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Ka = /^[^\n]+(?: \n|\n{2,})/, Wa = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Ua = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Ha = /^\[([^\]]*)\] ?\[([^\]]*)\]/, qa = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Ga = /\t/g, Ya = /(^ *\||\| *$)/g, Qa = /^ *:-+: *$/, Va = /^ *:-+ *$/, Za = /^ *-+: *$/, pt = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, ft = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Ja = RegExp(`^([*_])\\1${pt(1)}${ft}\\1\\1(?!\\1)`), Xa = RegExp(`^([*_])${pt(0)}${ft}\\1(?!\\1)`), es = RegExp(`^(==)${pt(0)}${ft}\\1`), ts = RegExp(`^(~~)${pt(0)}${ft}\\1`), rs = /^(:[a-zA-Z0-9-_]+:)/, ns = /^\\([^0-9A-Za-z\s])/, os = /\\([^0-9A-Za-z\s])/g, as = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, ss = /^\n+/, is = /^([ \t]*)/, cs = /(?:^|\n)( *)$/, Gt = "(?:\\d+\\.)", Yt = "(?:[*+-])";
1835
+ function yn(e) {
1836
+ return "( *)(" + (e === 1 ? Gt : Yt) + ") +";
1835
1837
  }
1836
- const cs = wn(1), ls = wn(2);
1838
+ const kn = yn(1), wn = yn(2);
1837
1839
  function vn(e) {
1838
- return RegExp("^" + (e === 1 ? yn : kn) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? qt : Gt) + " )[^\\n]*)*(\\n|$)", "gm");
1840
+ return RegExp("^" + (e === 1 ? kn : wn));
1839
1841
  }
1840
- const ds = vn(1), us = vn(2);
1842
+ const ls = vn(1), ds = vn(2);
1841
1843
  function $n(e) {
1842
- const t = e === 1 ? qt : Gt;
1844
+ return RegExp("^" + (e === 1 ? kn : wn) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? Gt : Yt) + " )[^\\n]*)*(\\n|$)", "gm");
1845
+ }
1846
+ const us = $n(1), ps = $n(2);
1847
+ function Sn(e) {
1848
+ const t = e === 1 ? Gt : Yt;
1843
1849
  return RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
1844
1850
  }
1845
- const Sn = $n(1), Cn = $n(2);
1846
- function _r(e, t) {
1847
- const r = t === 1, n = r ? Sn : Cn, a = r ? ds : us, c = r ? cs : ls;
1851
+ const Cn = Sn(1), jn = Sn(2);
1852
+ function Rr(e, t) {
1853
+ const r = t === 1, n = r ? Cn : jn, a = r ? us : ps, c = r ? ls : ds;
1848
1854
  return { t: (u) => c.test(u), o: Te(function(u, d) {
1849
- const h = is.exec(d.prevCapture);
1855
+ const h = cs.exec(d.prevCapture);
1850
1856
  return h && (d.list || !d.inline && !d.simple) ? n.exec(u = h[1] + u) : null;
1851
1857
  }), i: 1, u(u, d, h) {
1852
- const g = r ? +u[2] : void 0, b = u[0].replace(wa, `
1858
+ const g = r ? +u[2] : void 0, b = u[0].replace(va, `
1853
1859
  `).match(a);
1854
1860
  let p = !1;
1855
1861
  return { items: b.map(function(w, k) {
@@ -1859,9 +1865,9 @@ function _r(e, t) {
1859
1865
  p = i;
1860
1866
  const s = h.inline, f = h.list;
1861
1867
  let m;
1862
- h.list = !0, i ? (h.inline = !1, m = Oe(S) + `
1868
+ h.list = !0, i ? (h.inline = !1, m = Ne(S) + `
1863
1869
 
1864
- `) : (h.inline = !0, m = Oe(S));
1870
+ `) : (h.inline = !0, m = Ne(S));
1865
1871
  const y = d(m, h);
1866
1872
  return h.inline = s, h.list = f, y;
1867
1873
  }), ordered: r, start: g };
@@ -1869,18 +1875,18 @@ function _r(e, t) {
1869
1875
  return e("li", { key: b }, d(g, h));
1870
1876
  })) };
1871
1877
  }
1872
- const ps = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), fs = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
1873
- function Oe(e) {
1878
+ const fs = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), hs = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
1879
+ function Ne(e) {
1874
1880
  let t = e.length;
1875
1881
  for (; t > 0 && e[t - 1] <= " "; ) t--;
1876
1882
  return e.slice(0, t);
1877
1883
  }
1878
- function Qe(e, t) {
1884
+ function Ve(e, t) {
1879
1885
  return e.startsWith(t);
1880
1886
  }
1881
- function hs(e, t, r) {
1887
+ function ms(e, t, r) {
1882
1888
  if (Array.isArray(r)) {
1883
- for (let n = 0; n < r.length; n++) if (Qe(e, r[n])) return !0;
1889
+ for (let n = 0; n < r.length; n++) if (Ve(e, r[n])) return !0;
1884
1890
  return !1;
1885
1891
  }
1886
1892
  return r(e, t);
@@ -1888,10 +1894,10 @@ function hs(e, t, r) {
1888
1894
  function Re(e) {
1889
1895
  return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
1890
1896
  }
1891
- function ms(e) {
1892
- return Va.test(e) ? "right" : Ya.test(e) ? "center" : Qa.test(e) ? "left" : null;
1897
+ function gs(e) {
1898
+ return Za.test(e) ? "right" : Qa.test(e) ? "center" : Va.test(e) ? "left" : null;
1893
1899
  }
1894
- function Rr(e, t, r, n) {
1900
+ function zr(e, t, r, n) {
1895
1901
  const a = r.inTable;
1896
1902
  r.inTable = !0;
1897
1903
  let c = [[]], u = "";
@@ -1904,17 +1910,17 @@ function Rr(e, t, r, n) {
1904
1910
  h.trim() === "|" && (d(), n) ? g !== 0 && g !== b.length - 1 && c.push([]) : u += h;
1905
1911
  }), d(), r.inTable = a, c;
1906
1912
  }
1907
- function gs(e, t, r) {
1913
+ function bs(e, t, r) {
1908
1914
  r.inline = !0;
1909
- const n = e[2] ? e[2].replace(Ga, "").split("|").map(ms) : [], a = e[3] ? function(u, d, h) {
1915
+ const n = e[2] ? e[2].replace(Ya, "").split("|").map(gs) : [], a = e[3] ? function(u, d, h) {
1910
1916
  return u.trim().split(`
1911
1917
  `).map(function(g) {
1912
- return Rr(g, d, h, !0);
1918
+ return zr(g, d, h, !0);
1913
1919
  });
1914
- }(e[3], t, r) : [], c = Rr(e[1], t, r, !!a.length);
1920
+ }(e[3], t, r) : [], c = zr(e[1], t, r, !!a.length);
1915
1921
  return r.inline = !1, a.length ? { align: n, cells: a, header: c, type: "25" } : { children: c, type: "21" };
1916
1922
  }
1917
- function zr(e, t) {
1923
+ function Dr(e, t) {
1918
1924
  return e.align[t] == null ? {} : { textAlign: e.align[t] };
1919
1925
  }
1920
1926
  function Te(e) {
@@ -1935,73 +1941,73 @@ function le(e) {
1935
1941
  return r.inline || r.simple ? null : e.exec(t);
1936
1942
  };
1937
1943
  }
1938
- function Ke(e) {
1944
+ function We(e) {
1939
1945
  return Te(function(t) {
1940
1946
  return e.exec(t);
1941
1947
  });
1942
1948
  }
1943
- const bs = /(javascript|vbscript|data(?!:image)):/i;
1944
- function xs(e) {
1949
+ const xs = /(javascript|vbscript|data(?!:image)):/i;
1950
+ function ys(e) {
1945
1951
  try {
1946
1952
  const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
1947
- if (bs.test(t)) return null;
1953
+ if (xs.test(t)) return null;
1948
1954
  } catch {
1949
1955
  return null;
1950
1956
  }
1951
1957
  return e;
1952
1958
  }
1953
1959
  function oe(e) {
1954
- return e && e.replace(ns, "$1");
1960
+ return e && e.replace(os, "$1");
1955
1961
  }
1956
- function Ve(e, t, r) {
1962
+ function Ze(e, t, r) {
1957
1963
  const n = r.inline || !1, a = r.simple || !1;
1958
1964
  r.inline = !0, r.simple = !0;
1959
1965
  const c = e(t, r);
1960
1966
  return r.inline = n, r.simple = a, c;
1961
1967
  }
1962
- function ys(e, t, r) {
1968
+ function ks(e, t, r) {
1963
1969
  const n = r.inline || !1, a = r.simple || !1;
1964
1970
  r.inline = !1, r.simple = !0;
1965
1971
  const c = e(t, r);
1966
1972
  return r.inline = n, r.simple = a, c;
1967
1973
  }
1968
- function ks(e, t, r) {
1974
+ function ws(e, t, r) {
1969
1975
  const n = r.inline || !1;
1970
1976
  r.inline = !1;
1971
1977
  const a = e(t, r);
1972
1978
  return r.inline = n, a;
1973
1979
  }
1974
- const $t = (e, t, r) => ({ children: Ve(t, e[2], r) });
1975
- function St() {
1980
+ const St = (e, t, r) => ({ children: Ze(t, e[2], r) });
1981
+ function Ct() {
1976
1982
  return {};
1977
1983
  }
1978
- function Ct() {
1984
+ function jt() {
1979
1985
  return null;
1980
1986
  }
1981
- function ws(...e) {
1987
+ function vs(...e) {
1982
1988
  return e.filter(Boolean).join(" ");
1983
1989
  }
1984
- function jt(e, t, r) {
1990
+ function It(e, t, r) {
1985
1991
  let n = e;
1986
1992
  const a = t.split(".");
1987
1993
  for (; a.length && (n = n[a[0]], n !== void 0); ) a.shift();
1988
1994
  return n || r;
1989
1995
  }
1990
- function vs(e = "", t = {}) {
1991
- t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? he({}, $r, t.namedCodesToUnicode) : $r;
1992
- const r = t.slugify || Re, n = t.sanitizer || xs, a = t.createElement || Ot.createElement, c = [Sr, Cr, jr, t.enforceAtxHeadings ? Ar : Ir, Tr, Mr, Sn, Cn], u = [...c, Fa, wt, Er, vt];
1996
+ function $s(e = "", t = {}) {
1997
+ t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? he({}, Sr, t.namedCodesToUnicode) : Sr;
1998
+ const r = t.slugify || Re, n = t.sanitizer || ys, a = t.createElement || Bt.createElement, c = [Cr, jr, Ir, t.enforceAtxHeadings ? Tr : Ar, Er, _r, Cn, jn], u = [...c, Ka, vt, Mr, $t];
1993
1999
  function d(o, i, ...s) {
1994
- const f = jt(t.overrides, o + ".props", {});
2000
+ const f = It(t.overrides, o + ".props", {});
1995
2001
  return a(function(m, y) {
1996
- const x = jt(y, m);
1997
- return x ? typeof x == "function" || typeof x == "object" && "render" in x ? x : jt(y, m + ".component", m) : m;
1998
- }(o, t.overrides), he({}, i, f, { className: ws(i == null ? void 0 : i.className, f.className) || void 0 }), ...s);
2002
+ const x = It(y, m);
2003
+ return x ? typeof x == "function" || typeof x == "object" && "render" in x ? x : It(y, m + ".component", m) : m;
2004
+ }(o, t.overrides), he({}, i, f, { className: vs(i == null ? void 0 : i.className, f.className) || void 0 }), ...s);
1999
2005
  }
2000
2006
  function h(o) {
2001
- o = o.replace(_a, "");
2007
+ o = o.replace(Ra, "");
2002
2008
  let i = !1;
2003
- t.forceInline ? i = !0 : t.forceBlock || (i = Ha.test(o) === !1);
2004
- const s = $(k(i ? o : Oe(o).replace(as, "") + `
2009
+ t.forceInline ? i = !0 : t.forceBlock || (i = qa.test(o) === !1);
2010
+ const s = $(k(i ? o : Ne(o).replace(ss, "") + `
2005
2011
 
2006
2012
  `, { inline: i }));
2007
2013
  for (; typeof s[s.length - 1] == "string" && !s[s.length - 1].trim(); ) s.pop();
@@ -2017,27 +2023,27 @@ function vs(e = "", t = {}) {
2017
2023
  }
2018
2024
  function g(o, i) {
2019
2025
  if (!i || !i.trim()) return null;
2020
- const s = i.match(ya);
2026
+ const s = i.match(ka);
2021
2027
  return s ? s.reduce(function(f, m) {
2022
2028
  const y = m.indexOf("=");
2023
2029
  if (y !== -1) {
2024
2030
  const x = function(E) {
2025
- return E.indexOf("-") !== -1 && E.match(Da) === null && (E = E.replace(La, function(K, P) {
2031
+ return E.indexOf("-") !== -1 && E.match(Oa) === null && (E = E.replace(Fa, function(K, P) {
2026
2032
  return P.toUpperCase();
2027
2033
  })), E;
2028
2034
  }(m.slice(0, y)).trim(), A = function(E) {
2029
2035
  const K = E[0];
2030
2036
  return (K === '"' || K === "'") && E.length >= 2 && E[E.length - 1] === K ? E.slice(1, -1) : E;
2031
- }(m.slice(y + 1).trim()), M = vr[x] || x;
2037
+ }(m.slice(y + 1).trim()), M = $r[x] || x;
2032
2038
  if (M === "ref") return f;
2033
2039
  const C = f[M] = function(E, K, P, I) {
2034
2040
  return K === "style" ? function(D) {
2035
2041
  const H = [];
2036
- let v = "", N = !1, R = !1, W = "";
2042
+ let v = "", O = !1, R = !1, W = "";
2037
2043
  if (!D) return H;
2038
2044
  for (let q = 0; q < D.length; q++) {
2039
2045
  const z = D[q];
2040
- if (z !== '"' && z !== "'" || N || (R ? z === W && (R = !1, W = "") : (R = !0, W = z)), z === "(" && v.endsWith("url") ? N = !0 : z === ")" && N && (N = !1), z !== ";" || R || N) v += z;
2046
+ if (z !== '"' && z !== "'" || O || (R ? z === W && (R = !1, W = "") : (R = !0, W = z)), z === "(" && v.endsWith("url") ? O = !0 : z === ")" && O && (O = !1), z !== ";" || R || O) v += z;
2041
2047
  else {
2042
2048
  const U = v.trim();
2043
2049
  if (U) {
@@ -2050,50 +2056,50 @@ function vs(e = "", t = {}) {
2050
2056
  v = "";
2051
2057
  }
2052
2058
  }
2053
- const O = v.trim();
2054
- if (O) {
2055
- const q = O.indexOf(":");
2059
+ const N = v.trim();
2060
+ if (N) {
2061
+ const q = N.indexOf(":");
2056
2062
  if (q > 0) {
2057
- const z = O.slice(0, q).trim(), U = O.slice(q + 1).trim();
2063
+ const z = N.slice(0, q).trim(), U = N.slice(q + 1).trim();
2058
2064
  H.push([z, U]);
2059
2065
  }
2060
2066
  }
2061
2067
  return H;
2062
2068
  }(P).reduce(function(D, [H, v]) {
2063
- return D[H.replace(/(-[a-z])/g, (N) => N[1].toUpperCase())] = I(v, E, H), D;
2064
- }, {}) : xa.indexOf(K) !== -1 ? I(oe(P), E, K) : (P.match(Na) && (P = oe(P.slice(1, P.length - 1))), P === "true" || P !== "false" && P);
2069
+ return D[H.replace(/(-[a-z])/g, (O) => O[1].toUpperCase())] = I(v, E, H), D;
2070
+ }, {}) : ya.indexOf(K) !== -1 ? I(oe(P), E, K) : (P.match(Na) && (P = oe(P.slice(1, P.length - 1))), P === "true" || P !== "false" && P);
2065
2071
  }(o, x, A, n);
2066
- typeof C == "string" && (wt.test(C) || vt.test(C)) && (f[M] = h(C.trim()));
2067
- } else m !== "style" && (f[vr[m] || m] = !0);
2072
+ typeof C == "string" && (vt.test(C) || $t.test(C)) && (f[M] = h(C.trim()));
2073
+ } else m !== "style" && (f[$r[m] || m] = !0);
2068
2074
  return f;
2069
2075
  }, {}) : null;
2070
2076
  }
2071
- const b = [], p = {}, w = { 0: { t: [">"], o: le(Sr), i: 1, u(o, i, s) {
2072
- const [, f, m] = o[0].replace(va, "").match($a);
2077
+ const b = [], p = {}, w = { 0: { t: [">"], o: le(Cr), i: 1, u(o, i, s) {
2078
+ const [, f, m] = o[0].replace($a, "").match(Sa);
2073
2079
  return { alert: f, children: i(m, s) };
2074
2080
  }, l(o, i, s) {
2075
2081
  const f = { key: s.key };
2076
2082
  return o.alert && (f.className = "markdown-alert-" + r(o.alert.toLowerCase(), Re), o.children.unshift({ attrs: {}, children: [{ type: "27", text: o.alert }], noInnerParse: !0, type: "11", tag: "header" })), d("blockquote", f, i(o.children, s));
2077
- } }, 1: { o: Ke(Sa), i: 1, u: St, l: (o, i, s) => d("br", { key: s.key }) }, 2: { t: (o) => {
2083
+ } }, 1: { o: We(Ca), i: 1, u: Ct, l: (o, i, s) => d("br", { key: s.key }) }, 2: { t: (o) => {
2078
2084
  const i = o[0];
2079
2085
  return i === "-" || i === "*" || i === "_";
2080
- }, o: le(Ca), i: 1, u: St, l: (o, i, s) => d("hr", { key: s.key }) }, 3: { t: [" "], o: le(jr), i: 0, u: (o) => ({ lang: void 0, text: oe(Oe(o[0].replace(/^ {4}/gm, ""))) }), l: (o, i, s) => d("pre", { key: s.key }, d("code", he({}, o.attrs, { className: o.lang ? "lang-" + o.lang : "" }), o.text)) }, 4: { t: ["```", "~~~"], o: le(Cr), i: 0, u: (o) => ({ attrs: g("code", o[3] || ""), lang: o[2] || void 0, text: o[4], type: "3" }) }, 5: { t: ["`"], o: pe(ja), i: 3, u: (o) => ({ text: oe(o[2]) }), l: (o, i, s) => d("code", { key: s.key }, o.text) }, 6: { t: ["[^"], o: le(Ta), i: 0, u: (o) => (b.push({ footnote: o[2], identifier: o[1] }), {}), l: Ct }, 7: { t: ["[^"], o: ue(Ea), i: 1, u: (o) => ({ target: "#" + r(o[1], Re), text: o[1] }), l: (o, i, s) => d("a", { key: s.key, href: n(o.target, "a", "href") }, d("sup", { key: s.key }, o.text)) }, 8: { t: ["[ ]", "[x]"], o: ue(Ra), i: 1, u: (o) => ({ completed: o[1].toLowerCase() === "x" }), l: (o, i, s) => d("input", { checked: o.completed, key: s.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: le(t.enforceAtxHeadings ? Ar : Ir), i: 1, u: (o, i, s) => ({ children: Ve(i, o[2], s), id: r(o[2], Re), level: o[1].length }), l: (o, i, s) => d("h" + o.level, { id: o.id, key: s.key }, i(o.children, s)) }, 10: { o: le(Tr), i: 0, u: (o, i, s) => ({ children: Ve(i, o[1], s), level: o[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: Ke(wt), i: 1, u(o, i, s) {
2081
- const [, f] = o[3].match(ss), m = RegExp("^" + f, "gm"), y = o[3].replace(m, ""), x = (A = y, u.some((P) => P.test(A)) ? ks : Ve);
2086
+ }, o: le(ja), i: 1, u: Ct, l: (o, i, s) => d("hr", { key: s.key }) }, 3: { t: [" "], o: le(Ir), i: 0, u: (o) => ({ lang: void 0, text: oe(Ne(o[0].replace(/^ {4}/gm, ""))) }), l: (o, i, s) => d("pre", { key: s.key }, d("code", he({}, o.attrs, { className: o.lang ? "lang-" + o.lang : "" }), o.text)) }, 4: { t: ["```", "~~~"], o: le(jr), i: 0, u: (o) => ({ attrs: g("code", o[3] || ""), lang: o[2] || void 0, text: o[4], type: "3" }) }, 5: { t: ["`"], o: pe(Ia), i: 3, u: (o) => ({ text: oe(o[2]) }), l: (o, i, s) => d("code", { key: s.key }, o.text) }, 6: { t: ["[^"], o: le(Ea), i: 0, u: (o) => (b.push({ footnote: o[2], identifier: o[1] }), {}), l: jt }, 7: { t: ["[^"], o: ue(Ma), i: 1, u: (o) => ({ target: "#" + r(o[1], Re), text: o[1] }), l: (o, i, s) => d("a", { key: s.key, href: n(o.target, "a", "href") }, d("sup", { key: s.key }, o.text)) }, 8: { t: ["[ ]", "[x]"], o: ue(za), i: 1, u: (o) => ({ completed: o[1].toLowerCase() === "x" }), l: (o, i, s) => d("input", { checked: o.completed, key: s.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: le(t.enforceAtxHeadings ? Tr : Ar), i: 1, u: (o, i, s) => ({ children: Ze(i, o[2], s), id: r(o[2], Re), level: o[1].length }), l: (o, i, s) => d("h" + o.level, { id: o.id, key: s.key }, i(o.children, s)) }, 10: { o: le(Er), i: 0, u: (o, i, s) => ({ children: Ze(i, o[1], s), level: o[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: We(vt), i: 1, u(o, i, s) {
2087
+ const [, f] = o[3].match(is), m = RegExp("^" + f, "gm"), y = o[3].replace(m, ""), x = (A = y, u.some((P) => P.test(A)) ? ws : Ze);
2082
2088
  var A;
2083
- const M = o[1].toLowerCase(), C = ba.indexOf(M) !== -1, E = (C ? M : o[1]).trim(), K = { attrs: g(E, o[2]), noInnerParse: C, tag: E };
2089
+ const M = o[1].toLowerCase(), C = xa.indexOf(M) !== -1, E = (C ? M : o[1]).trim(), K = { attrs: g(E, o[2]), noInnerParse: C, tag: E };
2084
2090
  if (s.inAnchor = s.inAnchor || M === "a", C) K.text = o[3];
2085
2091
  else {
2086
2092
  const P = s.inHTML;
2087
2093
  s.inHTML = !0, K.children = x(i, y, s), s.inHTML = P;
2088
2094
  }
2089
2095
  return s.inAnchor = !1, K;
2090
- }, l: (o, i, s) => d(o.tag, he({ key: s.key }, o.attrs), o.text || (o.children ? i(o.children, s) : "")) }, 13: { t: ["<"], o: Ke(vt), i: 1, u(o) {
2096
+ }, l: (o, i, s) => d(o.tag, he({ key: s.key }, o.attrs), o.text || (o.children ? i(o.children, s) : "")) }, 13: { t: ["<"], o: We($t), i: 1, u(o) {
2091
2097
  const i = o[1].trim();
2092
2098
  return { attrs: g(i, o[2] || ""), tag: i };
2093
- }, l: (o, i, s) => d(o.tag, he({}, o.attrs, { key: s.key })) }, 12: { t: ["<!--"], o: Ke(Er), i: 1, u: () => ({}), l: Ct }, 14: { t: ["!["], o: pe(fs), i: 1, u: (o) => ({ alt: oe(o[1]), target: oe(o[2]), title: oe(o[3]) }), l: (o, i, s) => d("img", { key: s.key, alt: o.alt || void 0, title: o.title || void 0, src: n(o.target, "img", "src") }) }, 15: { t: ["["], o: ue(ps), i: 3, u: (o, i, s) => ({ children: ys(i, o[1], s), target: oe(o[2]), title: oe(o[3]) }), l: (o, i, s) => d("a", { key: s.key, href: n(o.target, "a", "href"), title: o.title }, i(o.children, s)) }, 16: { t: ["<"], o: ue(Pa), i: 0, u: (o) => ({ children: [{ text: o[1], type: "27" }], target: o[1], type: "15" }) }, 17: { t: (o, i) => !i.inAnchor && !t.disableAutoLink && (Qe(o, "http://") || Qe(o, "https://")), o: ue(Oa), i: 0, u: (o) => ({ children: [{ text: o[1], type: "27" }], target: o[1], title: void 0, type: "15" }) }, 18: { t: ["<"], o: ue(Ba), i: 0, u(o) {
2099
+ }, l: (o, i, s) => d(o.tag, he({}, o.attrs, { key: s.key })) }, 12: { t: ["<!--"], o: We(Mr), i: 1, u: () => ({}), l: jt }, 14: { t: ["!["], o: pe(hs), i: 1, u: (o) => ({ alt: oe(o[1]), target: oe(o[2]), title: oe(o[3]) }), l: (o, i, s) => d("img", { key: s.key, alt: o.alt || void 0, title: o.title || void 0, src: n(o.target, "img", "src") }) }, 15: { t: ["["], o: ue(fs), i: 3, u: (o, i, s) => ({ children: ks(i, o[1], s), target: oe(o[2]), title: oe(o[3]) }), l: (o, i, s) => d("a", { key: s.key, href: n(o.target, "a", "href"), title: o.title }, i(o.children, s)) }, 16: { t: ["<"], o: ue(La), i: 0, u: (o) => ({ children: [{ text: o[1], type: "27" }], target: o[1], type: "15" }) }, 17: { t: (o, i) => !i.inAnchor && !t.disableAutoLink && (Ve(o, "http://") || Ve(o, "https://")), o: ue(Ba), i: 0, u: (o) => ({ children: [{ text: o[1], type: "27" }], target: o[1], title: void 0, type: "15" }) }, 18: { t: ["<"], o: ue(Pa), i: 0, u(o) {
2094
2100
  let i = o[1], s = o[1];
2095
- return ka.test(s) || (s = "mailto:" + s), { children: [{ text: i.replace("mailto:", ""), type: "27" }], target: s, type: "15" };
2096
- } }, 20: _r(d, 1), 33: _r(d, 2), 19: { o: le(Ia), i: 3, u: St, l: () => `
2101
+ return wa.test(s) || (s = "mailto:" + s), { children: [{ text: i.replace("mailto:", ""), type: "27" }], target: s, type: "15" };
2102
+ } }, 20: Rr(d, 1), 33: Rr(d, 2), 19: { o: le(Aa), i: 3, u: Ct, l: () => `
2097
2103
  ` }, 21: { o: Te(function(o, i) {
2098
2104
  if (i.inline || i.simple || i.inHTML && o.indexOf(`
2099
2105
 
@@ -2104,27 +2110,27 @@ function vs(e = "", t = {}) {
2104
2110
  o.split(`
2105
2111
  `).every((m) => (m += `
2106
2112
  `, !c.some((y) => y.test(m)) && (s += m, !!m.trim())));
2107
- const f = Oe(s);
2113
+ const f = Ne(s);
2108
2114
  return f === "" ? null : [s, , f];
2109
- }), i: 3, u: $t, l: (o, i, s) => d("p", { key: s.key }, i(o.children, s)) }, 22: { t: ["["], o: ue(Ka), i: 0, u: (o) => (p[o[1]] = { target: o[2], title: o[4] }, {}), l: Ct }, 23: { t: ["!["], o: pe(Wa), i: 0, u: (o) => ({ alt: o[1] ? oe(o[1]) : void 0, ref: o[2] }), l: (o, i, s) => p[o.ref] ? d("img", { key: s.key, alt: o.alt, src: n(p[o.ref].target, "img", "src"), title: p[o.ref].title }) : null }, 24: { t: (o) => o[0] === "[" && o.indexOf("](") === -1, o: ue(Ua), i: 0, u: (o, i, s) => ({ children: i(o[1], s), fallbackChildren: o[0], ref: o[2] }), l: (o, i, s) => p[o.ref] ? d("a", { key: s.key, href: n(p[o.ref].target, "a", "href"), title: p[o.ref].title }, i(o.children, s)) : d("span", { key: s.key }, o.fallbackChildren) }, 25: { t: ["|"], o: le(Mr), i: 1, u: gs, l(o, i, s) {
2115
+ }), i: 3, u: St, l: (o, i, s) => d("p", { key: s.key }, i(o.children, s)) }, 22: { t: ["["], o: ue(Wa), i: 0, u: (o) => (p[o[1]] = { target: o[2], title: o[4] }, {}), l: jt }, 23: { t: ["!["], o: pe(Ua), i: 0, u: (o) => ({ alt: o[1] ? oe(o[1]) : void 0, ref: o[2] }), l: (o, i, s) => p[o.ref] ? d("img", { key: s.key, alt: o.alt, src: n(p[o.ref].target, "img", "src"), title: p[o.ref].title }) : null }, 24: { t: (o) => o[0] === "[" && o.indexOf("](") === -1, o: ue(Ha), i: 0, u: (o, i, s) => ({ children: i(o[1], s), fallbackChildren: o[0], ref: o[2] }), l: (o, i, s) => p[o.ref] ? d("a", { key: s.key, href: n(p[o.ref].target, "a", "href"), title: p[o.ref].title }, i(o.children, s)) : d("span", { key: s.key }, o.fallbackChildren) }, 25: { t: ["|"], o: le(_r), i: 1, u: bs, l(o, i, s) {
2110
2116
  const f = o;
2111
2117
  return d("table", { key: s.key }, d("thead", null, d("tr", null, f.header.map(function(m, y) {
2112
- return d("th", { key: y, style: zr(f, y) }, i(m, s));
2118
+ return d("th", { key: y, style: Dr(f, y) }, i(m, s));
2113
2119
  }))), d("tbody", null, f.cells.map(function(m, y) {
2114
2120
  return d("tr", { key: y }, m.map(function(x, A) {
2115
- return d("td", { key: A, style: zr(f, A) }, i(x, s));
2121
+ return d("td", { key: A, style: Dr(f, A) }, i(x, s));
2116
2122
  }));
2117
2123
  })));
2118
2124
  } }, 27: { o: Te(function(o, i) {
2119
2125
  let s;
2120
- return Qe(o, ":") && (s = ts.exec(o)), s || os.exec(o);
2126
+ return Ve(o, ":") && (s = rs.exec(o)), s || as.exec(o);
2121
2127
  }), i: 4, u(o) {
2122
2128
  const i = o[0];
2123
- return { text: i.indexOf("&") === -1 ? i : i.replace(za, (s, f) => t.namedCodesToUnicode[f] || s) };
2124
- }, l: (o) => o.text }, 28: { t: ["**", "__"], o: pe(Za), i: 2, u: (o, i, s) => ({ children: i(o[2], s) }), l: (o, i, s) => d("strong", { key: s.key }, i(o.children, s)) }, 29: { t: (o) => {
2129
+ return { text: i.indexOf("&") === -1 ? i : i.replace(Da, (s, f) => t.namedCodesToUnicode[f] || s) };
2130
+ }, l: (o) => o.text }, 28: { t: ["**", "__"], o: pe(Ja), i: 2, u: (o, i, s) => ({ children: i(o[2], s) }), l: (o, i, s) => d("strong", { key: s.key }, i(o.children, s)) }, 29: { t: (o) => {
2125
2131
  const i = o[0];
2126
2132
  return (i === "*" || i === "_") && o[1] !== i;
2127
- }, o: pe(Ja), i: 3, u: (o, i, s) => ({ children: i(o[2], s) }), l: (o, i, s) => d("em", { key: s.key }, i(o.children, s)) }, 30: { t: ["\\"], o: pe(rs), i: 1, u: (o) => ({ text: o[1], type: "27" }) }, 31: { t: ["=="], o: pe(Xa), i: 3, u: $t, l: (o, i, s) => d("mark", { key: s.key }, i(o.children, s)) }, 32: { t: ["~~"], o: pe(es), i: 3, u: $t, l: (o, i, s) => d("del", { key: s.key }, i(o.children, s)) } };
2133
+ }, o: pe(Xa), i: 3, u: (o, i, s) => ({ children: i(o[2], s) }), l: (o, i, s) => d("em", { key: s.key }, i(o.children, s)) }, 30: { t: ["\\"], o: pe(ns), i: 1, u: (o) => ({ text: o[1], type: "27" }) }, 31: { t: ["=="], o: pe(es), i: 3, u: St, l: (o, i, s) => d("mark", { key: s.key }, i(o.children, s)) }, 32: { t: ["~~"], o: pe(ts), i: 3, u: St, l: (o, i, s) => d("del", { key: s.key }, i(o.children, s)) } };
2128
2134
  t.disableParsingRawHTML === !0 && (delete w[11], delete w[13]);
2129
2135
  const k = function(o) {
2130
2136
  var i = Object.keys(o);
@@ -2132,7 +2138,7 @@ function vs(e = "", t = {}) {
2132
2138
  var y = [];
2133
2139
  if (m.prevCapture = m.prevCapture || "", f.trim()) for (; f; ) for (var x = 0; x < i.length; ) {
2134
2140
  var A = i[x], M = o[A];
2135
- if (!M.t || hs(f, m, M.t)) {
2141
+ if (!M.t || ms(f, m, M.t)) {
2136
2142
  var C = M.o(f, m);
2137
2143
  if (C && C[0]) {
2138
2144
  f = f.substring(C[0].length);
@@ -2149,8 +2155,8 @@ function vs(e = "", t = {}) {
2149
2155
  return o[f].i - o[m].i || (f < m ? -1 : 1);
2150
2156
  }), function(f, m) {
2151
2157
  return s(function(y) {
2152
- return y.replace(Aa, `
2153
- `).replace(Ma, "").replace(qa, " ");
2158
+ return y.replace(Ta, `
2159
+ `).replace(_a, "").replace(Ga, " ");
2154
2160
  }(f), m);
2155
2161
  };
2156
2162
  }(w), $ = (j = /* @__PURE__ */ function(o, i) {
@@ -2177,15 +2183,15 @@ function vs(e = "", t = {}) {
2177
2183
  return d("div", { id: r(o.identifier, Re), key: o.identifier }, o.identifier, $(k(o.footnote, { inline: !0 })));
2178
2184
  }))) : S;
2179
2185
  }
2180
- const $s = (e) => {
2186
+ const Ss = (e) => {
2181
2187
  let { children: t = "", options: r } = e, n = function(a, c) {
2182
2188
  if (a == null) return {};
2183
2189
  var u, d, h = {}, g = Object.keys(a);
2184
2190
  for (d = 0; d < g.length; d++) c.indexOf(u = g[d]) >= 0 || (h[u] = a[u]);
2185
2191
  return h;
2186
- }(e, ga);
2187
- return Ot.cloneElement(vs(t, r), n);
2188
- }, Ss = T.div`
2192
+ }(e, ba);
2193
+ return Bt.cloneElement($s(t, r), n);
2194
+ }, Cs = T.div`
2189
2195
  code {
2190
2196
  @media (prefers-color-scheme: dark) {
2191
2197
  background-color: #374151 !important;
@@ -2224,9 +2230,9 @@ const $s = (e) => {
2224
2230
  }
2225
2231
  }
2226
2232
  `;
2227
- function Yt({ content: e, className: t }) {
2228
- return /* @__PURE__ */ l.jsx(Ss, { className: t, children: /* @__PURE__ */ l.jsx(
2229
- $s,
2233
+ function Qt({ content: e, className: t }) {
2234
+ return /* @__PURE__ */ l.jsx(Cs, { className: t, children: /* @__PURE__ */ l.jsx(
2235
+ Ss,
2230
2236
  {
2231
2237
  options: {
2232
2238
  overrides: {
@@ -2397,7 +2403,7 @@ function Yt({ content: e, className: t }) {
2397
2403
  }
2398
2404
  ) });
2399
2405
  }
2400
- const jn = T.div`
2406
+ const In = T.div`
2401
2407
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
2402
2408
  background-color: white;
2403
2409
  border: 1px solid #e5e7eb;
@@ -2475,7 +2481,7 @@ const jn = T.div`
2475
2481
  font-weight: 700;
2476
2482
  }
2477
2483
  }
2478
- `, Qt = T.div`
2484
+ `, Vt = T.div`
2479
2485
  display: flex;
2480
2486
  flex-direction: column;
2481
2487
  flex: 1;
@@ -2508,7 +2514,7 @@ const jn = T.div`
2508
2514
  border-color: rgba(255, 255, 255, 0.3);
2509
2515
  }
2510
2516
  }
2511
- `, Vt = T.div`
2517
+ `, Zt = T.div`
2512
2518
  display: flex;
2513
2519
  align-items: center;
2514
2520
  justify-content: space-between;
@@ -2527,7 +2533,7 @@ const jn = T.div`
2527
2533
  border-top-color: #52525b;
2528
2534
  background-color: #3f3f46;
2529
2535
  }
2530
- `, Cs = T.textarea`
2536
+ `, js = T.textarea`
2531
2537
  display: block;
2532
2538
  width: 100%;
2533
2539
  min-width: 0;
@@ -2571,7 +2577,7 @@ const jn = T.div`
2571
2577
  color: #9ca3af;
2572
2578
  }
2573
2579
  }
2574
- `, Zt = T.div`
2580
+ `, Jt = T.div`
2575
2581
  display: flex;
2576
2582
  align-items: center;
2577
2583
  gap: 8px;
@@ -2588,7 +2594,7 @@ const jn = T.div`
2588
2594
  background-color: #1f2937;
2589
2595
  border-top-color: #374151;
2590
2596
  }
2591
- `, js = T.textarea`
2597
+ `, Is = T.textarea`
2592
2598
  flex: 1;
2593
2599
  width: 100%;
2594
2600
  min-height: 40px;
@@ -2647,7 +2653,7 @@ const jn = T.div`
2647
2653
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
2648
2654
  }
2649
2655
  }
2650
- `, Is = T.button`
2656
+ `, As = T.button`
2651
2657
  width: 32px;
2652
2658
  height: 32px;
2653
2659
  min-width: 32px;
@@ -2720,7 +2726,7 @@ const jn = T.div`
2720
2726
  color: #6b7280;
2721
2727
  }
2722
2728
  }
2723
- `, Jt = T.button`
2729
+ `, Xt = T.button`
2724
2730
  width: 26px;
2725
2731
  height: 26px;
2726
2732
  min-width: 26px;
@@ -2815,7 +2821,7 @@ const jn = T.div`
2815
2821
  color: #6b7280;
2816
2822
  }
2817
2823
  }
2818
- `, It = (e, t = 0.15) => {
2824
+ `, At = (e, t = 0.15) => {
2819
2825
  if (e && e.startsWith("#")) {
2820
2826
  const r = e.replace("#", ""), n = parseInt(r, 16);
2821
2827
  if (isNaN(n)) return e;
@@ -2823,7 +2829,7 @@ const jn = T.div`
2823
2829
  return `#${Math.floor(a).toString(16).padStart(2, "0")}${Math.floor(c).toString(16).padStart(2, "0")}${Math.floor(u).toString(16).padStart(2, "0")}`;
2824
2830
  }
2825
2831
  return e || "#2563eb";
2826
- }, As = T.button`
2832
+ }, Ts = T.button`
2827
2833
  position: fixed;
2828
2834
  z-index: 50;
2829
2835
  height: 48px;
@@ -2832,7 +2838,7 @@ const jn = T.div`
2832
2838
  line-height: normal;
2833
2839
  background: ${(e) => {
2834
2840
  if (e.$primaryColor) {
2835
- const t = It(e.$primaryColor, 0.1);
2841
+ const t = At(e.$primaryColor, 0.1);
2836
2842
  return `linear-gradient(135deg, ${e.$primaryColor} 0%, ${t} 100%)`;
2837
2843
  }
2838
2844
  return "linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)";
@@ -2866,7 +2872,7 @@ const jn = T.div`
2866
2872
  &:hover {
2867
2873
  background: ${(e) => {
2868
2874
  if (e.$primaryColor) {
2869
- const t = It(e.$primaryColor, 0.2), r = It(e.$primaryColor, 0.3);
2875
+ const t = At(e.$primaryColor, 0.2), r = At(e.$primaryColor, 0.3);
2870
2876
  return `linear-gradient(135deg, ${t} 0%, ${r} 100%)`;
2871
2877
  }
2872
2878
  return "linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%)";
@@ -2883,7 +2889,7 @@ const jn = T.div`
2883
2889
  align-items: center;
2884
2890
  justify-content: center;
2885
2891
  }
2886
- `, Ts = T.div`
2892
+ `, Es = T.div`
2887
2893
  position: fixed;
2888
2894
  z-index: 50;
2889
2895
  width: 320px;
@@ -3023,7 +3029,7 @@ T.div`
3023
3029
  }
3024
3030
  }
3025
3031
  `;
3026
- const Xt = T.div`
3032
+ const er = T.div`
3027
3033
  display: flex;
3028
3034
  gap: 4px;
3029
3035
  align-items: center;
@@ -3068,7 +3074,7 @@ T.div`
3068
3074
  color: ${(e) => e.$isUser ? "rgba(255, 255, 255, 0.8)" : "#d1d5db"};
3069
3075
  }
3070
3076
  `;
3071
- const er = T.div`
3077
+ const tr = T.div`
3072
3078
  font-size: 14px;
3073
3079
  color: #dc2626;
3074
3080
  text-align: center;
@@ -3078,7 +3084,7 @@ const er = T.div`
3078
3084
  @media (prefers-color-scheme: dark) {
3079
3085
  color: #f87171;
3080
3086
  }
3081
- `, Es = T.div`
3087
+ `, Ms = T.div`
3082
3088
  position: absolute;
3083
3089
  ${(e) => e.$position === "top" ? "top: 0;" : "bottom: 0;"}
3084
3090
  left: 0;
@@ -3110,7 +3116,7 @@ const er = T.div`
3110
3116
  flex-shrink: 0;
3111
3117
  border: 2px solid rgba(255, 255, 255, 0.2);
3112
3118
  background-color: rgba(255, 255, 255, 0.1);
3113
- `, Ms = T.div`
3119
+ `, _s = T.div`
3114
3120
  display: flex;
3115
3121
  flex-direction: column;
3116
3122
  align-items: center;
@@ -3132,7 +3138,7 @@ const er = T.div`
3132
3138
  [data-theme="dark"] & {
3133
3139
  background: ${(e) => e.$primaryColor ? `linear-gradient(to bottom, ${e.$primaryColor} 0%, ${e.$primaryColor} 20%, rgba(31, 41, 55, 0.3) 45%, rgba(31, 41, 55, 0.7) 65%, rgba(31, 41, 55, 1) 100%)` : "transparent"};
3134
3140
  }
3135
- `, _s = T.div`
3141
+ `, Rs = T.div`
3136
3142
  font-size: 18px;
3137
3143
  font-weight: 600;
3138
3144
  text-align: center;
@@ -3146,7 +3152,7 @@ const er = T.div`
3146
3152
  [data-theme="dark"] & {
3147
3153
  color: #f9fafb;
3148
3154
  }
3149
- `, Rs = T.img`
3155
+ `, zs = T.img`
3150
3156
  max-width: 120px;
3151
3157
  max-height: 120px;
3152
3158
  width: auto;
@@ -3154,14 +3160,14 @@ const er = T.div`
3154
3160
  object-fit: contain;
3155
3161
  margin-bottom: 8px;
3156
3162
  border-radius: 8px;
3157
- `, zs = T.div`
3163
+ `, Ds = T.div`
3158
3164
  display: flex;
3159
3165
  flex-direction: column;
3160
3166
  gap: 12px;
3161
3167
  width: 100%;
3162
3168
  max-width: 100%;
3163
3169
  margin-bottom: 16px;
3164
- `, Ds = T.button`
3170
+ `, Os = T.button`
3165
3171
  width: 100%;
3166
3172
  padding: 12px 16px;
3167
3173
  box-sizing: border-box;
@@ -3229,7 +3235,7 @@ const er = T.div`
3229
3235
  [data-theme="dark"] & {
3230
3236
  border-top-color: #374151;
3231
3237
  }
3232
- `, ft = F.forwardRef(function({
3238
+ `, ht = F.forwardRef(function({
3233
3239
  value: t,
3234
3240
  onChange: r,
3235
3241
  onKeyDown: n,
@@ -3243,7 +3249,7 @@ const er = T.div`
3243
3249
  r(k.target.value);
3244
3250
  }, p = (k) => {
3245
3251
  k.key === "Enter" && !k.shiftKey && k.preventDefault(), n(k);
3246
- }, w = h === "composer" ? Cs : js;
3252
+ }, w = h === "composer" ? js : Is;
3247
3253
  return /* @__PURE__ */ l.jsx(
3248
3254
  w,
3249
3255
  {
@@ -3264,7 +3270,7 @@ const er = T.div`
3264
3270
  }
3265
3271
  );
3266
3272
  });
3267
- function ht({ size: e = 16 }) {
3273
+ function mt({ size: e = 16 }) {
3268
3274
  return /* @__PURE__ */ l.jsxs(
3269
3275
  "svg",
3270
3276
  {
@@ -3284,23 +3290,23 @@ function ht({ size: e = 16 }) {
3284
3290
  }
3285
3291
  );
3286
3292
  }
3287
- function tr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3293
+ function rr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3288
3294
  const [a, c] = F.useState(""), u = F.useRef(null), d = async () => {
3289
3295
  !a.trim() || n || (await r(a.trim()), c(""));
3290
3296
  }, h = (b) => {
3291
3297
  b.key === "Enter" && !b.shiftKey && (b.preventDefault(), d());
3292
3298
  }, g = e.welcomeMessage || "Hi there 👋 How can we help?";
3293
- return /* @__PURE__ */ l.jsxs(Ms, { $primaryColor: e.primaryColor, children: [
3299
+ return /* @__PURE__ */ l.jsxs(_s, { $primaryColor: e.primaryColor, children: [
3294
3300
  e.welcomeImage && /* @__PURE__ */ l.jsx(
3295
- Rs,
3301
+ zs,
3296
3302
  {
3297
3303
  src: e.welcomeImage,
3298
3304
  alt: "Welcome"
3299
3305
  }
3300
3306
  ),
3301
- /* @__PURE__ */ l.jsx(_s, { children: g }),
3302
- e.quickQuestions && e.quickQuestions.length > 0 && /* @__PURE__ */ l.jsx(zs, { children: e.quickQuestions.map((b, p) => /* @__PURE__ */ l.jsx(
3303
- Ds,
3307
+ /* @__PURE__ */ l.jsx(Rs, { children: g }),
3308
+ e.quickQuestions && e.quickQuestions.length > 0 && /* @__PURE__ */ l.jsx(Ds, { children: e.quickQuestions.map((b, p) => /* @__PURE__ */ l.jsx(
3309
+ Os,
3304
3310
  {
3305
3311
  onClick: () => t(b),
3306
3312
  disabled: n,
@@ -3311,7 +3317,7 @@ function tr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3311
3317
  )) }),
3312
3318
  /* @__PURE__ */ l.jsxs(Ns, { children: [
3313
3319
  /* @__PURE__ */ l.jsx(
3314
- ft,
3320
+ ht,
3315
3321
  {
3316
3322
  ref: u,
3317
3323
  value: a,
@@ -3322,19 +3328,19 @@ function tr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3322
3328
  }
3323
3329
  ),
3324
3330
  /* @__PURE__ */ l.jsx(
3325
- Is,
3331
+ As,
3326
3332
  {
3327
3333
  onClick: d,
3328
3334
  disabled: n || !a.trim(),
3329
- children: /* @__PURE__ */ l.jsx(ht, { size: 16 })
3335
+ children: /* @__PURE__ */ l.jsx(mt, { size: 16 })
3330
3336
  }
3331
3337
  )
3332
3338
  ] })
3333
3339
  ] });
3334
3340
  }
3335
- function rr(e, t) {
3341
+ function nr(e, t) {
3336
3342
  var j;
3337
- const r = (e.maxAttachmentSizeMB ?? 10) * 1024 * 1024, n = e.maxAttachments ?? 3, a = (j = e.allowedAttachmentTypes) != null && j.length ? e.allowedAttachmentTypes : gn, c = !!(e.enableAttachments && e.publishableKey), [u, d] = J([]), [h, g] = J(null), b = ae([]);
3343
+ const r = (e.maxAttachmentSizeMB ?? 10) * 1024 * 1024, n = e.maxAttachments ?? 3, a = (j = e.allowedAttachmentTypes) != null && j.length ? e.allowedAttachmentTypes : bn, c = !!(e.enableAttachments && e.publishableKey), [u, d] = J([]), [h, g] = J(null), b = ae([]);
3338
3344
  De(() => {
3339
3345
  b.current = u;
3340
3346
  }, [u]);
@@ -3347,7 +3353,7 @@ function rr(e, t) {
3347
3353
  g(`At most ${n} attachments per message.`);
3348
3354
  break;
3349
3355
  }
3350
- const i = bn(o, r, a);
3356
+ const i = xn(o, r, a);
3351
3357
  if (i) {
3352
3358
  g(`${o.name}: ${i}`);
3353
3359
  continue;
@@ -3397,7 +3403,7 @@ function rr(e, t) {
3397
3403
  allowed: a
3398
3404
  };
3399
3405
  }
3400
- function Os({ size: e = 16 }) {
3406
+ function Bs({ size: e = 16 }) {
3401
3407
  return /* @__PURE__ */ l.jsx(
3402
3408
  "svg",
3403
3409
  {
@@ -3414,7 +3420,7 @@ function Os({ size: e = 16 }) {
3414
3420
  }
3415
3421
  );
3416
3422
  }
3417
- function Bs({ size: e = 16 }) {
3423
+ function Ps({ size: e = 16 }) {
3418
3424
  return /* @__PURE__ */ l.jsxs(
3419
3425
  "svg",
3420
3426
  {
@@ -3438,7 +3444,7 @@ function Bs({ size: e = 16 }) {
3438
3444
  * Copyright (c) StackBlitz. All rights reserved.
3439
3445
  * Licensed under the MIT License. See License.txt in the project root for license information.
3440
3446
  *--------------------------------------------------------------------------------------------*/
3441
- const Ps = {
3447
+ const Ls = {
3442
3448
  /**
3443
3449
  * A value from 0 to 1, on how much to damp the animation.
3444
3450
  * 0 means no damping, 1 means full damping.
@@ -3459,26 +3465,26 @@ const Ps = {
3459
3465
  * @default 1.25
3460
3466
  */
3461
3467
  mass: 1.25
3462
- }, Ls = 70, Fs = 1e3 / 60, Ks = 350;
3463
- let mt = !1;
3464
- var Or;
3465
- (Or = globalThis.document) == null || Or.addEventListener("mousedown", () => {
3466
- mt = !0;
3467
- });
3468
+ }, Fs = 70, Ks = 1e3 / 60, Ws = 350;
3469
+ let gt = !1;
3468
3470
  var Br;
3469
- (Br = globalThis.document) == null || Br.addEventListener("mouseup", () => {
3470
- mt = !1;
3471
+ (Br = globalThis.document) == null || Br.addEventListener("mousedown", () => {
3472
+ gt = !0;
3471
3473
  });
3472
3474
  var Pr;
3473
- (Pr = globalThis.document) == null || Pr.addEventListener("click", () => {
3474
- mt = !1;
3475
+ (Pr = globalThis.document) == null || Pr.addEventListener("mouseup", () => {
3476
+ gt = !1;
3477
+ });
3478
+ var Lr;
3479
+ (Lr = globalThis.document) == null || Lr.addEventListener("click", () => {
3480
+ gt = !1;
3475
3481
  });
3476
- const Ws = (e = {}) => {
3482
+ const Us = (e = {}) => {
3477
3483
  const [t, r] = J(!1), [n, a] = J(e.initial !== !1), [c, u] = J(!1), d = ae(null);
3478
3484
  d.current = e;
3479
3485
  const h = Z(() => {
3480
3486
  var f;
3481
- if (!mt)
3487
+ if (!gt)
3482
3488
  return !1;
3483
3489
  const i = window.getSelection();
3484
3490
  if (!i || !i.rangeCount)
@@ -3489,7 +3495,7 @@ const Ws = (e = {}) => {
3489
3495
  p.isAtBottom = i, a(i);
3490
3496
  }, []), b = Z((i) => {
3491
3497
  p.escapedFromLock = i, r(i);
3492
- }, []), p = Bt(() => {
3498
+ }, []), p = Pt(() => {
3493
3499
  let i;
3494
3500
  return {
3495
3501
  escapedFromLock: t,
@@ -3528,13 +3534,13 @@ const Ws = (e = {}) => {
3528
3534
  return this.calculatedTargetScrollTop - this.scrollTop;
3529
3535
  },
3530
3536
  get isNearBottom() {
3531
- return this.scrollDifference <= Ls;
3537
+ return this.scrollDifference <= Fs;
3532
3538
  }
3533
3539
  };
3534
3540
  }, []), w = Z((i = {}) => {
3535
3541
  var M;
3536
3542
  typeof i == "string" && (i = { animation: i }), i.preserveScrollPosition || g(!0);
3537
- const s = Date.now() + (Number(i.wait) || 0), f = Tt(d.current, i.animation), { ignoreEscapes: m = !1 } = i;
3543
+ const s = Date.now() + (Number(i.wait) || 0), f = Et(d.current, i.animation), { ignoreEscapes: m = !1 } = i;
3538
3544
  let y, x = p.calculatedTargetScrollTop;
3539
3545
  i.duration instanceof Promise ? i.duration.finally(() => {
3540
3546
  y = Date.now();
@@ -3544,7 +3550,7 @@ const Ws = (e = {}) => {
3544
3550
  var I;
3545
3551
  if (!p.isAtBottom)
3546
3552
  return p.animation = void 0, !1;
3547
- const { scrollTop: E } = p, K = performance.now(), P = (K - (p.lastTick ?? K)) / Fs;
3553
+ const { scrollTop: E } = p, K = performance.now(), P = (K - (p.lastTick ?? K)) / Ks;
3548
3554
  if (p.animation || (p.animation = { behavior: f, promise: C, ignoreEscapes: m }), p.animation.behavior === f && (p.lastTick = K), h() || s > Date.now())
3549
3555
  return A();
3550
3556
  if (E < Math.min(x, p.calculatedTargetScrollTop)) {
@@ -3556,7 +3562,7 @@ const Ws = (e = {}) => {
3556
3562
  return A();
3557
3563
  }
3558
3564
  return y > Date.now() ? (x = p.calculatedTargetScrollTop, A()) : (p.animation = void 0, p.scrollTop < p.calculatedTargetScrollTop ? w({
3559
- animation: Tt(d.current, d.current.resize),
3565
+ animation: Et(d.current, d.current.resize),
3560
3566
  ignoreEscapes: m,
3561
3567
  duration: Math.max(0, y - Date.now()) || void 0
3562
3568
  }) : p.isAtBottom);
@@ -3597,10 +3603,10 @@ const Ws = (e = {}) => {
3597
3603
  f = f.parentElement;
3598
3604
  }
3599
3605
  f === S.current && s < 0 && S.current.scrollHeight > S.current.clientHeight && !((m = p.animation) != null && m.ignoreEscapes) && (b(!0), g(!1));
3600
- }, [b, g, p]), S = Dr((i) => {
3606
+ }, [b, g, p]), S = Or((i) => {
3601
3607
  var s, f;
3602
3608
  (s = S.current) == null || s.removeEventListener("scroll", $), (f = S.current) == null || f.removeEventListener("wheel", j), i == null || i.addEventListener("scroll", $, { passive: !0 }), i == null || i.addEventListener("wheel", j, { passive: !0 });
3603
- }, []), o = Dr((i) => {
3609
+ }, []), o = Or((i) => {
3604
3610
  var f, m;
3605
3611
  if ((f = p.resizeObserver) == null || f.disconnect(), !i)
3606
3612
  return;
@@ -3608,12 +3614,12 @@ const Ws = (e = {}) => {
3608
3614
  p.resizeObserver = new ResizeObserver(([y]) => {
3609
3615
  const { height: x } = y.contentRect, A = x - (s ?? x);
3610
3616
  if (p.resizeDifference = A, p.scrollTop > p.targetScrollTop && (p.scrollTop = p.targetScrollTop), u(p.isNearBottom), A >= 0) {
3611
- const M = Tt(d.current, s ? d.current.resize : d.current.initial);
3617
+ const M = Et(d.current, s ? d.current.resize : d.current.initial);
3612
3618
  w({
3613
3619
  animation: M,
3614
3620
  wait: !0,
3615
3621
  preserveScrollPosition: !0,
3616
- duration: M === "instant" ? void 0 : Ks
3622
+ duration: M === "instant" ? void 0 : Ws
3617
3623
  });
3618
3624
  } else
3619
3625
  p.isNearBottom && (b(!1), g(!0));
@@ -3635,13 +3641,13 @@ const Ws = (e = {}) => {
3635
3641
  state: p
3636
3642
  };
3637
3643
  };
3638
- function Dr(e, t) {
3644
+ function Or(e, t) {
3639
3645
  const r = Z((n) => (r.current = n, e(n)), t);
3640
3646
  return r;
3641
3647
  }
3642
- const At = /* @__PURE__ */ new Map();
3643
- function Tt(...e) {
3644
- const t = { ...Ps };
3648
+ const Tt = /* @__PURE__ */ new Map();
3649
+ function Et(...e) {
3650
+ const t = { ...Ls };
3645
3651
  let r = !1;
3646
3652
  for (const a of e) {
3647
3653
  if (a === "instant") {
@@ -3651,21 +3657,21 @@ function Tt(...e) {
3651
3657
  typeof a == "object" && (r = !1, t.damping = a.damping ?? t.damping, t.stiffness = a.stiffness ?? t.stiffness, t.mass = a.mass ?? t.mass);
3652
3658
  }
3653
3659
  const n = JSON.stringify(t);
3654
- return At.has(n) || At.set(n, Object.freeze(t)), r ? "instant" : At.get(n);
3660
+ return Tt.has(n) || Tt.set(n, Object.freeze(t)), r ? "instant" : Tt.get(n);
3655
3661
  }
3656
- const In = _n(null), Us = typeof window < "u" ? Mn : De;
3657
- function rt({ instance: e, children: t, resize: r, initial: n, mass: a, damping: c, stiffness: u, targetScrollTop: d, contextRef: h, ...g }) {
3658
- const b = ae(null), p = Ot.useCallback((m, y) => {
3662
+ const An = Rn(null), Hs = typeof window < "u" ? _n : De;
3663
+ function nt({ instance: e, children: t, resize: r, initial: n, mass: a, damping: c, stiffness: u, targetScrollTop: d, contextRef: h, ...g }) {
3664
+ const b = ae(null), p = Bt.useCallback((m, y) => {
3659
3665
  const x = (f == null ? void 0 : f.targetScrollTop) ?? d;
3660
3666
  return (x == null ? void 0 : x(m, y)) ?? m;
3661
- }, [d]), w = Ws({
3667
+ }, [d]), w = Us({
3662
3668
  mass: a,
3663
3669
  damping: c,
3664
3670
  stiffness: u,
3665
3671
  resize: r,
3666
3672
  initial: n,
3667
3673
  targetScrollTop: p
3668
- }), { scrollRef: k, contentRef: $, scrollToBottom: j, stopScroll: S, isAtBottom: o, escapedFromLock: i, state: s } = e ?? w, f = Bt(() => ({
3674
+ }), { scrollRef: k, contentRef: $, scrollToBottom: j, stopScroll: S, isAtBottom: o, escapedFromLock: i, state: s } = e ?? w, f = Pt(() => ({
3669
3675
  scrollToBottom: j,
3670
3676
  stopScroll: S,
3671
3677
  scrollRef: k,
@@ -3688,27 +3694,27 @@ function rt({ instance: e, children: t, resize: r, initial: n, mass: a, damping:
3688
3694
  i,
3689
3695
  s
3690
3696
  ]);
3691
- return En(h, () => f, [f]), Us(() => {
3697
+ return Mn(h, () => f, [f]), Hs(() => {
3692
3698
  k.current && getComputedStyle(k.current).overflow === "visible" && (k.current.style.overflow = "auto");
3693
- }, []), l.jsx(In.Provider, { value: f, children: l.jsx("div", { ...g, children: typeof t == "function" ? t(f) : t }) });
3699
+ }, []), l.jsx(An.Provider, { value: f, children: l.jsx("div", { ...g, children: typeof t == "function" ? t(f) : t }) });
3694
3700
  }
3695
3701
  (function(e) {
3696
3702
  function t({ children: r, ...n }) {
3697
- const a = Hs();
3703
+ const a = qs();
3698
3704
  return l.jsx("div", { ref: a.scrollRef, style: {
3699
3705
  height: "100%",
3700
3706
  width: "100%"
3701
3707
  }, children: l.jsx("div", { ...n, ref: a.contentRef, children: typeof r == "function" ? r(a) : r }) });
3702
3708
  }
3703
3709
  e.Content = t;
3704
- })(rt || (rt = {}));
3705
- function Hs() {
3706
- const e = Fr(In);
3710
+ })(nt || (nt = {}));
3711
+ function qs() {
3712
+ const e = Kr(An);
3707
3713
  if (!e)
3708
3714
  throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");
3709
3715
  return e;
3710
3716
  }
3711
- const qs = T(rt)`
3717
+ const Gs = T(nt)`
3712
3718
  position: relative;
3713
3719
  flex: 1;
3714
3720
  overflow-y: auto;
@@ -3758,7 +3764,7 @@ const qs = T(rt)`
3758
3764
  background-color: rgba(100, 116, 139, 0.75);
3759
3765
  }
3760
3766
  }
3761
- `, Gs = T(rt.Content)`
3767
+ `, Ys = T(nt.Content)`
3762
3768
  padding: 16px;
3763
3769
  `;
3764
3770
  T.button`
@@ -3802,7 +3808,7 @@ T.button`
3802
3808
  }
3803
3809
  }
3804
3810
  `;
3805
- function nr({
3811
+ function or({
3806
3812
  className: e,
3807
3813
  children: t,
3808
3814
  style: r,
@@ -3811,7 +3817,7 @@ function nr({
3811
3817
  onDrop: c
3812
3818
  }) {
3813
3819
  return /* @__PURE__ */ l.jsx(
3814
- qs,
3820
+ Gs,
3815
3821
  {
3816
3822
  className: e,
3817
3823
  style: r,
@@ -3825,10 +3831,10 @@ function nr({
3825
3831
  }
3826
3832
  );
3827
3833
  }
3828
- function or({ className: e, children: t }) {
3829
- return /* @__PURE__ */ l.jsx(Gs, { className: e, children: t });
3834
+ function ar({ className: e, children: t }) {
3835
+ return /* @__PURE__ */ l.jsx(Ys, { className: e, children: t });
3830
3836
  }
3831
- function Ys({ config: e, chat: t }) {
3837
+ function Qs({ config: e, chat: t }) {
3832
3838
  const { messages: r, sendMessage: n, uploadAttachment: a, isLoading: c, error: u, hasSessionStarted: d } = t, [h, g] = F.useState(""), [b, p] = F.useState(!1), w = F.useRef(null), {
3833
3839
  enabled: k,
3834
3840
  staged: $,
@@ -3841,7 +3847,7 @@ function Ys({ config: e, chat: t }) {
3841
3847
  maxFiles: m,
3842
3848
  maxBytes: y,
3843
3849
  allowed: x
3844
- } = rr(e, a), A = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : b ? "dark" : "light";
3850
+ } = nr(e, a), A = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : b ? "dark" : "light";
3845
3851
  F.useEffect(() => {
3846
3852
  if (e.theme === "auto" || !e.theme) {
3847
3853
  const I = () => {
@@ -3877,16 +3883,16 @@ function Ys({ config: e, chat: t }) {
3877
3883
  }, P = async (I) => {
3878
3884
  if (!k) return;
3879
3885
  I.preventDefault();
3880
- const D = await Ut(I.dataTransfer);
3886
+ const D = await Ht(I.dataTransfer);
3881
3887
  D.length && await o(D);
3882
3888
  };
3883
3889
  return /* @__PURE__ */ l.jsx(
3884
- jn,
3890
+ In,
3885
3891
  {
3886
3892
  "data-theme": A(),
3887
3893
  style: E,
3888
3894
  children: e.quickQuestions && e.quickQuestions.length > 0 && !d ? /* @__PURE__ */ l.jsx(
3889
- tr,
3895
+ rr,
3890
3896
  {
3891
3897
  config: e,
3892
3898
  onQuestionClick: async (I) => {
@@ -3896,7 +3902,7 @@ function Ys({ config: e, chat: t }) {
3896
3902
  isLoading: c
3897
3903
  }
3898
3904
  ) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3899
- /* @__PURE__ */ l.jsx(nr, { style: { flex: 1 }, onDragOver: K, onDrop: P, children: /* @__PURE__ */ l.jsxs(or, { children: [
3905
+ /* @__PURE__ */ l.jsx(or, { style: { flex: 1 }, onDragOver: K, onDrop: P, children: /* @__PURE__ */ l.jsxs(ar, { children: [
3900
3906
  r.map((I) => /* @__PURE__ */ l.jsxs(
3901
3907
  "div",
3902
3908
  {
@@ -3916,7 +3922,7 @@ function Ys({ config: e, chat: t }) {
3916
3922
  $size: "28px"
3917
3923
  }
3918
3924
  ),
3919
- /* @__PURE__ */ l.jsx(Ee, { $isUser: I.role === "user", children: I.role === "assistant" ? /* @__PURE__ */ l.jsx(Yt, { content: I.content }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3925
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: I.role === "user", children: I.role === "assistant" ? /* @__PURE__ */ l.jsx(Qt, { content: I.content }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3920
3926
  I.attachments && I.attachments.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: I.attachments, readOnly: !0 }),
3921
3927
  I.content ? I.content : null
3922
3928
  ] }) })
@@ -3933,22 +3939,22 @@ function Ys({ config: e, chat: t }) {
3933
3939
  $size: "28px"
3934
3940
  }
3935
3941
  ),
3936
- /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(Xt, { children: [
3942
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(er, { children: [
3937
3943
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
3938
3944
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
3939
3945
  /* @__PURE__ */ l.jsx("div", { className: "dot" })
3940
3946
  ] }) })
3941
3947
  ] }),
3942
- u && /* @__PURE__ */ l.jsx(er, { children: u })
3948
+ u && /* @__PURE__ */ l.jsx(tr, { children: u })
3943
3949
  ] }) }),
3944
- /* @__PURE__ */ l.jsxs(Zt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
3950
+ /* @__PURE__ */ l.jsxs(Jt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
3945
3951
  (j || k && $.length > 0) && /* @__PURE__ */ l.jsxs("div", { style: { paddingBottom: 8 }, children: [
3946
3952
  j && /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: "#dc2626", marginBottom: 4 }, children: j }),
3947
3953
  k && $.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: $, onRemove: s })
3948
3954
  ] }),
3949
- /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Qt, { children: [
3955
+ /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Vt, { children: [
3950
3956
  /* @__PURE__ */ l.jsx(
3951
- ft,
3957
+ ht,
3952
3958
  {
3953
3959
  ref: w,
3954
3960
  variant: "composer",
@@ -3959,9 +3965,9 @@ function Ys({ config: e, chat: t }) {
3959
3965
  disabled: c
3960
3966
  }
3961
3967
  ),
3962
- /* @__PURE__ */ l.jsxs(Vt, { children: [
3968
+ /* @__PURE__ */ l.jsxs(Zt, { children: [
3963
3969
  /* @__PURE__ */ l.jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: k && /* @__PURE__ */ l.jsx(
3964
- Ht,
3970
+ qt,
3965
3971
  {
3966
3972
  integrated: !0,
3967
3973
  disabled: c,
@@ -3975,13 +3981,13 @@ function Ys({ config: e, chat: t }) {
3975
3981
  }
3976
3982
  ) }),
3977
3983
  /* @__PURE__ */ l.jsx(
3978
- Jt,
3984
+ Xt,
3979
3985
  {
3980
3986
  type: "button",
3981
3987
  onClick: M,
3982
3988
  disabled: c || !h.trim() && $.length === 0,
3983
3989
  "aria-label": "Send message",
3984
- children: /* @__PURE__ */ l.jsx(ht, { size: 13 })
3990
+ children: /* @__PURE__ */ l.jsx(mt, { size: 13 })
3985
3991
  }
3986
3992
  )
3987
3993
  ] })
@@ -3991,7 +3997,7 @@ function Ys({ config: e, chat: t }) {
3991
3997
  }
3992
3998
  );
3993
3999
  }
3994
- const Qs = T.div`
4000
+ const Vs = T.div`
3995
4001
  display: flex;
3996
4002
  align-items: center;
3997
4003
  justify-content: space-between;
@@ -4017,15 +4023,15 @@ const Qs = T.div`
4017
4023
  background: ${(e) => e.$showWelcomeScreen && e.$primaryColor ? e.$primaryColor : "#ffffff"};
4018
4024
  color: ${(e) => e.$showWelcomeScreen && e.$primaryColor ? "white" : "#111827"};
4019
4025
  }
4020
- `, Vs = T.div`
4026
+ `, Zs = T.div`
4021
4027
  display: flex;
4022
4028
  align-items: center;
4023
4029
  gap: 12px;
4024
- `, Zs = T.div`
4030
+ `, Js = T.div`
4025
4031
  display: flex;
4026
4032
  align-items: center;
4027
4033
  gap: 8px;
4028
- `, Js = T.div`
4034
+ `, Xs = T.div`
4029
4035
  width: 8px;
4030
4036
  height: 8px;
4031
4037
  background: #10b981;
@@ -4040,14 +4046,14 @@ const Qs = T.div`
4040
4046
  opacity: 0.5;
4041
4047
  }
4042
4048
  }
4043
- `, Xs = T.span`
4049
+ `, ei = T.span`
4044
4050
  font-weight: 500;
4045
4051
  font-size: 14px;
4046
- `, ei = T.div`
4052
+ `, ti = T.div`
4047
4053
  display: flex;
4048
4054
  align-items: center;
4049
4055
  gap: 4px;
4050
- `, ti = T.button`
4056
+ `, ri = T.button`
4051
4057
  padding: 4px;
4052
4058
  background: transparent;
4053
4059
  border: none;
@@ -4068,7 +4074,7 @@ const Qs = T.div`
4068
4074
  height: 16px;
4069
4075
  }
4070
4076
  `;
4071
- function ri({
4077
+ function ni({
4072
4078
  chatName: e = "Chat Assistant",
4073
4079
  showCloseButton: t = !0,
4074
4080
  onClose: r,
@@ -4078,13 +4084,13 @@ function ri({
4078
4084
  showWelcomeScreen: u = !1
4079
4085
  }) {
4080
4086
  return /* @__PURE__ */ l.jsxs(
4081
- Qs,
4087
+ Vs,
4082
4088
  {
4083
4089
  className: a,
4084
4090
  $primaryColor: c,
4085
4091
  $showWelcomeScreen: u,
4086
4092
  children: [
4087
- /* @__PURE__ */ l.jsxs(Vs, { children: [
4093
+ /* @__PURE__ */ l.jsxs(Zs, { children: [
4088
4094
  n && /* @__PURE__ */ l.jsx(
4089
4095
  xe,
4090
4096
  {
@@ -4093,17 +4099,17 @@ function ri({
4093
4099
  $size: "32px"
4094
4100
  }
4095
4101
  ),
4096
- /* @__PURE__ */ l.jsxs(Zs, { children: [
4097
- /* @__PURE__ */ l.jsx(Js, {}),
4098
- /* @__PURE__ */ l.jsx(Xs, { children: e })
4102
+ /* @__PURE__ */ l.jsxs(Js, { children: [
4103
+ /* @__PURE__ */ l.jsx(Xs, {}),
4104
+ /* @__PURE__ */ l.jsx(ei, { children: e })
4099
4105
  ] })
4100
4106
  ] }),
4101
- /* @__PURE__ */ l.jsx(ei, { children: t && /* @__PURE__ */ l.jsx(
4102
- ti,
4107
+ /* @__PURE__ */ l.jsx(ti, { children: t && /* @__PURE__ */ l.jsx(
4108
+ ri,
4103
4109
  {
4104
4110
  onClick: r,
4105
4111
  "aria-label": "Close",
4106
- children: /* @__PURE__ */ l.jsx(Bs, { size: 16 })
4112
+ children: /* @__PURE__ */ l.jsx(Ps, { size: 16 })
4107
4113
  }
4108
4114
  ) })
4109
4115
  ]
@@ -4123,23 +4129,23 @@ function Nr({ config: e, chat: t }) {
4123
4129
  maxFiles: M,
4124
4130
  maxBytes: C,
4125
4131
  allowed: E
4126
- } = rr(e, a), K = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : $ ? "dark" : "light";
4132
+ } = nr(e, a), K = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : $ ? "dark" : "light";
4127
4133
  F.useEffect(() => {
4128
4134
  if (e.theme === "auto" || !e.theme) {
4129
4135
  const v = () => {
4130
4136
  j(window.matchMedia("(prefers-color-scheme: dark)").matches);
4131
4137
  };
4132
4138
  v();
4133
- const N = window.matchMedia("(prefers-color-scheme: dark)");
4134
- return N.addEventListener("change", v), () => N.removeEventListener("change", v);
4139
+ const O = window.matchMedia("(prefers-color-scheme: dark)");
4140
+ return O.addEventListener("change", v), () => O.removeEventListener("change", v);
4135
4141
  } else
4136
4142
  j(e.theme === "dark");
4137
4143
  }, [e.theme]);
4138
4144
  const P = async () => {
4139
4145
  const v = b.trim();
4140
4146
  !v && i.length === 0 || c || (await n(v, void 0, i.length ? i : void 0), p(""), A(), setTimeout(() => {
4141
- var N;
4142
- (N = S.current) == null || N.focus();
4147
+ var O;
4148
+ (O = S.current) == null || O.focus();
4143
4149
  }, 100));
4144
4150
  }, I = (v) => {
4145
4151
  v.key === "Enter" && !v.shiftKey && (v.preventDefault(), P());
@@ -4148,11 +4154,11 @@ function Nr({ config: e, chat: t }) {
4148
4154
  }, H = async (v) => {
4149
4155
  if (!o) return;
4150
4156
  v.preventDefault();
4151
- const N = await Ut(v.dataTransfer);
4152
- N.length && await m(N);
4157
+ const O = await Ht(v.dataTransfer);
4158
+ O.length && await m(O);
4153
4159
  };
4154
4160
  return d ? /* @__PURE__ */ l.jsxs(
4155
- Ts,
4161
+ Es,
4156
4162
  {
4157
4163
  $position: e.position || "bottom-right",
4158
4164
  "data-theme": K(),
@@ -4162,23 +4168,23 @@ function Nr({ config: e, chat: t }) {
4162
4168
  },
4163
4169
  children: [
4164
4170
  e.resizable !== !1 && /* @__PURE__ */ l.jsx(
4165
- Es,
4171
+ Ms,
4166
4172
  {
4167
4173
  $position: "top",
4168
4174
  onMouseDown: (v) => {
4169
4175
  v.preventDefault();
4170
- const N = v.clientY, R = typeof w == "number" ? w : 600, W = (q) => {
4171
- const z = q.clientY - N, U = R - z;
4176
+ const O = v.clientY, R = typeof w == "number" ? w : 600, W = (q) => {
4177
+ const z = q.clientY - O, U = R - z;
4172
4178
  k(Math.max(200, Math.min(600, U)));
4173
- }, O = () => {
4174
- document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", O);
4179
+ }, N = () => {
4180
+ document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", N);
4175
4181
  };
4176
- document.addEventListener("mousemove", W), document.addEventListener("mouseup", O);
4182
+ document.addEventListener("mousemove", W), document.addEventListener("mouseup", N);
4177
4183
  }
4178
4184
  }
4179
4185
  ),
4180
4186
  e.showHeader !== !1 && /* @__PURE__ */ l.jsx(
4181
- ri,
4187
+ ni,
4182
4188
  {
4183
4189
  agentImage: e.agentImage,
4184
4190
  chatName: e.chatName,
@@ -4188,7 +4194,7 @@ function Nr({ config: e, chat: t }) {
4188
4194
  }
4189
4195
  ),
4190
4196
  e.quickQuestions && e.quickQuestions.length > 0 && !g ? /* @__PURE__ */ l.jsx(
4191
- tr,
4197
+ rr,
4192
4198
  {
4193
4199
  config: e,
4194
4200
  onQuestionClick: async (v) => {
@@ -4198,7 +4204,7 @@ function Nr({ config: e, chat: t }) {
4198
4204
  isLoading: c
4199
4205
  }
4200
4206
  ) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4201
- /* @__PURE__ */ l.jsx(nr, { onDragOver: D, onDrop: H, children: /* @__PURE__ */ l.jsxs(or, { children: [
4207
+ /* @__PURE__ */ l.jsx(or, { onDragOver: D, onDrop: H, children: /* @__PURE__ */ l.jsxs(ar, { children: [
4202
4208
  r.map((v) => /* @__PURE__ */ l.jsxs(
4203
4209
  "div",
4204
4210
  {
@@ -4218,7 +4224,7 @@ function Nr({ config: e, chat: t }) {
4218
4224
  $size: "28px"
4219
4225
  }
4220
4226
  ),
4221
- /* @__PURE__ */ l.jsx(Ee, { $isUser: v.role === "user", children: v.role === "assistant" ? /* @__PURE__ */ l.jsx(Yt, { content: v.content }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4227
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: v.role === "user", children: v.role === "assistant" ? /* @__PURE__ */ l.jsx(Qt, { content: v.content }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4222
4228
  v.attachments && v.attachments.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: v.attachments, readOnly: !0 }),
4223
4229
  v.content ? v.content : null
4224
4230
  ] }) })
@@ -4235,22 +4241,22 @@ function Nr({ config: e, chat: t }) {
4235
4241
  $size: "28px"
4236
4242
  }
4237
4243
  ),
4238
- /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(Xt, { children: [
4244
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(er, { children: [
4239
4245
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4240
4246
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4241
4247
  /* @__PURE__ */ l.jsx("div", { className: "dot" })
4242
4248
  ] }) })
4243
4249
  ] }),
4244
- u && /* @__PURE__ */ l.jsx(er, { children: u })
4250
+ u && /* @__PURE__ */ l.jsx(tr, { children: u })
4245
4251
  ] }) }),
4246
- /* @__PURE__ */ l.jsxs(Zt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4252
+ /* @__PURE__ */ l.jsxs(Jt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4247
4253
  (s || o && i.length > 0) && /* @__PURE__ */ l.jsxs("div", { style: { paddingBottom: 8 }, children: [
4248
4254
  s && /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: "#dc2626", marginBottom: 4 }, children: s }),
4249
4255
  o && i.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: i, onRemove: x })
4250
4256
  ] }),
4251
- /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Qt, { children: [
4257
+ /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Vt, { children: [
4252
4258
  /* @__PURE__ */ l.jsx(
4253
- ft,
4259
+ ht,
4254
4260
  {
4255
4261
  ref: S,
4256
4262
  variant: "composer",
@@ -4261,9 +4267,9 @@ function Nr({ config: e, chat: t }) {
4261
4267
  disabled: c
4262
4268
  }
4263
4269
  ),
4264
- /* @__PURE__ */ l.jsxs(Vt, { children: [
4270
+ /* @__PURE__ */ l.jsxs(Zt, { children: [
4265
4271
  /* @__PURE__ */ l.jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: o && /* @__PURE__ */ l.jsx(
4266
- Ht,
4272
+ qt,
4267
4273
  {
4268
4274
  integrated: !0,
4269
4275
  disabled: c,
@@ -4277,13 +4283,13 @@ function Nr({ config: e, chat: t }) {
4277
4283
  }
4278
4284
  ) }),
4279
4285
  /* @__PURE__ */ l.jsx(
4280
- Jt,
4286
+ Xt,
4281
4287
  {
4282
4288
  type: "button",
4283
4289
  onClick: P,
4284
4290
  disabled: c || !b.trim() && i.length === 0,
4285
4291
  "aria-label": "Send message",
4286
- children: /* @__PURE__ */ l.jsx(ht, { size: 13 })
4292
+ children: /* @__PURE__ */ l.jsx(mt, { size: 13 })
4287
4293
  }
4288
4294
  )
4289
4295
  ] })
@@ -4293,7 +4299,7 @@ function Nr({ config: e, chat: t }) {
4293
4299
  ]
4294
4300
  }
4295
4301
  ) : /* @__PURE__ */ l.jsxs(
4296
- As,
4302
+ Ts,
4297
4303
  {
4298
4304
  onClick: () => h(!0),
4299
4305
  style: e.buttonStyle,
@@ -4301,24 +4307,24 @@ function Nr({ config: e, chat: t }) {
4301
4307
  $primaryColor: e.primaryColor,
4302
4308
  "aria-label": "Open chat",
4303
4309
  children: [
4304
- /* @__PURE__ */ l.jsx("div", { className: "icon-container", children: /* @__PURE__ */ l.jsx(Os, { size: 16 }) }),
4310
+ /* @__PURE__ */ l.jsx("div", { className: "icon-container", children: /* @__PURE__ */ l.jsx(Bs, { size: 16 }) }),
4305
4311
  /* @__PURE__ */ l.jsx("span", { children: e.buttonText || e.chatName || "AI Chat" })
4306
4312
  ]
4307
4313
  }
4308
4314
  );
4309
4315
  }
4310
- function li(e) {
4311
- const t = Un(e), r = Wn(t);
4316
+ function di(e) {
4317
+ const t = Hn(e), r = Un(t);
4312
4318
  switch (t.mode) {
4313
4319
  case "floating":
4314
4320
  return /* @__PURE__ */ l.jsx(Nr, { config: t, chat: r });
4315
4321
  case "embedded":
4316
- return /* @__PURE__ */ l.jsx(Ys, { config: t, chat: r });
4322
+ return /* @__PURE__ */ l.jsx(Qs, { config: t, chat: r });
4317
4323
  default:
4318
4324
  return /* @__PURE__ */ l.jsx(Nr, { config: t, chat: r });
4319
4325
  }
4320
4326
  }
4321
- function di({ config: e, chat: t }) {
4327
+ function ui({ config: e, chat: t }) {
4322
4328
  const { messages: r, sendMessage: n, uploadAttachment: a, isLoading: c, error: u, hasSessionStarted: d } = t, [h, g] = F.useState(""), b = F.useRef(null), {
4323
4329
  enabled: p,
4324
4330
  staged: w,
@@ -4331,7 +4337,7 @@ function di({ config: e, chat: t }) {
4331
4337
  maxFiles: s,
4332
4338
  maxBytes: f,
4333
4339
  allowed: m
4334
- } = rr(e, a), y = async () => {
4340
+ } = nr(e, a), y = async () => {
4335
4341
  const C = h.trim();
4336
4342
  !C && w.length === 0 || c || (await n(C, void 0, w.length ? w : void 0), g(""), i(), setTimeout(() => {
4337
4343
  var E;
@@ -4344,11 +4350,11 @@ function di({ config: e, chat: t }) {
4344
4350
  }, M = async (C) => {
4345
4351
  if (!p) return;
4346
4352
  C.preventDefault();
4347
- const E = await Ut(C.dataTransfer);
4353
+ const E = await Ht(C.dataTransfer);
4348
4354
  E.length && await j(E);
4349
4355
  };
4350
4356
  return /* @__PURE__ */ l.jsx(
4351
- jn,
4357
+ In,
4352
4358
  {
4353
4359
  style: {
4354
4360
  height: e.height,
@@ -4359,7 +4365,7 @@ function di({ config: e, chat: t }) {
4359
4365
  borderRadius: "8px"
4360
4366
  },
4361
4367
  children: e.quickQuestions && e.quickQuestions.length > 0 && !d ? /* @__PURE__ */ l.jsx(
4362
- tr,
4368
+ rr,
4363
4369
  {
4364
4370
  config: e,
4365
4371
  onQuestionClick: async (C) => {
@@ -4369,7 +4375,7 @@ function di({ config: e, chat: t }) {
4369
4375
  isLoading: c
4370
4376
  }
4371
4377
  ) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4372
- /* @__PURE__ */ l.jsx(nr, { style: { flex: 1 }, onDragOver: A, onDrop: M, children: /* @__PURE__ */ l.jsxs(or, { children: [
4378
+ /* @__PURE__ */ l.jsx(or, { style: { flex: 1 }, onDragOver: A, onDrop: M, children: /* @__PURE__ */ l.jsxs(ar, { children: [
4373
4379
  r.map((C) => /* @__PURE__ */ l.jsxs(
4374
4380
  "div",
4375
4381
  {
@@ -4389,7 +4395,7 @@ function di({ config: e, chat: t }) {
4389
4395
  $size: "28px"
4390
4396
  }
4391
4397
  ),
4392
- /* @__PURE__ */ l.jsx(Ee, { $isUser: C.role === "user", children: C.role === "assistant" ? /* @__PURE__ */ l.jsx(Yt, { content: C.content }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4398
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: C.role === "user", children: C.role === "assistant" ? /* @__PURE__ */ l.jsx(Qt, { content: C.content }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4393
4399
  C.attachments && C.attachments.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: C.attachments, readOnly: !0 }),
4394
4400
  C.content ? C.content : null
4395
4401
  ] }) })
@@ -4406,22 +4412,22 @@ function di({ config: e, chat: t }) {
4406
4412
  $size: "28px"
4407
4413
  }
4408
4414
  ),
4409
- /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(Xt, { children: [
4415
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(er, { children: [
4410
4416
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4411
4417
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4412
4418
  /* @__PURE__ */ l.jsx("div", { className: "dot" })
4413
4419
  ] }) })
4414
4420
  ] }),
4415
- u && /* @__PURE__ */ l.jsx(er, { children: u })
4421
+ u && /* @__PURE__ */ l.jsx(tr, { children: u })
4416
4422
  ] }) }),
4417
- /* @__PURE__ */ l.jsxs(Zt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4423
+ /* @__PURE__ */ l.jsxs(Jt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4418
4424
  (k || p && w.length > 0) && /* @__PURE__ */ l.jsxs("div", { style: { paddingBottom: 8 }, children: [
4419
4425
  k && /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: "#dc2626", marginBottom: 4 }, children: k }),
4420
4426
  p && w.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: w, onRemove: o })
4421
4427
  ] }),
4422
- /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Qt, { children: [
4428
+ /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Vt, { children: [
4423
4429
  /* @__PURE__ */ l.jsx(
4424
- ft,
4430
+ ht,
4425
4431
  {
4426
4432
  ref: b,
4427
4433
  variant: "composer",
@@ -4432,9 +4438,9 @@ function di({ config: e, chat: t }) {
4432
4438
  disabled: c
4433
4439
  }
4434
4440
  ),
4435
- /* @__PURE__ */ l.jsxs(Vt, { children: [
4441
+ /* @__PURE__ */ l.jsxs(Zt, { children: [
4436
4442
  /* @__PURE__ */ l.jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: p && /* @__PURE__ */ l.jsx(
4437
- Ht,
4443
+ qt,
4438
4444
  {
4439
4445
  integrated: !0,
4440
4446
  disabled: c,
@@ -4448,13 +4454,13 @@ function di({ config: e, chat: t }) {
4448
4454
  }
4449
4455
  ) }),
4450
4456
  /* @__PURE__ */ l.jsx(
4451
- Jt,
4457
+ Xt,
4452
4458
  {
4453
4459
  type: "button",
4454
4460
  onClick: y,
4455
4461
  disabled: c || !h.trim() && w.length === 0,
4456
4462
  "aria-label": "Send message",
4457
- children: /* @__PURE__ */ l.jsx(ht, { size: 13 })
4463
+ children: /* @__PURE__ */ l.jsx(mt, { size: 13 })
4458
4464
  }
4459
4465
  )
4460
4466
  ] })
@@ -4465,18 +4471,18 @@ function di({ config: e, chat: t }) {
4465
4471
  );
4466
4472
  }
4467
4473
  export {
4468
- Ys as EmbeddedChat,
4474
+ Qs as EmbeddedChat,
4469
4475
  Nr as FloatingChat,
4470
- di as InlineChat,
4471
- Yt as MarkdownRenderer,
4472
- Ln as OrdifyApiClient,
4473
- li as OrdifyChat,
4474
- ii as debounce,
4475
- si as formatTime,
4476
- We as generateId,
4477
- Fn as parseStreamingResponse,
4478
- ci as throttle,
4479
- Wn as useOrdifyChat,
4480
- Un as useOrdifyConfig,
4481
- rr as useWidgetAttachmentStaging
4476
+ ui as InlineChat,
4477
+ Qt as MarkdownRenderer,
4478
+ Fn as OrdifyApiClient,
4479
+ di as OrdifyChat,
4480
+ ci as debounce,
4481
+ ii as formatTime,
4482
+ Ue as generateId,
4483
+ Kn as parseStreamingResponse,
4484
+ li as throttle,
4485
+ Un as useOrdifyChat,
4486
+ Hn as useOrdifyConfig,
4487
+ nr as useWidgetAttachmentStaging
4482
4488
  };