@kestra-io/ui-libs 0.0.199 → 0.0.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { load as ji, dump as Ri } from "js-yaml";
2
- import { visit as m, isSeq as W, Document as H, parseDocument as I, isMap as w, isPair as ht, LineCounter as gt, Pair as $, Scalar as F, YAMLSeq as _t, YAMLMap as Oi } from "yaml";
1
+ import { load as Ri, dump as Oi } from "js-yaml";
2
+ import { visit as m, isSeq as W, Document as H, parseDocument as I, isMap as w, isPair as ht, LineCounter as gt, Pair as $, Scalar as F, YAMLMap as Fa, YAMLSeq as _t } from "yaml";
3
3
  var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function wi(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -14,7 +14,7 @@ function Pi() {
14
14
  return ge = e, ge;
15
15
  }
16
16
  var _e, kt;
17
- function Fa() {
17
+ function Ka() {
18
18
  if (kt) return _e;
19
19
  kt = 1;
20
20
  function e(r, t) {
@@ -26,7 +26,7 @@ var pe, Lt;
26
26
  function ce() {
27
27
  if (Lt) return pe;
28
28
  Lt = 1;
29
- var e = Fa();
29
+ var e = Ka();
30
30
  function r(t, n) {
31
31
  for (var a = t.length; a--; )
32
32
  if (e(t[a][0], n))
@@ -134,7 +134,7 @@ function Ki() {
134
134
  return Ce = e, Ce;
135
135
  }
136
136
  var je, Wt;
137
- function Ka() {
137
+ function Ga() {
138
138
  if (Wt) return je;
139
139
  Wt = 1;
140
140
  var e = typeof ue == "object" && ue && ue.Object === Object && ue;
@@ -144,7 +144,7 @@ var Re, zt;
144
144
  function P() {
145
145
  if (zt) return Re;
146
146
  zt = 1;
147
- var e = Ka(), r = typeof self == "object" && self && self.Object === Object && self, t = e || r || Function("return this")();
147
+ var e = Ga(), r = typeof self == "object" && self && self.Object === Object && self, t = e || r || Function("return this")();
148
148
  return Re = t, Re;
149
149
  }
150
150
  var Oe, Yt;
@@ -202,7 +202,7 @@ function te() {
202
202
  return De = e, De;
203
203
  }
204
204
  var Me, en;
205
- function Ga() {
205
+ function Ba() {
206
206
  if (en) return Me;
207
207
  en = 1;
208
208
  var e = le(), r = te(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
@@ -235,7 +235,7 @@ function Ui() {
235
235
  return ke = t, ke;
236
236
  }
237
237
  var Le, nn;
238
- function Ba() {
238
+ function Na() {
239
239
  if (nn) return Le;
240
240
  nn = 1;
241
241
  var e = Function.prototype, r = e.toString;
@@ -258,7 +258,7 @@ var Fe, an;
258
258
  function Vi() {
259
259
  if (an) return Fe;
260
260
  an = 1;
261
- var e = Ga(), r = Ui(), t = te(), n = Ba(), a = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, u = s.toString, c = o.hasOwnProperty, l = RegExp(
261
+ var e = Ba(), r = Ui(), t = te(), n = Na(), a = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, u = s.toString, c = o.hasOwnProperty, l = RegExp(
262
262
  "^" + u.call(c).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
263
263
  );
264
264
  function f(v) {
@@ -518,7 +518,7 @@ function us() {
518
518
  return sr = r, sr;
519
519
  }
520
520
  var or, Rn;
521
- function Na() {
521
+ function Ua() {
522
522
  if (Rn) return or;
523
523
  Rn = 1;
524
524
  var e = us();
@@ -533,10 +533,10 @@ function Na() {
533
533
  return or = r, or;
534
534
  }
535
535
  var ur, On;
536
- function Ua() {
536
+ function Va() {
537
537
  if (On) return ur;
538
538
  On = 1;
539
- var e = Na(), r = Fa(), t = Object.prototype, n = t.hasOwnProperty;
539
+ var e = Ua(), r = Ka(), t = Object.prototype, n = t.hasOwnProperty;
540
540
  function a(i, s, o) {
541
541
  var u = i[s];
542
542
  (!(n.call(i, s) && r(u, o)) || o === void 0 && !(s in i)) && e(i, s, o);
@@ -547,7 +547,7 @@ var cr, wn;
547
547
  function he() {
548
548
  if (wn) return cr;
549
549
  wn = 1;
550
- var e = Ua(), r = Na();
550
+ var e = Va(), r = Ua();
551
551
  function t(n, a, i, s) {
552
552
  var o = !i;
553
553
  i || (i = {});
@@ -618,7 +618,7 @@ function vs() {
618
618
  }
619
619
  Z.exports;
620
620
  var Ln;
621
- function Va() {
621
+ function Ha() {
622
622
  return Ln || (Ln = 1, function(e, r) {
623
623
  var t = P(), n = vs(), a = r && !r.nodeType && r, i = a && !0 && e && !e.nodeType && e, s = i && i.exports === a, o = s ? t.Buffer : void 0, u = o ? o.isBuffer : void 0, c = u || n;
624
624
  e.exports = c;
@@ -636,7 +636,7 @@ function ds() {
636
636
  return _r = t, _r;
637
637
  }
638
638
  var pr, Kn;
639
- function Ha() {
639
+ function $a() {
640
640
  if (Kn) return pr;
641
641
  Kn = 1;
642
642
  var e = 9007199254740991;
@@ -649,7 +649,7 @@ var yr, Gn;
649
649
  function hs() {
650
650
  if (Gn) return yr;
651
651
  Gn = 1;
652
- var e = le(), r = Ha(), t = ne(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", s = "[object Date]", o = "[object Error]", u = "[object Function]", c = "[object Map]", l = "[object Number]", f = "[object Object]", v = "[object RegExp]", d = "[object Set]", h = "[object String]", b = "[object WeakMap]", A = "[object ArrayBuffer]", R = "[object DataView]", p = "[object Float32Array]", q = "[object Float64Array]", O = "[object Int8Array]", C = "[object Int16Array]", M = "[object Int32Array]", z = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", j = "[object Uint16Array]", J = "[object Uint32Array]", g = {};
652
+ var e = le(), r = $a(), t = ne(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", s = "[object Date]", o = "[object Error]", u = "[object Function]", c = "[object Map]", l = "[object Number]", f = "[object Object]", v = "[object RegExp]", d = "[object Set]", h = "[object String]", b = "[object WeakMap]", A = "[object ArrayBuffer]", R = "[object DataView]", p = "[object Float32Array]", q = "[object Float64Array]", O = "[object Int8Array]", C = "[object Int16Array]", M = "[object Int32Array]", z = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", j = "[object Uint16Array]", J = "[object Uint32Array]", g = {};
653
653
  g[p] = g[q] = g[O] = g[C] = g[M] = g[z] = g[Y] = g[j] = g[J] = !0, g[n] = g[a] = g[A] = g[i] = g[R] = g[s] = g[o] = g[u] = g[c] = g[l] = g[f] = g[v] = g[d] = g[h] = g[b] = !1;
654
654
  function E(X) {
655
655
  return t(X) && r(X.length) && !!g[e(X)];
@@ -672,7 +672,7 @@ Q.exports;
672
672
  var Nn;
673
673
  function mt() {
674
674
  return Nn || (Nn = 1, function(e, r) {
675
- var t = Ka(), n = r && !r.nodeType && r, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, s = i && t.process, o = function() {
675
+ var t = Ga(), n = r && !r.nodeType && r, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, s = i && t.process, o = function() {
676
676
  try {
677
677
  var u = a && a.require && a.require("util").types;
678
678
  return u || s && s.binding && s.binding("util");
@@ -690,10 +690,10 @@ function gs() {
690
690
  return qr = a, qr;
691
691
  }
692
692
  var mr, Vn;
693
- function $a() {
693
+ function Wa() {
694
694
  if (Vn) return mr;
695
695
  Vn = 1;
696
- var e = cs(), r = ls(), t = bt(), n = Va(), a = ds(), i = gs(), s = Object.prototype, o = s.hasOwnProperty;
696
+ var e = cs(), r = ls(), t = bt(), n = Ha(), a = ds(), i = gs(), s = Object.prototype, o = s.hasOwnProperty;
697
697
  function u(c, l) {
698
698
  var f = t(c), v = !f && r(c), d = !f && !v && n(c), h = !f && !v && !d && i(c), b = f || v || d || h, A = b ? e(c.length, String) : [], R = A.length;
699
699
  for (var p in c)
@@ -718,7 +718,7 @@ function At() {
718
718
  return Ar = r, Ar;
719
719
  }
720
720
  var Sr, $n;
721
- function Wa() {
721
+ function za() {
722
722
  if ($n) return Sr;
723
723
  $n = 1;
724
724
  function e(r, t) {
@@ -732,7 +732,7 @@ var Ir, Wn;
732
732
  function _s() {
733
733
  if (Wn) return Ir;
734
734
  Wn = 1;
735
- var e = Wa(), r = e(Object.keys, Object);
735
+ var e = za(), r = e(Object.keys, Object);
736
736
  return Ir = r, Ir;
737
737
  }
738
738
  var Tr, zn;
@@ -751,10 +751,10 @@ function ps() {
751
751
  return Tr = a, Tr;
752
752
  }
753
753
  var Cr, Yn;
754
- function za() {
754
+ function Ya() {
755
755
  if (Yn) return Cr;
756
756
  Yn = 1;
757
- var e = Ga(), r = Ha();
757
+ var e = Ba(), r = $a();
758
758
  function t(n) {
759
759
  return n != null && r(n.length) && !e(n);
760
760
  }
@@ -764,7 +764,7 @@ var jr, Jn;
764
764
  function St() {
765
765
  if (Jn) return jr;
766
766
  Jn = 1;
767
- var e = $a(), r = ps(), t = za();
767
+ var e = Wa(), r = ps(), t = Ya();
768
768
  function n(a) {
769
769
  return t(a) ? e(a) : r(a);
770
770
  }
@@ -812,7 +812,7 @@ var Pr, ea;
812
812
  function It() {
813
813
  if (ea) return Pr;
814
814
  ea = 1;
815
- var e = $a(), r = qs(), t = za();
815
+ var e = Wa(), r = qs(), t = Ya();
816
816
  function n(a) {
817
817
  return t(a) ? e(a, !0) : r(a);
818
818
  }
@@ -869,7 +869,7 @@ function Is() {
869
869
  return Mr = e, Mr;
870
870
  }
871
871
  var Er, ia;
872
- function Ya() {
872
+ function Ja() {
873
873
  if (ia) return Er;
874
874
  ia = 1;
875
875
  function e() {
@@ -881,7 +881,7 @@ var kr, sa;
881
881
  function Tt() {
882
882
  if (sa) return kr;
883
883
  sa = 1;
884
- var e = Is(), r = Ya(), t = Object.prototype, n = t.propertyIsEnumerable, a = Object.getOwnPropertySymbols, i = a ? function(s) {
884
+ var e = Is(), r = Ja(), t = Object.prototype, n = t.propertyIsEnumerable, a = Object.getOwnPropertySymbols, i = a ? function(s) {
885
885
  return s == null ? [] : (s = Object(s), e(a(s), function(o) {
886
886
  return n.call(s, o);
887
887
  }));
@@ -899,7 +899,7 @@ function Ts() {
899
899
  return Lr = t, Lr;
900
900
  }
901
901
  var Fr, ua;
902
- function Ja() {
902
+ function Xa() {
903
903
  if (ua) return Fr;
904
904
  ua = 1;
905
905
  function e(r, t) {
@@ -910,17 +910,17 @@ function Ja() {
910
910
  return Fr = e, Fr;
911
911
  }
912
912
  var Kr, ca;
913
- function Xa() {
913
+ function Za() {
914
914
  if (ca) return Kr;
915
915
  ca = 1;
916
- var e = Wa(), r = e(Object.getPrototypeOf, Object);
916
+ var e = za(), r = e(Object.getPrototypeOf, Object);
917
917
  return Kr = r, Kr;
918
918
  }
919
919
  var Gr, fa;
920
- function Za() {
920
+ function Qa() {
921
921
  if (fa) return Gr;
922
922
  fa = 1;
923
- var e = Ja(), r = Xa(), t = Tt(), n = Ya(), a = Object.getOwnPropertySymbols, i = a ? function(s) {
923
+ var e = Xa(), r = Za(), t = Tt(), n = Ja(), a = Object.getOwnPropertySymbols, i = a ? function(s) {
924
924
  for (var o = []; s; )
925
925
  e(o, t(s)), s = r(s);
926
926
  return o;
@@ -931,17 +931,17 @@ var Br, la;
931
931
  function Cs() {
932
932
  if (la) return Br;
933
933
  la = 1;
934
- var e = he(), r = Za();
934
+ var e = he(), r = Qa();
935
935
  function t(n, a) {
936
936
  return e(n, r(n), a);
937
937
  }
938
938
  return Br = t, Br;
939
939
  }
940
940
  var Nr, va;
941
- function Qa() {
941
+ function ei() {
942
942
  if (va) return Nr;
943
943
  va = 1;
944
- var e = Ja(), r = bt();
944
+ var e = Xa(), r = bt();
945
945
  function t(n, a, i) {
946
946
  var s = a(n);
947
947
  return r(n) ? s : e(s, i(n));
@@ -952,7 +952,7 @@ var Ur, da;
952
952
  function js() {
953
953
  if (da) return Ur;
954
954
  da = 1;
955
- var e = Qa(), r = Tt(), t = St();
955
+ var e = ei(), r = Tt(), t = St();
956
956
  function n(a) {
957
957
  return e(a, t, r);
958
958
  }
@@ -962,7 +962,7 @@ var Vr, ha;
962
962
  function Rs() {
963
963
  if (ha) return Vr;
964
964
  ha = 1;
965
- var e = Qa(), r = Za(), t = It();
965
+ var e = ei(), r = Qa(), t = It();
966
966
  function n(a) {
967
967
  return e(a, t, r);
968
968
  }
@@ -1000,7 +1000,7 @@ var Yr, ba;
1000
1000
  function Ct() {
1001
1001
  if (ba) return Yr;
1002
1002
  ba = 1;
1003
- var e = Os(), r = yt(), t = ws(), n = Ps(), a = xs(), i = le(), s = Ba(), o = "[object Map]", u = "[object Object]", c = "[object Promise]", l = "[object Set]", f = "[object WeakMap]", v = "[object DataView]", d = s(e), h = s(r), b = s(t), A = s(n), R = s(a), p = i;
1003
+ var e = Os(), r = yt(), t = ws(), n = Ps(), a = xs(), i = le(), s = Na(), o = "[object Map]", u = "[object Object]", c = "[object Promise]", l = "[object Set]", f = "[object WeakMap]", v = "[object DataView]", d = s(e), h = s(r), b = s(t), A = s(n), R = s(a), p = i;
1004
1004
  return (e && p(new e(new ArrayBuffer(1))) != v || r && p(new r()) != o || t && p(t.resolve()) != c || n && p(new n()) != l || a && p(new a()) != f) && (p = function(q) {
1005
1005
  var O = i(q), C = O == u ? q.constructor : void 0, M = C ? s(C) : "";
1006
1006
  if (M)
@@ -1154,7 +1154,7 @@ var it, Oa;
1154
1154
  function Bs() {
1155
1155
  if (Oa) return it;
1156
1156
  Oa = 1;
1157
- var e = Gs(), r = Xa(), t = At();
1157
+ var e = Gs(), r = Za(), t = At();
1158
1158
  function n(a) {
1159
1159
  return typeof a.constructor == "function" && !t(a) ? e(r(a)) : {};
1160
1160
  }
@@ -1198,11 +1198,11 @@ var ft, Ma;
1198
1198
  function $s() {
1199
1199
  if (Ma) return ft;
1200
1200
  Ma = 1;
1201
- var e = ss(), r = os(), t = Ua(), n = ys(), a = ms(), i = As(), s = Ss(), o = Ts(), u = Cs(), c = js(), l = Rs(), f = Ct(), v = Ds(), d = Ks(), h = Bs(), b = bt(), A = Va(), R = Us(), p = te(), q = Hs(), O = St(), C = It(), M = 1, z = 2, Y = 4, j = "[object Arguments]", J = "[object Array]", g = "[object Boolean]", E = "[object Date]", X = "[object Error]", Ot = "[object Function]", ii = "[object GeneratorFunction]", si = "[object Map]", oi = "[object Number]", wt = "[object Object]", ui = "[object RegExp]", ci = "[object Set]", fi = "[object String]", li = "[object Symbol]", vi = "[object WeakMap]", di = "[object ArrayBuffer]", hi = "[object DataView]", gi = "[object Float32Array]", _i = "[object Float64Array]", pi = "[object Int8Array]", yi = "[object Int16Array]", bi = "[object Int32Array]", qi = "[object Uint8Array]", mi = "[object Uint8ClampedArray]", Ai = "[object Uint16Array]", Si = "[object Uint32Array]", y = {};
1202
- y[j] = y[J] = y[di] = y[hi] = y[g] = y[E] = y[gi] = y[_i] = y[pi] = y[yi] = y[bi] = y[si] = y[oi] = y[wt] = y[ui] = y[ci] = y[fi] = y[li] = y[qi] = y[mi] = y[Ai] = y[Si] = !0, y[X] = y[Ot] = y[vi] = !1;
1203
- function ae(_, N, U, Ii, ie, k) {
1204
- var T, se = N & M, oe = N & z, Ti = N & Y;
1205
- if (U && (T = ie ? U(_, Ii, ie, k) : U(_)), T !== void 0)
1201
+ var e = ss(), r = os(), t = Va(), n = ys(), a = ms(), i = As(), s = Ss(), o = Ts(), u = Cs(), c = js(), l = Rs(), f = Ct(), v = Ds(), d = Ks(), h = Bs(), b = bt(), A = Ha(), R = Us(), p = te(), q = Hs(), O = St(), C = It(), M = 1, z = 2, Y = 4, j = "[object Arguments]", J = "[object Array]", g = "[object Boolean]", E = "[object Date]", X = "[object Error]", Ot = "[object Function]", si = "[object GeneratorFunction]", oi = "[object Map]", ui = "[object Number]", wt = "[object Object]", ci = "[object RegExp]", fi = "[object Set]", li = "[object String]", vi = "[object Symbol]", di = "[object WeakMap]", hi = "[object ArrayBuffer]", gi = "[object DataView]", _i = "[object Float32Array]", pi = "[object Float64Array]", yi = "[object Int8Array]", bi = "[object Int16Array]", qi = "[object Int32Array]", mi = "[object Uint8Array]", Ai = "[object Uint8ClampedArray]", Si = "[object Uint16Array]", Ii = "[object Uint32Array]", y = {};
1202
+ y[j] = y[J] = y[hi] = y[gi] = y[g] = y[E] = y[_i] = y[pi] = y[yi] = y[bi] = y[qi] = y[oi] = y[ui] = y[wt] = y[ci] = y[fi] = y[li] = y[vi] = y[mi] = y[Ai] = y[Si] = y[Ii] = !0, y[X] = y[Ot] = y[di] = !1;
1203
+ function ae(_, N, U, Ti, ie, k) {
1204
+ var T, se = N & M, oe = N & z, Ci = N & Y;
1205
+ if (U && (T = ie ? U(_, Ti, ie, k) : U(_)), T !== void 0)
1206
1206
  return T;
1207
1207
  if (!p(_))
1208
1208
  return _;
@@ -1211,7 +1211,7 @@ function $s() {
1211
1211
  if (T = v(_), !se)
1212
1212
  return s(_, T);
1213
1213
  } else {
1214
- var V = f(_), xt = V == Ot || V == ii;
1214
+ var V = f(_), xt = V == Ot || V == si;
1215
1215
  if (A(_))
1216
1216
  return i(_, se);
1217
1217
  if (V == wt || V == j || xt && !ie) {
@@ -1232,7 +1232,7 @@ function $s() {
1232
1232
  }) : R(_) && _.forEach(function(L, G) {
1233
1233
  T.set(G, ae(L, N, U, G, _, k));
1234
1234
  });
1235
- var Ci = Ti ? oe ? l : c : oe ? C : O, Mt = Pt ? void 0 : Ci(_);
1235
+ var ji = Ci ? oe ? l : c : oe ? C : O, Mt = Pt ? void 0 : ji(_);
1236
1236
  return r(Mt || _, function(L, G) {
1237
1237
  Mt && (G = L, L = _[G]), t(T, G, ae(L, N, U, G, _, k));
1238
1238
  }), T;
@@ -1251,10 +1251,10 @@ function Ws() {
1251
1251
  }
1252
1252
  var zs = Ws();
1253
1253
  const Ys = /* @__PURE__ */ wi(zs);
1254
- function ei(e, r = !0) {
1254
+ function ri(e, r = !0) {
1255
1255
  if (e !== void 0)
1256
1256
  try {
1257
- return ji(e);
1257
+ return Ri(e);
1258
1258
  } catch (t) {
1259
1259
  if (r) throw t;
1260
1260
  return;
@@ -1263,7 +1263,7 @@ function ei(e, r = !0) {
1263
1263
  function ho(e) {
1264
1264
  if (e === void 0) return "";
1265
1265
  const r = Ys(e);
1266
- return delete r.deleted, Ri(vt(r), {
1266
+ return delete r.deleted, Oi(vt(r), {
1267
1267
  lineWidth: -1,
1268
1268
  noCompatMode: !0,
1269
1269
  quotingType: '"'
@@ -1290,7 +1290,7 @@ function Js(e) {
1290
1290
  });
1291
1291
  }
1292
1292
  function go(e) {
1293
- const r = new Oi();
1293
+ const r = new Fa();
1294
1294
  if (!ht(e == null ? void 0 : e[0]))
1295
1295
  return r;
1296
1296
  for (const t of e)
@@ -1488,7 +1488,7 @@ function qo({
1488
1488
  }
1489
1489
  }), Rt(u).toString(S);
1490
1490
  }
1491
- function ri(e, r, t, n, a = "after") {
1491
+ function ti(e, r, t, n, a = "after") {
1492
1492
  if (n === void 0)
1493
1493
  return a === "before" ? 0 : r.items.length - 1;
1494
1494
  const i = e.getIn([...t, n]);
@@ -1523,7 +1523,7 @@ function mo({
1523
1523
  return b.items.push(d), i.toString(S);
1524
1524
  }
1525
1525
  }
1526
- const c = ri(i, u, o, t);
1526
+ const c = ti(i, u, o, t);
1527
1527
  return n === "before" ? u.items.splice(c, 0, s) : u.items.splice(c + 1, 0, s), i.toString(S);
1528
1528
  }
1529
1529
  function to({ source: e, section: r, key: t, keyName: n }) {
@@ -1549,7 +1549,7 @@ function Ao({ source: e, path: r }) {
1549
1549
  const t = K(e), n = re(r), a = n.slice(0, -1), i = t.getIn(a);
1550
1550
  if (!i)
1551
1551
  return e;
1552
- const s = ri(t, i, n.slice(0, -1), n[n.length - 1]);
1552
+ const s = ti(t, i, n.slice(0, -1), n[n.length - 1]);
1553
1553
  return i.items.length === 1 ? t.deleteIn(a) : i.items.splice(s, 1), t.toString(S);
1554
1554
  }
1555
1555
  function La(e, r, t, n, a) {
@@ -1571,14 +1571,15 @@ function So({ source: e, sections: r, key1: t, key2: n, keyName: a }) {
1571
1571
  return a || (a = "id"), r.reduce((i, s) => i || La(e, s, n, t, a) || La(e, s, t, n, a), !1);
1572
1572
  }
1573
1573
  function Io(e, r, t) {
1574
- var s, o;
1575
- const n = K(e), a = n.getIn(["namespace"], !0);
1576
- a ? a.value = t : (s = n.contents) == null || s.items.unshift(new $(new F("namespace"), new F(t)));
1574
+ const n = K(e);
1575
+ n.contents = n.contents || new Fa();
1576
+ const a = n.getIn(["namespace"], !0);
1577
+ a ? a.value = t : n.contents.items.unshift(new $(new F("namespace"), new F(t)));
1577
1578
  const i = n.getIn(["id"], !0);
1578
- return i ? i.value = r : (o = n.contents) == null || o.items.unshift(new $(new F("id"), new F(r))), n.toString(S);
1579
+ return i ? i.value = r : n.contents.items.unshift(new $(new F("id"), new F(r))), n.toString(S);
1579
1580
  }
1580
1581
  function To({ source: e, section: r, newContent: t, keyName: n }) {
1581
- const { sectionNode: a } = D({ source: e, section: r }), i = ei(t);
1582
+ const { sectionNode: a } = D({ source: e, section: r }), i = ri(t);
1582
1583
  if (!a)
1583
1584
  return;
1584
1585
  let s = !1;
@@ -1601,7 +1602,7 @@ function no({ source: e, section: r, parentKey: t, keyName: n, subBlockName: a }
1601
1602
  const d = v.contents.items.find((h) => h.key.value === a);
1602
1603
  return !d || d.value && "value" in d.value && d.value.value === null || (o = d.value) == null ? void 0 : o.items[d.value.items.length - 1].get(n);
1603
1604
  }
1604
- const i = ei(e);
1605
+ const i = ri(e);
1605
1606
  return (l = (c = i[r]) == null ? void 0 : c[((u = i == null ? void 0 : i[r]) == null ? void 0 : u.length) - 1]) == null ? void 0 : l[n];
1606
1607
  }
1607
1608
  function Co(e, r) {
@@ -1617,7 +1618,7 @@ function Co(e, r) {
1617
1618
  );
1618
1619
  return Rt(t).toString(S);
1619
1620
  }
1620
- const ti = [
1621
+ const ni = [
1621
1622
  "tasks",
1622
1623
  "triggers",
1623
1624
  "errors",
@@ -1633,7 +1634,7 @@ const ti = [
1633
1634
  "labels",
1634
1635
  "inputs",
1635
1636
  "variables",
1636
- ...ti,
1637
+ ...ni,
1637
1638
  "taskDefaults",
1638
1639
  "concurrency",
1639
1640
  "sla",
@@ -1661,9 +1662,12 @@ function jo(e) {
1661
1662
  return Rt(r).toString(S);
1662
1663
  }
1663
1664
  function Ro(e) {
1664
- const r = I(e), t = {};
1665
- for (const n of r.contents.items)
1666
- ti.includes(n.key.value) || (t[n.key.value] = w(n.value) || W(n.value) ? n.value.toJSON() : n.value.value);
1665
+ var n;
1666
+ const r = I(e);
1667
+ if (!((n = r.contents) != null && n.items)) return {};
1668
+ const t = {};
1669
+ for (const a of r.contents.items)
1670
+ ni.includes(a.key.value) || (t[a.key.value] = w(a.value) || W(a.value) ? a.value.toJSON() : a.value.value);
1667
1671
  return t;
1668
1672
  }
1669
1673
  function Oo(e, r) {
@@ -1708,7 +1712,7 @@ function Mo(e, r, t) {
1708
1712
  }
1709
1713
  }), n.toString(S);
1710
1714
  }
1711
- function ni(e, r, t = (i, s) => !0, n = (i) => !0, a = !1) {
1715
+ function ai(e, r, t = (i, s) => !0, n = (i) => !0, a = !1) {
1712
1716
  const i = I(e), s = [];
1713
1717
  return m(i, {
1714
1718
  Map(o, u, c) {
@@ -1737,7 +1741,7 @@ function ni(e, r, t = (i, s) => !0, n = (i) => !0, a = !1) {
1737
1741
  }), s;
1738
1742
  }
1739
1743
  function so(e, r = []) {
1740
- return ni(
1744
+ return ai(
1741
1745
  e,
1742
1746
  "type",
1743
1747
  () => !0,
@@ -1763,16 +1767,16 @@ function ko(e, r) {
1763
1767
  return null;
1764
1768
  }
1765
1769
  function oo(e) {
1766
- return ni(e, "version", () => !0, () => !0, !0);
1770
+ return ai(e, "version", () => !0, () => !0, !0);
1767
1771
  }
1768
- const S = { lineWidth: 0 }, ai = "([^:\\n]+): *", uo = new RegExp(
1769
- `(( *)(?:${ai})?)[^\\n]*?$`
1772
+ const S = { lineWidth: 0 }, ii = "([^:\\n]+): *", uo = new RegExp(
1773
+ `(( *)(?:${ii})?)[^\\n]*?$`
1770
1774
  );
1771
1775
  function co(e, r) {
1772
1776
  if (r < 2)
1773
1777
  return;
1774
1778
  const n = [...e.matchAll(
1775
- new RegExp(`(?<! ) {${r - 2}}(?! )${ai}`, "g")
1779
+ new RegExp(`(?<! ) {${r - 2}}(?! )${ii}`, "g")
1776
1780
  )].pop();
1777
1781
  if (n !== void 0)
1778
1782
  return {
@@ -1860,37 +1864,37 @@ function Ko(e, r) {
1860
1864
  }), i ? i.toJSON() : null;
1861
1865
  }
1862
1866
  export {
1863
- Xa as $,
1867
+ Za as $,
1864
1868
  Zs as A,
1865
1869
  St as B,
1866
1870
  as as C,
1867
1871
  pt as D,
1868
1872
  Ms as E,
1869
- Fa as F,
1873
+ Ka as F,
1870
1874
  js as G,
1871
1875
  ss as H,
1872
1876
  Ct as I,
1873
1877
  bt as J,
1874
- Va as K,
1878
+ Ha as K,
1875
1879
  gs as L,
1876
1880
  ne as M,
1877
1881
  te as N,
1878
1882
  le as O,
1879
1883
  ls as P,
1880
1884
  ds as Q,
1881
- Ha as R,
1882
- Na as S,
1885
+ $a as R,
1886
+ Ua as S,
1883
1887
  wi as T,
1884
1888
  $s as U,
1885
- za as V,
1889
+ Ya as V,
1886
1890
  os as W,
1887
1891
  Is as X,
1888
1892
  ps as Y,
1889
1893
  At as Z,
1890
1894
  Gs as _,
1891
1895
  Po as a,
1892
- Ga as a0,
1893
- Ja as a1,
1896
+ Ba as a0,
1897
+ Xa as a1,
1894
1898
  us as a2,
1895
1899
  Ps as a3,
1896
1900
  It as a4,
@@ -1900,7 +1904,7 @@ export {
1900
1904
  Ss as a8,
1901
1905
  Bs as a9,
1902
1906
  P as aa,
1903
- Ua as ab,
1907
+ Va as ab,
1904
1908
  qt as ac,
1905
1909
  Ws as ad,
1906
1910
  bo as ae,
@@ -1910,12 +1914,12 @@ export {
1910
1914
  re as ai,
1911
1915
  mo as aj,
1912
1916
  Ao as ak,
1913
- ti as al,
1917
+ ni as al,
1914
1918
  ao as am,
1915
1919
  Oo as b,
1916
1920
  Ro as c,
1917
1921
  Do as d,
1918
- ni as e,
1922
+ ai as e,
1919
1923
  wo as f,
1920
1924
  ko as g,
1921
1925
  jo as h,
@@ -1925,7 +1929,7 @@ export {
1925
1929
  Lo as l,
1926
1930
  Ko as m,
1927
1931
  Fo as n,
1928
- ei as o,
1932
+ ri as o,
1929
1933
  go as p,
1930
1934
  ho as q,
1931
1935
  xo as r,
@@ -1938,4 +1942,4 @@ export {
1938
1942
  qo as y,
1939
1943
  eo as z
1940
1944
  };
1941
- //# sourceMappingURL=FlowYamlUtils-BLYppTrj.js.map
1945
+ //# sourceMappingURL=FlowYamlUtils-XiHwEJpD.js.map