x-block-lib 0.5.1 → 0.5.3

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.
@@ -74,6 +74,7 @@ declare const _default: {
74
74
  LABEL_TABLE: string;
75
75
  LABEL_TEXT: string;
76
76
  LABEL_VARIABLE: string;
77
+ METHOD_ADD: string;
77
78
  PARAM_DATA: string;
78
79
  PARAM_EXTRA_DATA: string;
79
80
  PARAM_IS_DARK_MODE: string;
@@ -408,6 +409,9 @@ declare const _default: {
408
409
  UI_V1_APP_ENV_TITLE: string;
409
410
  UI_V1_APP_ENV_TOOLTIP: string;
410
411
  UI_V1_APP_ENV_HELPURL: string;
412
+ UI_V1_CALL_NODE_METHOD_TITLE: string;
413
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: string;
414
+ UI_V1_CALL_NODE_METHOD_HELPURL: string;
411
415
  UI_V1_GET_NODE_TITLE: string;
412
416
  UI_V1_GET_NODE_TOOLTIP: string;
413
417
  UI_V1_GET_NODE_HELPURL: string;
@@ -74,6 +74,7 @@ declare const _default: {
74
74
  LABEL_TABLE: string;
75
75
  LABEL_TEXT: string;
76
76
  LABEL_VARIABLE: string;
77
+ METHOD_ADD: string;
77
78
  PARAM_DATA: string;
78
79
  PARAM_EXTRA_DATA: string;
79
80
  PARAM_IS_DARK_MODE: string;
@@ -408,6 +409,9 @@ declare const _default: {
408
409
  UI_V1_APP_ENV_TITLE: string;
409
410
  UI_V1_APP_ENV_TOOLTIP: string;
410
411
  UI_V1_APP_ENV_HELPURL: string;
412
+ UI_V1_CALL_NODE_METHOD_TITLE: string;
413
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: string;
414
+ UI_V1_CALL_NODE_METHOD_HELPURL: string;
411
415
  UI_V1_GET_NODE_TITLE: string;
412
416
  UI_V1_GET_NODE_TOOLTIP: string;
413
417
  UI_V1_GET_NODE_HELPURL: string;
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- var Dr = Object.defineProperty;
11
- var Pr = (e, t, n) => t in e ? Dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
10
+ var Mr = Object.defineProperty;
11
+ var Pr = (e, t, n) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
12
12
  var Fe = (e, t, n) => Pr(e, typeof t != "symbol" ? t + "" : t, n);
13
13
  import { getCurrentScope as xr, onScopeDispose as Ur, unref as w, computed as Te, watch as pt, ref as At, getCurrentInstance as ro, onMounted as Wt, defineComponent as Qe, onBeforeUnmount as Wn, resolveComponent as Ae, openBlock as he, createBlock as $e, withCtx as Xe, createVNode as ge, mergeProps as Ai, useModel as ti, toRefs as wr, reactive as Vr, h as ni, onUnmounted as Fr, nextTick as vi, isRef as an, resolveDirective as Yr, withDirectives as Kr, createElementBlock as mt, normalizeStyle as ot, createElementVNode as He, toDisplayString as lo, withModifiers as rn, Fragment as ea, renderList as Hr, withKeys as ta, createCommentVNode as Gt, mergeModels as Wi } from "vue";
14
- import { d as O, j as l, O as u, M as v, u as I, X as $r, E as V, B as U, F as ee, i as re, a as Bt, b as co, c as ue, C as na, e as Gr, P as oi, N as bi, V as wn, g as Et, f as jr, h as oa, s as Wr, S as ye, k as Mo, l as Yt, m as Ln, n as Do, o as Zt, p as St, q as Xi, G as Po, r as Xr, t as zr, v as xo, U as Nn, D as kn, w as xt, x as Jr, T as uo, y as ia, z as qr, A as Qr, H as Zr, I as zi, J as el } from "./blockly-cc5ny7z2.js";
14
+ import { d as O, j as l, O as u, M as v, u as I, X as $r, E as V, B as U, F as ee, i as re, a as Bt, b as co, c as ue, C as na, e as Gr, P as oi, N as bi, V as wn, g as Et, f as jr, h as oa, s as Wr, S as ye, k as Do, l as Yt, m as Ln, n as Mo, o as Zt, p as St, q as Xi, G as Po, r as Xr, t as zr, v as xo, U as Nn, D as kn, w as xt, x as Jr, T as uo, y as ia, z as qr, A as Qr, H as Zr, I as zi, J as el } from "./blockly-cc5ny7z2.js";
15
15
  import { storeToRefs as tl } from "pinia";
16
16
  import { openConfirmDlg as nl, openPromptDlg as ol, eventBus as We, messageWarning as sa, useColor as _o, useViewStack as po, useSystem as aa, useGlobalStore as il } from "x-essential-lib";
17
17
  import { elements as Je, getPropTag as ra } from "x-runtime-lib";
@@ -408,23 +408,23 @@ function Rt(e) {
408
408
  }
409
409
  return "";
410
410
  }
411
- var Ml = /[\\^$.*+?()[\]{}|]/g, Dl = /^\[object .+?Constructor\]$/, Pl = Function.prototype, xl = Object.prototype, Ul = Pl.toString, wl = xl.hasOwnProperty, Vl = RegExp(
412
- "^" + Ul.call(wl).replace(Ml, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
411
+ var Dl = /[\\^$.*+?()[\]{}|]/g, Ml = /^\[object .+?Constructor\]$/, Pl = Function.prototype, xl = Object.prototype, Ul = Pl.toString, wl = xl.hasOwnProperty, Vl = RegExp(
412
+ "^" + Ul.call(wl).replace(Dl, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
413
413
  );
414
414
  function Fl(e) {
415
415
  if (!vn(e) || kl(e))
416
416
  return !1;
417
- var t = ua(e) ? Vl : Dl;
417
+ var t = ua(e) ? Vl : Ml;
418
418
  return t.test(Rt(e));
419
419
  }
420
420
  function Yl(e, t) {
421
421
  return e == null ? void 0 : e[t];
422
422
  }
423
- function Mt(e, t) {
423
+ function Dt(e, t) {
424
424
  var n = Yl(e, t);
425
425
  return Fl(n) ? n : void 0;
426
426
  }
427
- var ii = Mt(et, "WeakMap"), Zi = Object.create, Kl = /* @__PURE__ */ function() {
427
+ var ii = Dt(et, "WeakMap"), Zi = Object.create, Kl = /* @__PURE__ */ function() {
428
428
  function e() {
429
429
  }
430
430
  return function(t) {
@@ -445,7 +445,7 @@ function Hl(e, t) {
445
445
  }
446
446
  var es = function() {
447
447
  try {
448
- var e = Mt(Object, "defineProperty");
448
+ var e = Dt(Object, "defineProperty");
449
449
  return e({}, "", {}), e;
450
450
  } catch {
451
451
  }
@@ -547,10 +547,10 @@ function Ea(e, t) {
547
547
  return e(t(n));
548
548
  };
549
549
  }
550
- var Mc = Ea(Object.keys, Object), Dc = Object.prototype, Pc = Dc.hasOwnProperty;
550
+ var Dc = Ea(Object.keys, Object), Mc = Object.prototype, Pc = Mc.hasOwnProperty;
551
551
  function Aa(e) {
552
552
  if (!ho(e))
553
- return Mc(e);
553
+ return Dc(e);
554
554
  var t = [];
555
555
  for (var n in Object(e))
556
556
  Pc.call(e, n) && n != "constructor" && t.push(n);
@@ -578,7 +578,7 @@ function Vc(e) {
578
578
  function Ni(e) {
579
579
  return yi(e) ? ma(e, !0) : Vc(e);
580
580
  }
581
- var hn = Mt(Object, "create");
581
+ var hn = Dt(Object, "create");
582
582
  function Fc() {
583
583
  this.__data__ = hn ? hn(null) : {}, this.size = 0;
584
584
  }
@@ -657,7 +657,7 @@ ct.prototype.delete = eu;
657
657
  ct.prototype.get = tu;
658
658
  ct.prototype.has = nu;
659
659
  ct.prototype.set = ou;
660
- var gn = Mt(et, "Map");
660
+ var gn = Dt(et, "Map");
661
661
  function iu() {
662
662
  this.size = 0, this.__data__ = {
663
663
  hash: new kt(),
@@ -687,18 +687,18 @@ function cu(e, t) {
687
687
  var n = To(this, e), o = n.size;
688
688
  return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
689
689
  }
690
- function Dt(e) {
690
+ function Mt(e) {
691
691
  var t = -1, n = e == null ? 0 : e.length;
692
692
  for (this.clear(); ++t < n; ) {
693
693
  var o = e[t];
694
694
  this.set(o[0], o[1]);
695
695
  }
696
696
  }
697
- Dt.prototype.clear = iu;
698
- Dt.prototype.delete = au;
699
- Dt.prototype.get = ru;
700
- Dt.prototype.has = lu;
701
- Dt.prototype.set = cu;
697
+ Mt.prototype.clear = iu;
698
+ Mt.prototype.delete = au;
699
+ Mt.prototype.get = ru;
700
+ Mt.prototype.has = lu;
701
+ Mt.prototype.set = cu;
702
702
  function va(e, t) {
703
703
  for (var n = -1, o = t.length, i = e.length; ++n < o; )
704
704
  e[i + n] = t[n];
@@ -725,7 +725,7 @@ function hu(e, t) {
725
725
  var o = n.__data__;
726
726
  if (!gn || o.length < fu - 1)
727
727
  return o.push([e, t]), this.size = ++n.size, this;
728
- n = this.__data__ = new Dt(o);
728
+ n = this.__data__ = new Mt(o);
729
729
  }
730
730
  return n.set(e, t), this.size = n.size, this;
731
731
  }
@@ -787,7 +787,7 @@ function si(e) {
787
787
  function Cu(e) {
788
788
  return Ca(e, Ni, ya);
789
789
  }
790
- var ai = Mt(et, "DataView"), ri = Mt(et, "Promise"), li = Mt(et, "Set"), cs = "[object Map]", Su = "[object Object]", us = "[object Promise]", _s = "[object Set]", ps = "[object WeakMap]", ds = "[object DataView]", Lu = Rt(ai), Nu = Rt(gn), ku = Rt(ri), Bu = Rt(li), Ru = Rt(ii), we = An;
790
+ var ai = Dt(et, "DataView"), ri = Dt(et, "Promise"), li = Dt(et, "Set"), cs = "[object Map]", Su = "[object Object]", us = "[object Promise]", _s = "[object Set]", ps = "[object WeakMap]", ds = "[object DataView]", Lu = Rt(ai), Nu = Rt(gn), ku = Rt(ri), Bu = Rt(li), Ru = Rt(ii), we = An;
791
791
  (ai && we(new ai(new ArrayBuffer(1))) != ds || gn && we(new gn()) != cs || ri && we(ri.resolve()) != us || li && we(new li()) != _s || ii && we(new ii()) != ps) && (we = function(e) {
792
792
  var t = An(e), n = t == Su ? e.constructor : void 0, o = n ? Rt(n) : "";
793
793
  if (o)
@@ -805,10 +805,10 @@ var ai = Mt(et, "DataView"), ri = Mt(et, "Promise"), li = Mt(et, "Set"), cs = "[
805
805
  }
806
806
  return t;
807
807
  });
808
- var Mu = Object.prototype, Du = Mu.hasOwnProperty;
808
+ var Du = Object.prototype, Mu = Du.hasOwnProperty;
809
809
  function Pu(e) {
810
810
  var t = e.length, n = new e.constructor(t);
811
- return t && typeof e[0] == "string" && Du.call(e, "index") && (n.index = e.index, n.input = e.input), n;
811
+ return t && typeof e[0] == "string" && Mu.call(e, "index") && (n.index = e.index, n.input = e.input), n;
812
812
  }
813
813
  var Xn = et.Uint8Array;
814
814
  function Bi(e) {
@@ -877,8 +877,8 @@ var gs = zt && zt.isMap, u_ = gs ? Ci(gs) : c_, __ = "[object Set]";
877
877
  function p_(e) {
878
878
  return Nt(e) && we(e) == __;
879
879
  }
880
- var Ts = zt && zt.isSet, d_ = Ts ? Ci(Ts) : p_, f_ = 1, h_ = 2, g_ = 4, Sa = "[object Arguments]", T_ = "[object Array]", m_ = "[object Boolean]", E_ = "[object Date]", A_ = "[object Error]", La = "[object Function]", v_ = "[object GeneratorFunction]", b_ = "[object Map]", O_ = "[object Number]", Na = "[object Object]", I_ = "[object RegExp]", y_ = "[object Set]", C_ = "[object String]", S_ = "[object Symbol]", L_ = "[object WeakMap]", N_ = "[object ArrayBuffer]", k_ = "[object DataView]", B_ = "[object Float32Array]", R_ = "[object Float64Array]", M_ = "[object Int8Array]", D_ = "[object Int16Array]", P_ = "[object Int32Array]", x_ = "[object Uint8Array]", U_ = "[object Uint8ClampedArray]", w_ = "[object Uint16Array]", V_ = "[object Uint32Array]", Z = {};
881
- Z[Sa] = Z[T_] = Z[N_] = Z[k_] = Z[m_] = Z[E_] = Z[B_] = Z[R_] = Z[M_] = Z[D_] = Z[P_] = Z[b_] = Z[O_] = Z[Na] = Z[I_] = Z[y_] = Z[C_] = Z[S_] = Z[x_] = Z[U_] = Z[w_] = Z[V_] = !0;
880
+ var Ts = zt && zt.isSet, d_ = Ts ? Ci(Ts) : p_, f_ = 1, h_ = 2, g_ = 4, Sa = "[object Arguments]", T_ = "[object Array]", m_ = "[object Boolean]", E_ = "[object Date]", A_ = "[object Error]", La = "[object Function]", v_ = "[object GeneratorFunction]", b_ = "[object Map]", O_ = "[object Number]", Na = "[object Object]", I_ = "[object RegExp]", y_ = "[object Set]", C_ = "[object String]", S_ = "[object Symbol]", L_ = "[object WeakMap]", N_ = "[object ArrayBuffer]", k_ = "[object DataView]", B_ = "[object Float32Array]", R_ = "[object Float64Array]", D_ = "[object Int8Array]", M_ = "[object Int16Array]", P_ = "[object Int32Array]", x_ = "[object Uint8Array]", U_ = "[object Uint8ClampedArray]", w_ = "[object Uint16Array]", V_ = "[object Uint32Array]", Z = {};
881
+ Z[Sa] = Z[T_] = Z[N_] = Z[k_] = Z[m_] = Z[E_] = Z[B_] = Z[R_] = Z[D_] = Z[M_] = Z[P_] = Z[b_] = Z[O_] = Z[Na] = Z[I_] = Z[y_] = Z[C_] = Z[S_] = Z[x_] = Z[U_] = Z[w_] = Z[V_] = !0;
882
882
  Z[A_] = Z[La] = Z[L_] = !1;
883
883
  function Vn(e, t, n, o, i, s) {
884
884
  var a, r = t & f_, c = t & h_, _ = t & g_;
@@ -930,7 +930,7 @@ function G_(e) {
930
930
  }
931
931
  function zn(e) {
932
932
  var t = -1, n = e == null ? 0 : e.length;
933
- for (this.__data__ = new Dt(); ++t < n; )
933
+ for (this.__data__ = new Mt(); ++t < n; )
934
934
  this.add(e[t]);
935
935
  }
936
936
  zn.prototype.add = zn.prototype.push = $_;
@@ -1151,7 +1151,7 @@ function Lp() {
1151
1151
  props: {}
1152
1152
  };
1153
1153
  }
1154
- function Mg() {
1154
+ function Dg() {
1155
1155
  const e = {};
1156
1156
  for (const t in Je) {
1157
1157
  const n = {}, o = Je[t];
@@ -1162,25 +1162,24 @@ function Mg() {
1162
1162
  return e;
1163
1163
  }
1164
1164
  function Np(e) {
1165
- const t = [];
1166
- function n(o, i, s) {
1167
- if (i !== "" && (i += "."), i += o.key, o.children) {
1168
- o.children.forEach((c) => {
1165
+ const t = [], n = (o, i, s) => {
1166
+ if (i !== "" && (i += "."), i += o.key, !o.ui) {
1167
+ o.children && o.children.forEach((c) => {
1169
1168
  n(c, i, o.name);
1170
1169
  });
1171
1170
  return;
1172
1171
  }
1173
- if (o.static)
1172
+ if (o.ui === "strInput" && o.static)
1174
1173
  return;
1175
1174
  const a = [];
1176
- s && a.push(s);
1175
+ s && a.push(s), a.push(o.name);
1177
1176
  const r = {
1178
1177
  keys: i,
1179
1178
  names: a,
1180
- ui: o.ui
1179
+ raw: o
1181
1180
  };
1182
- o.default !== void 0 && (r.default = o.default), o.readonly !== void 0 && (r.readonly = o.readonly), o.items && (r.items = o.items), o.types && (r.types = o.types), t.push(r);
1183
- }
1181
+ t.push(r);
1182
+ };
1184
1183
  return e.forEach((o) => {
1185
1184
  n(o, "", "");
1186
1185
  }), t;
@@ -1212,13 +1211,13 @@ function Ri() {
1212
1211
  function Ra(e) {
1213
1212
  return q.compute.spaces[e];
1214
1213
  }
1215
- function Ma() {
1214
+ function Da() {
1216
1215
  const e = [];
1217
1216
  return Ri().forEach((n) => {
1218
1217
  e.push([n.name, n.id]);
1219
1218
  }), Be(e);
1220
1219
  }
1221
- function Mi(e) {
1220
+ function Di(e) {
1222
1221
  const { funcs: t } = q.compute, n = [];
1223
1222
  for (const o in t) {
1224
1223
  const i = t[o];
@@ -1226,12 +1225,12 @@ function Mi(e) {
1226
1225
  }
1227
1226
  return n.sort((o, i) => o.sort - i.sort), n;
1228
1227
  }
1229
- function Da(e) {
1228
+ function Ma(e) {
1230
1229
  return q.compute.funcs[e];
1231
1230
  }
1232
1231
  function Pa(e) {
1233
1232
  const t = [];
1234
- return Mi(e).forEach((o) => {
1233
+ return Di(e).forEach((o) => {
1235
1234
  t.push([o.name, o.id]);
1236
1235
  }), Be(t);
1237
1236
  }
@@ -1273,7 +1272,7 @@ const Bp = {
1273
1272
  this.space.id = e.id, this.space.name = e.name;
1274
1273
  const t = this.getField("SPACE");
1275
1274
  t.getOptions(!1), t.setValue(this.space.id);
1276
- const n = (s = Mi(this.space.id)) == null ? void 0 : s[0];
1275
+ const n = (s = Di(this.space.id)) == null ? void 0 : s[0];
1277
1276
  if (!n)
1278
1277
  return;
1279
1278
  this.func.id = n.id, this.func.name = n.name;
@@ -1293,7 +1292,7 @@ const Bp = {
1293
1292
  }, 0);
1294
1293
  },
1295
1294
  genSpaceOpts_: function() {
1296
- return Ma();
1295
+ return Da();
1297
1296
  },
1298
1297
  genFuncOpts_: function() {
1299
1298
  return Pa(this.space.id);
@@ -1358,7 +1357,7 @@ const Bp = {
1358
1357
  return;
1359
1358
  }
1360
1359
  e.name !== this.space.name && (this.space.name = e.name);
1361
- const t = Da(this.func.id);
1360
+ const t = Ma(this.func.id);
1362
1361
  if (!t) {
1363
1362
  this.setWarningText(v.WARN_FUNC_NOT_AVAILABLE);
1364
1363
  return;
@@ -1417,7 +1416,7 @@ const Rp = {
1417
1416
  this.space.id = e.id, this.space.name = e.name;
1418
1417
  const t = this.getField("SPACE");
1419
1418
  t.getOptions(!1), t.setValue(this.space.id);
1420
- const n = (s = Mi(this.space.id)) == null ? void 0 : s[0];
1419
+ const n = (s = Di(this.space.id)) == null ? void 0 : s[0];
1421
1420
  if (!n)
1422
1421
  return;
1423
1422
  this.func.id = n.id, this.func.name = n.name;
@@ -1437,7 +1436,7 @@ const Rp = {
1437
1436
  }, 0);
1438
1437
  },
1439
1438
  genSpaceOpts_: function() {
1440
- return Ma();
1439
+ return Da();
1441
1440
  },
1442
1441
  genFuncOpts_: function() {
1443
1442
  return Pa(this.space.id);
@@ -1502,7 +1501,7 @@ const Rp = {
1502
1501
  return;
1503
1502
  }
1504
1503
  e.name !== this.space.name && (this.space.name = e.name);
1505
- const t = Da(this.func.id);
1504
+ const t = Ma(this.func.id);
1506
1505
  if (!t) {
1507
1506
  this.setWarningText(v.WARN_FUNC_NOT_AVAILABLE);
1508
1507
  return;
@@ -1567,7 +1566,7 @@ l.forBlock.compute_debug_trace_v1 = function(e) {
1567
1566
  return `__debugTraceV1__(${l.valueToCode(e, "OBJECT", u.ATOMIC)});
1568
1567
  `;
1569
1568
  };
1570
- const Mp = {
1569
+ const Dp = {
1571
1570
  init: function() {
1572
1571
  this.func = {
1573
1572
  id: "",
@@ -1624,7 +1623,7 @@ const Mp = {
1624
1623
  this.setWarningText(null);
1625
1624
  }
1626
1625
  };
1627
- U.func_entry_v1 = Mp;
1626
+ U.func_entry_v1 = Dp;
1628
1627
  l.forBlock.func_entry_v1 = function(e) {
1629
1628
  const t = e, n = l.statementToCode(t, "HANDLE"), o = [];
1630
1629
  for (let a = 0; a < t.func.inputs.length; a++) {
@@ -1634,11 +1633,11 @@ l.forBlock.func_entry_v1 = function(e) {
1634
1633
  return `function __funcEntryV1__(${o.join(", ")}) {
1635
1634
  ${n}}`;
1636
1635
  };
1637
- const Dp = {
1636
+ const Mp = {
1638
1637
  init: function() {
1639
1638
  }
1640
1639
  };
1641
- U.on_flow_state_event_v1 = Dp;
1640
+ U.on_flow_state_event_v1 = Mp;
1642
1641
  l.forBlock.on_flow_state_event_v1 = function() {
1643
1642
  return `__onFlowStateEventV1__();
1644
1643
  `;
@@ -5724,7 +5723,7 @@ const Cd = {
5724
5723
  name: "",
5725
5724
  inputs: [],
5726
5725
  outputs: []
5727
- }, this.appendDummyInput("DUMMY").appendField(new ee(() => this.genNodeOpts_()), "NODE").appendField(
5726
+ }, this.appendDummyInput("DUMMY").appendField("%{BKY_UI_V1_CALL_NODE_METHOD_TITLE}").appendField(new ee(() => this.genNodeOpts_()), "NODE").appendField(
5728
5727
  new ee(() => this.genMethodOpts_()),
5729
5728
  "METHOD"
5730
5729
  ), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_CALL_NODE_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_CALL_NODE_METHOD_HELPURL}"), this.initData_();
@@ -5982,9 +5981,9 @@ const Ld = {
5982
5981
  U.get_node_prop_v1 = Ld;
5983
5982
  l.forBlock.get_node_prop_v1 = function(e) {
5984
5983
  const t = e, n = l.quote_(t.node.id), o = l.quote_(t.prop.keys);
5985
- return [`__getNodePropV1_(${n}, ${o})`, u.ATOMIC];
5984
+ return [`__getNodePropV1__(${n}, ${o})`, u.ATOMIC];
5986
5985
  };
5987
- function Di() {
5986
+ function Mi() {
5988
5987
  const { apps: e } = q.app;
5989
5988
  return e;
5990
5989
  }
@@ -5994,7 +5993,7 @@ function Is(e) {
5994
5993
  }
5995
5994
  function Nd() {
5996
5995
  const e = [];
5997
- return Di().forEach((n) => {
5996
+ return Mi().forEach((n) => {
5998
5997
  e.push([n.name, n.id]);
5999
5998
  }), Be(e);
6000
5999
  }
@@ -6033,7 +6032,7 @@ const Bd = {
6033
6032
  var i, s;
6034
6033
  if (this.app.id)
6035
6034
  return;
6036
- const e = (i = Di()) == null ? void 0 : i[0];
6035
+ const e = (i = Mi()) == null ? void 0 : i[0];
6037
6036
  if (!e)
6038
6037
  return;
6039
6038
  this.app.id = e.id, this.app.name = e.name;
@@ -6247,7 +6246,7 @@ l.forBlock.on_node_event_v1 = function(e) {
6247
6246
  ${s}});
6248
6247
  `;
6249
6248
  };
6250
- const Md = {
6249
+ const Dd = {
6251
6250
  init: function() {
6252
6251
  this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_CONFIRM_DLG_HELPURL}");
6253
6252
  },
@@ -6278,7 +6277,7 @@ const Md = {
6278
6277
  ]);
6279
6278
  }
6280
6279
  };
6281
- U.open_confirm_dlg_v1 = Md;
6280
+ U.open_confirm_dlg_v1 = Dd;
6282
6281
  l.forBlock.open_confirm_dlg_v1 = function(e) {
6283
6282
  const t = l.valueToCode(e, "TITLE", u.ATOMIC), n = l.valueToCode(e, "TEXT", u.ATOMIC), o = l.statementToCode(e, "HANDLE");
6284
6283
  return `{
@@ -6286,7 +6285,7 @@ l.forBlock.open_confirm_dlg_v1 = function(e) {
6286
6285
  ${o}}
6287
6286
  `;
6288
6287
  };
6289
- const Dd = {
6288
+ const Md = {
6290
6289
  init: function() {
6291
6290
  this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_PROMPT_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_PROMPT_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_PROMPT_DLG_HELPURL}");
6292
6291
  },
@@ -6319,7 +6318,7 @@ const Dd = {
6319
6318
  ]);
6320
6319
  }
6321
6320
  };
6322
- U.open_prompt_dlg_v1 = Dd;
6321
+ U.open_prompt_dlg_v1 = Md;
6323
6322
  l.forBlock.open_prompt_dlg_v1 = function(e) {
6324
6323
  const t = l.valueToCode(e, "TITLE", u.ATOMIC), n = l.valueToCode(e, "LABEL", u.ATOMIC), o = l.valueToCode(e, "VALUE", u.ATOMIC), i = l.statementToCode(e, "HANDLE");
6325
6324
  return `{
@@ -6800,7 +6799,7 @@ function $d() {
6800
6799
  const t = xe.createElement("block");
6801
6800
  t.setAttribute("type", "app_env_v1"), e.push(t);
6802
6801
  }
6803
- if (Di().length > 0) {
6802
+ if (Mi().length > 0) {
6804
6803
  const t = xe.createElement("block");
6805
6804
  t.setAttribute("type", "navigate_to_v1"), e.push(t);
6806
6805
  }
@@ -6878,7 +6877,7 @@ const Ua = (e, t, n) => {
6878
6877
  });
6879
6878
  };
6880
6879
  async function Cs(e) {
6881
- const t = await Ua(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-enl17pxd.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-oo3u4x5i.js") }), `./msg/${e}.ts`, 3);
6880
+ const t = await Ua(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-kt4hpbag.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-m1r7olku.js") }), `./msg/${e}.ts`, 3);
6882
6881
  Wr(t.default);
6883
6882
  }
6884
6883
  function wa(e) {
@@ -6908,11 +6907,11 @@ class jd {
6908
6907
  shortcut: !0
6909
6908
  }) {
6910
6909
  t && (this.blockCopyToStorageContextMenu(), this.blockPasteFromStorageContextMenu()), n && (ye.registry.unregister(
6911
- Mo.names.COPY
6910
+ Do.names.COPY
6912
6911
  ), ye.registry.unregister(
6913
- Mo.names.CUT
6912
+ Do.names.CUT
6914
6913
  ), ye.registry.unregister(
6915
- Mo.names.PASTE
6914
+ Do.names.PASTE
6916
6915
  ), this.blockCopyToStorageShortcut(), this.blockCutToStorageShortcut(), this.blockPasteFromStorageShortcut());
6917
6916
  }
6918
6917
  blockCopyToStorageContextMenu() {
@@ -6922,7 +6921,7 @@ class jd {
6922
6921
  },
6923
6922
  preconditionFn: function() {
6924
6923
  const n = Yt();
6925
- return !n || !Ln(n) || !n.isDeletable() || !Do(n) || !n.isMovable() || !Zt(n) ? "disabled" : "enabled";
6924
+ return !n || !Ln(n) || !n.isDeletable() || !Mo(n) || !n.isMovable() || !Zt(n) ? "disabled" : "enabled";
6926
6925
  },
6927
6926
  callback: function(n) {
6928
6927
  var o;
@@ -6979,7 +6978,7 @@ class jd {
6979
6978
  if (s.options.readOnly || Po.inProgress())
6980
6979
  return !1;
6981
6980
  const a = Yt();
6982
- return !(!a || !Ln(a) || !a.isDeletable() || !Do(a) || !a.isMovable() || !Zt(a));
6981
+ return !(!a || !Ln(a) || !a.isDeletable() || !Mo(a) || !a.isMovable() || !Zt(a));
6983
6982
  },
6984
6983
  callback: function(s, a) {
6985
6984
  a.preventDefault();
@@ -7009,7 +7008,7 @@ class jd {
7009
7008
  if (s.options.readOnly || Po.inProgress())
7010
7009
  return !1;
7011
7010
  const a = Yt();
7012
- return !(!a || !Ln(a) || !a.isDeletable() || !Do(a) || !a.isMovable() || !Zt(a) || a.workspace.isFlyout);
7011
+ return !(!a || !Ln(a) || !a.isDeletable() || !Mo(a) || !a.isMovable() || !Zt(a) || a.workspace.isFlyout);
7013
7012
  },
7014
7013
  callback: function(s, a) {
7015
7014
  a.preventDefault();
@@ -9129,7 +9128,7 @@ const Cf = Object.assign;
9129
9128
  * @author owenm <owen23355@gmail.com>
9130
9129
  * @license MIT
9131
9130
  */
9132
- function Ms(e, t) {
9131
+ function Ds(e, t) {
9133
9132
  var n = Object.keys(e);
9134
9133
  if (Object.getOwnPropertySymbols) {
9135
9134
  var o = Object.getOwnPropertySymbols(e);
@@ -9142,9 +9141,9 @@ function Ms(e, t) {
9142
9141
  function qe(e) {
9143
9142
  for (var t = 1; t < arguments.length; t++) {
9144
9143
  var n = arguments[t] != null ? arguments[t] : {};
9145
- t % 2 ? Ms(Object(n), !0).forEach(function(o) {
9144
+ t % 2 ? Ds(Object(n), !0).forEach(function(o) {
9146
9145
  Sf(e, o, n[o]);
9147
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ms(Object(n)).forEach(function(o) {
9146
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ds(Object(n)).forEach(function(o) {
9148
9147
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
9149
9148
  });
9150
9149
  }
@@ -9200,7 +9199,7 @@ function st(e) {
9200
9199
  if (typeof window < "u" && window.navigator)
9201
9200
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
9202
9201
  }
9203
- var ut = st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), On = st(/Edge/i), Ds = st(/firefox/i), cn = st(/safari/i) && !st(/chrome/i) && !st(/android/i), za = st(/iP(ad|od|hone)/i), Ja = st(/chrome/i) && st(/android/i), qa = {
9202
+ var ut = st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), On = st(/Edge/i), Ms = st(/firefox/i), cn = st(/safari/i) && !st(/chrome/i) && !st(/android/i), za = st(/iP(ad|od|hone)/i), Ja = st(/chrome/i) && st(/android/i), qa = {
9204
9203
  capture: !1,
9205
9204
  passive: !1
9206
9205
  };
@@ -9242,7 +9241,7 @@ function Ke(e, t, n, o) {
9242
9241
  return null;
9243
9242
  }
9244
9243
  var Ps = /\s+/g;
9245
- function Me(e, t, n) {
9244
+ function De(e, t, n) {
9246
9245
  if (e && t)
9247
9246
  if (e.classList)
9248
9247
  e.classList[n ? "add" : "remove"](t);
@@ -9381,7 +9380,7 @@ function gt(e, t) {
9381
9380
  while (n = n.parentNode);
9382
9381
  return ze();
9383
9382
  }
9384
- function Mf(e, t) {
9383
+ function Df(e, t) {
9385
9384
  if (e && t)
9386
9385
  for (var n in t)
9387
9386
  t.hasOwnProperty(n) && (e[n] = t[n]);
@@ -9401,7 +9400,7 @@ function Za(e, t) {
9401
9400
  }
9402
9401
  };
9403
9402
  }
9404
- function Df() {
9403
+ function Mf() {
9405
9404
  clearTimeout(un), un = void 0;
9406
9405
  }
9407
9406
  function er(e, t, n) {
@@ -9557,7 +9556,7 @@ var Vf = ["evt"], Le = function(e, t) {
9557
9556
  In.pluginEvent.bind(B)(e, t, qe({
9558
9557
  dragEl: T,
9559
9558
  parentEl: ce,
9560
- ghostEl: D,
9559
+ ghostEl: M,
9561
9560
  rootEl: ae,
9562
9561
  nextEl: Ct,
9563
9562
  lastDownEl: Kn,
@@ -9569,7 +9568,7 @@ var Vf = ["evt"], Le = function(e, t) {
9569
9568
  originalEvent: o,
9570
9569
  oldIndex: $t,
9571
9570
  oldDraggableIndex: _n,
9572
- newIndex: De,
9571
+ newIndex: Me,
9573
9572
  newDraggableIndex: _t,
9574
9573
  hideGhostForTarget: ar,
9575
9574
  unhideGhostForTarget: rr,
@@ -9596,11 +9595,11 @@ function Ce(e) {
9596
9595
  rootEl: ae,
9597
9596
  oldIndex: $t,
9598
9597
  oldDraggableIndex: _n,
9599
- newIndex: De,
9598
+ newIndex: Me,
9600
9599
  newDraggableIndex: _t
9601
9600
  }, e));
9602
9601
  }
9603
- var T, ce, D, ae, Ct, Kn, le, dt, $t, De, _n, _t, Mn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo, ws, Vs, nn, Vt, pn, dn = !1, Dn = !1, Hn, Oe, zo = [], hi = !1, io = [], Lo = typeof document < "u", Pn = za, Fs = On || ut ? "cssFloat" : "float", Ff = Lo && !Ja && !za && "draggable" in document.createElement("div"), or = function() {
9602
+ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo, ws, Vs, nn, Vt, pn, dn = !1, Mn = !1, Hn, Oe, zo = [], hi = !1, io = [], Lo = typeof document < "u", Pn = za, Fs = On || ut ? "cssFloat" : "float", Ff = Lo && !Ja && !za && "draggable" in document.createElement("div"), or = function() {
9604
9603
  if (Lo) {
9605
9604
  if (ut)
9606
9605
  return !1;
@@ -9652,9 +9651,9 @@ var T, ce, D, ae, Ct, Kn, le, dt, $t, De, _n, _t, Mn, Ee, Kt = !1, no = !1, oo =
9652
9651
  name: o
9653
9652
  }), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
9654
9653
  }, ar = function() {
9655
- !or && D && k(D, "display", "none");
9654
+ !or && M && k(M, "display", "none");
9656
9655
  }, rr = function() {
9657
- !or && D && k(D, "display", "");
9656
+ !or && M && k(M, "display", "");
9658
9657
  };
9659
9658
  Lo && !Ja && document.addEventListener("click", function(e) {
9660
9659
  if (no)
@@ -9782,7 +9781,7 @@ B.prototype = /** @lends Sortable.prototype */
9782
9781
  var o = this, i = o.el, s = o.options, a = i.ownerDocument, r;
9783
9782
  if (n && !T && n.parentNode === i) {
9784
9783
  var c = de(n);
9785
- if (ae = i, T = n, ce = T.parentNode, Ct = T.nextSibling, Kn = n, Mn = s.group, B.dragged = T, It = {
9784
+ if (ae = i, T = n, ce = T.parentNode, Ct = T.nextSibling, Kn = n, Dn = s.group, B.dragged = T, It = {
9786
9785
  target: T,
9787
9786
  clientX: (t || e).clientX,
9788
9787
  clientY: (t || e).clientY
@@ -9793,14 +9792,14 @@ B.prototype = /** @lends Sortable.prototype */
9793
9792
  o._onDrop();
9794
9793
  return;
9795
9794
  }
9796
- o._disableDelayedDragEvents(), !Ds && o.nativeDraggable && (T.draggable = !0), o._triggerDragStart(e, t), Ce({
9795
+ o._disableDelayedDragEvents(), !Ms && o.nativeDraggable && (T.draggable = !0), o._triggerDragStart(e, t), Ce({
9797
9796
  sortable: o,
9798
9797
  name: "choose",
9799
9798
  originalEvent: e
9800
- }), Me(T, s.chosenClass, !0);
9799
+ }), De(T, s.chosenClass, !0);
9801
9800
  }, s.ignore.split(",").forEach(function(_) {
9802
9801
  Qa(T, _.trim(), Jo);
9803
- }), z(a, "dragover", yt), z(a, "mousemove", yt), z(a, "touchmove", yt), z(a, "mouseup", o._onDrop), z(a, "touchend", o._onDrop), z(a, "touchcancel", o._onDrop), Ds && this.nativeDraggable && (this.options.touchStartThreshold = 4, T.draggable = !0), Le("delayStart", this, {
9802
+ }), z(a, "dragover", yt), z(a, "mousemove", yt), z(a, "touchmove", yt), z(a, "mouseup", o._onDrop), z(a, "touchend", o._onDrop), z(a, "touchcancel", o._onDrop), Ms && this.nativeDraggable && (this.options.touchStartThreshold = 4, T.draggable = !0), Le("delayStart", this, {
9804
9803
  evt: e
9805
9804
  }), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(On || ut))) {
9806
9805
  if (B.eventCanceled) {
@@ -9838,7 +9837,7 @@ B.prototype = /** @lends Sortable.prototype */
9838
9837
  evt: t
9839
9838
  }), this.nativeDraggable && z(document, "dragover", Hf);
9840
9839
  var n = this.options;
9841
- !e && Me(T, n.dragClass, !1), Me(T, n.ghostClass, !0), B.active = this, e && this._appendGhost(), Ce({
9840
+ !e && De(T, n.dragClass, !1), De(T, n.ghostClass, !0), B.active = this, e && this._appendGhost(), Ce({
9842
9841
  sortable: this,
9843
9842
  name: "start",
9844
9843
  originalEvent: t
@@ -9870,13 +9869,13 @@ B.prototype = /** @lends Sortable.prototype */
9870
9869
  },
9871
9870
  _onTouchMove: function(e) {
9872
9871
  if (It) {
9873
- var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = D && jt(D, !0), a = D && s && s.a, r = D && s && s.d, c = Pn && Oe && Us(Oe), _ = (i.clientX - It.clientX + o.x) / (a || 1) + (c ? c[0] - zo[0] : 0) / (a || 1), d = (i.clientY - It.clientY + o.y) / (r || 1) + (c ? c[1] - zo[1] : 0) / (r || 1);
9872
+ var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = M && jt(M, !0), a = M && s && s.a, r = M && s && s.d, c = Pn && Oe && Us(Oe), _ = (i.clientX - It.clientX + o.x) / (a || 1) + (c ? c[0] - zo[0] : 0) / (a || 1), d = (i.clientY - It.clientY + o.y) / (r || 1) + (c ? c[1] - zo[1] : 0) / (r || 1);
9874
9873
  if (!B.active && !Kt) {
9875
9874
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
9876
9875
  return;
9877
9876
  this._onDragStart(e, !0);
9878
9877
  }
9879
- if (D) {
9878
+ if (M) {
9880
9879
  s ? (s.e += _ - (Wo || 0), s.f += d - (Xo || 0)) : s = {
9881
9880
  a: 1,
9882
9881
  b: 0,
@@ -9886,20 +9885,20 @@ B.prototype = /** @lends Sortable.prototype */
9886
9885
  f: d
9887
9886
  };
9888
9887
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
9889
- k(D, "webkitTransform", p), k(D, "mozTransform", p), k(D, "msTransform", p), k(D, "transform", p), Wo = _, Xo = d, Ye = i;
9888
+ k(M, "webkitTransform", p), k(M, "mozTransform", p), k(M, "msTransform", p), k(M, "transform", p), Wo = _, Xo = d, Ye = i;
9890
9889
  }
9891
9890
  e.cancelable && e.preventDefault();
9892
9891
  }
9893
9892
  },
9894
9893
  _appendGhost: function() {
9895
- if (!D) {
9894
+ if (!M) {
9896
9895
  var e = this.options.fallbackOnBody ? document.body : ae, t = de(T, !0, Pn, !0, e), n = this.options;
9897
9896
  if (Pn) {
9898
9897
  for (Oe = e; k(Oe, "position") === "static" && k(Oe, "transform") === "none" && Oe !== document; )
9899
9898
  Oe = Oe.parentNode;
9900
9899
  Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = ze()), t.top += Oe.scrollTop, t.left += Oe.scrollLeft) : Oe = ze(), zo = Us(Oe);
9901
9900
  }
9902
- D = T.cloneNode(!0), Me(D, n.ghostClass, !1), Me(D, n.fallbackClass, !0), Me(D, n.dragClass, !0), k(D, "transition", ""), k(D, "transform", ""), k(D, "box-sizing", "border-box"), k(D, "margin", 0), k(D, "top", t.top), k(D, "left", t.left), k(D, "width", t.width), k(D, "height", t.height), k(D, "opacity", "0.8"), k(D, "position", Pn ? "absolute" : "fixed"), k(D, "zIndex", "100000"), k(D, "pointerEvents", "none"), B.ghost = D, e.appendChild(D), k(D, "transform-origin", ws / parseInt(D.style.width) * 100 + "% " + Vs / parseInt(D.style.height) * 100 + "%");
9901
+ M = T.cloneNode(!0), De(M, n.ghostClass, !1), De(M, n.fallbackClass, !0), De(M, n.dragClass, !0), k(M, "transition", ""), k(M, "transform", ""), k(M, "box-sizing", "border-box"), k(M, "margin", 0), k(M, "top", t.top), k(M, "left", t.left), k(M, "width", t.width), k(M, "height", t.height), k(M, "opacity", "0.8"), k(M, "position", Pn ? "absolute" : "fixed"), k(M, "zIndex", "100000"), k(M, "pointerEvents", "none"), B.ghost = M, e.appendChild(M), k(M, "transform-origin", ws / parseInt(M.style.width) * 100 + "% " + Vs / parseInt(M.style.height) * 100 + "%");
9903
9902
  }
9904
9903
  },
9905
9904
  _onDragStart: function(e, t) {
@@ -9910,16 +9909,16 @@ B.prototype = /** @lends Sortable.prototype */
9910
9909
  this._onDrop();
9911
9910
  return;
9912
9911
  }
9913
- Le("setupClone", this), B.eventCanceled || (le = tr(T), le.removeAttribute("id"), le.draggable = !1, le.style["will-change"] = "", this._hideClone(), Me(le, this.options.chosenClass, !1), B.clone = le), n.cloneId = $n(function() {
9912
+ Le("setupClone", this), B.eventCanceled || (le = tr(T), le.removeAttribute("id"), le.draggable = !1, le.style["will-change"] = "", this._hideClone(), De(le, this.options.chosenClass, !1), B.clone = le), n.cloneId = $n(function() {
9914
9913
  Le("clone", n), !B.eventCanceled && (n.options.removeCloneOnHide || ae.insertBefore(le, T), n._hideClone(), Ce({
9915
9914
  sortable: n,
9916
9915
  name: "clone"
9917
9916
  }));
9918
- }), !t && Me(T, i.dragClass, !0), t ? (no = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : ($(document, "mouseup", n._onDrop), $(document, "touchend", n._onDrop), $(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, T)), z(document, "drop", n), k(T, "transform", "translateZ(0)")), Kt = !0, n._dragStartId = $n(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), nn = !0, cn && k(document.body, "user-select", "none");
9917
+ }), !t && De(T, i.dragClass, !0), t ? (no = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : ($(document, "mouseup", n._onDrop), $(document, "touchend", n._onDrop), $(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, T)), z(document, "drop", n), k(T, "transform", "translateZ(0)")), Kt = !0, n._dragStartId = $n(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), nn = !0, cn && k(document.body, "user-select", "none");
9919
9918
  },
9920
9919
  // Returns true - if no further action is needed (either inserted or another condition)
9921
9920
  _onDragOver: function(e) {
9922
- var t = this.el, n = e.target, o, i, s, a = this.options, r = a.group, c = B.active, _ = Mn === r, d = a.sort, p = Ee || c, f, g = this, b = !1;
9921
+ var t = this.el, n = e.target, o, i, s, a = this.options, r = a.group, c = B.active, _ = Dn === r, d = a.sort, p = Ee || c, f, g = this, b = !1;
9923
9922
  if (hi)
9924
9923
  return;
9925
9924
  function E(h, A) {
@@ -9934,8 +9933,8 @@ B.prototype = /** @lends Sortable.prototype */
9934
9933
  fromSortable: p,
9935
9934
  target: n,
9936
9935
  completed: C,
9937
- onMove: function(M, Y) {
9938
- return xn(ae, t, T, o, M, de(M), e, Y);
9936
+ onMove: function(D, Y) {
9937
+ return xn(ae, t, T, o, D, de(D), e, Y);
9939
9938
  },
9940
9939
  changed: F
9941
9940
  }, A));
@@ -9946,16 +9945,16 @@ B.prototype = /** @lends Sortable.prototype */
9946
9945
  function C(h) {
9947
9946
  return E("dragOverCompleted", {
9948
9947
  insertion: h
9949
- }), h && (_ ? c._hideClone() : c._showClone(g), g !== p && (Me(T, Ee ? Ee.options.ghostClass : c.options.ghostClass, !1), Me(T, a.ghostClass, !0)), Ee !== g && g !== B.active ? Ee = g : g === B.active && Ee && (Ee = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
9948
+ }), h && (_ ? c._hideClone() : c._showClone(g), g !== p && (De(T, Ee ? Ee.options.ghostClass : c.options.ghostClass, !1), De(T, a.ghostClass, !0)), Ee !== g && g !== B.active ? Ee = g : g === B.active && Ee && (Ee = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
9950
9949
  E("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
9951
9950
  }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === T && !T.animated || n === t && !n.animated) && (Vt = null), !a.dragoverBubble && !e.rootEl && n !== document && (T.parentNode[Pe]._isOutsideThisEl(e.target), !h && yt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), b = !0;
9952
9951
  }
9953
9952
  function F() {
9954
- De = Ue(T), _t = Ue(T, a.draggable), Ce({
9953
+ Me = Ue(T), _t = Ue(T, a.draggable), Ce({
9955
9954
  sortable: g,
9956
9955
  name: "change",
9957
9956
  toEl: t,
9958
- newIndex: De,
9957
+ newIndex: Me,
9959
9958
  newDraggableIndex: _t,
9960
9959
  originalEvent: e
9961
9960
  });
@@ -9964,7 +9963,7 @@ B.prototype = /** @lends Sortable.prototype */
9964
9963
  return b;
9965
9964
  if (T.contains(e.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
9966
9965
  return C(!1);
9967
- if (no = !1, c && !a.disabled && (_ ? d || (s = ce !== ae) : Ee === this || (this.lastPutMode = Mn.checkPull(this, c, T, e)) && r.checkPut(this, c, T, e))) {
9966
+ if (no = !1, c && !a.disabled && (_ ? d || (s = ce !== ae) : Ee === this || (this.lastPutMode = Dn.checkPull(this, c, T, e)) && r.checkPut(this, c, T, e))) {
9968
9967
  if (f = this._getDirection(e, n) === "vertical", o = de(T), E("dragOverValid"), B.eventCanceled)
9969
9968
  return b;
9970
9969
  if (s)
@@ -9984,13 +9983,13 @@ B.prototype = /** @lends Sortable.prototype */
9984
9983
  } else if (n.parentNode === t) {
9985
9984
  i = de(n);
9986
9985
  var j = 0, _e, Se = T.parentNode !== t, L = !Yf(T.animated && T.toRect || o, n.animated && n.toRect || i, f), N = f ? "top" : "left", W = xs(n, "top", "top") || xs(T, "top", "top"), ne = W ? W.scrollTop : void 0;
9987
- Vt !== n && (_e = i[N], dn = !1, Dn = !L && a.invertSwap || Se), j = Xf(e, n, i, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Dn, Vt === n);
9986
+ Vt !== n && (_e = i[N], dn = !1, Mn = !L && a.invertSwap || Se), j = Xf(e, n, i, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Mn, Vt === n);
9988
9987
  var X;
9989
9988
  if (j !== 0) {
9990
9989
  var Q = Ue(T);
9991
9990
  do
9992
9991
  Q -= j, X = ce.children[Q];
9993
- while (X && (k(X, "display") === "none" || X === D));
9992
+ while (X && (k(X, "display") === "none" || X === M));
9994
9993
  }
9995
9994
  if (j === 0 || X === n)
9996
9995
  return C(!1);
@@ -9999,7 +9998,7 @@ B.prototype = /** @lends Sortable.prototype */
9999
9998
  G = j === 1;
10000
9999
  var fe = xn(ae, t, T, o, n, i, e, G);
10001
10000
  if (fe !== !1)
10002
- return (fe === 1 || fe === -1) && (G = fe === 1), hi = !0, setTimeout(Gf, 30), S(), G && !R ? t.appendChild(T) : n.parentNode.insertBefore(T, G ? R : n), W && er(W, 0, ne - W.scrollTop), ce = T.parentNode, _e !== void 0 && !Dn && (Hn = Math.abs(_e - de(n)[N])), F(), C(!0);
10001
+ return (fe === 1 || fe === -1) && (G = fe === 1), hi = !0, setTimeout(Gf, 30), S(), G && !R ? t.appendChild(T) : n.parentNode.insertBefore(T, G ? R : n), W && er(W, 0, ne - W.scrollTop), ce = T.parentNode, _e !== void 0 && !Mn && (Hn = Math.abs(_e - de(n)[N])), F(), C(!0);
10003
10002
  }
10004
10003
  if (t.contains(T))
10005
10004
  return C(!1);
@@ -10016,20 +10015,20 @@ B.prototype = /** @lends Sortable.prototype */
10016
10015
  },
10017
10016
  _onDrop: function(e) {
10018
10017
  var t = this.el, n = this.options;
10019
- if (De = Ue(T), _t = Ue(T, n.draggable), Le("drop", this, {
10018
+ if (Me = Ue(T), _t = Ue(T, n.draggable), Le("drop", this, {
10020
10019
  evt: e
10021
- }), ce = T && T.parentNode, De = Ue(T), _t = Ue(T, n.draggable), B.eventCanceled) {
10020
+ }), ce = T && T.parentNode, Me = Ue(T), _t = Ue(T, n.draggable), B.eventCanceled) {
10022
10021
  this._nulling();
10023
10022
  return;
10024
10023
  }
10025
- Kt = !1, Dn = !1, dn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), gi(this.cloneId), gi(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), cn && k(document.body, "user-select", ""), k(T, "transform", ""), e && (nn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), D && D.parentNode && D.parentNode.removeChild(D), (ae === ce || Ee && Ee.lastPutMode !== "clone") && le && le.parentNode && le.parentNode.removeChild(le), T && (this.nativeDraggable && $(T, "dragend", this), Jo(T), T.style["will-change"] = "", nn && !Kt && Me(T, Ee ? Ee.options.ghostClass : this.options.ghostClass, !1), Me(T, this.options.chosenClass, !1), Ce({
10024
+ Kt = !1, Mn = !1, dn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), gi(this.cloneId), gi(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), cn && k(document.body, "user-select", ""), k(T, "transform", ""), e && (nn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), M && M.parentNode && M.parentNode.removeChild(M), (ae === ce || Ee && Ee.lastPutMode !== "clone") && le && le.parentNode && le.parentNode.removeChild(le), T && (this.nativeDraggable && $(T, "dragend", this), Jo(T), T.style["will-change"] = "", nn && !Kt && De(T, Ee ? Ee.options.ghostClass : this.options.ghostClass, !1), De(T, this.options.chosenClass, !1), Ce({
10026
10025
  sortable: this,
10027
10026
  name: "unchoose",
10028
10027
  toEl: ce,
10029
10028
  newIndex: null,
10030
10029
  newDraggableIndex: null,
10031
10030
  originalEvent: e
10032
- }), ae !== ce ? (De >= 0 && (Ce({
10031
+ }), ae !== ce ? (Me >= 0 && (Ce({
10033
10032
  rootEl: ce,
10034
10033
  name: "add",
10035
10034
  toEl: ce,
@@ -10051,7 +10050,7 @@ B.prototype = /** @lends Sortable.prototype */
10051
10050
  name: "sort",
10052
10051
  toEl: ce,
10053
10052
  originalEvent: e
10054
- })), Ee && Ee.save()) : De !== $t && De >= 0 && (Ce({
10053
+ })), Ee && Ee.save()) : Me !== $t && Me >= 0 && (Ce({
10055
10054
  sortable: this,
10056
10055
  name: "update",
10057
10056
  toEl: ce,
@@ -10061,7 +10060,7 @@ B.prototype = /** @lends Sortable.prototype */
10061
10060
  name: "sort",
10062
10061
  toEl: ce,
10063
10062
  originalEvent: e
10064
- })), B.active && ((De == null || De === -1) && (De = $t, _t = _n), Ce({
10063
+ })), B.active && ((Me == null || Me === -1) && (Me = $t, _t = _n), Ce({
10065
10064
  sortable: this,
10066
10065
  name: "end",
10067
10066
  toEl: ce,
@@ -10069,7 +10068,7 @@ B.prototype = /** @lends Sortable.prototype */
10069
10068
  }), this.save()))), this._nulling();
10070
10069
  },
10071
10070
  _nulling: function() {
10072
- Le("nulling", this), ae = T = ce = D = Ct = le = Kn = dt = It = Ye = nn = De = _t = $t = _n = Vt = pn = Ee = Mn = B.dragged = B.ghost = B.clone = B.active = null, io.forEach(function(e) {
10071
+ Le("nulling", this), ae = T = ce = M = Ct = le = Kn = dt = It = Ye = nn = Me = _t = $t = _n = Vt = pn = Ee = Dn = B.dragged = B.ghost = B.clone = B.active = null, io.forEach(function(e) {
10073
10072
  e.checked = !0;
10074
10073
  }), io.length = Wo = Xo = 0;
10075
10074
  },
@@ -10185,11 +10184,11 @@ function Gf() {
10185
10184
  hi = !1;
10186
10185
  }
10187
10186
  function jf(e, t, n) {
10188
- var o = de(Jt(n.el, 0, n.options, !0)), i = nr(n.el, n.options, D), s = 10;
10187
+ var o = de(Jt(n.el, 0, n.options, !0)), i = nr(n.el, n.options, M), s = 10;
10189
10188
  return t ? e.clientX < i.left - s || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - s || e.clientY < o.bottom && e.clientX < o.left;
10190
10189
  }
10191
10190
  function Wf(e, t, n) {
10192
- var o = de(Pi(n.el, n.options.draggable)), i = nr(n.el, n.options, D), s = 10;
10191
+ var o = de(Pi(n.el, n.options.draggable)), i = nr(n.el, n.options, M), s = 10;
10193
10192
  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;
10194
10193
  }
10195
10194
  function Xf(e, t, n, o, i, s, a, r) {
@@ -10237,10 +10236,10 @@ B.utils = {
10237
10236
  is: function(e, t) {
10238
10237
  return !!Ke(e, t, e, !1);
10239
10238
  },
10240
- extend: Mf,
10239
+ extend: Df,
10241
10240
  throttle: Za,
10242
10241
  closest: Ke,
10243
- toggleClass: Me,
10242
+ toggleClass: De,
10244
10243
  clone: tr,
10245
10244
  index: Ue,
10246
10245
  nextTick: $n,
@@ -10287,7 +10286,7 @@ function Qf() {
10287
10286
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
10288
10287
  },
10289
10288
  drop: function() {
10290
- this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), Ys(), Gn(), Df();
10289
+ this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), Ys(), Gn(), Mf();
10291
10290
  },
10292
10291
  nulling: function() {
10293
10292
  so = Ti = on = mi = sn = qo = Qo = null, pe.length = 0;
@@ -11332,7 +11331,7 @@ function Fi(e, { joinWith: t }) {
11332
11331
  return a;
11333
11332
  }).map((o) => `(${o})`).join(t);
11334
11333
  }
11335
- const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\\d+)?", mr = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Er = "\\b(0b[01]+)", Rh = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Mh = (e = {}) => {
11334
+ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\\d+)?", mr = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Er = "\\b(0b[01]+)", Rh = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Dh = (e = {}) => {
11336
11335
  const t = /^#![ ]*\//;
11337
11336
  return e.binary && (e.begin = Pt(
11338
11337
  t,
@@ -11352,7 +11351,7 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
11352
11351
  }, mn = {
11353
11352
  begin: "\\\\[\\s\\S]",
11354
11353
  relevance: 0
11355
- }, Dh = {
11354
+ }, Mh = {
11356
11355
  scope: "string",
11357
11356
  begin: "'",
11358
11357
  end: "'",
@@ -11486,7 +11485,7 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
11486
11485
  };
11487
11486
  var Un = /* @__PURE__ */ Object.freeze({
11488
11487
  __proto__: null,
11489
- APOS_STRING_MODE: Dh,
11488
+ APOS_STRING_MODE: Mh,
11490
11489
  BACKSLASH_ESCAPE: mn,
11491
11490
  BINARY_NUMBER_MODE: Kh,
11492
11491
  BINARY_NUMBER_RE: Er,
@@ -11506,7 +11505,7 @@ var Un = /* @__PURE__ */ Object.freeze({
11506
11505
  QUOTE_STRING_MODE: Ph,
11507
11506
  REGEXP_MODE: Hh,
11508
11507
  RE_STARTERS_RE: Rh,
11509
- SHEBANG: Mh,
11508
+ SHEBANG: Dh,
11510
11509
  TITLE_MODE: $h,
11511
11510
  UNDERSCORE_IDENT_RE: Yi,
11512
11511
  UNDERSCORE_TITLE_MODE: Gh
@@ -11763,26 +11762,26 @@ const ei = dr, Js = Tt, qs = Symbol("nomatch"), dg = 7, Or = function(e) {
11763
11762
  function _(h) {
11764
11763
  let A = h.className + " ";
11765
11764
  A += h.parentNode ? h.parentNode.className : "";
11766
- const M = r.languageDetectRe.exec(A);
11767
- if (M) {
11768
- const Y = N(M[1]);
11769
- return Y || (zs(s.replace("{}", M[1])), zs("Falling back to no-highlight mode for this block.", h)), Y ? M[1] : "no-highlight";
11765
+ const D = r.languageDetectRe.exec(A);
11766
+ if (D) {
11767
+ const Y = N(D[1]);
11768
+ return Y || (zs(s.replace("{}", D[1])), zs("Falling back to no-highlight mode for this block.", h)), Y ? D[1] : "no-highlight";
11770
11769
  }
11771
11770
  return A.split(/\s+/).find((Y) => c(Y) || N(Y));
11772
11771
  }
11773
- function d(h, A, M) {
11772
+ function d(h, A, D) {
11774
11773
  let Y = "", se = "";
11775
- typeof A == "object" ? (Y = h, M = A.ignoreIllegals, se = A.language) : (Ft("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ft("10.7.0", `Please use highlight(code, options) instead.
11776
- https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M === void 0 && (M = !0);
11774
+ typeof A == "object" ? (Y = h, D = A.ignoreIllegals, se = A.language) : (Ft("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ft("10.7.0", `Please use highlight(code, options) instead.
11775
+ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D === void 0 && (D = !0);
11777
11776
  const Ie = {
11778
11777
  code: Y,
11779
11778
  language: se
11780
11779
  };
11781
11780
  G("before:highlight", Ie);
11782
- const Ve = Ie.result ? Ie.result : p(Ie.language, Ie.code, M);
11781
+ const Ve = Ie.result ? Ie.result : p(Ie.language, Ie.code, D);
11783
11782
  return Ve.code = Ie.code, G("after:highlight", Ve), Ve;
11784
11783
  }
11785
- function p(h, A, M, Y) {
11784
+ function p(h, A, D, Y) {
11786
11785
  const se = /* @__PURE__ */ Object.create(null);
11787
11786
  function Ie(m, y) {
11788
11787
  return m.keywords[y];
@@ -11803,8 +11802,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
11803
11802
  if (me.addText(x), x = "", se[J] = (se[J] || 0) + 1, se[J] <= dg && (Sn += Rr), tt.startsWith("_"))
11804
11803
  x += y[0];
11805
11804
  else {
11806
- const Mr = je.classNameAliases[tt] || tt;
11807
- Ge(y[0], Mr);
11805
+ const Dr = je.classNameAliases[tt] || tt;
11806
+ Ge(y[0], Dr);
11808
11807
  }
11809
11808
  } else
11810
11809
  x += y[0];
@@ -11904,7 +11903,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
11904
11903
  }
11905
11904
  if (Cn = y, y.type === "begin")
11906
11905
  return Lr(y);
11907
- if (y.type === "illegal" && !M) {
11906
+ if (y.type === "illegal" && !D) {
11908
11907
  const J = new Error('Illegal lexeme "' + x + '" for mode "' + (P.scope || "<unnamed>") + '"');
11909
11908
  throw J.mode = P, J;
11910
11909
  } else if (y.type === "end") {
@@ -11988,10 +11987,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
11988
11987
  }
11989
11988
  function g(h, A) {
11990
11989
  A = A || r.languages || Object.keys(t);
11991
- const M = f(h), Y = A.filter(N).filter(ne).map(
11990
+ const D = f(h), Y = A.filter(N).filter(ne).map(
11992
11991
  (Re) => p(Re, h, !1)
11993
11992
  );
11994
- Y.unshift(M);
11993
+ Y.unshift(D);
11995
11994
  const se = Y.sort((Re, Ge) => {
11996
11995
  if (Re.relevance !== Ge.relevance) return Ge.relevance - Re.relevance;
11997
11996
  if (Re.language && Ge.language) {
@@ -12004,17 +12003,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12004
12003
  }), [Ie, Ve] = se, yn = Ie;
12005
12004
  return yn.secondBest = Ve, yn;
12006
12005
  }
12007
- function b(h, A, M) {
12008
- const Y = A && n[A] || M;
12006
+ function b(h, A, D) {
12007
+ const Y = A && n[A] || D;
12009
12008
  h.classList.add("hljs"), h.classList.add(`language-${Y}`);
12010
12009
  }
12011
12010
  function E(h) {
12012
12011
  let A = null;
12013
- const M = _(h);
12014
- if (c(M)) return;
12012
+ const D = _(h);
12013
+ if (c(D)) return;
12015
12014
  if (G(
12016
12015
  "before:highlightElement",
12017
- { el: h, language: M }
12016
+ { el: h, language: D }
12018
12017
  ), h.dataset.highlighted) {
12019
12018
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", h);
12020
12019
  return;
@@ -12025,8 +12024,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12025
12024
  h.innerHTML
12026
12025
  );
12027
12026
  A = h;
12028
- const Y = A.textContent, se = M ? d(Y, { language: M, ignoreIllegals: !0 }) : g(Y);
12029
- h.innerHTML = se.value, h.dataset.highlighted = "yes", b(h, M, se.language), h.result = {
12027
+ const Y = A.textContent, se = D ? d(Y, { language: D, ignoreIllegals: !0 }) : g(Y);
12028
+ h.innerHTML = se.value, h.dataset.highlighted = "yes", b(h, D, se.language), h.result = {
12030
12029
  language: se.language,
12031
12030
  // TODO: remove with version 11.0
12032
12031
  re: se.relevance,
@@ -12058,17 +12057,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12058
12057
  }
12059
12058
  typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", j, !1);
12060
12059
  function _e(h, A) {
12061
- let M = null;
12060
+ let D = null;
12062
12061
  try {
12063
- M = A(e);
12062
+ D = A(e);
12064
12063
  } catch (Y) {
12065
12064
  if (Lt("Language definition for '{}' could not be registered.".replace("{}", h)), i)
12066
12065
  Lt(Y);
12067
12066
  else
12068
12067
  throw Y;
12069
- M = a;
12068
+ D = a;
12070
12069
  }
12071
- M.name || (M.name = h), t[h] = M, M.rawDefinition = A.bind(null, e), M.aliases && W(M.aliases, { languageName: h });
12070
+ D.name || (D.name = h), t[h] = D, D.rawDefinition = A.bind(null, e), D.aliases && W(D.aliases, { languageName: h });
12072
12071
  }
12073
12072
  function Se(h) {
12074
12073
  delete t[h];
@@ -12082,8 +12081,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12082
12081
  return h = (h || "").toLowerCase(), t[h] || t[n[h]];
12083
12082
  }
12084
12083
  function W(h, { languageName: A }) {
12085
- typeof h == "string" && (h = [h]), h.forEach((M) => {
12086
- n[M.toLowerCase()] = A;
12084
+ typeof h == "string" && (h = [h]), h.forEach((D) => {
12085
+ n[D.toLowerCase()] = A;
12087
12086
  });
12088
12087
  }
12089
12088
  function ne(h) {
@@ -12109,9 +12108,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12109
12108
  A !== -1 && o.splice(A, 1);
12110
12109
  }
12111
12110
  function G(h, A) {
12112
- const M = h;
12111
+ const D = h;
12113
12112
  o.forEach(function(Y) {
12114
- Y[M] && Y[M](A);
12113
+ Y[D] && Y[D](A);
12115
12114
  });
12116
12115
  }
12117
12116
  function fe(h) {
@@ -12300,9 +12299,9 @@ const jn = /* @__PURE__ */ el(fg), Qs = "[A-Za-z$_][0-9A-Za-z$_]*", hg = [
12300
12299
  yr
12301
12300
  );
12302
12301
  function Eg(e) {
12303
- const t = e.regex, n = (A, { after: M }) => {
12302
+ const t = e.regex, n = (A, { after: D }) => {
12304
12303
  const Y = "</" + A[0].slice(1);
12305
- return A.input.indexOf(Y, M) !== -1;
12304
+ return A.input.indexOf(Y, D) !== -1;
12306
12305
  }, o = Qs, i = {
12307
12306
  begin: "<>",
12308
12307
  end: "</>"
@@ -12313,7 +12312,7 @@ function Eg(e) {
12313
12312
  * @param {RegExpMatchArray} match
12314
12313
  * @param {CallbackResponse} response
12315
12314
  */
12316
- isTrulyOpeningTag: (A, M) => {
12315
+ isTrulyOpeningTag: (A, D) => {
12317
12316
  const Y = A[0].length + A.index, se = A.input[Y];
12318
12317
  if (
12319
12318
  // HTML should not include another raw `<` inside a tag
@@ -12323,18 +12322,18 @@ function Eg(e) {
12323
12322
  // `<T, A extends keyof T, V>`
12324
12323
  se === ","
12325
12324
  ) {
12326
- M.ignoreMatch();
12325
+ D.ignoreMatch();
12327
12326
  return;
12328
12327
  }
12329
- se === ">" && (n(A, { after: Y }) || M.ignoreMatch());
12328
+ se === ">" && (n(A, { after: Y }) || D.ignoreMatch());
12330
12329
  let Ie;
12331
12330
  const Ve = A.input.substring(Y);
12332
12331
  if (Ie = Ve.match(/^\s*=/)) {
12333
- M.ignoreMatch();
12332
+ D.ignoreMatch();
12334
12333
  return;
12335
12334
  }
12336
12335
  if ((Ie = Ve.match(/^\s+extends\s+/)) && Ie.index === 0) {
12337
- M.ignoreMatch();
12336
+ D.ignoreMatch();
12338
12337
  return;
12339
12338
  }
12340
12339
  }
@@ -12929,14 +12928,14 @@ const vg = /* @__PURE__ */ Qe({
12929
12928
  }), Ig = (e) => {
12930
12929
  e.component("XBlockly", vh), e.component("XSourceDlg", Og);
12931
12930
  };
12932
- async function Dg(e) {
12931
+ async function Mg(e) {
12933
12932
  return (await Ua(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-bw16iab9.js") }), `./locales/${e}/index.ts`, 4)).default;
12934
12933
  }
12935
12934
  const Pg = { install: Ig };
12936
12935
  export {
12937
12936
  vh as XBlockly,
12938
12937
  q as blocklyState,
12939
- Mg as buildProps,
12938
+ Dg as buildProps,
12940
12939
  Pg as default,
12941
12940
  Op as initApp,
12942
12941
  Ip as initBase,
@@ -12945,5 +12944,5 @@ export {
12945
12944
  Sp as initResource,
12946
12945
  Lp as initRuntime,
12947
12946
  Ig as install,
12948
- Dg as loadLocaleMessageBlock
12947
+ Mg as loadLocaleMessageBlock
12949
12948
  };
@@ -79,6 +79,8 @@ const _ = {
79
79
  LABEL_TABLE: "Table",
80
80
  LABEL_TEXT: "Text",
81
81
  LABEL_VARIABLE: "Variable",
82
+ // method
83
+ METHOD_ADD: "add",
82
84
  // param
83
85
  PARAM_DATA: "data",
84
86
  PARAM_EXTRA_DATA: "extra data",
@@ -427,6 +429,9 @@ const _ = {
427
429
  UI_V1_APP_ENV_TITLE: "environment %1",
428
430
  UI_V1_APP_ENV_TOOLTIP: "UI_V1_APP_ENV_TOOLTIP",
429
431
  UI_V1_APP_ENV_HELPURL: "UI_V1_APP_ENV_HELPURL",
432
+ UI_V1_CALL_NODE_METHOD_TITLE: "call method",
433
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: "UI_V1_CALL_NODE_METHOD_TOOLTIP",
434
+ UI_V1_CALL_NODE_METHOD_HELPURL: "UI_V1_CALL_NODE_METHOD_HELPURL",
430
435
  UI_V1_GET_NODE_TITLE: "get node",
431
436
  UI_V1_GET_NODE_TOOLTIP: "UI_V1_GET_NODE_TOOLTIP",
432
437
  UI_V1_GET_NODE_HELPURL: "UI_V1_GET_NODE_HELPURL",
@@ -436,7 +441,7 @@ const _ = {
436
441
  UI_V1_NAVIGATE_TO_TITLE: "navigate to",
437
442
  UI_V1_NAVIGATE_TO_TOOLTIP: "UI_V1_NAVIGATE_TO_TOOLTIP",
438
443
  UI_V1_NAVIGATE_TO_HELPURL: "UI_V1_NAVIGATE_TO_HELPURL",
439
- UI_V1_ON_NODE_EVENT_TITLE: "event",
444
+ UI_V1_ON_NODE_EVENT_TITLE: "on event",
440
445
  UI_V1_ON_NODE_EVENT_TOOLTIP: "UI_V1_ON_NODE_EVENT_TOOLTIP",
441
446
  UI_V1_ON_NODE_EVENT_HELPURL: "UI_V1_ON_NODE_EVENT_HELPURL",
442
447
  UI_V1_OPEN_CONFIRM_DLG_TITLE: "open confirm dialog",
@@ -79,6 +79,8 @@ const _ = {
79
79
  LABEL_TABLE: "表",
80
80
  LABEL_TEXT: "文本",
81
81
  LABEL_VARIABLE: "变量",
82
+ // method
83
+ METHOD_ADD: "添加",
82
84
  // param
83
85
  PARAM_DATA: "数据",
84
86
  PARAM_EXTRA_DATA: "额外数据",
@@ -427,6 +429,9 @@ const _ = {
427
429
  UI_V1_APP_ENV_TITLE: "环境%1",
428
430
  UI_V1_APP_ENV_TOOLTIP: "UI_V1_APP_ENV_TOOLTIP",
429
431
  UI_V1_APP_ENV_HELPURL: "UI_V1_APP_ENV_HELPURL",
432
+ UI_V1_CALL_NODE_METHOD_TITLE: "调用方法",
433
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: "UI_V1_CALL_NODE_METHOD_TOOLTIP",
434
+ UI_V1_CALL_NODE_METHOD_HELPURL: "UI_V1_CALL_NODE_METHOD_HELPURL",
430
435
  UI_V1_GET_NODE_TITLE: "获取节点",
431
436
  UI_V1_GET_NODE_TOOLTIP: "UI_V1_GET_NODE_TOOLTIP",
432
437
  UI_V1_GET_NODE_HELPURL: "UI_V1_GET_NODE_HELPURL",
@@ -436,7 +441,7 @@ const _ = {
436
441
  UI_V1_NAVIGATE_TO_TITLE: "导航到",
437
442
  UI_V1_NAVIGATE_TO_TOOLTIP: "UI_V1_NAVIGATE_TO_TOOLTIP",
438
443
  UI_V1_NAVIGATE_TO_HELPURL: "UI_V1_NAVIGATE_TO_HELPURL",
439
- UI_V1_ON_NODE_EVENT_TITLE: "事件",
444
+ UI_V1_ON_NODE_EVENT_TITLE: "响应事件",
440
445
  UI_V1_ON_NODE_EVENT_TOOLTIP: "UI_V1_ON_NODE_EVENT_TOOLTIP",
441
446
  UI_V1_ON_NODE_EVENT_HELPURL: "UI_V1_ON_NODE_EVENT_HELPURL",
442
447
  UI_V1_OPEN_CONFIRM_DLG_TITLE: "打开确认对话框",
@@ -1,12 +1,8 @@
1
- import { ZItem, ZType } from 'x-runtime-lib';
1
+ import { ZProp } from 'x-runtime-lib';
2
2
  export type Prop = {
3
3
  keys: string;
4
4
  names: string[];
5
- ui: string;
6
- default?: any;
7
- readonly?: boolean;
8
- items?: ZItem[];
9
- types?: ZType[];
5
+ raw: ZProp;
10
6
  };
11
7
  export type Props = {
12
8
  [key: string]: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.5.1",
4
+ "version": "0.5.3",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "vue": "^3.5.12",
35
35
  "vuetify": "^3.7.3",
36
36
  "x-essential-lib": "^0.7.3",
37
- "x-runtime-lib": "^0.5.0"
37
+ "x-runtime-lib": "^0.5.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@eslint/js": "^10.0.0",