@cimulate/copilot-widget 1.52.7 → 1.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5096,11 +5096,11 @@ const xT = typeof XMLHttpRequest != "undefined", IT = xT && function(e) {
5096
5096
  request: g
5097
5097
  };
5098
5098
  Hh(
5099
- function(K) {
5100
- n(K), S();
5099
+ function(X) {
5100
+ n(X), S();
5101
5101
  },
5102
- function(K) {
5103
- r(K), S();
5102
+ function(X) {
5103
+ r(X), S();
5104
5104
  },
5105
5105
  D
5106
5106
  ), g = null;
@@ -5418,10 +5418,10 @@ const Ku = "1.20.0", kl = 64 * 1024, $T = {
5418
5418
  cancelToken: N,
5419
5419
  timeout: D,
5420
5420
  onDownloadProgress: H,
5421
- onUploadProgress: K,
5421
+ onUploadProgress: X,
5422
5422
  responseType: R,
5423
5423
  headers: $,
5424
- withCredentials: X = "same-origin",
5424
+ withCredentials: K = "same-origin",
5425
5425
  fetchOptions: le,
5426
5426
  maxContentLength: U,
5427
5427
  maxBodyLength: V,
@@ -5490,7 +5490,7 @@ const Ku = "1.20.0", kl = 64 * 1024, $T = {
5490
5490
  },
5491
5491
  Ot
5492
5492
  );
5493
- if (p && T !== "get" && T !== "head" && (K || Ve)) {
5493
+ if (p && T !== "get" && T !== "head" && (X || Ve)) {
5494
5494
  if (be = be == null ? yield S($, k) : be, be !== 0 || Ve) {
5495
5495
  let pe = new s(b, {
5496
5496
  method: "POST",
@@ -5498,9 +5498,9 @@ const Ku = "1.20.0", kl = 64 * 1024, $T = {
5498
5498
  duplex: "half"
5499
5499
  }), je;
5500
5500
  if (w.isFormData(k) && (je = pe.headers.get("content-type")) && $.setContentType(je), pe.body) {
5501
- const [Ot, ee] = K && Cl(
5501
+ const [Ot, ee] = X && Cl(
5502
5502
  be,
5503
- Zs(Nl(K))
5503
+ Zs(Nl(X))
5504
5504
  ) || [];
5505
5505
  k = yt(pe.body, Ot, ee);
5506
5506
  }
@@ -5514,7 +5514,7 @@ const Ku = "1.20.0", kl = 64 * 1024, $T = {
5514
5514
  g,
5515
5515
  de
5516
5516
  );
5517
- w.isString(X) || (X = X ? "include" : "omit");
5517
+ w.isString(K) || (K = K ? "include" : "omit");
5518
5518
  const $t = u && "credentials" in s.prototype;
5519
5519
  if (w.isFormData(k)) {
5520
5520
  const pe = $.getContentType();
@@ -5529,7 +5529,7 @@ const Ku = "1.20.0", kl = 64 * 1024, $T = {
5529
5529
  headers: Ih($.normalize()),
5530
5530
  body: k,
5531
5531
  duplex: "half",
5532
- credentials: $t ? X : void 0
5532
+ credentials: $t ? K : void 0
5533
5533
  });
5534
5534
  u && (w.forEach($T, (pe, je) => {
5535
5535
  _t[je] === void 0 && (_t[je] = pe);
@@ -6143,23 +6143,23 @@ Xe.getAdapter = jh.getAdapter;
6143
6143
  Xe.HttpStatusCode = zs;
6144
6144
  Xe.default = Xe;
6145
6145
  const {
6146
- Axios: c4,
6147
- AxiosError: l4,
6148
- CanceledError: d4,
6149
- isCancel: f4,
6150
- CancelToken: h4,
6151
- VERSION: p4,
6152
- all: m4,
6153
- Cancel: g4,
6154
- isAxiosError: E4,
6155
- spread: b4,
6156
- toFormData: T4,
6157
- AxiosHeaders: y4,
6158
- HttpStatusCode: _4,
6159
- formToJSON: S4,
6160
- getAdapter: A4,
6161
- mergeConfig: C4,
6162
- create: N4
6146
+ Axios: d4,
6147
+ AxiosError: f4,
6148
+ CanceledError: h4,
6149
+ isCancel: p4,
6150
+ CancelToken: m4,
6151
+ VERSION: g4,
6152
+ all: E4,
6153
+ Cancel: b4,
6154
+ isAxiosError: T4,
6155
+ spread: y4,
6156
+ toFormData: _4,
6157
+ AxiosHeaders: S4,
6158
+ HttpStatusCode: A4,
6159
+ formToJSON: C4,
6160
+ getAdapter: N4,
6161
+ mergeConfig: O4,
6162
+ create: P4
6163
6163
  } = Xe;
6164
6164
  class JT {
6165
6165
  constructor(t, n, r, i = !1, s, o) {
@@ -6310,10 +6310,10 @@ const ty = {
6310
6310
  conversationHistory: N,
6311
6311
  resetConversationMessage: D = "",
6312
6312
  apiKey: H,
6313
- apiToken: K,
6313
+ apiToken: X,
6314
6314
  baseUrl: R,
6315
6315
  customerId: $,
6316
- tenantId: X,
6316
+ tenantId: K,
6317
6317
  theme: le,
6318
6318
  isDevelopment: U,
6319
6319
  __features: V,
@@ -6331,7 +6331,7 @@ const ty = {
6331
6331
  const Te = e === "messaging", he = ze(() => {
6332
6332
  const et = ae == null ? void 0 : ae.isCartMgmtSupported;
6333
6333
  return et === !0 || et === "true";
6334
- }, [ae]), Ne = ze(() => Te ? { config: null } : new ZT(R, H, K, U, $, X), [Te, R, H, K, U, $, X]), Ve = ze(() => new ey(U), [U]);
6334
+ }, [ae]), Ne = ze(() => Te ? { config: null } : new ZT(R, H, X, U, $, K), [Te, R, H, X, U, $, K]), Ve = ze(() => new ey(U), [U]);
6335
6335
  we(() => {
6336
6336
  Te || !Ne || Ne.config || Ne.getConfig();
6337
6337
  }, [Ne, Te]);
@@ -7475,15 +7475,15 @@ const Be = new Ky(), Qy = (e) => {
7475
7475
  return;
7476
7476
  }
7477
7477
  if (D === "isMinimized") {
7478
- c((K) => q(x({}, K), { isMinimized: H }));
7478
+ c((X) => q(x({}, X), { isMinimized: H }));
7479
7479
  return;
7480
7480
  }
7481
7481
  if (D === "isOpen") {
7482
- c((K) => q(x({}, K), { isOpen: H }));
7482
+ c((X) => q(x({}, X), { isOpen: H }));
7483
7483
  return;
7484
7484
  }
7485
7485
  if (D === "type") {
7486
- c((K) => q(x({}, K), { type: H }));
7486
+ c((X) => q(x({}, X), { type: H }));
7487
7487
  return;
7488
7488
  }
7489
7489
  if (D === "position") {
@@ -7674,10 +7674,10 @@ const Be = new Ky(), Qy = (e) => {
7674
7674
  resetCopilotState: N,
7675
7675
  addCopilotEvent: D,
7676
7676
  removeLoadingMessage: H,
7677
- handleCopilotRequestAck: K,
7677
+ handleCopilotRequestAck: X,
7678
7678
  setActiveConversationId: R,
7679
7679
  setConversationIds: $,
7680
- setAskCimPrompts: X
7680
+ setAskCimPrompts: K
7681
7681
  } = Qr(), { connected: le, copilot: U, messages: V, groupedMessages: ae, loadingMessages: W, askCimPrompts: Q } = Ht(), { status: ie, entryType: C } = Wt(), { isInline: re } = Rn(), { getConversationMessages: de, getSessionInformation: P } = f_({ copilot: U }), be = ze(() => W.size > 0, [W]), Ge = oe(
7682
7682
  (ee) => W.has(ee),
7683
7683
  [W]
@@ -7701,10 +7701,10 @@ const Be = new Ky(), Qy = (e) => {
7701
7701
  image: G
7702
7702
  }), se && Object.keys(se).length > 0 && (ne.searchParams.facetFilters = se), ue && ue.length > 0 && (ne.searchParams.rangeFilters = ue), ye && (ne.searchParams.catalogSegment = ye), Ue && (ne.searchParams.pricebooks = Ue), d && (ne.clientContext = d), xi("search"), U.search(ne, (me) => {
7703
7703
  const ce = x({}, me);
7704
- K(ce);
7704
+ X(ce);
7705
7705
  });
7706
7706
  },
7707
- [l, K, U, d]
7707
+ [l, X, U, d]
7708
7708
  ), he = oe(
7709
7709
  ({
7710
7710
  categoryId: ee,
@@ -7731,10 +7731,10 @@ const Be = new Ky(), Qy = (e) => {
7731
7731
  }), me && (ce.browseParams.facetFilters = ue), ye && ye.length > 0 && (ce.browseParams.rangeFilters = ye), Ue && (ce.browseParams.catalogSegment = Ue), Array.isArray(F) && F.length > 0 && (ce.browseParams.pricebooks = F), (d || se) && (ce.clientContext = {}, d && (ce.clientContext = x({}, d)), se && (ce.clientContext.cimLabel = se)), xi("browse"), U.browse(ce, (qe) => {
7732
7732
  var vn;
7733
7733
  const ct = x({}, qe), lt = ((vn = ct.request) == null ? void 0 : vn.clientContext) || {}, Pt = (lt == null ? void 0 : lt.cimLabel) || se;
7734
- Pt && ct.request && (ct.request.label = Pt), K(ct);
7734
+ Pt && ct.request && (ct.request.label = Pt), X(ct);
7735
7735
  });
7736
7736
  },
7737
- [l, K, U, d]
7737
+ [l, X, U, d]
7738
7738
  ), Ne = oe(
7739
7739
  ({
7740
7740
  productId: ee,
@@ -7754,10 +7754,10 @@ const Be = new Ky(), Qy = (e) => {
7754
7754
  }), (d || se) && (F.clientContext = {}, d && (F.clientContext = x({}, d)), se && (F.clientContext.cimLabel = se)), p && (F.baseCatalogParams = p), xi("pdp"), U.productView(F, (G) => {
7755
7755
  var qe;
7756
7756
  const ne = x({}, G), me = ((qe = ne.request) == null ? void 0 : qe.clientContext) || {}, ce = (me == null ? void 0 : me.cimLabel) || se;
7757
- ce && ne.request && (ne.request.label = ce), K(ne);
7757
+ ce && ne.request && (ne.request.label = ce), X(ne);
7758
7758
  });
7759
7759
  },
7760
- [l, U, K, d, p]
7760
+ [l, U, X, d, p]
7761
7761
  ), Ve = oe(
7762
7762
  ({ userPrompt: ee, imageFile: se }) => {
7763
7763
  if (!U) {
@@ -7770,10 +7770,10 @@ const Be = new Ky(), Qy = (e) => {
7770
7770
  image: se
7771
7771
  }), d && (ue.clientContext = d), p && (ue.baseCatalogParams = p), U.askCim(ue, (ye) => {
7772
7772
  const Ue = x({}, ye);
7773
- K(Ue);
7773
+ X(Ue);
7774
7774
  });
7775
7775
  },
7776
- [l, U, K, d, p]
7776
+ [l, U, X, d, p]
7777
7777
  ), yt = oe(
7778
7778
  (ee) => {
7779
7779
  D(ee), a == null || a(ee);
@@ -7856,7 +7856,7 @@ const Be = new Ky(), Qy = (e) => {
7856
7856
  const ee = (se) => {
7857
7857
  if (!re) {
7858
7858
  if (!se.message && se.eventSourceId && se.eventSourceId === Q.requestId) {
7859
- X({
7859
+ K({
7860
7860
  requestId: se.eventSourceId,
7861
7861
  message: se
7862
7862
  });
@@ -7868,7 +7868,7 @@ const Be = new Ky(), Qy = (e) => {
7868
7868
  return U.on("follow_up", ee), () => {
7869
7869
  U.off("follow_up", ee);
7870
7870
  };
7871
- }, [U, V, Q.requestId, re, D, X]), we(() => {
7871
+ }, [U, V, Q.requestId, re, D, K]), we(() => {
7872
7872
  if (!U) return;
7873
7873
  const ee = (se) => {
7874
7874
  if (re) return;
@@ -8431,10 +8431,10 @@ const Be = new Ky(), Qy = (e) => {
8431
8431
  clientContext: N,
8432
8432
  baseCatalogParams: D,
8433
8433
  searchPlaceholder: H,
8434
- searchButtonLabel: K,
8434
+ searchButtonLabel: X,
8435
8435
  searchConfig: R,
8436
8436
  suggestionButtonConfig: $,
8437
- messageAlignment: X,
8437
+ messageAlignment: K,
8438
8438
  autoScroll: le,
8439
8439
  promptsConfig: U,
8440
8440
  resetConversationMessage: V,
@@ -8468,10 +8468,10 @@ const Be = new Ky(), Qy = (e) => {
8468
8468
  openLinksInNewTab: d,
8469
8469
  onNavigate: p,
8470
8470
  searchPlaceholder: H,
8471
- searchButtonLabel: K,
8471
+ searchButtonLabel: X,
8472
8472
  searchConfig: R,
8473
8473
  suggestionButtonConfig: $,
8474
- messageAlignment: X,
8474
+ messageAlignment: K,
8475
8475
  autoScroll: le,
8476
8476
  componentConfig: S,
8477
8477
  clientContext: N,
@@ -10256,7 +10256,7 @@ function o2() {
10256
10256
  function L() {
10257
10257
  var U = { line: b, column: T };
10258
10258
  return function(V) {
10259
- return V.position = new N(U), K(), V;
10259
+ return V.position = new N(U), X(), V;
10260
10260
  };
10261
10261
  }
10262
10262
  function N(U) {
@@ -10276,7 +10276,7 @@ function o2() {
10276
10276
  return k(ae), S = S.slice(ae.length), V;
10277
10277
  }
10278
10278
  }
10279
- function K() {
10279
+ function X() {
10280
10280
  H(n);
10281
10281
  }
10282
10282
  function R(U) {
@@ -10299,7 +10299,7 @@ function o2() {
10299
10299
  });
10300
10300
  }
10301
10301
  }
10302
- function X() {
10302
+ function K() {
10303
10303
  var U = L(), V = H(r);
10304
10304
  if (V) {
10305
10305
  if ($(), !H(i)) return D("property missing ':'");
@@ -10314,11 +10314,11 @@ function o2() {
10314
10314
  function le() {
10315
10315
  var U = [];
10316
10316
  R(U);
10317
- for (var V; V = X(); )
10317
+ for (var V; V = K(); )
10318
10318
  V !== !1 && (U.push(V), R(U));
10319
10319
  return U;
10320
10320
  }
10321
- return K(), le();
10321
+ return X(), le();
10322
10322
  }
10323
10323
  function E(S) {
10324
10324
  return S ? S.replace(a, d) : d;
@@ -11073,14 +11073,14 @@ function z2(e) {
11073
11073
  )
11074
11074
  return;
11075
11075
  const D = t.events.length;
11076
- let H = D, K, R;
11076
+ let H = D, X, R;
11077
11077
  for (; H--; )
11078
11078
  if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
11079
- if (K) {
11079
+ if (X) {
11080
11080
  R = t.events[H][1].end;
11081
11081
  break;
11082
11082
  }
11083
- K = !0;
11083
+ X = !0;
11084
11084
  }
11085
11085
  for (g(r), N = D; N < t.events.length; )
11086
11086
  t.events[N][1].end = x({}, R), N++;
@@ -11361,19 +11361,19 @@ function eS(e, t, n) {
11361
11361
  return e.exit("codeFenced"), t(N);
11362
11362
  }
11363
11363
  function L(N, D, H) {
11364
- let K = 0;
11364
+ let X = 0;
11365
11365
  return R;
11366
11366
  function R(V) {
11367
11367
  return N.enter("lineEnding"), N.consume(V), N.exit("lineEnding"), $;
11368
11368
  }
11369
11369
  function $(V) {
11370
- return N.enter("codeFencedFence"), Ae(V) ? Pe(N, X, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(V) : X(V);
11370
+ return N.enter("codeFencedFence"), Ae(V) ? Pe(N, K, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(V) : K(V);
11371
11371
  }
11372
- function X(V) {
11372
+ function K(V) {
11373
11373
  return V === a ? (N.enter("codeFencedFenceSequence"), le(V)) : H(V);
11374
11374
  }
11375
11375
  function le(V) {
11376
- return V === a ? (K++, N.consume(V), le) : K >= o ? (N.exit("codeFencedFenceSequence"), Ae(V) ? Pe(N, U, "whitespace")(V) : U(V)) : H(V);
11376
+ return V === a ? (X++, N.consume(V), le) : X >= o ? (N.exit("codeFencedFenceSequence"), Ae(V) ? Pe(N, U, "whitespace")(V) : U(V)) : H(V);
11377
11377
  }
11378
11378
  function U(V) {
11379
11379
  return V === null || fe(V) ? (N.exit("codeFencedFence"), D(V)) : H(V);
@@ -12036,7 +12036,7 @@ function wS(e, t, n) {
12036
12036
  }
12037
12037
  function m(P) {
12038
12038
  const be = "CDATA[";
12039
- return P === be.charCodeAt(a++) ? (e.consume(P), a === be.length ? r.interrupt ? t : X : m) : n(P);
12039
+ return P === be.charCodeAt(a++) ? (e.consume(P), a === be.length ? r.interrupt ? t : K : m) : n(P);
12040
12040
  }
12041
12041
  function E(P) {
12042
12042
  return Ct(P) ? (e.consume(P), o = String.fromCharCode(P), S) : n(P);
@@ -12044,12 +12044,12 @@ function wS(e, t, n) {
12044
12044
  function S(P) {
12045
12045
  if (P === null || P === 47 || P === 62 || De(P)) {
12046
12046
  const be = P === 47, Ge = o.toLowerCase();
12047
- return !be && !s && sd.includes(Ge) ? (i = 1, r.interrupt ? t(P) : X(P)) : NS.includes(o.toLowerCase()) ? (i = 6, be ? (e.consume(P), g) : r.interrupt ? t(P) : X(P)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(P) : s ? b(P) : T(P));
12047
+ return !be && !s && sd.includes(Ge) ? (i = 1, r.interrupt ? t(P) : K(P)) : NS.includes(o.toLowerCase()) ? (i = 6, be ? (e.consume(P), g) : r.interrupt ? t(P) : K(P)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(P) : s ? b(P) : T(P));
12048
12048
  }
12049
12049
  return P === 45 || pt(P) ? (e.consume(P), o += String.fromCharCode(P), S) : n(P);
12050
12050
  }
12051
12051
  function g(P) {
12052
- return P === 62 ? (e.consume(P), r.interrupt ? t : X) : n(P);
12052
+ return P === 62 ? (e.consume(P), r.interrupt ? t : K) : n(P);
12053
12053
  }
12054
12054
  function b(P) {
12055
12055
  return Ae(P) ? (e.consume(P), b) : R(P);
@@ -12067,22 +12067,22 @@ function wS(e, t, n) {
12067
12067
  return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), u = P, D) : Ae(P) ? (e.consume(P), N) : H(P);
12068
12068
  }
12069
12069
  function D(P) {
12070
- return P === u ? (e.consume(P), u = null, K) : P === null || fe(P) ? n(P) : (e.consume(P), D);
12070
+ return P === u ? (e.consume(P), u = null, X) : P === null || fe(P) ? n(P) : (e.consume(P), D);
12071
12071
  }
12072
12072
  function H(P) {
12073
12073
  return P === null || P === 34 || P === 39 || P === 47 || P === 60 || P === 61 || P === 62 || P === 96 || De(P) ? L(P) : (e.consume(P), H);
12074
12074
  }
12075
- function K(P) {
12075
+ function X(P) {
12076
12076
  return P === 47 || P === 62 || Ae(P) ? T(P) : n(P);
12077
12077
  }
12078
12078
  function R(P) {
12079
12079
  return P === 62 ? (e.consume(P), $) : n(P);
12080
12080
  }
12081
12081
  function $(P) {
12082
- return P === null || fe(P) ? X(P) : Ae(P) ? (e.consume(P), $) : n(P);
12082
+ return P === null || fe(P) ? K(P) : Ae(P) ? (e.consume(P), $) : n(P);
12083
12083
  }
12084
- function X(P) {
12085
- return P === 45 && i === 2 ? (e.consume(P), ae) : P === 60 && i === 1 ? (e.consume(P), W) : P === 62 && i === 4 ? (e.consume(P), re) : P === 63 && i === 3 ? (e.consume(P), C) : P === 93 && i === 5 ? (e.consume(P), ie) : fe(P) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(PS, de, le)(P)) : P === null || fe(P) ? (e.exit("htmlFlowData"), le(P)) : (e.consume(P), X);
12084
+ function K(P) {
12085
+ return P === 45 && i === 2 ? (e.consume(P), ae) : P === 60 && i === 1 ? (e.consume(P), W) : P === 62 && i === 4 ? (e.consume(P), re) : P === 63 && i === 3 ? (e.consume(P), C) : P === 93 && i === 5 ? (e.consume(P), ie) : fe(P) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(PS, de, le)(P)) : P === null || fe(P) ? (e.exit("htmlFlowData"), le(P)) : (e.consume(P), K);
12086
12086
  }
12087
12087
  function le(P) {
12088
12088
  return e.check(xS, U, de)(P);
@@ -12091,26 +12091,26 @@ function wS(e, t, n) {
12091
12091
  return e.enter("lineEnding"), e.consume(P), e.exit("lineEnding"), V;
12092
12092
  }
12093
12093
  function V(P) {
12094
- return P === null || fe(P) ? le(P) : (e.enter("htmlFlowData"), X(P));
12094
+ return P === null || fe(P) ? le(P) : (e.enter("htmlFlowData"), K(P));
12095
12095
  }
12096
12096
  function ae(P) {
12097
- return P === 45 ? (e.consume(P), C) : X(P);
12097
+ return P === 45 ? (e.consume(P), C) : K(P);
12098
12098
  }
12099
12099
  function W(P) {
12100
- return P === 47 ? (e.consume(P), o = "", Q) : X(P);
12100
+ return P === 47 ? (e.consume(P), o = "", Q) : K(P);
12101
12101
  }
12102
12102
  function Q(P) {
12103
12103
  if (P === 62) {
12104
12104
  const be = o.toLowerCase();
12105
- return sd.includes(be) ? (e.consume(P), re) : X(P);
12105
+ return sd.includes(be) ? (e.consume(P), re) : K(P);
12106
12106
  }
12107
- return Ct(P) && o.length < 8 ? (e.consume(P), o += String.fromCharCode(P), Q) : X(P);
12107
+ return Ct(P) && o.length < 8 ? (e.consume(P), o += String.fromCharCode(P), Q) : K(P);
12108
12108
  }
12109
12109
  function ie(P) {
12110
- return P === 93 ? (e.consume(P), C) : X(P);
12110
+ return P === 93 ? (e.consume(P), C) : K(P);
12111
12111
  }
12112
12112
  function C(P) {
12113
- return P === 62 ? (e.consume(P), re) : P === 45 && i === 2 ? (e.consume(P), C) : X(P);
12113
+ return P === 62 ? (e.consume(P), re) : P === 45 && i === 2 ? (e.consume(P), C) : K(P);
12114
12114
  }
12115
12115
  function re(P) {
12116
12116
  return P === null || fe(P) ? (e.exit("htmlFlowData"), de(P)) : (e.consume(P), re);
@@ -12196,28 +12196,28 @@ function DS(e, t, n) {
12196
12196
  return fe(C) ? (o = D, W(C)) : Ae(C) ? (e.consume(C), D) : ae(C);
12197
12197
  }
12198
12198
  function H(C) {
12199
- return C === 45 || pt(C) ? (e.consume(C), H) : C === 47 || C === 62 || De(C) ? K(C) : n(C);
12199
+ return C === 45 || pt(C) ? (e.consume(C), H) : C === 47 || C === 62 || De(C) ? X(C) : n(C);
12200
12200
  }
12201
- function K(C) {
12202
- return C === 47 ? (e.consume(C), ae) : C === 58 || C === 95 || Ct(C) ? (e.consume(C), R) : fe(C) ? (o = K, W(C)) : Ae(C) ? (e.consume(C), K) : ae(C);
12201
+ function X(C) {
12202
+ return C === 47 ? (e.consume(C), ae) : C === 58 || C === 95 || Ct(C) ? (e.consume(C), R) : fe(C) ? (o = X, W(C)) : Ae(C) ? (e.consume(C), X) : ae(C);
12203
12203
  }
12204
12204
  function R(C) {
12205
12205
  return C === 45 || C === 46 || C === 58 || C === 95 || pt(C) ? (e.consume(C), R) : $(C);
12206
12206
  }
12207
12207
  function $(C) {
12208
- return C === 61 ? (e.consume(C), X) : fe(C) ? (o = $, W(C)) : Ae(C) ? (e.consume(C), $) : K(C);
12208
+ return C === 61 ? (e.consume(C), K) : fe(C) ? (o = $, W(C)) : Ae(C) ? (e.consume(C), $) : X(C);
12209
12209
  }
12210
- function X(C) {
12211
- return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), i = C, le) : fe(C) ? (o = X, W(C)) : Ae(C) ? (e.consume(C), X) : (e.consume(C), U);
12210
+ function K(C) {
12211
+ return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), i = C, le) : fe(C) ? (o = K, W(C)) : Ae(C) ? (e.consume(C), K) : (e.consume(C), U);
12212
12212
  }
12213
12213
  function le(C) {
12214
12214
  return C === i ? (e.consume(C), i = void 0, V) : C === null ? n(C) : fe(C) ? (o = le, W(C)) : (e.consume(C), le);
12215
12215
  }
12216
12216
  function U(C) {
12217
- return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 96 ? n(C) : C === 47 || C === 62 || De(C) ? K(C) : (e.consume(C), U);
12217
+ return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 96 ? n(C) : C === 47 || C === 62 || De(C) ? X(C) : (e.consume(C), U);
12218
12218
  }
12219
12219
  function V(C) {
12220
- return C === 47 || C === 62 || De(C) ? K(C) : n(C);
12220
+ return C === 47 || C === 62 || De(C) ? X(C) : n(C);
12221
12221
  }
12222
12222
  function ae(C) {
12223
12223
  return C === 62 ? (e.consume(C), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(C);
@@ -12766,8 +12766,8 @@ function _A(e, t, n) {
12766
12766
  function d($) {
12767
12767
  return o = qt(o, $), S(), o[o.length - 1] !== null ? [] : (H(t, 0), c.events = Io(s, c.events, c), c.events);
12768
12768
  }
12769
- function p($, X) {
12770
- return AA(h($), X);
12769
+ function p($, K) {
12770
+ return AA(h($), K);
12771
12771
  }
12772
12772
  function h($) {
12773
12773
  return SA(o, $);
@@ -12775,14 +12775,14 @@ function _A(e, t, n) {
12775
12775
  function m() {
12776
12776
  const {
12777
12777
  _bufferIndex: $,
12778
- _index: X,
12778
+ _index: K,
12779
12779
  line: le,
12780
12780
  column: U,
12781
12781
  offset: V
12782
12782
  } = r;
12783
12783
  return {
12784
12784
  _bufferIndex: $,
12785
- _index: X,
12785
+ _index: K,
12786
12786
  line: le,
12787
12787
  column: U,
12788
12788
  offset: V
@@ -12794,12 +12794,12 @@ function _A(e, t, n) {
12794
12794
  function S() {
12795
12795
  let $;
12796
12796
  for (; r._index < o.length; ) {
12797
- const X = o[r._index];
12798
- if (typeof X == "string")
12799
- for ($ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === $ && r._bufferIndex < X.length; )
12800
- g(X.charCodeAt(r._bufferIndex));
12797
+ const K = o[r._index];
12798
+ if (typeof K == "string")
12799
+ for ($ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === $ && r._bufferIndex < K.length; )
12800
+ g(K.charCodeAt(r._bufferIndex));
12801
12801
  else
12802
- g(X);
12802
+ g(K);
12803
12803
  }
12804
12804
  }
12805
12805
  function g($) {
@@ -12811,21 +12811,21 @@ function _A(e, t, n) {
12811
12811
  /** @type {string} */
12812
12812
  o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = $;
12813
12813
  }
12814
- function T($, X) {
12815
- const le = X || {};
12814
+ function T($, K) {
12815
+ const le = K || {};
12816
12816
  return le.type = $, le.start = m(), c.events.push(["enter", le, c]), a.push(le), le;
12817
12817
  }
12818
12818
  function k($) {
12819
- const X = a.pop();
12820
- return X.end = m(), c.events.push(["exit", X, c]), X;
12819
+ const K = a.pop();
12820
+ return K.end = m(), c.events.push(["exit", K, c]), K;
12821
12821
  }
12822
- function L($, X) {
12823
- H($, X.from);
12822
+ function L($, K) {
12823
+ H($, K.from);
12824
12824
  }
12825
- function N($, X) {
12826
- X.restore();
12825
+ function N($, K) {
12826
+ K.restore();
12827
12827
  }
12828
- function D($, X) {
12828
+ function D($, K) {
12829
12829
  return le;
12830
12830
  function le(U, V, ae) {
12831
12831
  let W, Q, ie, C;
@@ -12857,11 +12857,11 @@ function _A(e, t, n) {
12857
12857
  function P(Te) {
12858
12858
  return he;
12859
12859
  function he(Ne) {
12860
- return C = K(), ie = Te, Te.partial || (c.currentConstruct = Te), Te.name && c.parser.constructs.disable.null.includes(Te.name) ? Ge() : Te.tokenize.call(
12860
+ return C = X(), ie = Te, Te.partial || (c.currentConstruct = Te), Te.name && c.parser.constructs.disable.null.includes(Te.name) ? Ge() : Te.tokenize.call(
12861
12861
  // If we do have fields, create an object w/ `context` as its
12862
12862
  // prototype.
12863
12863
  // This allows a “live binding”, which is needed for `interrupt`.
12864
- X ? Object.assign(Object.create(c), X) : c,
12864
+ K ? Object.assign(Object.create(c), K) : c,
12865
12865
  u,
12866
12866
  be,
12867
12867
  Ge
@@ -12876,17 +12876,17 @@ function _A(e, t, n) {
12876
12876
  }
12877
12877
  }
12878
12878
  }
12879
- function H($, X) {
12880
- $.resolveAll && !s.includes($) && s.push($), $.resolve && Bt(c.events, X, c.events.length - X, $.resolve(c.events.slice(X), c)), $.resolveTo && (c.events = $.resolveTo(c.events, c));
12879
+ function H($, K) {
12880
+ $.resolveAll && !s.includes($) && s.push($), $.resolve && Bt(c.events, K, c.events.length - K, $.resolve(c.events.slice(K), c)), $.resolveTo && (c.events = $.resolveTo(c.events, c));
12881
12881
  }
12882
- function K() {
12883
- const $ = m(), X = c.previous, le = c.currentConstruct, U = c.events.length, V = Array.from(a);
12882
+ function X() {
12883
+ const $ = m(), K = c.previous, le = c.currentConstruct, U = c.events.length, V = Array.from(a);
12884
12884
  return {
12885
12885
  from: U,
12886
12886
  restore: ae
12887
12887
  };
12888
12888
  function ae() {
12889
- r = $, c.previous = X, c.currentConstruct = le, c.events.length = U, a = V, R();
12889
+ r = $, c.previous = K, c.currentConstruct = le, c.events.length = U, a = V, R();
12890
12890
  }
12891
12891
  }
12892
12892
  function R() {
@@ -13033,20 +13033,20 @@ function kA(e) {
13033
13033
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
13034
13034
  enter: {
13035
13035
  autolink: s(je),
13036
- autolinkProtocol: K,
13037
- autolinkEmail: K,
13036
+ autolinkProtocol: X,
13037
+ autolinkEmail: X,
13038
13038
  atxHeading: s(rn),
13039
13039
  blockQuote: s(yt),
13040
- characterEscape: K,
13041
- characterReference: K,
13040
+ characterEscape: X,
13041
+ characterReference: X,
13042
13042
  codeFenced: s($t),
13043
13043
  codeFencedFenceInfo: o,
13044
13044
  codeFencedFenceMeta: o,
13045
13045
  codeIndented: s($t, o),
13046
13046
  codeText: s(Ze, o),
13047
- codeTextData: K,
13048
- data: K,
13049
- codeFlowValue: K,
13047
+ codeTextData: X,
13048
+ data: X,
13049
+ codeFlowValue: X,
13050
13050
  definition: s(_t),
13051
13051
  definitionDestinationString: o,
13052
13052
  definitionLabelString: o,
@@ -13055,9 +13055,9 @@ function kA(e) {
13055
13055
  hardBreakEscape: s(Dt),
13056
13056
  hardBreakTrailing: s(Dt),
13057
13057
  htmlFlow: s(St, o),
13058
- htmlFlowData: K,
13058
+ htmlFlowData: X,
13059
13059
  htmlText: s(St, o),
13060
- htmlTextData: K,
13060
+ htmlTextData: X,
13061
13061
  image: s(pe),
13062
13062
  label: o,
13063
13063
  link: s(je),
@@ -13100,8 +13100,8 @@ function kA(e) {
13100
13100
  definitionLabelString: b,
13101
13101
  definitionTitleString: T,
13102
13102
  emphasis: u(),
13103
- hardBreakEscape: u(X),
13104
- hardBreakTrailing: u(X),
13103
+ hardBreakEscape: u(K),
13104
+ hardBreakTrailing: u(K),
13105
13105
  htmlFlow: u(le),
13106
13106
  htmlFlowData: R,
13107
13107
  htmlText: u(U),
@@ -13323,7 +13323,7 @@ function kA(e) {
13323
13323
  function H() {
13324
13324
  this.data.setextHeadingSlurpLineEnding = void 0;
13325
13325
  }
13326
- function K(F) {
13326
+ function X(F) {
13327
13327
  const ne = this.stack[this.stack.length - 1].children;
13328
13328
  let me = ne[ne.length - 1];
13329
13329
  (!me || me.type !== "text") && (me = ye(), me.position = {
@@ -13343,9 +13343,9 @@ function kA(e) {
13343
13343
  ne.position.end = Mn(F.end), this.data.atHardBreak = void 0;
13344
13344
  return;
13345
13345
  }
13346
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(G.type) && (K.call(this, F), R.call(this, F));
13346
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(G.type) && (X.call(this, F), R.call(this, F));
13347
13347
  }
13348
- function X() {
13348
+ function K() {
13349
13349
  this.data.atHardBreak = !0;
13350
13350
  }
13351
13351
  function le() {
@@ -23346,13 +23346,13 @@ var ew = (e, t) => {
23346
23346
  }), []);
23347
23347
  };
23348
23348
  function zo(e, t = {}) {
23349
- var $, X, le, U, V, ae;
23349
+ var $, K, le, U, V, ae;
23350
23350
  const n = ze(() => {
23351
23351
  const { id: W, ids: Q, getRootNode: ie } = t;
23352
23352
  return QI({ id: W, ids: Q, getRootNode: ie });
23353
23353
  }, [t]), r = (...W) => {
23354
23354
  e.debug && console.log(...W);
23355
- }, i = (X = ($ = e.props) == null ? void 0 : $.call(e, { props: Ac(t), scope: n })) != null ? X : t, s = tw(i), o = (le = e.context) == null ? void 0 : le.call(e, {
23355
+ }, i = (K = ($ = e.props) == null ? void 0 : $.call(e, { props: Ac(t), scope: n })) != null ? K : t, s = tw(i), o = (le = e.context) == null ? void 0 : le.call(e, {
23356
23356
  prop: s,
23357
23357
  bindable: uo,
23358
23358
  scope: n,
@@ -23489,12 +23489,12 @@ function zo(e, t = {}) {
23489
23489
  });
23490
23490
  };
23491
23491
  }, []);
23492
- const K = () => "ref" in N ? N.ref.current : N.get(), R = (W) => {
23492
+ const X = () => "ref" in N ? N.ref.current : N.get(), R = (W) => {
23493
23493
  queueMicrotask(() => {
23494
23494
  var P, be, Ge, Te, he;
23495
23495
  if (H.current !== Rr.Started) return;
23496
23496
  d.current = p.current, p.current = W;
23497
- let Q = K();
23497
+ let Q = X();
23498
23498
  const ie = (
23499
23499
  // @ts-ignore
23500
23500
  (Ge = (P = e.states[Q].on) == null ? void 0 : P[W.type]) != null ? Ge : (
@@ -24123,7 +24123,7 @@ const _w = 50, Sw = (e, t, n) => _e(null, null, function* () {
24123
24123
  }, m = Dc(s), E = Lc(m), S = yield a.getDimensions(l), g = m === "y", b = g ? "top" : "left", T = g ? "bottom" : "right", k = g ? "clientHeight" : "clientWidth", L = o.reference[E] + o.reference[m] - h[m] - o.floating[E], N = h[m] - o.reference[m], D = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(l);
24124
24124
  let H = D ? D[k] : 0;
24125
24125
  (!H || !(yield a.isElement == null ? void 0 : a.isElement(D))) && (H = u.floating[k] || o.floating[E]);
24126
- const K = L / 2 - N / 2, R = H / 2 - S[E] / 2 - 1, $ = Vn(p[b], R), X = Vn(p[T], R), le = H - S[E] - X, U = H / 2 - S[E] / 2 + K, V = Lm($, U, le), ae = !c.arrow && ui(s) != null && U !== V && o.reference[E] / 2 - (U < $ ? $ : X) - S[E] / 2 < 0, W = ae ? U < $ ? U - $ : U - le : 0;
24126
+ const X = L / 2 - N / 2, R = H / 2 - S[E] / 2 - 1, $ = Vn(p[b], R), K = Vn(p[T], R), le = H - S[E] - K, U = H / 2 - S[E] / 2 + X, V = Lm($, U, le), ae = !c.arrow && ui(s) != null && U !== V && o.reference[E] / 2 - (U < $ ? $ : K) - S[E] / 2 < 0, W = ae ? U < $ ? U - $ : U - le : 0;
24127
24127
  return {
24128
24128
  [m]: h[m] + W,
24129
24129
  data: x({
@@ -24169,18 +24169,18 @@ const _w = 50, Sw = (e, t, n) => _e(null, null, function* () {
24169
24169
  return {};
24170
24170
  const b = qn(s), T = ln(u), k = qn(u) === u, L = yield c.isRTL == null ? void 0 : c.isRTL(l.floating), N = h || (k || !S ? [lo(u)] : pw(u)), D = E !== "none";
24171
24171
  !h && D && N.push(...bw(u, S, E, L));
24172
- const H = [u, ...N], K = yield c.detectOverflow(n, g), R = [];
24172
+ const H = [u, ...N], X = yield c.detectOverflow(n, g), R = [];
24173
24173
  let $ = ((i = o.flip) == null ? void 0 : i.overflows) || [];
24174
- if (d && R.push(K[b]), p) {
24174
+ if (d && R.push(X[b]), p) {
24175
24175
  const ae = hw(s, a, L);
24176
- R.push(K[ae[0]], K[ae[1]]);
24176
+ R.push(X[ae[0]], X[ae[1]]);
24177
24177
  }
24178
24178
  if ($ = [...$, {
24179
24179
  placement: s,
24180
24180
  overflows: R
24181
24181
  }], !R.every((ae) => ae <= 0)) {
24182
- var X, le;
24183
- const ae = (((X = o.flip) == null ? void 0 : X.index) || 0) + 1, W = H[ae];
24182
+ var K, le;
24183
+ const ae = (((K = o.flip) == null ? void 0 : K.index) || 0) + 1, W = H[ae];
24184
24184
  if (W && (!(p === "alignment" ? T !== ln(W) : !1) || // We leave the current main axis only if every placement on that axis
24185
24185
  // overflows the main axis.
24186
24186
  $.every((C) => ln(C.placement) === T ? C.overflows[0] > 0 : !0)))
@@ -24457,8 +24457,8 @@ const Pw = function(e) {
24457
24457
  availableWidth: H,
24458
24458
  availableHeight: D
24459
24459
  }));
24460
- const K = yield s.getDimensions(o.floating);
24461
- return h !== K.width || m !== K.height ? {
24460
+ const X = yield s.getDimensions(o.floating);
24461
+ return h !== X.width || m !== X.height ? {
24462
24462
  reset: {
24463
24463
  rects: !0
24464
24464
  }
@@ -25005,8 +25005,8 @@ function c3(e, t) {
25005
25005
  return {
25006
25006
  name: "transformOrigin",
25007
25007
  fn(n) {
25008
- var K, R, $, X, le;
25009
- const { elements: r, middlewareData: i, placement: s, rects: o, y: a } = n, u = s.split("-")[0], c = u3(u), l = ((K = i.arrow) == null ? void 0 : K.x) || 0, d = ((R = i.arrow) == null ? void 0 : R.y) || 0, p = (t == null ? void 0 : t.clientWidth) || 0, h = (t == null ? void 0 : t.clientHeight) || 0, m = l + p / 2, E = d + h / 2, S = Math.abs((($ = i.shift) == null ? void 0 : $.y) || 0), g = o.reference.height / 2, b = h / 2, T = (le = (X = e.offset) == null ? void 0 : X.mainAxis) != null ? le : e.gutter, k = typeof T == "number" ? T + b : T != null ? T : b, L = S > k, N = {
25008
+ var X, R, $, K, le;
25009
+ const { elements: r, middlewareData: i, placement: s, rects: o, y: a } = n, u = s.split("-")[0], c = u3(u), l = ((X = i.arrow) == null ? void 0 : X.x) || 0, d = ((R = i.arrow) == null ? void 0 : R.y) || 0, p = (t == null ? void 0 : t.clientWidth) || 0, h = (t == null ? void 0 : t.clientHeight) || 0, m = l + p / 2, E = d + h / 2, S = Math.abs((($ = i.shift) == null ? void 0 : $.y) || 0), g = o.reference.height / 2, b = h / 2, T = (le = (K = e.offset) == null ? void 0 : K.mainAxis) != null ? le : e.gutter, k = typeof T == "number" ? T + b : T != null ? T : b, L = S > k, N = {
25010
25010
  top: `${m}px calc(100% + ${k}px)`,
25011
25011
  bottom: `${m}px ${-k}px`,
25012
25012
  left: `calc(100% + ${k}px) ${E}px`,
@@ -25380,14 +25380,14 @@ function M3(e, t) {
25380
25380
  const h = /* @__PURE__ */ new Set(), m = gr(e == null ? void 0 : e.getRootNode());
25381
25381
  function E(T) {
25382
25382
  function k(L) {
25383
- var K, R;
25384
- const N = o && !jd() ? tt : ($) => $(), D = L != null ? L : T, H = (R = (K = D == null ? void 0 : D.composedPath) == null ? void 0 : K.call(D)) != null ? R : [D == null ? void 0 : D.target];
25383
+ var X, R;
25384
+ const N = o && !jd() ? tt : ($) => $(), D = L != null ? L : T, H = (R = (X = D == null ? void 0 : D.composedPath) == null ? void 0 : X.call(D)) != null ? R : [D == null ? void 0 : D.target];
25385
25385
  N(() => {
25386
25386
  const $ = m ? H[0] : Kt(T);
25387
25387
  if (!(!e || !p(T, $))) {
25388
25388
  if (i || s) {
25389
- const X = mu(i, s);
25390
- e.addEventListener(df, X, { once: !0 });
25389
+ const K = mu(i, s);
25390
+ e.addEventListener(df, K, { once: !0 });
25391
25391
  }
25392
25392
  pf(e, df, {
25393
25393
  bubbles: !1,
@@ -25413,8 +25413,8 @@ function M3(e, t) {
25413
25413
  const L = (H = (D = T == null ? void 0 : T.composedPath) == null ? void 0 : D.call(T)) != null ? H : [T == null ? void 0 : T.target], N = m ? L[0] : Kt(T);
25414
25414
  if (!(!e || !p(T, N))) {
25415
25415
  if (r || s) {
25416
- const K = mu(r, s);
25417
- e.addEventListener(ff, K, { once: !0 });
25416
+ const X = mu(r, s);
25417
+ e.addEventListener(ff, X, { once: !0 });
25418
25418
  }
25419
25419
  pf(e, ff, {
25420
25420
  bubbles: !1,
@@ -26416,7 +26416,7 @@ ai()([
26416
26416
  "portalled",
26417
26417
  "positioning"
26418
26418
  ]);
26419
- const [O4, Wo] = _r({
26419
+ const [x4, Wo] = _r({
26420
26420
  name: "EnvironmentContext",
26421
26421
  hookName: "useEnvironmentContext",
26422
26422
  providerName: "<EnvironmentProvider />",
@@ -26426,7 +26426,7 @@ const [O4, Wo] = _r({
26426
26426
  getDocument: () => document,
26427
26427
  getWindow: () => window
26428
26428
  }
26429
- }), [P4, Uc] = _r({
26429
+ }), [I4, Uc] = _r({
26430
26430
  name: "LocaleContext",
26431
26431
  hookName: "useLocaleContext",
26432
26432
  providerName: "<LocaleProvider />",
@@ -27379,13 +27379,13 @@ const wk = 180, kk = (e) => {
27379
27379
  }, [g, h]);
27380
27380
  const b = kk(r), T = n + b, k = E > 0 ? (E + b) / T : 1, L = Math.max(1, Math.floor(k));
27381
27381
  if (h === 0) return null;
27382
- const N = h > L, D = Math.ceil(h / L), H = N ? Math.max(1, k) : L, K = u === "circle-arrow";
27382
+ const N = h > L, D = Math.ceil(h / L), H = N ? Math.max(1, k) : L, X = u === "circle-arrow";
27383
27383
  return /* @__PURE__ */ te(
27384
27384
  dg,
27385
27385
  {
27386
27386
  ref: m,
27387
27387
  className: v(e, t, `${I}-carousel`, {
27388
- [`${I}-carousel--circle-arrow-navigation`]: K
27388
+ [`${I}-carousel--circle-arrow-navigation`]: X
27389
27389
  }),
27390
27390
  slidesPerPage: H,
27391
27391
  slidesPerMove: L,
@@ -27402,10 +27402,10 @@ const wk = 180, kk = (e) => {
27402
27402
  className: v(e, `${I}-carousel__item-group`, {
27403
27403
  "carousel-row-container": !N
27404
27404
  }),
27405
- children: p.map(({ node: R, key: $ }, X) => /* @__PURE__ */ y(
27405
+ children: p.map(({ node: R, key: $ }, K) => /* @__PURE__ */ y(
27406
27406
  ig,
27407
27407
  {
27408
- index: X,
27408
+ index: K,
27409
27409
  className: v(e, `${I}-carousel__item`),
27410
27410
  children: R
27411
27411
  },
@@ -27423,7 +27423,7 @@ const wk = 180, kk = (e) => {
27423
27423
  {
27424
27424
  className: v(e, `${I}-carousel__prev-trigger`),
27425
27425
  "aria-label": "Previous slide",
27426
- children: K ? /* @__PURE__ */ y(xk, { size: "16px" }) : /* @__PURE__ */ y(uk, { size: "16px" })
27426
+ children: X ? /* @__PURE__ */ y(xk, { size: "16px" }) : /* @__PURE__ */ y(uk, { size: "16px" })
27427
27427
  }
27428
27428
  ),
27429
27429
  /* @__PURE__ */ y(
@@ -27431,7 +27431,7 @@ const wk = 180, kk = (e) => {
27431
27431
  {
27432
27432
  className: v(e, `${I}-carousel__next-trigger`),
27433
27433
  "aria-label": "Next slide",
27434
- children: K ? /* @__PURE__ */ y(Ik, { size: "16px" }) : /* @__PURE__ */ y(ck, { size: "16px" })
27434
+ children: X ? /* @__PURE__ */ y(Ik, { size: "16px" }) : /* @__PURE__ */ y(ck, { size: "16px" })
27435
27435
  }
27436
27436
  )
27437
27437
  ]
@@ -27975,22 +27975,23 @@ const Gk = ({ children: e }) => {
27975
27975
  );
27976
27976
  }, _g = ({
27977
27977
  componentType: e,
27978
- onClearChat: t,
27979
- onEndConversation: n,
27980
- onClose: r,
27981
- onDownloadTranscript: i
27978
+ overflowActions: t,
27979
+ onClearChat: n,
27980
+ onEndConversation: r,
27981
+ onClose: i,
27982
+ onDownloadTranscript: s,
27983
+ availableActions: o
27982
27984
  }) => {
27983
- const {
27984
- headerConfig: s,
27985
- globalClassName: o,
27986
- mode: a,
27987
- enableDownloadTranscript: u,
27988
- layoutPreset: c
27989
- } = Ce(), { mode: l } = Wt(), d = a === "messaging" && u && !!i, p = l === "standalone", h = e === "modal", m = h ? Qk : Sg, E = h ? Jk : Zk, S = ze(() => s ? R_(s) : {}, [s]);
27985
+ const { headerConfig: a, globalClassName: u, layoutPreset: c } = Ce(), { mode: l } = Wt(), d = l === "standalone", p = e === "modal", h = p ? Qk : Sg, m = p ? Jk : Zk, E = (R) => o === void 0 || o[R], S = (R, $ = !0) => t.includes(R) && E(R) && $, g = E("toggleExpanded"), b = S(
27986
+ p ? "toggleFullscreen" : "toggleDialogPosition"
27987
+ ), T = S("minimize"), k = S("clearChat"), L = E("close"), N = S("endConversation", !!r), D = S(
27988
+ "downloadTranscript",
27989
+ !!s
27990
+ ), H = b || T || k || N || D, X = ze(() => a ? R_(a) : {}, [a]);
27990
27991
  return /* @__PURE__ */ y(Gk, { children: /* @__PURE__ */ te(
27991
27992
  "div",
27992
27993
  {
27993
- className: v(o, `${I}-${e}-header-wrapper`),
27994
+ className: v(u, `${I}-${e}-header-wrapper`),
27994
27995
  style: {
27995
27996
  display: "flex",
27996
27997
  flexDirection: "column",
@@ -28000,28 +28001,28 @@ const Gk = ({ children: e }) => {
28000
28001
  /* @__PURE__ */ te(
28001
28002
  "div",
28002
28003
  {
28003
- className: v(o, `${I}-${e}-header`, {
28004
- standalone: p,
28005
- embedded: !p
28004
+ className: v(u, `${I}-${e}-header`, {
28005
+ standalone: d,
28006
+ embedded: !d
28006
28007
  }),
28007
- style: S,
28008
+ style: X,
28008
28009
  children: [
28009
- s != null && s.logoUrl ? /* @__PURE__ */ y(
28010
+ a != null && a.logoUrl ? /* @__PURE__ */ y(
28010
28011
  "img",
28011
28012
  {
28012
28013
  alt: "",
28013
- className: v(o, `${I}-${e}-logo`, {
28014
- standalone: p,
28015
- embedded: !p
28014
+ className: v(u, `${I}-${e}-logo`, {
28015
+ standalone: d,
28016
+ embedded: !d
28016
28017
  }),
28017
- src: s.logoUrl
28018
+ src: a.logoUrl
28018
28019
  }
28019
28020
  ) : c === "commerce" ? /* @__PURE__ */ y(
28020
28021
  "svg",
28021
28022
  {
28022
- className: v(o, `${I}-${e}-logo`, {
28023
- standalone: p,
28024
- embedded: !p
28023
+ className: v(u, `${I}-${e}-logo`, {
28024
+ standalone: d,
28025
+ embedded: !d
28025
28026
  }),
28026
28027
  viewBox: "0 0 16 16",
28027
28028
  width: "24",
@@ -28042,26 +28043,26 @@ const Gk = ({ children: e }) => {
28042
28043
  /* @__PURE__ */ y(
28043
28044
  bg,
28044
28045
  {
28045
- className: v(o, `${I}-${e}-title`, {
28046
- standalone: p,
28047
- embedded: !p
28046
+ className: v(u, `${I}-${e}-title`, {
28047
+ standalone: d,
28048
+ embedded: !d
28048
28049
  }),
28049
- children: s == null ? void 0 : s.headerText
28050
+ children: a == null ? void 0 : a.headerText
28050
28051
  }
28051
28052
  ),
28052
28053
  /* @__PURE__ */ te(
28053
28054
  "div",
28054
28055
  {
28055
- className: v(o, `${I}-${e}-controls`),
28056
+ className: v(u, `${I}-${e}-controls`),
28056
28057
  children: [
28057
- /* @__PURE__ */ y(Kk, { componentType: e }),
28058
- /* @__PURE__ */ y(m, { componentType: e, isIcon: !0 }),
28059
- /* @__PURE__ */ y(
28058
+ H && /* @__PURE__ */ y(Kk, { componentType: e }),
28059
+ g && /* @__PURE__ */ y(h, { componentType: e, isIcon: !0 }),
28060
+ L && /* @__PURE__ */ y(
28060
28061
  Rp,
28061
28062
  {
28062
- className: v(o, `cim-${e}-component`),
28063
- label: s == null ? void 0 : s.closeButtonAriaLabel,
28064
- onClick: r
28063
+ className: v(u, `cim-${e}-component`),
28064
+ label: a == null ? void 0 : a.closeButtonAriaLabel,
28065
+ onClick: i
28065
28066
  }
28066
28067
  )
28067
28068
  ]
@@ -28070,22 +28071,22 @@ const Gk = ({ children: e }) => {
28070
28071
  ]
28071
28072
  }
28072
28073
  ),
28073
- /* @__PURE__ */ te(Xk, { componentType: e, children: [
28074
- /* @__PURE__ */ y(E, { componentType: e }),
28075
- /* @__PURE__ */ y(iR, { componentType: e }),
28076
- /* @__PURE__ */ y(lm, { componentType: e, onClearChat: t }),
28077
- n && /* @__PURE__ */ y(
28074
+ H && /* @__PURE__ */ te(Xk, { componentType: e, children: [
28075
+ b && /* @__PURE__ */ y(m, { componentType: e }),
28076
+ T && /* @__PURE__ */ y(iR, { componentType: e }),
28077
+ k && /* @__PURE__ */ y(lm, { componentType: e, onClearChat: n }),
28078
+ N && r && /* @__PURE__ */ y(
28078
28079
  tR,
28079
28080
  {
28080
28081
  componentType: e,
28081
- onEndConversation: n
28082
+ onEndConversation: r
28082
28083
  }
28083
28084
  ),
28084
- d && /* @__PURE__ */ y(
28085
+ D && s && /* @__PURE__ */ y(
28085
28086
  eR,
28086
28087
  {
28087
28088
  componentType: e,
28088
- onDownloadTranscript: i
28089
+ onDownloadTranscript: s
28089
28090
  }
28090
28091
  )
28091
28092
  ] })
@@ -30280,7 +30281,7 @@ function fL(e, t, n) {
30280
30281
  U === "linePrefix") $--;
30281
30282
  else break;
30282
30283
  }
30283
- const X = $ > -1 ? r.events[$][1].type : null, le = X === "tableHead" || X === "tableRow" ? N : u;
30284
+ const K = $ > -1 ? r.events[$][1].type : null, le = K === "tableHead" || K === "tableRow" ? N : u;
30284
30285
  return le === N && r.parser.lazy[r.now().line] ? n(R) : le(R);
30285
30286
  }
30286
30287
  function u(R) {
@@ -30332,9 +30333,9 @@ function fL(e, t, n) {
30332
30333
  return R === 124 ? (e.enter("tableCellDivider"), e.consume(R), e.exit("tableCellDivider"), D) : R === null || fe(R) ? (e.exit("tableRow"), t(R)) : Ae(R) ? Pe(e, D, "whitespace")(R) : (e.enter("data"), H(R));
30333
30334
  }
30334
30335
  function H(R) {
30335
- return R === null || R === 124 || De(R) ? (e.exit("data"), D(R)) : (e.consume(R), R === 92 ? K : H);
30336
+ return R === null || R === 124 || De(R) ? (e.exit("data"), D(R)) : (e.consume(R), R === 92 ? X : H);
30336
30337
  }
30337
- function K(R) {
30338
+ function X(R) {
30338
30339
  return R === 92 || R === 124 ? (e.consume(R), H) : H(R);
30339
30340
  }
30340
30341
  }
@@ -31246,7 +31247,15 @@ const Kc = ({
31246
31247
  const t = e == null ? void 0 : e(), n = t.getRootNode();
31247
31248
  return gr(n) ? n : bn(t).body;
31248
31249
  }, ML = () => () => {
31249
- }, Kg = () => {
31250
+ }, FL = [
31251
+ "toggleDialogPosition",
31252
+ "minimize",
31253
+ "clearChat"
31254
+ ], BL = [
31255
+ "toggleFullscreen",
31256
+ "minimize",
31257
+ "clearChat"
31258
+ ], Kg = () => {
31250
31259
  const { layoutPreset: e, globalClassName: t, themeVariables: n, messageAlignment: r } = Ce(), { mode: i, status: s, dialogPosition: o, isDialogFullHeight: a, dialogWidth: u } = Wt(), { copilot: c, isLoading: l, handleUserInput: d, handleSuggestion: p, resetConversation: h } = gn(), m = qc(), { isOpen: E } = s || {}, S = i === "standalone", g = () => {
31251
31260
  wn(!1), nc();
31252
31261
  };
@@ -31283,7 +31292,15 @@ const Kc = ({
31283
31292
  ),
31284
31293
  style: u ? { width: u } : void 0,
31285
31294
  children: [
31286
- /* @__PURE__ */ y(_g, { componentType: "dialog", onClearChat: h, onClose: g }),
31295
+ /* @__PURE__ */ y(
31296
+ _g,
31297
+ {
31298
+ componentType: "dialog",
31299
+ overflowActions: FL,
31300
+ onClearChat: h,
31301
+ onClose: g
31302
+ }
31303
+ ),
31287
31304
  /* @__PURE__ */ y(
31288
31305
  zc,
31289
31306
  {
@@ -31369,7 +31386,15 @@ const Kc = ({
31369
31386
  embedded: !h
31370
31387
  }),
31371
31388
  children: [
31372
- /* @__PURE__ */ y(_g, { componentType: "modal", onClearChat: d, onClose: S }),
31389
+ /* @__PURE__ */ y(
31390
+ _g,
31391
+ {
31392
+ componentType: "modal",
31393
+ overflowActions: BL,
31394
+ onClearChat: d,
31395
+ onClose: S
31396
+ }
31397
+ ),
31373
31398
  /* @__PURE__ */ y(
31374
31399
  zc,
31375
31400
  {
@@ -31407,12 +31432,12 @@ const Kc = ({
31407
31432
  ) })
31408
31433
  }
31409
31434
  ) : /* @__PURE__ */ y("div", { children: "Loading Copilot..." }) : null;
31410
- }, FL = () => {
31435
+ }, UL = () => {
31411
31436
  const e = Wt(), {
31412
31437
  status: { type: t, isMinimized: n }
31413
31438
  } = e || { status: {} };
31414
31439
  return n ? /* @__PURE__ */ y(k_, {}) : t === "dialog" ? /* @__PURE__ */ y(Kg, {}) : t === "modal" ? /* @__PURE__ */ y(Qg, {}) : /* @__PURE__ */ y(Wg, {});
31415
- }, BL = () => {
31440
+ }, HL = () => {
31416
31441
  const { setIsOpen: e, setIsInline: t, setElementId: n, setEntryType: r, setParams: i } = ec();
31417
31442
  we(() => {
31418
31443
  const s = (o) => {
@@ -31423,7 +31448,7 @@ const Kc = ({
31423
31448
  By(s);
31424
31449
  };
31425
31450
  }, [e, t, n, r, i]);
31426
- }, UL = () => {
31451
+ }, $L = () => {
31427
31452
  const { copilot: e } = Ht(), { entryType: t, activePromptsId: n, params: r } = Rn(), {
31428
31453
  setIsInitialized: i,
31429
31454
  setActivePromptsId: s,
@@ -31431,7 +31456,7 @@ const Kc = ({
31431
31456
  setResponseMessage: a,
31432
31457
  setIsResponseLoading: u
31433
31458
  } = ec(), { getCopilotSuggestions: c } = Pp();
31434
- BL();
31459
+ HL();
31435
31460
  const l = oe(
31436
31461
  (m) => {
31437
31462
  if (!t || !m) return;
@@ -31466,7 +31491,7 @@ const Kc = ({
31466
31491
  }, Jg = {
31467
31492
  copilot: "Ask Copilot",
31468
31493
  messaging: "Ask a question"
31469
- }, HL = ({
31494
+ }, zL = ({
31470
31495
  onSubmit: e,
31471
31496
  disabled: t = !1
31472
31497
  }) => {
@@ -31508,7 +31533,7 @@ const Kc = ({
31508
31533
  ]
31509
31534
  }
31510
31535
  );
31511
- }, $L = () => {
31536
+ }, VL = () => {
31512
31537
  const { globalClassName: e, mode: t } = Ce(), { placeholder: n } = Rn(), r = n || Jg[t];
31513
31538
  return /* @__PURE__ */ te("div", { className: v(e, `${I}-prompts-header`), children: [
31514
31539
  /* @__PURE__ */ y(
@@ -31542,17 +31567,17 @@ const Kc = ({
31542
31567
  ]
31543
31568
  }
31544
31569
  );
31545
- }, zL = "Ask me something else", VL = ({
31570
+ }, qL = "Ask me something else", YL = ({
31546
31571
  label: e,
31547
31572
  disabled: t = !1
31548
31573
  }) => /* @__PURE__ */ y(
31549
31574
  Zg,
31550
31575
  {
31551
- label: e || zL,
31576
+ label: e || qL,
31552
31577
  disabled: t,
31553
31578
  onClick: () => wn(!0)
31554
31579
  }
31555
- ), qL = ({
31580
+ ), jL = ({
31556
31581
  sendCopilotPrompt: e
31557
31582
  }) => {
31558
31583
  var S, g;
@@ -31580,9 +31605,9 @@ const Kc = ({
31580
31605
  },
31581
31606
  b
31582
31607
  )),
31583
- m && /* @__PURE__ */ y(VL, { label: o, disabled: r })
31608
+ m && /* @__PURE__ */ y(YL, { label: o, disabled: r })
31584
31609
  ] });
31585
- }, YL = () => {
31610
+ }, GL = () => {
31586
31611
  const { globalClassName: e } = Ce(), { isInline: t, userPrompt: n } = Rn();
31587
31612
  return !n || !t ? null : /* @__PURE__ */ y(
31588
31613
  "div",
@@ -31591,7 +31616,7 @@ const Kc = ({
31591
31616
  children: /* @__PURE__ */ y("p", { className: v(e, `${I}-prompts-user-message`), children: n })
31592
31617
  }
31593
31618
  );
31594
- }, jL = () => {
31619
+ }, WL = () => {
31595
31620
  const { globalClassName: e, openLinksInNewTab: t, onNavigate: n } = Ce(), { isInline: r, responseMessage: i, isResponseLoading: s } = Rn();
31596
31621
  if (!r || !i && !s) return null;
31597
31622
  if (s)
@@ -31617,7 +31642,7 @@ const Kc = ({
31617
31642
  )
31618
31643
  }
31619
31644
  );
31620
- }, GL = () => {
31645
+ }, XL = () => {
31621
31646
  const { globalClassName: e, themeVariables: t } = Ce(), { connected: n, copilot: r } = Ht(), { handleCopilotRequestAck: i } = Qr(), {
31622
31647
  status: { isOpen: s }
31623
31648
  } = Wt(), {
@@ -31692,9 +31717,9 @@ const Kc = ({
31692
31717
  className: v(e, `${I}-prompts-extension-container`),
31693
31718
  style: t,
31694
31719
  children: [
31695
- p && /* @__PURE__ */ y(HL, { onSubmit: k }),
31696
- !p && /* @__PURE__ */ y($L, {}),
31697
- h && /* @__PURE__ */ y(qL, { sendCopilotPrompt: k }),
31720
+ p && /* @__PURE__ */ y(zL, { onSubmit: k }),
31721
+ !p && /* @__PURE__ */ y(VL, {}),
31722
+ h && /* @__PURE__ */ y(jL, { sendCopilotPrompt: k }),
31698
31723
  /* @__PURE__ */ te(
31699
31724
  "div",
31700
31725
  {
@@ -31703,8 +31728,8 @@ const Kc = ({
31703
31728
  `${I}-prompts-extension-messages-container`
31704
31729
  ),
31705
31730
  children: [
31706
- /* @__PURE__ */ y(YL, {}),
31707
- /* @__PURE__ */ y(jL, {})
31731
+ /* @__PURE__ */ y(GL, {}),
31732
+ /* @__PURE__ */ y(WL, {})
31708
31733
  ]
31709
31734
  }
31710
31735
  )
@@ -31713,16 +31738,16 @@ const Kc = ({
31713
31738
  ),
31714
31739
  b
31715
31740
  );
31716
- }, WL = () => /* @__PURE__ */ te(Qt, { children: [
31717
- /* @__PURE__ */ y(UL, {}),
31718
- /* @__PURE__ */ y(GL, {})
31741
+ }, KL = () => /* @__PURE__ */ te(Qt, { children: [
31742
+ /* @__PURE__ */ y($L, {}),
31743
+ /* @__PURE__ */ y(XL, {})
31719
31744
  ] }), eE = (e) => /* @__PURE__ */ te(xp, q(x({}, e), { children: [
31720
- /* @__PURE__ */ y(FL, {}),
31721
- /* @__PURE__ */ y(WL, {})
31745
+ /* @__PURE__ */ y(UL, {}),
31746
+ /* @__PURE__ */ y(KL, {})
31722
31747
  ] })), Bf = /* @__PURE__ */ new WeakMap(), tE = (e, t) => {
31723
31748
  let n = Bf.get(e);
31724
31749
  n || (n = dE(e), Bf.set(e, n)), n.render(/* @__PURE__ */ y(eE, x({}, t)));
31725
- }, XL = (r) => {
31750
+ }, QL = (r) => {
31726
31751
  var i = r, {
31727
31752
  elementId: e,
31728
31753
  timeout: t = 5e3
@@ -31747,7 +31772,7 @@ const Kc = ({
31747
31772
  `Element with id: ${e} not found within ${t} milliseconds, stopping observation`
31748
31773
  );
31749
31774
  }, t), a;
31750
- }, KL = (r) => {
31775
+ }, JL = (r) => {
31751
31776
  var i = r, {
31752
31777
  timeout: e,
31753
31778
  elementId: t
@@ -31761,11 +31786,11 @@ const Kc = ({
31761
31786
  }
31762
31787
  const s = document.getElementById(t);
31763
31788
  if (!s) {
31764
- Fr(!0, "warn", "Container element not found for id:", t), Fr(!0, "warn", "Beginning observation for element"), XL(x({ elementId: t, timeout: e }, n));
31789
+ Fr(!0, "warn", "Container element not found for id:", t), Fr(!0, "warn", "Beginning observation for element"), QL(x({ elementId: t, timeout: e }, n));
31765
31790
  return;
31766
31791
  }
31767
31792
  tE(s, n);
31768
- }, QL = {
31793
+ }, ZL = {
31769
31794
  search: t_,
31770
31795
  browse: Ry,
31771
31796
  pdp: {
@@ -31789,25 +31814,25 @@ const Kc = ({
31789
31814
  getProductViewPrompts: zy
31790
31815
  },
31791
31816
  session: Xy
31792
- }, JL = () => Object.freeze({
31817
+ }, e4 = () => Object.freeze({
31793
31818
  search: Object.freeze(Be.state),
31794
31819
  browse: Object.freeze(ke.state),
31795
31820
  pdp: Object.freeze(Zt.state),
31796
31821
  isConnected: Se.state.connected,
31797
31822
  isOpen: Se.isOpen,
31798
31823
  entryType: Se.entryType
31799
- }), x4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31824
+ }), w4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31800
31825
  __proto__: null,
31801
31826
  CopilotDialog: Kg,
31802
31827
  CopilotEmbed: Wg,
31803
31828
  CopilotModal: Qg,
31804
31829
  CopilotWidget: eE,
31805
31830
  CopilotWidgetProvider: xp,
31806
- eventHandlers: QL,
31807
- injectCopilotWidget: KL,
31808
- state: JL,
31831
+ eventHandlers: ZL,
31832
+ injectCopilotWidget: JL,
31833
+ state: e4,
31809
31834
  useCopilot: gn
31810
31835
  }, Symbol.toStringTag, { value: "Module" }));
31811
31836
  export {
31812
- x4 as default
31837
+ w4 as default
31813
31838
  };