@cimulate/copilot-widget 1.55.4 → 1.55.5

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.
@@ -1,14 +1,14 @@
1
1
  var Qg = Object.defineProperty, Jg = Object.defineProperties;
2
2
  var Zg = Object.getOwnPropertyDescriptors;
3
- var Es = Object.getOwnPropertySymbols;
3
+ var bs = Object.getOwnPropertySymbols;
4
4
  var Zc = Object.prototype.hasOwnProperty, el = Object.prototype.propertyIsEnumerable;
5
5
  var Cr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), eE = (e) => {
6
6
  throw TypeError(e);
7
7
  }, li = Math.pow, Ko = (e, t, n) => t in e ? Qg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
8
8
  for (var n in t || (t = {}))
9
9
  Zc.call(t, n) && Ko(e, n, t[n]);
10
- if (Es)
11
- for (var n of Es(t))
10
+ if (bs)
11
+ for (var n of bs(t))
12
12
  el.call(t, n) && Ko(e, n, t[n]);
13
13
  return e;
14
14
  }, q = (e, t) => Jg(e, Zg(t));
@@ -16,8 +16,8 @@ var dt = (e, t) => {
16
16
  var n = {};
17
17
  for (var r in e)
18
18
  Zc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
19
- if (e != null && Es)
20
- for (var r of Es(e))
19
+ if (e != null && bs)
20
+ for (var r of bs(e))
21
21
  t.indexOf(r) < 0 && el.call(e, r) && (n[r] = e[r]);
22
22
  return n;
23
23
  };
@@ -39,7 +39,7 @@ var _e = (e, t, n) => new Promise((r, i) => {
39
39
  a((n = n.apply(e, t)).next());
40
40
  }), sn = function(e, t) {
41
41
  this[0] = e, this[1] = t;
42
- }, bs = (e, t, n) => {
42
+ }, Ts = (e, t, n) => {
43
43
  var r = (a, u, c, l) => {
44
44
  try {
45
45
  var d = n[a](u), p = (u = d.value) instanceof sn, h = d.done;
@@ -68,7 +68,7 @@ var _e = (e, t, n) => new Promise((r, i) => {
68
68
  }, "return" in t && r("return"), i;
69
69
  }, tl = (e, t, n) => (t = e[Cr("asyncIterator")]) ? t.call(e) : (e = e[Cr("iterator")](), t = {}, n = (r, i) => (i = e[r]) && (t[r] = (s) => new Promise((o, a, u) => (s = i.call(e, s), u = s.done, Promise.resolve(s.value).then((c) => o({ value: c, done: u }), a)))), n("next"), n("return"), t);
70
70
  import { jsx as y, jsxs as te, Fragment as Bt } from "react/jsx-runtime";
71
- import sr, { useMemo as ze, useReducer as tE, createContext as Rt, useEffect as we, useContext as Nt, useCallback as oe, useRef as Fe, useState as xe, useId as mo, useLayoutEffect as Hf, memo as nE, forwardRef as ft, createElement as rE, isValidElement as $f, Children as zf, cloneElement as iE, useSyncExternalStore as sE } from "react";
71
+ import sr, { useMemo as ze, useReducer as tE, createContext as Rt, useEffect as we, useContext as Nt, useCallback as oe, useRef as Fe, useState as xe, useId as Ji, useLayoutEffect as Hf, memo as nE, forwardRef as ft, createElement as rE, isValidElement as $f, Children as zf, cloneElement as iE, useSyncExternalStore as sE } from "react";
72
72
  import { createPortal as Iu, flushSync as wu } from "react-dom";
73
73
  import { createRoot as oE } from "react-dom/client";
74
74
  const pn = /* @__PURE__ */ Object.create(null);
@@ -79,9 +79,9 @@ pn.pong = "3";
79
79
  pn.message = "4";
80
80
  pn.upgrade = "5";
81
81
  pn.noop = "6";
82
- const Ls = /* @__PURE__ */ Object.create(null);
82
+ const Ds = /* @__PURE__ */ Object.create(null);
83
83
  Object.keys(pn).forEach((e) => {
84
- Ls[pn[e]] = e;
84
+ Ds[pn[e]] = e;
85
85
  });
86
86
  const Ba = { type: "error", data: "parser error" }, Vf = typeof Blob == "function" || typeof Blob != "undefined" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", qf = typeof ArrayBuffer == "function", Yf = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, ku = ({ type: e, data: t }, n, r) => Vf && t instanceof Blob ? n ? r(t) : nl(t, r) : qf && (t instanceof ArrayBuffer || Yf(t)) ? n ? r(t) : nl(new Blob([t]), r) : r(pn[e] + (t || "")), nl = (e, t) => {
87
87
  const n = new FileReader();
@@ -123,11 +123,11 @@ const uE = (e) => {
123
123
  return n === "b" ? {
124
124
  type: "message",
125
125
  data: lE(e.substring(1), t)
126
- } : Ls[n] ? e.length > 1 ? {
127
- type: Ls[n],
126
+ } : Ds[n] ? e.length > 1 ? {
127
+ type: Ds[n],
128
128
  data: e.substring(1)
129
129
  } : {
130
- type: Ls[n]
130
+ type: Ds[n]
131
131
  } : Ba;
132
132
  }, lE = (e, t) => {
133
133
  if (cE) {
@@ -175,10 +175,10 @@ function hE() {
175
175
  });
176
176
  }
177
177
  let Zo;
178
- function Ts(e) {
178
+ function ys(e) {
179
179
  return e.reduce((t, n) => t + n.length, 0);
180
180
  }
181
- function ys(e, t) {
181
+ function _s(e, t) {
182
182
  if (e[0].length === t)
183
183
  return e.shift();
184
184
  const n = new Uint8Array(t);
@@ -195,28 +195,28 @@ function pE(e, t) {
195
195
  transform(o, a) {
196
196
  for (n.push(o); ; ) {
197
197
  if (r === 0) {
198
- if (Ts(n) < 1)
198
+ if (ys(n) < 1)
199
199
  break;
200
- const u = ys(n, 1);
200
+ const u = _s(n, 1);
201
201
  s = (u[0] & 128) === 128, i = u[0] & 127, i < 126 ? r = 3 : i === 126 ? r = 1 : r = 2;
202
202
  } else if (r === 1) {
203
- if (Ts(n) < 2)
203
+ if (ys(n) < 2)
204
204
  break;
205
- const u = ys(n, 2);
205
+ const u = _s(n, 2);
206
206
  i = new DataView(u.buffer, u.byteOffset, u.length).getUint16(0), r = 3;
207
207
  } else if (r === 2) {
208
- if (Ts(n) < 8)
208
+ if (ys(n) < 8)
209
209
  break;
210
- const u = ys(n, 8), c = new DataView(u.buffer, u.byteOffset, u.length), l = c.getUint32(0);
210
+ const u = _s(n, 8), c = new DataView(u.buffer, u.byteOffset, u.length), l = c.getUint32(0);
211
211
  if (l > Math.pow(2, 21) - 1) {
212
212
  a.enqueue(Ba);
213
213
  break;
214
214
  }
215
215
  i = l * Math.pow(2, 32) + c.getUint32(4), r = 3;
216
216
  } else {
217
- if (Ts(n) < i)
217
+ if (ys(n) < i)
218
218
  break;
219
- const u = ys(n, i);
219
+ const u = _s(n, i);
220
220
  a.enqueue(Ru(s ? u : Zo.decode(u), t)), r = 0;
221
221
  }
222
222
  if (i === 0 || i > e) {
@@ -849,9 +849,9 @@ function BE(e, t) {
849
849
  i && (n[i] = s);
850
850
  }), n;
851
851
  }
852
- const Ha = typeof addEventListener == "function" && typeof removeEventListener == "function", Ds = [];
852
+ const Ha = typeof addEventListener == "function" && typeof removeEventListener == "function", vs = [];
853
853
  Ha && addEventListener("offline", () => {
854
- Ds.forEach((e) => e());
854
+ vs.forEach((e) => e());
855
855
  }, !1);
856
856
  class $n extends Qe {
857
857
  /**
@@ -888,7 +888,7 @@ class $n extends Qe {
888
888
  this._onClose("transport close", {
889
889
  description: "network connection lost"
890
890
  });
891
- }, Ds.push(this._offlineEventListener))), this.opts.withCredentials && (this._cookieJar = void 0), this._open();
891
+ }, vs.push(this._offlineEventListener))), this.opts.withCredentials && (this._cookieJar = void 0), this._open();
892
892
  }
893
893
  /**
894
894
  * Creates transport of the given type.
@@ -1116,8 +1116,8 @@ class $n extends Qe {
1116
1116
  _onClose(t, n) {
1117
1117
  if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
1118
1118
  if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Ha && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
1119
- const r = Ds.indexOf(this._offlineEventListener);
1120
- r !== -1 && Ds.splice(r, 1);
1119
+ const r = vs.indexOf(this._offlineEventListener);
1120
+ r !== -1 && vs.splice(r, 1);
1121
1121
  }
1122
1122
  this.readyState = "closed", this.id = null, this.emitReserved("close", t, n), this.writeBuffer = [], this._prevBufferLen = 0;
1123
1123
  }
@@ -1212,29 +1212,29 @@ const zE = typeof ArrayBuffer == "function", VE = (e) => typeof ArrayBuffer.isVi
1212
1212
  function Du(e) {
1213
1213
  return zE && (e instanceof ArrayBuffer || VE(e)) || qE && e instanceof Blob || YE && e instanceof File;
1214
1214
  }
1215
- function vs(e, t) {
1215
+ function Ms(e, t) {
1216
1216
  if (!e || typeof e != "object")
1217
1217
  return !1;
1218
1218
  if (Array.isArray(e)) {
1219
1219
  for (let n = 0, r = e.length; n < r; n++)
1220
- if (vs(e[n]))
1220
+ if (Ms(e[n]))
1221
1221
  return !0;
1222
1222
  return !1;
1223
1223
  }
1224
1224
  if (Du(e))
1225
1225
  return !0;
1226
1226
  if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1)
1227
- return vs(e.toJSON(), !0);
1227
+ return Ms(e.toJSON(), !0);
1228
1228
  for (const n in e)
1229
- if (Object.prototype.hasOwnProperty.call(e, n) && vs(e[n]))
1229
+ if (Object.prototype.hasOwnProperty.call(e, n) && Ms(e[n]))
1230
1230
  return !0;
1231
1231
  return !1;
1232
1232
  }
1233
1233
  function jE(e) {
1234
1234
  const t = [], n = e.data, r = e;
1235
- return r.data = Ms(n, t), r.attachments = t.length, { packet: r, buffers: t };
1235
+ return r.data = Fs(n, t), r.attachments = t.length, { packet: r, buffers: t };
1236
1236
  }
1237
- function Ms(e, t, n) {
1237
+ function Fs(e, t, n) {
1238
1238
  if (!e)
1239
1239
  return e;
1240
1240
  if (Du(e)) {
@@ -1243,14 +1243,14 @@ function Ms(e, t, n) {
1243
1243
  } else if (Array.isArray(e)) {
1244
1244
  const r = new Array(e.length);
1245
1245
  for (let i = 0; i < e.length; i++)
1246
- r[i] = Ms(e[i], t);
1246
+ r[i] = Fs(e[i], t);
1247
1247
  return r;
1248
1248
  } else if (typeof e == "object" && !(e instanceof Date)) {
1249
1249
  if (e.toJSON && typeof e.toJSON == "function" && !n)
1250
- return Ms(e.toJSON(), t, !0);
1250
+ return Fs(e.toJSON(), t, !0);
1251
1251
  const r = {};
1252
1252
  for (const i in e)
1253
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = Ms(e[i], t));
1253
+ Object.prototype.hasOwnProperty.call(e, i) && (r[i] = Fs(e[i], t));
1254
1254
  return r;
1255
1255
  }
1256
1256
  return e;
@@ -1307,7 +1307,7 @@ class XE {
1307
1307
  * @param {Object} obj - packet object
1308
1308
  */
1309
1309
  encode(t) {
1310
- return (t.type === Oe.EVENT || t.type === Oe.ACK) && vs(t) ? this.encodeAsBinary({
1310
+ return (t.type === Oe.EVENT || t.type === Oe.ACK) && Ms(t) ? this.encodeAsBinary({
1311
1311
  type: t.type === Oe.EVENT ? Oe.BINARY_EVENT : Oe.BINARY_ACK,
1312
1312
  nsp: t.nsp,
1313
1313
  data: t.data,
@@ -2357,17 +2357,17 @@ class za extends Qe {
2357
2357
  }
2358
2358
  }
2359
2359
  const di = {};
2360
- function Fs(e, t) {
2360
+ function Bs(e, t) {
2361
2361
  typeof e == "object" && (t = e, e = void 0), t = t || {};
2362
2362
  const n = $E(e, t.path || "/socket.io"), r = n.source, i = n.id, s = n.path, o = di[i] && s in di[i].nsps, a = t.forceNew || t["force new connection"] || t.multiplex === !1 || o;
2363
2363
  let u;
2364
2364
  return a ? u = new za(r, t) : (di[i] || (di[i] = new za(r, t)), u = di[i]), n.query && !t.query && (t.query = n.queryKey), u.socket(n.path, t);
2365
2365
  }
2366
- Object.assign(Fs, {
2366
+ Object.assign(Bs, {
2367
2367
  Manager: za,
2368
2368
  Socket: th,
2369
- io: Fs,
2370
- connect: Fs
2369
+ io: Bs,
2370
+ connect: Bs
2371
2371
  });
2372
2372
  var e1 = function(e) {
2373
2373
  return /* @__PURE__ */ (function(t) {
@@ -2473,15 +2473,15 @@ const o1 = typeof ArrayBuffer == "function", nh = Object.prototype.toString, a1
2473
2473
  function Mu(e) {
2474
2474
  return o1 && (e instanceof ArrayBuffer || ((t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer)(e)) || a1 && e instanceof Blob || u1 && e instanceof File;
2475
2475
  }
2476
- function Bs(e, t) {
2476
+ function Us(e, t) {
2477
2477
  if (!e || typeof e != "object") return !1;
2478
2478
  if (Array.isArray(e)) {
2479
- for (let n = 0, r = e.length; n < r; n++) if (Bs(e[n])) return !0;
2479
+ for (let n = 0, r = e.length; n < r; n++) if (Us(e[n])) return !0;
2480
2480
  return !1;
2481
2481
  }
2482
2482
  if (Mu(e)) return !0;
2483
- if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1) return Bs(e.toJSON(), !0);
2484
- for (const n in e) if (Object.prototype.hasOwnProperty.call(e, n) && Bs(e[n])) return !0;
2483
+ if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1) return Us(e.toJSON(), !0);
2484
+ for (const n in e) if (Object.prototype.hasOwnProperty.call(e, n) && Us(e[n])) return !0;
2485
2485
  return !1;
2486
2486
  }
2487
2487
  function c1(e) {
@@ -2529,7 +2529,7 @@ class f1 {
2529
2529
  this.replacer = t;
2530
2530
  }
2531
2531
  encode(t) {
2532
- return t.type !== Ye.EVENT && t.type !== Ye.ACK || !Bs(t) ? [this.encodeAsString(t)] : this.encodeAsBinary({ type: t.type === Ye.EVENT ? Ye.BINARY_EVENT : Ye.BINARY_ACK, nsp: t.nsp, data: t.data, id: t.id });
2532
+ return t.type !== Ye.EVENT && t.type !== Ye.ACK || !Us(t) ? [this.encodeAsString(t)] : this.encodeAsBinary({ type: t.type === Ye.EVENT ? Ye.BINARY_EVENT : Ye.BINARY_ACK, nsp: t.nsp, data: t.data, id: t.id });
2533
2533
  }
2534
2534
  encodeAsString(t) {
2535
2535
  let n = "" + t.type;
@@ -2677,7 +2677,7 @@ class b1 {
2677
2677
  const u = `${r}${i}`, c = {};
2678
2678
  t ? c["x-cimulate-api-key"] = t : n && (c.Authorization = `Bearer ${n}`), s && (c["x-cimulate-customer-id"] = s), o && (c["Tenant-ID"] = o);
2679
2679
  const l = [E1, a, { parser: g1, withCredentials: !0, transportOptions: { polling: { extraHeaders: c } } }];
2680
- this.socket = Fs(u, i1.all(l));
2680
+ this.socket = Bs(u, i1.all(l));
2681
2681
  }
2682
2682
  connect() {
2683
2683
  this.reconnectTimeout && (clearTimeout(this.reconnectTimeout), this.reconnectTimeout = void 0, this.reconnectAttempts = 0), this.offInternalHandlers(), this.on("connect_ack", this.handleConnectAck), this.socket.on("disconnect", this.handleDisconnect), this.on("connect_error", this.handleConnectError), this.socket.auth && this.sessionIdKey in this.socket.auth && (this.socket.auth = {}), this.socket.connect();
@@ -2782,7 +2782,7 @@ class b1 {
2782
2782
  if (r) return void this.socket.emit(t, n, r);
2783
2783
  let i = "";
2784
2784
  const s = (function(o) {
2785
- return bs(this, null, function* () {
2785
+ return Ts(this, null, function* () {
2786
2786
  const a = [];
2787
2787
  let u = !1, c = null;
2788
2788
  const l = yield new sn(o({ emit: (d) => {
@@ -2831,7 +2831,7 @@ function zr(e) {
2831
2831
  }
2832
2832
  function xn(e) {
2833
2833
  var t;
2834
- return e ? uh(e) || Array.isArray(e) || !!e[fl] || !!((t = e.constructor) != null && t[fl]) || Ji(e) || To(e) : !1;
2834
+ return e ? uh(e) || Array.isArray(e) || !!e[fl] || !!((t = e.constructor) != null && t[fl]) || Zi(e) || To(e) : !1;
2835
2835
  }
2836
2836
  var T1 = Object.prototype.constructor.toString();
2837
2837
  function uh(e) {
@@ -2850,7 +2850,7 @@ function Ui(e, t) {
2850
2850
  }
2851
2851
  function bo(e) {
2852
2852
  const t = e[Ie];
2853
- return t ? t.type_ : Array.isArray(e) ? 1 : Ji(e) ? 2 : To(e) ? 3 : 0;
2853
+ return t ? t.type_ : Array.isArray(e) ? 1 : Zi(e) ? 2 : To(e) ? 3 : 0;
2854
2854
  }
2855
2855
  function Ya(e, t) {
2856
2856
  return bo(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
@@ -2862,7 +2862,7 @@ function ch(e, t, n) {
2862
2862
  function y1(e, t) {
2863
2863
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
2864
2864
  }
2865
- function Ji(e) {
2865
+ function Zi(e) {
2866
2866
  return e instanceof Map;
2867
2867
  }
2868
2868
  function To(e) {
@@ -2872,7 +2872,7 @@ function it(e) {
2872
2872
  return e.copy_ || e.base_;
2873
2873
  }
2874
2874
  function ja(e, t) {
2875
- if (Ji(e))
2875
+ if (Zi(e))
2876
2876
  return new Map(e);
2877
2877
  if (To(e))
2878
2878
  return new Set(e);
@@ -2904,13 +2904,13 @@ function ja(e, t) {
2904
2904
  }
2905
2905
  function Bu(e, t = !1) {
2906
2906
  return yo(e) || zr(e) || !xn(e) || (bo(e) > 1 && Object.defineProperties(e, {
2907
- set: { value: _s },
2908
- add: { value: _s },
2909
- clear: { value: _s },
2910
- delete: { value: _s }
2907
+ set: { value: Ss },
2908
+ add: { value: Ss },
2909
+ clear: { value: Ss },
2910
+ delete: { value: Ss }
2911
2911
  }), Object.freeze(e), t && Object.values(e).forEach((n) => Bu(n, !0))), e;
2912
2912
  }
2913
- function _s() {
2913
+ function Ss() {
2914
2914
  Gt(2);
2915
2915
  }
2916
2916
  function yo(e) {
@@ -2925,7 +2925,7 @@ function _1(e, t) {
2925
2925
  Ga[e] || (Ga[e] = t);
2926
2926
  }
2927
2927
  var Hi;
2928
- function Xs() {
2928
+ function Ks() {
2929
2929
  return Hi;
2930
2930
  }
2931
2931
  function S1(e, t) {
@@ -2958,14 +2958,14 @@ function A1(e) {
2958
2958
  function ml(e, t) {
2959
2959
  t.unfinalizedDrafts_ = t.drafts_.length;
2960
2960
  const n = t.drafts_[0];
2961
- return e !== void 0 && e !== n ? (n[Ie].modified_ && (Wa(t), Gt(4)), xn(e) && (e = Ks(t, e), t.parent_ || Qs(t, e)), t.patches_ && cr("Patches").generateReplacementPatches_(
2961
+ return e !== void 0 && e !== n ? (n[Ie].modified_ && (Wa(t), Gt(4)), xn(e) && (e = Qs(t, e), t.parent_ || Js(t, e)), t.patches_ && cr("Patches").generateReplacementPatches_(
2962
2962
  n[Ie].base_,
2963
2963
  e,
2964
2964
  t.patches_,
2965
2965
  t.inversePatches_
2966
- )) : e = Ks(t, n, []), Wa(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== ah ? e : void 0;
2966
+ )) : e = Qs(t, n, []), Wa(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== ah ? e : void 0;
2967
2967
  }
2968
- function Ks(e, t, n) {
2968
+ function Qs(e, t, n) {
2969
2969
  if (yo(t))
2970
2970
  return t;
2971
2971
  const r = t[Ie];
@@ -2977,7 +2977,7 @@ function Ks(e, t, n) {
2977
2977
  if (r.scope_ !== e)
2978
2978
  return t;
2979
2979
  if (!r.modified_)
2980
- return Qs(e, r.base_, !0), r.base_;
2980
+ return Js(e, r.base_, !0), r.base_;
2981
2981
  if (!r.finalized_) {
2982
2982
  r.finalized_ = !0, r.scope_.unfinalizedDrafts_--;
2983
2983
  const i = r.copy_;
@@ -2985,7 +2985,7 @@ function Ks(e, t, n) {
2985
2985
  r.type_ === 3 && (s = new Set(i), i.clear(), o = !0), Ui(
2986
2986
  s,
2987
2987
  (a, u) => gl(e, r, i, a, u, n, o)
2988
- ), Qs(e, i, !1), n && e.patches_ && cr("Patches").generatePatches_(
2988
+ ), Js(e, i, !1), n && e.patches_ && cr("Patches").generatePatches_(
2989
2989
  r,
2990
2990
  n,
2991
2991
  e.patches_,
@@ -2997,7 +2997,7 @@ function Ks(e, t, n) {
2997
2997
  function gl(e, t, n, r, i, s, o) {
2998
2998
  if (zr(i)) {
2999
2999
  const a = s && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
3000
- !Ya(t.assigned_, r) ? s.concat(r) : void 0, u = Ks(e, i, a);
3000
+ !Ya(t.assigned_, r) ? s.concat(r) : void 0, u = Qs(e, i, a);
3001
3001
  if (ch(n, r, u), zr(u))
3002
3002
  e.canAutoFreeze_ = !1;
3003
3003
  else
@@ -3006,17 +3006,17 @@ function gl(e, t, n, r, i, s, o) {
3006
3006
  if (xn(i) && !yo(i)) {
3007
3007
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
3008
3008
  return;
3009
- Ks(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (Ji(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && Qs(e, i);
3009
+ Qs(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (Zi(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && Js(e, i);
3010
3010
  }
3011
3011
  }
3012
- function Qs(e, t, n = !1) {
3012
+ function Js(e, t, n = !1) {
3013
3013
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Bu(t, n);
3014
3014
  }
3015
3015
  function C1(e, t) {
3016
3016
  const n = Array.isArray(e), r = {
3017
3017
  type_: n ? 1 : 0,
3018
3018
  // Track which produce call this is associated with.
3019
- scope_: t ? t.scope_ : Xs(),
3019
+ scope_: t ? t.scope_ : Ks(),
3020
3020
  // True for both shallow and deep changes.
3021
3021
  modified_: !1,
3022
3022
  // Used during finalization.
@@ -3225,8 +3225,8 @@ var O1 = class {
3225
3225
  }
3226
3226
  };
3227
3227
  function zi(e, t) {
3228
- const n = Ji(e) ? cr("MapSet").proxyMap_(e, t) : To(e) ? cr("MapSet").proxySet_(e, t) : C1(e, t);
3229
- return (t ? t.scope_ : Xs()).drafts_.push(n), n;
3228
+ const n = Zi(e) ? cr("MapSet").proxyMap_(e, t) : To(e) ? cr("MapSet").proxySet_(e, t) : C1(e, t);
3229
+ return (t ? t.scope_ : Ks()).drafts_.push(n), n;
3230
3230
  }
3231
3231
  function P1(e) {
3232
3232
  return zr(e) || Gt(10, e), dh(e);
@@ -3252,7 +3252,7 @@ function x1() {
3252
3252
  super(), this[Ie] = {
3253
3253
  type_: 2,
3254
3254
  parent_: c,
3255
- scope_: c ? c.scope_ : Xs(),
3255
+ scope_: c ? c.scope_ : Ks(),
3256
3256
  modified_: !1,
3257
3257
  finalized_: !1,
3258
3258
  copy_: void 0,
@@ -3347,7 +3347,7 @@ function x1() {
3347
3347
  super(), this[Ie] = {
3348
3348
  type_: 3,
3349
3349
  parent_: c,
3350
- scope_: c ? c.scope_ : Xs(),
3350
+ scope_: c ? c.scope_ : Ks(),
3351
3351
  modified_: !1,
3352
3352
  finalized_: !1,
3353
3353
  copy_: void 0,
@@ -3570,7 +3570,7 @@ function Th(e, t) {
3570
3570
  return e.apply(t, arguments);
3571
3571
  };
3572
3572
  }
3573
- const { toString: F1 } = Object.prototype, { getPrototypeOf: zn } = Object, { iterator: Zi, toStringTag: yh } = Symbol, Vi = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _h = (e) => typeof e == "string" && (e === "__proto__" || e === "constructor" || e === "prototype"), Sh = (e, t, n) => e === Object.prototype || !n && t === null, B1 = (e) => {
3573
+ const { toString: F1 } = Object.prototype, { getPrototypeOf: zn } = Object, { iterator: es, toStringTag: yh } = Symbol, Vi = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _h = (e) => typeof e == "string" && (e === "__proto__" || e === "constructor" || e === "prototype"), Sh = (e, t, n) => e === Object.prototype || !n && t === null, B1 = (e) => {
3574
3574
  if (!Object.isExtensible(e))
3575
3575
  return !1;
3576
3576
  const t = Object.getOwnPropertyNames(e);
@@ -3627,14 +3627,14 @@ function $1(e) {
3627
3627
  let t;
3628
3628
  return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ah(e.buffer), t;
3629
3629
  }
3630
- const z1 = _o("string"), kt = _o("function"), Ch = _o("number"), Kr = (e) => e !== null && typeof e == "object", V1 = (e) => e === !0 || e === !1, Us = (e) => {
3630
+ const z1 = _o("string"), kt = _o("function"), Ch = _o("number"), Kr = (e) => e !== null && typeof e == "object", V1 = (e) => e === !0 || e === !1, Hs = (e) => {
3631
3631
  if (!Kr(e))
3632
3632
  return !1;
3633
3633
  const t = zn(e);
3634
3634
  return (t === null || t === Object.prototype || zn(t) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
3635
3635
  // evidence the value is tagged/iterable, while ignoring members reachable
3636
3636
  // only through shared or terminal prototype boundaries.
3637
- !qi(e, yh) && !qi(e, Zi);
3637
+ !qi(e, yh) && !qi(e, es);
3638
3638
  }, q1 = (e) => {
3639
3639
  if (!Kr(e) || Xr(e))
3640
3640
  return !1;
@@ -3661,7 +3661,7 @@ const El = Z1(), bl = typeof El.FormData != "undefined" ? El.FormData : void 0,
3661
3661
  "Response",
3662
3662
  "Headers"
3663
3663
  ].map(Wt), ob = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3664
- function es(e, t, { allOwnKeys: n = !1 } = {}) {
3664
+ function ts(e, t, { allOwnKeys: n = !1 } = {}) {
3665
3665
  if (e === null || typeof e == "undefined")
3666
3666
  return;
3667
3667
  let r, i;
@@ -3694,11 +3694,11 @@ function Ka(...e) {
3694
3694
  if (o === "__proto__" || o === "constructor" || o === "prototype")
3695
3695
  return;
3696
3696
  const a = t && typeof o == "string" && Nh(r, o) || o, u = Vi(r, a) ? r[a] : void 0;
3697
- Us(u) && Us(s) ? r[a] = Ka(u, s) : Us(s) ? r[a] = Ka({}, s) : lr(s) ? r[a] = s.slice() : (!n || !dr(s)) && (r[a] = s);
3697
+ Hs(u) && Hs(s) ? r[a] = Ka(u, s) : Hs(s) ? r[a] = Ka({}, s) : lr(s) ? r[a] = s.slice() : (!n || !dr(s)) && (r[a] = s);
3698
3698
  };
3699
3699
  for (let s = 0, o = e.length; s < o; s++) {
3700
3700
  const a = e[s];
3701
- if (!a || Xr(a) || (es(a, i), typeof a != "object" || lr(a)))
3701
+ if (!a || Xr(a) || (ts(a, i), typeof a != "object" || lr(a)))
3702
3702
  continue;
3703
3703
  const u = Object.getOwnPropertySymbols(a);
3704
3704
  for (let c = 0; c < u.length; c++) {
@@ -3708,7 +3708,7 @@ function Ka(...e) {
3708
3708
  }
3709
3709
  return r;
3710
3710
  }
3711
- const ab = (e, t, n, { allOwnKeys: r } = {}) => (es(
3711
+ const ab = (e, t, n, { allOwnKeys: r } = {}) => (ts(
3712
3712
  t,
3713
3713
  (i, s) => {
3714
3714
  n && kt(i) ? Object.defineProperty(e, s, {
@@ -3763,7 +3763,7 @@ const ab = (e, t, n, { allOwnKeys: r } = {}) => (es(
3763
3763
  n[t] = e[t];
3764
3764
  return n;
3765
3765
  }, hb = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array != "undefined" && zn(Uint8Array)), pb = (e, t) => {
3766
- const r = (e && e[Zi]).call(e);
3766
+ const r = (e && e[es]).call(e);
3767
3767
  let i;
3768
3768
  for (; (i = r.next()) && !i.done; ) {
3769
3769
  const s = i.value;
@@ -3779,7 +3779,7 @@ const ab = (e, t, n, { allOwnKeys: r } = {}) => (es(
3779
3779
  return r.toUpperCase() + i;
3780
3780
  }), { propertyIsEnumerable: bb } = Object.prototype, Tb = Wt("RegExp"), Ph = (e, t) => {
3781
3781
  const n = Object.getOwnPropertyDescriptors(e), r = {};
3782
- es(n, (i, s) => {
3782
+ ts(n, (i, s) => {
3783
3783
  let o;
3784
3784
  (o = t(i, s, e)) !== !1 && (r[s] = o || i);
3785
3785
  }), Object.defineProperties(e, r);
@@ -3808,7 +3808,7 @@ const ab = (e, t, n, { allOwnKeys: r } = {}) => (es(
3808
3808
  }, Sb = () => {
3809
3809
  }, Ab = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
3810
3810
  function Cb(e) {
3811
- return !!(e && kt(e.append) && e[yh] === "FormData" && e[Zi]);
3811
+ return !!(e && kt(e.append) && e[yh] === "FormData" && e[es]);
3812
3812
  }
3813
3813
  const Nb = (e) => {
3814
3814
  const t = /* @__PURE__ */ new WeakSet(), n = (r) => {
@@ -3827,7 +3827,7 @@ const Nb = (e) => {
3827
3827
  !dr(o) && i.push(o);
3828
3828
  }
3829
3829
  } else
3830
- i = lr(r) ? [] : {}, es(r, (s, o) => {
3830
+ i = lr(r) ? [] : {}, ts(r, (s, o) => {
3831
3831
  const a = n(s);
3832
3832
  !dr(a) && (i[o] = a);
3833
3833
  });
@@ -3845,7 +3845,7 @@ const Nb = (e) => {
3845
3845
  !1
3846
3846
  ), (i) => {
3847
3847
  r.push(i), tr.postMessage(n, "*");
3848
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", kt(tr.postMessage)), xb = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(tr) : typeof process != "undefined" && process.nextTick || xh, Ih = (e) => e != null && kt(e[Zi]), Ib = (e) => e != null && qi(e, Zi) && Ih(e), w = {
3848
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", kt(tr.postMessage)), xb = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(tr) : typeof process != "undefined" && process.nextTick || xh, Ih = (e) => e != null && kt(e[es]), Ib = (e) => e != null && qi(e, es) && Ih(e), w = {
3849
3849
  isArray: lr,
3850
3850
  isArrayBuffer: Ah,
3851
3851
  isBuffer: Xr,
@@ -3855,7 +3855,7 @@ const Nb = (e) => {
3855
3855
  isNumber: Ch,
3856
3856
  isBoolean: V1,
3857
3857
  isObject: Kr,
3858
- isPlainObject: Us,
3858
+ isPlainObject: Hs,
3859
3859
  isEmptyObject: q1,
3860
3860
  isReadableStream: nb,
3861
3861
  isRequest: rb,
@@ -3873,7 +3873,7 @@ const Nb = (e) => {
3873
3873
  isURLSearchParams: tb,
3874
3874
  isTypedArray: hb,
3875
3875
  isFileList: K1,
3876
- forEach: es,
3876
+ forEach: ts,
3877
3877
  merge: Ka,
3878
3878
  extend: ab,
3879
3879
  trim: ob,
@@ -3969,8 +3969,8 @@ const Tl = /* @__PURE__ */ Symbol("internals");
3969
3969
  function fi(e) {
3970
3970
  return e && String(e).trim().toLowerCase();
3971
3971
  }
3972
- function Hs(e) {
3973
- return e === !1 || e == null ? e : w.isArray(e) ? e.map(Hs) : vb(String(e));
3972
+ function $s(e) {
3973
+ return e === !1 || e == null ? e : w.isArray(e) ? e.map($s) : vb(String(e));
3974
3974
  }
3975
3975
  function Fb(e) {
3976
3976
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -4070,7 +4070,7 @@ let mt = class {
4070
4070
  if (!l)
4071
4071
  return;
4072
4072
  const d = w.findKey(i, l);
4073
- (!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || u] = Hs(a));
4073
+ (!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || u] = $s(a));
4074
4074
  }
4075
4075
  const o = (a, u) => w.forEach(a, (c, l) => s(c, l, u));
4076
4076
  if (w.isPlainObject(t) || t instanceof this.constructor)
@@ -4138,11 +4138,11 @@ let mt = class {
4138
4138
  return w.forEach(this, (i, s) => {
4139
4139
  const o = w.findKey(r, s);
4140
4140
  if (o) {
4141
- n[o] = Hs(i), delete n[s];
4141
+ n[o] = $s(i), delete n[s];
4142
4142
  return;
4143
4143
  }
4144
4144
  const a = t ? zb(s) : String(s).trim();
4145
- a !== s && delete n[s], n[a] = Hs(i), r[a] = !0;
4145
+ a !== s && delete n[s], n[a] = $s(i), r[a] = !0;
4146
4146
  }), this;
4147
4147
  }
4148
4148
  concat(...t) {
@@ -4207,7 +4207,7 @@ w.reduceDescriptors(mt.prototype, ({ value: e }, t) => {
4207
4207
  };
4208
4208
  });
4209
4209
  w.freezeMethods(mt);
4210
- const Js = "[REDACTED ****]";
4210
+ const Zs = "[REDACTED ****]";
4211
4211
  function qb(e) {
4212
4212
  if (w.hasOwnProp(e, "toJSON"))
4213
4213
  return !0;
@@ -4235,7 +4235,7 @@ function Yb(e, t) {
4235
4235
  return r.pop(), s;
4236
4236
  o = /* @__PURE__ */ Object.create(null);
4237
4237
  for (const [a, u] of Object.entries(s)) {
4238
- const c = n.has(a.toLowerCase()) ? Js : i(u);
4238
+ const c = n.has(a.toLowerCase()) ? Zs : i(u);
4239
4239
  w.isUndefined(c) || (o[a] = c);
4240
4240
  }
4241
4241
  }
@@ -4662,7 +4662,7 @@ function uT(e, t, n) {
4662
4662
  }
4663
4663
  return (n || JSON.stringify)(e);
4664
4664
  }
4665
- const ts = {
4665
+ const ns = {
4666
4666
  transitional: Xu,
4667
4667
  adapter: ["xhr", "http", "fetch"],
4668
4668
  transformRequest: [
@@ -4695,7 +4695,7 @@ const ts = {
4695
4695
  ],
4696
4696
  transformResponse: [
4697
4697
  function(t) {
4698
- const n = Nr(this, "transitional") || ts.transitional, r = n && n.forcedJSONParsing, i = Nr(this, "responseType"), s = i === "json";
4698
+ const n = Nr(this, "transitional") || ns.transitional, r = n && n.forcedJSONParsing, i = Nr(this, "responseType"), s = i === "json";
4699
4699
  if (w.isResponse(t) || w.isReadableStream(t))
4700
4700
  return t;
4701
4701
  if (t && w.isString(t) && (r && !i || s)) {
@@ -4734,10 +4734,10 @@ const ts = {
4734
4734
  }
4735
4735
  };
4736
4736
  w.forEach(Uh, (e) => {
4737
- ts.headers[e] = {};
4737
+ ns.headers[e] = {};
4738
4738
  });
4739
4739
  function oa(e, t) {
4740
- const n = this || ts, r = t || n, i = mt.from(r.headers);
4740
+ const n = this || ns, r = t || n, i = mt.from(r.headers);
4741
4741
  let s = r.data;
4742
4742
  return w.forEach(e, function(a) {
4743
4743
  s = a.call(n, s, i.normalize(), t ? t.status : void 0);
@@ -4746,7 +4746,7 @@ function oa(e, t) {
4746
4746
  function Hh(e) {
4747
4747
  return !!(e && e.__CANCEL__);
4748
4748
  }
4749
- let ns = class extends Z {
4749
+ let rs = class extends Z {
4750
4750
  /**
4751
4751
  * A `CanceledError` is an object that is thrown when an operation is canceled.
4752
4752
  *
@@ -4811,7 +4811,7 @@ function dT(e, t) {
4811
4811
  }, r - p)));
4812
4812
  }, () => i && o(i), (...l) => o(l)];
4813
4813
  }
4814
- const Zs = (e, t, n = 3) => {
4814
+ const eo = (e, t, n = 3) => {
4815
4815
  let r = 0;
4816
4816
  const i = lT(50, 250);
4817
4817
  return dT((s) => {
@@ -4896,12 +4896,12 @@ function mT(e, t) {
4896
4896
  }
4897
4897
  const gT = /^https?:(?!\/\/)/i;
4898
4898
  function ET(e) {
4899
- return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (t, n, r = "") => `${n}${r}${Js}`);
4899
+ return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (t, n, r = "") => `${n}${r}${Zs}`);
4900
4900
  }
4901
4901
  function bT(e) {
4902
- const t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Js}@`), n = t.indexOf("#"), i = (n === -1 ? t : t.slice(0, n)).replace(
4902
+ const t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Zs}@`), n = t.indexOf("#"), i = (n === -1 ? t : t.slice(0, n)).replace(
4903
4903
  /([?&][^=&#]*=)[^&#]*/g,
4904
- `$1${Js}`
4904
+ `$1${Zs}`
4905
4905
  );
4906
4906
  return n === -1 ? i : `${i}#${ET(t.slice(n + 1))}`;
4907
4907
  }
@@ -5125,11 +5125,11 @@ const AT = typeof XMLHttpRequest != "undefined", CT = AT && function(e) {
5125
5125
  ), S(), g = null;
5126
5126
  }, s === void 0 && o.setContentType(null), "setRequestHeader" in g && w.forEach(wh(o), function(L, N) {
5127
5127
  g.setRequestHeader(N, L);
5128
- }), w.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), a && a !== "json" && (g.responseType = i.responseType), c && ([p, m, E] = Zs(
5128
+ }), w.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), a && a !== "json" && (g.responseType = i.responseType), c && ([p, m, E] = eo(
5129
5129
  c,
5130
5130
  !0
5131
- ), g.addEventListener("progress", p)), u && g.upload && ([d, h] = Zs(u), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (l = (k) => {
5132
- g && (r(!k || k.type ? new ns(null, e, g) : k), g.abort(), S(), g = null);
5131
+ ), g.addEventListener("progress", p)), u && g.upload && ([d, h] = eo(u), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (l = (k) => {
5132
+ g && (r(!k || k.type ? new rs(null, e, g) : k), g.abort(), S(), g = null);
5133
5133
  }, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
5134
5134
  const T = aa(i.url);
5135
5135
  if (T && !ot.protocols.includes(T)) {
@@ -5154,7 +5154,7 @@ const AT = typeof XMLHttpRequest != "undefined", CT = AT && function(e) {
5154
5154
  r = !0, o();
5155
5155
  const c = u instanceof Error ? u : this.reason;
5156
5156
  n.abort(
5157
- c instanceof Z ? c : new ns(c instanceof Error ? c.message : c)
5157
+ c instanceof Z ? c : new rs(c instanceof Error ? c.message : c)
5158
5158
  );
5159
5159
  }
5160
5160
  };
@@ -5187,7 +5187,7 @@ const AT = typeof XMLHttpRequest != "undefined", CT = AT && function(e) {
5187
5187
  for (; r < n; )
5188
5188
  i = r + t, yield e.slice(r, i), r = i;
5189
5189
  }, PT = function(e, t) {
5190
- return bs(this, null, function* () {
5190
+ return Ts(this, null, function* () {
5191
5191
  try {
5192
5192
  for (var n = tl(xT(e)), r, i, s; r = !(i = yield new sn(n.next())).done; r = !1) {
5193
5193
  const o = i.value;
@@ -5205,7 +5205,7 @@ const AT = typeof XMLHttpRequest != "undefined", CT = AT && function(e) {
5205
5205
  }
5206
5206
  });
5207
5207
  }, xT = function(e) {
5208
- return bs(this, null, function* () {
5208
+ return Ts(this, null, function* () {
5209
5209
  if (e[Symbol.asyncIterator]) {
5210
5210
  yield* Qo(e);
5211
5211
  return;
@@ -5328,7 +5328,7 @@ const Qu = "1.20.0", Rl = 64 * 1024, MT = {
5328
5328
  keepalive: !1,
5329
5329
  priority: "auto",
5330
5330
  window: null
5331
- }, { isFunction: Ss } = w, FT = (e) => encodeURIComponent(e).replace(
5331
+ }, { isFunction: As } = w, FT = (e) => encodeURIComponent(e).replace(
5332
5332
  /%([0-9A-F]{2})/gi,
5333
5333
  (t, n) => String.fromCharCode(parseInt(n, 16))
5334
5334
  ), Ll = (e) => {
@@ -5361,10 +5361,10 @@ const Qu = "1.20.0", Rl = 64 * 1024, MT = {
5361
5361
  },
5362
5362
  e
5363
5363
  );
5364
- const { fetch: i, Request: s, Response: o } = e, a = i ? Ss(i) : typeof fetch == "function", u = Ss(s), c = Ss(o);
5364
+ const { fetch: i, Request: s, Response: o } = e, a = i ? As(i) : typeof fetch == "function", u = As(s), c = As(o);
5365
5365
  if (!a)
5366
5366
  return !1;
5367
- const l = a && Ss(n), d = a && (typeof r == "function" ? /* @__PURE__ */ ((g) => (b) => g.encode(b))(new r()) : (g) => _e(null, null, function* () {
5367
+ const l = a && As(n), d = a && (typeof r == "function" ? /* @__PURE__ */ ((g) => (b) => g.encode(b))(new r()) : (g) => _e(null, null, function* () {
5368
5368
  return new Uint8Array(yield new s(g).arrayBuffer());
5369
5369
  })), p = u && l && Dl(() => {
5370
5370
  let g = !1;
@@ -5500,7 +5500,7 @@ const Qu = "1.20.0", Rl = 64 * 1024, MT = {
5500
5500
  if (w.isFormData(k) && (je = pe.headers.get("content-type")) && $.setContentType(je), pe.body) {
5501
5501
  const [Ot, ee] = W && Nl(
5502
5502
  be,
5503
- Zs(Ol(W))
5503
+ eo(Ol(W))
5504
5504
  ) || [];
5505
5505
  k = yt(pe.body, Ot, ee);
5506
5506
  }
@@ -5554,7 +5554,7 @@ const Qu = "1.20.0", Rl = 64 * 1024, MT = {
5554
5554
  });
5555
5555
  const je = w.toFiniteNumber(rn.getContentLength()), [Ot, ee] = H && Nl(
5556
5556
  je,
5557
- Zs(Ol(H), !0)
5557
+ eo(Ol(H), !0)
5558
5558
  ) || [];
5559
5559
  let se = 0;
5560
5560
  const ue = (ye) => {
@@ -5701,11 +5701,11 @@ const Gh = {
5701
5701
  };
5702
5702
  function ua(e) {
5703
5703
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
5704
- throw new ns(null, e);
5704
+ throw new rs(null, e);
5705
5705
  }
5706
5706
  function ca(e) {
5707
5707
  const t = w.toSafeFlatObject(e);
5708
- return ua(t), t.headers = mt.from(w.getSafeProp(t, "headers")), t.data = oa.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Gh.getAdapter(t.adapter || ts.adapter, t)(t).then(
5708
+ return ua(t), t.headers = mt.from(w.getSafeProp(t, "headers")), t.data = oa.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Gh.getAdapter(t.adapter || ns.adapter, t)(t).then(
5709
5709
  function(i) {
5710
5710
  ua(t), t.response = i;
5711
5711
  try {
@@ -5781,10 +5781,10 @@ function VT(e, t, n) {
5781
5781
  throw new Z("Unknown option " + s, Z.ERR_BAD_OPTION);
5782
5782
  }
5783
5783
  }
5784
- const $s = {
5784
+ const zs = {
5785
5785
  assertOptions: VT,
5786
5786
  validators: Ao
5787
- }, ht = $s.validators;
5787
+ }, ht = zs.validators;
5788
5788
  let or = class {
5789
5789
  constructor(t) {
5790
5790
  this.defaults = t || {}, this.interceptors = {
@@ -5834,7 +5834,7 @@ let or = class {
5834
5834
  _request(t, n) {
5835
5835
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = fr(this.defaults, n);
5836
5836
  const { transitional: r, paramsSerializer: i, headers: s } = n;
5837
- r !== void 0 && $s.assertOptions(
5837
+ r !== void 0 && zs.assertOptions(
5838
5838
  r,
5839
5839
  {
5840
5840
  silentJSONParsing: ht.transitional(ht.boolean),
@@ -5847,14 +5847,14 @@ let or = class {
5847
5847
  !1
5848
5848
  ), i != null && (w.isFunction(i) ? n.paramsSerializer = {
5849
5849
  serialize: i
5850
- } : $s.assertOptions(
5850
+ } : zs.assertOptions(
5851
5851
  i,
5852
5852
  {
5853
5853
  encode: ht.function,
5854
5854
  serialize: ht.function
5855
5855
  },
5856
5856
  !0
5857
- )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), $s.assertOptions(
5857
+ )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), zs.assertOptions(
5858
5858
  n,
5859
5859
  {
5860
5860
  baseUrl: ht.spelling("baseURL"),
@@ -5976,7 +5976,7 @@ let qT = class Wh {
5976
5976
  r.unsubscribe(s);
5977
5977
  }, o;
5978
5978
  }, t(function(s, o, a) {
5979
- r.reason || (r.reason = new ns(s, o, a), n(r.reason));
5979
+ r.reason || (r.reason = new rs(s, o, a), n(r.reason));
5980
5980
  });
5981
5981
  }
5982
5982
  /**
@@ -6033,7 +6033,7 @@ function YT(e) {
6033
6033
  function jT(e) {
6034
6034
  return w.isObject(e) && e.isAxiosError === !0;
6035
6035
  }
6036
- const zs = {
6036
+ const Vs = {
6037
6037
  Continue: 100,
6038
6038
  SwitchingProtocols: 101,
6039
6039
  Processing: 102,
@@ -6113,8 +6113,8 @@ const zs = {
6113
6113
  SslHandshakeFailed: 525,
6114
6114
  InvalidSslCertificate: 526
6115
6115
  };
6116
- Object.entries(zs).forEach(([e, t]) => {
6117
- zs[t] === void 0 && (zs[t] = e);
6116
+ Object.entries(Vs).forEach(([e, t]) => {
6117
+ Vs[t] === void 0 && (Vs[t] = e);
6118
6118
  });
6119
6119
  function Xh(e) {
6120
6120
  const t = new or(e), n = Th(or.prototype.request, t);
@@ -6122,9 +6122,9 @@ function Xh(e) {
6122
6122
  return Xh(fr(e, i));
6123
6123
  }, n;
6124
6124
  }
6125
- const Xe = Xh(ts);
6125
+ const Xe = Xh(ns);
6126
6126
  Xe.Axios = or;
6127
- Xe.CanceledError = ns;
6127
+ Xe.CanceledError = rs;
6128
6128
  Xe.CancelToken = qT;
6129
6129
  Xe.isCancel = Hh;
6130
6130
  Xe.VERSION = Qu;
@@ -6140,26 +6140,26 @@ Xe.mergeConfig = fr;
6140
6140
  Xe.AxiosHeaders = mt;
6141
6141
  Xe.formToJSON = (e) => Bh(w.isHTMLForm(e) ? new FormData(e) : e);
6142
6142
  Xe.getAdapter = Gh.getAdapter;
6143
- Xe.HttpStatusCode = zs;
6143
+ Xe.HttpStatusCode = Vs;
6144
6144
  Xe.default = Xe;
6145
6145
  const {
6146
- Axios: l4,
6147
- AxiosError: d4,
6148
- CanceledError: f4,
6149
- isCancel: h4,
6150
- CancelToken: p4,
6151
- VERSION: m4,
6152
- all: g4,
6153
- Cancel: E4,
6154
- isAxiosError: b4,
6155
- spread: T4,
6156
- toFormData: y4,
6157
- AxiosHeaders: _4,
6158
- HttpStatusCode: S4,
6159
- formToJSON: A4,
6160
- getAdapter: C4,
6161
- mergeConfig: N4,
6162
- create: O4
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
6163
6163
  } = Xe;
6164
6164
  class GT {
6165
6165
  constructor(t, n, r, i = !1, s, o) {
@@ -6534,7 +6534,7 @@ class JT {
6534
6534
  };
6535
6535
  }
6536
6536
  }
6537
- const Se = new JT(), hr = () => Se.connected, rs = () => Se.isOpen, Za = "cimulate.widget.minimizedOnNav";
6537
+ const Se = new JT(), hr = () => Se.connected, is = () => Se.isOpen, Za = "cimulate.widget.minimizedOnNav";
6538
6538
  function ZT() {
6539
6539
  try {
6540
6540
  const e = sessionStorage.getItem(Za) === "1";
@@ -6905,7 +6905,7 @@ const gt = new Ey(), Jh = (e) => {
6905
6905
  window.addEventListener(Yu, e);
6906
6906
  }, _y = (e) => {
6907
6907
  window.removeEventListener(Yu, e);
6908
- }, is = (e, t, n) => {
6908
+ }, ss = (e, t, n) => {
6909
6909
  const r = new CustomEvent(Yu, {
6910
6910
  detail: { property: e, value: t, event: n }
6911
6911
  });
@@ -7037,7 +7037,7 @@ const ke = new Sy(), ip = (e, t) => {
7037
7037
  const n = t.updatePricebooksProxy(e);
7038
7038
  t.pricebooksProxy.pricebooks = n.pricebooks;
7039
7039
  }, Ay = (e) => {
7040
- if (!hr() || !rs()) {
7040
+ if (!hr() || !is()) {
7041
7041
  hr() && gt.clear(), gt.add({ context: "browse", payload: q(x({}, ke.state), { categoryId: e }) });
7042
7042
  return;
7043
7043
  }
@@ -7057,7 +7057,7 @@ const ke = new Sy(), ip = (e, t) => {
7057
7057
  }, hp = (e) => {
7058
7058
  if (!e || !("categoryId" in e))
7059
7059
  throw new Error("Browse context must include a categoryId");
7060
- const t = hr(), n = rs();
7060
+ const t = hr(), n = is();
7061
7061
  if (!t || !n) {
7062
7062
  t && gt.clear(), gt.add({ context: "browse", payload: x({}, e) });
7063
7063
  return;
@@ -7123,7 +7123,7 @@ class xy {
7123
7123
  const Zt = new xy(), pp = (e) => {
7124
7124
  if (!e || !e.productId)
7125
7125
  throw new Error("PDP context must include a productId");
7126
- const t = hr(), n = rs();
7126
+ const t = hr(), n = is();
7127
7127
  if (!t || !n) {
7128
7128
  t && gt.clear(), gt.add({ context: "pdp", payload: x({}, e) });
7129
7129
  return;
@@ -7143,7 +7143,7 @@ class ky {
7143
7143
  J(this, "_fullSet", (t, n, r) => {
7144
7144
  if (!(n in t))
7145
7145
  throw new Error(`Property ${n} does not exist on PromptsExtensionState`);
7146
- return ss(n, r), Reflect.set(t, n, r);
7146
+ return os(n, r), Reflect.set(t, n, r);
7147
7147
  });
7148
7148
  J(this, "_paramsFullGet", (t, n) => Reflect.get(t, n));
7149
7149
  J(this, "_paramsFullSet", (t, n, r) => Reflect.set(t, n, r));
@@ -7187,7 +7187,7 @@ const Je = new ky(), Ry = (e) => {
7187
7187
  window.addEventListener(qu, e);
7188
7188
  }, Ly = (e) => {
7189
7189
  window.removeEventListener(qu, e);
7190
- }, ss = (e, t) => {
7190
+ }, os = (e, t) => {
7191
7191
  const n = new CustomEvent(qu, { detail: { property: e, value: t } });
7192
7192
  window.dispatchEvent(n);
7193
7193
  }, mp = (e) => {
@@ -7197,13 +7197,13 @@ const Je = new ky(), Ry = (e) => {
7197
7197
  const t = Je.isInline, n = typeof e == "boolean" ? e : !t;
7198
7198
  Je.promptsStateProxy.isInline = n;
7199
7199
  }, Dy = (e) => {
7200
- Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), ss("params", e), Je.promptsStateProxy.entryType = "ask_cim";
7200
+ Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "ask_cim";
7201
7201
  }, vy = (e) => {
7202
- Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), ss("params", e), Je.promptsStateProxy.entryType = "search";
7202
+ Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "search";
7203
7203
  }, My = (e) => {
7204
- Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), ss("params", e), Je.promptsStateProxy.entryType = "browse";
7204
+ Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "browse";
7205
7205
  }, Fy = (e) => {
7206
- Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), ss("params", e), Je.promptsStateProxy.entryType = "pdp";
7206
+ Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "pdp";
7207
7207
  }, By = ({
7208
7208
  elementId: e,
7209
7209
  entryType: t,
@@ -7212,11 +7212,11 @@ const Je = new ky(), Ry = (e) => {
7212
7212
  }) => {
7213
7213
  Je.promptsStateProxy.elementId = e, t && (Je.promptsStateProxy.entryType = t), typeof r == "boolean" && gp(r), n && Je.updatePromptsParamsProxy(n), Je.isOpen || mp(!0);
7214
7214
  }, Uy = () => {
7215
- is("resetConversation", !0, On.RESET_CONVERSATION);
7215
+ ss("resetConversation", !0, On.RESET_CONVERSATION);
7216
7216
  }, Hy = () => {
7217
- is("endConversation", !0, On.END_CONVERSATION);
7217
+ ss("endConversation", !0, On.END_CONVERSATION);
7218
7218
  }, $y = (e) => {
7219
- is(
7219
+ ss(
7220
7220
  "getSessionInformation",
7221
7221
  { callback: e },
7222
7222
  On.GET_SESSION_INFORMATION
@@ -7225,13 +7225,13 @@ const Je = new ky(), Ry = (e) => {
7225
7225
  payload: e,
7226
7226
  callback: t
7227
7227
  }) => {
7228
- is(
7228
+ ss(
7229
7229
  "getConversationMessages",
7230
7230
  { payload: e, callback: t },
7231
7231
  On.GET_CONVERSATION_MESSAGES
7232
7232
  );
7233
7233
  }, Vy = (e) => {
7234
- is("loadConversation", e, On.LOAD_CONVERSATION);
7234
+ ss("loadConversation", e, On.LOAD_CONVERSATION);
7235
7235
  }, qy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7236
7236
  __proto__: null,
7237
7237
  endConversation: Hy,
@@ -7321,7 +7321,7 @@ class Yy {
7321
7321
  }
7322
7322
  }
7323
7323
  const Be = new Yy(), jy = (e) => {
7324
- const t = rs(), n = hr();
7324
+ const t = is(), n = hr();
7325
7325
  if (!n || !t) {
7326
7326
  n && gt.clear(), gt.add({ context: "search", payload: q(x({}, Be.state), { query: e }) });
7327
7327
  return;
@@ -7342,7 +7342,7 @@ const Be = new Yy(), jy = (e) => {
7342
7342
  }, yp = (e) => {
7343
7343
  if (!e || !e.query)
7344
7344
  throw new Error("Search context must include a query");
7345
- const t = rs(), n = hr();
7345
+ const t = is(), n = hr();
7346
7346
  if (!n || !t) {
7347
7347
  n && gt.clear(), gt.add({ context: "search", payload: x({}, e) });
7348
7348
  return;
@@ -8573,15 +8573,15 @@ function T_(e, t) {
8573
8573
  }
8574
8574
  return n;
8575
8575
  }
8576
- function eo() {
8577
- return eo = Object.assign ? Object.assign.bind() : function(e) {
8576
+ function to() {
8577
+ return to = Object.assign ? Object.assign.bind() : function(e) {
8578
8578
  for (var t = 1; t < arguments.length; t++) {
8579
8579
  var n = arguments[t];
8580
8580
  for (var r in n)
8581
8581
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
8582
8582
  }
8583
8583
  return e;
8584
- }, eo.apply(this, arguments);
8584
+ }, to.apply(this, arguments);
8585
8585
  }
8586
8586
  function Bl(e, t) {
8587
8587
  var n = Object.keys(e);
@@ -8593,7 +8593,7 @@ function Bl(e, t) {
8593
8593
  }
8594
8594
  return n;
8595
8595
  }
8596
- function to(e) {
8596
+ function no(e) {
8597
8597
  for (var t = 1; t < arguments.length; t++) {
8598
8598
  var n = arguments[t] != null ? arguments[t] : {};
8599
8599
  t % 2 ? Bl(Object(n), !0).forEach(function(r) {
@@ -8622,13 +8622,13 @@ function S_(e, t) {
8622
8622
  return (t === "string" ? String : Number)(e);
8623
8623
  }
8624
8624
  function kp(e) {
8625
- return e && e.map((t, n) => /* @__PURE__ */ sr.createElement(t.tag, to({
8625
+ return e && e.map((t, n) => /* @__PURE__ */ sr.createElement(t.tag, no({
8626
8626
  key: n
8627
8627
  }, t.attr), kp(t.child)));
8628
8628
  }
8629
8629
  function Re(e) {
8630
- return (t) => /* @__PURE__ */ sr.createElement(A_, eo({
8631
- attr: to({}, e.attr)
8630
+ return (t) => /* @__PURE__ */ sr.createElement(A_, to({
8631
+ attr: no({}, e.attr)
8632
8632
  }, t), kp(e.child));
8633
8633
  }
8634
8634
  function A_(e) {
@@ -8638,13 +8638,13 @@ function A_(e) {
8638
8638
  size: i,
8639
8639
  title: s
8640
8640
  } = e, o = b_(e, E_), a = i || n.size || "1em", u;
8641
- return n.className && (u = n.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ sr.createElement("svg", eo({
8641
+ return n.className && (u = n.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ sr.createElement("svg", to({
8642
8642
  stroke: "currentColor",
8643
8643
  fill: "currentColor",
8644
8644
  strokeWidth: "0"
8645
8645
  }, n.attr, r, o, {
8646
8646
  className: u,
8647
- style: to(to({
8647
+ style: no(no({
8648
8648
  color: e.color || n.color
8649
8649
  }, n.style), e.style),
8650
8650
  height: a,
@@ -8865,7 +8865,7 @@ const F_ = ({
8865
8865
  icon: o = /* @__PURE__ */ y(M_, {}),
8866
8866
  onFiles: a
8867
8867
  }) => {
8868
- const u = Fe(null), c = mo(), l = r != null ? r : c, d = oe(() => {
8868
+ const u = Fe(null), c = Ji(), l = r != null ? r : c, d = oe(() => {
8869
8869
  var h;
8870
8870
  return (h = u.current) == null ? void 0 : h.click();
8871
8871
  }, []), p = oe(
@@ -9053,7 +9053,7 @@ function G_(e) {
9053
9053
  function Vl(e) {
9054
9054
  return e.replace(j_, "") === "";
9055
9055
  }
9056
- class os {
9056
+ class as {
9057
9057
  /**
9058
9058
  * @param {SchemaType['property']} property
9059
9059
  * Property.
@@ -9068,14 +9068,14 @@ class os {
9068
9068
  this.normal = n, this.property = t, r && (this.space = r);
9069
9069
  }
9070
9070
  }
9071
- os.prototype.normal = {};
9072
- os.prototype.property = {};
9073
- os.prototype.space = void 0;
9071
+ as.prototype.normal = {};
9072
+ as.prototype.property = {};
9073
+ as.prototype.space = void 0;
9074
9074
  function vp(e, t) {
9075
9075
  const n = {}, r = {};
9076
9076
  for (const i of e)
9077
9077
  Object.assign(n, i.property), Object.assign(r, i.normal);
9078
- return new os(n, r, t);
9078
+ return new as(n, r, t);
9079
9079
  }
9080
9080
  function ji(e) {
9081
9081
  return e.toLowerCase();
@@ -9161,7 +9161,7 @@ function Zr(e) {
9161
9161
  );
9162
9162
  e.mustUseProperty && e.mustUseProperty.includes(r) && (s.mustUseProperty = !0), t[r] = s, n[ji(r)] = r, n[ji(s.attribute)] = r;
9163
9163
  }
9164
- return new os(t, n, e.space);
9164
+ return new as(t, n, e.space);
9165
9165
  }
9166
9166
  const Mp = Zr({
9167
9167
  properties: {
@@ -10227,7 +10227,7 @@ function e2(e) {
10227
10227
  function t2(e) {
10228
10228
  return e.charAt(1).toUpperCase();
10229
10229
  }
10230
- const as = vp([Mp, X_, Up, Hp, $p], "html"), jn = vp([Mp, K_, Up, Hp, $p], "svg");
10230
+ const us = vp([Mp, X_, Up, Hp, $p], "html"), jn = vp([Mp, K_, Up, Hp, $p], "svg");
10231
10231
  function jl(e) {
10232
10232
  const t = String(e || "").trim();
10233
10233
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
@@ -10526,7 +10526,7 @@ function f2(e, t) {
10526
10526
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
10527
10527
  passKeys: t.passKeys !== !1,
10528
10528
  passNode: t.passNode || !1,
10529
- schema: t.space === "svg" ? jn : as,
10529
+ schema: t.space === "svg" ? jn : us,
10530
10530
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
10531
10531
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
10532
10532
  }, s = jp(i, e, void 0);
@@ -10900,7 +10900,7 @@ function Jt(e) {
10900
10900
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
10901
10901
  }
10902
10902
  const Ct = Gn(/[A-Za-z]/), pt = Gn(/[\dA-Za-z]/), R2 = Gn(/[#-'*+\--9=?A-Z^-~]/);
10903
- function no(e) {
10903
+ function ro(e) {
10904
10904
  return (
10905
10905
  // Special whitespace codes (which have negative values), C0 and Control
10906
10906
  // character DEL
@@ -11194,7 +11194,7 @@ function V2(e, t, n) {
11194
11194
  return h === 58 ? (e.consume(h), r = 0, u) : (h === 43 || h === 45 || h === 46 || pt(h)) && r++ < 32 ? (e.consume(h), a) : (r = 0, c(h));
11195
11195
  }
11196
11196
  function u(h) {
11197
- return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || no(h) ? n(h) : (e.consume(h), u);
11197
+ return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || ro(h) ? n(h) : (e.consume(h), u);
11198
11198
  }
11199
11199
  function c(h) {
11200
11200
  return h === 64 ? (e.consume(h), l) : R2(h) ? (e.consume(h), c) : n(h);
@@ -11213,7 +11213,7 @@ function V2(e, t, n) {
11213
11213
  return n(h);
11214
11214
  }
11215
11215
  }
11216
- const us = {
11216
+ const cs = {
11217
11217
  partial: !0,
11218
11218
  tokenize: q2
11219
11219
  };
@@ -11737,7 +11737,7 @@ function n0(e, t, n, r, i, s, o, a, u) {
11737
11737
  let l = 0;
11738
11738
  return d;
11739
11739
  function d(g) {
11740
- return g === 60 ? (e.enter(r), e.enter(i), e.enter(s), e.consume(g), e.exit(s), p) : g === null || g === 32 || g === 41 || no(g) ? n(g) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
11740
+ return g === 60 ? (e.enter(r), e.enter(i), e.enter(s), e.consume(g), e.exit(s), p) : g === null || g === 32 || g === 41 || ro(g) ? n(g) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
11741
11741
  contentType: "string"
11742
11742
  }), E(g));
11743
11743
  }
@@ -11753,7 +11753,7 @@ function n0(e, t, n, r, i, s, o, a, u) {
11753
11753
  return g === 60 || g === 62 || g === 92 ? (e.consume(g), h) : h(g);
11754
11754
  }
11755
11755
  function E(g) {
11756
- return !l && (g === null || g === 41 || De(g)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), t(g)) : l < c && g === 40 ? (e.consume(g), l++, E) : g === 41 ? (e.consume(g), l--, E) : g === null || g === 32 || g === 40 || no(g) ? n(g) : (e.consume(g), g === 92 ? S : E);
11756
+ return !l && (g === null || g === 41 || De(g)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), t(g)) : l < c && g === 40 ? (e.consume(g), l++, E) : g === 41 ? (e.consume(g), l--, E) : g === null || g === 32 || g === 40 || ro(g) ? n(g) : (e.consume(g), g === 92 ? S : E);
11757
11757
  }
11758
11758
  function S(g) {
11759
11759
  return g === 40 || g === 41 || g === 92 ? (e.consume(g), E) : E(g);
@@ -12132,7 +12132,7 @@ function PS(e, t, n) {
12132
12132
  function xS(e, t, n) {
12133
12133
  return r;
12134
12134
  function r(i) {
12135
- return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(us, t, n);
12135
+ return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(cs, t, n);
12136
12136
  }
12137
12137
  }
12138
12138
  const IS = {
@@ -12404,7 +12404,7 @@ function qS(e, t) {
12404
12404
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Pe(e, t, "linePrefix");
12405
12405
  }
12406
12406
  }
12407
- const Vs = {
12407
+ const qs = {
12408
12408
  name: "thematicBreak",
12409
12409
  tokenize: YS
12410
12410
  };
@@ -12448,7 +12448,7 @@ function WS(e, t, n) {
12448
12448
  if (r.containerState.type || (r.containerState.type = m, e.enter(m, {
12449
12449
  _container: !0
12450
12450
  })), m === "listUnordered")
12451
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Vs, n, c)(h) : c(h);
12451
+ return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(qs, n, c)(h) : c(h);
12452
12452
  if (!r.interrupt || h === 49)
12453
12453
  return e.enter("listItemPrefix"), e.enter("listItemValue"), u(h);
12454
12454
  }
@@ -12459,7 +12459,7 @@ function WS(e, t, n) {
12459
12459
  }
12460
12460
  function c(h) {
12461
12461
  return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
12462
- us,
12462
+ cs,
12463
12463
  // Can’t be empty when interrupting.
12464
12464
  r.interrupt ? n : l,
12465
12465
  e.attempt(jS, p, d)
@@ -12477,7 +12477,7 @@ function WS(e, t, n) {
12477
12477
  }
12478
12478
  function XS(e, t, n) {
12479
12479
  const r = this;
12480
- return r.containerState._closeFlow = void 0, e.check(us, i, s);
12480
+ return r.containerState._closeFlow = void 0, e.check(cs, i, s);
12481
12481
  function i(a) {
12482
12482
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Pe(e, t, "listItemIndent", r.containerState.size + 1)(a);
12483
12483
  }
@@ -12559,7 +12559,7 @@ const tA = {
12559
12559
  function nA(e) {
12560
12560
  const t = this, n = e.attempt(
12561
12561
  // Try to parse a blank line.
12562
- us,
12562
+ cs,
12563
12563
  r,
12564
12564
  // Try to parse initial flow (essentially, only code).
12565
12565
  e.attempt(this.parser.constructs.flowInitial, i, Pe(e, e.attempt(this.parser.constructs.flow, i, e.attempt(aS, i)), "linePrefix"))
@@ -12689,11 +12689,11 @@ const aA = {
12689
12689
  32: pa
12690
12690
  }, lA = {
12691
12691
  35: bS,
12692
- 42: Vs,
12693
- 45: [ad, Vs],
12692
+ 42: qs,
12693
+ 45: [ad, qs],
12694
12694
  60: SS,
12695
12695
  61: ad,
12696
- 95: Vs,
12696
+ 95: qs,
12697
12697
  96: sd,
12698
12698
  126: sd
12699
12699
  }, dA = {
@@ -13948,14 +13948,14 @@ const tC = {
13948
13948
  tableRow: KA,
13949
13949
  text: ZA,
13950
13950
  thematicBreak: eC,
13951
- toml: As,
13952
- yaml: As,
13953
- definition: As,
13954
- footnoteDefinition: As
13951
+ toml: Cs,
13952
+ yaml: Cs,
13953
+ definition: Cs,
13954
+ footnoteDefinition: Cs
13955
13955
  };
13956
- function As() {
13956
+ function Cs() {
13957
13957
  }
13958
- const d0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h0 = 8, { defineProperty: nC } = Object, p0 = typeof self == "object" ? self : globalThis, hd = (e, t) => {
13958
+ const d0 = -1, wo = 0, Ri = 1, io = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h0 = 8, { defineProperty: nC } = Object, p0 = typeof self == "object" ? self : globalThis, hd = (e, t) => {
13959
13959
  switch (e) {
13960
13960
  case "Function":
13961
13961
  case "SharedWorker":
@@ -13981,7 +13981,7 @@ const d0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h
13981
13981
  a.push(r(u));
13982
13982
  return a;
13983
13983
  }
13984
- case ro: {
13984
+ case io: {
13985
13985
  const a = n({}, i);
13986
13986
  for (const [u, c] of o) {
13987
13987
  const l = r(u), d = r(c);
@@ -14044,7 +14044,7 @@ const d0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h
14044
14044
  case "Array":
14045
14045
  return [Ri, er];
14046
14046
  case "Object":
14047
- return [ro, er];
14047
+ return [io, er];
14048
14048
  case "Date":
14049
14049
  return [dc, er];
14050
14050
  case "RegExp":
@@ -14056,8 +14056,8 @@ const d0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h
14056
14056
  case "DataView":
14057
14057
  return [Ri, n];
14058
14058
  }
14059
- return n.includes("Array") ? [Ri, n] : e instanceof Error ? [f0, e.name || "Error"] : [ro, n];
14060
- }, Cs = ([e, t]) => e === wo && (t === "function" || t === "symbol"), aC = (e, t, n, r) => {
14059
+ return n.includes("Array") ? [Ri, n] : e instanceof Error ? [f0, e.name || "Error"] : [io, n];
14060
+ }, Ns = ([e, t]) => e === wo && (t === "function" || t === "symbol"), aC = (e, t, n, r) => {
14061
14061
  const i = (o, a) => {
14062
14062
  const u = r.push(o) - 1;
14063
14063
  return n.set(a, u), u;
@@ -14097,7 +14097,7 @@ const d0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h
14097
14097
  l.push(s(p));
14098
14098
  return d;
14099
14099
  }
14100
- case ro: {
14100
+ case io: {
14101
14101
  if (u)
14102
14102
  switch (u) {
14103
14103
  case "BigInt":
@@ -14111,7 +14111,7 @@ const d0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h
14111
14111
  return s(o.toJSON());
14112
14112
  const l = [], d = i([a, l], o);
14113
14113
  for (const p of sC(o))
14114
- (e || !Cs(bi(o[p]))) && l.push([s(p), s(o[p])]);
14114
+ (e || !Ns(bi(o[p]))) && l.push([s(p), s(o[p])]);
14115
14115
  return d;
14116
14116
  }
14117
14117
  case dc:
@@ -14123,13 +14123,13 @@ const d0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, f0 = 7, h
14123
14123
  case hc: {
14124
14124
  const l = [], d = i([a, l], o);
14125
14125
  for (const [p, h] of o)
14126
- (e || !(Cs(bi(p)) || Cs(bi(h)))) && l.push([s(p), s(h)]);
14126
+ (e || !(Ns(bi(p)) || Ns(bi(h)))) && l.push([s(p), s(h)]);
14127
14127
  return d;
14128
14128
  }
14129
14129
  case pc: {
14130
14130
  const l = [], d = i([a, l], o);
14131
14131
  for (const p of o)
14132
- (e || !Cs(bi(p))) && l.push(s(p));
14132
+ (e || !Ns(bi(p))) && l.push(s(p));
14133
14133
  return d;
14134
14134
  }
14135
14135
  }
@@ -14599,7 +14599,7 @@ const un = { basename: wC, dirname: kC, extname: RC, join: LC, sep: "/" };
14599
14599
  function wC(e, t) {
14600
14600
  if (t !== void 0 && typeof t != "string")
14601
14601
  throw new TypeError('"ext" argument must be a string');
14602
- cs(e);
14602
+ ls(e);
14603
14603
  let n = 0, r = -1, i = e.length, s;
14604
14604
  if (t === void 0 || t.length === 0 || t.length > e.length) {
14605
14605
  for (; i--; )
@@ -14625,7 +14625,7 @@ function wC(e, t) {
14625
14625
  return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
14626
14626
  }
14627
14627
  function kC(e) {
14628
- if (cs(e), e.length === 0)
14628
+ if (ls(e), e.length === 0)
14629
14629
  return ".";
14630
14630
  let t = -1, n = e.length, r;
14631
14631
  for (; --n; )
@@ -14638,7 +14638,7 @@ function kC(e) {
14638
14638
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
14639
14639
  }
14640
14640
  function RC(e) {
14641
- cs(e);
14641
+ ls(e);
14642
14642
  let t = e.length, n = -1, r = 0, i = -1, s = 0, o;
14643
14643
  for (; t--; ) {
14644
14644
  const a = e.codePointAt(t);
@@ -14658,11 +14658,11 @@ function RC(e) {
14658
14658
  function LC(...e) {
14659
14659
  let t = -1, n;
14660
14660
  for (; ++t < e.length; )
14661
- cs(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
14661
+ ls(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
14662
14662
  return n === void 0 ? "." : DC(n);
14663
14663
  }
14664
14664
  function DC(e) {
14665
- cs(e);
14665
+ ls(e);
14666
14666
  const t = e.codePointAt(0) === 47;
14667
14667
  let n = vC(e, !t);
14668
14668
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
@@ -14698,7 +14698,7 @@ function vC(e, t) {
14698
14698
  }
14699
14699
  return n;
14700
14700
  }
14701
- function cs(e) {
14701
+ function ls(e) {
14702
14702
  if (typeof e != "string")
14703
14703
  throw new TypeError(
14704
14704
  "Path must be a string. Received " + JSON.stringify(e)
@@ -15311,7 +15311,7 @@ class mc extends $C {
15311
15311
  */
15312
15312
  parse(t) {
15313
15313
  this.freeze();
15314
- const n = Ns(t), r = this.parser || this.Parser;
15314
+ const n = Os(t), r = this.parser || this.Parser;
15315
15315
  return _a("parse", r), r(String(n), n);
15316
15316
  }
15317
15317
  /**
@@ -15360,7 +15360,7 @@ class mc extends $C {
15360
15360
  const r = this;
15361
15361
  return this.freeze(), _a("process", this.parser || this.Parser), Sa("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
15362
15362
  function i(s, o) {
15363
- const a = Ns(t), u = (
15363
+ const a = Os(t), u = (
15364
15364
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
15365
15365
  /** @type {unknown} */
15366
15366
  r.parse(a)
@@ -15465,7 +15465,7 @@ class mc extends $C {
15465
15465
  const i = this.transformers;
15466
15466
  return !r && typeof n == "function" && (r = n, n = void 0), r ? s(void 0, r) : new Promise(s);
15467
15467
  function s(o, a) {
15468
- const u = Ns(n);
15468
+ const u = Os(n);
15469
15469
  i.run(t, u, c);
15470
15470
  function c(l, d, p) {
15471
15471
  const h = (
@@ -15531,7 +15531,7 @@ class mc extends $C {
15531
15531
  */
15532
15532
  stringify(t, n) {
15533
15533
  this.freeze();
15534
- const r = Ns(n), i = this.compiler || this.Compiler;
15534
+ const r = Os(n), i = this.compiler || this.Compiler;
15535
15535
  return Sa("stringify", i), _d(t), i(t, r);
15536
15536
  }
15537
15537
  /**
@@ -15674,7 +15674,7 @@ function Sd(e, t, n) {
15674
15674
  "`" + e + "` finished async. Use `" + t + "` instead"
15675
15675
  );
15676
15676
  }
15677
- function Ns(e) {
15677
+ function Os(e) {
15678
15678
  return qC(e) ? e : new E0(e);
15679
15679
  }
15680
15680
  function qC(e) {
@@ -15933,7 +15933,7 @@ const iN = [
15933
15933
  "solidColor",
15934
15934
  "textArea",
15935
15935
  "textPath"
15936
- ], sN = y0(as, "div"), oN = y0(jn, "g", iN);
15936
+ ], sN = y0(us, "div"), oN = y0(jn, "g", iN);
15937
15937
  function aN(e) {
15938
15938
  const t = String(e), n = [];
15939
15939
  return { toOffset: i, toPoint: r };
@@ -15987,7 +15987,7 @@ function cN(e, t) {
15987
15987
  {
15988
15988
  file: n.file || void 0,
15989
15989
  location: !1,
15990
- schema: n.space === "svg" ? jn : as,
15990
+ schema: n.space === "svg" ? jn : us,
15991
15991
  verbose: n.verbose || !1
15992
15992
  },
15993
15993
  e
@@ -16001,7 +16001,7 @@ function gc(e, t) {
16001
16001
  /** @type {DefaultTreeAdapterMap['commentNode']} */
16002
16002
  t
16003
16003
  );
16004
- return n = { type: "comment", value: r.data }, qs(e, r, n), n;
16004
+ return n = { type: "comment", value: r.data }, Ys(e, r, n), n;
16005
16005
  }
16006
16006
  case "#document":
16007
16007
  case "#document-fragment": {
@@ -16024,14 +16024,14 @@ function gc(e, t) {
16024
16024
  /** @type {DefaultTreeAdapterMap['documentType']} */
16025
16025
  t
16026
16026
  );
16027
- return n = { type: "doctype" }, qs(e, r, n), n;
16027
+ return n = { type: "doctype" }, Ys(e, r, n), n;
16028
16028
  }
16029
16029
  case "#text": {
16030
16030
  const r = (
16031
16031
  /** @type {DefaultTreeAdapterMap['textNode']} */
16032
16032
  t
16033
16033
  );
16034
- return n = { type: "text", value: r.value }, qs(e, r, n), n;
16034
+ return n = { type: "text", value: r.value }, Ys(e, r, n), n;
16035
16035
  }
16036
16036
  // Element.
16037
16037
  default:
@@ -16056,7 +16056,7 @@ function S0(e, t) {
16056
16056
  }
16057
16057
  function lN(e, t) {
16058
16058
  const n = e.schema;
16059
- e.schema = t.namespaceURI === nr.svg ? jn : as;
16059
+ e.schema = t.namespaceURI === nr.svg ? jn : us;
16060
16060
  let r = -1;
16061
16061
  const i = {};
16062
16062
  for (; ++r < t.attrs.length; ) {
@@ -16064,7 +16064,7 @@ function lN(e, t) {
16064
16064
  _0.call(uN, u) || (i[u] = a.value);
16065
16065
  }
16066
16066
  const o = (e.schema.space === "svg" ? oN : sN)(t.tagName, i, S0(e, t.childNodes));
16067
- if (qs(e, t, o), o.tagName === "template") {
16067
+ if (Ys(e, t, o), o.tagName === "template") {
16068
16068
  const a = (
16069
16069
  /** @type {DefaultTreeAdapterMap['template']} */
16070
16070
  t
@@ -16076,7 +16076,7 @@ function lN(e, t) {
16076
16076
  }
16077
16077
  return e.schema = n, o;
16078
16078
  }
16079
- function qs(e, t, n) {
16079
+ function Ys(e, t, n) {
16080
16080
  if ("sourceCodeLocation" in t && t.sourceCodeLocation && e.file) {
16081
16081
  const r = dN(e, n, t.sourceCodeLocation);
16082
16082
  r && (e.location = !0, n.position = r);
@@ -16134,7 +16134,7 @@ function A0(e, t) {
16134
16134
  const fN = {}, hN = {}.hasOwnProperty, C0 = A0("type", { handlers: { root: mN, element: yN, text: bN, comment: TN, doctype: EN } });
16135
16135
  function pN(e, t) {
16136
16136
  const r = (t || fN).space;
16137
- return C0(e, r === "svg" ? jn : as);
16137
+ return C0(e, r === "svg" ? jn : us);
16138
16138
  }
16139
16139
  function mN(e, t) {
16140
16140
  const n = {
@@ -16962,7 +16962,7 @@ function Fn(e) {
16962
16962
  function wd(e) {
16963
16963
  return Fn(e) || UN(e);
16964
16964
  }
16965
- function Os(e) {
16965
+ function Ps(e) {
16966
16966
  return e + 32;
16967
16967
  }
16968
16968
  function I0(e) {
@@ -17669,7 +17669,7 @@ class zN {
17669
17669
  break;
17670
17670
  }
17671
17671
  default:
17672
- n.tagName += String.fromCodePoint(Oi(t) ? Os(t) : t);
17672
+ n.tagName += String.fromCodePoint(Oi(t) ? Ps(t) : t);
17673
17673
  }
17674
17674
  }
17675
17675
  // RCDATA less-than sign state
@@ -18001,7 +18001,7 @@ class zN {
18001
18001
  break;
18002
18002
  }
18003
18003
  default:
18004
- this.currentAttr.name += String.fromCodePoint(Oi(t) ? Os(t) : t);
18004
+ this.currentAttr.name += String.fromCodePoint(Oi(t) ? Ps(t) : t);
18005
18005
  }
18006
18006
  }
18007
18007
  // After attribute name state
@@ -18403,7 +18403,7 @@ class zN {
18403
18403
  //------------------------------------------------------------------
18404
18404
  _stateBeforeDoctypeName(t) {
18405
18405
  if (Oi(t))
18406
- this._createDoctypeToken(String.fromCharCode(Os(t))), this.state = A.DOCTYPE_NAME;
18406
+ this._createDoctypeToken(String.fromCharCode(Ps(t))), this.state = A.DOCTYPE_NAME;
18407
18407
  else
18408
18408
  switch (t) {
18409
18409
  case _.SPACE:
@@ -18456,7 +18456,7 @@ class zN {
18456
18456
  break;
18457
18457
  }
18458
18458
  default:
18459
- n.name += String.fromCodePoint(Oi(t) ? Os(t) : t);
18459
+ n.name += String.fromCodePoint(Oi(t) ? Ps(t) : t);
18460
18460
  }
18461
18461
  }
18462
18462
  // After DOCTYPE name state
@@ -18874,7 +18874,7 @@ const w0 = /* @__PURE__ */ new Set([f.DD, f.DT, f.LI, f.OPTGROUP, f.OPTION, f.P,
18874
18874
  f.TH,
18875
18875
  f.THEAD,
18876
18876
  f.TR
18877
- ]), io = /* @__PURE__ */ new Set([
18877
+ ]), so = /* @__PURE__ */ new Set([
18878
18878
  f.APPLET,
18879
18879
  f.CAPTION,
18880
18880
  f.HTML,
@@ -18884,7 +18884,7 @@ const w0 = /* @__PURE__ */ new Set([f.DD, f.DT, f.LI, f.OPTGROUP, f.OPTION, f.P,
18884
18884
  f.TD,
18885
18885
  f.TEMPLATE,
18886
18886
  f.TH
18887
- ]), VN = /* @__PURE__ */ new Set([...io, f.OL, f.UL]), qN = /* @__PURE__ */ new Set([...io, f.BUTTON]), Ld = /* @__PURE__ */ new Set([f.ANNOTATION_XML, f.MI, f.MN, f.MO, f.MS, f.MTEXT]), Dd = /* @__PURE__ */ new Set([f.DESC, f.FOREIGN_OBJECT, f.TITLE]), YN = /* @__PURE__ */ new Set([f.TR, f.TEMPLATE, f.HTML]), jN = /* @__PURE__ */ new Set([f.TBODY, f.TFOOT, f.THEAD, f.TEMPLATE, f.HTML]), GN = /* @__PURE__ */ new Set([f.TABLE, f.TEMPLATE, f.HTML]), WN = /* @__PURE__ */ new Set([f.TD, f.TH]);
18887
+ ]), VN = /* @__PURE__ */ new Set([...so, f.OL, f.UL]), qN = /* @__PURE__ */ new Set([...so, f.BUTTON]), Ld = /* @__PURE__ */ new Set([f.ANNOTATION_XML, f.MI, f.MN, f.MO, f.MS, f.MTEXT]), Dd = /* @__PURE__ */ new Set([f.DESC, f.FOREIGN_OBJECT, f.TITLE]), YN = /* @__PURE__ */ new Set([f.TR, f.TEMPLATE, f.HTML]), jN = /* @__PURE__ */ new Set([f.TBODY, f.TFOOT, f.THEAD, f.TEMPLATE, f.HTML]), GN = /* @__PURE__ */ new Set([f.TABLE, f.TEMPLATE, f.HTML]), WN = /* @__PURE__ */ new Set([f.TD, f.TH]);
18888
18888
  class XN {
18889
18889
  get currentTmplContentOrNode() {
18890
18890
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
@@ -19013,7 +19013,7 @@ class XN {
19013
19013
  return !0;
19014
19014
  }
19015
19015
  hasInScope(t) {
19016
- return this.hasInDynamicScope(t, io);
19016
+ return this.hasInDynamicScope(t, so);
19017
19017
  }
19018
19018
  hasInListItemScope(t) {
19019
19019
  return this.hasInDynamicScope(t, VN);
@@ -19028,7 +19028,7 @@ class XN {
19028
19028
  case z.HTML: {
19029
19029
  if (hu.has(n))
19030
19030
  return !0;
19031
- if (io.has(n))
19031
+ if (so.has(n))
19032
19032
  return !1;
19033
19033
  break;
19034
19034
  }
@@ -20095,15 +20095,15 @@ class Ud {
20095
20095
  break;
20096
20096
  }
20097
20097
  case O.IN_COLUMN_GROUP: {
20098
- so(this, t);
20098
+ oo(this, t);
20099
20099
  break;
20100
20100
  }
20101
20101
  case O.AFTER_BODY: {
20102
- oo(this, t);
20102
+ ao(this, t);
20103
20103
  break;
20104
20104
  }
20105
20105
  case O.AFTER_AFTER_BODY: {
20106
- Ys(this, t);
20106
+ js(this, t);
20107
20107
  break;
20108
20108
  }
20109
20109
  }
@@ -20150,15 +20150,15 @@ class Ud {
20150
20150
  break;
20151
20151
  }
20152
20152
  case O.IN_COLUMN_GROUP: {
20153
- so(this, t);
20153
+ oo(this, t);
20154
20154
  break;
20155
20155
  }
20156
20156
  case O.AFTER_BODY: {
20157
- oo(this, t);
20157
+ ao(this, t);
20158
20158
  break;
20159
20159
  }
20160
20160
  case O.AFTER_AFTER_BODY: {
20161
- Ys(this, t);
20161
+ js(this, t);
20162
20162
  break;
20163
20163
  }
20164
20164
  }
@@ -20429,7 +20429,7 @@ class Ud {
20429
20429
  break;
20430
20430
  }
20431
20431
  case O.AFTER_AFTER_BODY: {
20432
- Ys(this, t);
20432
+ js(this, t);
20433
20433
  break;
20434
20434
  }
20435
20435
  }
@@ -21351,7 +21351,7 @@ function Na(e, t) {
21351
21351
  }
21352
21352
  }
21353
21353
  else
21354
- ls(e, t);
21354
+ ds(e, t);
21355
21355
  }
21356
21356
  function AP(e, t) {
21357
21357
  e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, z.HTML), e.insertionMode = O.IN_CAPTION;
@@ -21372,7 +21372,7 @@ function xP(e, t) {
21372
21372
  e.openElements.hasInTableScope(f.TABLE) && (e.openElements.popUntilTagNamePopped(f.TABLE), e._resetInsertionMode(), e._processStartTag(t));
21373
21373
  }
21374
21374
  function IP(e, t) {
21375
- H0(t) ? e._appendElement(t, z.HTML) : ls(e, t), t.ackSelfClosing = !0;
21375
+ H0(t) ? e._appendElement(t, z.HTML) : ds(e, t), t.ackSelfClosing = !0;
21376
21376
  }
21377
21377
  function wP(e, t) {
21378
21378
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, z.HTML), e.formElement = e.openElements.current, e.openElements.pop());
@@ -21422,7 +21422,7 @@ function qr(e, t) {
21422
21422
  break;
21423
21423
  }
21424
21424
  default:
21425
- ls(e, t);
21425
+ ds(e, t);
21426
21426
  }
21427
21427
  }
21428
21428
  function Wi(e, t) {
@@ -21448,10 +21448,10 @@ function Wi(e, t) {
21448
21448
  case f.TR:
21449
21449
  break;
21450
21450
  default:
21451
- ls(e, t);
21451
+ ds(e, t);
21452
21452
  }
21453
21453
  }
21454
- function ls(e, t) {
21454
+ function ds(e, t) {
21455
21455
  const n = e.fosterParentingEnabled;
21456
21456
  e.fosterParentingEnabled = !0, Do(e, t), e.fosterParentingEnabled = n;
21457
21457
  }
@@ -21465,7 +21465,7 @@ function yi(e, t) {
21465
21465
  let n = 0;
21466
21466
  if (e.hasNonWhitespacePendingCharacterToken)
21467
21467
  for (; n < e.pendingCharacterTokens.length; n++)
21468
- ls(e, e.pendingCharacterTokens[n]);
21468
+ ds(e, e.pendingCharacterTokens[n]);
21469
21469
  else
21470
21470
  for (; n < e.pendingCharacterTokens.length; n++)
21471
21471
  e._insertCharacters(e.pendingCharacterTokens[n]);
@@ -21514,7 +21514,7 @@ function _c(e, t) {
21514
21514
  break;
21515
21515
  }
21516
21516
  default:
21517
- so(e, t);
21517
+ oo(e, t);
21518
21518
  }
21519
21519
  }
21520
21520
  function LP(e, t) {
@@ -21530,10 +21530,10 @@ function LP(e, t) {
21530
21530
  case f.COL:
21531
21531
  break;
21532
21532
  default:
21533
- so(e, t);
21533
+ oo(e, t);
21534
21534
  }
21535
21535
  }
21536
- function so(e, t) {
21536
+ function oo(e, t) {
21537
21537
  e.openElements.currentTagId === f.COLGROUP && (e.openElements.pop(), e.insertionMode = O.IN_TABLE, e._processToken(t));
21538
21538
  }
21539
21539
  function Mo(e, t) {
@@ -21774,7 +21774,7 @@ function X0(e, t) {
21774
21774
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(f.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : yc(e, t);
21775
21775
  }
21776
21776
  function HP(e, t) {
21777
- t.tagID === f.HTML ? bt(e, t) : oo(e, t);
21777
+ t.tagID === f.HTML ? bt(e, t) : ao(e, t);
21778
21778
  }
21779
21779
  function K0(e, t) {
21780
21780
  var n;
@@ -21785,9 +21785,9 @@ function K0(e, t) {
21785
21785
  r && !(!((n = e.treeAdapter.getNodeSourceCodeLocation(r)) === null || n === void 0) && n.endTag) && e._setEndLocation(r, t);
21786
21786
  }
21787
21787
  } else
21788
- oo(e, t);
21788
+ ao(e, t);
21789
21789
  }
21790
- function oo(e, t) {
21790
+ function ao(e, t) {
21791
21791
  e.insertionMode = O.IN_BODY, Do(e, t);
21792
21792
  }
21793
21793
  function $P(e, t) {
@@ -21829,9 +21829,9 @@ function qP(e, t) {
21829
21829
  t.tagID === f.HTML && (e.insertionMode = O.AFTER_AFTER_FRAMESET);
21830
21830
  }
21831
21831
  function YP(e, t) {
21832
- t.tagID === f.HTML ? bt(e, t) : Ys(e, t);
21832
+ t.tagID === f.HTML ? bt(e, t) : js(e, t);
21833
21833
  }
21834
- function Ys(e, t) {
21834
+ function js(e, t) {
21835
21835
  e.insertionMode = O.IN_BODY, Do(e, t);
21836
21836
  }
21837
21837
  function jP(e, t) {
@@ -21936,7 +21936,7 @@ function tx(e, t) {
21936
21936
  const n = {
21937
21937
  type: Ee.CHARACTER,
21938
21938
  chars: e.value,
21939
- location: ds(e)
21939
+ location: fs(e)
21940
21940
  };
21941
21941
  ri(t, gn(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
21942
21942
  }
@@ -21947,7 +21947,7 @@ function nx(e, t) {
21947
21947
  forceQuirks: !1,
21948
21948
  publicId: "",
21949
21949
  systemId: "",
21950
- location: ds(e)
21950
+ location: fs(e)
21951
21951
  };
21952
21952
  ri(t, gn(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
21953
21953
  }
@@ -21967,7 +21967,7 @@ function em(e, t) {
21967
21967
  const n = e.value, r = {
21968
21968
  type: Ee.COMMENT,
21969
21969
  data: n,
21970
- location: ds(e)
21970
+ location: fs(e)
21971
21971
  };
21972
21972
  ri(t, gn(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
21973
21973
  }
@@ -22033,7 +22033,7 @@ function ox(e, t) {
22033
22033
  // Always element.
22034
22034
  /* c8 ignore next */
22035
22035
  attrs: "attrs" in s ? s.attrs : [],
22036
- location: ds(e)
22036
+ location: fs(e)
22037
22037
  };
22038
22038
  t.parser.currentToken = o, t.parser._processToken(t.parser.currentToken), t.parser.tokenizer.lastStartTagName = n;
22039
22039
  }
@@ -22048,7 +22048,7 @@ function ax(e, t) {
22048
22048
  selfClosing: !1,
22049
22049
  ackSelfClosing: !1,
22050
22050
  attrs: [],
22051
- location: ds(e)
22051
+ location: fs(e)
22052
22052
  };
22053
22053
  t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
22054
22054
  n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
@@ -22060,7 +22060,7 @@ function ux(e) {
22060
22060
  const t = e.type === "root" ? e.children[0] : e;
22061
22061
  return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
22062
22062
  }
22063
- function ds(e) {
22063
+ function fs(e) {
22064
22064
  const t = gn(e) || {
22065
22065
  line: void 0,
22066
22066
  column: void 0,
@@ -22316,13 +22316,13 @@ function rm(e, t) {
22316
22316
  function dx(e, t) {
22317
22317
  if (e.schema.allowComments) {
22318
22318
  const n = typeof t.value == "string" ? t.value : "", r = n.indexOf("-->"), s = { type: "comment", value: r < 0 ? n : n.slice(0, r) };
22319
- return fs(s, t), s;
22319
+ return hs(s, t), s;
22320
22320
  }
22321
22321
  }
22322
22322
  function fx(e, t) {
22323
22323
  if (e.schema.allowDoctypes) {
22324
22324
  const n = { type: "doctype" };
22325
- return fs(n, t), n;
22325
+ return hs(n, t), n;
22326
22326
  }
22327
22327
  }
22328
22328
  function hx(e, t) {
@@ -22348,18 +22348,18 @@ function hx(e, t) {
22348
22348
  properties: i,
22349
22349
  children: r
22350
22350
  };
22351
- return fs(o, t), o;
22351
+ return hs(o, t), o;
22352
22352
  }
22353
22353
  function px(e, t) {
22354
22354
  const r = { type: "root", children: (
22355
22355
  /** @type {Array<RootContent>} */
22356
22356
  im(e, t.children)
22357
22357
  ) };
22358
- return fs(r, t), r;
22358
+ return hs(r, t), r;
22359
22359
  }
22360
22360
  function mx(e, t) {
22361
22361
  const r = { type: "text", value: typeof t.value == "string" ? t.value : "" };
22362
- return fs(r, t), r;
22362
+ return hs(r, t), r;
22363
22363
  }
22364
22364
  function im(e, t) {
22365
22365
  const n = [];
@@ -22449,7 +22449,7 @@ function bx(e, t, n) {
22449
22449
  }
22450
22450
  return !1;
22451
22451
  }
22452
- function fs(e, t) {
22452
+ function hs(e, t) {
22453
22453
  const n = qp(
22454
22454
  // @ts-expect-error: looks like a node.
22455
22455
  t
@@ -22663,7 +22663,9 @@ function Sx(e) {
22663
22663
  return Re({ attr: { version: "1.1", viewBox: "0 0 17 17" }, child: [{ tag: "g", attr: {}, child: [] }, { tag: "path", attr: { d: "M6 8h-6v-6h1v4.109c1.013-3.193 4.036-5.484 7.5-5.484 3.506 0 6.621 2.36 7.574 5.739l-0.963 0.271c-0.832-2.95-3.551-5.011-6.611-5.011-3.226 0.001-6.016 2.276-6.708 5.376h4.208v1zM11 9v1h4.208c-0.693 3.101-3.479 5.375-6.708 5.375-3.062 0-5.78-2.061-6.611-5.011l-0.963 0.271c0.952 3.379 4.067 5.739 7.574 5.739 3.459 0 6.475-2.28 7.5-5.482v4.108h1v-6h-6z" }, child: [] }] })(e);
22664
22664
  }
22665
22665
  const am = Rt({
22666
- isOpen: !1
22666
+ isOpen: !1,
22667
+ panelId: "",
22668
+ triggerId: ""
22667
22669
  }), Ac = Rt(null), um = Rt(null), yr = () => {
22668
22670
  var n, r;
22669
22671
  const e = Nt(Ac), t = Nt(um);
@@ -22704,7 +22706,7 @@ function Px(e, t, n = {}) {
22704
22706
  const { step: r = 1, loop: i = !0 } = n;
22705
22707
  return lm(e, t, { step: -r, loop: i });
22706
22708
  }
22707
- var xx = (e) => Array.isArray(e), dm = (e) => e != null && typeof e == "object", Ix = (e) => dm(e) && !xx(e), js = (e) => typeof e == "string", vr = (e) => typeof e == "function", wx = (e) => e == null, kx = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Rx = (e) => Object.prototype.toString.call(e), fm = Function.prototype.toString, Lx = fm.call(Object), Dx = (e) => {
22709
+ var xx = (e) => Array.isArray(e), dm = (e) => e != null && typeof e == "object", Ix = (e) => dm(e) && !xx(e), Gs = (e) => typeof e == "string", vr = (e) => typeof e == "function", wx = (e) => e == null, kx = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Rx = (e) => Object.prototype.toString.call(e), fm = Function.prototype.toString, Lx = fm.call(Object), Dx = (e) => {
22708
22710
  if (!dm(e) || Rx(e) != "[object Object]" || Fx(e)) return !1;
22709
22711
  const t = Object.getPrototypeOf(e);
22710
22712
  if (t === null) return !0;
@@ -23081,10 +23083,10 @@ function LI(e) {
23081
23083
  const t = ii(e), { overflow: n, overflowX: r, overflowY: i, display: s } = t.getComputedStyle(e);
23082
23084
  return kI.test(n + i + r) && !RI.has(s);
23083
23085
  }
23084
- var Mr = "default", Tu = "", Gs = /* @__PURE__ */ new WeakMap();
23086
+ var Mr = "default", Tu = "", Ws = /* @__PURE__ */ new WeakMap();
23085
23087
  function DI(e = {}) {
23086
23088
  const { target: t, doc: n } = e, r = n != null ? n : document, i = r.documentElement;
23087
- return Ho() ? (Mr === "default" && (Tu = i.style.webkitUserSelect, i.style.webkitUserSelect = "none"), Mr = "disabled") : t && (Gs.set(t, t.style.userSelect), t.style.userSelect = "none"), () => vI({ target: t, doc: r });
23089
+ return Ho() ? (Mr === "default" && (Tu = i.style.webkitUserSelect, i.style.webkitUserSelect = "none"), Mr = "disabled") : t && (Ws.set(t, t.style.userSelect), t.style.userSelect = "none"), () => vI({ target: t, doc: r });
23088
23090
  }
23089
23091
  function vI(e = {}) {
23090
23092
  const { target: t, doc: n } = e, i = (n != null ? n : document).documentElement;
@@ -23095,9 +23097,9 @@ function vI(e = {}) {
23095
23097
  Mr === "restoring" && (i.style.webkitUserSelect === "none" && (i.style.webkitUserSelect = Tu || ""), Tu = "", Mr = "default");
23096
23098
  });
23097
23099
  }, 300);
23098
- } else if (t && Gs.has(t)) {
23099
- const s = Gs.get(t);
23100
- t.style.userSelect === "none" && (t.style.userSelect = s != null ? s : ""), t.getAttribute("style") === "" && t.removeAttribute("style"), Gs.delete(t);
23100
+ } else if (t && Ws.has(t)) {
23101
+ const s = Ws.get(t);
23102
+ t.style.userSelect === "none" && (t.style.userSelect = s != null ? s : ""), t.getAttribute("style") === "" && t.removeAttribute("style"), Ws.delete(t);
23101
23103
  }
23102
23104
  }
23103
23105
  function MI(e = {}) {
@@ -23160,7 +23162,7 @@ function HI(e, t) {
23160
23162
  var n;
23161
23163
  return Array.from((n = e == null ? void 0 : e.querySelectorAll(t)) != null ? n : []);
23162
23164
  }
23163
- function ao(e, t) {
23165
+ function uo(e, t) {
23164
23166
  if (!e) return hm;
23165
23167
  const n = Object.keys(t).reduce((r, i) => (r[i] = e.style.getPropertyValue(i), r), {});
23166
23168
  return Object.assign(e.style, t), () => {
@@ -23221,10 +23223,10 @@ var qI = (...e) => e.map((t) => {
23221
23223
  t[n[1]] = n[2];
23222
23224
  return t;
23223
23225
  }, jI = (e, t) => {
23224
- if (js(e)) {
23225
- if (js(t)) return `${e};${t}`;
23226
+ if (Gs(e)) {
23227
+ if (Gs(t)) return `${e};${t}`;
23226
23228
  e = Qd(e);
23227
- } else js(t) && (t = Qd(t));
23229
+ } else Gs(t) && (t = Qd(t));
23228
23230
  return Object.assign({}, e != null ? e : {}, t != null ? t : {});
23229
23231
  };
23230
23232
  function nt(...e) {
@@ -23280,7 +23282,7 @@ function WI(e) {
23280
23282
  });
23281
23283
  }
23282
23284
  var ai = () => (e) => Array.from(new Set(e)), Om = typeof globalThis.document != "undefined" ? Hf : we;
23283
- function uo(e) {
23285
+ function co(e) {
23284
23286
  var d, p;
23285
23287
  const t = (d = e().value) != null ? d : e().defaultValue, n = (p = e().isEqual) != null ? p : Object.is, [r] = xe(t), [i, s] = xe(r), o = e().value !== void 0, a = Fe(i);
23286
23288
  a.current = o ? e().value : i;
@@ -23313,10 +23315,10 @@ function uo(e) {
23313
23315
  }
23314
23316
  };
23315
23317
  }
23316
- uo.cleanup = (e) => {
23318
+ co.cleanup = (e) => {
23317
23319
  we(() => e, []);
23318
23320
  };
23319
- uo.ref = (e) => {
23321
+ co.ref = (e) => {
23320
23322
  const t = Fe(e);
23321
23323
  return {
23322
23324
  get: () => t.current,
@@ -23354,7 +23356,7 @@ function zo(e, t = {}) {
23354
23356
  e.debug && console.log(...X);
23355
23357
  }, i = (K = ($ = e.props) == null ? void 0 : $.call(e, { props: Cc(t), scope: n })) != null ? K : t, s = QI(i), o = (le = e.context) == null ? void 0 : le.call(e, {
23356
23358
  prop: s,
23357
- bindable: uo,
23359
+ bindable: co,
23358
23360
  scope: n,
23359
23361
  flush: Jd,
23360
23362
  getContext() {
@@ -23444,7 +23446,7 @@ function zo(e, t = {}) {
23444
23446
  return () => C.forEach((re) => re == null ? void 0 : re());
23445
23447
  }, k = (X) => Ax(X).find((Q) => {
23446
23448
  let ie = !Q.guard;
23447
- return js(Q.guard) ? ie = !!b(Q.guard) : vr(Q.guard) && (ie = Q.guard(S())), ie;
23449
+ return Gs(Q.guard) ? ie = !!b(Q.guard) : vr(Q.guard) && (ie = Q.guard(S())), ie;
23448
23450
  }), L = (X) => {
23449
23451
  Yx(e.computed, () => "[zag-js] No computed object found on machine");
23450
23452
  const Q = e.computed[X];
@@ -23456,7 +23458,7 @@ function zo(e, t = {}) {
23456
23458
  scope: n,
23457
23459
  computed: L
23458
23460
  });
23459
- }, N = uo(() => ({
23461
+ }, N = co(() => ({
23460
23462
  defaultValue: e.initialState({ prop: s }),
23461
23463
  onChange(X, Q) {
23462
23464
  var C, re, de, P;
@@ -23613,27 +23615,27 @@ const [tw, kc] = _r({
23613
23615
  name: "PopoverContext",
23614
23616
  hookName: "usePopoverContext",
23615
23617
  providerName: "<PopoverProvider />"
23616
- }), [xm, hs] = _r({
23618
+ }), [xm, ps] = _r({
23617
23619
  name: "PresenceContext",
23618
23620
  hookName: "usePresenceContext",
23619
23621
  providerName: "<PresenceProvider />"
23620
23622
  }), Im = ft((e, t) => {
23621
- const n = kc(), r = hs(), i = nt(n.getContentProps(), r.getPresenceProps(), e);
23623
+ const n = kc(), r = ps(), i = nt(n.getContentProps(), r.getPresenceProps(), e);
23622
23624
  return r.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, i), { ref: Vo(r.ref, t) }));
23623
23625
  });
23624
23626
  Im.displayName = "PopoverContent";
23625
23627
  const wm = ft((e, t) => {
23626
- const n = kc(), r = hs(), i = nt(n.getPositionerProps(), e);
23628
+ const n = kc(), r = ps(), i = nt(n.getPositionerProps(), e);
23627
23629
  return r.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, i), { ref: t }));
23628
23630
  });
23629
23631
  wm.displayName = "PopoverPositioner";
23630
- const ps = () => (e, t) => t.reduce(
23632
+ const ms = () => (e, t) => t.reduce(
23631
23633
  (n, r) => {
23632
23634
  const [i, s] = n, o = r;
23633
23635
  return s[o] !== void 0 && (i[o] = s[o]), delete s[o], [i, s];
23634
23636
  },
23635
23637
  [{}, x({}, e)]
23636
- ), km = (e) => ps()(e, [
23638
+ ), km = (e) => ms()(e, [
23637
23639
  "immediate",
23638
23640
  "lazyMount",
23639
23641
  "onExitComplete",
@@ -23755,13 +23757,13 @@ var rw = {
23755
23757
  return n({ type: "UNMOUNT", src: "visibilitychange" });
23756
23758
  tt(() => {
23757
23759
  var a, u;
23758
- const o = Ps(t.get("styles"));
23760
+ const o = xs(t.get("styles"));
23759
23761
  e.set("unmountAnimationName", o), o === "none" || o === e.get("prevAnimationName") || ((a = t.get("styles")) == null ? void 0 : a.display) === "none" || ((u = t.get("styles")) == null ? void 0 : u.animationDuration) === "0s" ? n({ type: "UNMOUNT", src: "presence.changed" }) : n({ type: "UNMOUNT.SUSPEND" });
23760
23762
  });
23761
23763
  },
23762
23764
  setPrevAnimationName: ({ context: e, refs: t }) => {
23763
23765
  tt(() => {
23764
- e.set("prevAnimationName", Ps(t.get("styles")));
23766
+ e.set("prevAnimationName", xs(t.get("styles")));
23765
23767
  });
23766
23768
  },
23767
23769
  clearPrevAnimationName: ({ context: e }) => {
@@ -23774,13 +23776,13 @@ var rw = {
23774
23776
  if (!i) return;
23775
23777
  const s = (u) => {
23776
23778
  var l, d, p;
23777
- ((p = (d = (l = u.composedPath) == null ? void 0 : l.call(u)) == null ? void 0 : d[0]) != null ? p : u.target) === i && e.set("prevAnimationName", Ps(t.get("styles")));
23779
+ ((p = (d = (l = u.composedPath) == null ? void 0 : l.call(u)) == null ? void 0 : d[0]) != null ? p : u.target) === i && e.set("prevAnimationName", xs(t.get("styles")));
23778
23780
  }, o = (u) => {
23779
- const c = Ps(t.get("styles"));
23781
+ const c = xs(t.get("styles"));
23780
23782
  Qt(u) === i && c === e.get("unmountAnimationName") && !r("present") && n({ type: "UNMOUNT", src: "animationend" });
23781
23783
  };
23782
23784
  i.addEventListener("animationstart", s), i.addEventListener("animationcancel", o), i.addEventListener("animationend", o);
23783
- const a = ao(i, { animationFillMode: "forwards" });
23785
+ const a = uo(i, { animationFillMode: "forwards" });
23784
23786
  return () => {
23785
23787
  i.removeEventListener("animationstart", s), i.removeEventListener("animationcancel", o), i.removeEventListener("animationend", o), Nm(() => a());
23786
23788
  };
@@ -23788,7 +23790,7 @@ var rw = {
23788
23790
  }
23789
23791
  }
23790
23792
  };
23791
- function Ps(e) {
23793
+ function xs(e) {
23792
23794
  return (e == null ? void 0 : e.animationName) || "none";
23793
23795
  }
23794
23796
  ai()(["onExitComplete", "present", "immediate"]);
@@ -23849,7 +23851,7 @@ var ir = (e, t = []) => ({
23849
23851
  {}
23850
23852
  )
23851
23853
  }), Pr = (e) => e.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), ow = (e) => e.length === 0;
23852
- const aw = ["top", "right", "bottom", "left"], Vn = Math.min, Pn = Math.max, co = Math.round, xs = Math.floor, hn = (e) => ({
23854
+ const aw = ["top", "right", "bottom", "left"], Vn = Math.min, Pn = Math.max, lo = Math.round, Is = Math.floor, hn = (e) => ({
23853
23855
  x: e,
23854
23856
  y: e
23855
23857
  }), uw = {
@@ -23887,10 +23889,10 @@ function cw(e, t, n) {
23887
23889
  n === void 0 && (n = !1);
23888
23890
  const r = ui(e), i = vc(e), s = Dc(i);
23889
23891
  let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
23890
- return t.reference[s] > t.floating[s] && (o = lo(o)), [o, lo(o)];
23892
+ return t.reference[s] > t.floating[s] && (o = fo(o)), [o, fo(o)];
23891
23893
  }
23892
23894
  function lw(e) {
23893
- const t = lo(e);
23895
+ const t = fo(e);
23894
23896
  return [yu(e), t, yu(t)];
23895
23897
  }
23896
23898
  function yu(e) {
@@ -23914,7 +23916,7 @@ function pw(e, t, n, r) {
23914
23916
  let s = hw(qn(e), n === "start", r);
23915
23917
  return i && (s = s.map((o) => o + "-" + i), t && (s = s.concat(s.map(yu)))), s;
23916
23918
  }
23917
- function lo(e) {
23919
+ function fo(e) {
23918
23920
  const t = qn(e);
23919
23921
  return uw[t] + e.slice(t.length);
23920
23922
  }
@@ -23935,7 +23937,7 @@ function Lm(e) {
23935
23937
  left: e
23936
23938
  };
23937
23939
  }
23938
- function fo(e) {
23940
+ function ho(e) {
23939
23941
  const {
23940
23942
  x: t,
23941
23943
  y: n,
@@ -24011,7 +24013,7 @@ function gw(e, t) {
24011
24013
  elementContext: d = "floating",
24012
24014
  altBoundary: p = !1,
24013
24015
  padding: h = 0
24014
- } = wn(t, e), m = Lm(h), S = a[p ? d === "floating" ? "reference" : "floating" : d], g = fo(yield s.getClippingRect({
24016
+ } = wn(t, e), m = Lm(h), S = a[p ? d === "floating" ? "reference" : "floating" : d], g = ho(yield s.getClippingRect({
24015
24017
  element: (n = yield s.isElement == null ? void 0 : s.isElement(S)) == null || n ? S : S.contextElement || (yield s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
24016
24018
  boundary: c,
24017
24019
  rootBoundary: l,
@@ -24024,7 +24026,7 @@ function gw(e, t) {
24024
24026
  } : o.reference, T = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating), k = (yield s.isElement == null ? void 0 : s.isElement(T)) && (yield s.getScale == null ? void 0 : s.getScale(T)) || {
24025
24027
  x: 1,
24026
24028
  y: 1
24027
- }, L = fo(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({
24029
+ }, L = ho(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({
24028
24030
  elements: a,
24029
24031
  rect: b,
24030
24032
  offsetParent: T,
@@ -24167,7 +24169,7 @@ const Ew = 50, bw = (e, t, n) => _e(null, null, function* () {
24167
24169
  ]);
24168
24170
  if ((r = o.arrow) != null && r.alignmentOffset)
24169
24171
  return {};
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)] : lw(u)), D = E !== "none";
24172
+ 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 ? [fo(u)] : lw(u)), D = E !== "none";
24171
24173
  !h && D && N.push(...pw(u, S, E, L));
24172
24174
  const H = [u, ...N], W = yield c.detectOverflow(n, g), R = [];
24173
24175
  let $ = ((i = o.flip) == null ? void 0 : i.overflows) || [];
@@ -24493,7 +24495,7 @@ function mn(e) {
24493
24495
  function sf(e) {
24494
24496
  return !qo() || typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof Ht(e).ShadowRoot;
24495
24497
  }
24496
- function ms(e) {
24498
+ function gs(e) {
24497
24499
  const {
24498
24500
  overflow: t,
24499
24501
  overflowX: n,
@@ -24566,7 +24568,7 @@ function Yn(e) {
24566
24568
  }
24567
24569
  function Mm(e) {
24568
24570
  const t = Yn(e);
24569
- return jr(t) ? (e.ownerDocument || e).body : mn(t) && ms(t) ? t : Mm(t);
24571
+ return jr(t) ? (e.ownerDocument || e).body : mn(t) && gs(t) ? t : Mm(t);
24570
24572
  }
24571
24573
  function Xi(e, t, n) {
24572
24574
  var r;
@@ -24574,7 +24576,7 @@ function Xi(e, t, n) {
24574
24576
  const i = Mm(e), s = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Ht(i);
24575
24577
  if (s) {
24576
24578
  const a = _u(o);
24577
- return t.concat(o, o.visualViewport || [], ms(i) ? i : [], a && n ? Xi(a) : []);
24579
+ return t.concat(o, o.visualViewport || [], gs(i) ? i : [], a && n ? Xi(a) : []);
24578
24580
  } else
24579
24581
  return t.concat(i, Xi(i, [], n));
24580
24582
  }
@@ -24584,7 +24586,7 @@ function _u(e) {
24584
24586
  function Fm(e) {
24585
24587
  const t = tn(e);
24586
24588
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
24587
- const i = mn(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, a = co(n) !== s || co(r) !== o;
24589
+ const i = mn(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, a = lo(n) !== s || lo(r) !== o;
24588
24590
  return a && (n = s, r = o), {
24589
24591
  width: n,
24590
24592
  height: r,
@@ -24603,7 +24605,7 @@ function Ur(e) {
24603
24605
  height: i,
24604
24606
  $: s
24605
24607
  } = Fm(t);
24606
- let o = (s ? co(n.width) : n.width) / r, a = (s ? co(n.height) : n.height) / i;
24608
+ let o = (s ? lo(n.width) : n.width) / r, a = (s ? lo(n.height) : n.height) / i;
24607
24609
  return (!o || !Number.isFinite(o)) && (o = 1), (!a || !Number.isFinite(a)) && (a = 1), {
24608
24610
  x: o,
24609
24611
  y: a
@@ -24635,7 +24637,7 @@ function Er(e, t, n, r) {
24635
24637
  u *= S.x, c *= S.y, l *= S.x, d *= S.y, u += T, c += k, m = Ht(E), E = _u(m);
24636
24638
  }
24637
24639
  }
24638
- return fo({
24640
+ return ho({
24639
24641
  width: l,
24640
24642
  height: d,
24641
24643
  x: u,
@@ -24668,7 +24670,7 @@ function Lw(e) {
24668
24670
  scrollTop: 0
24669
24671
  }, c = hn(1);
24670
24672
  const l = hn(0), d = mn(r);
24671
- if ((d || !d && !s) && ((ci(r) !== "body" || ms(o)) && (u = jo(r)), mn(r))) {
24673
+ if ((d || !d && !s) && ((ci(r) !== "body" || gs(o)) && (u = jo(r)), mn(r))) {
24672
24674
  const h = Er(r);
24673
24675
  c = Ur(r), l.x = h.x + r.clientLeft, l.y = h.y + r.clientTop;
24674
24676
  }
@@ -24742,7 +24744,7 @@ function af(e, t, n) {
24742
24744
  height: t.height
24743
24745
  };
24744
24746
  }
24745
- return fo(r);
24747
+ return ho(r);
24746
24748
  }
24747
24749
  function Hm(e, t) {
24748
24750
  const n = Yn(e);
@@ -24757,7 +24759,7 @@ function Uw(e, t) {
24757
24759
  let o = s ? Yn(e) : e;
24758
24760
  for (; en(o) && !jr(o); ) {
24759
24761
  const a = tn(o), u = Mc(o);
24760
- !u && a.position === "fixed" && (i = null), (s ? !u && !i : !u && a.position === "static" && !!i && Fw.has(i.position) || ms(o) && !u && Hm(e, o)) ? r = r.filter((l) => l !== o) : i = a, o = Yn(o);
24762
+ !u && a.position === "fixed" && (i = null), (s ? !u && !i : !u && a.position === "static" && !!i && Fw.has(i.position) || gs(o) && !u && Hm(e, o)) ? r = r.filter((l) => l !== o) : i = a, o = Yn(o);
24761
24763
  }
24762
24764
  return t.set(e, r), r;
24763
24765
  }
@@ -24800,7 +24802,7 @@ function zw(e, t, n) {
24800
24802
  u.x = Go(i);
24801
24803
  }
24802
24804
  if (r || !r && !s)
24803
- if ((ci(t) !== "body" || ms(i)) && (a = jo(t)), r) {
24805
+ if ((ci(t) !== "body" || gs(i)) && (a = jo(t)), r) {
24804
24806
  const h = Er(t, !0, s, t);
24805
24807
  u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
24806
24808
  } else i && c();
@@ -24891,7 +24893,7 @@ function jw(e, t) {
24891
24893
  } = c;
24892
24894
  if (a || t(), !p || !h)
24893
24895
  return;
24894
- const m = xs(d), E = xs(i.clientWidth - (l + p)), S = xs(i.clientHeight - (d + h)), g = xs(l), T = {
24896
+ const m = Is(d), E = Is(i.clientWidth - (l + p)), S = Is(i.clientHeight - (d + h)), g = Is(l), T = {
24895
24897
  rootMargin: -m + "px " + -E + "px " + -S + "px " + -g + "px",
24896
24898
  threshold: Pn(0, Vn(1, u)) || 1
24897
24899
  };
@@ -25214,14 +25216,14 @@ function T3(e = {}) {
25214
25216
  }
25215
25217
  };
25216
25218
  }
25217
- var xr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), ws = {}, Ra = 0, Vm = (e) => e && (e.host || Vm(e.parentNode)), y3 = (e, t) => t.map((n) => {
25219
+ var xr = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), ks = {}, Ra = 0, Vm = (e) => e && (e.host || Vm(e.parentNode)), y3 = (e, t) => t.map((n) => {
25218
25220
  if (e.contains(n)) return n;
25219
25221
  const r = Vm(n);
25220
25222
  return r && e.contains(r) ? r : (console.error("[zag-js > ariaHidden] target", n, "in not contained inside", e, ". Doing nothing"), null);
25221
25223
  }).filter((n) => !!n), _3 = /* @__PURE__ */ new Set(["script", "output", "status", "next-route-announcer"]), S3 = (e) => _3.has(e.localName) || e.role === "status" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]"), A3 = (e, t) => {
25222
25224
  const { parentNode: n, markerName: r, controlAttribute: i, followControlledElements: s = !0 } = t, o = y3(n, Array.isArray(e) ? e : [e]);
25223
- ws[r] || (ws[r] = /* @__PURE__ */ new WeakMap());
25224
- const a = ws[r], u = [], c = /* @__PURE__ */ new Set(), l = new Set(o), d = (h) => {
25225
+ ks[r] || (ks[r] = /* @__PURE__ */ new WeakMap());
25226
+ const a = ks[r], u = [], c = /* @__PURE__ */ new Set(), l = new Set(o), d = (h) => {
25225
25227
  !h || c.has(h) || (c.add(h), d(h.parentNode));
25226
25228
  };
25227
25229
  o.forEach((h) => {
@@ -25237,7 +25239,7 @@ var xr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), ws =
25237
25239
  try {
25238
25240
  if (S3(m)) return;
25239
25241
  const S = m.getAttribute(i) === "true", g = (xr.get(m) || 0) + 1, b = (a.get(m) || 0) + 1;
25240
- xr.set(m, g), a.set(m, b), u.push(m), g === 1 && S && Is.set(m, !0), b === 1 && m.setAttribute(r, ""), S || m.setAttribute(i, "true");
25242
+ xr.set(m, g), a.set(m, b), u.push(m), g === 1 && S && ws.set(m, !0), b === 1 && m.setAttribute(r, ""), S || m.setAttribute(i, "true");
25241
25243
  } catch (E) {
25242
25244
  console.error("[zag-js > ariaHidden] cannot operate on ", m, E);
25243
25245
  }
@@ -25246,8 +25248,8 @@ var xr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), ws =
25246
25248
  return p(n), c.clear(), Ra++, () => {
25247
25249
  u.forEach((h) => {
25248
25250
  const m = xr.get(h) - 1, E = a.get(h) - 1;
25249
- xr.set(h, m), a.set(h, E), m || (Is.has(h) || h.removeAttribute(i), Is.delete(h)), E || h.removeAttribute(r);
25250
- }), Ra--, Ra || (xr = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), ws = {});
25251
+ xr.set(h, m), a.set(h, E), m || (ws.has(h) || h.removeAttribute(i), ws.delete(h)), E || h.removeAttribute(r);
25252
+ }), Ra--, Ra || (xr = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), ks = {});
25251
25253
  };
25252
25254
  }, C3 = (e) => (Array.isArray(e) ? e[0] : e).ownerDocument.body, N3 = (e, t = C3(e), n = "data-aria-hidden", r = !0) => {
25253
25255
  if (t)
@@ -25572,7 +25574,7 @@ function B3(e, t) {
25572
25574
  },
25573
25575
  { timeout: 1e3 }
25574
25576
  );
25575
- s.then((a) => r.push(ao(a, { pointerEvents: "auto" }))), r.push(o);
25577
+ s.then((a) => r.push(uo(a, { pointerEvents: "auto" }))), r.push(o);
25576
25578
  }), () => {
25577
25579
  Vt.hasPointerBlockingLayer() || (queueMicrotask(() => {
25578
25580
  n.body.style.pointerEvents = Ef, n.body.removeAttribute("data-inert"), n.body.style.length === 0 && n.body.removeAttribute("style");
@@ -26000,7 +26002,7 @@ function Wm(e) {
26000
26002
  const m = {
26001
26003
  overflow: "hidden"
26002
26004
  };
26003
- return !o && a > 0 && (m[c] = `${a}px`), ao(i, m);
26005
+ return !o && a > 0 && (m[c] = `${a}px`), uo(i, m);
26004
26006
  }, d = () => {
26005
26007
  var L, N;
26006
26008
  const { scrollX: m, scrollY: E, visualViewport: S } = n, g = (L = S == null ? void 0 : S.offsetLeft) != null ? L : 0, b = (N = S == null ? void 0 : S.offsetTop) != null ? N : 0, T = {
@@ -26011,7 +26013,7 @@ function Wm(e) {
26011
26013
  right: "0"
26012
26014
  };
26013
26015
  !o && a > 0 && (T[c] = `${a}px`);
26014
- const k = ao(i, T);
26016
+ const k = uo(i, T);
26015
26017
  return () => {
26016
26018
  k == null || k(), n.scrollTo({ left: m, top: E, behavior: "instant" });
26017
26019
  };
@@ -26416,7 +26418,7 @@ ai()([
26416
26418
  "portalled",
26417
26419
  "positioning"
26418
26420
  ]);
26419
- const [P4, Wo] = _r({
26421
+ const [O4, Wo] = _r({
26420
26422
  name: "EnvironmentContext",
26421
26423
  hookName: "useEnvironmentContext",
26422
26424
  providerName: "<EnvironmentProvider />",
@@ -26426,14 +26428,14 @@ const [P4, Wo] = _r({
26426
26428
  getDocument: () => document,
26427
26429
  getWindow: () => window
26428
26430
  }
26429
- }), [x4, Hc] = _r({
26431
+ }), [P4, Hc] = _r({
26430
26432
  name: "LocaleContext",
26431
26433
  hookName: "useLocaleContext",
26432
26434
  providerName: "<LocaleProvider />",
26433
26435
  strict: !1,
26434
26436
  defaultValue: { dir: "ltr", locale: "en-US" }
26435
26437
  }), ek = (e) => {
26436
- const t = mo(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
26438
+ const t = Ji(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
26437
26439
  id: t,
26438
26440
  dir: r,
26439
26441
  getRootNode: n
@@ -26443,7 +26445,7 @@ const [P4, Wo] = _r({
26443
26445
  const [t, o] = km(e), a = o, { children: n } = a, r = dt(a, ["children"]), i = ek(r), s = Rc(nt({ present: i.open }, t));
26444
26446
  return /* @__PURE__ */ y(tw, { value: i, children: /* @__PURE__ */ y(xm, { value: s, children: n }) });
26445
26447
  }, Jm = ft((e, t) => {
26446
- const n = kc(), r = hs(), i = nt(
26448
+ const n = kc(), r = ps(), i = nt(
26447
26449
  q(x({}, n.getTriggerProps()), {
26448
26450
  "aria-controls": r.unmounted ? void 0 : n.getTriggerProps()["aria-controls"]
26449
26451
  }),
@@ -26530,7 +26532,7 @@ const [ck, Sr] = _r({
26530
26532
  });
26531
26533
  eg.displayName = "CarouselControl";
26532
26534
  const tg = ft((e, t) => {
26533
- const [n, r] = ps()(e, ["readOnly", "index"]), i = Sr(), s = nt(i.getIndicatorProps(n), r);
26535
+ const [n, r] = ms()(e, ["readOnly", "index"]), i = Sr(), s = nt(i.getIndicatorProps(n), r);
26534
26536
  return /* @__PURE__ */ y(Tt.button, q(x({}, s), { ref: t }));
26535
26537
  });
26536
26538
  tg.displayName = "CarouselIndicator";
@@ -26540,7 +26542,7 @@ const ng = ft((e, t) => {
26540
26542
  });
26541
26543
  ng.displayName = "CarouselIndicatorGroup";
26542
26544
  const rg = ft((e, t) => {
26543
- const [n, r] = ps()(e, ["index", "snapAlign"]), i = Sr(), s = nt(i.getItemProps(n), r);
26545
+ const [n, r] = ms()(e, ["index", "snapAlign"]), i = Sr(), s = nt(i.getItemProps(n), r);
26544
26546
  return /* @__PURE__ */ y(Tt.div, q(x({}, s), { ref: t }));
26545
26547
  });
26546
26548
  rg.displayName = "CarouselItem";
@@ -26657,7 +26659,7 @@ var Pf = (e) => [...new Set(e)], xf = (e, t) => (n) => Math.max(e, Math.min(t, n
26657
26659
  }, mk = (e, t) => {
26658
26660
  var n, r, i;
26659
26661
  return (i = (r = (n = e.ids) == null ? void 0 : n.item) == null ? void 0 : r.call(n, t)) != null ? i : `carousel:${e.id}:item:${t}`;
26660
- }, Ws = (e) => {
26662
+ }, Xs = (e) => {
26661
26663
  var t, n;
26662
26664
  return (n = (t = e.ids) == null ? void 0 : t.itemGroup) != null ? n : `carousel:${e.id}:item-group`;
26663
26665
  }, gk = (e) => {
@@ -26672,7 +26674,7 @@ var Pf = (e) => [...new Set(e)], xf = (e, t) => (n) => Math.max(e, Math.min(t, n
26672
26674
  }, cg = (e, t) => {
26673
26675
  var n, r, i;
26674
26676
  return (i = (r = (n = e.ids) == null ? void 0 : n.indicator) == null ? void 0 : r.call(n, t)) != null ? i : `carousel:${e.id}:indicator:${t}`;
26675
- }, wt = (e) => e.getById(Ws(e)), If = (e) => HI(wt(e), "[data-part=item]"), Tk = (e, t) => e.getById(cg(e, t)), wf = (e) => {
26677
+ }, wt = (e) => e.getById(Xs(e)), If = (e) => HI(wt(e), "[data-part=item]"), Tk = (e, t) => e.getById(cg(e, t)), wf = (e) => {
26676
26678
  const t = wt(e);
26677
26679
  if (!t) return;
26678
26680
  const n = oi(t);
@@ -26730,7 +26732,7 @@ function yk(e, t) {
26730
26732
  },
26731
26733
  getItemGroupProps() {
26732
26734
  return t.element(q(x({}, Sn.itemGroup.attrs), {
26733
- id: Ws(o),
26735
+ id: Xs(o),
26734
26736
  "data-orientation": a("orientation"),
26735
26737
  "data-dragging": kr(c),
26736
26738
  dir: a("dir"),
@@ -26801,7 +26803,7 @@ function yk(e, t) {
26801
26803
  dir: a("dir"),
26802
26804
  "aria-label": g.prevTrigger,
26803
26805
  "data-orientation": a("orientation"),
26804
- "aria-controls": Ws(o),
26806
+ "aria-controls": Xs(o),
26805
26807
  onClick(b) {
26806
26808
  b.defaultPrevented || s({ type: "PAGE.PREV", src: "trigger" });
26807
26809
  }
@@ -26814,7 +26816,7 @@ function yk(e, t) {
26814
26816
  type: "button",
26815
26817
  "aria-label": g.nextTrigger,
26816
26818
  "data-orientation": a("orientation"),
26817
- "aria-controls": Ws(o),
26819
+ "aria-controls": Xs(o),
26818
26820
  disabled: !l,
26819
26821
  onClick(b) {
26820
26822
  b.defaultPrevented || s({ type: "PAGE.NEXT", src: "trigger" });
@@ -27316,14 +27318,14 @@ ai()([
27316
27318
  ai()(["index", "readOnly"]);
27317
27319
  ai()(["index", "snapAlign"]);
27318
27320
  const Ak = (e) => {
27319
- const t = mo(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
27321
+ const t = Ji(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
27320
27322
  id: t,
27321
27323
  dir: r,
27322
27324
  getRootNode: n
27323
27325
  }, e), s = zo(_k, i);
27324
27326
  return yk(s, wc);
27325
27327
  }, lg = ft((e, t) => {
27326
- const [n, r] = ps()(e, [
27328
+ const [n, r] = ms()(e, [
27327
27329
  "allowMouseDrag",
27328
27330
  "autoplay",
27329
27331
  "defaultPage",
@@ -27459,28 +27461,28 @@ const Ok = 180, Pk = (e) => {
27459
27461
  name: "RenderStrategyContext",
27460
27462
  hookName: "useRenderStrategyContext",
27461
27463
  providerName: "<RenderStrategyPropsProvider />"
27462
- }), kk = (e) => ps()(e, ["lazyMount", "unmountOnExit"]), [Rk, gs] = _r({
27464
+ }), kk = (e) => ms()(e, ["lazyMount", "unmountOnExit"]), [Rk, Es] = _r({
27463
27465
  name: "DialogContext",
27464
27466
  hookName: "useDialogContext",
27465
27467
  providerName: "<DialogProvider />"
27466
27468
  }), dg = ft((e, t) => {
27467
- const n = gs(), r = wk(), i = Rc(q(x({}, r), { present: n.open })), s = nt(n.getBackdropProps(), i.getPresenceProps(), e);
27469
+ const n = Es(), r = wk(), i = Rc(q(x({}, r), { present: n.open })), s = nt(n.getBackdropProps(), i.getPresenceProps(), e);
27468
27470
  return i.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, s), { ref: Vo(i.ref, t) }));
27469
27471
  });
27470
27472
  dg.displayName = "DialogBackdrop";
27471
27473
  const zc = ft((e, t) => {
27472
- const n = gs(), r = hs(), i = nt(n.getContentProps(), r.getPresenceProps(), e);
27474
+ const n = Es(), r = ps(), i = nt(n.getContentProps(), r.getPresenceProps(), e);
27473
27475
  return r.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, i), { ref: Vo(r.ref, t) }));
27474
27476
  });
27475
27477
  zc.displayName = "DialogContent";
27476
27478
  const Vc = ft((e, t) => {
27477
- const n = gs(), r = nt(n.getDescriptionProps(), e);
27479
+ const n = Es(), r = nt(n.getDescriptionProps(), e);
27478
27480
  return /* @__PURE__ */ y(Tt.div, q(x({}, r), { ref: t }));
27479
27481
  });
27480
27482
  Vc.displayName = "DialogDescription";
27481
27483
  const qc = ft((e, t) => {
27482
- const n = gs(), r = nt(n.getPositionerProps(), e);
27483
- return hs().unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, r), { ref: t }));
27484
+ const n = Es(), r = nt(n.getPositionerProps(), e);
27485
+ return ps().unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, r), { ref: t }));
27484
27486
  });
27485
27487
  qc.displayName = "DialogPositioner";
27486
27488
  var Lk = ir("dialog").parts(
@@ -27512,7 +27514,7 @@ var Lk = ir("dialog").parts(
27512
27514
  }, mg = (e) => {
27513
27515
  var t, n;
27514
27516
  return (n = (t = e.ids) == null ? void 0 : t.closeTrigger) != null ? n : `dialog:${e.id}:close`;
27515
- }, ks = (e) => e.getById(Nu(e)), Dk = (e) => e.getById(fg(e)), vk = (e) => e.getById(hg(e)), Mk = (e) => e.getById(pg(e)), Fk = (e) => e.getById(Ou(e)), Bk = (e) => e.getById(Pu(e)), Uk = (e) => e.getById(mg(e));
27517
+ }, Rs = (e) => e.getById(Nu(e)), Dk = (e) => e.getById(fg(e)), vk = (e) => e.getById(hg(e)), Mk = (e) => e.getById(pg(e)), Fk = (e) => e.getById(Ou(e)), Bk = (e) => e.getById(Pu(e)), Uk = (e) => e.getById(mg(e));
27516
27518
  function Hk(e, t) {
27517
27519
  const { state: n, send: r, context: i, prop: s, scope: o } = e, a = s("aria-label"), u = n.matches("open");
27518
27520
  return {
@@ -27683,7 +27685,7 @@ var $k = {
27683
27685
  },
27684
27686
  effects: {
27685
27687
  trackDismissableElement({ scope: e, send: t, prop: n }) {
27686
- return jm(() => ks(e), {
27688
+ return jm(() => Rs(e), {
27687
27689
  type: "dialog",
27688
27690
  defer: !0,
27689
27691
  pointerBlocking: n("modal"),
@@ -27710,7 +27712,7 @@ var $k = {
27710
27712
  return Wm(e.getDoc());
27711
27713
  },
27712
27714
  trapFocus({ scope: e, prop: t }) {
27713
- return t("trapFocus") ? Gm(() => ks(e), {
27715
+ return t("trapFocus") ? Gm(() => Rs(e), {
27714
27716
  preventScroll: !0,
27715
27717
  returnFocusOnDeactivate: !!t("restoreFocus"),
27716
27718
  initialFocus: t("initialFocusEl"),
@@ -27722,7 +27724,7 @@ var $k = {
27722
27724
  }) : void 0;
27723
27725
  },
27724
27726
  hideContentBelow({ scope: e, prop: t }) {
27725
- return t("modal") ? qm(() => [ks(e)], { defer: !0 }) : void 0;
27727
+ return t("modal") ? qm(() => [Rs(e)], { defer: !0 }) : void 0;
27726
27728
  }
27727
27729
  },
27728
27730
  actions: {
@@ -27736,7 +27738,7 @@ var $k = {
27736
27738
  },
27737
27739
  syncZIndex({ scope: e }) {
27738
27740
  tt(() => {
27739
- const t = ks(e);
27741
+ const t = Rs(e);
27740
27742
  if (!t) return;
27741
27743
  const n = si(t);
27742
27744
  [Dk(e), vk(e)].forEach((i) => {
@@ -27789,7 +27791,7 @@ ai()([
27789
27791
  "trapFocus"
27790
27792
  ]);
27791
27793
  const zk = (e) => {
27792
- const t = mo(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
27794
+ const t = Ji(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
27793
27795
  id: t,
27794
27796
  getRootNode: n,
27795
27797
  dir: r
@@ -27799,61 +27801,75 @@ const zk = (e) => {
27799
27801
  const [t, a] = km(e), u = a, { children: n } = u, r = dt(u, ["children"]), [i] = kk(t), s = zk(r), o = Rc(nt({ present: s.open }, t));
27800
27802
  return /* @__PURE__ */ y(Rk, { value: s, children: /* @__PURE__ */ y(Ik, { value: i, children: /* @__PURE__ */ y(xm, { value: o, children: n }) }) });
27801
27803
  }, Eg = ft((e, t) => {
27802
- const n = gs(), r = nt(n.getTitleProps(), e);
27804
+ const n = Es(), r = nt(n.getTitleProps(), e);
27803
27805
  return /* @__PURE__ */ y(Tt.h2, q(x({}, r), { ref: t }));
27804
27806
  });
27805
27807
  Eg.displayName = "DialogTitle";
27806
27808
  const Vk = ({ children: e }) => {
27807
- const [t, n] = xe(!1), r = ze(
27809
+ const t = Ji(), n = `overflow-panel-${t}`, r = `overflow-trigger-${t}`, [i, s] = xe(!1), o = ze(
27808
27810
  () => ({
27809
- toggleMenu: () => n((s) => !s),
27810
- closeMenu: () => n(!1)
27811
+ toggleMenu: () => s((u) => !u),
27812
+ closeMenu: () => {
27813
+ var c;
27814
+ const u = document.getElementById(n);
27815
+ u != null && u.contains(document.activeElement) && ((c = document.getElementById(r)) == null || c.focus({ preventScroll: !0 })), s(!1);
27816
+ }
27811
27817
  }),
27812
- []
27813
- ), i = ze(() => ({ isOpen: t }), [t]);
27814
- return /* @__PURE__ */ y(Ac.Provider, { value: r, children: /* @__PURE__ */ y(am.Provider, { value: i, children: e }) });
27818
+ [n, r]
27819
+ ), a = ze(() => ({ isOpen: i, panelId: n, triggerId: r }), [i, n, r]);
27820
+ return /* @__PURE__ */ y(Ac.Provider, { value: o, children: /* @__PURE__ */ y(am.Provider, { value: a, children: e }) });
27815
27821
  }, bg = () => Nt(am), Tg = () => {
27816
27822
  const e = Nt(Ac);
27817
27823
  if (!e)
27818
27824
  throw new Error("useOverflowMenuDispatch must be used within an OverflowMenuProvider");
27819
27825
  return e;
27820
- }, qk = `${I}-overflow-menu-button-trigger`, Yk = ({ componentType: e, children: t }) => {
27821
- const { isOpen: n } = bg(), { closeMenu: r } = Tg(), { globalClassName: i } = Ce(), s = Fe(null);
27826
+ }, qk = ({ componentType: e, children: t }) => {
27827
+ const { isOpen: n, panelId: r, triggerId: i } = bg(), { closeMenu: s } = Tg(), { globalClassName: o } = Ce(), a = Fe(null);
27822
27828
  return we(() => {
27829
+ var d;
27823
27830
  if (!n) return;
27824
- const o = (u) => {
27825
- u.key === "Escape" && r();
27826
- }, a = (u) => {
27827
- const c = u.target;
27828
- c instanceof Element && c.closest(`.${qk}`) || s.current && !s.current.contains(c) && r();
27831
+ const u = a.current;
27832
+ (d = u == null ? void 0 : u.querySelector("button:not(:disabled)")) == null || d.focus();
27833
+ const c = (p) => {
27834
+ p.key === "Escape" && (p.preventDefault(), p.stopPropagation(), s());
27835
+ }, l = (p) => {
27836
+ var m;
27837
+ const h = p.target;
27838
+ (m = document.getElementById(i)) != null && m.contains(h) || a.current && !a.current.contains(h) && s();
27829
27839
  };
27830
- return document.addEventListener("keydown", o), document.addEventListener("mousedown", a), () => {
27831
- document.removeEventListener("keydown", o), document.removeEventListener("mousedown", a);
27840
+ return u == null || u.addEventListener("keydown", c), document.addEventListener("mousedown", l), () => {
27841
+ u == null || u.removeEventListener("keydown", c), document.removeEventListener("mousedown", l);
27832
27842
  };
27833
- }, [n, r]), n ? /* @__PURE__ */ y(
27843
+ }, [n, s, i]), n ? /* @__PURE__ */ y(
27834
27844
  "div",
27835
27845
  {
27836
- ref: s,
27846
+ ref: a,
27847
+ id: r,
27848
+ role: "group",
27849
+ "aria-label": "More options",
27837
27850
  className: v(
27838
27851
  `${I}-overflow-panel`,
27839
- i,
27852
+ o,
27840
27853
  `cim-${e}-component`
27841
27854
  ),
27842
27855
  children: t
27843
27856
  }
27844
27857
  ) : null;
27845
- }, jk = ({ componentType: e, className: t }) => {
27846
- const { toggleMenu: n } = Tg(), { isOpen: r } = bg(), { globalClassName: i } = Ce();
27858
+ }, Yk = ({ componentType: e, className: t }) => {
27859
+ const { toggleMenu: n } = Tg(), { isOpen: r, panelId: i, triggerId: s } = bg(), { globalClassName: o } = Ce();
27847
27860
  return /* @__PURE__ */ y(
27848
27861
  "button",
27849
27862
  {
27863
+ type: "button",
27864
+ id: s,
27865
+ "aria-controls": r ? i : void 0,
27850
27866
  "aria-label": `Overflow menu for ${e}`,
27851
27867
  title: "More options",
27852
27868
  "aria-expanded": r,
27853
27869
  className: v(
27854
27870
  `${I}-overflow-menu-button-trigger`,
27855
27871
  `${I}-icon-button`,
27856
- i,
27872
+ o,
27857
27873
  t,
27858
27874
  `cim-${e}-component`
27859
27875
  ),
@@ -27864,7 +27880,7 @@ const Vk = ({ children: e }) => {
27864
27880
  }, Yc = () => {
27865
27881
  const { status: e, entryType: t } = Xt(), { messages: n } = $t(), r = t === "ask_cim", i = !!(n && n.length > 0), s = !!e.isOpen;
27866
27882
  return r && s || !r && s && i;
27867
- }, Gk = ({
27883
+ }, jk = ({
27868
27884
  componentType: e,
27869
27885
  isIcon: t
27870
27886
  }) => {
@@ -27901,7 +27917,7 @@ const Vk = ({ children: e }) => {
27901
27917
  ]
27902
27918
  }
27903
27919
  );
27904
- }, Wk = ({
27920
+ }, Gk = ({
27905
27921
  componentType: e,
27906
27922
  globalClassName: t,
27907
27923
  controls: n,
@@ -27911,7 +27927,7 @@ const Vk = ({ children: e }) => {
27911
27927
  showOverflowMenu: o,
27912
27928
  showPrimaryToggle: a
27913
27929
  }) => {
27914
- const u = e === "modal" ? Gk : _g;
27930
+ const u = e === "modal" ? jk : _g;
27915
27931
  return /* @__PURE__ */ y("div", { className: v(t, `${I}-${e}-controls`), children: n != null ? /* @__PURE__ */ te(Bt, { children: [
27916
27932
  n,
27917
27933
  r && /* @__PURE__ */ y(
@@ -27923,7 +27939,7 @@ const Vk = ({ children: e }) => {
27923
27939
  }
27924
27940
  )
27925
27941
  ] }) : /* @__PURE__ */ te(Bt, { children: [
27926
- o && /* @__PURE__ */ y(jk, { componentType: e }),
27942
+ o && /* @__PURE__ */ y(Yk, { componentType: e }),
27927
27943
  a && /* @__PURE__ */ y(u, { componentType: e, isIcon: !0 }),
27928
27944
  r && /* @__PURE__ */ y(
27929
27945
  tu,
@@ -27934,7 +27950,7 @@ const Vk = ({ children: e }) => {
27934
27950
  }
27935
27951
  )
27936
27952
  ] }) });
27937
- }, Xk = ({
27953
+ }, Wk = ({
27938
27954
  componentType: e,
27939
27955
  isIcon: t
27940
27956
  }) => {
@@ -27970,7 +27986,7 @@ const Vk = ({ children: e }) => {
27970
27986
  ]
27971
27987
  }
27972
27988
  );
27973
- }, Kk = ({
27989
+ }, Xk = ({
27974
27990
  componentType: e,
27975
27991
  isIcon: t
27976
27992
  }) => {
@@ -28006,7 +28022,7 @@ const Vk = ({ children: e }) => {
28006
28022
  ]
28007
28023
  }
28008
28024
  );
28009
- }, Qk = ({
28025
+ }, Kk = ({
28010
28026
  componentType: e,
28011
28027
  controls: t,
28012
28028
  showOverflowMenu: n,
@@ -28018,19 +28034,19 @@ const Vk = ({ children: e }) => {
28018
28034
  onClearChat: u,
28019
28035
  onEndConversation: c,
28020
28036
  onDownloadTranscript: l
28021
- }) => t != null || !n ? null : /* @__PURE__ */ te(Yk, { componentType: e, children: [
28022
- r && /* @__PURE__ */ y(e === "modal" ? Xk : Kk, { componentType: e }),
28023
- i && /* @__PURE__ */ y(nR, { componentType: e }),
28037
+ }) => t != null || !n ? null : /* @__PURE__ */ te(qk, { componentType: e, children: [
28038
+ r && /* @__PURE__ */ y(e === "modal" ? Wk : Xk, { componentType: e }),
28039
+ i && /* @__PURE__ */ y(tR, { componentType: e }),
28024
28040
  s && /* @__PURE__ */ y(cm, { componentType: e, onClearChat: u }),
28025
28041
  o && c && /* @__PURE__ */ y(
28026
- Zk,
28042
+ Jk,
28027
28043
  {
28028
28044
  componentType: e,
28029
28045
  onEndConversation: c
28030
28046
  }
28031
28047
  ),
28032
28048
  a && l && /* @__PURE__ */ y(
28033
- Jk,
28049
+ Qk,
28034
28050
  {
28035
28051
  componentType: e,
28036
28052
  onDownloadTranscript: l
@@ -28115,7 +28131,7 @@ const Vk = ({ children: e }) => {
28115
28131
  }
28116
28132
  ),
28117
28133
  /* @__PURE__ */ y(
28118
- Wk,
28134
+ Gk,
28119
28135
  {
28120
28136
  componentType: e,
28121
28137
  globalClassName: c,
@@ -28131,7 +28147,7 @@ const Vk = ({ children: e }) => {
28131
28147
  }
28132
28148
  ),
28133
28149
  /* @__PURE__ */ y(
28134
- Qk,
28150
+ Kk,
28135
28151
  {
28136
28152
  componentType: e,
28137
28153
  controls: r,
@@ -28149,7 +28165,7 @@ const Vk = ({ children: e }) => {
28149
28165
  ]
28150
28166
  }
28151
28167
  ) });
28152
- }, Jk = ({
28168
+ }, Qk = ({
28153
28169
  onDownloadTranscript: e,
28154
28170
  componentType: t
28155
28171
  }) => {
@@ -28181,7 +28197,7 @@ const Vk = ({ children: e }) => {
28181
28197
  ]
28182
28198
  }
28183
28199
  );
28184
- }, Zk = ({
28200
+ }, Jk = ({
28185
28201
  onEndConversation: e,
28186
28202
  componentType: t
28187
28203
  }) => {
@@ -28203,7 +28219,7 @@ const Vk = ({ children: e }) => {
28203
28219
  ]
28204
28220
  }
28205
28221
  );
28206
- }, eR = {
28222
+ }, Zk = {
28207
28223
  sparkle: $c,
28208
28224
  plus: ok,
28209
28225
  "paper-plane": ak
@@ -28211,9 +28227,9 @@ const Vk = ({ children: e }) => {
28211
28227
  icon: e,
28212
28228
  className: t
28213
28229
  }) => {
28214
- const n = eR[e];
28230
+ const n = Zk[e];
28215
28231
  return n ? /* @__PURE__ */ y(n, { className: t, "aria-hidden": "true" }) : null;
28216
- }, tR = ({
28232
+ }, eR = ({
28217
28233
  className: e,
28218
28234
  globalClassName: t,
28219
28235
  suggestions: n,
@@ -28270,7 +28286,7 @@ const Vk = ({ children: e }) => {
28270
28286
  )
28271
28287
  }
28272
28288
  );
28273
- }, nR = ({
28289
+ }, tR = ({
28274
28290
  componentType: e,
28275
28291
  isIcon: t
28276
28292
  }) => {
@@ -28344,7 +28360,7 @@ const Vk = ({ children: e }) => {
28344
28360
  ]
28345
28361
  }
28346
28362
  );
28347
- }, rR = ({ isWidgetStandalone: e }) => {
28363
+ }, nR = ({ isWidgetStandalone: e }) => {
28348
28364
  var S, g;
28349
28365
  const {
28350
28366
  globalClassName: t,
@@ -28417,10 +28433,10 @@ const Vk = ({ children: e }) => {
28417
28433
  }
28418
28434
  );
28419
28435
  };
28420
- function iR(e) {
28436
+ function rR(e) {
28421
28437
  return e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey;
28422
28438
  }
28423
- function sR(e) {
28439
+ function iR(e) {
28424
28440
  if (typeof window == "undefined") return !1;
28425
28441
  try {
28426
28442
  return new URL(e, window.location.href).origin === window.location.origin;
@@ -28434,11 +28450,11 @@ function Gc({
28434
28450
  openLinksInNewTab: n,
28435
28451
  onNavigate: r
28436
28452
  }) {
28437
- if (!r || n || !iR(e) || e.defaultPrevented) return;
28453
+ if (!r || n || !rR(e) || e.defaultPrevented) return;
28438
28454
  const i = t || e.currentTarget.href;
28439
- !i || !sR(i) || r(i, e);
28455
+ !i || !iR(i) || r(i, e);
28440
28456
  }
28441
- const oR = ({
28457
+ const sR = ({
28442
28458
  isWidgetStandalone: e,
28443
28459
  product: t
28444
28460
  }) => {
@@ -28533,7 +28549,7 @@ const oR = ({
28533
28549
  ]
28534
28550
  }
28535
28551
  );
28536
- }, aR = ({
28552
+ }, oR = ({
28537
28553
  isWidgetStandalone: e,
28538
28554
  message: t
28539
28555
  }) => {
@@ -28549,7 +28565,7 @@ const oR = ({
28549
28565
  children: s.products.map((o) => {
28550
28566
  const a = n.getPid(o);
28551
28567
  return /* @__PURE__ */ y(
28552
- oR,
28568
+ sR,
28553
28569
  {
28554
28570
  isWidgetStandalone: e,
28555
28571
  product: o
@@ -28560,7 +28576,7 @@ const oR = ({
28560
28576
  }
28561
28577
  )
28562
28578
  ] }) : null;
28563
- }, uR = ({
28579
+ }, aR = ({
28564
28580
  globalClassName: e,
28565
28581
  message: t,
28566
28582
  isWidgetStandalone: n
@@ -28586,7 +28602,7 @@ const oR = ({
28586
28602
  }
28587
28603
  )
28588
28604
  }
28589
- ), cR = ({
28605
+ ), uR = ({
28590
28606
  globalClassName: e,
28591
28607
  entryType: t,
28592
28608
  message: n,
@@ -28601,7 +28617,7 @@ const oR = ({
28601
28617
  return /* @__PURE__ */ te("div", { className: v(e, `${I}-follow-up`), children: [
28602
28618
  /* @__PURE__ */ y("p", { className: v(e, `${I}-text`), children: n.message }),
28603
28619
  /* @__PURE__ */ y(
28604
- tR,
28620
+ eR,
28605
28621
  {
28606
28622
  suggestions: n.suggestions.map((E) => E.displayText),
28607
28623
  disabled: p,
@@ -28621,13 +28637,13 @@ function kf(e, t) {
28621
28637
  r++, i = n.indexOf(t, i + t.length);
28622
28638
  return r;
28623
28639
  }
28624
- function lR(e) {
28640
+ function cR(e) {
28625
28641
  if (typeof e != "string")
28626
28642
  throw new TypeError("Expected a string");
28627
28643
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
28628
28644
  }
28629
- function dR(e, t, n) {
28630
- const i = ko((n || {}).ignore || []), s = fR(t);
28645
+ function lR(e, t, n) {
28646
+ const i = ko((n || {}).ignore || []), s = dR(t);
28631
28647
  let o = -1;
28632
28648
  for (; ++o < s.length; )
28633
28649
  g0(e, "text", a);
@@ -28670,7 +28686,7 @@ function dR(e, t, n) {
28670
28686
  return g ? (m < c.value.length && b.push({ type: "text", value: c.value.slice(m) }), d.children.splice(S, 1, ...b)) : b = [c], S + b.length;
28671
28687
  }
28672
28688
  }
28673
- function fR(e) {
28689
+ function dR(e) {
28674
28690
  const t = [];
28675
28691
  if (!Array.isArray(e))
28676
28692
  throw new TypeError("Expected find and replace tuple or list of tuples");
@@ -28678,37 +28694,37 @@ function fR(e) {
28678
28694
  let r = -1;
28679
28695
  for (; ++r < n.length; ) {
28680
28696
  const i = n[r];
28681
- t.push([hR(i[0]), pR(i[1])]);
28697
+ t.push([fR(i[0]), hR(i[1])]);
28682
28698
  }
28683
28699
  return t;
28684
28700
  }
28685
- function hR(e) {
28686
- return typeof e == "string" ? new RegExp(lR(e), "g") : e;
28701
+ function fR(e) {
28702
+ return typeof e == "string" ? new RegExp(cR(e), "g") : e;
28687
28703
  }
28688
- function pR(e) {
28704
+ function hR(e) {
28689
28705
  return typeof e == "function" ? e : function() {
28690
28706
  return e;
28691
28707
  };
28692
28708
  }
28693
28709
  const Da = "phrasing", va = ["autolink", "link", "image", "label"];
28694
- function mR() {
28710
+ function pR() {
28695
28711
  return {
28696
- transforms: [SR],
28712
+ transforms: [_R],
28697
28713
  enter: {
28698
- literalAutolink: ER,
28714
+ literalAutolink: gR,
28699
28715
  literalAutolinkEmail: Ma,
28700
28716
  literalAutolinkHttp: Ma,
28701
28717
  literalAutolinkWww: Ma
28702
28718
  },
28703
28719
  exit: {
28704
- literalAutolink: _R,
28705
- literalAutolinkEmail: yR,
28706
- literalAutolinkHttp: bR,
28707
- literalAutolinkWww: TR
28720
+ literalAutolink: yR,
28721
+ literalAutolinkEmail: TR,
28722
+ literalAutolinkHttp: ER,
28723
+ literalAutolinkWww: bR
28708
28724
  }
28709
28725
  };
28710
28726
  }
28711
- function gR() {
28727
+ function mR() {
28712
28728
  return {
28713
28729
  unsafe: [
28714
28730
  {
@@ -28735,41 +28751,41 @@ function gR() {
28735
28751
  ]
28736
28752
  };
28737
28753
  }
28738
- function ER(e) {
28754
+ function gR(e) {
28739
28755
  this.enter({ type: "link", title: null, url: "", children: [] }, e);
28740
28756
  }
28741
28757
  function Ma(e) {
28742
28758
  this.config.enter.autolinkProtocol.call(this, e);
28743
28759
  }
28744
- function bR(e) {
28760
+ function ER(e) {
28745
28761
  this.config.exit.autolinkProtocol.call(this, e);
28746
28762
  }
28747
- function TR(e) {
28763
+ function bR(e) {
28748
28764
  this.config.exit.data.call(this, e);
28749
28765
  const t = this.stack[this.stack.length - 1];
28750
28766
  t.type, t.url = "http://" + this.sliceSerialize(e);
28751
28767
  }
28752
- function yR(e) {
28768
+ function TR(e) {
28753
28769
  this.config.exit.autolinkEmail.call(this, e);
28754
28770
  }
28755
- function _R(e) {
28771
+ function yR(e) {
28756
28772
  this.exit(e);
28757
28773
  }
28758
- function SR(e) {
28759
- dR(
28774
+ function _R(e) {
28775
+ lR(
28760
28776
  e,
28761
28777
  [
28762
- [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, AR],
28763
- [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), CR]
28778
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, SR],
28779
+ [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), AR]
28764
28780
  ],
28765
28781
  { ignore: ["link", "linkReference"] }
28766
28782
  );
28767
28783
  }
28768
- function AR(e, t, n, r, i) {
28784
+ function SR(e, t, n, r, i) {
28769
28785
  let s = "";
28770
- if (!Sg(i) || (/^w/i.test(t) && (n = t + n, t = "", s = "http://"), !NR(n)))
28786
+ if (!Sg(i) || (/^w/i.test(t) && (n = t + n, t = "", s = "http://"), !CR(n)))
28771
28787
  return !1;
28772
- const o = OR(n + r);
28788
+ const o = NR(n + r);
28773
28789
  if (!o[0]) return !1;
28774
28790
  const a = {
28775
28791
  type: "link",
@@ -28779,7 +28795,7 @@ function AR(e, t, n, r, i) {
28779
28795
  };
28780
28796
  return o[1] ? [a, { type: "text", value: o[1] }] : a;
28781
28797
  }
28782
- function CR(e, t, n, r) {
28798
+ function AR(e, t, n, r) {
28783
28799
  return (
28784
28800
  // Not an expected previous character.
28785
28801
  !Sg(r, !0) || // Label ends in not allowed character.
@@ -28791,11 +28807,11 @@ function CR(e, t, n, r) {
28791
28807
  }
28792
28808
  );
28793
28809
  }
28794
- function NR(e) {
28810
+ function CR(e) {
28795
28811
  const t = e.split(".");
28796
28812
  return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
28797
28813
  }
28798
- function OR(e) {
28814
+ function NR(e) {
28799
28815
  const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
28800
28816
  if (!t)
28801
28817
  return [e, void 0];
@@ -28812,41 +28828,41 @@ function Sg(e, t) {
28812
28828
  return (e.index === 0 || pr(n) || xo(n)) && // If it’s an email, the previous character should not be a slash.
28813
28829
  (!t || n !== 47);
28814
28830
  }
28815
- Ag.peek = vR;
28816
- function PR() {
28831
+ Ag.peek = DR;
28832
+ function OR() {
28817
28833
  this.buffer();
28818
28834
  }
28819
- function xR(e) {
28835
+ function PR(e) {
28820
28836
  this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
28821
28837
  }
28822
- function IR() {
28838
+ function xR() {
28823
28839
  this.buffer();
28824
28840
  }
28825
- function wR(e) {
28841
+ function IR(e) {
28826
28842
  this.enter(
28827
28843
  { type: "footnoteDefinition", identifier: "", label: "", children: [] },
28828
28844
  e
28829
28845
  );
28830
28846
  }
28831
- function kR(e) {
28847
+ function wR(e) {
28832
28848
  const t = this.resume(), n = this.stack[this.stack.length - 1];
28833
28849
  n.type, n.identifier = Jt(
28834
28850
  this.sliceSerialize(e)
28835
28851
  ).toLowerCase(), n.label = t;
28836
28852
  }
28837
- function RR(e) {
28853
+ function kR(e) {
28838
28854
  this.exit(e);
28839
28855
  }
28840
- function LR(e) {
28856
+ function RR(e) {
28841
28857
  const t = this.resume(), n = this.stack[this.stack.length - 1];
28842
28858
  n.type, n.identifier = Jt(
28843
28859
  this.sliceSerialize(e)
28844
28860
  ).toLowerCase(), n.label = t;
28845
28861
  }
28846
- function DR(e) {
28862
+ function LR(e) {
28847
28863
  this.exit(e);
28848
28864
  }
28849
- function vR() {
28865
+ function DR() {
28850
28866
  return "[";
28851
28867
  }
28852
28868
  function Ag(e, t, n, r) {
@@ -28857,23 +28873,23 @@ function Ag(e, t, n, r) {
28857
28873
  n.safe(n.associationId(e), { after: "]", before: s })
28858
28874
  ), a(), o(), s += i.move("]"), s;
28859
28875
  }
28860
- function MR() {
28876
+ function vR() {
28861
28877
  return {
28862
28878
  enter: {
28863
- gfmFootnoteCallString: PR,
28864
- gfmFootnoteCall: xR,
28865
- gfmFootnoteDefinitionLabelString: IR,
28866
- gfmFootnoteDefinition: wR
28879
+ gfmFootnoteCallString: OR,
28880
+ gfmFootnoteCall: PR,
28881
+ gfmFootnoteDefinitionLabelString: xR,
28882
+ gfmFootnoteDefinition: IR
28867
28883
  },
28868
28884
  exit: {
28869
- gfmFootnoteCallString: kR,
28870
- gfmFootnoteCall: RR,
28871
- gfmFootnoteDefinitionLabelString: LR,
28872
- gfmFootnoteDefinition: DR
28885
+ gfmFootnoteCallString: wR,
28886
+ gfmFootnoteCall: kR,
28887
+ gfmFootnoteDefinitionLabelString: RR,
28888
+ gfmFootnoteDefinition: LR
28873
28889
  }
28874
28890
  };
28875
28891
  }
28876
- function FR(e) {
28892
+ function MR(e) {
28877
28893
  let t = !1;
28878
28894
  return e && e.firstLineBlank && (t = !0), {
28879
28895
  handlers: { footnoteDefinition: n, footnoteReference: Ag },
@@ -28890,18 +28906,18 @@ function FR(e) {
28890
28906
  (t ? `
28891
28907
  ` : " ") + s.indentLines(
28892
28908
  s.containerFlow(r, a.current()),
28893
- t ? Cg : BR
28909
+ t ? Cg : FR
28894
28910
  )
28895
28911
  )), c(), u;
28896
28912
  }
28897
28913
  }
28898
- function BR(e, t, n) {
28914
+ function FR(e, t, n) {
28899
28915
  return t === 0 ? e : Cg(e, t, n);
28900
28916
  }
28901
28917
  function Cg(e, t, n) {
28902
28918
  return (n ? "" : " ") + e;
28903
28919
  }
28904
- const UR = [
28920
+ const BR = [
28905
28921
  "autolink",
28906
28922
  "destinationLiteral",
28907
28923
  "destinationRaw",
@@ -28909,30 +28925,30 @@ const UR = [
28909
28925
  "titleQuote",
28910
28926
  "titleApostrophe"
28911
28927
  ];
28912
- Ng.peek = qR;
28913
- function HR() {
28928
+ Ng.peek = VR;
28929
+ function UR() {
28914
28930
  return {
28915
28931
  canContainEols: ["delete"],
28916
- enter: { strikethrough: zR },
28917
- exit: { strikethrough: VR }
28932
+ enter: { strikethrough: $R },
28933
+ exit: { strikethrough: zR }
28918
28934
  };
28919
28935
  }
28920
- function $R() {
28936
+ function HR() {
28921
28937
  return {
28922
28938
  unsafe: [
28923
28939
  {
28924
28940
  character: "~",
28925
28941
  inConstruct: "phrasing",
28926
- notInConstruct: UR
28942
+ notInConstruct: BR
28927
28943
  }
28928
28944
  ],
28929
28945
  handlers: { delete: Ng }
28930
28946
  };
28931
28947
  }
28932
- function zR(e) {
28948
+ function $R(e) {
28933
28949
  this.enter({ type: "delete", children: [] }, e);
28934
28950
  }
28935
- function VR(e) {
28951
+ function zR(e) {
28936
28952
  this.exit(e);
28937
28953
  }
28938
28954
  function Ng(e, t, n, r) {
@@ -28943,20 +28959,20 @@ function Ng(e, t, n, r) {
28943
28959
  after: "~"
28944
28960
  })), o += i.move("~~"), s(), o;
28945
28961
  }
28946
- function qR() {
28962
+ function VR() {
28947
28963
  return "~";
28948
28964
  }
28949
- function YR(e) {
28965
+ function qR(e) {
28950
28966
  return e.length;
28951
28967
  }
28952
- function jR(e, t) {
28953
- const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || YR, s = [], o = [], a = [], u = [];
28968
+ function YR(e, t) {
28969
+ const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || qR, s = [], o = [], a = [], u = [];
28954
28970
  let c = 0, l = -1;
28955
28971
  for (; ++l < e.length; ) {
28956
28972
  const E = [], S = [];
28957
28973
  let g = -1;
28958
28974
  for (e[l].length > c && (c = e[l].length); ++g < e[l].length; ) {
28959
- const b = GR(e[l][g]);
28975
+ const b = jR(e[l][g]);
28960
28976
  if (n.alignDelimiters !== !1) {
28961
28977
  const T = i(b);
28962
28978
  S[g] = T, (u[g] === void 0 || T > u[g]) && (u[g] = T);
@@ -29011,26 +29027,26 @@ function jR(e, t) {
29011
29027
  return m.join(`
29012
29028
  `);
29013
29029
  }
29014
- function GR(e) {
29030
+ function jR(e) {
29015
29031
  return e == null ? "" : String(e);
29016
29032
  }
29017
29033
  function Rf(e) {
29018
29034
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
29019
29035
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
29020
29036
  }
29021
- function WR(e, t, n, r) {
29037
+ function GR(e, t, n, r) {
29022
29038
  const i = n.enter("blockquote"), s = n.createTracker(r);
29023
29039
  s.move("> "), s.shift(2);
29024
29040
  const o = n.indentLines(
29025
29041
  n.containerFlow(e, s.current()),
29026
- XR
29042
+ WR
29027
29043
  );
29028
29044
  return i(), o;
29029
29045
  }
29030
- function XR(e, t, n) {
29046
+ function WR(e, t, n) {
29031
29047
  return ">" + (n ? "" : " ") + e;
29032
29048
  }
29033
- function KR(e, t) {
29049
+ function XR(e, t) {
29034
29050
  return Lf(e, t.inConstruct, !0) && !Lf(e, t.notInConstruct, !1);
29035
29051
  }
29036
29052
  function Lf(e, t, n) {
@@ -29046,12 +29062,12 @@ function Df(e, t, n, r) {
29046
29062
  let i = -1;
29047
29063
  for (; ++i < n.unsafe.length; )
29048
29064
  if (n.unsafe[i].character === `
29049
- ` && KR(n.stack, n.unsafe[i]))
29065
+ ` && XR(n.stack, n.unsafe[i]))
29050
29066
  return /[ \t]/.test(r.before) ? "" : " ";
29051
29067
  return `\\
29052
29068
  `;
29053
29069
  }
29054
- function QR(e, t) {
29070
+ function KR(e, t) {
29055
29071
  const n = String(e);
29056
29072
  let r = n.indexOf(t), i = r, s = 0, o = 0;
29057
29073
  if (typeof t != "string")
@@ -29060,13 +29076,13 @@ function QR(e, t) {
29060
29076
  r === i ? ++s > o && (o = s) : s = 1, i = r + t.length, r = n.indexOf(t, i);
29061
29077
  return o;
29062
29078
  }
29063
- function JR(e, t) {
29079
+ function QR(e, t) {
29064
29080
  return !!(t.options.fences === !1 && e.value && // If there’s no info…
29065
29081
  !e.lang && // And there’s a non-whitespace character…
29066
29082
  /[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
29067
29083
  !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
29068
29084
  }
29069
- function ZR(e) {
29085
+ function JR(e) {
29070
29086
  const t = e.options.fence || "`";
29071
29087
  if (t !== "`" && t !== "~")
29072
29088
  throw new Error(
@@ -29074,13 +29090,13 @@ function ZR(e) {
29074
29090
  );
29075
29091
  return t;
29076
29092
  }
29077
- function e6(e, t, n, r) {
29078
- const i = ZR(n), s = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
29079
- if (JR(e, n)) {
29080
- const d = n.enter("codeIndented"), p = n.indentLines(s, t6);
29093
+ function ZR(e, t, n, r) {
29094
+ const i = JR(n), s = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
29095
+ if (QR(e, n)) {
29096
+ const d = n.enter("codeIndented"), p = n.indentLines(s, e6);
29081
29097
  return d(), p;
29082
29098
  }
29083
- const a = n.createTracker(r), u = i.repeat(Math.max(QR(s, i) + 1, 3)), c = n.enter("codeFenced");
29099
+ const a = n.createTracker(r), u = i.repeat(Math.max(KR(s, i) + 1, 3)), c = n.enter("codeFenced");
29084
29100
  let l = a.move(u);
29085
29101
  if (e.lang) {
29086
29102
  const d = n.enter(`codeFencedLang${o}`);
@@ -29107,7 +29123,7 @@ function e6(e, t, n, r) {
29107
29123
  `), s && (l += a.move(s + `
29108
29124
  `)), l += a.move(u), c(), l;
29109
29125
  }
29110
- function t6(e, t, n) {
29126
+ function e6(e, t, n) {
29111
29127
  return (n ? "" : " ") + e;
29112
29128
  }
29113
29129
  function Wc(e) {
@@ -29118,7 +29134,7 @@ function Wc(e) {
29118
29134
  );
29119
29135
  return t;
29120
29136
  }
29121
- function n6(e, t, n, r) {
29137
+ function t6(e, t, n, r) {
29122
29138
  const i = Wc(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
29123
29139
  let a = n.enter("label");
29124
29140
  const u = n.createTracker(r);
@@ -29145,7 +29161,7 @@ function n6(e, t, n, r) {
29145
29161
  }, u.current()))
29146
29162
  ), c += u.move(i), a()), o(), c;
29147
29163
  }
29148
- function r6(e) {
29164
+ function n6(e) {
29149
29165
  const t = e.options.emphasis || "*";
29150
29166
  if (t !== "*" && t !== "_")
29151
29167
  throw new Error(
@@ -29156,7 +29172,7 @@ function r6(e) {
29156
29172
  function Ki(e) {
29157
29173
  return "&#x" + e.toString(16).toUpperCase() + ";";
29158
29174
  }
29159
- function ho(e, t, n) {
29175
+ function po(e, t, n) {
29160
29176
  const r = Vr(e), i = Vr(t);
29161
29177
  return r === void 0 ? i === void 0 ? (
29162
29178
  // Letter inside:
@@ -29189,22 +29205,22 @@ function ho(e, t, n) {
29189
29205
  { inside: !1, outside: !1 }
29190
29206
  );
29191
29207
  }
29192
- Og.peek = i6;
29208
+ Og.peek = r6;
29193
29209
  function Og(e, t, n, r) {
29194
- const i = r6(n), s = n.enter("emphasis"), o = n.createTracker(r), a = o.move(i);
29210
+ const i = n6(n), s = n.enter("emphasis"), o = n.createTracker(r), a = o.move(i);
29195
29211
  let u = o.move(
29196
29212
  n.containerPhrasing(e, x({
29197
29213
  after: i,
29198
29214
  before: a
29199
29215
  }, o.current()))
29200
29216
  );
29201
- const c = u.charCodeAt(0), l = ho(
29217
+ const c = u.charCodeAt(0), l = po(
29202
29218
  r.before.charCodeAt(r.before.length - 1),
29203
29219
  c,
29204
29220
  i
29205
29221
  );
29206
29222
  l.inside && (u = Ki(c) + u.slice(1));
29207
- const d = u.charCodeAt(u.length - 1), p = ho(r.after.charCodeAt(0), d, i);
29223
+ const d = u.charCodeAt(u.length - 1), p = po(r.after.charCodeAt(0), d, i);
29208
29224
  p.inside && (u = u.slice(0, -1) + Ki(d));
29209
29225
  const h = o.move(i);
29210
29226
  return s(), n.attentionEncodeSurroundingInfo = {
@@ -29212,19 +29228,19 @@ function Og(e, t, n, r) {
29212
29228
  before: l.outside
29213
29229
  }, a + u + h;
29214
29230
  }
29215
- function i6(e, t, n) {
29231
+ function r6(e, t, n) {
29216
29232
  return n.options.emphasis || "*";
29217
29233
  }
29218
- function s6(e, t) {
29234
+ function i6(e, t) {
29219
29235
  let n = !1;
29220
29236
  return Lo(e, function(r) {
29221
29237
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
29222
29238
  return n = !0, au;
29223
29239
  }), !!((!e.depth || e.depth < 3) && uc(e) && (t.options.setext || n));
29224
29240
  }
29225
- function o6(e, t, n, r) {
29241
+ function s6(e, t, n, r) {
29226
29242
  const i = Math.max(Math.min(6, e.depth || 1), 1), s = n.createTracker(r);
29227
- if (s6(e, n)) {
29243
+ if (i6(e, n)) {
29228
29244
  const l = n.enter("headingSetext"), d = n.enter("phrasing"), p = n.containerPhrasing(e, q(x({}, s.current()), {
29229
29245
  before: `
29230
29246
  `,
@@ -29249,14 +29265,14 @@ function o6(e, t, n, r) {
29249
29265
  }, s.current()));
29250
29266
  return /^[\t ]/.test(c) && (c = Ki(c.charCodeAt(0)) + c.slice(1)), c = c ? o + " " + c : o, n.options.closeAtx && (c += " " + o), u(), a(), c;
29251
29267
  }
29252
- Pg.peek = a6;
29268
+ Pg.peek = o6;
29253
29269
  function Pg(e) {
29254
29270
  return e.value || "";
29255
29271
  }
29256
- function a6() {
29272
+ function o6() {
29257
29273
  return "<";
29258
29274
  }
29259
- xg.peek = u6;
29275
+ xg.peek = a6;
29260
29276
  function xg(e, t, n, r) {
29261
29277
  const i = Wc(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
29262
29278
  let a = n.enter("label");
@@ -29280,10 +29296,10 @@ function xg(e, t, n, r) {
29280
29296
  }, u.current()))
29281
29297
  ), c += u.move(i), a()), c += u.move(")"), o(), c;
29282
29298
  }
29283
- function u6() {
29299
+ function a6() {
29284
29300
  return "!";
29285
29301
  }
29286
- Ig.peek = c6;
29302
+ Ig.peek = u6;
29287
29303
  function Ig(e, t, n, r) {
29288
29304
  const i = e.referenceType, s = n.enter("imageReference");
29289
29305
  let o = n.enter("label");
@@ -29302,10 +29318,10 @@ function Ig(e, t, n, r) {
29302
29318
  }, a.current()));
29303
29319
  return o(), n.stack = l, s(), i === "full" || !c || c !== d ? u += a.move(d + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
29304
29320
  }
29305
- function c6() {
29321
+ function u6() {
29306
29322
  return "!";
29307
29323
  }
29308
- wg.peek = l6;
29324
+ wg.peek = c6;
29309
29325
  function wg(e, t, n) {
29310
29326
  let r = e.value || "", i = "`", s = -1;
29311
29327
  for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
@@ -29321,7 +29337,7 @@ function wg(e, t, n) {
29321
29337
  }
29322
29338
  return i + r + i;
29323
29339
  }
29324
- function l6() {
29340
+ function c6() {
29325
29341
  return "`";
29326
29342
  }
29327
29343
  function kg(e, t) {
@@ -29335,7 +29351,7 @@ function kg(e, t) {
29335
29351
  // references don’t work), space, or angle brackets…
29336
29352
  !/[\0- <>\u007F]/.test(e.url));
29337
29353
  }
29338
- Rg.peek = d6;
29354
+ Rg.peek = l6;
29339
29355
  function Rg(e, t, n, r) {
29340
29356
  const i = Wc(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
29341
29357
  let a, u;
@@ -29373,10 +29389,10 @@ function Rg(e, t, n, r) {
29373
29389
  }, o.current()))
29374
29390
  ), c += o.move(i), u()), c += o.move(")"), a(), c;
29375
29391
  }
29376
- function d6(e, t, n) {
29392
+ function l6(e, t, n) {
29377
29393
  return kg(e, n) ? "<" : "[";
29378
29394
  }
29379
- Lg.peek = f6;
29395
+ Lg.peek = d6;
29380
29396
  function Lg(e, t, n, r) {
29381
29397
  const i = e.referenceType, s = n.enter("linkReference");
29382
29398
  let o = n.enter("label");
@@ -29395,7 +29411,7 @@ function Lg(e, t, n, r) {
29395
29411
  }, a.current()));
29396
29412
  return o(), n.stack = l, s(), i === "full" || !c || c !== d ? u += a.move(d + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
29397
29413
  }
29398
- function f6() {
29414
+ function d6() {
29399
29415
  return "[";
29400
29416
  }
29401
29417
  function Xc(e) {
@@ -29406,7 +29422,7 @@ function Xc(e) {
29406
29422
  );
29407
29423
  return t;
29408
29424
  }
29409
- function h6(e) {
29425
+ function f6(e) {
29410
29426
  const t = Xc(e), n = e.options.bulletOther;
29411
29427
  if (!n)
29412
29428
  return t === "*" ? "-" : "*";
@@ -29420,7 +29436,7 @@ function h6(e) {
29420
29436
  );
29421
29437
  return n;
29422
29438
  }
29423
- function p6(e) {
29439
+ function h6(e) {
29424
29440
  const t = e.options.bulletOrdered || ".";
29425
29441
  if (t !== "." && t !== ")")
29426
29442
  throw new Error(
@@ -29436,10 +29452,10 @@ function Dg(e) {
29436
29452
  );
29437
29453
  return t;
29438
29454
  }
29439
- function m6(e, t, n, r) {
29455
+ function p6(e, t, n, r) {
29440
29456
  const i = n.enter("list"), s = n.bulletCurrent;
29441
- let o = e.ordered ? p6(n) : Xc(n);
29442
- const a = e.ordered ? o === "." ? ")" : "." : h6(n);
29457
+ let o = e.ordered ? h6(n) : Xc(n);
29458
+ const a = e.ordered ? o === "." ? ")" : "." : f6(n);
29443
29459
  let u = t && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
29444
29460
  if (!e.ordered) {
29445
29461
  const l = e.children ? e.children[0] : void 0;
@@ -29464,7 +29480,7 @@ function m6(e, t, n, r) {
29464
29480
  const c = n.containerFlow(e, r);
29465
29481
  return n.bulletLastUsed = o, n.bulletCurrent = s, i(), c;
29466
29482
  }
29467
- function g6(e) {
29483
+ function m6(e) {
29468
29484
  const t = e.options.listItemIndent || "one";
29469
29485
  if (t !== "tab" && t !== "one" && t !== "mixed")
29470
29486
  throw new Error(
@@ -29472,8 +29488,8 @@ function g6(e) {
29472
29488
  );
29473
29489
  return t;
29474
29490
  }
29475
- function E6(e, t, n, r) {
29476
- const i = g6(n);
29491
+ function g6(e, t, n, r) {
29492
+ const i = m6(n);
29477
29493
  let s = n.bulletCurrent || Xc(n);
29478
29494
  t && t.type === "list" && t.ordered && (s = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + s);
29479
29495
  let o = s.length + 1;
@@ -29489,11 +29505,11 @@ function E6(e, t, n, r) {
29489
29505
  return p ? (h ? "" : " ".repeat(o)) + d : (h ? s : s + " ".repeat(o - s.length)) + d;
29490
29506
  }
29491
29507
  }
29492
- function b6(e, t, n, r) {
29508
+ function E6(e, t, n, r) {
29493
29509
  const i = n.enter("paragraph"), s = n.enter("phrasing"), o = n.containerPhrasing(e, r);
29494
29510
  return s(), i(), o;
29495
29511
  }
29496
- const T6 = (
29512
+ const b6 = (
29497
29513
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
29498
29514
  ko([
29499
29515
  "break",
@@ -29519,12 +29535,12 @@ const T6 = (
29519
29535
  "textDirective"
29520
29536
  ])
29521
29537
  );
29522
- function y6(e, t, n, r) {
29538
+ function T6(e, t, n, r) {
29523
29539
  return (e.children.some(function(o) {
29524
- return T6(o);
29540
+ return b6(o);
29525
29541
  }) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
29526
29542
  }
29527
- function _6(e) {
29543
+ function y6(e) {
29528
29544
  const t = e.options.strong || "*";
29529
29545
  if (t !== "*" && t !== "_")
29530
29546
  throw new Error(
@@ -29532,22 +29548,22 @@ function _6(e) {
29532
29548
  );
29533
29549
  return t;
29534
29550
  }
29535
- vg.peek = S6;
29551
+ vg.peek = _6;
29536
29552
  function vg(e, t, n, r) {
29537
- const i = _6(n), s = n.enter("strong"), o = n.createTracker(r), a = o.move(i + i);
29553
+ const i = y6(n), s = n.enter("strong"), o = n.createTracker(r), a = o.move(i + i);
29538
29554
  let u = o.move(
29539
29555
  n.containerPhrasing(e, x({
29540
29556
  after: i,
29541
29557
  before: a
29542
29558
  }, o.current()))
29543
29559
  );
29544
- const c = u.charCodeAt(0), l = ho(
29560
+ const c = u.charCodeAt(0), l = po(
29545
29561
  r.before.charCodeAt(r.before.length - 1),
29546
29562
  c,
29547
29563
  i
29548
29564
  );
29549
29565
  l.inside && (u = Ki(c) + u.slice(1));
29550
- const d = u.charCodeAt(u.length - 1), p = ho(r.after.charCodeAt(0), d, i);
29566
+ const d = u.charCodeAt(u.length - 1), p = po(r.after.charCodeAt(0), d, i);
29551
29567
  p.inside && (u = u.slice(0, -1) + Ki(d));
29552
29568
  const h = o.move(i + i);
29553
29569
  return s(), n.attentionEncodeSurroundingInfo = {
@@ -29555,13 +29571,13 @@ function vg(e, t, n, r) {
29555
29571
  before: l.outside
29556
29572
  }, a + u + h;
29557
29573
  }
29558
- function S6(e, t, n) {
29574
+ function _6(e, t, n) {
29559
29575
  return n.options.strong || "*";
29560
29576
  }
29561
- function A6(e, t, n, r) {
29577
+ function S6(e, t, n, r) {
29562
29578
  return n.safe(e.value, r);
29563
29579
  }
29564
- function C6(e) {
29580
+ function A6(e) {
29565
29581
  const t = e.options.ruleRepetition || 3;
29566
29582
  if (t < 3)
29567
29583
  throw new Error(
@@ -29569,50 +29585,50 @@ function C6(e) {
29569
29585
  );
29570
29586
  return t;
29571
29587
  }
29572
- function N6(e, t, n) {
29573
- const r = (Dg(n) + (n.options.ruleSpaces ? " " : "")).repeat(C6(n));
29588
+ function C6(e, t, n) {
29589
+ const r = (Dg(n) + (n.options.ruleSpaces ? " " : "")).repeat(A6(n));
29574
29590
  return n.options.ruleSpaces ? r.slice(0, -1) : r;
29575
29591
  }
29576
29592
  const Mg = {
29577
- blockquote: WR,
29593
+ blockquote: GR,
29578
29594
  break: Df,
29579
- code: e6,
29580
- definition: n6,
29595
+ code: ZR,
29596
+ definition: t6,
29581
29597
  emphasis: Og,
29582
29598
  hardBreak: Df,
29583
- heading: o6,
29599
+ heading: s6,
29584
29600
  html: Pg,
29585
29601
  image: xg,
29586
29602
  imageReference: Ig,
29587
29603
  inlineCode: wg,
29588
29604
  link: Rg,
29589
29605
  linkReference: Lg,
29590
- list: m6,
29591
- listItem: E6,
29592
- paragraph: b6,
29593
- root: y6,
29606
+ list: p6,
29607
+ listItem: g6,
29608
+ paragraph: E6,
29609
+ root: T6,
29594
29610
  strong: vg,
29595
- text: A6,
29596
- thematicBreak: N6
29611
+ text: S6,
29612
+ thematicBreak: C6
29597
29613
  };
29598
- function O6() {
29614
+ function N6() {
29599
29615
  return {
29600
29616
  enter: {
29601
- table: P6,
29617
+ table: O6,
29602
29618
  tableData: vf,
29603
29619
  tableHeader: vf,
29604
- tableRow: I6
29620
+ tableRow: x6
29605
29621
  },
29606
29622
  exit: {
29607
- codeText: w6,
29608
- table: x6,
29623
+ codeText: I6,
29624
+ table: P6,
29609
29625
  tableData: Fa,
29610
29626
  tableHeader: Fa,
29611
29627
  tableRow: Fa
29612
29628
  }
29613
29629
  };
29614
29630
  }
29615
- function P6(e) {
29631
+ function O6(e) {
29616
29632
  const t = e._align;
29617
29633
  this.enter(
29618
29634
  {
@@ -29625,10 +29641,10 @@ function P6(e) {
29625
29641
  e
29626
29642
  ), this.data.inTable = !0;
29627
29643
  }
29628
- function x6(e) {
29644
+ function P6(e) {
29629
29645
  this.exit(e), this.data.inTable = void 0;
29630
29646
  }
29631
- function I6(e) {
29647
+ function x6(e) {
29632
29648
  this.enter({ type: "tableRow", children: [] }, e);
29633
29649
  }
29634
29650
  function Fa(e) {
@@ -29637,16 +29653,16 @@ function Fa(e) {
29637
29653
  function vf(e) {
29638
29654
  this.enter({ type: "tableCell", children: [] }, e);
29639
29655
  }
29640
- function w6(e) {
29656
+ function I6(e) {
29641
29657
  let t = this.resume();
29642
- this.data.inTable && (t = t.replace(/\\([\\|])/g, k6));
29658
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, w6));
29643
29659
  const n = this.stack[this.stack.length - 1];
29644
29660
  n.type, n.value = t, this.exit(e);
29645
29661
  }
29646
- function k6(e, t) {
29662
+ function w6(e, t) {
29647
29663
  return t === "|" ? t : e;
29648
29664
  }
29649
- function R6(e) {
29665
+ function k6(e) {
29650
29666
  const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, s = n ? " " : "|";
29651
29667
  return {
29652
29668
  unsafe: [
@@ -29691,7 +29707,7 @@ function R6(e) {
29691
29707
  return b(), g(), T;
29692
29708
  }
29693
29709
  function c(h, m) {
29694
- return jR(h, {
29710
+ return YR(h, {
29695
29711
  align: m,
29696
29712
  // @ts-expect-error: `markdown-table` types should support `null`.
29697
29713
  alignDelimiters: r,
@@ -29722,26 +29738,26 @@ function R6(e) {
29722
29738
  return E.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
29723
29739
  }
29724
29740
  }
29725
- function L6() {
29741
+ function R6() {
29726
29742
  return {
29727
29743
  exit: {
29728
29744
  taskListCheckValueChecked: Mf,
29729
29745
  taskListCheckValueUnchecked: Mf,
29730
- paragraph: v6
29746
+ paragraph: D6
29731
29747
  }
29732
29748
  };
29733
29749
  }
29734
- function D6() {
29750
+ function L6() {
29735
29751
  return {
29736
29752
  unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
29737
- handlers: { listItem: M6 }
29753
+ handlers: { listItem: v6 }
29738
29754
  };
29739
29755
  }
29740
29756
  function Mf(e) {
29741
29757
  const t = this.stack[this.stack.length - 2];
29742
29758
  t.type, t.checked = e.type === "taskListCheckValueChecked";
29743
29759
  }
29744
- function v6(e) {
29760
+ function D6(e) {
29745
29761
  const t = this.stack[this.stack.length - 2];
29746
29762
  if (t && t.type === "listItem" && typeof t.checked == "boolean") {
29747
29763
  const n = this.stack[this.stack.length - 1];
@@ -29762,7 +29778,7 @@ function v6(e) {
29762
29778
  }
29763
29779
  this.exit(e);
29764
29780
  }
29765
- function M6(e, t, n, r) {
29781
+ function v6(e, t, n, r) {
29766
29782
  const i = e.children[0], s = typeof e.checked == "boolean" && i && i.type === "paragraph", o = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
29767
29783
  s && a.move(o);
29768
29784
  let u = Mg.listItem(e, t, n, x(x({}, r), a.current()));
@@ -29771,55 +29787,55 @@ function M6(e, t, n, r) {
29771
29787
  return l + o;
29772
29788
  }
29773
29789
  }
29774
- function F6() {
29790
+ function M6() {
29775
29791
  return [
29776
- mR(),
29777
- MR(),
29778
- HR(),
29779
- O6(),
29780
- L6()
29792
+ pR(),
29793
+ vR(),
29794
+ UR(),
29795
+ N6(),
29796
+ R6()
29781
29797
  ];
29782
29798
  }
29783
- function B6(e) {
29799
+ function F6(e) {
29784
29800
  return {
29785
29801
  extensions: [
29786
- gR(),
29787
- FR(e),
29788
- $R(),
29789
- R6(e),
29790
- D6()
29802
+ mR(),
29803
+ MR(e),
29804
+ HR(),
29805
+ k6(e),
29806
+ L6()
29791
29807
  ]
29792
29808
  };
29793
29809
  }
29794
- const U6 = {
29795
- tokenize: Y6,
29810
+ const B6 = {
29811
+ tokenize: q6,
29796
29812
  partial: !0
29797
29813
  }, Fg = {
29798
- tokenize: j6,
29814
+ tokenize: Y6,
29799
29815
  partial: !0
29800
29816
  }, Bg = {
29801
- tokenize: G6,
29817
+ tokenize: j6,
29802
29818
  partial: !0
29803
29819
  }, Ug = {
29804
- tokenize: W6,
29820
+ tokenize: G6,
29805
29821
  partial: !0
29806
- }, H6 = {
29807
- tokenize: X6,
29822
+ }, U6 = {
29823
+ tokenize: W6,
29808
29824
  partial: !0
29809
29825
  }, Hg = {
29810
29826
  name: "wwwAutolink",
29811
- tokenize: V6,
29827
+ tokenize: z6,
29812
29828
  previous: zg
29813
29829
  }, $g = {
29814
29830
  name: "protocolAutolink",
29815
- tokenize: q6,
29831
+ tokenize: V6,
29816
29832
  previous: Vg
29817
29833
  }, Dn = {
29818
29834
  name: "emailAutolink",
29819
- tokenize: z6,
29835
+ tokenize: $6,
29820
29836
  previous: qg
29821
29837
  }, Tn = {};
29822
- function $6() {
29838
+ function H6() {
29823
29839
  return {
29824
29840
  text: Tn
29825
29841
  };
@@ -29835,7 +29851,7 @@ Tn[72] = [Dn, $g];
29835
29851
  Tn[104] = [Dn, $g];
29836
29852
  Tn[87] = [Dn, Hg];
29837
29853
  Tn[119] = [Dn, Hg];
29838
- function z6(e, t, n) {
29854
+ function $6(e, t, n) {
29839
29855
  const r = this;
29840
29856
  let i, s;
29841
29857
  return o;
@@ -29846,7 +29862,7 @@ function z6(e, t, n) {
29846
29862
  return xu(d) ? (e.consume(d), a) : d === 64 ? (e.consume(d), u) : n(d);
29847
29863
  }
29848
29864
  function u(d) {
29849
- return d === 46 ? e.check(H6, l, c)(d) : d === 45 || d === 95 || pt(d) ? (s = !0, e.consume(d), u) : l(d);
29865
+ return d === 46 ? e.check(U6, l, c)(d) : d === 45 || d === 95 || pt(d) ? (s = !0, e.consume(d), u) : l(d);
29850
29866
  }
29851
29867
  function c(d) {
29852
29868
  return e.consume(d), i = !0, u;
@@ -29855,17 +29871,17 @@ function z6(e, t, n) {
29855
29871
  return s && i && Ct(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(d)) : n(d);
29856
29872
  }
29857
29873
  }
29858
- function V6(e, t, n) {
29874
+ function z6(e, t, n) {
29859
29875
  const r = this;
29860
29876
  return i;
29861
29877
  function i(o) {
29862
- return o !== 87 && o !== 119 || !zg.call(r, r.previous) || Kc(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(U6, e.attempt(Fg, e.attempt(Bg, s), n), n)(o));
29878
+ return o !== 87 && o !== 119 || !zg.call(r, r.previous) || Kc(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(B6, e.attempt(Fg, e.attempt(Bg, s), n), n)(o));
29863
29879
  }
29864
29880
  function s(o) {
29865
29881
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(o);
29866
29882
  }
29867
29883
  }
29868
- function q6(e, t, n) {
29884
+ function V6(e, t, n) {
29869
29885
  const r = this;
29870
29886
  let i = "", s = !1;
29871
29887
  return o;
@@ -29886,13 +29902,13 @@ function q6(e, t, n) {
29886
29902
  return d === 47 ? (e.consume(d), s ? c : (s = !0, u)) : n(d);
29887
29903
  }
29888
29904
  function c(d) {
29889
- return d === null || no(d) || De(d) || pr(d) || xo(d) ? n(d) : e.attempt(Fg, e.attempt(Bg, l), n)(d);
29905
+ return d === null || ro(d) || De(d) || pr(d) || xo(d) ? n(d) : e.attempt(Fg, e.attempt(Bg, l), n)(d);
29890
29906
  }
29891
29907
  function l(d) {
29892
29908
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
29893
29909
  }
29894
29910
  }
29895
- function Y6(e, t, n) {
29911
+ function q6(e, t, n) {
29896
29912
  let r = 0;
29897
29913
  return i;
29898
29914
  function i(o) {
@@ -29902,7 +29918,7 @@ function Y6(e, t, n) {
29902
29918
  return o === null ? n(o) : t(o);
29903
29919
  }
29904
29920
  }
29905
- function j6(e, t, n) {
29921
+ function Y6(e, t, n) {
29906
29922
  let r, i, s;
29907
29923
  return o;
29908
29924
  function o(c) {
@@ -29915,7 +29931,7 @@ function j6(e, t, n) {
29915
29931
  return i || r || !s ? n(c) : t(c);
29916
29932
  }
29917
29933
  }
29918
- function G6(e, t) {
29934
+ function j6(e, t) {
29919
29935
  let n = 0, r = 0;
29920
29936
  return i;
29921
29937
  function i(o) {
@@ -29925,7 +29941,7 @@ function G6(e, t) {
29925
29941
  return o === 41 && r++, e.consume(o), i;
29926
29942
  }
29927
29943
  }
29928
- function W6(e, t, n) {
29944
+ function G6(e, t, n) {
29929
29945
  return r;
29930
29946
  function r(a) {
29931
29947
  return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), s) : a === 93 ? (e.consume(a), i) : (
@@ -29944,7 +29960,7 @@ function W6(e, t, n) {
29944
29960
  return a === 59 ? (e.consume(a), r) : Ct(a) ? (e.consume(a), o) : n(a);
29945
29961
  }
29946
29962
  }
29947
- function X6(e, t, n) {
29963
+ function W6(e, t, n) {
29948
29964
  return r;
29949
29965
  function r(s) {
29950
29966
  return e.consume(s), i;
@@ -29980,37 +29996,37 @@ function Kc(e) {
29980
29996
  }
29981
29997
  return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
29982
29998
  }
29983
- const K6 = {
29984
- tokenize: iL,
29999
+ const X6 = {
30000
+ tokenize: rL,
29985
30001
  partial: !0
29986
30002
  };
29987
- function Q6() {
30003
+ function K6() {
29988
30004
  return {
29989
30005
  document: {
29990
30006
  91: {
29991
30007
  name: "gfmFootnoteDefinition",
29992
- tokenize: tL,
30008
+ tokenize: eL,
29993
30009
  continuation: {
29994
- tokenize: nL
30010
+ tokenize: tL
29995
30011
  },
29996
- exit: rL
30012
+ exit: nL
29997
30013
  }
29998
30014
  },
29999
30015
  text: {
30000
30016
  91: {
30001
30017
  name: "gfmFootnoteCall",
30002
- tokenize: eL
30018
+ tokenize: Z6
30003
30019
  },
30004
30020
  93: {
30005
30021
  name: "gfmPotentialFootnoteCall",
30006
30022
  add: "after",
30007
- tokenize: J6,
30008
- resolveTo: Z6
30023
+ tokenize: Q6,
30024
+ resolveTo: J6
30009
30025
  }
30010
30026
  }
30011
30027
  };
30012
30028
  }
30013
- function J6(e, t, n) {
30029
+ function Q6(e, t, n) {
30014
30030
  const r = this;
30015
30031
  let i = r.events.length;
30016
30032
  const s = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
@@ -30035,7 +30051,7 @@ function J6(e, t, n) {
30035
30051
  return c.codePointAt(0) !== 94 || !s.includes(c.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
30036
30052
  }
30037
30053
  }
30038
- function Z6(e, t) {
30054
+ function J6(e, t) {
30039
30055
  let n = e.length;
30040
30056
  for (; n--; )
30041
30057
  if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
@@ -30085,7 +30101,7 @@ function Z6(e, t) {
30085
30101
  ];
30086
30102
  return e.splice(n, e.length - n + 1, ...a), e;
30087
30103
  }
30088
- function eL(e, t, n) {
30104
+ function Z6(e, t, n) {
30089
30105
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
30090
30106
  let s = 0, o;
30091
30107
  return a;
@@ -30115,7 +30131,7 @@ function eL(e, t, n) {
30115
30131
  return d === 91 || d === 92 || d === 93 ? (e.consume(d), s++, c) : c(d);
30116
30132
  }
30117
30133
  }
30118
- function tL(e, t, n) {
30134
+ function eL(e, t, n) {
30119
30135
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
30120
30136
  let s, o = 0, a;
30121
30137
  return u;
@@ -30151,13 +30167,13 @@ function tL(e, t, n) {
30151
30167
  return t(m);
30152
30168
  }
30153
30169
  }
30154
- function nL(e, t, n) {
30155
- return e.check(us, t, e.attempt(K6, t, n));
30170
+ function tL(e, t, n) {
30171
+ return e.check(cs, t, e.attempt(X6, t, n));
30156
30172
  }
30157
- function rL(e) {
30173
+ function nL(e) {
30158
30174
  e.exit("gfmFootnoteDefinition");
30159
30175
  }
30160
- function iL(e, t, n) {
30176
+ function rL(e, t, n) {
30161
30177
  const r = this;
30162
30178
  return Pe(e, i, "gfmFootnoteDefinitionIndent", 5);
30163
30179
  function i(s) {
@@ -30165,7 +30181,7 @@ function iL(e, t, n) {
30165
30181
  return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? t(s) : n(s);
30166
30182
  }
30167
30183
  }
30168
- function sL(e) {
30184
+ function iL(e) {
30169
30185
  let n = (e || {}).singleTilde;
30170
30186
  const r = {
30171
30187
  name: "strikethrough",
@@ -30226,7 +30242,7 @@ function sL(e) {
30226
30242
  }
30227
30243
  }
30228
30244
  }
30229
- class oL {
30245
+ class sL {
30230
30246
  /**
30231
30247
  * Create a new edit map.
30232
30248
  */
@@ -30242,7 +30258,7 @@ class oL {
30242
30258
  * @returns {undefined}
30243
30259
  */
30244
30260
  add(t, n, r) {
30245
- aL(this, t, n, r);
30261
+ oL(this, t, n, r);
30246
30262
  }
30247
30263
  // To do: add this when moving to `micromark`.
30248
30264
  // /**
@@ -30281,7 +30297,7 @@ class oL {
30281
30297
  this.map.length = 0;
30282
30298
  }
30283
30299
  }
30284
- function aL(e, t, n, r) {
30300
+ function oL(e, t, n, r) {
30285
30301
  let i = 0;
30286
30302
  if (!(n === 0 && r.length === 0)) {
30287
30303
  for (; i < e.map.length; ) {
@@ -30294,7 +30310,7 @@ function aL(e, t, n, r) {
30294
30310
  e.map.push([t, n, r]);
30295
30311
  }
30296
30312
  }
30297
- function uL(e, t) {
30313
+ function aL(e, t) {
30298
30314
  let n = !1;
30299
30315
  const r = [];
30300
30316
  for (; t < e.length; ) {
@@ -30314,18 +30330,18 @@ function uL(e, t) {
30314
30330
  }
30315
30331
  return r;
30316
30332
  }
30317
- function cL() {
30333
+ function uL() {
30318
30334
  return {
30319
30335
  flow: {
30320
30336
  null: {
30321
30337
  name: "table",
30322
- tokenize: lL,
30323
- resolveAll: dL
30338
+ tokenize: cL,
30339
+ resolveAll: lL
30324
30340
  }
30325
30341
  }
30326
30342
  };
30327
30343
  }
30328
- function lL(e, t, n) {
30344
+ function cL(e, t, n) {
30329
30345
  const r = this;
30330
30346
  let i = 0, s = 0, o;
30331
30347
  return a;
@@ -30395,9 +30411,9 @@ function lL(e, t, n) {
30395
30411
  return R === 92 || R === 124 ? (e.consume(R), H) : H(R);
30396
30412
  }
30397
30413
  }
30398
- function dL(e, t) {
30414
+ function lL(e, t) {
30399
30415
  let n = -1, r = !0, i = 0, s = [0, 0, 0, 0], o = [0, 0, 0, 0], a = !1, u = 0, c, l, d;
30400
- const p = new oL();
30416
+ const p = new sL();
30401
30417
  for (; ++n < e.length; ) {
30402
30418
  const h = e[n], m = h[1];
30403
30419
  h[0] === "enter" ? m.type === "tableHead" ? (a = !1, u !== 0 && (Ff(p, t, u, c, l), l = void 0, u = 0), c = {
@@ -30410,15 +30426,15 @@ function dL(e, t) {
30410
30426
  start: Object.assign({}, m.start),
30411
30427
  // Note: correct end is set later.
30412
30428
  end: Object.assign({}, m.end)
30413
- }, p.add(n, 0, [["enter", l, t]])), i = m.type === "tableDelimiterRow" ? 2 : l ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (s[1] !== 0 && (o[0] = o[1], d = Rs(p, t, s, i, void 0, d), s = [0, 0, 0, 0]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (s[1] !== 0 && (o[0] = o[1], d = Rs(p, t, s, i, void 0, d)), s = o, o = [s[1], n, 0, 0])) : m.type === "tableHead" ? (a = !0, u = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (u = n, s[1] !== 0 ? (o[0] = o[1], d = Rs(p, t, s, i, n, d)) : o[1] !== 0 && (d = Rs(p, t, o, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
30429
+ }, p.add(n, 0, [["enter", l, t]])), i = m.type === "tableDelimiterRow" ? 2 : l ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (s[1] !== 0 && (o[0] = o[1], d = Ls(p, t, s, i, void 0, d), s = [0, 0, 0, 0]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (s[1] !== 0 && (o[0] = o[1], d = Ls(p, t, s, i, void 0, d)), s = o, o = [s[1], n, 0, 0])) : m.type === "tableHead" ? (a = !0, u = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (u = n, s[1] !== 0 ? (o[0] = o[1], d = Ls(p, t, s, i, n, d)) : o[1] !== 0 && (d = Ls(p, t, o, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
30414
30430
  }
30415
30431
  for (u !== 0 && Ff(p, t, u, c, l), p.consume(t.events), n = -1; ++n < t.events.length; ) {
30416
30432
  const h = t.events[n];
30417
- h[0] === "enter" && h[1].type === "table" && (h[1]._align = uL(t.events, n));
30433
+ h[0] === "enter" && h[1].type === "table" && (h[1]._align = aL(t.events, n));
30418
30434
  }
30419
30435
  return e;
30420
30436
  }
30421
- function Rs(e, t, n, r, i, s) {
30437
+ function Ls(e, t, n, r, i, s) {
30422
30438
  const o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
30423
30439
  n[0] !== 0 && (s.end = Object.assign({}, Lr(t.events, n[0])), e.add(n[0], 0, [["exit", s, t]]));
30424
30440
  const u = Lr(t.events, n[1]);
@@ -30452,18 +30468,18 @@ function Lr(e, t) {
30452
30468
  const n = e[t], r = n[0] === "enter" ? "start" : "end";
30453
30469
  return n[1][r];
30454
30470
  }
30455
- const fL = {
30471
+ const dL = {
30456
30472
  name: "tasklistCheck",
30457
- tokenize: pL
30473
+ tokenize: hL
30458
30474
  };
30459
- function hL() {
30475
+ function fL() {
30460
30476
  return {
30461
30477
  text: {
30462
- 91: fL
30478
+ 91: dL
30463
30479
  }
30464
30480
  };
30465
30481
  }
30466
- function pL(e, t, n) {
30482
+ function hL(e, t, n) {
30467
30483
  const r = this;
30468
30484
  return i;
30469
30485
  function i(u) {
@@ -30482,35 +30498,35 @@ function pL(e, t, n) {
30482
30498
  }
30483
30499
  function a(u) {
30484
30500
  return fe(u) ? t(u) : Ae(u) ? e.check({
30485
- tokenize: mL
30501
+ tokenize: pL
30486
30502
  }, t, n)(u) : n(u);
30487
30503
  }
30488
30504
  }
30489
- function mL(e, t, n) {
30505
+ function pL(e, t, n) {
30490
30506
  return Pe(e, r, "whitespace");
30491
30507
  function r(i) {
30492
30508
  return i === null ? n(i) : t(i);
30493
30509
  }
30494
30510
  }
30495
- function gL(e) {
30511
+ function mL(e) {
30496
30512
  return Kp([
30497
- $6(),
30498
- Q6(),
30499
- sL(e),
30500
- cL(),
30501
- hL()
30513
+ H6(),
30514
+ K6(),
30515
+ iL(e),
30516
+ uL(),
30517
+ fL()
30502
30518
  ]);
30503
30519
  }
30504
- const EL = {};
30505
- function bL(e) {
30520
+ const gL = {};
30521
+ function EL(e) {
30506
30522
  const t = (
30507
30523
  /** @type {Processor<Root>} */
30508
30524
  this
30509
- ), n = e || EL, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
30510
- i.push(gL(n)), s.push(F6()), o.push(B6(n));
30525
+ ), n = e || gL, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
30526
+ i.push(mL(n)), s.push(M6()), o.push(F6(n));
30511
30527
  }
30512
30528
  const Xo = () => /* @__PURE__ */ y("span", { className: `${I}-blinking-cursor`, children: /* @__PURE__ */ y("svg", { "aria-hidden": "true", height: "16px", width: "16px", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ y("circle", { r: "0.45rem", cx: "0.5rem", cy: "0.55rem", fill: "black" }) }) });
30513
- function TL(e) {
30529
+ function bL(e) {
30514
30530
  return /^tel:/i.test(e) ? e : T0(e);
30515
30531
  }
30516
30532
  const Qc = ({
@@ -30522,9 +30538,9 @@ const Qc = ({
30522
30538
  }) => /* @__PURE__ */ y("div", { className: v(e, `${I}-markdown`), children: /* @__PURE__ */ y(
30523
30539
  b0,
30524
30540
  {
30525
- remarkPlugins: [bL],
30541
+ remarkPlugins: [EL],
30526
30542
  rehypePlugins: [nm],
30527
- urlTransform: TL,
30543
+ urlTransform: bL,
30528
30544
  components: {
30529
30545
  h1: ({ children: s }) => /* @__PURE__ */ y("h1", { className: v(e, `${I}-header h1`), children: s }),
30530
30546
  h2: ({ children: s }) => /* @__PURE__ */ y("h2", { className: v(e, `${I}-header h2`), children: s }),
@@ -30552,7 +30568,7 @@ const Qc = ({
30552
30568
  },
30553
30569
  children: r + (n ? `<span className='${I}-blinking-cursor'></span>` : "")
30554
30570
  }
30555
- ) }), yL = ({
30571
+ ) }), TL = ({
30556
30572
  globalClassName: e,
30557
30573
  message: t
30558
30574
  }) => {
@@ -30599,11 +30615,11 @@ const Qc = ({
30599
30615
  n && /* @__PURE__ */ y("div", { className: v(e, `${I}-thought-container`), children: s && /* @__PURE__ */ y("p", { className: v(e, `${I}-progress-thought`), children: t.thought }) })
30600
30616
  ] })
30601
30617
  ] });
30602
- }, _L = ({
30618
+ }, yL = ({
30603
30619
  globalClassName: e,
30604
30620
  message: t,
30605
30621
  isWidgetStandalone: n
30606
- }) => n ? /* @__PURE__ */ y(yL, { globalClassName: e, message: t }) : /* @__PURE__ */ te(
30622
+ }) => n ? /* @__PURE__ */ y(TL, { globalClassName: e, message: t }) : /* @__PURE__ */ te(
30607
30623
  "div",
30608
30624
  {
30609
30625
  className: v(e, `${I}-progress-message`, "embedded"),
@@ -30624,7 +30640,7 @@ const Qc = ({
30624
30640
  /* @__PURE__ */ y("i", { className: v(e, `${I}-progress-text`, "embedded"), children: t.message })
30625
30641
  ]
30626
30642
  }
30627
- ), SL = ({
30643
+ ), _L = ({
30628
30644
  globalClassName: e,
30629
30645
  message: t,
30630
30646
  isWidgetStandalone: n
@@ -30699,7 +30715,7 @@ const Qc = ({
30699
30715
  facetFiltersList: o,
30700
30716
  filterCount: a
30701
30717
  };
30702
- }, po = ({
30718
+ }, mo = ({
30703
30719
  isWidgetStandalone: e,
30704
30720
  globalClassName: t,
30705
30721
  filterCount: n
@@ -30743,7 +30759,7 @@ const Qc = ({
30743
30759
  title: t,
30744
30760
  children: t
30745
30761
  }
30746
- ), AL = ({
30762
+ ), SL = ({
30747
30763
  globalClassName: e,
30748
30764
  message: t,
30749
30765
  isWidgetStandalone: n
@@ -30789,7 +30805,7 @@ const Qc = ({
30789
30805
  }
30790
30806
  ),
30791
30807
  s.length > 0 && /* @__PURE__ */ y(
30792
- po,
30808
+ mo,
30793
30809
  {
30794
30810
  isWidgetStandalone: !0,
30795
30811
  globalClassName: e,
@@ -30840,7 +30856,7 @@ const Qc = ({
30840
30856
  }
30841
30857
  ),
30842
30858
  /* @__PURE__ */ y("p", { className: v(e, `${I}-user-message-text embedded`), children: (l = t.request) == null ? void 0 : l.userPrompt }),
30843
- s.length > 0 && /* @__PURE__ */ y(po, { isWidgetStandalone: !1, filterCount: o })
30859
+ s.length > 0 && /* @__PURE__ */ y(mo, { isWidgetStandalone: !1, filterCount: o })
30844
30860
  ] }),
30845
30861
  /* @__PURE__ */ y(
30846
30862
  Qi,
@@ -30851,7 +30867,7 @@ const Qc = ({
30851
30867
  }
30852
30868
  )
30853
30869
  ] });
30854
- }, CL = ({
30870
+ }, AL = ({
30855
30871
  globalClassName: e,
30856
30872
  timestamp: t,
30857
30873
  actionLabel: n,
@@ -30897,7 +30913,7 @@ const Qc = ({
30897
30913
  }
30898
30914
  ),
30899
30915
  o.length > 0 && /* @__PURE__ */ y(
30900
- po,
30916
+ mo,
30901
30917
  {
30902
30918
  isWidgetStandalone: !0,
30903
30919
  globalClassName: e,
@@ -30924,7 +30940,7 @@ const Qc = ({
30924
30940
  isWidgetStandalone: !0
30925
30941
  }
30926
30942
  )
30927
- ] }), NL = ({
30943
+ ] }), CL = ({
30928
30944
  globalClassName: e,
30929
30945
  message: t,
30930
30946
  isWidgetStandalone: n
@@ -30957,7 +30973,7 @@ const Qc = ({
30957
30973
  }
30958
30974
  }, [i, r]);
30959
30975
  return d ? n ? /* @__PURE__ */ y(
30960
- CL,
30976
+ AL,
30961
30977
  {
30962
30978
  globalClassName: e,
30963
30979
  timestamp: u,
@@ -30989,7 +31005,7 @@ const Qc = ({
30989
31005
  }
30990
31006
  ),
30991
31007
  /* @__PURE__ */ y("p", { className: v(e, `${I}-text bold embedded`), children: p || d }),
30992
- o.length > 0 && /* @__PURE__ */ y(po, { isWidgetStandalone: !1, filterCount: a })
31008
+ o.length > 0 && /* @__PURE__ */ y(mo, { isWidgetStandalone: !1, filterCount: a })
30993
31009
  ] }),
30994
31010
  /* @__PURE__ */ y(
30995
31011
  Qi,
@@ -31019,14 +31035,14 @@ const Qc = ({
31019
31035
  case "copilot_browse":
31020
31036
  case "product_view":
31021
31037
  return h ? /* @__PURE__ */ y(
31022
- AL,
31038
+ SL,
31023
31039
  {
31024
31040
  globalClassName: t,
31025
31041
  isWidgetStandalone: s,
31026
31042
  message: e
31027
31043
  }
31028
31044
  ) : /* @__PURE__ */ y(
31029
- NL,
31045
+ CL,
31030
31046
  {
31031
31047
  globalClassName: t,
31032
31048
  message: e,
@@ -31038,7 +31054,7 @@ const Qc = ({
31038
31054
  case "refined_search":
31039
31055
  case "refined_browse":
31040
31056
  return /* @__PURE__ */ y(
31041
- SL,
31057
+ _L,
31042
31058
  {
31043
31059
  globalClassName: t,
31044
31060
  message: e,
@@ -31047,7 +31063,7 @@ const Qc = ({
31047
31063
  );
31048
31064
  case "follow_up":
31049
31065
  return /* @__PURE__ */ y(
31050
- cR,
31066
+ uR,
31051
31067
  {
31052
31068
  globalClassName: t,
31053
31069
  entryType: i,
@@ -31069,9 +31085,9 @@ const Qc = ({
31069
31085
  }
31070
31086
  );
31071
31087
  case "error":
31072
- return /* @__PURE__ */ y(uR, { message: e, isWidgetStandalone: s });
31073
- case "display_products":
31074
31088
  return /* @__PURE__ */ y(aR, { message: e, isWidgetStandalone: s });
31089
+ case "display_products":
31090
+ return /* @__PURE__ */ y(oR, { message: e, isWidgetStandalone: s });
31075
31091
  // TODO [CIM-1443]: handle product table rendering
31076
31092
  // if (message.attributes?.length > 0) {
31077
31093
  // return (
@@ -31086,7 +31102,7 @@ const Qc = ({
31086
31102
  // }
31087
31103
  case "progress":
31088
31104
  return /* @__PURE__ */ y(
31089
- _L,
31105
+ yL,
31090
31106
  {
31091
31107
  globalClassName: t,
31092
31108
  isWidgetStandalone: s,
@@ -31101,10 +31117,10 @@ const Qc = ({
31101
31117
  default:
31102
31118
  return null;
31103
31119
  }
31104
- }, OL = ({ isWidgetStandalone: e, handleSuggestionClick: t }) => {
31120
+ }, NL = ({ isWidgetStandalone: e, handleSuggestionClick: t }) => {
31105
31121
  const { globalClassName: n, openLinksInNewTab: r, resetConversationMessage: i } = Ce(), { groupedMessages: s } = $t(), { entryType: o } = Xt();
31106
31122
  return /* @__PURE__ */ te(Bt, { children: [
31107
- o === "ask_cim" && /* @__PURE__ */ y(rR, { isWidgetStandalone: e }),
31123
+ o === "ask_cim" && /* @__PURE__ */ y(nR, { isWidgetStandalone: e }),
31108
31124
  s.map((a) => {
31109
31125
  if (a.messages && a.type === "group") {
31110
31126
  let u = new Date(a.createdAt).toLocaleString();
@@ -31172,7 +31188,7 @@ const Qc = ({
31172
31188
  return null;
31173
31189
  })
31174
31190
  ] });
31175
- }, PL = 4e3, xL = (e) => (typeof e == "string" ? e : "").replace(/<[^>]*>/g, " ").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/[`*_~#>|]+/g, " ").replace(/\s+/g, " ").trim().slice(0, PL), IL = ({
31191
+ }, OL = 4e3, PL = (e) => (typeof e == "string" ? e : "").replace(/<[^>]*>/g, " ").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/[`*_~#>|]+/g, " ").replace(/\s+/g, " ").trim().slice(0, OL), xL = ({
31176
31192
  message: e,
31177
31193
  announcementKey: t
31178
31194
  }) => {
@@ -31184,7 +31200,7 @@ const Qc = ({
31184
31200
  clearTimeout(i), clearTimeout(s);
31185
31201
  };
31186
31202
  }, [e, t]), /* @__PURE__ */ y("span", { className: `${I}-visually-hidden`, role: "status", "aria-atomic": "true", children: n });
31187
- }, wL = () => {
31203
+ }, IL = () => {
31188
31204
  const { groupedMessages: e } = $t(), n = e.flatMap(
31189
31205
  (r) => {
31190
31206
  var i;
@@ -31192,13 +31208,13 @@ const Qc = ({
31192
31208
  }
31193
31209
  ).reverse().find((r) => r.name === "inquiry" && !r.bypassHandlers);
31194
31210
  return /* @__PURE__ */ y(
31195
- IL,
31211
+ xL,
31196
31212
  {
31197
- message: n ? xL(n.message) : "",
31213
+ message: n ? PL(n.message) : "",
31198
31214
  announcementKey: n == null ? void 0 : n.id
31199
31215
  }
31200
31216
  );
31201
- }, kL = ({
31217
+ }, wL = ({
31202
31218
  isOpen: e
31203
31219
  } = {}) => {
31204
31220
  const { messages: t } = Rn(), { autoScroll: n } = Ce(), r = Fe(null);
@@ -31210,7 +31226,7 @@ const Qc = ({
31210
31226
  }, [t, n]), we(() => {
31211
31227
  e && r.current && r.current.scrollIntoView(!0);
31212
31228
  }, [e]), r;
31213
- }, RL = {
31229
+ }, kL = {
31214
31230
  display: "flex",
31215
31231
  justifyContent: "flex-start",
31216
31232
  paddingBottom: "1rem"
@@ -31221,20 +31237,20 @@ const Qc = ({
31221
31237
  handleSuggestionClick: r,
31222
31238
  loadingIndicatorStyle: i
31223
31239
  }) => {
31224
- const s = kL({ isOpen: e });
31240
+ const s = wL({ isOpen: e });
31225
31241
  return /* @__PURE__ */ te(Bt, { children: [
31226
31242
  /* @__PURE__ */ y(
31227
- OL,
31243
+ NL,
31228
31244
  {
31229
31245
  isWidgetStandalone: t,
31230
31246
  handleSuggestionClick: r
31231
31247
  }
31232
31248
  ),
31233
- /* @__PURE__ */ y(wL, {}),
31234
- n && /* @__PURE__ */ y("div", { style: x(x({}, RL), i), children: /* @__PURE__ */ y(Xo, {}) }),
31249
+ /* @__PURE__ */ y(IL, {}),
31250
+ n && /* @__PURE__ */ y("div", { style: x(x({}, kL), i), children: /* @__PURE__ */ y(Xo, {}) }),
31235
31251
  /* @__PURE__ */ y("div", { ref: s })
31236
31252
  ] });
31237
- }, LL = () => {
31253
+ }, RL = () => {
31238
31254
  const { layoutPreset: e, globalClassName: t, themeVariables: n, messageAlignment: r } = Ce(), { copilot: i, isLoading: s, handleUserInput: o, handleSuggestion: a, resetConversation: u } = Rn();
31239
31255
  return Yc() ? i ? /* @__PURE__ */ te(
31240
31256
  "div",
@@ -31287,7 +31303,7 @@ const Qc = ({
31287
31303
  }, Gg = (e) => {
31288
31304
  var u;
31289
31305
  const { children: t, disabled: n } = e, [r, i] = xe((u = e.container) == null ? void 0 : u.current), s = sE(
31290
- vL,
31306
+ DL,
31291
31307
  () => !1,
31292
31308
  () => !0
31293
31309
  ), { getRootNode: o } = Wo();
@@ -31297,21 +31313,21 @@ const Qc = ({
31297
31313
  return (c = e.container) == null ? void 0 : c.current;
31298
31314
  });
31299
31315
  }, [e.container]), s || n) return /* @__PURE__ */ y(Bt, { children: t });
31300
- const a = r != null ? r : DL(o);
31316
+ const a = r != null ? r : LL(o);
31301
31317
  return /* @__PURE__ */ y(Bt, { children: zf.map(t, (c) => Iu(c, a)) });
31302
- }, DL = (e) => {
31318
+ }, LL = (e) => {
31303
31319
  const t = e == null ? void 0 : e(), n = t.getRootNode();
31304
31320
  return gr(n) ? n : En(t).body;
31305
- }, vL = () => () => {
31306
- }, ML = [
31321
+ }, DL = () => () => {
31322
+ }, vL = [
31307
31323
  "toggleDialogPosition",
31308
31324
  "minimize",
31309
31325
  "clearChat"
31310
- ], FL = [
31326
+ ], ML = [
31311
31327
  "toggleFullscreen",
31312
31328
  "minimize",
31313
31329
  "clearChat"
31314
- ], BL = () => {
31330
+ ], FL = () => {
31315
31331
  const { layoutPreset: e, globalClassName: t, themeVariables: n, messageAlignment: r } = Ce(), { mode: i, status: s, dialogPosition: o, isDialogFullHeight: a, dialogWidth: u } = Xt(), { copilot: c, isLoading: l, handleUserInput: d, handleSuggestion: p, resetConversation: h } = Rn(), m = Yc(), { isOpen: E } = s || {}, S = i === "standalone", g = () => {
31316
31332
  In(!1), rc();
31317
31333
  };
@@ -31352,7 +31368,7 @@ const Qc = ({
31352
31368
  yg,
31353
31369
  {
31354
31370
  componentType: "dialog",
31355
- overflowActions: ML,
31371
+ overflowActions: vL,
31356
31372
  onClearChat: h,
31357
31373
  onClose: g
31358
31374
  }
@@ -31390,7 +31406,7 @@ const Qc = ({
31390
31406
  ) })
31391
31407
  }
31392
31408
  ) : /* @__PURE__ */ y("div", { children: "Loading Copilot..." });
31393
- }, UL = () => {
31409
+ }, BL = () => {
31394
31410
  const { layoutPreset: e, globalClassName: t, themeVariables: n, messageAlignment: r } = Ce(), { mode: i, status: s, isModalFullscreen: o } = Xt(), { copilot: a, isLoading: u, handleUserInput: c, handleSuggestion: l, resetConversation: d } = Rn(), { isOpen: p } = s || {}, h = i === "standalone", m = Yc(), E = ({ open: g }) => {
31395
31411
  if (g) {
31396
31412
  In(!0);
@@ -31446,7 +31462,7 @@ const Qc = ({
31446
31462
  yg,
31447
31463
  {
31448
31464
  componentType: "modal",
31449
- overflowActions: FL,
31465
+ overflowActions: ML,
31450
31466
  onClearChat: d,
31451
31467
  onClose: S
31452
31468
  }
@@ -31488,12 +31504,12 @@ const Qc = ({
31488
31504
  ) })
31489
31505
  }
31490
31506
  ) : /* @__PURE__ */ y("div", { children: "Loading Copilot..." }) : null;
31491
- }, HL = () => {
31507
+ }, UL = () => {
31492
31508
  const e = Xt(), {
31493
31509
  status: { type: t, isMinimized: n }
31494
31510
  } = e || { status: {} };
31495
- return n ? /* @__PURE__ */ y(P_, {}) : t === "dialog" ? /* @__PURE__ */ y(BL, {}) : t === "modal" ? /* @__PURE__ */ y(UL, {}) : /* @__PURE__ */ y(LL, {});
31496
- }, $L = () => {
31511
+ return n ? /* @__PURE__ */ y(P_, {}) : t === "dialog" ? /* @__PURE__ */ y(FL, {}) : t === "modal" ? /* @__PURE__ */ y(BL, {}) : /* @__PURE__ */ y(RL, {});
31512
+ }, HL = () => {
31497
31513
  const { setIsOpen: e, setIsInline: t, setElementId: n, setEntryType: r, setParams: i } = tc();
31498
31514
  we(() => {
31499
31515
  const s = (o) => {
@@ -31504,7 +31520,7 @@ const Qc = ({
31504
31520
  Ly(s);
31505
31521
  };
31506
31522
  }, [e, t, n, r, i]);
31507
- }, zL = () => {
31523
+ }, $L = () => {
31508
31524
  const { copilot: e } = $t(), { entryType: t, activePromptsId: n, params: r } = kn(), {
31509
31525
  setIsInitialized: i,
31510
31526
  setActivePromptsId: s,
@@ -31512,7 +31528,7 @@ const Qc = ({
31512
31528
  setResponseMessage: a,
31513
31529
  setIsResponseLoading: u
31514
31530
  } = tc(), { getCopilotSuggestions: c } = xp();
31515
- $L();
31531
+ HL();
31516
31532
  const l = oe(
31517
31533
  (m) => {
31518
31534
  if (!t || !m) return;
@@ -31547,7 +31563,7 @@ const Qc = ({
31547
31563
  }, Wg = {
31548
31564
  copilot: "Ask Copilot",
31549
31565
  messaging: "Ask a question"
31550
- }, VL = ({
31566
+ }, zL = ({
31551
31567
  onSubmit: e,
31552
31568
  disabled: t = !1
31553
31569
  }) => {
@@ -31589,7 +31605,7 @@ const Qc = ({
31589
31605
  ]
31590
31606
  }
31591
31607
  );
31592
- }, qL = () => {
31608
+ }, VL = () => {
31593
31609
  const { globalClassName: e, mode: t } = Ce(), { placeholder: n } = kn(), r = n || Wg[t];
31594
31610
  return /* @__PURE__ */ te("div", { className: v(e, `${I}-prompts-header`), children: [
31595
31611
  /* @__PURE__ */ y(
@@ -31623,17 +31639,17 @@ const Qc = ({
31623
31639
  ]
31624
31640
  }
31625
31641
  );
31626
- }, YL = "Ask me something else", jL = ({
31642
+ }, qL = "Ask me something else", YL = ({
31627
31643
  label: e,
31628
31644
  disabled: t = !1
31629
31645
  }) => /* @__PURE__ */ y(
31630
31646
  Xg,
31631
31647
  {
31632
- label: e || YL,
31648
+ label: e || qL,
31633
31649
  disabled: t,
31634
31650
  onClick: () => In(!0)
31635
31651
  }
31636
- ), GL = ({
31652
+ ), jL = ({
31637
31653
  sendCopilotPrompt: e
31638
31654
  }) => {
31639
31655
  var S, g;
@@ -31661,9 +31677,9 @@ const Qc = ({
31661
31677
  },
31662
31678
  b
31663
31679
  )),
31664
- m && /* @__PURE__ */ y(jL, { label: o, disabled: r })
31680
+ m && /* @__PURE__ */ y(YL, { label: o, disabled: r })
31665
31681
  ] });
31666
- }, WL = () => {
31682
+ }, GL = () => {
31667
31683
  const { globalClassName: e } = Ce(), { isInline: t, userPrompt: n } = kn();
31668
31684
  return !n || !t ? null : /* @__PURE__ */ y(
31669
31685
  "div",
@@ -31672,7 +31688,7 @@ const Qc = ({
31672
31688
  children: /* @__PURE__ */ y("p", { className: v(e, `${I}-prompts-user-message`), children: n })
31673
31689
  }
31674
31690
  );
31675
- }, XL = () => {
31691
+ }, WL = () => {
31676
31692
  const { globalClassName: e, openLinksInNewTab: t, onNavigate: n } = Ce(), { isInline: r, responseMessage: i, isResponseLoading: s } = kn();
31677
31693
  if (!r || !i && !s) return null;
31678
31694
  if (s)
@@ -31698,7 +31714,7 @@ const Qc = ({
31698
31714
  )
31699
31715
  }
31700
31716
  );
31701
- }, KL = () => {
31717
+ }, XL = () => {
31702
31718
  const { globalClassName: e, themeVariables: t } = Ce(), { connected: n, copilot: r } = $t(), { handleCopilotRequestAck: i } = Qr(), {
31703
31719
  status: { isOpen: s }
31704
31720
  } = Xt(), {
@@ -31773,9 +31789,9 @@ const Qc = ({
31773
31789
  className: v(e, `${I}-prompts-extension-container`),
31774
31790
  style: t,
31775
31791
  children: [
31776
- p && /* @__PURE__ */ y(VL, { onSubmit: k }),
31777
- !p && /* @__PURE__ */ y(qL, {}),
31778
- h && /* @__PURE__ */ y(GL, { sendCopilotPrompt: k }),
31792
+ p && /* @__PURE__ */ y(zL, { onSubmit: k }),
31793
+ !p && /* @__PURE__ */ y(VL, {}),
31794
+ h && /* @__PURE__ */ y(jL, { sendCopilotPrompt: k }),
31779
31795
  /* @__PURE__ */ te(
31780
31796
  "div",
31781
31797
  {
@@ -31784,8 +31800,8 @@ const Qc = ({
31784
31800
  `${I}-prompts-extension-messages-container`
31785
31801
  ),
31786
31802
  children: [
31787
- /* @__PURE__ */ y(WL, {}),
31788
- /* @__PURE__ */ y(XL, {})
31803
+ /* @__PURE__ */ y(GL, {}),
31804
+ /* @__PURE__ */ y(WL, {})
31789
31805
  ]
31790
31806
  }
31791
31807
  )
@@ -31794,16 +31810,16 @@ const Qc = ({
31794
31810
  ),
31795
31811
  b
31796
31812
  );
31797
- }, QL = () => /* @__PURE__ */ te(Bt, { children: [
31798
- /* @__PURE__ */ y(zL, {}),
31813
+ }, KL = () => /* @__PURE__ */ te(Bt, { children: [
31814
+ /* @__PURE__ */ y($L, {}),
31815
+ /* @__PURE__ */ y(XL, {})
31816
+ ] }), QL = (e) => /* @__PURE__ */ te(p_, q(x({}, e), { children: [
31817
+ /* @__PURE__ */ y(UL, {}),
31799
31818
  /* @__PURE__ */ y(KL, {})
31800
- ] }), JL = (e) => /* @__PURE__ */ te(p_, q(x({}, e), { children: [
31801
- /* @__PURE__ */ y(HL, {}),
31802
- /* @__PURE__ */ y(QL, {})
31803
31819
  ] })), Uf = /* @__PURE__ */ new WeakMap(), Kg = (e, t) => {
31804
31820
  let n = Uf.get(e);
31805
- n || (n = oE(e), Uf.set(e, n)), n.render(/* @__PURE__ */ y(JL, x({}, t)));
31806
- }, ZL = (r) => {
31821
+ n || (n = oE(e), Uf.set(e, n)), n.render(/* @__PURE__ */ y(QL, x({}, t)));
31822
+ }, JL = (r) => {
31807
31823
  var i = r, {
31808
31824
  elementId: e,
31809
31825
  timeout: t = 5e3
@@ -31828,7 +31844,7 @@ const Qc = ({
31828
31844
  `Element with id: ${e} not found within ${t} milliseconds, stopping observation`
31829
31845
  );
31830
31846
  }, t), a;
31831
- }, I4 = (r) => {
31847
+ }, x4 = (r) => {
31832
31848
  var i = r, {
31833
31849
  timeout: e,
31834
31850
  elementId: t
@@ -31842,11 +31858,11 @@ const Qc = ({
31842
31858
  }
31843
31859
  const s = document.getElementById(t);
31844
31860
  if (!s) {
31845
- Fr(!0, "warn", "Container element not found for id:", t), Fr(!0, "warn", "Beginning observation for element"), ZL(x({ elementId: t, timeout: e }, n));
31861
+ Fr(!0, "warn", "Container element not found for id:", t), Fr(!0, "warn", "Beginning observation for element"), JL(x({ elementId: t, timeout: e }, n));
31846
31862
  return;
31847
31863
  }
31848
31864
  Kg(s, n);
31849
- }, w4 = {
31865
+ }, I4 = {
31850
31866
  search: Ky,
31851
31867
  browse: Py,
31852
31868
  pdp: {
@@ -31870,7 +31886,7 @@ const Qc = ({
31870
31886
  getProductViewPrompts: Fy
31871
31887
  },
31872
31888
  session: qy
31873
- }, k4 = () => Object.freeze({
31889
+ }, w4 = () => Object.freeze({
31874
31890
  search: Object.freeze(Be.state),
31875
31891
  browse: Object.freeze(ke.state),
31876
31892
  pdp: Object.freeze(Zt.state),
@@ -31879,13 +31895,13 @@ const Qc = ({
31879
31895
  entryType: Se.entryType
31880
31896
  });
31881
31897
  export {
31882
- BL as CopilotDialog,
31883
- LL as CopilotEmbed,
31884
- UL as CopilotModal,
31885
- JL as CopilotWidget,
31898
+ FL as CopilotDialog,
31899
+ RL as CopilotEmbed,
31900
+ BL as CopilotModal,
31901
+ QL as CopilotWidget,
31886
31902
  p_ as CopilotWidgetProvider,
31887
- w4 as eventHandlers,
31888
- I4 as injectCopilotWidget,
31889
- k4 as state,
31903
+ I4 as eventHandlers,
31904
+ x4 as injectCopilotWidget,
31905
+ w4 as state,
31890
31906
  Rn as useCopilot
31891
31907
  };