@kestra-io/ui-libs 0.0.192 → 0.0.193

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,6 +1,6 @@
1
1
  import { load as Ti, dump as Ii } from "js-yaml";
2
- import { visit as A, isSeq as X, parseDocument as b, Document as U, isMap as k, isPair as vt, Pair as se, Scalar as oe, YAMLSeq as dt, LineCounter as Ea, YAMLMap as Ci } from "yaml";
3
- var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ import { visit as A, isSeq as Z, parseDocument as b, Document as U, isMap as L, isPair as vt, Pair as se, Scalar as oe, YAMLSeq as dt, LineCounter as Ea, YAMLMap as Ci } from "yaml";
3
+ var ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function ji(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
@@ -137,7 +137,7 @@ var Ce, Vt;
137
137
  function La() {
138
138
  if (Vt) return Ce;
139
139
  Vt = 1;
140
- var e = typeof ae == "object" && ae && ae.Object === Object && ae;
140
+ var e = typeof ie == "object" && ie && ie.Object === Object && ie;
141
141
  return Ce = e, Ce;
142
142
  }
143
143
  var je, Ht;
@@ -192,7 +192,7 @@ function fe() {
192
192
  return Pe = s, Pe;
193
193
  }
194
194
  var De, Jt;
195
- function Z() {
195
+ function Q() {
196
196
  if (Jt) return De;
197
197
  Jt = 1;
198
198
  function e(r) {
@@ -205,7 +205,7 @@ var xe, Xt;
205
205
  function Ka() {
206
206
  if (Xt) return xe;
207
207
  Xt = 1;
208
- var e = fe(), r = Z(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
208
+ var e = fe(), r = Q(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
209
209
  function s(o) {
210
210
  if (!r(o))
211
211
  return !1;
@@ -258,7 +258,7 @@ var Le, rn;
258
258
  function Bi() {
259
259
  if (rn) return Le;
260
260
  rn = 1;
261
- var e = Ka(), r = Gi(), t = Z(), n = Fa(), a = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, u = s.toString, c = o.hasOwnProperty, v = RegExp(
261
+ var e = Ka(), r = Gi(), t = Q(), n = Fa(), a = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, u = s.toString, c = o.hasOwnProperty, v = RegExp(
262
262
  "^" + u.call(c).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
263
263
  );
264
264
  function f(l) {
@@ -571,7 +571,7 @@ function ss() {
571
571
  return cr = e, cr;
572
572
  }
573
573
  var fr, On;
574
- function Q() {
574
+ function ee() {
575
575
  if (On) return fr;
576
576
  On = 1;
577
577
  function e(r) {
@@ -583,7 +583,7 @@ var lr, wn;
583
583
  function os() {
584
584
  if (wn) return lr;
585
585
  wn = 1;
586
- var e = fe(), r = Q(), t = "[object Arguments]";
586
+ var e = fe(), r = ee(), t = "[object Arguments]";
587
587
  function n(a) {
588
588
  return r(a) && e(a) == t;
589
589
  }
@@ -593,7 +593,7 @@ var vr, Pn;
593
593
  function us() {
594
594
  if (Pn) return vr;
595
595
  Pn = 1;
596
- var e = os(), r = Q(), t = Object.prototype, n = t.hasOwnProperty, a = t.propertyIsEnumerable, i = e(/* @__PURE__ */ function() {
596
+ var e = os(), r = ee(), t = Object.prototype, n = t.hasOwnProperty, a = t.propertyIsEnumerable, i = e(/* @__PURE__ */ function() {
597
597
  return arguments;
598
598
  }()) ? e : function(s) {
599
599
  return r(s) && n.call(s, "callee") && !a.call(s, "callee");
@@ -649,12 +649,12 @@ var pr, Ln;
649
649
  function ls() {
650
650
  if (Ln) return pr;
651
651
  Ln = 1;
652
- var e = fe(), r = Ua(), t = Q(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", s = "[object Date]", o = "[object Error]", u = "[object Function]", c = "[object Map]", v = "[object Number]", f = "[object Object]", l = "[object RegExp]", d = "[object Set]", y = "[object String]", q = "[object WeakMap]", S = "[object ArrayBuffer]", R = "[object DataView]", g = "[object Float32Array]", m = "[object Float64Array]", O = "[object Int8Array]", C = "[object Int16Array]", D = "[object Int32Array]", V = "[object Uint8Array]", H = "[object Uint8ClampedArray]", j = "[object Uint16Array]", $ = "[object Uint32Array]", h = {};
653
- h[g] = h[m] = h[O] = h[C] = h[D] = h[V] = h[H] = h[j] = h[$] = !0, h[n] = h[a] = h[S] = h[i] = h[R] = h[s] = h[o] = h[u] = h[c] = h[v] = h[f] = h[l] = h[d] = h[y] = h[q] = !1;
654
- function x(W) {
652
+ var e = fe(), r = Ua(), t = ee(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", s = "[object Date]", o = "[object Error]", u = "[object Function]", c = "[object Map]", v = "[object Number]", f = "[object Object]", l = "[object RegExp]", d = "[object Set]", y = "[object String]", q = "[object WeakMap]", S = "[object ArrayBuffer]", R = "[object DataView]", g = "[object Float32Array]", m = "[object Float64Array]", O = "[object Int8Array]", C = "[object Int16Array]", x = "[object Int32Array]", V = "[object Uint8Array]", H = "[object Uint8ClampedArray]", j = "[object Uint16Array]", $ = "[object Uint32Array]", h = {};
653
+ h[g] = h[m] = h[O] = h[C] = h[x] = h[V] = h[H] = h[j] = h[$] = !0, h[n] = h[a] = h[S] = h[i] = h[R] = h[s] = h[o] = h[u] = h[c] = h[v] = h[f] = h[l] = h[d] = h[y] = h[q] = !1;
654
+ function M(W) {
655
655
  return t(W) && r(W.length) && !!h[e(W)];
656
656
  }
657
- return pr = x, pr;
657
+ return pr = M, pr;
658
658
  }
659
659
  var yr, Kn;
660
660
  function pt() {
@@ -797,7 +797,7 @@ var Or, Jn;
797
797
  function ps() {
798
798
  if (Jn) return Or;
799
799
  Jn = 1;
800
- var e = Z(), r = bt(), t = gs(), n = Object.prototype, a = n.hasOwnProperty;
800
+ var e = Q(), r = bt(), t = gs(), n = Object.prototype, a = n.hasOwnProperty;
801
801
  function i(s) {
802
802
  if (!e(s))
803
803
  return t(s);
@@ -1002,9 +1002,9 @@ function St() {
1002
1002
  ga = 1;
1003
1003
  var e = Cs(), r = _t(), t = js(), n = Rs(), a = Os(), i = fe(), s = Fa(), o = "[object Map]", u = "[object Object]", c = "[object Promise]", v = "[object Set]", f = "[object WeakMap]", l = "[object DataView]", d = s(e), y = s(r), q = s(t), S = s(n), R = s(a), g = i;
1004
1004
  return (e && g(new e(new ArrayBuffer(1))) != l || r && g(new r()) != o || t && g(t.resolve()) != c || n && g(new n()) != v || a && g(new a()) != f) && (g = function(m) {
1005
- var O = i(m), C = O == u ? m.constructor : void 0, D = C ? s(C) : "";
1006
- if (D)
1007
- switch (D) {
1005
+ var O = i(m), C = O == u ? m.constructor : void 0, x = C ? s(C) : "";
1006
+ if (x)
1007
+ switch (x) {
1008
1008
  case d:
1009
1009
  return l;
1010
1010
  case y:
@@ -1095,15 +1095,15 @@ var tt, Ta;
1095
1095
  function ks() {
1096
1096
  if (Ta) return tt;
1097
1097
  Ta = 1;
1098
- var e = Tt(), r = Ds(), t = xs(), n = Ms(), a = Es(), i = "[object Boolean]", s = "[object Date]", o = "[object Map]", u = "[object Number]", c = "[object RegExp]", v = "[object Set]", f = "[object String]", l = "[object Symbol]", d = "[object ArrayBuffer]", y = "[object DataView]", q = "[object Float32Array]", S = "[object Float64Array]", R = "[object Int8Array]", g = "[object Int16Array]", m = "[object Int32Array]", O = "[object Uint8Array]", C = "[object Uint8ClampedArray]", D = "[object Uint16Array]", V = "[object Uint32Array]";
1098
+ var e = Tt(), r = Ds(), t = xs(), n = Ms(), a = Es(), i = "[object Boolean]", s = "[object Date]", o = "[object Map]", u = "[object Number]", c = "[object RegExp]", v = "[object Set]", f = "[object String]", l = "[object Symbol]", d = "[object ArrayBuffer]", y = "[object DataView]", q = "[object Float32Array]", S = "[object Float64Array]", R = "[object Int8Array]", g = "[object Int16Array]", m = "[object Int32Array]", O = "[object Uint8Array]", C = "[object Uint8ClampedArray]", x = "[object Uint16Array]", V = "[object Uint32Array]";
1099
1099
  function H(j, $, h) {
1100
- var x = j.constructor;
1100
+ var M = j.constructor;
1101
1101
  switch ($) {
1102
1102
  case d:
1103
1103
  return e(j);
1104
1104
  case i:
1105
1105
  case s:
1106
- return new x(+j);
1106
+ return new M(+j);
1107
1107
  case y:
1108
1108
  return r(j, h);
1109
1109
  case q:
@@ -1113,18 +1113,18 @@ function ks() {
1113
1113
  case m:
1114
1114
  case O:
1115
1115
  case C:
1116
- case D:
1116
+ case x:
1117
1117
  case V:
1118
1118
  return a(j, h);
1119
1119
  case o:
1120
- return new x();
1120
+ return new M();
1121
1121
  case u:
1122
1122
  case f:
1123
- return new x(j);
1123
+ return new M(j);
1124
1124
  case c:
1125
1125
  return t(j);
1126
1126
  case v:
1127
- return new x();
1127
+ return new M();
1128
1128
  case l:
1129
1129
  return n(j);
1130
1130
  }
@@ -1135,7 +1135,7 @@ var nt, Ia;
1135
1135
  function Ls() {
1136
1136
  if (Ia) return nt;
1137
1137
  Ia = 1;
1138
- var e = Z(), r = Object.create, t = /* @__PURE__ */ function() {
1138
+ var e = Q(), r = Object.create, t = /* @__PURE__ */ function() {
1139
1139
  function n() {
1140
1140
  }
1141
1141
  return function(a) {
@@ -1164,7 +1164,7 @@ var it, ja;
1164
1164
  function Fs() {
1165
1165
  if (ja) return it;
1166
1166
  ja = 1;
1167
- var e = St(), r = Q(), t = "[object Map]";
1167
+ var e = St(), r = ee(), t = "[object Map]";
1168
1168
  function n(a) {
1169
1169
  return r(a) && e(a) == t;
1170
1170
  }
@@ -1181,7 +1181,7 @@ var ot, Oa;
1181
1181
  function Bs() {
1182
1182
  if (Oa) return ot;
1183
1183
  Oa = 1;
1184
- var e = St(), r = Q(), t = "[object Set]";
1184
+ var e = St(), r = ee(), t = "[object Set]";
1185
1185
  function n(a) {
1186
1186
  return r(a) && e(a) == t;
1187
1187
  }
@@ -1198,46 +1198,46 @@ var ct, Pa;
1198
1198
  function Us() {
1199
1199
  if (Pa) return ct;
1200
1200
  Pa = 1;
1201
- var e = ns(), r = as(), t = Ba(), n = _s(), a = ys(), i = bs(), s = qs(), o = As(), u = Ss(), c = Ts(), v = Is(), f = St(), l = ws(), d = ks(), y = Ks(), q = gt(), S = Na(), R = Gs(), g = Z(), m = Ns(), O = qt(), C = mt(), D = 1, V = 2, H = 4, j = "[object Arguments]", $ = "[object Array]", h = "[object Boolean]", x = "[object Date]", W = "[object Error]", Ct = "[object Function]", ti = "[object GeneratorFunction]", ni = "[object Map]", ai = "[object Number]", jt = "[object Object]", ii = "[object RegExp]", si = "[object Set]", oi = "[object String]", ui = "[object Symbol]", ci = "[object WeakMap]", fi = "[object ArrayBuffer]", li = "[object DataView]", vi = "[object Float32Array]", di = "[object Float64Array]", hi = "[object Int8Array]", _i = "[object Int16Array]", gi = "[object Int32Array]", pi = "[object Uint8Array]", yi = "[object Uint8ClampedArray]", bi = "[object Uint16Array]", qi = "[object Uint32Array]", p = {};
1202
- p[j] = p[$] = p[fi] = p[li] = p[h] = p[x] = p[vi] = p[di] = p[hi] = p[_i] = p[gi] = p[ni] = p[ai] = p[jt] = p[ii] = p[si] = p[oi] = p[ui] = p[pi] = p[yi] = p[bi] = p[qi] = !0, p[W] = p[Ct] = p[ci] = !1;
1203
- function ee(_, G, B, mi, re, M) {
1204
- var I, te = G & D, ne = G & V, Ai = G & H;
1205
- if (B && (I = re ? B(_, mi, re, M) : B(_)), I !== void 0)
1201
+ var e = ns(), r = as(), t = Ba(), n = _s(), a = ys(), i = bs(), s = qs(), o = As(), u = Ss(), c = Ts(), v = Is(), f = St(), l = ws(), d = ks(), y = Ks(), q = gt(), S = Na(), R = Gs(), g = Q(), m = Ns(), O = qt(), C = mt(), x = 1, V = 2, H = 4, j = "[object Arguments]", $ = "[object Array]", h = "[object Boolean]", M = "[object Date]", W = "[object Error]", Ct = "[object Function]", ti = "[object GeneratorFunction]", ni = "[object Map]", ai = "[object Number]", jt = "[object Object]", ii = "[object RegExp]", si = "[object Set]", oi = "[object String]", ui = "[object Symbol]", ci = "[object WeakMap]", fi = "[object ArrayBuffer]", li = "[object DataView]", vi = "[object Float32Array]", di = "[object Float64Array]", hi = "[object Int8Array]", _i = "[object Int16Array]", gi = "[object Int32Array]", pi = "[object Uint8Array]", yi = "[object Uint8ClampedArray]", bi = "[object Uint16Array]", qi = "[object Uint32Array]", p = {};
1202
+ p[j] = p[$] = p[fi] = p[li] = p[h] = p[M] = p[vi] = p[di] = p[hi] = p[_i] = p[gi] = p[ni] = p[ai] = p[jt] = p[ii] = p[si] = p[oi] = p[ui] = p[pi] = p[yi] = p[bi] = p[qi] = !0, p[W] = p[Ct] = p[ci] = !1;
1203
+ function re(_, G, B, mi, te, E) {
1204
+ var I, ne = G & x, ae = G & V, Ai = G & H;
1205
+ if (B && (I = te ? B(_, mi, te, E) : B(_)), I !== void 0)
1206
1206
  return I;
1207
1207
  if (!g(_))
1208
1208
  return _;
1209
1209
  var Rt = q(_);
1210
1210
  if (Rt) {
1211
- if (I = l(_), !te)
1211
+ if (I = l(_), !ne)
1212
1212
  return s(_, I);
1213
1213
  } else {
1214
1214
  var N = f(_), Ot = N == Ct || N == ti;
1215
1215
  if (S(_))
1216
- return i(_, te);
1217
- if (N == jt || N == j || Ot && !re) {
1218
- if (I = ne || Ot ? {} : y(_), !te)
1219
- return ne ? u(_, a(I, _)) : o(_, n(I, _));
1216
+ return i(_, ne);
1217
+ if (N == jt || N == j || Ot && !te) {
1218
+ if (I = ae || Ot ? {} : y(_), !ne)
1219
+ return ae ? u(_, a(I, _)) : o(_, n(I, _));
1220
1220
  } else {
1221
1221
  if (!p[N])
1222
- return re ? _ : {};
1223
- I = d(_, N, te);
1222
+ return te ? _ : {};
1223
+ I = d(_, N, ne);
1224
1224
  }
1225
1225
  }
1226
- M || (M = new e());
1227
- var wt = M.get(_);
1226
+ E || (E = new e());
1227
+ var wt = E.get(_);
1228
1228
  if (wt)
1229
1229
  return wt;
1230
- M.set(_, I), m(_) ? _.forEach(function(E) {
1231
- I.add(ee(E, G, B, E, _, M));
1232
- }) : R(_) && _.forEach(function(E, K) {
1233
- I.set(K, ee(E, G, B, K, _, M));
1230
+ E.set(_, I), m(_) ? _.forEach(function(k) {
1231
+ I.add(re(k, G, B, k, _, E));
1232
+ }) : R(_) && _.forEach(function(k, K) {
1233
+ I.set(K, re(k, G, B, K, _, E));
1234
1234
  });
1235
- var Si = Ai ? ne ? v : c : ne ? C : O, Pt = Rt ? void 0 : Si(_);
1236
- return r(Pt || _, function(E, K) {
1237
- Pt && (K = E, E = _[K]), t(I, K, ee(E, G, B, K, _, M));
1235
+ var Si = Ai ? ae ? v : c : ae ? C : O, Pt = Rt ? void 0 : Si(_);
1236
+ return r(Pt || _, function(k, K) {
1237
+ Pt && (K = k, k = _[K]), t(I, K, re(k, G, B, K, _, E));
1238
1238
  }), I;
1239
1239
  }
1240
- return ct = ee, ct;
1240
+ return ct = re, ct;
1241
1241
  }
1242
1242
  var ft, Da;
1243
1243
  function Vs() {
@@ -1300,7 +1300,7 @@ function lo(e) {
1300
1300
  function lt(e) {
1301
1301
  return e instanceof Array ? e.map((r) => lt(r)) : typeof e == "string" || e instanceof String ? e : e instanceof Object ? Ws(e).reduce((r, t) => (e[t] !== void 0 && (r[t] = lt(e[t])), r), /* @__PURE__ */ Object.create({})) : e;
1302
1302
  }
1303
- function L({ source: e, section: r }) {
1303
+ function D({ source: e, section: r }) {
1304
1304
  const t = b(e), n = zs({ yamlDoc: t, section: r });
1305
1305
  return { yamlDoc: t, sectionNode: n };
1306
1306
  }
@@ -1313,7 +1313,7 @@ function zs({ yamlDoc: e, section: r }) {
1313
1313
  }
1314
1314
  function Ys({ source: e, section: r, key: t, keyName: n }) {
1315
1315
  n || (n = "id");
1316
- const { sectionNode: a } = L({ source: e, section: r });
1316
+ const { sectionNode: a } = D({ source: e, section: r });
1317
1317
  if (!a)
1318
1318
  return;
1319
1319
  const i = P({
@@ -1326,14 +1326,14 @@ function Ys({ source: e, section: r, key: t, keyName: n }) {
1326
1326
  function P({ yamlDoc: e, keyName: r, key: t, callback: n }) {
1327
1327
  function a(s) {
1328
1328
  if (s) {
1329
- if (k(s) && s.get("type") !== void 0 && t === s.get(r))
1329
+ if (L(s) && s.get("type") !== void 0 && t === s.get(r))
1330
1330
  return n ? n(s) : s;
1331
- if (X(s) || k(s))
1331
+ if (Z(s) || L(s))
1332
1332
  for (const [o, u] of s.items.entries()) {
1333
- const c = k(u) ? a(u) : a(u.value ?? void 0);
1333
+ const c = L(u) ? a(u) : a(u.value ?? void 0);
1334
1334
  if (c) {
1335
1335
  if (n)
1336
- k(s) && vt(u) ? s.set(u.key, c) : s.items[o] = c;
1336
+ L(s) && vt(u) ? s.set(u.key, c) : s.items[o] = c;
1337
1337
  else if (c)
1338
1338
  return c;
1339
1339
  }
@@ -1353,7 +1353,7 @@ function vo({ source: e, path: r }) {
1353
1353
  return new U(t).toString(T);
1354
1354
  }
1355
1355
  function Js({ yamlDoc: e, path: r, callback: t }) {
1356
- const n = ie(r), a = e.getIn(n);
1356
+ const n = X(r), a = e.getIn(n);
1357
1357
  if (a !== void 0) {
1358
1358
  if (t) {
1359
1359
  const i = t(a);
@@ -1362,8 +1362,12 @@ function Js({ yamlDoc: e, path: r, callback: t }) {
1362
1362
  return new U(a);
1363
1363
  }
1364
1364
  }
1365
+ function ho({ source: e, path: r, newContent: t }) {
1366
+ const { yamlDoc: n } = D({ source: e, section: "" }), a = n.createNode(b(t));
1367
+ return n.setIn(X(r), a), n.toString(T);
1368
+ }
1365
1369
  function Xs({ source: e, section: r, keyName: t, key: n, newContent: a }) {
1366
- const { yamlDoc: i, sectionNode: s } = L({ source: e, section: r }), o = i.createNode(b(a));
1370
+ const { yamlDoc: i, sectionNode: s } = D({ source: e, section: r }), o = i.createNode(b(a));
1367
1371
  if (s)
1368
1372
  return P({
1369
1373
  yamlDoc: s,
@@ -1386,9 +1390,9 @@ function Zs(e, r) {
1386
1390
  break;
1387
1391
  }
1388
1392
  }
1389
- function ho({ source: e, section: r, key1: t, key2: n, keyName: a }) {
1393
+ function _o({ source: e, section: r, key1: t, key2: n, keyName: a }) {
1390
1394
  a || (a = "id");
1391
- const { yamlDoc: i, sectionNode: s } = L({ source: e, section: r });
1395
+ const { yamlDoc: i, sectionNode: s } = D({ source: e, section: r });
1392
1396
  if (!s)
1393
1397
  return e;
1394
1398
  const o = P({ yamlDoc: s, keyName: a, key: t }), u = P({ yamlDoc: s, keyName: a, key: n });
@@ -1402,7 +1406,7 @@ function ho({ source: e, section: r, key1: t, key2: n, keyName: a }) {
1402
1406
  }
1403
1407
  }), P({ yamlDoc: s, keyName: a, key: t, callback: () => u }), P({ yamlDoc: s, keyName: a, key: n, callback: () => o }), i.toString(T));
1404
1408
  }
1405
- function _o({
1409
+ function go({
1406
1410
  source: e,
1407
1411
  section: r,
1408
1412
  newBlock: t,
@@ -1414,7 +1418,7 @@ function _o({
1414
1418
  }) {
1415
1419
  var y, q, S, R;
1416
1420
  s || (s = "id"), o || (o = r), a || (a = "after");
1417
- const { yamlDoc: u, sectionNode: c } = L({ source: e, section: r }), v = u.createNode(b(t)), f = i && c ? (y = P({ yamlDoc: c, keyName: s, key: i })) == null ? void 0 : y.contents : c;
1421
+ const { yamlDoc: u, sectionNode: c } = D({ source: e, section: r }), v = u.createNode(b(t)), f = i && c ? (y = P({ yamlDoc: c, keyName: s, key: i })) == null ? void 0 : y.contents : c;
1418
1422
  if (!f && i)
1419
1423
  throw new Error(`Parent block with ID ${i} not found in ${r}`);
1420
1424
  if (!f || i && !f.get(o)) {
@@ -1431,7 +1435,7 @@ function _o({
1431
1435
  return A(f, {
1432
1436
  Seq(g, m) {
1433
1437
  for (const O of m.items)
1434
- if (k(O)) {
1438
+ if (L(O)) {
1435
1439
  if (d)
1436
1440
  return A.BREAK;
1437
1441
  if (O.get(s) === l) {
@@ -1448,13 +1452,13 @@ function Qa(e, r, t, n, a = "after") {
1448
1452
  const i = e.getIn([...t, n]);
1449
1453
  return r.items.indexOf(i);
1450
1454
  }
1451
- function ie(e) {
1455
+ function X(e) {
1452
1456
  return e.split(".").reduce((t, n) => {
1453
1457
  const a = n.match(/\[(\d+)\]$/);
1454
1458
  return a != null && a[0] ? (t.push(n.slice(0, a.index)), t.push(parseInt(a[1], 10))) : t.push(n), t;
1455
1459
  }, []);
1456
1460
  }
1457
- function go({
1461
+ function po({
1458
1462
  source: e,
1459
1463
  newBlock: r,
1460
1464
  refPath: t,
@@ -1463,7 +1467,7 @@ function go({
1463
1467
  }) {
1464
1468
  var v;
1465
1469
  n || (n = "after");
1466
- const i = b(e), s = i.createNode(b(r)), o = ie(a), u = i.getIn(o);
1470
+ const i = b(e), s = i.createNode(b(r)), o = X(a), u = i.getIn(o);
1467
1471
  if (!u) {
1468
1472
  const f = new dt();
1469
1473
  f.add(s);
@@ -1471,7 +1475,7 @@ function go({
1471
1475
  if (l.length === a.length)
1472
1476
  return (v = i.contents) == null || v.items.push(d), i.toString(T);
1473
1477
  {
1474
- const y = a.substring(0, a.length - l.length - 1), q = i.getIn(ie(y));
1478
+ const y = a.substring(0, a.length - l.length - 1), q = i.getIn(X(y));
1475
1479
  if (!q)
1476
1480
  throw new Error(`Parent block with path ${y} not found`);
1477
1481
  return q.items.push(d), i.toString(T);
@@ -1494,20 +1498,20 @@ function Qs({ source: e, section: r, key: t, keyName: n }) {
1494
1498
  }
1495
1499
  }), A(a, {
1496
1500
  Pair(i, s) {
1497
- if (X(s.value) && s.value.items.length === 0)
1501
+ if (Z(s.value) && s.value.items.length === 0)
1498
1502
  return A.REMOVE;
1499
1503
  }
1500
1504
  }), a.toString(T);
1501
1505
  }
1502
- function po({ source: e, path: r }) {
1503
- const t = b(e), n = ie(r), a = t.getIn(n.slice(0, -1));
1506
+ function yo({ source: e, path: r }) {
1507
+ const t = b(e), n = X(r), a = t.getIn(n.slice(0, -1));
1504
1508
  if (!a)
1505
1509
  return e;
1506
1510
  const i = Qa(t, a, n.slice(0, -1), n[n.length - 1]);
1507
1511
  return a.items.splice(i, 1), t.toString(T);
1508
1512
  }
1509
1513
  function Ma(e, r, t, n, a) {
1510
- const { sectionNode: i } = L({ source: e, section: r });
1514
+ const { sectionNode: i } = D({ source: e, section: r });
1511
1515
  if (!i)
1512
1516
  return !1;
1513
1517
  const s = P({ yamlDoc: i, keyName: a, key: t });
@@ -1521,14 +1525,14 @@ function Ma(e, r, t, n, a) {
1521
1525
  }
1522
1526
  }), o;
1523
1527
  }
1524
- function yo({ source: e, sections: r, key1: t, key2: n, keyName: a }) {
1528
+ function bo({ source: e, sections: r, key1: t, key2: n, keyName: a }) {
1525
1529
  return a || (a = "id"), r.reduce((i, s) => i || Ma(e, s, n, t, a) || Ma(e, s, t, n, a), !1);
1526
1530
  }
1527
- function bo(e, r, t) {
1531
+ function qo(e, r, t) {
1528
1532
  return e.replace(/^(id\s*:\s*(["']?))\S*/m, "$1" + r + "$2").replace(/^(namespace\s*:\s*(["']?))\S*/m, "$1" + t + "$2");
1529
1533
  }
1530
- function qo({ source: e, section: r, newContent: t, keyName: n }) {
1531
- const { sectionNode: a } = L({ source: e, section: r }), i = Za(t);
1534
+ function mo({ source: e, section: r, newContent: t, keyName: n }) {
1535
+ const { sectionNode: a } = D({ source: e, section: r }), i = Za(t);
1532
1536
  if (!a)
1533
1537
  return;
1534
1538
  let s = !1;
@@ -1542,7 +1546,7 @@ function qo({ source: e, section: r, newContent: t, keyName: n }) {
1542
1546
  function eo({ source: e, section: r, parentKey: t, keyName: n, subBlockName: a }) {
1543
1547
  var s, o, u, c, v;
1544
1548
  if (n || (n = "id"), a || (a = r), t) {
1545
- const { sectionNode: f } = L({ source: e, section: r });
1549
+ const { sectionNode: f } = D({ source: e, section: r });
1546
1550
  if (!f)
1547
1551
  return;
1548
1552
  const l = P({ yamlDoc: f, keyName: n, key: t });
@@ -1554,7 +1558,7 @@ function eo({ source: e, section: r, parentKey: t, keyName: n, subBlockName: a }
1554
1558
  const i = Za(e);
1555
1559
  return (v = (c = i[r]) == null ? void 0 : c[((u = i == null ? void 0 : i[r]) == null ? void 0 : u.length) - 1]) == null ? void 0 : v[n];
1556
1560
  }
1557
- function mo(e, r) {
1561
+ function Ao(e, r) {
1558
1562
  var n;
1559
1563
  const t = b(e);
1560
1564
  if (!((n = t == null ? void 0 : t.contents) != null && n.items))
@@ -1589,7 +1593,7 @@ const ei = [
1589
1593
  "disabled"
1590
1594
  ];
1591
1595
  function to(e) {
1592
- return X(e) || k(e) ? e.items.length > 0 : !0;
1596
+ return Z(e) || L(e) ? e.items.length > 0 : !0;
1593
1597
  }
1594
1598
  function It(e) {
1595
1599
  var t, n;
@@ -1604,37 +1608,37 @@ function It(e) {
1604
1608
  }
1605
1609
  return e.contents.items = r, e;
1606
1610
  }
1607
- function Ao(e) {
1611
+ function So(e) {
1608
1612
  const r = b(e);
1609
1613
  return It(r).toString(T);
1610
1614
  }
1611
- function So(e) {
1615
+ function To(e) {
1612
1616
  const r = b(e), t = {};
1613
1617
  for (const n of r.contents.items)
1614
- ei.includes(n.key.value) || (t[n.key.value] = k(n.value) || X(n.value) ? n.value.toJSON() : n.value.value);
1618
+ ei.includes(n.key.value) || (t[n.key.value] = L(n.value) || Z(n.value) ? n.value.toJSON() : n.value.value);
1615
1619
  return t;
1616
1620
  }
1617
- function To(e, r) {
1621
+ function Io(e, r) {
1618
1622
  const t = b(e);
1619
1623
  if (!t.contents.items)
1620
1624
  return e;
1621
1625
  const n = t.contents.items.find((a) => a.key.value === r);
1622
1626
  return n && t.contents.items.splice(t.contents.items.indexOf(n), 1), t.toString(T);
1623
1627
  }
1624
- function Io(e) {
1625
- const { sectionNode: r } = L({ source: e, section: "tasks" });
1626
- return r ? X(r) && r.items.length > 0 : !1;
1628
+ function Co(e) {
1629
+ const { sectionNode: r } = D({ source: e, section: "tasks" });
1630
+ return r ? Z(r) && r.items.length > 0 : !1;
1627
1631
  }
1628
- function Co(e, r) {
1632
+ function jo(e, r) {
1629
1633
  return Ys({ source: e, section: "pluginDefaults", key: r, keyName: "type" });
1630
1634
  }
1631
- function jo(e, r, t) {
1635
+ function Ro(e, r, t) {
1632
1636
  return Xs({ source: e, section: "pluginDefaults", keyName: "type", key: r, newContent: t });
1633
1637
  }
1634
- function Ro(e, r) {
1638
+ function Oo(e, r) {
1635
1639
  return Qs({ source: e, section: "pluginDefaults", key: r, keyName: "type" });
1636
1640
  }
1637
- function Oo(e, r, t) {
1641
+ function wo(e, r, t) {
1638
1642
  const n = b(e), a = n.createNode(b(r));
1639
1643
  let i = !1;
1640
1644
  return A(n, {
@@ -1687,7 +1691,7 @@ function ao(e, r = []) {
1687
1691
  (t) => r.some((n) => n === t)
1688
1692
  );
1689
1693
  }
1690
- function wo(e, r, t) {
1694
+ function Po(e, r, t) {
1691
1695
  const n = ao(e, t), a = new Ea();
1692
1696
  b(e, { lineCounter: a });
1693
1697
  const i = a.lineStarts[r.lineNumber - 1] + r.column;
@@ -1722,7 +1726,7 @@ function oo(e) {
1722
1726
  valueStartIndex: a === void 0 ? void 0 : r.index + t.length
1723
1727
  };
1724
1728
  }
1725
- function Po(e, r) {
1729
+ function Do(e, r) {
1726
1730
  var v;
1727
1731
  const t = e.substring(0, r), n = oo(t);
1728
1732
  let { yamlKey: a } = n;
@@ -1743,7 +1747,7 @@ function Po(e, r) {
1743
1747
  if (((y = l.value) == null ? void 0 : y.range) !== void 0 && l.key.value === a) {
1744
1748
  const q = e.substring(0, l.value.range[0]);
1745
1749
  u.push({
1746
- parents: d.filter((S) => k(S)).map((S) => S.toJS(o)),
1750
+ parents: d.filter((S) => L(S)).map((S) => S.toJS(o)),
1747
1751
  key: l.key.value,
1748
1752
  value: l.value.toJS(o),
1749
1753
  range: [
@@ -1757,7 +1761,7 @@ function Po(e, r) {
1757
1761
  (f) => f.range[0] <= s && s <= f.range[2]
1758
1762
  ).sort((f, l) => l.range[0] - f.range[0])) == null ? void 0 : v[0];
1759
1763
  }
1760
- function Do(e) {
1764
+ function xo(e) {
1761
1765
  const r = b(e), t = [];
1762
1766
  return A(r, {
1763
1767
  Map(n, a) {
@@ -1771,7 +1775,7 @@ function Do(e) {
1771
1775
  }
1772
1776
  }), t;
1773
1777
  }
1774
- function xo(e, r) {
1778
+ function Mo(e, r) {
1775
1779
  const t = b(e), n = new Ea();
1776
1780
  b(e, { lineCounter: n });
1777
1781
  const a = n.lineStarts[r.lineNumber - 1] + r.column;
@@ -1803,8 +1807,8 @@ export {
1803
1807
  gt as I,
1804
1808
  Na as J,
1805
1809
  vs as K,
1806
- Q as L,
1807
- Z as M,
1810
+ ee as L,
1811
+ Q as M,
1808
1812
  fe as N,
1809
1813
  us as O,
1810
1814
  fs as P,
@@ -1819,7 +1823,7 @@ export {
1819
1823
  bt as Y,
1820
1824
  Ls as Z,
1821
1825
  Ya as _,
1822
- Co as a,
1826
+ jo as a,
1823
1827
  za as a0,
1824
1828
  is as a1,
1825
1829
  Rs as a2,
@@ -1833,37 +1837,38 @@ export {
1833
1837
  Ba as aa,
1834
1838
  pt as ab,
1835
1839
  Vs as ac,
1836
- ho as ad,
1840
+ _o as ad,
1837
1841
  vo as ae,
1838
- ie as af,
1839
- go as ag,
1842
+ ho as af,
1843
+ X as ag,
1840
1844
  po as ah,
1841
- ei as ai,
1842
- ro as aj,
1843
- To as b,
1844
- Ao as c,
1845
- Ro as d,
1845
+ yo as ai,
1846
+ ei as aj,
1847
+ ro as ak,
1848
+ Io as b,
1849
+ So as c,
1850
+ Oo as d,
1846
1851
  no as e,
1847
- Io as f,
1848
- So as g,
1849
- bo as h,
1850
- Oo as i,
1851
- wo as j,
1852
- xo as k,
1853
- Po as l,
1854
- Do as m,
1852
+ Co as f,
1853
+ To as g,
1854
+ qo as h,
1855
+ wo as i,
1856
+ Po as j,
1857
+ Mo as k,
1858
+ Do as l,
1859
+ xo as m,
1855
1860
  Za as n,
1856
1861
  fo as o,
1857
1862
  lo as p,
1858
- yo as q,
1859
- jo as r,
1863
+ bo as q,
1864
+ Ro as r,
1860
1865
  Ws as s,
1861
- qo as t,
1862
- mo as u,
1866
+ mo as t,
1867
+ Ao as u,
1863
1868
  eo as v,
1864
1869
  Qs as w,
1865
- _o as x,
1870
+ go as x,
1866
1871
  Xs as y,
1867
1872
  Ys as z
1868
1873
  };
1869
- //# sourceMappingURL=FlowYamlUtils-DhqWzMk-.js.map
1874
+ //# sourceMappingURL=FlowYamlUtils-E3EN5bb4.js.map