@vis3/kit 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as q, jsxs as Ye, Fragment as r4 } from "react/jsx-runtime";
2
2
  import * as Y from "react";
3
- import A2, { createContext as Ni, useContext as Qn, useEffect as rt, forwardRef as Fo, createElement as Ar, isValidElement as q7, cloneElement as WS, Children as sD, Fragment as lD, useCallback as Et, useState as Ke, useRef as Xt, useMemo as Ce, useLayoutEffect as GS, useImperativeHandle as YS } from "react";
3
+ import A2, { createContext as Ni, useContext as Qn, useEffect as rt, forwardRef as Fo, createElement as Ar, isValidElement as q7, cloneElement as WS, Children as sD, Fragment as lD, useCallback as Et, useState as Ke, useRef as $t, useMemo as Ce, useLayoutEffect as GS, useImperativeHandle as YS } from "react";
4
4
  import { Tooltip as C1, Button as A1, Card as uD, Image as to, Table as cD, Form as f7, Popover as KS, Input as JS, Divider as eE, Dropdown as QD, Space as tE, List as rE, Tag as D9, message as TD, Spin as fD, Descriptions as hD } from "antd";
5
5
  import BQ from "react-dom";
6
6
  const nE = /* @__PURE__ */ Ni({});
@@ -1897,24 +1897,24 @@ function jV() {
1897
1897
  var z = I.$$typeof;
1898
1898
  switch (z) {
1899
1899
  case e:
1900
- var W = I.type;
1901
- switch (W) {
1900
+ var G = I.type;
1901
+ switch (G) {
1902
1902
  case l:
1903
1903
  case u:
1904
1904
  case n:
1905
1905
  case a:
1906
1906
  case i:
1907
1907
  case Q:
1908
- return W;
1908
+ return G;
1909
1909
  default:
1910
- var ee = W && W.$$typeof;
1911
- switch (ee) {
1910
+ var K = G && G.$$typeof;
1911
+ switch (K) {
1912
1912
  case s:
1913
1913
  case c:
1914
1914
  case h:
1915
1915
  case f:
1916
1916
  case o:
1917
- return ee;
1917
+ return K;
1918
1918
  default:
1919
1919
  return z;
1920
1920
  }
@@ -1940,7 +1940,7 @@ function jV() {
1940
1940
  function k(I) {
1941
1941
  return typeof I == "object" && I !== null && I.$$typeof === e;
1942
1942
  }
1943
- function te(I) {
1943
+ function ee(I) {
1944
1944
  return x(I) === c;
1945
1945
  }
1946
1946
  function ae(I) {
@@ -1949,13 +1949,13 @@ function jV() {
1949
1949
  function ie(I) {
1950
1950
  return x(I) === h;
1951
1951
  }
1952
- function G(I) {
1952
+ function W(I) {
1953
1953
  return x(I) === f;
1954
1954
  }
1955
1955
  function X(I) {
1956
1956
  return x(I) === r;
1957
1957
  }
1958
- function K(I) {
1958
+ function J(I) {
1959
1959
  return x(I) === a;
1960
1960
  }
1961
1961
  function re(I) {
@@ -1964,7 +1964,7 @@ function jV() {
1964
1964
  function oe(I) {
1965
1965
  return x(I) === Q;
1966
1966
  }
1967
- it.AsyncMode = O, it.ConcurrentMode = v, it.ContextConsumer = L, it.ContextProvider = b, it.Element = S, it.ForwardRef = E, it.Fragment = C, it.Lazy = A, it.Memo = w, it.Portal = M, it.Profiler = P, it.StrictMode = N, it.Suspense = $, it.isAsyncMode = V, it.isConcurrentMode = _, it.isContextConsumer = D, it.isContextProvider = Z, it.isElement = k, it.isForwardRef = te, it.isFragment = ae, it.isLazy = ie, it.isMemo = G, it.isPortal = X, it.isProfiler = K, it.isStrictMode = re, it.isSuspense = oe, it.isValidElementType = y, it.typeOf = x;
1967
+ it.AsyncMode = O, it.ConcurrentMode = v, it.ContextConsumer = L, it.ContextProvider = b, it.Element = S, it.ForwardRef = E, it.Fragment = C, it.Lazy = A, it.Memo = w, it.Portal = M, it.Profiler = P, it.StrictMode = N, it.Suspense = $, it.isAsyncMode = V, it.isConcurrentMode = _, it.isContextConsumer = D, it.isContextProvider = Z, it.isElement = k, it.isForwardRef = ee, it.isFragment = ae, it.isLazy = ie, it.isMemo = W, it.isPortal = X, it.isProfiler = J, it.isStrictMode = re, it.isSuspense = oe, it.isValidElementType = y, it.typeOf = x;
1968
1968
  }()), it;
1969
1969
  }
1970
1970
  var Th;
@@ -2688,20 +2688,20 @@ var dR = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof wi
2688
2688
  }, M.valueOf = function() {
2689
2689
  return this.$d.getTime();
2690
2690
  }, M.startOf = function(P, N) {
2691
- var $ = this, R = !!E.u(N) || N, V = E.p(P), _ = function(X, K) {
2692
- var re = E.w($.$u ? Date.UTC($.$y, K, X) : new Date($.$y, K, X), $);
2691
+ var $ = this, R = !!E.u(N) || N, V = E.p(P), _ = function(X, J) {
2692
+ var re = E.w($.$u ? Date.UTC($.$y, J, X) : new Date($.$y, J, X), $);
2693
2693
  return R ? re : re.endOf(u);
2694
- }, D = function(X, K) {
2695
- return E.w($.toDate()[X].apply($.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(K)), $);
2696
- }, Z = this.$W, k = this.$M, te = this.$D, ae = "set" + (this.$u ? "UTC" : "");
2694
+ }, D = function(X, J) {
2695
+ return E.w($.toDate()[X].apply($.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), $);
2696
+ }, Z = this.$W, k = this.$M, ee = this.$D, ae = "set" + (this.$u ? "UTC" : "");
2697
2697
  switch (V) {
2698
2698
  case f:
2699
2699
  return R ? _(1, 0) : _(31, 11);
2700
2700
  case Q:
2701
2701
  return R ? _(1, k) : _(0, k + 1);
2702
2702
  case c:
2703
- var ie = this.$locale().weekStart || 0, G = (Z < ie ? Z + 7 : Z) - ie;
2704
- return _(R ? te - G : te + (6 - G), k);
2703
+ var ie = this.$locale().weekStart || 0, W = (Z < ie ? Z + 7 : Z) - ie;
2704
+ return _(R ? ee - W : ee + (6 - W), k);
2705
2705
  case u:
2706
2706
  case h:
2707
2707
  return D(ae + "Hours", 0);
@@ -2732,8 +2732,8 @@ var dR = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof wi
2732
2732
  var $, R = this;
2733
2733
  P = Number(P);
2734
2734
  var V = E.p(N), _ = function(k) {
2735
- var te = S(R);
2736
- return E.w(te.date(te.date() + Math.round(k * P)), R);
2735
+ var ee = S(R);
2736
+ return E.w(ee.date(ee.date() + Math.round(k * P)), R);
2737
2737
  };
2738
2738
  if (V === Q)
2739
2739
  return this.set(Q, this.$M + P);
@@ -2751,16 +2751,16 @@ var dR = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof wi
2751
2751
  var N = this, $ = this.$locale();
2752
2752
  if (!this.isValid())
2753
2753
  return $.invalidDate || p;
2754
- var R = P || "YYYY-MM-DDTHH:mm:ssZ", V = E.z(this), _ = this.$H, D = this.$m, Z = this.$M, k = $.weekdays, te = $.months, ae = function(K, re, oe, I) {
2755
- return K && (K[re] || K(N, R)) || oe[re].slice(0, I);
2756
- }, ie = function(K) {
2757
- return E.s(_ % 12 || 12, K, "0");
2758
- }, G = $.meridiem || function(K, re, oe) {
2759
- var I = K < 12 ? "AM" : "PM";
2754
+ var R = P || "YYYY-MM-DDTHH:mm:ssZ", V = E.z(this), _ = this.$H, D = this.$m, Z = this.$M, k = $.weekdays, ee = $.months, ae = function(J, re, oe, I) {
2755
+ return J && (J[re] || J(N, R)) || oe[re].slice(0, I);
2756
+ }, ie = function(J) {
2757
+ return E.s(_ % 12 || 12, J, "0");
2758
+ }, W = $.meridiem || function(J, re, oe) {
2759
+ var I = J < 12 ? "AM" : "PM";
2760
2760
  return oe ? I.toLowerCase() : I;
2761
- }, X = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Z + 1, MM: E.s(Z + 1, 2, "0"), MMM: ae($.monthsShort, Z, te, 3), MMMM: ae(te, Z), D: this.$D, DD: E.s(this.$D, 2, "0"), d: String(this.$W), dd: ae($.weekdaysMin, this.$W, k, 2), ddd: ae($.weekdaysShort, this.$W, k, 3), dddd: k[this.$W], H: String(_), HH: E.s(_, 2, "0"), h: ie(1), hh: ie(2), a: G(_, D, !0), A: G(_, D, !1), m: String(D), mm: E.s(D, 2, "0"), s: String(this.$s), ss: E.s(this.$s, 2, "0"), SSS: E.s(this.$ms, 3, "0"), Z: V };
2762
- return R.replace(d, function(K, re) {
2763
- return re || X[K] || V.replace(":", "");
2761
+ }, X = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Z + 1, MM: E.s(Z + 1, 2, "0"), MMM: ae($.monthsShort, Z, ee, 3), MMMM: ae(ee, Z), D: this.$D, DD: E.s(this.$D, 2, "0"), d: String(this.$W), dd: ae($.weekdaysMin, this.$W, k, 2), ddd: ae($.weekdaysShort, this.$W, k, 3), dddd: k[this.$W], H: String(_), HH: E.s(_, 2, "0"), h: ie(1), hh: ie(2), a: W(_, D, !0), A: W(_, D, !1), m: String(D), mm: E.s(D, 2, "0"), s: String(this.$s), ss: E.s(this.$s, 2, "0"), SSS: E.s(this.$ms, 3, "0"), Z: V };
2762
+ return R.replace(d, function(J, re) {
2763
+ return re || X[J] || V.replace(":", "");
2764
2764
  });
2765
2765
  }, M.utcOffset = function() {
2766
2766
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -3358,7 +3358,7 @@ function P9e({
3358
3358
  });
3359
3359
  }
3360
3360
  const QI = (t, e) => {
3361
- const r = Xt();
3361
+ const r = $t();
3362
3362
  return rt(() => {
3363
3363
  r.current = t;
3364
3364
  }, [t, e]), r.current;
@@ -3388,7 +3388,7 @@ const QI = (t, e) => {
3388
3388
  const c = (a.isInitialized || a.initializedStoreOnce) && u.every((x) => XR(x, a, o)), Q = TI(a, e.lng || null, o.nsMode === "fallback" ? u : u[0], l), T = () => Q, f = () => BE(a, e.lng || null, o.nsMode === "fallback" ? u : u[0], l), [h, p] = Ke(T);
3389
3389
  let g = u.join();
3390
3390
  e.lng && (g = `${e.lng}${g}`);
3391
- const d = QI(g), m = Xt(!0);
3391
+ const d = QI(g), m = $t(!0);
3392
3392
  rt(() => {
3393
3393
  const {
3394
3394
  bindI18n: x,
@@ -9190,28 +9190,28 @@ function aT() {
9190
9190
  n(e);
9191
9191
  })(Tq, function(r) {
9192
9192
  function n(X) {
9193
- return function(re, oe, I, z, W, ee, ce) {
9194
- return X(re, oe, ce);
9193
+ return function(re, oe, I, z, G, K, ue) {
9194
+ return X(re, oe, ue);
9195
9195
  };
9196
9196
  }
9197
9197
  function i(X) {
9198
9198
  return function(re, oe, I, z) {
9199
9199
  if (!re || !oe || typeof re != "object" || typeof oe != "object")
9200
9200
  return X(re, oe, I, z);
9201
- var W = z.get(re), ee = z.get(oe);
9202
- if (W && ee)
9203
- return W === oe && ee === re;
9201
+ var G = z.get(re), K = z.get(oe);
9202
+ if (G && K)
9203
+ return G === oe && K === re;
9204
9204
  z.set(re, oe), z.set(oe, re);
9205
- var ce = X(re, oe, I, z);
9206
- return z.delete(re), z.delete(oe), ce;
9205
+ var ue = X(re, oe, I, z);
9206
+ return z.delete(re), z.delete(oe), ue;
9207
9207
  };
9208
9208
  }
9209
- function a(X, K) {
9209
+ function a(X, J) {
9210
9210
  var re = {};
9211
9211
  for (var oe in X)
9212
9212
  re[oe] = X[oe];
9213
- for (var oe in K)
9214
- re[oe] = K[oe];
9213
+ for (var oe in J)
9214
+ re[oe] = J[oe];
9215
9215
  return re;
9216
9216
  }
9217
9217
  function o(X) {
@@ -9220,89 +9220,89 @@ function aT() {
9220
9220
  function s(X) {
9221
9221
  return typeof X.then == "function";
9222
9222
  }
9223
- function l(X, K) {
9224
- return X === K || X !== X && K !== K;
9223
+ function l(X, J) {
9224
+ return X === J || X !== X && J !== J;
9225
9225
  }
9226
9226
  var u = "[object Arguments]", c = "[object Boolean]", Q = "[object Date]", T = "[object RegExp]", f = "[object Map]", h = "[object Number]", p = "[object Object]", g = "[object Set]", d = "[object String]", m = Object.prototype.toString;
9227
9227
  function y(X) {
9228
- var K = X.areArraysEqual, re = X.areDatesEqual, oe = X.areMapsEqual, I = X.areObjectsEqual, z = X.areRegExpsEqual, W = X.areSetsEqual, ee = X.createIsNestedEqual, ce = ee(ge);
9228
+ var J = X.areArraysEqual, re = X.areDatesEqual, oe = X.areMapsEqual, I = X.areObjectsEqual, z = X.areRegExpsEqual, G = X.areSetsEqual, K = X.createIsNestedEqual, ue = K(ge);
9229
9229
  function ge(he, xe, Ie) {
9230
9230
  if (he === xe)
9231
9231
  return !0;
9232
9232
  if (!he || !xe || typeof he != "object" || typeof xe != "object")
9233
9233
  return he !== he && xe !== xe;
9234
9234
  if (o(he) && o(xe))
9235
- return I(he, xe, ce, Ie);
9235
+ return I(he, xe, ue, Ie);
9236
9236
  var Qt = Array.isArray(he), K2 = Array.isArray(xe);
9237
9237
  if (Qt || K2)
9238
- return Qt === K2 && K(he, xe, ce, Ie);
9238
+ return Qt === K2 && J(he, xe, ue, Ie);
9239
9239
  var Ct = m.call(he);
9240
- return Ct !== m.call(xe) ? !1 : Ct === Q ? re(he, xe, ce, Ie) : Ct === T ? z(he, xe, ce, Ie) : Ct === f ? oe(he, xe, ce, Ie) : Ct === g ? W(he, xe, ce, Ie) : Ct === p || Ct === u ? s(he) || s(xe) ? !1 : I(he, xe, ce, Ie) : Ct === c || Ct === h || Ct === d ? l(he.valueOf(), xe.valueOf()) : !1;
9240
+ return Ct !== m.call(xe) ? !1 : Ct === Q ? re(he, xe, ue, Ie) : Ct === T ? z(he, xe, ue, Ie) : Ct === f ? oe(he, xe, ue, Ie) : Ct === g ? G(he, xe, ue, Ie) : Ct === p || Ct === u ? s(he) || s(xe) ? !1 : I(he, xe, ue, Ie) : Ct === c || Ct === h || Ct === d ? l(he.valueOf(), xe.valueOf()) : !1;
9241
9241
  }
9242
9242
  return ge;
9243
9243
  }
9244
- function x(X, K, re, oe) {
9244
+ function x(X, J, re, oe) {
9245
9245
  var I = X.length;
9246
- if (K.length !== I)
9246
+ if (J.length !== I)
9247
9247
  return !1;
9248
9248
  for (; I-- > 0; )
9249
- if (!re(X[I], K[I], I, I, X, K, oe))
9249
+ if (!re(X[I], J[I], I, I, X, J, oe))
9250
9250
  return !1;
9251
9251
  return !0;
9252
9252
  }
9253
9253
  var O = i(x);
9254
- function v(X, K) {
9255
- return l(X.valueOf(), K.valueOf());
9254
+ function v(X, J) {
9255
+ return l(X.valueOf(), J.valueOf());
9256
9256
  }
9257
- function L(X, K, re, oe) {
9258
- var I = X.size === K.size;
9257
+ function L(X, J, re, oe) {
9258
+ var I = X.size === J.size;
9259
9259
  if (!I)
9260
9260
  return !1;
9261
9261
  if (!X.size)
9262
9262
  return !0;
9263
- var z = {}, W = 0;
9264
- return X.forEach(function(ee, ce) {
9263
+ var z = {}, G = 0;
9264
+ return X.forEach(function(K, ue) {
9265
9265
  if (I) {
9266
9266
  var ge = !1, he = 0;
9267
- K.forEach(function(xe, Ie) {
9268
- !ge && !z[he] && (ge = re(ce, Ie, W, he, X, K, oe) && re(ee, xe, ce, Ie, X, K, oe)) && (z[he] = !0), he++;
9269
- }), W++, I = ge;
9267
+ J.forEach(function(xe, Ie) {
9268
+ !ge && !z[he] && (ge = re(ue, Ie, G, he, X, J, oe) && re(K, xe, ue, Ie, X, J, oe)) && (z[he] = !0), he++;
9269
+ }), G++, I = ge;
9270
9270
  }
9271
9271
  }), I;
9272
9272
  }
9273
9273
  var b = i(L), S = "_owner", E = Object.prototype.hasOwnProperty;
9274
- function C(X, K, re, oe) {
9274
+ function C(X, J, re, oe) {
9275
9275
  var I = Object.keys(X), z = I.length;
9276
- if (Object.keys(K).length !== z)
9276
+ if (Object.keys(J).length !== z)
9277
9277
  return !1;
9278
- for (var W; z-- > 0; ) {
9279
- if (W = I[z], W === S) {
9280
- var ee = !!X.$$typeof, ce = !!K.$$typeof;
9281
- if ((ee || ce) && ee !== ce)
9278
+ for (var G; z-- > 0; ) {
9279
+ if (G = I[z], G === S) {
9280
+ var K = !!X.$$typeof, ue = !!J.$$typeof;
9281
+ if ((K || ue) && K !== ue)
9282
9282
  return !1;
9283
9283
  }
9284
- if (!E.call(K, W) || !re(X[W], K[W], W, W, X, K, oe))
9284
+ if (!E.call(J, G) || !re(X[G], J[G], G, G, X, J, oe))
9285
9285
  return !1;
9286
9286
  }
9287
9287
  return !0;
9288
9288
  }
9289
9289
  var A = i(C);
9290
- function w(X, K) {
9291
- return X.source === K.source && X.flags === K.flags;
9290
+ function w(X, J) {
9291
+ return X.source === J.source && X.flags === J.flags;
9292
9292
  }
9293
- function M(X, K, re, oe) {
9294
- var I = X.size === K.size;
9293
+ function M(X, J, re, oe) {
9294
+ var I = X.size === J.size;
9295
9295
  if (!I)
9296
9296
  return !1;
9297
9297
  if (!X.size)
9298
9298
  return !0;
9299
9299
  var z = {};
9300
- return X.forEach(function(W, ee) {
9300
+ return X.forEach(function(G, K) {
9301
9301
  if (I) {
9302
- var ce = !1, ge = 0;
9303
- K.forEach(function(he, xe) {
9304
- !ce && !z[ge] && (ce = re(W, he, ee, xe, X, K, oe)) && (z[ge] = !0), ge++;
9305
- }), I = ce;
9302
+ var ue = !1, ge = 0;
9303
+ J.forEach(function(he, xe) {
9304
+ !ue && !z[ge] && (ue = re(G, he, K, xe, X, J, oe)) && (z[ge] = !0), ge++;
9305
+ }), I = ue;
9306
9306
  }
9307
9307
  }), I;
9308
9308
  }
@@ -9323,37 +9323,37 @@ function aT() {
9323
9323
  areSetsEqual: P,
9324
9324
  createIsNestedEqual: n
9325
9325
  }), R = y(N);
9326
- function V(X, K) {
9327
- return R(X, K, void 0);
9326
+ function V(X, J) {
9327
+ return R(X, J, void 0);
9328
9328
  }
9329
9329
  var _ = y(a(N, { createIsNestedEqual: function() {
9330
9330
  return l;
9331
9331
  } }));
9332
- function D(X, K) {
9333
- return _(X, K, void 0);
9332
+ function D(X, J) {
9333
+ return _(X, J, void 0);
9334
9334
  }
9335
9335
  var Z = y($);
9336
- function k(X, K) {
9337
- return Z(X, K, /* @__PURE__ */ new WeakMap());
9336
+ function k(X, J) {
9337
+ return Z(X, J, /* @__PURE__ */ new WeakMap());
9338
9338
  }
9339
- var te = y(a($, {
9339
+ var ee = y(a($, {
9340
9340
  createIsNestedEqual: function() {
9341
9341
  return l;
9342
9342
  }
9343
9343
  }));
9344
- function ae(X, K) {
9345
- return te(X, K, /* @__PURE__ */ new WeakMap());
9344
+ function ae(X, J) {
9345
+ return ee(X, J, /* @__PURE__ */ new WeakMap());
9346
9346
  }
9347
9347
  function ie(X) {
9348
9348
  return y(a(N, X(N)));
9349
9349
  }
9350
- function G(X) {
9351
- var K = y(a($, X($)));
9350
+ function W(X) {
9351
+ var J = y(a($, X($)));
9352
9352
  return function(re, oe, I) {
9353
- return I === void 0 && (I = /* @__PURE__ */ new WeakMap()), K(re, oe, I);
9353
+ return I === void 0 && (I = /* @__PURE__ */ new WeakMap()), J(re, oe, I);
9354
9354
  };
9355
9355
  }
9356
- r.circularDeepEqual = k, r.circularShallowEqual = ae, r.createCustomCircularEqual = G, r.createCustomEqual = ie, r.deepEqual = V, r.sameValueZeroEqual = l, r.shallowEqual = D, Object.defineProperty(r, "__esModule", { value: !0 });
9356
+ r.circularDeepEqual = k, r.circularShallowEqual = ae, r.createCustomCircularEqual = W, r.createCustomEqual = ie, r.deepEqual = V, r.sameValueZeroEqual = l, r.shallowEqual = D, Object.defineProperty(r, "__esModule", { value: !0 });
9357
9357
  });
9358
9358
  }(_a, _a.exports)), _a.exports;
9359
9359
  }
@@ -9387,33 +9387,33 @@ function Y6() {
9387
9387
  if (vd) return Ze;
9388
9388
  vd = 1, Object.defineProperty(Ze, "__esModule", {
9389
9389
  value: !0
9390
- }), Ze.bottom = i, Ze.childrenEqual = u, Ze.cloneLayout = a, Ze.cloneLayoutItem = l, Ze.collides = Q, Ze.compact = T, Ze.compactItem = p, Ze.compactType = K, Ze.correctBounds = g, Ze.fastPositionEqual = c, Ze.fastRGLPropsEqual = void 0, Ze.getAllCollisions = y, Ze.getFirstCollision = m, Ze.getLayoutItem = d, Ze.getStatics = x, Ze.modifyLayout = o, Ze.moveElement = O, Ze.moveElementAwayFromCollision = v, Ze.noop = void 0, Ze.perc = L, Ze.resizeItemInDirection = D, Ze.setTopLeft = k, Ze.setTransform = Z, Ze.sortLayoutItems = te, Ze.sortLayoutItemsByColRow = ie, Ze.sortLayoutItemsByRowCol = ae, Ze.synchronizeLayoutWithChildren = G, Ze.validateLayout = X, Ze.withLayoutItem = s;
9390
+ }), Ze.bottom = i, Ze.childrenEqual = u, Ze.cloneLayout = a, Ze.cloneLayoutItem = l, Ze.collides = Q, Ze.compact = T, Ze.compactItem = p, Ze.compactType = J, Ze.correctBounds = g, Ze.fastPositionEqual = c, Ze.fastRGLPropsEqual = void 0, Ze.getAllCollisions = y, Ze.getFirstCollision = m, Ze.getLayoutItem = d, Ze.getStatics = x, Ze.modifyLayout = o, Ze.moveElement = O, Ze.moveElementAwayFromCollision = v, Ze.noop = void 0, Ze.perc = L, Ze.resizeItemInDirection = D, Ze.setTopLeft = k, Ze.setTransform = Z, Ze.sortLayoutItems = ee, Ze.sortLayoutItemsByColRow = ie, Ze.sortLayoutItemsByRowCol = ae, Ze.synchronizeLayoutWithChildren = W, Ze.validateLayout = X, Ze.withLayoutItem = s;
9391
9391
  var t = /* @__PURE__ */ aT(), e = r(A2);
9392
9392
  function r(I) {
9393
9393
  return I && I.__esModule ? I : { default: I };
9394
9394
  }
9395
9395
  const n = process.env.NODE_ENV === "production";
9396
9396
  function i(I) {
9397
- let z = 0, W;
9398
- for (let ee = 0, ce = I.length; ee < ce; ee++)
9399
- W = I[ee].y + I[ee].h, W > z && (z = W);
9397
+ let z = 0, G;
9398
+ for (let K = 0, ue = I.length; K < ue; K++)
9399
+ G = I[K].y + I[K].h, G > z && (z = G);
9400
9400
  return z;
9401
9401
  }
9402
9402
  function a(I) {
9403
9403
  const z = Array(I.length);
9404
- for (let W = 0, ee = I.length; W < ee; W++)
9405
- z[W] = l(I[W]);
9404
+ for (let G = 0, K = I.length; G < K; G++)
9405
+ z[G] = l(I[G]);
9406
9406
  return z;
9407
9407
  }
9408
9408
  function o(I, z) {
9409
- const W = Array(I.length);
9410
- for (let ee = 0, ce = I.length; ee < ce; ee++)
9411
- z.i === I[ee].i ? W[ee] = z : W[ee] = I[ee];
9412
- return W;
9409
+ const G = Array(I.length);
9410
+ for (let K = 0, ue = I.length; K < ue; K++)
9411
+ z.i === I[K].i ? G[K] = z : G[K] = I[K];
9412
+ return G;
9413
9413
  }
9414
- function s(I, z, W) {
9415
- let ee = d(I, z);
9416
- return ee ? (ee = W(l(ee)), I = o(I, ee), [I, ee]) : [I, null];
9414
+ function s(I, z, G) {
9415
+ let K = d(I, z);
9416
+ return K ? (K = G(l(K)), I = o(I, K), [I, K]) : [I, null];
9417
9417
  }
9418
9418
  function l(I) {
9419
9419
  return {
@@ -9436,7 +9436,7 @@ function Y6() {
9436
9436
  };
9437
9437
  }
9438
9438
  function u(I, z) {
9439
- return (0, t.deepEqual)(e.default.Children.map(I, (W) => W?.key), e.default.Children.map(z, (W) => W?.key)) && (0, t.deepEqual)(e.default.Children.map(I, (W) => W?.props["data-grid"]), e.default.Children.map(z, (W) => W?.props["data-grid"]));
9439
+ return (0, t.deepEqual)(e.default.Children.map(I, (G) => G?.key), e.default.Children.map(z, (G) => G?.key)) && (0, t.deepEqual)(e.default.Children.map(I, (G) => G?.props["data-grid"]), e.default.Children.map(z, (G) => G?.props["data-grid"]));
9440
9440
  }
9441
9441
  Ze.fastRGLPropsEqual = fq();
9442
9442
  function c(I, z) {
@@ -9445,11 +9445,11 @@ function Y6() {
9445
9445
  function Q(I, z) {
9446
9446
  return !(I.i === z.i || I.x + I.w <= z.x || I.x >= z.x + z.w || I.y + I.h <= z.y || I.y >= z.y + z.h);
9447
9447
  }
9448
- function T(I, z, W, ee) {
9449
- const ce = x(I), ge = te(I, z), he = Array(I.length);
9448
+ function T(I, z, G, K) {
9449
+ const ue = x(I), ge = ee(I, z), he = Array(I.length);
9450
9450
  for (let xe = 0, Ie = ge.length; xe < Ie; xe++) {
9451
9451
  let Qt = l(ge[xe]);
9452
- Qt.static || (Qt = p(ce, Qt, z, W, ge, ee), ce.push(Qt)), he[I.indexOf(ge[xe])] = Qt, Qt.moved = !1;
9452
+ Qt.static || (Qt = p(ue, Qt, z, G, ge, K), ue.push(Qt)), he[I.indexOf(ge[xe])] = Qt, Qt.moved = !1;
9453
9453
  }
9454
9454
  return he;
9455
9455
  }
@@ -9457,21 +9457,21 @@ function Y6() {
9457
9457
  x: "w",
9458
9458
  y: "h"
9459
9459
  };
9460
- function h(I, z, W, ee) {
9461
- const ce = f[ee];
9462
- z[ee] += 1;
9460
+ function h(I, z, G, K) {
9461
+ const ue = f[K];
9462
+ z[K] += 1;
9463
9463
  const ge = I.map((he) => he.i).indexOf(z.i);
9464
9464
  for (let he = ge + 1; he < I.length; he++) {
9465
9465
  const xe = I[he];
9466
9466
  if (!xe.static) {
9467
9467
  if (xe.y > z.y + z.h) break;
9468
- Q(z, xe) && h(I, xe, W + z[ce], ee);
9468
+ Q(z, xe) && h(I, xe, G + z[ue], K);
9469
9469
  }
9470
9470
  }
9471
- z[ee] = W;
9471
+ z[K] = G;
9472
9472
  }
9473
- function p(I, z, W, ee, ce, ge) {
9474
- const he = W === "vertical", xe = W === "horizontal";
9473
+ function p(I, z, G, K, ue, ge) {
9474
+ const he = G === "vertical", xe = G === "horizontal";
9475
9475
  if (he)
9476
9476
  for (z.y = Math.min(i(I), z.y); z.y > 0 && !m(I, z); )
9477
9477
  z.y--;
@@ -9479,44 +9479,44 @@ function Y6() {
9479
9479
  for (; z.x > 0 && !m(I, z); )
9480
9480
  z.x--;
9481
9481
  let Ie;
9482
- for (; (Ie = m(I, z)) && !(W === null && ge); )
9483
- if (xe ? h(ce, z, Ie.x + Ie.w, "x") : h(ce, z, Ie.y + Ie.h, "y"), xe && z.x + z.w > ee)
9484
- for (z.x = ee - z.w, z.y++; z.x > 0 && !m(I, z); )
9482
+ for (; (Ie = m(I, z)) && !(G === null && ge); )
9483
+ if (xe ? h(ue, z, Ie.x + Ie.w, "x") : h(ue, z, Ie.y + Ie.h, "y"), xe && z.x + z.w > K)
9484
+ for (z.x = K - z.w, z.y++; z.x > 0 && !m(I, z); )
9485
9485
  z.x--;
9486
9486
  return z.y = Math.max(z.y, 0), z.x = Math.max(z.x, 0), z;
9487
9487
  }
9488
9488
  function g(I, z) {
9489
- const W = x(I);
9490
- for (let ee = 0, ce = I.length; ee < ce; ee++) {
9491
- const ge = I[ee];
9492
- if (ge.x + ge.w > z.cols && (ge.x = z.cols - ge.w), ge.x < 0 && (ge.x = 0, ge.w = z.cols), !ge.static) W.push(ge);
9489
+ const G = x(I);
9490
+ for (let K = 0, ue = I.length; K < ue; K++) {
9491
+ const ge = I[K];
9492
+ if (ge.x + ge.w > z.cols && (ge.x = z.cols - ge.w), ge.x < 0 && (ge.x = 0, ge.w = z.cols), !ge.static) G.push(ge);
9493
9493
  else
9494
- for (; m(W, ge); )
9494
+ for (; m(G, ge); )
9495
9495
  ge.y++;
9496
9496
  }
9497
9497
  return I;
9498
9498
  }
9499
9499
  function d(I, z) {
9500
- for (let W = 0, ee = I.length; W < ee; W++)
9501
- if (I[W].i === z) return I[W];
9500
+ for (let G = 0, K = I.length; G < K; G++)
9501
+ if (I[G].i === z) return I[G];
9502
9502
  }
9503
9503
  function m(I, z) {
9504
- for (let W = 0, ee = I.length; W < ee; W++)
9505
- if (Q(I[W], z)) return I[W];
9504
+ for (let G = 0, K = I.length; G < K; G++)
9505
+ if (Q(I[G], z)) return I[G];
9506
9506
  }
9507
9507
  function y(I, z) {
9508
- return I.filter((W) => Q(W, z));
9508
+ return I.filter((G) => Q(G, z));
9509
9509
  }
9510
9510
  function x(I) {
9511
9511
  return I.filter((z) => z.static);
9512
9512
  }
9513
- function O(I, z, W, ee, ce, ge, he, xe, Ie) {
9514
- if (z.static && z.isDraggable !== !0 || z.y === ee && z.x === W) return I;
9515
- `${z.i}${String(W)}${String(ee)}${z.x}${z.y}`;
9513
+ function O(I, z, G, K, ue, ge, he, xe, Ie) {
9514
+ if (z.static && z.isDraggable !== !0 || z.y === K && z.x === G) return I;
9515
+ `${z.i}${String(G)}${String(K)}${z.x}${z.y}`;
9516
9516
  const Qt = z.x, K2 = z.y;
9517
- typeof W == "number" && (z.x = W), typeof ee == "number" && (z.y = ee), z.moved = !0;
9518
- let Ct = te(I, he);
9519
- (he === "vertical" && typeof ee == "number" ? K2 >= ee : he === "horizontal" && typeof W == "number" ? Qt >= W : !1) && (Ct = Ct.reverse());
9517
+ typeof G == "number" && (z.x = G), typeof K == "number" && (z.y = K), z.moved = !0;
9518
+ let Ct = ee(I, he);
9519
+ (he === "vertical" && typeof K == "number" ? K2 >= K : he === "horizontal" && typeof G == "number" ? Qt >= G : !1) && (Ct = Ct.reverse());
9520
9520
  const B3 = y(Ct, z), se = B3.length > 0;
9521
9521
  if (se && Ie)
9522
9522
  return a(I);
@@ -9524,87 +9524,87 @@ function Y6() {
9524
9524
  return `${z.i}`, z.x = Qt, z.y = K2, z.moved = !1, I;
9525
9525
  for (let pe = 0, Me = B3.length; pe < Me; pe++) {
9526
9526
  const De = B3[pe];
9527
- `${z.i}${z.x}${z.y}${De.i}${De.x}${De.y}`, !De.moved && (De.static ? I = v(I, De, z, ce, he) : I = v(I, z, De, ce, he));
9527
+ `${z.i}${z.x}${z.y}${De.i}${De.x}${De.y}`, !De.moved && (De.static ? I = v(I, De, z, ue, he) : I = v(I, z, De, ue, he));
9528
9528
  }
9529
9529
  return I;
9530
9530
  }
9531
- function v(I, z, W, ee, ce, ge) {
9532
- const he = ce === "horizontal", xe = ce === "vertical", Ie = z.static;
9533
- if (ee) {
9534
- ee = !1;
9531
+ function v(I, z, G, K, ue, ge) {
9532
+ const he = ue === "horizontal", xe = ue === "vertical", Ie = z.static;
9533
+ if (K) {
9534
+ K = !1;
9535
9535
  const Ct = {
9536
- x: he ? Math.max(z.x - W.w, 0) : W.x,
9537
- y: xe ? Math.max(z.y - W.h, 0) : W.y,
9538
- w: W.w,
9539
- h: W.h,
9536
+ x: he ? Math.max(z.x - G.w, 0) : G.x,
9537
+ y: xe ? Math.max(z.y - G.h, 0) : G.y,
9538
+ w: G.w,
9539
+ h: G.h,
9540
9540
  i: "-1"
9541
9541
  }, gn = m(I, Ct), B3 = gn && gn.y + gn.h > z.y, se = gn && z.x + z.w > gn.x;
9542
9542
  if (gn) {
9543
9543
  if (B3 && xe)
9544
- return O(I, W, void 0, z.y + 1, ee, Ie, ce);
9545
- if (B3 && ce == null)
9546
- return z.y = W.y, W.y = W.y + W.h, I;
9544
+ return O(I, G, void 0, z.y + 1, K, Ie, ue);
9545
+ if (B3 && ue == null)
9546
+ return z.y = G.y, G.y = G.y + G.h, I;
9547
9547
  if (se && he)
9548
- return O(I, z, W.x, void 0, ee, Ie, ce);
9549
- } else return `${W.i}${Ct.x}${Ct.y}`, O(I, W, he ? Ct.x : void 0, xe ? Ct.y : void 0, ee, Ie, ce);
9548
+ return O(I, z, G.x, void 0, K, Ie, ue);
9549
+ } else return `${G.i}${Ct.x}${Ct.y}`, O(I, G, he ? Ct.x : void 0, xe ? Ct.y : void 0, K, Ie, ue);
9550
9550
  }
9551
- const Qt = he ? W.x + 1 : void 0, K2 = xe ? W.y + 1 : void 0;
9552
- return Qt == null && K2 == null ? I : O(I, W, he ? W.x + 1 : void 0, xe ? W.y + 1 : void 0, ee, Ie, ce);
9551
+ const Qt = he ? G.x + 1 : void 0, K2 = xe ? G.y + 1 : void 0;
9552
+ return Qt == null && K2 == null ? I : O(I, G, he ? G.x + 1 : void 0, xe ? G.y + 1 : void 0, K, Ie, ue);
9553
9553
  }
9554
9554
  function L(I) {
9555
9555
  return I * 100 + "%";
9556
9556
  }
9557
- const b = (I, z, W, ee) => I + W > ee ? z : W, S = (I, z, W) => I < 0 ? z : W, E = (I) => Math.max(0, I), C = (I) => Math.max(0, I), A = (I, z, W) => {
9557
+ const b = (I, z, G, K) => I + G > K ? z : G, S = (I, z, G) => I < 0 ? z : G, E = (I) => Math.max(0, I), C = (I) => Math.max(0, I), A = (I, z, G) => {
9558
9558
  let {
9559
- left: ee,
9560
- height: ce,
9559
+ left: K,
9560
+ height: ue,
9561
9561
  width: ge
9562
9562
  } = z;
9563
- const he = I.top - (ce - I.height);
9563
+ const he = I.top - (ue - I.height);
9564
9564
  return {
9565
- left: ee,
9565
+ left: K,
9566
9566
  width: ge,
9567
- height: S(he, I.height, ce),
9567
+ height: S(he, I.height, ue),
9568
9568
  top: C(he)
9569
9569
  };
9570
- }, w = (I, z, W) => {
9570
+ }, w = (I, z, G) => {
9571
9571
  let {
9572
- top: ee,
9573
- left: ce,
9572
+ top: K,
9573
+ left: ue,
9574
9574
  height: ge,
9575
9575
  width: he
9576
9576
  } = z;
9577
9577
  return {
9578
- top: ee,
9578
+ top: K,
9579
9579
  height: ge,
9580
- width: b(I.left, I.width, he, W),
9581
- left: E(ce)
9580
+ width: b(I.left, I.width, he, G),
9581
+ left: E(ue)
9582
9582
  };
9583
- }, M = (I, z, W) => {
9583
+ }, M = (I, z, G) => {
9584
9584
  let {
9585
- top: ee,
9586
- height: ce,
9585
+ top: K,
9586
+ height: ue,
9587
9587
  width: ge
9588
9588
  } = z;
9589
9589
  const he = I.left - (ge - I.width);
9590
9590
  return {
9591
- height: ce,
9592
- width: he < 0 ? I.width : b(I.left, I.width, ge, W),
9593
- top: C(ee),
9591
+ height: ue,
9592
+ width: he < 0 ? I.width : b(I.left, I.width, ge, G),
9593
+ top: C(K),
9594
9594
  left: E(he)
9595
9595
  };
9596
- }, P = (I, z, W) => {
9596
+ }, P = (I, z, G) => {
9597
9597
  let {
9598
- top: ee,
9599
- left: ce,
9598
+ top: K,
9599
+ left: ue,
9600
9600
  height: ge,
9601
9601
  width: he
9602
9602
  } = z;
9603
9603
  return {
9604
9604
  width: he,
9605
- left: ce,
9606
- height: S(ee, I.height, ge),
9607
- top: C(ee)
9605
+ left: ue,
9606
+ height: S(K, I.height, ge),
9607
+ top: C(K)
9608
9608
  };
9609
9609
  }, _ = {
9610
9610
  n: A,
@@ -9624,61 +9624,61 @@ function Y6() {
9624
9624
  return A(arguments.length <= 0 ? void 0 : arguments[0], M(...arguments));
9625
9625
  }
9626
9626
  };
9627
- function D(I, z, W, ee) {
9628
- const ce = _[I];
9629
- return ce ? ce(z, {
9627
+ function D(I, z, G, K) {
9628
+ const ue = _[I];
9629
+ return ue ? ue(z, {
9630
9630
  ...z,
9631
- ...W
9632
- }, ee) : W;
9631
+ ...G
9632
+ }, K) : G;
9633
9633
  }
9634
9634
  function Z(I) {
9635
9635
  let {
9636
9636
  top: z,
9637
- left: W,
9638
- width: ee,
9639
- height: ce
9637
+ left: G,
9638
+ width: K,
9639
+ height: ue
9640
9640
  } = I;
9641
- const ge = `translate(${W}px,${z}px)`;
9641
+ const ge = `translate(${G}px,${z}px)`;
9642
9642
  return {
9643
9643
  transform: ge,
9644
9644
  WebkitTransform: ge,
9645
9645
  MozTransform: ge,
9646
9646
  msTransform: ge,
9647
9647
  OTransform: ge,
9648
- width: `${ee}px`,
9649
- height: `${ce}px`,
9648
+ width: `${K}px`,
9649
+ height: `${ue}px`,
9650
9650
  position: "absolute"
9651
9651
  };
9652
9652
  }
9653
9653
  function k(I) {
9654
9654
  let {
9655
9655
  top: z,
9656
- left: W,
9657
- width: ee,
9658
- height: ce
9656
+ left: G,
9657
+ width: K,
9658
+ height: ue
9659
9659
  } = I;
9660
9660
  return {
9661
9661
  top: `${z}px`,
9662
- left: `${W}px`,
9663
- width: `${ee}px`,
9664
- height: `${ce}px`,
9662
+ left: `${G}px`,
9663
+ width: `${K}px`,
9664
+ height: `${ue}px`,
9665
9665
  position: "absolute"
9666
9666
  };
9667
9667
  }
9668
- function te(I, z) {
9668
+ function ee(I, z) {
9669
9669
  return z === "horizontal" ? ie(I) : z === "vertical" ? ae(I) : I;
9670
9670
  }
9671
9671
  function ae(I) {
9672
- return I.slice(0).sort(function(z, W) {
9673
- return z.y > W.y || z.y === W.y && z.x > W.x ? 1 : z.y === W.y && z.x === W.x ? 0 : -1;
9672
+ return I.slice(0).sort(function(z, G) {
9673
+ return z.y > G.y || z.y === G.y && z.x > G.x ? 1 : z.y === G.y && z.x === G.x ? 0 : -1;
9674
9674
  });
9675
9675
  }
9676
9676
  function ie(I) {
9677
- return I.slice(0).sort(function(z, W) {
9678
- return z.x > W.x || z.x === W.x && z.y > W.y ? 1 : -1;
9677
+ return I.slice(0).sort(function(z, G) {
9678
+ return z.x > G.x || z.x === G.x && z.y > G.y ? 1 : -1;
9679
9679
  });
9680
9680
  }
9681
- function G(I, z, W, ee, ce) {
9681
+ function W(I, z, G, K, ue) {
9682
9682
  I = I || [];
9683
9683
  const ge = [];
9684
9684
  e.default.Children.forEach(z, (xe) => {
@@ -9696,31 +9696,31 @@ function Y6() {
9696
9696
  }));
9697
9697
  });
9698
9698
  const he = g(ge, {
9699
- cols: W
9699
+ cols: G
9700
9700
  });
9701
- return ce ? he : T(he, ee, W);
9701
+ return ue ? he : T(he, K, G);
9702
9702
  }
9703
9703
  function X(I) {
9704
9704
  let z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout";
9705
- const W = ["x", "y", "w", "h"];
9705
+ const G = ["x", "y", "w", "h"];
9706
9706
  if (!Array.isArray(I)) throw new Error(z + " must be an array!");
9707
- for (let ee = 0, ce = I.length; ee < ce; ee++) {
9708
- const ge = I[ee];
9709
- for (let he = 0; he < W.length; he++) {
9710
- const xe = W[he], Ie = ge[xe];
9707
+ for (let K = 0, ue = I.length; K < ue; K++) {
9708
+ const ge = I[K];
9709
+ for (let he = 0; he < G.length; he++) {
9710
+ const xe = G[he], Ie = ge[xe];
9711
9711
  if (typeof Ie != "number" || Number.isNaN(Ie))
9712
- throw new Error(`ReactGridLayout: ${z}[${ee}].${xe} must be a number! Received: ${Ie} (${typeof Ie})`);
9712
+ throw new Error(`ReactGridLayout: ${z}[${K}].${xe} must be a number! Received: ${Ie} (${typeof Ie})`);
9713
9713
  }
9714
9714
  if (typeof ge.i < "u" && typeof ge.i != "string")
9715
- throw new Error(`ReactGridLayout: ${z}[${ee}].i must be a string! Received: ${ge.i} (${typeof ge.i})`);
9715
+ throw new Error(`ReactGridLayout: ${z}[${K}].i must be a string! Received: ${ge.i} (${typeof ge.i})`);
9716
9716
  }
9717
9717
  }
9718
- function K(I) {
9718
+ function J(I) {
9719
9719
  const {
9720
9720
  verticalCompact: z,
9721
- compactType: W
9721
+ compactType: G
9722
9722
  } = I || {};
9723
- return z === !1 ? null : W;
9723
+ return z === !1 ? null : G;
9724
9724
  }
9725
9725
  function re() {
9726
9726
  }
@@ -9883,24 +9883,24 @@ function dq() {
9883
9883
  var z = I.$$typeof;
9884
9884
  switch (z) {
9885
9885
  case e:
9886
- var W = I.type;
9887
- switch (W) {
9886
+ var G = I.type;
9887
+ switch (G) {
9888
9888
  case l:
9889
9889
  case u:
9890
9890
  case n:
9891
9891
  case a:
9892
9892
  case i:
9893
9893
  case Q:
9894
- return W;
9894
+ return G;
9895
9895
  default:
9896
- var ee = W && W.$$typeof;
9897
- switch (ee) {
9896
+ var K = G && G.$$typeof;
9897
+ switch (K) {
9898
9898
  case s:
9899
9899
  case c:
9900
9900
  case h:
9901
9901
  case f:
9902
9902
  case o:
9903
- return ee;
9903
+ return K;
9904
9904
  default:
9905
9905
  return z;
9906
9906
  }
@@ -9926,7 +9926,7 @@ function dq() {
9926
9926
  function k(I) {
9927
9927
  return typeof I == "object" && I !== null && I.$$typeof === e;
9928
9928
  }
9929
- function te(I) {
9929
+ function ee(I) {
9930
9930
  return x(I) === c;
9931
9931
  }
9932
9932
  function ae(I) {
@@ -9935,13 +9935,13 @@ function dq() {
9935
9935
  function ie(I) {
9936
9936
  return x(I) === h;
9937
9937
  }
9938
- function G(I) {
9938
+ function W(I) {
9939
9939
  return x(I) === f;
9940
9940
  }
9941
9941
  function X(I) {
9942
9942
  return x(I) === r;
9943
9943
  }
9944
- function K(I) {
9944
+ function J(I) {
9945
9945
  return x(I) === a;
9946
9946
  }
9947
9947
  function re(I) {
@@ -9950,7 +9950,7 @@ function dq() {
9950
9950
  function oe(I) {
9951
9951
  return x(I) === Q;
9952
9952
  }
9953
- ot.AsyncMode = O, ot.ConcurrentMode = v, ot.ContextConsumer = L, ot.ContextProvider = b, ot.Element = S, ot.ForwardRef = E, ot.Fragment = C, ot.Lazy = A, ot.Memo = w, ot.Portal = M, ot.Profiler = P, ot.StrictMode = N, ot.Suspense = $, ot.isAsyncMode = V, ot.isConcurrentMode = _, ot.isContextConsumer = D, ot.isContextProvider = Z, ot.isElement = k, ot.isForwardRef = te, ot.isFragment = ae, ot.isLazy = ie, ot.isMemo = G, ot.isPortal = X, ot.isProfiler = K, ot.isStrictMode = re, ot.isSuspense = oe, ot.isValidElementType = y, ot.typeOf = x;
9953
+ ot.AsyncMode = O, ot.ConcurrentMode = v, ot.ContextConsumer = L, ot.ContextProvider = b, ot.Element = S, ot.ForwardRef = E, ot.Fragment = C, ot.Lazy = A, ot.Memo = w, ot.Portal = M, ot.Profiler = P, ot.StrictMode = N, ot.Suspense = $, ot.isAsyncMode = V, ot.isConcurrentMode = _, ot.isContextConsumer = D, ot.isContextProvider = Z, ot.isElement = k, ot.isForwardRef = ee, ot.isFragment = ae, ot.isLazy = ie, ot.isMemo = W, ot.isPortal = X, ot.isProfiler = J, ot.isStrictMode = re, ot.isSuspense = oe, ot.isValidElementType = y, ot.typeOf = x;
9954
9954
  }()), ot;
9955
9955
  }
9956
9956
  var Sd;
@@ -10123,33 +10123,33 @@ function gq() {
10123
10123
  function g(_) {
10124
10124
  if (process.env.NODE_ENV !== "production")
10125
10125
  var D = {}, Z = 0;
10126
- function k(ae, ie, G, X, K, re, oe) {
10127
- if (X = X || T, re = re || G, oe !== r) {
10126
+ function k(ae, ie, W, X, J, re, oe) {
10127
+ if (X = X || T, re = re || W, oe !== r) {
10128
10128
  if (l) {
10129
10129
  var I = new Error(
10130
10130
  "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"
10131
10131
  );
10132
10132
  throw I.name = "Invariant Violation", I;
10133
10133
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
10134
- var z = X + ":" + G;
10134
+ var z = X + ":" + W;
10135
10135
  !D[z] && // Avoid spamming the console because they are often not actionable except for lib authors
10136
10136
  Z < 3 && (a(
10137
10137
  "You are manually calling a React.PropTypes validation function for the `" + re + "` prop on `" + X + "`. 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."
10138
10138
  ), D[z] = !0, Z++);
10139
10139
  }
10140
10140
  }
10141
- return ie[G] == null ? ae ? ie[G] === null ? new p("The " + K + " `" + re + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new p("The " + K + " `" + re + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : _(ie, G, X, K, re);
10141
+ return ie[W] == null ? ae ? ie[W] === null ? new p("The " + J + " `" + re + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new p("The " + J + " `" + re + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : _(ie, W, X, J, re);
10142
10142
  }
10143
- var te = k.bind(null, !1);
10144
- return te.isRequired = k.bind(null, !0), te;
10143
+ var ee = k.bind(null, !1);
10144
+ return ee.isRequired = k.bind(null, !0), ee;
10145
10145
  }
10146
10146
  function d(_) {
10147
- function D(Z, k, te, ae, ie, G) {
10148
- var X = Z[k], K = N(X);
10149
- if (K !== _) {
10147
+ function D(Z, k, ee, ae, ie, W) {
10148
+ var X = Z[k], J = N(X);
10149
+ if (J !== _) {
10150
10150
  var re = $(X);
10151
10151
  return new p(
10152
- "Invalid " + ae + " `" + ie + "` of type " + ("`" + re + "` supplied to `" + te + "`, expected ") + ("`" + _ + "`."),
10152
+ "Invalid " + ae + " `" + ie + "` of type " + ("`" + re + "` supplied to `" + ee + "`, expected ") + ("`" + _ + "`."),
10153
10153
  { expectedType: _ }
10154
10154
  );
10155
10155
  }
@@ -10161,16 +10161,16 @@ function gq() {
10161
10161
  return g(o);
10162
10162
  }
10163
10163
  function y(_) {
10164
- function D(Z, k, te, ae, ie) {
10164
+ function D(Z, k, ee, ae, ie) {
10165
10165
  if (typeof _ != "function")
10166
- return new p("Property `" + ie + "` of component `" + te + "` has invalid PropType notation inside arrayOf.");
10167
- var G = Z[k];
10168
- if (!Array.isArray(G)) {
10169
- var X = N(G);
10170
- return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + te + "`, expected an array."));
10171
- }
10172
- for (var K = 0; K < G.length; K++) {
10173
- var re = _(G, K, te, ae, ie + "[" + K + "]", r);
10166
+ return new p("Property `" + ie + "` of component `" + ee + "` has invalid PropType notation inside arrayOf.");
10167
+ var W = Z[k];
10168
+ if (!Array.isArray(W)) {
10169
+ var X = N(W);
10170
+ return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + ee + "`, expected an array."));
10171
+ }
10172
+ for (var J = 0; J < W.length; J++) {
10173
+ var re = _(W, J, ee, ae, ie + "[" + J + "]", r);
10174
10174
  if (re instanceof Error)
10175
10175
  return re;
10176
10176
  }
@@ -10179,32 +10179,32 @@ function gq() {
10179
10179
  return g(D);
10180
10180
  }
10181
10181
  function x() {
10182
- function _(D, Z, k, te, ae) {
10182
+ function _(D, Z, k, ee, ae) {
10183
10183
  var ie = D[Z];
10184
10184
  if (!s(ie)) {
10185
- var G = N(ie);
10186
- return new p("Invalid " + te + " `" + ae + "` of type " + ("`" + G + "` supplied to `" + k + "`, expected a single ReactElement."));
10185
+ var W = N(ie);
10186
+ return new p("Invalid " + ee + " `" + ae + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement."));
10187
10187
  }
10188
10188
  return null;
10189
10189
  }
10190
10190
  return g(_);
10191
10191
  }
10192
10192
  function O() {
10193
- function _(D, Z, k, te, ae) {
10193
+ function _(D, Z, k, ee, ae) {
10194
10194
  var ie = D[Z];
10195
10195
  if (!t.isValidElementType(ie)) {
10196
- var G = N(ie);
10197
- return new p("Invalid " + te + " `" + ae + "` of type " + ("`" + G + "` supplied to `" + k + "`, expected a single ReactElement type."));
10196
+ var W = N(ie);
10197
+ return new p("Invalid " + ee + " `" + ae + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement type."));
10198
10198
  }
10199
10199
  return null;
10200
10200
  }
10201
10201
  return g(_);
10202
10202
  }
10203
10203
  function v(_) {
10204
- function D(Z, k, te, ae, ie) {
10204
+ function D(Z, k, ee, ae, ie) {
10205
10205
  if (!(Z[k] instanceof _)) {
10206
- var G = _.name || T, X = V(Z[k]);
10207
- return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + te + "`, expected ") + ("instance of `" + G + "`."));
10206
+ var W = _.name || T, X = V(Z[k]);
10207
+ return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + ee + "`, expected ") + ("instance of `" + W + "`."));
10208
10208
  }
10209
10209
  return null;
10210
10210
  }
@@ -10215,28 +10215,28 @@ function gq() {
10215
10215
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
10216
10216
  "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])."
10217
10217
  ) : a("Invalid argument supplied to oneOf, expected an array.")), o;
10218
- function D(Z, k, te, ae, ie) {
10219
- for (var G = Z[k], X = 0; X < _.length; X++)
10220
- if (h(G, _[X]))
10218
+ function D(Z, k, ee, ae, ie) {
10219
+ for (var W = Z[k], X = 0; X < _.length; X++)
10220
+ if (h(W, _[X]))
10221
10221
  return null;
10222
- var K = JSON.stringify(_, function(oe, I) {
10222
+ var J = JSON.stringify(_, function(oe, I) {
10223
10223
  var z = $(I);
10224
10224
  return z === "symbol" ? String(I) : I;
10225
10225
  });
10226
- return new p("Invalid " + ae + " `" + ie + "` of value `" + String(G) + "` " + ("supplied to `" + te + "`, expected one of " + K + "."));
10226
+ return new p("Invalid " + ae + " `" + ie + "` of value `" + String(W) + "` " + ("supplied to `" + ee + "`, expected one of " + J + "."));
10227
10227
  }
10228
10228
  return g(D);
10229
10229
  }
10230
10230
  function b(_) {
10231
- function D(Z, k, te, ae, ie) {
10231
+ function D(Z, k, ee, ae, ie) {
10232
10232
  if (typeof _ != "function")
10233
- return new p("Property `" + ie + "` of component `" + te + "` has invalid PropType notation inside objectOf.");
10234
- var G = Z[k], X = N(G);
10233
+ return new p("Property `" + ie + "` of component `" + ee + "` has invalid PropType notation inside objectOf.");
10234
+ var W = Z[k], X = N(W);
10235
10235
  if (X !== "object")
10236
- return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + te + "`, expected an object."));
10237
- for (var K in G)
10238
- if (n(G, K)) {
10239
- var re = _(G, K, te, ae, ie + "." + K, r);
10236
+ return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + ee + "`, expected an object."));
10237
+ for (var J in W)
10238
+ if (n(W, J)) {
10239
+ var re = _(W, J, ee, ae, ie + "." + J, r);
10240
10240
  if (re instanceof Error)
10241
10241
  return re;
10242
10242
  }
@@ -10254,39 +10254,39 @@ function gq() {
10254
10254
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + R(Z) + " at index " + D + "."
10255
10255
  ), o;
10256
10256
  }
10257
- function k(te, ae, ie, G, X) {
10258
- for (var K = [], re = 0; re < _.length; re++) {
10259
- var oe = _[re], I = oe(te, ae, ie, G, X, r);
10257
+ function k(ee, ae, ie, W, X) {
10258
+ for (var J = [], re = 0; re < _.length; re++) {
10259
+ var oe = _[re], I = oe(ee, ae, ie, W, X, r);
10260
10260
  if (I == null)
10261
10261
  return null;
10262
- I.data && n(I.data, "expectedType") && K.push(I.data.expectedType);
10262
+ I.data && n(I.data, "expectedType") && J.push(I.data.expectedType);
10263
10263
  }
10264
- var z = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
10265
- return new p("Invalid " + G + " `" + X + "` supplied to " + ("`" + ie + "`" + z + "."));
10264
+ var z = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
10265
+ return new p("Invalid " + W + " `" + X + "` supplied to " + ("`" + ie + "`" + z + "."));
10266
10266
  }
10267
10267
  return g(k);
10268
10268
  }
10269
10269
  function E() {
10270
- function _(D, Z, k, te, ae) {
10271
- return M(D[Z]) ? null : new p("Invalid " + te + " `" + ae + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
10270
+ function _(D, Z, k, ee, ae) {
10271
+ return M(D[Z]) ? null : new p("Invalid " + ee + " `" + ae + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
10272
10272
  }
10273
10273
  return g(_);
10274
10274
  }
10275
- function C(_, D, Z, k, te) {
10275
+ function C(_, D, Z, k, ee) {
10276
10276
  return new p(
10277
- (_ || "React class") + ": " + D + " type `" + Z + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + te + "`."
10277
+ (_ || "React class") + ": " + D + " type `" + Z + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ee + "`."
10278
10278
  );
10279
10279
  }
10280
10280
  function A(_) {
10281
- function D(Z, k, te, ae, ie) {
10282
- var G = Z[k], X = N(G);
10281
+ function D(Z, k, ee, ae, ie) {
10282
+ var W = Z[k], X = N(W);
10283
10283
  if (X !== "object")
10284
- return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" + te + "`, expected `object`."));
10285
- for (var K in _) {
10286
- var re = _[K];
10284
+ return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" + ee + "`, expected `object`."));
10285
+ for (var J in _) {
10286
+ var re = _[J];
10287
10287
  if (typeof re != "function")
10288
- return C(te, ae, ie, K, $(re));
10289
- var oe = re(G, K, te, ae, ie + "." + K, r);
10288
+ return C(ee, ae, ie, J, $(re));
10289
+ var oe = re(W, J, ee, ae, ie + "." + J, r);
10290
10290
  if (oe)
10291
10291
  return oe;
10292
10292
  }
@@ -10295,21 +10295,21 @@ function gq() {
10295
10295
  return g(D);
10296
10296
  }
10297
10297
  function w(_) {
10298
- function D(Z, k, te, ae, ie) {
10299
- var G = Z[k], X = N(G);
10298
+ function D(Z, k, ee, ae, ie) {
10299
+ var W = Z[k], X = N(W);
10300
10300
  if (X !== "object")
10301
- return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" + te + "`, expected `object`."));
10302
- var K = e({}, Z[k], _);
10303
- for (var re in K) {
10301
+ return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" + ee + "`, expected `object`."));
10302
+ var J = e({}, Z[k], _);
10303
+ for (var re in J) {
10304
10304
  var oe = _[re];
10305
10305
  if (n(_, re) && typeof oe != "function")
10306
- return C(te, ae, ie, re, $(oe));
10306
+ return C(ee, ae, ie, re, $(oe));
10307
10307
  if (!oe)
10308
10308
  return new p(
10309
- "Invalid " + ae + " `" + ie + "` key `" + re + "` supplied to `" + te + "`.\nBad object: " + JSON.stringify(Z[k], null, " ") + `
10309
+ "Invalid " + ae + " `" + ie + "` key `" + re + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(Z[k], null, " ") + `
10310
10310
  Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
10311
10311
  );
10312
- var I = oe(G, re, te, ae, ie + "." + re, r);
10312
+ var I = oe(W, re, ee, ae, ie + "." + re, r);
10313
10313
  if (I)
10314
10314
  return I;
10315
10315
  }
@@ -10339,8 +10339,8 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
10339
10339
  return !1;
10340
10340
  } else
10341
10341
  for (; !(k = Z.next()).done; ) {
10342
- var te = k.value;
10343
- if (te && !M(te[1]))
10342
+ var ee = k.value;
10343
+ if (ee && !M(ee[1]))
10344
10344
  return !1;
10345
10345
  }
10346
10346
  } else
@@ -11671,8 +11671,8 @@ function SH() {
11671
11671
  L.lastHandleRect = $, N === "w" && (C = -C), P === "n" && (A = -A);
11672
11672
  var _ = L.props.width + (w ? C / L.props.transformScale : 0), D = L.props.height + (M ? A / L.props.transformScale : 0), Z = L.runConstraints(_, D);
11673
11673
  _ = Z[0], D = Z[1];
11674
- var k = _ !== L.props.width || D !== L.props.height, te = typeof L.props[O] == "function" ? L.props[O] : null, ae = O === "onResize" && !k;
11675
- te && !ae && (b.persist == null || b.persist(), te(b, {
11674
+ var k = _ !== L.props.width || D !== L.props.height, ee = typeof L.props[O] == "function" ? L.props[O] : null, ae = O === "onResize" && !k;
11675
+ ee && !ae && (b.persist == null || b.persist(), ee(b, {
11676
11676
  node: E,
11677
11677
  size: {
11678
11678
  width: _,
@@ -14724,12 +14724,12 @@ function rZ(t) {
14724
14724
  } else {
14725
14725
  let D = s.pos - M;
14726
14726
  s.next();
14727
- let Z = [], k = [], te = C >= o ? C : -1, ae = 0, ie = w;
14727
+ let Z = [], k = [], ee = C >= o ? C : -1, ae = 0, ie = w;
14728
14728
  for (; s.pos > D; )
14729
- te >= 0 && s.id == te && s.size >= 0 ? (s.end <= ie - i && (h(Z, k, A, ae, s.end, ie, te, P, N), ae = Z.length, ie = s.end), s.next()) : E > 2500 ? T(A, D, Z, k) : Q(A, D, Z, k, te, E + 1);
14730
- if (te >= 0 && ae > 0 && ae < Z.length && h(Z, k, A, ae, A, ie, te, P, N), Z.reverse(), k.reverse(), te > -1 && ae > 0) {
14731
- let G = f($, N);
14732
- R = TT($, Z, k, 0, Z.length, 0, w - A, G, G);
14729
+ ee >= 0 && s.id == ee && s.size >= 0 ? (s.end <= ie - i && (h(Z, k, A, ae, s.end, ie, ee, P, N), ae = Z.length, ie = s.end), s.next()) : E > 2500 ? T(A, D, Z, k) : Q(A, D, Z, k, ee, E + 1);
14730
+ if (ee >= 0 && ae > 0 && ae < Z.length && h(Z, k, A, ae, A, ie, ee, P, N), Z.reverse(), k.reverse(), ee > -1 && ae > 0) {
14731
+ let W = f($, N);
14732
+ R = TT($, Z, k, 0, Z.length, 0, w - A, W, W);
14733
14733
  } else
14734
14734
  R = p($, Z, k, w - A, P - w, N);
14735
14735
  }
@@ -17872,7 +17872,7 @@ class ln {
17872
17872
  return new ln(e);
17873
17873
  }
17874
17874
  }
17875
- class zt extends ln {
17875
+ class Xt extends ln {
17876
17876
  constructor(e, r) {
17877
17877
  super(e), this.inserted = r;
17878
17878
  }
@@ -17907,7 +17907,7 @@ class zt extends ln {
17907
17907
  }
17908
17908
  a += o;
17909
17909
  }
17910
- return new zt(r, n);
17910
+ return new Xt(r, n);
17911
17911
  }
17912
17912
  /**
17913
17913
  Combine two subsequent change sets into a single set. `other`
@@ -17977,7 +17977,7 @@ class zt extends ln {
17977
17977
  }
17978
17978
  }
17979
17979
  return {
17980
- changes: new zt(r, n),
17980
+ changes: new Xt(r, n),
17981
17981
  filtered: ln.create(i)
17982
17982
  };
17983
17983
  }
@@ -18002,14 +18002,14 @@ class zt extends ln {
18002
18002
  if (!c && !i.length)
18003
18003
  return;
18004
18004
  o < r && f1(i, r - o, -1);
18005
- let Q = new zt(i, a);
18005
+ let Q = new Xt(i, a);
18006
18006
  s = s ? s.compose(Q.map(s)) : Q, i = [], a = [], o = 0;
18007
18007
  }
18008
18008
  function u(c) {
18009
18009
  if (Array.isArray(c))
18010
18010
  for (let Q of c)
18011
18011
  u(Q);
18012
- else if (c instanceof zt) {
18012
+ else if (c instanceof Xt) {
18013
18013
  if (c.length != r)
18014
18014
  throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${r})`);
18015
18015
  l(), s = s ? s.compose(c.map(s)) : c;
@@ -18029,7 +18029,7 @@ class zt extends ln {
18029
18029
  Create an empty changeset of the given length.
18030
18030
  */
18031
18031
  static empty(e) {
18032
- return new zt(e ? [e, -1] : [], []);
18032
+ return new Xt(e ? [e, -1] : [], []);
18033
18033
  }
18034
18034
  /**
18035
18035
  Create a changeset from its JSON representation (as produced by
@@ -18055,13 +18055,13 @@ class zt extends ln {
18055
18055
  }
18056
18056
  }
18057
18057
  }
18058
- return new zt(r, n);
18058
+ return new Xt(r, n);
18059
18059
  }
18060
18060
  /**
18061
18061
  @internal
18062
18062
  */
18063
18063
  static createSet(e, r) {
18064
- return new zt(e, r);
18064
+ return new Xt(e, r);
18065
18065
  }
18066
18066
  }
18067
18067
  function f1(t, e, r, n = !1) {
@@ -18124,7 +18124,7 @@ function Oc(t, e, r, n = !1) {
18124
18124
  f1(i, u, l < o.i ? o.ins : 0), a && l < o.i && K3(a, i, o.text), l = o.i, o.forward(o.len - c);
18125
18125
  } else {
18126
18126
  if (o.done && s.done)
18127
- return a ? zt.createSet(i, a) : ln.create(i);
18127
+ return a ? Xt.createSet(i, a) : ln.create(i);
18128
18128
  throw new Error("Mismatched change set lengths");
18129
18129
  }
18130
18130
  }
@@ -18133,7 +18133,7 @@ function GH(t, e, r = !1) {
18133
18133
  let n = [], i = r ? [] : null, a = new ho(t), o = new ho(e);
18134
18134
  for (let s = !1; ; ) {
18135
18135
  if (a.done && o.done)
18136
- return i ? zt.createSet(n, i) : ln.create(n);
18136
+ return i ? Xt.createSet(n, i) : ln.create(n);
18137
18137
  if (a.ins == 0)
18138
18138
  f1(n, a.len, 0, s), a.next();
18139
18139
  else if (o.len == 0 && !o.done)
@@ -18403,7 +18403,7 @@ function YH(t, e) {
18403
18403
  throw new RangeError("Selection points outside of document");
18404
18404
  }
18405
18405
  let mT = 0;
18406
- class ye {
18406
+ class ve {
18407
18407
  constructor(e, r, n, i, a) {
18408
18408
  this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id = mT++, this.default = e([]), this.extensions = typeof a == "function" ? a(this) : a;
18409
18409
  }
@@ -18418,7 +18418,7 @@ class ye {
18418
18418
  Define a new facet.
18419
18419
  */
18420
18420
  static define(e = {}) {
18421
- return new ye(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : gT), !!e.static, e.enables);
18421
+ return new ve(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : gT), !!e.static, e.enables);
18422
18422
  }
18423
18423
  /**
18424
18424
  Returns an extension that adds the given value to this facet.
@@ -18481,7 +18481,7 @@ class E7 {
18481
18481
  let f, h = T.config.address[a];
18482
18482
  if (h != null) {
18483
18483
  let p = ul(T, h);
18484
- if (this.dependencies.every((g) => g instanceof ye ? T.facet(g) === Q.facet(g) : g instanceof Jt ? T.field(g, !1) == Q.field(g, !1) : !0) || (s ? vp(f = n(Q), p, i) : i(f = n(Q), p)))
18484
+ if (this.dependencies.every((g) => g instanceof ve ? T.facet(g) === Q.facet(g) : g instanceof Jt ? T.field(g, !1) == Q.field(g, !1) : !0) || (s ? vp(f = n(Q), p, i) : i(f = n(Q), p)))
18485
18485
  return Q.values[o] = p, 0;
18486
18486
  } else
18487
18487
  f = n(Q);
@@ -18539,7 +18539,7 @@ function VZ(t, e, r) {
18539
18539
  }
18540
18540
  };
18541
18541
  }
18542
- const Is = /* @__PURE__ */ ye.define({ static: !0 });
18542
+ const Is = /* @__PURE__ */ ve.define({ static: !0 });
18543
18543
  class Jt {
18544
18544
  constructor(e, r, n, i, a) {
18545
18545
  this.id = e, this.createF = r, this.updateF = n, this.compareF = i, this.spec = a, this.provides = void 0;
@@ -18742,13 +18742,13 @@ function Ba(t, e) {
18742
18742
  function ul(t, e) {
18743
18743
  return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1];
18744
18744
  }
18745
- const e_ = /* @__PURE__ */ ye.define(), xc = /* @__PURE__ */ ye.define({
18745
+ const e_ = /* @__PURE__ */ ve.define(), xc = /* @__PURE__ */ ve.define({
18746
18746
  combine: (t) => t.some((e) => e),
18747
18747
  static: !0
18748
- }), t_ = /* @__PURE__ */ ye.define({
18748
+ }), t_ = /* @__PURE__ */ ve.define({
18749
18749
  combine: (t) => t.length ? t[0] : void 0,
18750
18750
  static: !0
18751
- }), r_ = /* @__PURE__ */ ye.define(), n_ = /* @__PURE__ */ ye.define(), i_ = /* @__PURE__ */ ye.define(), a_ = /* @__PURE__ */ ye.define({
18751
+ }), r_ = /* @__PURE__ */ ve.define(), n_ = /* @__PURE__ */ ve.define(), i_ = /* @__PURE__ */ ve.define(), a_ = /* @__PURE__ */ ve.define({
18752
18752
  combine: (t) => t.length ? t[0] : !1
18753
18753
  });
18754
18754
  class fn {
@@ -18930,7 +18930,7 @@ function BZ(t, e) {
18930
18930
  function o_(t, e, r) {
18931
18931
  var n;
18932
18932
  let i, a, o;
18933
- return r ? (i = e.changes, a = zt.empty(e.changes.length), o = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), a = t.changes.mapDesc(e.changes, !0), o = t.changes.compose(i)), {
18933
+ return r ? (i = e.changes, a = Xt.empty(e.changes.length), o = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), a = t.changes.mapDesc(e.changes, !0), o = t.changes.compose(i)), {
18934
18934
  changes: o,
18935
18935
  selection: e.selection ? e.selection.map(a) : (n = t.selection) === null || n === void 0 ? void 0 : n.map(i),
18936
18936
  effects: ke.mapEffects(t.effects, i).concat(ke.mapEffects(e.effects, a)),
@@ -18941,7 +18941,7 @@ function o_(t, e, r) {
18941
18941
  function Lc(t, e, r) {
18942
18942
  let n = e.selection, i = b6(e.annotations);
18943
18943
  return e.userEvent && (i = i.concat(Bt.userEvent.of(e.userEvent))), {
18944
- changes: e.changes instanceof zt ? e.changes : zt.of(e.changes || [], r, t.facet(t_)),
18944
+ changes: e.changes instanceof Xt ? e.changes : Xt.of(e.changes || [], r, t.facet(t_)),
18945
18945
  selection: n && (n instanceof le ? n : le.single(n.anchor, n.head)),
18946
18946
  effects: b6(e.effects),
18947
18947
  annotations: i,
@@ -18972,7 +18972,7 @@ function $Z(t) {
18972
18972
  if (r !== !0) {
18973
18973
  let i, a;
18974
18974
  if (r === !1)
18975
- a = t.changes.invertedDesc, i = zt.empty(e.doc.length);
18975
+ a = t.changes.invertedDesc, i = Xt.empty(e.doc.length);
18976
18976
  else {
18977
18977
  let o = t.changes.filter(r);
18978
18978
  i = o.changes, a = o.filtered.mapDesc(o.changes).invertedDesc;
@@ -19117,7 +19117,7 @@ class Fe {
19117
19117
  separator into account.
19118
19118
  */
19119
19119
  changes(e = []) {
19120
- return e instanceof zt ? e : zt.of(e, this.doc.length, this.facet(Fe.lineSeparator));
19120
+ return e instanceof Xt ? e : Xt.of(e, this.doc.length, this.facet(Fe.lineSeparator));
19121
19121
  }
19122
19122
  /**
19123
19123
  Using the state's [line
@@ -19296,12 +19296,12 @@ class Fe {
19296
19296
  }
19297
19297
  }
19298
19298
  Fe.allowMultipleSelections = xc;
19299
- Fe.tabSize = /* @__PURE__ */ ye.define({
19299
+ Fe.tabSize = /* @__PURE__ */ ve.define({
19300
19300
  combine: (t) => t.length ? t[0] : 4
19301
19301
  });
19302
19302
  Fe.lineSeparator = t_;
19303
19303
  Fe.readOnly = a_;
19304
- Fe.phrases = /* @__PURE__ */ ye.define({
19304
+ Fe.phrases = /* @__PURE__ */ ve.define({
19305
19305
  compare(t, e) {
19306
19306
  let r = Object.keys(t), n = Object.keys(e);
19307
19307
  return r.length == n.length && r.every((i) => t[i] == e[i]);
@@ -20603,7 +20603,7 @@ function g_(t, e, r, n, i, a) {
20603
20603
  }
20604
20604
  let B1 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Ac = typeof document < "u" ? document : { documentElement: { style: {} } };
20605
20605
  const Mc = /* @__PURE__ */ /Edge\/(\d+)/.exec(B1.userAgent), O_ = /* @__PURE__ */ /MSIE \d/.test(B1.userAgent), Pc = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(B1.userAgent), e8 = !!(O_ || Pc || Mc), Mp = !e8 && /* @__PURE__ */ /gecko\/(\d+)/i.test(B1.userAgent), su = !e8 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(B1.userAgent), iz = "webkitFontSmoothing" in Ac.documentElement.style, y_ = !e8 && /* @__PURE__ */ /Apple Computer/.test(B1.vendor), Pp = y_ && (/* @__PURE__ */ /Mobile\/\w+/.test(B1.userAgent) || B1.maxTouchPoints > 2);
20606
- var ve = {
20606
+ var ye = {
20607
20607
  mac: Pp || /* @__PURE__ */ /Mac/.test(B1.platform),
20608
20608
  windows: /* @__PURE__ */ /Win/.test(B1.platform),
20609
20609
  linux: /* @__PURE__ */ /Linux|X11/.test(B1.platform),
@@ -20700,12 +20700,12 @@ function oz(t, e, r) {
20700
20700
  let n = t.nodeValue.length;
20701
20701
  e > n && (e = n);
20702
20702
  let i = e, a = e, o = 0;
20703
- e == 0 && r < 0 || e == n && r >= 0 ? ve.chrome || ve.gecko || (e ? (i--, o = 1) : a < n && (a++, o = -1)) : r < 0 ? i-- : a < n && a++;
20703
+ e == 0 && r < 0 || e == n && r >= 0 ? ye.chrome || ye.gecko || (e ? (i--, o = 1) : a < n && (a++, o = -1)) : r < 0 ? i-- : a < n && a++;
20704
20704
  let s = Mi(t, i, a).getClientRects();
20705
20705
  if (!s.length)
20706
20706
  return null;
20707
20707
  let l = s[(o ? o < 0 : r >= 0) ? 0 : s.length - 1];
20708
- return ve.safari && !o && l.width == 0 && (l = Array.prototype.find.call(s, (u) => u.width) || l), o ? Wo(l, o < 0) : l || null;
20708
+ return ye.safari && !o && l.width == 0 && (l = Array.prototype.find.call(s, (u) => u.width) || l), o ? Wo(l, o < 0) : l || null;
20709
20709
  }
20710
20710
  class J3 extends pt {
20711
20711
  static create(e, r, n) {
@@ -21178,7 +21178,7 @@ class It extends pt {
21178
21178
  let i = this.dom.lastChild;
21179
21179
  for (; i && pt.get(i) instanceof P3; )
21180
21180
  i = i.lastChild;
21181
- if (!i || !this.length || i.nodeName != "BR" && ((n = pt.get(i)) === null || n === void 0 ? void 0 : n.isEditable) == !1 && (!ve.ios || !this.children.some((a) => a instanceof kr))) {
21181
+ if (!i || !this.length || i.nodeName != "BR" && ((n = pt.get(i)) === null || n === void 0 ? void 0 : n.isEditable) == !1 && (!ye.ios || !this.children.some((a) => a instanceof kr))) {
21182
21182
  let a = document.createElement("BR");
21183
21183
  a.cmIgnore = !0, this.dom.appendChild(a);
21184
21184
  }
@@ -21688,11 +21688,11 @@ function Oz(t, e, r) {
21688
21688
  }
21689
21689
  return Pi;
21690
21690
  }
21691
- const C_ = /* @__PURE__ */ ye.define(), A_ = /* @__PURE__ */ ye.define(), M_ = /* @__PURE__ */ ye.define(), P_ = /* @__PURE__ */ ye.define(), Bc = /* @__PURE__ */ ye.define(), k_ = /* @__PURE__ */ ye.define(), D_ = /* @__PURE__ */ ye.define(), xT = /* @__PURE__ */ ye.define(), LT = /* @__PURE__ */ ye.define(), V_ = /* @__PURE__ */ ye.define({
21691
+ const C_ = /* @__PURE__ */ ve.define(), A_ = /* @__PURE__ */ ve.define(), M_ = /* @__PURE__ */ ve.define(), P_ = /* @__PURE__ */ ve.define(), Bc = /* @__PURE__ */ ve.define(), k_ = /* @__PURE__ */ ve.define(), D_ = /* @__PURE__ */ ve.define(), xT = /* @__PURE__ */ ve.define(), LT = /* @__PURE__ */ ve.define(), V_ = /* @__PURE__ */ ve.define({
21692
21692
  combine: (t) => t.some((e) => e)
21693
- }), R_ = /* @__PURE__ */ ye.define({
21693
+ }), R_ = /* @__PURE__ */ ve.define({
21694
21694
  combine: (t) => t.some((e) => e)
21695
- }), I_ = /* @__PURE__ */ ye.define();
21695
+ }), I_ = /* @__PURE__ */ ve.define();
21696
21696
  class E6 {
21697
21697
  constructor(e, r = "nearest", n = "nearest", i = 5, a = 5, o = !1) {
21698
21698
  this.range = e, this.y = r, this.x = n, this.yMargin = i, this.xMargin = a, this.isSnapshot = o;
@@ -21709,9 +21709,9 @@ function j1(t, e, r) {
21709
21709
  let n = t.facet(P_);
21710
21710
  n.length ? n[0](e) : window.onerror && window.onerror(String(e), r, void 0, void 0, e) || (r ? console.error(r + ":", e) : console.error(e));
21711
21711
  }
21712
- const _3 = /* @__PURE__ */ ye.define({ combine: (t) => t.length ? t[0] : !0 });
21712
+ const _3 = /* @__PURE__ */ ve.define({ combine: (t) => t.length ? t[0] : !0 });
21713
21713
  let yz = 0;
21714
- const m6 = /* @__PURE__ */ ye.define({
21714
+ const m6 = /* @__PURE__ */ ve.define({
21715
21715
  combine(t) {
21716
21716
  return t.filter((e, r) => {
21717
21717
  for (let n = 0; n < r; n++)
@@ -21797,7 +21797,7 @@ class lu {
21797
21797
  this.spec = this.value = null;
21798
21798
  }
21799
21799
  }
21800
- const B_ = /* @__PURE__ */ ye.define(), bT = /* @__PURE__ */ ye.define(), yo = /* @__PURE__ */ ye.define(), $_ = /* @__PURE__ */ ye.define(), ST = /* @__PURE__ */ ye.define(), j_ = /* @__PURE__ */ ye.define();
21800
+ const B_ = /* @__PURE__ */ ve.define(), bT = /* @__PURE__ */ ve.define(), yo = /* @__PURE__ */ ve.define(), $_ = /* @__PURE__ */ ve.define(), ST = /* @__PURE__ */ ve.define(), j_ = /* @__PURE__ */ ve.define();
21801
21801
  function Dp(t, e) {
21802
21802
  let r = t.state.facet(j_);
21803
21803
  if (!r.length)
@@ -21820,7 +21820,7 @@ function Dp(t, e) {
21820
21820
  }
21821
21821
  }), i;
21822
21822
  }
21823
- const F_ = /* @__PURE__ */ ye.define();
21823
+ const F_ = /* @__PURE__ */ ve.define();
21824
21824
  function ET(t) {
21825
21825
  let e = 0, r = 0, n = 0, i = 0;
21826
21826
  for (let a of t.state.facet(F_)) {
@@ -21829,7 +21829,7 @@ function ET(t) {
21829
21829
  }
21830
21830
  return { left: e, right: r, top: n, bottom: i };
21831
21831
  }
21832
- const Ca = /* @__PURE__ */ ye.define();
21832
+ const Ca = /* @__PURE__ */ ve.define();
21833
21833
  class Z2 {
21834
21834
  constructor(e, r, n, i) {
21835
21835
  this.fromA = e, this.toA = r, this.fromB = n, this.toB = i;
@@ -21869,7 +21869,7 @@ class Z2 {
21869
21869
  }
21870
21870
  class Tl {
21871
21871
  constructor(e, r, n) {
21872
- this.view = e, this.state = r, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = zt.empty(this.startState.doc.length);
21872
+ this.view = e, this.state = r, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = Xt.empty(this.startState.doc.length);
21873
21873
  for (let a of n)
21874
21874
  this.changes = this.changes.compose(a.changes);
21875
21875
  let i = [];
@@ -21957,7 +21957,7 @@ class Vp extends pt {
21957
21957
  let { from: u, to: c } = this.hasComposition;
21958
21958
  n = new Z2(u, c, e.changes.mapPos(u, -1), e.changes.mapPos(c, 1)).addToSet(n.slice());
21959
21959
  }
21960
- this.hasComposition = a ? { from: a.range.fromB, to: a.range.toB } : null, (ve.ie || ve.chrome) && !a && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
21960
+ this.hasComposition = a ? { from: a.range.fromB, to: a.range.toB } : null, (ye.ie || ye.chrome) && !a && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
21961
21961
  let o = this.decorations, s = this.updateDeco(), l = Sz(o, s, e.changes);
21962
21962
  return n = Z2.extendWithRanges(n, l), !(this.flags & 7) && n.length == 0 ? !1 : (this.updateInner(n, e.startState.doc.length, a), e.transactions.length && (this.lastUpdate = Date.now()), !0);
21963
21963
  }
@@ -21968,7 +21968,7 @@ class Vp extends pt {
21968
21968
  let { observer: i } = this.view;
21969
21969
  i.ignore(() => {
21970
21970
  this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
21971
- let o = ve.chrome || ve.ios ? { node: i.selectionRange.focusNode, written: !1 } : void 0;
21971
+ let o = ye.chrome || ye.ios ? { node: i.selectionRange.focusNode, written: !1 } : void 0;
21972
21972
  this.sync(this.view, o), this.flags &= -8, o && (o.written || i.selectionRange.focusNode != o.node) && (this.forceSelection = !0), this.dom.style.height = "";
21973
21973
  }), this.markedForComposition.forEach(
21974
21974
  (o) => o.flags &= -9
@@ -22035,16 +22035,16 @@ class Vp extends pt {
22035
22035
  let o = this.forceSelection;
22036
22036
  this.forceSelection = !1;
22037
22037
  let s = this.view.state.selection.main, l = this.moveToLine(this.domAtPos(s.anchor)), u = s.empty ? l : this.moveToLine(this.domAtPos(s.head));
22038
- if (ve.gecko && s.empty && !this.hasComposition && vz(l)) {
22038
+ if (ye.gecko && s.empty && !this.hasComposition && vz(l)) {
22039
22039
  let Q = document.createTextNode("");
22040
22040
  this.view.observer.ignore(() => l.node.insertBefore(Q, l.node.childNodes[l.offset] || null)), l = u = new h1(Q, 0), o = !0;
22041
22041
  }
22042
22042
  let c = this.view.observer.selectionRange;
22043
22043
  (o || !c.focusNode || (!$a(l.node, l.offset, c.anchorNode, c.anchorOffset) || !$a(u.node, u.offset, c.focusNode, c.focusOffset)) && !this.suppressWidgetCursorChange(c, s)) && (this.view.observer.ignore(() => {
22044
- ve.android && ve.chrome && this.dom.contains(c.focusNode) && Ez(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
22044
+ ye.android && ye.chrome && this.dom.contains(c.focusNode) && Ez(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
22045
22045
  let Q = Oo(this.view.root);
22046
22046
  if (Q) if (s.empty) {
22047
- if (ve.gecko) {
22047
+ if (ye.gecko) {
22048
22048
  let T = Lz(l.node, l.offset);
22049
22049
  if (T && T != 3) {
22050
22050
  let f = (T == 1 ? h_ : d_)(l.node, l.offset);
@@ -22435,7 +22435,7 @@ function Np(t, e, r) {
22435
22435
  let Q = (c.top > r ? c.top - r : r - c.bottom) - 1;
22436
22436
  if (c.left - 1 <= e && c.right + 1 >= e && Q < a) {
22437
22437
  let T = e >= (c.left + c.right) / 2, f = T;
22438
- if ((ve.chrome || ve.gecko) && Mi(t, s).getBoundingClientRect().left == c.right && (f = !T), Q <= 0)
22438
+ if ((ye.chrome || ye.gecko) && Mi(t, s).getBoundingClientRect().left == c.right && (f = !T), Q <= 0)
22439
22439
  return { node: t, offset: s + (f ? 1 : 0) };
22440
22440
  i = s + (f ? 1 : 0), a = Q;
22441
22441
  }
@@ -22471,7 +22471,7 @@ function Z_(t, e, r, n = -1) {
22471
22471
  x && ({ offsetNode: d, offset: m } = x);
22472
22472
  } else if (h.caretRangeFromPoint) {
22473
22473
  let x = h.caretRangeFromPoint(c, Q);
22474
- x && ({ startContainer: d, startOffset: m } = x, (!t.contentDOM.contains(d) || ve.safari && Az(d, m, c) || ve.chrome && Mz(d, m, c)) && (d = void 0));
22474
+ x && ({ startContainer: d, startOffset: m } = x, (!t.contentDOM.contains(d) || ye.safari && Az(d, m, c) || ye.chrome && Mz(d, m, c)) && (d = void 0));
22475
22475
  }
22476
22476
  d && (m = Math.min(cn(d), m));
22477
22477
  }
@@ -22712,7 +22712,7 @@ class Iz {
22712
22712
  l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = jz(s, this.bounds.from);
22713
22713
  } else {
22714
22714
  let s = e.observer.selectionRange, l = a && a.node == s.focusNode && a.offset == s.focusOffset || !Cc(e.contentDOM, s.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(s.focusNode, s.focusOffset), u = o && o.node == s.anchorNode && o.offset == s.anchorOffset || !Cc(e.contentDOM, s.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(s.anchorNode, s.anchorOffset), c = e.viewport;
22715
- if ((ve.ios || ve.chrome) && e.state.selection.main.empty && l != u && (c.from > 0 || c.to < e.state.doc.length)) {
22715
+ if ((ye.ios || ye.chrome) && e.state.selection.main.empty && l != u && (c.from > 0 || c.to < e.state.doc.length)) {
22716
22716
  let Q = Math.min(l, u), T = Math.max(l, u), f = c.from - Q, h = c.to - T;
22717
22717
  (f == 0 || f == 1 || Q == 0) && (h == 0 || h == -1 || T == e.state.doc.length) && (l = 0, u = e.state.doc.length);
22718
22718
  }
@@ -22724,9 +22724,9 @@ function z_(t, e) {
22724
22724
  let r, { newSel: n } = e, i = t.state.selection.main, a = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1;
22725
22725
  if (e.bounds) {
22726
22726
  let { from: o, to: s } = e.bounds, l = i.from, u = null;
22727
- (a === 8 || ve.android && e.text.length < s - o) && (l = i.to, u = "end");
22727
+ (a === 8 || ye.android && e.text.length < s - o) && (l = i.to, u = "end");
22728
22728
  let c = Bz(t.state.doc.sliceString(o, s, Aa), e.text, l - o, u);
22729
- c && (ve.chrome && a == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == Aa + Aa && c.toB--, r = {
22729
+ c && (ye.chrome && a == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == Aa + Aa && c.toB--, r = {
22730
22730
  from: o + c.from,
22731
22731
  to: o + c.toA,
22732
22732
  insert: Ge.of(e.text.slice(c.from, c.toB).split(Aa))
@@ -22734,11 +22734,11 @@ function z_(t, e) {
22734
22734
  } else n && (!t.hasFocus && t.state.facet(_3) || n.main.eq(i)) && (n = null);
22735
22735
  if (!r && !n)
22736
22736
  return !1;
22737
- if (!r && e.typeOver && !i.empty && n && n.main.empty ? r = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : (ve.mac || ve.android) && r && r.from == r.to && r.from == i.head - 1 && /^\. ?$/.test(r.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (n && r.insert.length == 2 && (n = le.single(n.main.anchor - 1, n.main.head - 1)), r = { from: r.from, to: r.to, insert: Ge.of([r.insert.toString().replace(".", " ")]) }) : r && r.from >= i.from && r.to <= i.to && (r.from != i.from || r.to != i.to) && i.to - i.from - (r.to - r.from) <= 4 ? r = {
22737
+ if (!r && e.typeOver && !i.empty && n && n.main.empty ? r = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : (ye.mac || ye.android) && r && r.from == r.to && r.from == i.head - 1 && /^\. ?$/.test(r.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (n && r.insert.length == 2 && (n = le.single(n.main.anchor - 1, n.main.head - 1)), r = { from: r.from, to: r.to, insert: Ge.of([r.insert.toString().replace(".", " ")]) }) : r && r.from >= i.from && r.to <= i.to && (r.from != i.from || r.to != i.to) && i.to - i.from - (r.to - r.from) <= 4 ? r = {
22738
22738
  from: i.from,
22739
22739
  to: i.to,
22740
22740
  insert: t.state.doc.slice(i.from, r.from).append(r.insert).append(t.state.doc.slice(r.to, i.to))
22741
- } : ve.chrome && r && r.from == r.to && r.from == i.head && r.insert.toString() == `
22741
+ } : ye.chrome && r && r.from == r.to && r.from == i.head && r.insert.toString() == `
22742
22742
  ` && t.lineWrapping && (n && (n = le.single(n.main.anchor - 1, n.main.head - 1)), r = { from: i.from, to: i.to, insert: Ge.of([" "]) }), r)
22743
22743
  return HT(t, r, n, a);
22744
22744
  if (n && !n.main.eq(i)) {
@@ -22748,10 +22748,10 @@ function z_(t, e) {
22748
22748
  return !1;
22749
22749
  }
22750
22750
  function HT(t, e, r, n = -1) {
22751
- if (ve.ios && t.inputState.flushIOSKey(e))
22751
+ if (ye.ios && t.inputState.flushIOSKey(e))
22752
22752
  return !0;
22753
22753
  let i = t.state.selection.main;
22754
- if (ve.android && (e.to == i.to && // GBoard will sometimes remove a space it just inserted
22754
+ if (ye.android && (e.to == i.to && // GBoard will sometimes remove a space it just inserted
22755
22755
  // after a completion when you press enter
22756
22756
  (e.from == i.from || e.from == i.from - 1 && t.state.sliceDoc(e.from, i.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && S6(t.contentDOM, "Enter", 13) || (e.from == i.from - 1 && e.to == i.to && e.insert.length == 0 || n == 8 && e.insert.length < e.to - e.from && e.to > i.head) && S6(t.contentDOM, "Backspace", 8) || e.from == i.from && e.to == i.to + 1 && e.insert.length == 0 && S6(t.contentDOM, "Delete", 46)))
22757
22757
  return !0;
@@ -22840,7 +22840,7 @@ class Fz {
22840
22840
  this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
22841
22841
  }
22842
22842
  constructor(e) {
22843
- this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, ve.safari && e.contentDOM.addEventListener("input", () => null), ve.gecko && aX(e.contentDOM.ownerDocument);
22843
+ this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, ye.safari && e.contentDOM.addEventListener("input", () => null), ye.gecko && aX(e.contentDOM.ownerDocument);
22844
22844
  }
22845
22845
  handleEvent(e) {
22846
22846
  !Yz(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || (this.view.updateState != 0 ? Promise.resolve().then(() => this.runHandlers(e.type, e)) : this.runHandlers(e.type, e));
@@ -22874,17 +22874,17 @@ class Fz {
22874
22874
  keydown(e) {
22875
22875
  if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
22876
22876
  return !0;
22877
- if (this.tabFocusMode > 0 && e.keyCode != 27 && U_.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), ve.android && ve.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
22877
+ if (this.tabFocusMode > 0 && e.keyCode != 27 && U_.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), ye.android && ye.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
22878
22878
  return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
22879
22879
  let r;
22880
- return ve.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = X_.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || Zz.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
22880
+ return ye.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = X_.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || Zz.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
22881
22881
  }
22882
22882
  flushIOSKey(e) {
22883
22883
  let r = this.pendingIOSKey;
22884
22884
  return !r || r.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, S6(this.view.contentDOM, r.key, r.keyCode, r instanceof KeyboardEvent ? r : void 0));
22885
22885
  }
22886
22886
  ignoreDuringComposition(e) {
22887
- return /^key/.test(e.type) ? this.composing > 0 ? !0 : ve.safari && !ve.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
22887
+ return /^key/.test(e.type) ? this.composing > 0 ? !0 : ye.safari && !ye.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
22888
22888
  }
22889
22889
  startMouseSelection(e) {
22890
22890
  this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
@@ -23004,11 +23004,11 @@ class Xz {
23004
23004
  }
23005
23005
  function Uz(t, e) {
23006
23006
  let r = t.state.facet(C_);
23007
- return r.length ? r[0](e) : ve.mac ? e.metaKey : e.ctrlKey;
23007
+ return r.length ? r[0](e) : ye.mac ? e.metaKey : e.ctrlKey;
23008
23008
  }
23009
23009
  function Wz(t, e) {
23010
23010
  let r = t.state.facet(A_);
23011
- return r.length ? r[0](e) : ve.mac ? !e.altKey : !e.ctrlKey;
23011
+ return r.length ? r[0](e) : ye.mac ? !e.altKey : !e.ctrlKey;
23012
23012
  }
23013
23013
  function Gz(t, e) {
23014
23014
  let { main: r } = t.state.selection;
@@ -23035,7 +23035,7 @@ function Yz(t, e) {
23035
23035
  return !1;
23036
23036
  return !0;
23037
23037
  }
23038
- const Dr = /* @__PURE__ */ Object.create(null), z2 = /* @__PURE__ */ Object.create(null), W_ = ve.ie && ve.ie_version < 15 || ve.ios && ve.webkit_version < 604;
23038
+ const Dr = /* @__PURE__ */ Object.create(null), z2 = /* @__PURE__ */ Object.create(null), W_ = ye.ie && ye.ie_version < 15 || ye.ios && ye.webkit_version < 604;
23039
23039
  function Kz(t) {
23040
23040
  let e = t.dom.parentNode;
23041
23041
  if (!e)
@@ -23138,7 +23138,7 @@ function zp(t, e) {
23138
23138
  let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
23139
23139
  return { pos: r, bias: Jz(t, r, e.clientX, e.clientY) };
23140
23140
  }
23141
- const eX = ve.ie && ve.ie_version <= 11;
23141
+ const eX = ye.ie && ye.ie_version <= 11;
23142
23142
  let Xp = null, Up = 0, Wp = 0;
23143
23143
  function Y_(t) {
23144
23144
  if (!eX)
@@ -23288,7 +23288,7 @@ z2.compositionstart = z2.compositionupdate = (t) => {
23288
23288
  t.observer.editContext || (t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0));
23289
23289
  };
23290
23290
  z2.compositionend = (t) => {
23291
- t.observer.editContext || (t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null, ve.chrome && ve.android ? t.observer.flushSoon() : t.inputState.compositionPendingChange ? Promise.resolve().then(() => t.observer.flush()) : setTimeout(() => {
23291
+ t.observer.editContext || (t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null, ye.chrome && ye.android ? t.observer.flushSoon() : t.inputState.compositionPendingChange ? Promise.resolve().then(() => t.observer.flush()) : setTimeout(() => {
23292
23292
  t.inputState.composing < 0 && t.docView.hasComposition && t.update([]);
23293
23293
  }, 50));
23294
23294
  };
@@ -23305,14 +23305,14 @@ Dr.beforeinput = (t, e) => {
23305
23305
  }
23306
23306
  }
23307
23307
  let i;
23308
- if (ve.chrome && ve.android && (i = X_.find((a) => a.inputType == e.inputType)) && (t.observer.delayAndroidKey(i.key, i.keyCode), i.key == "Backspace" || i.key == "Delete")) {
23308
+ if (ye.chrome && ye.android && (i = X_.find((a) => a.inputType == e.inputType)) && (t.observer.delayAndroidKey(i.key, i.keyCode), i.key == "Backspace" || i.key == "Delete")) {
23309
23309
  let a = ((n = window.visualViewport) === null || n === void 0 ? void 0 : n.height) || 0;
23310
23310
  setTimeout(() => {
23311
23311
  var o;
23312
23312
  (((o = window.visualViewport) === null || o === void 0 ? void 0 : o.height) || 0) > a + 10 && t.hasFocus && (t.contentDOM.blur(), t.focus());
23313
23313
  }, 100);
23314
23314
  }
23315
- return ve.ios && e.inputType == "deleteContentForward" && t.observer.flushSoon(), ve.safari && e.inputType == "insertText" && t.inputState.composing >= 0 && setTimeout(() => z2.compositionend(t, e), 20), !1;
23315
+ return ye.ios && e.inputType == "deleteContentForward" && t.observer.flushSoon(), ye.safari && e.inputType == "insertText" && t.inputState.composing >= 0 && setTimeout(() => z2.compositionend(t, e), 20), !1;
23316
23316
  };
23317
23317
  const Yp = /* @__PURE__ */ new Set();
23318
23318
  function aX(t) {
@@ -23334,7 +23334,7 @@ class oX {
23334
23334
  return this.lineWrapping && (n += Math.max(0, Math.ceil((r - e - n * this.lineLength * 0.5) / this.lineLength))), this.lineHeight * n;
23335
23335
  }
23336
23336
  heightForLine(e) {
23337
- return this.lineWrapping ? (1 + Math.max(0, Math.ceil((e - this.lineLength) / (this.lineLength - 5)))) * this.lineHeight : this.lineHeight;
23337
+ return this.lineWrapping ? (1 + Math.max(0, Math.ceil((e - this.lineLength) / Math.max(1, this.lineLength - 5)))) * this.lineHeight : this.lineHeight;
23338
23338
  }
23339
23339
  setDoc(e) {
23340
23340
  return this.doc = e, this;
@@ -23876,7 +23876,7 @@ class tm {
23876
23876
  this.state = e.state;
23877
23877
  let n = this.stateDeco;
23878
23878
  this.stateDeco = this.state.facet(yo).filter((c) => typeof c != "function");
23879
- let i = e.changedRanges, a = Z2.extendWithRanges(i, cX(n, this.stateDeco, e ? e.changes : zt.empty(this.state.doc.length))), o = this.heightMap.height, s = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
23879
+ let i = e.changedRanges, a = Z2.extendWithRanges(i, cX(n, this.stateDeco, e ? e.changes : Xt.empty(this.state.doc.length))), o = this.heightMap.height, s = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
23880
23880
  Jp(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), a), (this.heightMap.height != o || N6) && (e.flags |= 2), s ? (this.scrollAnchorPos = e.changes.mapPos(s.from, -1), this.scrollAnchorHeight = s.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = o);
23881
23881
  let l = a.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
23882
23882
  (r && (r.range.head < l.from || r.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, r));
@@ -23907,7 +23907,7 @@ class tm {
23907
23907
  let x = e.docView.measureVisibleLineHeights(this.viewport);
23908
23908
  if (i.mustRefreshForHeights(x) && (o = !0), o || i.lineWrapping && Math.abs(m - this.contentDOMWidth) > i.charWidth) {
23909
23909
  let { lineHeight: O, charWidth: v, textHeight: L } = e.docView.measureTextSize();
23910
- o = O > 0 && i.refresh(a, O, v, L, m / v, x), o && (e.docView.minWidth = 0, u |= 16);
23910
+ o = O > 0 && i.refresh(a, O, v, L, Math.max(5, m / v), x), o && (e.docView.minWidth = 0, u |= 16);
23911
23911
  }
23912
23912
  p > 0 && g > 0 ? c = Math.max(p, g) : p < 0 && g < 0 && (c = Math.min(p, g)), Jp();
23913
23913
  for (let O of this.viewports) {
@@ -24173,7 +24173,7 @@ function Ma(t, e) {
24173
24173
  let r = e.toDOM(t.top), n = e.toDOM(t.bottom);
24174
24174
  return new tn(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => Ma(i, e)) : t._content);
24175
24175
  }
24176
- const Us = /* @__PURE__ */ ye.define({ combine: (t) => t.join(" ") }), qc = /* @__PURE__ */ ye.define({ combine: (t) => t.indexOf(!0) > -1 }), Zc = /* @__PURE__ */ l4.newName(), rw = /* @__PURE__ */ l4.newName(), nw = /* @__PURE__ */ l4.newName(), iw = { "&light": "." + rw, "&dark": "." + nw };
24176
+ const Us = /* @__PURE__ */ ve.define({ combine: (t) => t.join(" ") }), qc = /* @__PURE__ */ ve.define({ combine: (t) => t.indexOf(!0) > -1 }), Zc = /* @__PURE__ */ l4.newName(), rw = /* @__PURE__ */ l4.newName(), nw = /* @__PURE__ */ l4.newName(), iw = { "&light": "." + rw, "&dark": "." + nw };
24177
24177
  function zc(t, e, r) {
24178
24178
  return new l4(e, {
24179
24179
  finish(n) {
@@ -24461,15 +24461,15 @@ const gX = /* @__PURE__ */ zc("." + Zc, {
24461
24461
  subtree: !0,
24462
24462
  attributes: !0,
24463
24463
  characterDataOldValue: !0
24464
- }, Tu = ve.ie && ve.ie_version <= 11;
24464
+ }, Tu = ye.ie && ye.ie_version <= 11;
24465
24465
  class yX {
24466
24466
  constructor(e) {
24467
24467
  this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new tz(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => {
24468
24468
  for (let n of r)
24469
24469
  this.queue.push(n);
24470
- (ve.ie && ve.ie_version <= 11 || ve.ios && e.composing) && r.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush();
24471
- }), window.EditContext && ve.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
24472
- !(ve.chrome && ve.chrome_version < 126) && (this.editContext = new xX(e), e.state.facet(_3) && (e.contentDOM.editContext = this.editContext.editContext)), Tu && (this.onCharData = (r) => {
24470
+ (ye.ie && ye.ie_version <= 11 || ye.ios && e.composing) && r.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush();
24471
+ }), window.EditContext && ye.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
24472
+ !(ye.chrome && ye.chrome_version < 126) && (this.editContext = new xX(e), e.state.facet(_3) && (e.contentDOM.editContext = this.editContext.editContext)), Tu && (this.onCharData = (r) => {
24473
24473
  this.queue.push({
24474
24474
  target: r.target,
24475
24475
  type: "characterData",
@@ -24520,14 +24520,14 @@ class yX {
24520
24520
  r || (this.selectionChanged = !1);
24521
24521
  return;
24522
24522
  }
24523
- (ve.ie && ve.ie_version <= 11 || ve.android && ve.chrome) && !n.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
24523
+ (ye.ie && ye.ie_version <= 11 || ye.android && ye.chrome) && !n.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
24524
24524
  i.focusNode && $a(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1);
24525
24525
  }
24526
24526
  readSelectionRange() {
24527
24527
  let { view: e } = this, r = Oo(e.root);
24528
24528
  if (!r)
24529
24529
  return !1;
24530
- let n = ve.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && vX(this.view, r) || r;
24530
+ let n = ye.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && vX(this.view, r) || r;
24531
24531
  if (!n || this.selectionRange.eq(n))
24532
24532
  return !1;
24533
24533
  let i = H7(this.dom, n);
@@ -24724,7 +24724,7 @@ class xX {
24724
24724
  c.main.eq(i) || e.dispatch({ selection: c, userEvent: "select" });
24725
24725
  return;
24726
24726
  }
24727
- if ((ve.mac || ve.android) && u.from == o - 1 && /^\. ?$/.test(n.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (u = { from: s, to: l, insert: Ge.of([n.text.replace(".", " ")]) }), this.pendingContextChange = u, !e.state.readOnly) {
24727
+ if ((ye.mac || ye.android) && u.from == o - 1 && /^\. ?$/.test(n.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (u = { from: s, to: l, insert: Ge.of([n.text.replace(".", " ")]) }), this.pendingContextChange = u, !e.state.readOnly) {
24728
24728
  let c = this.to - this.from + (u.to - u.from + u.insert.length);
24729
24729
  HT(e, u, le.single(this.toEditorPos(n.selectionStart, c), this.toEditorPos(n.selectionEnd, c)));
24730
24730
  }
@@ -25118,7 +25118,7 @@ class me {
25118
25118
  translate: "no",
25119
25119
  contenteditable: this.state.facet(_3) ? "true" : "false",
25120
25120
  class: "cm-content",
25121
- style: `${ve.tabSize}: ${this.state.tabSize}`,
25121
+ style: `${ye.tabSize}: ${this.state.tabSize}`,
25122
25122
  role: "textbox",
25123
25123
  "aria-multiline": "true"
25124
25124
  };
@@ -25432,7 +25432,7 @@ class me {
25432
25432
  */
25433
25433
  get hasFocus() {
25434
25434
  var e;
25435
- return (this.dom.ownerDocument.hasFocus() || ve.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
25435
+ return (this.dom.ownerDocument.hasFocus() || ye.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
25436
25436
  }
25437
25437
  /**
25438
25438
  Put focus on the editor.
@@ -25586,7 +25586,7 @@ me.atomicRanges = ST;
25586
25586
  me.bidiIsolatedRanges = j_;
25587
25587
  me.scrollMargins = F_;
25588
25588
  me.darkTheme = qc;
25589
- me.cspNonce = /* @__PURE__ */ ye.define({ combine: (t) => t.length ? t[0] : "" });
25589
+ me.cspNonce = /* @__PURE__ */ ve.define({ combine: (t) => t.length ? t[0] : "" });
25590
25590
  me.contentAttributes = bT;
25591
25591
  me.editorAttributes = B_;
25592
25592
  me.lineWrapping = /* @__PURE__ */ me.contentAttributes.of({ class: "cm-lineWrapping" });
@@ -25614,7 +25614,7 @@ function om(t, e, r) {
25614
25614
  }
25615
25615
  return r;
25616
25616
  }
25617
- const bX = ve.mac ? "mac" : ve.windows ? "win" : ve.linux ? "linux" : "key";
25617
+ const bX = ye.mac ? "mac" : ye.windows ? "win" : ye.linux ? "linux" : "key";
25618
25618
  function SX(t, e) {
25619
25619
  const r = t.split(/-(?!$)/);
25620
25620
  let n = r[r.length - 1];
@@ -25644,7 +25644,7 @@ const EX = /* @__PURE__ */ D3.default(/* @__PURE__ */ me.domEventHandlers({
25644
25644
  keydown(t, e) {
25645
25645
  return ow(aw(e.state), t, e, "editor");
25646
25646
  }
25647
- })), K6 = /* @__PURE__ */ ye.define({ enables: EX }), sm = /* @__PURE__ */ new WeakMap();
25647
+ })), K6 = /* @__PURE__ */ ve.define({ enables: EX }), sm = /* @__PURE__ */ new WeakMap();
25648
25648
  function aw(t) {
25649
25649
  let e = t.facet(K6), r = sm.get(e);
25650
25650
  return r || sm.set(e, r = wX(e.reduce((n, i) => n.concat(i), []))), r;
@@ -25718,7 +25718,8 @@ function ow(t, e, r, n) {
25718
25718
  return !1;
25719
25719
  }, f = t[n], h, p;
25720
25720
  return f && (T(f[s + Ws(i, e, !o)]) ? l = !0 : o && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
25721
- !(ve.windows && e.ctrlKey && e.altKey) && (h = u4[e.keyCode]) && h != i ? (T(f[s + Ws(h, e, !0)]) || e.shiftKey && (p = go[e.keyCode]) != i && p != h && T(f[s + Ws(p, e, !1)])) && (l = !0) : o && e.shiftKey && T(f[s + Ws(i, e, !0)]) && (l = !0), !l && T(f._any) && (l = !0)), u && (l = !0), l && c && e.stopPropagation(), Xc = null, l;
25721
+ !(ye.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
25722
+ !(ye.mac && e.altKey && !e.ctrlKey) && (h = u4[e.keyCode]) && h != i ? (T(f[s + Ws(h, e, !0)]) || e.shiftKey && (p = go[e.keyCode]) != i && p != h && T(f[s + Ws(p, e, !1)])) && (l = !0) : o && e.shiftKey && T(f[s + Ws(i, e, !0)]) && (l = !0), !l && T(f._any) && (l = !0)), u && (l = !0), l && c && e.stopPropagation(), Xc = null, l;
25722
25723
  }
25723
25724
  class Ko {
25724
25725
  /**
@@ -25858,14 +25859,14 @@ class MX {
25858
25859
  this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
25859
25860
  }
25860
25861
  }
25861
- const A7 = /* @__PURE__ */ ye.define();
25862
+ const A7 = /* @__PURE__ */ ve.define();
25862
25863
  function lw(t) {
25863
25864
  return [
25864
25865
  wt.define((e) => new MX(e, t)),
25865
25866
  A7.of(t)
25866
25867
  ];
25867
25868
  }
25868
- const vo = /* @__PURE__ */ ye.define({
25869
+ const vo = /* @__PURE__ */ ve.define({
25869
25870
  combine(t) {
25870
25871
  return hn(t, {
25871
25872
  cursorBlinkRate: 1200,
@@ -26121,7 +26122,7 @@ function jX() {
26121
26122
  }
26122
26123
  return fu || !1;
26123
26124
  }
26124
- const M7 = /* @__PURE__ */ ye.define({
26125
+ const M7 = /* @__PURE__ */ ve.define({
26125
26126
  combine(t) {
26126
26127
  let e = hn(t, {
26127
26128
  render: null,
@@ -26383,11 +26384,11 @@ function sU(t) {
26383
26384
  let e = t.dom.ownerDocument.documentElement;
26384
26385
  return { top: 0, left: 0, bottom: e.clientHeight, right: e.clientWidth };
26385
26386
  }
26386
- const hu = /* @__PURE__ */ ye.define({
26387
+ const hu = /* @__PURE__ */ ve.define({
26387
26388
  combine: (t) => {
26388
26389
  var e, r, n;
26389
26390
  return {
26390
- position: ve.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
26391
+ position: ye.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
26391
26392
  parent: ((r = t.find((i) => i.parent)) === null || r === void 0 ? void 0 : r.parent) || null,
26392
26393
  tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || sU
26393
26394
  };
@@ -26455,7 +26456,7 @@ const hu = /* @__PURE__ */ ye.define({
26455
26456
  let t = 1, e = 1, r = !1;
26456
26457
  if (this.position == "fixed" && this.manager.tooltipViews.length) {
26457
26458
  let { dom: a } = this.manager.tooltipViews[0];
26458
- if (ve.gecko)
26459
+ if (ye.gecko)
26459
26460
  r = a.offsetParent != this.container.ownerDocument.body;
26460
26461
  else if (a.style.top == D5 && a.style.left == "0px") {
26461
26462
  let o = a.getBoundingClientRect();
@@ -26557,7 +26558,7 @@ const lU = /* @__PURE__ */ me.baseTheme({
26557
26558
  },
26558
26559
  ".cm-tooltip-arrow": {
26559
26560
  height: "7px",
26560
- width: `${7 * 2}px`,
26561
+ width: "14px",
26561
26562
  position: "absolute",
26562
26563
  zIndex: -1,
26563
26564
  overflow: "hidden",
@@ -26600,9 +26601,9 @@ const lU = /* @__PURE__ */ me.baseTheme({
26600
26601
  borderBottomColor: "transparent"
26601
26602
  }
26602
26603
  }
26603
- }), uU = { x: 0, y: 0 }, AT = /* @__PURE__ */ ye.define({
26604
+ }), uU = { x: 0, y: 0 }, AT = /* @__PURE__ */ ve.define({
26604
26605
  enables: [CT, lU]
26605
- }), dl = /* @__PURE__ */ ye.define({
26606
+ }), dl = /* @__PURE__ */ ve.define({
26606
26607
  combine: (t) => t.reduce((e, r) => e.concat(r), [])
26607
26608
  });
26608
26609
  class r8 {
@@ -26807,7 +26808,7 @@ function fw(t, e) {
26807
26808
  let n = r.manager.tooltips.indexOf(e);
26808
26809
  return n < 0 ? null : r.manager.tooltipViews[n];
26809
26810
  }
26810
- const dU = /* @__PURE__ */ ke.define(), dm = /* @__PURE__ */ ye.define({
26811
+ const dU = /* @__PURE__ */ ke.define(), dm = /* @__PURE__ */ ve.define({
26811
26812
  combine(t) {
26812
26813
  let e, r;
26813
26814
  for (let n of t)
@@ -26899,7 +26900,7 @@ function pm(t) {
26899
26900
  let e = t.nextSibling;
26900
26901
  return t.remove(), e;
26901
26902
  }
26902
- const Lo = /* @__PURE__ */ ye.define({
26903
+ const Lo = /* @__PURE__ */ ve.define({
26903
26904
  enables: hw
26904
26905
  });
26905
26906
  class k3 extends Ci {
@@ -26927,7 +26928,7 @@ k3.prototype.toDOM = void 0;
26927
26928
  k3.prototype.mapMode = s1.TrackBefore;
26928
26929
  k3.prototype.startSide = k3.prototype.endSide = -1;
26929
26930
  k3.prototype.point = !0;
26930
- const P7 = /* @__PURE__ */ ye.define(), pU = /* @__PURE__ */ ye.define(), mU = {
26931
+ const P7 = /* @__PURE__ */ ve.define(), pU = /* @__PURE__ */ ve.define(), mU = {
26931
26932
  class: "",
26932
26933
  renderEmptyElements: !1,
26933
26934
  elementStyle: "",
@@ -26939,11 +26940,11 @@ const P7 = /* @__PURE__ */ ye.define(), pU = /* @__PURE__ */ ye.define(), mU = {
26939
26940
  updateSpacer: null,
26940
26941
  domEventHandlers: {},
26941
26942
  side: "before"
26942
- }, Fa = /* @__PURE__ */ ye.define();
26943
+ }, Fa = /* @__PURE__ */ ve.define();
26943
26944
  function gU(t) {
26944
26945
  return [dw(), Fa.of({ ...mU, ...t })];
26945
26946
  }
26946
- const mm = /* @__PURE__ */ ye.define({
26947
+ const mm = /* @__PURE__ */ ve.define({
26947
26948
  combine: (t) => t.some((e) => e)
26948
26949
  });
26949
26950
  function dw(t) {
@@ -27156,7 +27157,7 @@ function vU(t, e) {
27156
27157
  return !1;
27157
27158
  return !0;
27158
27159
  }
27159
- const xU = /* @__PURE__ */ ye.define(), LU = /* @__PURE__ */ ye.define(), g6 = /* @__PURE__ */ ye.define({
27160
+ const xU = /* @__PURE__ */ ve.define(), LU = /* @__PURE__ */ ve.define(), g6 = /* @__PURE__ */ ve.define({
27160
27161
  combine(t) {
27161
27162
  return hn(t, { formatNumber: String, domEventHandlers: {} }, {
27162
27163
  domEventHandlers(e, r) {
@@ -27243,7 +27244,7 @@ function _U() {
27243
27244
  var mu;
27244
27245
  const bi = /* @__PURE__ */ new Ae();
27245
27246
  function MT(t) {
27246
- return ye.define({
27247
+ return ve.define({
27247
27248
  combine: t ? (e) => e.concat(t) : void 0
27248
27249
  });
27249
27250
  }
@@ -27631,7 +27632,7 @@ const gu = typeof navigator < "u" && (!((mu = navigator.scheduling) === null ||
27631
27632
  eventHandlers: { focus() {
27632
27633
  this.scheduleWork();
27633
27634
  } }
27634
- }), T4 = /* @__PURE__ */ ye.define({
27635
+ }), T4 = /* @__PURE__ */ ve.define({
27635
27636
  combine(t) {
27636
27637
  return t.length ? t[0] : null;
27637
27638
  },
@@ -27719,7 +27720,7 @@ class pl {
27719
27720
  return null;
27720
27721
  }
27721
27722
  }
27722
- const AU = /* @__PURE__ */ ye.define(), J6 = /* @__PURE__ */ ye.define({
27723
+ const AU = /* @__PURE__ */ ve.define(), J6 = /* @__PURE__ */ ve.define({
27723
27724
  combine: (t) => {
27724
27725
  if (!t.length)
27725
27726
  return " ";
@@ -27980,7 +27981,7 @@ function BU() {
27980
27981
  return l.length ? [t, { changes: l, sequential: !0 }] : t;
27981
27982
  });
27982
27983
  }
27983
- const yw = /* @__PURE__ */ ye.define(), d4 = /* @__PURE__ */ new Ae();
27984
+ const yw = /* @__PURE__ */ ve.define(), d4 = /* @__PURE__ */ new Ae();
27984
27985
  function i8(t) {
27985
27986
  let e = t.firstChild, r = t.lastChild;
27986
27987
  return e && e.to < r.from ? { from: e.to, to: r.type.isError ? t.to : r.from } : null;
@@ -28135,7 +28136,7 @@ const zU = (t) => {
28135
28136
  placeholderDOM: null,
28136
28137
  preparePlaceholder: null,
28137
28138
  placeholderText: "…"
28138
- }, Sw = /* @__PURE__ */ ye.define({
28139
+ }, Sw = /* @__PURE__ */ ve.define({
28139
28140
  combine(t) {
28140
28141
  return hn(t, WU);
28141
28142
  }
@@ -28284,7 +28285,7 @@ class es {
28284
28285
  return new es(e, r || {});
28285
28286
  }
28286
28287
  }
28287
- const Yc = /* @__PURE__ */ ye.define(), _w = /* @__PURE__ */ ye.define({
28288
+ const Yc = /* @__PURE__ */ ve.define(), _w = /* @__PURE__ */ ve.define({
28288
28289
  combine(t) {
28289
28290
  return t.length ? [t[0]] : null;
28290
28291
  }
@@ -28399,7 +28400,7 @@ const tW = /* @__PURE__ */ D3.high(/* @__PURE__ */ wt.fromClass(eW, {
28399
28400
  ]), nW = /* @__PURE__ */ me.baseTheme({
28400
28401
  "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
28401
28402
  "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
28402
- }), Cw = 1e4, Aw = "()[]{}", Mw = /* @__PURE__ */ ye.define({
28403
+ }), Cw = 1e4, Aw = "()[]{}", Mw = /* @__PURE__ */ ve.define({
28403
28404
  combine(t) {
28404
28405
  return hn(t, {
28405
28406
  afterCursor: !0,
@@ -28776,7 +28777,7 @@ class yW {
28776
28777
  return n == null ? null : (this.matched = [0, r.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
28777
28778
  }
28778
28779
  }
28779
- const Yt = /* @__PURE__ */ ye.define({
28780
+ const Yt = /* @__PURE__ */ ve.define({
28780
28781
  combine(t) {
28781
28782
  return hn(t, {
28782
28783
  activateOnTyping: !0,
@@ -29667,7 +29668,7 @@ function Bw(t) {
29667
29668
  const zW = ({ state: t, dispatch: e }) => t.field(Ho, !1) ? (e(t.update({ effects: ts.of(null) })), !0) : !1, XW = /* @__PURE__ */ Bw(1), UW = /* @__PURE__ */ Bw(-1), WW = [
29668
29669
  { key: "Tab", run: XW, shift: UW },
29669
29670
  { key: "Escape", run: zW }
29670
- ], Dm = /* @__PURE__ */ ye.define({
29671
+ ], Dm = /* @__PURE__ */ ve.define({
29671
29672
  combine(t) {
29672
29673
  return t.length ? t[0] : WW;
29673
29674
  }
@@ -33855,7 +33856,7 @@ const eJ = /* @__PURE__ */ yw.of((t, e, r) => {
33855
33856
  return null;
33856
33857
  });
33857
33858
  function KT(t) {
33858
- return new j2(WC, t, [eJ], "markdown");
33859
+ return new j2(WC, t, [], "markdown");
33859
33860
  }
33860
33861
  const tJ = /* @__PURE__ */ KT(YC), rJ = /* @__PURE__ */ YC.configure([kG, VG, DG, RG, {
33861
33862
  props: [
@@ -34070,7 +34071,7 @@ function uJ(t = {}) {
34070
34071
  let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = tJ, completeHTMLTags: a = !0, htmlTagLanguage: o = eA } = t;
34071
34072
  if (!(i instanceof s8))
34072
34073
  throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");
34073
- let s = t.extensions ? [t.extensions] : [], l = [o.support], u;
34074
+ let s = t.extensions ? [t.extensions] : [], l = [o.support, eJ], u;
34074
34075
  r instanceof ki ? (l.push(r.support), u = r.language) : r && (u = r);
34075
34076
  let c = e || u ? nJ(e, u) : void 0;
34076
34077
  s.push(SG({ codeParser: c, htmlParser: o.language.parser })), n && l.push(D3.high(K6.of(lJ)));
@@ -34830,7 +34831,7 @@ function Dee(t, e, r = e.selection.ranges) {
34830
34831
  }
34831
34832
  return null;
34832
34833
  }
34833
- const TQ = /* @__PURE__ */ fn.define(), Vee = /* @__PURE__ */ fn.define(), Ree = /* @__PURE__ */ ye.define(), TA = /* @__PURE__ */ ye.define({
34834
+ const TQ = /* @__PURE__ */ fn.define(), Vee = /* @__PURE__ */ fn.define(), Ree = /* @__PURE__ */ ve.define(), TA = /* @__PURE__ */ ve.define({
34834
34835
  combine(t) {
34835
34836
  return hn(t, {
34836
34837
  minDepth: 100,
@@ -34906,7 +34907,7 @@ class F1 {
34906
34907
  };
34907
34908
  }
34908
34909
  static fromJSON(e) {
34909
- return new F1(e.changes && zt.fromJSON(e.changes), [], e.mapped && ln.fromJSON(e.mapped), e.startSelection && le.fromJSON(e.startSelection), e.selectionsAfter.map(le.fromJSON));
34910
+ return new F1(e.changes && Xt.fromJSON(e.changes), [], e.mapped && ln.fromJSON(e.mapped), e.startSelection && le.fromJSON(e.startSelection), e.selectionsAfter.map(le.fromJSON));
34910
34911
  }
34911
34912
  // This does not check `addToHistory` and such, it assumes the
34912
34913
  // transaction needs to be converted to an item. Returns null when
@@ -35691,7 +35692,7 @@ const za = /* @__PURE__ */ ke.define(), kg = /* @__PURE__ */ Jt.define({
35691
35692
  minSelectionLength: 1,
35692
35693
  maxMatches: 100,
35693
35694
  wholeWords: !1
35694
- }, qte = /* @__PURE__ */ ye.define({
35695
+ }, qte = /* @__PURE__ */ ve.define({
35695
35696
  combine(t) {
35696
35697
  return hn(t, Fte, {
35697
35698
  highlightWordAroundCursor: (e, r) => e || r,
@@ -35789,7 +35790,7 @@ const Jte = ({ state: t, dispatch: e }) => {
35789
35790
  selection: t.selection.addRange(le.range(i.from, i.to), !1),
35790
35791
  effects: me.scrollIntoView(i.to)
35791
35792
  })), !0) : !1;
35792
- }, r5 = /* @__PURE__ */ ye.define({
35793
+ }, r5 = /* @__PURE__ */ ve.define({
35793
35794
  combine(t) {
35794
35795
  return hn(t, {
35795
35796
  top: !1,
@@ -35997,7 +35998,7 @@ const i1e = /* @__PURE__ */ Le.mark({ class: "cm-searchMatch" }), a1e = /* @__PU
35997
35998
  let { view: r } = this, n = new M3();
35998
35999
  for (let i = 0, a = r.visibleRanges, o = a.length; i < o; i++) {
35999
36000
  let { from: s, to: l } = a[i];
36000
- for (; i < o - 1 && l > a[i + 1].from - 2 * 250; )
36001
+ for (; i < o - 1 && l > a[i + 1].from - 500; )
36001
36002
  l = a[++i].to;
36002
36003
  t.highlight(r.state, s, l, (u, c) => {
36003
36004
  let Q = r.state.selection.ranges.some((T) => T.from == u && T.to == c);
@@ -36428,7 +36429,7 @@ const O1e = (t) => {
36428
36429
  }, v1e = [
36429
36430
  { key: "Mod-Shift-m", run: O1e, preventDefault: !0 },
36430
36431
  { key: "F8", run: y1e }
36431
- ], Do = /* @__PURE__ */ ye.define({
36432
+ ], Do = /* @__PURE__ */ ve.define({
36432
36433
  combine(t) {
36433
36434
  return Object.assign({ sources: t.map((e) => e.source).filter((e) => e != null) }, hn(t.map((e) => e.config), {
36434
36435
  delay: 750,
@@ -37099,7 +37100,7 @@ var X1e = ["className", "value", "selection", "extensions", "onChange", "onStati
37099
37100
  readOnly: v,
37100
37101
  root: L,
37101
37102
  initialState: b
37102
- } = t, S = _ee(t, X1e), E = Xt(null), {
37103
+ } = t, S = _ee(t, X1e), E = $t(null), {
37103
37104
  state: C,
37104
37105
  view: A,
37105
37106
  container: w,
@@ -37147,7 +37148,7 @@ var X1e = ["className", "value", "selection", "extensions", "onChange", "onStati
37147
37148
  Qf.displayName = "CodeMirror";
37148
37149
  const m4 = Ni({
37149
37150
  wrap: !1,
37150
- value: "",
37151
+ value: void 0,
37151
37152
  onChange: () => {
37152
37153
  }
37153
37154
  });
@@ -37274,18 +37275,22 @@ class G1e {
37274
37275
  this.updateScheduled || (this.updateScheduled = !0, requestAnimationFrame(() => {
37275
37276
  this.updateScheduled = !1;
37276
37277
  const r = U1e(e.state), n = [], i = 1e3, a = e.visibleRanges;
37277
- for (const o of r)
37278
- if (o.start >= 0 && o.end <= e.state.doc.length && o.start < o.end && typeof o.pathArray[o.pathArray.length - 1] != "number" && this.isNodeInVisibleRange(o, a) && n.push(
37279
- Le.mark({
37280
- class: "cm-json-key",
37281
- attributes: {
37282
- "data-key-path": o.path,
37283
- title: o.path
37284
- }
37285
- }).range(o.start + 1, o.end - 1)
37286
- ), n.length >= i)
37287
- break;
37288
- this.decorations = Le.set(n, !0), e.update([]);
37278
+ try {
37279
+ for (const o of r)
37280
+ if (o.start >= 0 && o.end <= e.state.doc.length && o.start < o.end && typeof o.pathArray[o.pathArray.length - 1] != "number" && this.isNodeInVisibleRange(o, a) && n.push(
37281
+ Le.mark({
37282
+ class: "cm-json-key",
37283
+ attributes: {
37284
+ "data-key-path": o.path,
37285
+ title: o.path
37286
+ }
37287
+ }).range(o.start + 1, o.end - 1)
37288
+ ), n.length >= i)
37289
+ break;
37290
+ this.decorations = Le.set(n, !0), e.update([]);
37291
+ } catch (o) {
37292
+ console.warn(o);
37293
+ }
37289
37294
  }));
37290
37295
  }
37291
37296
  isNodeInVisibleRange(e, r) {
@@ -37323,7 +37328,10 @@ function r2e(t, e, r, n) {
37323
37328
  attributes: { "data-url": u }
37324
37329
  };
37325
37330
  c ? Q.attributes.onclick = `
37326
- document.dispatchEvent(new CustomEvent('s3-path-click', { detail: { path: '${u}' } }))
37331
+ const blockContainer = this.closest('[data-block-id]');
37332
+ if (blockContainer) {
37333
+ blockContainer.dispatchEvent(new CustomEvent('s3-path-click', { detail: { path: '${u}' } }))
37334
+ }
37327
37335
  ` : Q.attributes.onclick = `
37328
37336
  document.dispatchEvent(new CustomEvent('s3-path-click-in-new-tab', { detail: { path: '${u}' } }))
37329
37337
  `, i(a + 1, o - 1, Le.mark(Q));
@@ -37383,7 +37391,7 @@ const a2e = me.baseTheme({
37383
37391
  }
37384
37392
  }), o2e = [i2e(), a2e], Ug = [Hee(), kw(), uJ()];
37385
37393
  function is({ className: t }) {
37386
- const { wrap: e, value: r = "", onChange: n } = Tf(), i = Ce(() => {
37394
+ const { wrap: e, value: r, onChange: n } = Tf(), i = Ce(() => {
37387
37395
  try {
37388
37396
  return JSON.stringify(typeof r != "string" ? r : JSON.parse(r), null, 2);
37389
37397
  } catch (o) {
@@ -37393,12 +37401,12 @@ function is({ className: t }) {
37393
37401
  const o = [kw(), o2e, J1e];
37394
37402
  return e && o.push(me.lineWrapping), o;
37395
37403
  }, [e]);
37396
- return /* @__PURE__ */ q(Qf, { className: t, value: i, height: "auto", extensions: a, onChange: n });
37404
+ return typeof r > "u" ? null : /* @__PURE__ */ q(Qf, { className: t, value: i ?? "", height: "auto", extensions: a, onChange: n });
37397
37405
  }
37398
37406
  function ff({ className: t }) {
37399
37407
  const { wrap: e, value: r, onChange: n } = Tf(), { t: i } = m1(), a = Ce(() => {
37400
37408
  try {
37401
- return JSON.parse(r);
37409
+ return JSON.parse(r ?? "");
37402
37410
  } catch (s) {
37403
37411
  return console.error(s), r;
37404
37412
  }
@@ -37411,7 +37419,7 @@ function ff({ className: t }) {
37411
37419
  }
37412
37420
  return r;
37413
37421
  }, [r, i]);
37414
- return typeof a == "object" ? /* @__PURE__ */ q(is, {}) : /* @__PURE__ */ q(Qf, { className: t, value: o, height: "auto", extensions: e ? [me.lineWrapping, ...Ug] : Ug, onChange: n });
37422
+ return typeof a == "object" ? /* @__PURE__ */ q(is, {}) : /* @__PURE__ */ q(Qf, { className: t, value: o || void 0, height: "auto", extensions: e ? [me.lineWrapping, ...Ug] : Ug, onChange: n });
37415
37423
  }
37416
37424
  const s2e = (t) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ Y.createElement("path", { d: "M16.6667 17.4998H3.33333C2.87308 17.4998 2.5 17.1267 2.5 16.6664V3.33309C2.5 2.87285 2.87308 2.49976 3.33333 2.49976H16.6667C17.1269 2.49976 17.5 2.87285 17.5 3.33309V16.6664C17.5 17.1267 17.1269 17.4998 16.6667 17.4998Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.49919 3.33309C2.49919 2.87285 2.87227 2.49976 3.33252 2.49976H8.33252V8.33309H2.49919V3.33309Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M14.5825 14.5832L10.4159 10.4165M10.4159 10.4165V13.3332M10.4159 10.4165H13.3325", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), l2e = (t) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ Y.createElement("path", { d: "M16.6667 17.4998H3.33333C2.87308 17.4998 2.5 17.1267 2.5 16.6664V3.33309C2.5 2.87285 2.87308 2.49976 3.33333 2.49976H16.6667C17.1269 2.49976 17.5 2.87285 17.5 3.33309V16.6664C17.5 17.1267 17.1269 17.4998 16.6667 17.4998Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.49919 3.33309C2.49919 2.87285 2.87227 2.49976 3.33252 2.49976H8.33252V8.33309H2.49919V3.33309Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M10.4159 10.4165L14.5825 14.5832M14.5825 14.5832V11.6665M14.5825 14.5832H11.6659", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
37417
37425
  function u2e({ btnRef: t, activated: e, onChange: r, title: n, onTitle: i, offTitle: a, icon: o, placement: s, onIcon: l, offIcon: u, className: c }) {
@@ -38988,7 +38996,7 @@ class O1 extends Error {
38988
38996
  l && (a.place = l.position);
38989
38997
  }
38990
38998
  const s = a.place && "start" in a.place ? a.place.start : a.place;
38991
- this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = s ? s.line : void 0, this.name = Xa(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = o && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual, this.expected, this.note, this.url;
38999
+ this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = s ? s.line : void 0, this.name = Xa(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = o && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
38992
39000
  }
38993
39001
  }
38994
39002
  O1.prototype.file = "";
@@ -40573,16 +40581,16 @@ function nne(t, e, r) {
40573
40581
  return k === 45 ? (t.consume(k), n.interrupt ? e : _) : r(k);
40574
40582
  }
40575
40583
  function h(k) {
40576
- const te = "CDATA[";
40577
- return k === te.charCodeAt(s++) ? (t.consume(k), s === te.length ? n.interrupt ? e : A : h) : r(k);
40584
+ const ee = "CDATA[";
40585
+ return k === ee.charCodeAt(s++) ? (t.consume(k), s === ee.length ? n.interrupt ? e : A : h) : r(k);
40578
40586
  }
40579
40587
  function p(k) {
40580
40588
  return M1(k) ? (t.consume(k), o = String.fromCharCode(k), g) : r(k);
40581
40589
  }
40582
40590
  function g(k) {
40583
40591
  if (k === null || k === 47 || k === 62 || mt(k)) {
40584
- const te = k === 47, ae = o.toLowerCase();
40585
- return !te && !a && hO.includes(ae) ? (i = 1, n.interrupt ? e(k) : A(k)) : Kre.includes(o.toLowerCase()) ? (i = 6, te ? (t.consume(k), d) : n.interrupt ? e(k) : A(k)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(k) : a ? m(k) : y(k));
40592
+ const ee = k === 47, ae = o.toLowerCase();
40593
+ return !ee && !a && hO.includes(ae) ? (i = 1, n.interrupt ? e(k) : A(k)) : Kre.includes(o.toLowerCase()) ? (i = 6, ee ? (t.consume(k), d) : n.interrupt ? e(k) : A(k)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(k) : a ? m(k) : y(k));
40586
40594
  }
40587
40595
  return k === 45 || d1(k) ? (t.consume(k), o += String.fromCharCode(k), g) : r(k);
40588
40596
  }
@@ -40639,8 +40647,8 @@ function nne(t, e, r) {
40639
40647
  }
40640
40648
  function R(k) {
40641
40649
  if (k === 62) {
40642
- const te = o.toLowerCase();
40643
- return hO.includes(te) ? (t.consume(k), D) : A(k);
40650
+ const ee = o.toLowerCase();
40651
+ return hO.includes(ee) ? (t.consume(k), D) : A(k);
40644
40652
  }
40645
40653
  return M1(k) && o.length < 8 ? (t.consume(k), o += String.fromCharCode(k), R) : A(k);
40646
40654
  }
@@ -41400,12 +41408,12 @@ function Une(t, e, r) {
41400
41408
  ])
41401
41409
  ) : D(M);
41402
41410
  function D(ie) {
41403
- return G;
41404
- function G(X) {
41405
- const K = X !== null && ie[X], re = X !== null && ie.null, oe = [
41411
+ return W;
41412
+ function W(X) {
41413
+ const J = X !== null && ie[X], re = X !== null && ie.null, oe = [
41406
41414
  // To do: add more extension tests.
41407
41415
  /* c8 ignore next 2 */
41408
- ...Array.isArray(K) ? K : K ? [K] : [],
41416
+ ...Array.isArray(J) ? J : J ? [J] : [],
41409
41417
  ...Array.isArray(re) ? re : re ? [re] : []
41410
41418
  ];
41411
41419
  return Z(oe)(X);
@@ -41415,20 +41423,20 @@ function Une(t, e, r) {
41415
41423
  return $ = ie, R = 0, ie.length === 0 ? N : k(ie[R]);
41416
41424
  }
41417
41425
  function k(ie) {
41418
- return G;
41419
- function G(X) {
41426
+ return W;
41427
+ function W(X) {
41420
41428
  return _ = S(), V = ie, ie.partial || (u.currentConstruct = ie), ie.name && u.parser.constructs.disable.null.includes(ie.name) ? ae() : ie.tokenize.call(
41421
41429
  // If we do have fields, create an object w/ `context` as its
41422
41430
  // prototype.
41423
41431
  // This allows a “live binding”, which is needed for `interrupt`.
41424
41432
  A ? Object.assign(Object.create(u), A) : u,
41425
41433
  l,
41426
- te,
41434
+ ee,
41427
41435
  ae
41428
41436
  )(X);
41429
41437
  }
41430
41438
  }
41431
- function te(ie) {
41439
+ function ee(ie) {
41432
41440
  return C(V, _), P;
41433
41441
  }
41434
41442
  function ae(ie) {
@@ -41595,7 +41603,7 @@ function i3e(t) {
41595
41603
  autolink: a(xe),
41596
41604
  autolinkProtocol: S,
41597
41605
  autolinkEmail: S,
41598
- atxHeading: a(ee),
41606
+ atxHeading: a(K),
41599
41607
  blockQuote: a(re),
41600
41608
  characterEscape: S,
41601
41609
  characterReference: S,
@@ -41611,9 +41619,9 @@ function i3e(t) {
41611
41619
  definitionDestinationString: o,
41612
41620
  definitionLabelString: o,
41613
41621
  definitionTitleString: o,
41614
- emphasis: a(W),
41615
- hardBreakEscape: a(ce),
41616
- hardBreakTrailing: a(ce),
41622
+ emphasis: a(G),
41623
+ hardBreakEscape: a(ue),
41624
+ hardBreakTrailing: a(ue),
41617
41625
  htmlFlow: a(ge, o),
41618
41626
  htmlFlowData: S,
41619
41627
  htmlText: a(ge, o),
@@ -41630,7 +41638,7 @@ function i3e(t) {
41630
41638
  referenceString: o,
41631
41639
  resourceDestinationString: o,
41632
41640
  resourceTitleString: o,
41633
- setextHeading: a(ee),
41641
+ setextHeading: a(K),
41634
41642
  strong: a(Ct),
41635
41643
  thematicBreak: a(B3)
41636
41644
  },
@@ -41638,14 +41646,14 @@ function i3e(t) {
41638
41646
  atxHeading: l(),
41639
41647
  atxHeadingSequence: O,
41640
41648
  autolink: l(),
41641
- autolinkEmail: K,
41649
+ autolinkEmail: J,
41642
41650
  autolinkProtocol: X,
41643
41651
  blockQuote: l(),
41644
41652
  characterEscapeValue: E,
41645
41653
  characterReferenceMarkerHexadecimal: ae,
41646
41654
  characterReferenceMarkerNumeric: ae,
41647
41655
  characterReferenceValue: ie,
41648
- characterReference: G,
41656
+ characterReference: W,
41649
41657
  codeFenced: l(g),
41650
41658
  codeFencedFence: p,
41651
41659
  codeFencedFenceInfo: f,
@@ -41675,7 +41683,7 @@ function i3e(t) {
41675
41683
  listOrdered: l(),
41676
41684
  listUnordered: l(),
41677
41685
  paragraph: l(),
41678
- referenceString: te,
41686
+ referenceString: ee,
41679
41687
  resourceDestinationString: _,
41680
41688
  resourceTitleString: D,
41681
41689
  resource: Z,
@@ -41964,7 +41972,7 @@ function i3e(t) {
41964
41972
  function k() {
41965
41973
  this.data.referenceType = "collapsed";
41966
41974
  }
41967
- function te(se) {
41975
+ function ee(se) {
41968
41976
  const pe = this.resume(), Me = this.stack[this.stack.length - 1];
41969
41977
  Me.label = pe, Me.identifier = Mr(this.sliceSerialize(se)).toLowerCase(), this.data.referenceType = "full";
41970
41978
  }
@@ -41978,7 +41986,7 @@ function i3e(t) {
41978
41986
  const Tt = this.stack[this.stack.length - 1];
41979
41987
  Tt.value += De;
41980
41988
  }
41981
- function G(se) {
41989
+ function W(se) {
41982
41990
  const pe = this.stack.pop();
41983
41991
  pe.position.end = F3(se.end);
41984
41992
  }
@@ -41987,7 +41995,7 @@ function i3e(t) {
41987
41995
  const pe = this.stack[this.stack.length - 1];
41988
41996
  pe.url = this.sliceSerialize(se);
41989
41997
  }
41990
- function K(se) {
41998
+ function J(se) {
41991
41999
  E.call(this, se);
41992
42000
  const pe = this.stack[this.stack.length - 1];
41993
42001
  pe.url = "mailto:" + this.sliceSerialize(se);
@@ -42021,13 +42029,13 @@ function i3e(t) {
42021
42029
  url: ""
42022
42030
  };
42023
42031
  }
42024
- function W() {
42032
+ function G() {
42025
42033
  return {
42026
42034
  type: "emphasis",
42027
42035
  children: []
42028
42036
  };
42029
42037
  }
42030
- function ee() {
42038
+ function K() {
42031
42039
  return {
42032
42040
  type: "heading",
42033
42041
  // @ts-expect-error `depth` will be set later.
@@ -42035,7 +42043,7 @@ function i3e(t) {
42035
42043
  children: []
42036
42044
  };
42037
42045
  }
42038
- function ce() {
42046
+ function ue() {
42039
42047
  return {
42040
42048
  type: "break"
42041
42049
  };
@@ -45455,15 +45463,15 @@ function C4e() {
45455
45463
  for (var Z = n(N.keys()), k = Z.next(); !k.done; k = Z.next()) {
45456
45464
  var V = k.value;
45457
45465
  try {
45458
- for (var te = (v = void 0, n(S[V].values())), ae = te.next(); !ae.done; ae = te.next()) {
45466
+ for (var ee = (v = void 0, n(S[V].values())), ae = ee.next(); !ae.done; ae = ee.next()) {
45459
45467
  var w = ae.value;
45460
45468
  b.remove(w);
45461
45469
  }
45462
- } catch (G) {
45463
- v = { error: G };
45470
+ } catch (W) {
45471
+ v = { error: W };
45464
45472
  } finally {
45465
45473
  try {
45466
- ae && !ae.done && (L = te.return) && L.call(te);
45474
+ ae && !ae.done && (L = ee.return) && L.call(ee);
45467
45475
  } finally {
45468
45476
  if (v) throw v.error;
45469
45477
  }
@@ -45823,7 +45831,7 @@ function O4() {
45823
45831
  }();
45824
45832
  return U5.BBox = e, U5;
45825
45833
  }
45826
- var $t = {}, W5 = {}, zO;
45834
+ var jt = {}, W5 = {}, zO;
45827
45835
  function P4e() {
45828
45836
  if (zO) return W5;
45829
45837
  zO = 1, Object.defineProperty(W5, "__esModule", { value: !0 }), W5.AbstractWrapper = void 0;
@@ -46818,11 +46826,11 @@ function we() {
46818
46826
  t.XMLNode = p;
46819
46827
  }(ir)), ir;
46820
46828
  }
46821
- var jt = {}, GO;
46829
+ var Ft = {}, GO;
46822
46830
  function Nr() {
46823
- if (GO) return jt;
46831
+ if (GO) return Ft;
46824
46832
  GO = 1;
46825
- var t = jt && jt.__read || function(l, u) {
46833
+ var t = Ft && Ft.__read || function(l, u) {
46826
46834
  var c = typeof Symbol == "function" && l[Symbol.iterator];
46827
46835
  if (!c) return l;
46828
46836
  var Q = c.call(l), T, f = [], h;
@@ -46838,44 +46846,44 @@ function Nr() {
46838
46846
  }
46839
46847
  }
46840
46848
  return f;
46841
- }, e = jt && jt.__spreadArray || function(l, u, c) {
46849
+ }, e = Ft && Ft.__spreadArray || function(l, u, c) {
46842
46850
  if (c || arguments.length === 2) for (var Q = 0, T = u.length, f; Q < T; Q++)
46843
46851
  (f || !(Q in u)) && (f || (f = Array.prototype.slice.call(u, 0, Q)), f[Q] = u[Q]);
46844
46852
  return l.concat(f || Array.prototype.slice.call(u));
46845
46853
  };
46846
- Object.defineProperty(jt, "__esModule", { value: !0 }), jt.split = jt.isPercent = jt.unicodeString = jt.unicodeChars = jt.quotePattern = jt.sortLength = void 0;
46854
+ Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.split = Ft.isPercent = Ft.unicodeString = Ft.unicodeChars = Ft.quotePattern = Ft.sortLength = void 0;
46847
46855
  function r(l, u) {
46848
46856
  return l.length !== u.length ? u.length - l.length : l === u ? 0 : l < u ? -1 : 1;
46849
46857
  }
46850
- jt.sortLength = r;
46858
+ Ft.sortLength = r;
46851
46859
  function n(l) {
46852
46860
  return l.replace(/([\^$(){}+*?\-|\[\]\:\\])/g, "\\$1");
46853
46861
  }
46854
- jt.quotePattern = n;
46862
+ Ft.quotePattern = n;
46855
46863
  function i(l) {
46856
46864
  return Array.from(l).map(function(u) {
46857
46865
  return u.codePointAt(0);
46858
46866
  });
46859
46867
  }
46860
- jt.unicodeChars = i;
46868
+ Ft.unicodeChars = i;
46861
46869
  function a(l) {
46862
46870
  return String.fromCodePoint.apply(String, e([], t(l), !1));
46863
46871
  }
46864
- jt.unicodeString = a;
46872
+ Ft.unicodeString = a;
46865
46873
  function o(l) {
46866
46874
  return !!l.match(/%\s*$/);
46867
46875
  }
46868
- jt.isPercent = o;
46876
+ Ft.isPercent = o;
46869
46877
  function s(l) {
46870
46878
  return l.trim().split(/\s+/);
46871
46879
  }
46872
- return jt.split = s, jt;
46880
+ return Ft.split = s, Ft;
46873
46881
  }
46874
- var Ft = {}, YO;
46882
+ var qt = {}, YO;
46875
46883
  function Bo() {
46876
- if (YO) return Ft;
46884
+ if (YO) return qt;
46877
46885
  YO = 1;
46878
- var t = Ft && Ft.__assign || function() {
46886
+ var t = qt && qt.__assign || function() {
46879
46887
  return t = Object.assign || function(o) {
46880
46888
  for (var s, l = 1, u = arguments.length; l < u; l++) {
46881
46889
  s = arguments[l];
@@ -46883,7 +46891,7 @@ function Bo() {
46883
46891
  }
46884
46892
  return o;
46885
46893
  }, t.apply(this, arguments);
46886
- }, e = Ft && Ft.__read || function(o, s) {
46894
+ }, e = qt && qt.__read || function(o, s) {
46887
46895
  var l = typeof Symbol == "function" && o[Symbol.iterator];
46888
46896
  if (!l) return o;
46889
46897
  var u = l.call(o), c, Q = [], T;
@@ -46899,11 +46907,11 @@ function Bo() {
46899
46907
  }
46900
46908
  }
46901
46909
  return Q;
46902
- }, r = Ft && Ft.__spreadArray || function(o, s, l) {
46910
+ }, r = qt && qt.__spreadArray || function(o, s, l) {
46903
46911
  if (l || arguments.length === 2) for (var u = 0, c = s.length, Q; u < c; u++)
46904
46912
  (Q || !(u in s)) && (Q || (Q = Array.prototype.slice.call(s, 0, u)), Q[u] = s[u]);
46905
46913
  return o.concat(Q || Array.prototype.slice.call(s));
46906
- }, n = Ft && Ft.__values || function(o) {
46914
+ }, n = qt && qt.__values || function(o) {
46907
46915
  var s = typeof Symbol == "function" && Symbol.iterator, l = s && o[s], u = 0;
46908
46916
  if (l) return l.call(o);
46909
46917
  if (o && typeof o.length == "number") return {
@@ -46913,9 +46921,9 @@ function Bo() {
46913
46921
  };
46914
46922
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
46915
46923
  };
46916
- Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.FontData = Ft.NOSTRETCH = Ft.H = Ft.V = void 0;
46924
+ Object.defineProperty(qt, "__esModule", { value: !0 }), qt.FontData = qt.NOSTRETCH = qt.H = qt.V = void 0;
46917
46925
  var i = e1();
46918
- Ft.V = 1, Ft.H = 2, Ft.NOSTRETCH = { dir: 0 };
46926
+ qt.V = 1, qt.H = 2, qt.NOSTRETCH = { dir: 0 };
46919
46927
  var a = function() {
46920
46928
  function o(s) {
46921
46929
  var l, u, c, Q;
@@ -47227,13 +47235,13 @@ function Bo() {
47227
47235
  extra_ic: 0.033
47228
47236
  }, o.defaultDelimiters = {}, o.defaultChars = {}, o.defaultSizeVariants = [], o.defaultStretchVariants = [], o;
47229
47237
  }();
47230
- return Ft.FontData = a, Ft;
47238
+ return qt.FontData = a, qt;
47231
47239
  }
47232
47240
  var KO;
47233
47241
  function D4e() {
47234
- if (KO) return $t;
47242
+ if (KO) return jt;
47235
47243
  KO = 1;
47236
- var t = $t && $t.__extends || /* @__PURE__ */ function() {
47244
+ var t = jt && jt.__extends || /* @__PURE__ */ function() {
47237
47245
  var d = function(m, y) {
47238
47246
  return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, O) {
47239
47247
  x.__proto__ = O;
@@ -47250,7 +47258,7 @@ function D4e() {
47250
47258
  }
47251
47259
  m.prototype = y === null ? Object.create(y) : (x.prototype = y.prototype, new x());
47252
47260
  };
47253
- }(), e = $t && $t.__createBinding || (Object.create ? function(d, m, y, x) {
47261
+ }(), e = jt && jt.__createBinding || (Object.create ? function(d, m, y, x) {
47254
47262
  x === void 0 && (x = y);
47255
47263
  var O = Object.getOwnPropertyDescriptor(m, y);
47256
47264
  (!O || ("get" in O ? !m.__esModule : O.writable || O.configurable)) && (O = { enumerable: !0, get: function() {
@@ -47258,16 +47266,16 @@ function D4e() {
47258
47266
  } }), Object.defineProperty(d, x, O);
47259
47267
  } : function(d, m, y, x) {
47260
47268
  x === void 0 && (x = y), d[x] = m[y];
47261
- }), r = $t && $t.__setModuleDefault || (Object.create ? function(d, m) {
47269
+ }), r = jt && jt.__setModuleDefault || (Object.create ? function(d, m) {
47262
47270
  Object.defineProperty(d, "default", { enumerable: !0, value: m });
47263
47271
  } : function(d, m) {
47264
47272
  d.default = m;
47265
- }), n = $t && $t.__importStar || function(d) {
47273
+ }), n = jt && jt.__importStar || function(d) {
47266
47274
  if (d && d.__esModule) return d;
47267
47275
  var m = {};
47268
47276
  if (d != null) for (var y in d) y !== "default" && Object.prototype.hasOwnProperty.call(d, y) && e(m, d, y);
47269
47277
  return r(m, d), m;
47270
- }, i = $t && $t.__values || function(d) {
47278
+ }, i = jt && jt.__values || function(d) {
47271
47279
  var m = typeof Symbol == "function" && Symbol.iterator, y = m && d[m], x = 0;
47272
47280
  if (y) return y.call(d);
47273
47281
  if (d && typeof d.length == "number") return {
@@ -47276,7 +47284,7 @@ function D4e() {
47276
47284
  }
47277
47285
  };
47278
47286
  throw new TypeError(m ? "Object is not iterable." : "Symbol.iterator is not defined.");
47279
- }, a = $t && $t.__read || function(d, m) {
47287
+ }, a = jt && jt.__read || function(d, m) {
47280
47288
  var y = typeof Symbol == "function" && d[Symbol.iterator];
47281
47289
  if (!y) return d;
47282
47290
  var x = y.call(d), O, v = [], L;
@@ -47292,12 +47300,12 @@ function D4e() {
47292
47300
  }
47293
47301
  }
47294
47302
  return v;
47295
- }, o = $t && $t.__spreadArray || function(d, m, y) {
47303
+ }, o = jt && jt.__spreadArray || function(d, m, y) {
47296
47304
  if (y || arguments.length === 2) for (var x = 0, O = m.length, v; x < O; x++)
47297
47305
  (v || !(x in m)) && (v || (v = Array.prototype.slice.call(m, 0, x)), v[x] = m[x]);
47298
47306
  return d.concat(v || Array.prototype.slice.call(m));
47299
47307
  };
47300
- Object.defineProperty($t, "__esModule", { value: !0 }), $t.CommonWrapper = void 0;
47308
+ Object.defineProperty(jt, "__esModule", { value: !0 }), jt.CommonWrapper = void 0;
47301
47309
  var s = P4e(), l = we(), u = Nr(), c = n(V3()), Q = _f(), T = O4(), f = Bo(), h = 2 / 18;
47302
47310
  function p(d, m) {
47303
47311
  return d ? m < h ? 0 : h : m;
@@ -47596,7 +47604,7 @@ function D4e() {
47596
47604
  }
47597
47605
  }, m;
47598
47606
  }(s.AbstractWrapper);
47599
- return $t.CommonWrapper = g, $t;
47607
+ return jt.CommonWrapper = g, jt;
47600
47608
  }
47601
47609
  var JO;
47602
47610
  function Lt() {
@@ -47731,8 +47739,8 @@ function Lt() {
47731
47739
  var m = r(d.value, 2), y = m[0], x = m[1], O = "border" + y, v = this.styles.get(O + "Width");
47732
47740
  v && (f[x] = Math.max(0, this.length2em(v, 1, this.bbox.rscale)), h[x] = this.styles.get(O + "Style") || "solid", p[x] = this.styles.get(O + "Color") || "currentColor");
47733
47741
  }
47734
- } catch (G) {
47735
- u = { error: G };
47742
+ } catch (W) {
47743
+ u = { error: W };
47736
47744
  } finally {
47737
47745
  try {
47738
47746
  d && !d.done && (c = g.return) && c.call(g);
@@ -47747,18 +47755,18 @@ function Lt() {
47747
47755
  [N, M, R, _]
47748
47756
  ], Z = this.adaptor, k = Z.firstChild(this.element);
47749
47757
  try {
47750
- for (var te = e([0, 1, 2, 3]), ae = te.next(); !ae.done; ae = te.next()) {
47758
+ for (var ee = e([0, 1, 2, 3]), ae = ee.next(); !ae.done; ae = ee.next()) {
47751
47759
  var x = ae.value;
47752
47760
  if (f[x]) {
47753
47761
  var ie = D[x];
47754
47762
  h[x] === "dashed" || h[x] === "dotted" ? this.addBorderBroken(ie, p[x], h[x], f[x], x) : this.addBorderSolid(ie, p[x], k);
47755
47763
  }
47756
47764
  }
47757
- } catch (G) {
47758
- Q = { error: G };
47765
+ } catch (W) {
47766
+ Q = { error: W };
47759
47767
  } finally {
47760
47768
  try {
47761
- ae && !ae.done && (T = te.return) && T.call(te);
47769
+ ae && !ae.done && (T = ee.return) && T.call(ee);
47762
47770
  } finally {
47763
47771
  if (Q) throw Q.error;
47764
47772
  }
@@ -55233,7 +55241,7 @@ function Oie() {
55233
55241
  }((0, r.CommonMactionMixin)(e.SVGWrapper));
55234
55242
  return Z4.SVGmaction = a, Z4;
55235
55243
  }
55236
- var r1 = {}, qt = {}, K5 = {}, mv;
55244
+ var r1 = {}, Zt = {}, K5 = {}, mv;
55237
55245
  function _Q() {
55238
55246
  return mv || (mv = 1, function(t) {
55239
55247
  var e = K5 && K5.__read || function(c, Q) {
@@ -55394,9 +55402,9 @@ function _Q() {
55394
55402
  }
55395
55403
  var gv;
55396
55404
  function yie() {
55397
- if (gv) return qt;
55405
+ if (gv) return Zt;
55398
55406
  gv = 1;
55399
- var t = qt && qt.__extends || /* @__PURE__ */ function() {
55407
+ var t = Zt && Zt.__extends || /* @__PURE__ */ function() {
55400
55408
  var c = function(Q, T) {
55401
55409
  return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, h) {
55402
55410
  f.__proto__ = h;
@@ -55413,7 +55421,7 @@ function yie() {
55413
55421
  }
55414
55422
  Q.prototype = T === null ? Object.create(T) : (f.prototype = T.prototype, new f());
55415
55423
  };
55416
- }(), e = qt && qt.__createBinding || (Object.create ? function(c, Q, T, f) {
55424
+ }(), e = Zt && Zt.__createBinding || (Object.create ? function(c, Q, T, f) {
55417
55425
  f === void 0 && (f = T);
55418
55426
  var h = Object.getOwnPropertyDescriptor(Q, T);
55419
55427
  (!h || ("get" in h ? !Q.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
@@ -55421,16 +55429,16 @@ function yie() {
55421
55429
  } }), Object.defineProperty(c, f, h);
55422
55430
  } : function(c, Q, T, f) {
55423
55431
  f === void 0 && (f = T), c[f] = Q[T];
55424
- }), r = qt && qt.__setModuleDefault || (Object.create ? function(c, Q) {
55432
+ }), r = Zt && Zt.__setModuleDefault || (Object.create ? function(c, Q) {
55425
55433
  Object.defineProperty(c, "default", { enumerable: !0, value: Q });
55426
55434
  } : function(c, Q) {
55427
55435
  c.default = Q;
55428
- }), n = qt && qt.__importStar || function(c) {
55436
+ }), n = Zt && Zt.__importStar || function(c) {
55429
55437
  if (c && c.__esModule) return c;
55430
55438
  var Q = {};
55431
55439
  if (c != null) for (var T in c) T !== "default" && Object.prototype.hasOwnProperty.call(c, T) && e(Q, c, T);
55432
55440
  return r(Q, c), Q;
55433
- }, i = qt && qt.__read || function(c, Q) {
55441
+ }, i = Zt && Zt.__read || function(c, Q) {
55434
55442
  var T = typeof Symbol == "function" && c[Symbol.iterator];
55435
55443
  if (!T) return c;
55436
55444
  var f = T.call(c), h, p = [], g;
@@ -55446,11 +55454,11 @@ function yie() {
55446
55454
  }
55447
55455
  }
55448
55456
  return p;
55449
- }, a = qt && qt.__spreadArray || function(c, Q, T) {
55457
+ }, a = Zt && Zt.__spreadArray || function(c, Q, T) {
55450
55458
  if (T || arguments.length === 2) for (var f = 0, h = Q.length, p; f < h; f++)
55451
55459
  (p || !(f in Q)) && (p || (p = Array.prototype.slice.call(Q, 0, f)), p[f] = Q[f]);
55452
55460
  return c.concat(p || Array.prototype.slice.call(Q));
55453
- }, o = qt && qt.__values || function(c) {
55461
+ }, o = Zt && Zt.__values || function(c) {
55454
55462
  var Q = typeof Symbol == "function" && Symbol.iterator, T = Q && c[Q], f = 0;
55455
55463
  if (T) return T.call(c);
55456
55464
  if (c && typeof c.length == "number") return {
@@ -55460,7 +55468,7 @@ function yie() {
55460
55468
  };
55461
55469
  throw new TypeError(Q ? "Object is not iterable." : "Symbol.iterator is not defined.");
55462
55470
  };
55463
- Object.defineProperty(qt, "__esModule", { value: !0 }), qt.CommonMencloseMixin = void 0;
55471
+ Object.defineProperty(Zt, "__esModule", { value: !0 }), Zt.CommonMencloseMixin = void 0;
55464
55472
  var s = n(_Q()), l = Nr();
55465
55473
  function u(c) {
55466
55474
  return function(Q) {
@@ -55616,7 +55624,7 @@ function yie() {
55616
55624
  }, T;
55617
55625
  }(c);
55618
55626
  }
55619
- return qt.CommonMencloseMixin = u, qt;
55627
+ return Zt.CommonMencloseMixin = u, Zt;
55620
55628
  }
55621
55629
  var mr = {}, Ov;
55622
55630
  function vie() {
@@ -62181,8 +62189,8 @@ function w6e() {
62181
62189
  var k = Z.value;
62182
62190
  V.variant[k].cacheID = "TEX-" + _.variantCacheIds[k];
62183
62191
  }
62184
- } catch (te) {
62185
- $ = { error: te };
62192
+ } catch (ee) {
62193
+ $ = { error: ee };
62186
62194
  } finally {
62187
62195
  try {
62188
62196
  Z && !Z.done && (R = D.return) && R.call(D);
@@ -62952,7 +62960,7 @@ const J6e = [
62952
62960
  "textArea",
62953
62961
  "textPath"
62954
62962
  ], yP = OP(f8, "div"), e5e = OP(o5, "g", J6e);
62955
- var Zt = {}, G4 = {}, jx;
62963
+ var zt = {}, G4 = {}, jx;
62956
62964
  function t5e() {
62957
62965
  if (jx) return G4;
62958
62966
  jx = 1;
@@ -64131,9 +64139,9 @@ function s5e() {
64131
64139
  }
64132
64140
  var rL;
64133
64141
  function l5e() {
64134
- if (rL) return Zt;
64142
+ if (rL) return zt;
64135
64143
  rL = 1;
64136
- var t = Zt && Zt.__extends || /* @__PURE__ */ function() {
64144
+ var t = zt && zt.__extends || /* @__PURE__ */ function() {
64137
64145
  var g = function(d, m) {
64138
64146
  return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, x) {
64139
64147
  y.__proto__ = x;
@@ -64150,7 +64158,7 @@ function l5e() {
64150
64158
  }
64151
64159
  d.prototype = m === null ? Object.create(m) : (y.prototype = m.prototype, new y());
64152
64160
  };
64153
- }(), e = Zt && Zt.__assign || function() {
64161
+ }(), e = zt && zt.__assign || function() {
64154
64162
  return e = Object.assign || function(g) {
64155
64163
  for (var d, m = 1, y = arguments.length; m < y; m++) {
64156
64164
  d = arguments[m];
@@ -64158,7 +64166,7 @@ function l5e() {
64158
64166
  }
64159
64167
  return g;
64160
64168
  }, e.apply(this, arguments);
64161
- }, r = Zt && Zt.__values || function(g) {
64169
+ }, r = zt && zt.__values || function(g) {
64162
64170
  var d = typeof Symbol == "function" && Symbol.iterator, m = d && g[d], y = 0;
64163
64171
  if (m) return m.call(g);
64164
64172
  if (g && typeof g.length == "number") return {
@@ -64167,7 +64175,7 @@ function l5e() {
64167
64175
  }
64168
64176
  };
64169
64177
  throw new TypeError(d ? "Object is not iterable." : "Symbol.iterator is not defined.");
64170
- }, n = Zt && Zt.__read || function(g, d) {
64178
+ }, n = zt && zt.__read || function(g, d) {
64171
64179
  var m = typeof Symbol == "function" && g[Symbol.iterator];
64172
64180
  if (!m) return g;
64173
64181
  var y = m.call(g), x, O = [], v;
@@ -64183,12 +64191,12 @@ function l5e() {
64183
64191
  }
64184
64192
  }
64185
64193
  return O;
64186
- }, i = Zt && Zt.__spreadArray || function(g, d, m) {
64194
+ }, i = zt && zt.__spreadArray || function(g, d, m) {
64187
64195
  if (m || arguments.length === 2) for (var y = 0, x = d.length, O; y < x; y++)
64188
64196
  (O || !(y in d)) && (O || (O = Array.prototype.slice.call(d, 0, y)), O[y] = d[y]);
64189
64197
  return g.concat(O || Array.prototype.slice.call(d));
64190
64198
  };
64191
- Object.defineProperty(Zt, "__esModule", { value: !0 }), Zt.liteAdaptor = Zt.LiteAdaptor = Zt.LiteBase = void 0;
64199
+ Object.defineProperty(zt, "__esModule", { value: !0 }), zt.liteAdaptor = zt.LiteAdaptor = zt.LiteBase = void 0;
64192
64200
  var a = t5e(), o = r5e(), s = vP(), l = x8(), u = xP(), c = s5e(), Q = LP(), T = _f(), f = function(g) {
64193
64201
  t(d, g);
64194
64202
  function d() {
@@ -64404,7 +64412,7 @@ function l5e() {
64404
64412
  return { left: 0, right: 0, top: 0, bottom: 0 };
64405
64413
  }, d;
64406
64414
  }(a.AbstractDOMAdaptor);
64407
- Zt.LiteBase = f;
64415
+ zt.LiteBase = f;
64408
64416
  var h = function(g) {
64409
64417
  t(d, g);
64410
64418
  function d() {
@@ -64412,11 +64420,11 @@ function l5e() {
64412
64420
  }
64413
64421
  return d;
64414
64422
  }((0, o.NodeMixin)(f));
64415
- Zt.LiteAdaptor = h;
64423
+ zt.LiteAdaptor = h;
64416
64424
  function p(g) {
64417
64425
  return g === void 0 && (g = null), new h(null, g);
64418
64426
  }
64419
- return Zt.liteAdaptor = p, Zt;
64427
+ return zt.liteAdaptor = p, zt;
64420
64428
  }
64421
64429
  var u5e = l5e(), W0 = {}, J4 = {}, ei = {}, yr = {}, G0 = {}, nL;
64422
64430
  function bP() {
@@ -66567,99 +66575,99 @@ function gt() {
66567
66575
  var n = we(), i = r(bt()), a = r(y1()), o = r(lt()), s = fs(), l;
66568
66576
  return function(u) {
66569
66577
  var c = 7.2, Q = 72, T = {
66570
- em: function(G) {
66571
- return G;
66578
+ em: function(W) {
66579
+ return W;
66572
66580
  },
66573
- ex: function(G) {
66574
- return G * 0.43;
66581
+ ex: function(W) {
66582
+ return W * 0.43;
66575
66583
  },
66576
- pt: function(G) {
66577
- return G / 10;
66584
+ pt: function(W) {
66585
+ return W / 10;
66578
66586
  },
66579
- pc: function(G) {
66580
- return G * 1.2;
66587
+ pc: function(W) {
66588
+ return W * 1.2;
66581
66589
  },
66582
- px: function(G) {
66583
- return G * c / Q;
66590
+ px: function(W) {
66591
+ return W * c / Q;
66584
66592
  },
66585
- in: function(G) {
66586
- return G * c;
66593
+ in: function(W) {
66594
+ return W * c;
66587
66595
  },
66588
- cm: function(G) {
66589
- return G * c / 2.54;
66596
+ cm: function(W) {
66597
+ return W * c / 2.54;
66590
66598
  },
66591
- mm: function(G) {
66592
- return G * c / 25.4;
66599
+ mm: function(W) {
66600
+ return W * c / 25.4;
66593
66601
  },
66594
- mu: function(G) {
66595
- return G / 18;
66602
+ mu: function(W) {
66603
+ return W / 18;
66596
66604
  }
66597
66605
  }, f = "([-+]?([.,]\\d+|\\d+([.,]\\d*)?))", h = "(pt|em|ex|mu|px|mm|cm|in|pc)", p = RegExp("^\\s*" + f + "\\s*" + h + "\\s*$"), g = RegExp("^\\s*" + f + "\\s*" + h + " ?");
66598
- function d(G, X) {
66606
+ function d(W, X) {
66599
66607
  X === void 0 && (X = !1);
66600
- var K = G.match(X ? g : p);
66601
- return K ? m([K[1].replace(/,/, "."), K[4], K[0].length]) : [null, null, 0];
66608
+ var J = W.match(X ? g : p);
66609
+ return J ? m([J[1].replace(/,/, "."), J[4], J[0].length]) : [null, null, 0];
66602
66610
  }
66603
66611
  u.matchDimen = d;
66604
- function m(G) {
66605
- var X = t(G, 3), K = X[0], re = X[1], oe = X[2];
66612
+ function m(W) {
66613
+ var X = t(W, 3), J = X[0], re = X[1], oe = X[2];
66606
66614
  if (re !== "mu")
66607
- return [K, re, oe];
66608
- var I = x(T[re](parseFloat(K || "1")));
66615
+ return [J, re, oe];
66616
+ var I = x(T[re](parseFloat(J || "1")));
66609
66617
  return [I.slice(0, -2), "em", oe];
66610
66618
  }
66611
- function y(G) {
66612
- var X = t(d(G), 2), K = X[0], re = X[1], oe = parseFloat(K || "1"), I = T[re];
66619
+ function y(W) {
66620
+ var X = t(d(W), 2), J = X[0], re = X[1], oe = parseFloat(J || "1"), I = T[re];
66613
66621
  return I ? I(oe) : 0;
66614
66622
  }
66615
66623
  u.dimen2em = y;
66616
- function x(G) {
66617
- return Math.abs(G) < 6e-4 ? "0em" : G.toFixed(3).replace(/\.?0+$/, "") + "em";
66624
+ function x(W) {
66625
+ return Math.abs(W) < 6e-4 ? "0em" : W.toFixed(3).replace(/\.?0+$/, "") + "em";
66618
66626
  }
66619
66627
  u.Em = x;
66620
66628
  function O() {
66621
- for (var G = [], X = 0; X < arguments.length; X++)
66622
- G[X] = arguments[X];
66623
- return G.map(function(K) {
66624
- return x(K);
66629
+ for (var W = [], X = 0; X < arguments.length; X++)
66630
+ W[X] = arguments[X];
66631
+ return W.map(function(J) {
66632
+ return x(J);
66625
66633
  }).join(" ");
66626
66634
  }
66627
66635
  u.cols = O;
66628
- function v(G, X, K, re, oe, I) {
66636
+ function v(W, X, J, re, oe, I) {
66629
66637
  oe === void 0 && (oe = ""), I === void 0 && (I = "");
66630
- var z = G.nodeFactory, W = z.create("node", "mrow", [], { open: X, close: re, texClass: n.TEXCLASS.INNER }), ee;
66638
+ var z = W.nodeFactory, G = z.create("node", "mrow", [], { open: X, close: re, texClass: n.TEXCLASS.INNER }), K;
66631
66639
  if (oe)
66632
- ee = new a.default("\\" + oe + "l" + X, G.parser.stack.env, G).mml();
66640
+ K = new a.default("\\" + oe + "l" + X, W.parser.stack.env, W).mml();
66633
66641
  else {
66634
- var ce = z.create("text", X);
66635
- ee = z.create("node", "mo", [], { fence: !0, stretchy: !0, symmetric: !0, texClass: n.TEXCLASS.OPEN }, ce);
66642
+ var ue = z.create("text", X);
66643
+ K = z.create("node", "mo", [], { fence: !0, stretchy: !0, symmetric: !0, texClass: n.TEXCLASS.OPEN }, ue);
66636
66644
  }
66637
- if (i.default.appendChildren(W, [ee, K]), oe)
66638
- ee = new a.default("\\" + oe + "r" + re, G.parser.stack.env, G).mml();
66645
+ if (i.default.appendChildren(G, [K, J]), oe)
66646
+ K = new a.default("\\" + oe + "r" + re, W.parser.stack.env, W).mml();
66639
66647
  else {
66640
66648
  var ge = z.create("text", re);
66641
- ee = z.create("node", "mo", [], { fence: !0, stretchy: !0, symmetric: !0, texClass: n.TEXCLASS.CLOSE }, ge);
66649
+ K = z.create("node", "mo", [], { fence: !0, stretchy: !0, symmetric: !0, texClass: n.TEXCLASS.CLOSE }, ge);
66642
66650
  }
66643
- return I && ee.attributes.set("mathcolor", I), i.default.appendChildren(W, [ee]), W;
66651
+ return I && K.attributes.set("mathcolor", I), i.default.appendChildren(G, [K]), G;
66644
66652
  }
66645
66653
  u.fenced = v;
66646
- function L(G, X, K, re) {
66647
- var oe = G.nodeFactory.create("node", "mrow", [], { open: X, close: re, texClass: n.TEXCLASS.ORD });
66648
- return X && i.default.appendChildren(oe, [b(G, X, "l")]), i.default.isType(K, "mrow") ? i.default.appendChildren(oe, i.default.getChildren(K)) : i.default.appendChildren(oe, [K]), re && i.default.appendChildren(oe, [b(G, re, "r")]), oe;
66654
+ function L(W, X, J, re) {
66655
+ var oe = W.nodeFactory.create("node", "mrow", [], { open: X, close: re, texClass: n.TEXCLASS.ORD });
66656
+ return X && i.default.appendChildren(oe, [b(W, X, "l")]), i.default.isType(J, "mrow") ? i.default.appendChildren(oe, i.default.getChildren(J)) : i.default.appendChildren(oe, [J]), re && i.default.appendChildren(oe, [b(W, re, "r")]), oe;
66649
66657
  }
66650
66658
  u.fixedFence = L;
66651
- function b(G, X, K) {
66659
+ function b(W, X, J) {
66652
66660
  (X === "{" || X === "}") && (X = "\\" + X);
66653
- var re = "{\\bigg" + K + " " + X + "}", oe = "{\\big" + K + " " + X + "}";
66654
- return new a.default("\\mathchoice" + re + oe + oe + oe, {}, G).mml();
66661
+ var re = "{\\bigg" + J + " " + X + "}", oe = "{\\big" + J + " " + X + "}";
66662
+ return new a.default("\\mathchoice" + re + oe + oe + oe, {}, W).mml();
66655
66663
  }
66656
66664
  u.mathPalette = b;
66657
- function S(G, X) {
66658
- for (var K = 0, re = X.length; K < re; K++) {
66659
- var oe = X[K];
66665
+ function S(W, X) {
66666
+ for (var J = 0, re = X.length; J < re; J++) {
66667
+ var oe = X[J];
66660
66668
  if (oe && !i.default.isType(oe, "mspace") && (!i.default.isType(oe, "TeXAtom") || i.default.getChildren(oe)[0] && i.default.getChildren(i.default.getChildren(oe)[0]).length)) {
66661
66669
  if (i.default.isEmbellished(oe) || i.default.isType(oe, "TeXAtom") && i.default.getTexClass(oe) === n.TEXCLASS.REL) {
66662
- var I = G.nodeFactory.create("node", "mi");
66670
+ var I = W.nodeFactory.create("node", "mi");
66663
66671
  X.unshift(I);
66664
66672
  }
66665
66673
  break;
@@ -66667,154 +66675,154 @@ function gt() {
66667
66675
  }
66668
66676
  }
66669
66677
  u.fixInitialMO = S;
66670
- function E(G, X, K, re) {
66671
- if (G.configuration.options.internalMath)
66672
- return G.configuration.options.internalMath(G, X, K, re);
66673
- var oe = re || G.stack.env.font, I = oe ? { mathvariant: oe } : {}, z = [], W = 0, ee = 0, ce, ge, he = "", xe = 0;
66678
+ function E(W, X, J, re) {
66679
+ if (W.configuration.options.internalMath)
66680
+ return W.configuration.options.internalMath(W, X, J, re);
66681
+ var oe = re || W.stack.env.font, I = oe ? { mathvariant: oe } : {}, z = [], G = 0, K = 0, ue, ge, he = "", xe = 0;
66674
66682
  if (X.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)) {
66675
- for (; W < X.length; )
66676
- if (ce = X.charAt(W++), ce === "$")
66677
- he === "$" && xe === 0 ? (ge = G.create("node", "TeXAtom", [new a.default(X.slice(ee, W - 1), {}, G.configuration).mml()]), z.push(ge), he = "", ee = W) : he === "" && (ee < W - 1 && z.push(C(G, X.slice(ee, W - 1), I)), he = "$", ee = W);
66678
- else if (ce === "{" && he !== "")
66683
+ for (; G < X.length; )
66684
+ if (ue = X.charAt(G++), ue === "$")
66685
+ he === "$" && xe === 0 ? (ge = W.create("node", "TeXAtom", [new a.default(X.slice(K, G - 1), {}, W.configuration).mml()]), z.push(ge), he = "", K = G) : he === "" && (K < G - 1 && z.push(C(W, X.slice(K, G - 1), I)), he = "$", K = G);
66686
+ else if (ue === "{" && he !== "")
66679
66687
  xe++;
66680
- else if (ce === "}")
66688
+ else if (ue === "}")
66681
66689
  if (he === "}" && xe === 0) {
66682
- var Ie = new a.default(X.slice(ee, W), {}, G.configuration).mml();
66683
- ge = G.create("node", "TeXAtom", [Ie], I), z.push(ge), he = "", ee = W;
66690
+ var Ie = new a.default(X.slice(K, G), {}, W.configuration).mml();
66691
+ ge = W.create("node", "TeXAtom", [Ie], I), z.push(ge), he = "", K = G;
66684
66692
  } else he !== "" && xe && xe--;
66685
- else if (ce === "\\")
66686
- if (he === "" && X.substr(W).match(/^(eq)?ref\s*\{/)) {
66693
+ else if (ue === "\\")
66694
+ if (he === "" && X.substr(G).match(/^(eq)?ref\s*\{/)) {
66687
66695
  var Qt = RegExp["$&"].length;
66688
- ee < W - 1 && z.push(C(G, X.slice(ee, W - 1), I)), he = "}", ee = W - 1, W += Qt;
66696
+ K < G - 1 && z.push(C(W, X.slice(K, G - 1), I)), he = "}", K = G - 1, G += Qt;
66689
66697
  } else
66690
- ce = X.charAt(W++), ce === "(" && he === "" ? (ee < W - 2 && z.push(C(G, X.slice(ee, W - 2), I)), he = ")", ee = W) : ce === ")" && he === ")" && xe === 0 ? (ge = G.create("node", "TeXAtom", [new a.default(X.slice(ee, W - 2), {}, G.configuration).mml()]), z.push(ge), he = "", ee = W) : ce.match(/[${}\\]/) && he === "" && (W--, X = X.substr(0, W - 1) + X.substr(W));
66698
+ ue = X.charAt(G++), ue === "(" && he === "" ? (K < G - 2 && z.push(C(W, X.slice(K, G - 2), I)), he = ")", K = G) : ue === ")" && he === ")" && xe === 0 ? (ge = W.create("node", "TeXAtom", [new a.default(X.slice(K, G - 2), {}, W.configuration).mml()]), z.push(ge), he = "", K = G) : ue.match(/[${}\\]/) && he === "" && (G--, X = X.substr(0, G - 1) + X.substr(G));
66691
66699
  if (he !== "")
66692
66700
  throw new o.default("MathNotTerminated", "Math not terminated in text box");
66693
66701
  }
66694
- return ee < X.length && z.push(C(G, X.slice(ee), I)), K != null ? z = [G.create("node", "mstyle", z, { displaystyle: !1, scriptlevel: K })] : z.length > 1 && (z = [G.create("node", "mrow", z)]), z;
66702
+ return K < X.length && z.push(C(W, X.slice(K), I)), J != null ? z = [W.create("node", "mstyle", z, { displaystyle: !1, scriptlevel: J })] : z.length > 1 && (z = [W.create("node", "mrow", z)]), z;
66695
66703
  }
66696
66704
  u.internalMath = E;
66697
- function C(G, X, K) {
66705
+ function C(W, X, J) {
66698
66706
  X = X.replace(/^\s+/, s.entities.nbsp).replace(/\s+$/, s.entities.nbsp);
66699
- var re = G.create("text", X);
66700
- return G.create("node", "mtext", [], K, re);
66707
+ var re = W.create("text", X);
66708
+ return W.create("node", "mtext", [], J, re);
66701
66709
  }
66702
66710
  u.internalText = C;
66703
- function A(G, X, K, re, oe) {
66711
+ function A(W, X, J, re, oe) {
66704
66712
  if (u.checkMovableLimits(X), i.default.isType(X, "munderover") && i.default.isEmbellished(X)) {
66705
66713
  i.default.setProperties(i.default.getCoreMO(X), { lspace: 0, rspace: 0 });
66706
- var I = G.create("node", "mo", [], { rspace: 0 });
66707
- X = G.create("node", "mrow", [I, X]);
66714
+ var I = W.create("node", "mo", [], { rspace: 0 });
66715
+ X = W.create("node", "mrow", [I, X]);
66708
66716
  }
66709
- var z = G.create("node", "munderover", [X]);
66710
- i.default.setChild(z, re === "over" ? z.over : z.under, K);
66711
- var W = z;
66712
- return oe && (W = G.create("node", "TeXAtom", [z], { texClass: n.TEXCLASS.OP, movesupsub: !0 })), i.default.setProperty(W, "subsupOK", !0), W;
66717
+ var z = W.create("node", "munderover", [X]);
66718
+ i.default.setChild(z, re === "over" ? z.over : z.under, J);
66719
+ var G = z;
66720
+ return oe && (G = W.create("node", "TeXAtom", [z], { texClass: n.TEXCLASS.OP, movesupsub: !0 })), i.default.setProperty(G, "subsupOK", !0), G;
66713
66721
  }
66714
66722
  u.underOver = A;
66715
- function w(G) {
66716
- var X = i.default.isType(G, "mo") ? i.default.getForm(G) : null;
66717
- (i.default.getProperty(G, "movablelimits") || X && X[3] && X[3].movablelimits) && i.default.setProperties(G, { movablelimits: !1 });
66723
+ function w(W) {
66724
+ var X = i.default.isType(W, "mo") ? i.default.getForm(W) : null;
66725
+ (i.default.getProperty(W, "movablelimits") || X && X[3] && X[3].movablelimits) && i.default.setProperties(W, { movablelimits: !1 });
66718
66726
  }
66719
66727
  u.checkMovableLimits = w;
66720
- function M(G) {
66721
- if (typeof G != "string")
66722
- return G;
66723
- var X = G.trim();
66724
- return X.match(/\\$/) && G.match(/ $/) && (X += " "), X;
66728
+ function M(W) {
66729
+ if (typeof W != "string")
66730
+ return W;
66731
+ var X = W.trim();
66732
+ return X.match(/\\$/) && W.match(/ $/) && (X += " "), X;
66725
66733
  }
66726
66734
  u.trimSpaces = M;
66727
- function P(G, X) {
66728
- return X = u.trimSpaces(X || ""), X === "t" ? G.arraydef.align = "baseline 1" : X === "b" ? G.arraydef.align = "baseline -1" : X === "c" ? G.arraydef.align = "axis" : X && (G.arraydef.align = X), G;
66735
+ function P(W, X) {
66736
+ return X = u.trimSpaces(X || ""), X === "t" ? W.arraydef.align = "baseline 1" : X === "b" ? W.arraydef.align = "baseline -1" : X === "c" ? W.arraydef.align = "axis" : X && (W.arraydef.align = X), W;
66729
66737
  }
66730
66738
  u.setArrayAlign = P;
66731
- function N(G, X, K) {
66732
- for (var re = "", oe = "", I = 0; I < K.length; ) {
66733
- var z = K.charAt(I++);
66739
+ function N(W, X, J) {
66740
+ for (var re = "", oe = "", I = 0; I < J.length; ) {
66741
+ var z = J.charAt(I++);
66734
66742
  if (z === "\\")
66735
- re += z + K.charAt(I++);
66743
+ re += z + J.charAt(I++);
66736
66744
  else if (z === "#")
66737
- if (z = K.charAt(I++), z === "#")
66745
+ if (z = J.charAt(I++), z === "#")
66738
66746
  re += z;
66739
66747
  else {
66740
66748
  if (!z.match(/[1-9]/) || parseInt(z, 10) > X.length)
66741
66749
  throw new o.default("IllegalMacroParam", "Illegal macro parameter reference");
66742
- oe = $(G, $(G, oe, re), X[parseInt(z, 10) - 1]), re = "";
66750
+ oe = $(W, $(W, oe, re), X[parseInt(z, 10) - 1]), re = "";
66743
66751
  }
66744
66752
  else
66745
66753
  re += z;
66746
66754
  }
66747
- return $(G, oe, re);
66755
+ return $(W, oe, re);
66748
66756
  }
66749
66757
  u.substituteArgs = N;
66750
- function $(G, X, K) {
66751
- if (K.match(/^[a-z]/i) && X.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i) && (X += " "), X.length + K.length > G.configuration.options.maxBuffer)
66758
+ function $(W, X, J) {
66759
+ if (J.match(/^[a-z]/i) && X.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i) && (X += " "), X.length + J.length > W.configuration.options.maxBuffer)
66752
66760
  throw new o.default("MaxBufferSize", "MathJax internal buffer size exceeded; is there a recursive macro call?");
66753
- return X + K;
66761
+ return X + J;
66754
66762
  }
66755
66763
  u.addArgs = $;
66756
- function R(G, X) {
66757
- if (X === void 0 && (X = !0), !(++G.macroCount <= G.configuration.options.maxMacros))
66764
+ function R(W, X) {
66765
+ if (X === void 0 && (X = !0), !(++W.macroCount <= W.configuration.options.maxMacros))
66758
66766
  throw X ? new o.default("MaxMacroSub1", "MathJax maximum macro substitution count exceeded; is here a recursive macro call?") : new o.default("MaxMacroSub2", "MathJax maximum substitution count exceeded; is there a recursive latex environment?");
66759
66767
  }
66760
66768
  u.checkMaxMacros = R;
66761
- function V(G) {
66762
- if (G.stack.global.eqnenv)
66769
+ function V(W) {
66770
+ if (W.stack.global.eqnenv)
66763
66771
  throw new o.default("ErroneousNestingEq", "Erroneous nesting of equation structures");
66764
- G.stack.global.eqnenv = !0;
66772
+ W.stack.global.eqnenv = !0;
66765
66773
  }
66766
66774
  u.checkEqnEnv = V;
66767
- function _(G, X) {
66768
- var K = G.copy(), re = X.configuration;
66769
- return K.walkTree(function(oe) {
66775
+ function _(W, X) {
66776
+ var J = W.copy(), re = X.configuration;
66777
+ return J.walkTree(function(oe) {
66770
66778
  var I, z;
66771
66779
  re.addNode(oe.kind, oe);
66772
- var W = (oe.getProperty("in-lists") || "").split(/,/);
66780
+ var G = (oe.getProperty("in-lists") || "").split(/,/);
66773
66781
  try {
66774
- for (var ee = e(W), ce = ee.next(); !ce.done; ce = ee.next()) {
66775
- var ge = ce.value;
66782
+ for (var K = e(G), ue = K.next(); !ue.done; ue = K.next()) {
66783
+ var ge = ue.value;
66776
66784
  ge && re.addNode(ge, oe);
66777
66785
  }
66778
66786
  } catch (he) {
66779
66787
  I = { error: he };
66780
66788
  } finally {
66781
66789
  try {
66782
- ce && !ce.done && (z = ee.return) && z.call(ee);
66790
+ ue && !ue.done && (z = K.return) && z.call(K);
66783
66791
  } finally {
66784
66792
  if (I) throw I.error;
66785
66793
  }
66786
66794
  }
66787
- }), K;
66795
+ }), J;
66788
66796
  }
66789
66797
  u.copyNode = _;
66790
- function D(G, X, K) {
66791
- return K;
66798
+ function D(W, X, J) {
66799
+ return J;
66792
66800
  }
66793
66801
  u.MmlFilterAttribute = D;
66794
- function Z(G) {
66795
- var X = G.stack.env.font;
66802
+ function Z(W) {
66803
+ var X = W.stack.env.font;
66796
66804
  return X ? { mathvariant: X } : {};
66797
66805
  }
66798
66806
  u.getFontDef = Z;
66799
- function k(G, X, K) {
66807
+ function k(W, X, J) {
66800
66808
  var re, oe;
66801
- X === void 0 && (X = null), K === void 0 && (K = !1);
66802
- var I = te(G);
66809
+ X === void 0 && (X = null), J === void 0 && (J = !1);
66810
+ var I = ee(W);
66803
66811
  if (X)
66804
66812
  try {
66805
- for (var z = e(Object.keys(I)), W = z.next(); !W.done; W = z.next()) {
66806
- var ee = W.value;
66807
- if (!X.hasOwnProperty(ee)) {
66808
- if (K)
66809
- throw new o.default("InvalidOption", "Invalid option: %1", ee);
66810
- delete I[ee];
66813
+ for (var z = e(Object.keys(I)), G = z.next(); !G.done; G = z.next()) {
66814
+ var K = G.value;
66815
+ if (!X.hasOwnProperty(K)) {
66816
+ if (J)
66817
+ throw new o.default("InvalidOption", "Invalid option: %1", K);
66818
+ delete I[K];
66811
66819
  }
66812
66820
  }
66813
- } catch (ce) {
66814
- re = { error: ce };
66821
+ } catch (ue) {
66822
+ re = { error: ue };
66815
66823
  } finally {
66816
66824
  try {
66817
- W && !W.done && (oe = z.return) && oe.call(z);
66825
+ G && !G.done && (oe = z.return) && oe.call(z);
66818
66826
  } finally {
66819
66827
  if (re) throw re.error;
66820
66828
  }
@@ -66822,38 +66830,38 @@ function gt() {
66822
66830
  return I;
66823
66831
  }
66824
66832
  u.keyvalOptions = k;
66825
- function te(G) {
66826
- for (var X, K, re = {}, oe = G, I, z, W; oe; )
66827
- X = t(ie(oe, ["=", ","]), 3), z = X[0], I = X[1], oe = X[2], I === "=" ? (K = t(ie(oe, [","]), 3), W = K[0], I = K[1], oe = K[2], W = W === "false" || W === "true" ? JSON.parse(W) : W, re[z] = W) : z && (re[z] = !0);
66833
+ function ee(W) {
66834
+ for (var X, J, re = {}, oe = W, I, z, G; oe; )
66835
+ X = t(ie(oe, ["=", ","]), 3), z = X[0], I = X[1], oe = X[2], I === "=" ? (J = t(ie(oe, [","]), 3), G = J[0], I = J[1], oe = J[2], G = G === "false" || G === "true" ? JSON.parse(G) : G, re[z] = G) : z && (re[z] = !0);
66828
66836
  return re;
66829
66837
  }
66830
- function ae(G, X) {
66838
+ function ae(W, X) {
66831
66839
  for (; X > 0; )
66832
- G = G.trim().slice(1, -1), X--;
66833
- return G.trim();
66840
+ W = W.trim().slice(1, -1), X--;
66841
+ return W.trim();
66834
66842
  }
66835
- function ie(G, X) {
66836
- for (var K = G.length, re = 0, oe = "", I = 0, z = 0, W = !0, ee = !1; I < K; ) {
66837
- var ce = G[I++];
66838
- switch (ce) {
66843
+ function ie(W, X) {
66844
+ for (var J = W.length, re = 0, oe = "", I = 0, z = 0, G = !0, K = !1; I < J; ) {
66845
+ var ue = W[I++];
66846
+ switch (ue) {
66839
66847
  case " ":
66840
66848
  break;
66841
66849
  case "{":
66842
- W ? z++ : (ee = !1, z > re && (z = re)), re++;
66850
+ G ? z++ : (K = !1, z > re && (z = re)), re++;
66843
66851
  break;
66844
66852
  case "}":
66845
- re && re--, (W || ee) && (z--, ee = !0), W = !1;
66853
+ re && re--, (G || K) && (z--, K = !0), G = !1;
66846
66854
  break;
66847
66855
  default:
66848
- if (!re && X.indexOf(ce) !== -1)
66849
- return [ee ? "true" : ae(oe, z), ce, G.slice(I)];
66850
- W = !1, ee = !1;
66856
+ if (!re && X.indexOf(ue) !== -1)
66857
+ return [K ? "true" : ae(oe, z), ue, W.slice(I)];
66858
+ G = !1, K = !1;
66851
66859
  }
66852
- oe += ce;
66860
+ oe += ue;
66853
66861
  }
66854
66862
  if (re)
66855
66863
  throw new o.default("ExtraOpenMissingClose", "Extra open brace or missing close brace");
66856
- return [ee ? "true" : ae(oe, z), "", G.slice(I)];
66864
+ return [K ? "true" : ae(oe, z), "", W.slice(I)];
66857
66865
  }
66858
66866
  }(l || (l = {})), Zr.default = l, Zr;
66859
66867
  }
@@ -68098,16 +68106,16 @@ function R3() {
68098
68106
  }(), e = He && He.__read || function(R, V) {
68099
68107
  var _ = typeof Symbol == "function" && R[Symbol.iterator];
68100
68108
  if (!_) return R;
68101
- var D = _.call(R), Z, k = [], te;
68109
+ var D = _.call(R), Z, k = [], ee;
68102
68110
  try {
68103
68111
  for (; (V === void 0 || V-- > 0) && !(Z = D.next()).done; ) k.push(Z.value);
68104
68112
  } catch (ae) {
68105
- te = { error: ae };
68113
+ ee = { error: ae };
68106
68114
  } finally {
68107
68115
  try {
68108
68116
  Z && !Z.done && (_ = D.return) && _.call(D);
68109
68117
  } finally {
68110
- if (te) throw te.error;
68118
+ if (ee) throw ee.error;
68111
68119
  }
68112
68120
  }
68113
68121
  return k;
@@ -68231,8 +68239,8 @@ function R3() {
68231
68239
  }), V.prototype.checkItem = function(_) {
68232
68240
  var D = e(this.Peek(2), 2), Z = D[0], k = D[1];
68233
68241
  if (!u.default.isType(Z, "msubsup") || u.default.isType(Z, "msup")) {
68234
- var te = this.create("node", "msup", [Z, k]);
68235
- return [[te, _], !0];
68242
+ var ee = this.create("node", "msup", [Z, k]);
68243
+ return [[ee, _], !0];
68236
68244
  }
68237
68245
  return u.default.setChild(Z, Z.sup, k), [[Z, _], !0];
68238
68246
  }, V;
@@ -68263,8 +68271,8 @@ function R3() {
68263
68271
  _.First = k;
68264
68272
  }
68265
68273
  u.default.setChild(D, Z, _.First), this.getProperty("movesupsub") != null && u.default.setProperty(D, "movesupsub", this.getProperty("movesupsub"));
68266
- var te = this.factory.create("mml", D);
68267
- return [[te], !0];
68274
+ var ee = this.factory.create("mml", D);
68275
+ return [[ee], !0];
68268
68276
  }
68269
68277
  if (R.prototype.checkItem.call(this, _)[1]) {
68270
68278
  var ae = this.getErrors(["", "sub", "sup"][Z]);
@@ -68564,8 +68572,8 @@ function R3() {
68564
68572
  if (k != null && [0, 0, 1, 1, 0, 1, 1, 0, 0, 0][k[2]])
68565
68573
  return [[D, _], !0];
68566
68574
  }
68567
- var te = this.create("token", "mo", { texClass: o.TEXCLASS.NONE }, a.entities.ApplyFunction);
68568
- return [[D, te, _], !0];
68575
+ var ee = this.create("token", "mo", { texClass: o.TEXCLASS.NONE }, a.entities.ApplyFunction);
68576
+ return [[D, ee, _], !0];
68569
68577
  }
68570
68578
  return R.prototype.checkItem.apply(this, arguments);
68571
68579
  }, V;
@@ -68590,7 +68598,7 @@ function R3() {
68590
68598
  if (_.isKind("mml") && (u.default.isType(_.First, "mo") || u.default.isType(_.First, "mi") || u.default.isType(_.First, "mtext")) && (D = _.First, Z = u.default.getText(D), Z.length === 1 && !u.default.getProperty(D, "movesupsub") && u.default.getChildren(D).length === 1))
68591
68599
  return this.remap.contains(Z) ? (k = this.create("text", this.remap.lookup(Z).char), u.default.setChild(D, 0, k)) : (k = this.create("text", "̸"), u.default.appendChildren(D, [k])), [[_], !0];
68592
68600
  k = this.create("text", "⧸");
68593
- var te = this.create("node", "mtext", [], {}, k), ae = this.create("node", "mpadded", [te], { width: 0 });
68601
+ var ee = this.create("node", "mtext", [], {}, k), ae = this.create("node", "mpadded", [ee], { width: 0 });
68594
68602
  return D = this.create("node", "TeXAtom", [ae], { texClass: o.TEXCLASS.REL }), [[D, _], !0];
68595
68603
  }, V;
68596
68604
  }(c.BaseItem);
@@ -71469,14 +71477,14 @@ function Rf() {
71469
71477
  var e = u3 && u3.__read || function(_, D) {
71470
71478
  var Z = typeof Symbol == "function" && _[Symbol.iterator];
71471
71479
  if (!Z) return _;
71472
- var k = Z.call(_), te, ae = [], ie;
71480
+ var k = Z.call(_), ee, ae = [], ie;
71473
71481
  try {
71474
- for (; (D === void 0 || D-- > 0) && !(te = k.next()).done; ) ae.push(te.value);
71475
- } catch (G) {
71476
- ie = { error: G };
71482
+ for (; (D === void 0 || D-- > 0) && !(ee = k.next()).done; ) ae.push(ee.value);
71483
+ } catch (W) {
71484
+ ie = { error: W };
71477
71485
  } finally {
71478
71486
  try {
71479
- te && !te.done && (Z = k.return) && Z.call(k);
71487
+ ee && !ee.done && (Z = k.return) && Z.call(k);
71480
71488
  } finally {
71481
71489
  if (ie) throw ie.error;
71482
71490
  }
@@ -71536,21 +71544,21 @@ function Rf() {
71536
71544
  if (_ === D)
71537
71545
  return k;
71538
71546
  if (_ !== D.parent) {
71539
- var te = _.childNodes, ae = Z ? te.length - 1 : 0;
71540
- a.default.isType(te[ae], "mspace") && (k += u(te[ae])), _ = D.parent;
71547
+ var ee = _.childNodes, ae = Z ? ee.length - 1 : 0;
71548
+ a.default.isType(ee[ae], "mspace") && (k += u(ee[ae])), _ = D.parent;
71541
71549
  }
71542
71550
  if (_ === D)
71543
71551
  return k;
71544
- var ie = _.childNodes, G = Z ? ie.length - 1 : 0;
71545
- return ie[G] !== D && (k += u(ie[G])), k;
71552
+ var ie = _.childNodes, W = Z ? ie.length - 1 : 0;
71553
+ return ie[W] !== D && (k += u(ie[W])), k;
71546
71554
  }, x = function(_, D) {
71547
71555
  D === void 0 && (D = !1);
71548
- var Z = c(_), k = p(Z, (0, t.getProperty)(Z, "inferenceRule")), te = y(_, Z, D), ae = u(Z), ie = u(k);
71549
- return te + (ae - ie) / 2;
71556
+ var Z = c(_), k = p(Z, (0, t.getProperty)(Z, "inferenceRule")), ee = y(_, Z, D), ae = u(Z), ie = u(k);
71557
+ return ee + (ae - ie) / 2;
71550
71558
  }, O = function(_, D, Z, k) {
71551
71559
  if (k === void 0 && (k = !1), (0, t.getProperty)(D, "inferenceRule") || (0, t.getProperty)(D, "labelledRule")) {
71552
- var te = _.nodeFactory.create("node", "mrow");
71553
- D.parent.replaceChild(te, D), te.setChildren([D]), v(D, te), D = te;
71560
+ var ee = _.nodeFactory.create("node", "mrow");
71561
+ D.parent.replaceChild(ee, D), ee.setChildren([D]), v(D, ee), D = ee;
71554
71562
  }
71555
71563
  var ae = k ? D.childNodes.length - 1 : 0, ie = D.childNodes[ae];
71556
71564
  if (a.default.isType(ie, "mspace")) {
@@ -71565,8 +71573,8 @@ function Rf() {
71565
71573
  }, v = function(_, D) {
71566
71574
  var Z = ["inference", "proof", "maxAdjust", "labelledRule"];
71567
71575
  Z.forEach(function(k) {
71568
- var te = (0, t.getProperty)(_, k);
71569
- te != null && ((0, t.setProperty)(D, k, te), (0, t.removeProperty)(_, k));
71576
+ var ee = (0, t.getProperty)(_, k);
71577
+ ee != null && ((0, t.setProperty)(D, k, ee), (0, t.removeProperty)(_, k));
71570
71578
  });
71571
71579
  }, L = function(_) {
71572
71580
  var D = _.nodeLists.sequent;
@@ -71576,68 +71584,68 @@ function Rf() {
71576
71584
  (0, t.removeProperty)(k, "sequentProcessed");
71577
71585
  continue;
71578
71586
  }
71579
- var te = [], ae = m(k);
71587
+ var ee = [], ae = m(k);
71580
71588
  if ((0, t.getProperty)(ae, "inference") === 1) {
71581
- for (te.push(k); (0, t.getProperty)(ae, "inference") === 1; ) {
71589
+ for (ee.push(k); (0, t.getProperty)(ae, "inference") === 1; ) {
71582
71590
  ae = c(ae);
71583
- var ie = f(Q(ae, (0, t.getProperty)(ae, "inferenceRule"))), G = (0, t.getProperty)(ie, "inferenceRule") ? p(ie, (0, t.getProperty)(ie, "inferenceRule")) : ie;
71584
- (0, t.getProperty)(G, "sequent") && (k = G.childNodes[0], te.push(k), (0, t.setProperty)(k, "sequentProcessed", !0)), ae = ie;
71591
+ var ie = f(Q(ae, (0, t.getProperty)(ae, "inferenceRule"))), W = (0, t.getProperty)(ie, "inferenceRule") ? p(ie, (0, t.getProperty)(ie, "inferenceRule")) : ie;
71592
+ (0, t.getProperty)(W, "sequent") && (k = W.childNodes[0], ee.push(k), (0, t.setProperty)(k, "sequentProcessed", !0)), ae = ie;
71585
71593
  }
71586
- S(_, te);
71594
+ S(_, ee);
71587
71595
  }
71588
71596
  }
71589
- }, b = function(_, D, Z, k, te) {
71590
- var ae = _.nodeFactory.create("node", "mspace", [], { width: o.default.Em(te) });
71597
+ }, b = function(_, D, Z, k, ee) {
71598
+ var ae = _.nodeFactory.create("node", "mspace", [], { width: o.default.Em(ee) });
71591
71599
  if (k === "left") {
71592
71600
  var ie = D.childNodes[Z].childNodes[0];
71593
71601
  ae.parent = ie, ie.childNodes.unshift(ae);
71594
71602
  } else
71595
71603
  D.childNodes[Z].appendChild(ae);
71596
- (0, t.setProperty)(D.parent, "sequentAdjust_" + k, te);
71604
+ (0, t.setProperty)(D.parent, "sequentAdjust_" + k, ee);
71597
71605
  }, S = function(_, D) {
71598
71606
  for (var Z = D.pop(); D.length; ) {
71599
- var k = D.pop(), te = e(E(Z, k), 2), ae = te[0], ie = te[1];
71607
+ var k = D.pop(), ee = e(E(Z, k), 2), ae = ee[0], ie = ee[1];
71600
71608
  (0, t.getProperty)(Z.parent, "axiom") && (b(_, ae < 0 ? Z : k, 0, "left", Math.abs(ae)), b(_, ie < 0 ? Z : k, 2, "right", Math.abs(ie))), Z = k;
71601
71609
  }
71602
71610
  }, E = function(_, D) {
71603
- var Z = u(_.childNodes[2]), k = u(D.childNodes[2]), te = u(_.childNodes[0]), ae = u(D.childNodes[0]), ie = te - ae, G = Z - k;
71604
- return [ie, G];
71611
+ var Z = u(_.childNodes[2]), k = u(D.childNodes[2]), ee = u(_.childNodes[0]), ae = u(D.childNodes[0]), ie = ee - ae, W = Z - k;
71612
+ return [ie, W];
71605
71613
  }, C = function(_) {
71606
71614
  var D, Z;
71607
71615
  l = new _.document.options.MathItem("", null, _.math.display);
71608
71616
  var k = _.data;
71609
71617
  L(k);
71610
- var te = k.nodeLists.inference || [];
71618
+ var ee = k.nodeLists.inference || [];
71611
71619
  try {
71612
- for (var ae = r(te), ie = ae.next(); !ie.done; ie = ae.next()) {
71613
- var G = ie.value, X = (0, t.getProperty)(G, "proof"), K = c(G), re = Q(K, (0, t.getProperty)(K, "inferenceRule")), oe = f(re);
71620
+ for (var ae = r(ee), ie = ae.next(); !ie.done; ie = ae.next()) {
71621
+ var W = ie.value, X = (0, t.getProperty)(W, "proof"), J = c(W), re = Q(J, (0, t.getProperty)(J, "inferenceRule")), oe = f(re);
71614
71622
  if ((0, t.getProperty)(oe, "inference")) {
71615
71623
  var I = x(oe);
71616
71624
  if (I) {
71617
71625
  O(k, oe, -I);
71618
- var z = y(G, K, !1);
71619
- O(k, G, I - z);
71626
+ var z = y(W, J, !1);
71627
+ O(k, W, I - z);
71620
71628
  }
71621
71629
  }
71622
- var W = h(re);
71623
- if ((0, t.getProperty)(W, "inference") != null) {
71624
- var ee = x(W, !0);
71625
- O(k, W, -ee, !0);
71626
- var ce = y(G, K, !0), ge = (0, t.getProperty)(G, "maxAdjust");
71627
- ge != null && (ee = Math.max(ee, ge));
71630
+ var G = h(re);
71631
+ if ((0, t.getProperty)(G, "inference") != null) {
71632
+ var K = x(G, !0);
71633
+ O(k, G, -K, !0);
71634
+ var ue = y(W, J, !0), ge = (0, t.getProperty)(W, "maxAdjust");
71635
+ ge != null && (K = Math.max(K, ge));
71628
71636
  var he = void 0;
71629
- if (X || !(he = g(G))) {
71630
- O(k, (0, t.getProperty)(G, "proof") ? G : G.parent, ee - ce, !0);
71637
+ if (X || !(he = g(W))) {
71638
+ O(k, (0, t.getProperty)(W, "proof") ? W : W.parent, K - ue, !0);
71631
71639
  continue;
71632
71640
  }
71633
71641
  var xe = d(he);
71634
71642
  if (xe) {
71635
- var Ie = k.nodeFactory.create("node", "mspace", [], { width: ee - ce + "em" });
71636
- xe.appendChild(Ie), G.removeProperty("maxAdjust");
71643
+ var Ie = k.nodeFactory.create("node", "mspace", [], { width: K - ue + "em" });
71644
+ xe.appendChild(Ie), W.removeProperty("maxAdjust");
71637
71645
  continue;
71638
71646
  }
71639
71647
  var Qt = m(he);
71640
- Qt && (ee = (0, t.getProperty)(Qt, "maxAdjust") ? Math.max((0, t.getProperty)(Qt, "maxAdjust"), ee) : ee, (0, t.setProperty)(Qt, "maxAdjust", ee));
71648
+ Qt && (K = (0, t.getProperty)(Qt, "maxAdjust") ? Math.max((0, t.getProperty)(Qt, "maxAdjust"), K) : K, (0, t.setProperty)(Qt, "maxAdjust", K));
71641
71649
  }
71642
71650
  }
71643
71651
  } catch (K2) {
@@ -71666,8 +71674,8 @@ function Rf() {
71666
71674
  var $ = function(_) {
71667
71675
  _.data.root.walkTree(function(D, Z) {
71668
71676
  var k = [];
71669
- D.getPropertyNames().forEach(function(te) {
71670
- !w[te] && te.match(RegExp("^" + A)) && k.push(te + ":" + D.getProperty(te));
71677
+ D.getPropertyNames().forEach(function(ee) {
71678
+ !w[ee] && ee.match(RegExp("^" + A)) && k.push(ee + ":" + D.getProperty(ee));
71671
71679
  }), k.length && a.default.setAttribute(D, "semantics", k.join(";"));
71672
71680
  });
71673
71681
  };
@@ -79715,10 +79723,10 @@ function yae(t, e, r, n) {
79715
79723
  }
79716
79724
  return -1;
79717
79725
  }
79718
- var ue;
79726
+ var ce;
79719
79727
  (function(t) {
79720
79728
  t.HTML = "http://www.w3.org/1999/xhtml", t.MATHML = "http://www.w3.org/1998/Math/MathML", t.SVG = "http://www.w3.org/2000/svg", t.XLINK = "http://www.w3.org/1999/xlink", t.XML = "http://www.w3.org/XML/1998/namespace", t.XMLNS = "http://www.w3.org/2000/xmlns/";
79721
- })(ue || (ue = {}));
79729
+ })(ce || (ce = {}));
79722
79730
  var _i;
79723
79731
  (function(t) {
79724
79732
  t.TYPE = "type", t.ACTION = "action", t.ENCODING = "encoding", t.PROMPT = "prompt", t.NAME = "name", t.COLOR = "color", t.FACE = "face", t.SIZE = "size";
@@ -79727,145 +79735,145 @@ var B2;
79727
79735
  (function(t) {
79728
79736
  t.NO_QUIRKS = "no-quirks", t.QUIRKS = "quirks", t.LIMITED_QUIRKS = "limited-quirks";
79729
79737
  })(B2 || (B2 = {}));
79730
- var J;
79738
+ var te;
79731
79739
  (function(t) {
79732
79740
  t.A = "a", t.ADDRESS = "address", t.ANNOTATION_XML = "annotation-xml", t.APPLET = "applet", t.AREA = "area", t.ARTICLE = "article", t.ASIDE = "aside", t.B = "b", t.BASE = "base", t.BASEFONT = "basefont", t.BGSOUND = "bgsound", t.BIG = "big", t.BLOCKQUOTE = "blockquote", t.BODY = "body", t.BR = "br", t.BUTTON = "button", t.CAPTION = "caption", t.CENTER = "center", t.CODE = "code", t.COL = "col", t.COLGROUP = "colgroup", t.DD = "dd", t.DESC = "desc", t.DETAILS = "details", t.DIALOG = "dialog", t.DIR = "dir", t.DIV = "div", t.DL = "dl", t.DT = "dt", t.EM = "em", t.EMBED = "embed", t.FIELDSET = "fieldset", t.FIGCAPTION = "figcaption", t.FIGURE = "figure", t.FONT = "font", t.FOOTER = "footer", t.FOREIGN_OBJECT = "foreignObject", t.FORM = "form", t.FRAME = "frame", t.FRAMESET = "frameset", t.H1 = "h1", t.H2 = "h2", t.H3 = "h3", t.H4 = "h4", t.H5 = "h5", t.H6 = "h6", t.HEAD = "head", t.HEADER = "header", t.HGROUP = "hgroup", t.HR = "hr", t.HTML = "html", t.I = "i", t.IMG = "img", t.IMAGE = "image", t.INPUT = "input", t.IFRAME = "iframe", t.KEYGEN = "keygen", t.LABEL = "label", t.LI = "li", t.LINK = "link", t.LISTING = "listing", t.MAIN = "main", t.MALIGNMARK = "malignmark", t.MARQUEE = "marquee", t.MATH = "math", t.MENU = "menu", t.META = "meta", t.MGLYPH = "mglyph", t.MI = "mi", t.MO = "mo", t.MN = "mn", t.MS = "ms", t.MTEXT = "mtext", t.NAV = "nav", t.NOBR = "nobr", t.NOFRAMES = "noframes", t.NOEMBED = "noembed", t.NOSCRIPT = "noscript", t.OBJECT = "object", t.OL = "ol", t.OPTGROUP = "optgroup", t.OPTION = "option", t.P = "p", t.PARAM = "param", t.PLAINTEXT = "plaintext", t.PRE = "pre", t.RB = "rb", t.RP = "rp", t.RT = "rt", t.RTC = "rtc", t.RUBY = "ruby", t.S = "s", t.SCRIPT = "script", t.SEARCH = "search", t.SECTION = "section", t.SELECT = "select", t.SOURCE = "source", t.SMALL = "small", t.SPAN = "span", t.STRIKE = "strike", t.STRONG = "strong", t.STYLE = "style", t.SUB = "sub", t.SUMMARY = "summary", t.SUP = "sup", t.TABLE = "table", t.TBODY = "tbody", t.TEMPLATE = "template", t.TEXTAREA = "textarea", t.TFOOT = "tfoot", t.TD = "td", t.TH = "th", t.THEAD = "thead", t.TITLE = "title", t.TR = "tr", t.TRACK = "track", t.TT = "tt", t.U = "u", t.UL = "ul", t.SVG = "svg", t.VAR = "var", t.WBR = "wbr", t.XMP = "xmp";
79733
- })(J || (J = {}));
79741
+ })(te || (te = {}));
79734
79742
  var H;
79735
79743
  (function(t) {
79736
79744
  t[t.UNKNOWN = 0] = "UNKNOWN", t[t.A = 1] = "A", t[t.ADDRESS = 2] = "ADDRESS", t[t.ANNOTATION_XML = 3] = "ANNOTATION_XML", t[t.APPLET = 4] = "APPLET", t[t.AREA = 5] = "AREA", t[t.ARTICLE = 6] = "ARTICLE", t[t.ASIDE = 7] = "ASIDE", t[t.B = 8] = "B", t[t.BASE = 9] = "BASE", t[t.BASEFONT = 10] = "BASEFONT", t[t.BGSOUND = 11] = "BGSOUND", t[t.BIG = 12] = "BIG", t[t.BLOCKQUOTE = 13] = "BLOCKQUOTE", t[t.BODY = 14] = "BODY", t[t.BR = 15] = "BR", t[t.BUTTON = 16] = "BUTTON", t[t.CAPTION = 17] = "CAPTION", t[t.CENTER = 18] = "CENTER", t[t.CODE = 19] = "CODE", t[t.COL = 20] = "COL", t[t.COLGROUP = 21] = "COLGROUP", t[t.DD = 22] = "DD", t[t.DESC = 23] = "DESC", t[t.DETAILS = 24] = "DETAILS", t[t.DIALOG = 25] = "DIALOG", t[t.DIR = 26] = "DIR", t[t.DIV = 27] = "DIV", t[t.DL = 28] = "DL", t[t.DT = 29] = "DT", t[t.EM = 30] = "EM", t[t.EMBED = 31] = "EMBED", t[t.FIELDSET = 32] = "FIELDSET", t[t.FIGCAPTION = 33] = "FIGCAPTION", t[t.FIGURE = 34] = "FIGURE", t[t.FONT = 35] = "FONT", t[t.FOOTER = 36] = "FOOTER", t[t.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", t[t.FORM = 38] = "FORM", t[t.FRAME = 39] = "FRAME", t[t.FRAMESET = 40] = "FRAMESET", t[t.H1 = 41] = "H1", t[t.H2 = 42] = "H2", t[t.H3 = 43] = "H3", t[t.H4 = 44] = "H4", t[t.H5 = 45] = "H5", t[t.H6 = 46] = "H6", t[t.HEAD = 47] = "HEAD", t[t.HEADER = 48] = "HEADER", t[t.HGROUP = 49] = "HGROUP", t[t.HR = 50] = "HR", t[t.HTML = 51] = "HTML", t[t.I = 52] = "I", t[t.IMG = 53] = "IMG", t[t.IMAGE = 54] = "IMAGE", t[t.INPUT = 55] = "INPUT", t[t.IFRAME = 56] = "IFRAME", t[t.KEYGEN = 57] = "KEYGEN", t[t.LABEL = 58] = "LABEL", t[t.LI = 59] = "LI", t[t.LINK = 60] = "LINK", t[t.LISTING = 61] = "LISTING", t[t.MAIN = 62] = "MAIN", t[t.MALIGNMARK = 63] = "MALIGNMARK", t[t.MARQUEE = 64] = "MARQUEE", t[t.MATH = 65] = "MATH", t[t.MENU = 66] = "MENU", t[t.META = 67] = "META", t[t.MGLYPH = 68] = "MGLYPH", t[t.MI = 69] = "MI", t[t.MO = 70] = "MO", t[t.MN = 71] = "MN", t[t.MS = 72] = "MS", t[t.MTEXT = 73] = "MTEXT", t[t.NAV = 74] = "NAV", t[t.NOBR = 75] = "NOBR", t[t.NOFRAMES = 76] = "NOFRAMES", t[t.NOEMBED = 77] = "NOEMBED", t[t.NOSCRIPT = 78] = "NOSCRIPT", t[t.OBJECT = 79] = "OBJECT", t[t.OL = 80] = "OL", t[t.OPTGROUP = 81] = "OPTGROUP", t[t.OPTION = 82] = "OPTION", t[t.P = 83] = "P", t[t.PARAM = 84] = "PARAM", t[t.PLAINTEXT = 85] = "PLAINTEXT", t[t.PRE = 86] = "PRE", t[t.RB = 87] = "RB", t[t.RP = 88] = "RP", t[t.RT = 89] = "RT", t[t.RTC = 90] = "RTC", t[t.RUBY = 91] = "RUBY", t[t.S = 92] = "S", t[t.SCRIPT = 93] = "SCRIPT", t[t.SEARCH = 94] = "SEARCH", t[t.SECTION = 95] = "SECTION", t[t.SELECT = 96] = "SELECT", t[t.SOURCE = 97] = "SOURCE", t[t.SMALL = 98] = "SMALL", t[t.SPAN = 99] = "SPAN", t[t.STRIKE = 100] = "STRIKE", t[t.STRONG = 101] = "STRONG", t[t.STYLE = 102] = "STYLE", t[t.SUB = 103] = "SUB", t[t.SUMMARY = 104] = "SUMMARY", t[t.SUP = 105] = "SUP", t[t.TABLE = 106] = "TABLE", t[t.TBODY = 107] = "TBODY", t[t.TEMPLATE = 108] = "TEMPLATE", t[t.TEXTAREA = 109] = "TEXTAREA", t[t.TFOOT = 110] = "TFOOT", t[t.TD = 111] = "TD", t[t.TH = 112] = "TH", t[t.THEAD = 113] = "THEAD", t[t.TITLE = 114] = "TITLE", t[t.TR = 115] = "TR", t[t.TRACK = 116] = "TRACK", t[t.TT = 117] = "TT", t[t.U = 118] = "U", t[t.UL = 119] = "UL", t[t.SVG = 120] = "SVG", t[t.VAR = 121] = "VAR", t[t.WBR = 122] = "WBR", t[t.XMP = 123] = "XMP";
79737
79745
  })(H || (H = {}));
79738
79746
  const vae = /* @__PURE__ */ new Map([
79739
- [J.A, H.A],
79740
- [J.ADDRESS, H.ADDRESS],
79741
- [J.ANNOTATION_XML, H.ANNOTATION_XML],
79742
- [J.APPLET, H.APPLET],
79743
- [J.AREA, H.AREA],
79744
- [J.ARTICLE, H.ARTICLE],
79745
- [J.ASIDE, H.ASIDE],
79746
- [J.B, H.B],
79747
- [J.BASE, H.BASE],
79748
- [J.BASEFONT, H.BASEFONT],
79749
- [J.BGSOUND, H.BGSOUND],
79750
- [J.BIG, H.BIG],
79751
- [J.BLOCKQUOTE, H.BLOCKQUOTE],
79752
- [J.BODY, H.BODY],
79753
- [J.BR, H.BR],
79754
- [J.BUTTON, H.BUTTON],
79755
- [J.CAPTION, H.CAPTION],
79756
- [J.CENTER, H.CENTER],
79757
- [J.CODE, H.CODE],
79758
- [J.COL, H.COL],
79759
- [J.COLGROUP, H.COLGROUP],
79760
- [J.DD, H.DD],
79761
- [J.DESC, H.DESC],
79762
- [J.DETAILS, H.DETAILS],
79763
- [J.DIALOG, H.DIALOG],
79764
- [J.DIR, H.DIR],
79765
- [J.DIV, H.DIV],
79766
- [J.DL, H.DL],
79767
- [J.DT, H.DT],
79768
- [J.EM, H.EM],
79769
- [J.EMBED, H.EMBED],
79770
- [J.FIELDSET, H.FIELDSET],
79771
- [J.FIGCAPTION, H.FIGCAPTION],
79772
- [J.FIGURE, H.FIGURE],
79773
- [J.FONT, H.FONT],
79774
- [J.FOOTER, H.FOOTER],
79775
- [J.FOREIGN_OBJECT, H.FOREIGN_OBJECT],
79776
- [J.FORM, H.FORM],
79777
- [J.FRAME, H.FRAME],
79778
- [J.FRAMESET, H.FRAMESET],
79779
- [J.H1, H.H1],
79780
- [J.H2, H.H2],
79781
- [J.H3, H.H3],
79782
- [J.H4, H.H4],
79783
- [J.H5, H.H5],
79784
- [J.H6, H.H6],
79785
- [J.HEAD, H.HEAD],
79786
- [J.HEADER, H.HEADER],
79787
- [J.HGROUP, H.HGROUP],
79788
- [J.HR, H.HR],
79789
- [J.HTML, H.HTML],
79790
- [J.I, H.I],
79791
- [J.IMG, H.IMG],
79792
- [J.IMAGE, H.IMAGE],
79793
- [J.INPUT, H.INPUT],
79794
- [J.IFRAME, H.IFRAME],
79795
- [J.KEYGEN, H.KEYGEN],
79796
- [J.LABEL, H.LABEL],
79797
- [J.LI, H.LI],
79798
- [J.LINK, H.LINK],
79799
- [J.LISTING, H.LISTING],
79800
- [J.MAIN, H.MAIN],
79801
- [J.MALIGNMARK, H.MALIGNMARK],
79802
- [J.MARQUEE, H.MARQUEE],
79803
- [J.MATH, H.MATH],
79804
- [J.MENU, H.MENU],
79805
- [J.META, H.META],
79806
- [J.MGLYPH, H.MGLYPH],
79807
- [J.MI, H.MI],
79808
- [J.MO, H.MO],
79809
- [J.MN, H.MN],
79810
- [J.MS, H.MS],
79811
- [J.MTEXT, H.MTEXT],
79812
- [J.NAV, H.NAV],
79813
- [J.NOBR, H.NOBR],
79814
- [J.NOFRAMES, H.NOFRAMES],
79815
- [J.NOEMBED, H.NOEMBED],
79816
- [J.NOSCRIPT, H.NOSCRIPT],
79817
- [J.OBJECT, H.OBJECT],
79818
- [J.OL, H.OL],
79819
- [J.OPTGROUP, H.OPTGROUP],
79820
- [J.OPTION, H.OPTION],
79821
- [J.P, H.P],
79822
- [J.PARAM, H.PARAM],
79823
- [J.PLAINTEXT, H.PLAINTEXT],
79824
- [J.PRE, H.PRE],
79825
- [J.RB, H.RB],
79826
- [J.RP, H.RP],
79827
- [J.RT, H.RT],
79828
- [J.RTC, H.RTC],
79829
- [J.RUBY, H.RUBY],
79830
- [J.S, H.S],
79831
- [J.SCRIPT, H.SCRIPT],
79832
- [J.SEARCH, H.SEARCH],
79833
- [J.SECTION, H.SECTION],
79834
- [J.SELECT, H.SELECT],
79835
- [J.SOURCE, H.SOURCE],
79836
- [J.SMALL, H.SMALL],
79837
- [J.SPAN, H.SPAN],
79838
- [J.STRIKE, H.STRIKE],
79839
- [J.STRONG, H.STRONG],
79840
- [J.STYLE, H.STYLE],
79841
- [J.SUB, H.SUB],
79842
- [J.SUMMARY, H.SUMMARY],
79843
- [J.SUP, H.SUP],
79844
- [J.TABLE, H.TABLE],
79845
- [J.TBODY, H.TBODY],
79846
- [J.TEMPLATE, H.TEMPLATE],
79847
- [J.TEXTAREA, H.TEXTAREA],
79848
- [J.TFOOT, H.TFOOT],
79849
- [J.TD, H.TD],
79850
- [J.TH, H.TH],
79851
- [J.THEAD, H.THEAD],
79852
- [J.TITLE, H.TITLE],
79853
- [J.TR, H.TR],
79854
- [J.TRACK, H.TRACK],
79855
- [J.TT, H.TT],
79856
- [J.U, H.U],
79857
- [J.UL, H.UL],
79858
- [J.SVG, H.SVG],
79859
- [J.VAR, H.VAR],
79860
- [J.WBR, H.WBR],
79861
- [J.XMP, H.XMP]
79747
+ [te.A, H.A],
79748
+ [te.ADDRESS, H.ADDRESS],
79749
+ [te.ANNOTATION_XML, H.ANNOTATION_XML],
79750
+ [te.APPLET, H.APPLET],
79751
+ [te.AREA, H.AREA],
79752
+ [te.ARTICLE, H.ARTICLE],
79753
+ [te.ASIDE, H.ASIDE],
79754
+ [te.B, H.B],
79755
+ [te.BASE, H.BASE],
79756
+ [te.BASEFONT, H.BASEFONT],
79757
+ [te.BGSOUND, H.BGSOUND],
79758
+ [te.BIG, H.BIG],
79759
+ [te.BLOCKQUOTE, H.BLOCKQUOTE],
79760
+ [te.BODY, H.BODY],
79761
+ [te.BR, H.BR],
79762
+ [te.BUTTON, H.BUTTON],
79763
+ [te.CAPTION, H.CAPTION],
79764
+ [te.CENTER, H.CENTER],
79765
+ [te.CODE, H.CODE],
79766
+ [te.COL, H.COL],
79767
+ [te.COLGROUP, H.COLGROUP],
79768
+ [te.DD, H.DD],
79769
+ [te.DESC, H.DESC],
79770
+ [te.DETAILS, H.DETAILS],
79771
+ [te.DIALOG, H.DIALOG],
79772
+ [te.DIR, H.DIR],
79773
+ [te.DIV, H.DIV],
79774
+ [te.DL, H.DL],
79775
+ [te.DT, H.DT],
79776
+ [te.EM, H.EM],
79777
+ [te.EMBED, H.EMBED],
79778
+ [te.FIELDSET, H.FIELDSET],
79779
+ [te.FIGCAPTION, H.FIGCAPTION],
79780
+ [te.FIGURE, H.FIGURE],
79781
+ [te.FONT, H.FONT],
79782
+ [te.FOOTER, H.FOOTER],
79783
+ [te.FOREIGN_OBJECT, H.FOREIGN_OBJECT],
79784
+ [te.FORM, H.FORM],
79785
+ [te.FRAME, H.FRAME],
79786
+ [te.FRAMESET, H.FRAMESET],
79787
+ [te.H1, H.H1],
79788
+ [te.H2, H.H2],
79789
+ [te.H3, H.H3],
79790
+ [te.H4, H.H4],
79791
+ [te.H5, H.H5],
79792
+ [te.H6, H.H6],
79793
+ [te.HEAD, H.HEAD],
79794
+ [te.HEADER, H.HEADER],
79795
+ [te.HGROUP, H.HGROUP],
79796
+ [te.HR, H.HR],
79797
+ [te.HTML, H.HTML],
79798
+ [te.I, H.I],
79799
+ [te.IMG, H.IMG],
79800
+ [te.IMAGE, H.IMAGE],
79801
+ [te.INPUT, H.INPUT],
79802
+ [te.IFRAME, H.IFRAME],
79803
+ [te.KEYGEN, H.KEYGEN],
79804
+ [te.LABEL, H.LABEL],
79805
+ [te.LI, H.LI],
79806
+ [te.LINK, H.LINK],
79807
+ [te.LISTING, H.LISTING],
79808
+ [te.MAIN, H.MAIN],
79809
+ [te.MALIGNMARK, H.MALIGNMARK],
79810
+ [te.MARQUEE, H.MARQUEE],
79811
+ [te.MATH, H.MATH],
79812
+ [te.MENU, H.MENU],
79813
+ [te.META, H.META],
79814
+ [te.MGLYPH, H.MGLYPH],
79815
+ [te.MI, H.MI],
79816
+ [te.MO, H.MO],
79817
+ [te.MN, H.MN],
79818
+ [te.MS, H.MS],
79819
+ [te.MTEXT, H.MTEXT],
79820
+ [te.NAV, H.NAV],
79821
+ [te.NOBR, H.NOBR],
79822
+ [te.NOFRAMES, H.NOFRAMES],
79823
+ [te.NOEMBED, H.NOEMBED],
79824
+ [te.NOSCRIPT, H.NOSCRIPT],
79825
+ [te.OBJECT, H.OBJECT],
79826
+ [te.OL, H.OL],
79827
+ [te.OPTGROUP, H.OPTGROUP],
79828
+ [te.OPTION, H.OPTION],
79829
+ [te.P, H.P],
79830
+ [te.PARAM, H.PARAM],
79831
+ [te.PLAINTEXT, H.PLAINTEXT],
79832
+ [te.PRE, H.PRE],
79833
+ [te.RB, H.RB],
79834
+ [te.RP, H.RP],
79835
+ [te.RT, H.RT],
79836
+ [te.RTC, H.RTC],
79837
+ [te.RUBY, H.RUBY],
79838
+ [te.S, H.S],
79839
+ [te.SCRIPT, H.SCRIPT],
79840
+ [te.SEARCH, H.SEARCH],
79841
+ [te.SECTION, H.SECTION],
79842
+ [te.SELECT, H.SELECT],
79843
+ [te.SOURCE, H.SOURCE],
79844
+ [te.SMALL, H.SMALL],
79845
+ [te.SPAN, H.SPAN],
79846
+ [te.STRIKE, H.STRIKE],
79847
+ [te.STRONG, H.STRONG],
79848
+ [te.STYLE, H.STYLE],
79849
+ [te.SUB, H.SUB],
79850
+ [te.SUMMARY, H.SUMMARY],
79851
+ [te.SUP, H.SUP],
79852
+ [te.TABLE, H.TABLE],
79853
+ [te.TBODY, H.TBODY],
79854
+ [te.TEMPLATE, H.TEMPLATE],
79855
+ [te.TEXTAREA, H.TEXTAREA],
79856
+ [te.TFOOT, H.TFOOT],
79857
+ [te.TD, H.TD],
79858
+ [te.TH, H.TH],
79859
+ [te.THEAD, H.THEAD],
79860
+ [te.TITLE, H.TITLE],
79861
+ [te.TR, H.TR],
79862
+ [te.TRACK, H.TRACK],
79863
+ [te.TT, H.TT],
79864
+ [te.U, H.U],
79865
+ [te.UL, H.UL],
79866
+ [te.SVG, H.SVG],
79867
+ [te.VAR, H.VAR],
79868
+ [te.WBR, H.WBR],
79869
+ [te.XMP, H.XMP]
79862
79870
  ]);
79863
79871
  function T5(t) {
79864
79872
  var e;
79865
79873
  return (e = vae.get(t)) !== null && e !== void 0 ? e : H.UNKNOWN;
79866
79874
  }
79867
79875
  const Qe = H, xae = {
79868
- [ue.HTML]: /* @__PURE__ */ new Set([
79876
+ [ce.HTML]: /* @__PURE__ */ new Set([
79869
79877
  Qe.ADDRESS,
79870
79878
  Qe.APPLET,
79871
79879
  Qe.AREA,
@@ -79948,13 +79956,13 @@ const Qe = H, xae = {
79948
79956
  Qe.WBR,
79949
79957
  Qe.XMP
79950
79958
  ]),
79951
- [ue.MATHML]: /* @__PURE__ */ new Set([Qe.MI, Qe.MO, Qe.MN, Qe.MS, Qe.MTEXT, Qe.ANNOTATION_XML]),
79952
- [ue.SVG]: /* @__PURE__ */ new Set([Qe.TITLE, Qe.FOREIGN_OBJECT, Qe.DESC]),
79953
- [ue.XLINK]: /* @__PURE__ */ new Set(),
79954
- [ue.XML]: /* @__PURE__ */ new Set(),
79955
- [ue.XMLNS]: /* @__PURE__ */ new Set()
79959
+ [ce.MATHML]: /* @__PURE__ */ new Set([Qe.MI, Qe.MO, Qe.MN, Qe.MS, Qe.MTEXT, Qe.ANNOTATION_XML]),
79960
+ [ce.SVG]: /* @__PURE__ */ new Set([Qe.TITLE, Qe.FOREIGN_OBJECT, Qe.DESC]),
79961
+ [ce.XLINK]: /* @__PURE__ */ new Set(),
79962
+ [ce.XML]: /* @__PURE__ */ new Set(),
79963
+ [ce.XMLNS]: /* @__PURE__ */ new Set()
79956
79964
  }, DQ = /* @__PURE__ */ new Set([Qe.H1, Qe.H2, Qe.H3, Qe.H4, Qe.H5, Qe.H6]);
79957
- J.STYLE, J.SCRIPT, J.XMP, J.IFRAME, J.NOEMBED, J.NOFRAMES, J.PLAINTEXT;
79965
+ te.STYLE, te.SCRIPT, te.XMP, te.IFRAME, te.NOEMBED, te.NOFRAMES, te.PLAINTEXT;
79958
79966
  var F;
79959
79967
  (function(t) {
79960
79968
  t[t.DATA = 0] = "DATA", t[t.RCDATA = 1] = "RCDATA", t[t.RAWTEXT = 2] = "RAWTEXT", t[t.SCRIPT_DATA = 3] = "SCRIPT_DATA", t[t.PLAINTEXT = 4] = "PLAINTEXT", t[t.TAG_OPEN = 5] = "TAG_OPEN", t[t.END_TAG_OPEN = 6] = "END_TAG_OPEN", t[t.TAG_NAME = 7] = "TAG_NAME", t[t.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", t[t.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", t[t.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", t[t.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", t[t.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", t[t.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", t[t.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", t[t.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", t[t.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", t[t.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", t[t.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", t[t.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", t[t.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", t[t.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", t[t.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", t[t.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", t[t.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", t[t.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", t[t.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", t[t.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", t[t.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", t[t.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", t[t.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", t[t.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", t[t.COMMENT_START = 42] = "COMMENT_START", t[t.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", t[t.COMMENT = 44] = "COMMENT", t[t.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", t[t.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", t[t.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", t[t.COMMENT_END = 50] = "COMMENT_END", t[t.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", t[t.DOCTYPE = 52] = "DOCTYPE", t[t.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", t[t.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", t[t.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", t[t.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", t[t.CDATA_SECTION = 68] = "CDATA_SECTION", t[t.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", t[t.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", t[t.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", t[t.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
@@ -81918,7 +81926,7 @@ class Pae {
81918
81926
  }
81919
81927
  //Update current element
81920
81928
  _isInTemplate() {
81921
- return this.currentTagId === H.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === ue.HTML;
81929
+ return this.currentTagId === H.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === ce.HTML;
81922
81930
  }
81923
81931
  _updateCurrentElement() {
81924
81932
  this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
@@ -81943,7 +81951,7 @@ class Pae {
81943
81951
  let r = this.stackTop + 1;
81944
81952
  do
81945
81953
  r = this.tagIDs.lastIndexOf(e, r - 1);
81946
- while (r > 0 && this.treeAdapter.getNamespaceURI(this.items[r]) !== ue.HTML);
81954
+ while (r > 0 && this.treeAdapter.getNamespaceURI(this.items[r]) !== ce.HTML);
81947
81955
  this.shortenToLength(Math.max(r, 0));
81948
81956
  }
81949
81957
  shortenToLength(e) {
@@ -81961,10 +81969,10 @@ class Pae {
81961
81969
  this.shortenToLength(Math.max(n, 0));
81962
81970
  }
81963
81971
  popUntilNumberedHeaderPopped() {
81964
- this.popUntilPopped(DQ, ue.HTML);
81972
+ this.popUntilPopped(DQ, ce.HTML);
81965
81973
  }
81966
81974
  popUntilTableCellPopped() {
81967
- this.popUntilPopped(Mae, ue.HTML);
81975
+ this.popUntilPopped(Mae, ce.HTML);
81968
81976
  }
81969
81977
  popAllUpToHtmlElement() {
81970
81978
  this.tmplCount = 0, this.shortenToLength(1);
@@ -81980,13 +81988,13 @@ class Pae {
81980
81988
  this.shortenToLength(n + 1);
81981
81989
  }
81982
81990
  clearBackToTableContext() {
81983
- this.clearBackTo(Aae, ue.HTML);
81991
+ this.clearBackTo(Aae, ce.HTML);
81984
81992
  }
81985
81993
  clearBackToTableBodyContext() {
81986
- this.clearBackTo(Cae, ue.HTML);
81994
+ this.clearBackTo(Cae, ce.HTML);
81987
81995
  }
81988
81996
  clearBackToTableRowContext() {
81989
- this.clearBackTo(wae, ue.HTML);
81997
+ this.clearBackTo(wae, ce.HTML);
81990
81998
  }
81991
81999
  remove(e) {
81992
82000
  const r = this._indexOf(e);
@@ -82011,19 +82019,19 @@ class Pae {
82011
82019
  for (let n = this.stackTop; n >= 0; n--) {
82012
82020
  const i = this.tagIDs[n];
82013
82021
  switch (this.treeAdapter.getNamespaceURI(this.items[n])) {
82014
- case ue.HTML: {
82022
+ case ce.HTML: {
82015
82023
  if (i === e)
82016
82024
  return !0;
82017
82025
  if (r.has(i))
82018
82026
  return !1;
82019
82027
  break;
82020
82028
  }
82021
- case ue.SVG: {
82029
+ case ce.SVG: {
82022
82030
  if (dS.has(i))
82023
82031
  return !1;
82024
82032
  break;
82025
82033
  }
82026
- case ue.MATHML: {
82034
+ case ce.MATHML: {
82027
82035
  if (hS.has(i))
82028
82036
  return !1;
82029
82037
  break;
@@ -82045,19 +82053,19 @@ class Pae {
82045
82053
  for (let e = this.stackTop; e >= 0; e--) {
82046
82054
  const r = this.tagIDs[e];
82047
82055
  switch (this.treeAdapter.getNamespaceURI(this.items[e])) {
82048
- case ue.HTML: {
82056
+ case ce.HTML: {
82049
82057
  if (DQ.has(r))
82050
82058
  return !0;
82051
82059
  if (kl.has(r))
82052
82060
  return !1;
82053
82061
  break;
82054
82062
  }
82055
- case ue.SVG: {
82063
+ case ce.SVG: {
82056
82064
  if (dS.has(r))
82057
82065
  return !1;
82058
82066
  break;
82059
82067
  }
82060
- case ue.MATHML: {
82068
+ case ce.MATHML: {
82061
82069
  if (hS.has(r))
82062
82070
  return !1;
82063
82071
  break;
@@ -82068,7 +82076,7 @@ class Pae {
82068
82076
  }
82069
82077
  hasInTableScope(e) {
82070
82078
  for (let r = this.stackTop; r >= 0; r--)
82071
- if (this.treeAdapter.getNamespaceURI(this.items[r]) === ue.HTML)
82079
+ if (this.treeAdapter.getNamespaceURI(this.items[r]) === ce.HTML)
82072
82080
  switch (this.tagIDs[r]) {
82073
82081
  case e:
82074
82082
  return !0;
@@ -82080,7 +82088,7 @@ class Pae {
82080
82088
  }
82081
82089
  hasTableBodyContextInTableScope() {
82082
82090
  for (let e = this.stackTop; e >= 0; e--)
82083
- if (this.treeAdapter.getNamespaceURI(this.items[e]) === ue.HTML)
82091
+ if (this.treeAdapter.getNamespaceURI(this.items[e]) === ce.HTML)
82084
82092
  switch (this.tagIDs[e]) {
82085
82093
  case H.TBODY:
82086
82094
  case H.THEAD:
@@ -82094,7 +82102,7 @@ class Pae {
82094
82102
  }
82095
82103
  hasInSelectScope(e) {
82096
82104
  for (let r = this.stackTop; r >= 0; r--)
82097
- if (this.treeAdapter.getNamespaceURI(this.items[r]) === ue.HTML)
82105
+ if (this.treeAdapter.getNamespaceURI(this.items[r]) === ce.HTML)
82098
82106
  switch (this.tagIDs[r]) {
82099
82107
  case e:
82100
82108
  return !0;
@@ -82514,17 +82522,17 @@ const gS = {
82514
82522
  "yChannelSelector",
82515
82523
  "zoomAndPan"
82516
82524
  ].map((t) => [t.toLowerCase(), t])), Zae = /* @__PURE__ */ new Map([
82517
- ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: ue.XLINK }],
82518
- ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: ue.XLINK }],
82519
- ["xlink:href", { prefix: "xlink", name: "href", namespace: ue.XLINK }],
82520
- ["xlink:role", { prefix: "xlink", name: "role", namespace: ue.XLINK }],
82521
- ["xlink:show", { prefix: "xlink", name: "show", namespace: ue.XLINK }],
82522
- ["xlink:title", { prefix: "xlink", name: "title", namespace: ue.XLINK }],
82523
- ["xlink:type", { prefix: "xlink", name: "type", namespace: ue.XLINK }],
82524
- ["xml:lang", { prefix: "xml", name: "lang", namespace: ue.XML }],
82525
- ["xml:space", { prefix: "xml", name: "space", namespace: ue.XML }],
82526
- ["xmlns", { prefix: "", name: "xmlns", namespace: ue.XMLNS }],
82527
- ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: ue.XMLNS }]
82525
+ ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: ce.XLINK }],
82526
+ ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: ce.XLINK }],
82527
+ ["xlink:href", { prefix: "xlink", name: "href", namespace: ce.XLINK }],
82528
+ ["xlink:role", { prefix: "xlink", name: "role", namespace: ce.XLINK }],
82529
+ ["xlink:show", { prefix: "xlink", name: "show", namespace: ce.XLINK }],
82530
+ ["xlink:title", { prefix: "xlink", name: "title", namespace: ce.XLINK }],
82531
+ ["xlink:type", { prefix: "xlink", name: "type", namespace: ce.XLINK }],
82532
+ ["xml:lang", { prefix: "xml", name: "lang", namespace: ce.XML }],
82533
+ ["xml:space", { prefix: "xml", name: "space", namespace: ce.XML }],
82534
+ ["xmlns", { prefix: "", name: "xmlns", namespace: ce.XMLNS }],
82535
+ ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: ce.XMLNS }]
82528
82536
  ]), zae = new Map([
82529
82537
  "altGlyph",
82530
82538
  "altGlyphDef",
@@ -82636,20 +82644,20 @@ function Wae(t) {
82636
82644
  e != null && (t.tagName = e, t.tagID = T5(t.tagName));
82637
82645
  }
82638
82646
  function Gae(t, e) {
82639
- return e === ue.MATHML && (t === H.MI || t === H.MO || t === H.MN || t === H.MS || t === H.MTEXT);
82647
+ return e === ce.MATHML && (t === H.MI || t === H.MO || t === H.MN || t === H.MS || t === H.MTEXT);
82640
82648
  }
82641
82649
  function Yae(t, e, r) {
82642
- if (e === ue.MATHML && t === H.ANNOTATION_XML) {
82650
+ if (e === ce.MATHML && t === H.ANNOTATION_XML) {
82643
82651
  for (let n = 0; n < r.length; n++)
82644
82652
  if (r[n].name === _i.ENCODING) {
82645
82653
  const i = r[n].value.toLowerCase();
82646
82654
  return i === gS.TEXT_HTML || i === gS.APPLICATION_XML;
82647
82655
  }
82648
82656
  }
82649
- return e === ue.SVG && (t === H.FOREIGN_OBJECT || t === H.DESC || t === H.TITLE);
82657
+ return e === ce.SVG && (t === H.FOREIGN_OBJECT || t === H.DESC || t === H.TITLE);
82650
82658
  }
82651
82659
  function Kae(t, e, r, n) {
82652
- return (!n || n === ue.HTML) && Yae(t, e, r) || (!n || n === ue.MATHML) && Gae(t, e);
82660
+ return (!n || n === ce.HTML) && Yae(t, e, r) || (!n || n === ce.MATHML) && Gae(t, e);
82653
82661
  }
82654
82662
  const Jae = "hidden", eoe = 8, toe = 3;
82655
82663
  var U;
@@ -82686,8 +82694,8 @@ class yS {
82686
82694
  ...OS,
82687
82695
  ...r
82688
82696
  };
82689
- e ?? (e = n.treeAdapter.createElement(J.TEMPLATE, ue.HTML, []));
82690
- const i = n.treeAdapter.createElement("documentmock", ue.HTML, []), a = new this(n, i, e);
82697
+ e ?? (e = n.treeAdapter.createElement(te.TEMPLATE, ce.HTML, []));
82698
+ const i = n.treeAdapter.createElement("documentmock", ce.HTML, []), a = new this(n, i, e);
82691
82699
  return a.fragmentContextID === H.TEMPLATE && a.tmplInsertionModeStack.unshift(U.IN_TEMPLATE), a._initTokenizerForFragmentParsing(), a._insertFakeRootElement(), a._resetInsertionMode(), a._findFormInFragmentContext(), a;
82692
82700
  }
82693
82701
  getFragment() {
@@ -82726,12 +82734,12 @@ class yS {
82726
82734
  }
82727
82735
  }
82728
82736
  _setContextModes(e, r) {
82729
- const n = e === this.document || e && this.treeAdapter.getNamespaceURI(e) === ue.HTML;
82737
+ const n = e === this.document || e && this.treeAdapter.getNamespaceURI(e) === ce.HTML;
82730
82738
  this.currentNotInHTML = !n, this.tokenizer.inForeignNode = !n && e !== void 0 && r !== void 0 && !this._isIntegrationPoint(r, e);
82731
82739
  }
82732
82740
  /** @protected */
82733
82741
  _switchToTextParsing(e, r) {
82734
- this._insertElement(e, ue.HTML), this.tokenizer.state = r, this.originalInsertionMode = this.insertionMode, this.insertionMode = U.TEXT;
82742
+ this._insertElement(e, ce.HTML), this.tokenizer.state = r, this.originalInsertionMode = this.insertionMode, this.insertionMode = U.TEXT;
82735
82743
  }
82736
82744
  switchToPlaintextParsing() {
82737
82745
  this.insertionMode = U.TEXT, this.originalInsertionMode = U.IN_BODY, this.tokenizer.state = Dt.PLAINTEXT;
@@ -82745,7 +82753,7 @@ class yS {
82745
82753
  _findFormInFragmentContext() {
82746
82754
  let e = this.fragmentContext;
82747
82755
  for (; e; ) {
82748
- if (this.treeAdapter.getTagName(e) === J.FORM) {
82756
+ if (this.treeAdapter.getTagName(e) === te.FORM) {
82749
82757
  this.formElement = e;
82750
82758
  break;
82751
82759
  }
@@ -82753,7 +82761,7 @@ class yS {
82753
82761
  }
82754
82762
  }
82755
82763
  _initTokenizerForFragmentParsing() {
82756
- if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== ue.HTML))
82764
+ if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== ce.HTML))
82757
82765
  switch (this.fragmentContextID) {
82758
82766
  case H.TITLE:
82759
82767
  case H.TEXTAREA: {
@@ -82820,17 +82828,17 @@ class yS {
82820
82828
  }
82821
82829
  /** @protected */
82822
82830
  _insertFakeElement(e, r) {
82823
- const n = this.treeAdapter.createElement(e, ue.HTML, []);
82831
+ const n = this.treeAdapter.createElement(e, ce.HTML, []);
82824
82832
  this._attachElementToTree(n, null), this.openElements.push(n, r);
82825
82833
  }
82826
82834
  /** @protected */
82827
82835
  _insertTemplate(e) {
82828
- const r = this.treeAdapter.createElement(e.tagName, ue.HTML, e.attrs), n = this.treeAdapter.createDocumentFragment();
82836
+ const r = this.treeAdapter.createElement(e.tagName, ce.HTML, e.attrs), n = this.treeAdapter.createDocumentFragment();
82829
82837
  this.treeAdapter.setTemplateContent(r, n), this._attachElementToTree(r, e.location), this.openElements.push(r, e.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, null);
82830
82838
  }
82831
82839
  /** @protected */
82832
82840
  _insertFakeRootElement() {
82833
- const e = this.treeAdapter.createElement(J.HTML, ue.HTML, []);
82841
+ const e = this.treeAdapter.createElement(te.HTML, ce.HTML, []);
82834
82842
  this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(e, null), this.treeAdapter.appendChild(this.openElements.current, e), this.openElements.push(e, H.HTML);
82835
82843
  }
82836
82844
  /** @protected */
@@ -82879,11 +82887,11 @@ class yS {
82879
82887
  if (!this.currentNotInHTML)
82880
82888
  return !1;
82881
82889
  let r, n;
82882
- return this.openElements.stackTop === 0 && this.fragmentContext ? (r = this.fragmentContext, n = this.fragmentContextID) : { current: r, currentTagId: n } = this.openElements, e.tagID === H.SVG && this.treeAdapter.getTagName(r) === J.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(r) === ue.MATHML ? !1 : (
82890
+ return this.openElements.stackTop === 0 && this.fragmentContext ? (r = this.fragmentContext, n = this.fragmentContextID) : { current: r, currentTagId: n } = this.openElements, e.tagID === H.SVG && this.treeAdapter.getTagName(r) === te.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(r) === ce.MATHML ? !1 : (
82883
82891
  // Check that `current` is not an integration point for HTML or MathML elements.
82884
82892
  this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
82885
82893
  // integration point.
82886
- (e.tagID === H.MGLYPH || e.tagID === H.MALIGNMARK) && n !== void 0 && !this._isIntegrationPoint(n, r, ue.HTML)
82894
+ (e.tagID === H.MGLYPH || e.tagID === H.MALIGNMARK) && n !== void 0 && !this._isIntegrationPoint(n, r, ce.HTML)
82887
82895
  );
82888
82896
  }
82889
82897
  /** @protected */
@@ -83044,7 +83052,7 @@ class yS {
83044
83052
  const r = this.openElements.items[e];
83045
83053
  switch (this.openElements.tagIDs[e]) {
83046
83054
  case H.TEMPLATE: {
83047
- if (this.treeAdapter.getNamespaceURI(r) === ue.HTML)
83055
+ if (this.treeAdapter.getNamespaceURI(r) === ce.HTML)
83048
83056
  return { parent: this.treeAdapter.getTemplateContent(r), beforeElement: null };
83049
83057
  break;
83050
83058
  }
@@ -83602,7 +83610,7 @@ function soe(t, e, r) {
83602
83610
  t._fosterParentElement(r);
83603
83611
  else {
83604
83612
  const a = t.treeAdapter.getNamespaceURI(e);
83605
- i === H.TEMPLATE && a === ue.HTML && (e = t.treeAdapter.getTemplateContent(e)), t.treeAdapter.appendChild(e, r);
83613
+ i === H.TEMPLATE && a === ce.HTML && (e = t.treeAdapter.getTemplateContent(e)), t.treeAdapter.appendChild(e, r);
83606
83614
  }
83607
83615
  }
83608
83616
  function loe(t, e, r) {
@@ -83654,7 +83662,7 @@ function Sa(t, e) {
83654
83662
  t._err(e, ne.missingDoctype, !0), t.treeAdapter.setDocumentMode(t.document, B2.QUIRKS), t.insertionMode = U.BEFORE_HTML, t._processToken(e);
83655
83663
  }
83656
83664
  function Toe(t, e) {
83657
- e.tagID === H.HTML ? (t._insertElement(e, ue.HTML), t.insertionMode = U.BEFORE_HEAD) : Ga(t, e);
83665
+ e.tagID === H.HTML ? (t._insertElement(e, ce.HTML), t.insertionMode = U.BEFORE_HEAD) : Ga(t, e);
83658
83666
  }
83659
83667
  function foe(t, e) {
83660
83668
  const r = e.tagID;
@@ -83670,7 +83678,7 @@ function hoe(t, e) {
83670
83678
  break;
83671
83679
  }
83672
83680
  case H.HEAD: {
83673
- t._insertElement(e, ue.HTML), t.headElement = t.openElements.current, t.insertionMode = U.IN_HEAD;
83681
+ t._insertElement(e, ce.HTML), t.headElement = t.openElements.current, t.insertionMode = U.IN_HEAD;
83674
83682
  break;
83675
83683
  }
83676
83684
  default:
@@ -83682,7 +83690,7 @@ function doe(t, e) {
83682
83690
  r === H.HEAD || r === H.BODY || r === H.HTML || r === H.BR ? Ya(t, e) : t._err(e, ne.endTagWithoutMatchingOpenElement);
83683
83691
  }
83684
83692
  function Ya(t, e) {
83685
- t._insertFakeElement(J.HEAD, H.HEAD), t.headElement = t.openElements.current, t.insertionMode = U.IN_HEAD, t._processToken(e);
83693
+ t._insertFakeElement(te.HEAD, H.HEAD), t.headElement = t.openElements.current, t.insertionMode = U.IN_HEAD, t._processToken(e);
83686
83694
  }
83687
83695
  function Br(t, e) {
83688
83696
  switch (e.tagID) {
@@ -83695,7 +83703,7 @@ function Br(t, e) {
83695
83703
  case H.BGSOUND:
83696
83704
  case H.LINK:
83697
83705
  case H.META: {
83698
- t._appendElement(e, ue.HTML), e.ackSelfClosing = !0;
83706
+ t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
83699
83707
  break;
83700
83708
  }
83701
83709
  case H.TITLE: {
@@ -83703,7 +83711,7 @@ function Br(t, e) {
83703
83711
  break;
83704
83712
  }
83705
83713
  case H.NOSCRIPT: {
83706
- t.options.scriptingEnabled ? t._switchToTextParsing(e, Dt.RAWTEXT) : (t._insertElement(e, ue.HTML), t.insertionMode = U.IN_HEAD_NO_SCRIPT);
83714
+ t.options.scriptingEnabled ? t._switchToTextParsing(e, Dt.RAWTEXT) : (t._insertElement(e, ce.HTML), t.insertionMode = U.IN_HEAD_NO_SCRIPT);
83707
83715
  break;
83708
83716
  }
83709
83717
  case H.NOFRAMES:
@@ -83802,11 +83810,11 @@ function Ooe(t, e) {
83802
83810
  break;
83803
83811
  }
83804
83812
  case H.BODY: {
83805
- t._insertElement(e, ue.HTML), t.framesetOk = !1, t.insertionMode = U.IN_BODY;
83813
+ t._insertElement(e, ce.HTML), t.framesetOk = !1, t.insertionMode = U.IN_BODY;
83806
83814
  break;
83807
83815
  }
83808
83816
  case H.FRAMESET: {
83809
- t._insertElement(e, ue.HTML), t.insertionMode = U.IN_FRAMESET;
83817
+ t._insertElement(e, ce.HTML), t.insertionMode = U.IN_FRAMESET;
83810
83818
  break;
83811
83819
  }
83812
83820
  case H.BASE:
@@ -83847,7 +83855,7 @@ function yoe(t, e) {
83847
83855
  }
83848
83856
  }
83849
83857
  function eo(t, e) {
83850
- t._insertFakeElement(J.BODY, H.BODY), t.insertionMode = U.IN_BODY, S8(t, e);
83858
+ t._insertFakeElement(te.BODY, H.BODY), t.insertionMode = U.IN_BODY, S8(t, e);
83851
83859
  }
83852
83860
  function S8(t, e) {
83853
83861
  switch (e.type) {
@@ -83892,20 +83900,20 @@ function xoe(t, e) {
83892
83900
  }
83893
83901
  function Loe(t, e) {
83894
83902
  const r = t.openElements.tryPeekProperlyNestedBodyElement();
83895
- t.framesetOk && r && (t.treeAdapter.detachNode(r), t.openElements.popAllUpToHtmlElement(), t._insertElement(e, ue.HTML), t.insertionMode = U.IN_FRAMESET);
83903
+ t.framesetOk && r && (t.treeAdapter.detachNode(r), t.openElements.popAllUpToHtmlElement(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_FRAMESET);
83896
83904
  }
83897
83905
  function boe(t, e) {
83898
- t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ue.HTML);
83906
+ t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML);
83899
83907
  }
83900
83908
  function Soe(t, e) {
83901
- t.openElements.hasInButtonScope(H.P) && t._closePElement(), t.openElements.currentTagId !== void 0 && DQ.has(t.openElements.currentTagId) && t.openElements.pop(), t._insertElement(e, ue.HTML);
83909
+ t.openElements.hasInButtonScope(H.P) && t._closePElement(), t.openElements.currentTagId !== void 0 && DQ.has(t.openElements.currentTagId) && t.openElements.pop(), t._insertElement(e, ce.HTML);
83902
83910
  }
83903
83911
  function Eoe(t, e) {
83904
- t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ue.HTML), t.skipNextNewLine = !0, t.framesetOk = !1;
83912
+ t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), t.skipNextNewLine = !0, t.framesetOk = !1;
83905
83913
  }
83906
83914
  function Hoe(t, e) {
83907
83915
  const r = t.openElements.tmplCount > 0;
83908
- (!t.formElement || r) && (t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ue.HTML), r || (t.formElement = t.openElements.current));
83916
+ (!t.formElement || r) && (t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), r || (t.formElement = t.openElements.current));
83909
83917
  }
83910
83918
  function _oe(t, e) {
83911
83919
  t.framesetOk = !1;
@@ -83919,51 +83927,51 @@ function _oe(t, e) {
83919
83927
  if (i !== H.ADDRESS && i !== H.DIV && i !== H.P && t._isSpecialElement(t.openElements.items[n], i))
83920
83928
  break;
83921
83929
  }
83922
- t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ue.HTML);
83930
+ t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML);
83923
83931
  }
83924
83932
  function woe(t, e) {
83925
- t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ue.HTML), t.tokenizer.state = Dt.PLAINTEXT;
83933
+ t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), t.tokenizer.state = Dt.PLAINTEXT;
83926
83934
  }
83927
83935
  function Coe(t, e) {
83928
- t.openElements.hasInScope(H.BUTTON) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(H.BUTTON)), t._reconstructActiveFormattingElements(), t._insertElement(e, ue.HTML), t.framesetOk = !1;
83936
+ t.openElements.hasInScope(H.BUTTON) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(H.BUTTON)), t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.framesetOk = !1;
83929
83937
  }
83930
83938
  function Aoe(t, e) {
83931
- const r = t.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);
83932
- r && (qf(t, e), t.openElements.remove(r.element), t.activeFormattingElements.removeEntry(r)), t._reconstructActiveFormattingElements(), t._insertElement(e, ue.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
83939
+ const r = t.activeFormattingElements.getElementEntryInScopeWithTagName(te.A);
83940
+ r && (qf(t, e), t.openElements.remove(r.element), t.activeFormattingElements.removeEntry(r)), t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
83933
83941
  }
83934
83942
  function Moe(t, e) {
83935
- t._reconstructActiveFormattingElements(), t._insertElement(e, ue.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
83943
+ t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
83936
83944
  }
83937
83945
  function Poe(t, e) {
83938
- t._reconstructActiveFormattingElements(), t.openElements.hasInScope(H.NOBR) && (qf(t, e), t._reconstructActiveFormattingElements()), t._insertElement(e, ue.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
83946
+ t._reconstructActiveFormattingElements(), t.openElements.hasInScope(H.NOBR) && (qf(t, e), t._reconstructActiveFormattingElements()), t._insertElement(e, ce.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
83939
83947
  }
83940
83948
  function koe(t, e) {
83941
- t._reconstructActiveFormattingElements(), t._insertElement(e, ue.HTML), t.activeFormattingElements.insertMarker(), t.framesetOk = !1;
83949
+ t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.activeFormattingElements.insertMarker(), t.framesetOk = !1;
83942
83950
  }
83943
83951
  function Doe(t, e) {
83944
- t.treeAdapter.getDocumentMode(t.document) !== B2.QUIRKS && t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ue.HTML), t.framesetOk = !1, t.insertionMode = U.IN_TABLE;
83952
+ t.treeAdapter.getDocumentMode(t.document) !== B2.QUIRKS && t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), t.framesetOk = !1, t.insertionMode = U.IN_TABLE;
83945
83953
  }
83946
83954
  function Tk(t, e) {
83947
- t._reconstructActiveFormattingElements(), t._appendElement(e, ue.HTML), t.framesetOk = !1, e.ackSelfClosing = !0;
83955
+ t._reconstructActiveFormattingElements(), t._appendElement(e, ce.HTML), t.framesetOk = !1, e.ackSelfClosing = !0;
83948
83956
  }
83949
83957
  function fk(t) {
83950
83958
  const e = tk(t, _i.TYPE);
83951
83959
  return e != null && e.toLowerCase() === Jae;
83952
83960
  }
83953
83961
  function Voe(t, e) {
83954
- t._reconstructActiveFormattingElements(), t._appendElement(e, ue.HTML), fk(e) || (t.framesetOk = !1), e.ackSelfClosing = !0;
83962
+ t._reconstructActiveFormattingElements(), t._appendElement(e, ce.HTML), fk(e) || (t.framesetOk = !1), e.ackSelfClosing = !0;
83955
83963
  }
83956
83964
  function Roe(t, e) {
83957
- t._appendElement(e, ue.HTML), e.ackSelfClosing = !0;
83965
+ t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
83958
83966
  }
83959
83967
  function Ioe(t, e) {
83960
- t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._appendElement(e, ue.HTML), t.framesetOk = !1, e.ackSelfClosing = !0;
83968
+ t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._appendElement(e, ce.HTML), t.framesetOk = !1, e.ackSelfClosing = !0;
83961
83969
  }
83962
83970
  function Noe(t, e) {
83963
- e.tagName = J.IMG, e.tagID = H.IMG, Tk(t, e);
83971
+ e.tagName = te.IMG, e.tagID = H.IMG, Tk(t, e);
83964
83972
  }
83965
83973
  function Boe(t, e) {
83966
- t._insertElement(e, ue.HTML), t.skipNextNewLine = !0, t.tokenizer.state = Dt.RCDATA, t.originalInsertionMode = t.insertionMode, t.framesetOk = !1, t.insertionMode = U.TEXT;
83974
+ t._insertElement(e, ce.HTML), t.skipNextNewLine = !0, t.tokenizer.state = Dt.RCDATA, t.originalInsertionMode = t.insertionMode, t.framesetOk = !1, t.insertionMode = U.TEXT;
83967
83975
  }
83968
83976
  function $oe(t, e) {
83969
83977
  t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._reconstructActiveFormattingElements(), t.framesetOk = !1, t._switchToTextParsing(e, Dt.RAWTEXT);
@@ -83975,25 +83983,25 @@ function vS(t, e) {
83975
83983
  t._switchToTextParsing(e, Dt.RAWTEXT);
83976
83984
  }
83977
83985
  function Foe(t, e) {
83978
- t._reconstructActiveFormattingElements(), t._insertElement(e, ue.HTML), t.framesetOk = !1, t.insertionMode = t.insertionMode === U.IN_TABLE || t.insertionMode === U.IN_CAPTION || t.insertionMode === U.IN_TABLE_BODY || t.insertionMode === U.IN_ROW || t.insertionMode === U.IN_CELL ? U.IN_SELECT_IN_TABLE : U.IN_SELECT;
83986
+ t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.framesetOk = !1, t.insertionMode = t.insertionMode === U.IN_TABLE || t.insertionMode === U.IN_CAPTION || t.insertionMode === U.IN_TABLE_BODY || t.insertionMode === U.IN_ROW || t.insertionMode === U.IN_CELL ? U.IN_SELECT_IN_TABLE : U.IN_SELECT;
83979
83987
  }
83980
83988
  function qoe(t, e) {
83981
- t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._reconstructActiveFormattingElements(), t._insertElement(e, ue.HTML);
83989
+ t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML);
83982
83990
  }
83983
83991
  function Zoe(t, e) {
83984
- t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTags(), t._insertElement(e, ue.HTML);
83992
+ t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTags(), t._insertElement(e, ce.HTML);
83985
83993
  }
83986
83994
  function zoe(t, e) {
83987
- t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTagsWithExclusion(H.RTC), t._insertElement(e, ue.HTML);
83995
+ t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTagsWithExclusion(H.RTC), t._insertElement(e, ce.HTML);
83988
83996
  }
83989
83997
  function Xoe(t, e) {
83990
- t._reconstructActiveFormattingElements(), sk(e), Ff(e), e.selfClosing ? t._appendElement(e, ue.MATHML) : t._insertElement(e, ue.MATHML), e.ackSelfClosing = !0;
83998
+ t._reconstructActiveFormattingElements(), sk(e), Ff(e), e.selfClosing ? t._appendElement(e, ce.MATHML) : t._insertElement(e, ce.MATHML), e.ackSelfClosing = !0;
83991
83999
  }
83992
84000
  function Uoe(t, e) {
83993
- t._reconstructActiveFormattingElements(), lk(e), Ff(e), e.selfClosing ? t._appendElement(e, ue.SVG) : t._insertElement(e, ue.SVG), e.ackSelfClosing = !0;
84001
+ t._reconstructActiveFormattingElements(), lk(e), Ff(e), e.selfClosing ? t._appendElement(e, ce.SVG) : t._insertElement(e, ce.SVG), e.ackSelfClosing = !0;
83994
84002
  }
83995
84003
  function xS(t, e) {
83996
- t._reconstructActiveFormattingElements(), t._insertElement(e, ue.HTML);
84004
+ t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML);
83997
84005
  }
83998
84006
  function x1(t, e) {
83999
84007
  switch (e.tagID) {
@@ -84223,7 +84231,7 @@ function Koe(t) {
84223
84231
  e || (t.formElement = null), (r || e) && t.openElements.hasInScope(H.FORM) && (t.openElements.generateImpliedEndTags(), e ? t.openElements.popUntilTagNamePopped(H.FORM) : r && t.openElements.remove(r));
84224
84232
  }
84225
84233
  function Joe(t) {
84226
- t.openElements.hasInButtonScope(H.P) || t._insertFakeElement(J.P, H.P), t._closePElement();
84234
+ t.openElements.hasInButtonScope(H.P) || t._insertFakeElement(te.P, H.P), t._closePElement();
84227
84235
  }
84228
84236
  function ese(t) {
84229
84237
  t.openElements.hasInListItemScope(H.LI) && (t.openElements.generateImpliedEndTagsWithExclusion(H.LI), t.openElements.popUntilTagNamePopped(H.LI));
@@ -84240,7 +84248,7 @@ function nse(t, e) {
84240
84248
  t.openElements.hasInScope(r) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(r), t.activeFormattingElements.clearToLastMarker());
84241
84249
  }
84242
84250
  function ise(t) {
84243
- t._reconstructActiveFormattingElements(), t._insertFakeElement(J.BR, H.BR), t.openElements.pop(), t.framesetOk = !1;
84251
+ t._reconstructActiveFormattingElements(), t._insertFakeElement(te.BR, H.BR), t.openElements.pop(), t.framesetOk = !1;
84244
84252
  }
84245
84253
  function hk(t, e) {
84246
84254
  const r = e.tagName, n = e.tagID;
@@ -84381,28 +84389,28 @@ function x9(t, e) {
84381
84389
  ps(t, e);
84382
84390
  }
84383
84391
  function sse(t, e) {
84384
- t.openElements.clearBackToTableContext(), t.activeFormattingElements.insertMarker(), t._insertElement(e, ue.HTML), t.insertionMode = U.IN_CAPTION;
84392
+ t.openElements.clearBackToTableContext(), t.activeFormattingElements.insertMarker(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_CAPTION;
84385
84393
  }
84386
84394
  function lse(t, e) {
84387
- t.openElements.clearBackToTableContext(), t._insertElement(e, ue.HTML), t.insertionMode = U.IN_COLUMN_GROUP;
84395
+ t.openElements.clearBackToTableContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_COLUMN_GROUP;
84388
84396
  }
84389
84397
  function use(t, e) {
84390
- t.openElements.clearBackToTableContext(), t._insertFakeElement(J.COLGROUP, H.COLGROUP), t.insertionMode = U.IN_COLUMN_GROUP, zf(t, e);
84398
+ t.openElements.clearBackToTableContext(), t._insertFakeElement(te.COLGROUP, H.COLGROUP), t.insertionMode = U.IN_COLUMN_GROUP, zf(t, e);
84391
84399
  }
84392
84400
  function cse(t, e) {
84393
- t.openElements.clearBackToTableContext(), t._insertElement(e, ue.HTML), t.insertionMode = U.IN_TABLE_BODY;
84401
+ t.openElements.clearBackToTableContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_TABLE_BODY;
84394
84402
  }
84395
84403
  function Qse(t, e) {
84396
- t.openElements.clearBackToTableContext(), t._insertFakeElement(J.TBODY, H.TBODY), t.insertionMode = U.IN_TABLE_BODY, H8(t, e);
84404
+ t.openElements.clearBackToTableContext(), t._insertFakeElement(te.TBODY, H.TBODY), t.insertionMode = U.IN_TABLE_BODY, H8(t, e);
84397
84405
  }
84398
84406
  function Tse(t, e) {
84399
84407
  t.openElements.hasInTableScope(H.TABLE) && (t.openElements.popUntilTagNamePopped(H.TABLE), t._resetInsertionMode(), t._processStartTag(e));
84400
84408
  }
84401
84409
  function fse(t, e) {
84402
- fk(e) ? t._appendElement(e, ue.HTML) : ps(t, e), e.ackSelfClosing = !0;
84410
+ fk(e) ? t._appendElement(e, ce.HTML) : ps(t, e), e.ackSelfClosing = !0;
84403
84411
  }
84404
84412
  function hse(t, e) {
84405
- !t.formElement && t.openElements.tmplCount === 0 && (t._insertElement(e, ue.HTML), t.formElement = t.openElements.current, t.openElements.pop());
84413
+ !t.formElement && t.openElements.tmplCount === 0 && (t._insertElement(e, ce.HTML), t.formElement = t.openElements.current, t.openElements.pop());
84406
84414
  }
84407
84415
  function U6(t, e) {
84408
84416
  switch (e.tagID) {
@@ -84533,7 +84541,7 @@ function zf(t, e) {
84533
84541
  break;
84534
84542
  }
84535
84543
  case H.COL: {
84536
- t._appendElement(e, ue.HTML), e.ackSelfClosing = !0;
84544
+ t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
84537
84545
  break;
84538
84546
  }
84539
84547
  case H.TEMPLATE: {
@@ -84566,12 +84574,12 @@ function Dl(t, e) {
84566
84574
  function H8(t, e) {
84567
84575
  switch (e.tagID) {
84568
84576
  case H.TR: {
84569
- t.openElements.clearBackToTableBodyContext(), t._insertElement(e, ue.HTML), t.insertionMode = U.IN_ROW;
84577
+ t.openElements.clearBackToTableBodyContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_ROW;
84570
84578
  break;
84571
84579
  }
84572
84580
  case H.TH:
84573
84581
  case H.TD: {
84574
- t.openElements.clearBackToTableBodyContext(), t._insertFakeElement(J.TR, H.TR), t.insertionMode = U.IN_ROW, _8(t, e);
84582
+ t.openElements.clearBackToTableBodyContext(), t._insertFakeElement(te.TR, H.TR), t.insertionMode = U.IN_ROW, _8(t, e);
84575
84583
  break;
84576
84584
  }
84577
84585
  case H.CAPTION:
@@ -84617,7 +84625,7 @@ function _8(t, e) {
84617
84625
  switch (e.tagID) {
84618
84626
  case H.TH:
84619
84627
  case H.TD: {
84620
- t.openElements.clearBackToTableRowContext(), t._insertElement(e, ue.HTML), t.insertionMode = U.IN_CELL, t.activeFormattingElements.insertMarker();
84628
+ t.openElements.clearBackToTableRowContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_CELL, t.activeFormattingElements.insertMarker();
84621
84629
  break;
84622
84630
  }
84623
84631
  case H.CAPTION:
@@ -84699,15 +84707,15 @@ function yk(t, e) {
84699
84707
  break;
84700
84708
  }
84701
84709
  case H.OPTION: {
84702
- t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._insertElement(e, ue.HTML);
84710
+ t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._insertElement(e, ce.HTML);
84703
84711
  break;
84704
84712
  }
84705
84713
  case H.OPTGROUP: {
84706
- t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._insertElement(e, ue.HTML);
84714
+ t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._insertElement(e, ce.HTML);
84707
84715
  break;
84708
84716
  }
84709
84717
  case H.HR: {
84710
- t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._appendElement(e, ue.HTML), e.ackSelfClosing = !0;
84718
+ t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
84711
84719
  break;
84712
84720
  }
84713
84721
  case H.INPUT:
@@ -84824,11 +84832,11 @@ function Sse(t, e) {
84824
84832
  break;
84825
84833
  }
84826
84834
  case H.FRAMESET: {
84827
- t._insertElement(e, ue.HTML);
84835
+ t._insertElement(e, ce.HTML);
84828
84836
  break;
84829
84837
  }
84830
84838
  case H.FRAME: {
84831
- t._appendElement(e, ue.HTML), e.ackSelfClosing = !0;
84839
+ t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
84832
84840
  break;
84833
84841
  }
84834
84842
  case H.NOFRAMES: {
@@ -84880,7 +84888,7 @@ function Mse(t, e) {
84880
84888
  t._insertCharacters(e), t.framesetOk = !1;
84881
84889
  }
84882
84890
  function bk(t) {
84883
- for (; t.treeAdapter.getNamespaceURI(t.openElements.current) !== ue.HTML && t.openElements.currentTagId !== void 0 && !t._isIntegrationPoint(t.openElements.currentTagId, t.openElements.current); )
84891
+ for (; t.treeAdapter.getNamespaceURI(t.openElements.current) !== ce.HTML && t.openElements.currentTagId !== void 0 && !t._isIntegrationPoint(t.openElements.currentTagId, t.openElements.current); )
84884
84892
  t.openElements.pop();
84885
84893
  }
84886
84894
  function Pse(t, e) {
@@ -84888,7 +84896,7 @@ function Pse(t, e) {
84888
84896
  bk(t), t._startTagOutsideForeignContent(e);
84889
84897
  else {
84890
84898
  const r = t._getAdjustedCurrentElement(), n = t.treeAdapter.getNamespaceURI(r);
84891
- n === ue.MATHML ? sk(e) : n === ue.SVG && (Wae(e), lk(e)), Ff(e), e.selfClosing ? t._appendElement(e, n) : t._insertElement(e, n), e.ackSelfClosing = !0;
84899
+ n === ce.MATHML ? sk(e) : n === ce.SVG && (Wae(e), lk(e)), Ff(e), e.selfClosing ? t._appendElement(e, n) : t._insertElement(e, n), e.ackSelfClosing = !0;
84892
84900
  }
84893
84901
  }
84894
84902
  function kse(t, e) {
@@ -84898,7 +84906,7 @@ function kse(t, e) {
84898
84906
  }
84899
84907
  for (let r = t.openElements.stackTop; r > 0; r--) {
84900
84908
  const n = t.openElements.items[r];
84901
- if (t.treeAdapter.getNamespaceURI(n) === ue.HTML) {
84909
+ if (t.treeAdapter.getNamespaceURI(n) === ce.HTML) {
84902
84910
  t._endTagOutsideForeignContent(e);
84903
84911
  break;
84904
84912
  }
@@ -84909,7 +84917,7 @@ function kse(t, e) {
84909
84917
  }
84910
84918
  }
84911
84919
  }
84912
- J.AREA, J.BASE, J.BASEFONT, J.BGSOUND, J.BR, J.COL, J.EMBED, J.FRAME, J.HR, J.IMG, J.INPUT, J.KEYGEN, J.LINK, J.META, J.PARAM, J.SOURCE, J.TRACK, J.WBR;
84920
+ te.AREA, te.BASE, te.BASEFONT, te.BGSOUND, te.BR, te.COL, te.EMBED, te.FRAME, te.HR, te.IMG, te.INPUT, te.KEYGEN, te.LINK, te.META, te.PARAM, te.SOURCE, te.TRACK, te.WBR;
84913
84921
  const Dse = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi, Vse = /* @__PURE__ */ new Set([
84914
84922
  "mdxFlowExpression",
84915
84923
  "mdxJsxFlowElement",
@@ -87711,7 +87719,7 @@ function x8e({ name: t, data: e }) {
87711
87719
  }) }) : /* @__PURE__ */ q(rD, { children: r("renderer.arrayTypeRequired") });
87712
87720
  }
87713
87721
  function L8e({ className: t, name: e, value: r, extraTail: n }) {
87714
- const i = Xt(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { preview: c }] = i5(), [Q] = n5(r);
87722
+ const i = $t(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { preview: c }] = i5(), [Q] = n5(r ?? "");
87715
87723
  rt(() => {
87716
87724
  l(r);
87717
87725
  }, [r]);
@@ -87781,7 +87789,7 @@ function C8e({ name: t, data: e }) {
87781
87789
  ] }, o)) }) : /* @__PURE__ */ q(rD, { children: n("renderer.arrayTypeRequired") });
87782
87790
  }
87783
87791
  function A8e({ className: t, name: e, value: r, extraTail: n }) {
87784
- const i = Xt(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { preview: c }] = i5();
87792
+ const i = $t(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { preview: c }] = i5();
87785
87793
  rt(() => {
87786
87794
  l(r);
87787
87795
  }, [r]);
@@ -87812,7 +87820,7 @@ const M8e = be.div`
87812
87820
  align-items: center;
87813
87821
  `;
87814
87822
  function P8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
87815
- const a = Xt(null), { headers: o, data: s } = Ce(() => _$(r), [r]);
87823
+ const a = $t(null), { headers: o, data: s } = Ce(() => _$(r ?? ""), [r]);
87816
87824
  return /* @__PURE__ */ q(
87817
87825
  W2,
87818
87826
  {
@@ -87851,7 +87859,7 @@ const k8e = be(f7)`
87851
87859
  flex: 1;
87852
87860
  `;
87853
87861
  function V8e(t) {
87854
- const [e, r] = Ke(""), [n] = f7.useForm(), [i, a] = Ke(!1), o = Xt(null), { t: s } = m1();
87862
+ const [e, r] = Ke(""), [n] = f7.useForm(), [i, a] = Ke(!1), o = $t(null), { t: s } = m1();
87855
87863
  rt(() => {
87856
87864
  n.setFieldsValue({
87857
87865
  baseUrl: ""
@@ -87913,7 +87921,7 @@ function N8e(t) {
87913
87921
  }
87914
87922
  }
87915
87923
  function B8e({ className: t, name: e, value: r, extraTail: n }) {
87916
- const i = Xt(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { base: c }, , Q] = V8e(), { value: T } = p2e(), [f, { preview: h }] = i5(), [p] = n5(r), g = Ce(() => T && N8e(T.url) ? new URL(T.url).origin : "", [T]);
87924
+ const i = $t(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { base: c }, , Q] = V8e(), { value: T } = p2e(), [f, { preview: h }] = i5(), [p] = n5(r ?? ""), g = Ce(() => T && N8e(T.url) ? new URL(T.url).origin : "", [T]);
87917
87925
  rt(() => {
87918
87926
  Q.setFieldsValue({
87919
87927
  baseUrl: g
@@ -87929,7 +87937,7 @@ function B8e({ className: t, name: e, value: r, extraTail: n }) {
87929
87937
  wrap: o ?? !1,
87930
87938
  value: s,
87931
87939
  onChange: d
87932
- }), [o, s, d]), y = Ce(() => c ? s.replace(/(href|src)=(["'])(\/(?!\/).*?)\2/gi, (x, O, v, L) => `${O}=${v}${c.replace(/\/+$/, "")}${L}${v}`) : s, [c, s]);
87940
+ }), [o, s, d]), y = Ce(() => c ? s?.replace(/(href|src)=(["'])(\/(?!\/).*?)\2/gi, (x, O, v, L) => `${O}=${v}${c.replace(/\/+$/, "")}${L}${v}`) : s, [c, s]);
87933
87941
  return /* @__PURE__ */ q(m4.Provider, { value: m, children: /* @__PURE__ */ q(
87934
87942
  W2,
87935
87943
  {
@@ -87968,7 +87976,7 @@ const $8e = be.div`
87968
87976
  object-fit: contain;
87969
87977
  `;
87970
87978
  function F8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
87971
- const a = Xt(null);
87979
+ const a = $t(null);
87972
87980
  return /* @__PURE__ */ q(
87973
87981
  W2,
87974
87982
  {
@@ -88006,11 +88014,11 @@ const q8e = be.div`
88006
88014
  overflow: auto;
88007
88015
  `;
88008
88016
  function Y8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
88009
- const [a, o] = Ke(r), s = Tf(), { id: l } = Bi(), [u] = n5(a), { t: c } = m1(), Q = Xt(null), T = Xt(null), [f, h] = Ke(""), p = Xt({
88017
+ const [a, o] = Ke(r), s = Tf(), { id: l } = Bi(), [u] = n5(a ?? ""), { t: c } = m1(), Q = $t(null), T = $t(null), [f, h] = Ke(""), p = $t({
88010
88018
  __root__: new Il("")
88011
88019
  }), g = aD(T.current), d = Ce(() => {
88012
88020
  try {
88013
- return h(""), JSON.parse(a);
88021
+ return h(""), JSON.parse(r ?? "");
88014
88022
  } catch (A) {
88015
88023
  return a && a.length > 0 && h(A.toString()), a;
88016
88024
  }
@@ -88096,7 +88104,7 @@ function Y8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
88096
88104
  {
88097
88105
  renderAs: A.renderAs,
88098
88106
  name: A.field,
88099
- value: A.field === "__whole__" ? a : g7(d, A.field) ?? "",
88107
+ value: A.field === "__whole__" ? d : g7(d, A.field),
88100
88108
  extraTail: A.field !== "__whole__" && /* @__PURE__ */ q(r4, { children: /* @__PURE__ */ q(C1, { title: c("renderer.close"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(Bl, {}), onClick: () => C?.(A.id) }) }) })
88101
88109
  }
88102
88110
  ) }, A.id))
@@ -88115,7 +88123,7 @@ const K8e = be.div`
88115
88123
  align-items: center;
88116
88124
  `;
88117
88125
  function J8e({ className: t, name: e, value: r, extraTail: n }) {
88118
- const i = Xt(null), [a, { preview: o }] = i5(), [s] = n5(r), [l, u] = Ke(r);
88126
+ const i = $t(null), [a, { preview: o }] = i5(), [s] = n5(r ?? ""), [l, u] = Ke(r);
88119
88127
  rt(() => {
88120
88128
  u(r);
88121
88129
  }, [r]);
@@ -88138,7 +88146,7 @@ function J8e({ className: t, name: e, value: r, extraTail: n }) {
88138
88146
  s,
88139
88147
  n
88140
88148
  ] }),
88141
- children: o ? /* @__PURE__ */ q(tD, { value: l }) : /* @__PURE__ */ q(ff, {})
88149
+ children: o ? /* @__PURE__ */ q(tD, { value: l ?? "" }) : /* @__PURE__ */ q(ff, {})
88142
88150
  }
88143
88151
  ) });
88144
88152
  }
@@ -88148,7 +88156,7 @@ const eue = be.div`
88148
88156
  align-items: center;
88149
88157
  `;
88150
88158
  function tue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
88151
- const a = Xt(null), [o, { wrap: s }] = h5(), [l] = n5(r), [u, c] = Ke(r);
88159
+ const a = $t(null), [o, { wrap: s }] = h5(), [l] = n5(r ?? ""), [u, c] = Ke(r);
88152
88160
  rt(() => {
88153
88161
  c(r);
88154
88162
  }, [r]);
@@ -88359,9 +88367,9 @@ const Due = be.div`
88359
88367
  border-radius: 0.25rem;
88360
88368
  `;
88361
88369
  function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
88362
- const { id: a, path: o, onKeyClick: s } = Bi(), [l, u] = Ke(r), [c, { wrap: Q }] = h5(), T = Xt(null), [f, h] = Ke(""), p = Xt(null), [g, d] = Ke([]), { t: m } = m1(), y = Ce(() => {
88370
+ const { id: a, path: o, onKeyClick: s } = Bi(), [l, u] = Ke(r), [c, { wrap: Q }] = h5(), T = $t(null), [f, h] = Ke(""), p = $t(null), [g, d] = Ke([]), { t: m } = m1(), y = Ce(() => {
88363
88371
  try {
88364
- return h(""), JSON.parse(l);
88372
+ return h(""), JSON.parse(l ?? "");
88365
88373
  } catch (V) {
88366
88374
  return l && l.length > 0 && h(V.toString()), l;
88367
88375
  }
@@ -88375,21 +88383,21 @@ function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
88375
88383
  }));
88376
88384
  d((D) => D.length === 0 ? [{ id: "whole", field: "__whole__", renderAs: "json" }, ..._] : D);
88377
88385
  }
88378
- }, [b, v, L, O, y]), [E, { preview: C }, A] = i5(!1, S), w = Xt({
88386
+ }, [b, v, L, O, y]), [E, { preview: C }, A] = i5(!1, S), w = $t({
88379
88387
  __root__: new Il("")
88380
88388
  });
88381
88389
  rt(() => {
88382
88390
  u(r);
88383
88391
  }, [r]), rt(() => {
88384
88392
  const V = (_) => {
88385
- const D = _.detail.field, Z = _.detail.blockId, k = _.detail.parentField ?? "__whole__", te = `${Z}-${D}`, ae = `${Z}-${k}`, ie = w.current[ae], G = new Il(D, ie), X = oD(D, _.detail.value);
88386
- if (w.current[te] = G, a === Z) {
88393
+ const D = _.detail.field, Z = _.detail.blockId, k = _.detail.parentField ?? "__whole__", ee = `${Z}-${D}`, ae = `${Z}-${k}`, ie = w.current[ae], W = new Il(D, ie), X = oD(D, _.detail.value);
88394
+ if (w.current[ee] = W, a === Z) {
88387
88395
  try {
88388
- g.length === 0 ? d([{ id: "whole", field: "__whole__", renderAs: "json" }, { id: Ra(), field: G.fullPath, renderAs: X }]) : g.find((K) => K.field === D) || d((K) => [...K, { id: Ra(), field: G.fullPath, renderAs: X }]);
88389
- } catch (K) {
88390
- console.error("error", K);
88396
+ g.length === 0 ? d([{ id: "whole", field: "__whole__", renderAs: "json" }, { id: Ra(), field: W.fullPath, renderAs: X }]) : g.find((J) => J.field === D) || d((J) => [...J, { id: Ra(), field: W.fullPath, renderAs: X }]);
88397
+ } catch (J) {
88398
+ console.error("error", J);
88391
88399
  }
88392
- A(!0), s?.(G.fullPath, g7(y, G.fullPath) ?? "");
88400
+ A(!0), s?.(W.fullPath, g7(y, W.fullPath) ?? "");
88393
88401
  }
88394
88402
  };
88395
88403
  return document.addEventListener(Ro, V), () => {
@@ -88449,7 +88457,7 @@ function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
88449
88457
  {
88450
88458
  renderAs: V.renderAs,
88451
88459
  name: V.field,
88452
- value: V.field === "__whole__" ? y : g7(y, V.field) ?? "",
88460
+ value: V.field === "__whole__" ? y : g7(y, V.field),
88453
88461
  extraTail: V.field !== "__whole__" && /* @__PURE__ */ q(r4, { children: /* @__PURE__ */ q(C1, { title: m("renderer.close"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(Bl, {}), onClick: () => R?.(V.id) }) }) })
88454
88462
  }
88455
88463
  ) }, V.id))
@@ -88464,9 +88472,9 @@ const Fue = "_textLikePreviewer_7q5wf_1", que = {
88464
88472
  textLikePreviewer: Fue
88465
88473
  };
88466
88474
  function Zue({ name: t, type: e, className: r, extraTail: n, titleExtra: i }) {
88467
- const { data: a, onNext: o, onPrev: s, prevable: l, nextable: u } = Bi(), [c, Q] = Ke(""), { t: T } = m1();
88475
+ const { data: a, onNext: o, onPrev: s, prevable: l, nextable: u } = Bi(), [c, Q] = Ke(void 0), { t: T } = m1();
88468
88476
  rt(() => {
88469
- Q(a?.content ?? "");
88477
+ Q(a?.content);
88470
88478
  }, [a]);
88471
88479
  const f = ["jsonl", "json", "csv", "txt"].includes(e) ? /* @__PURE__ */ Ye(tE.Compact, { children: [
88472
88480
  /* @__PURE__ */ q(C1, { title: T("textPreviewer.prevSection"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", disabled: !l, onClick: s, icon: /* @__PURE__ */ q(qQ, {}) }) }),
@@ -88701,7 +88709,7 @@ const l9e = be(rE.Item)`
88701
88709
  }
88702
88710
  `;
88703
88711
  function h9e({ path: t, onPathChange: e, name: r, extraTail: n, titleExtra: i, value: a, highlightCurrent: o, pathWithoutQuery: s, showBodyOnly: l = !1 }) {
88704
- const u = Xt(null), { id: c, onDownload: Q, renderBucketItem: T } = Bi(), { t: f } = m1(), h = Et((d) => () => {
88712
+ const u = $t(null), { id: c, onDownload: Q, renderBucketItem: T } = Bi(), { t: f } = m1(), h = Et((d) => () => {
88705
88713
  const m = o ? d.fullPath : E$(d, t);
88706
88714
  e?.(m), document.dispatchEvent(new CustomEvent("close-bucket-list"));
88707
88715
  }, [t, e, o]), p = Et((d) => () => {
@@ -88716,7 +88724,7 @@ function h9e({ path: t, onPathChange: e, name: r, extraTail: n, titleExtra: i, v
88716
88724
  backgroundColor: "#fff"
88717
88725
  },
88718
88726
  renderItem: (d) => {
88719
- if (typeof T == "function" && !s)
88727
+ if (typeof T == "function")
88720
88728
  return T(d);
88721
88729
  let m = null;
88722
88730
  return d.type === "bucket" ? m = /* @__PURE__ */ q(P9, { type: "bucket", path: d.fullPath }) : d.type === "directory" ? m = /* @__PURE__ */ q(P9, { type: "folder" }) : m = /* @__PURE__ */ q(P9, { path: d.fullPath }), /* @__PURE__ */ Ye(
@@ -88805,7 +88813,7 @@ const d9e = be(to)`
88805
88813
  align-items: center;
88806
88814
  `;
88807
88815
  function y9e({ type: t, className: e, name: r, value: n, extraTail: i, titleExtra: a }) {
88808
- const o = Xt(null), { onDownload: s } = Bi(), { t: l } = m1(), [u, c] = Ke(!1), Q = Et((f) => {
88816
+ const o = $t(null), { onDownload: s } = Bi(), { t: l } = m1(), [u, c] = Ke(!1), Q = Et((f) => {
88809
88817
  const h = f.target, p = h.naturalWidth, g = h.naturalHeight;
88810
88818
  if (o.current) {
88811
88819
  const d = f.target.closest(".ant-card-body");
@@ -88825,7 +88833,7 @@ function y9e({ type: t, className: e, name: r, value: n, extraTail: i, titleExtr
88825
88833
  if (t === "epub")
88826
88834
  return /* @__PURE__ */ q(k9, { src: n, title: "epub" });
88827
88835
  if (t === "zip")
88828
- return /* @__PURE__ */ q(g9e, { icon: /* @__PURE__ */ q($l, { type: "text" }), onClick: () => s?.(n), children: l("renderer.downloadZipFile") });
88836
+ return /* @__PURE__ */ q(g9e, { icon: /* @__PURE__ */ q($l, { type: "text" }), onClick: () => s?.(n ?? ""), children: l("renderer.downloadZipFile") });
88829
88837
  }, [t, n, s, l, Q]);
88830
88838
  return /* @__PURE__ */ q(
88831
88839
  W2,
@@ -88923,51 +88931,53 @@ function pce({
88923
88931
  onLinkClick: x,
88924
88932
  onKeyClick: O
88925
88933
  }) {
88926
- const v = P$(e), { t: L } = m1(), b = !/\.\w+$/.test(v), [S, E] = Ke(), C = e.split("?")[0], A = Ce(() => Array.isArray(n) ? v9e(n, C) : [], [n, C]);
88934
+ const v = P$(e), { t: L } = m1(), b = $t(null), S = !/\.\w+$/.test(v), [E, C] = Ke(), A = e?.split("?")[0] ?? "", w = Ce(() => Array.isArray(n) ? v9e(n, A) : [], [n, A]);
88927
88935
  rt(() => {
88928
- const W = n?.mimetype;
88929
- E(W && b ? _9e(W) : void 0);
88930
- }, [n, b]), rt(() => {
88931
- const W = (ee) => {
88932
- x?.(ee.detail.path);
88936
+ const K = n?.mimetype;
88937
+ C(K && S ? _9e(K) : void 0);
88938
+ }, [n, S]), rt(() => {
88939
+ if (!b.current)
88940
+ return;
88941
+ const K = (ue) => {
88942
+ x?.(ue.detail.path, t);
88933
88943
  };
88934
- return document.addEventListener("s3-path-click", W), () => {
88935
- document.removeEventListener("s3-path-click", W);
88944
+ return b.current.addEventListener("s3-path-click", K), () => {
88945
+ b.current?.removeEventListener("s3-path-click", K);
88936
88946
  };
88937
- }, [x]);
88938
- const [w, M] = Ke([]), P = w.length > 0, N = n, $ = N?.path ?? "", R = N?.size ?? 0, V = sc($.split("?")[1]), _ = V ? V.byte + V.size : 0, D = k$($), Z = _ < (R || 0), k = Ce(() => S || S$(e), [e, S]);
88947
+ }, [x, t]);
88948
+ const [M, P] = Ke([]), N = M.length > 0, $ = n, R = $?.path ?? "", V = $?.size ?? 0, _ = sc(R.split("?")[1]), D = _ ? _.byte + _.size : 0, Z = k$(R), k = D < (V || 0), ee = Ce(() => E || S$(e), [e, E]);
88939
88949
  rt(() => {
88940
- const W = sc($);
88941
- let ee = $;
88942
- Number(W?.byte) === 0 && (ee = $.split("?")[0]), !(!k || !$ || !["jsonl", "csv", "txt"].includes(k)) && c?.(ee);
88943
- }, [k, $, c]);
88944
- const te = Et((W) => {
88945
- f?.({ pageNo: W });
88950
+ const K = sc(R);
88951
+ let ue = R;
88952
+ Number(K?.byte) === 0 && (ue = R.split("?")[0]), !(!ee || !R || !["jsonl", "csv", "txt"].includes(ee)) && c?.(ue);
88953
+ }, [ee, R, c]);
88954
+ const ae = Et((K) => {
88955
+ f?.({ pageNo: K });
88946
88956
  }, [f]);
88947
88957
  rt(() => {
88948
- M([]);
88958
+ P([]);
88949
88959
  }, [v]);
88950
- const ae = !k || !["image", "video", "audio", "zip", "jsonl", "pdf", "epub", "mobi"].includes(k), ie = Et(async () => {
88951
- M([...w, V?.byte ?? 0]), f?.({ path: D });
88952
- }, [t, D, w, V?.byte, f]), G = Et(async () => {
88953
- const W = w[w.length - 1] ?? 0, ee = `${$.split("?")[0]}?bytes=${W},0`;
88954
- M(w.slice(0, -1)), f?.({ path: ee });
88955
- }, [t, w, f, $]), X = Et((W) => {
88956
- f?.({ path: W, pageNo: 1 });
88957
- }, [t, f]), K = Et(() => {
88958
- let W = e;
88959
- e.endsWith("/") ? W = e.replace(/[^\/]+\/$/, "") : W = e.replace(/[^\/]+$/, ""), W === "s3://" && (W = ""), f?.({ path: W, pageNo: 1 });
88960
- }, [e, t, f]), re = Ce(() => ({
88960
+ const ie = !ee || !["image", "video", "audio", "zip", "jsonl", "pdf", "epub", "mobi"].includes(ee), W = Et(async () => {
88961
+ P([...M, _?.byte ?? 0]), f?.({ path: Z });
88962
+ }, [t, Z, M, _?.byte, f]), X = Et(async () => {
88963
+ const K = M[M.length - 1] ?? 0, ue = `${R.split("?")[0]}?bytes=${K},0`;
88964
+ P(M.slice(0, -1)), f?.({ path: ue });
88965
+ }, [t, M, f, R]), J = Et((K) => {
88966
+ f?.({ path: K, pageNo: 1 });
88967
+ }, [t, f]), re = Et(() => {
88968
+ let K = e;
88969
+ e.endsWith("/") ? K = e.replace(/[^\/]+\/$/, "") : K = e.replace(/[^\/]+$/, ""), K === "s3://" && (K = ""), f?.({ path: K, pageNo: 1 });
88970
+ }, [e, t, f]), oe = Ce(() => ({
88961
88971
  id: t,
88962
88972
  path: e,
88963
- pathType: k,
88964
- data: N,
88973
+ pathType: ee,
88974
+ data: $,
88965
88975
  basename: v,
88966
- nextable: Z && !!D,
88967
- prevable: P,
88968
- onNext: ie,
88969
- onPrev: G,
88970
- goParent: K,
88976
+ nextable: k && !!Z,
88977
+ prevable: N,
88978
+ onNext: W,
88979
+ onPrev: X,
88980
+ goParent: re,
88971
88981
  onChange: f,
88972
88982
  onClose: r,
88973
88983
  renderBucketItem: d,
@@ -88979,15 +88989,15 @@ function pce({
88979
88989
  }), [
88980
88990
  t,
88981
88991
  e,
88982
- k,
88983
- N,
88992
+ ee,
88993
+ $,
88984
88994
  v,
88995
+ k,
88985
88996
  Z,
88986
- D,
88987
- P,
88988
- ie,
88989
- G,
88990
- K,
88997
+ N,
88998
+ W,
88999
+ X,
89000
+ re,
88991
89001
  r,
88992
89002
  n,
88993
89003
  f,
@@ -88996,8 +89006,8 @@ function pce({
88996
89006
  m,
88997
89007
  x,
88998
89008
  O
88999
- ]), oe = Ce(() => /* @__PURE__ */ Ye(r4, { children: [
89000
- k !== "folder" && !!e && /* @__PURE__ */ q(
89009
+ ]), I = Ce(() => /* @__PURE__ */ Ye(r4, { children: [
89010
+ ee !== "folder" && !!e && /* @__PURE__ */ q(
89001
89011
  KS,
89002
89012
  {
89003
89013
  title: L("renderer.fileInfo"),
@@ -89009,17 +89019,17 @@ function pce({
89009
89019
  {
89010
89020
  label: L("renderer.fileSize"),
89011
89021
  span: 3,
89012
- children: /* @__PURE__ */ q("span", { children: z7.format("fileSize", R) })
89022
+ children: /* @__PURE__ */ q("span", { children: z7.format("fileSize", V) })
89013
89023
  },
89014
89024
  {
89015
89025
  label: L("renderer.author"),
89016
89026
  span: 3,
89017
- children: /* @__PURE__ */ q("span", { children: N?.created_by })
89027
+ children: /* @__PURE__ */ q("span", { children: $?.created_by })
89018
89028
  },
89019
89029
  {
89020
89030
  label: L("renderer.lastModified"),
89021
89031
  span: 3,
89022
- children: N?.last_modified ? z7.format("dateTime", N.last_modified, {
89032
+ children: $?.last_modified ? z7.format("dateTime", $.last_modified, {
89023
89033
  style: "YYYY-MM-DD HH:mm:ss"
89024
89034
  }) : ""
89025
89035
  }
@@ -89029,7 +89039,7 @@ function pce({
89029
89039
  children: /* @__PURE__ */ q(E9e, {})
89030
89040
  }
89031
89041
  ),
89032
- Q && /* @__PURE__ */ q(C1, { title: L("renderer.returnToParent"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(fE, {}), onClick: K }) }),
89042
+ Q && /* @__PURE__ */ q(C1, { title: L("renderer.returnToParent"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(fE, {}), onClick: re }) }),
89033
89043
  T && /* @__PURE__ */ Ye(tE.Compact, { size: "small", children: [
89034
89044
  /* @__PURE__ */ q(C1, { title: L("renderer.prevPage"), children: /* @__PURE__ */ q(
89035
89045
  A1,
@@ -89045,7 +89055,7 @@ function pce({
89045
89055
  /* @__PURE__ */ q(C1, { title: L("renderer.nextPage"), children: /* @__PURE__ */ q(
89046
89056
  A1,
89047
89057
  {
89048
- disabled: o || A.length < Number(l),
89058
+ disabled: o || w.length < Number(l),
89049
89059
  onClick: () => {
89050
89060
  f?.({ pageNo: u + 1 });
89051
89061
  },
@@ -89053,35 +89063,35 @@ function pce({
89053
89063
  }
89054
89064
  ) })
89055
89065
  ] })
89056
- ] }), [k, e, R, N, t, K, u, o, A.length, l, te, L, n]), I = Ce(() => /* @__PURE__ */ Ye(r4, { children: [
89066
+ ] }), [ee, e, V, $, t, re, u, o, w.length, l, ae, L, n]), z = Ce(() => /* @__PURE__ */ Ye(r4, { children: [
89057
89067
  p && /* @__PURE__ */ q(C1, { title: L("renderer.openInNewTab"), children: /* @__PURE__ */ q(A1, { type: "text", size: "small", icon: /* @__PURE__ */ q(dE, {}), onClick: () => g?.(e) }) }),
89058
- k !== "folder" && y && /* @__PURE__ */ q(C1, { title: L("renderer.downloadFile"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q($l, {}), onClick: () => s?.(C) }) }),
89068
+ ee !== "folder" && y && /* @__PURE__ */ q(C1, { title: L("renderer.downloadFile"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q($l, {}), onClick: () => s?.(A) }) }),
89059
89069
  h && /* @__PURE__ */ Ye(r4, { children: [
89060
89070
  /* @__PURE__ */ q(eE, { type: "vertical" }),
89061
89071
  /* @__PURE__ */ q(C1, { title: L("renderer.close"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(Bl, {}), onClick: r }) })
89062
89072
  ] })
89063
- ] }), [k, t, r, u, l, e, C, L, s, y]), z = Ce(() => {
89064
- if (C.endsWith("/") || !e)
89073
+ ] }), [ee, t, r, u, l, e, A, L, s, y]), G = Ce(() => {
89074
+ if (A.endsWith("/") || !e)
89065
89075
  return /* @__PURE__ */ q(
89066
89076
  h9e,
89067
89077
  {
89068
89078
  showBodyOnly: !Q,
89069
89079
  path: e,
89070
89080
  name: e,
89071
- value: A,
89072
- titleExtra: oe,
89073
- extraTail: I,
89074
- pathWithoutQuery: C,
89075
- onPathChange: X
89081
+ value: w,
89082
+ titleExtra: I,
89083
+ extraTail: z,
89084
+ pathWithoutQuery: A,
89085
+ onPathChange: J
89076
89086
  }
89077
89087
  );
89078
- if (ae || ["jsonl"].includes(k))
89079
- return /* @__PURE__ */ q(Zue, { name: v, type: k || "txt", extraTail: I, titleExtra: oe });
89080
- let W = `${m}${m?.includes("?") ? "&" : "?"}path=${encodeURIComponent(e)}`;
89081
- return k === "zip" && (W = e), n && "content" in n && n.content && (W = n.content), /* @__PURE__ */ q(H9e, { name: v, value: W, type: k, extraTail: I, titleExtra: oe });
89082
- }, [v, I, oe, A, t, ae, X, e, C, k, n]);
89083
- return /* @__PURE__ */ q(WE.Provider, { value: re, children: /* @__PURE__ */ Ye(x9e, { "data-block-id": t, style: i, className: a, children: [
89084
- z,
89088
+ if (ie || ["jsonl"].includes(ee))
89089
+ return /* @__PURE__ */ q(Zue, { name: v, type: ee || "txt", extraTail: z, titleExtra: I });
89090
+ let K = `${m}${m?.includes("?") ? "&" : "?"}path=${encodeURIComponent(e)}`;
89091
+ return ee === "zip" && (K = e), n && "content" in n && n.content && (K = n.content), /* @__PURE__ */ q(H9e, { name: v, value: K, type: ee, extraTail: z, titleExtra: I });
89092
+ }, [v, z, I, w, t, ie, J, e, A, ee, n]);
89093
+ return /* @__PURE__ */ q(WE.Provider, { value: oe, children: /* @__PURE__ */ Ye(x9e, { "data-block-id": t, style: i, className: a, ref: b, children: [
89094
+ G,
89085
89095
  /* @__PURE__ */ q(
89086
89096
  L9e,
89087
89097
  {
@@ -89094,13 +89104,16 @@ function pce({
89094
89104
  }
89095
89105
  export {
89096
89106
  pce as BucketBlock,
89107
+ m4 as CodeViewerContext,
89097
89108
  P9 as FileIcon,
89098
89109
  zl as I18nContext,
89099
89110
  F9e as I18nProvider,
89100
89111
  fI as I18nextProvider,
89112
+ is as JsonViewer,
89101
89113
  hce as PAGENATION_CHANGE_EVENT,
89102
89114
  dce as PATH_CORRECTION_EVENT,
89103
89115
  W2 as RenderCard,
89116
+ ff as TextViewer,
89104
89117
  eD as ThemeContext,
89105
89118
  Qce as ThemeProvider,
89106
89119
  P9e as Trans,
@@ -89145,6 +89158,7 @@ export {
89145
89158
  Jk as tokens,
89146
89159
  F7 as typography,
89147
89160
  fce as unregisterTextRenderer,
89161
+ Tf as useCodeViewerContext,
89148
89162
  hI as useSSR,
89149
89163
  m8e as useTheme,
89150
89164
  m1 as useTranslation,