@multiplayer-app/ai-agent-react 0.1.0-beta.51 → 0.1.0-beta.52

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.
@@ -272,7 +272,7 @@ function Z7() {
272
272
  }
273
273
  var M = !1, S = !1, x = !1, z = !1, H = !1, C;
274
274
  C = Symbol.for("react.module.reference");
275
- function D(U) {
275
+ function L(U) {
276
276
  return !!(typeof U == "string" || typeof U == "function" || U === r || U === i || H || U === a || U === u || U === d || z || U === h || M || S || x || typeof U == "object" && U !== null && (U.$$typeof === m || U.$$typeof === p || U.$$typeof === o || U.$$typeof === s || U.$$typeof === l || // This needs to include all possible module reference object
277
277
  // types supported by any Flight configuration anywhere since
278
278
  // we don't know which Flight build this will end up being used
@@ -334,14 +334,14 @@ function Z7() {
334
334
  }
335
335
  return null;
336
336
  }
337
- var G = Object.assign, R = 0, B, P, L, K, A, Q, ee;
337
+ var G = Object.assign, R = 0, B, P, D, K, A, Q, ee;
338
338
  function O() {
339
339
  }
340
340
  O.__reactDisabledLog = !0;
341
341
  function ue() {
342
342
  {
343
343
  if (R === 0) {
344
- B = console.log, P = console.info, L = console.warn, K = console.error, A = console.group, Q = console.groupCollapsed, ee = console.groupEnd;
344
+ B = console.log, P = console.info, D = console.warn, K = console.error, A = console.group, Q = console.groupCollapsed, ee = console.groupEnd;
345
345
  var U = {
346
346
  configurable: !0,
347
347
  enumerable: !0,
@@ -377,7 +377,7 @@ function Z7() {
377
377
  value: P
378
378
  }),
379
379
  warn: G({}, U, {
380
- value: L
380
+ value: D
381
381
  }),
382
382
  error: G({}, U, {
383
383
  value: K
@@ -780,7 +780,7 @@ Check the top-level render call using <` + ye + ">.");
780
780
  var a2 = {};
781
781
  function i2(U, ie, ye, Oe, tt, ot) {
782
782
  {
783
- var We = D(U);
783
+ var We = L(U);
784
784
  if (!We) {
785
785
  var je = "";
786
786
  (U === void 0 || typeof U == "object" && U !== null && Object.keys(U).length === 0) && (je += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -1747,8 +1747,8 @@ class cs {
1747
1747
  const C = JSON.parse(z).choices?.[0]?.delta;
1748
1748
  if (!C)
1749
1749
  continue;
1750
- const D = C.content ?? "", W = C.reasoning ?? "";
1751
- D && (w.content += D, n({
1750
+ const L = C.content ?? "", W = C.reasoning ?? "";
1751
+ L && (w.content += L, n({
1752
1752
  type: Nn.Message,
1753
1753
  message: { ...w }
1754
1754
  })), W && (y += W, n({
@@ -29241,12 +29241,12 @@ const N8e = function(e) {
29241
29241
  const _ = Fr(a), k = gr(s), v = Fr(s) === s, M = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = m || (v || !y ? [no(s)] : L6e(s)), x = f !== "none";
29242
29242
  !m && x && S.push(...F6e(s, y, f, M));
29243
29243
  const z = [s, ...S], H = await s3(t, w), C = [];
29244
- let D = ((r = i.flip) == null ? void 0 : r.overflows) || [];
29244
+ let L = ((r = i.flip) == null ? void 0 : r.overflows) || [];
29245
29245
  if (d && C.push(H[_]), p) {
29246
29246
  const G = O6e(a, o, M);
29247
29247
  C.push(H[G[0]], H[G[1]]);
29248
29248
  }
29249
- if (D = [...D, {
29249
+ if (L = [...L, {
29250
29250
  placement: a,
29251
29251
  overflows: C
29252
29252
  }], !C.every((G) => G <= 0)) {
@@ -29254,30 +29254,30 @@ const N8e = function(e) {
29254
29254
  const G = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, R = z[G];
29255
29255
  if (R && (!(p === "alignment" ? k !== gr(R) : !1) || // We leave the current main axis only if every placement on that axis
29256
29256
  // overflows the main axis.
29257
- D.every((L) => gr(L.placement) === k ? L.overflows[0] > 0 : !0)))
29257
+ L.every((D) => gr(D.placement) === k ? D.overflows[0] > 0 : !0)))
29258
29258
  return {
29259
29259
  data: {
29260
29260
  index: G,
29261
- overflows: D
29261
+ overflows: L
29262
29262
  },
29263
29263
  reset: {
29264
29264
  placement: R
29265
29265
  }
29266
29266
  };
29267
- let B = (Y = D.filter((P) => P.overflows[0] <= 0).sort((P, L) => P.overflows[1] - L.overflows[1])[0]) == null ? void 0 : Y.placement;
29267
+ let B = (Y = L.filter((P) => P.overflows[0] <= 0).sort((P, D) => P.overflows[1] - D.overflows[1])[0]) == null ? void 0 : Y.placement;
29268
29268
  if (!B)
29269
29269
  switch (h) {
29270
29270
  case "bestFit": {
29271
29271
  var J;
29272
- const P = (J = D.filter((L) => {
29272
+ const P = (J = L.filter((D) => {
29273
29273
  if (x) {
29274
- const K = gr(L.placement);
29274
+ const K = gr(D.placement);
29275
29275
  return K === k || // Create a bias to the `y` side axis due to horizontal
29276
29276
  // reading directions favoring greater width.
29277
29277
  K === "y";
29278
29278
  }
29279
29279
  return !0;
29280
- }).map((L) => [L.placement, L.overflows.filter((K) => K > 0).reduce((K, A) => K + A, 0)]).sort((L, K) => L[1] - K[1])[0]) == null ? void 0 : J[0];
29280
+ }).map((D) => [D.placement, D.overflows.filter((K) => K > 0).reduce((K, A) => K + A, 0)]).sort((D, K) => D[1] - K[1])[0]) == null ? void 0 : J[0];
29281
29281
  P && (B = P);
29282
29282
  break;
29283
29283
  }
@@ -29859,19 +29859,19 @@ function e7e(e) {
29859
29859
  isPositioned: !1
29860
29860
  }), [m, h] = te.useState(r);
29861
29861
  io(m, r) || h(r);
29862
- const [f, y] = te.useState(null), [w, _] = te.useState(null), k = te.useCallback((L) => {
29863
- L !== x.current && (x.current = L, y(L));
29864
- }, []), v = te.useCallback((L) => {
29865
- L !== z.current && (z.current = L, _(L));
29866
- }, []), M = i || f, S = o || w, x = te.useRef(null), z = te.useRef(null), H = te.useRef(d), C = l != null, D = gs(l), W = gs(a), Y = gs(u), J = te.useCallback(() => {
29862
+ const [f, y] = te.useState(null), [w, _] = te.useState(null), k = te.useCallback((D) => {
29863
+ D !== x.current && (x.current = D, y(D));
29864
+ }, []), v = te.useCallback((D) => {
29865
+ D !== z.current && (z.current = D, _(D));
29866
+ }, []), M = i || f, S = o || w, x = te.useRef(null), z = te.useRef(null), H = te.useRef(d), C = l != null, L = gs(l), W = gs(a), Y = gs(u), J = te.useCallback(() => {
29867
29867
  if (!x.current || !z.current)
29868
29868
  return;
29869
- const L = {
29869
+ const D = {
29870
29870
  placement: t,
29871
29871
  strategy: n,
29872
29872
  middleware: m
29873
29873
  };
29874
- W.current && (L.platform = W.current), X8e(x.current, z.current, L).then((K) => {
29874
+ W.current && (D.platform = W.current), X8e(x.current, z.current, D).then((K) => {
29875
29875
  const A = {
29876
29876
  ...K,
29877
29877
  // The floating element's position may be recomputed while it's closed
@@ -29886,8 +29886,8 @@ function e7e(e) {
29886
29886
  });
29887
29887
  }, [m, t, n, W, Y]);
29888
29888
  Hi(() => {
29889
- u === !1 && H.current.isPositioned && (H.current.isPositioned = !1, p((L) => ({
29890
- ...L,
29889
+ u === !1 && H.current.isPositioned && (H.current.isPositioned = !1, p((D) => ({
29890
+ ...D,
29891
29891
  isPositioned: !1
29892
29892
  })));
29893
29893
  }, [u]);
@@ -29896,11 +29896,11 @@ function e7e(e) {
29896
29896
  G.current = !1;
29897
29897
  }), []), Hi(() => {
29898
29898
  if (M && (x.current = M), S && (z.current = S), M && S) {
29899
- if (D.current)
29900
- return D.current(M, S, J);
29899
+ if (L.current)
29900
+ return L.current(M, S, J);
29901
29901
  J();
29902
29902
  }
29903
- }, [M, S, J, D, C]);
29903
+ }, [M, S, J, L, C]);
29904
29904
  const R = te.useMemo(() => ({
29905
29905
  reference: x,
29906
29906
  floating: z,
@@ -29910,16 +29910,16 @@ function e7e(e) {
29910
29910
  reference: M,
29911
29911
  floating: S
29912
29912
  }), [M, S]), P = te.useMemo(() => {
29913
- const L = {
29913
+ const D = {
29914
29914
  position: n,
29915
29915
  left: 0,
29916
29916
  top: 0
29917
29917
  };
29918
29918
  if (!B.floating)
29919
- return L;
29919
+ return D;
29920
29920
  const K = S2(B.floating, d.x), A = S2(B.floating, d.y);
29921
29921
  return s ? {
29922
- ...L,
29922
+ ...D,
29923
29923
  transform: "translate(" + K + "px, " + A + "px)",
29924
29924
  ...m3(B.floating) >= 1.5 && {
29925
29925
  willChange: "transform"
@@ -30042,19 +30042,19 @@ function u7e(e, t) {
30042
30042
  restMs: p = 0,
30043
30043
  move: m = !0
30044
30044
  } = t, h = Oo(), f = Io(), y = tr(u), w = tr(l), _ = tr(n), k = tr(p), v = te.useRef(), M = te.useRef(-1), S = te.useRef(), x = te.useRef(-1), z = te.useRef(!0), H = te.useRef(!1), C = te.useRef(() => {
30045
- }), D = te.useRef(!1), W = cn(() => {
30045
+ }), L = te.useRef(!1), W = cn(() => {
30046
30046
  var P;
30047
- const L = (P = a.current.openEvent) == null ? void 0 : P.type;
30048
- return L?.includes("mouse") && L !== "mousedown";
30047
+ const D = (P = a.current.openEvent) == null ? void 0 : P.type;
30048
+ return D?.includes("mouse") && D !== "mousedown";
30049
30049
  });
30050
30050
  te.useEffect(() => {
30051
30051
  if (!s)
30052
30052
  return;
30053
- function P(L) {
30053
+ function P(D) {
30054
30054
  let {
30055
30055
  open: K
30056
- } = L;
30057
- K || (mn(M), mn(x), z.current = !0, D.current = !1);
30056
+ } = D;
30057
+ K || (mn(M), mn(x), z.current = !0, L.current = !1);
30058
30058
  }
30059
30059
  return i.on("openchange", P), () => {
30060
30060
  i.off("openchange", P);
@@ -30065,15 +30065,15 @@ function u7e(e, t) {
30065
30065
  function P(K) {
30066
30066
  W() && r(!1, K, "hover");
30067
30067
  }
30068
- const L = An(o.floating).documentElement;
30069
- return L.addEventListener("mouseleave", P), () => {
30070
- L.removeEventListener("mouseleave", P);
30068
+ const D = An(o.floating).documentElement;
30069
+ return D.addEventListener("mouseleave", P), () => {
30070
+ D.removeEventListener("mouseleave", P);
30071
30071
  };
30072
30072
  }, [o.floating, n, r, s, y, W]);
30073
- const Y = te.useCallback(function(P, L, K) {
30074
- L === void 0 && (L = !0), K === void 0 && (K = "hover");
30073
+ const Y = te.useCallback(function(P, D, K) {
30074
+ D === void 0 && (D = !0), K === void 0 && (K = "hover");
30075
30075
  const A = bs(w.current, "close", v.current);
30076
- A && !S.current ? (mn(M), M.current = window.setTimeout(() => r(!1, P, K), A)) : L && (mn(M), r(!1, P, K));
30076
+ A && !S.current ? (mn(M), M.current = window.setTimeout(() => r(!1, P, K), A)) : D && (mn(M), r(!1, P, K));
30077
30077
  }, [w, r]), J = cn(() => {
30078
30078
  C.current(), S.current = void 0;
30079
30079
  }), G = cn(() => {
@@ -30093,14 +30093,14 @@ function u7e(e, t) {
30093
30093
  _.current || r(!0, ee, "hover");
30094
30094
  }, O) : n || r(!0, ee, "hover");
30095
30095
  }
30096
- function L(ee) {
30096
+ function D(ee) {
30097
30097
  if (R()) {
30098
30098
  G();
30099
30099
  return;
30100
30100
  }
30101
30101
  C.current();
30102
30102
  const O = An(o.floating);
30103
- if (mn(x), D.current = !1, y.current && a.current.floatingContext) {
30103
+ if (mn(x), L.current = !1, y.current && a.current.floatingContext) {
30104
30104
  n || mn(M), S.current = y.current({
30105
30105
  ...a.current.floatingContext,
30106
30106
  tree: h,
@@ -30139,8 +30139,8 @@ function u7e(e, t) {
30139
30139
  const ee = o.domReference, O = o.floating;
30140
30140
  return n && ee.addEventListener("mouseleave", K), m && ee.addEventListener("mousemove", P, {
30141
30141
  once: !0
30142
- }), ee.addEventListener("mouseenter", P), ee.addEventListener("mouseleave", L), O && (O.addEventListener("mouseleave", K), O.addEventListener("mouseenter", A), O.addEventListener("mouseleave", Q)), () => {
30143
- n && ee.removeEventListener("mouseleave", K), m && ee.removeEventListener("mousemove", P), ee.removeEventListener("mouseenter", P), ee.removeEventListener("mouseleave", L), O && (O.removeEventListener("mouseleave", K), O.removeEventListener("mouseenter", A), O.removeEventListener("mouseleave", Q));
30142
+ }), ee.addEventListener("mouseenter", P), ee.addEventListener("mouseleave", D), O && (O.addEventListener("mouseleave", K), O.addEventListener("mouseenter", A), O.addEventListener("mouseleave", Q)), () => {
30143
+ n && ee.removeEventListener("mouseleave", K), m && ee.removeEventListener("mousemove", P), ee.removeEventListener("mouseenter", P), ee.removeEventListener("mouseleave", D), O && (O.removeEventListener("mouseleave", K), O.removeEventListener("mouseenter", A), O.removeEventListener("mouseleave", Q));
30144
30144
  };
30145
30145
  }
30146
30146
  }, [o, s, e, d, m, Y, J, G, r, n, _, h, w, y, a, R, k]), Dt(() => {
@@ -30149,35 +30149,35 @@ function u7e(e, t) {
30149
30149
  H.current = !0;
30150
30150
  const K = o.floating;
30151
30151
  if (dt(o.domReference) && K) {
30152
- var L;
30152
+ var D;
30153
30153
  const A = An(o.floating).body;
30154
30154
  A.setAttribute(R2, "");
30155
- const Q = o.domReference, ee = h == null || (L = h.nodesRef.current.find((O) => O.id === f)) == null || (L = L.context) == null ? void 0 : L.elements.floating;
30155
+ const Q = o.domReference, ee = h == null || (D = h.nodesRef.current.find((O) => O.id === f)) == null || (D = D.context) == null ? void 0 : D.elements.floating;
30156
30156
  return ee && (ee.style.pointerEvents = ""), A.style.pointerEvents = "none", Q.style.pointerEvents = "auto", K.style.pointerEvents = "auto", () => {
30157
30157
  A.style.pointerEvents = "", Q.style.pointerEvents = "", K.style.pointerEvents = "";
30158
30158
  };
30159
30159
  }
30160
30160
  }
30161
30161
  }, [s, n, f, o, h, y, W]), Dt(() => {
30162
- n || (v.current = void 0, D.current = !1, J(), G());
30162
+ n || (v.current = void 0, L.current = !1, J(), G());
30163
30163
  }, [n, J, G]), te.useEffect(() => () => {
30164
30164
  J(), mn(M), mn(x), G();
30165
30165
  }, [s, o.domReference, J, G]);
30166
30166
  const B = te.useMemo(() => {
30167
- function P(L) {
30168
- v.current = L.pointerType;
30167
+ function P(D) {
30168
+ v.current = D.pointerType;
30169
30169
  }
30170
30170
  return {
30171
30171
  onPointerDown: P,
30172
30172
  onPointerEnter: P,
30173
- onMouseMove(L) {
30173
+ onMouseMove(D) {
30174
30174
  const {
30175
30175
  nativeEvent: K
30176
- } = L;
30176
+ } = D;
30177
30177
  function A() {
30178
30178
  !z.current && !_.current && r(!0, K, "hover");
30179
30179
  }
30180
- d && !Ha(v.current) || n || ks(k.current) === 0 || D.current && L.movementX ** 2 + L.movementY ** 2 < 2 || (mn(x), v.current === "touch" ? A() : (D.current = !0, x.current = window.setTimeout(A, ks(k.current))));
30180
+ d && !Ha(v.current) || n || ks(k.current) === 0 || L.current && D.movementX ** 2 + D.movementY ** 2 < 2 || (mn(x), v.current === "touch" ? A() : (L.current = !0, x.current = window.setTimeout(A, ks(k.current))));
30181
30181
  }
30182
30182
  };
30183
30183
  }, [d, r, n, _, k]);
@@ -30423,14 +30423,14 @@ function Mp(e, t) {
30423
30423
  return;
30424
30424
  const B = (R = i.current.floatingContext) == null ? void 0 : R.nodeId, P = y ? La(y.nodesRef.current, B) : [];
30425
30425
  if (!v && (G.stopPropagation(), P.length > 0)) {
30426
- let L = !0;
30426
+ let D = !0;
30427
30427
  if (P.forEach((K) => {
30428
30428
  var A;
30429
30429
  if ((A = K.context) != null && A.open && !K.context.dataRef.current.__escapeKeyBubbles) {
30430
- L = !1;
30430
+ D = !1;
30431
30431
  return;
30432
30432
  }
30433
- }), !L)
30433
+ }), !D)
30434
30434
  return;
30435
30435
  }
30436
30436
  r(!1, d8e(G) ? G.nativeEvent : G, "escape-key");
@@ -30441,28 +30441,28 @@ function Mp(e, t) {
30441
30441
  H(G), (P = ea(G)) == null || P.removeEventListener("keydown", B);
30442
30442
  };
30443
30443
  (R = ea(G)) == null || R.addEventListener("keydown", B);
30444
- }), D = cn((G) => {
30444
+ }), L = cn((G) => {
30445
30445
  var R;
30446
30446
  const B = i.current.insideReactTree;
30447
30447
  i.current.insideReactTree = !1;
30448
30448
  const P = k.current;
30449
30449
  if (k.current = !1, u === "click" && P || B || typeof _ == "function" && !_(G))
30450
30450
  return;
30451
- const L = ea(G), K = "[" + ri("inert") + "]", A = An(a.floating).querySelectorAll(K);
30452
- let Q = dt(L) ? L : null;
30451
+ const D = ea(G), K = "[" + ri("inert") + "]", A = An(a.floating).querySelectorAll(K);
30452
+ let Q = dt(D) ? D : null;
30453
30453
  for (; Q && !ar(Q); ) {
30454
30454
  const ge = sr(Q);
30455
30455
  if (ar(ge) || !dt(ge))
30456
30456
  break;
30457
30457
  Q = ge;
30458
30458
  }
30459
- if (A.length && dt(L) && !s8e(L) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
30460
- !Pr(L, a.floating) && // If the target root element contains none of the markers, then the
30459
+ if (A.length && dt(D) && !s8e(D) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
30460
+ !Pr(D, a.floating) && // If the target root element contains none of the markers, then the
30461
30461
  // element was injected after the floating element rendered.
30462
30462
  Array.from(A).every((ge) => !Pr(Q, ge)))
30463
30463
  return;
30464
- if (Pt(L) && J) {
30465
- const ge = ar(L), be = _n(L), Ie = /auto|scroll/, De = ge || Ie.test(be.overflowX), Ue = ge || Ie.test(be.overflowY), ne = De && L.clientWidth > 0 && L.scrollWidth > L.clientWidth, we = Ue && L.clientHeight > 0 && L.scrollHeight > L.clientHeight, Xe = be.direction === "rtl", Qe = we && (Xe ? G.offsetX <= L.offsetWidth - L.clientWidth : G.offsetX > L.clientWidth), _e = ne && G.offsetY > L.clientHeight;
30464
+ if (Pt(D) && J) {
30465
+ const ge = ar(D), be = _n(D), Ie = /auto|scroll/, De = ge || Ie.test(be.overflowX), Ue = ge || Ie.test(be.overflowY), ne = De && D.clientWidth > 0 && D.scrollWidth > D.clientWidth, we = Ue && D.clientHeight > 0 && D.scrollHeight > D.clientHeight, Xe = be.direction === "rtl", Qe = we && (Xe ? G.offsetX <= D.offsetWidth - D.clientWidth : G.offsetX > D.clientWidth), _e = ne && G.offsetY > D.clientHeight;
30466
30466
  if (Qe || _e)
30467
30467
  return;
30468
30468
  }
@@ -30489,7 +30489,7 @@ function Mp(e, t) {
30489
30489
  var R;
30490
30490
  const B = () => {
30491
30491
  var P;
30492
- D(G), (P = ea(G)) == null || P.removeEventListener(u, B);
30492
+ L(G), (P = ea(G)) == null || P.removeEventListener(u, B);
30493
30493
  };
30494
30494
  (R = ea(G)) == null || R.addEventListener(u, B);
30495
30495
  });
@@ -30514,22 +30514,22 @@ function Mp(e, t) {
30514
30514
  So() ? 5 : 0
30515
30515
  );
30516
30516
  }
30517
- const L = An(a.floating);
30518
- s && (L.addEventListener("keydown", S ? C : H, S), L.addEventListener("compositionstart", B), L.addEventListener("compositionend", P)), _ && L.addEventListener(u, x ? W : D, x);
30517
+ const D = An(a.floating);
30518
+ s && (D.addEventListener("keydown", S ? C : H, S), D.addEventListener("compositionstart", B), D.addEventListener("compositionend", P)), _ && D.addEventListener(u, x ? W : L, x);
30519
30519
  let K = [];
30520
30520
  return m && (dt(a.domReference) && (K = kr(a.domReference)), dt(a.floating) && (K = K.concat(kr(a.floating))), !dt(a.reference) && a.reference && a.reference.contextElement && (K = K.concat(kr(a.reference.contextElement)))), K = K.filter((A) => {
30521
30521
  var Q;
30522
- return A !== ((Q = L.defaultView) == null ? void 0 : Q.visualViewport);
30522
+ return A !== ((Q = D.defaultView) == null ? void 0 : Q.visualViewport);
30523
30523
  }), K.forEach((A) => {
30524
30524
  A.addEventListener("scroll", R, {
30525
30525
  passive: !0
30526
30526
  });
30527
30527
  }), () => {
30528
- s && (L.removeEventListener("keydown", S ? C : H, S), L.removeEventListener("compositionstart", B), L.removeEventListener("compositionend", P)), _ && L.removeEventListener(u, x ? W : D, x), K.forEach((A) => {
30528
+ s && (D.removeEventListener("keydown", S ? C : H, S), D.removeEventListener("compositionstart", B), D.removeEventListener("compositionend", P)), _ && D.removeEventListener(u, x ? W : L, x), K.forEach((A) => {
30529
30529
  A.removeEventListener("scroll", R);
30530
30530
  }), window.clearTimeout(G);
30531
30531
  };
30532
- }, [i, a, s, _, u, n, r, m, o, v, M, H, S, C, D, x, W]), te.useEffect(() => {
30532
+ }, [i, a, s, _, u, n, r, m, o, v, M, H, S, C, L, x, W]), te.useEffect(() => {
30533
30533
  i.current.insideReactTree = !1;
30534
30534
  }, [i, _, u]);
30535
30535
  const Y = te.useMemo(() => ({
@@ -30843,7 +30843,7 @@ function _7e(e, t) {
30843
30843
  scrollItemIntoView: z = !0,
30844
30844
  virtualItemRef: H,
30845
30845
  itemSizes: C,
30846
- dense: D = !1
30846
+ dense: L = !1
30847
30847
  } = t;
30848
30848
  process.env.NODE_ENV !== "production" && (p && (m || ys("`useListNavigation` looping must be enabled to allow escaping."), y || ys("`useListNavigation` must be virtual to allow escaping.")), M === "vertical" && x > 1 && ys("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
30849
30849
  const W = a3(a.floating), Y = tr(W), J = Io(), G = Oo();
@@ -30851,8 +30851,8 @@ function _7e(e, t) {
30851
30851
  e.dataRef.current.orientation = M;
30852
30852
  }, [e, M]);
30853
30853
  const R = cn(() => {
30854
- l(L.current === -1 ? null : L.current);
30855
- }), B = l8e(a.domReference), P = te.useRef(w), L = te.useRef(d ?? -1), K = te.useRef(null), A = te.useRef(!0), Q = te.useRef(R), ee = te.useRef(!!a.floating), O = te.useRef(n), ue = te.useRef(!1), ge = te.useRef(!1), be = tr(v), Ie = tr(n), De = tr(z), Ue = tr(d), [ne, we] = te.useState(), [Xe, Qe] = te.useState(), _e = cn(() => {
30854
+ l(D.current === -1 ? null : D.current);
30855
+ }), B = l8e(a.domReference), P = te.useRef(w), D = te.useRef(d ?? -1), K = te.useRef(null), A = te.useRef(!0), Q = te.useRef(R), ee = te.useRef(!!a.floating), O = te.useRef(n), ue = te.useRef(!1), ge = te.useRef(!1), be = tr(v), Ie = tr(n), De = tr(z), Ue = tr(d), [ne, we] = te.useState(), [Xe, Qe] = te.useState(), _e = cn(() => {
30856
30856
  function ve(q) {
30857
30857
  if (y) {
30858
30858
  var Z;
@@ -30863,9 +30863,9 @@ function _7e(e, t) {
30863
30863
  preventScroll: !0
30864
30864
  });
30865
30865
  }
30866
- const Fe = o.current[L.current], xe = ge.current;
30866
+ const Fe = o.current[D.current], xe = ge.current;
30867
30867
  Fe && ve(Fe), (ue.current ? (q) => q() : requestAnimationFrame)(() => {
30868
- const q = o.current[L.current] || Fe;
30868
+ const q = o.current[D.current] || Fe;
30869
30869
  if (!q)
30870
30870
  return;
30871
30871
  Fe || ve(q);
@@ -30877,21 +30877,21 @@ function _7e(e, t) {
30877
30877
  });
30878
30878
  });
30879
30879
  Dt(() => {
30880
- u && (n && a.floating ? P.current && d != null && (ge.current = !0, L.current = d, R()) : ee.current && (L.current = -1, Q.current()));
30880
+ u && (n && a.floating ? P.current && d != null && (ge.current = !0, D.current = d, R()) : ee.current && (D.current = -1, Q.current()));
30881
30881
  }, [u, n, a.floating, d, R]), Dt(() => {
30882
30882
  if (u && n && a.floating)
30883
30883
  if (s == null) {
30884
30884
  if (ue.current = !1, Ue.current != null)
30885
30885
  return;
30886
- if (ee.current && (L.current = -1, _e()), (!O.current || !ee.current) && P.current && (K.current != null || P.current === !0 && K.current == null)) {
30886
+ if (ee.current && (D.current = -1, _e()), (!O.current || !ee.current) && P.current && (K.current != null || P.current === !0 && K.current == null)) {
30887
30887
  let ve = 0;
30888
30888
  const Fe = () => {
30889
- o.current[0] == null ? (ve < 2 && (ve ? requestAnimationFrame : queueMicrotask)(Fe), ve++) : (L.current = K.current == null || ws(K.current, M, f) || h ? hs(o, be.current) : v2(o, be.current), K.current = null, R());
30889
+ o.current[0] == null ? (ve < 2 && (ve ? requestAnimationFrame : queueMicrotask)(Fe), ve++) : (D.current = K.current == null || ws(K.current, M, f) || h ? hs(o, be.current) : v2(o, be.current), K.current = null, R());
30890
30890
  };
30891
30891
  Fe();
30892
30892
  }
30893
30893
  } else
30894
- Da(o, s) || (L.current = s, _e(), ge.current = !1);
30894
+ Da(o, s) || (D.current = s, _e(), ge.current = !1);
30895
30895
  }, [u, n, a.floating, s, Ue, h, o, M, f, R, _e, be]), Dt(() => {
30896
30896
  var ve;
30897
30897
  if (!u || a.floating || !G || y || !ee.current)
@@ -30919,7 +30919,7 @@ function _7e(e, t) {
30919
30919
  if (!Ie.current)
30920
30920
  return;
30921
30921
  const Ye = o.current.indexOf(xe);
30922
- Ye !== -1 && L.current !== Ye && (L.current = Ye, R());
30922
+ Ye !== -1 && D.current !== Ye && (D.current = Ye, R());
30923
30923
  }
30924
30924
  return {
30925
30925
  onFocus(xe) {
@@ -30947,7 +30947,7 @@ function _7e(e, t) {
30947
30947
  let {
30948
30948
  pointerType: Ye
30949
30949
  } = xe;
30950
- if (!(!A.current || Ye === "touch") && (ue.current = !0, !!_ && (L.current = -1, R(), !y))) {
30950
+ if (!(!A.current || Ye === "touch") && (ue.current = !0, !!_ && (D.current = -1, R(), !y))) {
30951
30951
  var q;
30952
30952
  (q = Y.current) == null || q.focus({
30953
30953
  preventScroll: !0
@@ -30965,14 +30965,14 @@ function _7e(e, t) {
30965
30965
  gi(ve.key, qe()) || fn(ve), r(!1, ve.nativeEvent, "list-navigation"), Pt(a.domReference) && (y ? G?.events.emit("virtualfocus", a.domReference) : a.domReference.focus());
30966
30966
  return;
30967
30967
  }
30968
- const Fe = L.current, xe = hs(o, v), Ye = v2(o, v);
30969
- if (B || (ve.key === "Home" && (fn(ve), L.current = xe, R()), ve.key === "End" && (fn(ve), L.current = Ye, R())), x > 1) {
30968
+ const Fe = D.current, xe = hs(o, v), Ye = v2(o, v);
30969
+ if (B || (ve.key === "Home" && (fn(ve), D.current = xe, R()), ve.key === "End" && (fn(ve), D.current = Ye, R())), x > 1) {
30970
30970
  const q = C || Array.from({
30971
30971
  length: o.current.length
30972
30972
  }, () => ({
30973
30973
  width: 1,
30974
30974
  height: 1
30975
- })), Z = v8e(q, x, D), se = Z.findIndex((He) => He != null && !Ui(o, He, v)), pe = Z.reduce((He, At, Ct) => At != null && !Ui(o, At, v) ? Ct : He, -1), Ne = Z[k8e({
30975
+ })), Z = v8e(q, x, L), se = Z.findIndex((He) => He != null && !Ui(o, He, v)), pe = Z.reduce((He, At, Ct) => At != null && !Ui(o, At, v) ? Ct : He, -1), Ne = Z[k8e({
30976
30976
  current: Z.map((He) => He != null ? o.current[He] : null)
30977
30977
  }, {
30978
30978
  event: ve,
@@ -30986,7 +30986,7 @@ function _7e(e, t) {
30986
30986
  minIndex: se,
30987
30987
  maxIndex: pe,
30988
30988
  prevIndex: _8e(
30989
- L.current > Ye ? xe : L.current,
30989
+ D.current > Ye ? xe : D.current,
30990
30990
  q,
30991
30991
  Z,
30992
30992
  x,
@@ -30997,29 +30997,29 @@ function _7e(e, t) {
30997
30997
  ),
30998
30998
  stopEvent: !0
30999
30999
  })];
31000
- if (Ne != null && (L.current = Ne, R()), M === "both")
31000
+ if (Ne != null && (D.current = Ne, R()), M === "both")
31001
31001
  return;
31002
31002
  }
31003
31003
  if (gi(ve.key, M)) {
31004
31004
  if (fn(ve), n && !y && Ua(ve.currentTarget.ownerDocument) === ve.currentTarget) {
31005
- L.current = ws(ve.key, M, f) ? xe : Ye, R();
31005
+ D.current = ws(ve.key, M, f) ? xe : Ye, R();
31006
31006
  return;
31007
31007
  }
31008
- ws(ve.key, M, f) ? m ? L.current = Fe >= Ye ? p && Fe !== o.current.length ? -1 : xe : $t(o, {
31008
+ ws(ve.key, M, f) ? m ? D.current = Fe >= Ye ? p && Fe !== o.current.length ? -1 : xe : $t(o, {
31009
31009
  startingIndex: Fe,
31010
31010
  disabledIndices: v
31011
- }) : L.current = Math.min(Ye, $t(o, {
31011
+ }) : D.current = Math.min(Ye, $t(o, {
31012
31012
  startingIndex: Fe,
31013
31013
  disabledIndices: v
31014
- })) : m ? L.current = Fe <= xe ? p && Fe !== -1 ? o.current.length : Ye : $t(o, {
31014
+ })) : m ? D.current = Fe <= xe ? p && Fe !== -1 ? o.current.length : Ye : $t(o, {
31015
31015
  startingIndex: Fe,
31016
31016
  decrement: !0,
31017
31017
  disabledIndices: v
31018
- }) : L.current = Math.max(xe, $t(o, {
31018
+ }) : D.current = Math.max(xe, $t(o, {
31019
31019
  startingIndex: Fe,
31020
31020
  decrement: !0,
31021
31021
  disabledIndices: v
31022
- })), Da(o, L.current) && (L.current = -1), R();
31022
+ })), Da(o, D.current) && (D.current = -1), R();
31023
31023
  }
31024
31024
  }), Ce = te.useMemo(() => y && n && Se && {
31025
31025
  "aria-activedescendant": Xe || ne
@@ -31068,14 +31068,14 @@ function _7e(e, t) {
31068
31068
  K.current = h && wt ? null : xe.key;
31069
31069
  }
31070
31070
  if (h) {
31071
- Ne && (fn(xe), n ? (L.current = hs(o, be.current), R()) : r(!0, xe.nativeEvent, "list-navigation"));
31071
+ Ne && (fn(xe), n ? (D.current = hs(o, be.current), R()) : r(!0, xe.nativeEvent, "list-navigation"));
31072
31072
  return;
31073
31073
  }
31074
- He && (d != null && (L.current = d), fn(xe), !n && k ? r(!0, xe.nativeEvent, "list-navigation") : de(xe), n && R());
31074
+ He && (d != null && (D.current = d), fn(xe), !n && k ? r(!0, xe.nativeEvent, "list-navigation") : de(xe), n && R());
31075
31075
  }
31076
31076
  },
31077
31077
  onFocus() {
31078
- n && !y && (L.current = -1, R());
31078
+ n && !y && (D.current = -1, R());
31079
31079
  },
31080
31080
  onPointerDown: Fe,
31081
31081
  onPointerEnter: Fe,
@@ -34540,17 +34540,17 @@ const O_e = up(null), L_e = ({ children: e }) => {
34540
34540
  ...Object.keys(M).length > 0 && { extraHeaders: M }
34541
34541
  });
34542
34542
  l(C);
34543
- const D = () => {
34543
+ const L = () => {
34544
34544
  d(C.id), t.transport instanceof ia && t.transport.setSocketId(C.id);
34545
34545
  }, W = () => {
34546
34546
  d(void 0), t.transport instanceof ia && t.transport.setSocketId(void 0);
34547
34547
  }, Y = (R) => {
34548
34548
  R.contextKey === p.current && m.current(R);
34549
34549
  }, J = (R) => {
34550
- const B = t.store.getState(), P = et(B, R.chat), L = P.messages.findIndex((K) => K.id === R.id);
34551
- if (L >= 0) {
34550
+ const B = t.store.getState(), P = et(B, R.chat), D = P.messages.findIndex((K) => K.id === R.id);
34551
+ if (D >= 0) {
34552
34552
  const K = [...P.messages];
34553
- K[L] = { ...P.messages[L], ...R }, h.current(R.chat, {
34553
+ K[D] = R, h.current(R.chat, {
34554
34554
  ...P,
34555
34555
  messages: K
34556
34556
  });
@@ -34563,7 +34563,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
34563
34563
  }, G = (R) => {
34564
34564
  m.current(R);
34565
34565
  };
34566
- return C.on("connect", D), C.on("disconnect", W), C.on("connect_error", (R) => {
34566
+ return C.on("connect", L), C.on("disconnect", W), C.on("connect_error", (R) => {
34567
34567
  console.error("Socket.IO connection error:", R.message);
34568
34568
  }), C.on(ls.ChatNew, Y), C.on(ls.MessageNew, J), C.on(ls.ChatUpdate, G), () => {
34569
34569
  t.transport instanceof ia && t.transport.setSocketId(void 0), d(void 0), l(null), C.disconnect();
@@ -35017,7 +35017,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
35017
35017
  commitPendingAssistant: k,
35018
35018
  setPageContextDismissed: v
35019
35019
  } = Ee((P) => {
35020
- const L = P.activeChatId ?? P.draftChatKey, K = et(P, L);
35020
+ const D = P.activeChatId ?? P.draftChatKey, K = et(P, D);
35021
35021
  return {
35022
35022
  composer: P.composer,
35023
35023
  contextKey: P.contextKey,
@@ -35038,16 +35038,16 @@ const O_e = up(null), L_e = ({ children: e }) => {
35038
35038
  setPageContextDismissed: P.setPageContextDismissed
35039
35039
  };
35040
35040
  }), M = ut((P) => !P || P.length === 0 ? !1 : P.some(
35041
- (L) => L.type === It.Context && L?.metadata?.kind === "pageContext"
35042
- ), []), S = it(!1), x = it(!1), z = it(void 0), H = it(/* @__PURE__ */ new Set()), C = i ?? o, D = ut(
35043
- async (P, L) => {
35041
+ (D) => D.type === It.Context && D?.metadata?.kind === "pageContext"
35042
+ ), []), S = it(!1), x = it(!1), z = it(void 0), H = it(/* @__PURE__ */ new Set()), C = i ?? o, L = ut(
35043
+ async (P, D) => {
35044
35044
  if (!n.transport.generateTitle)
35045
35045
  return;
35046
35046
  const K = n.config.features?.titleGeneration === "llm" ? "llm" : "local";
35047
35047
  let A;
35048
35048
  try {
35049
35049
  A = await n.transport.generateTitle({
35050
- userId: L,
35050
+ userId: D,
35051
35051
  content: P,
35052
35052
  strategy: K,
35053
35053
  contextKey: a
@@ -35058,14 +35058,14 @@ const O_e = up(null), L_e = ({ children: e }) => {
35058
35058
  },
35059
35059
  [n.transport, n.config.features?.titleGeneration, a]
35060
35060
  ), W = ut(
35061
- async (P, L) => {
35061
+ async (P, D) => {
35062
35062
  const K = n.config.user?.id ?? "guest", A = !i, Q = i ?? o, ee = { current: Q };
35063
35063
  z.current = Q;
35064
- const O = { value: P, attachments: L ?? [] };
35064
+ const O = { value: P, attachments: D ?? [] };
35065
35065
  m(ee.current, void 0);
35066
35066
  let ue;
35067
35067
  if (A) {
35068
- const _e = await D(P, K);
35068
+ const _e = await L(P, K);
35069
35069
  _e && _e.trim().length > 0 && (ue = { ...ue ?? {}, title: _e });
35070
35070
  }
35071
35071
  const be = (i ? n.store.getState().chats[i] : void 0)?.model, Ie = r.model !== be;
@@ -35078,7 +35078,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
35078
35078
  contextKey: a,
35079
35079
  ...A ? {} : { chatId: i },
35080
35080
  ...Ue ? { model: De ?? "" } : {},
35081
- ...L && L.length > 0 ? { attachments: L } : {}
35081
+ ...D && D.length > 0 ? { attachments: D } : {}
35082
35082
  }, we = () => {
35083
35083
  y(ee.current, void 0);
35084
35084
  }, Xe = (_e) => {
@@ -35163,7 +35163,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
35163
35163
  p,
35164
35164
  y,
35165
35165
  d,
35166
- D,
35166
+ L,
35167
35167
  e,
35168
35168
  h,
35169
35169
  t,
@@ -35187,11 +35187,11 @@ const O_e = up(null), L_e = ({ children: e }) => {
35187
35187
  async (P) => {
35188
35188
  if (x.current)
35189
35189
  return;
35190
- const L = s.find((K) => K.id === P);
35191
- if (L) {
35190
+ const D = s.find((K) => K.id === P);
35191
+ if (D) {
35192
35192
  S.current = !1, x.current = !0, f(C, P);
35193
35193
  try {
35194
- await W(L.content, L.attachments);
35194
+ await W(D.content, D.attachments);
35195
35195
  } finally {
35196
35196
  x.current = !1;
35197
35197
  }
@@ -35593,7 +35593,7 @@ const cwe = ({
35593
35593
  }, [p, l, t, P]), Je(() => {
35594
35594
  p && f(P.length > 0 ? 0 : null);
35595
35595
  }, [y, P.length, p]);
35596
- const L = (Q) => P.length === 0 ? null : Q < 0 ? P.length - 1 : Q >= P.length ? 0 : Q, K = (Q) => {
35596
+ const D = (Q) => P.length === 0 ? null : Q < 0 ? P.length - 1 : Q >= P.length ? 0 : Q, K = (Q) => {
35597
35597
  Q != null && _.current[Q]?.scrollIntoView({ block: "nearest" });
35598
35598
  }, A = (Q) => {
35599
35599
  n(Q), m(!1), f(null), w("");
@@ -35647,7 +35647,7 @@ const cwe = ({
35647
35647
  }
35648
35648
  if (Q.key === "ArrowDown" || Q.key === "ArrowUp") {
35649
35649
  Q.preventDefault();
35650
- const ee = Q.key === "ArrowDown" ? 1 : -1, O = h ?? (ee > 0 ? -1 : 0), ue = L(O + ee);
35650
+ const ee = Q.key === "ArrowDown" ? 1 : -1, O = h ?? (ee > 0 ? -1 : 0), ue = D(O + ee);
35651
35651
  f(ue), K(ue);
35652
35652
  return;
35653
35653
  }
@@ -35882,7 +35882,7 @@ const fwe = () => {
35882
35882
  ] });
35883
35883
  }, ywe = vo(
35884
35884
  ({ autoFocus: e, activeChatId: t, status: n, onStop: r, onSubmit: a }, i) => {
35885
- const o = In(), s = rt(), l = it(null), u = it(null), d = Ee((ne) => ne.activeChatId ?? ne.draftChatKey), p = Ee((ne) => et(ne, d).composerDraft), m = Ee((ne) => et(ne, d).composerError), h = Ee((ne) => et(ne, d).pageContextDismissed), f = Ee((ne) => ne.setComposerValue), y = Ee((ne) => ne.setComposerDraft), w = Ee((ne) => ne.clearComposerDraft), _ = Ee((ne) => ne.setComposerError), k = Ee((ne) => ne.addComposerAttachments), v = Ee((ne) => ne.removeComposerAttachment), M = Ee((ne) => ne.setPageContextDismissed), S = p.value, x = p.attachments, [z, H] = pt(/* @__PURE__ */ new Map()), [C, D] = pt(/* @__PURE__ */ new Map()), W = it(S), Y = it(x), J = it(h), G = s.config.features?.pageContextAttachments !== !1, R = (ne) => ne.type === It.Context && ne?.metadata?.kind === "pageContext", B = x.some(R), P = () => {
35885
+ const o = In(), s = rt(), l = it(null), u = it(null), d = Ee((ne) => ne.activeChatId ?? ne.draftChatKey), p = Ee((ne) => et(ne, d).composerDraft), m = Ee((ne) => et(ne, d).composerError), h = Ee((ne) => et(ne, d).pageContextDismissed), f = Ee((ne) => ne.setComposerValue), y = Ee((ne) => ne.setComposerDraft), w = Ee((ne) => ne.clearComposerDraft), _ = Ee((ne) => ne.setComposerError), k = Ee((ne) => ne.addComposerAttachments), v = Ee((ne) => ne.removeComposerAttachment), M = Ee((ne) => ne.setPageContextDismissed), S = p.value, x = p.attachments, [z, H] = pt(/* @__PURE__ */ new Map()), [C, L] = pt(/* @__PURE__ */ new Map()), W = it(S), Y = it(x), J = it(h), G = s.config.features?.pageContextAttachments !== !1, R = (ne) => ne.type === It.Context && ne?.metadata?.kind === "pageContext", B = x.some(R), P = () => {
35886
35886
  if (G)
35887
35887
  return s.buildPageContextAttachment();
35888
35888
  };
@@ -35926,12 +35926,12 @@ const fwe = () => {
35926
35926
  const ne = l.current;
35927
35927
  ne && (ne.style.height = "auto", ne.style.height = `${Math.min(ne.scrollHeight, 200)}px`);
35928
35928
  }, [S]);
35929
- const L = async (ne) => {
35929
+ const D = async (ne) => {
35930
35930
  if (!ne || ne.length === 0)
35931
35931
  return;
35932
35932
  const we = Array.from(ne), Xe = Q_e(), Qe = X_e(we, x, Xe);
35933
35933
  if (Qe) {
35934
- D((_e) => {
35934
+ L((_e) => {
35935
35935
  const Se = new Map(_e);
35936
35936
  return we.forEach((ke) => {
35937
35937
  Se.set(ke.name, Qe.message);
@@ -35939,7 +35939,7 @@ const fwe = () => {
35939
35939
  });
35940
35940
  return;
35941
35941
  }
35942
- D((_e) => {
35942
+ L((_e) => {
35943
35943
  const Se = new Map(_e);
35944
35944
  return we.forEach((ke) => Se.delete(ke.name)), Se;
35945
35945
  });
@@ -35971,7 +35971,7 @@ const fwe = () => {
35971
35971
  }, 2e3);
35972
35972
  } catch (_e) {
35973
35973
  const Se = _e instanceof Error ? _e.message : "Failed to upload files";
35974
- D((ke) => {
35974
+ L((ke) => {
35975
35975
  const qe = new Map(ke);
35976
35976
  return we.forEach((de) => {
35977
35977
  qe.set(de.name, Se);
@@ -35994,7 +35994,7 @@ const fwe = () => {
35994
35994
  };
35995
35995
  return k(d, [Qe]), !0;
35996
35996
  }, Q = async (ne) => {
35997
- await L(ne.target.files), ne.target.value = "";
35997
+ await D(ne.target.files), ne.target.value = "";
35998
35998
  }, ee = (ne) => {
35999
35999
  const we = x.find((Xe) => Xe.id === ne);
36000
36000
  we && R(we) && M(d, !0), v(d, ne);
@@ -36350,8 +36350,8 @@ const kwe = (e, t) => {
36350
36350
  userId: w
36351
36351
  }, C = await a.transport.streamMessage(
36352
36352
  H,
36353
- (D) => {
36354
- D.type === Nn.Message && D.message && i(n, [D.message]);
36353
+ (L) => {
36354
+ L.type === Nn.Message && L.message && i(n, [L.message]);
36355
36355
  },
36356
36356
  { streamKey: n }
36357
36357
  );
@@ -38505,18 +38505,18 @@ function Kxe(e) {
38505
38505
  )
38506
38506
  return;
38507
38507
  const z = t.events.length;
38508
- let H = z, C, D;
38508
+ let H = z, C, L;
38509
38509
  for (; H--; )
38510
38510
  if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
38511
38511
  if (C) {
38512
- D = t.events[H][1].end;
38512
+ L = t.events[H][1].end;
38513
38513
  break;
38514
38514
  }
38515
38515
  C = !0;
38516
38516
  }
38517
38517
  for (_(r), x = z; x < t.events.length; )
38518
38518
  t.events[x][1].end = {
38519
- ...D
38519
+ ...L
38520
38520
  }, x++;
38521
38521
  un(t.events, H + 1, 0, t.events.slice(z)), t.events.length = x;
38522
38522
  }
@@ -38816,8 +38816,8 @@ function o9e(e, t, n) {
38816
38816
  }
38817
38817
  function S(x, z, H) {
38818
38818
  let C = 0;
38819
- return D;
38820
- function D(R) {
38819
+ return L;
38820
+ function L(R) {
38821
38821
  return x.enter("lineEnding"), x.consume(R), x.exit("lineEnding"), W;
38822
38822
  }
38823
38823
  function W(R) {
@@ -39509,10 +39509,10 @@ function $9e(e, t, n) {
39509
39509
  return O === 62 ? (e.consume(O), r.interrupt ? t : Y) : n(O);
39510
39510
  }
39511
39511
  function k(O) {
39512
- return Pe(O) ? (e.consume(O), k) : D(O);
39512
+ return Pe(O) ? (e.consume(O), k) : L(O);
39513
39513
  }
39514
39514
  function v(O) {
39515
- return O === 47 ? (e.consume(O), D) : O === 58 || O === 95 || Gt(O) ? (e.consume(O), M) : Pe(O) ? (e.consume(O), v) : D(O);
39515
+ return O === 47 ? (e.consume(O), L) : O === 58 || O === 95 || Gt(O) ? (e.consume(O), M) : Pe(O) ? (e.consume(O), v) : L(O);
39516
39516
  }
39517
39517
  function M(O) {
39518
39518
  return O === 45 || O === 46 || O === 58 || O === 95 || Ft(O) ? (e.consume(O), M) : S(O);
@@ -39532,7 +39532,7 @@ function $9e(e, t, n) {
39532
39532
  function C(O) {
39533
39533
  return O === 47 || O === 62 || Pe(O) ? v(O) : n(O);
39534
39534
  }
39535
- function D(O) {
39535
+ function L(O) {
39536
39536
  return O === 62 ? (e.consume(O), W) : n(O);
39537
39537
  }
39538
39538
  function W(O) {
@@ -39554,14 +39554,14 @@ function $9e(e, t, n) {
39554
39554
  return O === 45 ? (e.consume(O), A) : Y(O);
39555
39555
  }
39556
39556
  function P(O) {
39557
- return O === 47 ? (e.consume(O), o = "", L) : Y(O);
39557
+ return O === 47 ? (e.consume(O), o = "", D) : Y(O);
39558
39558
  }
39559
- function L(O) {
39559
+ function D(O) {
39560
39560
  if (O === 62) {
39561
39561
  const ue = o.toLowerCase();
39562
39562
  return _m.includes(ue) ? (e.consume(O), Q) : Y(O);
39563
39563
  }
39564
- return Gt(O) && o.length < 8 ? (e.consume(O), o += String.fromCharCode(O), L) : Y(O);
39564
+ return Gt(O) && o.length < 8 ? (e.consume(O), o += String.fromCharCode(O), D) : Y(O);
39565
39565
  }
39566
39566
  function K(O) {
39567
39567
  return O === 93 ? (e.consume(O), A) : Y(O);
@@ -39656,10 +39656,10 @@ function q9e(e, t, n) {
39656
39656
  return A === 45 || Ft(A) ? (e.consume(A), H) : A === 47 || A === 62 || Ke(A) ? C(A) : n(A);
39657
39657
  }
39658
39658
  function C(A) {
39659
- return A === 47 ? (e.consume(A), B) : A === 58 || A === 95 || Gt(A) ? (e.consume(A), D) : he(A) ? (o = C, P(A)) : Pe(A) ? (e.consume(A), C) : B(A);
39659
+ return A === 47 ? (e.consume(A), B) : A === 58 || A === 95 || Gt(A) ? (e.consume(A), L) : he(A) ? (o = C, P(A)) : Pe(A) ? (e.consume(A), C) : B(A);
39660
39660
  }
39661
- function D(A) {
39662
- return A === 45 || A === 46 || A === 58 || A === 95 || Ft(A) ? (e.consume(A), D) : W(A);
39661
+ function L(A) {
39662
+ return A === 45 || A === 46 || A === 58 || A === 95 || Ft(A) ? (e.consume(A), L) : W(A);
39663
39663
  }
39664
39664
  function W(A) {
39665
39665
  return A === 61 ? (e.consume(A), Y) : he(A) ? (o = W, P(A)) : Pe(A) ? (e.consume(A), W) : C(A);
@@ -39680,9 +39680,9 @@ function q9e(e, t, n) {
39680
39680
  return A === 62 ? (e.consume(A), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(A);
39681
39681
  }
39682
39682
  function P(A) {
39683
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), L;
39683
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), D;
39684
39684
  }
39685
- function L(A) {
39685
+ function D(A) {
39686
39686
  return Pe(A) ? Le(e, K, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : K(A);
39687
39687
  }
39688
39688
  function K(A) {
@@ -40270,7 +40270,7 @@ function NEe(e, t, n) {
40270
40270
  };
40271
40271
  }
40272
40272
  function y(W) {
40273
- a[W.line] = W.column, D();
40273
+ a[W.line] = W.column, L();
40274
40274
  }
40275
40275
  function w() {
40276
40276
  let W;
@@ -40287,7 +40287,7 @@ function NEe(e, t, n) {
40287
40287
  d = d(W);
40288
40288
  }
40289
40289
  function k(W) {
40290
- he(W) ? (r.line++, r.column = 1, r.offset += W === -3 ? 2 : 1, D()) : W !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
40290
+ he(W) ? (r.line++, r.column = 1, r.offset += W === -3 ? 2 : 1, L()) : W !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
40291
40291
  // strings.
40292
40292
  /** @type {string} */
40293
40293
  o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = W;
@@ -40309,7 +40309,7 @@ function NEe(e, t, n) {
40309
40309
  function z(W, Y) {
40310
40310
  return J;
40311
40311
  function J(G, R, B) {
40312
- let P, L, K, A;
40312
+ let P, D, K, A;
40313
40313
  return Array.isArray(G) ? (
40314
40314
  /* c8 ignore next 1 */
40315
40315
  ee(G)
@@ -40333,7 +40333,7 @@ function NEe(e, t, n) {
40333
40333
  }
40334
40334
  }
40335
40335
  function ee(be) {
40336
- return P = be, L = 0, be.length === 0 ? B : O(be[L]);
40336
+ return P = be, D = 0, be.length === 0 ? B : O(be[D]);
40337
40337
  }
40338
40338
  function O(be) {
40339
40339
  return Ie;
@@ -40353,7 +40353,7 @@ function NEe(e, t, n) {
40353
40353
  return W(K, A), R;
40354
40354
  }
40355
40355
  function ge(be) {
40356
- return A.restore(), ++L < P.length ? O(P[L]) : B;
40356
+ return A.restore(), ++D < P.length ? O(P[D]) : B;
40357
40357
  }
40358
40358
  }
40359
40359
  }
@@ -40367,10 +40367,10 @@ function NEe(e, t, n) {
40367
40367
  restore: B
40368
40368
  };
40369
40369
  function B() {
40370
- r = W, u.previous = Y, u.currentConstruct = J, u.events.length = G, s = R, D();
40370
+ r = W, u.previous = Y, u.currentConstruct = J, u.events.length = G, s = R, L();
40371
40371
  }
40372
40372
  }
40373
- function D() {
40373
+ function L() {
40374
40374
  r.line in a && r.column < 2 && (r.column = a[r.line], r.offset += a[r.line] - 1);
40375
40375
  }
40376
40376
  }
@@ -40565,7 +40565,7 @@ function zEe(e) {
40565
40565
  autolinkEmail: Ue,
40566
40566
  autolinkProtocol: De,
40567
40567
  blockQuote: l(),
40568
- characterEscapeValue: D,
40568
+ characterEscapeValue: L,
40569
40569
  characterReferenceMarkerHexadecimal: ge,
40570
40570
  characterReferenceMarkerNumeric: ge,
40571
40571
  characterReferenceValue: be,
@@ -40574,11 +40574,11 @@ function zEe(e) {
40574
40574
  codeFencedFence: y,
40575
40575
  codeFencedFenceInfo: h,
40576
40576
  codeFencedFenceMeta: f,
40577
- codeFlowValue: D,
40577
+ codeFlowValue: L,
40578
40578
  codeIndented: l(_),
40579
40579
  codeText: l(R),
40580
- codeTextData: D,
40581
- data: D,
40580
+ codeTextData: L,
40581
+ data: L,
40582
40582
  definition: l(),
40583
40583
  definitionDestinationString: M,
40584
40584
  definitionLabelString: k,
@@ -40587,12 +40587,12 @@ function zEe(e) {
40587
40587
  hardBreakEscape: l(Y),
40588
40588
  hardBreakTrailing: l(Y),
40589
40589
  htmlFlow: l(J),
40590
- htmlFlowData: D,
40590
+ htmlFlowData: L,
40591
40591
  htmlText: l(G),
40592
- htmlTextData: D,
40592
+ htmlTextData: L,
40593
40593
  image: l(P),
40594
40594
  label: K,
40595
- labelText: L,
40595
+ labelText: D,
40596
40596
  lineEnding: W,
40597
40597
  link: l(B),
40598
40598
  listItem: l(),
@@ -40819,7 +40819,7 @@ function zEe(e) {
40819
40819
  end: void 0
40820
40820
  }, se.push(pe)), this.stack.push(pe);
40821
40821
  }
40822
- function D(q) {
40822
+ function L(q) {
40823
40823
  const Z = this.stack.pop();
40824
40824
  Z.value += this.sliceSerialize(q), Z.position.end = hr(q.end);
40825
40825
  }
@@ -40830,7 +40830,7 @@ function zEe(e) {
40830
40830
  se.position.end = hr(q.end), this.data.atHardBreak = void 0;
40831
40831
  return;
40832
40832
  }
40833
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (C.call(this, q), D.call(this, q));
40833
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (C.call(this, q), L.call(this, q));
40834
40834
  }
40835
40835
  function Y() {
40836
40836
  this.data.atHardBreak = !0;
@@ -40865,7 +40865,7 @@ function zEe(e) {
40865
40865
  delete q.identifier, delete q.label;
40866
40866
  this.data.referenceType = void 0;
40867
40867
  }
40868
- function L(q) {
40868
+ function D(q) {
40869
40869
  const Z = this.sliceSerialize(q), se = this.stack[this.stack.length - 2];
40870
40870
  se.label = LEe(Z), se.identifier = Cn(Z).toLowerCase();
40871
40871
  }
@@ -40910,12 +40910,12 @@ function zEe(e) {
40910
40910
  Z.position.end = hr(q.end);
40911
40911
  }
40912
40912
  function De(q) {
40913
- D.call(this, q);
40913
+ L.call(this, q);
40914
40914
  const Z = this.stack[this.stack.length - 1];
40915
40915
  Z.url = this.sliceSerialize(q);
40916
40916
  }
40917
40917
  function Ue(q) {
40918
- D.call(this, q);
40918
+ L.call(this, q);
40919
40919
  const Z = this.stack[this.stack.length - 1];
40920
40920
  Z.url = "mailto:" + this.sliceSerialize(q);
40921
40921
  }
@@ -44978,7 +44978,7 @@ function nAe(e, t, n) {
44978
44978
  const r = this;
44979
44979
  let a = 0, i = 0, o;
44980
44980
  return s;
44981
- function s(D) {
44981
+ function s(L) {
44982
44982
  let W = r.events.length - 1;
44983
44983
  for (; W > -1; ) {
44984
44984
  const G = r.events[W][1].type;
@@ -44989,61 +44989,61 @@ function nAe(e, t, n) {
44989
44989
  break;
44990
44990
  }
44991
44991
  const Y = W > -1 ? r.events[W][1].type : null, J = Y === "tableHead" || Y === "tableRow" ? x : l;
44992
- return J === x && r.parser.lazy[r.now().line] ? n(D) : J(D);
44992
+ return J === x && r.parser.lazy[r.now().line] ? n(L) : J(L);
44993
44993
  }
44994
- function l(D) {
44995
- return e.enter("tableHead"), e.enter("tableRow"), u(D);
44994
+ function l(L) {
44995
+ return e.enter("tableHead"), e.enter("tableRow"), u(L);
44996
44996
  }
44997
- function u(D) {
44998
- return D === 124 || (o = !0, i += 1), d(D);
44997
+ function u(L) {
44998
+ return L === 124 || (o = !0, i += 1), d(L);
44999
44999
  }
45000
- function d(D) {
45001
- return D === null ? n(D) : he(D) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), h) : n(D) : Pe(D) ? Le(e, d, "whitespace")(D) : (i += 1, o && (o = !1, a += 1), D === 124 ? (e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), o = !0, d) : (e.enter("data"), p(D)));
45000
+ function d(L) {
45001
+ return L === null ? n(L) : he(L) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), h) : n(L) : Pe(L) ? Le(e, d, "whitespace")(L) : (i += 1, o && (o = !1, a += 1), L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), o = !0, d) : (e.enter("data"), p(L)));
45002
45002
  }
45003
- function p(D) {
45004
- return D === null || D === 124 || Ke(D) ? (e.exit("data"), d(D)) : (e.consume(D), D === 92 ? m : p);
45003
+ function p(L) {
45004
+ return L === null || L === 124 || Ke(L) ? (e.exit("data"), d(L)) : (e.consume(L), L === 92 ? m : p);
45005
45005
  }
45006
- function m(D) {
45007
- return D === 92 || D === 124 ? (e.consume(D), p) : p(D);
45006
+ function m(L) {
45007
+ return L === 92 || L === 124 ? (e.consume(L), p) : p(L);
45008
45008
  }
45009
- function h(D) {
45010
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(D) : (e.enter("tableDelimiterRow"), o = !1, Pe(D) ? Le(e, f, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : f(D));
45009
+ function h(L) {
45010
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(L) : (e.enter("tableDelimiterRow"), o = !1, Pe(L) ? Le(e, f, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : f(L));
45011
45011
  }
45012
- function f(D) {
45013
- return D === 45 || D === 58 ? w(D) : D === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), y) : S(D);
45012
+ function f(L) {
45013
+ return L === 45 || L === 58 ? w(L) : L === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), y) : S(L);
45014
45014
  }
45015
- function y(D) {
45016
- return Pe(D) ? Le(e, w, "whitespace")(D) : w(D);
45015
+ function y(L) {
45016
+ return Pe(L) ? Le(e, w, "whitespace")(L) : w(L);
45017
45017
  }
45018
- function w(D) {
45019
- return D === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(D), e.exit("tableDelimiterMarker"), _) : D === 45 ? (i += 1, _(D)) : D === null || he(D) ? M(D) : S(D);
45018
+ function w(L) {
45019
+ return L === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), _) : L === 45 ? (i += 1, _(L)) : L === null || he(L) ? M(L) : S(L);
45020
45020
  }
45021
- function _(D) {
45022
- return D === 45 ? (e.enter("tableDelimiterFiller"), k(D)) : S(D);
45021
+ function _(L) {
45022
+ return L === 45 ? (e.enter("tableDelimiterFiller"), k(L)) : S(L);
45023
45023
  }
45024
- function k(D) {
45025
- return D === 45 ? (e.consume(D), k) : D === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(D), e.exit("tableDelimiterMarker"), v) : (e.exit("tableDelimiterFiller"), v(D));
45024
+ function k(L) {
45025
+ return L === 45 ? (e.consume(L), k) : L === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), v) : (e.exit("tableDelimiterFiller"), v(L));
45026
45026
  }
45027
- function v(D) {
45028
- return Pe(D) ? Le(e, M, "whitespace")(D) : M(D);
45027
+ function v(L) {
45028
+ return Pe(L) ? Le(e, M, "whitespace")(L) : M(L);
45029
45029
  }
45030
- function M(D) {
45031
- return D === 124 ? f(D) : D === null || he(D) ? !o || a !== i ? S(D) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(D)) : S(D);
45030
+ function M(L) {
45031
+ return L === 124 ? f(L) : L === null || he(L) ? !o || a !== i ? S(L) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(L)) : S(L);
45032
45032
  }
45033
- function S(D) {
45034
- return n(D);
45033
+ function S(L) {
45034
+ return n(L);
45035
45035
  }
45036
- function x(D) {
45037
- return e.enter("tableRow"), z(D);
45036
+ function x(L) {
45037
+ return e.enter("tableRow"), z(L);
45038
45038
  }
45039
- function z(D) {
45040
- return D === 124 ? (e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), z) : D === null || he(D) ? (e.exit("tableRow"), t(D)) : Pe(D) ? Le(e, z, "whitespace")(D) : (e.enter("data"), H(D));
45039
+ function z(L) {
45040
+ return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), z) : L === null || he(L) ? (e.exit("tableRow"), t(L)) : Pe(L) ? Le(e, z, "whitespace")(L) : (e.enter("data"), H(L));
45041
45041
  }
45042
- function H(D) {
45043
- return D === null || D === 124 || Ke(D) ? (e.exit("data"), z(D)) : (e.consume(D), D === 92 ? C : H);
45042
+ function H(L) {
45043
+ return L === null || L === 124 || Ke(L) ? (e.exit("data"), z(L)) : (e.consume(L), L === 92 ? C : H);
45044
45044
  }
45045
- function C(D) {
45046
- return D === 92 || D === 124 ? (e.consume(D), H) : H(D);
45045
+ function C(L) {
45046
+ return L === 92 || L === 124 ? (e.consume(L), H) : H(L);
45047
45047
  }
45048
45048
  }
45049
45049
  function rAe(e, t) {
@@ -50617,8 +50617,8 @@ var v6 = function(t) {
50617
50617
  } else {
50618
50618
  var _ = [], k = NTe[l], [v, M, S] = k, x = S / 1e3, z = v.length, H, C;
50619
50619
  if (z === 1) {
50620
- var D = k[3];
50621
- H = ["hide-tail"], C = [D];
50620
+ var L = k[3];
50621
+ H = ["hide-tail"], C = [L];
50622
50622
  } else if (z === 2)
50623
50623
  H = ["halfarrow-left", "halfarrow-right"], C = ["xMinYMin", "xMaxYMin"];
50624
50624
  else if (z === 3)
@@ -51564,16 +51564,16 @@ var Ra = function(t, n, r) {
51564
51564
  var x = Ra(l, h, i);
51565
51565
  M = x.height + x.depth, S = 2;
51566
51566
  }
51567
- var z = y + v + M, H = Math.max(0, Math.ceil((n - z) / (S * _))), C = z + H * S * _, D = a.fontMetrics().axisHeight;
51568
- r && (D *= a.sizeMultiplier);
51569
- var W = C / 2 - D, Y = [];
51567
+ var z = y + v + M, H = Math.max(0, Math.ceil((n - z) / (S * _))), C = z + H * S * _, L = a.fontMetrics().axisHeight;
51568
+ r && (L *= a.sizeMultiplier);
51569
+ var W = C / 2 - L, Y = [];
51570
51570
  if (p.length > 0) {
51571
- var J = C - y - v, G = Math.round(C * 1e3), R = GAe(p, Math.round(J * 1e3)), B = new Er(p, R), P = (m / 1e3).toFixed(3) + "em", L = (G / 1e3).toFixed(3) + "em", K = new lr([B], {
51571
+ var J = C - y - v, G = Math.round(C * 1e3), R = GAe(p, Math.round(J * 1e3)), B = new Er(p, R), P = (m / 1e3).toFixed(3) + "em", D = (G / 1e3).toFixed(3) + "em", K = new lr([B], {
51572
51572
  width: P,
51573
- height: L,
51573
+ height: D,
51574
51574
  viewBox: "0 0 " + m + " " + G
51575
51575
  }), A = X.makeSvgSpan([], [K], a);
51576
- A.height = G / 1e3, A.style.width = P, A.style.height = L, Y.push({
51576
+ A.height = G / 1e3, A.style.width = P, A.style.height = D, Y.push({
51577
51577
  type: "elem",
51578
51578
  elem: A
51579
51579
  });
@@ -52301,14 +52301,14 @@ var Yn = function(t, n) {
52301
52301
  var C = Ze(S[a], n);
52302
52302
  z < C.depth && (z = C.depth), x < C.height && (x = C.height), H[a] = C;
52303
52303
  }
52304
- var D = t.rowGaps[r], W = 0;
52305
- D && (W = yt(D, n), W > 0 && (W += k, z < W && (z = W), W = 0)), t.addJot && (z += y), H.height = x, H.depth = z, v += x, H.pos = v, v += z + W, l[r] = H, M(o[r + 1]);
52304
+ var L = t.rowGaps[r], W = 0;
52305
+ L && (W = yt(L, n), W > 0 && (W += k, z < W && (z = W), W = 0)), t.addJot && (z += y), H.height = x, H.depth = z, v += x, H.pos = v, v += z + W, l[r] = H, M(o[r + 1]);
52306
52306
  }
52307
52307
  var Y = v / 2 + n.fontMetrics().axisHeight, J = t.cols || [], G = [], R, B, P = [];
52308
52308
  if (t.tags && t.tags.some((de) => de))
52309
52309
  for (r = 0; r < i; ++r) {
52310
- var L = l[r], K = L.pos - Y, A = t.tags[r], Q = void 0;
52311
- A === !0 ? Q = X.makeSpan(["eqn-num"], [], n) : A === !1 ? Q = X.makeSpan([], [], n) : Q = X.makeSpan([], Tt(A, n, !0), n), Q.depth = L.depth, Q.height = L.height, P.push({
52310
+ var D = l[r], K = D.pos - Y, A = t.tags[r], Q = void 0;
52311
+ A === !0 ? Q = X.makeSpan(["eqn-num"], [], n) : A === !1 ? Q = X.makeSpan([], [], n) : Q = X.makeSpan([], Tt(A, n, !0), n), Q.depth = D.depth, Q.height = D.height, P.push({
52312
52312
  type: "elem",
52313
52313
  elem: Q,
52314
52314
  shift: K
@@ -54579,8 +54579,8 @@ Hr({
54579
54579
  }, t);
54580
54580
  else
54581
54581
  throw new Error("supsub must have either sup or sub.");
54582
- var D = Qd(o, "right") || "mord";
54583
- return X.makeSpan([D], [o, X.makeSpan(["msupsub"], [M])], t);
54582
+ var L = Qd(o, "right") || "mord";
54583
+ return X.makeSpan([L], [o, X.makeSpan(["msupsub"], [M])], t);
54584
54584
  },
54585
54585
  mathmlBuilder(e, t) {
54586
54586
  var n = !1, r, a;
@@ -57460,20 +57460,20 @@ function vh(e, t) {
57460
57460
  break;
57461
57461
  H += String.fromCharCode(J), S === "named" && MCe.includes(H) && (x = H, z = Wa(H));
57462
57462
  }
57463
- let D = e.charCodeAt(M) === 59;
57464
- if (D) {
57463
+ let L = e.charCodeAt(M) === 59;
57464
+ if (L) {
57465
57465
  M++;
57466
57466
  const J = S === "named" ? Wa(H) : !1;
57467
57467
  J && (x = H, z = J);
57468
57468
  }
57469
57469
  let W = 1 + M - k, Y = "";
57470
- if (!(!D && n.nonTerminated === !1))
57470
+ if (!(!L && n.nonTerminated === !1))
57471
57471
  if (!H)
57472
57472
  S !== "named" && y(4, W);
57473
57473
  else if (S === "named") {
57474
- if (D && !z)
57474
+ if (L && !z)
57475
57475
  y(5, 1);
57476
- else if (x !== H && (M = v + x.length, W = 1 + M - v, D = !1), !D) {
57476
+ else if (x !== H && (M = v + x.length, W = 1 + M - v, L = !1), !L) {
57477
57477
  const J = x ? 1 : 3;
57478
57478
  if (n.attribute) {
57479
57479
  const G = e.charCodeAt(M);
@@ -57483,7 +57483,7 @@ function vh(e, t) {
57483
57483
  }
57484
57484
  Y = z;
57485
57485
  } else {
57486
- D || y(2, W);
57486
+ L || y(2, W);
57487
57487
  let J = Number.parseInt(
57488
57488
  H,
57489
57489
  S === "hexadecimal" ? 16 : 10
@@ -57835,16 +57835,16 @@ function wh(e, t, n, r, a, i, o, s, l, u, d, p, m, h, f) {
57835
57835
  return R === 61 ? (e.enter(u), e.consume(R), e.exit(u), H) : (e.exit(i), k(R));
57836
57836
  }
57837
57837
  function H(R) {
57838
- return R === null || R === 60 || R === 61 || R === 62 || R === 96 || R === 125 || f && he(R) ? n(R) : R === 34 || R === 39 ? (e.enter(d), e.enter(m), e.consume(R), e.exit(m), w = R, D) : f && Pe(R) ? Le(e, H, "whitespace")(R) : !f && Ke(R) ? rr(e, H)(R) : (e.enter(p), e.enter(h), e.consume(R), w = void 0, C);
57838
+ return R === null || R === 60 || R === 61 || R === 62 || R === 96 || R === 125 || f && he(R) ? n(R) : R === 34 || R === 39 ? (e.enter(d), e.enter(m), e.consume(R), e.exit(m), w = R, L) : f && Pe(R) ? Le(e, H, "whitespace")(R) : !f && Ke(R) ? rr(e, H)(R) : (e.enter(p), e.enter(h), e.consume(R), w = void 0, C);
57839
57839
  }
57840
57840
  function C(R) {
57841
57841
  return R === null || R === 34 || R === 39 || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 125 || Ke(R) ? (e.exit(h), e.exit(p), e.exit(i), k(R)) : (e.consume(R), C);
57842
57842
  }
57843
- function D(R) {
57843
+ function L(R) {
57844
57844
  return R === w ? (e.enter(m), e.consume(R), e.exit(m), e.exit(d), e.exit(i), J) : (e.enter(p), W(R));
57845
57845
  }
57846
57846
  function W(R) {
57847
- return R === w ? (e.exit(p), D(R)) : R === null ? n(R) : he(R) ? f ? n(R) : rr(e, W)(R) : (e.enter(h), e.consume(R), Y);
57847
+ return R === w ? (e.exit(p), L(R)) : R === null ? n(R) : he(R) ? f ? n(R) : rr(e, W)(R) : (e.enter(h), e.consume(R), Y);
57848
57848
  }
57849
57849
  function Y(R) {
57850
57850
  return R === w || R === null || he(R) ? (e.exit(h), W(R)) : (e.consume(R), Y);
@@ -57944,29 +57944,29 @@ function tRe(e, t, n) {
57944
57944
  }
57945
57945
  function _(C) {
57946
57946
  if (C === null) {
57947
- const D = e.exit("chunkDocument");
57948
- return r.parser.lazy[D.start.line] = !1, x(C);
57947
+ const L = e.exit("chunkDocument");
57948
+ return r.parser.lazy[L.start.line] = !1, x(C);
57949
57949
  }
57950
57950
  return he(C) ? e.check(Oi, M, S)(C) : (e.consume(C), _);
57951
57951
  }
57952
57952
  function k(C) {
57953
- const D = e.enter("chunkDocument", {
57953
+ const L = e.enter("chunkDocument", {
57954
57954
  contentType: "document",
57955
57955
  previous: s
57956
57956
  });
57957
- return s && (s.next = D), s = D, _(C);
57957
+ return s && (s.next = L), s = L, _(C);
57958
57958
  }
57959
57959
  function v(C) {
57960
57960
  return e.enter("directiveContainerContent"), y(C);
57961
57961
  }
57962
57962
  function M(C) {
57963
57963
  e.consume(C);
57964
- const D = e.exit("chunkDocument");
57965
- return r.parser.lazy[D.start.line] = !1, y;
57964
+ const L = e.exit("chunkDocument");
57965
+ return r.parser.lazy[L.start.line] = !1, y;
57966
57966
  }
57967
57967
  function S(C) {
57968
- const D = e.exit("chunkDocument");
57969
- return r.parser.lazy[D.start.line] = !1, x(C);
57968
+ const L = e.exit("chunkDocument");
57969
+ return r.parser.lazy[L.start.line] = !1, x(C);
57970
57970
  }
57971
57971
  function x(C) {
57972
57972
  return e.exit("directiveContainerContent"), z(C);
@@ -57974,7 +57974,7 @@ function tRe(e, t, n) {
57974
57974
  function z(C) {
57975
57975
  return e.exit("directiveContainer"), t(C);
57976
57976
  }
57977
- function H(C, D, W) {
57977
+ function H(C, L, W) {
57978
57978
  let Y = 0;
57979
57979
  return Le(C, J, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
57980
57980
  function J(B) {
@@ -57984,7 +57984,7 @@ function tRe(e, t, n) {
57984
57984
  return B === 58 ? (C.consume(B), Y++, G) : Y < o ? W(B) : (C.exit("directiveContainerSequence"), Le(C, R, "whitespace")(B));
57985
57985
  }
57986
57986
  function R(B) {
57987
- return B === null || he(B) ? (C.exit("directiveContainerFence"), D(B)) : W(B);
57987
+ return B === null || he(B) ? (C.exit("directiveContainerFence"), L(B)) : W(B);
57988
57988
  }
57989
57989
  }
57990
57990
  }
@@ -62831,9 +62831,9 @@ const Zf = "[A-Za-z$_][0-9A-Za-z$_]*", fIe = [
62831
62831
  y8
62832
62832
  );
62833
62833
  function kIe(e) {
62834
- const t = e.regex, n = (L, { after: K }) => {
62835
- const A = "</" + L[0].slice(1);
62836
- return L.input.indexOf(A, K) !== -1;
62834
+ const t = e.regex, n = (D, { after: K }) => {
62835
+ const A = "</" + D[0].slice(1);
62836
+ return D.input.indexOf(A, K) !== -1;
62837
62837
  }, r = Zf, a = {
62838
62838
  begin: "<>",
62839
62839
  end: "</>"
@@ -62844,8 +62844,8 @@ function kIe(e) {
62844
62844
  * @param {RegExpMatchArray} match
62845
62845
  * @param {CallbackResponse} response
62846
62846
  */
62847
- isTrulyOpeningTag: (L, K) => {
62848
- const A = L[0].length + L.index, Q = L.input[A];
62847
+ isTrulyOpeningTag: (D, K) => {
62848
+ const A = D[0].length + D.index, Q = D.input[A];
62849
62849
  if (
62850
62850
  // HTML should not include another raw `<` inside a tag
62851
62851
  // nested type?
@@ -62857,9 +62857,9 @@ function kIe(e) {
62857
62857
  K.ignoreMatch();
62858
62858
  return;
62859
62859
  }
62860
- Q === ">" && (n(L, { after: A }) || K.ignoreMatch());
62860
+ Q === ">" && (n(D, { after: A }) || K.ignoreMatch());
62861
62861
  let ee;
62862
- const O = L.input.substring(A);
62862
+ const O = D.input.substring(A);
62863
62863
  if (ee = O.match(/^\s*=/)) {
62864
62864
  K.ignoreMatch();
62865
62865
  return;
@@ -63092,7 +63092,7 @@ function kIe(e) {
63092
63092
  className: "meta",
63093
63093
  relevance: 10,
63094
63094
  begin: /^\s*['"]use (strict|asm)['"]/
63095
- }, D = {
63095
+ }, L = {
63096
63096
  variants: [
63097
63097
  {
63098
63098
  match: [
@@ -63122,8 +63122,8 @@ function kIe(e) {
63122
63122
  match: /\b[A-Z][A-Z_0-9]+\b/,
63123
63123
  className: "variable.constant"
63124
63124
  };
63125
- function Y(L) {
63126
- return t.concat("(?!", L.join("|"), ")");
63125
+ function Y(D) {
63126
+ return t.concat("(?!", D.join("|"), ")");
63127
63127
  }
63128
63128
  const J = {
63129
63129
  match: t.concat(
@@ -63132,7 +63132,7 @@ function kIe(e) {
63132
63132
  ...b8,
63133
63133
  "super",
63134
63134
  "import"
63135
- ].map((L) => `${L}\\s*\\(`)),
63135
+ ].map((D) => `${D}\\s*\\(`)),
63136
63136
  r,
63137
63137
  t.lookahead(/\s*\(/)
63138
63138
  ),
@@ -63291,7 +63291,7 @@ function kIe(e) {
63291
63291
  }
63292
63292
  ]
63293
63293
  },
63294
- D,
63294
+ L,
63295
63295
  {
63296
63296
  // prevent this from getting swallowed up by function
63297
63297
  // since they appear "function like"
@@ -65984,7 +65984,7 @@ function $Ie(e) {
65984
65984
  ] }, C = {
65985
65985
  scope: "attr",
65986
65986
  match: t.concat(r, t.lookahead(":"), t.lookahead(/(?!::)/))
65987
- }, D = {
65987
+ }, L = {
65988
65988
  relevance: 0,
65989
65989
  begin: /\(/,
65990
65990
  end: /\)/,
@@ -66009,9 +66009,9 @@ function $Ie(e) {
66009
66009
  t.lookahead(/(?=\()/)
66010
66010
  ],
66011
66011
  scope: { 3: "title.function.invoke" },
66012
- contains: [D]
66012
+ contains: [L]
66013
66013
  };
66014
- D.contains.push(W);
66014
+ L.contains.push(W);
66015
66015
  const Y = [
66016
66016
  C,
66017
66017
  H,
@@ -67228,7 +67228,7 @@ function UIe(e) {
67228
67228
  }
67229
67229
  ].concat(l, u);
67230
67230
  d.contains = x, y.contains = x;
67231
- const D = [
67231
+ const L = [
67232
67232
  {
67233
67233
  begin: /^\s*=>/,
67234
67234
  starts: {
@@ -67257,7 +67257,7 @@ function UIe(e) {
67257
67257
  ],
67258
67258
  keywords: o,
67259
67259
  illegal: /\/\*/,
67260
- contains: [e.SHEBANG({ binary: "ruby" })].concat(D).concat(u).concat(x)
67260
+ contains: [e.SHEBANG({ binary: "ruby" })].concat(L).concat(u).concat(x)
67261
67261
  };
67262
67262
  }
67263
67263
  function HIe(e) {
@@ -69555,7 +69555,7 @@ function lOe(e) {
69555
69555
  H("##"),
69556
69556
  H("###")
69557
69557
  ]
69558
- }, D = [
69558
+ }, L = [
69559
69559
  e.BACKSLASH_ESCAPE,
69560
69560
  {
69561
69561
  begin: /\[/,
@@ -69566,14 +69566,14 @@ function lOe(e) {
69566
69566
  ], W = {
69567
69567
  begin: /\/[^\s](?=[^/\n]*\/)/,
69568
69568
  end: /\//,
69569
- contains: D
69569
+ contains: L
69570
69570
  }, Y = (ke) => {
69571
69571
  const qe = at(ke, /\//), de = at(/\//, ke);
69572
69572
  return {
69573
69573
  begin: qe,
69574
69574
  end: de,
69575
69575
  contains: [
69576
- ...D,
69576
+ ...L,
69577
69577
  {
69578
69578
  scope: "comment",
69579
69579
  begin: `#(?!.*${de})`,
@@ -69599,7 +69599,7 @@ function lOe(e) {
69599
69599
  G,
69600
69600
  R,
69601
69601
  B
69602
- ], L = {
69602
+ ], D = {
69603
69603
  match: /(@|#(un)?)available/,
69604
69604
  scope: "keyword",
69605
69605
  starts: { contains: [
@@ -69621,7 +69621,7 @@ function lOe(e) {
69621
69621
  scope: "meta",
69622
69622
  match: at(/@/, Dn)
69623
69623
  }, Q = [
69624
- L,
69624
+ D,
69625
69625
  K,
69626
69626
  A
69627
69627
  ], ee = {
@@ -70044,9 +70044,9 @@ const bo = "[A-Za-z$_][0-9A-Za-z$_]*", M8 = [
70044
70044
  A8
70045
70045
  );
70046
70046
  function cOe(e) {
70047
- const t = e.regex, n = (L, { after: K }) => {
70048
- const A = "</" + L[0].slice(1);
70049
- return L.input.indexOf(A, K) !== -1;
70047
+ const t = e.regex, n = (D, { after: K }) => {
70048
+ const A = "</" + D[0].slice(1);
70049
+ return D.input.indexOf(A, K) !== -1;
70050
70050
  }, r = bo, a = {
70051
70051
  begin: "<>",
70052
70052
  end: "</>"
@@ -70057,8 +70057,8 @@ function cOe(e) {
70057
70057
  * @param {RegExpMatchArray} match
70058
70058
  * @param {CallbackResponse} response
70059
70059
  */
70060
- isTrulyOpeningTag: (L, K) => {
70061
- const A = L[0].length + L.index, Q = L.input[A];
70060
+ isTrulyOpeningTag: (D, K) => {
70061
+ const A = D[0].length + D.index, Q = D.input[A];
70062
70062
  if (
70063
70063
  // HTML should not include another raw `<` inside a tag
70064
70064
  // nested type?
@@ -70070,9 +70070,9 @@ function cOe(e) {
70070
70070
  K.ignoreMatch();
70071
70071
  return;
70072
70072
  }
70073
- Q === ">" && (n(L, { after: A }) || K.ignoreMatch());
70073
+ Q === ">" && (n(D, { after: A }) || K.ignoreMatch());
70074
70074
  let ee;
70075
- const O = L.input.substring(A);
70075
+ const O = D.input.substring(A);
70076
70076
  if (ee = O.match(/^\s*=/)) {
70077
70077
  K.ignoreMatch();
70078
70078
  return;
@@ -70305,7 +70305,7 @@ function cOe(e) {
70305
70305
  className: "meta",
70306
70306
  relevance: 10,
70307
70307
  begin: /^\s*['"]use (strict|asm)['"]/
70308
- }, D = {
70308
+ }, L = {
70309
70309
  variants: [
70310
70310
  {
70311
70311
  match: [
@@ -70335,8 +70335,8 @@ function cOe(e) {
70335
70335
  match: /\b[A-Z][A-Z_0-9]+\b/,
70336
70336
  className: "variable.constant"
70337
70337
  };
70338
- function Y(L) {
70339
- return t.concat("(?!", L.join("|"), ")");
70338
+ function Y(D) {
70339
+ return t.concat("(?!", D.join("|"), ")");
70340
70340
  }
70341
70341
  const J = {
70342
70342
  match: t.concat(
@@ -70345,7 +70345,7 @@ function cOe(e) {
70345
70345
  ...T8,
70346
70346
  "super",
70347
70347
  "import"
70348
- ].map((L) => `${L}\\s*\\(`)),
70348
+ ].map((D) => `${D}\\s*\\(`)),
70349
70349
  r,
70350
70350
  t.lookahead(/\s*\(/)
70351
70351
  ),
@@ -70504,7 +70504,7 @@ function cOe(e) {
70504
70504
  }
70505
70505
  ]
70506
70506
  },
70507
- D,
70507
+ L,
70508
70508
  {
70509
70509
  // prevent this from getting swallowed up by function
70510
70510
  // since they appear "function like"
@@ -71985,26 +71985,26 @@ const hl = O8, ig = br, og = Symbol("nomatch"), sLe = 7, H8 = function(e) {
71985
71985
  function u(B) {
71986
71986
  let P = B.className + " ";
71987
71987
  P += B.parentNode ? B.parentNode.className : "";
71988
- const L = s.languageDetectRe.exec(P);
71989
- if (L) {
71990
- const K = H(L[1]);
71991
- return K || (ag(i.replace("{}", L[1])), ag("Falling back to no-highlight mode for this block.", B)), K ? L[1] : "no-highlight";
71988
+ const D = s.languageDetectRe.exec(P);
71989
+ if (D) {
71990
+ const K = H(D[1]);
71991
+ return K || (ag(i.replace("{}", D[1])), ag("Falling back to no-highlight mode for this block.", B)), K ? D[1] : "no-highlight";
71992
71992
  }
71993
71993
  return P.split(/\s+/).find((K) => l(K) || H(K));
71994
71994
  }
71995
- function d(B, P, L) {
71995
+ function d(B, P, D) {
71996
71996
  let K = "", A = "";
71997
- typeof P == "object" ? (K = B, L = P.ignoreIllegals, A = P.language) : (Qr("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qr("10.7.0", `Please use highlight(code, options) instead.
71998
- https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L === void 0 && (L = !0);
71997
+ typeof P == "object" ? (K = B, D = P.ignoreIllegals, A = P.language) : (Qr("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qr("10.7.0", `Please use highlight(code, options) instead.
71998
+ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D === void 0 && (D = !0);
71999
71999
  const Q = {
72000
72000
  code: K,
72001
72001
  language: A
72002
72002
  };
72003
72003
  G("before:highlight", Q);
72004
- const ee = Q.result ? Q.result : p(Q.language, Q.code, L);
72004
+ const ee = Q.result ? Q.result : p(Q.language, Q.code, D);
72005
72005
  return ee.code = Q.code, G("after:highlight", ee), ee;
72006
72006
  }
72007
- function p(B, P, L, K) {
72007
+ function p(B, P, D, K) {
72008
72008
  const A = /* @__PURE__ */ Object.create(null);
72009
72009
  function Q(q, Z) {
72010
72010
  return q.keywords[Z];
@@ -72127,7 +72127,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72127
72127
  }
72128
72128
  if (Qe = Z, Z.type === "begin")
72129
72129
  return ne(Z);
72130
- if (Z.type === "illegal" && !L) {
72130
+ if (Z.type === "illegal" && !D) {
72131
72131
  const pe = new Error('Illegal lexeme "' + se + '" for mode "' + (de.scope || "<unnamed>") + '"');
72132
72132
  throw pe.mode = de, pe;
72133
72133
  } else if (Z.type === "end") {
@@ -72213,10 +72213,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72213
72213
  }
72214
72214
  function h(B, P) {
72215
72215
  P = P || s.languages || Object.keys(t);
72216
- const L = m(B), K = P.filter(H).filter(D).map(
72216
+ const D = m(B), K = P.filter(H).filter(L).map(
72217
72217
  (ue) => p(ue, B, !1)
72218
72218
  );
72219
- K.unshift(L);
72219
+ K.unshift(D);
72220
72220
  const A = K.sort((ue, ge) => {
72221
72221
  if (ue.relevance !== ge.relevance)
72222
72222
  return ge.relevance - ue.relevance;
@@ -72230,18 +72230,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72230
72230
  }), [Q, ee] = A, O = Q;
72231
72231
  return O.secondBest = ee, O;
72232
72232
  }
72233
- function f(B, P, L) {
72234
- const K = P && n[P] || L;
72233
+ function f(B, P, D) {
72234
+ const K = P && n[P] || D;
72235
72235
  B.classList.add("hljs"), B.classList.add(`language-${K}`);
72236
72236
  }
72237
72237
  function y(B) {
72238
72238
  let P = null;
72239
- const L = u(B);
72240
- if (l(L))
72239
+ const D = u(B);
72240
+ if (l(D))
72241
72241
  return;
72242
72242
  if (G(
72243
72243
  "before:highlightElement",
72244
- { el: B, language: L }
72244
+ { el: B, language: D }
72245
72245
  ), B.dataset.highlighted) {
72246
72246
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", B);
72247
72247
  return;
@@ -72252,8 +72252,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72252
72252
  B.innerHTML
72253
72253
  );
72254
72254
  P = B;
72255
- const K = P.textContent, A = L ? d(K, { language: L, ignoreIllegals: !0 }) : h(K);
72256
- B.innerHTML = A.value, B.dataset.highlighted = "yes", f(B, L, A.language), B.result = {
72255
+ const K = P.textContent, A = D ? d(K, { language: D, ignoreIllegals: !0 }) : h(K);
72256
+ B.innerHTML = A.value, B.dataset.highlighted = "yes", f(B, D, A.language), B.result = {
72257
72257
  language: A.language,
72258
72258
  // TODO: remove with version 11.0
72259
72259
  re: A.relevance,
@@ -72284,17 +72284,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72284
72284
  document.querySelectorAll(s.cssSelector).forEach(y);
72285
72285
  }
72286
72286
  function S(B, P) {
72287
- let L = null;
72287
+ let D = null;
72288
72288
  try {
72289
- L = P(e);
72289
+ D = P(e);
72290
72290
  } catch (K) {
72291
72291
  if (zr("Language definition for '{}' could not be registered.".replace("{}", B)), a)
72292
72292
  zr(K);
72293
72293
  else
72294
72294
  throw K;
72295
- L = o;
72295
+ D = o;
72296
72296
  }
72297
- L.name || (L.name = B), t[B] = L, L.rawDefinition = P.bind(null, e), L.aliases && C(L.aliases, { languageName: B });
72297
+ D.name || (D.name = B), t[B] = D, D.rawDefinition = P.bind(null, e), D.aliases && C(D.aliases, { languageName: B });
72298
72298
  }
72299
72299
  function x(B) {
72300
72300
  delete t[B];
@@ -72308,11 +72308,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72308
72308
  return B = (B || "").toLowerCase(), t[B] || t[n[B]];
72309
72309
  }
72310
72310
  function C(B, { languageName: P }) {
72311
- typeof B == "string" && (B = [B]), B.forEach((L) => {
72312
- n[L.toLowerCase()] = P;
72311
+ typeof B == "string" && (B = [B]), B.forEach((D) => {
72312
+ n[D.toLowerCase()] = P;
72313
72313
  });
72314
72314
  }
72315
- function D(B) {
72315
+ function L(B) {
72316
72316
  const P = H(B);
72317
72317
  return P && !P.disableAutodetect;
72318
72318
  }
@@ -72335,9 +72335,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72335
72335
  P !== -1 && r.splice(P, 1);
72336
72336
  }
72337
72337
  function G(B, P) {
72338
- const L = B;
72338
+ const D = B;
72339
72339
  r.forEach(function(K) {
72340
- K[L] && K[L](P);
72340
+ K[D] && K[D](P);
72341
72341
  });
72342
72342
  }
72343
72343
  function R(B) {
@@ -72358,7 +72358,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
72358
72358
  listLanguages: z,
72359
72359
  getLanguage: H,
72360
72360
  registerAliases: C,
72361
- autoDetection: D,
72361
+ autoDetection: L,
72362
72362
  inherit: ig,
72363
72363
  addPlugin: Y,
72364
72364
  removePlugin: J
@@ -72959,10 +72959,10 @@ function DLe(e, t, n, r, a, i, o, s, l) {
72959
72959
  if (H) {
72960
72960
  var C = z.split(`
72961
72961
  `);
72962
- C.forEach(function(D, W) {
72962
+ C.forEach(function(L, W) {
72963
72963
  var Y = r && p.length + i, J = {
72964
72964
  type: "text",
72965
- value: "".concat(D, `
72965
+ value: "".concat(L, `
72966
72966
  `)
72967
72967
  };
72968
72968
  if (W === 0) {
@@ -72974,14 +72974,14 @@ function DLe(e, t, n, r, a, i, o, s, l) {
72974
72974
  } else if (W === C.length - 1) {
72975
72975
  var B = d[h + 1] && d[h + 1].children && d[h + 1].children[0], P = {
72976
72976
  type: "text",
72977
- value: "".concat(D)
72977
+ value: "".concat(L)
72978
72978
  };
72979
72979
  if (B) {
72980
- var L = Qi({
72980
+ var D = Qi({
72981
72981
  children: [P],
72982
72982
  className: x.properties.className
72983
72983
  });
72984
- d.splice(h + 1, 0, L);
72984
+ d.splice(h + 1, 0, D);
72985
72985
  } else {
72986
72986
  var K = [P], A = w(K, Y, x.properties.className);
72987
72987
  p.push(A);
@@ -73044,14 +73044,14 @@ function FLe(e, t) {
73044
73044
  var a = r.language, i = r.children, o = r.style, s = o === void 0 ? t : o, l = r.customStyle, u = l === void 0 ? {} : l, d = r.codeTagProps, p = d === void 0 ? {
73045
73045
  className: a ? "language-".concat(a) : void 0,
73046
73046
  style: qn(qn({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(a, '"]')])
73047
- } : d, m = r.useInlineStyles, h = m === void 0 ? !0 : m, f = r.showLineNumbers, y = f === void 0 ? !1 : f, w = r.showInlineLineNumbers, _ = w === void 0 ? !0 : w, k = r.startingLineNumber, v = k === void 0 ? 1 : k, M = r.lineNumberContainerStyle, S = r.lineNumberStyle, x = S === void 0 ? {} : S, z = r.wrapLines, H = r.wrapLongLines, C = H === void 0 ? !1 : H, D = r.lineProps, W = D === void 0 ? {} : D, Y = r.renderer, J = r.PreTag, G = J === void 0 ? "pre" : J, R = r.CodeTag, B = R === void 0 ? "code" : R, P = r.code, L = P === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : P, K = r.astGenerator, A = gLe(r, TLe);
73047
+ } : d, m = r.useInlineStyles, h = m === void 0 ? !0 : m, f = r.showLineNumbers, y = f === void 0 ? !1 : f, w = r.showInlineLineNumbers, _ = w === void 0 ? !0 : w, k = r.startingLineNumber, v = k === void 0 ? 1 : k, M = r.lineNumberContainerStyle, S = r.lineNumberStyle, x = S === void 0 ? {} : S, z = r.wrapLines, H = r.wrapLongLines, C = H === void 0 ? !1 : H, L = r.lineProps, W = L === void 0 ? {} : L, Y = r.renderer, J = r.PreTag, G = J === void 0 ? "pre" : J, R = r.CodeTag, B = R === void 0 ? "code" : R, P = r.code, D = P === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : P, K = r.astGenerator, A = gLe(r, TLe);
73048
73048
  K = K || e;
73049
73049
  var Q = y ? /* @__PURE__ */ Bn.createElement(OLe, {
73050
73050
  containerStyle: M,
73051
73051
  codeStyle: p.style || {},
73052
73052
  numberStyle: x,
73053
73053
  startingLineNumber: v,
73054
- codeString: L
73054
+ codeString: D
73055
73055
  }) : null, ee = s.hljs || s['pre[class*="language-"]'] || {
73056
73056
  backgroundColor: "#fff"
73057
73057
  }, O = Z8(K) ? "hljs" : "prismjs", ue = h ? Object.assign({}, A, {
@@ -73065,15 +73065,15 @@ function FLe(e, t) {
73065
73065
  }) : p.style = qn(qn({}, p.style), {}, {
73066
73066
  whiteSpace: "pre"
73067
73067
  }), !K)
73068
- return /* @__PURE__ */ Bn.createElement(G, ue, Q, /* @__PURE__ */ Bn.createElement(B, p, L));
73068
+ return /* @__PURE__ */ Bn.createElement(G, ue, Q, /* @__PURE__ */ Bn.createElement(B, p, D));
73069
73069
  (z === void 0 && Y || C) && (z = !0), Y = Y || $Le;
73070
73070
  var ge = [{
73071
73071
  type: "text",
73072
- value: L
73072
+ value: D
73073
73073
  }], be = zLe({
73074
73074
  astGenerator: K,
73075
73075
  language: a,
73076
- code: L,
73076
+ code: D,
73077
73077
  defaultCodeValue: ge
73078
73078
  });
73079
73079
  be.language === null && (be.value = ge);
@@ -73932,8 +73932,8 @@ function IFe(e, t) {
73932
73932
  return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), OFe(e, n);
73933
73933
  }
73934
73934
  function OFe(e, t) {
73935
- var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, d = t.position, p = t.indent || [], m = e.length, h = 0, f = -1, y = d.column || 1, w = d.line || 1, _ = "", k = [], v, M, S, x, z, H, C, D, W, Y, J, G, R, B, P, L, K, A, Q;
73936
- for (typeof n == "string" && (n = n.charCodeAt(0)), L = ee(), D = o ? O : _Fe, h--, m++; ++h < m; )
73935
+ var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, d = t.position, p = t.indent || [], m = e.length, h = 0, f = -1, y = d.column || 1, w = d.line || 1, _ = "", k = [], v, M, S, x, z, H, C, L, W, Y, J, G, R, B, P, D, K, A, Q;
73936
+ for (typeof n == "string" && (n = n.charCodeAt(0)), D = ee(), L = o ? O : _Fe, h--, m++; ++h < m; )
73937
73937
  if (z === Mg && (y = p[f] || 1), z = e.charCodeAt(h), z === Sg) {
73938
73938
  if (C = e.charCodeAt(h + 1), C === wFe || C === Mg || C === xFe || C === EFe || C === Sg || C === SFe || C !== C || n && C === n) {
73939
73939
  _ += Jr(z), y++;
@@ -73941,12 +73941,12 @@ function OFe(e, t) {
73941
73941
  }
73942
73942
  for (R = h + 1, G = R, Q = R, C === AFe ? (Q = ++G, C = e.charCodeAt(Q), C === TFe || C === CFe ? (B = Fh, Q = ++G) : B = Ph) : B = aa, v = "", J = "", x = "", P = ts[B], Q--; ++Q < m && (C = e.charCodeAt(Q), !!P(C)); )
73943
73943
  x += Jr(C), B === aa && vFe.call(wg, x) && (v = x, J = wg[x]);
73944
- S = e.charCodeAt(Q) === MFe, S && (Q++, M = B === aa ? bFe(x) : !1, M && (v = x, J = M)), A = 1 + Q - R, !S && !r || (x ? B === aa ? (S && !J ? D(m7, 1) : (v !== x && (Q = G + v.length, A = 1 + Q - G, S = !1), S || (W = v ? u7 : p7, t.attribute ? (C = e.charCodeAt(Q), C === NFe ? (D(W, A), J = null) : c7(C) ? J = null : D(W, A)) : D(W, A))), H = J) : (S || D(d7, A), H = parseInt(x, qh[B]), LFe(H) ? (D(f7, A), H = Jr(RFe)) : H in xg ? (D(lp, A), H = xg[H]) : (Y = "", DFe(H) && D(lp, A), H > 65535 && (H -= 65536, Y += Jr(H >>> 10 | 55296), H = 56320 | H & 1023), H = Y + Jr(H))) : B !== aa && D(h7, A)), H ? (ue(), L = ee(), h = Q - 1, y += Q - R + 1, k.push(H), K = ee(), K.offset++, i && i.call(
73944
+ S = e.charCodeAt(Q) === MFe, S && (Q++, M = B === aa ? bFe(x) : !1, M && (v = x, J = M)), A = 1 + Q - R, !S && !r || (x ? B === aa ? (S && !J ? L(m7, 1) : (v !== x && (Q = G + v.length, A = 1 + Q - G, S = !1), S || (W = v ? u7 : p7, t.attribute ? (C = e.charCodeAt(Q), C === NFe ? (L(W, A), J = null) : c7(C) ? J = null : L(W, A)) : L(W, A))), H = J) : (S || L(d7, A), H = parseInt(x, qh[B]), LFe(H) ? (L(f7, A), H = Jr(RFe)) : H in xg ? (L(lp, A), H = xg[H]) : (Y = "", DFe(H) && L(lp, A), H > 65535 && (H -= 65536, Y += Jr(H >>> 10 | 55296), H = 56320 | H & 1023), H = Y + Jr(H))) : B !== aa && L(h7, A)), H ? (ue(), D = ee(), h = Q - 1, y += Q - R + 1, k.push(H), K = ee(), K.offset++, i && i.call(
73945
73945
  l,
73946
73946
  H,
73947
- { start: L, end: K },
73947
+ { start: D, end: K },
73948
73948
  e.slice(R - 1, Q)
73949
- ), L = K) : (x = e.slice(R - 1, Q), _ += x, y += x.length, h = Q - 1);
73949
+ ), D = K) : (x = e.slice(R - 1, Q), _ += x, y += x.length, h = Q - 1);
73950
73950
  } else
73951
73951
  z === 10 && (w++, f++, y = 0), z === z ? (_ += Jr(z), y++) : ue();
73952
73952
  return k.join("");
@@ -73962,7 +73962,7 @@ function OFe(e, t) {
73962
73962
  Ie.column += be, Ie.offset += be, o.call(u, Ar[ge], Ie, ge);
73963
73963
  }
73964
73964
  function ue() {
73965
- _ && (k.push(_), a && a.call(s, _, { start: L, end: ee() }), _ = "");
73965
+ _ && (k.push(_), a && a.call(s, _, { start: D, end: ee() }), _ = "");
73966
73966
  }
73967
73967
  }
73968
73968
  function LFe(e) {
@@ -74326,9 +74326,9 @@ var g7 = { exports: {} };
74326
74326
  M.hasOwnProperty(C) && (z[C] = M[C]);
74327
74327
  M.hasOwnProperty(H) || (z[H] = x[H]);
74328
74328
  }
74329
- var D = S[k];
74329
+ var L = S[k];
74330
74330
  return S[k] = z, s.languages.DFS(s.languages, function(W, Y) {
74331
- Y === D && W != k && (this[W] = z);
74331
+ Y === L && W != k && (this[W] = z);
74332
74332
  }), z;
74333
74333
  },
74334
74334
  // Traverse a language definition with Depth First Search
@@ -74338,8 +74338,8 @@ var g7 = { exports: {} };
74338
74338
  for (var H in v)
74339
74339
  if (v.hasOwnProperty(H)) {
74340
74340
  M.call(v, H, v[H], S || H);
74341
- var C = v[H], D = s.util.type(C);
74342
- D === "Object" && !x[z(C)] ? (x[z(C)] = !0, k(C, M, null, x)) : D === "Array" && !x[z(C)] && (x[z(C)] = !0, k(C, M, H, x));
74341
+ var C = v[H], L = s.util.type(C);
74342
+ L === "Object" && !x[z(C)] ? (x[z(C)] = !0, k(C, M, null, x)) : L === "Array" && !x[z(C)] && (x[z(C)] = !0, k(C, M, H, x));
74343
74343
  }
74344
74344
  }
74345
74345
  },
@@ -74423,7 +74423,7 @@ var g7 = { exports: {} };
74423
74423
  grammar: x,
74424
74424
  code: H
74425
74425
  };
74426
- function D(Y) {
74426
+ function L(Y) {
74427
74427
  C.highlightedCode = Y, s.hooks.run("before-insert", C), C.element.innerHTML = C.highlightedCode, s.hooks.run("after-highlight", C), s.hooks.run("complete", C), M && M.call(C.element);
74428
74428
  }
74429
74429
  if (s.hooks.run("before-sanity-check", C), z = C.element.parentElement, z && z.nodeName.toLowerCase() === "pre" && !z.hasAttribute("tabindex") && z.setAttribute("tabindex", "0"), !C.code) {
@@ -74431,20 +74431,20 @@ var g7 = { exports: {} };
74431
74431
  return;
74432
74432
  }
74433
74433
  if (s.hooks.run("before-highlight", C), !C.grammar) {
74434
- D(s.util.encode(C.code));
74434
+ L(s.util.encode(C.code));
74435
74435
  return;
74436
74436
  }
74437
74437
  if (v && r.Worker) {
74438
74438
  var W = new Worker(s.filename);
74439
74439
  W.onmessage = function(Y) {
74440
- D(Y.data);
74440
+ L(Y.data);
74441
74441
  }, W.postMessage(JSON.stringify({
74442
74442
  language: C.language,
74443
74443
  code: C.code,
74444
74444
  immediateClose: !0
74445
74445
  }));
74446
74446
  } else
74447
- D(s.highlight(C.code, C.grammar, C.language));
74447
+ L(s.highlight(C.code, C.grammar, C.language));
74448
74448
  },
74449
74449
  /**
74450
74450
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -74560,8 +74560,8 @@ var g7 = { exports: {} };
74560
74560
  return v;
74561
74561
  if (Array.isArray(v)) {
74562
74562
  var S = "";
74563
- return v.forEach(function(D) {
74564
- S += k(D, M);
74563
+ return v.forEach(function(L) {
74564
+ S += k(L, M);
74565
74565
  }), S;
74566
74566
  }
74567
74567
  var x = {
@@ -74592,16 +74592,16 @@ var g7 = { exports: {} };
74592
74592
  if (!(!M.hasOwnProperty(H) || !M[H])) {
74593
74593
  var C = M[H];
74594
74594
  C = Array.isArray(C) ? C : [C];
74595
- for (var D = 0; D < C.length; ++D) {
74596
- if (z && z.cause == H + "," + D)
74595
+ for (var L = 0; L < C.length; ++L) {
74596
+ if (z && z.cause == H + "," + L)
74597
74597
  return;
74598
- var W = C[D], Y = W.inside, J = !!W.lookbehind, G = !!W.greedy, R = W.alias;
74598
+ var W = C[L], Y = W.inside, J = !!W.lookbehind, G = !!W.greedy, R = W.alias;
74599
74599
  if (G && !W.pattern.global) {
74600
74600
  var B = W.pattern.toString().match(/[imsuy]*$/)[0];
74601
74601
  W.pattern = RegExp(W.pattern.source, B + "g");
74602
74602
  }
74603
- for (var P = W.pattern || W, L = S.next, K = x; L !== v.tail && !(z && K >= z.reach); K += L.value.length, L = L.next) {
74604
- var A = L.value;
74603
+ for (var P = W.pattern || W, D = S.next, K = x; D !== v.tail && !(z && K >= z.reach); K += D.value.length, D = D.next) {
74604
+ var A = D.value;
74605
74605
  if (v.length > k.length)
74606
74606
  return;
74607
74607
  if (!(A instanceof l)) {
@@ -74610,26 +74610,26 @@ var g7 = { exports: {} };
74610
74610
  if (ee = u(P, K, k, J), !ee || ee.index >= k.length)
74611
74611
  break;
74612
74612
  var be = ee.index, O = ee.index + ee[0].length, ue = K;
74613
- for (ue += L.value.length; be >= ue; )
74614
- L = L.next, ue += L.value.length;
74615
- if (ue -= L.value.length, K = ue, L.value instanceof l)
74613
+ for (ue += D.value.length; be >= ue; )
74614
+ D = D.next, ue += D.value.length;
74615
+ if (ue -= D.value.length, K = ue, D.value instanceof l)
74616
74616
  continue;
74617
- for (var ge = L; ge !== v.tail && (ue < O || typeof ge.value == "string"); ge = ge.next)
74617
+ for (var ge = D; ge !== v.tail && (ue < O || typeof ge.value == "string"); ge = ge.next)
74618
74618
  Q++, ue += ge.value.length;
74619
74619
  Q--, A = k.slice(K, ue), ee.index -= K;
74620
74620
  } else if (ee = u(P, 0, A, J), !ee)
74621
74621
  continue;
74622
74622
  var be = ee.index, Ie = ee[0], De = A.slice(0, be), Ue = A.slice(be + Ie.length), ne = K + A.length;
74623
74623
  z && ne > z.reach && (z.reach = ne);
74624
- var we = L.prev;
74624
+ var we = D.prev;
74625
74625
  De && (we = m(v, we, De), K += De.length), h(v, we, Q);
74626
74626
  var Xe = new l(H, Y ? s.tokenize(Ie, Y) : Ie, R, Ie);
74627
- if (L = m(v, we, Xe), Ue && m(v, L, Ue), Q > 1) {
74627
+ if (D = m(v, we, Xe), Ue && m(v, D, Ue), Q > 1) {
74628
74628
  var Qe = {
74629
- cause: H + "," + D,
74629
+ cause: H + "," + L,
74630
74630
  reach: ne
74631
74631
  };
74632
- d(k, v, M, L.prev, K, Qe), z && Qe.reach > z.reach && (z.reach = Qe.reach);
74632
+ d(k, v, M, D.prev, K, Qe), z && Qe.reach > z.reach && (z.reach = Qe.reach);
74633
74633
  }
74634
74634
  }
74635
74635
  }
@@ -76770,9 +76770,9 @@ function ns() {
76770
76770
  }
76771
76771
  }
76772
76772
  });
76773
- var D = H + "|" + z, W = r(
76773
+ var L = H + "|" + z, W = r(
76774
76774
  /\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
76775
- [D]
76775
+ [L]
76776
76776
  ), Y = i(
76777
76777
  r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
76778
76778
  W
@@ -76819,14 +76819,14 @@ function ns() {
76819
76819
  ), P = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
76820
76820
  B,
76821
76821
  R
76822
- ]), L = i(
76822
+ ]), D = i(
76823
76823
  r(
76824
76824
  /[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
76825
- [D]
76825
+ [L]
76826
76826
  ),
76827
76827
  2
76828
76828
  ), K = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
76829
- L,
76829
+ D,
76830
76830
  R
76831
76831
  ]);
76832
76832
  function A(Q, ee) {
@@ -76873,7 +76873,7 @@ function ns() {
76873
76873
  ]),
76874
76874
  lookbehind: !0,
76875
76875
  greedy: !0,
76876
- inside: A(K, L)
76876
+ inside: A(K, D)
76877
76877
  }
76878
76878
  ],
76879
76879
  char: {
@@ -84114,18 +84114,18 @@ function cBe() {
84114
84114
  }), v = 0, M = {}, S = k.map(function(C) {
84115
84115
  if (typeof C == "string")
84116
84116
  return C;
84117
- for (var D = C.content, W; y.indexOf(
84117
+ for (var L = C.content, W; y.indexOf(
84118
84118
  W = u(v++, _)
84119
84119
  ) !== -1; )
84120
84120
  ;
84121
- return M[W] = D, W;
84121
+ return M[W] = L, W;
84122
84122
  }).join(""), x = d(S, w, _), z = Object.keys(M);
84123
84123
  v = 0;
84124
84124
  function H(C) {
84125
- for (var D = 0; D < C.length; D++) {
84125
+ for (var L = 0; L < C.length; L++) {
84126
84126
  if (v >= z.length)
84127
84127
  return;
84128
- var W = C[D];
84128
+ var W = C[L];
84129
84129
  if (typeof W == "string" || typeof W.content == "string") {
84130
84130
  var Y = z[v], J = typeof W == "string" ? W : (
84131
84131
  /** @type {string} */
@@ -84135,12 +84135,12 @@ function cBe() {
84135
84135
  ++v;
84136
84136
  var R = J.substring(0, G), B = p(
84137
84137
  M[Y]
84138
- ), P = J.substring(G + Y.length), L = [];
84139
- if (R && L.push(R), L.push(B), P) {
84138
+ ), P = J.substring(G + Y.length), D = [];
84139
+ if (R && D.push(R), D.push(B), P) {
84140
84140
  var K = [P];
84141
- H(K), L.push.apply(L, K);
84141
+ H(K), D.push.apply(D, K);
84142
84142
  }
84143
- typeof W == "string" ? (C.splice.apply(C, [D, 1].concat(L)), D += L.length - 1) : W.content = L;
84143
+ typeof W == "string" ? (C.splice.apply(C, [L, 1].concat(D)), L += D.length - 1) : W.content = D;
84144
84144
  }
84145
84145
  } else {
84146
84146
  var A = W.content;
@@ -84178,10 +84178,10 @@ function cBe() {
84178
84178
  if (M.type === "template-string") {
84179
84179
  var x = S[1];
84180
84180
  if (S.length === 3 && typeof x != "string" && x.type === "embedded-code") {
84181
- var z = f(x), H = x.alias, C = Array.isArray(H) ? H[0] : H, D = n.languages[C];
84182
- if (!D)
84181
+ var z = f(x), H = x.alias, C = Array.isArray(H) ? H[0] : H, L = n.languages[C];
84182
+ if (!L)
84183
84183
  continue;
84184
- S[1] = m(z, D, C);
84184
+ S[1] = m(z, L, C);
84185
84185
  }
84186
84186
  } else
84187
84187
  w(S);