@pipedream/connect-react 1.0.0-preview.20 → 1.0.0-preview.22

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.
@@ -30,8 +30,8 @@ function vs(e) {
30
30
  var wr = { exports: {} };
31
31
  wr.exports;
32
32
  (function(e, t) {
33
- var n = 200, r = "__lodash_hash_undefined__", i = 1, o = 2, a = 9007199254740991, s = "[object Arguments]", u = "[object Array]", l = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", I = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", b = "[object Null]", w = "[object Object]", A = "[object Promise]", E = "[object Proxy]", P = "[object RegExp]", S = "[object Set]", k = "[object String]", R = "[object Symbol]", T = "[object Undefined]", H = "[object WeakMap]", N = "[object ArrayBuffer]", O = "[object DataView]", K = "[object Float32Array]", ie = "[object Float64Array]", M = "[object Int8Array]", Y = "[object Int16Array]", _ = "[object Int32Array]", ue = "[object Uint8Array]", me = "[object Uint8ClampedArray]", y = "[object Uint16Array]", ve = "[object Uint32Array]", se = /[\\^$.*+?()[\]{}|]/g, m = /^\[object .+?Constructor\]$/, fe = /^(?:0|[1-9]\d*)$/, ee = {};
34
- ee[K] = ee[ie] = ee[M] = ee[Y] = ee[_] = ee[ue] = ee[me] = ee[y] = ee[ve] = !0, ee[s] = ee[u] = ee[N] = ee[c] = ee[O] = ee[d] = ee[f] = ee[p] = ee[g] = ee[v] = ee[w] = ee[P] = ee[S] = ee[k] = ee[H] = !1;
33
+ var n = 200, r = "__lodash_hash_undefined__", i = 1, o = 2, a = 9007199254740991, s = "[object Arguments]", u = "[object Array]", l = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", I = "[object Number]", v = "[object Null]", A = "[object Object]", w = "[object Promise]", S = "[object Proxy]", P = "[object RegExp]", E = "[object Set]", k = "[object String]", R = "[object Symbol]", T = "[object Undefined]", H = "[object WeakMap]", N = "[object ArrayBuffer]", O = "[object DataView]", K = "[object Float32Array]", ie = "[object Float64Array]", M = "[object Int8Array]", Y = "[object Int16Array]", _ = "[object Int32Array]", ue = "[object Uint8Array]", me = "[object Uint8ClampedArray]", b = "[object Uint16Array]", ve = "[object Uint32Array]", se = /[\\^$.*+?()[\]{}|]/g, m = /^\[object .+?Constructor\]$/, fe = /^(?:0|[1-9]\d*)$/, ee = {};
34
+ ee[K] = ee[ie] = ee[M] = ee[Y] = ee[_] = ee[ue] = ee[me] = ee[b] = ee[ve] = !0, ee[s] = ee[u] = ee[N] = ee[c] = ee[O] = ee[d] = ee[f] = ee[p] = ee[g] = ee[I] = ee[A] = ee[P] = ee[E] = ee[k] = ee[H] = !1;
35
35
  var de = typeof cn == "object" && cn && cn.Object === Object && cn, Fe = typeof self == "object" && self && self.Object === Object && self, D = de || Fe || Function("return this")(), X = t && !t.nodeType && t, U = X && !0 && e && !e.nodeType && e, pe = U && U.exports === X, Pe = pe && de.process, We = function() {
36
36
  try {
37
37
  return Pe && Pe.binding && Pe.binding("util");
@@ -245,7 +245,7 @@ wr.exports;
245
245
  return cr(h) ? L : rr(L, G(h));
246
246
  }
247
247
  function Tn(h) {
248
- return h == null ? h === void 0 ? T : b : zt && zt in Object(h) ? Vl(h) : zl(h);
248
+ return h == null ? h === void 0 ? T : v : zt && zt in Object(h) ? Vl(h) : zl(h);
249
249
  }
250
250
  function Go(h) {
251
251
  return Vn(h) && Tn(h) == s;
@@ -255,8 +255,8 @@ wr.exports;
255
255
  }
256
256
  function Gl(h, x, G, L, Ie, re) {
257
257
  var Ae = cr(h), Ge = cr(x), Re = Ae ? u : Ft(h), xe = Ge ? u : Ft(x);
258
- Re = Re == s ? w : Re, xe = xe == s ? w : xe;
259
- var Ze = Re == w, rt = xe == w, Oe = Re == xe;
258
+ Re = Re == s ? A : Re, xe = xe == s ? A : xe;
259
+ var Ze = Re == A, rt = xe == A, Oe = Re == xe;
260
260
  if (Oe && ni(h)) {
261
261
  if (!ni(x))
262
262
  return !1;
@@ -333,7 +333,7 @@ wr.exports;
333
333
  return !(h.byteLength != x.byteLength || !re(new Be(h), new Be(x)));
334
334
  case c:
335
335
  case d:
336
- case v:
336
+ case I:
337
337
  return Oo(+h, +x);
338
338
  case f:
339
339
  return h.name == x.name && h.message == x.message;
@@ -342,7 +342,7 @@ wr.exports;
342
342
  return h == x + "";
343
343
  case g:
344
344
  var Ge = Yr;
345
- case S:
345
+ case E:
346
346
  var Re = L & i;
347
347
  if (Ge || (Ge = Ur), h.size != x.size && !Re)
348
348
  return !1;
@@ -415,8 +415,8 @@ wr.exports;
415
415
  return yt.call(h, x);
416
416
  }));
417
417
  } : Jl, Ft = Tn;
418
- (qr && Ft(new qr(new ArrayBuffer(1))) != O || Bn && Ft(new Bn()) != g || $r && Ft($r.resolve()) != A || Kr && Ft(new Kr()) != S || ei && Ft(new ei()) != H) && (Ft = function(h) {
419
- var x = Tn(h), G = x == w ? h.constructor : void 0, L = G ? Zt(G) : "";
418
+ (qr && Ft(new qr(new ArrayBuffer(1))) != O || Bn && Ft(new Bn()) != g || $r && Ft($r.resolve()) != w || Kr && Ft(new Kr()) != E || ei && Ft(new ei()) != H) && (Ft = function(h) {
419
+ var x = Tn(h), G = x == A ? h.constructor : void 0, L = G ? Zt(G) : "";
420
420
  if (L)
421
421
  switch (L) {
422
422
  case el:
@@ -424,9 +424,9 @@ wr.exports;
424
424
  case tl:
425
425
  return g;
426
426
  case nl:
427
- return A;
427
+ return w;
428
428
  case rl:
429
- return S;
429
+ return E;
430
430
  case il:
431
431
  return H;
432
432
  }
@@ -481,7 +481,7 @@ wr.exports;
481
481
  if (!Do(h))
482
482
  return !1;
483
483
  var x = Tn(h);
484
- return x == p || x == I || x == l || x == E;
484
+ return x == p || x == y || x == l || x == S;
485
485
  }
486
486
  function Vo(h) {
487
487
  return typeof h == "number" && h > -1 && h % 1 == 0 && h <= a;
@@ -777,47 +777,47 @@ function ii(e) {
777
777
  function ws(e) {
778
778
  let t = !1, n = 0, r = !1, i;
779
779
  const o = Pi(), a = (g) => {
780
- var v;
781
- r || (f(new Ss(g)), (v = e.abort) == null || v.call(e));
780
+ var I;
781
+ r || (f(new Ss(g)), (I = e.abort) == null || I.call(e));
782
782
  }, s = () => {
783
783
  t = !0;
784
784
  }, u = () => {
785
785
  t = !1;
786
786
  }, l = () => to.isFocused() && (e.networkMode === "always" || Fr.isOnline()) && e.canRun(), c = () => As(e.networkMode) && e.canRun(), d = (g) => {
787
- var v;
788
- r || (r = !0, (v = e.onSuccess) == null || v.call(e, g), i == null || i(), o.resolve(g));
787
+ var I;
788
+ r || (r = !0, (I = e.onSuccess) == null || I.call(e, g), i == null || i(), o.resolve(g));
789
789
  }, f = (g) => {
790
- var v;
791
- r || (r = !0, (v = e.onError) == null || v.call(e, g), i == null || i(), o.reject(g));
790
+ var I;
791
+ r || (r = !0, (I = e.onError) == null || I.call(e, g), i == null || i(), o.reject(g));
792
792
  }, p = () => new Promise((g) => {
793
- var v;
794
- i = (b) => {
795
- (r || l()) && g(b);
796
- }, (v = e.onPause) == null || v.call(e);
793
+ var I;
794
+ i = (v) => {
795
+ (r || l()) && g(v);
796
+ }, (I = e.onPause) == null || I.call(e);
797
797
  }).then(() => {
798
798
  var g;
799
799
  i = void 0, r || (g = e.onContinue) == null || g.call(e);
800
- }), I = () => {
800
+ }), y = () => {
801
801
  if (r)
802
802
  return;
803
803
  let g;
804
- const v = n === 0 ? e.initialPromise : void 0;
804
+ const I = n === 0 ? e.initialPromise : void 0;
805
805
  try {
806
- g = v ?? e.fn();
807
- } catch (b) {
808
- g = Promise.reject(b);
806
+ g = I ?? e.fn();
807
+ } catch (v) {
808
+ g = Promise.reject(v);
809
809
  }
810
- Promise.resolve(g).then(d).catch((b) => {
811
- var S;
810
+ Promise.resolve(g).then(d).catch((v) => {
811
+ var E;
812
812
  if (r)
813
813
  return;
814
- const w = e.retry ?? (tn ? 0 : 3), A = e.retryDelay ?? uc, E = typeof A == "function" ? A(n, b) : A, P = w === !0 || typeof w == "number" && n < w || typeof w == "function" && w(n, b);
814
+ const A = e.retry ?? (tn ? 0 : 3), w = e.retryDelay ?? uc, S = typeof w == "function" ? w(n, v) : w, P = A === !0 || typeof A == "number" && n < A || typeof A == "function" && A(n, v);
815
815
  if (t || !P) {
816
- f(b);
816
+ f(v);
817
817
  return;
818
818
  }
819
- n++, (S = e.onFail) == null || S.call(e, n, b), rc(E).then(() => l() ? void 0 : p()).then(() => {
820
- t ? f(b) : I();
819
+ n++, (E = e.onFail) == null || E.call(e, n, v), rc(S).then(() => l() ? void 0 : p()).then(() => {
820
+ t ? f(v) : y();
821
821
  });
822
822
  });
823
823
  };
@@ -828,7 +828,7 @@ function ws(e) {
828
828
  cancelRetry: s,
829
829
  continueRetry: u,
830
830
  canStart: c,
831
- start: () => (c() ? I() : p().then(I), o)
831
+ start: () => (c() ? y() : p().then(y), o)
832
832
  };
833
833
  }
834
834
  function lc() {
@@ -1039,7 +1039,7 @@ var ke = lc(), Ut, cs, Es = (cs = class {
1039
1039
  this
1040
1040
  ), z(this, In, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((l = a.fetchOptions) == null ? void 0 : l.meta)) && le(this, it, Ct).call(this, { type: "fetch", meta: (c = a.fetchOptions) == null ? void 0 : c.meta });
1041
1041
  const s = (d) => {
1042
- var f, p, I, g;
1042
+ var f, p, y, g;
1043
1043
  ii(d) && d.silent || le(this, it, Ct).call(this, {
1044
1044
  type: "error",
1045
1045
  error: d
@@ -1047,8 +1047,8 @@ var ke = lc(), Ut, cs, Es = (cs = class {
1047
1047
  f,
1048
1048
  d,
1049
1049
  this
1050
- ), (g = (I = C(this, qe).config).onSettled) == null || g.call(
1051
- I,
1050
+ ), (g = (y = C(this, qe).config).onSettled) == null || g.call(
1051
+ y,
1052
1052
  this.state.data,
1053
1053
  d,
1054
1054
  this
@@ -1059,7 +1059,7 @@ var ke = lc(), Ut, cs, Es = (cs = class {
1059
1059
  fn: a.fetchFn,
1060
1060
  abort: r.abort.bind(r),
1061
1061
  onSuccess: (d) => {
1062
- var f, p, I, g;
1062
+ var f, p, y, g;
1063
1063
  if (d === void 0) {
1064
1064
  process.env.NODE_ENV !== "production" && console.error(
1065
1065
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
@@ -1068,12 +1068,12 @@ var ke = lc(), Ut, cs, Es = (cs = class {
1068
1068
  }
1069
1069
  try {
1070
1070
  this.setData(d);
1071
- } catch (v) {
1072
- s(v);
1071
+ } catch (I) {
1072
+ s(I);
1073
1073
  return;
1074
1074
  }
1075
- (p = (f = C(this, qe).config).onSuccess) == null || p.call(f, d, this), (g = (I = C(this, qe).config).onSettled) == null || g.call(
1076
- I,
1075
+ (p = (f = C(this, qe).config).onSuccess) == null || p.call(f, d, this), (g = (y = C(this, qe).config).onSettled) == null || g.call(
1076
+ y,
1077
1077
  d,
1078
1078
  this.state.error,
1079
1079
  this
@@ -1303,7 +1303,7 @@ var lt, ps, pc = (ps = class extends Kn {
1303
1303
  this.execute(this.state.variables);
1304
1304
  }
1305
1305
  async execute(t) {
1306
- var i, o, a, s, u, l, c, d, f, p, I, g, v, b, w, A, E, P, S, k;
1306
+ var i, o, a, s, u, l, c, d, f, p, y, g, I, v, A, w, S, P, E, k;
1307
1307
  z(this, qt, ws({
1308
1308
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
1309
1309
  onFail: (R, T) => {
@@ -1350,29 +1350,29 @@ var lt, ps, pc = (ps = class extends Kn {
1350
1350
  this.state.variables,
1351
1351
  this.state.context,
1352
1352
  this
1353
- )), await ((g = (I = this.options).onSettled) == null ? void 0 : g.call(I, R, null, t, this.state.context)), le(this, dt, Rt).call(this, { type: "success", data: R }), R;
1353
+ )), await ((g = (y = this.options).onSettled) == null ? void 0 : g.call(y, R, null, t, this.state.context)), le(this, dt, Rt).call(this, { type: "success", data: R }), R;
1354
1354
  } catch (R) {
1355
1355
  try {
1356
- throw await ((b = (v = C(this, Ne).config).onError) == null ? void 0 : b.call(
1357
- v,
1356
+ throw await ((v = (I = C(this, Ne).config).onError) == null ? void 0 : v.call(
1357
+ I,
1358
1358
  R,
1359
1359
  t,
1360
1360
  this.state.context,
1361
1361
  this
1362
- )), await ((A = (w = this.options).onError) == null ? void 0 : A.call(
1363
- w,
1362
+ )), await ((w = (A = this.options).onError) == null ? void 0 : w.call(
1363
+ A,
1364
1364
  R,
1365
1365
  t,
1366
1366
  this.state.context
1367
- )), await ((P = (E = C(this, Ne).config).onSettled) == null ? void 0 : P.call(
1368
- E,
1367
+ )), await ((P = (S = C(this, Ne).config).onSettled) == null ? void 0 : P.call(
1368
+ S,
1369
1369
  void 0,
1370
1370
  R,
1371
1371
  this.state.variables,
1372
1372
  this.state.context,
1373
1373
  this
1374
- )), await ((k = (S = this.options).onSettled) == null ? void 0 : k.call(
1375
- S,
1374
+ )), await ((k = (E = this.options).onSettled) == null ? void 0 : k.call(
1375
+ E,
1376
1376
  void 0,
1377
1377
  R,
1378
1378
  t,
@@ -1543,58 +1543,58 @@ function hr(e) {
1543
1543
  function Zo(e) {
1544
1544
  return {
1545
1545
  onFetch: (t, n) => {
1546
- var c, d, f, p, I;
1547
- const r = t.options, i = (f = (d = (c = t.fetchOptions) == null ? void 0 : c.meta) == null ? void 0 : d.fetchMore) == null ? void 0 : f.direction, o = ((p = t.state.data) == null ? void 0 : p.pages) || [], a = ((I = t.state.data) == null ? void 0 : I.pageParams) || [];
1546
+ var c, d, f, p, y;
1547
+ const r = t.options, i = (f = (d = (c = t.fetchOptions) == null ? void 0 : c.meta) == null ? void 0 : d.fetchMore) == null ? void 0 : f.direction, o = ((p = t.state.data) == null ? void 0 : p.pages) || [], a = ((y = t.state.data) == null ? void 0 : y.pageParams) || [];
1548
1548
  let s = { pages: [], pageParams: [] }, u = 0;
1549
1549
  const l = async () => {
1550
1550
  let g = !1;
1551
- const v = (A) => {
1552
- Object.defineProperty(A, "signal", {
1551
+ const I = (w) => {
1552
+ Object.defineProperty(w, "signal", {
1553
1553
  enumerable: !0,
1554
1554
  get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
1555
1555
  g = !0;
1556
1556
  }), t.signal)
1557
1557
  });
1558
- }, b = xs(t.options, t.fetchOptions), w = async (A, E, P) => {
1558
+ }, v = xs(t.options, t.fetchOptions), A = async (w, S, P) => {
1559
1559
  if (g)
1560
1560
  return Promise.reject();
1561
- if (E == null && A.pages.length)
1562
- return Promise.resolve(A);
1563
- const S = {
1561
+ if (S == null && w.pages.length)
1562
+ return Promise.resolve(w);
1563
+ const E = {
1564
1564
  queryKey: t.queryKey,
1565
- pageParam: E,
1565
+ pageParam: S,
1566
1566
  direction: P ? "backward" : "forward",
1567
1567
  meta: t.options.meta
1568
1568
  };
1569
- v(S);
1570
- const k = await b(
1571
- S
1569
+ I(E);
1570
+ const k = await v(
1571
+ E
1572
1572
  ), { maxPages: R } = t.options, T = P ? oc : ic;
1573
1573
  return {
1574
- pages: T(A.pages, k, R),
1575
- pageParams: T(A.pageParams, E, R)
1574
+ pages: T(w.pages, k, R),
1575
+ pageParams: T(w.pageParams, S, R)
1576
1576
  };
1577
1577
  };
1578
1578
  if (i && o.length) {
1579
- const A = i === "backward", E = A ? mc : jo, P = {
1579
+ const w = i === "backward", S = w ? mc : jo, P = {
1580
1580
  pages: o,
1581
1581
  pageParams: a
1582
- }, S = E(r, P);
1583
- s = await w(P, S, A);
1582
+ }, E = S(r, P);
1583
+ s = await A(P, E, w);
1584
1584
  } else {
1585
- const A = e ?? o.length;
1585
+ const w = e ?? o.length;
1586
1586
  do {
1587
- const E = u === 0 ? a[0] ?? r.initialPageParam : jo(r, s);
1588
- if (u > 0 && E == null)
1587
+ const S = u === 0 ? a[0] ?? r.initialPageParam : jo(r, s);
1588
+ if (u > 0 && S == null)
1589
1589
  break;
1590
- s = await w(s, E), u++;
1591
- } while (u < A);
1590
+ s = await A(s, S), u++;
1591
+ } while (u < w);
1592
1592
  }
1593
1593
  return s;
1594
1594
  };
1595
1595
  t.options.persister ? t.fetchFn = () => {
1596
- var g, v;
1597
- return (v = (g = t.options).persister) == null ? void 0 : v.call(
1596
+ var g, I;
1597
+ return (I = (g = t.options).persister) == null ? void 0 : I.call(
1598
1598
  g,
1599
1599
  l,
1600
1600
  {
@@ -1945,7 +1945,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, gs, bc = (gs = class {
1945
1945
  ...Fs(c.data, t.options)
1946
1946
  }), n._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
1947
1947
  }
1948
- let { error: I, errorUpdatedAt: g, status: v } = d;
1948
+ let { error: y, errorUpdatedAt: g, status: I } = d;
1949
1949
  if (n.select && d.data !== void 0)
1950
1950
  if (o && d.data === (a == null ? void 0 : a.data) && n.select === C(this, qn))
1951
1951
  p = C(this, wn);
@@ -1957,7 +1957,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, gs, bc = (gs = class {
1957
1957
  }
1958
1958
  else
1959
1959
  p = d.data;
1960
- if (n.placeholderData !== void 0 && p === void 0 && v === "pending") {
1960
+ if (n.placeholderData !== void 0 && p === void 0 && I === "pending") {
1961
1961
  let T;
1962
1962
  if (o != null && o.isPlaceholderData && n.placeholderData === (s == null ? void 0 : s.placeholderData))
1963
1963
  T = o.data;
@@ -1970,36 +1970,36 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, gs, bc = (gs = class {
1970
1970
  } catch (H) {
1971
1971
  z(this, pt, H);
1972
1972
  }
1973
- T !== void 0 && (v = "success", p = Fi(
1973
+ T !== void 0 && (I = "success", p = Fi(
1974
1974
  o == null ? void 0 : o.data,
1975
1975
  T,
1976
1976
  n
1977
1977
  ), f = !0);
1978
1978
  }
1979
- C(this, pt) && (I = C(this, pt), p = C(this, wn), g = Date.now(), v = "error");
1980
- const b = d.fetchStatus === "fetching", w = v === "pending", A = v === "error", E = w && b, P = p !== void 0, k = {
1981
- status: v,
1979
+ C(this, pt) && (y = C(this, pt), p = C(this, wn), g = Date.now(), I = "error");
1980
+ const v = d.fetchStatus === "fetching", A = I === "pending", w = I === "error", S = A && v, P = p !== void 0, k = {
1981
+ status: I,
1982
1982
  fetchStatus: d.fetchStatus,
1983
- isPending: w,
1984
- isSuccess: v === "success",
1985
- isError: A,
1986
- isInitialLoading: E,
1987
- isLoading: E,
1983
+ isPending: A,
1984
+ isSuccess: I === "success",
1985
+ isError: w,
1986
+ isInitialLoading: S,
1987
+ isLoading: S,
1988
1988
  data: p,
1989
1989
  dataUpdatedAt: d.dataUpdatedAt,
1990
- error: I,
1990
+ error: y,
1991
1991
  errorUpdatedAt: g,
1992
1992
  failureCount: d.fetchFailureCount,
1993
1993
  failureReason: d.fetchFailureReason,
1994
1994
  errorUpdateCount: d.errorUpdateCount,
1995
1995
  isFetched: d.dataUpdateCount > 0 || d.errorUpdateCount > 0,
1996
1996
  isFetchedAfterMount: d.dataUpdateCount > l.dataUpdateCount || d.errorUpdateCount > l.errorUpdateCount,
1997
- isFetching: b,
1998
- isRefetching: b && !w,
1999
- isLoadingError: A && !P,
1997
+ isFetching: v,
1998
+ isRefetching: v && !A,
1999
+ isLoadingError: w && !P,
2000
2000
  isPaused: d.fetchStatus === "paused",
2001
2001
  isPlaceholderData: f,
2002
- isRefetchError: A && P,
2002
+ isRefetchError: w && P,
2003
2003
  isStale: no(t, n),
2004
2004
  refetch: this.refetch,
2005
2005
  promise: C(this, Dt)
@@ -2167,7 +2167,7 @@ var Pc = (e, t) => {
2167
2167
  n.clearReset();
2168
2168
  });
2169
2169
  function Tc(e, t, n) {
2170
- var c, d, f, p, I;
2170
+ var c, d, f, p, y;
2171
2171
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
2172
2172
  throw new Error(
2173
2173
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
@@ -2186,8 +2186,8 @@ function Tc(e, t, n) {
2186
2186
  if (te.useSyncExternalStore(
2187
2187
  te.useCallback(
2188
2188
  (g) => {
2189
- const v = i ? _o : u.subscribe(ke.batchCalls(g));
2190
- return u.updateResult(), v;
2189
+ const I = i ? _o : u.subscribe(ke.batchCalls(g));
2190
+ return u.updateResult(), I;
2191
2191
  },
2192
2192
  [u, i]
2193
2193
  ),
@@ -2214,7 +2214,7 @@ function Tc(e, t, n) {
2214
2214
  Uo(a, u, o)
2215
2215
  ) : (
2216
2216
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
2217
- (I = r.getQueryCache().get(a.queryHash)) == null ? void 0 : I.promise
2217
+ (y = r.getQueryCache().get(a.queryHash)) == null ? void 0 : y.promise
2218
2218
  );
2219
2219
  g == null || g.catch(_o).finally(() => {
2220
2220
  u.updateResult();
@@ -2298,7 +2298,7 @@ function Lc(e) {
2298
2298
  prop: t,
2299
2299
  value: n
2300
2300
  } = e;
2301
- if (!t.default && (n == null || typeof value > "u")) return [
2301
+ if (!t.default && (n == null || typeof n > "u")) return [
2302
2302
  "required"
2303
2303
  ];
2304
2304
  }
@@ -2374,26 +2374,26 @@ const Cr = [
2374
2374
  f
2375
2375
  ] = Ce({}), [
2376
2376
  p,
2377
- I
2377
+ y
2378
2378
  ] = Ce(!1), [
2379
2379
  g,
2380
- v
2380
+ I
2381
2381
  ] = Ce({}), [
2382
- b,
2383
- w
2382
+ v,
2383
+ A
2384
2384
  ] = Ce({});
2385
2385
  Yt(() => {
2386
- w({});
2386
+ A({});
2387
2387
  }, [
2388
2388
  i.key
2389
2389
  ]);
2390
- const A = (D) => b[D.name];
2391
- let E = o || {};
2390
+ const w = (D) => v[D.name];
2391
+ let S = o || {};
2392
2392
  const [
2393
2393
  P,
2394
- S
2395
- ] = Ce(E), k = t.onUpdateConfiguredProps || S;
2396
- t.onUpdateConfiguredProps || (E = P);
2394
+ E
2395
+ ] = Ce(S), k = t.onUpdateConfiguredProps || E;
2396
+ t.onUpdateConfiguredProps || (S = P);
2397
2397
  const [
2398
2398
  R,
2399
2399
  T
@@ -2403,7 +2403,7 @@ const Cr = [
2403
2403
  ] = Ce(), O = {
2404
2404
  userId: s,
2405
2405
  componentId: u,
2406
- configuredProps: E,
2406
+ configuredProps: S,
2407
2407
  dynamicPropsId: R == null ? void 0 : R.id
2408
2408
  }, K = {
2409
2409
  ...O
@@ -2429,7 +2429,7 @@ const Cr = [
2429
2429
  Yt(() => {
2430
2430
  ee();
2431
2431
  }, [
2432
- E
2432
+ S
2433
2433
  ]);
2434
2434
  let _ = (R == null ? void 0 : R.configurableProps) || t.component.configurable_props || [];
2435
2435
  if (a != null && a.length) {
@@ -2471,7 +2471,7 @@ const Cr = [
2471
2471
  let X;
2472
2472
  for (let U = 0; U < _.length; U++) {
2473
2473
  const pe = _[U];
2474
- if (pe.hidden || pe.optional && !A(pe))
2474
+ if (pe.hidden || pe.optional && !w(pe))
2475
2475
  continue;
2476
2476
  if (D[pe.name] === void 0 && X == null && (pe.type === "app" || pe.remoteOptions)) {
2477
2477
  X = U;
@@ -2479,24 +2479,24 @@ const Cr = [
2479
2479
  }
2480
2480
  }
2481
2481
  c(X);
2482
- }, y = (D) => {
2482
+ }, b = (D) => {
2483
2483
  k(D), me(D);
2484
2484
  const X = {};
2485
2485
  for (let U = 0; U < _.length; U++) {
2486
2486
  const pe = _[U], Pe = D[pe.name], We = ue(pe, Pe);
2487
2487
  We.length && (X[pe.name] = We);
2488
2488
  }
2489
- v(X);
2489
+ I(X);
2490
2490
  };
2491
2491
  Yt(() => {
2492
2492
  const D = {};
2493
2493
  for (const X of _) {
2494
- if (X.hidden || Cr.includes(X.type) || X.optional && !A(X))
2494
+ if (X.hidden || Cr.includes(X.type) || X.optional && !w(X))
2495
2495
  continue;
2496
- const U = E[X.name];
2496
+ const U = S[X.name];
2497
2497
  U === void 0 ? "default" in X && X.default != null && (D[X.name] = X.default) : X.type === "integer" && typeof U != "number" ? delete D[X.name] : D[X.name] = U;
2498
2498
  }
2499
- tc(D, E) || y(D);
2499
+ tc(D, S) || b(D);
2500
2500
  }, [
2501
2501
  _
2502
2502
  ]);
@@ -2505,34 +2505,34 @@ const Cr = [
2505
2505
  se
2506
2506
  ] = Ce(s);
2507
2507
  Yt(() => {
2508
- ve !== s && (y({}), se(s));
2508
+ ve !== s && (b({}), se(s));
2509
2509
  }, [
2510
2510
  s
2511
2511
  ]);
2512
2512
  const m = (D, X) => {
2513
2513
  const U = _[D], pe = {
2514
- ...E
2514
+ ...S
2515
2515
  };
2516
2516
  X === void 0 ? delete pe[U.name] : pe[U.name] = X, k(pe), U.reloadProps && N(D), (U.type === "app" || U.remoteOptions) && me(pe);
2517
2517
  const Pe = ue(U, X), We = {
2518
2518
  ...g
2519
2519
  };
2520
- Pe.length ? We[U.name] = Pe : delete We[U.name], v(We);
2520
+ Pe.length ? We[U.name] = Pe : delete We[U.name], I(We);
2521
2521
  }, fe = (D, X) => {
2522
2522
  const U = {
2523
- ...b
2523
+ ...v
2524
2524
  };
2525
2525
  X ? U[D.name] = !0 : delete U[D.name];
2526
2526
  const pe = _.findIndex((Pe) => Pe.name === D.name);
2527
2527
  X ? (o == null ? void 0 : o[D.name]) !== void 0 ? m(
2528
2528
  pe,
2529
2529
  o[D.name]
2530
- ) : "default" in D && D.default != null && m(pe, D.default) : m(pe, void 0), w(U);
2530
+ ) : "default" in D && D.default != null && m(pe, D.default) : m(pe, void 0), A(U);
2531
2531
  }, ee = () => {
2532
2532
  const D = [];
2533
2533
  for (const X of _) {
2534
2534
  if (!X || X.optional || X.hidden || Cr.includes(X.type)) continue;
2535
- const U = E[X.name];
2535
+ const U = S[X.name];
2536
2536
  ue(X, U).length && D.push(X.name);
2537
2537
  }
2538
2538
  Y(D);
@@ -2546,18 +2546,18 @@ const Cr = [
2546
2546
  userId: s,
2547
2547
  component: i,
2548
2548
  configurableProps: _,
2549
- configuredProps: E,
2549
+ configuredProps: S,
2550
2550
  dynamicProps: R,
2551
2551
  dynamicPropsQueryIsFetching: ie,
2552
2552
  errors: g,
2553
2553
  fields: d,
2554
- optionalPropIsEnabled: A,
2554
+ optionalPropIsEnabled: w,
2555
2555
  optionalPropSetEnabled: fe,
2556
2556
  propsNeedConfiguring: M,
2557
2557
  queryDisabledIdx: l,
2558
2558
  registerField: de,
2559
2559
  setConfiguredProp: m,
2560
- setSubmitting: I,
2560
+ setSubmitting: y,
2561
2561
  submitting: p
2562
2562
  };
2563
2563
  return /* @__PURE__ */ W(Os.Provider, { value: Fe, children: e });
@@ -2676,17 +2676,17 @@ function bt(e, t) {
2676
2676
  }
2677
2677
  var _c = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
2678
2678
  function Ds(e) {
2679
- var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, a = o === void 0 ? null : o, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, p = e.value, I = bt(e, _c), g = Ce(s !== void 0 ? s : n), v = At(g, 2), b = v[0], w = v[1], A = Ce(u !== void 0 ? u : i), E = At(A, 2), P = E[0], S = E[1], k = Ce(p !== void 0 ? p : a), R = At(k, 2), T = R[0], H = R[1], N = Ve(function(ue, me) {
2679
+ var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, a = o === void 0 ? null : o, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, p = e.value, y = bt(e, _c), g = Ce(s !== void 0 ? s : n), I = At(g, 2), v = I[0], A = I[1], w = Ce(u !== void 0 ? u : i), S = At(w, 2), P = S[0], E = S[1], k = Ce(p !== void 0 ? p : a), R = At(k, 2), T = R[0], H = R[1], N = Ve(function(ue, me) {
2680
2680
  typeof l == "function" && l(ue, me), H(ue);
2681
2681
  }, [l]), O = Ve(function(ue, me) {
2682
- var y;
2683
- typeof c == "function" && (y = c(ue, me)), w(y !== void 0 ? y : ue);
2682
+ var b;
2683
+ typeof c == "function" && (b = c(ue, me)), A(b !== void 0 ? b : ue);
2684
2684
  }, [c]), K = Ve(function() {
2685
- typeof f == "function" && f(), S(!0);
2685
+ typeof f == "function" && f(), E(!0);
2686
2686
  }, [f]), ie = Ve(function() {
2687
- typeof d == "function" && d(), S(!1);
2688
- }, [d]), M = s !== void 0 ? s : b, Y = u !== void 0 ? u : P, _ = p !== void 0 ? p : T;
2689
- return Z(Z({}, I), {}, {
2687
+ typeof d == "function" && d(), E(!1);
2688
+ }, [d]), M = s !== void 0 ? s : v, Y = u !== void 0 ? u : P, _ = p !== void 0 ? p : T;
2689
+ return Z(Z({}, y), {}, {
2690
2690
  inputValue: M,
2691
2691
  menuIsOpen: Y,
2692
2692
  onChange: N,
@@ -2934,10 +2934,10 @@ function ea(e, t, n, r) {
2934
2934
  let u = (i.left + s.x) / a.x, l = (i.top + s.y) / a.y, c = i.width / a.x, d = i.height / a.y;
2935
2935
  if (o) {
2936
2936
  const f = St(o), p = r;
2937
- let I = f, g = Li(I);
2938
- for (; g && r && p !== I; ) {
2939
- const v = Ko(g), b = g.getBoundingClientRect(), w = oo(g), A = b.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, E = b.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
2940
- u *= v.x, l *= v.y, c *= v.x, d *= v.y, u += A, l += E, I = St(g), g = Li(I);
2937
+ let y = f, g = Li(y);
2938
+ for (; g && r && p !== y; ) {
2939
+ const I = Ko(g), v = g.getBoundingClientRect(), A = oo(g), w = v.left + (g.clientLeft + parseFloat(A.paddingLeft)) * I.x, S = v.top + (g.clientTop + parseFloat(A.paddingTop)) * I.y;
2940
+ u *= I.x, l *= I.y, c *= I.x, d *= I.y, u += w, l += S, y = St(g), g = Li(y);
2941
2941
  }
2942
2942
  }
2943
2943
  return sd({
@@ -2964,30 +2964,30 @@ function md(e, t) {
2964
2964
  } = e.getBoundingClientRect();
2965
2965
  if (s || t(), !d || !f)
2966
2966
  return;
2967
- const p = gr(c), I = gr(i.clientWidth - (l + d)), g = gr(i.clientHeight - (c + f)), v = gr(l), w = {
2968
- rootMargin: -p + "px " + -I + "px " + -g + "px " + -v + "px",
2967
+ const p = gr(c), y = gr(i.clientWidth - (l + d)), g = gr(i.clientHeight - (c + f)), I = gr(l), A = {
2968
+ rootMargin: -p + "px " + -y + "px " + -g + "px " + -I + "px",
2969
2969
  threshold: ad(0, od(1, u)) || 1
2970
2970
  };
2971
- let A = !0;
2972
- function E(P) {
2973
- const S = P[0].intersectionRatio;
2974
- if (S !== u) {
2975
- if (!A)
2971
+ let w = !0;
2972
+ function S(P) {
2973
+ const E = P[0].intersectionRatio;
2974
+ if (E !== u) {
2975
+ if (!w)
2976
2976
  return a();
2977
- S ? a(!1, S) : r = setTimeout(() => {
2977
+ E ? a(!1, E) : r = setTimeout(() => {
2978
2978
  a(!1, 1e-7);
2979
2979
  }, 1e3);
2980
2980
  }
2981
- A = !1;
2981
+ w = !1;
2982
2982
  }
2983
2983
  try {
2984
- n = new IntersectionObserver(E, {
2985
- ...w,
2984
+ n = new IntersectionObserver(S, {
2985
+ ...A,
2986
2986
  // Handle <iframe>s
2987
2987
  root: i.ownerDocument
2988
2988
  });
2989
2989
  } catch {
2990
- n = new IntersectionObserver(E, w);
2990
+ n = new IntersectionObserver(S, A);
2991
2991
  }
2992
2992
  n.observe(e);
2993
2993
  }
@@ -3002,31 +3002,31 @@ function bd(e, t, n, r) {
3002
3002
  layoutShift: s = typeof IntersectionObserver == "function",
3003
3003
  animationFrame: u = !1
3004
3004
  } = r, l = ao(e), c = i || o ? [...l ? kr(l) : [], ...kr(t)] : [];
3005
- c.forEach((b) => {
3006
- i && b.addEventListener("scroll", n, {
3005
+ c.forEach((v) => {
3006
+ i && v.addEventListener("scroll", n, {
3007
3007
  passive: !0
3008
- }), o && b.addEventListener("resize", n);
3008
+ }), o && v.addEventListener("resize", n);
3009
3009
  });
3010
3010
  const d = l && s ? md(l, n) : null;
3011
3011
  let f = -1, p = null;
3012
- a && (p = new ResizeObserver((b) => {
3013
- let [w] = b;
3014
- w && w.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
3015
- var A;
3016
- (A = p) == null || A.observe(t);
3012
+ a && (p = new ResizeObserver((v) => {
3013
+ let [A] = v;
3014
+ A && A.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
3015
+ var w;
3016
+ (w = p) == null || w.observe(t);
3017
3017
  })), n();
3018
3018
  }), l && !u && p.observe(l), p.observe(t));
3019
- let I, g = u ? ea(e) : null;
3020
- u && v();
3021
- function v() {
3022
- const b = ea(e);
3023
- g && (b.x !== g.x || b.y !== g.y || b.width !== g.width || b.height !== g.height) && n(), g = b, I = requestAnimationFrame(v);
3019
+ let y, g = u ? ea(e) : null;
3020
+ u && I();
3021
+ function I() {
3022
+ const v = ea(e);
3023
+ g && (v.x !== g.x || v.y !== g.y || v.width !== g.width || v.height !== g.height) && n(), g = v, y = requestAnimationFrame(I);
3024
3024
  }
3025
3025
  return n(), () => {
3026
- var b;
3027
- c.forEach((w) => {
3028
- i && w.removeEventListener("scroll", n), o && w.removeEventListener("resize", n);
3029
- }), d == null || d(), (b = p) == null || b.disconnect(), p = null, u && cancelAnimationFrame(I);
3026
+ var v;
3027
+ c.forEach((A) => {
3028
+ i && A.removeEventListener("scroll", n), o && A.removeEventListener("resize", n);
3029
+ }), d == null || d(), (v = p) == null || v.disconnect(), p = null, u && cancelAnimationFrame(y);
3030
3030
  };
3031
3031
  }
3032
3032
  var Xi = Ul, yd = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Br = function() {
@@ -3159,31 +3159,31 @@ function Od(e) {
3159
3159
  maxHeight: t
3160
3160
  };
3161
3161
  if (!n || !n.offsetParent) return l;
3162
- var c = u.getBoundingClientRect(), d = c.height, f = n.getBoundingClientRect(), p = f.bottom, I = f.height, g = f.top, v = n.offsetParent.getBoundingClientRect(), b = v.top, w = a ? window.innerHeight : Cd(u), A = Zs(u), E = parseInt(getComputedStyle(n).marginBottom, 10), P = parseInt(getComputedStyle(n).marginTop, 10), S = b - P, k = w - g, R = S + A, T = d - A - g, H = p - w + A + E, N = A + g - P, O = 160;
3162
+ var c = u.getBoundingClientRect(), d = c.height, f = n.getBoundingClientRect(), p = f.bottom, y = f.height, g = f.top, I = n.offsetParent.getBoundingClientRect(), v = I.top, A = a ? window.innerHeight : Cd(u), w = Zs(u), S = parseInt(getComputedStyle(n).marginBottom, 10), P = parseInt(getComputedStyle(n).marginTop, 10), E = v - P, k = A - g, R = E + w, T = d - w - g, H = p - A + w + S, N = w + g - P, O = 160;
3163
3163
  switch (i) {
3164
3164
  case "auto":
3165
3165
  case "bottom":
3166
- if (k >= I)
3166
+ if (k >= y)
3167
3167
  return {
3168
3168
  placement: "bottom",
3169
3169
  maxHeight: t
3170
3170
  };
3171
- if (T >= I && !a)
3171
+ if (T >= y && !a)
3172
3172
  return o && mr(u, H, O), {
3173
3173
  placement: "bottom",
3174
3174
  maxHeight: t
3175
3175
  };
3176
3176
  if (!a && T >= r || a && k >= r) {
3177
3177
  o && mr(u, H, O);
3178
- var K = a ? k - E : T - E;
3178
+ var K = a ? k - S : T - S;
3179
3179
  return {
3180
3180
  placement: "bottom",
3181
3181
  maxHeight: K
3182
3182
  };
3183
3183
  }
3184
3184
  if (i === "auto" || a) {
3185
- var ie = t, M = a ? S : R;
3186
- return M >= r && (ie = Math.min(M - E - s, t)), {
3185
+ var ie = t, M = a ? E : R;
3186
+ return M >= r && (ie = Math.min(M - S - s, t)), {
3187
3187
  placement: "top",
3188
3188
  maxHeight: ie
3189
3189
  };
@@ -3195,19 +3195,19 @@ function Od(e) {
3195
3195
  };
3196
3196
  break;
3197
3197
  case "top":
3198
- if (S >= I)
3198
+ if (E >= y)
3199
3199
  return {
3200
3200
  placement: "top",
3201
3201
  maxHeight: t
3202
3202
  };
3203
- if (R >= I && !a)
3203
+ if (R >= y && !a)
3204
3204
  return o && mr(u, N, O), {
3205
3205
  placement: "top",
3206
3206
  maxHeight: t
3207
3207
  };
3208
- if (!a && R >= r || a && S >= r) {
3208
+ if (!a && R >= r || a && E >= r) {
3209
3209
  var Y = t;
3210
- return (!a && R >= r || a && S >= r) && (Y = a ? S - P : R - P), o && mr(u, N, O), {
3210
+ return (!a && R >= r || a && E >= r) && (Y = a ? E - P : R - P), o && mr(u, N, O), {
3211
3211
  placement: "top",
3212
3212
  maxHeight: Y
3213
3213
  };
@@ -3242,26 +3242,26 @@ var Js = function(t) {
3242
3242
  marginTop: s.menuGutter
3243
3243
  });
3244
3244
  }, Ys = /* @__PURE__ */ $n(null), Dd = function(t) {
3245
- var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, l = Pn(Ys) || {}, c = l.setPortalPlacement, d = xt(null), f = Ce(i), p = At(f, 2), I = p[0], g = p[1], v = Ce(null), b = At(v, 2), w = b[0], A = b[1], E = u.spacing.controlHeight;
3245
+ var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, l = Pn(Ys) || {}, c = l.setPortalPlacement, d = xt(null), f = Ce(i), p = At(f, 2), y = p[0], g = p[1], I = Ce(null), v = At(I, 2), A = v[0], w = v[1], S = u.spacing.controlHeight;
3246
3246
  return Xi(function() {
3247
3247
  var P = d.current;
3248
3248
  if (P) {
3249
- var S = a === "fixed", k = s && !S, R = Od({
3249
+ var E = a === "fixed", k = s && !E, R = Od({
3250
3250
  maxHeight: i,
3251
3251
  menuEl: P,
3252
3252
  minHeight: r,
3253
3253
  placement: o,
3254
3254
  shouldScroll: k,
3255
- isFixedPosition: S,
3256
- controlHeight: E
3255
+ isFixedPosition: E,
3256
+ controlHeight: S
3257
3257
  });
3258
- g(R.maxHeight), A(R.placement), c == null || c(R.placement);
3258
+ g(R.maxHeight), w(R.placement), c == null || c(R.placement);
3259
3259
  }
3260
- }, [i, o, a, s, r, c, E]), n({
3260
+ }, [i, o, a, s, r, c, S]), n({
3261
3261
  ref: d,
3262
3262
  placerProps: Z(Z({}, t), {}, {
3263
- placement: w || Js(o),
3264
- maxHeight: I
3263
+ placement: A || Js(o),
3264
+ maxHeight: y
3265
3265
  })
3266
3266
  });
3267
3267
  }, Nd = function(t) {
@@ -3327,46 +3327,46 @@ var Js = function(t) {
3327
3327
  zIndex: 1
3328
3328
  };
3329
3329
  }, Jd = function(t) {
3330
- var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, u = xt(null), l = xt(null), c = Ce(Js(a)), d = At(c, 2), f = d[0], p = d[1], I = ft(function() {
3330
+ var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, u = xt(null), l = xt(null), c = Ce(Js(a)), d = At(c, 2), f = d[0], p = d[1], y = ft(function() {
3331
3331
  return {
3332
3332
  setPortalPlacement: p
3333
3333
  };
3334
- }, []), g = Ce(null), v = At(g, 2), b = v[0], w = v[1], A = Ve(function() {
3334
+ }, []), g = Ce(null), I = At(g, 2), v = I[0], A = I[1], w = Ve(function() {
3335
3335
  if (i) {
3336
3336
  var k = Sd(i), R = s === "fixed" ? 0 : window.pageYOffset, T = k[f] + R;
3337
- (T !== (b == null ? void 0 : b.offset) || k.left !== (b == null ? void 0 : b.rect.left) || k.width !== (b == null ? void 0 : b.rect.width)) && w({
3337
+ (T !== (v == null ? void 0 : v.offset) || k.left !== (v == null ? void 0 : v.rect.left) || k.width !== (v == null ? void 0 : v.rect.width)) && A({
3338
3338
  offset: T,
3339
3339
  rect: k
3340
3340
  });
3341
3341
  }
3342
- }, [i, s, f, b == null ? void 0 : b.offset, b == null ? void 0 : b.rect.left, b == null ? void 0 : b.rect.width]);
3342
+ }, [i, s, f, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
3343
3343
  Xi(function() {
3344
- A();
3345
- }, [A]);
3346
- var E = Ve(function() {
3347
- typeof l.current == "function" && (l.current(), l.current = null), i && u.current && (l.current = bd(i, u.current, A, {
3344
+ w();
3345
+ }, [w]);
3346
+ var S = Ve(function() {
3347
+ typeof l.current == "function" && (l.current(), l.current = null), i && u.current && (l.current = bd(i, u.current, w, {
3348
3348
  elementResize: "ResizeObserver" in window
3349
3349
  }));
3350
- }, [i, A]);
3350
+ }, [i, w]);
3351
3351
  Xi(function() {
3352
- E();
3353
- }, [E]);
3352
+ S();
3353
+ }, [S]);
3354
3354
  var P = Ve(function(k) {
3355
- u.current = k, E();
3356
- }, [E]);
3357
- if (!n && s !== "fixed" || !b) return null;
3358
- var S = j("div", J({
3355
+ u.current = k, S();
3356
+ }, [S]);
3357
+ if (!n && s !== "fixed" || !v) return null;
3358
+ var E = j("div", J({
3359
3359
  ref: P
3360
3360
  }, we(Z(Z({}, t), {}, {
3361
- offset: b.offset,
3361
+ offset: v.offset,
3362
3362
  position: s,
3363
- rect: b.rect
3363
+ rect: v.rect
3364
3364
  }), "menuPortal", {
3365
3365
  "menu-portal": !0
3366
3366
  }), o), r);
3367
3367
  return j(Ys.Provider, {
3368
- value: I
3369
- }, n ? /* @__PURE__ */ $l(S, n) : S);
3368
+ value: y
3369
+ }, n ? /* @__PURE__ */ $l(E, n) : E);
3370
3370
  }, Yd = function(t) {
3371
3371
  var n = t.isDisabled, r = t.isRtl;
3372
3372
  return {
@@ -3917,8 +3917,8 @@ var Up = process.env.NODE_ENV === "production" ? {
3917
3917
  }
3918
3918
  },
3919
3919
  onFocus: function(t) {
3920
- var n = t.context, r = t.focused, i = t.options, o = t.label, a = o === void 0 ? "" : o, s = t.selectValue, u = t.isDisabled, l = t.isSelected, c = t.isAppleDevice, d = function(g, v) {
3921
- return g && g.length ? "".concat(g.indexOf(v) + 1, " of ").concat(g.length) : "";
3920
+ var n = t.context, r = t.focused, i = t.options, o = t.label, a = o === void 0 ? "" : o, s = t.selectValue, u = t.isDisabled, l = t.isSelected, c = t.isAppleDevice, d = function(g, I) {
3921
+ return g && g.length ? "".concat(g.indexOf(I) + 1, " of ").concat(g.length) : "";
3922
3922
  };
3923
3923
  if (n === "value" && s)
3924
3924
  return "value ".concat(a, " focused, ").concat(d(s, r), ".");
@@ -3933,14 +3933,14 @@ var Up = process.env.NODE_ENV === "production" ? {
3933
3933
  return "".concat(r).concat(n ? " for search term " + n : "", ".");
3934
3934
  }
3935
3935
  }, $p = function(t) {
3936
- var n = t.ariaSelection, r = t.focusedOption, i = t.focusedValue, o = t.focusableOptions, a = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = t.isAppleDevice, d = u.ariaLiveMessages, f = u.getOptionLabel, p = u.inputValue, I = u.isMulti, g = u.isOptionDisabled, v = u.isSearchable, b = u.menuIsOpen, w = u.options, A = u.screenReaderStatus, E = u.tabSelectsValue, P = u.isLoading, S = u["aria-label"], k = u["aria-live"], R = ft(function() {
3936
+ var n = t.ariaSelection, r = t.focusedOption, i = t.focusedValue, o = t.focusableOptions, a = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = t.isAppleDevice, d = u.ariaLiveMessages, f = u.getOptionLabel, p = u.inputValue, y = u.isMulti, g = u.isOptionDisabled, I = u.isSearchable, v = u.menuIsOpen, A = u.options, w = u.screenReaderStatus, S = u.tabSelectsValue, P = u.isLoading, E = u["aria-label"], k = u["aria-live"], R = ft(function() {
3937
3937
  return Z(Z({}, qp), d || {});
3938
3938
  }, [d]), T = ft(function() {
3939
3939
  var M = "";
3940
3940
  if (n && R.onChange) {
3941
- var Y = n.option, _ = n.options, ue = n.removedValue, me = n.removedValues, y = n.value, ve = function(D) {
3941
+ var Y = n.option, _ = n.options, ue = n.removedValue, me = n.removedValues, b = n.value, ve = function(D) {
3942
3942
  return Array.isArray(D) ? null : D;
3943
- }, se = ue || Y || ve(y), m = se ? f(se) : "", fe = _ || me || void 0, ee = fe ? fe.map(f) : [], de = Z({
3943
+ }, se = ue || Y || ve(b), m = se ? f(se) : "", fe = _ || me || void 0, ee = fe ? fe.map(f) : [], de = Z({
3944
3944
  // multiSelected items are usually items that have already been selected
3945
3945
  // or set by the user as a default value so we assume they are not disabled
3946
3946
  isDisabled: se && g(se, s),
@@ -3968,8 +3968,8 @@ var Up = process.env.NODE_ENV === "production" ? {
3968
3968
  return M;
3969
3969
  }, [r, i, f, g, R, o, s, c]), N = ft(function() {
3970
3970
  var M = "";
3971
- if (b && w.length && !P && R.onFilter) {
3972
- var Y = A({
3971
+ if (v && A.length && !P && R.onFilter) {
3972
+ var Y = w({
3973
3973
  count: o.length
3974
3974
  });
3975
3975
  M = R.onFilter({
@@ -3978,22 +3978,22 @@ var Up = process.env.NODE_ENV === "production" ? {
3978
3978
  });
3979
3979
  }
3980
3980
  return M;
3981
- }, [o, p, b, R, w, A, P]), O = (n == null ? void 0 : n.action) === "initial-input-focus", K = ft(function() {
3981
+ }, [o, p, v, R, A, w, P]), O = (n == null ? void 0 : n.action) === "initial-input-focus", K = ft(function() {
3982
3982
  var M = "";
3983
3983
  if (R.guidance) {
3984
- var Y = i ? "value" : b ? "menu" : "input";
3984
+ var Y = i ? "value" : v ? "menu" : "input";
3985
3985
  M = R.guidance({
3986
- "aria-label": S,
3986
+ "aria-label": E,
3987
3987
  context: Y,
3988
3988
  isDisabled: r && g(r, s),
3989
- isMulti: I,
3990
- isSearchable: v,
3991
- tabSelectsValue: E,
3989
+ isMulti: y,
3990
+ isSearchable: I,
3991
+ tabSelectsValue: S,
3992
3992
  isInitialFocus: O
3993
3993
  });
3994
3994
  }
3995
3995
  return M;
3996
- }, [S, r, i, I, g, v, b, R, s, E, O]), ie = j(xi, null, j("span", {
3996
+ }, [E, r, i, y, g, I, v, R, s, S, O]), ie = j(xi, null, j("span", {
3997
3997
  id: "aria-selection"
3998
3998
  }, T), j("span", {
3999
3999
  id: "aria-focused"
@@ -4321,37 +4321,37 @@ var sf = function(t) {
4321
4321
  t.cancelable && t.preventDefault(), t.stopPropagation();
4322
4322
  };
4323
4323
  function uf(e) {
4324
- var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, i = e.onTopArrive, o = e.onTopLeave, a = xt(!1), s = xt(!1), u = xt(0), l = xt(null), c = Ve(function(v, b) {
4324
+ var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, i = e.onTopArrive, o = e.onTopLeave, a = xt(!1), s = xt(!1), u = xt(0), l = xt(null), c = Ve(function(I, v) {
4325
4325
  if (l.current !== null) {
4326
- var w = l.current, A = w.scrollTop, E = w.scrollHeight, P = w.clientHeight, S = l.current, k = b > 0, R = E - P - A, T = !1;
4327
- R > b && a.current && (r && r(v), a.current = !1), k && s.current && (o && o(v), s.current = !1), k && b > R ? (n && !a.current && n(v), S.scrollTop = E, T = !0, a.current = !0) : !k && -b > A && (i && !s.current && i(v), S.scrollTop = 0, T = !0, s.current = !0), T && sf(v);
4328
- }
4329
- }, [n, r, i, o]), d = Ve(function(v) {
4330
- c(v, v.deltaY);
4331
- }, [c]), f = Ve(function(v) {
4332
- u.current = v.changedTouches[0].clientY;
4333
- }, []), p = Ve(function(v) {
4334
- var b = u.current - v.changedTouches[0].clientY;
4335
- c(v, b);
4336
- }, [c]), I = Ve(function(v) {
4337
- if (v) {
4338
- var b = Fd ? {
4326
+ var A = l.current, w = A.scrollTop, S = A.scrollHeight, P = A.clientHeight, E = l.current, k = v > 0, R = S - P - w, T = !1;
4327
+ R > v && a.current && (r && r(I), a.current = !1), k && s.current && (o && o(I), s.current = !1), k && v > R ? (n && !a.current && n(I), E.scrollTop = S, T = !0, a.current = !0) : !k && -v > w && (i && !s.current && i(I), E.scrollTop = 0, T = !0, s.current = !0), T && sf(I);
4328
+ }
4329
+ }, [n, r, i, o]), d = Ve(function(I) {
4330
+ c(I, I.deltaY);
4331
+ }, [c]), f = Ve(function(I) {
4332
+ u.current = I.changedTouches[0].clientY;
4333
+ }, []), p = Ve(function(I) {
4334
+ var v = u.current - I.changedTouches[0].clientY;
4335
+ c(I, v);
4336
+ }, [c]), y = Ve(function(I) {
4337
+ if (I) {
4338
+ var v = Fd ? {
4339
4339
  passive: !1
4340
4340
  } : !1;
4341
- v.addEventListener("wheel", d, b), v.addEventListener("touchstart", f, b), v.addEventListener("touchmove", p, b);
4341
+ I.addEventListener("wheel", d, v), I.addEventListener("touchstart", f, v), I.addEventListener("touchmove", p, v);
4342
4342
  }
4343
- }, [p, f, d]), g = Ve(function(v) {
4344
- v && (v.removeEventListener("wheel", d, !1), v.removeEventListener("touchstart", f, !1), v.removeEventListener("touchmove", p, !1));
4343
+ }, [p, f, d]), g = Ve(function(I) {
4344
+ I && (I.removeEventListener("wheel", d, !1), I.removeEventListener("touchstart", f, !1), I.removeEventListener("touchmove", p, !1));
4345
4345
  }, [p, f, d]);
4346
4346
  return Yt(function() {
4347
4347
  if (t) {
4348
- var v = l.current;
4349
- return I(v), function() {
4350
- g(v);
4348
+ var I = l.current;
4349
+ return y(I), function() {
4350
+ g(I);
4351
4351
  };
4352
4352
  }
4353
- }, [t, I, g]), function(v) {
4354
- l.current = v;
4353
+ }, [t, y, g]), function(I) {
4354
+ l.current = I;
4355
4355
  };
4356
4356
  }
4357
4357
  var sa = ["boxSizing", "height", "overflow", "paddingRight", "position"], ua = {
@@ -4382,14 +4382,14 @@ function lf(e) {
4382
4382
  var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 ? !0 : n, i = xt({}), o = xt(null), a = Ve(function(u) {
4383
4383
  if (fa) {
4384
4384
  var l = document.body, c = l && l.style;
4385
- if (r && sa.forEach(function(I) {
4386
- var g = c && c[I];
4387
- i.current[I] = g;
4385
+ if (r && sa.forEach(function(y) {
4386
+ var g = c && c[y];
4387
+ i.current[y] = g;
4388
4388
  }), r && Dn < 1) {
4389
4389
  var d = parseInt(i.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, p = window.innerWidth - f + d || 0;
4390
- Object.keys(ua).forEach(function(I) {
4391
- var g = ua[I];
4392
- c && (c[I] = g);
4390
+ Object.keys(ua).forEach(function(y) {
4391
+ var g = ua[y];
4392
+ c && (c[y] = g);
4393
4393
  }), c && (c.paddingRight = "".concat(p, "px"));
4394
4394
  }
4395
4395
  l && pa() && (l.addEventListener("touchmove", la, un), u && (u.addEventListener("touchstart", da, un), u.addEventListener("touchmove", ca, un))), Dn += 1;
@@ -4742,10 +4742,10 @@ var du = function(t) {
4742
4742
  var c = i.props, d = c.onChange, f = c.name;
4743
4743
  l.name = f, i.ariaOnChange(u, l), d(u, l);
4744
4744
  }, i.setValue = function(u, l, c) {
4745
- var d = i.props, f = d.closeMenuOnSelect, p = d.isMulti, I = d.inputValue;
4745
+ var d = i.props, f = d.closeMenuOnSelect, p = d.isMulti, y = d.inputValue;
4746
4746
  i.onInputChange("", {
4747
4747
  action: "set-value",
4748
- prevInputValue: I
4748
+ prevInputValue: y
4749
4749
  }), f && (i.setState({
4750
4750
  inputIsHiddenAfterUpdate: !p
4751
4751
  }), i.onMenuClose()), i.setState({
@@ -4755,11 +4755,11 @@ var du = function(t) {
4755
4755
  option: c
4756
4756
  });
4757
4757
  }, i.selectOption = function(u) {
4758
- var l = i.props, c = l.blurInputOnSelect, d = l.isMulti, f = l.name, p = i.state.selectValue, I = d && i.isOptionSelected(u, p), g = i.isOptionDisabled(u, p);
4759
- if (I) {
4760
- var v = i.getOptionValue(u);
4761
- i.setValue(p.filter(function(b) {
4762
- return i.getOptionValue(b) !== v;
4758
+ var l = i.props, c = l.blurInputOnSelect, d = l.isMulti, f = l.name, p = i.state.selectValue, y = d && i.isOptionSelected(u, p), g = i.isOptionDisabled(u, p);
4759
+ if (y) {
4760
+ var I = i.getOptionValue(u);
4761
+ i.setValue(p.filter(function(v) {
4762
+ return i.getOptionValue(v) !== I;
4763
4763
  }), "deselect-option", u);
4764
4764
  } else if (!g)
4765
4765
  d ? i.setValue([].concat(pn(p), [u]), "select-option", u) : i.setValue(u, "select-option");
@@ -4773,8 +4773,8 @@ var du = function(t) {
4773
4773
  }
4774
4774
  c && i.blurInput();
4775
4775
  }, i.removeValue = function(u) {
4776
- var l = i.props.isMulti, c = i.state.selectValue, d = i.getOptionValue(u), f = c.filter(function(I) {
4777
- return i.getOptionValue(I) !== d;
4776
+ var l = i.props.isMulti, c = i.state.selectValue, d = i.getOptionValue(u), f = c.filter(function(y) {
4777
+ return i.getOptionValue(y) !== d;
4778
4778
  }), p = zn(l, f, f[0] || null);
4779
4779
  i.onChange(p, {
4780
4780
  action: "remove-value",
@@ -4914,8 +4914,8 @@ var du = function(t) {
4914
4914
  }, i.onValueInputFocus = function(u) {
4915
4915
  u.preventDefault(), u.stopPropagation(), i.focus();
4916
4916
  }, i.onKeyDown = function(u) {
4917
- var l = i.props, c = l.isMulti, d = l.backspaceRemovesValue, f = l.escapeClearsValue, p = l.inputValue, I = l.isClearable, g = l.isDisabled, v = l.menuIsOpen, b = l.onKeyDown, w = l.tabSelectsValue, A = l.openMenuOnFocus, E = i.state, P = E.focusedOption, S = E.focusedValue, k = E.selectValue;
4918
- if (!g && !(typeof b == "function" && (b(u), u.defaultPrevented))) {
4917
+ var l = i.props, c = l.isMulti, d = l.backspaceRemovesValue, f = l.escapeClearsValue, p = l.inputValue, y = l.isClearable, g = l.isDisabled, I = l.menuIsOpen, v = l.onKeyDown, A = l.tabSelectsValue, w = l.openMenuOnFocus, S = i.state, P = S.focusedOption, E = S.focusedValue, k = S.selectValue;
4918
+ if (!g && !(typeof v == "function" && (v(u), u.defaultPrevented))) {
4919
4919
  switch (i.blockOptionHover = !0, u.key) {
4920
4920
  case "ArrowLeft":
4921
4921
  if (!c || p) return;
@@ -4928,41 +4928,41 @@ var du = function(t) {
4928
4928
  case "Delete":
4929
4929
  case "Backspace":
4930
4930
  if (p) return;
4931
- if (S)
4932
- i.removeValue(S);
4931
+ if (E)
4932
+ i.removeValue(E);
4933
4933
  else {
4934
4934
  if (!d) return;
4935
- c ? i.popValue() : I && i.clearValue();
4935
+ c ? i.popValue() : y && i.clearValue();
4936
4936
  }
4937
4937
  break;
4938
4938
  case "Tab":
4939
- if (i.isComposing || u.shiftKey || !v || !w || !P || // don't capture the event if the menu opens on focus and the focused
4939
+ if (i.isComposing || u.shiftKey || !I || !A || !P || // don't capture the event if the menu opens on focus and the focused
4940
4940
  // option is already selected; it breaks the flow of navigation
4941
- A && i.isOptionSelected(P, k))
4941
+ w && i.isOptionSelected(P, k))
4942
4942
  return;
4943
4943
  i.selectOption(P);
4944
4944
  break;
4945
4945
  case "Enter":
4946
4946
  if (u.keyCode === 229)
4947
4947
  break;
4948
- if (v) {
4948
+ if (I) {
4949
4949
  if (!P || i.isComposing) return;
4950
4950
  i.selectOption(P);
4951
4951
  break;
4952
4952
  }
4953
4953
  return;
4954
4954
  case "Escape":
4955
- v ? (i.setState({
4955
+ I ? (i.setState({
4956
4956
  inputIsHiddenAfterUpdate: !1
4957
4957
  }), i.onInputChange("", {
4958
4958
  action: "menu-close",
4959
4959
  prevInputValue: p
4960
- }), i.onMenuClose()) : I && f && i.clearValue();
4960
+ }), i.onMenuClose()) : y && f && i.clearValue();
4961
4961
  break;
4962
4962
  case " ":
4963
4963
  if (p)
4964
4964
  return;
4965
- if (!v) {
4965
+ if (!I) {
4966
4966
  i.openMenu("first");
4967
4967
  break;
4968
4968
  }
@@ -4970,25 +4970,25 @@ var du = function(t) {
4970
4970
  i.selectOption(P);
4971
4971
  break;
4972
4972
  case "ArrowUp":
4973
- v ? i.focusOption("up") : i.openMenu("last");
4973
+ I ? i.focusOption("up") : i.openMenu("last");
4974
4974
  break;
4975
4975
  case "ArrowDown":
4976
- v ? i.focusOption("down") : i.openMenu("first");
4976
+ I ? i.focusOption("down") : i.openMenu("first");
4977
4977
  break;
4978
4978
  case "PageUp":
4979
- if (!v) return;
4979
+ if (!I) return;
4980
4980
  i.focusOption("pageup");
4981
4981
  break;
4982
4982
  case "PageDown":
4983
- if (!v) return;
4983
+ if (!I) return;
4984
4984
  i.focusOption("pagedown");
4985
4985
  break;
4986
4986
  case "Home":
4987
- if (!v) return;
4987
+ if (!I) return;
4988
4988
  i.focusOption("first");
4989
4989
  break;
4990
4990
  case "End":
4991
- if (!v) return;
4991
+ if (!I) return;
4992
4992
  i.focusOption("last");
4993
4993
  break;
4994
4994
  default:
@@ -5129,7 +5129,7 @@ var du = function(t) {
5129
5129
  }, {
5130
5130
  key: "getCommonProps",
5131
5131
  value: function() {
5132
- var i = this.clearValue, o = this.cx, a = this.getStyles, s = this.getClassNames, u = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, f = d.isMulti, p = d.isRtl, I = d.options, g = this.hasValue();
5132
+ var i = this.clearValue, o = this.cx, a = this.getStyles, s = this.getClassNames, u = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, f = d.isMulti, p = d.isRtl, y = d.options, g = this.hasValue();
5133
5133
  return {
5134
5134
  clearValue: i,
5135
5135
  cx: o,
@@ -5139,7 +5139,7 @@ var du = function(t) {
5139
5139
  hasValue: g,
5140
5140
  isMulti: f,
5141
5141
  isRtl: p,
5142
- options: I,
5142
+ options: y,
5143
5143
  selectOption: l,
5144
5144
  selectProps: d,
5145
5145
  setValue: c,
@@ -5236,7 +5236,7 @@ var du = function(t) {
5236
5236
  // Renderers
5237
5237
  // ==============================
5238
5238
  function() {
5239
- var i = this.props, o = i.isDisabled, a = i.isSearchable, s = i.inputId, u = i.inputValue, l = i.tabIndex, c = i.form, d = i.menuIsOpen, f = i.required, p = this.getComponents(), I = p.Input, g = this.state, v = g.inputIsHidden, b = g.ariaSelection, w = this.commonProps, A = s || this.getElementId("input"), E = Z(Z(Z({
5239
+ var i = this.props, o = i.isDisabled, a = i.isSearchable, s = i.inputId, u = i.inputValue, l = i.tabIndex, c = i.form, d = i.menuIsOpen, f = i.required, p = this.getComponents(), y = p.Input, g = this.state, I = g.inputIsHidden, v = g.ariaSelection, A = this.commonProps, w = s || this.getElementId("input"), S = Z(Z(Z({
5240
5240
  "aria-autocomplete": "list",
5241
5241
  "aria-expanded": d,
5242
5242
  "aria-haspopup": !0,
@@ -5251,19 +5251,19 @@ var du = function(t) {
5251
5251
  "aria-controls": this.getElementId("listbox")
5252
5252
  }), !a && {
5253
5253
  "aria-readonly": !0
5254
- }), this.hasValue() ? (b == null ? void 0 : b.action) === "initial-input-focus" && {
5254
+ }), this.hasValue() ? (v == null ? void 0 : v.action) === "initial-input-focus" && {
5255
5255
  "aria-describedby": this.getElementId("live-region")
5256
5256
  } : {
5257
5257
  "aria-describedby": this.getElementId("placeholder")
5258
5258
  });
5259
- return a ? /* @__PURE__ */ te.createElement(I, J({}, w, {
5259
+ return a ? /* @__PURE__ */ te.createElement(y, J({}, A, {
5260
5260
  autoCapitalize: "none",
5261
5261
  autoComplete: "off",
5262
5262
  autoCorrect: "off",
5263
- id: A,
5263
+ id: w,
5264
5264
  innerRef: this.getInputRef,
5265
5265
  isDisabled: o,
5266
- isHidden: v,
5266
+ isHidden: I,
5267
5267
  onBlur: this.onInputBlur,
5268
5268
  onChange: this.handleInputChange,
5269
5269
  onFocus: this.onInputFocus,
@@ -5272,8 +5272,8 @@ var du = function(t) {
5272
5272
  form: c,
5273
5273
  type: "text",
5274
5274
  value: u
5275
- }, E)) : /* @__PURE__ */ te.createElement(af, J({
5276
- id: A,
5275
+ }, S)) : /* @__PURE__ */ te.createElement(af, J({
5276
+ id: w,
5277
5277
  innerRef: this.getInputRef,
5278
5278
  onBlur: this.onInputBlur,
5279
5279
  onChange: Br,
@@ -5283,24 +5283,24 @@ var du = function(t) {
5283
5283
  inputMode: "none",
5284
5284
  form: c,
5285
5285
  value: ""
5286
- }, E));
5286
+ }, S));
5287
5287
  }
5288
5288
  )
5289
5289
  }, {
5290
5290
  key: "renderPlaceholderOrValue",
5291
5291
  value: function() {
5292
- var i = this, o = this.getComponents(), a = o.MultiValue, s = o.MultiValueContainer, u = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, f = this.commonProps, p = this.props, I = p.controlShouldRenderValue, g = p.isDisabled, v = p.isMulti, b = p.inputValue, w = p.placeholder, A = this.state, E = A.selectValue, P = A.focusedValue, S = A.isFocused;
5293
- if (!this.hasValue() || !I)
5294
- return b ? null : /* @__PURE__ */ te.createElement(d, J({}, f, {
5292
+ var i = this, o = this.getComponents(), a = o.MultiValue, s = o.MultiValueContainer, u = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, f = this.commonProps, p = this.props, y = p.controlShouldRenderValue, g = p.isDisabled, I = p.isMulti, v = p.inputValue, A = p.placeholder, w = this.state, S = w.selectValue, P = w.focusedValue, E = w.isFocused;
5293
+ if (!this.hasValue() || !y)
5294
+ return v ? null : /* @__PURE__ */ te.createElement(d, J({}, f, {
5295
5295
  key: "placeholder",
5296
5296
  isDisabled: g,
5297
- isFocused: S,
5297
+ isFocused: E,
5298
5298
  innerProps: {
5299
5299
  id: this.getElementId("placeholder")
5300
5300
  }
5301
- }), w);
5302
- if (v)
5303
- return E.map(function(R, T) {
5301
+ }), A);
5302
+ if (I)
5303
+ return S.map(function(R, T) {
5304
5304
  var H = R === P, N = "".concat(i.getOptionLabel(R), "-").concat(i.getOptionValue(R));
5305
5305
  return /* @__PURE__ */ te.createElement(a, J({}, f, {
5306
5306
  components: {
@@ -5326,9 +5326,9 @@ var du = function(t) {
5326
5326
  data: R
5327
5327
  }), i.formatOptionLabel(R, "value"));
5328
5328
  });
5329
- if (b)
5329
+ if (v)
5330
5330
  return null;
5331
- var k = E[0];
5331
+ var k = S[0];
5332
5332
  return /* @__PURE__ */ te.createElement(c, J({}, f, {
5333
5333
  data: k,
5334
5334
  isDisabled: g
@@ -5394,7 +5394,7 @@ var du = function(t) {
5394
5394
  }, {
5395
5395
  key: "renderMenu",
5396
5396
  value: function() {
5397
- var i = this, o = this.getComponents(), a = o.Group, s = o.GroupHeading, u = o.Menu, l = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, p = o.Option, I = this.commonProps, g = this.state.focusedOption, v = this.props, b = v.captureMenuScroll, w = v.inputValue, A = v.isLoading, E = v.loadingMessage, P = v.minMenuHeight, S = v.maxMenuHeight, k = v.menuIsOpen, R = v.menuPlacement, T = v.menuPosition, H = v.menuPortalTarget, N = v.menuShouldBlockScroll, O = v.menuShouldScrollIntoView, K = v.noOptionsMessage, ie = v.onMenuScrollToTop, M = v.onMenuScrollToBottom;
5397
+ var i = this, o = this.getComponents(), a = o.Group, s = o.GroupHeading, u = o.Menu, l = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, p = o.Option, y = this.commonProps, g = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, A = I.inputValue, w = I.isLoading, S = I.loadingMessage, P = I.minMenuHeight, E = I.maxMenuHeight, k = I.menuIsOpen, R = I.menuPlacement, T = I.menuPosition, H = I.menuPortalTarget, N = I.menuShouldBlockScroll, O = I.menuShouldScrollIntoView, K = I.noOptionsMessage, ie = I.onMenuScrollToTop, M = I.onMenuScrollToBottom;
5398
5398
  if (!k) return null;
5399
5399
  var Y = function(m, fe) {
5400
5400
  var ee = m.type, de = m.data, Fe = m.isDisabled, D = m.isSelected, X = m.label, U = m.value, pe = g === de, Pe = Fe ? void 0 : function() {
@@ -5411,7 +5411,7 @@ var du = function(t) {
5411
5411
  "aria-selected": i.isAppleDevice ? void 0 : D
5412
5412
  // is not supported on Apple devices
5413
5413
  };
5414
- return /* @__PURE__ */ te.createElement(p, J({}, I, {
5414
+ return /* @__PURE__ */ te.createElement(p, J({}, y, {
5415
5415
  innerProps: an,
5416
5416
  data: de,
5417
5417
  isDisabled: Fe,
@@ -5428,7 +5428,7 @@ var du = function(t) {
5428
5428
  _ = this.getCategorizedOptions().map(function(se) {
5429
5429
  if (se.type === "group") {
5430
5430
  var m = se.data, fe = se.options, ee = se.index, de = "".concat(i.getElementId("group"), "-").concat(ee), Fe = "".concat(de, "-heading");
5431
- return /* @__PURE__ */ te.createElement(a, J({}, I, {
5431
+ return /* @__PURE__ */ te.createElement(a, J({}, y, {
5432
5432
  key: de,
5433
5433
  data: m,
5434
5434
  options: fe,
@@ -5444,57 +5444,57 @@ var du = function(t) {
5444
5444
  } else if (se.type === "option")
5445
5445
  return Y(se, "".concat(se.index));
5446
5446
  });
5447
- else if (A) {
5448
- var ue = E({
5449
- inputValue: w
5447
+ else if (w) {
5448
+ var ue = S({
5449
+ inputValue: A
5450
5450
  });
5451
5451
  if (ue === null) return null;
5452
- _ = /* @__PURE__ */ te.createElement(d, I, ue);
5452
+ _ = /* @__PURE__ */ te.createElement(d, y, ue);
5453
5453
  } else {
5454
5454
  var me = K({
5455
- inputValue: w
5455
+ inputValue: A
5456
5456
  });
5457
5457
  if (me === null) return null;
5458
- _ = /* @__PURE__ */ te.createElement(f, I, me);
5458
+ _ = /* @__PURE__ */ te.createElement(f, y, me);
5459
5459
  }
5460
- var y = {
5460
+ var b = {
5461
5461
  minMenuHeight: P,
5462
- maxMenuHeight: S,
5462
+ maxMenuHeight: E,
5463
5463
  menuPlacement: R,
5464
5464
  menuPosition: T,
5465
5465
  menuShouldScrollIntoView: O
5466
- }, ve = /* @__PURE__ */ te.createElement(Dd, J({}, I, y), function(se) {
5466
+ }, ve = /* @__PURE__ */ te.createElement(Dd, J({}, y, b), function(se) {
5467
5467
  var m = se.ref, fe = se.placerProps, ee = fe.placement, de = fe.maxHeight;
5468
- return /* @__PURE__ */ te.createElement(u, J({}, I, y, {
5468
+ return /* @__PURE__ */ te.createElement(u, J({}, y, b, {
5469
5469
  innerRef: m,
5470
5470
  innerProps: {
5471
5471
  onMouseDown: i.onMenuMouseDown,
5472
5472
  onMouseMove: i.onMenuMouseMove
5473
5473
  },
5474
- isLoading: A,
5474
+ isLoading: w,
5475
5475
  placement: ee
5476
5476
  }), /* @__PURE__ */ te.createElement(ff, {
5477
- captureEnabled: b,
5477
+ captureEnabled: v,
5478
5478
  onTopArrive: ie,
5479
5479
  onBottomArrive: M,
5480
5480
  lockEnabled: N
5481
5481
  }, function(Fe) {
5482
- return /* @__PURE__ */ te.createElement(l, J({}, I, {
5482
+ return /* @__PURE__ */ te.createElement(l, J({}, y, {
5483
5483
  innerRef: function(X) {
5484
5484
  i.getMenuListRef(X), Fe(X);
5485
5485
  },
5486
5486
  innerProps: {
5487
5487
  role: "listbox",
5488
- "aria-multiselectable": I.isMulti,
5488
+ "aria-multiselectable": y.isMulti,
5489
5489
  id: i.getElementId("listbox")
5490
5490
  },
5491
- isLoading: A,
5491
+ isLoading: w,
5492
5492
  maxHeight: de,
5493
5493
  focusedOption: g
5494
5494
  }), _);
5495
5495
  }));
5496
5496
  });
5497
- return H || T === "fixed" ? /* @__PURE__ */ te.createElement(c, J({}, I, {
5497
+ return H || T === "fixed" ? /* @__PURE__ */ te.createElement(c, J({}, y, {
5498
5498
  appendTo: H,
5499
5499
  controlElement: this.controlRef,
5500
5500
  menuPlacement: R,
@@ -5522,9 +5522,9 @@ var du = function(t) {
5522
5522
  value: f
5523
5523
  });
5524
5524
  } else {
5525
- var p = d.length > 0 ? d.map(function(g, v) {
5525
+ var p = d.length > 0 ? d.map(function(g, I) {
5526
5526
  return /* @__PURE__ */ te.createElement("input", {
5527
- key: "i-".concat(v),
5527
+ key: "i-".concat(I),
5528
5528
  name: l,
5529
5529
  type: "hidden",
5530
5530
  value: i.getOptionValue(g)
@@ -5537,11 +5537,11 @@ var du = function(t) {
5537
5537
  return /* @__PURE__ */ te.createElement("div", null, p);
5538
5538
  }
5539
5539
  else {
5540
- var I = d[0] ? this.getOptionValue(d[0]) : "";
5540
+ var y = d[0] ? this.getOptionValue(d[0]) : "";
5541
5541
  return /* @__PURE__ */ te.createElement("input", {
5542
5542
  name: l,
5543
5543
  type: "hidden",
5544
- value: I
5544
+ value: y
5545
5545
  });
5546
5546
  }
5547
5547
  }
@@ -5563,7 +5563,7 @@ var du = function(t) {
5563
5563
  }, {
5564
5564
  key: "render",
5565
5565
  value: function() {
5566
- var i = this.getComponents(), o = i.Control, a = i.IndicatorsContainer, s = i.SelectContainer, u = i.ValueContainer, l = this.props, c = l.className, d = l.id, f = l.isDisabled, p = l.menuIsOpen, I = this.state.isFocused, g = this.commonProps = this.getCommonProps();
5566
+ var i = this.getComponents(), o = i.Control, a = i.IndicatorsContainer, s = i.SelectContainer, u = i.ValueContainer, l = this.props, c = l.className, d = l.id, f = l.isDisabled, p = l.menuIsOpen, y = this.state.isFocused, g = this.commonProps = this.getCommonProps();
5567
5567
  return /* @__PURE__ */ te.createElement(s, J({}, g, {
5568
5568
  className: c,
5569
5569
  innerProps: {
@@ -5571,7 +5571,7 @@ var du = function(t) {
5571
5571
  onKeyDown: this.onKeyDown
5572
5572
  },
5573
5573
  isDisabled: f,
5574
- isFocused: I
5574
+ isFocused: y
5575
5575
  }), this.renderLiveRegion(), /* @__PURE__ */ te.createElement(o, J({}, g, {
5576
5576
  innerRef: this.getControlRef,
5577
5577
  innerProps: {
@@ -5579,7 +5579,7 @@ var du = function(t) {
5579
5579
  onTouchEnd: this.onControlTouchEnd
5580
5580
  },
5581
5581
  isDisabled: f,
5582
- isFocused: I,
5582
+ isFocused: y,
5583
5583
  menuIsOpen: p
5584
5584
  }), /* @__PURE__ */ te.createElement(u, J({}, g, {
5585
5585
  isDisabled: f
@@ -5590,15 +5590,15 @@ var du = function(t) {
5590
5590
  }], [{
5591
5591
  key: "getDerivedStateFromProps",
5592
5592
  value: function(i, o) {
5593
- var a = o.prevProps, s = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, I = i.value, g = i.menuIsOpen, v = i.inputValue, b = i.isMulti, w = Or(I), A = {};
5594
- if (a && (I !== a.value || p !== a.options || g !== a.menuIsOpen || v !== a.inputValue)) {
5595
- var E = g ? Bf(i, w) : [], P = g ? ga(xr(i, w), "".concat(f, "-option")) : [], S = s ? Of(o, w) : null, k = Tf(o, E), R = li(P, k);
5596
- A = {
5597
- selectValue: w,
5593
+ var a = o.prevProps, s = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, y = i.value, g = i.menuIsOpen, I = i.inputValue, v = i.isMulti, A = Or(y), w = {};
5594
+ if (a && (y !== a.value || p !== a.options || g !== a.menuIsOpen || I !== a.inputValue)) {
5595
+ var S = g ? Bf(i, A) : [], P = g ? ga(xr(i, A), "".concat(f, "-option")) : [], E = s ? Of(o, A) : null, k = Tf(o, S), R = li(P, k);
5596
+ w = {
5597
+ selectValue: A,
5598
5598
  focusedOption: k,
5599
5599
  focusedOptionId: R,
5600
5600
  focusableOptionsWithIds: P,
5601
- focusedValue: S,
5601
+ focusedValue: E,
5602
5602
  clearFocusValueOnUpdate: !1
5603
5603
  };
5604
5604
  }
@@ -5607,10 +5607,10 @@ var du = function(t) {
5607
5607
  inputIsHiddenAfterUpdate: void 0
5608
5608
  } : {}, H = l, N = c && d;
5609
5609
  return c && !N && (H = {
5610
- value: zn(b, w, w[0] || null),
5611
- options: w,
5610
+ value: zn(v, A, A[0] || null),
5611
+ options: A,
5612
5612
  action: "initial-input-focus"
5613
- }, N = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (H = null), Z(Z(Z({}, A), T), {}, {
5613
+ }, N = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (H = null), Z(Z(Z({}, w), T), {}, {
5614
5614
  prevProps: i,
5615
5615
  ariaSelection: H,
5616
5616
  prevWasFocused: N
@@ -6880,76 +6880,76 @@ var vu = {}, Ca = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ih = /\n/g, oh = /^\s*/, ah
6880
6880
  if (!e) return [];
6881
6881
  t = t || {};
6882
6882
  var n = 1, r = 1;
6883
- function i(I) {
6884
- var g = I.match(ih);
6883
+ function i(y) {
6884
+ var g = y.match(ih);
6885
6885
  g && (n += g.length);
6886
- var v = I.lastIndexOf(dh);
6887
- r = ~v ? I.length - v : r + I.length;
6886
+ var I = y.lastIndexOf(dh);
6887
+ r = ~I ? y.length - I : r + y.length;
6888
6888
  }
6889
6889
  function o() {
6890
- var I = { line: n, column: r };
6890
+ var y = { line: n, column: r };
6891
6891
  return function(g) {
6892
- return g.position = new a(I), l(), g;
6892
+ return g.position = new a(y), l(), g;
6893
6893
  };
6894
6894
  }
6895
- function a(I) {
6896
- this.start = I, this.end = { line: n, column: r }, this.source = t.source;
6895
+ function a(y) {
6896
+ this.start = y, this.end = { line: n, column: r }, this.source = t.source;
6897
6897
  }
6898
6898
  a.prototype.content = e;
6899
- function s(I) {
6899
+ function s(y) {
6900
6900
  var g = new Error(
6901
- t.source + ":" + n + ":" + r + ": " + I
6901
+ t.source + ":" + n + ":" + r + ": " + y
6902
6902
  );
6903
- if (g.reason = I, g.filename = t.source, g.line = n, g.column = r, g.source = e, !t.silent) throw g;
6903
+ if (g.reason = y, g.filename = t.source, g.line = n, g.column = r, g.source = e, !t.silent) throw g;
6904
6904
  }
6905
- function u(I) {
6906
- var g = I.exec(e);
6905
+ function u(y) {
6906
+ var g = y.exec(e);
6907
6907
  if (g) {
6908
- var v = g[0];
6909
- return i(v), e = e.slice(v.length), g;
6908
+ var I = g[0];
6909
+ return i(I), e = e.slice(I.length), g;
6910
6910
  }
6911
6911
  }
6912
6912
  function l() {
6913
6913
  u(oh);
6914
6914
  }
6915
- function c(I) {
6915
+ function c(y) {
6916
6916
  var g;
6917
- for (I = I || []; g = d(); )
6918
- g !== !1 && I.push(g);
6919
- return I;
6917
+ for (y = y || []; g = d(); )
6918
+ g !== !1 && y.push(g);
6919
+ return y;
6920
6920
  }
6921
6921
  function d() {
6922
- var I = o();
6922
+ var y = o();
6923
6923
  if (!(xa != e.charAt(0) || Aa != e.charAt(1))) {
6924
6924
  for (var g = 2; Jt != e.charAt(g) && (Aa != e.charAt(g) || xa != e.charAt(g + 1)); )
6925
6925
  ++g;
6926
6926
  if (g += 2, Jt === e.charAt(g - 1))
6927
6927
  return s("End of comment missing");
6928
- var v = e.slice(2, g - 2);
6929
- return r += 2, i(v), e = e.slice(g), r += 2, I({
6928
+ var I = e.slice(2, g - 2);
6929
+ return r += 2, i(I), e = e.slice(g), r += 2, y({
6930
6930
  type: ph,
6931
- comment: v
6931
+ comment: I
6932
6932
  });
6933
6933
  }
6934
6934
  }
6935
6935
  function f() {
6936
- var I = o(), g = u(ah);
6936
+ var y = o(), g = u(ah);
6937
6937
  if (g) {
6938
6938
  if (d(), !u(sh)) return s("property missing ':'");
6939
- var v = u(uh), b = I({
6939
+ var I = u(uh), v = y({
6940
6940
  type: fh,
6941
6941
  property: Sa(g[0].replace(Ca, Jt)),
6942
- value: v ? Sa(v[0].replace(Ca, Jt)) : Jt
6942
+ value: I ? Sa(I[0].replace(Ca, Jt)) : Jt
6943
6943
  });
6944
- return u(lh), b;
6944
+ return u(lh), v;
6945
6945
  }
6946
6946
  }
6947
6947
  function p() {
6948
- var I = [];
6949
- c(I);
6948
+ var y = [];
6949
+ c(y);
6950
6950
  for (var g; g = f(); )
6951
- g !== !1 && (I.push(g), c(I));
6952
- return I;
6951
+ g !== !1 && (y.push(g), c(y));
6952
+ return y;
6953
6953
  }
6954
6954
  return l(), p();
6955
6955
  };
@@ -7598,83 +7598,83 @@ function ng(e) {
7598
7598
  const t = this, n = [];
7599
7599
  let r = 0, i, o, a;
7600
7600
  return s;
7601
- function s(A) {
7601
+ function s(w) {
7602
7602
  if (r < n.length) {
7603
- const E = n[r];
7604
- return t.containerState = E[1], e.attempt(E[0].continuation, u, l)(A);
7603
+ const S = n[r];
7604
+ return t.containerState = S[1], e.attempt(S[0].continuation, u, l)(w);
7605
7605
  }
7606
- return l(A);
7606
+ return l(w);
7607
7607
  }
7608
- function u(A) {
7608
+ function u(w) {
7609
7609
  if (r++, t.containerState._closeFlow) {
7610
- t.containerState._closeFlow = void 0, i && w();
7611
- const E = t.events.length;
7612
- let P = E, S;
7610
+ t.containerState._closeFlow = void 0, i && A();
7611
+ const S = t.events.length;
7612
+ let P = S, E;
7613
7613
  for (; P--; )
7614
7614
  if (t.events[P][0] === "exit" && t.events[P][1].type === "chunkFlow") {
7615
- S = t.events[P][1].end;
7615
+ E = t.events[P][1].end;
7616
7616
  break;
7617
7617
  }
7618
- b(r);
7619
- let k = E;
7618
+ v(r);
7619
+ let k = S;
7620
7620
  for (; k < t.events.length; )
7621
7621
  t.events[k][1].end = {
7622
- ...S
7622
+ ...E
7623
7623
  }, k++;
7624
- return mt(t.events, P + 1, 0, t.events.slice(E)), t.events.length = k, l(A);
7624
+ return mt(t.events, P + 1, 0, t.events.slice(S)), t.events.length = k, l(w);
7625
7625
  }
7626
- return s(A);
7626
+ return s(w);
7627
7627
  }
7628
- function l(A) {
7628
+ function l(w) {
7629
7629
  if (r === n.length) {
7630
7630
  if (!i)
7631
- return f(A);
7631
+ return f(w);
7632
7632
  if (i.currentConstruct && i.currentConstruct.concrete)
7633
- return I(A);
7633
+ return y(w);
7634
7634
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
7635
7635
  }
7636
- return t.containerState = {}, e.check(ka, c, d)(A);
7636
+ return t.containerState = {}, e.check(ka, c, d)(w);
7637
7637
  }
7638
- function c(A) {
7639
- return i && w(), b(r), f(A);
7638
+ function c(w) {
7639
+ return i && A(), v(r), f(w);
7640
7640
  }
7641
- function d(A) {
7642
- return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, I(A);
7641
+ function d(w) {
7642
+ return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, y(w);
7643
7643
  }
7644
- function f(A) {
7645
- return t.containerState = {}, e.attempt(ka, p, I)(A);
7644
+ function f(w) {
7645
+ return t.containerState = {}, e.attempt(ka, p, y)(w);
7646
7646
  }
7647
- function p(A) {
7648
- return r++, n.push([t.currentConstruct, t.containerState]), f(A);
7647
+ function p(w) {
7648
+ return r++, n.push([t.currentConstruct, t.containerState]), f(w);
7649
7649
  }
7650
- function I(A) {
7651
- if (A === null) {
7652
- i && w(), b(0), e.consume(A);
7650
+ function y(w) {
7651
+ if (w === null) {
7652
+ i && A(), v(0), e.consume(w);
7653
7653
  return;
7654
7654
  }
7655
7655
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
7656
7656
  _tokenizer: i,
7657
7657
  contentType: "flow",
7658
7658
  previous: o
7659
- }), g(A);
7659
+ }), g(w);
7660
7660
  }
7661
- function g(A) {
7662
- if (A === null) {
7663
- v(e.exit("chunkFlow"), !0), b(0), e.consume(A);
7661
+ function g(w) {
7662
+ if (w === null) {
7663
+ I(e.exit("chunkFlow"), !0), v(0), e.consume(w);
7664
7664
  return;
7665
7665
  }
7666
- return q(A) ? (e.consume(A), v(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(A), g);
7666
+ return q(w) ? (e.consume(w), I(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(w), g);
7667
7667
  }
7668
- function v(A, E) {
7669
- const P = t.sliceStream(A);
7670
- if (E && P.push(null), A.previous = o, o && (o.next = A), o = A, i.defineSkip(A.start), i.write(P), t.parser.lazy[A.start.line]) {
7671
- let S = i.events.length;
7672
- for (; S--; )
7668
+ function I(w, S) {
7669
+ const P = t.sliceStream(w);
7670
+ if (S && P.push(null), w.previous = o, o && (o.next = w), o = w, i.defineSkip(w.start), i.write(P), t.parser.lazy[w.start.line]) {
7671
+ let E = i.events.length;
7672
+ for (; E--; )
7673
7673
  if (
7674
7674
  // The token starts before the line ending…
7675
- i.events[S][1].start.offset < a && // …and either is not ended yet…
7676
- (!i.events[S][1].end || // …or ends after it.
7677
- i.events[S][1].end.offset > a)
7675
+ i.events[E][1].start.offset < a && // …and either is not ended yet…
7676
+ (!i.events[E][1].end || // …or ends after it.
7677
+ i.events[E][1].end.offset > a)
7678
7678
  )
7679
7679
  return;
7680
7680
  const k = t.events.length;
@@ -7687,22 +7687,22 @@ function ng(e) {
7687
7687
  }
7688
7688
  T = !0;
7689
7689
  }
7690
- for (b(r), S = k; S < t.events.length; )
7691
- t.events[S][1].end = {
7690
+ for (v(r), E = k; E < t.events.length; )
7691
+ t.events[E][1].end = {
7692
7692
  ...H
7693
- }, S++;
7694
- mt(t.events, R + 1, 0, t.events.slice(k)), t.events.length = S;
7693
+ }, E++;
7694
+ mt(t.events, R + 1, 0, t.events.slice(k)), t.events.length = E;
7695
7695
  }
7696
7696
  }
7697
- function b(A) {
7698
- let E = n.length;
7699
- for (; E-- > A; ) {
7700
- const P = n[E];
7697
+ function v(w) {
7698
+ let S = n.length;
7699
+ for (; S-- > w; ) {
7700
+ const P = n[S];
7701
7701
  t.containerState = P[1], P[0].exit.call(t, e);
7702
7702
  }
7703
- n.length = A;
7703
+ n.length = w;
7704
7704
  }
7705
- function w() {
7705
+ function A() {
7706
7706
  i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
7707
7707
  }
7708
7708
  }
@@ -7834,8 +7834,8 @@ function sg(e, t, n) {
7834
7834
  }
7835
7835
  function f(p) {
7836
7836
  if ((p === 45 || Ye(p)) && r++ < 63) {
7837
- const I = p === 45 ? f : d;
7838
- return e.consume(p), I;
7837
+ const y = p === 45 ? f : d;
7838
+ return e.consume(p), y;
7839
7839
  }
7840
7840
  return n(p);
7841
7841
  }
@@ -7943,67 +7943,67 @@ function hg(e, t, n) {
7943
7943
  };
7944
7944
  let o = 0, a = 0, s;
7945
7945
  return u;
7946
- function u(S) {
7947
- return l(S);
7946
+ function u(E) {
7947
+ return l(E);
7948
7948
  }
7949
- function l(S) {
7949
+ function l(E) {
7950
7950
  const k = r.events[r.events.length - 1];
7951
- return o = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = S, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(S);
7951
+ return o = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = E, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(E);
7952
7952
  }
7953
- function c(S) {
7954
- return S === s ? (a++, e.consume(S), c) : a < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), he(S) ? ye(e, d, "whitespace")(S) : d(S));
7953
+ function c(E) {
7954
+ return E === s ? (a++, e.consume(E), c) : a < 3 ? n(E) : (e.exit("codeFencedFenceSequence"), he(E) ? ye(e, d, "whitespace")(E) : d(E));
7955
7955
  }
7956
- function d(S) {
7957
- return S === null || q(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Ta, g, E)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
7956
+ function d(E) {
7957
+ return E === null || q(E) ? (e.exit("codeFencedFence"), r.interrupt ? t(E) : e.check(Ta, g, S)(E)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
7958
7958
  contentType: "string"
7959
- }), f(S));
7959
+ }), f(E));
7960
7960
  }
7961
- function f(S) {
7962
- return S === null || q(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(S)) : he(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ye(e, p, "whitespace")(S)) : S === 96 && S === s ? n(S) : (e.consume(S), f);
7961
+ function f(E) {
7962
+ return E === null || q(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(E)) : he(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ye(e, p, "whitespace")(E)) : E === 96 && E === s ? n(E) : (e.consume(E), f);
7963
7963
  }
7964
- function p(S) {
7965
- return S === null || q(S) ? d(S) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
7964
+ function p(E) {
7965
+ return E === null || q(E) ? d(E) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
7966
7966
  contentType: "string"
7967
- }), I(S));
7967
+ }), y(E));
7968
7968
  }
7969
- function I(S) {
7970
- return S === null || q(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(S)) : S === 96 && S === s ? n(S) : (e.consume(S), I);
7969
+ function y(E) {
7970
+ return E === null || q(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(E)) : E === 96 && E === s ? n(E) : (e.consume(E), y);
7971
7971
  }
7972
- function g(S) {
7973
- return e.attempt(i, E, v)(S);
7972
+ function g(E) {
7973
+ return e.attempt(i, S, I)(E);
7974
7974
  }
7975
- function v(S) {
7976
- return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), b;
7975
+ function I(E) {
7976
+ return e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), v;
7977
7977
  }
7978
- function b(S) {
7979
- return o > 0 && he(S) ? ye(e, w, "linePrefix", o + 1)(S) : w(S);
7978
+ function v(E) {
7979
+ return o > 0 && he(E) ? ye(e, A, "linePrefix", o + 1)(E) : A(E);
7980
7980
  }
7981
- function w(S) {
7982
- return S === null || q(S) ? e.check(Ta, g, E)(S) : (e.enter("codeFlowValue"), A(S));
7981
+ function A(E) {
7982
+ return E === null || q(E) ? e.check(Ta, g, S)(E) : (e.enter("codeFlowValue"), w(E));
7983
7983
  }
7984
- function A(S) {
7985
- return S === null || q(S) ? (e.exit("codeFlowValue"), w(S)) : (e.consume(S), A);
7984
+ function w(E) {
7985
+ return E === null || q(E) ? (e.exit("codeFlowValue"), A(E)) : (e.consume(E), w);
7986
7986
  }
7987
- function E(S) {
7988
- return e.exit("codeFenced"), t(S);
7987
+ function S(E) {
7988
+ return e.exit("codeFenced"), t(E);
7989
7989
  }
7990
- function P(S, k, R) {
7990
+ function P(E, k, R) {
7991
7991
  let T = 0;
7992
7992
  return H;
7993
7993
  function H(M) {
7994
- return S.enter("lineEnding"), S.consume(M), S.exit("lineEnding"), N;
7994
+ return E.enter("lineEnding"), E.consume(M), E.exit("lineEnding"), N;
7995
7995
  }
7996
7996
  function N(M) {
7997
- return S.enter("codeFencedFence"), he(M) ? ye(S, O, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(M) : O(M);
7997
+ return E.enter("codeFencedFence"), he(M) ? ye(E, O, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(M) : O(M);
7998
7998
  }
7999
7999
  function O(M) {
8000
- return M === s ? (S.enter("codeFencedFenceSequence"), K(M)) : R(M);
8000
+ return M === s ? (E.enter("codeFencedFenceSequence"), K(M)) : R(M);
8001
8001
  }
8002
8002
  function K(M) {
8003
- return M === s ? (T++, S.consume(M), K) : T >= a ? (S.exit("codeFencedFenceSequence"), he(M) ? ye(S, ie, "whitespace")(M) : ie(M)) : R(M);
8003
+ return M === s ? (T++, E.consume(M), K) : T >= a ? (E.exit("codeFencedFenceSequence"), he(M) ? ye(E, ie, "whitespace")(M) : ie(M)) : R(M);
8004
8004
  }
8005
8005
  function ie(M) {
8006
- return M === null || q(M) ? (S.exit("codeFencedFence"), k(M)) : R(M);
8006
+ return M === null || q(M) ? (E.exit("codeFencedFence"), k(M)) : R(M);
8007
8007
  }
8008
8008
  }
8009
8009
  }
@@ -8294,8 +8294,8 @@ function Sg(e, t) {
8294
8294
  const n = e.get(t)[1], r = e.get(t)[2];
8295
8295
  let i = t - 1;
8296
8296
  const o = [], a = n._tokenizer || r.parser[n.contentType](n.start), s = a.events, u = [], l = {};
8297
- let c, d, f = -1, p = n, I = 0, g = 0;
8298
- const v = [g];
8297
+ let c, d, f = -1, p = n, y = 0, g = 0;
8298
+ const I = [g];
8299
8299
  for (; p; ) {
8300
8300
  for (; e.get(++i)[1] !== p; )
8301
8301
  ;
@@ -8303,13 +8303,13 @@ function Sg(e, t) {
8303
8303
  }
8304
8304
  for (p = n; ++f < s.length; )
8305
8305
  // Find a void token that includes a break.
8306
- s[f][0] === "exit" && s[f - 1][0] === "enter" && s[f][1].type === s[f - 1][1].type && s[f][1].start.line !== s[f][1].end.line && (g = f + 1, v.push(g), p._tokenizer = void 0, p.previous = void 0, p = p.next);
8307
- for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : v.pop(), f = v.length; f--; ) {
8308
- const b = s.slice(v[f], v[f + 1]), w = o.pop();
8309
- u.push([w, w + b.length - 1]), e.splice(w, 2, b);
8306
+ s[f][0] === "exit" && s[f - 1][0] === "enter" && s[f][1].type === s[f - 1][1].type && s[f][1].start.line !== s[f][1].end.line && (g = f + 1, I.push(g), p._tokenizer = void 0, p.previous = void 0, p = p.next);
8307
+ for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : I.pop(), f = I.length; f--; ) {
8308
+ const v = s.slice(I[f], I[f + 1]), A = o.pop();
8309
+ u.push([A, A + v.length - 1]), e.splice(A, 2, v);
8310
8310
  }
8311
8311
  for (u.reverse(), f = -1; ++f < u.length; )
8312
- l[I + u[f][0]] = I + u[f][1], I += u[f][1] - u[f][0] - 1;
8312
+ l[y + u[f][0]] = y + u[f][1], y += u[f][1] - u[f][0] - 1;
8313
8313
  return l;
8314
8314
  }
8315
8315
  const wg = {
@@ -8360,27 +8360,27 @@ function Ou(e, t, n, r, i, o, a, s, u) {
8360
8360
  const l = u || Number.POSITIVE_INFINITY;
8361
8361
  let c = 0;
8362
8362
  return d;
8363
- function d(b) {
8364
- return b === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(b), e.exit(o), f) : b === null || b === 32 || b === 41 || Ji(b) ? n(b) : (e.enter(r), e.enter(a), e.enter(s), e.enter("chunkString", {
8363
+ function d(v) {
8364
+ return v === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(v), e.exit(o), f) : v === null || v === 32 || v === 41 || Ji(v) ? n(v) : (e.enter(r), e.enter(a), e.enter(s), e.enter("chunkString", {
8365
8365
  contentType: "string"
8366
- }), g(b));
8366
+ }), g(v));
8367
8367
  }
8368
- function f(b) {
8369
- return b === 62 ? (e.enter(o), e.consume(b), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
8368
+ function f(v) {
8369
+ return v === 62 ? (e.enter(o), e.consume(v), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
8370
8370
  contentType: "string"
8371
- }), p(b));
8371
+ }), p(v));
8372
8372
  }
8373
- function p(b) {
8374
- return b === 62 ? (e.exit("chunkString"), e.exit(s), f(b)) : b === null || b === 60 || q(b) ? n(b) : (e.consume(b), b === 92 ? I : p);
8373
+ function p(v) {
8374
+ return v === 62 ? (e.exit("chunkString"), e.exit(s), f(v)) : v === null || v === 60 || q(v) ? n(v) : (e.consume(v), v === 92 ? y : p);
8375
8375
  }
8376
- function I(b) {
8377
- return b === 60 || b === 62 || b === 92 ? (e.consume(b), p) : p(b);
8376
+ function y(v) {
8377
+ return v === 60 || v === 62 || v === 92 ? (e.consume(v), p) : p(v);
8378
8378
  }
8379
- function g(b) {
8380
- return !c && (b === null || b === 41 || He(b)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(b)) : c < l && b === 40 ? (e.consume(b), c++, g) : b === 41 ? (e.consume(b), c--, g) : b === null || b === 32 || b === 40 || Ji(b) ? n(b) : (e.consume(b), b === 92 ? v : g);
8379
+ function g(v) {
8380
+ return !c && (v === null || v === 41 || He(v)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(v)) : c < l && v === 40 ? (e.consume(v), c++, g) : v === 41 ? (e.consume(v), c--, g) : v === null || v === 32 || v === 40 || Ji(v) ? n(v) : (e.consume(v), v === 92 ? I : g);
8381
8381
  }
8382
- function v(b) {
8383
- return b === 40 || b === 41 || b === 92 ? (e.consume(b), g) : g(b);
8382
+ function I(v) {
8383
+ return v === 40 || v === 41 || v === 92 ? (e.consume(v), g) : g(v);
8384
8384
  }
8385
8385
  }
8386
8386
  function Tu(e, t, n, r, i, o) {
@@ -8650,45 +8650,45 @@ function Zg(e, t, n) {
8650
8650
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(m), d;
8651
8651
  }
8652
8652
  function d(m) {
8653
- return m === 33 ? (e.consume(m), f) : m === 47 ? (e.consume(m), o = !0, g) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? t : y) : ht(m) ? (e.consume(m), a = String.fromCharCode(m), v) : n(m);
8653
+ return m === 33 ? (e.consume(m), f) : m === 47 ? (e.consume(m), o = !0, g) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? t : b) : ht(m) ? (e.consume(m), a = String.fromCharCode(m), I) : n(m);
8654
8654
  }
8655
8655
  function f(m) {
8656
- return m === 45 ? (e.consume(m), i = 2, p) : m === 91 ? (e.consume(m), i = 5, s = 0, I) : ht(m) ? (e.consume(m), i = 4, r.interrupt ? t : y) : n(m);
8656
+ return m === 45 ? (e.consume(m), i = 2, p) : m === 91 ? (e.consume(m), i = 5, s = 0, y) : ht(m) ? (e.consume(m), i = 4, r.interrupt ? t : b) : n(m);
8657
8657
  }
8658
8658
  function p(m) {
8659
- return m === 45 ? (e.consume(m), r.interrupt ? t : y) : n(m);
8659
+ return m === 45 ? (e.consume(m), r.interrupt ? t : b) : n(m);
8660
8660
  }
8661
- function I(m) {
8661
+ function y(m) {
8662
8662
  const fe = "CDATA[";
8663
- return m === fe.charCodeAt(s++) ? (e.consume(m), s === fe.length ? r.interrupt ? t : O : I) : n(m);
8663
+ return m === fe.charCodeAt(s++) ? (e.consume(m), s === fe.length ? r.interrupt ? t : O : y) : n(m);
8664
8664
  }
8665
8665
  function g(m) {
8666
- return ht(m) ? (e.consume(m), a = String.fromCharCode(m), v) : n(m);
8666
+ return ht(m) ? (e.consume(m), a = String.fromCharCode(m), I) : n(m);
8667
8667
  }
8668
- function v(m) {
8668
+ function I(m) {
8669
8669
  if (m === null || m === 47 || m === 62 || He(m)) {
8670
8670
  const fe = m === 47, ee = a.toLowerCase();
8671
- return !fe && !o && Da.includes(ee) ? (i = 1, r.interrupt ? t(m) : O(m)) : Lg.includes(a.toLowerCase()) ? (i = 6, fe ? (e.consume(m), b) : r.interrupt ? t(m) : O(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : o ? w(m) : A(m));
8671
+ return !fe && !o && Da.includes(ee) ? (i = 1, r.interrupt ? t(m) : O(m)) : Lg.includes(a.toLowerCase()) ? (i = 6, fe ? (e.consume(m), v) : r.interrupt ? t(m) : O(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : o ? A(m) : w(m));
8672
8672
  }
8673
- return m === 45 || Ye(m) ? (e.consume(m), a += String.fromCharCode(m), v) : n(m);
8673
+ return m === 45 || Ye(m) ? (e.consume(m), a += String.fromCharCode(m), I) : n(m);
8674
8674
  }
8675
- function b(m) {
8675
+ function v(m) {
8676
8676
  return m === 62 ? (e.consume(m), r.interrupt ? t : O) : n(m);
8677
8677
  }
8678
- function w(m) {
8679
- return he(m) ? (e.consume(m), w) : H(m);
8680
- }
8681
8678
  function A(m) {
8682
- return m === 47 ? (e.consume(m), H) : m === 58 || m === 95 || ht(m) ? (e.consume(m), E) : he(m) ? (e.consume(m), A) : H(m);
8679
+ return he(m) ? (e.consume(m), A) : H(m);
8683
8680
  }
8684
- function E(m) {
8685
- return m === 45 || m === 46 || m === 58 || m === 95 || Ye(m) ? (e.consume(m), E) : P(m);
8681
+ function w(m) {
8682
+ return m === 47 ? (e.consume(m), H) : m === 58 || m === 95 || ht(m) ? (e.consume(m), S) : he(m) ? (e.consume(m), w) : H(m);
8683
+ }
8684
+ function S(m) {
8685
+ return m === 45 || m === 46 || m === 58 || m === 95 || Ye(m) ? (e.consume(m), S) : P(m);
8686
8686
  }
8687
8687
  function P(m) {
8688
- return m === 61 ? (e.consume(m), S) : he(m) ? (e.consume(m), P) : A(m);
8688
+ return m === 61 ? (e.consume(m), E) : he(m) ? (e.consume(m), P) : w(m);
8689
8689
  }
8690
- function S(m) {
8691
- return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), u = m, k) : he(m) ? (e.consume(m), S) : R(m);
8690
+ function E(m) {
8691
+ return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), u = m, k) : he(m) ? (e.consume(m), E) : R(m);
8692
8692
  }
8693
8693
  function k(m) {
8694
8694
  return m === u ? (e.consume(m), u = null, T) : m === null || q(m) ? n(m) : (e.consume(m), k);
@@ -8697,7 +8697,7 @@ function Zg(e, t, n) {
8697
8697
  return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || He(m) ? P(m) : (e.consume(m), R);
8698
8698
  }
8699
8699
  function T(m) {
8700
- return m === 47 || m === 62 || he(m) ? A(m) : n(m);
8700
+ return m === 47 || m === 62 || he(m) ? w(m) : n(m);
8701
8701
  }
8702
8702
  function H(m) {
8703
8703
  return m === 62 ? (e.consume(m), N) : n(m);
@@ -8706,7 +8706,7 @@ function Zg(e, t, n) {
8706
8706
  return m === null || q(m) ? O(m) : he(m) ? (e.consume(m), N) : n(m);
8707
8707
  }
8708
8708
  function O(m) {
8709
- return m === 45 && i === 2 ? (e.consume(m), Y) : m === 60 && i === 1 ? (e.consume(m), _) : m === 62 && i === 4 ? (e.consume(m), ve) : m === 63 && i === 3 ? (e.consume(m), y) : m === 93 && i === 5 ? (e.consume(m), me) : q(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(zg, se, K)(m)) : m === null || q(m) ? (e.exit("htmlFlowData"), K(m)) : (e.consume(m), O);
8709
+ return m === 45 && i === 2 ? (e.consume(m), Y) : m === 60 && i === 1 ? (e.consume(m), _) : m === 62 && i === 4 ? (e.consume(m), ve) : m === 63 && i === 3 ? (e.consume(m), b) : m === 93 && i === 5 ? (e.consume(m), me) : q(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(zg, se, K)(m)) : m === null || q(m) ? (e.exit("htmlFlowData"), K(m)) : (e.consume(m), O);
8710
8710
  }
8711
8711
  function K(m) {
8712
8712
  return e.check(Hg, ie, se)(m);
@@ -8718,7 +8718,7 @@ function Zg(e, t, n) {
8718
8718
  return m === null || q(m) ? K(m) : (e.enter("htmlFlowData"), O(m));
8719
8719
  }
8720
8720
  function Y(m) {
8721
- return m === 45 ? (e.consume(m), y) : O(m);
8721
+ return m === 45 ? (e.consume(m), b) : O(m);
8722
8722
  }
8723
8723
  function _(m) {
8724
8724
  return m === 47 ? (e.consume(m), a = "", ue) : O(m);
@@ -8731,10 +8731,10 @@ function Zg(e, t, n) {
8731
8731
  return ht(m) && a.length < 8 ? (e.consume(m), a += String.fromCharCode(m), ue) : O(m);
8732
8732
  }
8733
8733
  function me(m) {
8734
- return m === 93 ? (e.consume(m), y) : O(m);
8734
+ return m === 93 ? (e.consume(m), b) : O(m);
8735
8735
  }
8736
- function y(m) {
8737
- return m === 62 ? (e.consume(m), ve) : m === 45 && i === 2 ? (e.consume(m), y) : O(m);
8736
+ function b(m) {
8737
+ return m === 62 ? (e.consume(m), ve) : m === 45 && i === 2 ? (e.consume(m), b) : O(m);
8738
8738
  }
8739
8739
  function ve(m) {
8740
8740
  return m === null || q(m) ? (e.exit("htmlFlowData"), se(m)) : (e.consume(m), ve);
@@ -8767,93 +8767,93 @@ function _g(e, t, n) {
8767
8767
  const r = this;
8768
8768
  let i, o, a;
8769
8769
  return s;
8770
- function s(y) {
8771
- return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(y), u;
8770
+ function s(b) {
8771
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(b), u;
8772
8772
  }
8773
- function u(y) {
8774
- return y === 33 ? (e.consume(y), l) : y === 47 ? (e.consume(y), P) : y === 63 ? (e.consume(y), A) : ht(y) ? (e.consume(y), R) : n(y);
8773
+ function u(b) {
8774
+ return b === 33 ? (e.consume(b), l) : b === 47 ? (e.consume(b), P) : b === 63 ? (e.consume(b), w) : ht(b) ? (e.consume(b), R) : n(b);
8775
8775
  }
8776
- function l(y) {
8777
- return y === 45 ? (e.consume(y), c) : y === 91 ? (e.consume(y), o = 0, I) : ht(y) ? (e.consume(y), w) : n(y);
8776
+ function l(b) {
8777
+ return b === 45 ? (e.consume(b), c) : b === 91 ? (e.consume(b), o = 0, y) : ht(b) ? (e.consume(b), A) : n(b);
8778
8778
  }
8779
- function c(y) {
8780
- return y === 45 ? (e.consume(y), p) : n(y);
8779
+ function c(b) {
8780
+ return b === 45 ? (e.consume(b), p) : n(b);
8781
8781
  }
8782
- function d(y) {
8783
- return y === null ? n(y) : y === 45 ? (e.consume(y), f) : q(y) ? (a = d, _(y)) : (e.consume(y), d);
8782
+ function d(b) {
8783
+ return b === null ? n(b) : b === 45 ? (e.consume(b), f) : q(b) ? (a = d, _(b)) : (e.consume(b), d);
8784
8784
  }
8785
- function f(y) {
8786
- return y === 45 ? (e.consume(y), p) : d(y);
8785
+ function f(b) {
8786
+ return b === 45 ? (e.consume(b), p) : d(b);
8787
8787
  }
8788
- function p(y) {
8789
- return y === 62 ? Y(y) : y === 45 ? f(y) : d(y);
8788
+ function p(b) {
8789
+ return b === 62 ? Y(b) : b === 45 ? f(b) : d(b);
8790
8790
  }
8791
- function I(y) {
8791
+ function y(b) {
8792
8792
  const ve = "CDATA[";
8793
- return y === ve.charCodeAt(o++) ? (e.consume(y), o === ve.length ? g : I) : n(y);
8793
+ return b === ve.charCodeAt(o++) ? (e.consume(b), o === ve.length ? g : y) : n(b);
8794
8794
  }
8795
- function g(y) {
8796
- return y === null ? n(y) : y === 93 ? (e.consume(y), v) : q(y) ? (a = g, _(y)) : (e.consume(y), g);
8795
+ function g(b) {
8796
+ return b === null ? n(b) : b === 93 ? (e.consume(b), I) : q(b) ? (a = g, _(b)) : (e.consume(b), g);
8797
8797
  }
8798
- function v(y) {
8799
- return y === 93 ? (e.consume(y), b) : g(y);
8798
+ function I(b) {
8799
+ return b === 93 ? (e.consume(b), v) : g(b);
8800
8800
  }
8801
- function b(y) {
8802
- return y === 62 ? Y(y) : y === 93 ? (e.consume(y), b) : g(y);
8801
+ function v(b) {
8802
+ return b === 62 ? Y(b) : b === 93 ? (e.consume(b), v) : g(b);
8803
8803
  }
8804
- function w(y) {
8805
- return y === null || y === 62 ? Y(y) : q(y) ? (a = w, _(y)) : (e.consume(y), w);
8804
+ function A(b) {
8805
+ return b === null || b === 62 ? Y(b) : q(b) ? (a = A, _(b)) : (e.consume(b), A);
8806
8806
  }
8807
- function A(y) {
8808
- return y === null ? n(y) : y === 63 ? (e.consume(y), E) : q(y) ? (a = A, _(y)) : (e.consume(y), A);
8807
+ function w(b) {
8808
+ return b === null ? n(b) : b === 63 ? (e.consume(b), S) : q(b) ? (a = w, _(b)) : (e.consume(b), w);
8809
8809
  }
8810
- function E(y) {
8811
- return y === 62 ? Y(y) : A(y);
8810
+ function S(b) {
8811
+ return b === 62 ? Y(b) : w(b);
8812
8812
  }
8813
- function P(y) {
8814
- return ht(y) ? (e.consume(y), S) : n(y);
8813
+ function P(b) {
8814
+ return ht(b) ? (e.consume(b), E) : n(b);
8815
8815
  }
8816
- function S(y) {
8817
- return y === 45 || Ye(y) ? (e.consume(y), S) : k(y);
8816
+ function E(b) {
8817
+ return b === 45 || Ye(b) ? (e.consume(b), E) : k(b);
8818
8818
  }
8819
- function k(y) {
8820
- return q(y) ? (a = k, _(y)) : he(y) ? (e.consume(y), k) : Y(y);
8819
+ function k(b) {
8820
+ return q(b) ? (a = k, _(b)) : he(b) ? (e.consume(b), k) : Y(b);
8821
8821
  }
8822
- function R(y) {
8823
- return y === 45 || Ye(y) ? (e.consume(y), R) : y === 47 || y === 62 || He(y) ? T(y) : n(y);
8822
+ function R(b) {
8823
+ return b === 45 || Ye(b) ? (e.consume(b), R) : b === 47 || b === 62 || He(b) ? T(b) : n(b);
8824
8824
  }
8825
- function T(y) {
8826
- return y === 47 ? (e.consume(y), Y) : y === 58 || y === 95 || ht(y) ? (e.consume(y), H) : q(y) ? (a = T, _(y)) : he(y) ? (e.consume(y), T) : Y(y);
8825
+ function T(b) {
8826
+ return b === 47 ? (e.consume(b), Y) : b === 58 || b === 95 || ht(b) ? (e.consume(b), H) : q(b) ? (a = T, _(b)) : he(b) ? (e.consume(b), T) : Y(b);
8827
8827
  }
8828
- function H(y) {
8829
- return y === 45 || y === 46 || y === 58 || y === 95 || Ye(y) ? (e.consume(y), H) : N(y);
8828
+ function H(b) {
8829
+ return b === 45 || b === 46 || b === 58 || b === 95 || Ye(b) ? (e.consume(b), H) : N(b);
8830
8830
  }
8831
- function N(y) {
8832
- return y === 61 ? (e.consume(y), O) : q(y) ? (a = N, _(y)) : he(y) ? (e.consume(y), N) : T(y);
8831
+ function N(b) {
8832
+ return b === 61 ? (e.consume(b), O) : q(b) ? (a = N, _(b)) : he(b) ? (e.consume(b), N) : T(b);
8833
8833
  }
8834
- function O(y) {
8835
- return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), i = y, K) : q(y) ? (a = O, _(y)) : he(y) ? (e.consume(y), O) : (e.consume(y), ie);
8834
+ function O(b) {
8835
+ return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), i = b, K) : q(b) ? (a = O, _(b)) : he(b) ? (e.consume(b), O) : (e.consume(b), ie);
8836
8836
  }
8837
- function K(y) {
8838
- return y === i ? (e.consume(y), i = void 0, M) : y === null ? n(y) : q(y) ? (a = K, _(y)) : (e.consume(y), K);
8837
+ function K(b) {
8838
+ return b === i ? (e.consume(b), i = void 0, M) : b === null ? n(b) : q(b) ? (a = K, _(b)) : (e.consume(b), K);
8839
8839
  }
8840
- function ie(y) {
8841
- return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || He(y) ? T(y) : (e.consume(y), ie);
8840
+ function ie(b) {
8841
+ return b === null || b === 34 || b === 39 || b === 60 || b === 61 || b === 96 ? n(b) : b === 47 || b === 62 || He(b) ? T(b) : (e.consume(b), ie);
8842
8842
  }
8843
- function M(y) {
8844
- return y === 47 || y === 62 || He(y) ? T(y) : n(y);
8843
+ function M(b) {
8844
+ return b === 47 || b === 62 || He(b) ? T(b) : n(b);
8845
8845
  }
8846
- function Y(y) {
8847
- return y === 62 ? (e.consume(y), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(y);
8846
+ function Y(b) {
8847
+ return b === 62 ? (e.consume(b), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(b);
8848
8848
  }
8849
- function _(y) {
8850
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), ue;
8849
+ function _(b) {
8850
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), ue;
8851
8851
  }
8852
- function ue(y) {
8853
- return he(y) ? ye(e, me, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : me(y);
8852
+ function ue(b) {
8853
+ return he(b) ? ye(e, me, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : me(b);
8854
8854
  }
8855
- function me(y) {
8856
- return e.enter("htmlTextData"), a(y);
8855
+ function me(b) {
8856
+ return e.enter("htmlTextData"), a(b);
8857
8857
  }
8858
8858
  }
8859
8859
  const vo = {
@@ -9079,11 +9079,11 @@ function pm(e, t, n) {
9079
9079
  let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, a = 0;
9080
9080
  return s;
9081
9081
  function s(p) {
9082
- const I = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
9083
- if (I === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : Yi(p)) {
9084
- if (r.containerState.type || (r.containerState.type = I, e.enter(I, {
9082
+ const y = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
9083
+ if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : Yi(p)) {
9084
+ if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
9085
9085
  _container: !0
9086
- })), I === "listUnordered")
9086
+ })), y === "listUnordered")
9087
9087
  return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(Ar, n, l)(p) : l(p);
9088
9088
  if (!r.interrupt || p === 49)
9089
9089
  return e.enter("listItemPrefix"), e.enter("listItemValue"), u(p);
@@ -9388,11 +9388,11 @@ function Vm(e, t, n) {
9388
9388
  let a = [], s = [];
9389
9389
  const u = {
9390
9390
  attempt: k(P),
9391
- check: k(S),
9392
- consume: w,
9393
- enter: A,
9394
- exit: E,
9395
- interrupt: k(S, {
9391
+ check: k(E),
9392
+ consume: A,
9393
+ enter: w,
9394
+ exit: S,
9395
+ interrupt: k(E, {
9396
9396
  interrupt: !0
9397
9397
  })
9398
9398
  }, l = {
@@ -9400,7 +9400,7 @@ function Vm(e, t, n) {
9400
9400
  containerState: {},
9401
9401
  defineSkip: g,
9402
9402
  events: [],
9403
- now: I,
9403
+ now: y,
9404
9404
  parser: e,
9405
9405
  previous: null,
9406
9406
  sliceSerialize: f,
@@ -9410,7 +9410,7 @@ function Vm(e, t, n) {
9410
9410
  let c = t.tokenize.call(l, u);
9411
9411
  return t.resolveAll && o.push(t), l;
9412
9412
  function d(N) {
9413
- return a = Ke(a, N), v(), a[a.length - 1] !== null ? [] : (R(t, 0), l.events = Io(o, l.events, l), l.events);
9413
+ return a = Ke(a, N), I(), a[a.length - 1] !== null ? [] : (R(t, 0), l.events = Io(o, l.events, l), l.events);
9414
9414
  }
9415
9415
  function f(N, O) {
9416
9416
  return Nm(p(N), O);
@@ -9418,7 +9418,7 @@ function Vm(e, t, n) {
9418
9418
  function p(N) {
9419
9419
  return Dm(a, N);
9420
9420
  }
9421
- function I() {
9421
+ function y() {
9422
9422
  const {
9423
9423
  _bufferIndex: N,
9424
9424
  _index: O,
@@ -9437,44 +9437,44 @@ function Vm(e, t, n) {
9437
9437
  function g(N) {
9438
9438
  i[N.line] = N.column, H();
9439
9439
  }
9440
- function v() {
9440
+ function I() {
9441
9441
  let N;
9442
9442
  for (; r._index < a.length; ) {
9443
9443
  const O = a[r._index];
9444
9444
  if (typeof O == "string")
9445
9445
  for (N = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === N && r._bufferIndex < O.length; )
9446
- b(O.charCodeAt(r._bufferIndex));
9446
+ v(O.charCodeAt(r._bufferIndex));
9447
9447
  else
9448
- b(O);
9448
+ v(O);
9449
9449
  }
9450
9450
  }
9451
- function b(N) {
9451
+ function v(N) {
9452
9452
  c = c(N);
9453
9453
  }
9454
- function w(N) {
9454
+ function A(N) {
9455
9455
  q(N) ? (r.line++, r.column = 1, r.offset += N === -3 ? 2 : 1, H()) : N !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
9456
9456
  // strings.
9457
9457
  /** @type {string} */
9458
9458
  a[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = N;
9459
9459
  }
9460
- function A(N, O) {
9460
+ function w(N, O) {
9461
9461
  const K = O || {};
9462
- return K.type = N, K.start = I(), l.events.push(["enter", K, l]), s.push(K), K;
9462
+ return K.type = N, K.start = y(), l.events.push(["enter", K, l]), s.push(K), K;
9463
9463
  }
9464
- function E(N) {
9464
+ function S(N) {
9465
9465
  const O = s.pop();
9466
- return O.end = I(), l.events.push(["exit", O, l]), O;
9466
+ return O.end = y(), l.events.push(["exit", O, l]), O;
9467
9467
  }
9468
9468
  function P(N, O) {
9469
9469
  R(N, O.from);
9470
9470
  }
9471
- function S(N, O) {
9471
+ function E(N, O) {
9472
9472
  O.restore();
9473
9473
  }
9474
9474
  function k(N, O) {
9475
9475
  return K;
9476
9476
  function K(ie, M, Y) {
9477
- let _, ue, me, y;
9477
+ let _, ue, me, b;
9478
9478
  return Array.isArray(ie) ? (
9479
9479
  /* c8 ignore next 1 */
9480
9480
  se(ie)
@@ -9503,7 +9503,7 @@ function Vm(e, t, n) {
9503
9503
  function m(de) {
9504
9504
  return Fe;
9505
9505
  function Fe(D) {
9506
- return y = T(), me = de, de.partial || (l.currentConstruct = de), de.name && l.parser.constructs.disable.null.includes(de.name) ? ee() : de.tokenize.call(
9506
+ return b = T(), me = de, de.partial || (l.currentConstruct = de), de.name && l.parser.constructs.disable.null.includes(de.name) ? ee() : de.tokenize.call(
9507
9507
  // If we do have fields, create an object w/ `context` as its
9508
9508
  // prototype.
9509
9509
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -9515,10 +9515,10 @@ function Vm(e, t, n) {
9515
9515
  }
9516
9516
  }
9517
9517
  function fe(de) {
9518
- return N(me, y), M;
9518
+ return N(me, b), M;
9519
9519
  }
9520
9520
  function ee(de) {
9521
- return y.restore(), ++ue < _.length ? m(_[ue]) : Y;
9521
+ return b.restore(), ++ue < _.length ? m(_[ue]) : Y;
9522
9522
  }
9523
9523
  }
9524
9524
  }
@@ -9526,7 +9526,7 @@ function Vm(e, t, n) {
9526
9526
  N.resolveAll && !o.includes(N) && o.push(N), N.resolve && mt(l.events, O, l.events.length - O, N.resolve(l.events.slice(O), l)), N.resolveTo && (l.events = N.resolveTo(l.events, l));
9527
9527
  }
9528
9528
  function T() {
9529
- const N = I(), O = l.previous, K = l.currentConstruct, ie = l.events.length, M = Array.from(s);
9529
+ const N = y(), O = l.previous, K = l.currentConstruct, ie = l.events.length, M = Array.from(s);
9530
9530
  return {
9531
9531
  from: ie,
9532
9532
  restore: Y
@@ -9732,19 +9732,19 @@ function jm(e) {
9732
9732
  characterReferenceMarkerNumeric: ee,
9733
9733
  characterReferenceValue: de,
9734
9734
  characterReference: Fe,
9735
- codeFenced: u(v),
9735
+ codeFenced: u(I),
9736
9736
  codeFencedFence: g,
9737
9737
  codeFencedFenceInfo: p,
9738
- codeFencedFenceMeta: I,
9738
+ codeFencedFenceMeta: y,
9739
9739
  codeFlowValue: H,
9740
- codeIndented: u(b),
9740
+ codeIndented: u(v),
9741
9741
  codeText: u(M),
9742
9742
  codeTextData: H,
9743
9743
  data: H,
9744
9744
  definition: u(),
9745
- definitionDestinationString: E,
9746
- definitionLabelString: w,
9747
- definitionTitleString: A,
9745
+ definitionDestinationString: S,
9746
+ definitionLabelString: A,
9747
+ definitionTitleString: w,
9748
9748
  emphasis: u(),
9749
9749
  hardBreakEscape: u(O),
9750
9750
  hardBreakTrailing: u(O),
@@ -9762,12 +9762,12 @@ function jm(e) {
9762
9762
  listUnordered: u(),
9763
9763
  paragraph: u(),
9764
9764
  referenceString: fe,
9765
- resourceDestinationString: y,
9765
+ resourceDestinationString: b,
9766
9766
  resourceTitleString: ve,
9767
9767
  resource: se,
9768
9768
  setextHeading: u(R),
9769
9769
  setextHeadingLineSequence: k,
9770
- setextHeadingText: S,
9770
+ setextHeadingText: E,
9771
9771
  strong: u(),
9772
9772
  thematicBreak: u()
9773
9773
  }
@@ -9925,30 +9925,30 @@ function jm(e) {
9925
9925
  const F = this.resume(), V = this.stack[this.stack.length - 1];
9926
9926
  V.lang = F;
9927
9927
  }
9928
- function I() {
9928
+ function y() {
9929
9929
  const F = this.resume(), V = this.stack[this.stack.length - 1];
9930
9930
  V.meta = F;
9931
9931
  }
9932
9932
  function g() {
9933
9933
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
9934
9934
  }
9935
- function v() {
9935
+ function I() {
9936
9936
  const F = this.resume(), V = this.stack[this.stack.length - 1];
9937
9937
  V.value = F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
9938
9938
  }
9939
- function b() {
9939
+ function v() {
9940
9940
  const F = this.resume(), V = this.stack[this.stack.length - 1];
9941
9941
  V.value = F.replace(/(\r?\n|\r)$/g, "");
9942
9942
  }
9943
- function w(F) {
9943
+ function A(F) {
9944
9944
  const V = this.resume(), Q = this.stack[this.stack.length - 1];
9945
9945
  Q.label = V, Q.identifier = hn(this.sliceSerialize(F)).toLowerCase();
9946
9946
  }
9947
- function A() {
9947
+ function w() {
9948
9948
  const F = this.resume(), V = this.stack[this.stack.length - 1];
9949
9949
  V.title = F;
9950
9950
  }
9951
- function E() {
9951
+ function S() {
9952
9952
  const F = this.resume(), V = this.stack[this.stack.length - 1];
9953
9953
  V.url = F;
9954
9954
  }
@@ -9959,7 +9959,7 @@ function jm(e) {
9959
9959
  V.depth = Q;
9960
9960
  }
9961
9961
  }
9962
- function S() {
9962
+ function E() {
9963
9963
  this.data.setextHeadingSlurpLineEnding = !0;
9964
9964
  }
9965
9965
  function k(F) {
@@ -10036,7 +10036,7 @@ function jm(e) {
10036
10036
  } else
10037
10037
  Q.alt = V;
10038
10038
  }
10039
- function y() {
10039
+ function b() {
10040
10040
  const F = this.resume(), V = this.stack[this.stack.length - 1];
10041
10041
  V.url = F;
10042
10042
  }
@@ -10511,8 +10511,8 @@ function hb(e, t, n) {
10511
10511
  for (; ++u < s; ) {
10512
10512
  const d = t.children[u], f = {}, p = a ? a[u] : void 0;
10513
10513
  p && (f.align = p);
10514
- let I = { type: "element", tagName: o, properties: f, children: [] };
10515
- d && (I.children = e.all(d), e.patch(d, I), I = e.applyData(d, I)), l.push(I);
10514
+ let y = { type: "element", tagName: o, properties: f, children: [] };
10515
+ d && (y.children = e.all(d), e.patch(d, y), y = e.applyData(d, y)), l.push(y);
10516
10516
  }
10517
10517
  const c = {
10518
10518
  type: "element",
@@ -10780,11 +10780,11 @@ function Eb(e) {
10780
10780
  continue;
10781
10781
  const c = e.all(l), d = String(l.identifier).toUpperCase(), f = Rn(d.toLowerCase());
10782
10782
  let p = 0;
10783
- const I = [], g = e.footnoteCounts.get(d);
10783
+ const y = [], g = e.footnoteCounts.get(d);
10784
10784
  for (; g !== void 0 && ++p <= g; ) {
10785
- I.length > 0 && I.push({ type: "text", value: " " });
10786
- let w = typeof n == "string" ? n : n(u, p);
10787
- typeof w == "string" && (w = { type: "text", value: w }), I.push({
10785
+ y.length > 0 && y.push({ type: "text", value: " " });
10786
+ let A = typeof n == "string" ? n : n(u, p);
10787
+ typeof A == "string" && (A = { type: "text", value: A }), y.push({
10788
10788
  type: "element",
10789
10789
  tagName: "a",
10790
10790
  properties: {
@@ -10793,22 +10793,22 @@ function Eb(e) {
10793
10793
  ariaLabel: typeof r == "string" ? r : r(u, p),
10794
10794
  className: ["data-footnote-backref"]
10795
10795
  },
10796
- children: Array.isArray(w) ? w : [w]
10796
+ children: Array.isArray(A) ? A : [A]
10797
10797
  });
10798
10798
  }
10799
- const v = c[c.length - 1];
10800
- if (v && v.type === "element" && v.tagName === "p") {
10801
- const w = v.children[v.children.length - 1];
10802
- w && w.type === "text" ? w.value += " " : v.children.push({ type: "text", value: " " }), v.children.push(...I);
10799
+ const I = c[c.length - 1];
10800
+ if (I && I.type === "element" && I.tagName === "p") {
10801
+ const A = I.children[I.children.length - 1];
10802
+ A && A.type === "text" ? A.value += " " : I.children.push({ type: "text", value: " " }), I.children.push(...y);
10803
10803
  } else
10804
- c.push(...I);
10805
- const b = {
10804
+ c.push(...y);
10805
+ const v = {
10806
10806
  type: "element",
10807
10807
  tagName: "li",
10808
10808
  properties: { id: t + "fn-" + f },
10809
10809
  children: e.wrap(c, !0)
10810
10810
  };
10811
- e.patch(l, b), s.push(b);
10811
+ e.patch(l, v), s.push(v);
10812
10812
  }
10813
10813
  if (s.length !== 0)
10814
10814
  return {
@@ -10944,20 +10944,20 @@ function Tb(e, t, n, r) {
10944
10944
  }
10945
10945
  return f;
10946
10946
  function f() {
10947
- let p = Ju, I, g, v;
10947
+ let p = Ju, y, g, I;
10948
10948
  if ((!t || o(u, l, c[c.length - 1] || void 0)) && (p = Vb(n(u, c)), p[0] === Ja))
10949
10949
  return p;
10950
10950
  if ("children" in u && u.children) {
10951
- const b = (
10951
+ const v = (
10952
10952
  /** @type {UnistParent} */
10953
10953
  u
10954
10954
  );
10955
- if (b.children && p[0] !== Ob)
10956
- for (g = (r ? b.children.length : -1) + a, v = c.concat(b); g > -1 && g < b.children.length; ) {
10957
- const w = b.children[g];
10958
- if (I = s(w, g, v)(), I[0] === Ja)
10959
- return I;
10960
- g = typeof I[1] == "number" ? I[1] : g + a;
10955
+ if (v.children && p[0] !== Ob)
10956
+ for (g = (r ? v.children.length : -1) + a, I = c.concat(v); g > -1 && g < v.children.length; ) {
10957
+ const A = v.children[g];
10958
+ if (y = s(A, g, I)(), y[0] === Ja)
10959
+ return y;
10960
+ g = typeof y[1] == "number" ? y[1] : g + a;
10961
10961
  }
10962
10962
  }
10963
10963
  return p;
@@ -11002,8 +11002,8 @@ function Nb(e, t) {
11002
11002
  return p(s, c, d);
11003
11003
  if (s.options.passThrough && s.options.passThrough.includes(f)) {
11004
11004
  if ("children" in c) {
11005
- const { children: g, ...v } = c, b = Mr(v);
11006
- return b.children = s.all(c), b;
11005
+ const { children: g, ...I } = c, v = Mr(I);
11006
+ return v.children = s.all(c), v;
11007
11007
  }
11008
11008
  return Mr(c);
11009
11009
  }
@@ -11015,13 +11015,13 @@ function Nb(e, t) {
11015
11015
  const f = c.children;
11016
11016
  let p = -1;
11017
11017
  for (; ++p < f.length; ) {
11018
- const I = s.one(f[p], c);
11019
- if (I) {
11020
- if (p && f[p - 1].type === "break" && (!Array.isArray(I) && I.type === "text" && (I.value = Ya(I.value)), !Array.isArray(I) && I.type === "element")) {
11021
- const g = I.children[0];
11018
+ const y = s.one(f[p], c);
11019
+ if (y) {
11020
+ if (p && f[p - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = Ya(y.value)), !Array.isArray(y) && y.type === "element")) {
11021
+ const g = y.children[0];
11022
11022
  g && g.type === "text" && (g.value = Ya(g.value));
11023
11023
  }
11024
- Array.isArray(I) ? d.push(...I) : d.push(I);
11024
+ Array.isArray(y) ? d.push(...y) : d.push(y);
11025
11025
  }
11026
11026
  }
11027
11027
  }
@@ -11968,8 +11968,8 @@ class wo extends ry {
11968
11968
  /** @type {CompileTree extends undefined ? Node : CompileTree} */
11969
11969
  /** @type {unknown} */
11970
11970
  d
11971
- ), I = r.stringify(p, f);
11972
- sy(I) ? f.value = I : f.result = I, l(
11971
+ ), y = r.stringify(p, f);
11972
+ sy(y) ? f.value = y : f.result = y, l(
11973
11973
  c,
11974
11974
  /** @type {VFileWithOutput<CompileResult>} */
11975
11975
  f
@@ -12238,9 +12238,9 @@ class wo extends ry {
12238
12238
  if (f === -1)
12239
12239
  r.push([l, ...c]);
12240
12240
  else if (c.length > 0) {
12241
- let [p, ...I] = c;
12241
+ let [p, ...y] = c;
12242
12242
  const g = r[f][1];
12243
- Qi(g) && Qi(p) && (p = hi(!0, g, p)), r[f] = [l, p, ...I];
12243
+ Qi(g) && Qi(p) && (p = hi(!0, g, p)), r[f] = [l, p, ...y];
12244
12244
  }
12245
12245
  }
12246
12246
  }
@@ -12316,22 +12316,22 @@ const ly = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
12316
12316
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
12317
12317
  ];
12318
12318
  function py(e) {
12319
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, a = e.disallowedElements, s = e.rehypePlugins || os, u = e.remarkPlugins || os, l = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...as } : as, c = e.skipHtml, d = e.unwrapDisallowed, f = e.urlTransform || fy, p = oy().use(Ym).use(u).use(Hb, l).use(s), I = new Uu();
12320
- typeof r == "string" && (I.value = r);
12321
- for (const w of dy)
12322
- Object.hasOwn(e, w.from) && ("" + w.from + (w.to ? "use `" + w.to + "` instead" : "remove it") + ly + w.id, void 0);
12323
- const g = p.parse(I);
12324
- let v = p.runSync(g, I);
12325
- return i && (v = {
12319
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, a = e.disallowedElements, s = e.rehypePlugins || os, u = e.remarkPlugins || os, l = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...as } : as, c = e.skipHtml, d = e.unwrapDisallowed, f = e.urlTransform || fy, p = oy().use(Ym).use(u).use(Hb, l).use(s), y = new Uu();
12320
+ typeof r == "string" && (y.value = r);
12321
+ for (const A of dy)
12322
+ Object.hasOwn(e, A.from) && ("" + A.from + (A.to ? "use `" + A.to + "` instead" : "remove it") + ly + A.id, void 0);
12323
+ const g = p.parse(y);
12324
+ let I = p.runSync(g, y);
12325
+ return i && (I = {
12326
12326
  type: "element",
12327
12327
  tagName: "div",
12328
12328
  properties: { className: i },
12329
12329
  // Assume no doctypes.
12330
12330
  children: (
12331
12331
  /** @type {Array<ElementContent>} */
12332
- v.type === "root" ? v.children : [v]
12332
+ I.type === "root" ? I.children : [I]
12333
12333
  )
12334
- }), Yu(v, b), wh(v, {
12334
+ }), Yu(I, v), wh(I, {
12335
12335
  Fragment: _l,
12336
12336
  components: o,
12337
12337
  ignoreInvalidStyle: !0,
@@ -12340,21 +12340,21 @@ function py(e) {
12340
12340
  passKeys: !0,
12341
12341
  passNode: !0
12342
12342
  });
12343
- function b(w, A, E) {
12344
- if (w.type === "raw" && E && typeof A == "number")
12345
- return c ? E.children.splice(A, 1) : E.children[A] = { type: "text", value: w.value }, A;
12346
- if (w.type === "element") {
12343
+ function v(A, w, S) {
12344
+ if (A.type === "raw" && S && typeof w == "number")
12345
+ return c ? S.children.splice(w, 1) : S.children[w] = { type: "text", value: A.value }, w;
12346
+ if (A.type === "element") {
12347
12347
  let P;
12348
12348
  for (P in di)
12349
- if (Object.hasOwn(di, P) && Object.hasOwn(w.properties, P)) {
12350
- const S = w.properties[P], k = di[P];
12351
- (k === null || k.includes(w.tagName)) && (w.properties[P] = f(String(S || ""), P, w));
12349
+ if (Object.hasOwn(di, P) && Object.hasOwn(A.properties, P)) {
12350
+ const E = A.properties[P], k = di[P];
12351
+ (k === null || k.includes(A.tagName)) && (A.properties[P] = f(String(E || ""), P, A));
12352
12352
  }
12353
12353
  }
12354
- if (w.type === "element") {
12355
- let P = t ? !t.includes(w.tagName) : a ? a.includes(w.tagName) : !1;
12356
- if (!P && n && typeof A == "number" && (P = !n(w, A, E)), P && E && typeof A == "number")
12357
- return d && w.children ? E.children.splice(A, 1, ...w.children) : E.children.splice(A, 1), A;
12354
+ if (A.type === "element") {
12355
+ let P = t ? !t.includes(A.tagName) : a ? a.includes(A.tagName) : !1;
12356
+ if (!P && n && typeof w == "number" && (P = !n(A, w, S)), P && S && typeof w == "number")
12357
+ return d && A.children ? S.children.splice(w, 1, ...A.children) : S.children.splice(w, 1), w;
12358
12358
  }
12359
12359
  }
12360
12360
  }
@@ -12528,13 +12528,13 @@ function _e() {
12528
12528
  var f;
12529
12529
  const c = `${(e == null ? void 0 : e.classNamePrefix) ?? "pd-"}${u.toLowerCase()}`, d = (f = e.classNames) == null ? void 0 : f[u];
12530
12530
  if (typeof d == "function") {
12531
- const p = d, I = {
12531
+ const p = d, y = {
12532
12532
  ...l ?? {},
12533
12533
  theme: r
12534
12534
  };
12535
12535
  return [
12536
12536
  c,
12537
- p(I)
12537
+ p(y)
12538
12538
  ].filter(Boolean).join(" ");
12539
12539
  }
12540
12540
  return [
@@ -12552,11 +12552,11 @@ function _e() {
12552
12552
  var f;
12553
12553
  const d = (f = e.styles) == null ? void 0 : f[u];
12554
12554
  if (typeof d == "function") {
12555
- const p = d, I = {
12555
+ const p = d, y = {
12556
12556
  ...c ?? {},
12557
12557
  theme: r
12558
12558
  };
12559
- return p(l, I);
12559
+ return p(l, y);
12560
12560
  }
12561
12561
  return d ? {
12562
12562
  ...l,
@@ -12627,21 +12627,21 @@ function xy({ app: e }) {
12627
12627
  Option: Cy
12628
12628
  },
12629
12629
  styles: {
12630
- control: (E) => ({
12631
- ...E,
12630
+ control: (S) => ({
12631
+ ...S,
12632
12632
  gridArea: "control",
12633
12633
  boxShadow: l.boxShadow.input
12634
12634
  })
12635
12635
  }
12636
- }, p = u.getProps("controlAppSelect", f), I = void 0, {
12636
+ }, p = u.getProps("controlAppSelect", f), y = void 0, {
12637
12637
  isLoading: g,
12638
12638
  // TODO error
12639
- accounts: v,
12640
- refetch: b
12639
+ accounts: I,
12640
+ refetch: v
12641
12641
  } = vy(
12642
12642
  {
12643
12643
  app: e.name_slug,
12644
- oauth_app_id: I
12644
+ oauth_app_id: y
12645
12645
  },
12646
12646
  {
12647
12647
  useQueryOpts: {
@@ -12649,42 +12649,42 @@ function xy({ app: e }) {
12649
12649
  suspense: !!e
12650
12650
  }
12651
12651
  }
12652
- ), w = async () => {
12652
+ ), A = async () => {
12653
12653
  t.connectAccount({
12654
12654
  app: i.app,
12655
- oauthAppId: I,
12656
- onSuccess: async (E) => {
12657
- await b(), a({
12658
- authProvisionId: E.id
12655
+ oauthAppId: y,
12656
+ onSuccess: async (S) => {
12657
+ await v(), a({
12658
+ authProvisionId: S.id
12659
12659
  });
12660
12660
  },
12661
12661
  onError: () => {
12662
12662
  }
12663
12663
  });
12664
- }, A = ft(() => {
12665
- let E = o;
12666
- if (E != null) {
12667
- for (const P of v)
12668
- if (E.authProvisionId === P.id) {
12669
- E = P;
12664
+ }, w = ft(() => {
12665
+ let S = o;
12666
+ if (S != null) {
12667
+ for (const P of I)
12668
+ if (S.authProvisionId === P.id) {
12669
+ S = P;
12670
12670
  break;
12671
12671
  }
12672
12672
  }
12673
- return E;
12673
+ return S;
12674
12674
  }, [
12675
- v,
12675
+ I,
12676
12676
  o
12677
12677
  ]);
12678
12678
  return /* @__PURE__ */ W("div", { ...s("controlApp", c, {
12679
12679
  app: e,
12680
12680
  ...n
12681
- }), children: g ? `Loading ${e.name} accounts...` : v.length ? /* @__PURE__ */ W(
12681
+ }), children: g ? `Loading ${e.name} accounts...` : I.length ? /* @__PURE__ */ W(
12682
12682
  zr,
12683
12683
  {
12684
12684
  instanceId: r,
12685
- value: A,
12685
+ value: w,
12686
12686
  options: [
12687
- ...v,
12687
+ ...I,
12688
12688
  {
12689
12689
  id: "_new",
12690
12690
  name: `Connect new ${e.name} account...`
@@ -12696,18 +12696,18 @@ function xy({ app: e }) {
12696
12696
  isLoading: g,
12697
12697
  isClearable: !0,
12698
12698
  isSearchable: !0,
12699
- getOptionLabel: (E) => E.name,
12700
- getOptionValue: (E) => E.id,
12701
- onChange: (E) => {
12702
- E ? E.id === "_new" ? w() : a({
12703
- authProvisionId: E.id
12699
+ getOptionLabel: (S) => S.name,
12700
+ getOptionValue: (S) => S.id,
12701
+ onChange: (S) => {
12702
+ S ? S.id === "_new" ? A() : a({
12703
+ authProvisionId: S.id
12704
12704
  }) : a(void 0);
12705
12705
  }
12706
12706
  }
12707
12707
  ) : /* @__PURE__ */ gt("button", { type: "button", ...s("connectButton", d, {
12708
12708
  app: e,
12709
12709
  ...n
12710
- }), onClick: () => w(), children: [
12710
+ }), onClick: () => A(), children: [
12711
12711
  "Connect ",
12712
12712
  e.name
12713
12713
  ] }) });
@@ -12796,31 +12796,31 @@ var wy = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
12796
12796
  }
12797
12797
  };
12798
12798
  function Ey(e) {
12799
- var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, i = r === void 0 ? "last" : r, o = e.formatCreateLabel, a = o === void 0 ? Ci.formatCreateLabel : o, s = e.isValidNewOption, u = s === void 0 ? Ci.isValidNewOption : s, l = e.getNewOptionData, c = l === void 0 ? Ci.getNewOptionData : l, d = e.onCreateOption, f = e.options, p = f === void 0 ? [] : f, I = e.onChange, g = bt(e, wy), v = g.getOptionValue, b = v === void 0 ? iu : v, w = g.getOptionLabel, A = w === void 0 ? ru : w, E = g.inputValue, P = g.isLoading, S = g.isMulti, k = g.value, R = g.name, T = ft(function() {
12800
- return u(E, Or(k), p, {
12801
- getOptionValue: b,
12802
- getOptionLabel: A
12803
- }) ? c(E, a(E)) : void 0;
12804
- }, [a, c, A, b, E, u, p, k]), H = ft(function() {
12799
+ var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, i = r === void 0 ? "last" : r, o = e.formatCreateLabel, a = o === void 0 ? Ci.formatCreateLabel : o, s = e.isValidNewOption, u = s === void 0 ? Ci.isValidNewOption : s, l = e.getNewOptionData, c = l === void 0 ? Ci.getNewOptionData : l, d = e.onCreateOption, f = e.options, p = f === void 0 ? [] : f, y = e.onChange, g = bt(e, wy), I = g.getOptionValue, v = I === void 0 ? iu : I, A = g.getOptionLabel, w = A === void 0 ? ru : A, S = g.inputValue, P = g.isLoading, E = g.isMulti, k = g.value, R = g.name, T = ft(function() {
12800
+ return u(S, Or(k), p, {
12801
+ getOptionValue: v,
12802
+ getOptionLabel: w
12803
+ }) ? c(S, a(S)) : void 0;
12804
+ }, [a, c, w, v, S, u, p, k]), H = ft(function() {
12805
12805
  return (n || !P) && T ? i === "first" ? [T].concat(pn(p)) : [].concat(pn(p), [T]) : p;
12806
12806
  }, [n, i, P, T, p]), N = Ve(function(O, K) {
12807
12807
  if (K.action !== "select-option")
12808
- return I(O, K);
12808
+ return y(O, K);
12809
12809
  var ie = Array.isArray(O) ? O : [O];
12810
12810
  if (ie[ie.length - 1] === T) {
12811
- if (d) d(E);
12811
+ if (d) d(S);
12812
12812
  else {
12813
- var M = c(E, E), Y = {
12813
+ var M = c(S, S), Y = {
12814
12814
  action: "create-option",
12815
12815
  name: R,
12816
12816
  option: M
12817
12817
  };
12818
- I(zn(S, [].concat(pn(Or(k)), [M]), M), Y);
12818
+ y(zn(E, [].concat(pn(Or(k)), [M]), M), Y);
12819
12819
  }
12820
12820
  return;
12821
12821
  }
12822
- I(O, K);
12823
- }, [c, E, S, R, T, d, I, k]);
12822
+ y(O, K);
12823
+ }, [c, S, E, R, T, d, y, k]);
12824
12824
  return Z(Z({}, g), {}, {
12825
12825
  options: H,
12826
12826
  onChange: N
@@ -12849,51 +12849,58 @@ function $i({
12849
12849
  theme: d
12850
12850
  } = _e(), f = {
12851
12851
  styles: {
12852
- container: (b) => ({
12853
- ...b,
12852
+ container: (A) => ({
12853
+ ...A,
12854
12854
  gridArea: "control",
12855
12855
  boxShadow: d.boxShadow.input
12856
12856
  })
12857
12857
  }
12858
12858
  }, p = ft(() => {
12859
- let b = u;
12860
- if (b != null)
12861
- if (Array.isArray(b)) {
12862
- if (typeof b[0] != "object") {
12859
+ let A = u;
12860
+ if (A != null)
12861
+ if (Array.isArray(A)) {
12862
+ if (typeof A[0] != "object") {
12863
12863
  const w = [];
12864
- for (const A of b)
12864
+ for (const S of A)
12865
12865
  w.push({
12866
- label: A,
12867
- value: A
12866
+ label: S,
12867
+ value: S
12868
12868
  });
12869
- b = w;
12869
+ A = w;
12870
12870
  }
12871
- } else if (typeof b != "object") {
12871
+ } else if (typeof A != "object") {
12872
12872
  if ((t == null ? void 0 : t[0]) && typeof t[0] == "object") {
12873
- for (const A of t)
12874
- if (A.value === u) {
12875
- b = A;
12873
+ for (const S of t)
12874
+ if (S.value === u) {
12875
+ A = S;
12876
12876
  break;
12877
12877
  }
12878
12878
  }
12879
- } else b.__lv && (b = b.__lv);
12880
- return b;
12879
+ } else A.__lv && (A = A.__lv);
12880
+ return A;
12881
12881
  }, [
12882
12882
  u,
12883
12883
  t
12884
- ]), I = ({
12884
+ ]), y = ({
12885
12885
  // eslint-disable-next-line react/prop-types
12886
- children: b,
12886
+ children: A,
12887
12887
  ...w
12888
12888
  }) => /* @__PURE__ */ gt(er.MenuList, { ...w, children: [
12889
- b,
12889
+ A,
12890
12890
  /* @__PURE__ */ W("div", { className: "pt-4", children: /* @__PURE__ */ W(Qu, { onChange: i }) })
12891
12891
  ] }), g = c.getProps("controlSelect", f);
12892
- return r && (g.components = {
12892
+ r && (g.components = {
12893
12893
  // eslint-disable-next-line react/prop-types
12894
12894
  ...g.components,
12895
- MenuList: I
12896
- }), /* @__PURE__ */ W(
12895
+ MenuList: y
12896
+ });
12897
+ const I = (A) => {
12898
+ t.unshift({
12899
+ label: A,
12900
+ value: A
12901
+ });
12902
+ };
12903
+ return /* @__PURE__ */ W(
12897
12904
  e ? Py : zr,
12898
12905
  {
12899
12906
  inputId: a,
@@ -12905,20 +12912,21 @@ function $i({
12905
12912
  required: !s.optional,
12906
12913
  ...g,
12907
12914
  ...n,
12908
- onChange: (b) => {
12909
- if (b)
12910
- if (Array.isArray(b))
12911
- if (typeof b[0] == "object" && "value" in b[0]) {
12915
+ onCreateOption: I,
12916
+ onChange: (A) => {
12917
+ if (A)
12918
+ if (Array.isArray(A))
12919
+ if (typeof A[0] == "object" && "value" in A[0]) {
12912
12920
  const w = [];
12913
- for (const A of b)
12914
- s.withLabel ? w.push(A) : w.push(A.value);
12921
+ for (const S of A)
12922
+ s.withLabel ? w.push(S) : w.push(S.value);
12915
12923
  l(w);
12916
12924
  } else
12917
- l(b);
12918
- else if (typeof b == "object" && "value" in b)
12925
+ l(A);
12926
+ else if (typeof A == "object" && "value" in A)
12919
12927
  s.withLabel ? l({
12920
- __lv: b
12921
- }) : l(b.value);
12928
+ __lv: A
12929
+ }) : l(A.value);
12922
12930
  else
12923
12931
  throw new Error("unhandled option type");
12924
12932
  else
@@ -12945,44 +12953,44 @@ function Gy({ queryEnabled: e }) {
12945
12953
  f,
12946
12954
  p
12947
12955
  ] = Ce(0), [
12948
- I,
12956
+ y,
12949
12957
  g
12950
12958
  ] = Ce(!0), [
12951
- v,
12952
- b
12959
+ I,
12960
+ v
12953
12961
  ] = Ce(void 0), [
12954
- w,
12955
- A
12962
+ A,
12963
+ w
12956
12964
  ] = Ce({
12957
12965
  page: 0,
12958
12966
  prevContext: {},
12959
12967
  data: [],
12960
12968
  values: /* @__PURE__ */ new Set()
12961
- }), E = {};
12969
+ }), S = {};
12962
12970
  for (let M = 0; M < u; M++) {
12963
12971
  const Y = i[M];
12964
- E[Y.name] = o[Y.name];
12972
+ S[Y.name] = o[Y.name];
12965
12973
  }
12966
12974
  const P = {
12967
12975
  userId: n,
12968
12976
  page: f,
12969
- prevContext: v,
12977
+ prevContext: I,
12970
12978
  componentId: r.key,
12971
12979
  propName: l.name,
12972
- configuredProps: E,
12980
+ configuredProps: S,
12973
12981
  dynamicPropsId: a == null ? void 0 : a.id
12974
12982
  };
12975
12983
  l.useQuery && (P.query = c || "");
12976
- const S = {
12984
+ const E = {
12977
12985
  ...P
12978
12986
  };
12979
- delete S.dynamicPropsId;
12987
+ delete E.dynamicPropsId;
12980
12988
  const [
12981
12989
  k,
12982
12990
  R
12983
12991
  ] = Ce(), T = () => {
12984
- p(w.page), b(w.prevContext), A({
12985
- ...w,
12992
+ p(A.page), v(A.prevContext), w({
12993
+ ...A,
12986
12994
  prevContext: {}
12987
12995
  });
12988
12996
  }, {
@@ -12991,7 +12999,7 @@ function Gy({ queryEnabled: e }) {
12991
12999
  } = rn({
12992
13000
  queryKey: [
12993
13001
  "componentConfigure",
12994
- S
13002
+ E
12995
13003
  ],
12996
13004
  queryFn: async () => {
12997
13005
  R(void 0);
@@ -13021,16 +13029,16 @@ function Gy({ queryEnabled: e }) {
13021
13029
  });
13022
13030
  me = m;
13023
13031
  }
13024
- const y = [], ve = new Set(w.values);
13032
+ const b = [], ve = new Set(A.values);
13025
13033
  for (const m of me || []) {
13026
13034
  const fe = typeof m == "string" ? m : m.value;
13027
- ve.has(fe) || (ve.add(fe), y.push(m));
13035
+ ve.has(fe) || (ve.add(fe), b.push(m));
13028
13036
  }
13029
- let se = w.data;
13030
- return y.length ? (se = [
13031
- ...w.data,
13032
- ...y
13033
- ], A({
13037
+ let se = A.data;
13038
+ return b.length ? (se = [
13039
+ ...A.data,
13040
+ ...b
13041
+ ], w({
13034
13042
  page: f + 1,
13035
13043
  prevContext: M.context,
13036
13044
  data: se,
@@ -13038,13 +13046,14 @@ function Gy({ queryEnabled: e }) {
13038
13046
  })) : g(!1), se;
13039
13047
  },
13040
13048
  enabled: !!e
13041
- }), O = () => !H && !k && I, K = k ? k.message : s ? "Click to configure" : e ? void 0 : "Configure props above first", ie = s ? !1 : !e;
13049
+ }), O = () => !H && !k && y, K = k ? k.message : s ? "Click to configure" : e ? void 0 : "Configure props above first", ie = s ? !1 : !e;
13042
13050
  return /* @__PURE__ */ W(
13043
13051
  $i,
13044
13052
  {
13053
+ isCreatable: !0,
13045
13054
  showLoadMoreButton: O(),
13046
13055
  onLoadMore: T,
13047
- options: w.data,
13056
+ options: A.data,
13048
13057
  selectProps: {
13049
13058
  isLoading: H,
13050
13059
  placeholder: K,
@@ -13233,7 +13242,7 @@ function Dy() {
13233
13242
  getComponents: c,
13234
13243
  getProps: d,
13235
13244
  theme: f
13236
- } = _e(), { OptionalFieldButton: p } = c(), I = {
13245
+ } = _e(), { OptionalFieldButton: p } = c(), y = {
13237
13246
  display: "flex",
13238
13247
  flexDirection: "column",
13239
13248
  gap: "1.5rem"
@@ -13241,15 +13250,15 @@ function Dy() {
13241
13250
  display: "flex",
13242
13251
  flexWrap: "wrap",
13243
13252
  gap: "0.375rem"
13244
- }, v = {
13253
+ }, I = {
13245
13254
  fontWeight: 600,
13246
13255
  textTransform: "capitalize",
13247
13256
  color: f.colors.neutral60,
13248
13257
  fontSize: "0.875rem",
13249
13258
  lineHeight: "1.375",
13250
13259
  margin: "0 0 0.5rem 0"
13251
- }, b = async (E) => {
13252
- if (l && (E.preventDefault(), r)) {
13260
+ }, v = async (S) => {
13261
+ if (l && (S.preventDefault(), r)) {
13253
13262
  s(!0);
13254
13263
  try {
13255
13264
  await l(e);
@@ -13257,48 +13266,48 @@ function Dy() {
13257
13266
  s(!1);
13258
13267
  }
13259
13268
  }
13260
- }, w = [], A = [];
13261
- for (let E = 0; E < t.length; E++) {
13262
- const P = t[E];
13269
+ }, A = [], w = [];
13270
+ for (let S = 0; S < t.length; S++) {
13271
+ const P = t[S];
13263
13272
  if (!P.hidden && !Cr.includes(P.type)) {
13264
13273
  if (P.optional) {
13265
- const S = i(P);
13266
- if (A.push([
13274
+ const E = i(P);
13275
+ if (w.push([
13267
13276
  P,
13268
- S
13269
- ]), !S)
13277
+ E
13278
+ ]), !E)
13270
13279
  continue;
13271
13280
  }
13272
- w.push([
13281
+ A.push([
13273
13282
  P,
13274
- E
13283
+ S
13275
13284
  ]);
13276
13285
  }
13277
13286
  }
13278
- return /* @__PURE__ */ W(Ty, { fallback: (E) => /* @__PURE__ */ gt("p", { style: {
13287
+ return /* @__PURE__ */ W(Ty, { fallback: (S) => /* @__PURE__ */ gt("p", { style: {
13279
13288
  color: "red"
13280
13289
  }, children: [
13281
13290
  "Error: ",
13282
- E && typeof E == "object" && "message" in E && typeof E.message == "string" ? E.message : "Unknown"
13283
- ] }), children: /* @__PURE__ */ W(Ql, { fallback: /* @__PURE__ */ W("p", { children: "Loading form..." }), children: /* @__PURE__ */ gt("form", { ...d("componentForm", I, a), onSubmit: b, children: [
13284
- w.map(([
13285
- E,
13291
+ S && typeof S == "object" && "message" in S && typeof S.message == "string" ? S.message : "Unknown"
13292
+ ] }), children: /* @__PURE__ */ W(Ql, { fallback: /* @__PURE__ */ W("p", { children: "Loading form..." }), children: /* @__PURE__ */ gt("form", { ...d("componentForm", y, a), onSubmit: v, children: [
13293
+ A.map(([
13294
+ S,
13286
13295
  P
13287
- ]) => E.type === "alert" ? /* @__PURE__ */ W(Kl, { prop: E }, E.name) : /* @__PURE__ */ W(Oy, { prop: E, idx: P }, E.name)),
13296
+ ]) => S.type === "alert" ? /* @__PURE__ */ W(Kl, { prop: S }, S.name) : /* @__PURE__ */ W(Oy, { prop: S, idx: P }, S.name)),
13288
13297
  n && /* @__PURE__ */ W("p", { children: "Loading dynamic props..." }),
13289
- !u && A.length ? /* @__PURE__ */ gt("div", { children: [
13290
- /* @__PURE__ */ W("div", { ...d("heading", v, a), children: "Optional Props" }),
13291
- /* @__PURE__ */ W("div", { ...d("optionalFields", g, a), children: A.map(([
13292
- E,
13298
+ !u && w.length ? /* @__PURE__ */ gt("div", { children: [
13299
+ /* @__PURE__ */ W("div", { ...d("heading", I, a), children: "Optional Props" }),
13300
+ /* @__PURE__ */ W("div", { ...d("optionalFields", g, a), children: w.map(([
13301
+ S,
13293
13302
  P
13294
13303
  ]) => /* @__PURE__ */ W(
13295
13304
  p,
13296
13305
  {
13297
- prop: E,
13306
+ prop: S,
13298
13307
  enabled: P,
13299
- onClick: () => o(E, !P)
13308
+ onClick: () => o(S, !P)
13300
13309
  },
13301
- E.name
13310
+ S.name
13302
13311
  )) })
13303
13312
  ] }) : null,
13304
13313
  l && /* @__PURE__ */ W(Vy, { form: e })