@mxmweb/rtext 1.6.6 → 1.6.7

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.
Files changed (3) hide show
  1. package/index.js +311 -311
  2. package/package.json +1 -1
  3. package/stats.html +1 -1
package/index.js CHANGED
@@ -198,18 +198,18 @@ function Kh() {
198
198
  Y < 0 && q("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
199
  }
200
200
  }
201
- var P = I.ReactCurrentDispatcher, U;
201
+ var P = I.ReactCurrentDispatcher, W;
202
202
  function re(w, we, se) {
203
203
  {
204
- if (U === void 0)
204
+ if (W === void 0)
205
205
  try {
206
206
  throw Error();
207
207
  } catch (bt) {
208
208
  var Xe = bt.stack.trim().match(/\n( *(at )?)/);
209
- U = Xe && Xe[1] || "";
209
+ W = Xe && Xe[1] || "";
210
210
  }
211
211
  return `
212
- ` + U + w;
212
+ ` + W + w;
213
213
  }
214
214
  }
215
215
  var Q = !1, ue;
@@ -1154,7 +1154,7 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1154
1154
  affinity: n
1155
1155
  } = e;
1156
1156
  if (r != null) {
1157
- var a = W.transform(r, t, {
1157
+ var a = U.transform(r, t, {
1158
1158
  affinity: n
1159
1159
  });
1160
1160
  e.current = a, a == null && e.unref();
@@ -1186,11 +1186,11 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1186
1186
  e.current = a, a == null && e.unref();
1187
1187
  }
1188
1188
  }
1189
- }, li = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), qa = /* @__PURE__ */ new WeakMap(), tf = /* @__PURE__ */ new WeakMap(), Ou = /* @__PURE__ */ new WeakMap(), Nu = /* @__PURE__ */ new WeakMap(), Mu = /* @__PURE__ */ new WeakMap(), W = {
1189
+ }, li = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), qa = /* @__PURE__ */ new WeakMap(), tf = /* @__PURE__ */ new WeakMap(), Ou = /* @__PURE__ */ new WeakMap(), Nu = /* @__PURE__ */ new WeakMap(), Mu = /* @__PURE__ */ new WeakMap(), U = {
1190
1190
  ancestors(e) {
1191
1191
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
1192
1192
  reverse: r = !1
1193
- } = t, n = W.levels(e, t);
1193
+ } = t, n = U.levels(e, t);
1194
1194
  return r ? n = n.slice(1) : n = n.slice(0, -1), n;
1195
1195
  },
1196
1196
  common(e, t) {
@@ -1211,15 +1211,15 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1211
1211
  },
1212
1212
  endsAfter(e, t) {
1213
1213
  var r = e.length - 1, n = e.slice(0, r), a = t.slice(0, r), l = e[r], c = t[r];
1214
- return W.equals(n, a) && l > c;
1214
+ return U.equals(n, a) && l > c;
1215
1215
  },
1216
1216
  endsAt(e, t) {
1217
1217
  var r = e.length, n = e.slice(0, r), a = t.slice(0, r);
1218
- return W.equals(n, a);
1218
+ return U.equals(n, a);
1219
1219
  },
1220
1220
  endsBefore(e, t) {
1221
1221
  var r = e.length - 1, n = e.slice(0, r), a = t.slice(0, r), l = e[r], c = t[r];
1222
- return W.equals(n, a) && l < c;
1222
+ return U.equals(n, a) && l < c;
1223
1223
  },
1224
1224
  equals(e, t) {
1225
1225
  return e.length === t.length && e.every((r, n) => r === t[n]);
@@ -1228,25 +1228,25 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1228
1228
  return e[e.length - 1] > 0;
1229
1229
  },
1230
1230
  isAfter(e, t) {
1231
- return W.compare(e, t) === 1;
1231
+ return U.compare(e, t) === 1;
1232
1232
  },
1233
1233
  isAncestor(e, t) {
1234
- return e.length < t.length && W.compare(e, t) === 0;
1234
+ return e.length < t.length && U.compare(e, t) === 0;
1235
1235
  },
1236
1236
  isBefore(e, t) {
1237
- return W.compare(e, t) === -1;
1237
+ return U.compare(e, t) === -1;
1238
1238
  },
1239
1239
  isChild(e, t) {
1240
- return e.length === t.length + 1 && W.compare(e, t) === 0;
1240
+ return e.length === t.length + 1 && U.compare(e, t) === 0;
1241
1241
  },
1242
1242
  isCommon(e, t) {
1243
- return e.length <= t.length && W.compare(e, t) === 0;
1243
+ return e.length <= t.length && U.compare(e, t) === 0;
1244
1244
  },
1245
1245
  isDescendant(e, t) {
1246
- return e.length > t.length && W.compare(e, t) === 0;
1246
+ return e.length > t.length && U.compare(e, t) === 0;
1247
1247
  },
1248
1248
  isParent(e, t) {
1249
- return e.length + 1 === t.length && W.compare(e, t) === 0;
1249
+ return e.length + 1 === t.length && U.compare(e, t) === 0;
1250
1250
  },
1251
1251
  isPath(e) {
1252
1252
  return Array.isArray(e) && (e.length === 0 || typeof e[0] == "number");
@@ -1255,7 +1255,7 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1255
1255
  if (e.length !== t.length)
1256
1256
  return !1;
1257
1257
  var r = e.slice(0, -1), n = t.slice(0, -1), a = e[e.length - 1], l = t[t.length - 1];
1258
- return a !== l && W.equals(r, n);
1258
+ return a !== l && U.equals(r, n);
1259
1259
  },
1260
1260
  levels(e) {
1261
1261
  for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
@@ -1296,7 +1296,7 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1296
1296
  return e.slice(0, -1).concat(t - 1);
1297
1297
  },
1298
1298
  relative(e, t) {
1299
- if (!W.isAncestor(t, e) && !W.equals(e, t))
1299
+ if (!U.isAncestor(t, e) && !U.equals(e, t))
1300
1300
  throw new Error("Cannot get the relative path of [".concat(e, "] inside ancestor [").concat(t, "], because it is not above or equal to the path."));
1301
1301
  return e.slice(t.length);
1302
1302
  },
@@ -1313,16 +1313,16 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1313
1313
  var {
1314
1314
  path: l
1315
1315
  } = t;
1316
- (W.equals(l, n) || W.endsBefore(l, n) || W.isAncestor(l, n)) && (n[l.length - 1] += 1);
1316
+ (U.equals(l, n) || U.endsBefore(l, n) || U.isAncestor(l, n)) && (n[l.length - 1] += 1);
1317
1317
  break;
1318
1318
  }
1319
1319
  case "remove_node": {
1320
1320
  var {
1321
1321
  path: c
1322
1322
  } = t;
1323
- if (W.equals(c, n) || W.isAncestor(c, n))
1323
+ if (U.equals(c, n) || U.isAncestor(c, n))
1324
1324
  return null;
1325
- W.endsBefore(c, n) && (n[c.length - 1] -= 1);
1325
+ U.endsBefore(c, n) && (n[c.length - 1] -= 1);
1326
1326
  break;
1327
1327
  }
1328
1328
  case "merge_node": {
@@ -1330,7 +1330,7 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1330
1330
  path: d,
1331
1331
  position: m
1332
1332
  } = t;
1333
- W.equals(d, n) || W.endsBefore(d, n) ? n[d.length - 1] -= 1 : W.isAncestor(d, n) && (n[d.length - 1] -= 1, n[d.length] += m);
1333
+ U.equals(d, n) || U.endsBefore(d, n) ? n[d.length - 1] -= 1 : U.isAncestor(d, n) && (n[d.length - 1] -= 1, n[d.length] += m);
1334
1334
  break;
1335
1335
  }
1336
1336
  case "split_node": {
@@ -1338,11 +1338,11 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1338
1338
  path: p,
1339
1339
  position: y
1340
1340
  } = t;
1341
- if (W.equals(p, n)) {
1341
+ if (U.equals(p, n)) {
1342
1342
  if (a === "forward")
1343
1343
  n[n.length - 1] += 1;
1344
1344
  else if (a !== "backward") return null;
1345
- } else W.endsBefore(p, n) ? n[p.length - 1] += 1 : W.isAncestor(p, n) && e[p.length] >= y && (n[p.length - 1] += 1, n[p.length] -= y);
1345
+ } else U.endsBefore(p, n) ? n[p.length - 1] += 1 : U.isAncestor(p, n) && e[p.length] >= y && (n[p.length - 1] += 1, n[p.length] -= y);
1346
1346
  break;
1347
1347
  }
1348
1348
  case "move_node": {
@@ -1350,12 +1350,12 @@ var Ja = new ip(), O0 = Ja.produce, Fu = /* @__PURE__ */ Ja.createDraft.bind(Ja)
1350
1350
  path: C,
1351
1351
  newPath: A
1352
1352
  } = t;
1353
- if (W.equals(C, A))
1353
+ if (U.equals(C, A))
1354
1354
  return n;
1355
- if (W.isAncestor(C, n) || W.equals(C, n)) {
1355
+ if (U.isAncestor(C, n) || U.equals(C, n)) {
1356
1356
  var T = A.slice();
1357
- return W.endsBefore(C, A) && C.length < A.length && (T[C.length - 1] -= 1), T.concat(n.slice(C.length));
1358
- } else W.isSibling(C, A) && (W.isAncestor(A, n) || W.equals(A, n)) ? W.endsBefore(C, n) ? n[C.length - 1] -= 1 : n[C.length - 1] += 1 : W.endsBefore(A, n) || W.equals(A, n) || W.isAncestor(A, n) ? (W.endsBefore(C, n) && (n[C.length - 1] -= 1), n[A.length - 1] += 1) : W.endsBefore(C, n) && (W.equals(A, n) && (n[A.length - 1] += 1), n[C.length - 1] -= 1);
1357
+ return U.endsBefore(C, A) && C.length < A.length && (T[C.length - 1] -= 1), T.concat(n.slice(C.length));
1358
+ } else U.isSibling(C, A) && (U.isAncestor(A, n) || U.equals(A, n)) ? U.endsBefore(C, n) ? n[C.length - 1] -= 1 : n[C.length - 1] += 1 : U.endsBefore(A, n) || U.equals(A, n) || U.isAncestor(A, n) ? (U.endsBefore(C, n) && (n[C.length - 1] -= 1), n[A.length - 1] += 1) : U.endsBefore(C, n) && (U.equals(A, n) && (n[A.length - 1] += 1), n[C.length - 1] -= 1);
1359
1359
  break;
1360
1360
  }
1361
1361
  }
@@ -1443,7 +1443,7 @@ var hp = (e, t, r) => {
1443
1443
  case "merge_node": {
1444
1444
  var {
1445
1445
  path: I
1446
- } = r, q = $e.get(e, I), H = W.previous(I), L = $e.get(e, H), z = $e.parent(e, I), V = I[I.length - 1];
1446
+ } = r, q = $e.get(e, I), H = U.previous(I), L = $e.get(e, H), z = $e.parent(e, I), V = I[I.length - 1];
1447
1447
  if (Ke.isText(q) && Ke.isText(L))
1448
1448
  L.text += q.text;
1449
1449
  else if (!Ke.isText(q) && !Ke.isText(L))
@@ -1460,11 +1460,11 @@ var hp = (e, t, r) => {
1460
1460
  path: xe,
1461
1461
  newPath: oe
1462
1462
  } = r;
1463
- if (W.isAncestor(xe, oe))
1463
+ if (U.isAncestor(xe, oe))
1464
1464
  throw new Error("Cannot move a path [".concat(xe, "] to new path [").concat(oe, "] because the destination is inside itself."));
1465
1465
  var he = $e.get(e, xe), ee = $e.parent(e, xe), R = xe[xe.length - 1];
1466
1466
  ee.children.splice(R, 1);
1467
- var J = W.transform(xe, r), Y = $e.get(e, W.parent(J)), le = J[J.length - 1];
1467
+ var J = U.transform(xe, r), Y = $e.get(e, U.parent(J)), le = J[J.length - 1];
1468
1468
  if (Y.children.splice(le, 0, he), t)
1469
1469
  for (var [ne, ye] of ge.points(t))
1470
1470
  t[ye] = yt.transform(ne, r);
@@ -1481,15 +1481,15 @@ var hp = (e, t, r) => {
1481
1481
  t[Ee] = ie;
1482
1482
  else {
1483
1483
  var me = void 0, P = void 0;
1484
- for (var [U, re] of $e.texts(e))
1485
- if (W.compare(re, pe) === -1)
1486
- me = [U, re];
1484
+ for (var [W, re] of $e.texts(e))
1485
+ if (U.compare(re, pe) === -1)
1486
+ me = [W, re];
1487
1487
  else {
1488
- P = [U, re];
1488
+ P = [W, re];
1489
1489
  break;
1490
1490
  }
1491
1491
  var Q = !1;
1492
- me && P && (W.equals(P[1], pe) ? Q = !W.hasPrevious(P[1]) : Q = W.common(me[1], pe).length < W.common(P[1], pe).length), me && !Q ? (Ae.path = me[1], Ae.offset = me[0].text.length) : P ? (Ae.path = P[1], Ae.offset = 0) : t = null;
1492
+ me && P && (U.equals(P[1], pe) ? Q = !U.hasPrevious(P[1]) : Q = U.common(me[1], pe).length < U.common(P[1], pe).length), me && !Q ? (Ae.path = me[1], Ae.offset = me[0].text.length) : P ? (Ae.path = P[1], Ae.offset = 0) : t = null;
1493
1493
  }
1494
1494
  }
1495
1495
  break;
@@ -1718,7 +1718,7 @@ var ge = {
1718
1718
  return yt.isBefore(r, a) && yt.isAfter(n, l);
1719
1719
  }
1720
1720
  var [c, d] = ge.edges(e), m = !1, p = !1;
1721
- return yt.isPoint(t) ? (m = yt.compare(t, c) >= 0, p = yt.compare(t, d) <= 0) : (m = W.compare(t, c.path) >= 0, p = W.compare(t, d.path) <= 0), m && p;
1721
+ return yt.isPoint(t) ? (m = yt.compare(t, c) >= 0, p = yt.compare(t, d) <= 0) : (m = U.compare(t, c.path) >= 0, p = U.compare(t, d.path) <= 0), m && p;
1722
1722
  },
1723
1723
  intersection(e, t) {
1724
1724
  var r = vn(e, bp), [n, a] = ge.edges(e), [l, c] = ge.edges(t), d = yt.isBefore(n, l) ? l : n, m = yt.isBefore(a, c) ? a : c;
@@ -1810,7 +1810,7 @@ var ge = {
1810
1810
  ancestors(e, t) {
1811
1811
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1812
1812
  return (function* () {
1813
- for (var n of W.ancestors(t, r)) {
1813
+ for (var n of U.ancestors(t, r)) {
1814
1814
  var a = $e.ancestor(e, n), l = [a, n];
1815
1815
  yield l;
1816
1816
  }
@@ -1838,7 +1838,7 @@ var ge = {
1838
1838
  })();
1839
1839
  },
1840
1840
  common(e, t, r) {
1841
- var n = W.common(t, r), a = $e.get(e, n);
1841
+ var n = U.common(t, r), a = $e.get(e, n);
1842
1842
  return [a, n];
1843
1843
  },
1844
1844
  descendant(e, t) {
@@ -1893,11 +1893,11 @@ var ge = {
1893
1893
  var m = $e.parent(n, d), p = d[d.length - 1];
1894
1894
  m.children.splice(p, 1);
1895
1895
  }
1896
- if (W.equals(d, l.path)) {
1896
+ if (U.equals(d, l.path)) {
1897
1897
  var y = $e.leaf(n, d);
1898
1898
  y.text = y.text.slice(0, l.offset);
1899
1899
  }
1900
- if (W.equals(d, a.path)) {
1900
+ if (U.equals(d, a.path)) {
1901
1901
  var C = $e.leaf(n, d);
1902
1902
  C.text = C.text.slice(a.offset);
1903
1903
  }
@@ -1952,7 +1952,7 @@ var ge = {
1952
1952
  levels(e, t) {
1953
1953
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1954
1954
  return (function* () {
1955
- for (var n of W.levels(t, r)) {
1955
+ for (var n of U.levels(t, r)) {
1956
1956
  var a = $e.get(e, n);
1957
1957
  yield [a, n];
1958
1958
  }
@@ -1970,33 +1970,33 @@ var ge = {
1970
1970
  } = t, {
1971
1971
  from: a = [],
1972
1972
  to: l
1973
- } = t, c = /* @__PURE__ */ new Set(), d = [], m = e; !(l && (n ? W.isBefore(d, l) : W.isAfter(d, l))); ) {
1973
+ } = t, c = /* @__PURE__ */ new Set(), d = [], m = e; !(l && (n ? U.isBefore(d, l) : U.isAfter(d, l))); ) {
1974
1974
  if (c.has(m) || (yield [m, d]), !c.has(m) && !Ke.isText(m) && m.children.length !== 0 && (r == null || r([m, d]) === !1)) {
1975
1975
  c.add(m);
1976
1976
  var p = n ? m.children.length - 1 : 0;
1977
- W.isAncestor(d, a) && (p = a[d.length]), d = d.concat(p), m = $e.get(e, d);
1977
+ U.isAncestor(d, a) && (p = a[d.length]), d = d.concat(p), m = $e.get(e, d);
1978
1978
  continue;
1979
1979
  }
1980
1980
  if (d.length === 0)
1981
1981
  break;
1982
1982
  if (!n) {
1983
- var y = W.next(d);
1983
+ var y = U.next(d);
1984
1984
  if ($e.has(e, y)) {
1985
1985
  d = y, m = $e.get(e, d);
1986
1986
  continue;
1987
1987
  }
1988
1988
  }
1989
1989
  if (n && d[d.length - 1] !== 0) {
1990
- var C = W.previous(d);
1990
+ var C = U.previous(d);
1991
1991
  d = C, m = $e.get(e, d);
1992
1992
  continue;
1993
1993
  }
1994
- d = W.parent(d), m = $e.get(e, d), c.add(m);
1994
+ d = U.parent(d), m = $e.get(e, d), c.add(m);
1995
1995
  }
1996
1996
  })();
1997
1997
  },
1998
1998
  parent(e, t) {
1999
- var r = W.parent(t), n = $e.get(e, r);
1999
+ var r = U.parent(t), n = $e.get(e, r);
2000
2000
  if (Ke.isText(n))
2001
2001
  throw new Error("Cannot get the parent of path [".concat(t, "] because it does not exist in the root."));
2002
2002
  return n;
@@ -2042,23 +2042,23 @@ var $a = {
2042
2042
  return !1;
2043
2043
  switch (e.type) {
2044
2044
  case "insert_node":
2045
- return W.isPath(e.path) && $e.isNode(e.node);
2045
+ return U.isPath(e.path) && $e.isNode(e.node);
2046
2046
  case "insert_text":
2047
- return typeof e.offset == "number" && typeof e.text == "string" && W.isPath(e.path);
2047
+ return typeof e.offset == "number" && typeof e.text == "string" && U.isPath(e.path);
2048
2048
  case "merge_node":
2049
- return typeof e.position == "number" && W.isPath(e.path) && xr(e.properties);
2049
+ return typeof e.position == "number" && U.isPath(e.path) && xr(e.properties);
2050
2050
  case "move_node":
2051
- return W.isPath(e.path) && W.isPath(e.newPath);
2051
+ return U.isPath(e.path) && U.isPath(e.newPath);
2052
2052
  case "remove_node":
2053
- return W.isPath(e.path) && $e.isNode(e.node);
2053
+ return U.isPath(e.path) && $e.isNode(e.node);
2054
2054
  case "remove_text":
2055
- return typeof e.offset == "number" && typeof e.text == "string" && W.isPath(e.path);
2055
+ return typeof e.offset == "number" && typeof e.text == "string" && U.isPath(e.path);
2056
2056
  case "set_node":
2057
- return W.isPath(e.path) && xr(e.properties) && xr(e.newProperties);
2057
+ return U.isPath(e.path) && xr(e.properties) && xr(e.newProperties);
2058
2058
  case "set_selection":
2059
2059
  return e.properties === null && ge.isRange(e.newProperties) || e.newProperties === null && ge.isRange(e.properties) || xr(e.properties) && xr(e.newProperties);
2060
2060
  case "split_node":
2061
- return W.isPath(e.path) && typeof e.position == "number" && xr(e.properties);
2061
+ return U.isPath(e.path) && typeof e.position == "number" && xr(e.properties);
2062
2062
  default:
2063
2063
  return !1;
2064
2064
  }
@@ -2085,21 +2085,21 @@ var $a = {
2085
2085
  case "merge_node":
2086
2086
  return Qt(Qt({}, e), {}, {
2087
2087
  type: "split_node",
2088
- path: W.previous(e.path)
2088
+ path: U.previous(e.path)
2089
2089
  });
2090
2090
  case "move_node": {
2091
2091
  var {
2092
2092
  newPath: t,
2093
2093
  path: r
2094
2094
  } = e;
2095
- if (W.equals(t, r))
2095
+ if (U.equals(t, r))
2096
2096
  return e;
2097
- if (W.isSibling(r, t))
2097
+ if (U.isSibling(r, t))
2098
2098
  return Qt(Qt({}, e), {}, {
2099
2099
  path: t,
2100
2100
  newPath: r
2101
2101
  });
2102
- var n = W.transform(r, e), a = W.transform(W.next(r), e);
2102
+ var n = U.transform(r, e), a = U.transform(U.next(r), e);
2103
2103
  return Qt(Qt({}, e), {}, {
2104
2104
  path: n,
2105
2105
  newPath: a
@@ -2142,7 +2142,7 @@ var $a = {
2142
2142
  case "split_node":
2143
2143
  return Qt(Qt({}, e), {}, {
2144
2144
  type: "merge_node",
2145
- path: W.next(e.path)
2145
+ path: U.next(e.path)
2146
2146
  });
2147
2147
  }
2148
2148
  }
@@ -2342,7 +2342,7 @@ var $a = {
2342
2342
  shouldMergeNodesRemovePrevNode: (e, t, r) => e.shouldMergeNodesRemovePrevNode(t, r)
2343
2343
  }, Cp = {
2344
2344
  isSpan(e) {
2345
- return Array.isArray(e) && e.length === 2 && e.every(W.isPath);
2345
+ return Array.isArray(e) && e.length === 2 && e.every(U.isPath);
2346
2346
  }
2347
2347
  };
2348
2348
  function Lu(e, t) {
@@ -2368,7 +2368,7 @@ function _u(e) {
2368
2368
  }
2369
2369
  var yt = {
2370
2370
  compare(e, t) {
2371
- var r = W.compare(e.path, t.path);
2371
+ var r = U.compare(e.path, t.path);
2372
2372
  return r === 0 ? e.offset < t.offset ? -1 : e.offset > t.offset ? 1 : 0 : r;
2373
2373
  },
2374
2374
  isAfter(e, t) {
@@ -2378,10 +2378,10 @@ var yt = {
2378
2378
  return yt.compare(e, t) === -1;
2379
2379
  },
2380
2380
  equals(e, t) {
2381
- return e.offset === t.offset && W.equals(e.path, t.path);
2381
+ return e.offset === t.offset && U.equals(e.path, t.path);
2382
2382
  },
2383
2383
  isPoint(e) {
2384
- return xr(e) && typeof e.offset == "number" && W.isPath(e.path);
2384
+ return xr(e) && typeof e.offset == "number" && U.isPath(e.path);
2385
2385
  },
2386
2386
  transform(e, t) {
2387
2387
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -2397,36 +2397,36 @@ var yt = {
2397
2397
  switch (t.type) {
2398
2398
  case "insert_node":
2399
2399
  case "move_node": {
2400
- n.path = W.transform(l, t, r);
2400
+ n.path = U.transform(l, t, r);
2401
2401
  break;
2402
2402
  }
2403
2403
  case "insert_text": {
2404
- W.equals(t.path, l) && (t.offset < c || t.offset === c && a === "forward") && (n.offset += t.text.length);
2404
+ U.equals(t.path, l) && (t.offset < c || t.offset === c && a === "forward") && (n.offset += t.text.length);
2405
2405
  break;
2406
2406
  }
2407
2407
  case "merge_node": {
2408
- W.equals(t.path, l) && (n.offset += t.position), n.path = W.transform(l, t, r);
2408
+ U.equals(t.path, l) && (n.offset += t.position), n.path = U.transform(l, t, r);
2409
2409
  break;
2410
2410
  }
2411
2411
  case "remove_text": {
2412
- W.equals(t.path, l) && t.offset <= c && (n.offset -= Math.min(c - t.offset, t.text.length));
2412
+ U.equals(t.path, l) && t.offset <= c && (n.offset -= Math.min(c - t.offset, t.text.length));
2413
2413
  break;
2414
2414
  }
2415
2415
  case "remove_node": {
2416
- if (W.equals(t.path, l) || W.isAncestor(t.path, l))
2416
+ if (U.equals(t.path, l) || U.isAncestor(t.path, l))
2417
2417
  return null;
2418
- n.path = W.transform(l, t, r);
2418
+ n.path = U.transform(l, t, r);
2419
2419
  break;
2420
2420
  }
2421
2421
  case "split_node": {
2422
- if (W.equals(t.path, l)) {
2422
+ if (U.equals(t.path, l)) {
2423
2423
  if (t.position === c && a == null)
2424
2424
  return null;
2425
- (t.position < c || t.position === c && a === "forward") && (n.offset -= t.position, n.path = W.transform(l, t, _u(_u({}, r), {}, {
2425
+ (t.position < c || t.position === c && a === "forward") && (n.offset -= t.position, n.path = U.transform(l, t, _u(_u({}, r), {}, {
2426
2426
  affinity: "forward"
2427
2427
  })));
2428
2428
  } else
2429
- n.path = W.transform(l, t, r);
2429
+ n.path = U.transform(l, t, r);
2430
2430
  break;
2431
2431
  }
2432
2432
  }
@@ -2633,7 +2633,7 @@ var Vp = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u2
2633
2633
  } = r, {
2634
2634
  at: a = N0(e)
2635
2635
  } = r;
2636
- if (W.isPath(a) && (a = E.range(e, a)), ge.isRange(a))
2636
+ if (U.isPath(a) && (a = E.range(e, a)), ge.isRange(a))
2637
2637
  if (ge.isCollapsed(a))
2638
2638
  a = a.anchor;
2639
2639
  else {
@@ -2729,7 +2729,7 @@ var Zp = (e, t) => {
2729
2729
  for (var a of E.rangeRefs(e))
2730
2730
  cp.transform(a, t);
2731
2731
  if (!Xp(e)) {
2732
- var l = W.operationCanTransformPath(t) ? (c) => W.transform(c, t) : void 0;
2732
+ var l = U.operationCanTransformPath(t) ? (c) => U.transform(c, t) : void 0;
2733
2733
  nf(e, e.getDirtyPaths(t), l);
2734
2734
  }
2735
2735
  Oe.transform(e, t), e.operations.push(t), E.normalize(e, {
@@ -2747,13 +2747,13 @@ var Zp = (e, t) => {
2747
2747
  var {
2748
2748
  path: r
2749
2749
  } = t;
2750
- return W.levels(r);
2750
+ return U.levels(r);
2751
2751
  }
2752
2752
  case "insert_node": {
2753
2753
  var {
2754
2754
  node: n,
2755
2755
  path: a
2756
- } = t, l = W.levels(a), c = Ke.isText(n) ? [] : Array.from($e.nodes(n), (oe) => {
2756
+ } = t, l = U.levels(a), c = Ke.isText(n) ? [] : Array.from($e.nodes(n), (oe) => {
2757
2757
  var [, he] = oe;
2758
2758
  return a.concat(he);
2759
2759
  });
@@ -2762,7 +2762,7 @@ var Zp = (e, t) => {
2762
2762
  case "merge_node": {
2763
2763
  var {
2764
2764
  path: d
2765
- } = t, m = W.ancestors(d), p = W.previous(d);
2765
+ } = t, m = U.ancestors(d), p = U.previous(d);
2766
2766
  return [...m, p];
2767
2767
  }
2768
2768
  case "move_node": {
@@ -2770,15 +2770,15 @@ var Zp = (e, t) => {
2770
2770
  path: y,
2771
2771
  newPath: C
2772
2772
  } = t;
2773
- if (W.equals(y, C))
2773
+ if (U.equals(y, C))
2774
2774
  return [];
2775
2775
  var A = [], T = [];
2776
- for (var N of W.ancestors(y)) {
2777
- var O = W.transform(N, t);
2776
+ for (var N of U.ancestors(y)) {
2777
+ var O = U.transform(N, t);
2778
2778
  A.push(O);
2779
2779
  }
2780
- for (var g of W.ancestors(C)) {
2781
- var I = W.transform(g, t);
2780
+ for (var g of U.ancestors(C)) {
2781
+ var I = U.transform(g, t);
2782
2782
  T.push(I);
2783
2783
  }
2784
2784
  var q = T[T.length - 1], H = C[C.length - 1], L = q.concat(H);
@@ -2787,13 +2787,13 @@ var Zp = (e, t) => {
2787
2787
  case "remove_node": {
2788
2788
  var {
2789
2789
  path: z
2790
- } = t, V = W.ancestors(z);
2790
+ } = t, V = U.ancestors(z);
2791
2791
  return [...V];
2792
2792
  }
2793
2793
  case "split_node": {
2794
2794
  var {
2795
2795
  path: G
2796
- } = t, ve = W.levels(G), xe = W.next(G);
2796
+ } = t, ve = U.levels(G), xe = U.next(G);
2797
2797
  return [...ve, xe];
2798
2798
  }
2799
2799
  default:
@@ -2892,9 +2892,9 @@ var Zp = (e, t) => {
2892
2892
  }))
2893
2893
  if (!Ke.isText(p)) {
2894
2894
  if (ge.isRange(l)) {
2895
- if (W.isAncestor(y, l.anchor.path) && W.isAncestor(y, l.focus.path))
2895
+ if (U.isAncestor(y, l.anchor.path) && U.isAncestor(y, l.focus.path))
2896
2896
  return [p, y];
2897
- } else if (!W.equals(d, y))
2897
+ } else if (!U.equals(d, y))
2898
2898
  return [p, y];
2899
2899
  }
2900
2900
  }
@@ -3262,7 +3262,7 @@ var Rm = ["text"], jm = ["text"], Pm = function(t) {
3262
3262
  });
3263
3263
  if (T && O) {
3264
3264
  var [g, I] = T, [, q] = O;
3265
- W.isAncestor(q, I) && (A = g);
3265
+ U.isAncestor(q, I) && (A = g);
3266
3266
  }
3267
3267
  }
3268
3268
  }
@@ -3282,10 +3282,10 @@ var Rm = ["text"], jm = ["text"], Pm = function(t) {
3282
3282
  });
3283
3283
  if (d) {
3284
3284
  var [, m] = E.last(t, []), p = [d.path, m];
3285
- if (W.isPath(c) && c.length === 0)
3285
+ if (U.isPath(c) && c.length === 0)
3286
3286
  throw new Error("Cannot get the next node from the root node!");
3287
3287
  if (l == null)
3288
- if (W.isPath(c)) {
3288
+ if (U.isPath(c)) {
3289
3289
  var [y] = E.parent(t, c);
3290
3290
  l = (A) => y.children.includes(A);
3291
3291
  } else
@@ -3339,7 +3339,7 @@ function Im(e) {
3339
3339
  }), N = [], O;
3340
3340
  for (var [g, I] of T)
3341
3341
  if (!(d && Ze.isElement(g) && !E.isSelectable(e, g))) {
3342
- var q = O && W.compare(I, O[1]) === 0;
3342
+ var q = O && U.compare(I, O[1]) === 0;
3343
3343
  if (!(n === "highest" && q)) {
3344
3344
  if (!m(g, I)) {
3345
3345
  if (a && !q && Ke.isText(g))
@@ -3402,7 +3402,7 @@ var Lm = function(t) {
3402
3402
  });
3403
3403
  }
3404
3404
  }, _m = function(t, r) {
3405
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = E.path(t, r, n), l = W.parent(a), c = E.node(t, l);
3405
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = E.path(t, r, n), l = U.parent(a), c = E.node(t, l);
3406
3406
  return c;
3407
3407
  }, qm = function(t, r) {
3408
3408
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
@@ -3426,7 +3426,7 @@ var Lm = function(t) {
3426
3426
  depth: a,
3427
3427
  edge: l
3428
3428
  } = n;
3429
- if (W.isPath(r)) {
3429
+ if (U.isPath(r)) {
3430
3430
  if (l === "start") {
3431
3431
  var [, c] = $e.first(t, r);
3432
3432
  r = c;
@@ -3435,7 +3435,7 @@ var Lm = function(t) {
3435
3435
  r = d;
3436
3436
  }
3437
3437
  }
3438
- return ge.isRange(r) && (l === "start" ? r = ge.start(r) : l === "end" ? r = ge.end(r) : r = W.common(r.anchor.path, r.focus.path)), yt.isPoint(r) && (r = r.path), a != null && (r = r.slice(0, a)), r;
3438
+ return ge.isRange(r) && (l === "start" ? r = ge.start(r) : l === "end" ? r = ge.end(r) : r = U.common(r.anchor.path, r.focus.path)), yt.isPoint(r) && (r = r.path), a != null && (r = r.slice(0, a)), r;
3439
3439
  }, Um = function(t, r) {
3440
3440
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
3441
3441
  affinity: a = "forward"
@@ -3457,7 +3457,7 @@ var Lm = function(t) {
3457
3457
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
3458
3458
  edge: a = "start"
3459
3459
  } = n;
3460
- if (W.isPath(r)) {
3460
+ if (U.isPath(r)) {
3461
3461
  var l;
3462
3462
  if (a === "end") {
3463
3463
  var [, c] = $e.last(t, r);
@@ -3506,7 +3506,7 @@ function Ym(e) {
3506
3506
  }
3507
3507
  if (e.isInline(g)) continue;
3508
3508
  if (E.hasInlines(e, g)) {
3509
- var q = W.isAncestor(I, p.path) ? p : E.end(e, I), H = W.isAncestor(I, m.path) ? m : E.start(e, I);
3509
+ var q = U.isAncestor(I, p.path) ? p : E.end(e, I), H = U.isAncestor(I, m.path) ? m : E.start(e, I);
3510
3510
  A = E.string(e, {
3511
3511
  anchor: H,
3512
3512
  focus: q
@@ -3516,7 +3516,7 @@ function Ym(e) {
3516
3516
  }
3517
3517
  }
3518
3518
  if (Ke.isText(g)) {
3519
- var L = W.equals(I, y.path);
3519
+ var L = U.equals(I, y.path);
3520
3520
  for (L ? (N = a ? y.offset : g.text.length - y.offset, O = y.offset) : (N = g.text.length, O = a ? N : 0), (L || C || n === "offset") && (yield {
3521
3521
  path: I,
3522
3522
  offset: O
@@ -3555,10 +3555,10 @@ var Km = function(t) {
3555
3555
  });
3556
3556
  if (d) {
3557
3557
  var [, m] = E.first(t, []), p = [d.path, m];
3558
- if (W.isPath(c) && c.length === 0)
3558
+ if (U.isPath(c) && c.length === 0)
3559
3559
  throw new Error("Cannot get the previous node from the root node!");
3560
3560
  if (l == null)
3561
- if (W.isPath(c)) {
3561
+ if (U.isPath(c)) {
3562
3562
  var [y] = E.parent(t, c);
3563
3563
  l = (A) => y.children.includes(A);
3564
3564
  } else
@@ -3663,14 +3663,14 @@ var e4 = (e, t) => {
3663
3663
  voids: a
3664
3664
  })) {
3665
3665
  var C = p.text;
3666
- W.equals(y, d.path) && (C = C.slice(0, d.offset)), W.equals(y, c.path) && (C = C.slice(c.offset)), m += C;
3666
+ U.equals(y, d.path) && (C = C.slice(0, d.offset)), U.equals(y, c.path) && (C = C.slice(c.offset)), m += C;
3667
3667
  }
3668
3668
  return m;
3669
3669
  }, a4 = function(t, r) {
3670
3670
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
3671
3671
  voids: a = !1
3672
3672
  } = n, [l, c] = ge.edges(r);
3673
- if (l.offset !== 0 || c.offset !== 0 || ge.isCollapsed(r) || W.hasPrevious(c.path))
3673
+ if (l.offset !== 0 || c.offset !== 0 || ge.isCollapsed(r) || U.hasPrevious(c.path))
3674
3674
  return r;
3675
3675
  var d = E.above(t, {
3676
3676
  at: c,
@@ -3690,7 +3690,7 @@ var e4 = (e, t) => {
3690
3690
  C = !1;
3691
3691
  continue;
3692
3692
  }
3693
- if (A.text !== "" || W.isBefore(T, m)) {
3693
+ if (A.text !== "" || U.isBefore(T, m)) {
3694
3694
  c = {
3695
3695
  path: T,
3696
3696
  offset: A.text.length
@@ -3747,7 +3747,7 @@ var e4 = (e, t) => {
3747
3747
  }, y = !0;
3748
3748
  }
3749
3749
  }
3750
- if (W.isPath(p)) {
3750
+ if (U.isPath(p)) {
3751
3751
  Oe.removeNodes(t, {
3752
3752
  at: p,
3753
3753
  voids: m
@@ -3769,7 +3769,7 @@ var e4 = (e, t) => {
3769
3769
  match: (K) => Ze.isElement(K) && E.isBlock(t, K),
3770
3770
  at: H,
3771
3771
  voids: m
3772
- }), V = L && z && !W.equals(L[1], z[1]), G = W.equals(q.path, H.path), ve = m ? null : (n = E.void(t, {
3772
+ }), V = L && z && !U.equals(L[1], z[1]), G = U.equals(q.path, H.path), ve = m ? null : (n = E.void(t, {
3773
3773
  at: q,
3774
3774
  mode: "highest"
3775
3775
  })) !== null && n !== void 0 ? n : E.elementReadOnly(t, {
@@ -3784,11 +3784,11 @@ var e4 = (e, t) => {
3784
3784
  });
3785
3785
  if (ve) {
3786
3786
  var oe = E.before(t, q);
3787
- oe && L && W.isAncestor(L[1], oe.path) && (q = oe);
3787
+ oe && L && U.isAncestor(L[1], oe.path) && (q = oe);
3788
3788
  }
3789
3789
  if (xe) {
3790
3790
  var he = E.after(t, H);
3791
- he && z && W.isAncestor(z[1], he.path) && (H = he);
3791
+ he && z && U.isAncestor(z[1], he.path) && (H = he);
3792
3792
  }
3793
3793
  var ee = [], R;
3794
3794
  for (var J of E.nodes(t, {
@@ -3796,7 +3796,7 @@ var e4 = (e, t) => {
3796
3796
  voids: m
3797
3797
  })) {
3798
3798
  var [Y, le] = J;
3799
- R && W.compare(le, R) === 0 || (!m && Ze.isElement(Y) && (E.isVoid(t, Y) || E.isElementReadOnly(t, Y)) || !W.isCommon(le, q.path) && !W.isCommon(le, H.path)) && (ee.push(J), R = le);
3799
+ R && U.compare(le, R) === 0 || (!m && Ze.isElement(Y) && (E.isVoid(t, Y) || E.isElementReadOnly(t, Y)) || !U.isCommon(le, q.path) && !U.isCommon(le, H.path)) && (ee.push(J), R = le);
3800
3800
  }
3801
3801
  var ne = Array.from(ee, (K) => {
3802
3802
  var [, je] = K;
@@ -3819,9 +3819,9 @@ var e4 = (e, t) => {
3819
3819
  at: K,
3820
3820
  voids: m
3821
3821
  })), !xe) {
3822
- var P = pe.current, [U] = E.leaf(t, P), {
3822
+ var P = pe.current, [W] = E.leaf(t, P), {
3823
3823
  path: re
3824
- } = P, Q = G ? q.offset : 0, ue = U.text.slice(Q, H.offset);
3824
+ } = P, Q = G ? q.offset : 0, ue = W.text.slice(Q, H.offset);
3825
3825
  ue.length > 0 && (t.apply({
3826
3826
  type: "remove_text",
3827
3827
  path: re,
@@ -3866,7 +3866,7 @@ var e4 = (e, t) => {
3866
3866
  at: c
3867
3867
  }), c = p.unref();
3868
3868
  }
3869
- else W.isPath(c) && (c = E.start(t, c));
3869
+ else U.isPath(c) && (c = E.start(t, c));
3870
3870
  if (!(!l && E.void(t, {
3871
3871
  at: c
3872
3872
  }))) {
@@ -3895,8 +3895,8 @@ var e4 = (e, t) => {
3895
3895
  }, []), [, V] = $e.last({
3896
3896
  children: r
3897
3897
  }, []), G = [], ve = (me) => {
3898
- var [P, U] = me, re = U.length === 0;
3899
- return re ? !1 : q ? !0 : !(H && W.isAncestor(U, z) && Ze.isElement(P) && !t.isVoid(P) && !t.isInline(P) || L && W.isAncestor(U, V) && Ze.isElement(P) && !t.isVoid(P) && !t.isInline(P));
3898
+ var [P, W] = me, re = W.length === 0;
3899
+ return re ? !1 : q ? !0 : !(H && U.isAncestor(W, z) && Ze.isElement(P) && !t.isVoid(P) && !t.isInline(P) || L && U.isAncestor(W, V) && Ze.isElement(P) && !t.isVoid(P) && !t.isInline(P));
3900
3900
  };
3901
3901
  for (var xe of $e.nodes({
3902
3902
  children: r
@@ -3912,7 +3912,7 @@ var e4 = (e, t) => {
3912
3912
  match: (me) => Ke.isText(me) || E.isInline(t, me),
3913
3913
  mode: "highest",
3914
3914
  voids: l
3915
- }), [, ne] = le, ye = E.isStart(t, c, ne), pe = E.isEnd(t, c, ne), $ = E.pathRef(t, I && !ee.length ? W.next(O) : O), de = E.pathRef(t, pe ? W.next(ne) : ne);
3915
+ }), [, ne] = le, ye = E.isStart(t, c, ne), pe = E.isEnd(t, c, ne), $ = E.pathRef(t, I && !ee.length ? U.next(O) : O), de = E.pathRef(t, pe ? U.next(ne) : ne);
3916
3916
  Oe.splitNodes(t, {
3917
3917
  at: c,
3918
3918
  match: (me) => J ? Ze.isElement(me) && E.isBlock(t, me) : Ke.isText(me) || E.isInline(t, me),
@@ -3920,7 +3920,7 @@ var e4 = (e, t) => {
3920
3920
  always: J && (!g || oe.length > 0) && (!I || ee.length > 0),
3921
3921
  voids: l
3922
3922
  });
3923
- var Ae = E.pathRef(t, !ye || ye && pe ? W.next(ne) : ne);
3923
+ var Ae = E.pathRef(t, !ye || ye && pe ? U.next(ne) : ne);
3924
3924
  if (Oe.insertNodes(t, oe, {
3925
3925
  at: Ae.current,
3926
3926
  match: (me) => Ke.isText(me) || E.isInline(t, me),
@@ -3944,7 +3944,7 @@ var e4 = (e, t) => {
3944
3944
  batchDirty: d
3945
3945
  }), !n.at) {
3946
3946
  var Ee;
3947
- if (ee.length > 0 && de.current ? Ee = W.previous(de.current) : he.length > 0 && $.current ? Ee = W.previous($.current) : Ae.current && (Ee = W.previous(Ae.current)), Ee) {
3947
+ if (ee.length > 0 && de.current ? Ee = U.previous(de.current) : he.length > 0 && $.current ? Ee = U.previous($.current) : Ae.current && (Ee = U.previous(Ae.current)), Ee) {
3948
3948
  var ie = E.end(t, Ee);
3949
3949
  Oe.select(t, ie);
3950
3950
  }
@@ -4120,16 +4120,16 @@ var h4 = function(t, r) {
4120
4120
  voids: l
4121
4121
  });
4122
4122
  var q = g.unref();
4123
- m = I ? W.next(q) : q;
4123
+ m = I ? U.next(q) : q;
4124
4124
  } else
4125
4125
  return;
4126
4126
  }
4127
- var H = W.parent(m), L = m[m.length - 1];
4127
+ var H = U.parent(m), L = m[m.length - 1];
4128
4128
  if (!(!l && E.void(t, {
4129
4129
  at: H
4130
4130
  }))) {
4131
4131
  if (d) {
4132
- var z = [], V = W.levels(H);
4132
+ var z = [], V = U.levels(H);
4133
4133
  Jp(t, () => {
4134
4134
  var oe = function() {
4135
4135
  var R = H.concat(L);
@@ -4139,7 +4139,7 @@ var h4 = function(t, r) {
4139
4139
  path: R,
4140
4140
  node: he
4141
4141
  };
4142
- t.apply(J), m = W.next(m), z.push(J), Ke.isText ? V.push(...Array.from($e.nodes(he), (Y) => {
4142
+ t.apply(J), m = U.next(m), z.push(J), Ke.isText ? V.push(...Array.from($e.nodes(he), (Y) => {
4143
4143
  var [, le] = Y;
4144
4144
  return R.concat(le);
4145
4145
  })) : V.push(R);
@@ -4150,7 +4150,7 @@ var h4 = function(t, r) {
4150
4150
  nf(t, V, (oe) => {
4151
4151
  var he = oe;
4152
4152
  for (var ee of z)
4153
- if (W.operationCanTransformPath(ee) && (he = W.transform(he, ee), !he))
4153
+ if (U.operationCanTransformPath(ee) && (he = U.transform(he, ee), !he))
4154
4154
  return null;
4155
4155
  return he;
4156
4156
  });
@@ -4162,9 +4162,9 @@ var h4 = function(t, r) {
4162
4162
  type: "insert_node",
4163
4163
  path: ve,
4164
4164
  node: G
4165
- }), m = W.next(m);
4165
+ }), m = U.next(m);
4166
4166
  }
4167
- if (m = W.previous(m), y) {
4167
+ if (m = U.previous(m), y) {
4168
4168
  var xe = E.end(t, m);
4169
4169
  xe && Oe.select(t, xe);
4170
4170
  }
@@ -4181,7 +4181,7 @@ var h4 = function(t, r) {
4181
4181
  } = r, {
4182
4182
  match: c
4183
4183
  } = r;
4184
- if (c == null && (c = W.isPath(n) ? Ca(t, n) : (L) => Ze.isElement(L) && E.isBlock(t, L)), !!n) {
4184
+ if (c == null && (c = U.isPath(n) ? Ca(t, n) : (L) => Ze.isElement(L) && E.isBlock(t, L)), !!n) {
4185
4185
  var d = E.nodes(t, {
4186
4186
  at: n,
4187
4187
  match: c,
@@ -4195,11 +4195,11 @@ var h4 = function(t, r) {
4195
4195
  var y = p.unref();
4196
4196
  if (y.length < 2)
4197
4197
  throw new Error("Cannot lift node at a path [".concat(y, "] because it has a depth of less than `2`."));
4198
- var C = E.node(t, W.parent(y)), [A, T] = C, N = y[y.length - 1], {
4198
+ var C = E.node(t, U.parent(y)), [A, T] = C, N = y[y.length - 1], {
4199
4199
  length: O
4200
4200
  } = A.children;
4201
4201
  if (O === 1) {
4202
- var g = W.next(T);
4202
+ var g = U.next(T);
4203
4203
  Oe.moveNodes(t, {
4204
4204
  at: y,
4205
4205
  to: g,
@@ -4215,14 +4215,14 @@ var h4 = function(t, r) {
4215
4215
  voids: l
4216
4216
  });
4217
4217
  else if (N === O - 1) {
4218
- var I = W.next(T);
4218
+ var I = U.next(T);
4219
4219
  Oe.moveNodes(t, {
4220
4220
  at: y,
4221
4221
  to: I,
4222
4222
  voids: l
4223
4223
  });
4224
4224
  } else {
4225
- var q = W.next(y), H = W.next(T);
4225
+ var q = U.next(y), H = U.next(T);
4226
4226
  Oe.splitNodes(t, {
4227
4227
  at: q,
4228
4228
  voids: l
@@ -4253,7 +4253,7 @@ var h4 = function(t, r) {
4253
4253
  } = r;
4254
4254
  if (a) {
4255
4255
  if (n == null)
4256
- if (W.isPath(a)) {
4256
+ if (U.isPath(a)) {
4257
4257
  var [m] = E.parent(t, a);
4258
4258
  n = (oe) => m.children.includes(oe);
4259
4259
  } else
@@ -4283,7 +4283,7 @@ var h4 = function(t, r) {
4283
4283
  if (!(!C || !A)) {
4284
4284
  var [T, N] = C, [O, g] = A;
4285
4285
  if (!(N.length === 0 || g.length === 0)) {
4286
- var I = W.next(g), q = W.common(N, g), H = W.isSibling(N, g), L = Array.from(E.levels(t, {
4286
+ var I = U.next(g), q = U.common(N, g), H = U.isSibling(N, g), L = Array.from(E.levels(t, {
4287
4287
  at: N
4288
4288
  }), (oe) => {
4289
4289
  var [he] = oe;
@@ -4332,7 +4332,7 @@ var h4 = function(t, r) {
4332
4332
  match: c
4333
4333
  } = t;
4334
4334
  if (n) {
4335
- c == null && (c = W.isPath(n) ? Ca(e, n) : (T) => Ze.isElement(T) && E.isBlock(e, T));
4335
+ c == null && (c = U.isPath(n) ? Ca(e, n) : (T) => Ze.isElement(T) && E.isBlock(e, T));
4336
4336
  var d = E.pathRef(e, r), m = E.nodes(e, {
4337
4337
  at: n,
4338
4338
  match: c,
@@ -4348,7 +4348,7 @@ var h4 = function(t, r) {
4348
4348
  type: "move_node",
4349
4349
  path: C,
4350
4350
  newPath: A
4351
- }), d.current && W.isSibling(A, C) && W.isAfter(A, C) && (d.current = W.next(d.current));
4351
+ }), d.current && U.isSibling(A, C) && U.isAfter(A, C) && (d.current = U.next(d.current));
4352
4352
  }
4353
4353
  d.unref();
4354
4354
  }
@@ -4365,7 +4365,7 @@ var h4 = function(t, r) {
4365
4365
  match: d
4366
4366
  } = r;
4367
4367
  if (c) {
4368
- d == null && (d = W.isPath(c) ? Ca(t, c) : (T) => Ze.isElement(T) && E.isBlock(t, T)), !n && ge.isRange(c) && (c = E.unhangRange(t, c, {
4368
+ d == null && (d = U.isPath(c) ? Ca(t, c) : (T) => Ze.isElement(T) && E.isBlock(t, T)), !n && ge.isRange(c) && (c = E.unhangRange(t, c, {
4369
4369
  voids: a
4370
4370
  }));
4371
4371
  var m = E.nodes(t, {
@@ -4405,7 +4405,7 @@ var h4 = function(t, r) {
4405
4405
  voids: C = !1
4406
4406
  } = n;
4407
4407
  if (l) {
4408
- if (a == null && (a = W.isPath(l) ? Ca(t, l) : (ve) => Ze.isElement(ve) && E.isBlock(t, ve)), !m && ge.isRange(l) && (l = E.unhangRange(t, l, {
4408
+ if (a == null && (a = U.isPath(l) ? Ca(t, l) : (ve) => Ze.isElement(ve) && E.isBlock(t, ve)), !m && ge.isRange(l) && (l = E.unhangRange(t, l, {
4409
4409
  voids: C
4410
4410
  })), y && ge.isRange(l)) {
4411
4411
  if (ge.isCollapsed(l) && E.leaf(t, l.anchor)[0].text.length > 0)
@@ -4470,7 +4470,7 @@ var h4 = function(t, r) {
4470
4470
  height: d = 0,
4471
4471
  always: m = !1
4472
4472
  } = r;
4473
- if (l == null && (l = (pe) => Ze.isElement(pe) && E.isBlock(t, pe)), ge.isRange(c) && (c = C4(t, c)), W.isPath(c)) {
4473
+ if (l == null && (l = (pe) => Ze.isElement(pe) && E.isBlock(t, pe)), ge.isRange(c) && (c = C4(t, c)), U.isPath(c)) {
4474
4474
  var p = c, y = E.point(t, p), [C] = E.parent(t, p);
4475
4475
  l = (pe) => pe === C, d = y.path.length - p.length + 1, c = y, m = !0;
4476
4476
  }
@@ -4498,7 +4498,7 @@ var h4 = function(t, r) {
4498
4498
  if (!H) {
4499
4499
  var L = {
4500
4500
  text: ""
4501
- }, z = W.next(q);
4501
+ }, z = U.next(q);
4502
4502
  Oe.insertNodes(t, L, {
4503
4503
  at: z,
4504
4504
  voids: a
@@ -4561,7 +4561,7 @@ var h4 = function(t, r) {
4561
4561
  match: d
4562
4562
  } = r;
4563
4563
  if (c) {
4564
- d == null && (d = W.isPath(c) ? Ca(t, c) : (T) => Ze.isElement(T) && E.isBlock(t, T)), W.isPath(c) && (c = E.range(t, c));
4564
+ d == null && (d = U.isPath(c) ? Ca(t, c) : (T) => Ze.isElement(T) && E.isBlock(t, T)), U.isPath(c) && (c = E.range(t, c));
4565
4565
  var m = ge.isRange(c) ? E.rangeRef(t, c) : null, p = E.nodes(t, {
4566
4566
  at: c,
4567
4567
  match: d,
@@ -4623,7 +4623,7 @@ var B4 = function(t, r) {
4623
4623
  at: m = t.selection
4624
4624
  } = n;
4625
4625
  if (m) {
4626
- if (d == null && (W.isPath(m) ? d = Ca(t, m) : t.isInline(r) ? d = (g) => Ze.isElement(g) && E.isInline(t, g) || Ke.isText(g) : d = (g) => Ze.isElement(g) && E.isBlock(t, g)), l && ge.isRange(m)) {
4626
+ if (d == null && (U.isPath(m) ? d = Ca(t, m) : t.isInline(r) ? d = (g) => Ze.isElement(g) && E.isInline(t, g) || Ke.isText(g) : d = (g) => Ze.isElement(g) && E.isBlock(t, g)), l && ge.isRange(m)) {
4627
4627
  var [p, y] = ge.edges(m), C = E.rangeRef(t, m, {
4628
4628
  affinity: "inward"
4629
4629
  });
@@ -4656,7 +4656,7 @@ var B4 = function(t, r) {
4656
4656
  var [H] = q, L = q[q.length - 1], [, z] = H, [, V] = L;
4657
4657
  if (z.length === 0 && V.length === 0)
4658
4658
  return 0;
4659
- var G = W.equals(z, V) ? W.parent(z) : W.common(z, V), ve = E.range(t, z, V), xe = E.node(t, G), [oe] = xe, he = G.length + 1, ee = W.next(V.slice(0, he)), R = oc(oc({}, r), {}, {
4659
+ var G = U.equals(z, V) ? U.parent(z) : U.common(z, V), ve = E.range(t, z, V), xe = E.node(t, G), [oe] = xe, he = G.length + 1, ee = U.next(V.slice(0, he)), R = oc(oc({}, r), {}, {
4660
4660
  children: []
4661
4661
  });
4662
4662
  Oe.insertNodes(t, R, {
@@ -5345,12 +5345,12 @@ const U4 = /* @__PURE__ */ bi(W4), kc = (e) => typeof e == "object" && e != null
5345
5345
  for (let le = 0; le < T.length; le++) {
5346
5346
  const ne = T[le], { height: ye, width: pe, top: $, right: de, bottom: Ae, left: Ee } = ne.getBoundingClientRect();
5347
5347
  if (c === "if-needed" && z >= 0 && ve >= 0 && G <= g && V <= O && (ne === A && !Es(ne) || z >= $ && G <= Ae && ve >= Ee && V <= de)) return Y;
5348
- const ie = getComputedStyle(ne), me = parseInt(ie.borderLeftWidth, 10), P = parseInt(ie.borderTopWidth, 10), U = parseInt(ie.borderRightWidth, 10), re = parseInt(ie.borderBottomWidth, 10);
5348
+ const ie = getComputedStyle(ne), me = parseInt(ie.borderLeftWidth, 10), P = parseInt(ie.borderTopWidth, 10), W = parseInt(ie.borderRightWidth, 10), re = parseInt(ie.borderBottomWidth, 10);
5349
5349
  let Q = 0, ue = 0;
5350
- const Be = "offsetWidth" in ne ? ne.offsetWidth - ne.clientWidth - me - U : 0, Le = "offsetHeight" in ne ? ne.offsetHeight - ne.clientHeight - P - re : 0, Je = "offsetWidth" in ne ? ne.offsetWidth === 0 ? 0 : pe / ne.offsetWidth : 0, K = "offsetHeight" in ne ? ne.offsetHeight === 0 ? 0 : ye / ne.offsetHeight : 0;
5351
- if (A === ne) Q = d === "start" ? R : d === "end" ? R - g : d === "nearest" ? Bs(q, q + g, g, P, re, q + R, q + R + H, H) : R - g / 2, ue = m === "start" ? J : m === "center" ? J - O / 2 : m === "end" ? J - O : Bs(I, I + O, O, me, U, I + J, I + J + L, L), Q = Math.max(0, Q + q), ue = Math.max(0, ue + I);
5350
+ const Be = "offsetWidth" in ne ? ne.offsetWidth - ne.clientWidth - me - W : 0, Le = "offsetHeight" in ne ? ne.offsetHeight - ne.clientHeight - P - re : 0, Je = "offsetWidth" in ne ? ne.offsetWidth === 0 ? 0 : pe / ne.offsetWidth : 0, K = "offsetHeight" in ne ? ne.offsetHeight === 0 ? 0 : ye / ne.offsetHeight : 0;
5351
+ if (A === ne) Q = d === "start" ? R : d === "end" ? R - g : d === "nearest" ? Bs(q, q + g, g, P, re, q + R, q + R + H, H) : R - g / 2, ue = m === "start" ? J : m === "center" ? J - O / 2 : m === "end" ? J - O : Bs(I, I + O, O, me, W, I + J, I + J + L, L), Q = Math.max(0, Q + q), ue = Math.max(0, ue + I);
5352
5352
  else {
5353
- Q = d === "start" ? R - $ - P : d === "end" ? R - Ae + re + Le : d === "nearest" ? Bs($, Ae, ye, P, re + Le, R, R + H, H) : R - ($ + ye / 2) + Le / 2, ue = m === "start" ? J - Ee - me : m === "center" ? J - (Ee + pe / 2) + Be / 2 : m === "end" ? J - de + U + Be : Bs(Ee, de, pe, me, U + Be, J, J + L, L);
5353
+ Q = d === "start" ? R - $ - P : d === "end" ? R - Ae + re + Le : d === "nearest" ? Bs($, Ae, ye, P, re + Le, R, R + H, H) : R - ($ + ye / 2) + Le / 2, ue = m === "start" ? J - Ee - me : m === "center" ? J - (Ee + pe / 2) + Be / 2 : m === "end" ? J - de + W + Be : Bs(Ee, de, pe, me, W + Be, J, J + L, L);
5354
5354
  const { scrollLeft: je, scrollTop: Ie } = ne;
5355
5355
  Q = K === 0 ? 0 : Math.max(0, Math.min(Ie + Q / K, ne.scrollHeight - ye / K + Le)), ue = Je === 0 ? 0 : Math.max(0, Math.min(je + ue / Je, ne.scrollWidth - pe / Je + Be)), R += Ie - Q, J += je - ue;
5356
5356
  }
@@ -6306,7 +6306,7 @@ function $g(e, t) {
6306
6306
  return !1;
6307
6307
  if (n.start !== a.text.length || n.text.length === 0)
6308
6308
  return a.text.slice(n.start, n.start + n.text.length) === n.text;
6309
- var l = W.next(r);
6309
+ var l = U.next(r);
6310
6310
  if (!E.hasPath(e, l))
6311
6311
  return !1;
6312
6312
  var c = $e.get(e, l);
@@ -6386,7 +6386,7 @@ function h0(e, t) {
6386
6386
  at: r,
6387
6387
  match: Ke.isText
6388
6388
  });
6389
- if (!c || !W.isDescendant(c[1], l[1]))
6389
+ if (!c || !U.isDescendant(c[1], l[1]))
6390
6390
  return null;
6391
6391
  n -= a.text.length, a = c[0], r = c[1];
6392
6392
  }
@@ -6415,7 +6415,7 @@ function p0(e, t, r) {
6415
6415
  var {
6416
6416
  path: C
6417
6417
  } = y;
6418
- return W.equals(C, t.path);
6418
+ return U.equals(C, t.path);
6419
6419
  });
6420
6420
  if (!a || t.offset <= a.diff.start)
6421
6421
  return yt.transform(t, r, {
@@ -6442,7 +6442,7 @@ function p0(e, t, r) {
6442
6442
  }, p = yt.transform(m, r, {
6443
6443
  affinity: "backward"
6444
6444
  });
6445
- return p ? r.type === "split_node" && W.equals(r.path, t.path) && m.offset < r.position && l.start < r.position ? p : {
6445
+ return p ? r.type === "split_node" && U.equals(r.path, t.path) && m.offset < r.position && l.start < r.position ? p : {
6446
6446
  path: p.path,
6447
6447
  offset: p.offset + l.text.length - l.end + l.start
6448
6448
  } : null;
@@ -6470,7 +6470,7 @@ function Hg(e, t) {
6470
6470
  } = e;
6471
6471
  switch (t.type) {
6472
6472
  case "insert_text":
6473
- return !W.equals(t.path, r) || t.offset >= n.end ? e : t.offset <= n.start ? {
6473
+ return !U.equals(t.path, r) || t.offset >= n.end ? e : t.offset <= n.start ? {
6474
6474
  diff: {
6475
6475
  start: t.text.length + n.start,
6476
6476
  end: t.text.length + n.end,
@@ -6488,7 +6488,7 @@ function Hg(e, t) {
6488
6488
  path: r
6489
6489
  };
6490
6490
  case "remove_text":
6491
- return !W.equals(t.path, r) || t.offset >= n.end ? e : t.offset + t.text.length <= n.start ? {
6491
+ return !U.equals(t.path, r) || t.offset >= n.end ? e : t.offset + t.text.length <= n.start ? {
6492
6492
  diff: {
6493
6493
  start: n.start - t.text.length,
6494
6494
  end: n.end - t.text.length,
@@ -6506,10 +6506,10 @@ function Hg(e, t) {
6506
6506
  path: r
6507
6507
  };
6508
6508
  case "split_node":
6509
- return !W.equals(t.path, r) || t.position >= n.end ? {
6509
+ return !U.equals(t.path, r) || t.position >= n.end ? {
6510
6510
  diff: n,
6511
6511
  id: a,
6512
- path: W.transform(r, t, {
6512
+ path: U.transform(r, t, {
6513
6513
  affinity: "backward"
6514
6514
  })
6515
6515
  } : t.position > n.start ? {
@@ -6527,26 +6527,26 @@ function Hg(e, t) {
6527
6527
  text: n.text
6528
6528
  },
6529
6529
  id: a,
6530
- path: W.transform(r, t, {
6530
+ path: U.transform(r, t, {
6531
6531
  affinity: "forward"
6532
6532
  })
6533
6533
  };
6534
6534
  case "merge_node":
6535
- return W.equals(t.path, r) ? {
6535
+ return U.equals(t.path, r) ? {
6536
6536
  diff: {
6537
6537
  start: n.start + t.position,
6538
6538
  end: n.end + t.position,
6539
6539
  text: n.text
6540
6540
  },
6541
6541
  id: a,
6542
- path: W.transform(r, t)
6542
+ path: U.transform(r, t)
6543
6543
  } : {
6544
6544
  diff: n,
6545
6545
  id: a,
6546
- path: W.transform(r, t)
6546
+ path: U.transform(r, t)
6547
6547
  };
6548
6548
  }
6549
- var l = W.transform(r, t);
6549
+ var l = U.transform(r, t);
6550
6550
  return l ? {
6551
6551
  diff: n,
6552
6552
  path: l,
@@ -6648,7 +6648,7 @@ function Yg(e) {
6648
6648
  }, g = (ee, R) => {
6649
6649
  var J, Y = (J = Nr.get(t)) !== null && J !== void 0 ? J : [];
6650
6650
  Nr.set(t, Y);
6651
- var le = $e.leaf(t, ee), ne = Y.findIndex(($) => W.equals($.path, ee));
6651
+ var le = $e.leaf(t, ee), ne = Y.findIndex(($) => U.equals($.path, ee));
6652
6652
  if (ne < 0) {
6653
6653
  var ye = Bf(le.text, R);
6654
6654
  ye && Y.push({
@@ -6700,26 +6700,26 @@ function Yg(e) {
6700
6700
  at: de.path,
6701
6701
  match: Ke.isText
6702
6702
  });
6703
- ie && W.equals(ie[1], Ae.path) && (Y = {
6703
+ ie && U.equals(ie[1], Ae.path) && (Y = {
6704
6704
  anchor: Ae,
6705
6705
  focus: Ae
6706
6706
  });
6707
6707
  }
6708
6708
  }
6709
- var me = J.endsWith("Backward") ? "backward" : "forward", [P, U] = ge.edges(Y), [re, Q] = E.leaf(t, P.path), ue = {
6709
+ var me = J.endsWith("Backward") ? "backward" : "forward", [P, W] = ge.edges(Y), [re, Q] = E.leaf(t, P.path), ue = {
6710
6710
  text: "",
6711
6711
  start: P.offset,
6712
- end: U.offset
6713
- }, Be = Nr.get(t), Le = Be?.find((ot) => W.equals(ot.path, Q)), Je = Le ? [Le.diff, ue] : [ue], K = Ef(re.text, ...Je);
6712
+ end: W.offset
6713
+ }, Be = Nr.get(t), Le = Be?.find((ot) => U.equals(ot.path, Q)), Je = Le ? [Le.diff, ue] : [ue], K = Ef(re.text, ...Je);
6714
6714
  if (K.length === 0 && ($ = !1), ge.isExpanded(Y)) {
6715
- if ($ && W.equals(Y.anchor.path, Y.focus.path)) {
6715
+ if ($ && U.equals(Y.anchor.path, Y.focus.path)) {
6716
6716
  var je = {
6717
6717
  path: Y.anchor.path,
6718
6718
  offset: P.offset
6719
6719
  }, Ie = E.range(t, je, je);
6720
6720
  return G(Ie), g(Y.anchor.path, {
6721
6721
  text: "",
6722
- end: U.offset,
6722
+ end: W.offset,
6723
6723
  start: P.offset
6724
6724
  });
6725
6725
  }
@@ -6845,7 +6845,7 @@ function Yg(e) {
6845
6845
  }, {
6846
6846
  at: Y
6847
6847
  });
6848
- if (W.equals(Y.anchor.path, Y.focus.path)) {
6848
+ if (U.equals(Y.anchor.path, Y.focus.path)) {
6849
6849
  var [mt, kt] = ge.edges(Y), ut = {
6850
6850
  start: mt.offset,
6851
6851
  end: kt.offset,
@@ -6878,7 +6878,7 @@ function Yg(e) {
6878
6878
  selection: R
6879
6879
  } = t;
6880
6880
  if (ee) {
6881
- var J = !R || !W.equals(R.anchor.path, ee.anchor.path), Y = !R || !W.equals(R.anchor.path.slice(0, -1), ee.anchor.path.slice(0, -1));
6881
+ var J = !R || !U.equals(R.anchor.path, ee.anchor.path), Y = !R || !U.equals(R.anchor.path.slice(0, -1), ee.anchor.path.slice(0, -1));
6882
6882
  (J && p || Y) && (p = !1), (J || L()) && (c = setTimeout(A, Ug));
6883
6883
  }
6884
6884
  }, ve = () => {
@@ -7011,7 +7011,7 @@ var o2 = (e) => {
7011
7011
  leaf: r,
7012
7012
  parent: n,
7013
7013
  text: a
7014
- } = e, l = Rn(), c = De.findPath(l, a), d = W.parent(c), m = !!r[wf];
7014
+ } = e, l = Rn(), c = De.findPath(l, a), d = U.parent(c), m = !!r[wf];
7015
7015
  return l.isVoid(n) ? /* @__PURE__ */ rt.createElement(Ro, {
7016
7016
  length: $e.string(n).length
7017
7017
  }) : r.text === "" && n.children[n.children.length - 1] === a && !l.isInline(n) && E.string(l, d) === "" ? /* @__PURE__ */ rt.createElement(Ro, {
@@ -7512,8 +7512,8 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7512
7512
  R();
7513
7513
  return;
7514
7514
  }
7515
- var P = De.toDOMNode(g, g), U = P.getRootNode();
7516
- if (!G.current && In && U instanceof ShadowRoot) {
7515
+ var P = De.toDOMNode(g, g), W = P.getRootNode();
7516
+ if (!G.current && In && W instanceof ShadowRoot) {
7517
7517
  G.current = !0;
7518
7518
  var re = Rg();
7519
7519
  re ? document.execCommand("indent") : Oe.deselect(g), G.current = !1;
@@ -7545,7 +7545,7 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7545
7545
  onDOMSelectionChange: R,
7546
7546
  scheduleOnDOMSelectionChange: J
7547
7547
  }), rs(() => {
7548
- var P, U, re;
7548
+ var P, W, re;
7549
7549
  H.current && (re = _0(H.current)) ? (yf.set(g, re), Ks.set(g, H.current), Un.set(g, H.current), ts.set(H.current, g)) : Un.delete(g);
7550
7550
  var {
7551
7551
  selection: Q
@@ -7587,7 +7587,7 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7587
7587
  }
7588
7588
  };
7589
7589
  Be.rangeCount <= 1 && Le();
7590
- var Je = ((U = ee.current) === null || U === void 0 ? void 0 : U.isFlushing()) === "action";
7590
+ var Je = ((W = ee.current) === null || W === void 0 ? void 0 : W.isFlushing()) === "action";
7591
7591
  if (!Ar || !Je) {
7592
7592
  setTimeout(() => {
7593
7593
  he.isUpdatingSelection = !1;
@@ -7614,7 +7614,7 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7614
7614
  }
7615
7615
  });
7616
7616
  var Y = ct((P) => {
7617
- var U = De.toDOMNode(g, g), re = U.getRootNode();
7617
+ var W = De.toDOMNode(g, g), re = W.getRootNode();
7618
7618
  if (G != null && G.current && In && re instanceof ShadowRoot) {
7619
7619
  var Q = P.getTargetRanges(), ue = Q[0], Be = new window.Range();
7620
7620
  Be.setStart(ue.startContainer, ue.startOffset), Be.setEnd(ue.endContainer, ue.endOffset);
@@ -7769,17 +7769,17 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7769
7769
  rs(() => {
7770
7770
  var P = De.getWindow(g);
7771
7771
  P.document.addEventListener("selectionchange", J);
7772
- var U = () => {
7772
+ var W = () => {
7773
7773
  he.isDraggingInternally = !1;
7774
7774
  };
7775
- return P.document.addEventListener("dragend", U), P.document.addEventListener("drop", U), () => {
7776
- P.document.removeEventListener("selectionchange", J), P.document.removeEventListener("dragend", U), P.document.removeEventListener("drop", U);
7775
+ return P.document.addEventListener("dragend", W), P.document.addEventListener("drop", W), () => {
7776
+ P.document.removeEventListener("selectionchange", J), P.document.removeEventListener("dragend", W), P.document.removeEventListener("drop", W);
7777
7777
  };
7778
7778
  }, [J, he]);
7779
7779
  var ne = a([g, []]), ye = c && g.children.length === 1 && Array.from($e.texts(g)).length === 1 && $e.string(g) === "" && !I, pe = ct((P) => {
7780
7780
  if (P && ye) {
7781
- var U;
7782
- V((U = P.getBoundingClientRect()) === null || U === void 0 ? void 0 : U.height);
7781
+ var W;
7782
+ V((W = P.getBoundingClientRect()) === null || W === void 0 ? void 0 : W.height);
7783
7783
  } else
7784
7784
  V(void 0);
7785
7785
  }, [ye]);
@@ -7820,8 +7820,8 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7820
7820
  } = g;
7821
7821
  if (P) {
7822
7822
  var {
7823
- anchor: U
7824
- } = P, re = $e.leaf(g, U.path);
7823
+ anchor: W
7824
+ } = P, re = $e.leaf(g, W.path);
7825
7825
  if (de && !Ke.equals(re, de, {
7826
7826
  loose: !0
7827
7827
  })) {
@@ -7874,8 +7874,8 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7874
7874
  } : {})), A),
7875
7875
  onBeforeInput: ct((P) => {
7876
7876
  if (!Bn && !d && !Cr(P, O.onBeforeInput) && De.hasSelectableTarget(g, P.target) && (P.preventDefault(), !De.isComposing(g))) {
7877
- var U = P.data;
7878
- E.insertText(g, U);
7877
+ var W = P.data;
7878
+ E.insertText(g, W);
7879
7879
  }
7880
7880
  }, [O.onBeforeInput, g, d]),
7881
7881
  onInput: ct((P) => {
@@ -7884,8 +7884,8 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7884
7884
  ee.current.handleInput();
7885
7885
  return;
7886
7886
  }
7887
- for (var U of L.current)
7888
- U();
7887
+ for (var W of L.current)
7888
+ W();
7889
7889
  if (L.current = [], !De.isFocused(g)) {
7890
7890
  var re = P.nativeEvent, Q = g;
7891
7891
  if (re.inputType === "historyUndo" && typeof Q.undo == "function") {
@@ -7901,8 +7901,8 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7901
7901
  }, [O.onInput, g]),
7902
7902
  onBlur: ct((P) => {
7903
7903
  if (!(d || he.isUpdatingSelection || !De.hasSelectableTarget(g, P.target) || Cr(P, O.onBlur))) {
7904
- var U = De.findDocumentOrShadowRoot(g);
7905
- if (he.latestElement !== U.activeElement) {
7904
+ var W = De.findDocumentOrShadowRoot(g);
7905
+ if (he.latestElement !== W.activeElement) {
7906
7906
  var {
7907
7907
  relatedTarget: re
7908
7908
  } = P, Q = De.toDOMNode(g, g);
@@ -7913,7 +7913,7 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7913
7913
  return;
7914
7914
  }
7915
7915
  if (In) {
7916
- var Be = Ua(U);
7916
+ var Be = Ua(W);
7917
7917
  Be?.removeAllRanges();
7918
7918
  }
7919
7919
  On.delete(g);
@@ -7923,12 +7923,12 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7923
7923
  }, [d, he.isUpdatingSelection, he.latestElement, g, O.onBlur]),
7924
7924
  onClick: ct((P) => {
7925
7925
  if (De.hasTarget(g, P.target) && !Cr(P, O.onClick) && Nn(P.target)) {
7926
- var U = De.toSlateNode(g, P.target), re = De.findPath(g, U);
7927
- if (!E.hasPath(g, re) || $e.get(g, re) !== U)
7926
+ var W = De.toSlateNode(g, P.target), re = De.findPath(g, W);
7927
+ if (!E.hasPath(g, re) || $e.get(g, re) !== W)
7928
7928
  return;
7929
7929
  if (P.detail === D2 && re.length >= 1) {
7930
7930
  var Q = re;
7931
- if (!(Ze.isElement(U) && E.isBlock(g, U))) {
7931
+ if (!(Ze.isElement(W) && E.isBlock(g, W))) {
7932
7932
  var ue, Be = E.above(g, {
7933
7933
  match: (at) => Ze.isElement(at) && E.isBlock(g, at),
7934
7934
  at: re
@@ -7946,7 +7946,7 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7946
7946
  }), Ie = E.void(g, {
7947
7947
  at: K
7948
7948
  });
7949
- if (je && Ie && W.equals(je[1], Ie[1])) {
7949
+ if (je && Ie && U.equals(je[1], Ie[1])) {
7950
7950
  var Ye = E.range(g, Je);
7951
7951
  Oe.select(g, Ye);
7952
7952
  }
@@ -7954,10 +7954,10 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7954
7954
  }, [g, O.onClick, d]),
7955
7955
  onCompositionEnd: ct((P) => {
7956
7956
  if (De.hasSelectableTarget(g, P.target)) {
7957
- var U;
7957
+ var W;
7958
7958
  if (De.isComposing(g) && Promise.resolve().then(() => {
7959
7959
  q(!1), _n.set(g, !1);
7960
- }), (U = ee.current) === null || U === void 0 || U.handleCompositionEnd(P), Cr(P, O.onCompositionEnd) || Ar)
7960
+ }), (W = ee.current) === null || W === void 0 || W.handleCompositionEnd(P), Cr(P, O.onCompositionEnd) || Ar)
7961
7961
  return;
7962
7962
  if (!In && !Cg && !vf && !Ag && !kg && P.data) {
7963
7963
  var re = Vr.get(g);
@@ -7972,8 +7972,8 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7972
7972
  }, [O.onCompositionUpdate, g]),
7973
7973
  onCompositionStart: ct((P) => {
7974
7974
  if (De.hasSelectableTarget(g, P.target)) {
7975
- var U;
7976
- if ((U = ee.current) === null || U === void 0 || U.handleCompositionStart(P), Cr(P, O.onCompositionStart) || Ar)
7975
+ var W;
7976
+ if ((W = ee.current) === null || W === void 0 || W.handleCompositionStart(P), Cr(P, O.onCompositionStart) || Ar)
7977
7977
  return;
7978
7978
  q(!0);
7979
7979
  var {
@@ -7992,26 +7992,26 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7992
7992
  if (!d && De.hasSelectableTarget(g, P.target) && !Cr(P, O.onCut) && !Kc(P)) {
7993
7993
  P.preventDefault(), De.setFragmentData(g, P.clipboardData, "cut");
7994
7994
  var {
7995
- selection: U
7995
+ selection: W
7996
7996
  } = g;
7997
- if (U)
7998
- if (ge.isExpanded(U))
7997
+ if (W)
7998
+ if (ge.isExpanded(W))
7999
7999
  E.deleteFragment(g);
8000
8000
  else {
8001
- var re = $e.parent(g, U.anchor.path);
8001
+ var re = $e.parent(g, W.anchor.path);
8002
8002
  E.isVoid(g, re) && Oe.delete(g);
8003
8003
  }
8004
8004
  }
8005
8005
  }, [d, g, O.onCut]),
8006
8006
  onDragOver: ct((P) => {
8007
8007
  if (De.hasTarget(g, P.target) && !Cr(P, O.onDragOver)) {
8008
- var U = De.toSlateNode(g, P.target);
8009
- Ze.isElement(U) && E.isVoid(g, U) && P.preventDefault();
8008
+ var W = De.toSlateNode(g, P.target);
8009
+ Ze.isElement(W) && E.isVoid(g, W) && P.preventDefault();
8010
8010
  }
8011
8011
  }, [O.onDragOver, g]),
8012
8012
  onDragStart: ct((P) => {
8013
8013
  if (!d && De.hasTarget(g, P.target) && !Cr(P, O.onDragStart)) {
8014
- var U = De.toSlateNode(g, P.target), re = De.findPath(g, U), Q = Ze.isElement(U) && E.isVoid(g, U) || E.void(g, {
8014
+ var W = De.toSlateNode(g, P.target), re = De.findPath(g, W), Q = Ze.isElement(W) && E.isVoid(g, W) || E.void(g, {
8015
8015
  at: re,
8016
8016
  voids: !0
8017
8017
  });
@@ -8025,12 +8025,12 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
8025
8025
  onDrop: ct((P) => {
8026
8026
  if (!d && De.hasTarget(g, P.target) && !Cr(P, O.onDrop)) {
8027
8027
  P.preventDefault();
8028
- var U = g.selection, re = De.findEventRange(g, P), Q = P.dataTransfer;
8029
- Oe.select(g, re), he.isDraggingInternally && U && !ge.equals(U, re) && !E.void(g, {
8028
+ var W = g.selection, re = De.findEventRange(g, P), Q = P.dataTransfer;
8029
+ Oe.select(g, re), he.isDraggingInternally && W && !ge.equals(W, re) && !E.void(g, {
8030
8030
  at: re,
8031
8031
  voids: !0
8032
8032
  }) && Oe.delete(g, {
8033
- at: U
8033
+ at: W
8034
8034
  }), De.insertData(g, Q), De.isFocused(g) || De.focus(g);
8035
8035
  }
8036
8036
  }, [d, g, O.onDrop, he]),
@@ -8039,9 +8039,9 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
8039
8039
  }, [d, he, O, g]),
8040
8040
  onFocus: ct((P) => {
8041
8041
  if (!d && !he.isUpdatingSelection && De.hasEditableTarget(g, P.target) && !Cr(P, O.onFocus)) {
8042
- var U = De.toDOMNode(g, g), re = De.findDocumentOrShadowRoot(g);
8043
- if (he.latestElement = re.activeElement, ca && P.target !== U) {
8044
- U.focus();
8042
+ var W = De.toDOMNode(g, g), re = De.findDocumentOrShadowRoot(g);
8043
+ if (he.latestElement = re.activeElement, ca && P.target !== W) {
8044
+ W.focus();
8045
8045
  return;
8046
8046
  }
8047
8047
  On.set(g, !0);
@@ -8049,8 +8049,8 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
8049
8049
  }, [d, he, g, O.onFocus]),
8050
8050
  onKeyDown: ct((P) => {
8051
8051
  if (!d && De.hasEditableTarget(g, P.target)) {
8052
- var U;
8053
- (U = ee.current) === null || U === void 0 || U.handleKeyDown(P);
8052
+ var W;
8053
+ (W = ee.current) === null || W === void 0 || W.handleKeyDown(P);
8054
8054
  var {
8055
8055
  nativeEvent: re
8056
8056
  } = P;
@@ -8413,20 +8413,20 @@ var q2 = function(t) {
8413
8413
  }
8414
8414
  case "insert_node":
8415
8415
  case "remove_node": {
8416
- y.push(...aa(n, W.parent(p.path)));
8416
+ y.push(...aa(n, U.parent(p.path)));
8417
8417
  break;
8418
8418
  }
8419
8419
  case "merge_node": {
8420
- var q = W.previous(p.path);
8420
+ var q = U.previous(p.path);
8421
8421
  y.push(...aa(n, q));
8422
8422
  break;
8423
8423
  }
8424
8424
  case "move_node": {
8425
- var H = W.common(W.parent(p.path), W.parent(p.newPath));
8425
+ var H = U.common(U.parent(p.path), U.parent(p.newPath));
8426
8426
  y.push(...aa(n, H));
8427
8427
  var L;
8428
- W.isBefore(p.path, p.newPath) ? (y.push(...aa(n, W.parent(p.path))), L = p.newPath) : (y.push(...aa(n, W.parent(p.newPath))), L = p.path);
8429
- var z = $e.get(t, W.parent(L)), V = De.findKey(n, z), G = E.pathRef(n, W.parent(L));
8428
+ U.isBefore(p.path, p.newPath) ? (y.push(...aa(n, U.parent(p.path))), L = p.newPath) : (y.push(...aa(n, U.parent(p.newPath))), L = p.path);
8429
+ var z = $e.get(t, U.parent(L)), V = De.findKey(n, z), G = E.pathRef(n, U.parent(L));
8430
8430
  C.push([G, V]);
8431
8431
  break;
8432
8432
  }
@@ -11133,8 +11133,8 @@ function F3(e, t, r) {
11133
11133
  return (function(V, G, ve) {
11134
11134
  var xe = V.attrs, oe = V.componentStyle, he = V.defaultProps, ee = V.foldedComponentIds, R = V.styledComponentId, J = V.target, Y = rt.useContext(v1), le = gd(), ne = V.shouldForwardProp || le.shouldForwardProp;
11135
11135
  process.env.NODE_ENV !== "production" && bu(R);
11136
- var ye = K5(G, Y, he) || ya, pe = (function(me, P, U) {
11137
- for (var re, Q = Rr(Rr({}, P), { className: void 0, theme: U }), ue = 0; ue < me.length; ue += 1) {
11136
+ var ye = K5(G, Y, he) || ya, pe = (function(me, P, W) {
11137
+ for (var re, Q = Rr(Rr({}, P), { className: void 0, theme: W }), ue = 0; ue < me.length; ue += 1) {
11138
11138
  var Be = xa(re = me[ue]) ? re(Q) : re;
11139
11139
  for (var Le in Be) Q[Le] = Le === "className" ? qn(Q[Le], Be[Le]) : Le === "style" ? Rr(Rr({}, Q[Le]), Be[Le]) : Be[Le];
11140
11140
  }
@@ -11142,7 +11142,7 @@ function F3(e, t, r) {
11142
11142
  })(xe, G, ye), $ = pe.as || J, de = {};
11143
11143
  for (var Ae in pe) pe[Ae] === void 0 || Ae[0] === "$" || Ae === "as" || Ae === "theme" && pe.theme === ye || (Ae === "forwardedAs" ? de.as = pe.forwardedAs : ne && !ne(Ae, $) || (de[Ae] = pe[Ae], ne || process.env.NODE_ENV !== "development" || B5(Ae) || bd.has(Ae) || !D0.has($) || (bd.add(Ae), console.warn('styled-components: it looks like an unknown prop "'.concat(Ae, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
11144
11144
  var Ee = (function(me, P) {
11145
- var U = gd(), re = me.generateAndInjectStyles(P, U.styleSheet, U.stylis);
11145
+ var W = gd(), re = me.generateAndInjectStyles(P, W.styleSheet, W.stylis);
11146
11146
  return process.env.NODE_ENV !== "production" && bu(re), re;
11147
11147
  })(oe, pe);
11148
11148
  process.env.NODE_ENV !== "production" && V.warnTooManyClasses && V.warnTooManyClasses(Ee);
@@ -11926,7 +11926,7 @@ function R3() {
11926
11926
  function P(K) {
11927
11927
  return z(K) === r;
11928
11928
  }
11929
- function U(K) {
11929
+ function W(K) {
11930
11930
  return z(K) === A;
11931
11931
  }
11932
11932
  function re(K) {
@@ -11947,7 +11947,7 @@ function R3() {
11947
11947
  function Je(K) {
11948
11948
  return z(K) === y;
11949
11949
  }
11950
- Pt.ContextConsumer = V, Pt.ContextProvider = G, Pt.Element = ve, Pt.ForwardRef = xe, Pt.Fragment = oe, Pt.Lazy = he, Pt.Memo = ee, Pt.Portal = R, Pt.Profiler = J, Pt.StrictMode = Y, Pt.Suspense = le, Pt.SuspenseList = ne, Pt.isAsyncMode = $, Pt.isConcurrentMode = de, Pt.isContextConsumer = Ae, Pt.isContextProvider = Ee, Pt.isElement = ie, Pt.isForwardRef = me, Pt.isFragment = P, Pt.isLazy = U, Pt.isMemo = re, Pt.isPortal = Q, Pt.isProfiler = ue, Pt.isStrictMode = Be, Pt.isSuspense = Le, Pt.isSuspenseList = Je, Pt.isValidElementType = L, Pt.typeOf = z;
11950
+ Pt.ContextConsumer = V, Pt.ContextProvider = G, Pt.Element = ve, Pt.ForwardRef = xe, Pt.Fragment = oe, Pt.Lazy = he, Pt.Memo = ee, Pt.Portal = R, Pt.Profiler = J, Pt.StrictMode = Y, Pt.Suspense = le, Pt.SuspenseList = ne, Pt.isAsyncMode = $, Pt.isConcurrentMode = de, Pt.isContextConsumer = Ae, Pt.isContextProvider = Ee, Pt.isElement = ie, Pt.isForwardRef = me, Pt.isFragment = P, Pt.isLazy = W, Pt.isMemo = re, Pt.isPortal = Q, Pt.isProfiler = ue, Pt.isStrictMode = Be, Pt.isSuspense = Le, Pt.isSuspenseList = Je, Pt.isValidElementType = L, Pt.typeOf = z;
11951
11951
  })()), Pt;
11952
11952
  }
11953
11953
  var Cd;
@@ -12120,28 +12120,28 @@ function z3() {
12120
12120
  function g($) {
12121
12121
  if (process.env.NODE_ENV !== "production")
12122
12122
  var de = {}, Ae = 0;
12123
- function Ee(me, P, U, re, Q, ue, Be) {
12124
- if (re = re || A, ue = ue || U, Be !== r) {
12123
+ function Ee(me, P, W, re, Q, ue, Be) {
12124
+ if (re = re || A, ue = ue || W, Be !== r) {
12125
12125
  if (m) {
12126
12126
  var Le = new Error(
12127
12127
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
12128
12128
  );
12129
12129
  throw Le.name = "Invariant Violation", Le;
12130
12130
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
12131
- var Je = re + ":" + U;
12131
+ var Je = re + ":" + W;
12132
12132
  !de[Je] && // Avoid spamming the console because they are often not actionable except for lib authors
12133
12133
  Ae < 3 && (l(
12134
12134
  "You are manually calling a React.PropTypes validation function for the `" + ue + "` prop on `" + re + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
12135
12135
  ), de[Je] = !0, Ae++);
12136
12136
  }
12137
12137
  }
12138
- return P[U] == null ? me ? P[U] === null ? new O("The " + Q + " `" + ue + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new O("The " + Q + " `" + ue + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : $(P, U, re, Q, ue);
12138
+ return P[W] == null ? me ? P[W] === null ? new O("The " + Q + " `" + ue + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new O("The " + Q + " `" + ue + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : $(P, W, re, Q, ue);
12139
12139
  }
12140
12140
  var ie = Ee.bind(null, !1);
12141
12141
  return ie.isRequired = Ee.bind(null, !0), ie;
12142
12142
  }
12143
12143
  function I($) {
12144
- function de(Ae, Ee, ie, me, P, U) {
12144
+ function de(Ae, Ee, ie, me, P, W) {
12145
12145
  var re = Ae[Ee], Q = le(re);
12146
12146
  if (Q !== $) {
12147
12147
  var ue = ne(re);
@@ -12161,13 +12161,13 @@ function z3() {
12161
12161
  function de(Ae, Ee, ie, me, P) {
12162
12162
  if (typeof $ != "function")
12163
12163
  return new O("Property `" + P + "` of component `" + ie + "` has invalid PropType notation inside arrayOf.");
12164
- var U = Ae[Ee];
12165
- if (!Array.isArray(U)) {
12166
- var re = le(U);
12164
+ var W = Ae[Ee];
12165
+ if (!Array.isArray(W)) {
12166
+ var re = le(W);
12167
12167
  return new O("Invalid " + me + " `" + P + "` of type " + ("`" + re + "` supplied to `" + ie + "`, expected an array."));
12168
12168
  }
12169
- for (var Q = 0; Q < U.length; Q++) {
12170
- var ue = $(U, Q, ie, me, P + "[" + Q + "]", r);
12169
+ for (var Q = 0; Q < W.length; Q++) {
12170
+ var ue = $(W, Q, ie, me, P + "[" + Q + "]", r);
12171
12171
  if (ue instanceof Error)
12172
12172
  return ue;
12173
12173
  }
@@ -12179,8 +12179,8 @@ function z3() {
12179
12179
  function $(de, Ae, Ee, ie, me) {
12180
12180
  var P = de[Ae];
12181
12181
  if (!d(P)) {
12182
- var U = le(P);
12183
- return new O("Invalid " + ie + " `" + me + "` of type " + ("`" + U + "` supplied to `" + Ee + "`, expected a single ReactElement."));
12182
+ var W = le(P);
12183
+ return new O("Invalid " + ie + " `" + me + "` of type " + ("`" + W + "` supplied to `" + Ee + "`, expected a single ReactElement."));
12184
12184
  }
12185
12185
  return null;
12186
12186
  }
@@ -12190,8 +12190,8 @@ function z3() {
12190
12190
  function $(de, Ae, Ee, ie, me) {
12191
12191
  var P = de[Ae];
12192
12192
  if (!e.isValidElementType(P)) {
12193
- var U = le(P);
12194
- return new O("Invalid " + ie + " `" + me + "` of type " + ("`" + U + "` supplied to `" + Ee + "`, expected a single ReactElement type."));
12193
+ var W = le(P);
12194
+ return new O("Invalid " + ie + " `" + me + "` of type " + ("`" + W + "` supplied to `" + Ee + "`, expected a single ReactElement type."));
12195
12195
  }
12196
12196
  return null;
12197
12197
  }
@@ -12200,8 +12200,8 @@ function z3() {
12200
12200
  function V($) {
12201
12201
  function de(Ae, Ee, ie, me, P) {
12202
12202
  if (!(Ae[Ee] instanceof $)) {
12203
- var U = $.name || A, re = pe(Ae[Ee]);
12204
- return new O("Invalid " + me + " `" + P + "` of type " + ("`" + re + "` supplied to `" + ie + "`, expected ") + ("instance of `" + U + "`."));
12203
+ var W = $.name || A, re = pe(Ae[Ee]);
12204
+ return new O("Invalid " + me + " `" + P + "` of type " + ("`" + re + "` supplied to `" + ie + "`, expected ") + ("instance of `" + W + "`."));
12205
12205
  }
12206
12206
  return null;
12207
12207
  }
@@ -12213,14 +12213,14 @@ function z3() {
12213
12213
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
12214
12214
  ) : l("Invalid argument supplied to oneOf, expected an array.")), c;
12215
12215
  function de(Ae, Ee, ie, me, P) {
12216
- for (var U = Ae[Ee], re = 0; re < $.length; re++)
12217
- if (N(U, $[re]))
12216
+ for (var W = Ae[Ee], re = 0; re < $.length; re++)
12217
+ if (N(W, $[re]))
12218
12218
  return null;
12219
12219
  var Q = JSON.stringify($, function(Be, Le) {
12220
12220
  var Je = ne(Le);
12221
12221
  return Je === "symbol" ? String(Le) : Le;
12222
12222
  });
12223
- return new O("Invalid " + me + " `" + P + "` of value `" + String(U) + "` " + ("supplied to `" + ie + "`, expected one of " + Q + "."));
12223
+ return new O("Invalid " + me + " `" + P + "` of value `" + String(W) + "` " + ("supplied to `" + ie + "`, expected one of " + Q + "."));
12224
12224
  }
12225
12225
  return g(de);
12226
12226
  }
@@ -12228,12 +12228,12 @@ function z3() {
12228
12228
  function de(Ae, Ee, ie, me, P) {
12229
12229
  if (typeof $ != "function")
12230
12230
  return new O("Property `" + P + "` of component `" + ie + "` has invalid PropType notation inside objectOf.");
12231
- var U = Ae[Ee], re = le(U);
12231
+ var W = Ae[Ee], re = le(W);
12232
12232
  if (re !== "object")
12233
12233
  return new O("Invalid " + me + " `" + P + "` of type " + ("`" + re + "` supplied to `" + ie + "`, expected an object."));
12234
- for (var Q in U)
12235
- if (n(U, Q)) {
12236
- var ue = $(U, Q, ie, me, P + "." + Q, r);
12234
+ for (var Q in W)
12235
+ if (n(W, Q)) {
12236
+ var ue = $(W, Q, ie, me, P + "." + Q, r);
12237
12237
  if (ue instanceof Error)
12238
12238
  return ue;
12239
12239
  }
@@ -12251,15 +12251,15 @@ function z3() {
12251
12251
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ye(Ae) + " at index " + de + "."
12252
12252
  ), c;
12253
12253
  }
12254
- function Ee(ie, me, P, U, re) {
12254
+ function Ee(ie, me, P, W, re) {
12255
12255
  for (var Q = [], ue = 0; ue < $.length; ue++) {
12256
- var Be = $[ue], Le = Be(ie, me, P, U, re, r);
12256
+ var Be = $[ue], Le = Be(ie, me, P, W, re, r);
12257
12257
  if (Le == null)
12258
12258
  return null;
12259
12259
  Le.data && n(Le.data, "expectedType") && Q.push(Le.data.expectedType);
12260
12260
  }
12261
12261
  var Je = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : "";
12262
- return new O("Invalid " + U + " `" + re + "` supplied to " + ("`" + P + "`" + Je + "."));
12262
+ return new O("Invalid " + W + " `" + re + "` supplied to " + ("`" + P + "`" + Je + "."));
12263
12263
  }
12264
12264
  return g(Ee);
12265
12265
  }
@@ -12276,14 +12276,14 @@ function z3() {
12276
12276
  }
12277
12277
  function ee($) {
12278
12278
  function de(Ae, Ee, ie, me, P) {
12279
- var U = Ae[Ee], re = le(U);
12279
+ var W = Ae[Ee], re = le(W);
12280
12280
  if (re !== "object")
12281
12281
  return new O("Invalid " + me + " `" + P + "` of type `" + re + "` " + ("supplied to `" + ie + "`, expected `object`."));
12282
12282
  for (var Q in $) {
12283
12283
  var ue = $[Q];
12284
12284
  if (typeof ue != "function")
12285
12285
  return he(ie, me, P, Q, ne(ue));
12286
- var Be = ue(U, Q, ie, me, P + "." + Q, r);
12286
+ var Be = ue(W, Q, ie, me, P + "." + Q, r);
12287
12287
  if (Be)
12288
12288
  return Be;
12289
12289
  }
@@ -12293,7 +12293,7 @@ function z3() {
12293
12293
  }
12294
12294
  function R($) {
12295
12295
  function de(Ae, Ee, ie, me, P) {
12296
- var U = Ae[Ee], re = le(U);
12296
+ var W = Ae[Ee], re = le(W);
12297
12297
  if (re !== "object")
12298
12298
  return new O("Invalid " + me + " `" + P + "` of type `" + re + "` " + ("supplied to `" + ie + "`, expected `object`."));
12299
12299
  var Q = t({}, Ae[Ee], $);
@@ -12306,7 +12306,7 @@ function z3() {
12306
12306
  "Invalid " + me + " `" + P + "` key `" + ue + "` supplied to `" + ie + "`.\nBad object: " + JSON.stringify(Ae[Ee], null, " ") + `
12307
12307
  Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
12308
12308
  );
12309
- var Le = Be(U, ue, ie, me, P + "." + ue, r);
12309
+ var Le = Be(W, ue, ie, me, P + "." + ue, r);
12310
12310
  if (Le)
12311
12311
  return Le;
12312
12312
  }
@@ -12840,7 +12840,7 @@ H400000v` + (40 + i) + `H845.2724
12840
12840
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
12841
12841
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
12842
12842
  M` + (834 + i) + " " + s + "h400000v" + (40 + i) + "h-400000z";
12843
- }, U = function(i, s) {
12843
+ }, W = function(i, s) {
12844
12844
  return "M263," + (601 + i + s) + `c0.7,0,18,39.7,52,119
12845
12845
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
12846
12846
  c340,-704.7,510.7,-1060.3,512,-1067
@@ -12902,7 +12902,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
12902
12902
  u = P(s, me);
12903
12903
  break;
12904
12904
  case "sqrtSize1":
12905
- u = U(s, me);
12905
+ u = W(s, me);
12906
12906
  break;
12907
12907
  case "sqrtSize2":
12908
12908
  u = re(s, me);
@@ -24671,8 +24671,8 @@ const Da = ({
24671
24671
  if (!V.current) {
24672
24672
  const ie = S4(), me = q2(ie), { isInline: P } = me;
24673
24673
  me.isInline = (Q) => !H.includes("template") && Q.type === "template" ? !0 : P(Q);
24674
- const { isVoid: U } = me;
24675
- me.isVoid = (Q) => !H.includes("template") && Q.type === "template" ? !0 : U(Q);
24674
+ const { isVoid: W } = me;
24675
+ me.isVoid = (Q) => !H.includes("template") && Q.type === "template" ? !0 : W(Q);
24676
24676
  const re = (Q) => {
24677
24677
  if (!(q && !H.includes("template"))) return Q;
24678
24678
  const { insertText: Be, insertData: Le } = Q, Je = () => {
@@ -24783,12 +24783,12 @@ const Da = ({
24783
24783
  const P = me.replace(/\\n/g, `
24784
24784
  `).replace(/\\r/g, "\r").replace(/\\t/g, " ").replace(/\\'/g, "'").replace(/\\\\/g, "\\").replace(/&quot;/g, '"');
24785
24785
  navigator.clipboard.writeText(P).then(() => {
24786
- const U = ie.innerHTML;
24786
+ const W = ie.innerHTML;
24787
24787
  ie.innerHTML = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#2da44e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20,6 9,17 4,12"></polyline></svg>', ie.classList.add("copied"), setTimeout(() => {
24788
- ie.innerHTML = U, ie.classList.remove("copied");
24788
+ ie.innerHTML = W, ie.classList.remove("copied");
24789
24789
  }, 2e3);
24790
- }).catch((U) => {
24791
- console.error("\u590D\u5236\u5931\u8D25:", U);
24790
+ }).catch((W) => {
24791
+ console.error("\u590D\u5236\u5931\u8D25:", W);
24792
24792
  const re = ie.innerHTML;
24793
24793
  ie.innerHTML = '<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', ie.style.background = "#d73a49", ie.style.borderColor = "#d73a49", ie.style.color = "white", setTimeout(() => {
24794
24794
  ie.innerHTML = re, ie.style.background = "", ie.style.borderColor = "", ie.style.color = "";
@@ -24860,14 +24860,14 @@ const Da = ({
24860
24860
  return `<pre><code${Be}>${Le}</code><button class="code-copy-btn" data-code="${Je}" onclick="copyCodeFromData(this)" title="\u590D\u5236\u4EE3\u7801"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></button></pre>`;
24861
24861
  }
24862
24862
  );
24863
- const U = z?.disabledBackground || z?.backgroundColor || "#ffffff", re = (ue, Be) => ue.startsWith("#") ? `${ue}${Math.round(Be * 255).toString(16).padStart(2, "0")}` : ue, Q = `
24863
+ const W = z?.disabledBackground || z?.backgroundColor || "#ffffff", re = (ue, Be) => ue.startsWith("#") ? `${ue}${Math.round(Be * 255).toString(16).padStart(2, "0")}` : ue, Q = `
24864
24864
  <style>
24865
24865
  .table-container{ overflow:auto; border:1px solid ${z?.borderColor || "#e5e7eb"}; border-radius: 6px; background:${z?.backgroundColor || "transparent"} !important; }
24866
24866
  .table-container table{ background:${z?.backgroundColor || "transparent"} !important; color:${z?.textColor || "#24292f"} !important; }
24867
24867
  .table-container th{ background:${z?.disabledBackground || "#f6f8fa"} !important; color:${z?.textColor || "#24292f"} !important; }
24868
24868
  .table-container td{ color:${z?.textColor || "#24292f"} !important; background:${z?.backgroundColor || "transparent"} !important; }
24869
24869
  .table-container tr:nth-child(even) td{ background:${z?.disabledBackground || "#f6f8fa"} !important; }
24870
- pre{ position:relative; background:${U}; border:1px solid ${z?.borderColor || "#e5e7eb"}; border-radius:6px; padding:12px 36px 12px 12px; color:${z?.textColor || "#e5e7eb"}; }
24870
+ pre{ position:relative; background:${W}; border:1px solid ${z?.borderColor || "#e5e7eb"}; border-radius:6px; padding:12px 36px 12px 12px; color:${z?.textColor || "#e5e7eb"}; }
24871
24871
  pre::before{ content:''; position:absolute; inset:0; border-radius:6px; pointer-events:none; background: linear-gradient(90deg, ${re("#22c55e", 0.25)}, ${re("#f59e0b", 0.25)}, ${re("#ef4444", 0.25)}); opacity: .45; mix-blend-mode: overlay; }
24872
24872
  pre .code-copy-btn{ position:absolute; top:8px; right:8px; background:transparent; border:1px solid ${z?.borderColor || "#e5e7eb"}; color:${z?.textColor || "#24292f"}; border-radius:6px; padding:2px 6px; cursor:pointer; }
24873
24873
  pre .code-copy-btn:hover{ background:${z?.hoverBackground || "rgba(0,0,0,0.06)"}; }
@@ -25198,7 +25198,7 @@ function c6() {
25198
25198
  case C:
25199
25199
  return pe ? de(1, ie) : de(0, ie + 1);
25200
25200
  case y:
25201
- var U = this.$locale().weekStart || 0, re = (Ee < U ? Ee + 7 : Ee) - U;
25201
+ var W = this.$locale().weekStart || 0, re = (Ee < W ? Ee + 7 : Ee) - W;
25202
25202
  return de(pe ? me - re : me + (6 - re), ie);
25203
25203
  case p:
25204
25204
  case N:
@@ -25243,7 +25243,7 @@ function c6() {
25243
25243
  }, Y.format = function(le) {
25244
25244
  var ne = this, ye = this.$locale();
25245
25245
  if (!this.isValid()) return ye.invalidDate || O;
25246
- var pe = le || "YYYY-MM-DDTHH:mm:ssZ", $ = he.z(this), de = this.$H, Ae = this.$m, Ee = this.$M, ie = ye.weekdays, me = ye.months, P = ye.meridiem, U = function(ue, Be, Le, Je) {
25246
+ var pe = le || "YYYY-MM-DDTHH:mm:ssZ", $ = he.z(this), de = this.$H, Ae = this.$m, Ee = this.$M, ie = ye.weekdays, me = ye.months, P = ye.meridiem, W = function(ue, Be, Le, Je) {
25247
25247
  return ue && (ue[Be] || ue(ne, pe)) || Le[Be].slice(0, Je);
25248
25248
  }, re = function(ue) {
25249
25249
  return he.s(de % 12 || 12, ue, "0");
@@ -25263,9 +25263,9 @@ function c6() {
25263
25263
  case "MM":
25264
25264
  return he.s(Ee + 1, 2, "0");
25265
25265
  case "MMM":
25266
- return U(ye.monthsShort, Ee, me, 3);
25266
+ return W(ye.monthsShort, Ee, me, 3);
25267
25267
  case "MMMM":
25268
- return U(me, Ee);
25268
+ return W(me, Ee);
25269
25269
  case "D":
25270
25270
  return ne.$D;
25271
25271
  case "DD":
@@ -25273,9 +25273,9 @@ function c6() {
25273
25273
  case "d":
25274
25274
  return String(ne.$W);
25275
25275
  case "dd":
25276
- return U(ye.weekdaysMin, ne.$W, ie, 2);
25276
+ return W(ye.weekdaysMin, ne.$W, ie, 2);
25277
25277
  case "ddd":
25278
- return U(ye.weekdaysShort, ne.$W, ie, 3);
25278
+ return W(ye.weekdaysShort, ne.$W, ie, 3);
25279
25279
  case "dddd":
25280
25280
  return ie[ne.$W];
25281
25281
  case "H":
@@ -26683,7 +26683,7 @@ const m7 = Ne.div.attrs({
26683
26683
  thoughtChainNodes: ie,
26684
26684
  knowledgeBases: me,
26685
26685
  enableCot: P,
26686
- chainRespTime: U,
26686
+ chainRespTime: W,
26687
26687
  thoughtChainStatus: re
26688
26688
  }) => {
26689
26689
  Yt(() => {
@@ -26782,7 +26782,7 @@ const m7 = Ne.div.attrs({
26782
26782
  nodes: Kt,
26783
26783
  status: B,
26784
26784
  simpleThinkOnly: Se,
26785
- chainRespTime: U
26785
+ chainRespTime: W
26786
26786
  }
26787
26787
  ) });
26788
26788
  }, [Ot, Ht] = wt([]), [Bt, Re] = wt(null), ur = it(() => {
@@ -28989,7 +28989,7 @@ const M7 = Ne.div.attrs({
28989
28989
  }
28990
28990
  },
28991
28991
  [ie]
28992
- ), U = it(() => {
28992
+ ), W = it(() => {
28993
28993
  if (!N) return null;
28994
28994
  try {
28995
28995
  const K = typeof N == "string" ? N : N.configJson || N.searchConfigDTO?.configJson;
@@ -29240,7 +29240,7 @@ const M7 = Ne.div.attrs({
29240
29240
  t === "stream" && r === "processing" && /* @__PURE__ */ x.jsx("span", { className: "animate-pulse inline-block ml-1", children: "\u258A" })
29241
29241
  ] }) : /* @__PURE__ */ x.jsx(Hs, { theme: R, children: "\u6682\u65E0\u8BED\u4E49\u56DE\u7B54\u5185\u5BB9" })
29242
29242
  ] }),
29243
- Y === "prompt" && /* @__PURE__ */ x.jsx(x.Fragment, { children: A || U?.prompt ? /* @__PURE__ */ x.jsx(M7, { theme: R, children: A || U?.prompt }) : /* @__PURE__ */ x.jsx(Hs, { theme: R, children: "\u6682\u65E0 Prompt \u5185\u5BB9" }) }),
29243
+ Y === "prompt" && /* @__PURE__ */ x.jsx(x.Fragment, { children: A || W?.prompt ? /* @__PURE__ */ x.jsx(M7, { theme: R, children: A || W?.prompt }) : /* @__PURE__ */ x.jsx(Hs, { theme: R, children: "\u6682\u65E0 Prompt \u5185\u5BB9" }) }),
29244
29244
  Y === "retrieve" && /* @__PURE__ */ x.jsx(j7, { theme: R, children: re && re.length > 0 ? re.map((K, je) => {
29245
29245
  const Ie = K.metadata || {}, Ye = K.score ?? Ie.score ?? 0, at = K.rerank_score_rank ?? Ie.rerank_score_rank ?? "-", lt = K.rrf_score ?? Ie.rrf_score ?? 0, dt = Ie.search_type && Array.isArray(Ie.search_type) ? Ie.search_type.join(", ") : Ie.search_type || "es", Dt = K.page_content || "", We = K.sourceFileName || Ie.sourceFileName || Ie.source?.split("/").pop() || "\u672A\u77E5\u6587\u4EF6", mt = K.order_num || je, kt = ne.has(mt);
29246
29246
  return /* @__PURE__ */ x.jsxs(P7, { theme: R, children: [
@@ -29334,75 +29334,75 @@ const M7 = Ne.div.attrs({
29334
29334
  ] })
29335
29335
  ] }, mt);
29336
29336
  }) : /* @__PURE__ */ x.jsx(Hs, { theme: R, children: "\u6682\u65E0\u53EC\u56DE\u4FE1\u606F" }) }),
29337
- Y === "config" && /* @__PURE__ */ x.jsx(R7, { theme: R, children: U ? /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
29337
+ Y === "config" && /* @__PURE__ */ x.jsx(R7, { theme: R, children: W ? /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
29338
29338
  /* @__PURE__ */ x.jsxs(Wd, { theme: R, children: [
29339
29339
  /* @__PURE__ */ x.jsxs(Ud, { theme: R, children: [
29340
29340
  /* @__PURE__ */ x.jsx("span", { className: "dot" }),
29341
29341
  /* @__PURE__ */ x.jsx("span", { children: "\u53EC\u56DE\u914D\u7F6E" })
29342
29342
  ] }),
29343
29343
  /* @__PURE__ */ x.jsxs(Vd, { theme: R, children: [
29344
- (U.textChunks !== void 0 || U.top_k !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29344
+ (W.top_k !== void 0 || W.textChunks !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29345
29345
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u8FD4\u56DE\u6587\u672C\u7247\u6570\u91CF" }),
29346
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.textChunks ?? U.top_k })
29346
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.top_k ?? W.textChunks })
29347
29347
  ] }),
29348
- (U.topP !== void 0 || U.score_threshold !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29348
+ (W.score_threshold !== void 0 || W.topP !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29349
29349
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u76F8\u4F3C\u5EA6\u9608\u503C" }),
29350
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.topP ?? U.score_threshold })
29350
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.score_threshold ?? W.topP })
29351
29351
  ] }),
29352
- (U.topN !== void 0 || U.top_k !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29352
+ (W.top_n !== void 0 || W.topN !== void 0 || W.top_k !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29353
29353
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u53EC\u56DE\u6570\u91CF" }),
29354
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.topN ?? U.top_k })
29354
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.top_n ?? W.topN ?? W.top_k })
29355
29355
  ] }),
29356
- (U.denseWeight !== void 0 || U.dense_weight !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29356
+ (W.dense_weight !== void 0 || W.denseWeight !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29357
29357
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u5411\u91CF\u6743\u91CD" }),
29358
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.denseWeight ?? U.dense_weight })
29358
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.dense_weight ?? W.denseWeight })
29359
29359
  ] }),
29360
- (U["search policy"] !== void 0 || U.search_policy !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29360
+ (W["search policy"] !== void 0 || W.search_policy !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29361
29361
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u68C0\u7D22\u7B56\u7565" }),
29362
29362
  /* @__PURE__ */ x.jsx(kr, { theme: R, children: (() => {
29363
- const K = U["search policy"] ?? U.search_policy;
29363
+ const K = W["search policy"] ?? W.search_policy;
29364
29364
  return K === 1 ? "\u6DF7\u5408\u68C0\u7D22" : K === 2 ? "\u5411\u91CF\u68C0\u7D22" : K === 3 ? "\u5173\u952E\u8BCD\u68C0\u7D22" : K;
29365
29365
  })() })
29366
29366
  ] }),
29367
- U.diversity !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29367
+ W.diversity !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29368
29368
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u591A\u6837\u6027" }),
29369
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.diversity })
29369
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.diversity })
29370
29370
  ] }),
29371
- U.temperature !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29371
+ W.temperature !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29372
29372
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u6E29\u5EA6" }),
29373
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.temperature })
29373
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.temperature })
29374
29374
  ] }),
29375
- (U.top_p !== void 0 || U.topP !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29375
+ (W.top_p !== void 0 || W.topP !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29376
29376
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "Top P" }),
29377
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.top_p ?? U.topP })
29377
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.top_p ?? W.topP })
29378
29378
  ] }),
29379
- (U.maxTokens !== void 0 || U.max_tokens !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29379
+ (W.max_tokens !== void 0 || W.maxTokens !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29380
29380
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u6700\u5927\u4EE4\u724C\u6570" }),
29381
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.maxTokens ?? U.max_tokens })
29381
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.max_tokens ?? W.maxTokens })
29382
29382
  ] }),
29383
- (U.model_name !== void 0 || U["1lmModel"] !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29383
+ (W.model_name !== void 0 || W["1lmModel"] !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29384
29384
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u95EE\u7B54\u6A21\u578B" }),
29385
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.model_name ?? U["1lmModel"] })
29385
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.model_name ?? W["1lmModel"] })
29386
29386
  ] }),
29387
- U.plan_model_name !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29387
+ W.plan_model_name !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29388
29388
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u89C4\u5212\u6A21\u578B" }),
29389
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.plan_model_name })
29389
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.plan_model_name })
29390
29390
  ] }),
29391
- U.recallModel !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29391
+ W.recallModel !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29392
29392
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u6392\u5E8F\u6A21\u578B" }),
29393
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.recallModel })
29393
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.recallModel })
29394
29394
  ] }),
29395
- U.rerank_model_name !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29395
+ W.rerank_model_name !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29396
29396
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u91CD\u6392\u6A21\u578B" }),
29397
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.rerank_model_name })
29397
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.rerank_model_name })
29398
29398
  ] }),
29399
- U.knowledge_base_name !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29399
+ W.knowledge_base_name !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29400
29400
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u77E5\u8BC6\u5E93\u540D\u79F0" }),
29401
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.knowledge_base_name })
29401
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.knowledge_base_name })
29402
29402
  ] }),
29403
- U.search_type !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29403
+ W.search_type !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29404
29404
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u7D22\u5F15\u6765\u6E90" }),
29405
- /* @__PURE__ */ x.jsx(kr, { theme: R, children: U.search_type ?? "undefined" })
29405
+ /* @__PURE__ */ x.jsx(kr, { theme: R, children: W.search_type ?? "undefined" })
29406
29406
  ] })
29407
29407
  ] })
29408
29408
  ] }),
@@ -29412,36 +29412,36 @@ const M7 = Ne.div.attrs({
29412
29412
  /* @__PURE__ */ x.jsx("span", { children: "\u529F\u80FD\u5F00\u5173" })
29413
29413
  ] }),
29414
29414
  /* @__PURE__ */ x.jsxs(Vd, { theme: R, children: [
29415
- (U.enableKG !== void 0 || U.enabled_graph !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29415
+ (W.enabled_graph !== void 0 || W.enableKG !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29416
29416
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u56FE\u8C31\u589E\u5F3A" }),
29417
29417
  /* @__PURE__ */ x.jsx(
29418
29418
  Qo,
29419
29419
  {
29420
29420
  theme: R,
29421
- enabled: U.enableKG === !0 || U.enabled_graph === !0,
29422
- children: U.enableKG === !0 || U.enabled_graph === !0 ? "\u5F00\u542F" : "\u5173\u95ED"
29421
+ enabled: W.enabled_graph === !0 || W.enableKG === !0,
29422
+ children: W.enabled_graph === !0 || W.enableKG === !0 ? "\u5F00\u542F" : "\u5173\u95ED"
29423
29423
  }
29424
29424
  )
29425
29425
  ] }),
29426
- U.enableThinking !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29426
+ W.enableThinking !== void 0 && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29427
29427
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u6DF1\u5EA6\u601D\u8003" }),
29428
29428
  /* @__PURE__ */ x.jsx(
29429
29429
  Qo,
29430
29430
  {
29431
29431
  theme: R,
29432
- enabled: U.enableThinking === !0,
29433
- children: U.enableThinking === !0 ? "\u5F00\u542F" : "\u5173\u95ED"
29432
+ enabled: W.enableThinking === !0,
29433
+ children: W.enableThinking === !0 ? "\u5F00\u542F" : "\u5173\u95ED"
29434
29434
  }
29435
29435
  )
29436
29436
  ] }),
29437
- (U.enabled_llm !== void 0 || U.enableLLM !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29437
+ (W.enabled_llm !== void 0 || W.enableLLM !== void 0) && /* @__PURE__ */ x.jsxs(mr, { theme: R, children: [
29438
29438
  /* @__PURE__ */ x.jsx(gr, { theme: R, children: "\u542F\u7528LLM" }),
29439
29439
  /* @__PURE__ */ x.jsx(
29440
29440
  Qo,
29441
29441
  {
29442
29442
  theme: R,
29443
- enabled: U.enabled_llm === !0 || U.enableLLM === !0,
29444
- children: U.enabled_llm === !0 || U.enableLLM === !0 ? "\u5F00\u542F" : "\u5173\u95ED"
29443
+ enabled: W.enabled_llm === !0 || W.enabled_llm === "true" || W.enableLLM === !0,
29444
+ children: W.enabled_llm === !0 || W.enabled_llm === "true" || W.enableLLM === !0 ? "\u5F00\u542F" : "\u5173\u95ED"
29445
29445
  }
29446
29446
  )
29447
29447
  ] })
@@ -29718,7 +29718,7 @@ const M7 = Ne.div.attrs({
29718
29718
  };
29719
29719
  return ue(), window.addEventListener("resize", ue), () => window.removeEventListener("resize", ue);
29720
29720
  }, []);
29721
- const U = ct((ue, Be) => {
29721
+ const W = ct((ue, Be) => {
29722
29722
  const Le = {
29723
29723
  type: ue.type,
29724
29724
  content: ue.content
@@ -29758,7 +29758,7 @@ const M7 = Ne.div.attrs({
29758
29758
  }, [t, r, H, y, N]), re = () => (console.log("[Markdownit] renderContent segments.len:", z.length, "enableVirtualScroll:", t), z.length === 0 ? /* @__PURE__ */ x.jsxs(X7, { theme: H, children: [
29759
29759
  /* @__PURE__ */ x.jsx("h3", { children: "\u6682\u65E0\u5185\u5BB9" }),
29760
29760
  /* @__PURE__ */ x.jsx("p", { children: "\u8BF7\u6DFB\u52A0\u4E00\u4E9B\u5185\u5BB9\u6765\u5F00\u59CB" })
29761
- ] }) : t ? /* @__PURE__ */ x.jsx("div", { ref: de, style: { height: Ee, position: "relative" }, children: ie.map(U) }) : /* @__PURE__ */ x.jsx("div", { ref: de, children: z.map(U) })), Q = () => !R && !c ? null : /* @__PURE__ */ x.jsx(K7, { theme: H, children: c ? "\u52A0\u8F7D\u66F4\u591A\u5185\u5BB9..." : "\u52A0\u8F7D\u4E2D..." });
29761
+ ] }) : t ? /* @__PURE__ */ x.jsx("div", { ref: de, style: { height: Ee, position: "relative" }, children: ie.map(W) }) : /* @__PURE__ */ x.jsx("div", { ref: de, children: z.map(W) })), Q = () => !R && !c ? null : /* @__PURE__ */ x.jsx(K7, { theme: H, children: c ? "\u52A0\u8F7D\u66F4\u591A\u5185\u5BB9..." : "\u52A0\u8F7D\u4E2D..." });
29762
29762
  return /* @__PURE__ */ x.jsx(
29763
29763
  G7,
29764
29764
  {