x-block-lib 0.6.29 → 0.6.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +200 -195
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ function Jc(e, t, n = {}) {
47
47
  }, l = Be(() => {
48
48
  const h = ja(e);
49
49
  return Array.isArray(h) ? h.map((g) => Ks(g)) : [Ks(h)];
50
- }), d = Rt(
50
+ }), _ = Rt(
51
51
  l,
52
52
  (h) => {
53
53
  if (c(), a.value && o) {
@@ -57,12 +57,12 @@ function Jc(e, t, n = {}) {
57
57
  }
58
58
  },
59
59
  { immediate: !0, flush: "post" }
60
- ), _ = () => {
61
- c(), d();
60
+ ), d = () => {
61
+ c(), _();
62
62
  };
63
- return Gc(_), {
63
+ return Gc(d), {
64
64
  isSupported: a,
65
- stop: _
65
+ stop: d
66
66
  };
67
67
  }
68
68
  C([
@@ -293,12 +293,12 @@ var _r = typeof exports == "object" && exports && !exports.nodeType && exports,
293
293
  }(), Zs = En && En.isTypedArray, dr = Zs ? us(Zs) : fp, gp = Object.prototype, Tp = gp.hasOwnProperty;
294
294
  function Ep(e, t) {
295
295
  var n = Tn(e), o = !n && Fu(e), i = !n && !o && No(e), s = !n && !o && !i && dr(e), a = n || o || i || s, c = a ? Uu(e.length, String) : [], l = c.length;
296
- for (var d in e)
297
- Tp.call(e, d) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
298
- (d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
299
- i && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
300
- s && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
301
- Su(d, l))) && c.push(d);
296
+ for (var _ in e)
297
+ Tp.call(e, _) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
298
+ (_ == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
299
+ i && (_ == "offset" || _ == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
300
+ s && (_ == "buffer" || _ == "byteLength" || _ == "byteOffset") || // Skip index properties.
301
+ Su(_, l))) && c.push(_);
302
302
  return c;
303
303
  }
304
304
  function hr(e, t) {
@@ -848,11 +848,11 @@ function Ao(e, t, n, o, i, s) {
848
848
  if (c)
849
849
  a = ld(e);
850
850
  else {
851
- var l = st(e), d = l == Lr || l == Gd;
851
+ var l = st(e), _ = l == Lr || l == Gd;
852
852
  if (No(e))
853
853
  return W_(e);
854
- if (l == Br || l == Sr || d && !i)
855
- a = d ? {} : Dd(e);
854
+ if (l == Br || l == Sr || _ && !i)
855
+ a = _ ? {} : Dd(e);
856
856
  else {
857
857
  if (!ce[l])
858
858
  return i ? e : {};
@@ -860,9 +860,9 @@ function Ao(e, t, n, o, i, s) {
860
860
  }
861
861
  }
862
862
  s || (s = new It());
863
- var _ = s.get(e);
864
- if (_)
865
- return _;
863
+ var d = s.get(e);
864
+ if (d)
865
+ return d;
866
866
  s.set(e, a), Yd(e) ? e.forEach(function(T) {
867
867
  a.add(Ao(T, t, n, T, e, s));
868
868
  }) : Ud(e) && e.forEach(function(T, O) {
@@ -905,9 +905,9 @@ function Mr(e, t, n, o, i, s) {
905
905
  var a = n & gh, c = e.length, l = t.length;
906
906
  if (c != l && !(a && l > c))
907
907
  return !1;
908
- var d = s.get(e), _ = s.get(t);
909
- if (d && _)
910
- return d == t && _ == e;
908
+ var _ = s.get(e), d = s.get(t);
909
+ if (_ && d)
910
+ return _ == t && d == e;
911
911
  var h = -1, g = !0, T = n & Th ? new Lo() : void 0;
912
912
  for (s.set(e, t), s.set(t, e); ++h < c; ) {
913
913
  var O = e[h], v = t[h];
@@ -970,12 +970,12 @@ function Dh(e, t, n, o, i, s, a) {
970
970
  var l = o & vh;
971
971
  if (c || (c = Ah), e.size != t.size && !l)
972
972
  return !1;
973
- var d = a.get(e);
974
- if (d)
975
- return d == t;
973
+ var _ = a.get(e);
974
+ if (_)
975
+ return _ == t;
976
976
  o |= yh, a.set(e, t);
977
- var _ = Mr(c(e), c(t), o, i, s, a);
978
- return a.delete(e), _;
977
+ var d = Mr(c(e), c(t), o, i, s, a);
978
+ return a.delete(e), d;
979
979
  case Bh:
980
980
  if (Ai)
981
981
  return Ai.call(e) == Ai.call(t);
@@ -984,8 +984,8 @@ function Dh(e, t, n, o, i, s, a) {
984
984
  }
985
985
  var Ph = 1, xh = Object.prototype, Uh = xh.hasOwnProperty;
986
986
  function wh(e, t, n, o, i, s) {
987
- var a = n & Ph, c = $i(e), l = c.length, d = $i(t), _ = d.length;
988
- if (l != _ && !a)
987
+ var a = n & Ph, c = $i(e), l = c.length, _ = $i(t), d = _.length;
988
+ if (l != d && !a)
989
989
  return !1;
990
990
  for (var h = l; h--; ) {
991
991
  var g = c[h];
@@ -1016,18 +1016,18 @@ function wh(e, t, n, o, i, s) {
1016
1016
  }
1017
1017
  var Vh = 1, ma = "[object Arguments]", ga = "[object Array]", _o = "[object Object]", Yh = Object.prototype, Ta = Yh.hasOwnProperty;
1018
1018
  function Fh(e, t, n, o, i, s) {
1019
- var a = Tn(e), c = Tn(t), l = a ? ga : st(e), d = c ? ga : st(t);
1020
- l = l == ma ? _o : l, d = d == ma ? _o : d;
1021
- var _ = l == _o, h = d == _o, g = l == d;
1019
+ var a = Tn(e), c = Tn(t), l = a ? ga : st(e), _ = c ? ga : st(t);
1020
+ l = l == ma ? _o : l, _ = _ == ma ? _o : _;
1021
+ var d = l == _o, h = _ == _o, g = l == _;
1022
1022
  if (g && No(e)) {
1023
1023
  if (!No(t))
1024
1024
  return !1;
1025
- a = !0, _ = !1;
1025
+ a = !0, d = !1;
1026
1026
  }
1027
- if (g && !_)
1027
+ if (g && !d)
1028
1028
  return s || (s = new It()), a || dr(e) ? Mr(e, t, n, o, i, s) : Dh(e, t, l, n, o, i, s);
1029
1029
  if (!(n & Vh)) {
1030
- var T = _ && Ta.call(e, "__wrapped__"), O = h && Ta.call(t, "__wrapped__");
1030
+ var T = d && Ta.call(e, "__wrapped__"), O = h && Ta.call(t, "__wrapped__");
1031
1031
  if (T || O) {
1032
1032
  var v = T ? e.value() : e, G = O ? t.value() : t;
1033
1033
  return s || (s = new It()), i(v, G, n, o, s);
@@ -1185,14 +1185,14 @@ function ds(e, t, n, o) {
1185
1185
  function We(e, t) {
1186
1186
  try {
1187
1187
  x.disable(), t.forEach((n) => {
1188
- var d;
1189
- const [o, i, s, a] = n, c = (d = e.getInput(o)) == null ? void 0 : d.connection;
1188
+ var _;
1189
+ const [o, i, s, a] = n, c = (_ = e.getInput(o)) == null ? void 0 : _.connection;
1190
1190
  if (!c)
1191
1191
  return;
1192
1192
  let l = c.targetBlock();
1193
1193
  if (l) {
1194
- const _ = l;
1195
- if (_ && _.key === i && _.name === s)
1194
+ const d = l;
1195
+ if (d && d.key === i && d.name === s)
1196
1196
  return;
1197
1197
  l.dispose();
1198
1198
  }
@@ -1260,15 +1260,15 @@ function jh(e) {
1260
1260
  }), _e(t);
1261
1261
  }
1262
1262
  function Xn(e, t) {
1263
- var l, d;
1263
+ var l, _;
1264
1264
  const { props: n } = B.runtime, { type: o, subtype: i } = B.app.activeObject, s = Xo(o, i);
1265
1265
  if (!s)
1266
1266
  return console.assert(!1, "invalid prop tag", o, i), [];
1267
1267
  if (!we[e])
1268
1268
  return [];
1269
1269
  const c = [];
1270
- return (d = (l = n[e]) == null ? void 0 : l[s]) == null || d.forEach((_) => {
1271
- t && (!_.raw.ui || _.raw.readonly || _.keys === "alias") || c.push(_);
1270
+ return (_ = (l = n[e]) == null ? void 0 : l[s]) == null || _.forEach((d) => {
1271
+ t && (!d.raw.ui || d.raw.readonly || d.keys === "alias") || c.push(d);
1272
1272
  }), c;
1273
1273
  }
1274
1274
  function Mt(e, t) {
@@ -1370,12 +1370,12 @@ function Xh(e) {
1370
1370
  }), _e(t);
1371
1371
  }
1372
1372
  function zn(e, t) {
1373
- var d, _;
1373
+ var _, d;
1374
1374
  const { props: n } = B.runtime, { type: o, subtype: i } = B.app.activeObject, s = [], a = Xo(o, i);
1375
1375
  if (!a)
1376
1376
  return console.assert(!1, "invalid prop tag", o, i), s;
1377
1377
  const c = He(e);
1378
- return c ? we[c.key] ? ((_ = (d = n[c.key]) == null ? void 0 : d[a]) == null || _.forEach((h) => {
1378
+ return c ? we[c.key] ? ((d = (_ = n[c.key]) == null ? void 0 : _[a]) == null || d.forEach((h) => {
1379
1379
  t && (!h.raw.ui || h.raw.readonly || h.keys === "alias") || s.push(h);
1380
1380
  }), s) : (console.assert(!1, "invalid element", c.key), s) : s;
1381
1381
  }
@@ -1388,7 +1388,7 @@ function Dt(e, t) {
1388
1388
  }
1389
1389
  const a = He(e);
1390
1390
  if (a)
1391
- return (l = (c = n[a.key]) == null ? void 0 : c[s]) == null ? void 0 : l.find((d) => d.keys === t);
1391
+ return (l = (c = n[a.key]) == null ? void 0 : c[s]) == null ? void 0 : l.find((_) => _.keys === t);
1392
1392
  }
1393
1393
  function Hr(e, t) {
1394
1394
  const { i18n: n } = B.base, o = [];
@@ -1965,31 +1965,31 @@ const nf = (e, t) => {
1965
1965
  return;
1966
1966
  let s = this.value;
1967
1967
  s || (s = void 0);
1968
- const a = t.find((d) => d.validator(s));
1968
+ const a = t.find((_) => _.validator(s));
1969
1969
  if (!a)
1970
1970
  return;
1971
1971
  i.removeField("VALUE", !0), i.removeField("SUFFIX", !0);
1972
1972
  let c, l;
1973
1973
  if (a.ui === "pixelInput") {
1974
- const d = xc(this.value) ?? 0;
1974
+ const _ = xc(this.value) ?? 0;
1975
1975
  c = new Fi(
1976
- d,
1976
+ _,
1977
1977
  a.min,
1978
1978
  a.max,
1979
1979
  a.precision ? 1 / Math.pow(10, a.precision) : null,
1980
- (_) => {
1981
- this.value = _ + "px";
1980
+ (d) => {
1981
+ this.value = d + "px";
1982
1982
  }
1983
1983
  ), l = "px";
1984
1984
  } else if (a.ui === "percentInput") {
1985
- const d = Uc(this.value) ?? 0;
1985
+ const _ = Uc(this.value) ?? 0;
1986
1986
  c = new Fi(
1987
- d,
1987
+ _,
1988
1988
  a.min,
1989
1989
  a.max,
1990
1990
  a.precision ? 1 / Math.pow(10, a.precision) : null,
1991
- (_) => {
1992
- this.value = _ + "%";
1991
+ (d) => {
1992
+ this.value = d + "%";
1993
1993
  }
1994
1994
  ), l = "%";
1995
1995
  }
@@ -3858,16 +3858,16 @@ r.forBlock.call_func_v1 = function(e) {
3858
3858
  r.valueToCode(o, "INPUT" + g, p.ATOMIC)
3859
3859
  );
3860
3860
  const c = `[${a.join(", ")}]`, l = o.space.name + "/" + o.func.name;
3861
- let d = "";
3861
+ let _ = "";
3862
3862
  o.func.outputs.forEach(({ name: g }, T) => {
3863
- d += `${t}${g} = result[${T}];
3863
+ _ += `${t}${g} = result[${T}];
3864
3864
  `;
3865
3865
  });
3866
- const _ = r.statementToCode(o, "CALLBACK");
3866
+ const d = r.statementToCode(o, "CALLBACK");
3867
3867
  return `{
3868
3868
  var result = __callFuncV1__(${i}, ${s}, ${c}, __getEnv__(), ${l});
3869
- ${d}
3870
3869
  ${_}
3870
+ ${d}
3871
3871
  }
3872
3872
  `;
3873
3873
  };
@@ -4002,12 +4002,12 @@ r.forBlock.call_func_internal_v1 = function(e) {
4002
4002
  r.valueToCode(o, "INPUT" + g, p.ATOMIC)
4003
4003
  );
4004
4004
  const c = `[${a.join(", ")}]`, l = o.space.name + "/" + o.func.name;
4005
- let d = "";
4005
+ let _ = "";
4006
4006
  o.func.outputs.forEach(({ name: g }, T) => {
4007
- d += `${t}${g} = result[${T}];
4007
+ _ += `${t}${g} = result[${T}];
4008
4008
  `;
4009
4009
  });
4010
- const _ = r.statementToCode(o, "CALLBACK");
4010
+ const d = r.statementToCode(o, "CALLBACK");
4011
4011
  return `{
4012
4012
  var result = __callFuncInternalV1__(${i}, ${s}, ${c});
4013
4013
  var success = result.success;
@@ -4016,8 +4016,8 @@ r.forBlock.call_func_internal_v1 = function(e) {
4016
4016
  if (!success) {
4017
4017
  throw 'call func<${l}> failed, reason: ' + message;
4018
4018
  }
4019
- ${d}
4020
4019
  ${_}
4020
+ ${d}
4021
4021
  }
4022
4022
  `;
4023
4023
  };
@@ -4891,8 +4891,8 @@ S.select_column_v1 = Kf;
4891
4891
  r.forBlock.select_column_v1 = function(e) {
4892
4892
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
4893
4893
  for (let l = 0; l < n.itemCount_; l++) {
4894
- const d = n.getFieldValue("COLUMN" + l), _ = n.getFieldValue("ALIAS" + l);
4895
- s.push({ name: d, alias: _ });
4894
+ const _ = n.getFieldValue("COLUMN" + l), d = n.getFieldValue("ALIAS" + l);
4895
+ s.push({ name: _, alias: d });
4896
4896
  }
4897
4897
  const a = JSON.stringify(s);
4898
4898
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
@@ -5212,8 +5212,8 @@ S.update_column_v1 = jf;
5212
5212
  r.forBlock.update_column_v1 = function(e) {
5213
5213
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
5214
5214
  for (let l = 0; l < n.itemCount_; l++) {
5215
- const d = n.getFieldValue("COLUMN" + l), _ = r.valueToCode(n, "ADD" + l, p.ATOMIC) || null;
5216
- s.push({ name: d, value: _ });
5215
+ const _ = n.getFieldValue("COLUMN" + l), d = r.valueToCode(n, "ADD" + l, p.ATOMIC) || null;
5216
+ s.push({ name: _, value: d });
5217
5217
  }
5218
5218
  const a = JSON.stringify(s);
5219
5219
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
@@ -10016,7 +10016,7 @@ const ti = {
10016
10016
  variant: "outlined",
10017
10017
  density: "comfortable",
10018
10018
  icon: X(Vc),
10019
- onClick: s[0] || (s[0] = (d) => X(Ze).emit("cleanWorkspace"))
10019
+ onClick: s[0] || (s[0] = (_) => X(Ze).emit("cleanWorkspace"))
10020
10020
  }), null, 16, ["icon"])
10021
10021
  ]),
10022
10022
  _: 1
@@ -10294,26 +10294,26 @@ function gt() {
10294
10294
  }
10295
10295
  function ke(e, t, n, o, i) {
10296
10296
  if (!(!e.getBoundingClientRect && e !== window)) {
10297
- var s, a, c, l, d, _, h;
10298
- if (e !== window && e.parentNode && e !== gt() ? (s = e.getBoundingClientRect(), a = s.top, c = s.left, l = s.bottom, d = s.right, _ = s.height, h = s.width) : (a = 0, c = 0, l = window.innerHeight, d = window.innerWidth, _ = window.innerHeight, h = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !Nt))
10297
+ var s, a, c, l, _, d, h;
10298
+ if (e !== window && e.parentNode && e !== gt() ? (s = e.getBoundingClientRect(), a = s.top, c = s.left, l = s.bottom, _ = s.right, d = s.height, h = s.width) : (a = 0, c = 0, l = window.innerHeight, _ = window.innerWidth, d = window.innerHeight, h = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !Nt))
10299
10299
  do
10300
10300
  if (i && i.getBoundingClientRect && (D(i, "transform") !== "none" || n && D(i, "position") !== "static")) {
10301
10301
  var g = i.getBoundingClientRect();
10302
- a -= g.top + parseInt(D(i, "border-top-width")), c -= g.left + parseInt(D(i, "border-left-width")), l = a + s.height, d = c + s.width;
10302
+ a -= g.top + parseInt(D(i, "border-top-width")), c -= g.left + parseInt(D(i, "border-left-width")), l = a + s.height, _ = c + s.width;
10303
10303
  break;
10304
10304
  }
10305
10305
  while (i = i.parentNode);
10306
10306
  if (o && e !== window) {
10307
10307
  var T = gn(i || e), O = T && T.a, v = T && T.d;
10308
- T && (a /= v, c /= O, h /= O, _ /= v, l = a + _, d = c + h);
10308
+ T && (a /= v, c /= O, h /= O, d /= v, l = a + d, _ = c + h);
10309
10309
  }
10310
10310
  return {
10311
10311
  top: a,
10312
10312
  left: c,
10313
10313
  bottom: l,
10314
- right: d,
10314
+ right: _,
10315
10315
  width: h,
10316
- height: _
10316
+ height: d
10317
10317
  };
10318
10318
  }
10319
10319
  }
@@ -10423,8 +10423,8 @@ function ml(e, t, n) {
10423
10423
  return Array.from(e.children).forEach(function(i) {
10424
10424
  var s, a, c, l;
10425
10425
  if (!(!it(i, t.draggable, e, !1) || i.animated || i === n)) {
10426
- var d = ke(i);
10427
- o.left = Math.min((s = o.left) !== null && s !== void 0 ? s : 1 / 0, d.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, d.top), o.right = Math.max((c = o.right) !== null && c !== void 0 ? c : -1 / 0, d.right), o.bottom = Math.max((l = o.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
10426
+ var _ = ke(i);
10427
+ o.left = Math.min((s = o.left) !== null && s !== void 0 ? s : 1 / 0, _.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, _.top), o.right = Math.max((c = o.right) !== null && c !== void 0 ? c : -1 / 0, _.right), o.bottom = Math.max((l = o.bottom) !== null && l !== void 0 ? l : -1 / 0, _.bottom);
10428
10428
  }
10429
10429
  }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
10430
10430
  }
@@ -10467,9 +10467,9 @@ function Eg() {
10467
10467
  }
10468
10468
  var i = !1, s = 0;
10469
10469
  e.forEach(function(a) {
10470
- var c = 0, l = a.target, d = l.fromRect, _ = ke(l), h = l.prevFromRect, g = l.prevToRect, T = a.rect, O = gn(l, !0);
10471
- O && (_.top -= O.f, _.left -= O.e), l.toRect = _, l.thisAnimationDuration && Ni(h, _) && !Ni(d, _) && // Make sure animatingRect is on line between toRect & fromRect
10472
- (T.top - _.top) / (T.left - _.left) === (d.top - _.top) / (d.left - _.left) && (c = vg(T, h, g, o.options)), Ni(_, d) || (l.prevFromRect = d, l.prevToRect = _, c || (c = o.options.animation), o.animate(l, T, _, c)), c && (i = !0, s = Math.max(s, c), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
10470
+ var c = 0, l = a.target, _ = l.fromRect, d = ke(l), h = l.prevFromRect, g = l.prevToRect, T = a.rect, O = gn(l, !0);
10471
+ O && (d.top -= O.f, d.left -= O.e), l.toRect = d, l.thisAnimationDuration && Ni(h, d) && !Ni(_, d) && // Make sure animatingRect is on line between toRect & fromRect
10472
+ (T.top - d.top) / (T.left - d.left) === (_.top - d.top) / (_.left - d.left) && (c = vg(T, h, g, o.options)), Ni(d, _) || (l.prevFromRect = _, l.prevToRect = d, c || (c = o.options.animation), o.animate(l, T, d, c)), c && (i = !0, s = Math.max(s, c), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
10473
10473
  l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
10474
10474
  }, c), l.thisAnimationDuration = c);
10475
10475
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -10479,8 +10479,8 @@ function Eg() {
10479
10479
  animate: function(n, o, i, s) {
10480
10480
  if (s) {
10481
10481
  D(n, "transition", ""), D(n, "transform", "");
10482
- var a = gn(this.el), c = a && a.a, l = a && a.d, d = (o.left - i.left) / (c || 1), _ = (o.top - i.top) / (l || 1);
10483
- n.animatingX = !!d, n.animatingY = !!_, D(n, "transform", "translate3d(" + d + "px," + _ + "px,0)"), this.forRepaintDummy = Ag(n), D(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), D(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
10482
+ var a = gn(this.el), c = a && a.a, l = a && a.d, _ = (o.left - i.left) / (c || 1), d = (o.top - i.top) / (l || 1);
10483
+ n.animatingX = !!_, n.animatingY = !!d, D(n, "transform", "translate3d(" + _ + "px," + d + "px,0)"), this.forRepaintDummy = Ag(n), D(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), D(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
10484
10484
  D(n, "transition", ""), D(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
10485
10485
  }, s);
10486
10486
  }
@@ -10546,13 +10546,13 @@ var ln = [], Si = {
10546
10546
  }
10547
10547
  };
10548
10548
  function yg(e) {
10549
- var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, c = e.fromEl, l = e.oldIndex, d = e.newIndex, _ = e.oldDraggableIndex, h = e.newDraggableIndex, g = e.originalEvent, T = e.putSortable, O = e.extraEventProperties;
10549
+ var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, c = e.fromEl, l = e.oldIndex, _ = e.newIndex, d = e.oldDraggableIndex, h = e.newDraggableIndex, g = e.originalEvent, T = e.putSortable, O = e.extraEventProperties;
10550
10550
  if (t = t || n && n[Qe], !!t) {
10551
10551
  var v, G = t.options, j = "on" + o.charAt(0).toUpperCase() + o.substr(1);
10552
10552
  window.CustomEvent && !Nt && !to ? v = new CustomEvent(o, {
10553
10553
  bubbles: !0,
10554
10554
  cancelable: !0
10555
- }) : (v = document.createEvent("Event"), v.initEvent(o, !0, !0)), v.to = a || n, v.from = c || n, v.item = i || n, v.clone = s, v.oldIndex = l, v.newIndex = d, v.oldDraggableIndex = _, v.newDraggableIndex = h, v.originalEvent = g, v.pullMode = T ? T.lastPutMode : void 0;
10555
+ }) : (v = document.createEvent("Event"), v.initEvent(o, !0, !0)), v.to = a || n, v.from = c || n, v.item = i || n, v.clone = s, v.oldIndex = l, v.newIndex = _, v.oldDraggableIndex = d, v.newDraggableIndex = h, v.originalEvent = g, v.pullMode = T ? T.lastPutMode : void 0;
10556
10556
  var Q = Et(Et({}, O), no.getEventProperties(o, t));
10557
10557
  for (var ne in Q)
10558
10558
  v[ne] = Q[ne];
@@ -10615,16 +10615,16 @@ var A, ge, F, de, Wt, Io, fe, Pt, fn, qe, Kn, Bt, fo, xe, _n = !1, Vo = !1, Yo =
10615
10615
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
10616
10616
  }
10617
10617
  }(), Tl = function(e, t) {
10618
- var n = D(e), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = In(e, 0, t), s = In(e, 1, t), a = i && D(i), c = s && D(s), l = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + ke(i).width, d = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + ke(s).width;
10618
+ var n = D(e), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = In(e, 0, t), s = In(e, 1, t), a = i && D(i), c = s && D(s), l = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + ke(i).width, _ = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + ke(s).width;
10619
10619
  if (n.display === "flex")
10620
10620
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
10621
10621
  if (n.display === "grid")
10622
10622
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
10623
10623
  if (i && a.float && a.float !== "none") {
10624
- var _ = a.float === "left" ? "left" : "right";
10625
- return s && (c.clear === "both" || c.clear === _) ? "vertical" : "horizontal";
10624
+ var d = a.float === "left" ? "left" : "right";
10625
+ return s && (c.clear === "both" || c.clear === d) ? "vertical" : "horizontal";
10626
10626
  }
10627
- return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || l >= o && n[Ya] === "none" || s && n[Ya] === "none" && l + d > o) ? "vertical" : "horizontal";
10627
+ return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || l >= o && n[Ya] === "none" || s && n[Ya] === "none" && l + _ > o) ? "vertical" : "horizontal";
10628
10628
  }, bg = function(e, t, n) {
10629
10629
  var o = n ? e.left : e.top, i = n ? e.right : e.bottom, s = n ? e.width : e.height, a = n ? t.left : t.top, c = n ? t.right : t.bottom, l = n ? t.width : t.height;
10630
10630
  return o === a || i === c || o + s / 2 === a + l / 2;
@@ -10640,16 +10640,16 @@ var A, ge, F, de, Wt, Io, fe, Pt, fn, qe, Kn, Bt, fo, xe, _n = !1, Vo = !1, Yo =
10640
10640
  }), n;
10641
10641
  }, El = function(e) {
10642
10642
  function t(i, s) {
10643
- return function(a, c, l, d) {
10644
- var _ = a.options.group.name && c.options.group.name && a.options.group.name === c.options.group.name;
10645
- if (i == null && (s || _))
10643
+ return function(a, c, l, _) {
10644
+ var d = a.options.group.name && c.options.group.name && a.options.group.name === c.options.group.name;
10645
+ if (i == null && (s || d))
10646
10646
  return !0;
10647
10647
  if (i == null || i === !1)
10648
10648
  return !1;
10649
10649
  if (s && i === "clone")
10650
10650
  return i;
10651
10651
  if (typeof i == "function")
10652
- return t(i(a, c, l, d), s)(a, c, l, d);
10652
+ return t(i(a, c, l, _), s)(a, c, l, _);
10653
10653
  var h = (s ? a : c).options.group.name;
10654
10654
  return i === !0 || typeof i == "string" && i === h || i.join && i.indexOf(h) > -1;
10655
10655
  };
@@ -10749,10 +10749,10 @@ P.prototype = /** @lends Sortable.prototype */
10749
10749
  },
10750
10750
  _onTapStart: function(e) {
10751
10751
  if (e.cancelable) {
10752
- var t = this, n = this.el, o = this.options, i = o.preventOnFilter, s = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, c = (a || e).target, l = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || c, d = o.filter;
10752
+ var t = this, n = this.el, o = this.options, i = o.preventOnFilter, s = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, c = (a || e).target, l = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || c, _ = o.filter;
10753
10753
  if (Pg(n), !A && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || o.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Yn && c && c.tagName.toUpperCase() === "SELECT") && (c = it(c, o.draggable, n, !1), !(c && c.animated) && Io !== c)) {
10754
- if (fn = et(c), Kn = et(c, o.draggable), typeof d == "function") {
10755
- if (d.call(this, e, c, this)) {
10754
+ if (fn = et(c), Kn = et(c, o.draggable), typeof _ == "function") {
10755
+ if (_.call(this, e, c, this)) {
10756
10756
  Ge({
10757
10757
  sortable: t,
10758
10758
  rootEl: l,
@@ -10765,11 +10765,11 @@ P.prototype = /** @lends Sortable.prototype */
10765
10765
  }), i && e.cancelable && e.preventDefault();
10766
10766
  return;
10767
10767
  }
10768
- } else if (d && (d = d.split(",").some(function(_) {
10769
- if (_ = it(l, _.trim(), n, !1), _)
10768
+ } else if (_ && (_ = _.split(",").some(function(d) {
10769
+ if (d = it(l, d.trim(), n, !1), d)
10770
10770
  return Ge({
10771
10771
  sortable: t,
10772
- rootEl: _,
10772
+ rootEl: d,
10773
10773
  name: "filter",
10774
10774
  targetEl: c,
10775
10775
  fromEl: n,
@@ -10777,7 +10777,7 @@ P.prototype = /** @lends Sortable.prototype */
10777
10777
  }), je("filter", t, {
10778
10778
  evt: e
10779
10779
  }), !0;
10780
- }), d)) {
10780
+ }), _)) {
10781
10781
  i && e.cancelable && e.preventDefault();
10782
10782
  return;
10783
10783
  }
@@ -10805,8 +10805,8 @@ P.prototype = /** @lends Sortable.prototype */
10805
10805
  name: "choose",
10806
10806
  originalEvent: e
10807
10807
  }), Je(A, s.chosenClass, !0);
10808
- }, s.ignore.split(",").forEach(function(d) {
10809
- _l(A, d.trim(), Mi);
10808
+ }, s.ignore.split(",").forEach(function(_) {
10809
+ _l(A, _.trim(), Mi);
10810
10810
  }), te(a, "dragover", jt), te(a, "mousemove", jt), te(a, "touchmove", jt), te(a, "mouseup", o._onDrop), te(a, "touchend", o._onDrop), te(a, "touchcancel", o._onDrop), Da && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), je("delayStart", this, {
10811
10811
  evt: e
10812
10812
  }), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(to || Nt))) {
@@ -10877,23 +10877,23 @@ P.prototype = /** @lends Sortable.prototype */
10877
10877
  },
10878
10878
  _onTouchMove: function(e) {
10879
10879
  if (Gt) {
10880
- var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = F && gn(F, !0), a = F && s && s.a, c = F && s && s.d, l = go && Fe && Ua(Fe), d = (i.clientX - Gt.clientX + o.x) / (a || 1) + (l ? l[0] - Ri[0] : 0) / (a || 1), _ = (i.clientY - Gt.clientY + o.y) / (c || 1) + (l ? l[1] - Ri[1] : 0) / (c || 1);
10880
+ var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = F && gn(F, !0), a = F && s && s.a, c = F && s && s.d, l = go && Fe && Ua(Fe), _ = (i.clientX - Gt.clientX + o.x) / (a || 1) + (l ? l[0] - Ri[0] : 0) / (a || 1), d = (i.clientY - Gt.clientY + o.y) / (c || 1) + (l ? l[1] - Ri[1] : 0) / (c || 1);
10881
10881
  if (!P.active && !_n) {
10882
10882
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
10883
10883
  return;
10884
10884
  this._onDragStart(e, !0);
10885
10885
  }
10886
10886
  if (F) {
10887
- s ? (s.e += d - (Li || 0), s.f += _ - (Bi || 0)) : s = {
10887
+ s ? (s.e += _ - (Li || 0), s.f += d - (Bi || 0)) : s = {
10888
10888
  a: 1,
10889
10889
  b: 0,
10890
10890
  c: 0,
10891
10891
  d: 1,
10892
- e: d,
10893
- f: _
10892
+ e: _,
10893
+ f: d
10894
10894
  };
10895
10895
  var h = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
10896
- D(F, "webkitTransform", h), D(F, "mozTransform", h), D(F, "msTransform", h), D(F, "transform", h), Li = d, Bi = _, ot = i;
10896
+ D(F, "webkitTransform", h), D(F, "mozTransform", h), D(F, "msTransform", h), D(F, "transform", h), Li = _, Bi = d, ot = i;
10897
10897
  }
10898
10898
  e.cancelable && e.preventDefault();
10899
10899
  }
@@ -10926,18 +10926,18 @@ P.prototype = /** @lends Sortable.prototype */
10926
10926
  },
10927
10927
  // Returns true - if no further action is needed (either inserted or another condition)
10928
10928
  _onDragOver: function(e) {
10929
- var t = this.el, n = e.target, o, i, s, a = this.options, c = a.group, l = P.active, d = fo === c, _ = a.sort, h = xe || l, g, T = this, O = !1;
10929
+ var t = this.el, n = e.target, o, i, s, a = this.options, c = a.group, l = P.active, _ = fo === c, d = a.sort, h = xe || l, g, T = this, O = !1;
10930
10930
  if (ts)
10931
10931
  return;
10932
10932
  function v(Xe, Ee) {
10933
10933
  je(Xe, T, Et({
10934
10934
  evt: e,
10935
- isOwner: d,
10935
+ isOwner: _,
10936
10936
  axis: g ? "vertical" : "horizontal",
10937
10937
  revert: s,
10938
10938
  dragRect: o,
10939
10939
  targetRect: i,
10940
- canSort: _,
10940
+ canSort: d,
10941
10941
  fromSortable: h,
10942
10942
  target: n,
10943
10943
  completed: j,
@@ -10953,7 +10953,7 @@ P.prototype = /** @lends Sortable.prototype */
10953
10953
  function j(Xe) {
10954
10954
  return v("dragOverCompleted", {
10955
10955
  insertion: Xe
10956
- }), Xe && (d ? l._hideClone() : l._showClone(T), T !== h && (Je(A, xe ? xe.options.ghostClass : l.options.ghostClass, !1), Je(A, a.ghostClass, !0)), xe !== T && T !== P.active ? xe = T : T === P.active && xe && (xe = null), h === T && (T._ignoreWhileAnimating = n), T.animateAll(function() {
10956
+ }), Xe && (_ ? l._hideClone() : l._showClone(T), T !== h && (Je(A, xe ? xe.options.ghostClass : l.options.ghostClass, !1), Je(A, a.ghostClass, !0)), xe !== T && T !== P.active ? xe = T : T === P.active && xe && (xe = null), h === T && (T._ignoreWhileAnimating = n), T.animateAll(function() {
10957
10957
  v("dragOverAnimationComplete"), T._ignoreWhileAnimating = null;
10958
10958
  }), T !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (n === A && !A.animated || n === t && !n.animated) && (cn = null), !a.dragoverBubble && !e.rootEl && n !== document && (A.parentNode[Qe]._isOutsideThisEl(e.target), !Xe && jt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), O = !0;
10959
10959
  }
@@ -10971,7 +10971,7 @@ P.prototype = /** @lends Sortable.prototype */
10971
10971
  return O;
10972
10972
  if (A.contains(e.target) || n.animated && n.animatingX && n.animatingY || T._ignoreWhileAnimating === n)
10973
10973
  return j(!1);
10974
- if (Vo = !1, l && !a.disabled && (d ? _ || (s = ge !== de) : xe === this || (this.lastPutMode = fo.checkPull(this, l, A, e)) && c.checkPut(this, l, A, e))) {
10974
+ if (Vo = !1, l && !a.disabled && (_ ? d || (s = ge !== de) : xe === this || (this.lastPutMode = fo.checkPull(this, l, A, e)) && c.checkPut(this, l, A, e))) {
10975
10975
  if (g = this._getDirection(e, n) === "vertical", o = ke(A), v("dragOverValid"), P.eventCanceled)
10976
10976
  return O;
10977
10977
  if (s)
@@ -11179,11 +11179,11 @@ function Ng(e) {
11179
11179
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
11180
11180
  }
11181
11181
  function To(e, t, n, o, i, s, a, c) {
11182
- var l, d = e[Qe], _ = d.options.onMove, h;
11182
+ var l, _ = e[Qe], d = _.options.onMove, h;
11183
11183
  return window.CustomEvent && !Nt && !to ? l = new CustomEvent("move", {
11184
11184
  bubbles: !0,
11185
11185
  cancelable: !0
11186
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = o, l.related = i || t, l.relatedRect = s || ke(t), l.willInsertAfter = c, l.originalEvent = a, e.dispatchEvent(l), _ && (h = _.call(d, l, a)), h;
11186
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = o, l.related = i || t, l.relatedRect = s || ke(t), l.willInsertAfter = c, l.originalEvent = a, e.dispatchEvent(l), d && (h = d.call(_, l, a)), h;
11187
11187
  }
11188
11188
  function Mi(e) {
11189
11189
  e.draggable = !1;
@@ -11200,17 +11200,17 @@ function Bg(e, t, n) {
11200
11200
  return t ? e.clientX > i.right + s || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + s || e.clientX > o.right && e.clientY > o.top;
11201
11201
  }
11202
11202
  function Rg(e, t, n, o, i, s, a, c) {
11203
- var l = o ? e.clientY : e.clientX, d = o ? n.height : n.width, _ = o ? n.top : n.left, h = o ? n.bottom : n.right, g = !1;
11203
+ var l = o ? e.clientY : e.clientX, _ = o ? n.height : n.width, d = o ? n.top : n.left, h = o ? n.bottom : n.right, g = !1;
11204
11204
  if (!a) {
11205
- if (c && Oo < d * i) {
11206
- if (!$n && (Hn === 1 ? l > _ + d * s / 2 : l < h - d * s / 2) && ($n = !0), $n)
11205
+ if (c && Oo < _ * i) {
11206
+ if (!$n && (Hn === 1 ? l > d + _ * s / 2 : l < h - _ * s / 2) && ($n = !0), $n)
11207
11207
  g = !0;
11208
- else if (Hn === 1 ? l < _ + Oo : l > h - Oo)
11208
+ else if (Hn === 1 ? l < d + Oo : l > h - Oo)
11209
11209
  return -Hn;
11210
- } else if (l > _ + d * (1 - i) / 2 && l < h - d * (1 - i) / 2)
11210
+ } else if (l > d + _ * (1 - i) / 2 && l < h - _ * (1 - i) / 2)
11211
11211
  return Mg(t);
11212
11212
  }
11213
- return g = g || a, g && (l < _ + d * s / 2 || l > h - d * s / 2) ? l > _ + d / 2 ? 1 : -1 : 0;
11213
+ return g = g || a, g && (l < d + _ * s / 2 || l > h - _ * s / 2) ? l > d + _ / 2 ? 1 : -1 : 0;
11214
11214
  }
11215
11215
  function Mg(e) {
11216
11216
  return et(A) < et(e) ? 1 : -1;
@@ -11334,8 +11334,8 @@ function Fa() {
11334
11334
  }
11335
11335
  var xi = dl(function(e, t, n, o) {
11336
11336
  if (t.scroll) {
11337
- var i = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, c = t.scrollSpeed, l = gt(), d = !1, _;
11338
- os !== n && (os = n, Co(), Dn = t.scroll, _ = t.scrollFn, Dn === !0 && (Dn = wt(n, !0)));
11337
+ var i = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, c = t.scrollSpeed, l = gt(), _ = !1, d;
11338
+ os !== n && (os = n, Co(), Dn = t.scroll, d = t.scrollFn, Dn === !0 && (Dn = wt(n, !0)));
11339
11339
  var h = 0, g = Dn;
11340
11340
  do {
11341
11341
  var T = g, O = ke(T), v = O.top, G = O.bottom, j = O.left, Q = O.right, ne = O.width, he = O.height, J = void 0, Se = void 0, $e = T.scrollWidth, R = T.scrollHeight, V = D(T), ae = T.scrollLeft, M = T.scrollTop;
@@ -11344,23 +11344,23 @@ var xi = dl(function(e, t, n, o) {
11344
11344
  if (!Ce[h])
11345
11345
  for (var ee = 0; ee <= h; ee++)
11346
11346
  Ce[ee] || (Ce[ee] = {});
11347
- (Ce[h].vx != K || Ce[h].vy != oe || Ce[h].el !== T) && (Ce[h].el = T, Ce[h].vx = K, Ce[h].vy = oe, clearInterval(Ce[h].pid), (K != 0 || oe != 0) && (d = !0, Ce[h].pid = setInterval((function() {
11347
+ (Ce[h].vx != K || Ce[h].vy != oe || Ce[h].el !== T) && (Ce[h].el = T, Ce[h].vx = K, Ce[h].vy = oe, clearInterval(Ce[h].pid), (K != 0 || oe != 0) && (_ = !0, Ce[h].pid = setInterval((function() {
11348
11348
  o && this.layer === 0 && P.active._onTouchMove(Ko);
11349
11349
  var ue = Ce[this.layer].vy ? Ce[this.layer].vy * c : 0, De = Ce[this.layer].vx ? Ce[this.layer].vx * c : 0;
11350
- typeof _ == "function" && _.call(P.dragged.parentNode[Qe], De, ue, e, Ko, Ce[this.layer].el) !== "continue" || hl(Ce[this.layer].el, De, ue);
11350
+ typeof d == "function" && d.call(P.dragged.parentNode[Qe], De, ue, e, Ko, Ce[this.layer].el) !== "continue" || hl(Ce[this.layer].el, De, ue);
11351
11351
  }).bind({
11352
11352
  layer: h
11353
11353
  }), 24))), h++;
11354
11354
  } while (t.bubbleScroll && g !== l && (g = wt(g, !1)));
11355
- is = d;
11355
+ is = _;
11356
11356
  }
11357
11357
  }, 30), yl = function(e) {
11358
11358
  var t = e.originalEvent, n = e.putSortable, o = e.dragEl, i = e.activeSortable, s = e.dispatchSortableEvent, a = e.hideGhostForTarget, c = e.unhideGhostForTarget;
11359
11359
  if (t) {
11360
11360
  var l = n || i;
11361
11361
  a();
11362
- var d = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, _ = document.elementFromPoint(d.clientX, d.clientY);
11363
- c(), l && !l.el.contains(_) && (s("spill"), this.onSpill({
11362
+ var _ = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, d = document.elementFromPoint(_.clientX, _.clientY);
11363
+ c(), l && !l.el.contains(d) && (s("spill"), this.onSpill({
11364
11364
  dragEl: o,
11365
11365
  putSortable: n
11366
11366
  }));
@@ -11428,15 +11428,15 @@ function Fg(...e) {
11428
11428
  Array.isArray(X(a)) || (c = a, a = null);
11429
11429
  let l = null;
11430
11430
  const {
11431
- immediate: d = !0,
11432
- clone: _ = Ug,
11431
+ immediate: _ = !0,
11432
+ clone: d = Ug,
11433
11433
  customUpdate: h
11434
11434
  } = (n = X(c)) != null ? n : {};
11435
11435
  function g(R) {
11436
11436
  var V;
11437
11437
  const { from: ae, oldIndex: M, item: K } = R;
11438
11438
  i = Array.from(ae.childNodes);
11439
- const oe = X((V = X(a)) == null ? void 0 : V[M]), ee = _(oe);
11439
+ const oe = X((V = X(a)) == null ? void 0 : V[M]), ee = d(oe);
11440
11440
  Ka(oe, ee), K[Ha] = ee;
11441
11441
  }
11442
11442
  function T(R) {
@@ -11550,7 +11550,7 @@ function Fg(...e) {
11550
11550
  closest: (...R) => l == null ? void 0 : l.closest(...R)
11551
11551
  }, Se = () => J == null ? void 0 : J.option("disabled", !0), $e = () => J == null ? void 0 : J.option("disabled", !1);
11552
11552
  return Vg(() => {
11553
- d && he();
11553
+ _ && he();
11554
11554
  }), wg(J.destroy), hn({ start: he, pause: Se, resume: $e }, J);
11555
11555
  }
11556
11556
  const ss = [
@@ -11620,24 +11620,24 @@ const ss = [
11620
11620
  props: Kg,
11621
11621
  emits: ["update:modelValue", ...ss],
11622
11622
  setup(e, { slots: t, emit: n, expose: o, attrs: i }) {
11623
- const s = ss.reduce((_, h) => {
11623
+ const s = ss.reduce((d, h) => {
11624
11624
  const g = `on${h.replace(/^\S/, (T) => T.toUpperCase())}`;
11625
- return _[g] = (...T) => n(h, ...T), _;
11625
+ return d[g] = (...T) => n(h, ...T), d;
11626
11626
  }, {}), a = Be(() => {
11627
- const _ = yc(e), { modelValue: h } = _, g = rl(_, ["modelValue"]), T = Object.entries(g).reduce((O, [v, G]) => {
11627
+ const d = yc(e), { modelValue: h } = d, g = rl(d, ["modelValue"]), T = Object.entries(g).reduce((O, [v, G]) => {
11628
11628
  const j = X(G);
11629
11629
  return j !== void 0 && (O[v] = j), O;
11630
11630
  }, {});
11631
11631
  return hn(hn({}, s), ng(hn(hn({}, i), T)));
11632
11632
  }), c = Be({
11633
11633
  get: () => e.modelValue,
11634
- set: (_) => n("update:modelValue", _)
11635
- }), l = Vt(), d = Ic(
11634
+ set: (d) => n("update:modelValue", d)
11635
+ }), l = Vt(), _ = Ic(
11636
11636
  Fg(e.target || l, c, a)
11637
11637
  );
11638
- return o(d), () => {
11639
- var _;
11640
- return Yi(e.tag || "div", { ref: l }, (_ = t == null ? void 0 : t.default) == null ? void 0 : _.call(t, d));
11638
+ return o(_), () => {
11639
+ var d;
11640
+ return Yi(e.tag || "div", { ref: l }, (d = t == null ? void 0 : t.default) == null ? void 0 : d.call(t, _));
11641
11641
  };
11642
11642
  }
11643
11643
  }), $g = { class: "text-subtitle-1 ml-6" }, Gg = /* @__PURE__ */ at({
@@ -11655,7 +11655,7 @@ const ss = [
11655
11655
  height: "48px",
11656
11656
  marginBottom: "1px",
11657
11657
  userSelect: "none"
11658
- })), d = Be(() => ({
11658
+ })), _ = Be(() => ({
11659
11659
  display: s.select ? "block" : "none",
11660
11660
  position: "absolute",
11661
11661
  top: "0px",
@@ -11665,7 +11665,7 @@ const ss = [
11665
11665
  border: "1px solid " + n.value,
11666
11666
  pointerEvents: "none"
11667
11667
  }));
11668
- return (_, h) => {
11668
+ return (d, h) => {
11669
11669
  const g = Me("v-spacer"), T = Me("v-icon"), O = Oc("ripple");
11670
11670
  return bc((Ne(), ut("div", {
11671
11671
  class: "d-flex align-center cursor-pointer",
@@ -11683,7 +11683,7 @@ const ss = [
11683
11683
  }, ["stop"]))
11684
11684
  }, null, 8, ["icon"]),
11685
11685
  pt("div", {
11686
- style: dt(d.value)
11686
+ style: dt(_.value)
11687
11687
  }, null, 4)
11688
11688
  ], 36)), [
11689
11689
  [O]
@@ -11700,13 +11700,13 @@ const ss = [
11700
11700
  },
11701
11701
  setup(e) {
11702
11702
  const { t } = Zn(), n = Vt([]), o = () => {
11703
- const _ = mt();
11704
- if (!_) {
11703
+ const d = mt();
11704
+ if (!d) {
11705
11705
  console.assert(!1);
11706
11706
  return;
11707
11707
  }
11708
11708
  const h = [];
11709
- _.getTopBlocks(!0).forEach((T) => {
11709
+ d.getTopBlocks(!0).forEach((T) => {
11710
11710
  var G;
11711
11711
  const O = T.id === ((G = un()) == null ? void 0 : G.id);
11712
11712
  let v = "<n/a>";
@@ -11732,43 +11732,43 @@ const ss = [
11732
11732
  tr(t("x-block-lib.msg.cannotOperateInLockedState"));
11733
11733
  return;
11734
11734
  }
11735
- const _ = [];
11735
+ const d = [];
11736
11736
  n.value.forEach(({ id: h }) => {
11737
- _.push(h);
11738
- }), i = _;
11739
- }, a = () => !e.lock, c = (_) => {
11737
+ d.push(h);
11738
+ }), i = d;
11739
+ }, a = () => !e.lock, c = (d) => {
11740
11740
  const h = mt();
11741
11741
  if (!h) {
11742
11742
  console.assert(!1);
11743
11743
  return;
11744
11744
  }
11745
- if (_.oldIndex === void 0 || _.newIndex === void 0) {
11745
+ if (d.oldIndex === void 0 || d.newIndex === void 0) {
11746
11746
  console.assert(!1);
11747
11747
  return;
11748
11748
  }
11749
- if (_.oldIndex === _.newIndex)
11749
+ if (d.oldIndex === d.newIndex)
11750
11750
  return;
11751
- const g = i[_.oldIndex], T = h.getBlockById(g);
11751
+ const g = i[d.oldIndex], T = h.getBlockById(g);
11752
11752
  if (!T) {
11753
11753
  console.assert(!1);
11754
11754
  return;
11755
11755
  }
11756
11756
  let O = "";
11757
- _.newIndex > _.oldIndex ? O = i[_.newIndex] : _.newIndex > 0 && (O = i[_.newIndex - 1]);
11757
+ d.newIndex > d.oldIndex ? O = i[d.newIndex] : d.newIndex > 0 && (O = i[d.newIndex - 1]);
11758
11758
  let v = -10;
11759
11759
  O !== "" && (v = h.getBlockById(O).getRelativeToSurfaceXY().y + 10);
11760
11760
  const G = T.getRelativeToSurfaceXY();
11761
11761
  T.moveTo(new $.Coordinate(G.x, v)), Ze.emit("cleanWorkspace"), tl();
11762
- }, { open: l } = qn("blocklyNavigatorListDlg"), d = async (_) => {
11762
+ }, { open: l } = qn("blocklyNavigatorListDlg"), _ = async (d) => {
11763
11763
  const h = mt();
11764
11764
  if (!h) {
11765
11765
  console.assert(!1);
11766
11766
  return;
11767
11767
  }
11768
- const g = h.getBlockById(_);
11769
- er.setSelected(g), ms(_), l.value = !1;
11768
+ const g = h.getBlockById(d);
11769
+ er.setSelected(g), ms(d), l.value = !1;
11770
11770
  };
11771
- return (_, h) => n.value.length > 0 ? (Ne(), ht(X(Hg), {
11771
+ return (d, h) => n.value.length > 0 ? (Ne(), ht(X(Hg), {
11772
11772
  key: 0,
11773
11773
  modelValue: n.value,
11774
11774
  "onUpdate:modelValue": h[0] || (h[0] = (g) => n.value = g),
@@ -11785,7 +11785,7 @@ const ss = [
11785
11785
  key: g.id,
11786
11786
  title: g.name,
11787
11787
  select: g.select,
11788
- onXClick: d
11788
+ onXClick: _
11789
11789
  }, null, 8, ["id", "title", "select"]))), 128))
11790
11790
  ]),
11791
11791
  _: 1
@@ -11831,39 +11831,39 @@ const ss = [
11831
11831
  },
11832
11832
  setup(e) {
11833
11833
  const { t } = Zn(), n = wc(), { sysBarAvail: o } = nr(), { backgroundColor1: i } = Wo(), s = Be(() => {
11834
- let d = "100%";
11835
- return n.mdAndUp.value && (d = "400px"), {
11834
+ let _ = "100%";
11835
+ return n.mdAndUp.value && (_ = "400px"), {
11836
11836
  background: i.value,
11837
- width: d,
11837
+ width: _,
11838
11838
  height: "100%"
11839
11839
  };
11840
11840
  }), a = Be(() => {
11841
- let d = 48;
11842
- return o.value && (d += 24), {
11841
+ let _ = 48;
11842
+ return o.value && (_ += 24), {
11843
11843
  position: "relative",
11844
- height: `calc(100% - ${d}px)`
11844
+ height: `calc(100% - ${_}px)`
11845
11845
  };
11846
11846
  }), c = Be(() => ({
11847
11847
  height: "60px"
11848
11848
  })), { open: l } = qn("blocklyNavigatorListDlg");
11849
- return (d, _) => {
11849
+ return (_, d) => {
11850
11850
  const h = Me("v-sheet"), g = Me("v-btn"), T = Me("v-spacer"), O = Me("v-dialog"), v = Me("v-tooltip");
11851
11851
  return Ne(), ut(Xa, null, [
11852
11852
  Ie(O, {
11853
11853
  modelValue: X(l),
11854
- "onUpdate:modelValue": _[3] || (_[3] = (G) => xn(l) ? l.value = G : null),
11854
+ "onUpdate:modelValue": d[3] || (d[3] = (G) => xn(l) ? l.value = G : null),
11855
11855
  transition: "scroll-x-reverse-transition",
11856
11856
  persistent: "",
11857
11857
  "no-click-animation": "",
11858
11858
  fullscreen: "",
11859
11859
  eager: "",
11860
- onKeydown: _[4] || (_[4] = za(Un((G) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11860
+ onKeydown: d[4] || (d[4] = za(Un((G) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11861
11861
  }, {
11862
11862
  default: ft(() => [
11863
11863
  pt("div", {
11864
11864
  class: "w-100 h-100 d-flex flex-row-reverse",
11865
- onClick: _[1] || (_[1] = Un((G) => l.value = !1, ["self"])),
11866
- onContextmenu: _[2] || (_[2] = Un((G) => l.value = !1, ["self", "prevent"]))
11865
+ onClick: d[1] || (d[1] = Un((G) => l.value = !1, ["self"])),
11866
+ onContextmenu: d[2] || (d[2] = Un((G) => l.value = !1, ["self", "prevent"]))
11867
11867
  }, [
11868
11868
  pt("div", {
11869
11869
  class: "elevation-2",
@@ -11884,7 +11884,7 @@ const ss = [
11884
11884
  variant: "text",
11885
11885
  density: "comfortable",
11886
11886
  icon: X(or),
11887
- onClick: _[0] || (_[0] = (G) => l.value = !1)
11887
+ onClick: d[0] || (d[0] = (G) => l.value = !1)
11888
11888
  }, null, 8, ["icon"]),
11889
11889
  pt("span", qg, Go(X(t)("x-block-lib.navigator")), 1),
11890
11890
  Ie(T)
@@ -11895,10 +11895,10 @@ const ss = [
11895
11895
  class: "overflow-y-auto",
11896
11896
  style: dt(a.value)
11897
11897
  }, [
11898
- d.type === "list" ? (Ne(), ht(zg, {
11898
+ _.type === "list" ? (Ne(), ht(zg, {
11899
11899
  key: 0,
11900
- lock: d.lock
11901
- }, null, 8, ["lock"])) : d.type === "tree" ? (Ne(), ht(Jg, { key: 1 })) : Xt("", !0),
11900
+ lock: _.lock
11901
+ }, null, 8, ["lock"])) : _.type === "tree" ? (Ne(), ht(Jg, { key: 1 })) : Xt("", !0),
11902
11902
  pt("div", {
11903
11903
  style: dt(c.value)
11904
11904
  }, null, 4)
@@ -11916,7 +11916,7 @@ const ss = [
11916
11916
  variant: "outlined",
11917
11917
  density: "comfortable",
11918
11918
  icon: X($c),
11919
- onClick: _[5] || (_[5] = (j) => l.value = !0)
11919
+ onClick: d[5] || (d[5] = (j) => l.value = !0)
11920
11920
  }), null, 16, ["icon"])
11921
11921
  ]),
11922
11922
  _: 1
@@ -12002,15 +12002,20 @@ function oT(e, t) {
12002
12002
  a = "json_number_v1";
12003
12003
  else if (l === "boolean")
12004
12004
  a = "json_boolean_v1";
12005
- else {
12006
- console.assert(!1);
12005
+ else
12007
12006
  return;
12008
- }
12009
12007
  }
12010
12008
  const c = t.newBlock(a);
12011
- if (c.initSvg(), c.render(), s.connect(c.outputConnection), a === "json_map_v1")
12012
- console.assert(!1);
12013
- else if (a === "json_array_v1") {
12009
+ if (c.initSvg(), c.render(), s.connect(c.outputConnection), a === "json_map_v1") {
12010
+ const l = [];
12011
+ for (const _ in i)
12012
+ l.push(_);
12013
+ c.initData(l);
12014
+ for (let _ = 0; _ < l.length; _++) {
12015
+ const d = l[_], h = c.getInput("ENTRY" + _);
12016
+ o(i[d], h.connection);
12017
+ }
12018
+ } else if (a === "json_array_v1") {
12014
12019
  c.initData(i.length);
12015
12020
  for (let l = 0; l < i.length; l++)
12016
12021
  o(i[l], c.getInput("ENTRY" + l).connection);
@@ -12060,7 +12065,7 @@ const sT = { class: "position-relative w-100 h-100" }, aT = /* @__PURE__ */ at({
12060
12065
  setup(e, { expose: t, emit: n }) {
12061
12066
  const o = Vi(e, "lock"), i = Vi(e, "scale"), s = n, a = Vt();
12062
12067
  let c;
12063
- const l = Vt(!0), d = Vt(!1), _ = Be(() => e.type === "json" ? "tree" : "list"), h = Be(() => ({
12068
+ const l = Vt(!0), _ = Vt(!1), d = Be(() => e.type === "json" ? "tree" : "list"), h = Be(() => ({
12064
12069
  position: "absolute",
12065
12070
  background: e.dark ? "#0000007f" : "#ffffff7f",
12066
12071
  top: "1px",
@@ -12125,7 +12130,7 @@ const sT = { class: "position-relative w-100 h-100" }, aT = /* @__PURE__ */ at({
12125
12130
  i.value = c.getScale();
12126
12131
  return;
12127
12132
  }
12128
- M.type === x.BLOCK_DRAG && (M.isStart ? d.value = !0 : d.value = !1), Ze.emit("codeUpdate");
12133
+ M.type === x.BLOCK_DRAG && (M.isStart ? _.value = !0 : _.value = !1), Ze.emit("codeUpdate");
12129
12134
  }
12130
12135
  }
12131
12136
  const j = (M) => {
@@ -12190,7 +12195,7 @@ const sT = { class: "position-relative w-100 h-100" }, aT = /* @__PURE__ */ at({
12190
12195
  ref: a,
12191
12196
  class: "w-100 h-100"
12192
12197
  }, null, 512),
12193
- d.value ? (Ne(), ut("div", {
12198
+ _.value ? (Ne(), ut("div", {
12194
12199
  key: 0,
12195
12200
  class: "d-flex flex-column justify-center align-center",
12196
12201
  style: dt(h.value)
@@ -12211,7 +12216,7 @@ const sT = { class: "position-relative w-100 h-100" }, aT = /* @__PURE__ */ at({
12211
12216
  "onUpdate:modelValue": K[0] || (K[0] = (ue) => o.value = ue)
12212
12217
  }, null, 8, ["modelValue"]),
12213
12218
  Ie(Zg, {
12214
- type: _.value,
12219
+ type: d.value,
12215
12220
  lock: o.value
12216
12221
  }, null, 8, ["type", "lock"])
12217
12222
  ], 4)),
@@ -12336,7 +12341,7 @@ function rT() {
12336
12341
  const f = { children: [] };
12337
12342
  return Object.assign(f, u), f;
12338
12343
  };
12339
- class d {
12344
+ class _ {
12340
12345
  constructor() {
12341
12346
  this.rootNode = l(), this.stack = [this.rootNode];
12342
12347
  }
@@ -12384,11 +12389,11 @@ function rT() {
12384
12389
  */
12385
12390
  static _collapse(f) {
12386
12391
  typeof f != "string" && f.children && (f.children.every((y) => typeof y == "string") ? f.children = [f.children.join("")] : f.children.forEach((y) => {
12387
- d._collapse(y);
12392
+ _._collapse(y);
12388
12393
  }));
12389
12394
  }
12390
12395
  }
12391
- class _ extends d {
12396
+ class d extends _ {
12392
12397
  /**
12393
12398
  * @param {*} options
12394
12399
  */
@@ -12893,7 +12898,7 @@ function rT() {
12893
12898
  languages: null,
12894
12899
  // beta configuration options, subject to change, welcome to discuss
12895
12900
  // https://github.com/highlightjs/highlight.js/issues/1086
12896
- __emitter: _
12901
+ __emitter: d
12897
12902
  };
12898
12903
  function w(E) {
12899
12904
  return b.noHighlightRe.test(E);
@@ -13483,12 +13488,12 @@ function dT(e) {
13483
13488
  literal: uT,
13484
13489
  built_in: _T,
13485
13490
  "variable.language": pT
13486
- }, l = "[0-9](_?[0-9])*", d = `\\.(${l})`, _ = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", h = {
13491
+ }, l = "[0-9](_?[0-9])*", _ = `\\.(${l})`, d = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", h = {
13487
13492
  className: "number",
13488
13493
  variants: [
13489
13494
  // DecimalLiteral
13490
- { begin: `(\\b(${_})((${d})|\\.)?|(${d}))[eE][+-]?(${l})\\b` },
13491
- { begin: `\\b(${_})\\b((${d})\\b|\\.)?|(${d})\\b` },
13495
+ { begin: `(\\b(${d})((${_})|\\.)?|(${_}))[eE][+-]?(${l})\\b` },
13496
+ { begin: `\\b(${d})\\b((${_})\\b|\\.)?|(${_})\\b` },
13492
13497
  // DecimalBigIntegerLiteral
13493
13498
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
13494
13499
  // NonDecimalIntegerLiteral
@@ -14003,24 +14008,24 @@ const mT = /* @__PURE__ */ at({
14003
14008
  __name: "index",
14004
14009
  setup(e) {
14005
14010
  const { t } = Zn(), { sysBarAvail: n } = nr(), { backgroundColor0: o, backgroundColor2: i } = Wo(), s = Vt(""), a = Be(() => {
14006
- let d = 48;
14007
- return n.value && (d += 24), {
14011
+ let _ = 48;
14012
+ return n.value && (_ += 24), {
14008
14013
  position: "relative",
14009
- height: `calc(100% - ${d}px)`
14014
+ height: `calc(100% - ${_}px)`
14010
14015
  };
14011
- }), c = (d) => {
14012
- s.value = d.code;
14016
+ }), c = (_) => {
14017
+ s.value = _.code;
14013
14018
  }, { open: l } = qn("sourceDlg", c);
14014
- return (d, _) => {
14019
+ return (_, d) => {
14015
14020
  const h = Me("v-sheet"), g = Me("v-btn"), T = Me("v-spacer"), O = Me("v-dialog");
14016
14021
  return Ne(), ht(O, {
14017
14022
  modelValue: X(l),
14018
- "onUpdate:modelValue": _[1] || (_[1] = (v) => xn(l) ? l.value = v : null),
14023
+ "onUpdate:modelValue": d[1] || (d[1] = (v) => xn(l) ? l.value = v : null),
14019
14024
  transition: "dialog-bottom-transition",
14020
14025
  persistent: "",
14021
14026
  "no-click-animation": "",
14022
14027
  fullscreen: "",
14023
- onKeydown: _[2] || (_[2] = za(Un((v) => l.value = !1, ["stop", "prevent"]), ["esc"]))
14028
+ onKeydown: d[2] || (d[2] = za(Un((v) => l.value = !1, ["stop", "prevent"]), ["esc"]))
14024
14029
  }, {
14025
14030
  default: ft(() => [
14026
14031
  Ie(h, {
@@ -14044,7 +14049,7 @@ const mT = /* @__PURE__ */ at({
14044
14049
  variant: "text",
14045
14050
  density: "comfortable",
14046
14051
  icon: X(or),
14047
- onClick: _[0] || (_[0] = (v) => l.value = !1)
14052
+ onClick: d[0] || (d[0] = (v) => l.value = !1)
14048
14053
  }, null, 8, ["icon"]),
14049
14054
  pt("span", gT, Go(X(t)("x-block-lib.dlg.source.title")), 1),
14050
14055
  Ie(T)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.6.29",
4
+ "version": "0.6.30",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",