ordify-chat-widget 1.0.46 → 1.0.48

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 En = Object.defineProperty;
2
+ var _n = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var bt = (e, t, r) => _n(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import * as Bt from "react";
5
+ import K, { useState as J, useRef as ae, useEffect as De, useCallback as Z, useMemo as Pt, forwardRef as Kr, createElement as Je, useContext as Wr, useImperativeHandle as Mn, useLayoutEffect as Rn, createContext as zn } from "react";
6
+ var Ur = { exports: {} }, ot = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -13,42 +13,57 @@ 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 Dn = K, On = Symbol.for("react.element"), Nn = Symbol.for("react.fragment"), Bn = Object.prototype.hasOwnProperty, Pn = Dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Ln = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function Hr(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) Bn.call(t, n) && !Ln.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: On, type: e, key: c, ref: u, props: a, _owner: Pn.current };
23
+ }
24
+ ot.Fragment = Nn;
25
+ ot.jsx = Hr;
26
+ ot.jsxs = Hr;
27
+ Ur.exports = ot;
28
+ var l = Ur.exports;
29
+ function Ue() {
30
30
  return Math.random().toString(36).substr(2, 9);
31
31
  }
32
- function si(e) {
32
+ function li(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 di(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 ui(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 sr(e) {
52
+ let t = e.replace(/\r\n/g, `
53
+ `);
54
+ return t = t.replace(/\n\nUsing [^\n]+\.{3}(?:\s*\n)+/g, `
55
+
56
+ `), t = t.replace(/\n\nAction completed(?:\s*\n)+/g, `
57
+
58
+ `), t = t.replace(/^Using [^\n]+\.{3}(?:\s*\n)+/m, ""), t = t.replace(/^Action completed(?:\s*\n)+/m, ""), t = t.replace(/\n{3,}/g, `
59
+
60
+ `), t;
61
+ }
62
+ function Fn(e) {
63
+ const t = e.type;
64
+ return t === "adk_tool" || t === "ADK_TOOL";
65
+ }
66
+ function Kn(e) {
52
67
  return {
53
68
  id: e.id,
54
69
  name: e.name,
@@ -60,10 +75,10 @@ function Pn(e) {
60
75
  oauth_token: null
61
76
  };
62
77
  }
63
- class Ln {
78
+ class Wn {
64
79
  constructor(t) {
65
- gt(this, "config");
66
- gt(this, "warnedLegacyApiKey", !1);
80
+ bt(this, "config");
81
+ bt(this, "warnedLegacyApiKey", !1);
67
82
  if (this.config = t, !this.config.publishableKey && !this.config.apiKey)
68
83
  throw new Error("Either publishableKey or apiKey is required.");
69
84
  this.config.publishableKey && this.config.apiKey && console.warn("[Ordify] Both publishableKey and apiKey provided. publishableKey will be used.");
@@ -88,7 +103,7 @@ class Ln {
88
103
  });
89
104
  }
90
105
  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 = {
106
+ 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(Kn) : void 0, h = {
92
107
  message: t,
93
108
  sessionId: r,
94
109
  context: n
@@ -201,32 +216,32 @@ class Ln {
201
216
  return r.json();
202
217
  }
203
218
  }
204
- function Fn(e) {
219
+ function Un(e) {
205
220
  try {
206
221
  if (e.startsWith("data: ")) {
207
222
  const t = e.slice(6).trim();
208
223
  if (t === "[DONE]" || t === "")
209
224
  return { text: "", sessionId: "", type: "done" };
210
225
  const r = JSON.parse(t);
211
- return r.done ? { text: "", sessionId: r.sessionId || "", type: "done" } : r;
226
+ return r.done ? { text: "", sessionId: r.sessionId || "", type: "done" } : r.type === "adk_tool" || r.type === "turn_complete" || r.type === "image" ? null : r;
212
227
  }
213
228
  } catch (t) {
214
229
  console.warn("Failed to parse streaming response:", t);
215
230
  }
216
231
  return null;
217
232
  }
218
- function ar(e) {
233
+ function ir(e) {
219
234
  const t = (e.attachments || []).map((r) => r.id).join("|");
220
235
  return `${e.role}:${e.content.trim()}:${t}`;
221
236
  }
222
- function Kn(e) {
237
+ function Hn(e) {
223
238
  const t = e.attachments;
224
239
  if (!t || !Array.isArray(t) || t.length === 0) return;
225
240
  const r = [];
226
241
  for (const n of t) {
227
242
  const a = n.url || "";
228
243
  a && r.push({
229
- id: n.id || We(),
244
+ id: n.id || Ue(),
230
245
  name: String(n.name || "attachment"),
231
246
  type: n.type === "image" ? "image" : "document",
232
247
  url: a,
@@ -237,59 +252,62 @@ function Kn(e) {
237
252
  }
238
253
  return r.length ? r : void 0;
239
254
  }
240
- function Wn(e) {
255
+ function qn(e) {
241
256
  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({
257
+ f.current !== A && (s.current = null, f.current = A), s.current || (s.current = new Wn({
243
258
  publishableKey: e.publishableKey,
244
259
  apiKey: e.apiKey,
245
260
  apiBaseUrl: e.apiBaseUrl || "https://api.ordify.ai",
246
261
  agentId: e.agentId
247
262
  }));
248
- const M = ae(null), C = ae(/* @__PURE__ */ new Set());
263
+ const _ = ae(null), C = ae(/* @__PURE__ */ new Set());
249
264
  De(() => {
250
265
  if (e.sessionId && e.sessionId !== d) {
251
266
  const I = C.current.has(e.sessionId);
252
- h(e.sessionId), y.current = !1, M.current = null, $(!1), I || r([]);
267
+ h(e.sessionId), y.current = !1, _.current = null, $(!1), I || r([]);
253
268
  }
254
269
  }, [e.sessionId]), De(() => {
255
270
  (async () => {
256
- const D = d || e.sessionId;
271
+ const O = d || e.sessionId;
257
272
  if (x.current || n)
258
273
  return;
259
- if (!D) {
260
- y.current = !0, M.current = null, $(!1);
274
+ if (!O) {
275
+ y.current = !0, _.current = null, $(!1);
261
276
  return;
262
277
  }
263
- if (M.current === D)
278
+ if (_.current === O)
264
279
  return;
265
- if (C.current.has(D) && t.length > 0 && !y.current) {
266
- y.current = !0, M.current = D, S(!1);
280
+ if (C.current.has(O) && t.length > 0 && !y.current) {
281
+ y.current = !0, _.current = O, S(!1);
267
282
  return;
268
283
  }
269
- M.current = D, S(!0);
284
+ _.current = O, S(!0);
270
285
  try {
271
- const v = await s.current.getSessionWithMessages(D);
286
+ const v = await s.current.getSessionWithMessages(O);
272
287
  if (v.messages && v.messages.length > 0) {
273
- const N = v.messages.map((R) => ({
274
- id: R.id || We(),
275
- content: R.content || "",
276
- role: R.role === "assistant" ? "assistant" : "user",
277
- timestamp: R.timestamp ? new Date(R.timestamp) : /* @__PURE__ */ new Date(),
278
- sessionId: D,
279
- attachments: Kn(R)
280
- }));
288
+ const N = v.messages.filter((R) => !Fn(R)).map((R) => {
289
+ const L = R.role === "assistant" ? "assistant" : "user", z = String(R.content || "");
290
+ return {
291
+ id: R.id || Ue(),
292
+ content: L === "assistant" ? sr(z) : z,
293
+ role: L,
294
+ timestamp: R.timestamp ? new Date(R.timestamp) : /* @__PURE__ */ new Date(),
295
+ sessionId: O,
296
+ attachments: Hn(R)
297
+ };
298
+ });
281
299
  r((R) => {
282
300
  if (R.length > 0) {
283
- const W = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
284
- return R.forEach((z) => {
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);
291
- }), Array.from(W.values()).sort(
292
- (z, U) => z.timestamp.getTime() - U.timestamp.getTime()
301
+ const L = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map();
302
+ return R.forEach((D) => {
303
+ L.set(D.id, D);
304
+ const U = ir(D);
305
+ z.has(U) || z.set(U, D);
306
+ }), N.forEach((D) => {
307
+ const U = ir(D);
308
+ !L.has(D.id) && !z.has(U) ? (L.set(D.id, D), z.set(U, D)) : L.has(D.id) && L.set(D.id, D);
309
+ }), Array.from(L.values()).sort(
310
+ (D, U) => D.timestamp.getTime() - U.timestamp.getTime()
293
311
  );
294
312
  }
295
313
  return N;
@@ -297,7 +315,7 @@ function Wn(e) {
297
315
  } else
298
316
  $(!1);
299
317
  } catch (v) {
300
- console.warn("Failed to load session history:", v), $(!1), v instanceof Error && v.message.includes("404") && (h(null), M.current = null);
318
+ console.warn("Failed to load session history:", v), $(!1), v instanceof Error && v.message.includes("404") && (h(null), _.current = null);
301
319
  } finally {
302
320
  S(!1), y.current = !0;
303
321
  }
@@ -305,62 +323,64 @@ function Wn(e) {
305
323
  }, [d, e.sessionId]);
306
324
  const E = Z(() => {
307
325
  u(null);
308
- }, []), K = Z(async (I) => {
326
+ }, []), W = Z(async (I) => {
309
327
  if (!s.current)
310
328
  throw new Error("API client not initialized");
311
329
  return s.current.uploadAttachment(I);
312
330
  }, []), P = Z(
313
- async (I, D, H) => {
331
+ async (I, O, H) => {
314
332
  const v = I.trim(), N = !!(H && H.length > 0);
315
333
  if (!(!v && !N || n)) {
316
334
  a(!0), u(null);
317
335
  try {
318
- const R = H != null && H.length ? H.map((V) => ({ ...V })) : void 0, W = {
319
- id: We(),
336
+ const R = H != null && H.length ? H.map((V) => ({ ...V })) : void 0, L = {
337
+ id: Ue(),
320
338
  content: v,
321
339
  role: "user",
322
340
  timestamp: /* @__PURE__ */ new Date(),
323
341
  sessionId: d || void 0,
324
342
  attachments: R
325
343
  };
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;
329
- const z = (await s.current.sendMessage(
344
+ r((V) => [...V, L]), i(!0);
345
+ let z = d || e.sessionId || null;
346
+ z ? z !== d && h(z) : (z = (await s.current.createSession()).id, C.current.add(z), e.onSessionCreated && e.onSessionCreated(z)), x.current = !0;
347
+ const D = (await s.current.sendMessage(
330
348
  v || "(see attachments)",
349
+ z,
331
350
  O,
332
- D,
333
351
  R
334
352
  )).getReader(), U = new TextDecoder();
335
- let Q = {
336
- id: We(),
353
+ let Y = {
354
+ id: Ue(),
337
355
  content: "",
338
356
  role: "assistant",
339
357
  timestamp: /* @__PURE__ */ new Date(),
340
- sessionId: O
358
+ sessionId: z
341
359
  };
342
- for (r((V) => [...V, Q]); ; ) {
343
- const { done: V, value: ie } = await z.read();
360
+ for (r((V) => [...V, Y]); ; ) {
361
+ const { done: V, value: ie } = await D.read();
344
362
  if (V) break;
345
363
  const ce = U.decode(ie, { stream: !0 }).split(`
346
364
  `);
347
365
  for (const ke of ce) {
348
366
  if (!ke.trim()) continue;
349
- const ne = Fn(ke);
367
+ const ne = Un(ke);
350
368
  if (ne) {
351
369
  if (ne.type === "stream" && ne.text)
352
- Q.content += ne.text, r((ee) => ee.find((_e) => _e.id === Q.id) ? ee.map(
353
- (_e) => _e.id === Q.id ? { ..._e, content: Q.content } : _e
354
- ) : [...ee, { ...Q, content: Q.content }]);
370
+ Y.content = sr(
371
+ Y.content + ne.text
372
+ ), r((ee) => ee.find((Me) => Me.id === Y.id) ? ee.map(
373
+ (Me) => Me.id === Y.id ? { ...Me, content: Y.content } : Me
374
+ ) : [...ee, { ...Y, content: Y.content }]);
355
375
  else if (ne.type === "done")
356
376
  break;
357
377
  }
358
378
  }
359
379
  }
360
- O && O !== d && h(O), e.onMessage && e.onMessage(Q);
380
+ z && z !== d && h(z), e.onMessage && e.onMessage(Y);
361
381
  } catch (R) {
362
- const W = R instanceof Error ? R.message : "Failed to send message";
363
- u(W), e.onError && e.onError(R instanceof Error ? R : new Error(W));
382
+ const L = R instanceof Error ? R.message : "Failed to send message";
383
+ u(L), e.onError && e.onError(R instanceof Error ? R : new Error(L));
364
384
  } finally {
365
385
  x.current = !1, a(!1);
366
386
  }
@@ -369,8 +389,8 @@ function Wn(e) {
369
389
  [e.onSessionCreated, e.onMessage, e.onError, e.sessionId, n, d]
370
390
  );
371
391
  return De(() => {
372
- const D = !(d || e.sessionId) || !k, H = e.quickQuestions && e.quickQuestions.length > 0;
373
- if ((e.initialMessage || e.initialContext) && D && !p && !n && !j && !m.current && y.current && !H) {
392
+ const O = !(d || e.sessionId) || !k, H = e.quickQuestions && e.quickQuestions.length > 0;
393
+ if ((e.initialMessage || e.initialContext) && O && !p && !n && !j && !m.current && y.current && !H) {
374
394
  w(!0), m.current = !0;
375
395
  let v, N;
376
396
  if (e.initialMessage && e.initialContext)
@@ -388,7 +408,7 @@ function Wn(e) {
388
408
  }, [e.initialMessage, e.initialContext, p, n, j, k, d, e.sessionId, P]), {
389
409
  messages: t,
390
410
  sendMessage: P,
391
- uploadAttachment: K,
411
+ uploadAttachment: W,
392
412
  isLoading: n,
393
413
  error: c,
394
414
  clearError: E,
@@ -398,9 +418,15 @@ function Wn(e) {
398
418
  hasSessionStarted: o
399
419
  };
400
420
  }
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";
421
+ function Le(e) {
422
+ if (typeof process > "u" || !process.env)
423
+ return;
424
+ const t = process.env[e];
425
+ return typeof t == "string" && t.length > 0 ? t : void 0;
426
+ }
427
+ function Gn(e) {
428
+ return Pt(() => {
429
+ 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
430
  if (!t)
405
431
  throw new Error("Ordify agent ID is required. Provide agentId prop or set ORDIFY_AGENT_ID environment variable.");
406
432
  if (!r && !n)
@@ -448,13 +474,13 @@ function Un(e) {
448
474
  * This source code is licensed under the ISC license.
449
475
  * See the LICENSE file in the root directory of this source tree.
450
476
  */
451
- const Hn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qn = (e) => e.replace(
477
+ const Yn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Qn = (e) => e.replace(
452
478
  /^([A-Z])|[\s-_]+(\w)/g,
453
479
  (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
454
- ), sr = (e) => {
455
- const t = qn(e);
480
+ ), cr = (e) => {
481
+ const t = Qn(e);
456
482
  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) => {
483
+ }, qr = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Vn = (e) => {
458
484
  for (const t in e)
459
485
  if (t.startsWith("aria-") || t === "role" || t === "title")
460
486
  return !0;
@@ -465,7 +491,7 @@ const Hn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qn = (
465
491
  * This source code is licensed under the ISC license.
466
492
  * See the LICENSE file in the root directory of this source tree.
467
493
  */
468
- var Yn = {
494
+ var Zn = {
469
495
  xmlns: "http://www.w3.org/2000/svg",
470
496
  width: 24,
471
497
  height: 24,
@@ -482,7 +508,7 @@ var Yn = {
482
508
  * This source code is licensed under the ISC license.
483
509
  * See the LICENSE file in the root directory of this source tree.
484
510
  */
485
- const Qn = Lr(
511
+ const Jn = Kr(
486
512
  ({
487
513
  color: e = "currentColor",
488
514
  size: t = 24,
@@ -492,21 +518,21 @@ const Qn = Lr(
492
518
  children: c,
493
519
  iconNode: u,
494
520
  ...d
495
- }, h) => Ze(
521
+ }, h) => Je(
496
522
  "svg",
497
523
  {
498
524
  ref: h,
499
- ...Yn,
525
+ ...Zn,
500
526
  width: t,
501
527
  height: t,
502
528
  stroke: e,
503
529
  strokeWidth: n ? Number(r) * 24 / Number(t) : r,
504
- className: Ur("lucide", a),
505
- ...!c && !Gn(d) && { "aria-hidden": "true" },
530
+ className: qr("lucide", a),
531
+ ...!c && !Vn(d) && { "aria-hidden": "true" },
506
532
  ...d
507
533
  },
508
534
  [
509
- ...u.map(([g, b]) => Ze(g, b)),
535
+ ...u.map(([g, b]) => Je(g, b)),
510
536
  ...Array.isArray(c) ? c : [c]
511
537
  ]
512
538
  )
@@ -517,20 +543,20 @@ const Qn = Lr(
517
543
  * This source code is licensed under the ISC license.
518
544
  * See the LICENSE file in the root directory of this source tree.
519
545
  */
520
- const ot = (e, t) => {
521
- const r = Lr(
522
- ({ className: n, ...a }, c) => Ze(Qn, {
546
+ const at = (e, t) => {
547
+ const r = Kr(
548
+ ({ className: n, ...a }, c) => Je(Jn, {
523
549
  ref: c,
524
550
  iconNode: t,
525
- className: Ur(
526
- `lucide-${Hn(sr(e))}`,
551
+ className: qr(
552
+ `lucide-${Yn(cr(e))}`,
527
553
  `lucide-${e}`,
528
554
  n
529
555
  ),
530
556
  ...a
531
557
  })
532
558
  );
533
- return r.displayName = sr(e), r;
559
+ return r.displayName = cr(e), r;
534
560
  };
535
561
  /**
536
562
  * @license lucide-react v0.544.0 - ISC
@@ -538,31 +564,31 @@ const ot = (e, t) => {
538
564
  * This source code is licensed under the ISC license.
539
565
  * See the LICENSE file in the root directory of this source tree.
540
566
  */
541
- const Vn = [
567
+ const Xn = [
542
568
  ["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
569
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
544
570
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
545
571
  ["path", { d: "M16 13H8", key: "t4e002" }],
546
572
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
547
- ], Zn = ot("file-text", Vn);
573
+ ], eo = at("file-text", Xn);
548
574
  /**
549
575
  * @license lucide-react v0.544.0 - ISC
550
576
  *
551
577
  * This source code is licensed under the ISC license.
552
578
  * See the LICENSE file in the root directory of this source tree.
553
579
  */
554
- const Jn = [
580
+ const to = [
555
581
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
556
582
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
557
583
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
558
- ], Xn = ot("image", Jn);
584
+ ], ro = at("image", to);
559
585
  /**
560
586
  * @license lucide-react v0.544.0 - ISC
561
587
  *
562
588
  * This source code is licensed under the ISC license.
563
589
  * See the LICENSE file in the root directory of this source tree.
564
590
  */
565
- const eo = [
591
+ const no = [
566
592
  [
567
593
  "path",
568
594
  {
@@ -570,17 +596,17 @@ const eo = [
570
596
  key: "1miecu"
571
597
  }
572
598
  ]
573
- ], to = ot("paperclip", eo);
599
+ ], oo = at("paperclip", no);
574
600
  /**
575
601
  * @license lucide-react v0.544.0 - ISC
576
602
  *
577
603
  * This source code is licensed under the ISC license.
578
604
  * See the LICENSE file in the root directory of this source tree.
579
605
  */
580
- const ro = [
606
+ const ao = [
581
607
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
582
608
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
583
- ], no = ot("x", ro);
609
+ ], so = at("x", ao);
584
610
  var X = function() {
585
611
  return X = Object.assign || function(t) {
586
612
  for (var r, n = 1, a = arguments.length; n < a; n++) {
@@ -590,28 +616,28 @@ var X = function() {
590
616
  return t;
591
617
  }, X.apply(this, arguments);
592
618
  };
593
- function Je(e, t, r) {
619
+ function Xe(e, t, r) {
594
620
  if (r || arguments.length === 2) for (var n = 0, a = t.length, c; n < a; n++)
595
621
  (c || !(n in t)) && (c || (c = Array.prototype.slice.call(t, 0, n)), c[n] = t[n]);
596
622
  return e.concat(c || Array.prototype.slice.call(t));
597
623
  }
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) {
600
- return Y(e, 0) ^ 45 ? (((t << 2 ^ Y(e, 0)) << 2 ^ Y(e, 1)) << 2 ^ Y(e, 2)) << 2 ^ Y(e, 3) : 0;
624
+ var F = "-ms-", Oe = "-moz-", B = "-webkit-", Gr = "comm", st = "rule", Lt = "decl", io = "@import", Yr = "@keyframes", co = "@layer", Qr = Math.abs, Ft = String.fromCharCode, _t = Object.assign;
625
+ function lo(e, t) {
626
+ return Q(e, 0) ^ 45 ? (((t << 2 ^ Q(e, 0)) << 2 ^ Q(e, 1)) << 2 ^ Q(e, 2)) << 2 ^ Q(e, 3) : 0;
601
627
  }
602
- function Yr(e) {
628
+ function Vr(e) {
603
629
  return e.trim();
604
630
  }
605
631
  function de(e, t) {
606
632
  return (e = t.exec(e)) ? e[0] : e;
607
633
  }
608
- function _(e, t, r) {
634
+ function M(e, t, r) {
609
635
  return e.replace(t, r);
610
636
  }
611
- function Ue(e, t, r) {
637
+ function He(e, t, r) {
612
638
  return e.indexOf(t, r);
613
639
  }
614
- function Y(e, t) {
640
+ function Q(e, t) {
615
641
  return e.charCodeAt(t) | 0;
616
642
  }
617
643
  function $e(e, t, r) {
@@ -620,49 +646,49 @@ function $e(e, t, r) {
620
646
  function se(e) {
621
647
  return e.length;
622
648
  }
623
- function Qr(e) {
649
+ function Zr(e) {
624
650
  return e.length;
625
651
  }
626
652
  function ze(e, t) {
627
653
  return t.push(e), e;
628
654
  }
629
- function io(e, t) {
655
+ function uo(e, t) {
630
656
  return e.map(t).join("");
631
657
  }
632
- function ir(e, t) {
658
+ function lr(e, t) {
633
659
  return e.filter(function(r) {
634
660
  return !de(r, t);
635
661
  });
636
662
  }
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 };
663
+ var it = 1, Se = 1, Jr = 0, te = 0, G = 0, _e = "";
664
+ function ct(e, t, r, n, a, c, u, d) {
665
+ return { value: e, root: t, parent: r, type: n, props: a, children: c, line: it, column: Se, length: u, return: "", siblings: d };
640
666
  }
641
667
  function fe(e, t) {
642
- return Et(it("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
668
+ return _t(ct("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
643
669
  }
644
670
  function we(e) {
645
671
  for (; e.root; )
646
672
  e = fe(e.root, { children: [e] });
647
673
  ze(e, e.siblings);
648
674
  }
649
- function co() {
675
+ function po() {
650
676
  return G;
651
677
  }
652
- function lo() {
653
- return G = te > 0 ? Y(Me, --te) : 0, Se--, G === 10 && (Se = 1, st--), G;
678
+ function fo() {
679
+ return G = te > 0 ? Q(_e, --te) : 0, Se--, G === 10 && (Se = 1, it--), G;
654
680
  }
655
681
  function re() {
656
- return G = te < Vr ? Y(Me, te++) : 0, Se++, G === 10 && (Se = 1, st++), G;
682
+ return G = te < Jr ? Q(_e, te++) : 0, Se++, G === 10 && (Se = 1, it++), G;
657
683
  }
658
684
  function ge() {
659
- return Y(Me, te);
685
+ return Q(_e, te);
660
686
  }
661
- function He() {
687
+ function qe() {
662
688
  return te;
663
689
  }
664
- function ct(e, t) {
665
- return $e(Me, e, t);
690
+ function lt(e, t) {
691
+ return $e(_e, e, t);
666
692
  }
667
693
  function Mt(e) {
668
694
  switch (e) {
@@ -696,36 +722,36 @@ function Mt(e) {
696
722
  }
697
723
  return 0;
698
724
  }
699
- function uo(e) {
700
- return st = Se = 1, Vr = se(Me = e), te = 0, [];
725
+ function ho(e) {
726
+ return it = Se = 1, Jr = se(_e = e), te = 0, [];
701
727
  }
702
- function po(e) {
703
- return Me = "", e;
728
+ function mo(e) {
729
+ return _e = "", e;
704
730
  }
705
- function bt(e) {
706
- return Yr(ct(te - 1, _t(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
731
+ function xt(e) {
732
+ return Vr(lt(te - 1, Rt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
707
733
  }
708
- function fo(e) {
734
+ function go(e) {
709
735
  for (; (G = ge()) && G < 33; )
710
736
  re();
711
737
  return Mt(e) > 2 || Mt(G) > 3 ? "" : " ";
712
738
  }
713
- function ho(e, t) {
739
+ function bo(e, t) {
714
740
  for (; --t && re() && !(G < 48 || G > 102 || G > 57 && G < 65 || G > 70 && G < 97); )
715
741
  ;
716
- return ct(e, He() + (t < 6 && ge() == 32 && re() == 32));
742
+ return lt(e, qe() + (t < 6 && ge() == 32 && re() == 32));
717
743
  }
718
- function _t(e) {
744
+ function Rt(e) {
719
745
  for (; re(); )
720
746
  switch (G) {
721
747
  case e:
722
748
  return te;
723
749
  case 34:
724
750
  case 39:
725
- e !== 34 && e !== 39 && _t(G);
751
+ e !== 34 && e !== 39 && Rt(G);
726
752
  break;
727
753
  case 40:
728
- e === 41 && _t(e);
754
+ e === 41 && Rt(e);
729
755
  break;
730
756
  case 92:
731
757
  re();
@@ -733,47 +759,47 @@ function _t(e) {
733
759
  }
734
760
  return te;
735
761
  }
736
- function mo(e, t) {
762
+ function xo(e, t) {
737
763
  for (; re() && e + G !== 57; )
738
764
  if (e + G === 84 && ge() === 47)
739
765
  break;
740
- return "/*" + ct(t, te - 1) + "*" + Lt(e === 47 ? e : re());
766
+ return "/*" + lt(t, te - 1) + "*" + Ft(e === 47 ? e : re());
741
767
  }
742
- function go(e) {
768
+ function yo(e) {
743
769
  for (; !Mt(ge()); )
744
770
  re();
745
- return ct(e, te);
771
+ return lt(e, te);
746
772
  }
747
- function bo(e) {
748
- return po(qe("", null, null, null, [""], e = uo(e), 0, [0], e));
773
+ function ko(e) {
774
+ return mo(Ge("", null, null, null, [""], e = ho(e), 0, [0], e));
749
775
  }
750
- function qe(e, t, r, n, a, c, u, d, h) {
776
+ function Ge(e, t, r, n, a, c, u, d, h) {
751
777
  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
778
  switch ($ = i, i = re()) {
753
779
  case 40:
754
- if ($ != 108 && Y(x, p - 1) == 58) {
755
- Ue(x += _(bt(i), "&", "&\f"), "&\f", Gr(g ? d[g - 1] : 0)) != -1 && (o = -1);
780
+ if ($ != 108 && Q(x, p - 1) == 58) {
781
+ He(x += M(xt(i), "&", "&\f"), "&\f", Qr(g ? d[g - 1] : 0)) != -1 && (o = -1);
756
782
  break;
757
783
  }
758
784
  case 34:
759
785
  case 39:
760
786
  case 91:
761
- x += bt(i);
787
+ x += xt(i);
762
788
  break;
763
789
  case 9:
764
790
  case 10:
765
791
  case 13:
766
792
  case 32:
767
- x += fo($);
793
+ x += go($);
768
794
  break;
769
795
  case 92:
770
- x += ho(He() - 1, 7);
796
+ x += bo(qe() - 1, 7);
771
797
  continue;
772
798
  case 47:
773
799
  switch (ge()) {
774
800
  case 42:
775
801
  case 47:
776
- ze(xo(mo(re(), He()), t, r, h), h);
802
+ ze(wo(xo(re(), qe()), t, r, h), h);
777
803
  break;
778
804
  default:
779
805
  x += "/";
@@ -789,24 +815,24 @@ function qe(e, t, r, n, a, c, u, d, h) {
789
815
  case 125:
790
816
  S = 0;
791
817
  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);
818
+ o == -1 && (x = M(x, /\f/g, "")), k > 0 && se(x) - p && ze(k > 32 ? ur(x + ";", n, r, p - 1, h) : ur(M(x, " ", "") + ";", n, r, p - 2, h), h);
793
819
  break;
794
820
  case 59:
795
821
  x += ";";
796
822
  default:
797
- if (ze(y = cr(x, t, r, g, b, a, d, s, f = [], m = [], p, c), c), i === 123)
823
+ if (ze(y = dr(x, t, r, g, b, a, d, s, f = [], m = [], p, c), c), i === 123)
798
824
  if (b === 0)
799
- qe(x, t, y, y, f, c, p, d, m);
825
+ Ge(x, t, y, y, f, c, p, d, m);
800
826
  else
801
- switch (w === 99 && Y(x, 3) === 110 ? 100 : w) {
827
+ switch (w === 99 && Q(x, 3) === 110 ? 100 : w) {
802
828
  case 100:
803
829
  case 108:
804
830
  case 109:
805
831
  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);
832
+ Ge(e, y, y, n && ze(dr(e, y, y, 0, 0, a, d, s, a, f = [], p, m), m), a, m, p, d, n ? f : m);
807
833
  break;
808
834
  default:
809
- qe(x, y, y, y, [""], m, 0, d, m);
835
+ Ge(x, y, y, y, [""], m, 0, d, m);
810
836
  }
811
837
  }
812
838
  g = b = k = 0, j = o = 1, s = x = "", p = u;
@@ -817,10 +843,10 @@ function qe(e, t, r, n, a, c, u, d, h) {
817
843
  if (j < 1) {
818
844
  if (i == 123)
819
845
  --j;
820
- else if (i == 125 && j++ == 0 && lo() == 125)
846
+ else if (i == 125 && j++ == 0 && fo() == 125)
821
847
  continue;
822
848
  }
823
- switch (x += Lt(i), i * j) {
849
+ switch (x += Ft(i), i * j) {
824
850
  case 38:
825
851
  o = b > 0 ? 1 : (x += "\f", -1);
826
852
  break;
@@ -828,7 +854,7 @@ function qe(e, t, r, n, a, c, u, d, h) {
828
854
  d[g++] = (se(x) - 1) * o, o = 1;
829
855
  break;
830
856
  case 64:
831
- ge() === 45 && (x += bt(re())), w = ge(), b = p = se(s = x += go(He())), i++;
857
+ ge() === 45 && (x += xt(re())), w = ge(), b = p = se(s = x += yo(qe())), i++;
832
858
  break;
833
859
  case 45:
834
860
  $ === 45 && se(x) == 2 && (j = 0);
@@ -836,20 +862,20 @@ function qe(e, t, r, n, a, c, u, d, h) {
836
862
  }
837
863
  return c;
838
864
  }
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);
865
+ function dr(e, t, r, n, a, c, u, d, h, g, b, p) {
866
+ for (var w = a - 1, k = a === 0 ? c : [""], $ = Zr(k), j = 0, S = 0, o = 0; j < n; ++j)
867
+ for (var i = 0, s = $e(e, w + 1, w = Qr(S = u[j])), f = e; i < $; ++i)
868
+ (f = Vr(S > 0 ? k[i] + " " + s : M(s, /&\f/g, k[i]))) && (h[o++] = f);
869
+ return ct(e, t, r, a === 0 ? st : d, h, g, b, p);
844
870
  }
845
- function xo(e, t, r, n) {
846
- return it(e, t, r, Hr, Lt(co()), $e(e, 2, -2), 0, n);
871
+ function wo(e, t, r, n) {
872
+ return ct(e, t, r, Gr, Ft(po()), $e(e, 2, -2), 0, n);
847
873
  }
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);
874
+ function ur(e, t, r, n, a) {
875
+ return ct(e, t, r, Lt, $e(e, 0, n), $e(e, n + 1, -1), n, a);
850
876
  }
851
- function Zr(e, t, r) {
852
- switch (so(e, t)) {
877
+ function Xr(e, t, r) {
878
+ switch (lo(e, t)) {
853
879
  case 5103:
854
880
  return B + "print-" + e + e;
855
881
  case 5737:
@@ -879,70 +905,70 @@ function Zr(e, t, r) {
879
905
  case 3829:
880
906
  return B + e + e;
881
907
  case 4789:
882
- return Ne + e + e;
908
+ return Oe + e + e;
883
909
  case 5349:
884
910
  case 4246:
885
911
  case 4810:
886
912
  case 6968:
887
913
  case 2756:
888
- return B + e + Ne + e + L + e + e;
914
+ return B + e + Oe + e + F + e + e;
889
915
  case 5936:
890
- switch (Y(e, t + 11)) {
916
+ switch (Q(e, t + 11)) {
891
917
  case 114:
892
- return B + e + L + _(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
918
+ return B + e + F + M(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
893
919
  case 108:
894
- return B + e + L + _(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
920
+ return B + e + F + M(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
895
921
  case 45:
896
- return B + e + L + _(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
922
+ return B + e + F + M(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
897
923
  }
898
924
  case 6828:
899
925
  case 4268:
900
926
  case 2903:
901
- return B + e + L + e + e;
927
+ return B + e + F + e + e;
902
928
  case 6165:
903
- return B + e + L + "flex-" + e + e;
929
+ return B + e + F + "flex-" + e + e;
904
930
  case 5187:
905
- return B + e + _(e, /(\w+).+(:[^]+)/, B + "box-$1$2" + L + "flex-$1$2") + e;
931
+ return B + e + M(e, /(\w+).+(:[^]+)/, B + "box-$1$2" + F + "flex-$1$2") + e;
906
932
  case 5443:
907
- return B + e + L + "flex-item-" + _(e, /flex-|-self/g, "") + (de(e, /flex-|baseline/) ? "" : L + "grid-row-" + _(e, /flex-|-self/g, "")) + e;
933
+ return B + e + F + "flex-item-" + M(e, /flex-|-self/g, "") + (de(e, /flex-|baseline/) ? "" : F + "grid-row-" + M(e, /flex-|-self/g, "")) + e;
908
934
  case 4675:
909
- return B + e + L + "flex-line-pack" + _(e, /align-content|flex-|-self/g, "") + e;
935
+ return B + e + F + "flex-line-pack" + M(e, /align-content|flex-|-self/g, "") + e;
910
936
  case 5548:
911
- return B + e + L + _(e, "shrink", "negative") + e;
937
+ return B + e + F + M(e, "shrink", "negative") + e;
912
938
  case 5292:
913
- return B + e + L + _(e, "basis", "preferred-size") + e;
939
+ return B + e + F + M(e, "basis", "preferred-size") + e;
914
940
  case 6060:
915
- return B + "box-" + _(e, "-grow", "") + B + e + L + _(e, "grow", "positive") + e;
941
+ return B + "box-" + M(e, "-grow", "") + B + e + F + M(e, "grow", "positive") + e;
916
942
  case 4554:
917
- return B + _(e, /([^-])(transform)/g, "$1" + B + "$2") + e;
943
+ return B + M(e, /([^-])(transform)/g, "$1" + B + "$2") + e;
918
944
  case 6187:
919
- return _(_(_(e, /(zoom-|grab)/, B + "$1"), /(image-set)/, B + "$1"), e, "") + e;
945
+ return M(M(M(e, /(zoom-|grab)/, B + "$1"), /(image-set)/, B + "$1"), e, "") + e;
920
946
  case 5495:
921
947
  case 3959:
922
- return _(e, /(image-set\([^]*)/, B + "$1$`$1");
948
+ return M(e, /(image-set\([^]*)/, B + "$1$`$1");
923
949
  case 4968:
924
- return _(_(e, /(.+:)(flex-)?(.*)/, B + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + B + e + e;
950
+ return M(M(e, /(.+:)(flex-)?(.*)/, B + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + B + e + e;
925
951
  case 4200:
926
- if (!de(e, /flex-|baseline/)) return L + "grid-column-align" + $e(e, t) + e;
952
+ if (!de(e, /flex-|baseline/)) return F + "grid-column-align" + $e(e, t) + e;
927
953
  break;
928
954
  case 2592:
929
955
  case 3360:
930
- return L + _(e, "template-", "") + e;
956
+ return F + M(e, "template-", "") + e;
931
957
  case 4384:
932
958
  case 3616:
933
959
  return r && r.some(function(n, a) {
934
960
  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;
961
+ }) ? ~He(e + (r = r[t].value), "span", 0) ? e : F + M(e, "-start", "") + e + F + "grid-row-span:" + (~He(r, "span", 0) ? de(r, /\d+/) : +de(r, /\d+/) - +de(e, /\d+/)) + ";" : F + M(e, "-start", "") + e;
936
962
  case 4896:
937
963
  case 4128:
938
964
  return r && r.some(function(n) {
939
965
  return de(n.props, /grid-\w+-start/);
940
- }) ? e : L + _(_(e, "-end", "-span"), "span ", "") + e;
966
+ }) ? e : F + M(M(e, "-end", "-span"), "span ", "") + e;
941
967
  case 4095:
942
968
  case 3583:
943
969
  case 4068:
944
970
  case 2532:
945
- return _(e, /(.+)-inline(.+)/, B + "$1$2") + e;
971
+ return M(e, /(.+)-inline(.+)/, B + "$1$2") + e;
946
972
  case 8116:
947
973
  case 7059:
948
974
  case 5753:
@@ -956,31 +982,31 @@ function Zr(e, t, r) {
956
982
  case 5021:
957
983
  case 4765:
958
984
  if (se(e) - 1 - t > 6)
959
- switch (Y(e, t + 1)) {
985
+ switch (Q(e, t + 1)) {
960
986
  case 109:
961
- if (Y(e, t + 4) !== 45)
987
+ if (Q(e, t + 4) !== 45)
962
988
  break;
963
989
  case 102:
964
- return _(e, /(.+:)(.+)-([^]+)/, "$1" + B + "$2-$3$1" + Ne + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
990
+ return M(e, /(.+:)(.+)-([^]+)/, "$1" + B + "$2-$3$1" + Oe + (Q(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
965
991
  case 115:
966
- return ~Ue(e, "stretch", 0) ? Zr(_(e, "stretch", "fill-available"), t, r) + e : e;
992
+ return ~He(e, "stretch", 0) ? Xr(M(e, "stretch", "fill-available"), t, r) + e : e;
967
993
  }
968
994
  break;
969
995
  case 5152:
970
996
  case 5920:
971
- return _(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, c, u, d, h, g) {
972
- return L + a + ":" + c + g + (u ? L + a + "-span:" + (d ? h : +h - +c) + g : "") + e;
997
+ return M(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, c, u, d, h, g) {
998
+ return F + a + ":" + c + g + (u ? F + a + "-span:" + (d ? h : +h - +c) + g : "") + e;
973
999
  });
974
1000
  case 4949:
975
- if (Y(e, t + 6) === 121)
976
- return _(e, ":", ":" + B) + e;
1001
+ if (Q(e, t + 6) === 121)
1002
+ return M(e, ":", ":" + B) + e;
977
1003
  break;
978
1004
  case 6444:
979
- switch (Y(e, Y(e, 14) === 45 ? 18 : 11)) {
1005
+ switch (Q(e, Q(e, 14) === 45 ? 18 : 11)) {
980
1006
  case 120:
981
- return _(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + B + (Y(e, 14) === 45 ? "inline-" : "") + "box$3$1" + B + "$2$3$1" + L + "$2box$3") + e;
1007
+ return M(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + B + (Q(e, 14) === 45 ? "inline-" : "") + "box$3$1" + B + "$2$3$1" + F + "$2box$3") + e;
982
1008
  case 100:
983
- return _(e, ":", ":" + L) + e;
1009
+ return M(e, ":", ":" + F) + e;
984
1010
  }
985
1011
  break;
986
1012
  case 5719:
@@ -988,69 +1014,69 @@ function Zr(e, t, r) {
988
1014
  case 2135:
989
1015
  case 3927:
990
1016
  case 2391:
991
- return _(e, "scroll-", "scroll-snap-") + e;
1017
+ return M(e, "scroll-", "scroll-snap-") + e;
992
1018
  }
993
1019
  return e;
994
1020
  }
995
- function Xe(e, t) {
1021
+ function et(e, t) {
996
1022
  for (var r = "", n = 0; n < e.length; n++)
997
1023
  r += t(e[n], n, e, t) || "";
998
1024
  return r;
999
1025
  }
1000
- function yo(e, t, r, n) {
1026
+ function vo(e, t, r, n) {
1001
1027
  switch (e.type) {
1002
- case ao:
1028
+ case co:
1003
1029
  if (e.children.length) break;
1004
- case oo:
1005
- case Pt:
1030
+ case io:
1031
+ case Lt:
1006
1032
  return e.return = e.return || e.value;
1007
- case Hr:
1033
+ case Gr:
1008
1034
  return "";
1009
- case qr:
1010
- return e.return = e.value + "{" + Xe(e.children, n) + "}";
1011
- case at:
1035
+ case Yr:
1036
+ return e.return = e.value + "{" + et(e.children, n) + "}";
1037
+ case st:
1012
1038
  if (!se(e.value = e.props.join(","))) return "";
1013
1039
  }
1014
- return se(r = Xe(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1040
+ return se(r = et(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1015
1041
  }
1016
- function ko(e) {
1017
- var t = Qr(e);
1042
+ function $o(e) {
1043
+ var t = Zr(e);
1018
1044
  return function(r, n, a, c) {
1019
1045
  for (var u = "", d = 0; d < t; d++)
1020
1046
  u += e[d](r, n, a, c) || "";
1021
1047
  return u;
1022
1048
  };
1023
1049
  }
1024
- function wo(e) {
1050
+ function So(e) {
1025
1051
  return function(t) {
1026
1052
  t.root || (t = t.return) && e(t);
1027
1053
  };
1028
1054
  }
1029
- function vo(e, t, r, n) {
1055
+ function Co(e, t, r, n) {
1030
1056
  if (e.length > -1 && !e.return)
1031
1057
  switch (e.type) {
1032
- case Pt:
1033
- e.return = Zr(e.value, e.length, r);
1058
+ case Lt:
1059
+ e.return = Xr(e.value, e.length, r);
1034
1060
  return;
1035
- case qr:
1036
- return Xe([fe(e, { value: _(e.value, "@", "@" + B) })], n);
1037
- case at:
1061
+ case Yr:
1062
+ return et([fe(e, { value: M(e.value, "@", "@" + B) })], n);
1063
+ case st:
1038
1064
  if (e.length)
1039
- return io(r = e.props, function(a) {
1065
+ return uo(r = e.props, function(a) {
1040
1066
  switch (de(a, n = /(::plac\w+|:read-\w+)/)) {
1041
1067
  case ":read-only":
1042
1068
  case ":read-write":
1043
- we(fe(e, { props: [_(a, /:(read-\w+)/, ":" + Ne + "$1")] })), we(fe(e, { props: [a] })), Et(e, { props: ir(r, n) });
1069
+ we(fe(e, { props: [M(a, /:(read-\w+)/, ":" + Oe + "$1")] })), we(fe(e, { props: [a] })), _t(e, { props: lr(r, n) });
1044
1070
  break;
1045
1071
  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) });
1072
+ we(fe(e, { props: [M(a, /:(plac\w+)/, ":" + B + "input-$1")] })), we(fe(e, { props: [M(a, /:(plac\w+)/, ":" + Oe + "$1")] })), we(fe(e, { props: [M(a, /:(plac\w+)/, F + "input-$1")] })), we(fe(e, { props: [a] })), _t(e, { props: lr(r, n) });
1047
1073
  break;
1048
1074
  }
1049
1075
  return "";
1050
1076
  });
1051
1077
  }
1052
1078
  }
1053
- var $o = {
1079
+ var jo = {
1054
1080
  animationIterationCount: 1,
1055
1081
  aspectRatio: 1,
1056
1082
  borderImageOutset: 1,
@@ -1098,58 +1124,58 @@ var $o = {
1098
1124
  strokeMiterlimit: 1,
1099
1125
  strokeOpacity: 1,
1100
1126
  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) {
1127
+ }, Ce = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", en = "active", tn = "data-styled-version", dt = "6.1.19", Kt = `/*!sc*/
1128
+ `, tt = typeof window < "u" && typeof document < "u", Io = !!(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({});
1129
+ function Ao(e, t, r) {
1104
1130
  return r === void 0 && (r = je), e.theme !== r.theme && e.theme || t || r.theme;
1105
1131
  }
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, "");
1132
+ var rn = /* @__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"]), To = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Eo = /(^-|-$)/g;
1133
+ function pr(e) {
1134
+ return e.replace(To, "-").replace(Eo, "");
1109
1135
  }
1110
- var Ao = /(a)(d)/gi, Le = 52, ur = function(e) {
1136
+ var _o = /(a)(d)/gi, Fe = 52, fr = function(e) {
1111
1137
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1112
1138
  };
1113
- function Rt(e) {
1139
+ function zt(e) {
1114
1140
  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");
1141
+ for (t = Math.abs(e); t > Fe; t = t / Fe | 0) r = fr(t % Fe) + r;
1142
+ return (fr(t % Fe) + r).replace(_o, "$1-$2");
1117
1143
  }
1118
- var xt, tn = 5381, ve = function(e, t) {
1144
+ var yt, nn = 5381, ve = function(e, t) {
1119
1145
  for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
1120
1146
  return e;
1121
- }, rn = function(e) {
1122
- return ve(tn, e);
1147
+ }, on = function(e) {
1148
+ return ve(nn, e);
1123
1149
  };
1124
- function To(e) {
1125
- return Rt(rn(e) >>> 0);
1150
+ function Mo(e) {
1151
+ return zt(on(e) >>> 0);
1126
1152
  }
1127
- function Eo(e) {
1153
+ function Ro(e) {
1128
1154
  return e.displayName || e.name || "Component";
1129
1155
  }
1130
- function yt(e) {
1156
+ function kt(e) {
1131
1157
  return typeof e == "string" && !0;
1132
1158
  }
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;
1159
+ var an = typeof Symbol == "function" && Symbol.for, sn = an ? Symbol.for("react.memo") : 60115, zo = an ? Symbol.for("react.forward_ref") : 60112, Do = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Oo = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, cn = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, No = ((yt = {})[zo] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, yt[sn] = cn, yt);
1160
+ function hr(e) {
1161
+ return ("type" in (t = e) && t.type.$$typeof) === sn ? cn : "$$typeof" in e ? No[e.$$typeof] : Do;
1136
1162
  var t;
1137
1163
  }
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) {
1164
+ var Bo = Object.defineProperty, Po = Object.getOwnPropertyNames, mr = Object.getOwnPropertySymbols, Lo = Object.getOwnPropertyDescriptor, Fo = Object.getPrototypeOf, gr = Object.prototype;
1165
+ function ln(e, t, r) {
1140
1166
  if (typeof t != "string") {
1141
- if (hr) {
1142
- var n = Bo(t);
1143
- n && n !== hr && sn(e, n, r);
1167
+ if (gr) {
1168
+ var n = Fo(t);
1169
+ n && n !== gr && ln(e, n, r);
1144
1170
  }
1145
- 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) {
1171
+ var a = Po(t);
1172
+ mr && (a = a.concat(mr(t)));
1173
+ for (var c = hr(e), u = hr(t), d = 0; d < a.length; ++d) {
1148
1174
  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);
1175
+ if (!(h in Oo || r && r[h] || u && h in u || c && h in c)) {
1176
+ var g = Lo(t, h);
1151
1177
  try {
1152
- Do(e, h, g);
1178
+ Bo(e, h, g);
1153
1179
  } catch {
1154
1180
  }
1155
1181
  }
@@ -1160,13 +1186,13 @@ function sn(e, t, r) {
1160
1186
  function Ie(e) {
1161
1187
  return typeof e == "function";
1162
1188
  }
1163
- function Kt(e) {
1189
+ function Wt(e) {
1164
1190
  return typeof e == "object" && "styledComponentId" in e;
1165
1191
  }
1166
1192
  function me(e, t) {
1167
1193
  return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1168
1194
  }
1169
- function mr(e, t) {
1195
+ function br(e, t) {
1170
1196
  if (e.length === 0) return "";
1171
1197
  for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
1172
1198
  return r;
@@ -1174,20 +1200,20 @@ function mr(e, t) {
1174
1200
  function Be(e) {
1175
1201
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1176
1202
  }
1177
- function zt(e, t, r) {
1203
+ function Dt(e, t, r) {
1178
1204
  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]);
1205
+ if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Dt(e[n], t[n]);
1206
+ else if (Be(t)) for (var n in t) e[n] = Dt(e[n], t[n]);
1181
1207
  return e;
1182
1208
  }
1183
- function Wt(e, t) {
1209
+ function Ut(e, t) {
1184
1210
  Object.defineProperty(e, "toString", { value: t });
1185
1211
  }
1186
1212
  function Pe(e) {
1187
1213
  for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1188
1214
  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
1215
  }
1190
- var Po = function() {
1216
+ var Ko = function() {
1191
1217
  function e(t) {
1192
1218
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1193
1219
  }
@@ -1210,49 +1236,49 @@ var Po = function() {
1210
1236
  }, e.prototype.getGroup = function(t) {
1211
1237
  var r = "";
1212
1238
  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);
1239
+ 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
1240
  return r;
1215
1241
  }, 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) {
1242
+ }(), Ye = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map(), Qe = 1, Ke = function(e) {
1243
+ if (Ye.has(e)) return Ye.get(e);
1244
+ for (; rt.has(Qe); ) Qe++;
1245
+ var t = Qe++;
1246
+ return Ye.set(e, t), rt.set(t, e), t;
1247
+ }, Wo = function(e, t) {
1248
+ Qe = t + 1, Ye.set(e, t), rt.set(t, e);
1249
+ }, Uo = "style[".concat(Ce, "][").concat(tn, '="').concat(dt, '"]'), Ho = new RegExp("^".concat(Ce, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), qo = function(e, t, r) {
1224
1250
  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++) {
1251
+ }, Go = function(e, t) {
1252
+ for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Kt), a = [], c = 0, u = n.length; c < u; c++) {
1227
1253
  var d = n[c].trim();
1228
1254
  if (d) {
1229
- var h = d.match(Ko);
1255
+ var h = d.match(Ho);
1230
1256
  if (h) {
1231
1257
  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;
1258
+ g !== 0 && (Wo(b, g), qo(e, b, h[3]), e.getTag().insertRules(g, a)), a.length = 0;
1233
1259
  } else a.push(d);
1234
1260
  }
1235
1261
  }
1236
- }, gr = function(e) {
1237
- for (var t = document.querySelectorAll(Fo), r = 0, n = t.length; r < n; r++) {
1262
+ }, xr = function(e) {
1263
+ for (var t = document.querySelectorAll(Uo), r = 0, n = t.length; r < n; r++) {
1238
1264
  var a = t[r];
1239
- a && a.getAttribute(Ce) !== Jr && (Uo(e, a), a.parentNode && a.parentNode.removeChild(a));
1265
+ a && a.getAttribute(Ce) !== en && (Go(e, a), a.parentNode && a.parentNode.removeChild(a));
1240
1266
  }
1241
1267
  };
1242
- function Ho() {
1268
+ function Yo() {
1243
1269
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1244
1270
  }
1245
- var cn = function(e) {
1271
+ var dn = function(e) {
1246
1272
  var t = document.head, r = e || t, n = document.createElement("style"), a = function(d) {
1247
1273
  var h = Array.from(d.querySelectorAll("style[".concat(Ce, "]")));
1248
1274
  return h[h.length - 1];
1249
1275
  }(r), c = a !== void 0 ? a.nextSibling : null;
1250
- n.setAttribute(Ce, Jr), n.setAttribute(Xr, lt);
1251
- var u = Ho();
1276
+ n.setAttribute(Ce, en), n.setAttribute(tn, dt);
1277
+ var u = Yo();
1252
1278
  return u && n.setAttribute("nonce", u), r.insertBefore(n, c), n;
1253
- }, qo = function() {
1279
+ }, Qo = function() {
1254
1280
  function e(t) {
1255
- this.element = cn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
1281
+ this.element = dn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
1256
1282
  if (r.sheet) return r.sheet;
1257
1283
  for (var n = document.styleSheets, a = 0, c = n.length; a < c; a++) {
1258
1284
  var u = n[a];
@@ -1273,9 +1299,9 @@ var cn = function(e) {
1273
1299
  var r = this.sheet.cssRules[t];
1274
1300
  return r && r.cssText ? r.cssText : "";
1275
1301
  }, e;
1276
- }(), Go = function() {
1302
+ }(), Vo = function() {
1277
1303
  function e(t) {
1278
- this.element = cn(t), this.nodes = this.element.childNodes, this.length = 0;
1304
+ this.element = dn(t), this.nodes = this.element.childNodes, this.length = 0;
1279
1305
  }
1280
1306
  return e.prototype.insertRule = function(t, r) {
1281
1307
  if (t <= this.length && t >= 0) {
@@ -1288,7 +1314,7 @@ var cn = function(e) {
1288
1314
  }, e.prototype.getRule = function(t) {
1289
1315
  return t < this.length ? this.nodes[t].textContent : "";
1290
1316
  }, e;
1291
- }(), Yo = function() {
1317
+ }(), Zo = function() {
1292
1318
  function e(t) {
1293
1319
  this.rules = [], this.length = 0;
1294
1320
  }
@@ -1299,15 +1325,15 @@ var cn = function(e) {
1299
1325
  }, e.prototype.getRule = function(t) {
1300
1326
  return t < this.length ? this.rules[t] : "";
1301
1327
  }, e;
1302
- }(), br = et, Qo = { isServer: !et, useCSSOMInjection: !So }, ln = function() {
1328
+ }(), yr = tt, Jo = { isServer: !tt, useCSSOMInjection: !Io }, un = function() {
1303
1329
  function e(t, r, n) {
1304
1330
  t === void 0 && (t = je), r === void 0 && (r = {});
1305
1331
  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() {
1332
+ this.options = X(X({}, Jo), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && tt && yr && (yr = !1, xr(this)), Ut(this, function() {
1307
1333
  return function(c) {
1308
1334
  for (var u = c.getTag(), d = u.length, h = "", g = function(p) {
1309
1335
  var w = function(o) {
1310
- return tt.get(o);
1336
+ return rt.get(o);
1311
1337
  }(p);
1312
1338
  if (w === void 0) return "continue";
1313
1339
  var k = c.names.get(w), $ = u.getGroup(p);
@@ -1315,16 +1341,16 @@ var cn = function(e) {
1315
1341
  var j = "".concat(Ce, ".g").concat(p, '[id="').concat(w, '"]'), S = "";
1316
1342
  k !== void 0 && k.forEach(function(o) {
1317
1343
  o.length > 0 && (S += "".concat(o, ","));
1318
- }), h += "".concat($).concat(j, '{content:"').concat(S, '"}').concat(Ft);
1344
+ }), h += "".concat($).concat(j, '{content:"').concat(S, '"}').concat(Kt);
1319
1345
  }, b = 0; b < d; b++) g(b);
1320
1346
  return h;
1321
1347
  }(a);
1322
1348
  });
1323
1349
  }
1324
1350
  return e.registerId = function(t) {
1325
- return Fe(t);
1351
+ return Ke(t);
1326
1352
  }, e.prototype.rehydrate = function() {
1327
- !this.server && et && gr(this);
1353
+ !this.server && tt && xr(this);
1328
1354
  }, e.prototype.reconstructWithOptions = function(t, r) {
1329
1355
  return r === void 0 && (r = !0), new e(X(X({}, this.options), t), this.gs, r && this.names || void 0);
1330
1356
  }, e.prototype.allocateGSInstance = function(t) {
@@ -1332,124 +1358,124 @@ var cn = function(e) {
1332
1358
  }, e.prototype.getTag = function() {
1333
1359
  return this.tag || (this.tag = (t = function(r) {
1334
1360
  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)));
1361
+ return r.isServer ? new Zo(a) : n ? new Qo(a) : new Vo(a);
1362
+ }(this.options), new Ko(t)));
1337
1363
  var t;
1338
1364
  }, e.prototype.hasNameForId = function(t, r) {
1339
1365
  return this.names.has(t) && this.names.get(t).has(r);
1340
1366
  }, e.prototype.registerName = function(t, r) {
1341
- if (Fe(t), this.names.has(t)) this.names.get(t).add(r);
1367
+ if (Ke(t), this.names.has(t)) this.names.get(t).add(r);
1342
1368
  else {
1343
1369
  var n = /* @__PURE__ */ new Set();
1344
1370
  n.add(r), this.names.set(t, n);
1345
1371
  }
1346
1372
  }, e.prototype.insertRules = function(t, r, n) {
1347
- this.registerName(t, r), this.getTag().insertRules(Fe(t), n);
1373
+ this.registerName(t, r), this.getTag().insertRules(Ke(t), n);
1348
1374
  }, e.prototype.clearNames = function(t) {
1349
1375
  this.names.has(t) && this.names.get(t).clear();
1350
1376
  }, e.prototype.clearRules = function(t) {
1351
- this.getTag().clearGroup(Fe(t)), this.clearNames(t);
1377
+ this.getTag().clearGroup(Ke(t)), this.clearNames(t);
1352
1378
  }, e.prototype.clearTag = function() {
1353
1379
  this.tag = void 0;
1354
1380
  }, e;
1355
- }(), Vo = /&/g, Zo = /^\s*\/\/.*$/gm;
1356
- function dn(e, t) {
1381
+ }(), Xo = /&/g, ea = /^\s*\/\/.*$/gm;
1382
+ function pn(e, t) {
1357
1383
  return e.map(function(r) {
1358
1384
  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
1385
  return "".concat(t, " ").concat(n);
1360
- })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = dn(r.children, t)), r;
1386
+ })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = pn(r.children, t)), r;
1361
1387
  });
1362
1388
  }
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, $) {
1389
+ function ta(e) {
1390
+ 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
1391
  return $.startsWith(r) && $.endsWith(r) && $.replaceAll(r, "").length > 0 ? ".".concat(t) : w;
1366
1392
  }, b = h.slice();
1367
1393
  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);
1394
+ w.type === st && w.value.includes("&") && (w.props[0] = w.props[0].replace(Xo, r).replace(n, g));
1395
+ }), u.prefix && b.push(Co), b.push(vo);
1370
1396
  var p = function(w, k, $, j) {
1371
1397
  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));
1398
+ var S = w.replace(ea, ""), o = ko($ || k ? "".concat($, " ").concat(k, " { ").concat(S, " }") : S);
1399
+ u.namespace && (o = pn(o, u.namespace));
1374
1400
  var i = [];
1375
- return Xe(o, ko(b.concat(wo(function(s) {
1401
+ return et(o, $o(b.concat(So(function(s) {
1376
1402
  return i.push(s);
1377
1403
  })))), i;
1378
1404
  };
1379
1405
  return p.hash = h.length ? h.reduce(function(w, k) {
1380
1406
  return k.name || Pe(15), ve(w, k.name);
1381
- }, tn).toString() : "", p;
1407
+ }, nn).toString() : "", p;
1382
1408
  }
1383
- var Xo = new ln(), Dt = Jo(), un = F.createContext({ shouldForwardProp: void 0, styleSheet: Xo, stylis: Dt });
1384
- un.Consumer;
1385
- F.createContext(void 0);
1386
- function xr() {
1387
- return Fr(un);
1409
+ var ra = new un(), Ot = ta(), fn = K.createContext({ shouldForwardProp: void 0, styleSheet: ra, stylis: Ot });
1410
+ fn.Consumer;
1411
+ K.createContext(void 0);
1412
+ function kr() {
1413
+ return Wr(fn);
1388
1414
  }
1389
- var ea = function() {
1415
+ var na = function() {
1390
1416
  function e(t, r) {
1391
1417
  var n = this;
1392
1418
  this.inject = function(a, c) {
1393
- c === void 0 && (c = Dt);
1419
+ c === void 0 && (c = Ot);
1394
1420
  var u = n.name + c.hash;
1395
1421
  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() {
1422
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, Ut(this, function() {
1397
1423
  throw Pe(12, String(n.name));
1398
1424
  });
1399
1425
  }
1400
1426
  return e.prototype.getName = function(t) {
1401
- return t === void 0 && (t = Dt), this.name + t.hash;
1427
+ return t === void 0 && (t = Ot), this.name + t.hash;
1402
1428
  }, e;
1403
- }(), ta = function(e) {
1429
+ }(), oa = function(e) {
1404
1430
  return e >= "A" && e <= "Z";
1405
1431
  };
1406
- function yr(e) {
1432
+ function wr(e) {
1407
1433
  for (var t = "", r = 0; r < e.length; r++) {
1408
1434
  var n = e[r];
1409
1435
  if (r === 1 && n === "-" && e[0] === "-") return e;
1410
- ta(n) ? t += "-" + n.toLowerCase() : t += n;
1436
+ oa(n) ? t += "-" + n.toLowerCase() : t += n;
1411
1437
  }
1412
1438
  return t.startsWith("ms-") ? "-" + t : t;
1413
1439
  }
1414
- var pn = function(e) {
1440
+ var hn = function(e) {
1415
1441
  return e == null || e === !1 || e === "";
1416
- }, fn = function(e) {
1442
+ }, mn = function(e) {
1417
1443
  var t, r, n = [];
1418
1444
  for (var a in e) {
1419
1445
  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")), ";")));
1446
+ e.hasOwnProperty(a) && !hn(c) && (Array.isArray(c) && c.isCss || Ie(c) ? n.push("".concat(wr(a), ":"), c, ";") : Be(c) ? n.push.apply(n, Xe(Xe(["".concat(a, " {")], mn(c), !1), ["}"], !1)) : n.push("".concat(wr(a), ": ").concat((t = a, (r = c) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in jo || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
1421
1447
  }
1422
1448
  return n;
1423
1449
  };
1424
1450
  function be(e, t, r, n) {
1425
- if (pn(e)) return [];
1426
- if (Kt(e)) return [".".concat(e.styledComponentId)];
1451
+ if (hn(e)) return [];
1452
+ if (Wt(e)) return [".".concat(e.styledComponentId)];
1427
1453
  if (Ie(e)) {
1428
1454
  if (!Ie(c = e) || c.prototype && c.prototype.isReactComponent || !t) return [e];
1429
1455
  var a = e(t);
1430
1456
  return be(a, t, r, n);
1431
1457
  }
1432
1458
  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) {
1459
+ return e instanceof na ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Be(e) ? mn(e) : Array.isArray(e) ? Array.prototype.concat.apply(ut, e.map(function(u) {
1434
1460
  return be(u, t, r, n);
1435
1461
  })) : [e.toString()];
1436
1462
  }
1437
- function ra(e) {
1463
+ function aa(e) {
1438
1464
  for (var t = 0; t < e.length; t += 1) {
1439
1465
  var r = e[t];
1440
- if (Ie(r) && !Kt(r)) return !1;
1466
+ if (Ie(r) && !Wt(r)) return !1;
1441
1467
  }
1442
1468
  return !0;
1443
1469
  }
1444
- var na = rn(lt), oa = function() {
1470
+ var sa = on(dt), ia = function() {
1445
1471
  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);
1472
+ this.rules = t, this.staticRulesId = "", this.isStatic = (n === void 0 || n.isStatic) && aa(t), this.componentId = r, this.baseHash = ve(sa, r), this.baseStyle = n, un.registerId(r);
1447
1473
  }
1448
1474
  return e.prototype.generateAndInjectStyles = function(t, r, n) {
1449
1475
  var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
1450
1476
  if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) a = me(a, this.staticRulesId);
1451
1477
  else {
1452
- var c = mr(be(this.rules, t, r, n)), u = Rt(ve(this.baseHash, c) >>> 0);
1478
+ var c = br(be(this.rules, t, r, n)), u = zt(ve(this.baseHash, c) >>> 0);
1453
1479
  if (!r.hasNameForId(this.componentId, u)) {
1454
1480
  var d = n(c, ".".concat(u), void 0, this.componentId);
1455
1481
  r.insertRules(this.componentId, u, d);
@@ -1461,29 +1487,29 @@ var na = rn(lt), oa = function() {
1461
1487
  var p = this.rules[b];
1462
1488
  if (typeof p == "string") g += p;
1463
1489
  else if (p) {
1464
- var w = mr(be(p, t, r, n));
1490
+ var w = br(be(p, t, r, n));
1465
1491
  h = ve(h, w + b), g += w;
1466
1492
  }
1467
1493
  }
1468
1494
  if (g) {
1469
- var k = Rt(h >>> 0);
1495
+ var k = zt(h >>> 0);
1470
1496
  r.hasNameForId(this.componentId, k) || r.insertRules(this.componentId, k, n(g, ".".concat(k), void 0, this.componentId)), a = me(a, k);
1471
1497
  }
1472
1498
  }
1473
1499
  return a;
1474
1500
  }, 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]));
1501
+ }(), gn = K.createContext(void 0);
1502
+ gn.Consumer;
1503
+ var wt = {};
1504
+ function ca(e, t, r) {
1505
+ 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) {
1506
+ var y = typeof f != "string" ? "sc" : pr(f);
1507
+ wt[y] = (wt[y] || 0) + 1;
1508
+ var x = "".concat(y, "-").concat(Mo(dt + y + wt[y]));
1483
1509
  return m ? "".concat(m, "-").concat(x) : x;
1484
1510
  }(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;
1511
+ return kt(f) ? "styled.".concat(f) : "Styled(".concat(Ro(f), ")");
1512
+ }(e) : b, w = t.displayName && t.componentId ? "".concat(pr(t.displayName), "-").concat(t.componentId) : t.componentId || g, k = n && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, $ = t.shouldForwardProp;
1487
1513
  if (n && a.shouldForwardProp) {
1488
1514
  var j = a.shouldForwardProp;
1489
1515
  if (t.shouldForwardProp) {
@@ -1493,56 +1519,56 @@ function aa(e, t, r) {
1493
1519
  };
1494
1520
  } else $ = j;
1495
1521
  }
1496
- var o = new oa(r, w, n ? a.componentStyle : void 0);
1522
+ var o = new ia(r, w, n ? a.componentStyle : void 0);
1497
1523
  function i(f, m) {
1498
1524
  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) {
1500
- for (var ye, ce = X(X({}, V), { className: void 0, theme: ie }), ke = 0; ke < Q.length; ke += 1) {
1501
- var ne = Ie(ye = Q[ke]) ? ye(ce) : ye;
1525
+ var _ = y.attrs, C = y.componentStyle, E = y.defaultProps, W = y.foldedComponentIds, P = y.styledComponentId, I = y.target, O = K.useContext(gn), H = kr(), v = y.shouldForwardProp || H.shouldForwardProp, N = Ao(x, O, E) || je, R = function(Y, V, ie) {
1526
+ for (var ye, ce = X(X({}, V), { className: void 0, theme: ie }), ke = 0; ke < Y.length; ke += 1) {
1527
+ var ne = Ie(ye = Y[ke]) ? ye(ce) : ye;
1502
1528
  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
1529
  }
1504
1530
  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]));
1507
- var z = function(Q, V) {
1508
- var ie = xr(), ye = Q.generateAndInjectStyles(V, ie.styleSheet, ie.stylis);
1531
+ }(_, x, N), L = R.as || I, z = {};
1532
+ for (var q in R) R[q] === void 0 || q[0] === "$" || q === "as" || q === "theme" && R.theme === N || (q === "forwardedAs" ? z.as = R.forwardedAs : v && !v(q, L) || (z[q] = R[q]));
1533
+ var D = function(Y, V) {
1534
+ var ie = kr(), ye = Y.generateAndInjectStyles(V, ie.styleSheet, ie.stylis);
1509
1535
  return ye;
1510
- }(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);
1536
+ }(C, R), U = me(W, P);
1537
+ return D && (U += " " + D), R.className && (U += " " + R.className), z[kt(L) && !rn.has(L) ? "class" : "className"] = U, A && (z.ref = A), Je(L, z);
1512
1538
  }(s, f, m);
1513
1539
  }
1514
1540
  i.displayName = p;
1515
- var s = F.forwardRef(i);
1541
+ var s = K.forwardRef(i);
1516
1542
  return s.attrs = k, s.componentStyle = o, s.displayName = p, s.shouldForwardProp = $, s.foldedComponentIds = n ? me(a.foldedComponentIds, a.styledComponentId) : "", s.styledComponentId = w, s.target = n ? a.target : e, Object.defineProperty(s, "defaultProps", { get: function() {
1517
1543
  return this._foldedDefaultProps;
1518
1544
  }, set: function(f) {
1519
1545
  this._foldedDefaultProps = n ? function(m) {
1520
1546
  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);
1547
+ for (var A = 0, _ = y; A < _.length; A++) Dt(m, _[A], !0);
1522
1548
  return m;
1523
1549
  }({}, a.defaultProps, f) : f;
1524
- } }), Wt(s, function() {
1550
+ } }), Ut(s, function() {
1525
1551
  return ".".concat(s.styledComponentId);
1526
- }), c && sn(s, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), s;
1552
+ }), c && ln(s, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), s;
1527
1553
  }
1528
- function kr(e, t) {
1554
+ function vr(e, t) {
1529
1555
  for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
1530
1556
  return r;
1531
1557
  }
1532
- var wr = function(e) {
1558
+ var $r = function(e) {
1533
1559
  return Object.assign(e, { isCss: !0 });
1534
1560
  };
1535
- function sa(e) {
1561
+ function la(e) {
1536
1562
  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))));
1563
+ if (Ie(e) || Be(e)) return $r(be(vr(ut, Xe([e], t, !0))));
1538
1564
  var n = e;
1539
- return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? be(n) : wr(be(kr(n, t)));
1565
+ return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? be(n) : $r(be(vr(n, t)));
1540
1566
  }
1541
1567
  function Nt(e, t, r) {
1542
1568
  if (r === void 0 && (r = je), !t) throw Pe(1, t);
1543
1569
  var n = function(a) {
1544
1570
  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)));
1571
+ return e(t, r, la.apply(void 0, Xe([a], c, !1)));
1546
1572
  };
1547
1573
  return n.attrs = function(a) {
1548
1574
  return Nt(e, t, X(X({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
@@ -1550,18 +1576,18 @@ function Nt(e, t, r) {
1550
1576
  return Nt(e, t, X(X({}, r), a));
1551
1577
  }, n;
1552
1578
  }
1553
- var mn = function(e) {
1554
- return Nt(aa, e);
1555
- }, T = mn;
1556
- en.forEach(function(e) {
1557
- T[e] = mn(e);
1579
+ var bn = function(e) {
1580
+ return Nt(ca, e);
1581
+ }, T = bn;
1582
+ rn.forEach(function(e) {
1583
+ T[e] = bn(e);
1558
1584
  });
1559
- const ia = T.div`
1585
+ const da = T.div`
1560
1586
  display: flex;
1561
1587
  flex-wrap: wrap;
1562
1588
  gap: 6px;
1563
1589
  margin-bottom: 6px;
1564
- `, ca = T.div`
1590
+ `, ua = T.div`
1565
1591
  display: inline-flex;
1566
1592
  align-items: center;
1567
1593
  gap: 6px;
@@ -1578,18 +1604,18 @@ const ia = T.div`
1578
1604
  border-color: #4b5563;
1579
1605
  background: ${(e) => e.$isImage ? "rgba(59, 130, 246, 0.2)" : "rgba(107, 114, 128, 0.25)"};
1580
1606
  }
1581
- `, la = T.img`
1607
+ `, pa = T.img`
1582
1608
  width: 28px;
1583
1609
  height: 28px;
1584
1610
  object-fit: cover;
1585
1611
  border-radius: 4px;
1586
- `, da = T.span`
1612
+ `, fa = T.span`
1587
1613
  overflow: hidden;
1588
1614
  text-overflow: ellipsis;
1589
1615
  white-space: nowrap;
1590
1616
  flex: 1;
1591
1617
  min-width: 0;
1592
- `, ua = T.button`
1618
+ `, ha = T.button`
1593
1619
  display: flex;
1594
1620
  align-items: center;
1595
1621
  justify-content: center;
@@ -1606,16 +1632,16 @@ const ia = T.div`
1606
1632
  }
1607
1633
  `;
1608
1634
  function Ae({ attachments: e, onRemove: t, readOnly: r }) {
1609
- return e.length ? /* @__PURE__ */ l.jsx(ia, { children: e.map((n) => {
1635
+ return e.length ? /* @__PURE__ */ l.jsx(da, { children: e.map((n) => {
1610
1636
  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 }) })
1637
+ return /* @__PURE__ */ l.jsxs(ua, { $isImage: a, title: n.name, children: [
1638
+ c ? /* @__PURE__ */ l.jsx(pa, { src: n.preview || n.url, alt: "", loading: "lazy", decoding: "async" }) : a ? /* @__PURE__ */ l.jsx(ro, { size: 16, "aria-hidden": !0 }) : /* @__PURE__ */ l.jsx(eo, { size: 16, "aria-hidden": !0 }),
1639
+ /* @__PURE__ */ l.jsx(fa, { children: n.name }),
1640
+ !r && t && /* @__PURE__ */ l.jsx(ha, { type: "button", onClick: () => t(n.id), "aria-label": `Remove ${n.name}`, children: /* @__PURE__ */ l.jsx(so, { size: 14 }) })
1615
1641
  ] }, n.id);
1616
1642
  }) }) : null;
1617
1643
  }
1618
- const gn = [
1644
+ const xn = [
1619
1645
  "application/pdf",
1620
1646
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1621
1647
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -1628,7 +1654,7 @@ const gn = [
1628
1654
  "image/jpeg",
1629
1655
  "image/webp",
1630
1656
  "image/gif"
1631
- ], pa = {
1657
+ ], ma = {
1632
1658
  ".pdf": "application/pdf",
1633
1659
  ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1634
1660
  ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -1643,12 +1669,12 @@ const gn = [
1643
1669
  ".webp": "image/webp",
1644
1670
  ".gif": "image/gif"
1645
1671
  };
1646
- function fa(e) {
1672
+ function ga(e) {
1647
1673
  const t = e.lastIndexOf(".");
1648
1674
  if (!(t < 0))
1649
- return pa[e.slice(t).toLowerCase()];
1675
+ return ma[e.slice(t).toLowerCase()];
1650
1676
  }
1651
- async function Ut(e) {
1677
+ async function Ht(e) {
1652
1678
  var r;
1653
1679
  if (!e) return [];
1654
1680
  const t = [];
@@ -1657,14 +1683,14 @@ async function Ut(e) {
1657
1683
  t.push(e.files[n]);
1658
1684
  return t;
1659
1685
  }
1660
- function bn(e, t, r) {
1686
+ function yn(e, t, r) {
1661
1687
  if (e.size > t)
1662
1688
  return `File too large (max ${Math.floor(t / (1024 * 1024))}MB)`;
1663
1689
  if (r.includes(e.type)) return null;
1664
- const n = fa(e.name);
1690
+ const n = ga(e.name);
1665
1691
  return n && r.includes(n) ? null : "File type not allowed for attachments";
1666
1692
  }
1667
- const ha = T.button`
1693
+ const ba = T.button`
1668
1694
  display: flex;
1669
1695
  align-items: center;
1670
1696
  justify-content: center;
@@ -1695,7 +1721,7 @@ const ha = T.button`
1695
1721
  border-color: #4b5563;
1696
1722
  color: #e5e7eb;
1697
1723
  }
1698
- `, ma = T.button`
1724
+ `, xa = T.button`
1699
1725
  display: flex;
1700
1726
  align-items: center;
1701
1727
  justify-content: center;
@@ -1739,24 +1765,24 @@ const ha = T.button`
1739
1765
  }
1740
1766
  }
1741
1767
  `;
1742
- function Ht({
1768
+ function qt({
1743
1769
  disabled: e,
1744
1770
  integrated: t = !1,
1745
1771
  maxFileBytes: r,
1746
1772
  maxFiles: n,
1747
- allowedMime: a = gn,
1773
+ allowedMime: a = xn,
1748
1774
  currentCount: c,
1749
1775
  uploadAttachment: u,
1750
1776
  onUploaded: d,
1751
1777
  onError: h
1752
1778
  }) {
1753
- const g = F.useRef(null), [b, p] = F.useState(!1), w = F.useMemo(
1779
+ const g = K.useRef(null), [b, p] = K.useState(!1), w = K.useMemo(
1754
1780
  () => [
1755
1781
  ".pdf,.docx,.xlsx,.xls,.csv,.txt,.md,.json",
1756
1782
  "image/png,image/jpeg,image/webp,image/gif"
1757
1783
  ].join(","),
1758
1784
  []
1759
- ), k = F.useCallback(
1785
+ ), k = K.useCallback(
1760
1786
  async (i) => {
1761
1787
  const s = Array.from(i);
1762
1788
  if (!s.length) return;
@@ -1766,7 +1792,7 @@ function Ht({
1766
1792
  h == null || h(`You can attach at most ${n} files per message.`);
1767
1793
  break;
1768
1794
  }
1769
- const y = bn(m, r, a);
1795
+ const y = yn(m, r, a);
1770
1796
  if (y) {
1771
1797
  h == null || h(`${m.name}: ${y}`);
1772
1798
  continue;
@@ -1787,7 +1813,7 @@ function Ht({
1787
1813
  ), $ = (i) => {
1788
1814
  const s = i.target.files;
1789
1815
  s != null && s.length && k(s), i.target.value = "";
1790
- }, j = c >= n, S = !!(e || b || j), o = t ? ma : ha;
1816
+ }, j = c >= n, S = !!(e || b || j), o = t ? xa : ba;
1791
1817
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1792
1818
  /* @__PURE__ */ l.jsx(
1793
1819
  "input",
@@ -1811,7 +1837,7 @@ function Ht({
1811
1837
  var i;
1812
1838
  return (i = g.current) == null ? void 0 : i.click();
1813
1839
  },
1814
- children: /* @__PURE__ */ l.jsx(to, { size: 16, strokeWidth: 2 })
1840
+ children: /* @__PURE__ */ l.jsx(oo, { size: 16, strokeWidth: 2 })
1815
1841
  }
1816
1842
  )
1817
1843
  ] });
@@ -1825,31 +1851,31 @@ function he() {
1825
1851
  return e;
1826
1852
  }, he.apply(this, arguments);
1827
1853
  }
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) + ") +";
1854
+ const ya = ["children", "options"], Sr = ["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" }), Cr = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, ka = ["style", "script", "pre"], wa = ["src", "href", "data", "formAction", "srcDoc", "action"], va = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, $a = /mailto:/i, Sa = /\n{2,}$/, jr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Ca = /^ *> ?/gm, ja = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ia = /^ {2,}\n/, Aa = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Ir = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Ar = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Ta = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Ea = /^(?:\n *)*\n/, _a = /\r\n?/g, Ma = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Ra = /^\[\^([^\]]+)]/, za = /\f/g, Da = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Oa = /^\s*?\[(x|\s)\]/, Tr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Er = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, _r = /^([^\n]+)\n *(=|-){3,} *\n/, vt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Na = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Mr = /^<!--[\s\S]*?(?:-->)/, Ba = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, $t = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Pa = /^\{.*\}$/, La = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Fa = /^<([^ >]+@[^ >]+)>/, Ka = /^<([^ >]+:\/[^ >]+)>/, Wa = /-([a-z])?/gi, Rr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Ua = /^[^\n]+(?: \n|\n{2,})/, Ha = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, qa = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Ga = /^\[([^\]]*)\] ?\[([^\]]*)\]/, Ya = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Qa = /\t/g, Va = /(^ *\||\| *$)/g, Za = /^ *:-+: *$/, Ja = /^ *:-+ *$/, Xa = /^ *-+: *$/, pt = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, ft = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", es = RegExp(`^([*_])\\1${pt(1)}${ft}\\1\\1(?!\\1)`), ts = RegExp(`^([*_])${pt(0)}${ft}\\1(?!\\1)`), rs = RegExp(`^(==)${pt(0)}${ft}\\1`), ns = RegExp(`^(~~)${pt(0)}${ft}\\1`), os = /^(:[a-zA-Z0-9-_]+:)/, as = /^\\([^0-9A-Za-z\s])/, ss = /\\([^0-9A-Za-z\s])/g, is = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, cs = /^\n+/, ls = /^([ \t]*)/, ds = /(?:^|\n)( *)$/, Gt = "(?:\\d+\\.)", Yt = "(?:[*+-])";
1855
+ function kn(e) {
1856
+ return "( *)(" + (e === 1 ? Gt : Yt) + ") +";
1831
1857
  }
1832
- const yn = xn(1), kn = xn(2);
1833
- function wn(e) {
1834
- return RegExp("^" + (e === 1 ? yn : kn));
1858
+ const wn = kn(1), vn = kn(2);
1859
+ function $n(e) {
1860
+ return RegExp("^" + (e === 1 ? wn : vn));
1835
1861
  }
1836
- const cs = wn(1), ls = wn(2);
1837
- function vn(e) {
1838
- return RegExp("^" + (e === 1 ? yn : kn) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? qt : Gt) + " )[^\\n]*)*(\\n|$)", "gm");
1862
+ const us = $n(1), ps = $n(2);
1863
+ function Sn(e) {
1864
+ return RegExp("^" + (e === 1 ? wn : vn) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? Gt : Yt) + " )[^\\n]*)*(\\n|$)", "gm");
1839
1865
  }
1840
- const ds = vn(1), us = vn(2);
1841
- function $n(e) {
1842
- const t = e === 1 ? qt : Gt;
1866
+ const fs = Sn(1), hs = Sn(2);
1867
+ function Cn(e) {
1868
+ const t = e === 1 ? Gt : Yt;
1843
1869
  return RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
1844
1870
  }
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;
1871
+ const jn = Cn(1), In = Cn(2);
1872
+ function zr(e, t) {
1873
+ const r = t === 1, n = r ? jn : In, a = r ? fs : hs, c = r ? us : ps;
1848
1874
  return { t: (u) => c.test(u), o: Te(function(u, d) {
1849
- const h = is.exec(d.prevCapture);
1875
+ const h = ds.exec(d.prevCapture);
1850
1876
  return h && (d.list || !d.inline && !d.simple) ? n.exec(u = h[1] + u) : null;
1851
1877
  }), i: 1, u(u, d, h) {
1852
- const g = r ? +u[2] : void 0, b = u[0].replace(wa, `
1878
+ const g = r ? +u[2] : void 0, b = u[0].replace(Sa, `
1853
1879
  `).match(a);
1854
1880
  let p = !1;
1855
1881
  return { items: b.map(function(w, k) {
@@ -1859,9 +1885,9 @@ function _r(e, t) {
1859
1885
  p = i;
1860
1886
  const s = h.inline, f = h.list;
1861
1887
  let m;
1862
- h.list = !0, i ? (h.inline = !1, m = Oe(S) + `
1888
+ h.list = !0, i ? (h.inline = !1, m = Ne(S) + `
1863
1889
 
1864
- `) : (h.inline = !0, m = Oe(S));
1890
+ `) : (h.inline = !0, m = Ne(S));
1865
1891
  const y = d(m, h);
1866
1892
  return h.inline = s, h.list = f, y;
1867
1893
  }), ordered: r, start: g };
@@ -1869,18 +1895,18 @@ function _r(e, t) {
1869
1895
  return e("li", { key: b }, d(g, h));
1870
1896
  })) };
1871
1897
  }
1872
- const ps = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), fs = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
1873
- function Oe(e) {
1898
+ const ms = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), gs = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
1899
+ function Ne(e) {
1874
1900
  let t = e.length;
1875
1901
  for (; t > 0 && e[t - 1] <= " "; ) t--;
1876
1902
  return e.slice(0, t);
1877
1903
  }
1878
- function Qe(e, t) {
1904
+ function Ve(e, t) {
1879
1905
  return e.startsWith(t);
1880
1906
  }
1881
- function hs(e, t, r) {
1907
+ function bs(e, t, r) {
1882
1908
  if (Array.isArray(r)) {
1883
- for (let n = 0; n < r.length; n++) if (Qe(e, r[n])) return !0;
1909
+ for (let n = 0; n < r.length; n++) if (Ve(e, r[n])) return !0;
1884
1910
  return !1;
1885
1911
  }
1886
1912
  return r(e, t);
@@ -1888,10 +1914,10 @@ function hs(e, t, r) {
1888
1914
  function Re(e) {
1889
1915
  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
1916
  }
1891
- function ms(e) {
1892
- return Va.test(e) ? "right" : Ya.test(e) ? "center" : Qa.test(e) ? "left" : null;
1917
+ function xs(e) {
1918
+ return Xa.test(e) ? "right" : Za.test(e) ? "center" : Ja.test(e) ? "left" : null;
1893
1919
  }
1894
- function Rr(e, t, r, n) {
1920
+ function Dr(e, t, r, n) {
1895
1921
  const a = r.inTable;
1896
1922
  r.inTable = !0;
1897
1923
  let c = [[]], u = "";
@@ -1904,17 +1930,17 @@ function Rr(e, t, r, n) {
1904
1930
  h.trim() === "|" && (d(), n) ? g !== 0 && g !== b.length - 1 && c.push([]) : u += h;
1905
1931
  }), d(), r.inTable = a, c;
1906
1932
  }
1907
- function gs(e, t, r) {
1933
+ function ys(e, t, r) {
1908
1934
  r.inline = !0;
1909
- const n = e[2] ? e[2].replace(Ga, "").split("|").map(ms) : [], a = e[3] ? function(u, d, h) {
1935
+ const n = e[2] ? e[2].replace(Va, "").split("|").map(xs) : [], a = e[3] ? function(u, d, h) {
1910
1936
  return u.trim().split(`
1911
1937
  `).map(function(g) {
1912
- return Rr(g, d, h, !0);
1938
+ return Dr(g, d, h, !0);
1913
1939
  });
1914
- }(e[3], t, r) : [], c = Rr(e[1], t, r, !!a.length);
1940
+ }(e[3], t, r) : [], c = Dr(e[1], t, r, !!a.length);
1915
1941
  return r.inline = !1, a.length ? { align: n, cells: a, header: c, type: "25" } : { children: c, type: "21" };
1916
1942
  }
1917
- function zr(e, t) {
1943
+ function Or(e, t) {
1918
1944
  return e.align[t] == null ? {} : { textAlign: e.align[t] };
1919
1945
  }
1920
1946
  function Te(e) {
@@ -1935,73 +1961,73 @@ function le(e) {
1935
1961
  return r.inline || r.simple ? null : e.exec(t);
1936
1962
  };
1937
1963
  }
1938
- function Ke(e) {
1964
+ function We(e) {
1939
1965
  return Te(function(t) {
1940
1966
  return e.exec(t);
1941
1967
  });
1942
1968
  }
1943
- const bs = /(javascript|vbscript|data(?!:image)):/i;
1944
- function xs(e) {
1969
+ const ks = /(javascript|vbscript|data(?!:image)):/i;
1970
+ function ws(e) {
1945
1971
  try {
1946
1972
  const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
1947
- if (bs.test(t)) return null;
1973
+ if (ks.test(t)) return null;
1948
1974
  } catch {
1949
1975
  return null;
1950
1976
  }
1951
1977
  return e;
1952
1978
  }
1953
1979
  function oe(e) {
1954
- return e && e.replace(ns, "$1");
1980
+ return e && e.replace(ss, "$1");
1955
1981
  }
1956
- function Ve(e, t, r) {
1982
+ function Ze(e, t, r) {
1957
1983
  const n = r.inline || !1, a = r.simple || !1;
1958
1984
  r.inline = !0, r.simple = !0;
1959
1985
  const c = e(t, r);
1960
1986
  return r.inline = n, r.simple = a, c;
1961
1987
  }
1962
- function ys(e, t, r) {
1988
+ function vs(e, t, r) {
1963
1989
  const n = r.inline || !1, a = r.simple || !1;
1964
1990
  r.inline = !1, r.simple = !0;
1965
1991
  const c = e(t, r);
1966
1992
  return r.inline = n, r.simple = a, c;
1967
1993
  }
1968
- function ks(e, t, r) {
1994
+ function $s(e, t, r) {
1969
1995
  const n = r.inline || !1;
1970
1996
  r.inline = !1;
1971
1997
  const a = e(t, r);
1972
1998
  return r.inline = n, a;
1973
1999
  }
1974
- const $t = (e, t, r) => ({ children: Ve(t, e[2], r) });
1975
- function St() {
2000
+ const St = (e, t, r) => ({ children: Ze(t, e[2], r) });
2001
+ function Ct() {
1976
2002
  return {};
1977
2003
  }
1978
- function Ct() {
2004
+ function jt() {
1979
2005
  return null;
1980
2006
  }
1981
- function ws(...e) {
2007
+ function Ss(...e) {
1982
2008
  return e.filter(Boolean).join(" ");
1983
2009
  }
1984
- function jt(e, t, r) {
2010
+ function It(e, t, r) {
1985
2011
  let n = e;
1986
2012
  const a = t.split(".");
1987
2013
  for (; a.length && (n = n[a[0]], n !== void 0); ) a.shift();
1988
2014
  return n || r;
1989
2015
  }
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];
2016
+ function Cs(e = "", t = {}) {
2017
+ t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? he({}, Cr, t.namedCodesToUnicode) : Cr;
2018
+ const r = t.slugify || Re, n = t.sanitizer || ws, a = t.createElement || Bt.createElement, c = [jr, Ir, Ar, t.enforceAtxHeadings ? Er : Tr, _r, Rr, jn, In], u = [...c, Ua, vt, Mr, $t];
1993
2019
  function d(o, i, ...s) {
1994
- const f = jt(t.overrides, o + ".props", {});
2020
+ const f = It(t.overrides, o + ".props", {});
1995
2021
  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);
2022
+ const x = It(y, m);
2023
+ return x ? typeof x == "function" || typeof x == "object" && "render" in x ? x : It(y, m + ".component", m) : m;
2024
+ }(o, t.overrides), he({}, i, f, { className: Ss(i == null ? void 0 : i.className, f.className) || void 0 }), ...s);
1999
2025
  }
2000
2026
  function h(o) {
2001
- o = o.replace(_a, "");
2027
+ o = o.replace(Da, "");
2002
2028
  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, "") + `
2029
+ t.forceInline ? i = !0 : t.forceBlock || (i = Ya.test(o) === !1);
2030
+ const s = $(k(i ? o : Ne(o).replace(cs, "") + `
2005
2031
 
2006
2032
  `, { inline: i }));
2007
2033
  for (; typeof s[s.length - 1] == "string" && !s[s.length - 1].trim(); ) s.pop();
@@ -2017,83 +2043,83 @@ function vs(e = "", t = {}) {
2017
2043
  }
2018
2044
  function g(o, i) {
2019
2045
  if (!i || !i.trim()) return null;
2020
- const s = i.match(ya);
2046
+ const s = i.match(va);
2021
2047
  return s ? s.reduce(function(f, m) {
2022
2048
  const y = m.indexOf("=");
2023
2049
  if (y !== -1) {
2024
2050
  const x = function(E) {
2025
- return E.indexOf("-") !== -1 && E.match(Da) === null && (E = E.replace(La, function(K, P) {
2051
+ return E.indexOf("-") !== -1 && E.match(Ba) === null && (E = E.replace(Wa, function(W, P) {
2026
2052
  return P.toUpperCase();
2027
2053
  })), E;
2028
2054
  }(m.slice(0, y)).trim(), A = function(E) {
2029
- const K = E[0];
2030
- 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;
2032
- if (M === "ref") return f;
2033
- const C = f[M] = function(E, K, P, I) {
2034
- return K === "style" ? function(D) {
2055
+ const W = E[0];
2056
+ return (W === '"' || W === "'") && E.length >= 2 && E[E.length - 1] === W ? E.slice(1, -1) : E;
2057
+ }(m.slice(y + 1).trim()), _ = Sr[x] || x;
2058
+ if (_ === "ref") return f;
2059
+ const C = f[_] = function(E, W, P, I) {
2060
+ return W === "style" ? function(O) {
2035
2061
  const H = [];
2036
- let v = "", N = !1, R = !1, W = "";
2037
- if (!D) return H;
2038
- for (let q = 0; q < D.length; q++) {
2039
- 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;
2062
+ let v = "", N = !1, R = !1, L = "";
2063
+ if (!O) return H;
2064
+ for (let q = 0; q < O.length; q++) {
2065
+ const D = O[q];
2066
+ if (D !== '"' && D !== "'" || N || (R ? D === L && (R = !1, L = "") : (R = !0, L = D)), D === "(" && v.endsWith("url") ? N = !0 : D === ")" && N && (N = !1), D !== ";" || R || N) v += D;
2041
2067
  else {
2042
2068
  const U = v.trim();
2043
2069
  if (U) {
2044
- const Q = U.indexOf(":");
2045
- if (Q > 0) {
2046
- const V = U.slice(0, Q).trim(), ie = U.slice(Q + 1).trim();
2070
+ const Y = U.indexOf(":");
2071
+ if (Y > 0) {
2072
+ const V = U.slice(0, Y).trim(), ie = U.slice(Y + 1).trim();
2047
2073
  H.push([V, ie]);
2048
2074
  }
2049
2075
  }
2050
2076
  v = "";
2051
2077
  }
2052
2078
  }
2053
- const O = v.trim();
2054
- if (O) {
2055
- const q = O.indexOf(":");
2079
+ const z = v.trim();
2080
+ if (z) {
2081
+ const q = z.indexOf(":");
2056
2082
  if (q > 0) {
2057
- const z = O.slice(0, q).trim(), U = O.slice(q + 1).trim();
2058
- H.push([z, U]);
2083
+ const D = z.slice(0, q).trim(), U = z.slice(q + 1).trim();
2084
+ H.push([D, U]);
2059
2085
  }
2060
2086
  }
2061
2087
  return H;
2062
- }(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);
2088
+ }(P).reduce(function(O, [H, v]) {
2089
+ return O[H.replace(/(-[a-z])/g, (N) => N[1].toUpperCase())] = I(v, E, H), O;
2090
+ }, {}) : wa.indexOf(W) !== -1 ? I(oe(P), E, W) : (P.match(Pa) && (P = oe(P.slice(1, P.length - 1))), P === "true" || P !== "false" && P);
2065
2091
  }(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);
2092
+ typeof C == "string" && (vt.test(C) || $t.test(C)) && (f[_] = h(C.trim()));
2093
+ } else m !== "style" && (f[Sr[m] || m] = !0);
2068
2094
  return f;
2069
2095
  }, {}) : null;
2070
2096
  }
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);
2097
+ const b = [], p = {}, w = { 0: { t: [">"], o: le(jr), i: 1, u(o, i, s) {
2098
+ const [, f, m] = o[0].replace(Ca, "").match(ja);
2073
2099
  return { alert: f, children: i(m, s) };
2074
2100
  }, l(o, i, s) {
2075
2101
  const f = { key: s.key };
2076
2102
  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) => {
2103
+ } }, 1: { o: We(Ia), i: 1, u: Ct, l: (o, i, s) => d("br", { key: s.key }) }, 2: { t: (o) => {
2078
2104
  const i = o[0];
2079
2105
  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);
2106
+ }, o: le(Aa), i: 1, u: Ct, l: (o, i, s) => d("hr", { key: s.key }) }, 3: { t: [" "], o: le(Ar), 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(Ir), i: 0, u: (o) => ({ attrs: g("code", o[3] || ""), lang: o[2] || void 0, text: o[4], type: "3" }) }, 5: { t: ["`"], o: pe(Ta), i: 3, u: (o) => ({ text: oe(o[2]) }), l: (o, i, s) => d("code", { key: s.key }, o.text) }, 6: { t: ["[^"], o: le(Ma), i: 0, u: (o) => (b.push({ footnote: o[2], identifier: o[1] }), {}), l: jt }, 7: { t: ["[^"], o: ue(Ra), 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(Oa), 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 ? Er : Tr), 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(_r), 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) {
2107
+ const [, f] = o[3].match(ls), m = RegExp("^" + f, "gm"), y = o[3].replace(m, ""), x = (A = y, u.some((P) => P.test(A)) ? $s : Ze);
2082
2108
  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 };
2084
- if (s.inAnchor = s.inAnchor || M === "a", C) K.text = o[3];
2109
+ const _ = o[1].toLowerCase(), C = ka.indexOf(_) !== -1, E = (C ? _ : o[1]).trim(), W = { attrs: g(E, o[2]), noInnerParse: C, tag: E };
2110
+ if (s.inAnchor = s.inAnchor || _ === "a", C) W.text = o[3];
2085
2111
  else {
2086
2112
  const P = s.inHTML;
2087
- s.inHTML = !0, K.children = x(i, y, s), s.inHTML = P;
2113
+ s.inHTML = !0, W.children = x(i, y, s), s.inHTML = P;
2088
2114
  }
2089
- 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) {
2115
+ return s.inAnchor = !1, W;
2116
+ }, 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
2117
  const i = o[1].trim();
2092
2118
  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) {
2119
+ }, 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(gs), 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(ms), i: 3, u: (o, i, s) => ({ children: vs(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(Ka), 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(La), i: 0, u: (o) => ({ children: [{ text: o[1], type: "27" }], target: o[1], title: void 0, type: "15" }) }, 18: { t: ["<"], o: ue(Fa), i: 0, u(o) {
2094
2120
  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: () => `
2121
+ return $a.test(s) || (s = "mailto:" + s), { children: [{ text: i.replace("mailto:", ""), type: "27" }], target: s, type: "15" };
2122
+ } }, 20: zr(d, 1), 33: zr(d, 2), 19: { o: le(Ea), i: 3, u: Ct, l: () => `
2097
2123
  ` }, 21: { o: Te(function(o, i) {
2098
2124
  if (i.inline || i.simple || i.inHTML && o.indexOf(`
2099
2125
 
@@ -2104,39 +2130,39 @@ function vs(e = "", t = {}) {
2104
2130
  o.split(`
2105
2131
  `).every((m) => (m += `
2106
2132
  `, !c.some((y) => y.test(m)) && (s += m, !!m.trim())));
2107
- const f = Oe(s);
2133
+ const f = Ne(s);
2108
2134
  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) {
2135
+ }), i: 3, u: St, l: (o, i, s) => d("p", { key: s.key }, i(o.children, s)) }, 22: { t: ["["], o: ue(Ha), i: 0, u: (o) => (p[o[1]] = { target: o[2], title: o[4] }, {}), l: jt }, 23: { t: ["!["], o: pe(qa), 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(Ga), 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(Rr), i: 1, u: ys, l(o, i, s) {
2110
2136
  const f = o;
2111
2137
  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));
2138
+ return d("th", { key: y, style: Or(f, y) }, i(m, s));
2113
2139
  }))), d("tbody", null, f.cells.map(function(m, y) {
2114
2140
  return d("tr", { key: y }, m.map(function(x, A) {
2115
- return d("td", { key: A, style: zr(f, A) }, i(x, s));
2141
+ return d("td", { key: A, style: Or(f, A) }, i(x, s));
2116
2142
  }));
2117
2143
  })));
2118
2144
  } }, 27: { o: Te(function(o, i) {
2119
2145
  let s;
2120
- return Qe(o, ":") && (s = ts.exec(o)), s || os.exec(o);
2146
+ return Ve(o, ":") && (s = os.exec(o)), s || is.exec(o);
2121
2147
  }), i: 4, u(o) {
2122
2148
  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) => {
2149
+ return { text: i.indexOf("&") === -1 ? i : i.replace(Na, (s, f) => t.namedCodesToUnicode[f] || s) };
2150
+ }, l: (o) => o.text }, 28: { t: ["**", "__"], o: pe(es), 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
2151
  const i = o[0];
2126
2152
  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)) } };
2153
+ }, o: pe(ts), 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(as), i: 1, u: (o) => ({ text: o[1], type: "27" }) }, 31: { t: ["=="], o: pe(rs), i: 3, u: St, l: (o, i, s) => d("mark", { key: s.key }, i(o.children, s)) }, 32: { t: ["~~"], o: pe(ns), i: 3, u: St, l: (o, i, s) => d("del", { key: s.key }, i(o.children, s)) } };
2128
2154
  t.disableParsingRawHTML === !0 && (delete w[11], delete w[13]);
2129
2155
  const k = function(o) {
2130
2156
  var i = Object.keys(o);
2131
2157
  function s(f, m) {
2132
2158
  var y = [];
2133
2159
  if (m.prevCapture = m.prevCapture || "", f.trim()) for (; f; ) for (var x = 0; x < i.length; ) {
2134
- var A = i[x], M = o[A];
2135
- if (!M.t || hs(f, m, M.t)) {
2136
- var C = M.o(f, m);
2160
+ var A = i[x], _ = o[A];
2161
+ if (!_.t || bs(f, m, _.t)) {
2162
+ var C = _.o(f, m);
2137
2163
  if (C && C[0]) {
2138
2164
  f = f.substring(C[0].length);
2139
- var E = M.u(C, s, m);
2165
+ var E = _.u(C, s, m);
2140
2166
  m.prevCapture += C[0], E.type || (E.type = A), y.push(E);
2141
2167
  break;
2142
2168
  }
@@ -2149,8 +2175,8 @@ function vs(e = "", t = {}) {
2149
2175
  return o[f].i - o[m].i || (f < m ? -1 : 1);
2150
2176
  }), function(f, m) {
2151
2177
  return s(function(y) {
2152
- return y.replace(Aa, `
2153
- `).replace(Ma, "").replace(qa, " ");
2178
+ return y.replace(_a, `
2179
+ `).replace(za, "").replace(Qa, " ");
2154
2180
  }(f), m);
2155
2181
  };
2156
2182
  }(w), $ = (j = /* @__PURE__ */ function(o, i) {
@@ -2164,8 +2190,8 @@ function vs(e = "", t = {}) {
2164
2190
  let y = !1;
2165
2191
  for (let x = 0; x < i.length; x++) {
2166
2192
  s.key = x;
2167
- const A = o(i[x], s), M = typeof A == "string";
2168
- M && y ? m[m.length - 1] += A : A !== null && m.push(A), y = M;
2193
+ const A = o(i[x], s), _ = typeof A == "string";
2194
+ _ && y ? m[m.length - 1] += A : A !== null && m.push(A), y = _;
2169
2195
  }
2170
2196
  return s.key = f, m;
2171
2197
  }
@@ -2177,15 +2203,15 @@ function vs(e = "", t = {}) {
2177
2203
  return d("div", { id: r(o.identifier, Re), key: o.identifier }, o.identifier, $(k(o.footnote, { inline: !0 })));
2178
2204
  }))) : S;
2179
2205
  }
2180
- const $s = (e) => {
2206
+ const js = (e) => {
2181
2207
  let { children: t = "", options: r } = e, n = function(a, c) {
2182
2208
  if (a == null) return {};
2183
2209
  var u, d, h = {}, g = Object.keys(a);
2184
2210
  for (d = 0; d < g.length; d++) c.indexOf(u = g[d]) >= 0 || (h[u] = a[u]);
2185
2211
  return h;
2186
- }(e, ga);
2187
- return Ot.cloneElement(vs(t, r), n);
2188
- }, Ss = T.div`
2212
+ }(e, ya);
2213
+ return Bt.cloneElement(Cs(t, r), n);
2214
+ }, Is = T.div`
2189
2215
  code {
2190
2216
  @media (prefers-color-scheme: dark) {
2191
2217
  background-color: #374151 !important;
@@ -2224,9 +2250,9 @@ const $s = (e) => {
2224
2250
  }
2225
2251
  }
2226
2252
  `;
2227
- function Yt({ content: e, className: t }) {
2228
- return /* @__PURE__ */ l.jsx(Ss, { className: t, children: /* @__PURE__ */ l.jsx(
2229
- $s,
2253
+ function Qt({ content: e, className: t }) {
2254
+ return /* @__PURE__ */ l.jsx(Is, { className: t, children: /* @__PURE__ */ l.jsx(
2255
+ js,
2230
2256
  {
2231
2257
  options: {
2232
2258
  overrides: {
@@ -2397,7 +2423,7 @@ function Yt({ content: e, className: t }) {
2397
2423
  }
2398
2424
  ) });
2399
2425
  }
2400
- const jn = T.div`
2426
+ const An = T.div`
2401
2427
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
2402
2428
  background-color: white;
2403
2429
  border: 1px solid #e5e7eb;
@@ -2475,7 +2501,7 @@ const jn = T.div`
2475
2501
  font-weight: 700;
2476
2502
  }
2477
2503
  }
2478
- `, Qt = T.div`
2504
+ `, Vt = T.div`
2479
2505
  display: flex;
2480
2506
  flex-direction: column;
2481
2507
  flex: 1;
@@ -2508,7 +2534,7 @@ const jn = T.div`
2508
2534
  border-color: rgba(255, 255, 255, 0.3);
2509
2535
  }
2510
2536
  }
2511
- `, Vt = T.div`
2537
+ `, Zt = T.div`
2512
2538
  display: flex;
2513
2539
  align-items: center;
2514
2540
  justify-content: space-between;
@@ -2527,7 +2553,7 @@ const jn = T.div`
2527
2553
  border-top-color: #52525b;
2528
2554
  background-color: #3f3f46;
2529
2555
  }
2530
- `, Cs = T.textarea`
2556
+ `, As = T.textarea`
2531
2557
  display: block;
2532
2558
  width: 100%;
2533
2559
  min-width: 0;
@@ -2571,7 +2597,7 @@ const jn = T.div`
2571
2597
  color: #9ca3af;
2572
2598
  }
2573
2599
  }
2574
- `, Zt = T.div`
2600
+ `, Jt = T.div`
2575
2601
  display: flex;
2576
2602
  align-items: center;
2577
2603
  gap: 8px;
@@ -2588,7 +2614,7 @@ const jn = T.div`
2588
2614
  background-color: #1f2937;
2589
2615
  border-top-color: #374151;
2590
2616
  }
2591
- `, js = T.textarea`
2617
+ `, Ts = T.textarea`
2592
2618
  flex: 1;
2593
2619
  width: 100%;
2594
2620
  min-height: 40px;
@@ -2647,7 +2673,7 @@ const jn = T.div`
2647
2673
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
2648
2674
  }
2649
2675
  }
2650
- `, Is = T.button`
2676
+ `, Es = T.button`
2651
2677
  width: 32px;
2652
2678
  height: 32px;
2653
2679
  min-width: 32px;
@@ -2720,7 +2746,7 @@ const jn = T.div`
2720
2746
  color: #6b7280;
2721
2747
  }
2722
2748
  }
2723
- `, Jt = T.button`
2749
+ `, Xt = T.button`
2724
2750
  width: 26px;
2725
2751
  height: 26px;
2726
2752
  min-width: 26px;
@@ -2815,7 +2841,7 @@ const jn = T.div`
2815
2841
  color: #6b7280;
2816
2842
  }
2817
2843
  }
2818
- `, It = (e, t = 0.15) => {
2844
+ `, At = (e, t = 0.15) => {
2819
2845
  if (e && e.startsWith("#")) {
2820
2846
  const r = e.replace("#", ""), n = parseInt(r, 16);
2821
2847
  if (isNaN(n)) return e;
@@ -2823,7 +2849,7 @@ const jn = T.div`
2823
2849
  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
2850
  }
2825
2851
  return e || "#2563eb";
2826
- }, As = T.button`
2852
+ }, _s = T.button`
2827
2853
  position: fixed;
2828
2854
  z-index: 50;
2829
2855
  height: 48px;
@@ -2832,7 +2858,7 @@ const jn = T.div`
2832
2858
  line-height: normal;
2833
2859
  background: ${(e) => {
2834
2860
  if (e.$primaryColor) {
2835
- const t = It(e.$primaryColor, 0.1);
2861
+ const t = At(e.$primaryColor, 0.1);
2836
2862
  return `linear-gradient(135deg, ${e.$primaryColor} 0%, ${t} 100%)`;
2837
2863
  }
2838
2864
  return "linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)";
@@ -2866,7 +2892,7 @@ const jn = T.div`
2866
2892
  &:hover {
2867
2893
  background: ${(e) => {
2868
2894
  if (e.$primaryColor) {
2869
- const t = It(e.$primaryColor, 0.2), r = It(e.$primaryColor, 0.3);
2895
+ const t = At(e.$primaryColor, 0.2), r = At(e.$primaryColor, 0.3);
2870
2896
  return `linear-gradient(135deg, ${t} 0%, ${r} 100%)`;
2871
2897
  }
2872
2898
  return "linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%)";
@@ -2883,7 +2909,7 @@ const jn = T.div`
2883
2909
  align-items: center;
2884
2910
  justify-content: center;
2885
2911
  }
2886
- `, Ts = T.div`
2912
+ `, Ms = T.div`
2887
2913
  position: fixed;
2888
2914
  z-index: 50;
2889
2915
  width: 320px;
@@ -3023,7 +3049,7 @@ T.div`
3023
3049
  }
3024
3050
  }
3025
3051
  `;
3026
- const Xt = T.div`
3052
+ const er = T.div`
3027
3053
  display: flex;
3028
3054
  gap: 4px;
3029
3055
  align-items: center;
@@ -3068,7 +3094,7 @@ T.div`
3068
3094
  color: ${(e) => e.$isUser ? "rgba(255, 255, 255, 0.8)" : "#d1d5db"};
3069
3095
  }
3070
3096
  `;
3071
- const er = T.div`
3097
+ const tr = T.div`
3072
3098
  font-size: 14px;
3073
3099
  color: #dc2626;
3074
3100
  text-align: center;
@@ -3078,7 +3104,7 @@ const er = T.div`
3078
3104
  @media (prefers-color-scheme: dark) {
3079
3105
  color: #f87171;
3080
3106
  }
3081
- `, Es = T.div`
3107
+ `, Rs = T.div`
3082
3108
  position: absolute;
3083
3109
  ${(e) => e.$position === "top" ? "top: 0;" : "bottom: 0;"}
3084
3110
  left: 0;
@@ -3110,7 +3136,7 @@ const er = T.div`
3110
3136
  flex-shrink: 0;
3111
3137
  border: 2px solid rgba(255, 255, 255, 0.2);
3112
3138
  background-color: rgba(255, 255, 255, 0.1);
3113
- `, Ms = T.div`
3139
+ `, zs = T.div`
3114
3140
  display: flex;
3115
3141
  flex-direction: column;
3116
3142
  align-items: center;
@@ -3132,7 +3158,7 @@ const er = T.div`
3132
3158
  [data-theme="dark"] & {
3133
3159
  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
3160
  }
3135
- `, _s = T.div`
3161
+ `, Ds = T.div`
3136
3162
  font-size: 18px;
3137
3163
  font-weight: 600;
3138
3164
  text-align: center;
@@ -3146,7 +3172,7 @@ const er = T.div`
3146
3172
  [data-theme="dark"] & {
3147
3173
  color: #f9fafb;
3148
3174
  }
3149
- `, Rs = T.img`
3175
+ `, Os = T.img`
3150
3176
  max-width: 120px;
3151
3177
  max-height: 120px;
3152
3178
  width: auto;
@@ -3154,14 +3180,14 @@ const er = T.div`
3154
3180
  object-fit: contain;
3155
3181
  margin-bottom: 8px;
3156
3182
  border-radius: 8px;
3157
- `, zs = T.div`
3183
+ `, Ns = T.div`
3158
3184
  display: flex;
3159
3185
  flex-direction: column;
3160
3186
  gap: 12px;
3161
3187
  width: 100%;
3162
3188
  max-width: 100%;
3163
3189
  margin-bottom: 16px;
3164
- `, Ds = T.button`
3190
+ `, Bs = T.button`
3165
3191
  width: 100%;
3166
3192
  padding: 12px 16px;
3167
3193
  box-sizing: border-box;
@@ -3213,7 +3239,7 @@ const er = T.div`
3213
3239
  border-color: ${(e) => e.$primaryColor || "#6b7280"};
3214
3240
  }
3215
3241
  }
3216
- `, Ns = T.div`
3242
+ `, Ps = T.div`
3217
3243
  display: flex;
3218
3244
  align-items: center;
3219
3245
  gap: 8px;
@@ -3229,7 +3255,7 @@ const er = T.div`
3229
3255
  [data-theme="dark"] & {
3230
3256
  border-top-color: #374151;
3231
3257
  }
3232
- `, ft = F.forwardRef(function({
3258
+ `, ht = K.forwardRef(function({
3233
3259
  value: t,
3234
3260
  onChange: r,
3235
3261
  onKeyDown: n,
@@ -3243,7 +3269,7 @@ const er = T.div`
3243
3269
  r(k.target.value);
3244
3270
  }, p = (k) => {
3245
3271
  k.key === "Enter" && !k.shiftKey && k.preventDefault(), n(k);
3246
- }, w = h === "composer" ? Cs : js;
3272
+ }, w = h === "composer" ? As : Ts;
3247
3273
  return /* @__PURE__ */ l.jsx(
3248
3274
  w,
3249
3275
  {
@@ -3264,7 +3290,7 @@ const er = T.div`
3264
3290
  }
3265
3291
  );
3266
3292
  });
3267
- function ht({ size: e = 16 }) {
3293
+ function mt({ size: e = 16 }) {
3268
3294
  return /* @__PURE__ */ l.jsxs(
3269
3295
  "svg",
3270
3296
  {
@@ -3284,23 +3310,23 @@ function ht({ size: e = 16 }) {
3284
3310
  }
3285
3311
  );
3286
3312
  }
3287
- function tr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3288
- const [a, c] = F.useState(""), u = F.useRef(null), d = async () => {
3313
+ function rr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3314
+ const [a, c] = K.useState(""), u = K.useRef(null), d = async () => {
3289
3315
  !a.trim() || n || (await r(a.trim()), c(""));
3290
3316
  }, h = (b) => {
3291
3317
  b.key === "Enter" && !b.shiftKey && (b.preventDefault(), d());
3292
3318
  }, g = e.welcomeMessage || "Hi there 👋 How can we help?";
3293
- return /* @__PURE__ */ l.jsxs(Ms, { $primaryColor: e.primaryColor, children: [
3319
+ return /* @__PURE__ */ l.jsxs(zs, { $primaryColor: e.primaryColor, children: [
3294
3320
  e.welcomeImage && /* @__PURE__ */ l.jsx(
3295
- Rs,
3321
+ Os,
3296
3322
  {
3297
3323
  src: e.welcomeImage,
3298
3324
  alt: "Welcome"
3299
3325
  }
3300
3326
  ),
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,
3327
+ /* @__PURE__ */ l.jsx(Ds, { children: g }),
3328
+ e.quickQuestions && e.quickQuestions.length > 0 && /* @__PURE__ */ l.jsx(Ns, { children: e.quickQuestions.map((b, p) => /* @__PURE__ */ l.jsx(
3329
+ Bs,
3304
3330
  {
3305
3331
  onClick: () => t(b),
3306
3332
  disabled: n,
@@ -3309,9 +3335,9 @@ function tr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3309
3335
  },
3310
3336
  p
3311
3337
  )) }),
3312
- /* @__PURE__ */ l.jsxs(Ns, { children: [
3338
+ /* @__PURE__ */ l.jsxs(Ps, { children: [
3313
3339
  /* @__PURE__ */ l.jsx(
3314
- ft,
3340
+ ht,
3315
3341
  {
3316
3342
  ref: u,
3317
3343
  value: a,
@@ -3322,19 +3348,19 @@ function tr({ config: e, onQuestionClick: t, onSendMessage: r, isLoading: n }) {
3322
3348
  }
3323
3349
  ),
3324
3350
  /* @__PURE__ */ l.jsx(
3325
- Is,
3351
+ Es,
3326
3352
  {
3327
3353
  onClick: d,
3328
3354
  disabled: n || !a.trim(),
3329
- children: /* @__PURE__ */ l.jsx(ht, { size: 16 })
3355
+ children: /* @__PURE__ */ l.jsx(mt, { size: 16 })
3330
3356
  }
3331
3357
  )
3332
3358
  ] })
3333
3359
  ] });
3334
3360
  }
3335
- function rr(e, t) {
3361
+ function nr(e, t) {
3336
3362
  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([]);
3363
+ const r = (e.maxAttachmentSizeMB ?? 10) * 1024 * 1024, n = e.maxAttachments ?? 3, a = (j = e.allowedAttachmentTypes) != null && j.length ? e.allowedAttachmentTypes : xn, c = !!(e.enableAttachments && e.publishableKey), [u, d] = J([]), [h, g] = J(null), b = ae([]);
3338
3364
  De(() => {
3339
3365
  b.current = u;
3340
3366
  }, [u]);
@@ -3347,7 +3373,7 @@ function rr(e, t) {
3347
3373
  g(`At most ${n} attachments per message.`);
3348
3374
  break;
3349
3375
  }
3350
- const i = bn(o, r, a);
3376
+ const i = yn(o, r, a);
3351
3377
  if (i) {
3352
3378
  g(`${o.name}: ${i}`);
3353
3379
  continue;
@@ -3397,7 +3423,7 @@ function rr(e, t) {
3397
3423
  allowed: a
3398
3424
  };
3399
3425
  }
3400
- function Os({ size: e = 16 }) {
3426
+ function Ls({ size: e = 16 }) {
3401
3427
  return /* @__PURE__ */ l.jsx(
3402
3428
  "svg",
3403
3429
  {
@@ -3414,7 +3440,7 @@ function Os({ size: e = 16 }) {
3414
3440
  }
3415
3441
  );
3416
3442
  }
3417
- function Bs({ size: e = 16 }) {
3443
+ function Fs({ size: e = 16 }) {
3418
3444
  return /* @__PURE__ */ l.jsxs(
3419
3445
  "svg",
3420
3446
  {
@@ -3438,7 +3464,7 @@ function Bs({ size: e = 16 }) {
3438
3464
  * Copyright (c) StackBlitz. All rights reserved.
3439
3465
  * Licensed under the MIT License. See License.txt in the project root for license information.
3440
3466
  *--------------------------------------------------------------------------------------------*/
3441
- const Ps = {
3467
+ const Ks = {
3442
3468
  /**
3443
3469
  * A value from 0 to 1, on how much to damp the animation.
3444
3470
  * 0 means no damping, 1 means full damping.
@@ -3459,26 +3485,26 @@ const Ps = {
3459
3485
  * @default 1.25
3460
3486
  */
3461
3487
  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;
3488
+ }, Ws = 70, Us = 1e3 / 60, Hs = 350;
3489
+ let gt = !1;
3490
+ var Pr;
3491
+ (Pr = globalThis.document) == null || Pr.addEventListener("mousedown", () => {
3492
+ gt = !0;
3467
3493
  });
3468
- var Br;
3469
- (Br = globalThis.document) == null || Br.addEventListener("mouseup", () => {
3470
- mt = !1;
3494
+ var Lr;
3495
+ (Lr = globalThis.document) == null || Lr.addEventListener("mouseup", () => {
3496
+ gt = !1;
3471
3497
  });
3472
- var Pr;
3473
- (Pr = globalThis.document) == null || Pr.addEventListener("click", () => {
3474
- mt = !1;
3498
+ var Fr;
3499
+ (Fr = globalThis.document) == null || Fr.addEventListener("click", () => {
3500
+ gt = !1;
3475
3501
  });
3476
- const Ws = (e = {}) => {
3502
+ const qs = (e = {}) => {
3477
3503
  const [t, r] = J(!1), [n, a] = J(e.initial !== !1), [c, u] = J(!1), d = ae(null);
3478
3504
  d.current = e;
3479
3505
  const h = Z(() => {
3480
3506
  var f;
3481
- if (!mt)
3507
+ if (!gt)
3482
3508
  return !1;
3483
3509
  const i = window.getSelection();
3484
3510
  if (!i || !i.rangeCount)
@@ -3489,7 +3515,7 @@ const Ws = (e = {}) => {
3489
3515
  p.isAtBottom = i, a(i);
3490
3516
  }, []), b = Z((i) => {
3491
3517
  p.escapedFromLock = i, r(i);
3492
- }, []), p = Bt(() => {
3518
+ }, []), p = Pt(() => {
3493
3519
  let i;
3494
3520
  return {
3495
3521
  escapedFromLock: t,
@@ -3528,13 +3554,13 @@ const Ws = (e = {}) => {
3528
3554
  return this.calculatedTargetScrollTop - this.scrollTop;
3529
3555
  },
3530
3556
  get isNearBottom() {
3531
- return this.scrollDifference <= Ls;
3557
+ return this.scrollDifference <= Ws;
3532
3558
  }
3533
3559
  };
3534
3560
  }, []), w = Z((i = {}) => {
3535
- var M;
3561
+ var _;
3536
3562
  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;
3563
+ const s = Date.now() + (Number(i.wait) || 0), f = Et(d.current, i.animation), { ignoreEscapes: m = !1 } = i;
3538
3564
  let y, x = p.calculatedTargetScrollTop;
3539
3565
  i.duration instanceof Promise ? i.duration.finally(() => {
3540
3566
  y = Date.now();
@@ -3544,8 +3570,8 @@ const Ws = (e = {}) => {
3544
3570
  var I;
3545
3571
  if (!p.isAtBottom)
3546
3572
  return p.animation = void 0, !1;
3547
- const { scrollTop: E } = p, K = performance.now(), P = (K - (p.lastTick ?? K)) / Fs;
3548
- if (p.animation || (p.animation = { behavior: f, promise: C, ignoreEscapes: m }), p.animation.behavior === f && (p.lastTick = K), h() || s > Date.now())
3573
+ const { scrollTop: E } = p, W = performance.now(), P = (W - (p.lastTick ?? W)) / Us;
3574
+ if (p.animation || (p.animation = { behavior: f, promise: C, ignoreEscapes: m }), p.animation.behavior === f && (p.lastTick = W), h() || s > Date.now())
3549
3575
  return A();
3550
3576
  if (E < Math.min(x, p.calculatedTargetScrollTop)) {
3551
3577
  if (((I = p.animation) == null ? void 0 : I.behavior) === f) {
@@ -3556,7 +3582,7 @@ const Ws = (e = {}) => {
3556
3582
  return A();
3557
3583
  }
3558
3584
  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),
3585
+ animation: Et(d.current, d.current.resize),
3560
3586
  ignoreEscapes: m,
3561
3587
  duration: Math.max(0, y - Date.now()) || void 0
3562
3588
  }) : p.isAtBottom);
@@ -3565,7 +3591,7 @@ const Ws = (e = {}) => {
3565
3591
  p.animation || (p.lastTick = void 0, p.velocity = 0);
3566
3592
  }), E));
3567
3593
  };
3568
- return i.wait !== !0 && (p.animation = void 0), ((M = p.animation) == null ? void 0 : M.behavior) === f ? p.animation.promise : A();
3594
+ return i.wait !== !0 && (p.animation = void 0), ((_ = p.animation) == null ? void 0 : _.behavior) === f ? p.animation.promise : A();
3569
3595
  }, [g, h, p]), k = Z(() => {
3570
3596
  b(!0), g(!1);
3571
3597
  }, [b, g]), $ = Z(({ target: i }) => {
@@ -3597,10 +3623,10 @@ const Ws = (e = {}) => {
3597
3623
  f = f.parentElement;
3598
3624
  }
3599
3625
  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) => {
3626
+ }, [b, g, p]), S = Nr((i) => {
3601
3627
  var s, f;
3602
3628
  (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) => {
3629
+ }, []), o = Nr((i) => {
3604
3630
  var f, m;
3605
3631
  if ((f = p.resizeObserver) == null || f.disconnect(), !i)
3606
3632
  return;
@@ -3608,12 +3634,12 @@ const Ws = (e = {}) => {
3608
3634
  p.resizeObserver = new ResizeObserver(([y]) => {
3609
3635
  const { height: x } = y.contentRect, A = x - (s ?? x);
3610
3636
  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);
3637
+ const _ = Et(d.current, s ? d.current.resize : d.current.initial);
3612
3638
  w({
3613
- animation: M,
3639
+ animation: _,
3614
3640
  wait: !0,
3615
3641
  preserveScrollPosition: !0,
3616
- duration: M === "instant" ? void 0 : Ks
3642
+ duration: _ === "instant" ? void 0 : Hs
3617
3643
  });
3618
3644
  } else
3619
3645
  p.isNearBottom && (b(!1), g(!0));
@@ -3635,13 +3661,13 @@ const Ws = (e = {}) => {
3635
3661
  state: p
3636
3662
  };
3637
3663
  };
3638
- function Dr(e, t) {
3664
+ function Nr(e, t) {
3639
3665
  const r = Z((n) => (r.current = n, e(n)), t);
3640
3666
  return r;
3641
3667
  }
3642
- const At = /* @__PURE__ */ new Map();
3643
- function Tt(...e) {
3644
- const t = { ...Ps };
3668
+ const Tt = /* @__PURE__ */ new Map();
3669
+ function Et(...e) {
3670
+ const t = { ...Ks };
3645
3671
  let r = !1;
3646
3672
  for (const a of e) {
3647
3673
  if (a === "instant") {
@@ -3651,21 +3677,21 @@ function Tt(...e) {
3651
3677
  typeof a == "object" && (r = !1, t.damping = a.damping ?? t.damping, t.stiffness = a.stiffness ?? t.stiffness, t.mass = a.mass ?? t.mass);
3652
3678
  }
3653
3679
  const n = JSON.stringify(t);
3654
- return At.has(n) || At.set(n, Object.freeze(t)), r ? "instant" : At.get(n);
3680
+ return Tt.has(n) || Tt.set(n, Object.freeze(t)), r ? "instant" : Tt.get(n);
3655
3681
  }
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) => {
3682
+ const Tn = zn(null), Gs = typeof window < "u" ? Rn : De;
3683
+ function nt({ instance: e, children: t, resize: r, initial: n, mass: a, damping: c, stiffness: u, targetScrollTop: d, contextRef: h, ...g }) {
3684
+ const b = ae(null), p = Bt.useCallback((m, y) => {
3659
3685
  const x = (f == null ? void 0 : f.targetScrollTop) ?? d;
3660
3686
  return (x == null ? void 0 : x(m, y)) ?? m;
3661
- }, [d]), w = Ws({
3687
+ }, [d]), w = qs({
3662
3688
  mass: a,
3663
3689
  damping: c,
3664
3690
  stiffness: u,
3665
3691
  resize: r,
3666
3692
  initial: n,
3667
3693
  targetScrollTop: p
3668
- }), { scrollRef: k, contentRef: $, scrollToBottom: j, stopScroll: S, isAtBottom: o, escapedFromLock: i, state: s } = e ?? w, f = Bt(() => ({
3694
+ }), { scrollRef: k, contentRef: $, scrollToBottom: j, stopScroll: S, isAtBottom: o, escapedFromLock: i, state: s } = e ?? w, f = Pt(() => ({
3669
3695
  scrollToBottom: j,
3670
3696
  stopScroll: S,
3671
3697
  scrollRef: k,
@@ -3688,27 +3714,27 @@ function rt({ instance: e, children: t, resize: r, initial: n, mass: a, damping:
3688
3714
  i,
3689
3715
  s
3690
3716
  ]);
3691
- return En(h, () => f, [f]), Us(() => {
3717
+ return Mn(h, () => f, [f]), Gs(() => {
3692
3718
  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 }) });
3719
+ }, []), l.jsx(Tn.Provider, { value: f, children: l.jsx("div", { ...g, children: typeof t == "function" ? t(f) : t }) });
3694
3720
  }
3695
3721
  (function(e) {
3696
3722
  function t({ children: r, ...n }) {
3697
- const a = Hs();
3723
+ const a = Ys();
3698
3724
  return l.jsx("div", { ref: a.scrollRef, style: {
3699
3725
  height: "100%",
3700
3726
  width: "100%"
3701
3727
  }, children: l.jsx("div", { ...n, ref: a.contentRef, children: typeof r == "function" ? r(a) : r }) });
3702
3728
  }
3703
3729
  e.Content = t;
3704
- })(rt || (rt = {}));
3705
- function Hs() {
3706
- const e = Fr(In);
3730
+ })(nt || (nt = {}));
3731
+ function Ys() {
3732
+ const e = Wr(Tn);
3707
3733
  if (!e)
3708
3734
  throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");
3709
3735
  return e;
3710
3736
  }
3711
- const qs = T(rt)`
3737
+ const Qs = T(nt)`
3712
3738
  position: relative;
3713
3739
  flex: 1;
3714
3740
  overflow-y: auto;
@@ -3758,7 +3784,7 @@ const qs = T(rt)`
3758
3784
  background-color: rgba(100, 116, 139, 0.75);
3759
3785
  }
3760
3786
  }
3761
- `, Gs = T(rt.Content)`
3787
+ `, Vs = T(nt.Content)`
3762
3788
  padding: 16px;
3763
3789
  `;
3764
3790
  T.button`
@@ -3802,7 +3828,7 @@ T.button`
3802
3828
  }
3803
3829
  }
3804
3830
  `;
3805
- function nr({
3831
+ function or({
3806
3832
  className: e,
3807
3833
  children: t,
3808
3834
  style: r,
@@ -3811,7 +3837,7 @@ function nr({
3811
3837
  onDrop: c
3812
3838
  }) {
3813
3839
  return /* @__PURE__ */ l.jsx(
3814
- qs,
3840
+ Qs,
3815
3841
  {
3816
3842
  className: e,
3817
3843
  style: r,
@@ -3825,11 +3851,11 @@ function nr({
3825
3851
  }
3826
3852
  );
3827
3853
  }
3828
- function or({ className: e, children: t }) {
3829
- return /* @__PURE__ */ l.jsx(Gs, { className: e, children: t });
3854
+ function ar({ className: e, children: t }) {
3855
+ return /* @__PURE__ */ l.jsx(Vs, { className: e, children: t });
3830
3856
  }
3831
- function Ys({ config: e, chat: t }) {
3832
- 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), {
3857
+ function Zs({ config: e, chat: t }) {
3858
+ const { messages: r, sendMessage: n, uploadAttachment: a, isLoading: c, error: u, hasSessionStarted: d } = t, [h, g] = K.useState(""), [b, p] = K.useState(!1), w = K.useRef(null), {
3833
3859
  enabled: k,
3834
3860
  staged: $,
3835
3861
  attachmentError: j,
@@ -3841,27 +3867,27 @@ function Ys({ config: e, chat: t }) {
3841
3867
  maxFiles: m,
3842
3868
  maxBytes: y,
3843
3869
  allowed: x
3844
- } = rr(e, a), A = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : b ? "dark" : "light";
3845
- F.useEffect(() => {
3870
+ } = nr(e, a), A = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : b ? "dark" : "light";
3871
+ K.useEffect(() => {
3846
3872
  if (e.theme === "auto" || !e.theme) {
3847
3873
  const I = () => {
3848
3874
  p(window.matchMedia("(prefers-color-scheme: dark)").matches);
3849
3875
  };
3850
3876
  I();
3851
- const D = window.matchMedia("(prefers-color-scheme: dark)");
3852
- return D.addEventListener("change", I), () => D.removeEventListener("change", I);
3877
+ const O = window.matchMedia("(prefers-color-scheme: dark)");
3878
+ return O.addEventListener("change", I), () => O.removeEventListener("change", I);
3853
3879
  } else
3854
3880
  p(e.theme === "dark");
3855
3881
  }, [e.theme]);
3856
- const M = async () => {
3882
+ const _ = async () => {
3857
3883
  const I = h.trim();
3858
3884
  !I && $.length === 0 || c || (await n(I, void 0, $.length ? $ : void 0), g(""), f(), setTimeout(() => {
3859
- var D;
3860
- (D = w.current) == null || D.focus();
3885
+ var O;
3886
+ (O = w.current) == null || O.focus();
3861
3887
  }, 100));
3862
3888
  }, C = (I) => {
3863
- I.key === "Enter" && !I.shiftKey && (I.preventDefault(), M());
3864
- }, E = F.useMemo(() => e.height === "100%" || e.height === "100vh" ? {
3889
+ I.key === "Enter" && !I.shiftKey && (I.preventDefault(), _());
3890
+ }, E = K.useMemo(() => e.height === "100%" || e.height === "100vh" ? {
3865
3891
  height: "100%",
3866
3892
  minHeight: 0,
3867
3893
  display: "flex",
@@ -3872,21 +3898,21 @@ function Ys({ config: e, chat: t }) {
3872
3898
  display: "flex",
3873
3899
  flexDirection: "column",
3874
3900
  borderRadius: "8px"
3875
- }, [e.height]), K = (I) => {
3901
+ }, [e.height]), W = (I) => {
3876
3902
  k && (I.preventDefault(), I.dataTransfer.dropEffect = "copy");
3877
3903
  }, P = async (I) => {
3878
3904
  if (!k) return;
3879
3905
  I.preventDefault();
3880
- const D = await Ut(I.dataTransfer);
3881
- D.length && await o(D);
3906
+ const O = await Ht(I.dataTransfer);
3907
+ O.length && await o(O);
3882
3908
  };
3883
3909
  return /* @__PURE__ */ l.jsx(
3884
- jn,
3910
+ An,
3885
3911
  {
3886
3912
  "data-theme": A(),
3887
3913
  style: E,
3888
3914
  children: e.quickQuestions && e.quickQuestions.length > 0 && !d ? /* @__PURE__ */ l.jsx(
3889
- tr,
3915
+ rr,
3890
3916
  {
3891
3917
  config: e,
3892
3918
  onQuestionClick: async (I) => {
@@ -3896,7 +3922,7 @@ function Ys({ config: e, chat: t }) {
3896
3922
  isLoading: c
3897
3923
  }
3898
3924
  ) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3899
- /* @__PURE__ */ l.jsx(nr, { style: { flex: 1 }, onDragOver: K, onDrop: P, children: /* @__PURE__ */ l.jsxs(or, { children: [
3925
+ /* @__PURE__ */ l.jsx(or, { style: { flex: 1 }, onDragOver: W, onDrop: P, children: /* @__PURE__ */ l.jsxs(ar, { children: [
3900
3926
  r.map((I) => /* @__PURE__ */ l.jsxs(
3901
3927
  "div",
3902
3928
  {
@@ -3916,7 +3942,7 @@ function Ys({ config: e, chat: t }) {
3916
3942
  $size: "28px"
3917
3943
  }
3918
3944
  ),
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: [
3945
+ /* @__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
3946
  I.attachments && I.attachments.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: I.attachments, readOnly: !0 }),
3921
3947
  I.content ? I.content : null
3922
3948
  ] }) })
@@ -3933,22 +3959,22 @@ function Ys({ config: e, chat: t }) {
3933
3959
  $size: "28px"
3934
3960
  }
3935
3961
  ),
3936
- /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(Xt, { children: [
3962
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(er, { children: [
3937
3963
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
3938
3964
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
3939
3965
  /* @__PURE__ */ l.jsx("div", { className: "dot" })
3940
3966
  ] }) })
3941
3967
  ] }),
3942
- u && /* @__PURE__ */ l.jsx(er, { children: u })
3968
+ u && /* @__PURE__ */ l.jsx(tr, { children: u })
3943
3969
  ] }) }),
3944
- /* @__PURE__ */ l.jsxs(Zt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
3970
+ /* @__PURE__ */ l.jsxs(Jt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
3945
3971
  (j || k && $.length > 0) && /* @__PURE__ */ l.jsxs("div", { style: { paddingBottom: 8 }, children: [
3946
3972
  j && /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: "#dc2626", marginBottom: 4 }, children: j }),
3947
3973
  k && $.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: $, onRemove: s })
3948
3974
  ] }),
3949
- /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Qt, { children: [
3975
+ /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Vt, { children: [
3950
3976
  /* @__PURE__ */ l.jsx(
3951
- ft,
3977
+ ht,
3952
3978
  {
3953
3979
  ref: w,
3954
3980
  variant: "composer",
@@ -3959,9 +3985,9 @@ function Ys({ config: e, chat: t }) {
3959
3985
  disabled: c
3960
3986
  }
3961
3987
  ),
3962
- /* @__PURE__ */ l.jsxs(Vt, { children: [
3988
+ /* @__PURE__ */ l.jsxs(Zt, { children: [
3963
3989
  /* @__PURE__ */ l.jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: k && /* @__PURE__ */ l.jsx(
3964
- Ht,
3990
+ qt,
3965
3991
  {
3966
3992
  integrated: !0,
3967
3993
  disabled: c,
@@ -3975,13 +4001,13 @@ function Ys({ config: e, chat: t }) {
3975
4001
  }
3976
4002
  ) }),
3977
4003
  /* @__PURE__ */ l.jsx(
3978
- Jt,
4004
+ Xt,
3979
4005
  {
3980
4006
  type: "button",
3981
- onClick: M,
4007
+ onClick: _,
3982
4008
  disabled: c || !h.trim() && $.length === 0,
3983
4009
  "aria-label": "Send message",
3984
- children: /* @__PURE__ */ l.jsx(ht, { size: 13 })
4010
+ children: /* @__PURE__ */ l.jsx(mt, { size: 13 })
3985
4011
  }
3986
4012
  )
3987
4013
  ] })
@@ -3991,7 +4017,7 @@ function Ys({ config: e, chat: t }) {
3991
4017
  }
3992
4018
  );
3993
4019
  }
3994
- const Qs = T.div`
4020
+ const Js = T.div`
3995
4021
  display: flex;
3996
4022
  align-items: center;
3997
4023
  justify-content: space-between;
@@ -4017,15 +4043,15 @@ const Qs = T.div`
4017
4043
  background: ${(e) => e.$showWelcomeScreen && e.$primaryColor ? e.$primaryColor : "#ffffff"};
4018
4044
  color: ${(e) => e.$showWelcomeScreen && e.$primaryColor ? "white" : "#111827"};
4019
4045
  }
4020
- `, Vs = T.div`
4046
+ `, Xs = T.div`
4021
4047
  display: flex;
4022
4048
  align-items: center;
4023
4049
  gap: 12px;
4024
- `, Zs = T.div`
4050
+ `, ei = T.div`
4025
4051
  display: flex;
4026
4052
  align-items: center;
4027
4053
  gap: 8px;
4028
- `, Js = T.div`
4054
+ `, ti = T.div`
4029
4055
  width: 8px;
4030
4056
  height: 8px;
4031
4057
  background: #10b981;
@@ -4040,14 +4066,14 @@ const Qs = T.div`
4040
4066
  opacity: 0.5;
4041
4067
  }
4042
4068
  }
4043
- `, Xs = T.span`
4069
+ `, ri = T.span`
4044
4070
  font-weight: 500;
4045
4071
  font-size: 14px;
4046
- `, ei = T.div`
4072
+ `, ni = T.div`
4047
4073
  display: flex;
4048
4074
  align-items: center;
4049
4075
  gap: 4px;
4050
- `, ti = T.button`
4076
+ `, oi = T.button`
4051
4077
  padding: 4px;
4052
4078
  background: transparent;
4053
4079
  border: none;
@@ -4068,7 +4094,7 @@ const Qs = T.div`
4068
4094
  height: 16px;
4069
4095
  }
4070
4096
  `;
4071
- function ri({
4097
+ function ai({
4072
4098
  chatName: e = "Chat Assistant",
4073
4099
  showCloseButton: t = !0,
4074
4100
  onClose: r,
@@ -4078,13 +4104,13 @@ function ri({
4078
4104
  showWelcomeScreen: u = !1
4079
4105
  }) {
4080
4106
  return /* @__PURE__ */ l.jsxs(
4081
- Qs,
4107
+ Js,
4082
4108
  {
4083
4109
  className: a,
4084
4110
  $primaryColor: c,
4085
4111
  $showWelcomeScreen: u,
4086
4112
  children: [
4087
- /* @__PURE__ */ l.jsxs(Vs, { children: [
4113
+ /* @__PURE__ */ l.jsxs(Xs, { children: [
4088
4114
  n && /* @__PURE__ */ l.jsx(
4089
4115
  xe,
4090
4116
  {
@@ -4093,25 +4119,25 @@ function ri({
4093
4119
  $size: "32px"
4094
4120
  }
4095
4121
  ),
4096
- /* @__PURE__ */ l.jsxs(Zs, { children: [
4097
- /* @__PURE__ */ l.jsx(Js, {}),
4098
- /* @__PURE__ */ l.jsx(Xs, { children: e })
4122
+ /* @__PURE__ */ l.jsxs(ei, { children: [
4123
+ /* @__PURE__ */ l.jsx(ti, {}),
4124
+ /* @__PURE__ */ l.jsx(ri, { children: e })
4099
4125
  ] })
4100
4126
  ] }),
4101
- /* @__PURE__ */ l.jsx(ei, { children: t && /* @__PURE__ */ l.jsx(
4102
- ti,
4127
+ /* @__PURE__ */ l.jsx(ni, { children: t && /* @__PURE__ */ l.jsx(
4128
+ oi,
4103
4129
  {
4104
4130
  onClick: r,
4105
4131
  "aria-label": "Close",
4106
- children: /* @__PURE__ */ l.jsx(Bs, { size: 16 })
4132
+ children: /* @__PURE__ */ l.jsx(Fs, { size: 16 })
4107
4133
  }
4108
4134
  ) })
4109
4135
  ]
4110
4136
  }
4111
4137
  );
4112
4138
  }
4113
- function Nr({ config: e, chat: t }) {
4114
- const { messages: r, sendMessage: n, uploadAttachment: a, isLoading: c, error: u, isOpen: d, setIsOpen: h, hasSessionStarted: g } = t, [b, p] = F.useState(""), [w, k] = F.useState(e.height || 600), [$, j] = F.useState(!1), S = F.useRef(null), {
4139
+ function Br({ config: e, chat: t }) {
4140
+ const { messages: r, sendMessage: n, uploadAttachment: a, isLoading: c, error: u, isOpen: d, setIsOpen: h, hasSessionStarted: g } = t, [b, p] = K.useState(""), [w, k] = K.useState(e.height || 600), [$, j] = K.useState(!1), S = K.useRef(null), {
4115
4141
  enabled: o,
4116
4142
  staged: i,
4117
4143
  attachmentError: s,
@@ -4120,11 +4146,11 @@ function Nr({ config: e, chat: t }) {
4120
4146
  appendStaged: y,
4121
4147
  removeStaged: x,
4122
4148
  clearStaged: A,
4123
- maxFiles: M,
4149
+ maxFiles: _,
4124
4150
  maxBytes: C,
4125
4151
  allowed: E
4126
- } = rr(e, a), K = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : $ ? "dark" : "light";
4127
- F.useEffect(() => {
4152
+ } = nr(e, a), W = () => e.theme === "dark" ? "dark" : e.theme === "light" ? "light" : $ ? "dark" : "light";
4153
+ K.useEffect(() => {
4128
4154
  if (e.theme === "auto" || !e.theme) {
4129
4155
  const v = () => {
4130
4156
  j(window.matchMedia("(prefers-color-scheme: dark)").matches);
@@ -4143,42 +4169,42 @@ function Nr({ config: e, chat: t }) {
4143
4169
  }, 100));
4144
4170
  }, I = (v) => {
4145
4171
  v.key === "Enter" && !v.shiftKey && (v.preventDefault(), P());
4146
- }, D = (v) => {
4172
+ }, O = (v) => {
4147
4173
  o && (v.preventDefault(), v.dataTransfer.dropEffect = "copy");
4148
4174
  }, H = async (v) => {
4149
4175
  if (!o) return;
4150
4176
  v.preventDefault();
4151
- const N = await Ut(v.dataTransfer);
4177
+ const N = await Ht(v.dataTransfer);
4152
4178
  N.length && await m(N);
4153
4179
  };
4154
4180
  return d ? /* @__PURE__ */ l.jsxs(
4155
- Ts,
4181
+ Ms,
4156
4182
  {
4157
4183
  $position: e.position || "bottom-right",
4158
- "data-theme": K(),
4184
+ "data-theme": W(),
4159
4185
  style: {
4160
4186
  height: w,
4161
4187
  ...e.chatWindowStyle
4162
4188
  },
4163
4189
  children: [
4164
4190
  e.resizable !== !1 && /* @__PURE__ */ l.jsx(
4165
- Es,
4191
+ Rs,
4166
4192
  {
4167
4193
  $position: "top",
4168
4194
  onMouseDown: (v) => {
4169
4195
  v.preventDefault();
4170
- const N = v.clientY, R = typeof w == "number" ? w : 600, W = (q) => {
4171
- const z = q.clientY - N, U = R - z;
4196
+ const N = v.clientY, R = typeof w == "number" ? w : 600, L = (q) => {
4197
+ const D = q.clientY - N, U = R - D;
4172
4198
  k(Math.max(200, Math.min(600, U)));
4173
- }, O = () => {
4174
- document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", O);
4199
+ }, z = () => {
4200
+ document.removeEventListener("mousemove", L), document.removeEventListener("mouseup", z);
4175
4201
  };
4176
- document.addEventListener("mousemove", W), document.addEventListener("mouseup", O);
4202
+ document.addEventListener("mousemove", L), document.addEventListener("mouseup", z);
4177
4203
  }
4178
4204
  }
4179
4205
  ),
4180
4206
  e.showHeader !== !1 && /* @__PURE__ */ l.jsx(
4181
- ri,
4207
+ ai,
4182
4208
  {
4183
4209
  agentImage: e.agentImage,
4184
4210
  chatName: e.chatName,
@@ -4188,7 +4214,7 @@ function Nr({ config: e, chat: t }) {
4188
4214
  }
4189
4215
  ),
4190
4216
  e.quickQuestions && e.quickQuestions.length > 0 && !g ? /* @__PURE__ */ l.jsx(
4191
- tr,
4217
+ rr,
4192
4218
  {
4193
4219
  config: e,
4194
4220
  onQuestionClick: async (v) => {
@@ -4198,7 +4224,7 @@ function Nr({ config: e, chat: t }) {
4198
4224
  isLoading: c
4199
4225
  }
4200
4226
  ) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4201
- /* @__PURE__ */ l.jsx(nr, { onDragOver: D, onDrop: H, children: /* @__PURE__ */ l.jsxs(or, { children: [
4227
+ /* @__PURE__ */ l.jsx(or, { onDragOver: O, onDrop: H, children: /* @__PURE__ */ l.jsxs(ar, { children: [
4202
4228
  r.map((v) => /* @__PURE__ */ l.jsxs(
4203
4229
  "div",
4204
4230
  {
@@ -4218,7 +4244,7 @@ function Nr({ config: e, chat: t }) {
4218
4244
  $size: "28px"
4219
4245
  }
4220
4246
  ),
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: [
4247
+ /* @__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
4248
  v.attachments && v.attachments.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: v.attachments, readOnly: !0 }),
4223
4249
  v.content ? v.content : null
4224
4250
  ] }) })
@@ -4235,22 +4261,22 @@ function Nr({ config: e, chat: t }) {
4235
4261
  $size: "28px"
4236
4262
  }
4237
4263
  ),
4238
- /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(Xt, { children: [
4264
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(er, { children: [
4239
4265
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4240
4266
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4241
4267
  /* @__PURE__ */ l.jsx("div", { className: "dot" })
4242
4268
  ] }) })
4243
4269
  ] }),
4244
- u && /* @__PURE__ */ l.jsx(er, { children: u })
4270
+ u && /* @__PURE__ */ l.jsx(tr, { children: u })
4245
4271
  ] }) }),
4246
- /* @__PURE__ */ l.jsxs(Zt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4272
+ /* @__PURE__ */ l.jsxs(Jt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4247
4273
  (s || o && i.length > 0) && /* @__PURE__ */ l.jsxs("div", { style: { paddingBottom: 8 }, children: [
4248
4274
  s && /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: "#dc2626", marginBottom: 4 }, children: s }),
4249
4275
  o && i.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: i, onRemove: x })
4250
4276
  ] }),
4251
- /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Qt, { children: [
4277
+ /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Vt, { children: [
4252
4278
  /* @__PURE__ */ l.jsx(
4253
- ft,
4279
+ ht,
4254
4280
  {
4255
4281
  ref: S,
4256
4282
  variant: "composer",
@@ -4261,14 +4287,14 @@ function Nr({ config: e, chat: t }) {
4261
4287
  disabled: c
4262
4288
  }
4263
4289
  ),
4264
- /* @__PURE__ */ l.jsxs(Vt, { children: [
4290
+ /* @__PURE__ */ l.jsxs(Zt, { children: [
4265
4291
  /* @__PURE__ */ l.jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: o && /* @__PURE__ */ l.jsx(
4266
- Ht,
4292
+ qt,
4267
4293
  {
4268
4294
  integrated: !0,
4269
4295
  disabled: c,
4270
4296
  maxFileBytes: C,
4271
- maxFiles: M,
4297
+ maxFiles: _,
4272
4298
  allowedMime: E,
4273
4299
  currentCount: i.length,
4274
4300
  uploadAttachment: a,
@@ -4277,13 +4303,13 @@ function Nr({ config: e, chat: t }) {
4277
4303
  }
4278
4304
  ) }),
4279
4305
  /* @__PURE__ */ l.jsx(
4280
- Jt,
4306
+ Xt,
4281
4307
  {
4282
4308
  type: "button",
4283
4309
  onClick: P,
4284
4310
  disabled: c || !b.trim() && i.length === 0,
4285
4311
  "aria-label": "Send message",
4286
- children: /* @__PURE__ */ l.jsx(ht, { size: 13 })
4312
+ children: /* @__PURE__ */ l.jsx(mt, { size: 13 })
4287
4313
  }
4288
4314
  )
4289
4315
  ] })
@@ -4293,7 +4319,7 @@ function Nr({ config: e, chat: t }) {
4293
4319
  ]
4294
4320
  }
4295
4321
  ) : /* @__PURE__ */ l.jsxs(
4296
- As,
4322
+ _s,
4297
4323
  {
4298
4324
  onClick: () => h(!0),
4299
4325
  style: e.buttonStyle,
@@ -4301,25 +4327,25 @@ function Nr({ config: e, chat: t }) {
4301
4327
  $primaryColor: e.primaryColor,
4302
4328
  "aria-label": "Open chat",
4303
4329
  children: [
4304
- /* @__PURE__ */ l.jsx("div", { className: "icon-container", children: /* @__PURE__ */ l.jsx(Os, { size: 16 }) }),
4330
+ /* @__PURE__ */ l.jsx("div", { className: "icon-container", children: /* @__PURE__ */ l.jsx(Ls, { size: 16 }) }),
4305
4331
  /* @__PURE__ */ l.jsx("span", { children: e.buttonText || e.chatName || "AI Chat" })
4306
4332
  ]
4307
4333
  }
4308
4334
  );
4309
4335
  }
4310
- function li(e) {
4311
- const t = Un(e), r = Wn(t);
4336
+ function pi(e) {
4337
+ const t = Gn(e), r = qn(t);
4312
4338
  switch (t.mode) {
4313
4339
  case "floating":
4314
- return /* @__PURE__ */ l.jsx(Nr, { config: t, chat: r });
4340
+ return /* @__PURE__ */ l.jsx(Br, { config: t, chat: r });
4315
4341
  case "embedded":
4316
- return /* @__PURE__ */ l.jsx(Ys, { config: t, chat: r });
4342
+ return /* @__PURE__ */ l.jsx(Zs, { config: t, chat: r });
4317
4343
  default:
4318
- return /* @__PURE__ */ l.jsx(Nr, { config: t, chat: r });
4344
+ return /* @__PURE__ */ l.jsx(Br, { config: t, chat: r });
4319
4345
  }
4320
4346
  }
4321
- function di({ config: e, chat: t }) {
4322
- const { messages: r, sendMessage: n, uploadAttachment: a, isLoading: c, error: u, hasSessionStarted: d } = t, [h, g] = F.useState(""), b = F.useRef(null), {
4347
+ function fi({ config: e, chat: t }) {
4348
+ const { messages: r, sendMessage: n, uploadAttachment: a, isLoading: c, error: u, hasSessionStarted: d } = t, [h, g] = K.useState(""), b = K.useRef(null), {
4323
4349
  enabled: p,
4324
4350
  staged: w,
4325
4351
  attachmentError: k,
@@ -4331,7 +4357,7 @@ function di({ config: e, chat: t }) {
4331
4357
  maxFiles: s,
4332
4358
  maxBytes: f,
4333
4359
  allowed: m
4334
- } = rr(e, a), y = async () => {
4360
+ } = nr(e, a), y = async () => {
4335
4361
  const C = h.trim();
4336
4362
  !C && w.length === 0 || c || (await n(C, void 0, w.length ? w : void 0), g(""), i(), setTimeout(() => {
4337
4363
  var E;
@@ -4341,14 +4367,14 @@ function di({ config: e, chat: t }) {
4341
4367
  C.key === "Enter" && !C.shiftKey && (C.preventDefault(), y());
4342
4368
  }, A = (C) => {
4343
4369
  p && (C.preventDefault(), C.dataTransfer.dropEffect = "copy");
4344
- }, M = async (C) => {
4370
+ }, _ = async (C) => {
4345
4371
  if (!p) return;
4346
4372
  C.preventDefault();
4347
- const E = await Ut(C.dataTransfer);
4373
+ const E = await Ht(C.dataTransfer);
4348
4374
  E.length && await j(E);
4349
4375
  };
4350
4376
  return /* @__PURE__ */ l.jsx(
4351
- jn,
4377
+ An,
4352
4378
  {
4353
4379
  style: {
4354
4380
  height: e.height,
@@ -4359,7 +4385,7 @@ function di({ config: e, chat: t }) {
4359
4385
  borderRadius: "8px"
4360
4386
  },
4361
4387
  children: e.quickQuestions && e.quickQuestions.length > 0 && !d ? /* @__PURE__ */ l.jsx(
4362
- tr,
4388
+ rr,
4363
4389
  {
4364
4390
  config: e,
4365
4391
  onQuestionClick: async (C) => {
@@ -4369,7 +4395,7 @@ function di({ config: e, chat: t }) {
4369
4395
  isLoading: c
4370
4396
  }
4371
4397
  ) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4372
- /* @__PURE__ */ l.jsx(nr, { style: { flex: 1 }, onDragOver: A, onDrop: M, children: /* @__PURE__ */ l.jsxs(or, { children: [
4398
+ /* @__PURE__ */ l.jsx(or, { style: { flex: 1 }, onDragOver: A, onDrop: _, children: /* @__PURE__ */ l.jsxs(ar, { children: [
4373
4399
  r.map((C) => /* @__PURE__ */ l.jsxs(
4374
4400
  "div",
4375
4401
  {
@@ -4389,7 +4415,7 @@ function di({ config: e, chat: t }) {
4389
4415
  $size: "28px"
4390
4416
  }
4391
4417
  ),
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: [
4418
+ /* @__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
4419
  C.attachments && C.attachments.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: C.attachments, readOnly: !0 }),
4394
4420
  C.content ? C.content : null
4395
4421
  ] }) })
@@ -4406,22 +4432,22 @@ function di({ config: e, chat: t }) {
4406
4432
  $size: "28px"
4407
4433
  }
4408
4434
  ),
4409
- /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(Xt, { children: [
4435
+ /* @__PURE__ */ l.jsx(Ee, { $isUser: !1, children: /* @__PURE__ */ l.jsxs(er, { children: [
4410
4436
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4411
4437
  /* @__PURE__ */ l.jsx("div", { className: "dot" }),
4412
4438
  /* @__PURE__ */ l.jsx("div", { className: "dot" })
4413
4439
  ] }) })
4414
4440
  ] }),
4415
- u && /* @__PURE__ */ l.jsx(er, { children: u })
4441
+ u && /* @__PURE__ */ l.jsx(tr, { children: u })
4416
4442
  ] }) }),
4417
- /* @__PURE__ */ l.jsxs(Zt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4443
+ /* @__PURE__ */ l.jsxs(Jt, { style: { flexDirection: "column", alignItems: "stretch", gap: 0 }, children: [
4418
4444
  (k || p && w.length > 0) && /* @__PURE__ */ l.jsxs("div", { style: { paddingBottom: 8 }, children: [
4419
4445
  k && /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: "#dc2626", marginBottom: 4 }, children: k }),
4420
4446
  p && w.length > 0 && /* @__PURE__ */ l.jsx(Ae, { attachments: w, onRemove: o })
4421
4447
  ] }),
4422
- /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Qt, { children: [
4448
+ /* @__PURE__ */ l.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ l.jsxs(Vt, { children: [
4423
4449
  /* @__PURE__ */ l.jsx(
4424
- ft,
4450
+ ht,
4425
4451
  {
4426
4452
  ref: b,
4427
4453
  variant: "composer",
@@ -4432,9 +4458,9 @@ function di({ config: e, chat: t }) {
4432
4458
  disabled: c
4433
4459
  }
4434
4460
  ),
4435
- /* @__PURE__ */ l.jsxs(Vt, { children: [
4461
+ /* @__PURE__ */ l.jsxs(Zt, { children: [
4436
4462
  /* @__PURE__ */ l.jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: p && /* @__PURE__ */ l.jsx(
4437
- Ht,
4463
+ qt,
4438
4464
  {
4439
4465
  integrated: !0,
4440
4466
  disabled: c,
@@ -4448,13 +4474,13 @@ function di({ config: e, chat: t }) {
4448
4474
  }
4449
4475
  ) }),
4450
4476
  /* @__PURE__ */ l.jsx(
4451
- Jt,
4477
+ Xt,
4452
4478
  {
4453
4479
  type: "button",
4454
4480
  onClick: y,
4455
4481
  disabled: c || !h.trim() && w.length === 0,
4456
4482
  "aria-label": "Send message",
4457
- children: /* @__PURE__ */ l.jsx(ht, { size: 13 })
4483
+ children: /* @__PURE__ */ l.jsx(mt, { size: 13 })
4458
4484
  }
4459
4485
  )
4460
4486
  ] })
@@ -4465,18 +4491,18 @@ function di({ config: e, chat: t }) {
4465
4491
  );
4466
4492
  }
4467
4493
  export {
4468
- Ys as EmbeddedChat,
4469
- 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
4494
+ Zs as EmbeddedChat,
4495
+ Br as FloatingChat,
4496
+ fi as InlineChat,
4497
+ Qt as MarkdownRenderer,
4498
+ Wn as OrdifyApiClient,
4499
+ pi as OrdifyChat,
4500
+ di as debounce,
4501
+ li as formatTime,
4502
+ Ue as generateId,
4503
+ Un as parseStreamingResponse,
4504
+ ui as throttle,
4505
+ qn as useOrdifyChat,
4506
+ Gn as useOrdifyConfig,
4507
+ nr as useWidgetAttachmentStaging
4482
4508
  };