x-block-lib 0.6.10 → 0.6.12

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 +827 -832
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7,19 +7,19 @@
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 Ll = Object.defineProperty;
11
- var Sl = (e, t, n) => t in e ? Ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
12
- var tt = (e, t, n) => Sl(e, typeof t != "symbol" ? t + "" : t, n);
13
- import { getCurrentScope as Bl, onScopeDispose as Rl, computed as Be, toValue as Na, watch as Lt, shallowRef as Dl, getCurrentInstance as xo, onMounted as dn, defineComponent as ft, onBeforeUnmount as Oo, resolveComponent as Re, createBlock as _t, openBlock as Ne, unref as W, withCtx as st, createVNode as fe, mergeProps as es, useModel as Mi, toRefs as Ml, ref as Mt, reactive as Pl, h as Pi, nextTick as ts, onUnmounted as Ul, isRef as kn, resolveDirective as xl, withDirectives as wl, createElementBlock as lt, normalizeStyle as ut, createElementVNode as ct, toDisplayString as wo, withModifiers as Ln, Fragment as ka, renderList as Vl, withKeys as La, createCommentVNode as $t, mergeModels as ks } from "vue";
14
- import { d as C, j as r, O as p, E as w, u as L, X as Fl, M as T, B as U, i as ce, F as $, a as Wt, b as Vo, c as be, C as Sa, e as Yl, P as Ui, N as ns, V as po, g as Pt, f as Kl, h as Ba, s as Hl, S as Fe, k as _o, l as rn, m as sn, n as no, o as ui, p as On, q as Ls, G as pi, r as $l, t as Gl, v as _i, U as oo, D as io, w as en, x as jl, T as Fo, y as Ra, z as Wl, A as Xl, H as Ss, I as zl, J as ql } from "./blockly-djhb27mv.js";
15
- import { openConfirmDlg as Jl, openPromptDlg as Ql, eventBus as pt, messageWarning as Da, useColor as Yo, useViewStack as Ko, useSystem as Ma } from "x-essential-lib";
16
- import { pkgs as Zl, elements as Ye, getPropTag as Ho } from "x-runtime-lib";
10
+ var Sl = Object.defineProperty;
11
+ var Bl = (e, t, n) => t in e ? Sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
12
+ var tt = (e, t, n) => Bl(e, typeof t != "symbol" ? t + "" : t, n);
13
+ import { getCurrentScope as Rl, onScopeDispose as Dl, computed as Be, toValue as Na, watch as Lt, shallowRef as Ml, getCurrentInstance as Uo, onMounted as dn, defineComponent as ft, onBeforeUnmount as Zi, resolveComponent as De, createBlock as pt, openBlock as Ne, unref as W, withCtx as _t, createVNode as Oe, mergeProps as es, useModel as Di, toRefs as Pl, ref as Mt, reactive as Ul, h as Mi, nextTick as ts, onUnmounted as ka, isRef as kn, resolveDirective as xl, withDirectives as wl, createElementBlock as rt, normalizeStyle as ct, createElementVNode as lt, toDisplayString as xo, withModifiers as Ln, Fragment as La, renderList as Vl, withKeys as Sa, createCommentVNode as $t, mergeModels as ks } from "vue";
14
+ import { d as C, j as r, O as p, E as w, u as L, X as Fl, M as T, B as U, i as ce, F as $, a as Wt, b as wo, c as be, C as Ba, e as Yl, P as Pi, N as ns, V as po, g as Pt, f as Kl, h as Ra, s as Hl, S as Fe, k as _o, l as rn, m as sn, n as no, o as ci, p as On, q as Ls, G as ui, r as $l, t as Gl, v as pi, U as oo, D as io, w as en, x as jl, T as Vo, y as Da, z as Wl, A as Xl, H as Ss, I as zl, J as ql } from "./blockly-djhb27mv.js";
15
+ import { openConfirmDlg as Jl, openPromptDlg as Ql, eventBus as ut, messageWarning as Ma, useColor as Fo, useViewStack as Yo, useSystem as Pa } from "x-essential-lib";
16
+ import { pkgs as Zl, elements as Ye, getPropTag as Ko } from "x-runtime-lib";
17
17
  import { globalState as V } from "x-state-lib";
18
18
  import { useI18n as Kn } from "vue-i18n";
19
19
  import { useDisplay as ec } from "vuetify";
20
- var tc = "M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z", Pa = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", nc = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", oc = "M21 11H3V9H21V11M21 13H3V15H21V13Z", ic = "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z", sc = "M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z", ac = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
20
+ var tc = "M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z", Ua = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", nc = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", oc = "M21 11H3V9H21V11M21 13H3V15H21V13Z", ic = "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z", sc = "M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z", ac = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
21
21
  function rc(e) {
22
- return Bl() ? (Rl(e), !0) : !1;
22
+ return Rl() ? (Dl(e), !0) : !1;
23
23
  }
24
24
  const lc = typeof window < "u" && typeof document < "u";
25
25
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -30,7 +30,7 @@ function Bs(e) {
30
30
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
31
31
  }
32
32
  function uc() {
33
- const e = Dl(!1), t = xo();
33
+ const e = Ml(!1), t = Uo();
34
34
  return t && dn(() => {
35
35
  e.value = !0;
36
36
  }, t), e;
@@ -109,7 +109,7 @@ C([
109
109
  r.forBlock.app_env_v1 = function(e) {
110
110
  return [`__getEnvV1__() === ${r.quote_(e.getFieldValue("ENV"))}`, p.ATOMIC];
111
111
  };
112
- var Ua = typeof global == "object" && global && global.Object === Object && global, dc = typeof self == "object" && self && self.Object === Object && self, gt = Ua || dc || Function("return this")(), Ut = gt.Symbol, xa = Object.prototype, hc = xa.hasOwnProperty, fc = xa.toString, bn = Ut ? Ut.toStringTag : void 0;
112
+ var xa = typeof global == "object" && global && global.Object === Object && global, dc = typeof self == "object" && self && self.Object === Object && self, gt = xa || dc || Function("return this")(), Ut = gt.Symbol, wa = Object.prototype, hc = wa.hasOwnProperty, fc = wa.toString, bn = Ut ? Ut.toStringTag : void 0;
113
113
  function gc(e) {
114
114
  var t = hc.call(e, bn), n = e[bn];
115
115
  try {
@@ -132,19 +132,19 @@ function Gt(e) {
132
132
  return e != null && typeof e == "object";
133
133
  }
134
134
  var Un = Array.isArray;
135
- function $o(e) {
135
+ function Ho(e) {
136
136
  var t = typeof e;
137
137
  return e != null && (t == "object" || t == "function");
138
138
  }
139
139
  var Oc = "[object AsyncFunction]", bc = "[object Function]", Ic = "[object GeneratorFunction]", yc = "[object Proxy]";
140
- function wa(e) {
141
- if (!$o(e))
140
+ function Va(e) {
141
+ if (!Ho(e))
142
142
  return !1;
143
143
  var t = Hn(e);
144
144
  return t == bc || t == Ic || t == Oc || t == yc;
145
145
  }
146
- var di = gt["__core-js_shared__"], Ds = function() {
147
- var e = /[^.]+$/.exec(di && di.keys && di.keys.IE_PROTO || "");
146
+ var _i = gt["__core-js_shared__"], Ds = function() {
147
+ var e = /[^.]+$/.exec(_i && _i.keys && _i.keys.IE_PROTO || "");
148
148
  return e ? "Symbol(src)_1." + e : "";
149
149
  }();
150
150
  function Cc(e) {
@@ -168,9 +168,9 @@ var Lc = /[\\^$.*+?()[\]{}|]/g, Sc = /^\[object .+?Constructor\]$/, Bc = Functio
168
168
  "^" + Dc.call(Mc).replace(Lc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
169
169
  );
170
170
  function Uc(e) {
171
- if (!$o(e) || Cc(e))
171
+ if (!Ho(e) || Cc(e))
172
172
  return !1;
173
- var t = wa(e) ? Pc : Sc;
173
+ var t = Va(e) ? Pc : Sc;
174
174
  return t.test(Xt(e));
175
175
  }
176
176
  function xc(e, t) {
@@ -180,11 +180,11 @@ function zt(e, t) {
180
180
  var n = xc(e, t);
181
181
  return Uc(n) ? n : void 0;
182
182
  }
183
- var xi = zt(gt, "WeakMap"), Ms = Object.create, wc = /* @__PURE__ */ function() {
183
+ var Ui = zt(gt, "WeakMap"), Ms = Object.create, wc = /* @__PURE__ */ function() {
184
184
  function e() {
185
185
  }
186
186
  return function(t) {
187
- if (!$o(t))
187
+ if (!Ho(t))
188
188
  return {};
189
189
  if (Ms)
190
190
  return Ms(t);
@@ -226,14 +226,14 @@ function jc(e, t, n) {
226
226
  (!(Gc.call(e, t) && os(o, n)) || n === void 0 && !(t in e)) && Hc(e, t, n);
227
227
  }
228
228
  var Wc = 9007199254740991;
229
- function Va(e) {
229
+ function Fa(e) {
230
230
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Wc;
231
231
  }
232
232
  function Xc(e) {
233
- return e != null && Va(e.length) && !wa(e);
233
+ return e != null && Fa(e.length) && !Va(e);
234
234
  }
235
235
  var zc = Object.prototype;
236
- function Fa(e) {
236
+ function Ya(e) {
237
237
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || zc;
238
238
  return e === n;
239
239
  }
@@ -246,7 +246,7 @@ var Jc = "[object Arguments]";
246
246
  function Us(e) {
247
247
  return Gt(e) && Hn(e) == Jc;
248
248
  }
249
- var Ya = Object.prototype, Qc = Ya.hasOwnProperty, Zc = Ya.propertyIsEnumerable, eu = Us(/* @__PURE__ */ function() {
249
+ var Ka = Object.prototype, Qc = Ka.hasOwnProperty, Zc = Ka.propertyIsEnumerable, eu = Us(/* @__PURE__ */ function() {
250
250
  return arguments;
251
251
  }()) ? Us : function(e) {
252
252
  return Gt(e) && Qc.call(e, "callee") && !Zc.call(e, "callee");
@@ -254,26 +254,26 @@ var Ya = Object.prototype, Qc = Ya.hasOwnProperty, Zc = Ya.propertyIsEnumerable,
254
254
  function tu() {
255
255
  return !1;
256
256
  }
257
- var Ka = typeof exports == "object" && exports && !exports.nodeType && exports, xs = Ka && typeof module == "object" && module && !module.nodeType && module, nu = xs && xs.exports === Ka, ws = nu ? gt.Buffer : void 0, ou = ws ? ws.isBuffer : void 0, bo = ou || tu, iu = "[object Arguments]", su = "[object Array]", au = "[object Boolean]", ru = "[object Date]", lu = "[object Error]", cu = "[object Function]", uu = "[object Map]", pu = "[object Number]", _u = "[object Object]", du = "[object RegExp]", hu = "[object Set]", fu = "[object String]", gu = "[object WeakMap]", mu = "[object ArrayBuffer]", Tu = "[object DataView]", Eu = "[object Float32Array]", Au = "[object Float64Array]", vu = "[object Int8Array]", Ou = "[object Int16Array]", bu = "[object Int32Array]", Iu = "[object Uint8Array]", yu = "[object Uint8ClampedArray]", Cu = "[object Uint16Array]", Nu = "[object Uint32Array]", ue = {};
257
+ var Ha = typeof exports == "object" && exports && !exports.nodeType && exports, xs = Ha && typeof module == "object" && module && !module.nodeType && module, nu = xs && xs.exports === Ha, ws = nu ? gt.Buffer : void 0, ou = ws ? ws.isBuffer : void 0, Oo = ou || tu, iu = "[object Arguments]", su = "[object Array]", au = "[object Boolean]", ru = "[object Date]", lu = "[object Error]", cu = "[object Function]", uu = "[object Map]", pu = "[object Number]", _u = "[object Object]", du = "[object RegExp]", hu = "[object Set]", fu = "[object String]", gu = "[object WeakMap]", mu = "[object ArrayBuffer]", Tu = "[object DataView]", Eu = "[object Float32Array]", Au = "[object Float64Array]", vu = "[object Int8Array]", Ou = "[object Int16Array]", bu = "[object Int32Array]", Iu = "[object Uint8Array]", yu = "[object Uint8ClampedArray]", Cu = "[object Uint16Array]", Nu = "[object Uint32Array]", ue = {};
258
258
  ue[Eu] = ue[Au] = ue[vu] = ue[Ou] = ue[bu] = ue[Iu] = ue[yu] = ue[Cu] = ue[Nu] = !0;
259
259
  ue[iu] = ue[su] = ue[mu] = ue[au] = ue[Tu] = ue[ru] = ue[lu] = ue[cu] = ue[uu] = ue[pu] = ue[_u] = ue[du] = ue[hu] = ue[fu] = ue[gu] = !1;
260
260
  function ku(e) {
261
- return Gt(e) && Va(e.length) && !!ue[Hn(e)];
261
+ return Gt(e) && Fa(e.length) && !!ue[Hn(e)];
262
262
  }
263
263
  function is(e) {
264
264
  return function(t) {
265
265
  return e(t);
266
266
  };
267
267
  }
268
- var Ha = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = Ha && typeof module == "object" && module && !module.nodeType && module, Lu = Sn && Sn.exports === Ha, hi = Lu && Ua.process, hn = function() {
268
+ var $a = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = $a && typeof module == "object" && module && !module.nodeType && module, Lu = Sn && Sn.exports === $a, di = Lu && xa.process, hn = function() {
269
269
  try {
270
270
  var e = Sn && Sn.require && Sn.require("util").types;
271
- return e || hi && hi.binding && hi.binding("util");
271
+ return e || di && di.binding && di.binding("util");
272
272
  } catch {
273
273
  }
274
- }(), Vs = hn && hn.isTypedArray, $a = Vs ? is(Vs) : ku, Su = Object.prototype, Bu = Su.hasOwnProperty;
274
+ }(), Vs = hn && hn.isTypedArray, Ga = Vs ? is(Vs) : ku, Su = Object.prototype, Bu = Su.hasOwnProperty;
275
275
  function Ru(e, t) {
276
- var n = Un(e), o = !n && eu(e), i = !n && !o && bo(e), s = !n && !o && !i && $a(e), a = n || o || i || s, l = a ? qc(e.length, String) : [], c = l.length;
276
+ var n = Un(e), o = !n && eu(e), i = !n && !o && Oo(e), s = !n && !o && !i && Ga(e), a = n || o || i || s, l = a ? qc(e.length, String) : [], c = l.length;
277
277
  for (var _ in e)
278
278
  Bu.call(e, _) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
279
279
  (_ == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -282,14 +282,14 @@ function Ru(e, t) {
282
282
  Kc(_, c))) && l.push(_);
283
283
  return l;
284
284
  }
285
- function Ga(e, t) {
285
+ function ja(e, t) {
286
286
  return function(n) {
287
287
  return e(t(n));
288
288
  };
289
289
  }
290
- var Du = Ga(Object.keys, Object), Mu = Object.prototype, Pu = Mu.hasOwnProperty;
290
+ var Du = ja(Object.keys, Object), Mu = Object.prototype, Pu = Mu.hasOwnProperty;
291
291
  function Uu(e) {
292
- if (!Fa(e))
292
+ if (!Ya(e))
293
293
  return Du(e);
294
294
  var t = [];
295
295
  for (var n in Object(e))
@@ -341,7 +341,7 @@ jt.prototype.set = Xu;
341
341
  function zu() {
342
342
  this.__data__ = [], this.size = 0;
343
343
  }
344
- function Go(e, t) {
344
+ function $o(e, t) {
345
345
  for (var n = e.length; n--; )
346
346
  if (os(e[n][0], t))
347
347
  return n;
@@ -349,21 +349,21 @@ function Go(e, t) {
349
349
  }
350
350
  var qu = Array.prototype, Ju = qu.splice;
351
351
  function Qu(e) {
352
- var t = this.__data__, n = Go(t, e);
352
+ var t = this.__data__, n = $o(t, e);
353
353
  if (n < 0)
354
354
  return !1;
355
355
  var o = t.length - 1;
356
356
  return n == o ? t.pop() : Ju.call(t, n, 1), --this.size, !0;
357
357
  }
358
358
  function Zu(e) {
359
- var t = this.__data__, n = Go(t, e);
359
+ var t = this.__data__, n = $o(t, e);
360
360
  return n < 0 ? void 0 : t[n][1];
361
361
  }
362
362
  function ep(e) {
363
- return Go(this.__data__, e) > -1;
363
+ return $o(this.__data__, e) > -1;
364
364
  }
365
365
  function tp(e, t) {
366
- var n = this.__data__, o = Go(n, e);
366
+ var n = this.__data__, o = $o(n, e);
367
367
  return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
368
368
  }
369
369
  function It(e) {
@@ -390,22 +390,22 @@ function op(e) {
390
390
  var t = typeof e;
391
391
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
392
392
  }
393
- function jo(e, t) {
393
+ function Go(e, t) {
394
394
  var n = e.__data__;
395
395
  return op(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
396
396
  }
397
397
  function ip(e) {
398
- var t = jo(this, e).delete(e);
398
+ var t = Go(this, e).delete(e);
399
399
  return this.size -= t ? 1 : 0, t;
400
400
  }
401
401
  function sp(e) {
402
- return jo(this, e).get(e);
402
+ return Go(this, e).get(e);
403
403
  }
404
404
  function ap(e) {
405
- return jo(this, e).has(e);
405
+ return Go(this, e).has(e);
406
406
  }
407
407
  function rp(e, t) {
408
- var n = jo(this, e), o = n.size;
408
+ var n = Go(this, e), o = n.size;
409
409
  return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
410
410
  }
411
411
  function qt(e) {
@@ -425,7 +425,7 @@ function lp(e, t) {
425
425
  e[i + n] = t[n];
426
426
  return e;
427
427
  }
428
- var cp = Ga(Object.getPrototypeOf, Object);
428
+ var cp = ja(Object.getPrototypeOf, Object);
429
429
  function up() {
430
430
  this.__data__ = new It(), this.size = 0;
431
431
  }
@@ -459,7 +459,7 @@ At.prototype.delete = pp;
459
459
  At.prototype.get = _p;
460
460
  At.prototype.has = dp;
461
461
  At.prototype.set = fp;
462
- var ja = typeof exports == "object" && exports && !exports.nodeType && exports, Fs = ja && typeof module == "object" && module && !module.nodeType && module, gp = Fs && Fs.exports === ja, Ys = gp ? gt.Buffer : void 0;
462
+ var Wa = typeof exports == "object" && exports && !exports.nodeType && exports, Fs = Wa && typeof module == "object" && module && !module.nodeType && module, gp = Fs && Fs.exports === Wa, Ys = gp ? gt.Buffer : void 0;
463
463
  Ys && Ys.allocUnsafe;
464
464
  function mp(e, t) {
465
465
  return e.slice();
@@ -483,11 +483,11 @@ function bp(e, t, n) {
483
483
  var o = t(e);
484
484
  return Un(e) ? o : lp(o, n(e));
485
485
  }
486
- function wi(e) {
486
+ function xi(e) {
487
487
  return bp(e, xu, Op);
488
488
  }
489
- var Vi = zt(gt, "DataView"), Fi = zt(gt, "Promise"), Yi = zt(gt, "Set"), Hs = "[object Map]", Ip = "[object Object]", $s = "[object Promise]", Gs = "[object Set]", js = "[object WeakMap]", Ws = "[object DataView]", yp = Xt(Vi), Cp = Xt(wn), Np = Xt(Fi), kp = Xt(Yi), Lp = Xt(xi), it = Hn;
490
- (Vi && it(new Vi(new ArrayBuffer(1))) != Ws || wn && it(new wn()) != Hs || Fi && it(Fi.resolve()) != $s || Yi && it(new Yi()) != Gs || xi && it(new xi()) != js) && (it = function(e) {
489
+ var wi = zt(gt, "DataView"), Vi = zt(gt, "Promise"), Fi = zt(gt, "Set"), Hs = "[object Map]", Ip = "[object Object]", $s = "[object Promise]", Gs = "[object Set]", js = "[object WeakMap]", Ws = "[object DataView]", yp = Xt(wi), Cp = Xt(wn), Np = Xt(Vi), kp = Xt(Fi), Lp = Xt(Ui), it = Hn;
490
+ (wi && it(new wi(new ArrayBuffer(1))) != Ws || wn && it(new wn()) != Hs || Vi && it(Vi.resolve()) != $s || Fi && it(new Fi()) != Gs || Ui && it(new Ui()) != js) && (it = function(e) {
491
491
  var t = Hn(e), n = t == Ip ? e.constructor : void 0, o = n ? Xt(n) : "";
492
492
  if (o)
493
493
  switch (o) {
@@ -509,10 +509,10 @@ function Rp(e) {
509
509
  var t = e.length, n = new e.constructor(t);
510
510
  return t && typeof e[0] == "string" && Bp.call(e, "index") && (n.index = e.index, n.input = e.input), n;
511
511
  }
512
- var Io = gt.Uint8Array;
512
+ var bo = gt.Uint8Array;
513
513
  function ss(e) {
514
514
  var t = new e.constructor(e.byteLength);
515
- return new Io(t).set(new Io(e)), t;
515
+ return new bo(t).set(new bo(e)), t;
516
516
  }
517
517
  function Dp(e, t) {
518
518
  var n = ss(e.buffer);
@@ -566,7 +566,7 @@ function o_(e, t, n) {
566
566
  }
567
567
  }
568
568
  function i_(e) {
569
- return typeof e.constructor == "function" && !Fa(e) ? wc(cp(e)) : {};
569
+ return typeof e.constructor == "function" && !Ya(e) ? wc(cp(e)) : {};
570
570
  }
571
571
  var s_ = "[object Map]";
572
572
  function a_(e) {
@@ -576,23 +576,23 @@ var qs = hn && hn.isMap, r_ = qs ? is(qs) : a_, l_ = "[object Set]";
576
576
  function c_(e) {
577
577
  return Gt(e) && it(e) == l_;
578
578
  }
579
- var Js = hn && hn.isSet, u_ = Js ? is(Js) : c_, Wa = "[object Arguments]", p_ = "[object Array]", __ = "[object Boolean]", d_ = "[object Date]", h_ = "[object Error]", Xa = "[object Function]", f_ = "[object GeneratorFunction]", g_ = "[object Map]", m_ = "[object Number]", za = "[object Object]", T_ = "[object RegExp]", E_ = "[object Set]", A_ = "[object String]", v_ = "[object Symbol]", O_ = "[object WeakMap]", b_ = "[object ArrayBuffer]", I_ = "[object DataView]", y_ = "[object Float32Array]", C_ = "[object Float64Array]", N_ = "[object Int8Array]", k_ = "[object Int16Array]", L_ = "[object Int32Array]", S_ = "[object Uint8Array]", B_ = "[object Uint8ClampedArray]", R_ = "[object Uint16Array]", D_ = "[object Uint32Array]", le = {};
580
- le[Wa] = le[p_] = le[b_] = le[I_] = le[__] = le[d_] = le[y_] = le[C_] = le[N_] = le[k_] = le[L_] = le[g_] = le[m_] = le[za] = le[T_] = le[E_] = le[A_] = le[v_] = le[S_] = le[B_] = le[R_] = le[D_] = !0;
581
- le[h_] = le[Xa] = le[O_] = !1;
579
+ var Js = hn && hn.isSet, u_ = Js ? is(Js) : c_, Xa = "[object Arguments]", p_ = "[object Array]", __ = "[object Boolean]", d_ = "[object Date]", h_ = "[object Error]", za = "[object Function]", f_ = "[object GeneratorFunction]", g_ = "[object Map]", m_ = "[object Number]", qa = "[object Object]", T_ = "[object RegExp]", E_ = "[object Set]", A_ = "[object String]", v_ = "[object Symbol]", O_ = "[object WeakMap]", b_ = "[object ArrayBuffer]", I_ = "[object DataView]", y_ = "[object Float32Array]", C_ = "[object Float64Array]", N_ = "[object Int8Array]", k_ = "[object Int16Array]", L_ = "[object Int32Array]", S_ = "[object Uint8Array]", B_ = "[object Uint8ClampedArray]", R_ = "[object Uint16Array]", D_ = "[object Uint32Array]", le = {};
580
+ le[Xa] = le[p_] = le[b_] = le[I_] = le[__] = le[d_] = le[y_] = le[C_] = le[N_] = le[k_] = le[L_] = le[g_] = le[m_] = le[qa] = le[T_] = le[E_] = le[A_] = le[v_] = le[S_] = le[B_] = le[R_] = le[D_] = !0;
581
+ le[h_] = le[za] = le[O_] = !1;
582
582
  function ho(e, t, n, o, i, s) {
583
583
  var a;
584
584
  if (a !== void 0)
585
585
  return a;
586
- if (!$o(e))
586
+ if (!Ho(e))
587
587
  return e;
588
588
  var l = Un(e);
589
589
  if (l)
590
590
  a = Rp(e);
591
591
  else {
592
- var c = it(e), _ = c == Xa || c == f_;
593
- if (bo(e))
592
+ var c = it(e), _ = c == za || c == f_;
593
+ if (Oo(e))
594
594
  return mp(e);
595
- if (c == za || c == Wa || _ && !i)
595
+ if (c == qa || c == Xa || _ && !i)
596
596
  a = _ ? {} : i_(e);
597
597
  else {
598
598
  if (!le[c])
@@ -609,13 +609,13 @@ function ho(e, t, n, o, i, s) {
609
609
  }) : r_(e) && e.forEach(function(m, I) {
610
610
  a.set(I, ho(m, t, n, I, e, s));
611
611
  });
612
- var d = wi, g = l ? void 0 : d(e);
612
+ var d = xi, g = l ? void 0 : d(e);
613
613
  return Vc(g || e, function(m, I) {
614
614
  g && (I = m, m = e[I]), jc(a, I, ho(m, t, n, I, e, s));
615
615
  }), a;
616
616
  }
617
617
  var M_ = 1, P_ = 4;
618
- function qa(e) {
618
+ function Ja(e) {
619
619
  return ho(e, M_ | P_);
620
620
  }
621
621
  var U_ = "__lodash_hash_undefined__";
@@ -625,13 +625,13 @@ function x_(e) {
625
625
  function w_(e) {
626
626
  return this.__data__.has(e);
627
627
  }
628
- function yo(e) {
628
+ function Io(e) {
629
629
  var t = -1, n = e == null ? 0 : e.length;
630
630
  for (this.__data__ = new qt(); ++t < n; )
631
631
  this.add(e[t]);
632
632
  }
633
- yo.prototype.add = yo.prototype.push = x_;
634
- yo.prototype.has = w_;
633
+ Io.prototype.add = Io.prototype.push = x_;
634
+ Io.prototype.has = w_;
635
635
  function V_(e, t) {
636
636
  for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
637
637
  if (t(e[n], n, e))
@@ -642,14 +642,14 @@ function F_(e, t) {
642
642
  return e.has(t);
643
643
  }
644
644
  var Y_ = 1, K_ = 2;
645
- function Ja(e, t, n, o, i, s) {
645
+ function Qa(e, t, n, o, i, s) {
646
646
  var a = n & Y_, l = e.length, c = t.length;
647
647
  if (l != c && !(a && c > l))
648
648
  return !1;
649
649
  var _ = s.get(e), h = s.get(t);
650
650
  if (_ && h)
651
651
  return _ == t && h == e;
652
- var d = -1, g = !0, m = n & K_ ? new yo() : void 0;
652
+ var d = -1, g = !0, m = n & K_ ? new Io() : void 0;
653
653
  for (s.set(e, t), s.set(t, e); ++d < l; ) {
654
654
  var I = e[d], v = t[d];
655
655
  if (o)
@@ -687,7 +687,7 @@ function $_(e) {
687
687
  n[++t] = o;
688
688
  }), n;
689
689
  }
690
- var G_ = 1, j_ = 2, W_ = "[object Boolean]", X_ = "[object Date]", z_ = "[object Error]", q_ = "[object Map]", J_ = "[object Number]", Q_ = "[object RegExp]", Z_ = "[object Set]", ed = "[object String]", td = "[object Symbol]", nd = "[object ArrayBuffer]", od = "[object DataView]", Qs = Ut ? Ut.prototype : void 0, fi = Qs ? Qs.valueOf : void 0;
690
+ var G_ = 1, j_ = 2, W_ = "[object Boolean]", X_ = "[object Date]", z_ = "[object Error]", q_ = "[object Map]", J_ = "[object Number]", Q_ = "[object RegExp]", Z_ = "[object Set]", ed = "[object String]", td = "[object Symbol]", nd = "[object ArrayBuffer]", od = "[object DataView]", Qs = Ut ? Ut.prototype : void 0, hi = Qs ? Qs.valueOf : void 0;
691
691
  function id(e, t, n, o, i, s, a) {
692
692
  switch (n) {
693
693
  case od:
@@ -695,7 +695,7 @@ function id(e, t, n, o, i, s, a) {
695
695
  return !1;
696
696
  e = e.buffer, t = t.buffer;
697
697
  case nd:
698
- return !(e.byteLength != t.byteLength || !s(new Io(e), new Io(t)));
698
+ return !(e.byteLength != t.byteLength || !s(new bo(e), new bo(t)));
699
699
  case W_:
700
700
  case X_:
701
701
  case J_:
@@ -715,17 +715,17 @@ function id(e, t, n, o, i, s, a) {
715
715
  if (_)
716
716
  return _ == t;
717
717
  o |= j_, a.set(e, t);
718
- var h = Ja(l(e), l(t), o, i, s, a);
718
+ var h = Qa(l(e), l(t), o, i, s, a);
719
719
  return a.delete(e), h;
720
720
  case td:
721
- if (fi)
722
- return fi.call(e) == fi.call(t);
721
+ if (hi)
722
+ return hi.call(e) == hi.call(t);
723
723
  }
724
724
  return !1;
725
725
  }
726
726
  var sd = 1, ad = Object.prototype, rd = ad.hasOwnProperty;
727
727
  function ld(e, t, n, o, i, s) {
728
- var a = n & sd, l = wi(e), c = l.length, _ = wi(t), h = _.length;
728
+ var a = n & sd, l = xi(e), c = l.length, _ = xi(t), h = _.length;
729
729
  if (c != h && !a)
730
730
  return !1;
731
731
  for (var d = c; d--; ) {
@@ -760,13 +760,13 @@ function pd(e, t, n, o, i, s) {
760
760
  var a = Un(e), l = Un(t), c = a ? ea : it(e), _ = l ? ea : it(t);
761
761
  c = c == Zs ? so : c, _ = _ == Zs ? so : _;
762
762
  var h = c == so, d = _ == so, g = c == _;
763
- if (g && bo(e)) {
764
- if (!bo(t))
763
+ if (g && Oo(e)) {
764
+ if (!Oo(t))
765
765
  return !1;
766
766
  a = !0, h = !1;
767
767
  }
768
768
  if (g && !h)
769
- return s || (s = new At()), a || $a(e) ? Ja(e, t, n, o, i, s) : id(e, t, c, n, o, i, s);
769
+ return s || (s = new At()), a || Ga(e) ? Qa(e, t, n, o, i, s) : id(e, t, c, n, o, i, s);
770
770
  if (!(n & cd)) {
771
771
  var m = h && ta.call(e, "__wrapped__"), I = d && ta.call(t, "__wrapped__");
772
772
  if (m || I) {
@@ -776,16 +776,16 @@ function pd(e, t, n, o, i, s) {
776
776
  }
777
777
  return g ? (s || (s = new At()), ld(e, t, n, o, i, s)) : !1;
778
778
  }
779
- function Qa(e, t, n, o, i) {
780
- return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : pd(e, t, n, o, Qa, i);
779
+ function Za(e, t, n, o, i) {
780
+ return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : pd(e, t, n, o, Za, i);
781
781
  }
782
782
  function xe(e, t) {
783
- return Qa(e, t);
783
+ return Za(e, t);
784
784
  }
785
- function me(e) {
785
+ function ge(e) {
786
786
  return e.length <= 0 && e.push([T.NO_OPTION, ""]), e;
787
787
  }
788
- function ge(e) {
788
+ function fe(e) {
789
789
  let t = "";
790
790
  if (e.type === "string") {
791
791
  let n = "";
@@ -804,7 +804,7 @@ function as(e, t, n, o) {
804
804
  const i = `<xml><block type="parameter_v1"><mutation key="${t}" name="${n}" locale="${o ? "TRUE" : "FALSE"}"/></block></xml>`, s = L.xml.textToDom(i), a = Fl.domToWorkspace(s, e);
805
805
  return e.getBlockById(a[0]);
806
806
  }
807
- function We(e, t) {
807
+ function je(e, t) {
808
808
  try {
809
809
  w.disable(), t.forEach((n) => {
810
810
  var _;
@@ -849,41 +849,41 @@ function fn(e) {
849
849
  const { i18n: t } = V.base, n = [];
850
850
  return $n(e).forEach((i) => {
851
851
  n.push([t.global.t(i.name), i.key]);
852
- }), me(n);
852
+ }), ge(n);
853
853
  }
854
- function Ki(e) {
854
+ function Yi(e) {
855
855
  const t = Ye[e];
856
856
  return t ? t.events : [];
857
857
  }
858
- function gi(e, t) {
858
+ function fi(e, t) {
859
859
  const n = Ye[e];
860
860
  if (n)
861
861
  return n.events.find((o) => o.key === t);
862
862
  }
863
863
  function _d(e) {
864
864
  const t = [];
865
- return Ki(e).forEach(({ key: o, name: i }) => {
865
+ return Yi(e).forEach(({ key: o, name: i }) => {
866
866
  t.push([T[i] ?? i, o]);
867
- }), me(t);
867
+ }), ge(t);
868
868
  }
869
- function Hi(e) {
869
+ function Ki(e) {
870
870
  const t = Ye[e];
871
871
  return t ? t.methods : [];
872
872
  }
873
- function mi(e, t) {
873
+ function gi(e, t) {
874
874
  const n = Ye[e];
875
875
  if (n)
876
876
  return n.methods.find((o) => o.key === t);
877
877
  }
878
878
  function dd(e) {
879
879
  const t = [];
880
- return Hi(e).forEach(({ key: o, name: i }) => {
880
+ return Ki(e).forEach(({ key: o, name: i }) => {
881
881
  t.push([T[i] ?? i, o]);
882
- }), me(t);
882
+ }), ge(t);
883
883
  }
884
884
  function Vn(e, t) {
885
885
  var c, _;
886
- const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = Ho(o, i);
886
+ const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = Ko(o, i);
887
887
  if (!s)
888
888
  return console.assert(!1, "invalid prop tag", o, i), [];
889
889
  if (!Ye[e])
@@ -895,21 +895,21 @@ function Vn(e, t) {
895
895
  }
896
896
  function un(e, t) {
897
897
  var a, l;
898
- const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = Ho(o, i);
898
+ const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = Ko(o, i);
899
899
  if (!s) {
900
900
  console.assert(!1, "invalid prop tag", o, i);
901
901
  return;
902
902
  }
903
903
  return (l = (a = n[e]) == null ? void 0 : a[s]) == null ? void 0 : l.find((c) => c.keys === t);
904
904
  }
905
- function Za(e, t) {
905
+ function er(e, t) {
906
906
  const { i18n: n } = V.base, o = [];
907
907
  return Vn(e, t).forEach((s) => {
908
908
  let a = "";
909
909
  s.names.forEach((l, c) => {
910
910
  c !== 0 && (a += " - "), a += n.global.t(l);
911
911
  }), o.push([a, s.keys]);
912
- }), me(o);
912
+ }), ge(o);
913
913
  }
914
914
  function Tn(e) {
915
915
  const { nodes: t } = V.app.activeObject, n = [];
@@ -941,16 +941,16 @@ function Gn(e) {
941
941
  }
942
942
  let a = t.global.t(s.name);
943
943
  i.alias && (a += ` / ${i.alias}`), n.push([a, i.id]);
944
- }), me(n);
944
+ }), ge(n);
945
945
  }
946
- function $i(e) {
946
+ function Hi(e) {
947
947
  const t = Ke(e);
948
948
  if (!t)
949
949
  return [];
950
950
  const n = Ye[t.key];
951
951
  return n ? n.events : (console.assert(!1, "invalid element", t.key), []);
952
952
  }
953
- function Ti(e, t) {
953
+ function mi(e, t) {
954
954
  const n = Ke(e);
955
955
  if (!n)
956
956
  return;
@@ -963,18 +963,18 @@ function Ti(e, t) {
963
963
  }
964
964
  function hd(e) {
965
965
  const t = [];
966
- return $i(e).forEach(({ key: o, name: i }) => {
966
+ return Hi(e).forEach(({ key: o, name: i }) => {
967
967
  t.push([T[i] ?? i, o]);
968
- }), me(t);
968
+ }), ge(t);
969
969
  }
970
- function Gi(e) {
970
+ function $i(e) {
971
971
  const t = Ke(e);
972
972
  if (!t)
973
973
  return [];
974
974
  const n = Ye[t.key];
975
975
  return n ? n.methods : (console.assert(!1, "invalid element", t.key), []);
976
976
  }
977
- function Ei(e, t) {
977
+ function Ti(e, t) {
978
978
  const n = Ke(e);
979
979
  if (!n)
980
980
  return;
@@ -987,13 +987,13 @@ function Ei(e, t) {
987
987
  }
988
988
  function fd(e) {
989
989
  const t = [];
990
- return Gi(e).forEach(({ key: o, name: i }) => {
990
+ return $i(e).forEach(({ key: o, name: i }) => {
991
991
  t.push([T[i] ?? i, o]);
992
- }), me(t);
992
+ }), ge(t);
993
993
  }
994
994
  function Fn(e, t) {
995
995
  var _, h;
996
- const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = [], a = Ho(o, i);
996
+ const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = [], a = Ko(o, i);
997
997
  if (!a)
998
998
  return console.assert(!1, "invalid prop tag", o, i), s;
999
999
  const l = Ke(e);
@@ -1003,7 +1003,7 @@ function Fn(e, t) {
1003
1003
  }
1004
1004
  function pn(e, t) {
1005
1005
  var l, c;
1006
- const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = Ho(o, i);
1006
+ const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = Ko(o, i);
1007
1007
  if (!s) {
1008
1008
  console.assert(!1, "invalid prop tag", o, i);
1009
1009
  return;
@@ -1012,14 +1012,14 @@ function pn(e, t) {
1012
1012
  if (a)
1013
1013
  return (c = (l = n[a.key]) == null ? void 0 : l[s]) == null ? void 0 : c.find((_) => _.keys === t);
1014
1014
  }
1015
- function er(e, t) {
1015
+ function tr(e, t) {
1016
1016
  const { i18n: n } = V.base, o = [];
1017
1017
  return Fn(e, t).forEach((s) => {
1018
1018
  let a = "";
1019
1019
  s.names.forEach((l, c) => {
1020
1020
  c !== 0 && (a += " - "), a += n.global.t(l);
1021
1021
  }), o.push([a, s.keys]);
1022
- }), me(o);
1022
+ }), ge(o);
1023
1023
  }
1024
1024
  const gd = {
1025
1025
  init: function() {
@@ -1047,7 +1047,7 @@ const gd = {
1047
1047
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1048
1048
  const t = this.getField("NODE");
1049
1049
  t.getOptions(!1), t.setValue(this.node.id);
1050
- const n = (s = Gi(this.node.id)) == null ? void 0 : s[0];
1050
+ const n = (s = $i(this.node.id)) == null ? void 0 : s[0];
1051
1051
  if (!n)
1052
1052
  return;
1053
1053
  this.method.key = n.key, this.method.name = n.name, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
@@ -1095,13 +1095,13 @@ const gd = {
1095
1095
  const n = this.node.key !== t.key;
1096
1096
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1097
1097
  const o = this.getField("METHOD");
1098
- if (o.getOptions(!1), n || !Ei(this.node.id, this.method.key)) {
1099
- const s = (i = Gi(this.node.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
1098
+ if (o.getOptions(!1), n || !Ti(this.node.id, this.method.key)) {
1099
+ const s = (i = $i(this.node.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
1100
1100
  o.setValue(a), this.method.key === a && this.onMethodChange_(a);
1101
1101
  }
1102
1102
  },
1103
1103
  onMethodChange_: function(e) {
1104
- const t = Ei(this.node.id, e);
1104
+ const t = Ti(this.node.id, e);
1105
1105
  t ? (this.method.key = t.key, this.method.name = t.name, this.method.inputs = t.inputs, this.method.outputs = t.outputs) : (this.method.key = "", this.method.name = "", this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShape2_(), this.updateShadow_(), setTimeout(() => {
1106
1106
  this.rebuildBlocks_();
1107
1107
  }, 0);
@@ -1143,7 +1143,7 @@ const gd = {
1143
1143
  const t = this.method.inputs[e];
1144
1144
  if (!t.type)
1145
1145
  continue;
1146
- const n = ge({
1146
+ const n = fe({
1147
1147
  type: t.type,
1148
1148
  default: t.default
1149
1149
  });
@@ -1158,7 +1158,7 @@ const gd = {
1158
1158
  const { key: n, name: o } = this.method.outputs[t];
1159
1159
  e.push(["OUTPUT" + t, n, o, !0]);
1160
1160
  }
1161
- e.length > 0 && We(this, e);
1161
+ e.length > 0 && je(this, e);
1162
1162
  },
1163
1163
  checkWarning_: function() {
1164
1164
  const e = Ke(this.node.id);
@@ -1171,7 +1171,7 @@ const gd = {
1171
1171
  return;
1172
1172
  }
1173
1173
  e.alias !== this.node.alias && (this.node.alias = e.alias);
1174
- const t = Ei(this.node.id, this.method.key);
1174
+ const t = Ti(this.node.id, this.method.key);
1175
1175
  if (!t) {
1176
1176
  this.setWarningText(T.WARN_METHOD_NOT_AVAILABLE);
1177
1177
  return;
@@ -1234,10 +1234,10 @@ const md = {
1234
1234
  this.element.key = e.key, this.element.name = e.name;
1235
1235
  const t = this.getField("ELEMENT");
1236
1236
  t.getOptions(!1), t.setValue(this.element.key);
1237
- const n = (s = Hi(this.element.key)) == null ? void 0 : s[0];
1237
+ const n = (s = Ki(this.element.key)) == null ? void 0 : s[0];
1238
1238
  if (!n)
1239
1239
  return;
1240
- this.method = qa(n);
1240
+ this.method = Ja(n);
1241
1241
  const o = this.getField("METHOD");
1242
1242
  o.getOptions(!1), o.setValue(this.method.key);
1243
1243
  },
@@ -1279,13 +1279,13 @@ const md = {
1279
1279
  const n = this.element.key !== t.key;
1280
1280
  this.element.key = t.key, this.element.name = t.name;
1281
1281
  const o = this.getField("METHOD");
1282
- if (o.getOptions(!1), n || !mi(this.element.key, this.method.key)) {
1283
- const s = (i = Hi(this.element.key)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
1282
+ if (o.getOptions(!1), n || !gi(this.element.key, this.method.key)) {
1283
+ const s = (i = Ki(this.element.key)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
1284
1284
  o.setValue(a), this.method.key === a && this.onMethodChange_(a);
1285
1285
  }
1286
1286
  },
1287
1287
  onMethodChange_: function(e) {
1288
- const t = mi(this.element.key, e);
1288
+ const t = gi(this.element.key, e);
1289
1289
  t ? (this.method.key = t.key, this.method.name = t.name, this.method.inputs = t.inputs, this.method.outputs = t.outputs) : (this.method.key = "", this.method.name = "", this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShape2_(), this.updateShadow_(), setTimeout(() => {
1290
1290
  this.rebuildBlocks_();
1291
1291
  }, 0);
@@ -1327,7 +1327,7 @@ const md = {
1327
1327
  const t = this.method.inputs[e];
1328
1328
  if (!t.type)
1329
1329
  continue;
1330
- const n = ge({
1330
+ const n = fe({
1331
1331
  type: t.type,
1332
1332
  default: t.default
1333
1333
  });
@@ -1342,7 +1342,7 @@ const md = {
1342
1342
  const { key: n, name: o } = this.method.outputs[t];
1343
1343
  e.push(["OUTPUT" + t, n, o, !0]);
1344
1344
  }
1345
- e.length > 0 && We(this, e);
1345
+ e.length > 0 && je(this, e);
1346
1346
  },
1347
1347
  checkWarning_: function() {
1348
1348
  const e = xt(this.element.key);
@@ -1351,7 +1351,7 @@ const md = {
1351
1351
  return;
1352
1352
  }
1353
1353
  this.element.name !== e.name && (this.element.name = e.name);
1354
- const t = mi(this.element.key, this.method.key);
1354
+ const t = gi(this.element.key, this.method.key);
1355
1355
  if (!t) {
1356
1356
  this.setWarningText(T.WARN_METHOD_NOT_AVAILABLE);
1357
1357
  return;
@@ -1393,22 +1393,22 @@ function Td() {
1393
1393
  function Yn() {
1394
1394
  return V.app.activeComp.meta.methods;
1395
1395
  }
1396
- function Co(e) {
1396
+ function yo(e) {
1397
1397
  return V.app.activeComp.meta.methods.find((t) => t.id === e);
1398
1398
  }
1399
- function tr() {
1399
+ function nr() {
1400
1400
  const e = [];
1401
1401
  return Yn().forEach((n) => {
1402
1402
  e.push([n.name, n.id]);
1403
- }), me(e);
1403
+ }), ge(e);
1404
1404
  }
1405
- function ji(e) {
1405
+ function Gi(e) {
1406
1406
  const t = V.app.activeComp.meta.methods.find(
1407
1407
  (n) => n.id === e
1408
1408
  );
1409
1409
  return t ? t.outputs : [];
1410
1410
  }
1411
- function Ai(e, t) {
1411
+ function Ei(e, t) {
1412
1412
  const n = V.app.activeComp.meta.methods.find(
1413
1413
  (o) => o.id === e
1414
1414
  );
@@ -1417,11 +1417,11 @@ function Ai(e, t) {
1417
1417
  }
1418
1418
  function Ed(e) {
1419
1419
  const t = [];
1420
- return ji(e).forEach((o) => {
1420
+ return Gi(e).forEach((o) => {
1421
1421
  t.push([o.name, o.id]);
1422
- }), me(t);
1422
+ }), ge(t);
1423
1423
  }
1424
- function nr() {
1424
+ function or() {
1425
1425
  return V.app.activeComp.meta.events;
1426
1426
  }
1427
1427
  function na(e) {
@@ -1429,9 +1429,9 @@ function na(e) {
1429
1429
  }
1430
1430
  function Ad() {
1431
1431
  const e = [];
1432
- return nr().forEach((n) => {
1432
+ return or().forEach((n) => {
1433
1433
  e.push([n.name, n.id]);
1434
- }), me(e);
1434
+ }), ge(e);
1435
1435
  }
1436
1436
  const vd = {
1437
1437
  init: function() {
@@ -1467,7 +1467,7 @@ const vd = {
1467
1467
  }, 0);
1468
1468
  },
1469
1469
  genMethodOpts_: function() {
1470
- return tr();
1470
+ return nr();
1471
1471
  },
1472
1472
  onchange: function(e) {
1473
1473
  if (e.type === w.BLOCK_CHANGE) {
@@ -1480,7 +1480,7 @@ const vd = {
1480
1480
  }
1481
1481
  },
1482
1482
  onMethodChange_: function(e) {
1483
- const t = Co(e);
1483
+ const t = yo(e);
1484
1484
  t ? (this.method.id = t.id, this.method.name = t.name, this.method.inputs = t.inputs) : (this.method.id = "", this.method.name = "", this.method.inputs = []), this.updateShape_(), setTimeout(() => {
1485
1485
  this.rebuildBlocks();
1486
1486
  }, 0);
@@ -1502,10 +1502,10 @@ const vd = {
1502
1502
  const { id: n, name: o } = this.method.inputs[t];
1503
1503
  e.push(["INPUT" + t, `__param@${n}__`, o, !1]);
1504
1504
  }
1505
- We(this, e);
1505
+ je(this, e);
1506
1506
  },
1507
1507
  checkWarning_: function() {
1508
- const e = Co(this.method.id);
1508
+ const e = yo(this.method.id);
1509
1509
  if (!e) {
1510
1510
  this.setWarningText(T.WARN_METHOD_NOT_AVAILABLE);
1511
1511
  return;
@@ -1635,7 +1635,7 @@ const bd = {
1635
1635
  return Gn();
1636
1636
  },
1637
1637
  genPropOpts_: function() {
1638
- return er(this.node.id);
1638
+ return tr(this.node.id);
1639
1639
  },
1640
1640
  onchange: function(e) {
1641
1641
  if (e.type === w.BLOCK_CHANGE) {
@@ -1716,7 +1716,7 @@ const Id = {
1716
1716
  const n = (s = Vn(this.element.key)) == null ? void 0 : s[0];
1717
1717
  if (!n)
1718
1718
  return;
1719
- this.prop.keys = n.keys, this.prop.names = qa(n.names);
1719
+ this.prop.keys = n.keys, this.prop.names = Ja(n.names);
1720
1720
  const o = this.getField("PROP");
1721
1721
  o.getOptions(!1), o.setValue(this.prop.keys);
1722
1722
  },
@@ -1736,7 +1736,7 @@ const Id = {
1736
1736
  return fn();
1737
1737
  },
1738
1738
  genPropOpts_: function() {
1739
- return Za(this.element.key);
1739
+ return er(this.element.key);
1740
1740
  },
1741
1741
  onchange: function(e) {
1742
1742
  if (e.type === w.BLOCK_CHANGE) {
@@ -1790,7 +1790,7 @@ r.forBlock.get_node_prop_as_v1 = function(e) {
1790
1790
  function yd() {
1791
1791
  if (V.app.activeObject.type !== "page" || V.app.activePage.meta.arguments.length > 0) return !1;
1792
1792
  }
1793
- function or() {
1793
+ function ir() {
1794
1794
  return V.app.activePage.meta.arguments;
1795
1795
  }
1796
1796
  function oa(e) {
@@ -1800,9 +1800,9 @@ function oa(e) {
1800
1800
  }
1801
1801
  function Cd() {
1802
1802
  const e = [];
1803
- return or().forEach((n) => {
1803
+ return ir().forEach((n) => {
1804
1804
  e.push([n.name, n.id]);
1805
- }), me(e);
1805
+ }), ge(e);
1806
1806
  }
1807
1807
  const Nd = {
1808
1808
  init: function() {
@@ -1878,22 +1878,22 @@ function kd() {
1878
1878
  const e = [];
1879
1879
  return rs().forEach((n) => {
1880
1880
  e.push([n.name, n.id]);
1881
- }), me(e);
1881
+ }), ge(e);
1882
1882
  }
1883
- function Wi(e) {
1883
+ function ji(e) {
1884
1884
  const t = V.app.appList.find((n) => n.id === e);
1885
1885
  return t ? t.pages : [];
1886
1886
  }
1887
- function vi(e, t) {
1887
+ function Ai(e, t) {
1888
1888
  const n = V.app.appList.find((o) => o.id === e);
1889
1889
  if (n)
1890
1890
  return n.pages.find((o) => o.id === t);
1891
1891
  }
1892
1892
  function Ld(e) {
1893
1893
  const t = [];
1894
- return Wi(e).forEach((o) => {
1894
+ return ji(e).forEach((o) => {
1895
1895
  t.push([o.name, o.id]);
1896
- }), me(t);
1896
+ }), ge(t);
1897
1897
  }
1898
1898
  const Sd = {
1899
1899
  init: function() {
@@ -1921,7 +1921,7 @@ const Sd = {
1921
1921
  this.app.id = e.id, this.app.name = e.name;
1922
1922
  const t = this.getField("APP");
1923
1923
  t.getOptions(!1), t.setValue(this.app.id);
1924
- const n = (s = Wi(this.app.id)) == null ? void 0 : s[0];
1924
+ const n = (s = ji(this.app.id)) == null ? void 0 : s[0];
1925
1925
  if (!n)
1926
1926
  return;
1927
1927
  this.page.id = n.id, this.page.name = n.name;
@@ -1966,13 +1966,13 @@ const Sd = {
1966
1966
  const n = this.app.id !== t.id;
1967
1967
  this.app.id = t.id, this.app.name = t.name;
1968
1968
  const o = this.getField("PAGE");
1969
- if (o.getOptions(!1), n || !vi(this.app.id, this.page.id)) {
1970
- const s = (i = Wi(this.app.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.id) ?? "";
1969
+ if (o.getOptions(!1), n || !Ai(this.app.id, this.page.id)) {
1970
+ const s = (i = ji(this.app.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.id) ?? "";
1971
1971
  o.setValue(a), this.page.id === a && this.onPageChange_(a);
1972
1972
  }
1973
1973
  },
1974
1974
  onPageChange_: function(e) {
1975
- const t = vi(this.app.id, e);
1975
+ const t = Ai(this.app.id, e);
1976
1976
  t ? (this.page.id = t.id, this.page.name = t.name) : (this.page.id = "", this.page.name = "");
1977
1977
  },
1978
1978
  checkWarning_: function() {
@@ -1982,7 +1982,7 @@ const Sd = {
1982
1982
  return;
1983
1983
  }
1984
1984
  e.name !== this.app.name && (this.app.name = e.name);
1985
- const t = vi(this.app.id, this.page.id);
1985
+ const t = Ai(this.app.id, this.page.id);
1986
1986
  if (!t) {
1987
1987
  this.setWarningText(T.WARN_PAGE_NOT_AVAIALABLE);
1988
1988
  return;
@@ -2021,7 +2021,7 @@ const Bd = {
2021
2021
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2022
2022
  const t = this.getField("NODE");
2023
2023
  t.getOptions(!1), t.setValue(this.node.id);
2024
- const n = (s = $i(this.node.id)) == null ? void 0 : s[0];
2024
+ const n = (s = Hi(this.node.id)) == null ? void 0 : s[0];
2025
2025
  if (!n)
2026
2026
  return;
2027
2027
  this.event.key = n.key, this.event.name = n.name, this.event.params = n.params;
@@ -2066,13 +2066,13 @@ const Bd = {
2066
2066
  const n = this.node.key !== t.key;
2067
2067
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2068
2068
  const o = this.getField("EVENT");
2069
- if (o.getOptions(!1), n || !Ti(this.node.id, this.event.key)) {
2070
- const s = (i = $i(this.node.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
2069
+ if (o.getOptions(!1), n || !mi(this.node.id, this.event.key)) {
2070
+ const s = (i = Hi(this.node.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
2071
2071
  o.setValue(a), this.event.key === a && this.onEventChange_(a);
2072
2072
  }
2073
2073
  },
2074
2074
  onEventChange_: function(e) {
2075
- const t = Ti(this.node.id, e);
2075
+ const t = mi(this.node.id, e);
2076
2076
  t ? (this.event.key = t.key, this.event.name = t.name, this.event.params = t.params) : (this.event.key = "", this.event.name = "", this.event.params = []), this.updateShape_(), setTimeout(() => {
2077
2077
  this.rebuildBlocks_();
2078
2078
  }, 0);
@@ -2091,7 +2091,7 @@ const Bd = {
2091
2091
  const e = [];
2092
2092
  this.event.params.forEach(({ key: t, name: n }, o) => {
2093
2093
  e.push(["PARAM" + o, `__param@${t}__`, n, !1]);
2094
- }), e.length > 0 && We(this, e);
2094
+ }), e.length > 0 && je(this, e);
2095
2095
  },
2096
2096
  checkWarning_: function() {
2097
2097
  const e = Ke(this.node.id);
@@ -2104,7 +2104,7 @@ const Bd = {
2104
2104
  return;
2105
2105
  }
2106
2106
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2107
- const t = Ti(this.node.id, this.event.key);
2107
+ const t = mi(this.node.id, this.event.key);
2108
2108
  if (!t) {
2109
2109
  this.setWarningText(T.WARN_EVENT_NOT_AVAILABLE);
2110
2110
  return;
@@ -2155,7 +2155,7 @@ const Rd = {
2155
2155
  this.element.key = e.key, this.element.name = e.name;
2156
2156
  const t = this.getField("ELEMENT");
2157
2157
  t.getOptions(!1), t.setValue(this.element.key);
2158
- const n = (s = Ki(this.element.key)) == null ? void 0 : s[0];
2158
+ const n = (s = Yi(this.element.key)) == null ? void 0 : s[0];
2159
2159
  if (!n)
2160
2160
  return;
2161
2161
  this.event.key = n.key, this.event.name = n.name, this.event.params = n.params;
@@ -2200,13 +2200,13 @@ const Rd = {
2200
2200
  const n = this.element.key !== t.key;
2201
2201
  this.element.key = t.key, this.element.name = t.name;
2202
2202
  const o = this.getField("EVENT");
2203
- if (o.getOptions(!1), n || !gi(this.element.key, this.event.key)) {
2204
- const s = (i = Ki(this.element.key)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
2203
+ if (o.getOptions(!1), n || !fi(this.element.key, this.event.key)) {
2204
+ const s = (i = Yi(this.element.key)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.key) ?? "";
2205
2205
  o.setValue(a, !1), this.event.key !== a && this.onEventChange_(a);
2206
2206
  }
2207
2207
  },
2208
2208
  onEventChange_: function(e) {
2209
- const t = gi(this.element.key, e);
2209
+ const t = fi(this.element.key, e);
2210
2210
  t ? (this.event.key = t.key, this.event.name = t.name, this.event.params = t.params) : (this.event.key = "", this.event.name = "", this.event.params = []), this.updateShape_(), setTimeout(() => {
2211
2211
  this.rebuildBlocks_();
2212
2212
  }, 0);
@@ -2225,7 +2225,7 @@ const Rd = {
2225
2225
  const e = [];
2226
2226
  this.event.params.forEach(({ key: t, name: n }, o) => {
2227
2227
  e.push(["PARAM" + o, `__param@${t}__`, n, !1]);
2228
- }), e.length > 0 && We(this, e);
2228
+ }), e.length > 0 && je(this, e);
2229
2229
  },
2230
2230
  checkWarning_: function() {
2231
2231
  const e = xt(this.element.key);
@@ -2234,7 +2234,7 @@ const Rd = {
2234
2234
  return;
2235
2235
  }
2236
2236
  e.name !== this.element.name && (this.element.name = e.name);
2237
- const t = gi(this.element.key, this.event.key);
2237
+ const t = fi(this.element.key, this.event.key);
2238
2238
  if (!t) {
2239
2239
  this.setWarningText(T.WARN_EVENT_NOT_AVAILABLE);
2240
2240
  return;
@@ -2276,13 +2276,13 @@ const Dd = {
2276
2276
  updateShadow_: function() {
2277
2277
  if (this.isInsertionMarker())
2278
2278
  return;
2279
- const e = ge({ type: "string", default: "" });
2279
+ const e = fe({ type: "string", default: "" });
2280
2280
  this.getInput("TITLE").connection.setShadowDom(e);
2281
- const t = ge({ type: "string", default: "" });
2281
+ const t = fe({ type: "string", default: "" });
2282
2282
  this.getInput("TEXT").connection.setShadowDom(t);
2283
2283
  },
2284
2284
  rebuildBlocks_: function() {
2285
- this.isInsertionMarker() || We(this, [
2285
+ this.isInsertionMarker() || je(this, [
2286
2286
  ["RESULT", "__result__", "PARAM_RESULT", !1]
2287
2287
  ]);
2288
2288
  }
@@ -2313,15 +2313,15 @@ const Md = {
2313
2313
  updateShadow_: function() {
2314
2314
  if (this.isInsertionMarker())
2315
2315
  return;
2316
- const e = ge({ type: "string", default: "" });
2316
+ const e = fe({ type: "string", default: "" });
2317
2317
  this.getInput("TITLE").connection.setShadowDom(e);
2318
- const t = ge({ type: "string", default: "" });
2318
+ const t = fe({ type: "string", default: "" });
2319
2319
  this.getInput("LABEL").connection.setShadowDom(t);
2320
- const n = ge({ type: "string", default: "" });
2320
+ const n = fe({ type: "string", default: "" });
2321
2321
  this.getInput("VALUE").connection.setShadowDom(n);
2322
2322
  },
2323
2323
  rebuildBlocks_: function() {
2324
- this.isInsertionMarker() || We(this, [
2324
+ this.isInsertionMarker() || je(this, [
2325
2325
  ["RESULT", "__result__", "PARAM_RESULT", !1]
2326
2326
  ]);
2327
2327
  }
@@ -2393,7 +2393,7 @@ const Pd = {
2393
2393
  this.method.id = e.id, this.method.name = e.name;
2394
2394
  const t = this.getField("METHOD");
2395
2395
  t.getOptions(!1), t.setValue(this.method.id);
2396
- const n = (s = ji(this.method.id)) == null ? void 0 : s[0];
2396
+ const n = (s = Gi(this.method.id)) == null ? void 0 : s[0];
2397
2397
  if (!n)
2398
2398
  return;
2399
2399
  this.output.id = n.id, this.output.name = n.name, this.output.type = n.type;
@@ -2412,7 +2412,7 @@ const Pd = {
2412
2412
  }, 0);
2413
2413
  },
2414
2414
  genMethodOpts_: function() {
2415
- return tr();
2415
+ return nr();
2416
2416
  },
2417
2417
  genOutputOpts_: function() {
2418
2418
  return Ed(this.method.id);
@@ -2430,7 +2430,7 @@ const Pd = {
2430
2430
  },
2431
2431
  onMethodChange_: function(e) {
2432
2432
  var i;
2433
- const t = Co(e);
2433
+ const t = yo(e);
2434
2434
  if (!t) {
2435
2435
  console.assert(!1);
2436
2436
  return;
@@ -2438,13 +2438,13 @@ const Pd = {
2438
2438
  const n = this.method.id !== t.id;
2439
2439
  this.method.id = t.id, this.method.name = t.name;
2440
2440
  const o = this.getField("OUTPUT");
2441
- if (o.getOptions(!1), n || !Ai(this.method.id, this.output.id)) {
2442
- const s = (i = ji(this.method.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.id) ?? "";
2441
+ if (o.getOptions(!1), n || !Ei(this.method.id, this.output.id)) {
2442
+ const s = (i = Gi(this.method.id)) == null ? void 0 : i[0], a = (s == null ? void 0 : s.id) ?? "";
2443
2443
  o.setValue(a), this.output.id === a && this.onOutputChange_(a);
2444
2444
  }
2445
2445
  },
2446
2446
  onOutputChange_: function(e) {
2447
- const t = Ai(this.method.id, e);
2447
+ const t = Ei(this.method.id, e);
2448
2448
  t ? (this.output.id = t.id, this.output.name = t.name, this.output.type = t.type) : (this.output.id = "", this.output.name = "", this.output.type = "");
2449
2449
  },
2450
2450
  updateShape_: function() {
@@ -2460,16 +2460,16 @@ const Pd = {
2460
2460
  return;
2461
2461
  let e = null;
2462
2462
  const t = this.output.type;
2463
- t === "string" ? e = ge({ type: "string", default: "" }) : t === "number" ? e = ge({ type: "number", default: 0 }) : t === "boolean" && (e = ge({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
2463
+ t === "string" ? e = fe({ type: "string", default: "" }) : t === "number" ? e = fe({ type: "number", default: 0 }) : t === "boolean" && (e = fe({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
2464
2464
  },
2465
2465
  checkWarning_: function() {
2466
- const e = Co(this.method.id);
2466
+ const e = yo(this.method.id);
2467
2467
  if (!e) {
2468
2468
  this.setWarningText(T.WARN_METHOD_NOT_AVAILABLE);
2469
2469
  return;
2470
2470
  }
2471
2471
  e.name !== this.method.name && (this.method.name = e.name);
2472
- const t = Ai(this.method.id, this.output.id);
2472
+ const t = Ei(this.method.id, this.output.id);
2473
2473
  if (!t) {
2474
2474
  this.setWarningText(T.WARN_OUTPUT_NOT_AVAILABLE);
2475
2475
  return;
@@ -2550,7 +2550,7 @@ const Ud = {
2550
2550
  return Gn();
2551
2551
  },
2552
2552
  genPropOpts_: function() {
2553
- return er(this.node.id);
2553
+ return tr(this.node.id);
2554
2554
  },
2555
2555
  onchange: function(e) {
2556
2556
  if (e.type === w.BLOCK_CHANGE) {
@@ -2650,7 +2650,7 @@ const xd = {
2650
2650
  return fn();
2651
2651
  },
2652
2652
  genPropOpts_: function() {
2653
- return Za(this.element.key);
2653
+ return er(this.element.key);
2654
2654
  },
2655
2655
  onchange: function(e) {
2656
2656
  if (e.type === w.BLOCK_CHANGE) {
@@ -2721,7 +2721,7 @@ const wd = {
2721
2721
  var n;
2722
2722
  if (this.event.id)
2723
2723
  return;
2724
- const e = (n = nr()) == null ? void 0 : n[0];
2724
+ const e = (n = or()) == null ? void 0 : n[0];
2725
2725
  if (!e)
2726
2726
  return;
2727
2727
  this.event.id = e.id, this.event.name = e.name, this.event.params = e.params;
@@ -2779,7 +2779,7 @@ const wd = {
2779
2779
  for (let n = 0; n < this.event.params.length; n++) {
2780
2780
  const o = this.event.params[n].type;
2781
2781
  let i = null;
2782
- o === "string" ? i = ge({ type: "string", default: "" }) : o === "number" ? i = ge({ type: "number", default: 0 }) : o === "boolean" && (i = ge({ type: "boolean", default: !1 })), (t = (e = this.getInput("PARAM" + n)) == null ? void 0 : e.connection) == null || t.setShadowDom(i);
2782
+ o === "string" ? i = fe({ type: "string", default: "" }) : o === "number" ? i = fe({ type: "number", default: 0 }) : o === "boolean" && (i = fe({ type: "boolean", default: !1 })), (t = (e = this.getInput("PARAM" + n)) == null ? void 0 : e.connection) == null || t.setShadowDom(i);
2783
2783
  }
2784
2784
  },
2785
2785
  checkWarning_: function() {
@@ -3070,31 +3070,31 @@ function gn(e) {
3070
3070
  e === "func" && n.funcs.length > 0 && t.push(n), e === "flow" && n.flows.length > 0 && t.push(n);
3071
3071
  }), t;
3072
3072
  }
3073
- function ir(e) {
3073
+ function sr(e) {
3074
3074
  return V.compute.spaces.find((t) => t.id === e);
3075
3075
  }
3076
- function sr() {
3076
+ function ar() {
3077
3077
  const e = [];
3078
3078
  return gn().forEach((n) => {
3079
3079
  e.push([n.name, n.id]);
3080
- }), me(e);
3080
+ }), ge(e);
3081
3081
  }
3082
3082
  function ls(e) {
3083
3083
  const t = V.compute.spaces.find((n) => n.id === e);
3084
3084
  return t ? t.funcs : [];
3085
3085
  }
3086
- function ar(e, t) {
3086
+ function rr(e, t) {
3087
3087
  const n = V.compute.spaces.find((o) => o.id === e);
3088
3088
  if (n)
3089
3089
  return n.funcs.find((o) => o.id === t);
3090
3090
  }
3091
- function rr(e) {
3091
+ function lr(e) {
3092
3092
  const t = [];
3093
3093
  return ls(e).forEach((o) => {
3094
3094
  t.push([o.name, o.id]);
3095
- }), me(t);
3095
+ }), ge(t);
3096
3096
  }
3097
- function Xi() {
3097
+ function Wi() {
3098
3098
  return V.compute.activeFunc;
3099
3099
  }
3100
3100
  function sa(e) {
@@ -3105,7 +3105,7 @@ function Hd() {
3105
3105
  const e = [], { outputs: t } = V.compute.activeFunc;
3106
3106
  return t.forEach(({ id: n, name: o }) => {
3107
3107
  e.push([o, n]);
3108
- }), me(e);
3108
+ }), ge(e);
3109
3109
  }
3110
3110
  const $d = {
3111
3111
  init: function() {
@@ -3152,10 +3152,10 @@ const $d = {
3152
3152
  }, 0);
3153
3153
  },
3154
3154
  genSpaceOpts_: function() {
3155
- return sr();
3155
+ return ar();
3156
3156
  },
3157
3157
  genFuncOpts_: function() {
3158
- return rr(this.space.id);
3158
+ return lr(this.space.id);
3159
3159
  },
3160
3160
  onchange: function() {
3161
3161
  setTimeout(() => {
@@ -3197,7 +3197,7 @@ const $d = {
3197
3197
  n = { type: "boolean", default: !1 };
3198
3198
  else
3199
3199
  continue;
3200
- this.getInput("INPUT" + e).connection.setShadowDom(ge(n));
3200
+ this.getInput("INPUT" + e).connection.setShadowDom(fe(n));
3201
3201
  }
3202
3202
  },
3203
3203
  rebuildBlocks_: function() {
@@ -3208,16 +3208,16 @@ const $d = {
3208
3208
  const { id: n, name: o } = this.func.outputs[t];
3209
3209
  e.push(["OUTPUT" + t, `__param@${n}__`, o, !1]);
3210
3210
  }
3211
- We(this, e);
3211
+ je(this, e);
3212
3212
  },
3213
3213
  checkWarning_: function() {
3214
- const e = ir(this.space.id);
3214
+ const e = sr(this.space.id);
3215
3215
  if (!e) {
3216
3216
  this.setWarningText(T.WARN_SPACE_NOT_AVAILABLE);
3217
3217
  return;
3218
3218
  }
3219
3219
  e.name !== this.space.name && (this.space.name = e.name);
3220
- const t = ar(this.space.id, this.func.id);
3220
+ const t = rr(this.space.id, this.func.id);
3221
3221
  if (!t) {
3222
3222
  this.setWarningText(T.WARN_FUNC_NOT_AVAILABLE);
3223
3223
  return;
@@ -3296,10 +3296,10 @@ const Gd = {
3296
3296
  }, 0);
3297
3297
  },
3298
3298
  genSpaceOpts_: function() {
3299
- return sr();
3299
+ return ar();
3300
3300
  },
3301
3301
  genFuncOpts_: function() {
3302
- return rr(this.space.id);
3302
+ return lr(this.space.id);
3303
3303
  },
3304
3304
  onchange: function() {
3305
3305
  setTimeout(() => {
@@ -3341,7 +3341,7 @@ const Gd = {
3341
3341
  n = { type: "boolean", default: !1 };
3342
3342
  else
3343
3343
  continue;
3344
- this.getInput("INPUT" + e).connection.setShadowDom(ge(n));
3344
+ this.getInput("INPUT" + e).connection.setShadowDom(fe(n));
3345
3345
  }
3346
3346
  },
3347
3347
  rebuildBlocks_: function() {
@@ -3352,16 +3352,16 @@ const Gd = {
3352
3352
  const { id: n, name: o } = this.func.outputs[t];
3353
3353
  e.push(["OUTPUT" + t, `__param@${n}__`, o, !1]);
3354
3354
  }
3355
- We(this, e);
3355
+ je(this, e);
3356
3356
  },
3357
3357
  checkWarning_: function() {
3358
- const e = ir(this.space.id);
3358
+ const e = sr(this.space.id);
3359
3359
  if (!e) {
3360
3360
  this.setWarningText(T.WARN_SPACE_NOT_AVAILABLE);
3361
3361
  return;
3362
3362
  }
3363
3363
  e.name !== this.space.name && (this.space.name = e.name);
3364
- const t = ar(this.space.id, this.func.id);
3364
+ const t = rr(this.space.id, this.func.id);
3365
3365
  if (!t) {
3366
3366
  this.setWarningText(T.WARN_FUNC_NOT_AVAILABLE);
3367
3367
  return;
@@ -3436,7 +3436,7 @@ const jd = {
3436
3436
  initData_: function() {
3437
3437
  if (this.func.id)
3438
3438
  return;
3439
- const { id: e, inputs: t } = Xi();
3439
+ const { id: e, inputs: t } = Wi();
3440
3440
  this.func.id = e, this.func.inputs = t;
3441
3441
  },
3442
3442
  saveExtraState: function() {
@@ -3472,10 +3472,10 @@ const jd = {
3472
3472
  const { name: n } = this.func.inputs[t];
3473
3473
  e.push(["INPUT" + t, n, n, !1]);
3474
3474
  }
3475
- We(this, e);
3475
+ je(this, e);
3476
3476
  },
3477
3477
  checkWarning_: function() {
3478
- const { id: e, inputs: t } = Xi();
3478
+ const { id: e, inputs: t } = Wi();
3479
3479
  if (this.func.id !== e && (this.func.id = e), !xe(t, this.func.inputs)) {
3480
3480
  this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
3481
3481
  return;
@@ -3517,7 +3517,7 @@ const Xd = {
3517
3517
  var t;
3518
3518
  if (this.output.id)
3519
3519
  return;
3520
- const e = (t = Xi().outputs) == null ? void 0 : t[0];
3520
+ const e = (t = Wi().outputs) == null ? void 0 : t[0];
3521
3521
  e && (this.output.id = e.id, this.output.name = e.name, this.output.type = e.type);
3522
3522
  },
3523
3523
  saveExtraState: function() {
@@ -3566,7 +3566,7 @@ const Xd = {
3566
3566
  return;
3567
3567
  let e = null;
3568
3568
  const t = this.output.type;
3569
- t === "string" ? e = ge({ type: "string", default: "" }) : t === "number" ? e = ge({ type: "number", default: 0 }) : t === "boolean" && (e = ge({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
3569
+ t === "string" ? e = fe({ type: "string", default: "" }) : t === "number" ? e = fe({ type: "number", default: 0 }) : t === "boolean" && (e = fe({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
3570
3570
  },
3571
3571
  checkWarning_: function() {
3572
3572
  const e = sa(this.output.id);
@@ -3624,7 +3624,7 @@ const zd = {
3624
3624
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
3625
3625
  },
3626
3626
  rebuildBlocks_: function() {
3627
- this.isInsertionMarker() || We(this, [
3627
+ this.isInsertionMarker() || je(this, [
3628
3628
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
3629
3629
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
3630
3630
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -3653,11 +3653,11 @@ function wt(e) {
3653
3653
  const { spaces: t } = V.data;
3654
3654
  return t.find((n) => n.id === e);
3655
3655
  }
3656
- function Wo() {
3656
+ function jo() {
3657
3657
  const e = [];
3658
3658
  return En().forEach((n) => {
3659
3659
  e.push([n.name, n.id]);
3660
- }), me(e);
3660
+ }), ge(e);
3661
3661
  }
3662
3662
  function Ot(e) {
3663
3663
  const { spaces: t } = V.data, n = t.find((o) => o.id === e);
@@ -3668,11 +3668,11 @@ function Ue(e, t) {
3668
3668
  if (o)
3669
3669
  return o.tables.find((i) => i.id === t);
3670
3670
  }
3671
- function Xo(e) {
3671
+ function Wo(e) {
3672
3672
  const t = [];
3673
3673
  return Ot(e).forEach((o) => {
3674
3674
  t.push([o.name, o.id]);
3675
- }), me(t);
3675
+ }), ge(t);
3676
3676
  }
3677
3677
  const qd = {
3678
3678
  init: function() {
@@ -3742,16 +3742,16 @@ const qd = {
3742
3742
  }, 0);
3743
3743
  },
3744
3744
  genSpaceOpts_: function() {
3745
- return Wo();
3745
+ return jo();
3746
3746
  },
3747
3747
  genTableOpts_: function() {
3748
- return Xo(this.space.id);
3748
+ return Wo(this.space.id);
3749
3749
  },
3750
3750
  genColumnOpts_: function() {
3751
3751
  const e = [], t = Ue(this.space.id, this.table.id);
3752
3752
  return t == null || t.columns.forEach((n) => {
3753
3753
  e.push([n.name, n.name]);
3754
- }), me(e);
3754
+ }), ge(e);
3755
3755
  },
3756
3756
  onchange: function(e) {
3757
3757
  if (e.type === w.BLOCK_CHANGE) {
@@ -3945,7 +3945,7 @@ const eh = {
3945
3945
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "HANDLE")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
3946
3946
  },
3947
3947
  rebuildBlocks_: function() {
3948
- this.isInsertionMarker() || We(this, [
3948
+ this.isInsertionMarker() || je(this, [
3949
3949
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
3950
3950
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0]
3951
3951
  ]);
@@ -4004,7 +4004,7 @@ const th = {
4004
4004
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("EXTRA_DATA") || (this.appendValueInput("EXTRA_DATA"), this.moveInputBefore("EXTRA_DATA", "HANDLE")), this.getInput("MAIN_DATA") || (this.appendValueInput("MAIN_DATA"), this.moveInputBefore("MAIN_DATA", "EXTRA_DATA")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "MAIN_DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.extra ? this.getInput("EXTRA") || (this.appendValueInput("EXTRA").setCheck(["QueryExtra", "Array"]).setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")) : this.getInput("EXTRA") && this.removeInput("EXTRA"), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", this.extra ? "EXTRA" : "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4005
4005
  },
4006
4006
  rebuildBlocks_: function() {
4007
- this.isInsertionMarker() || We(this, [
4007
+ this.isInsertionMarker() || je(this, [
4008
4008
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4009
4009
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
4010
4010
  ["MAIN_DATA", "__mainData__", "PARAM_MAIN_DATA", !0],
@@ -4146,16 +4146,16 @@ const ih = {
4146
4146
  }, 0);
4147
4147
  },
4148
4148
  genSpaceOpts_: function() {
4149
- return Wo();
4149
+ return jo();
4150
4150
  },
4151
4151
  genTableOpts_: function() {
4152
- return Xo(this.space.id);
4152
+ return Wo(this.space.id);
4153
4153
  },
4154
4154
  genColumnOpts_: function() {
4155
4155
  const e = [], t = Ue(this.space.id, this.table.id);
4156
4156
  return t == null || t.columns.forEach((n) => {
4157
4157
  e.push([n.name, n.name]);
4158
- }), me(e);
4158
+ }), ge(e);
4159
4159
  },
4160
4160
  onchange: function(e) {
4161
4161
  var t;
@@ -4256,7 +4256,7 @@ const ih = {
4256
4256
  new $(() => this.genColumnOpts_()),
4257
4257
  "COLUMN" + e
4258
4258
  ).appendField("%{BKY_DATA_AS}").appendField(
4259
- new Vo(this.getFieldValue("COLUMN" + e)),
4259
+ new wo(this.getFieldValue("COLUMN" + e)),
4260
4260
  "ALIAS" + e
4261
4261
  );
4262
4262
  },
@@ -4337,10 +4337,10 @@ const sh = {
4337
4337
  this.space.id = ((t = e.space) == null ? void 0 : t.id) ?? "", this.space.name = ((n = e.space) == null ? void 0 : n.name) ?? "", this.table.id = ((o = e.table) == null ? void 0 : o.id) ?? "", this.table.name = ((i = e.table) == null ? void 0 : i.name) ?? "", this.checkWarning_();
4338
4338
  },
4339
4339
  genSpaceOpts_: function() {
4340
- return Wo();
4340
+ return jo();
4341
4341
  },
4342
4342
  genTableOpts_: function() {
4343
- return Xo(this.space.id);
4343
+ return Wo(this.space.id);
4344
4344
  },
4345
4345
  onchange: function(e) {
4346
4346
  if (e.type === w.BLOCK_CHANGE) {
@@ -4458,16 +4458,16 @@ const lh = {
4458
4458
  }, 0);
4459
4459
  },
4460
4460
  genSpaceOpts_: function() {
4461
- return Wo();
4461
+ return jo();
4462
4462
  },
4463
4463
  genTableOpts_: function() {
4464
- return Xo(this.space.id);
4464
+ return Wo(this.space.id);
4465
4465
  },
4466
4466
  genColumnOpts_: function() {
4467
4467
  const e = [], t = Ue(this.space.id, this.table.id);
4468
4468
  return t == null || t.columns.forEach((n) => {
4469
4469
  n.name !== "rowid" && e.push([n.name, n.name]);
4470
- }), me(e);
4470
+ }), ge(e);
4471
4471
  },
4472
4472
  onchange: function(e) {
4473
4473
  if (e.type === w.BLOCK_CHANGE) {
@@ -4640,7 +4640,7 @@ const ch = {
4640
4640
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(ce.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4641
4641
  },
4642
4642
  rebuildBlocks_: function() {
4643
- this.isInsertionMarker() || We(this, [
4643
+ this.isInsertionMarker() || je(this, [
4644
4644
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4645
4645
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
4646
4646
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -5421,7 +5421,7 @@ const Th = {
5421
5421
  e.push({
5422
5422
  enabled: !0,
5423
5423
  text: T.VARIABLES_SET_CREATE_GET.replace("%1", o),
5424
- callback: Sa.callbackFactory(this, i)
5424
+ callback: Ba.callbackFactory(this, i)
5425
5425
  });
5426
5426
  }
5427
5427
  }
@@ -6356,7 +6356,7 @@ const yh = {
6356
6356
  },
6357
6357
  updateShape_: function() {
6358
6358
  for (let e = 0; e < this.itemCount_; e++)
6359
- this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setAlign(ce.Align.RIGHT).appendField(new Vo("key"), "KEY" + e);
6359
+ this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setAlign(ce.Align.RIGHT).appendField(new wo("key"), "KEY" + e);
6360
6360
  for (let e = this.itemCount_; this.getInput("ADD" + e); e++)
6361
6361
  this.removeInput("ADD" + e);
6362
6362
  }
@@ -6627,7 +6627,7 @@ const aa = L.xml, Ch = {
6627
6627
  U.procedure_def_container_v1 = Ch;
6628
6628
  const Nh = {
6629
6629
  init: function() {
6630
- const e = new Vo(Ui.DEFAULT_ARG);
6630
+ const e = new wo(Pi.DEFAULT_ARG);
6631
6631
  e.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(e, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
6632
6632
  },
6633
6633
  validator_: function(e) {
@@ -6651,10 +6651,10 @@ U.procedure_def_item_v1 = Nh;
6651
6651
  const kh = {
6652
6652
  init: function() {
6653
6653
  this.withReturn = !1, this.args = [];
6654
- const e = new Vo(
6655
- Ui.findLegalName("", this)
6654
+ const e = new wo(
6655
+ Pi.findLegalName("", this)
6656
6656
  );
6657
- e.setValidator(Ui.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
6657
+ e.setValidator(Pi.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
6658
6658
  new Wt.MutatorIcon(
6659
6659
  ["procedure_def_item_v1"],
6660
6660
  this
@@ -7374,13 +7374,13 @@ const Ph = {
7374
7374
  updateShadow_: function() {
7375
7375
  var e, t, n, o, i, s, a, l;
7376
7376
  this.isInsertionMarker() || ((t = (e = this.getInput("INTERVAL")) == null ? void 0 : e.connection) == null || t.setShadowDom(
7377
- ge({ type: "number", default: 1e3 })
7377
+ fe({ type: "number", default: 1e3 })
7378
7378
  ), (o = (n = this.getInput("LOOP")) == null ? void 0 : n.connection) == null || o.setShadowDom(
7379
- ge({ type: "boolean", default: !1 })
7379
+ fe({ type: "boolean", default: !1 })
7380
7380
  ), (s = (i = this.getInput("COUNT")) == null ? void 0 : i.connection) == null || s.setShadowDom(
7381
- ge({ type: "number", default: 1 })
7381
+ fe({ type: "number", default: 1 })
7382
7382
  ), (l = (a = this.getInput("IMMEDIATE")) == null ? void 0 : a.connection) == null || l.setShadowDom(
7383
- ge({ type: "boolean", default: !1 })
7383
+ fe({ type: "boolean", default: !1 })
7384
7384
  ));
7385
7385
  }
7386
7386
  };
@@ -7438,7 +7438,7 @@ const Uh = {
7438
7438
  e.push({
7439
7439
  enabled: this.workspace.remainingCapacity() > 0,
7440
7440
  text: n.replace("%1", o.getText()),
7441
- callback: Sa.callbackFactory(this, i)
7441
+ callback: Ba.callbackFactory(this, i)
7442
7442
  });
7443
7443
  }
7444
7444
  }
@@ -7662,7 +7662,7 @@ function Vh() {
7662
7662
  }
7663
7663
  return e;
7664
7664
  }
7665
- const No = {
7665
+ const Co = {
7666
7666
  name: "DATA_CATEGORY",
7667
7667
  callback: Vh
7668
7668
  }, tn = L.xml;
@@ -7701,7 +7701,7 @@ function Fh(e) {
7701
7701
  console.assert(!1);
7702
7702
  return t;
7703
7703
  }
7704
- const ko = {
7704
+ const No = {
7705
7705
  name: "FLOW_CATEGORY",
7706
7706
  callback: Fh
7707
7707
  }, Et = L.xml;
@@ -7752,12 +7752,12 @@ function Yh(e) {
7752
7752
  console.assert(!1);
7753
7753
  return n;
7754
7754
  }
7755
- const Lo = {
7755
+ const ko = {
7756
7756
  name: "FUNC_CATEGORY",
7757
7757
  callback: Yh
7758
7758
  };
7759
7759
  L.xml;
7760
- const lr = {
7760
+ const cr = {
7761
7761
  name: "INTERFACE_CATEGORY"
7762
7762
  }, In = L.xml;
7763
7763
  function Kh() {
@@ -7788,102 +7788,102 @@ function Kh() {
7788
7788
  const Bt = {
7789
7789
  name: "PROCEDURE_CATEGORY",
7790
7790
  callback: Kh
7791
- }, Oe = L.xml;
7791
+ }, ve = L.xml;
7792
7792
  function Hh() {
7793
7793
  const e = [];
7794
7794
  if (yd()) {
7795
7795
  {
7796
- const t = Oe.createElement("label");
7796
+ const t = ve.createElement("label");
7797
7797
  t.setAttribute("text", T.LABEL_PAGE), e.push(t);
7798
7798
  }
7799
- if (or().length > 0) {
7800
- const t = Oe.createElement("block");
7799
+ if (ir().length > 0) {
7800
+ const t = ve.createElement("block");
7801
7801
  t.setAttribute("type", "get_page_argument_v1"), e.push(t);
7802
7802
  }
7803
7803
  }
7804
7804
  if (Td()) {
7805
7805
  {
7806
- const t = Oe.createElement("label");
7806
+ const t = ve.createElement("label");
7807
7807
  t.setAttribute("text", T.LABEL_COMP), e.push(t);
7808
7808
  }
7809
7809
  if (Yn().length > 0) {
7810
7810
  {
7811
- const t = Oe.createElement("block");
7811
+ const t = ve.createElement("block");
7812
7812
  t.setAttribute("type", "comp_method_impl_v1"), e.push(t);
7813
7813
  }
7814
7814
  {
7815
- const t = Oe.createElement("block");
7815
+ const t = ve.createElement("block");
7816
7816
  t.setAttribute("type", "set_comp_method_output_v1"), e.push(t);
7817
7817
  }
7818
7818
  }
7819
7819
  if (Yn().length > 0) {
7820
- const t = Oe.createElement("block");
7820
+ const t = ve.createElement("block");
7821
7821
  t.setAttribute("type", "trigger_comp_event_v1"), e.push(t);
7822
7822
  }
7823
7823
  }
7824
7824
  {
7825
- const t = Oe.createElement("label");
7825
+ const t = ve.createElement("label");
7826
7826
  t.setAttribute("text", T.LABEL_EVENT), e.push(t);
7827
7827
  }
7828
7828
  {
7829
- const t = Oe.createElement("block");
7829
+ const t = ve.createElement("block");
7830
7830
  t.setAttribute("type", "on_node_event_v1"), e.push(t);
7831
7831
  }
7832
7832
  {
7833
- const t = Oe.createElement("block");
7833
+ const t = ve.createElement("block");
7834
7834
  t.setAttribute("type", "on_node_event_as_v1"), e.push(t);
7835
7835
  }
7836
7836
  {
7837
- const t = Oe.createElement("label");
7837
+ const t = ve.createElement("label");
7838
7838
  t.setAttribute("text", T.LABEL_METHOD), e.push(t);
7839
7839
  }
7840
7840
  {
7841
- const t = Oe.createElement("block");
7841
+ const t = ve.createElement("block");
7842
7842
  t.setAttribute("type", "call_node_method_v1"), e.push(t);
7843
7843
  }
7844
7844
  {
7845
- const t = Oe.createElement("block");
7845
+ const t = ve.createElement("block");
7846
7846
  t.setAttribute("type", "call_node_method_as_v1"), e.push(t);
7847
7847
  }
7848
7848
  {
7849
- const t = Oe.createElement("label");
7849
+ const t = ve.createElement("label");
7850
7850
  t.setAttribute("text", T.LABEL_PROPERTY), e.push(t);
7851
7851
  }
7852
7852
  {
7853
- const t = Oe.createElement("block");
7853
+ const t = ve.createElement("block");
7854
7854
  t.setAttribute("type", "get_node_prop_v1"), e.push(t);
7855
7855
  }
7856
7856
  {
7857
- const t = Oe.createElement("block");
7857
+ const t = ve.createElement("block");
7858
7858
  t.setAttribute("type", "get_node_prop_as_v1"), e.push(t);
7859
7859
  }
7860
7860
  {
7861
- const t = Oe.createElement("block");
7861
+ const t = ve.createElement("block");
7862
7862
  t.setAttribute("type", "set_node_prop_v1"), e.push(t);
7863
7863
  }
7864
7864
  {
7865
- const t = Oe.createElement("block");
7865
+ const t = ve.createElement("block");
7866
7866
  t.setAttribute("type", "set_node_prop_as_v1"), e.push(t);
7867
7867
  }
7868
7868
  {
7869
- const t = Oe.createElement("label");
7869
+ const t = ve.createElement("label");
7870
7870
  t.setAttribute("text", T.LABEL_OTHER), e.push(t);
7871
7871
  }
7872
7872
  {
7873
- const t = Oe.createElement("block");
7873
+ const t = ve.createElement("block");
7874
7874
  t.setAttribute("type", "get_node_v1"), e.push(t);
7875
7875
  }
7876
7876
  {
7877
- const t = Oe.createElement("block");
7877
+ const t = ve.createElement("block");
7878
7878
  t.setAttribute("type", "app_env_v1"), e.push(t);
7879
7879
  }
7880
7880
  if (rs().length > 0) {
7881
- const t = Oe.createElement("block");
7881
+ const t = ve.createElement("block");
7882
7882
  t.setAttribute("type", "navigate_to_v1"), e.push(t);
7883
7883
  }
7884
7884
  return e;
7885
7885
  }
7886
- const So = {
7886
+ const Lo = {
7887
7887
  name: "UI_CATEGORY",
7888
7888
  callback: Hh
7889
7889
  }, ao = L.xml;
@@ -7927,21 +7927,21 @@ const Rt = {
7927
7927
  name: "VARIABLE_CATEGORY",
7928
7928
  callback: $h
7929
7929
  };
7930
- Ba.setConfirm(async (e, t) => {
7930
+ Ra.setConfirm(async (e, t) => {
7931
7931
  const n = await Jl({
7932
7932
  title: "",
7933
7933
  text: e
7934
7934
  });
7935
7935
  t(!!n);
7936
7936
  });
7937
- Ba.setPrompt(async (e, t, n) => {
7937
+ Ra.setPrompt(async (e, t, n) => {
7938
7938
  const o = await Ql({
7939
7939
  title: "",
7940
7940
  value: t
7941
7941
  });
7942
7942
  n(String(o));
7943
7943
  });
7944
- const cr = (e, t, n) => {
7944
+ const ur = (e, t, n) => {
7945
7945
  const o = e[t];
7946
7946
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, s) => {
7947
7947
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -7955,10 +7955,10 @@ const cr = (e, t, n) => {
7955
7955
  });
7956
7956
  };
7957
7957
  async function ra(e) {
7958
- const t = await cr(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-lczwbzqt.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-ex70e44o.js") }), `./msg/${e}.ts`, 3);
7958
+ const t = await ur(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-lczwbzqt.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-ex70e44o.js") }), `./msg/${e}.ts`, 3);
7959
7959
  Hl(t.default);
7960
7960
  }
7961
- function ur(e) {
7961
+ function pr(e) {
7962
7962
  const t = Pt();
7963
7963
  if (!t)
7964
7964
  return;
@@ -7971,13 +7971,13 @@ function ur(e) {
7971
7971
  const i = o.getRelativeToSurfaceXY(), s = i.x * t.scale, a = i.y * t.scale;
7972
7972
  t.scroll(-s, -a);
7973
7973
  }
7974
- function pr() {
7974
+ function _r() {
7975
7975
  var n;
7976
7976
  const e = Pt();
7977
7977
  if (!e)
7978
7978
  return;
7979
7979
  const t = (n = e.getTopBlocks(!0)) == null ? void 0 : n[0];
7980
- t && ur(t.id);
7980
+ t && pr(t.id);
7981
7981
  }
7982
7982
  class Gh {
7983
7983
  init({ contextMenu: t = !0, shortcut: n = !0 } = {
@@ -7999,7 +7999,7 @@ class Gh {
7999
7999
  },
8000
8000
  preconditionFn: function() {
8001
8001
  const n = sn();
8002
- return !n || !no(n) || !n.isDeletable() || !ui(n) || !n.isMovable() || !On(n) ? "disabled" : "enabled";
8002
+ return !n || !no(n) || !n.isDeletable() || !ci(n) || !n.isMovable() || !On(n) ? "disabled" : "enabled";
8003
8003
  },
8004
8004
  callback: function(n) {
8005
8005
  var o;
@@ -8053,10 +8053,10 @@ class Gh {
8053
8053
  ), i = {
8054
8054
  name: "copy",
8055
8055
  preconditionFn: function(s) {
8056
- if (s.options.readOnly || pi.inProgress())
8056
+ if (s.options.readOnly || ui.inProgress())
8057
8057
  return !1;
8058
8058
  const a = sn();
8059
- return !(!a || !no(a) || !a.isDeletable() || !ui(a) || !a.isMovable() || !On(a));
8059
+ return !(!a || !no(a) || !a.isDeletable() || !ci(a) || !a.isMovable() || !On(a));
8060
8060
  },
8061
8061
  callback: function(s, a) {
8062
8062
  a.preventDefault();
@@ -8083,10 +8083,10 @@ class Gh {
8083
8083
  ), i = {
8084
8084
  name: "cut",
8085
8085
  preconditionFn: function(s) {
8086
- if (s.options.readOnly || pi.inProgress())
8086
+ if (s.options.readOnly || ui.inProgress())
8087
8087
  return !1;
8088
8088
  const a = sn();
8089
- return !(!a || !no(a) || !a.isDeletable() || !ui(a) || !a.isMovable() || !On(a) || a.workspace.isFlyout);
8089
+ return !(!a || !no(a) || !a.isDeletable() || !ci(a) || !a.isMovable() || !On(a) || a.workspace.isFlyout);
8090
8090
  },
8091
8091
  callback: function(s, a) {
8092
8092
  a.preventDefault();
@@ -8113,7 +8113,7 @@ class Gh {
8113
8113
  ), i = {
8114
8114
  name: "paste",
8115
8115
  preconditionFn: function(s) {
8116
- if (s.options.readOnly || pi.inProgress())
8116
+ if (s.options.readOnly || ui.inProgress())
8117
8117
  return !1;
8118
8118
  const a = localStorage.getItem("blocklyStash");
8119
8119
  if (!a)
@@ -8154,22 +8154,22 @@ class jh {
8154
8154
  });
8155
8155
  }
8156
8156
  }
8157
- function _r(e) {
8157
+ function dr(e) {
8158
8158
  const t = e.getParent();
8159
- return t && _r(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
8159
+ return t && dr(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
8160
8160
  }
8161
8161
  class Wh {
8162
8162
  init() {
8163
8163
  const t = rn.registry.getItem("blockDisable");
8164
8164
  t && (t.preconditionFn = function(n) {
8165
8165
  const o = n.block;
8166
- return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || _r(o) ? "disabled" : "enabled" : "hidden";
8166
+ return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || dr(o) ? "disabled" : "enabled" : "hidden";
8167
8167
  });
8168
8168
  }
8169
8169
  }
8170
- class dr extends _i {
8170
+ class hr extends pi {
8171
8171
  constructor(n, o, i) {
8172
- super(_i.SKIP_SETUP);
8172
+ super(pi.SKIP_SETUP);
8173
8173
  /** The field's colour picker element. */
8174
8174
  tt(this, "picker", null);
8175
8175
  /** Index of the currently highlighted element. */
@@ -8764,7 +8764,7 @@ class dr extends _i {
8764
8764
  * Number of columns in the palette.
8765
8765
  */
8766
8766
  tt(this, "columns", 14);
8767
- n !== _i.SKIP_SETUP && (i && this.configure_(i), this.setValue(n), o && this.setValidator(o));
8767
+ n !== pi.SKIP_SETUP && (i && this.configure_(i), this.setValue(n), o && this.setValidator(o));
8768
8768
  }
8769
8769
  configure_(n) {
8770
8770
  super.configure_(n), n.colourOptions && (this.colours = n.colourOptions), n.colourTitles && (this.titles = n.colourTitles), n.columns && (this.columns = n.columns);
@@ -8984,7 +8984,7 @@ class dr extends _i {
8984
8984
  return new this(n.colour, void 0, n);
8985
8985
  }
8986
8986
  }
8987
- dr.prototype.DEFAULT_VALUE = "#ffffff";
8987
+ hr.prototype.DEFAULT_VALUE = "#ffffff";
8988
8988
  Gl.register(`
8989
8989
  .blocklyColourTable {
8990
8990
  border-collapse: collapse;
@@ -9013,7 +9013,7 @@ Gl.register(`
9013
9013
  }
9014
9014
  `);
9015
9015
  function Xh() {
9016
- jl.register("field_colour", dr);
9016
+ jl.register("field_colour", hr);
9017
9017
  }
9018
9018
  Fe.registry.unregister(_o.names.ESCAPE);
9019
9019
  const zh = new Gh();
@@ -9023,7 +9023,7 @@ qh.init();
9023
9023
  const Jh = new Wh();
9024
9024
  Jh.init();
9025
9025
  Xh();
9026
- Fo.Classic.blockStyles = {
9026
+ Vo.Classic.blockStyles = {
9027
9027
  color_blocks: {
9028
9028
  colourPrimary: "#a5745b",
9029
9029
  colourSecondary: "#ede3de",
@@ -9097,7 +9097,7 @@ Fo.Classic.blockStyles = {
9097
9097
  hat: ""
9098
9098
  }
9099
9099
  };
9100
- Fo.Classic.categoryStyles = {
9100
+ Vo.Classic.categoryStyles = {
9101
9101
  calc_category: {
9102
9102
  colour: "#757575"
9103
9103
  },
@@ -9153,9 +9153,9 @@ Fo.Classic.categoryStyles = {
9153
9153
  colour: "#a55b80"
9154
9154
  }
9155
9155
  };
9156
- const Qh = Ra.defineTheme("light", {
9156
+ const Qh = Da.defineTheme("light", {
9157
9157
  name: "light",
9158
- base: Fo.Classic,
9158
+ base: Vo.Classic,
9159
9159
  componentStyles: {
9160
9160
  workspaceBackgroundColour: "#ffffff",
9161
9161
  toolboxBackgroundColour: "#eeeeee",
@@ -9169,9 +9169,9 @@ const Qh = Ra.defineTheme("light", {
9169
9169
  scrollbarOpacity: 0.4,
9170
9170
  cursorColour: ""
9171
9171
  }
9172
- }), Zh = Ra.defineTheme("dark", {
9172
+ }), Zh = Da.defineTheme("dark", {
9173
9173
  name: "dark",
9174
- base: Fo.Classic,
9174
+ base: Vo.Classic,
9175
9175
  componentStyles: {
9176
9176
  workspaceBackgroundColour: "#1e1e1e",
9177
9177
  toolboxBackgroundColour: "#272727",
@@ -9197,7 +9197,7 @@ function ef(e) {
9197
9197
  break;
9198
9198
  }
9199
9199
  }
9200
- const zo = {
9200
+ const Xo = {
9201
9201
  kind: "category",
9202
9202
  name: "%{BKY_CATEGORY_COLOR}",
9203
9203
  categorystyle: "color_category",
@@ -9271,7 +9271,7 @@ const zo = {
9271
9271
  }
9272
9272
  }
9273
9273
  ]
9274
- }, qo = {
9274
+ }, zo = {
9275
9275
  kind: "category",
9276
9276
  name: "%{BKY_CATEGORY_LIST}",
9277
9277
  categorystyle: "list_category",
@@ -9386,7 +9386,7 @@ const zo = {
9386
9386
  type: "list_reverse_v1"
9387
9387
  }
9388
9388
  ]
9389
- }, Jo = {
9389
+ }, qo = {
9390
9390
  kind: "category",
9391
9391
  name: "%{BKY_CATEGORY_LOGIC}",
9392
9392
  categorystyle: "logic_category",
@@ -9428,7 +9428,7 @@ const zo = {
9428
9428
  type: "logic_ternary_v1"
9429
9429
  }
9430
9430
  ]
9431
- }, Qo = {
9431
+ }, Jo = {
9432
9432
  kind: "category",
9433
9433
  name: "%{BKY_CATEGORY_LOOP}",
9434
9434
  categorystyle: "loop_category",
@@ -9450,7 +9450,7 @@ const zo = {
9450
9450
  type: "for_each_v1"
9451
9451
  }
9452
9452
  ]
9453
- }, Zo = {
9453
+ }, Qo = {
9454
9454
  kind: "category",
9455
9455
  name: "%{BKY_CATEGORY_MATH}",
9456
9456
  categorystyle: "math_category",
@@ -9605,7 +9605,7 @@ const zo = {
9605
9605
  type: "math_on_list_v1"
9606
9606
  }
9607
9607
  ]
9608
- }, hr = {
9608
+ }, fr = {
9609
9609
  kind: "category",
9610
9610
  name: "%{BKY_CATEGORY_MESSAGE}",
9611
9611
  categorystyle: "message_category",
@@ -9641,7 +9641,7 @@ const zo = {
9641
9641
  type: "open_prompt_dlg_v1"
9642
9642
  }
9643
9643
  ]
9644
- }, ei = {
9644
+ }, Zo = {
9645
9645
  kind: "category",
9646
9646
  name: "%{BKY_CATEGORY_OBJECT}",
9647
9647
  categorystyle: "object_category",
@@ -9709,7 +9709,7 @@ const zo = {
9709
9709
  }
9710
9710
  }
9711
9711
  ]
9712
- }, ti = {
9712
+ }, ei = {
9713
9713
  kind: "category",
9714
9714
  name: "%{BKY_CATEGORY_TEXT}",
9715
9715
  categorystyle: "text_category",
@@ -9872,7 +9872,7 @@ const zo = {
9872
9872
  type: "text_reverse_v1"
9873
9873
  }
9874
9874
  ]
9875
- }, fr = {
9875
+ }, gr = {
9876
9876
  kind: "category",
9877
9877
  name: "%{BKY_CATEGORY_TIME}",
9878
9878
  categorystyle: "time_category",
@@ -9903,17 +9903,17 @@ const zo = {
9903
9903
  kind: "category",
9904
9904
  name: "%{BKY_CATEGORY_UI}",
9905
9905
  categorystyle: "ui_category",
9906
- custom: So.name
9906
+ custom: Lo.name
9907
9907
  },
9908
- hr,
9909
- Qo,
9908
+ fr,
9910
9909
  Jo,
9911
- Zo,
9912
- ti,
9913
9910
  qo,
9911
+ Qo,
9914
9912
  ei,
9915
9913
  zo,
9916
- fr,
9914
+ Zo,
9915
+ Xo,
9916
+ gr,
9917
9917
  {
9918
9918
  kind: "category",
9919
9919
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -9930,7 +9930,7 @@ const zo = {
9930
9930
  kind: "category",
9931
9931
  name: "%{BKY_CATEGORY_INTERFACE}",
9932
9932
  categorystyle: "interface_category",
9933
- custom: lr.name
9933
+ custom: cr.name
9934
9934
  }
9935
9935
  ]
9936
9936
  }, nf = {
@@ -9940,27 +9940,27 @@ const zo = {
9940
9940
  kind: "category",
9941
9941
  name: "%{BKY_CATEGORY_FUNC}",
9942
9942
  categorystyle: "func_category",
9943
- custom: Lo.name
9943
+ custom: ko.name
9944
9944
  },
9945
9945
  {
9946
9946
  kind: "category",
9947
9947
  name: "%{BKY_CATEGORY_FLOW}",
9948
9948
  categorystyle: "flow_category",
9949
- custom: ko.name
9949
+ custom: No.name
9950
9950
  },
9951
9951
  {
9952
9952
  kind: "category",
9953
9953
  name: "%{BKY_CATEGORY_DATA}",
9954
9954
  categorystyle: "data_category",
9955
- custom: No.name
9955
+ custom: Co.name
9956
9956
  },
9957
- Qo,
9958
9957
  Jo,
9959
- Zo,
9960
- ti,
9961
9958
  qo,
9959
+ Qo,
9962
9960
  ei,
9963
9961
  zo,
9962
+ Zo,
9963
+ Xo,
9964
9964
  {
9965
9965
  kind: "category",
9966
9966
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -9981,27 +9981,27 @@ const zo = {
9981
9981
  kind: "category",
9982
9982
  name: "%{BKY_CATEGORY_FUNC}",
9983
9983
  categorystyle: "func_category",
9984
- custom: Lo.name
9984
+ custom: ko.name
9985
9985
  },
9986
9986
  {
9987
9987
  kind: "category",
9988
9988
  name: "%{BKY_CATEGORY_FLOW}",
9989
9989
  categorystyle: "flow_category",
9990
- custom: ko.name
9990
+ custom: No.name
9991
9991
  },
9992
9992
  {
9993
9993
  kind: "category",
9994
9994
  name: "%{BKY_CATEGORY_DATA}",
9995
9995
  categorystyle: "data_category",
9996
- custom: No.name
9996
+ custom: Co.name
9997
9997
  },
9998
- Qo,
9999
9998
  Jo,
10000
- Zo,
10001
- ti,
10002
9999
  qo,
10000
+ Qo,
10003
10001
  ei,
10004
10002
  zo,
10003
+ Zo,
10004
+ Xo,
10005
10005
  {
10006
10006
  kind: "category",
10007
10007
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10022,17 +10022,17 @@ const zo = {
10022
10022
  kind: "category",
10023
10023
  name: "%{BKY_CATEGORY_UI}",
10024
10024
  categorystyle: "ui_category",
10025
- custom: So.name
10025
+ custom: Lo.name
10026
10026
  },
10027
- hr,
10028
- Qo,
10027
+ fr,
10029
10028
  Jo,
10030
- Zo,
10031
- ti,
10032
10029
  qo,
10030
+ Qo,
10033
10031
  ei,
10034
10032
  zo,
10035
- fr,
10033
+ Zo,
10034
+ Xo,
10035
+ gr,
10036
10036
  {
10037
10037
  kind: "category",
10038
10038
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10049,7 +10049,7 @@ const zo = {
10049
10049
  kind: "category",
10050
10050
  name: "%{BKY_CATEGORY_INTERFACE}",
10051
10051
  categorystyle: "interface_category",
10052
- custom: lr.name
10052
+ custom: cr.name
10053
10053
  }
10054
10054
  ]
10055
10055
  }, af = /* @__PURE__ */ ft({
@@ -10060,27 +10060,27 @@ const zo = {
10060
10060
  setup(e) {
10061
10061
  const { t } = Kn(), n = e, o = () => {
10062
10062
  if (n.lock) {
10063
- Da(t("x-block-lib.msg.cannotOperateInLockedState"));
10063
+ Ma(t("x-block-lib.msg.cannotOperateInLockedState"));
10064
10064
  return;
10065
10065
  }
10066
10066
  const i = Pt();
10067
10067
  i && i.cleanUp();
10068
10068
  };
10069
10069
  return dn(() => {
10070
- pt.on("cleanWorkspace", o);
10071
- }), Oo(() => {
10072
- pt.off("cleanWorkspace", o);
10070
+ ut.on("cleanWorkspace", o);
10071
+ }), Zi(() => {
10072
+ ut.off("cleanWorkspace", o);
10073
10073
  }), (i, s) => {
10074
- const a = Re("v-btn"), l = Re("v-tooltip");
10075
- return Ne(), _t(l, {
10074
+ const a = De("v-btn"), l = De("v-tooltip");
10075
+ return Ne(), pt(l, {
10076
10076
  text: W(t)("x-block-lib.tip.hotkeyCtrlQ")
10077
10077
  }, {
10078
- activator: st(({ props: c }) => [
10079
- fe(a, es(c, {
10078
+ activator: _t(({ props: c }) => [
10079
+ Oe(a, es(c, {
10080
10080
  variant: "outlined",
10081
10081
  density: "comfortable",
10082
10082
  icon: W(tc),
10083
- onClick: s[0] || (s[0] = (_) => W(pt).emit("cleanWorkspace"))
10083
+ onClick: s[0] || (s[0] = (_) => W(ut).emit("cleanWorkspace"))
10084
10084
  }), null, 16, ["icon"])
10085
10085
  ]),
10086
10086
  _: 1
@@ -10095,14 +10095,14 @@ const zo = {
10095
10095
  },
10096
10096
  emits: ["update:modelValue"],
10097
10097
  setup(e) {
10098
- const { t } = Kn(), n = Mi(e, "modelValue");
10098
+ const { t } = Kn(), n = Di(e, "modelValue");
10099
10099
  return (o, i) => {
10100
- const s = Re("v-btn"), a = Re("v-tooltip");
10101
- return Ne(), _t(a, {
10100
+ const s = De("v-btn"), a = De("v-tooltip");
10101
+ return Ne(), pt(a, {
10102
10102
  text: W(t)("x-block-lib.tip.hotkeyCtrlW")
10103
10103
  }, {
10104
- activator: st(({ props: l }) => [
10105
- fe(s, es(l, {
10104
+ activator: _t(({ props: l }) => [
10105
+ Oe(s, es(l, {
10106
10106
  variant: "outlined",
10107
10107
  density: "comfortable",
10108
10108
  icon: n.value ? W(ic) : W(sc),
@@ -10114,28 +10114,28 @@ const zo = {
10114
10114
  };
10115
10115
  }
10116
10116
  });
10117
- var lf = Object.defineProperty, Bo = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, la = (e, t, n) => t in e ? lf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ln = (e, t) => {
10117
+ var lf = Object.defineProperty, So = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, la = (e, t, n) => t in e ? lf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ln = (e, t) => {
10118
10118
  for (var n in t || (t = {}))
10119
- gr.call(t, n) && la(e, n, t[n]);
10120
- if (Bo)
10121
- for (var n of Bo(t))
10122
- mr.call(t, n) && la(e, n, t[n]);
10119
+ mr.call(t, n) && la(e, n, t[n]);
10120
+ if (So)
10121
+ for (var n of So(t))
10122
+ Tr.call(t, n) && la(e, n, t[n]);
10123
10123
  return e;
10124
- }, Tr = (e, t) => {
10124
+ }, Er = (e, t) => {
10125
10125
  var n = {};
10126
10126
  for (var o in e)
10127
- gr.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
10128
- if (e != null && Bo)
10129
- for (var o of Bo(e))
10130
- t.indexOf(o) < 0 && mr.call(e, o) && (n[o] = e[o]);
10127
+ mr.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
10128
+ if (e != null && So)
10129
+ for (var o of So(e))
10130
+ t.indexOf(o) < 0 && Tr.call(e, o) && (n[o] = e[o]);
10131
10131
  return n;
10132
10132
  };
10133
- const Er = "[vue-draggable-plus]: ";
10133
+ const Ar = "[vue-draggable-plus]: ";
10134
10134
  function cf(e) {
10135
- console.warn(Er + e);
10135
+ console.warn(Ar + e);
10136
10136
  }
10137
10137
  function uf(e) {
10138
- console.error(Er + e);
10138
+ console.error(Ar + e);
10139
10139
  }
10140
10140
  function ca(e, t, n) {
10141
10141
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
@@ -10162,7 +10162,7 @@ function _a(e, t, n) {
10162
10162
  const o = e.children[n];
10163
10163
  e.insertBefore(t, o);
10164
10164
  }
10165
- function Oi(e) {
10165
+ function vi(e) {
10166
10166
  e.parentNode && e.parentNode.removeChild(e);
10167
10167
  }
10168
10168
  function ff(e, t = document) {
@@ -10271,17 +10271,17 @@ function vt(e) {
10271
10271
  if (typeof window < "u" && window.navigator)
10272
10272
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
10273
10273
  }
10274
- var yt = vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), jn = vt(/Edge/i), fa = vt(/firefox/i), Bn = vt(/safari/i) && !vt(/chrome/i) && !vt(/android/i), Ar = vt(/iP(ad|od|hone)/i), vr = vt(/chrome/i) && vt(/android/i), Or = {
10274
+ var yt = vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), jn = vt(/Edge/i), fa = vt(/firefox/i), Bn = vt(/safari/i) && !vt(/chrome/i) && !vt(/android/i), vr = vt(/iP(ad|od|hone)/i), Or = vt(/chrome/i) && vt(/android/i), br = {
10275
10275
  capture: !1,
10276
10276
  passive: !1
10277
10277
  };
10278
10278
  function te(e, t, n) {
10279
- e.addEventListener(t, n, !yt && Or);
10279
+ e.addEventListener(t, n, !yt && br);
10280
10280
  }
10281
10281
  function Z(e, t, n) {
10282
- e.removeEventListener(t, n, !yt && Or);
10282
+ e.removeEventListener(t, n, !yt && br);
10283
10283
  }
10284
- function Ro(e, t) {
10284
+ function Bo(e, t) {
10285
10285
  if (t) {
10286
10286
  if (t[0] === ">" && (t = t.substring(1)), e)
10287
10287
  try {
@@ -10304,7 +10304,7 @@ function ot(e, t, n, o) {
10304
10304
  if (e) {
10305
10305
  n = n || document;
10306
10306
  do {
10307
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ro(e, t) : Ro(e, t)) || o && e === n)
10307
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Bo(e, t) : Bo(e, t)) || o && e === n)
10308
10308
  return e;
10309
10309
  if (e === n)
10310
10310
  break;
@@ -10342,7 +10342,7 @@ function _n(e, t) {
10342
10342
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
10343
10343
  return i && new i(n);
10344
10344
  }
10345
- function br(e, t, n) {
10345
+ function Ir(e, t, n) {
10346
10346
  if (e) {
10347
10347
  var o = e.getElementsByTagName(t), i = 0, s = o.length;
10348
10348
  if (n)
@@ -10404,7 +10404,7 @@ function mn(e, t, n, o) {
10404
10404
  return null;
10405
10405
  }
10406
10406
  function cs(e, t) {
10407
- for (var n = e.lastElementChild; n && (n === P.ghost || M(n, "display") === "none" || t && !Ro(n, t)); )
10407
+ for (var n = e.lastElementChild; n && (n === P.ghost || M(n, "display") === "none" || t && !Bo(n, t)); )
10408
10408
  n = n.previousElementSibling;
10409
10409
  return n || null;
10410
10410
  }
@@ -10413,7 +10413,7 @@ function Qe(e, t) {
10413
10413
  if (!e || !e.parentNode)
10414
10414
  return -1;
10415
10415
  for (; e = e.previousElementSibling; )
10416
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== P.clone && (!t || Ro(e, t)) && n++;
10416
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== P.clone && (!t || Bo(e, t)) && n++;
10417
10417
  return n;
10418
10418
  }
10419
10419
  function Ta(e) {
@@ -10458,11 +10458,11 @@ function Nf(e, t) {
10458
10458
  t.hasOwnProperty(n) && (e[n] = t[n]);
10459
10459
  return e;
10460
10460
  }
10461
- function bi(e, t) {
10461
+ function Oi(e, t) {
10462
10462
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
10463
10463
  }
10464
10464
  var Rn;
10465
- function Ir(e, t) {
10465
+ function yr(e, t) {
10466
10466
  return function() {
10467
10467
  if (!Rn) {
10468
10468
  var n = arguments, o = this;
@@ -10475,14 +10475,14 @@ function Ir(e, t) {
10475
10475
  function kf() {
10476
10476
  clearTimeout(Rn), Rn = void 0;
10477
10477
  }
10478
- function yr(e, t, n) {
10478
+ function Cr(e, t, n) {
10479
10479
  e.scrollLeft += t, e.scrollTop += n;
10480
10480
  }
10481
- function Cr(e) {
10481
+ function Nr(e) {
10482
10482
  var t = window.Polymer, n = window.jQuery || window.Zepto;
10483
10483
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
10484
10484
  }
10485
- function Nr(e, t, n) {
10485
+ function kr(e, t, n) {
10486
10486
  var o = {};
10487
10487
  return Array.from(e.children).forEach(function(i) {
10488
10488
  var s, a, l, c;
@@ -10532,8 +10532,8 @@ function Lf() {
10532
10532
  var i = !1, s = 0;
10533
10533
  e.forEach(function(a) {
10534
10534
  var l = 0, c = a.target, _ = c.fromRect, h = Ce(c), d = c.prevFromRect, g = c.prevToRect, m = a.rect, I = _n(c, !0);
10535
- I && (h.top -= I.f, h.left -= I.e), c.toRect = h, c.thisAnimationDuration && bi(d, h) && !bi(_, h) && // Make sure animatingRect is on line between toRect & fromRect
10536
- (m.top - h.top) / (m.left - h.left) === (_.top - h.top) / (_.left - h.left) && (l = Bf(m, d, g, o.options)), bi(h, _) || (c.prevFromRect = _, c.prevToRect = h, l || (l = o.options.animation), o.animate(c, m, h, l)), l && (i = !0, s = Math.max(s, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
10535
+ I && (h.top -= I.f, h.left -= I.e), c.toRect = h, c.thisAnimationDuration && Oi(d, h) && !Oi(_, h) && // Make sure animatingRect is on line between toRect & fromRect
10536
+ (m.top - h.top) / (m.left - h.left) === (_.top - h.top) / (_.left - h.left) && (l = Bf(m, d, g, o.options)), Oi(h, _) || (c.prevFromRect = _, c.prevToRect = h, l || (l = o.options.animation), o.animate(c, m, h, l)), l && (i = !0, s = Math.max(s, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
10537
10537
  c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
10538
10538
  }, l), c.thisAnimationDuration = l);
10539
10539
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -10557,12 +10557,12 @@ function Sf(e) {
10557
10557
  function Bf(e, t, n, o) {
10558
10558
  return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
10559
10559
  }
10560
- var nn = [], Ii = {
10560
+ var nn = [], bi = {
10561
10561
  initializeByDefault: !0
10562
10562
  }, Wn = {
10563
10563
  mount: function(e) {
10564
- for (var t in Ii)
10565
- Ii.hasOwnProperty(t) && !(t in e) && (e[t] = Ii[t]);
10564
+ for (var t in bi)
10565
+ bi.hasOwnProperty(t) && !(t in e) && (e[t] = bi[t]);
10566
10566
  nn.forEach(function(n) {
10567
10567
  if (n.pluginName === e.pluginName)
10568
10568
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
@@ -10623,7 +10623,7 @@ function Rf(e) {
10623
10623
  n && n.dispatchEvent(v), G[D] && G[D].call(t, v);
10624
10624
  }
10625
10625
  }
10626
- var Df = ["evt"], je = function(e, t) {
10626
+ var Df = ["evt"], Ge = function(e, t) {
10627
10627
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = bf(n, Df);
10628
10628
  Wn.pluginEvent.bind(P)(e, t, ht({
10629
10629
  dragEl: A,
@@ -10642,8 +10642,8 @@ var Df = ["evt"], je = function(e, t) {
10642
10642
  oldDraggableIndex: Dn,
10643
10643
  newIndex: qe,
10644
10644
  newDraggableIndex: kt,
10645
- hideGhostForTarget: Br,
10646
- unhideGhostForTarget: Rr,
10645
+ hideGhostForTarget: Rr,
10646
+ unhideGhostForTarget: Dr,
10647
10647
  cloneNowHidden: function() {
10648
10648
  St = !0;
10649
10649
  },
@@ -10651,7 +10651,7 @@ var Df = ["evt"], je = function(e, t) {
10651
10651
  St = !1;
10652
10652
  },
10653
10653
  dispatchSortableEvent: function(s) {
10654
- $e({
10654
+ He({
10655
10655
  sortable: t,
10656
10656
  name: s,
10657
10657
  originalEvent: o
@@ -10659,7 +10659,7 @@ var Df = ["evt"], je = function(e, t) {
10659
10659
  }
10660
10660
  }, i));
10661
10661
  };
10662
- function $e(e) {
10662
+ function He(e) {
10663
10663
  Rf(ht({
10664
10664
  putSortable: Pe,
10665
10665
  cloneEl: de,
@@ -10671,14 +10671,14 @@ function $e(e) {
10671
10671
  newDraggableIndex: kt
10672
10672
  }, e));
10673
10673
  }
10674
- var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Do = !1, Mo = [], Yt, nt, yi, Ci, Ea, Aa, yn, on, Mn, Pn = !1, lo = !1, To, Ve, Ni = [], zi = !1, Po = [], ni = typeof document < "u", co = Ar, va = jn || yt ? "cssFloat" : "float", Mf = ni && !vr && !Ar && "draggable" in document.createElement("div"), kr = function() {
10675
- if (ni) {
10674
+ var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Ro = !1, Do = [], Yt, nt, Ii, yi, Ea, Aa, yn, on, Mn, Pn = !1, lo = !1, To, Ve, Ci = [], Xi = !1, Mo = [], ti = typeof document < "u", co = vr, va = jn || yt ? "cssFloat" : "float", Mf = ti && !Or && !vr && "draggable" in document.createElement("div"), Lr = function() {
10675
+ if (ti) {
10676
10676
  if (yt)
10677
10677
  return !1;
10678
10678
  var e = document.createElement("x");
10679
10679
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
10680
10680
  }
10681
- }(), Lr = function(e, t) {
10681
+ }(), Sr = function(e, t) {
10682
10682
  var n = M(e), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = mn(e, 0, t), s = mn(e, 1, t), a = i && M(i), l = s && M(s), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + Ce(i).width, _ = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + Ce(s).width;
10683
10683
  if (n.display === "flex")
10684
10684
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
@@ -10694,7 +10694,7 @@ var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Do = !1, Mo =
10694
10694
  return o === a || i === l || o + s / 2 === a + c / 2;
10695
10695
  }, Uf = function(e, t) {
10696
10696
  var n;
10697
- return Mo.some(function(o) {
10697
+ return Do.some(function(o) {
10698
10698
  var i = o[Je].options.emptyInsertThreshold;
10699
10699
  if (!(!i || cs(o))) {
10700
10700
  var s = Ce(o), a = e >= s.left - i && e <= s.right + i, l = t >= s.top - i && t <= s.bottom + i;
@@ -10702,7 +10702,7 @@ var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Do = !1, Mo =
10702
10702
  return n = o;
10703
10703
  }
10704
10704
  }), n;
10705
- }, Sr = function(e) {
10705
+ }, Br = function(e) {
10706
10706
  function t(i, s) {
10707
10707
  return function(a, l, c, _) {
10708
10708
  var h = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
@@ -10722,14 +10722,14 @@ var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Do = !1, Mo =
10722
10722
  (!o || go(o) != "object") && (o = {
10723
10723
  name: o
10724
10724
  }), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
10725
- }, Br = function() {
10726
- !kr && K && M(K, "display", "none");
10727
10725
  }, Rr = function() {
10728
- !kr && K && M(K, "display", "");
10726
+ !Lr && K && M(K, "display", "none");
10727
+ }, Dr = function() {
10728
+ !Lr && K && M(K, "display", "");
10729
10729
  };
10730
- ni && !vr && document.addEventListener("click", function(e) {
10731
- if (Do)
10732
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Do = !1, !1;
10730
+ ti && !Or && document.addEventListener("click", function(e) {
10731
+ if (Ro)
10732
+ return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ro = !1, !1;
10733
10733
  }, !0);
10734
10734
  var Kt = function(e) {
10735
10735
  if (A) {
@@ -10764,7 +10764,7 @@ function P(e, t) {
10764
10764
  // will be set to same as swapThreshold if default
10765
10765
  removeCloneOnHide: !0,
10766
10766
  direction: function() {
10767
- return Lr(e, this.options);
10767
+ return Sr(e, this.options);
10768
10768
  },
10769
10769
  ghostClass: "sortable-ghost",
10770
10770
  chosenClass: "sortable-chosen",
@@ -10797,10 +10797,10 @@ function P(e, t) {
10797
10797
  Wn.initializePlugins(this, e, n);
10798
10798
  for (var o in n)
10799
10799
  !(o in t) && (t[o] = n[o]);
10800
- Sr(t);
10800
+ Br(t);
10801
10801
  for (var i in this)
10802
10802
  i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
10803
- this.nativeDraggable = t.forceFallback ? !1 : Mf, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? te(e, "pointerdown", this._onTapStart) : (te(e, "mousedown", this._onTapStart), te(e, "touchstart", this._onTapStart)), this.nativeDraggable && (te(e, "dragover", this), te(e, "dragenter", this)), Mo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), bt(this, Lf());
10803
+ this.nativeDraggable = t.forceFallback ? !1 : Mf, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? te(e, "pointerdown", this._onTapStart) : (te(e, "mousedown", this._onTapStart), te(e, "touchstart", this._onTapStart)), this.nativeDraggable && (te(e, "dragover", this), te(e, "dragenter", this)), Do.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), bt(this, Lf());
10804
10804
  }
10805
10805
  P.prototype = /** @lends Sortable.prototype */
10806
10806
  {
@@ -10817,28 +10817,28 @@ P.prototype = /** @lends Sortable.prototype */
10817
10817
  if (Gf(n), !A && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Bn && l && l.tagName.toUpperCase() === "SELECT") && (l = ot(l, o.draggable, n, !1), !(l && l.animated) && mo !== l)) {
10818
10818
  if (cn = Qe(l), Dn = Qe(l, o.draggable), typeof _ == "function") {
10819
10819
  if (_.call(this, e, l, this)) {
10820
- $e({
10820
+ He({
10821
10821
  sortable: t,
10822
10822
  rootEl: c,
10823
10823
  name: "filter",
10824
10824
  targetEl: l,
10825
10825
  toEl: n,
10826
10826
  fromEl: n
10827
- }), je("filter", t, {
10827
+ }), Ge("filter", t, {
10828
10828
  evt: e
10829
10829
  }), i && e.cancelable && e.preventDefault();
10830
10830
  return;
10831
10831
  }
10832
10832
  } else if (_ && (_ = _.split(",").some(function(h) {
10833
10833
  if (h = ot(c, h.trim(), n, !1), h)
10834
- return $e({
10834
+ return He({
10835
10835
  sortable: t,
10836
10836
  rootEl: h,
10837
10837
  name: "filter",
10838
10838
  targetEl: l,
10839
10839
  fromEl: n,
10840
10840
  toEl: n
10841
- }), je("filter", t, {
10841
+ }), Ge("filter", t, {
10842
10842
  evt: e
10843
10843
  }), !0;
10844
10844
  }), _)) {
@@ -10858,20 +10858,20 @@ P.prototype = /** @lends Sortable.prototype */
10858
10858
  clientX: (t || e).clientX,
10859
10859
  clientY: (t || e).clientY
10860
10860
  }, Ea = Yt.clientX - c.left, Aa = Yt.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, A.style["will-change"] = "all", l = function() {
10861
- if (je("delayEnded", o, {
10861
+ if (Ge("delayEnded", o, {
10862
10862
  evt: e
10863
10863
  }), P.eventCanceled) {
10864
10864
  o._onDrop();
10865
10865
  return;
10866
10866
  }
10867
- o._disableDelayedDragEvents(), !fa && o.nativeDraggable && (A.draggable = !0), o._triggerDragStart(e, t), $e({
10867
+ o._disableDelayedDragEvents(), !fa && o.nativeDraggable && (A.draggable = !0), o._triggerDragStart(e, t), He({
10868
10868
  sortable: o,
10869
10869
  name: "choose",
10870
10870
  originalEvent: e
10871
10871
  }), ze(A, s.chosenClass, !0);
10872
10872
  }, s.ignore.split(",").forEach(function(_) {
10873
- br(A, _.trim(), ki);
10874
- }), te(a, "dragover", Kt), te(a, "mousemove", Kt), te(a, "touchmove", Kt), te(a, "mouseup", o._onDrop), te(a, "touchend", o._onDrop), te(a, "touchcancel", o._onDrop), fa && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), je("delayStart", this, {
10873
+ Ir(A, _.trim(), Ni);
10874
+ }), te(a, "dragover", Kt), te(a, "mousemove", Kt), te(a, "touchmove", Kt), te(a, "mouseup", o._onDrop), te(a, "touchend", o._onDrop), te(a, "touchcancel", o._onDrop), fa && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), Ge("delayStart", this, {
10875
10875
  evt: e
10876
10876
  }), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(jn || yt))) {
10877
10877
  if (P.eventCanceled) {
@@ -10888,7 +10888,7 @@ P.prototype = /** @lends Sortable.prototype */
10888
10888
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
10889
10889
  },
10890
10890
  _disableDelayedDrag: function() {
10891
- A && ki(A), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
10891
+ A && Ni(A), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
10892
10892
  },
10893
10893
  _disableDelayedDragEvents: function() {
10894
10894
  var e = this.el.ownerDocument;
@@ -10905,11 +10905,11 @@ P.prototype = /** @lends Sortable.prototype */
10905
10905
  },
10906
10906
  _dragStarted: function(e, t) {
10907
10907
  if (an = !1, pe && A) {
10908
- je("dragStarted", this, {
10908
+ Ge("dragStarted", this, {
10909
10909
  evt: t
10910
10910
  }), this.nativeDraggable && te(document, "dragover", xf);
10911
10911
  var n = this.options;
10912
- !e && ze(A, n.dragClass, !1), ze(A, n.ghostClass, !0), P.active = this, e && this._appendGhost(), $e({
10912
+ !e && ze(A, n.dragClass, !1), ze(A, n.ghostClass, !0), P.active = this, e && this._appendGhost(), He({
10913
10913
  sortable: this,
10914
10914
  name: "start",
10915
10915
  originalEvent: t
@@ -10919,7 +10919,7 @@ P.prototype = /** @lends Sortable.prototype */
10919
10919
  },
10920
10920
  _emulateDragOver: function() {
10921
10921
  if (nt) {
10922
- this._lastX = nt.clientX, this._lastY = nt.clientY, Br();
10922
+ this._lastX = nt.clientX, this._lastY = nt.clientY, Rr();
10923
10923
  for (var e = document.elementFromPoint(nt.clientX, nt.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(nt.clientX, nt.clientY), e !== t); )
10924
10924
  t = e;
10925
10925
  if (A.parentNode[Je]._isOutsideThisEl(e), t)
@@ -10936,19 +10936,19 @@ P.prototype = /** @lends Sortable.prototype */
10936
10936
  }
10937
10937
  e = t;
10938
10938
  } while (t = t.parentNode);
10939
- Rr();
10939
+ Dr();
10940
10940
  }
10941
10941
  },
10942
10942
  _onTouchMove: function(e) {
10943
10943
  if (Yt) {
10944
- var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = K && _n(K, !0), a = K && s && s.a, l = K && s && s.d, c = co && Ve && Ta(Ve), _ = (i.clientX - Yt.clientX + o.x) / (a || 1) + (c ? c[0] - Ni[0] : 0) / (a || 1), h = (i.clientY - Yt.clientY + o.y) / (l || 1) + (c ? c[1] - Ni[1] : 0) / (l || 1);
10944
+ var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = K && _n(K, !0), a = K && s && s.a, l = K && s && s.d, c = co && Ve && Ta(Ve), _ = (i.clientX - Yt.clientX + o.x) / (a || 1) + (c ? c[0] - Ci[0] : 0) / (a || 1), h = (i.clientY - Yt.clientY + o.y) / (l || 1) + (c ? c[1] - Ci[1] : 0) / (l || 1);
10945
10945
  if (!P.active && !an) {
10946
10946
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
10947
10947
  return;
10948
10948
  this._onDragStart(e, !0);
10949
10949
  }
10950
10950
  if (K) {
10951
- s ? (s.e += _ - (yi || 0), s.f += h - (Ci || 0)) : s = {
10951
+ s ? (s.e += _ - (Ii || 0), s.f += h - (yi || 0)) : s = {
10952
10952
  a: 1,
10953
10953
  b: 0,
10954
10954
  c: 0,
@@ -10957,7 +10957,7 @@ P.prototype = /** @lends Sortable.prototype */
10957
10957
  f: h
10958
10958
  };
10959
10959
  var d = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
10960
- M(K, "webkitTransform", d), M(K, "mozTransform", d), M(K, "msTransform", d), M(K, "transform", d), yi = _, Ci = h, nt = i;
10960
+ M(K, "webkitTransform", d), M(K, "mozTransform", d), M(K, "msTransform", d), M(K, "transform", d), Ii = _, yi = h, nt = i;
10961
10961
  }
10962
10962
  e.cancelable && e.preventDefault();
10963
10963
  }
@@ -10968,33 +10968,33 @@ P.prototype = /** @lends Sortable.prototype */
10968
10968
  if (co) {
10969
10969
  for (Ve = e; M(Ve, "position") === "static" && M(Ve, "transform") === "none" && Ve !== document; )
10970
10970
  Ve = Ve.parentNode;
10971
- Ve !== document.body && Ve !== document.documentElement ? (Ve === document && (Ve = dt()), t.top += Ve.scrollTop, t.left += Ve.scrollLeft) : Ve = dt(), Ni = Ta(Ve);
10971
+ Ve !== document.body && Ve !== document.documentElement ? (Ve === document && (Ve = dt()), t.top += Ve.scrollTop, t.left += Ve.scrollLeft) : Ve = dt(), Ci = Ta(Ve);
10972
10972
  }
10973
10973
  K = A.cloneNode(!0), ze(K, n.ghostClass, !1), ze(K, n.fallbackClass, !0), ze(K, n.dragClass, !0), M(K, "transition", ""), M(K, "transform", ""), M(K, "box-sizing", "border-box"), M(K, "margin", 0), M(K, "top", t.top), M(K, "left", t.left), M(K, "width", t.width), M(K, "height", t.height), M(K, "opacity", "0.8"), M(K, "position", co ? "absolute" : "fixed"), M(K, "zIndex", "100000"), M(K, "pointerEvents", "none"), P.ghost = K, e.appendChild(K), M(K, "transform-origin", Ea / parseInt(K.style.width) * 100 + "% " + Aa / parseInt(K.style.height) * 100 + "%");
10974
10974
  }
10975
10975
  },
10976
10976
  _onDragStart: function(e, t) {
10977
10977
  var n = this, o = e.dataTransfer, i = n.options;
10978
- if (je("dragStart", this, {
10978
+ if (Ge("dragStart", this, {
10979
10979
  evt: e
10980
10980
  }), P.eventCanceled) {
10981
10981
  this._onDrop();
10982
10982
  return;
10983
10983
  }
10984
- je("setupClone", this), P.eventCanceled || (de = Cr(A), de.removeAttribute("id"), de.draggable = !1, de.style["will-change"] = "", this._hideClone(), ze(de, this.options.chosenClass, !1), P.clone = de), n.cloneId = Eo(function() {
10985
- je("clone", n), !P.eventCanceled && (n.options.removeCloneOnHide || pe.insertBefore(de, A), n._hideClone(), $e({
10984
+ Ge("setupClone", this), P.eventCanceled || (de = Nr(A), de.removeAttribute("id"), de.draggable = !1, de.style["will-change"] = "", this._hideClone(), ze(de, this.options.chosenClass, !1), P.clone = de), n.cloneId = Eo(function() {
10985
+ Ge("clone", n), !P.eventCanceled && (n.options.removeCloneOnHide || pe.insertBefore(de, A), n._hideClone(), He({
10986
10986
  sortable: n,
10987
10987
  name: "clone"
10988
10988
  }));
10989
- }), !t && ze(A, i.dragClass, !0), t ? (Do = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Z(document, "mouseup", n._onDrop), Z(document, "touchend", n._onDrop), Z(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), te(document, "drop", n), M(A, "transform", "translateZ(0)")), an = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), te(document, "selectstart", n), yn = !0, Bn && M(document.body, "user-select", "none");
10989
+ }), !t && ze(A, i.dragClass, !0), t ? (Ro = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Z(document, "mouseup", n._onDrop), Z(document, "touchend", n._onDrop), Z(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), te(document, "drop", n), M(A, "transform", "translateZ(0)")), an = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), te(document, "selectstart", n), yn = !0, Bn && M(document.body, "user-select", "none");
10990
10990
  },
10991
10991
  // Returns true - if no further action is needed (either inserted or another condition)
10992
10992
  _onDragOver: function(e) {
10993
10993
  var t = this.el, n = e.target, o, i, s, a = this.options, l = a.group, c = P.active, _ = ro === l, h = a.sort, d = Pe || c, g, m = this, I = !1;
10994
- if (zi)
10994
+ if (Xi)
10995
10995
  return;
10996
- function v(He, Ee) {
10997
- je(He, m, ht({
10996
+ function v(We, Te) {
10997
+ Ge(We, m, ht({
10998
10998
  evt: e,
10999
10999
  isOwner: _,
11000
11000
  axis: g ? "vertical" : "horizontal",
@@ -11009,20 +11009,20 @@ P.prototype = /** @lends Sortable.prototype */
11009
11009
  return uo(pe, t, A, o, Ze, Ce(Ze), e, mt);
11010
11010
  },
11011
11011
  changed: X
11012
- }, Ee));
11012
+ }, Te));
11013
11013
  }
11014
11014
  function G() {
11015
11015
  v("dragOverAnimationCapture"), m.captureAnimationState(), m !== d && d.captureAnimationState();
11016
11016
  }
11017
- function D(He) {
11017
+ function D(We) {
11018
11018
  return v("dragOverCompleted", {
11019
- insertion: He
11020
- }), He && (_ ? c._hideClone() : c._showClone(m), m !== d && (ze(A, Pe ? Pe.options.ghostClass : c.options.ghostClass, !1), ze(A, a.ghostClass, !0)), Pe !== m && m !== P.active ? Pe = m : m === P.active && Pe && (Pe = null), d === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
11019
+ insertion: We
11020
+ }), We && (_ ? c._hideClone() : c._showClone(m), m !== d && (ze(A, Pe ? Pe.options.ghostClass : c.options.ghostClass, !1), ze(A, a.ghostClass, !0)), Pe !== m && m !== P.active ? Pe = m : m === P.active && Pe && (Pe = null), d === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
11021
11021
  v("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
11022
- }), m !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === A && !A.animated || n === t && !n.animated) && (on = null), !a.dragoverBubble && !e.rootEl && n !== document && (A.parentNode[Je]._isOutsideThisEl(e.target), !He && Kt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), I = !0;
11022
+ }), m !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === A && !A.animated || n === t && !n.animated) && (on = null), !a.dragoverBubble && !e.rootEl && n !== document && (A.parentNode[Je]._isOutsideThisEl(e.target), !We && Kt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), I = !0;
11023
11023
  }
11024
11024
  function X() {
11025
- qe = Qe(A), kt = Qe(A, a.draggable), $e({
11025
+ qe = Qe(A), kt = Qe(A, a.draggable), He({
11026
11026
  sortable: m,
11027
11027
  name: "change",
11028
11028
  toEl: t,
@@ -11035,7 +11035,7 @@ P.prototype = /** @lends Sortable.prototype */
11035
11035
  return I;
11036
11036
  if (A.contains(e.target) || n.animated && n.animatingX && n.animatingY || m._ignoreWhileAnimating === n)
11037
11037
  return D(!1);
11038
- if (Do = !1, c && !a.disabled && (_ ? h || (s = he !== pe) : Pe === this || (this.lastPutMode = ro.checkPull(this, c, A, e)) && l.checkPut(this, c, A, e))) {
11038
+ if (Ro = !1, c && !a.disabled && (_ ? h || (s = he !== pe) : Pe === this || (this.lastPutMode = ro.checkPull(this, c, A, e)) && l.checkPut(this, c, A, e))) {
11039
11039
  if (g = this._getDirection(e, n) === "vertical", o = Ce(A), v("dragOverValid"), P.eventCanceled)
11040
11040
  return I;
11041
11041
  if (s)
@@ -11054,8 +11054,8 @@ P.prototype = /** @lends Sortable.prototype */
11054
11054
  return G(), t.insertBefore(A, _e), he = t, X(), D(!0);
11055
11055
  } else if (n.parentNode === t) {
11056
11056
  i = Ce(n);
11057
- var q = 0, ke, Ge = A.parentNode !== t, R = !Pf(A.animated && A.toRect || o, n.animated && n.toRect || i, g), F = g ? "top" : "left", se = ma(n, "top", "top") || ma(A, "top", "top"), Te = se ? se.scrollTop : void 0;
11058
- on !== n && (ke = i[F], Pn = !1, lo = !R && a.invertSwap || Ge), q = Kf(e, n, i, g, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
11057
+ var q = 0, ke, $e = A.parentNode !== t, R = !Pf(A.animated && A.toRect || o, n.animated && n.toRect || i, g), F = g ? "top" : "left", se = ma(n, "top", "top") || ma(A, "top", "top"), me = se ? se.scrollTop : void 0;
11058
+ on !== n && (ke = i[F], Pn = !1, lo = !R && a.invertSwap || $e), q = Kf(e, n, i, g, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
11059
11059
  var k;
11060
11060
  if (q !== 0) {
11061
11061
  var J = Qe(A);
@@ -11070,7 +11070,7 @@ P.prototype = /** @lends Sortable.prototype */
11070
11070
  ie = q === 1;
11071
11071
  var Le = uo(pe, t, A, o, n, i, e, ie);
11072
11072
  if (Le !== !1)
11073
- return (Le === 1 || Le === -1) && (ie = Le === 1), zi = !0, setTimeout(Vf, 30), G(), ie && !ne ? t.appendChild(A) : n.parentNode.insertBefore(A, ie ? ne : n), se && yr(se, 0, Te - se.scrollTop), he = A.parentNode, ke !== void 0 && !lo && (To = Math.abs(ke - Ce(n)[F])), X(), D(!0);
11073
+ return (Le === 1 || Le === -1) && (ie = Le === 1), Xi = !0, setTimeout(Vf, 30), G(), ie && !ne ? t.appendChild(A) : n.parentNode.insertBefore(A, ie ? ne : n), se && Cr(se, 0, me - se.scrollTop), he = A.parentNode, ke !== void 0 && !lo && (To = Math.abs(ke - Ce(n)[F])), X(), D(!0);
11074
11074
  }
11075
11075
  if (t.contains(A))
11076
11076
  return D(!1);
@@ -11087,52 +11087,52 @@ P.prototype = /** @lends Sortable.prototype */
11087
11087
  },
11088
11088
  _onDrop: function(e) {
11089
11089
  var t = this.el, n = this.options;
11090
- if (qe = Qe(A), kt = Qe(A, n.draggable), je("drop", this, {
11090
+ if (qe = Qe(A), kt = Qe(A, n.draggable), Ge("drop", this, {
11091
11091
  evt: e
11092
11092
  }), he = A && A.parentNode, qe = Qe(A), kt = Qe(A, n.draggable), P.eventCanceled) {
11093
11093
  this._nulling();
11094
11094
  return;
11095
11095
  }
11096
- an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), qi(this.cloneId), qi(this._dragStartId), this.nativeDraggable && (Z(document, "drop", this), Z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Bn && M(document.body, "user-select", ""), M(A, "transform", ""), e && (yn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (pe === he || Pe && Pe.lastPutMode !== "clone") && de && de.parentNode && de.parentNode.removeChild(de), A && (this.nativeDraggable && Z(A, "dragend", this), ki(A), A.style["will-change"] = "", yn && !an && ze(A, Pe ? Pe.options.ghostClass : this.options.ghostClass, !1), ze(A, this.options.chosenClass, !1), $e({
11096
+ an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zi(this.cloneId), zi(this._dragStartId), this.nativeDraggable && (Z(document, "drop", this), Z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Bn && M(document.body, "user-select", ""), M(A, "transform", ""), e && (yn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (pe === he || Pe && Pe.lastPutMode !== "clone") && de && de.parentNode && de.parentNode.removeChild(de), A && (this.nativeDraggable && Z(A, "dragend", this), Ni(A), A.style["will-change"] = "", yn && !an && ze(A, Pe ? Pe.options.ghostClass : this.options.ghostClass, !1), ze(A, this.options.chosenClass, !1), He({
11097
11097
  sortable: this,
11098
11098
  name: "unchoose",
11099
11099
  toEl: he,
11100
11100
  newIndex: null,
11101
11101
  newDraggableIndex: null,
11102
11102
  originalEvent: e
11103
- }), pe !== he ? (qe >= 0 && ($e({
11103
+ }), pe !== he ? (qe >= 0 && (He({
11104
11104
  rootEl: he,
11105
11105
  name: "add",
11106
11106
  toEl: he,
11107
11107
  fromEl: pe,
11108
11108
  originalEvent: e
11109
- }), $e({
11109
+ }), He({
11110
11110
  sortable: this,
11111
11111
  name: "remove",
11112
11112
  toEl: he,
11113
11113
  originalEvent: e
11114
- }), $e({
11114
+ }), He({
11115
11115
  rootEl: he,
11116
11116
  name: "sort",
11117
11117
  toEl: he,
11118
11118
  fromEl: pe,
11119
11119
  originalEvent: e
11120
- }), $e({
11120
+ }), He({
11121
11121
  sortable: this,
11122
11122
  name: "sort",
11123
11123
  toEl: he,
11124
11124
  originalEvent: e
11125
- })), Pe && Pe.save()) : qe !== cn && qe >= 0 && ($e({
11125
+ })), Pe && Pe.save()) : qe !== cn && qe >= 0 && (He({
11126
11126
  sortable: this,
11127
11127
  name: "update",
11128
11128
  toEl: he,
11129
11129
  originalEvent: e
11130
- }), $e({
11130
+ }), He({
11131
11131
  sortable: this,
11132
11132
  name: "sort",
11133
11133
  toEl: he,
11134
11134
  originalEvent: e
11135
- })), P.active && ((qe == null || qe === -1) && (qe = cn, kt = Dn), $e({
11135
+ })), P.active && ((qe == null || qe === -1) && (qe = cn, kt = Dn), He({
11136
11136
  sortable: this,
11137
11137
  name: "end",
11138
11138
  toEl: he,
@@ -11140,9 +11140,9 @@ P.prototype = /** @lends Sortable.prototype */
11140
11140
  }), this.save()))), this._nulling();
11141
11141
  },
11142
11142
  _nulling: function() {
11143
- je("nulling", this), pe = A = he = K = Ht = de = mo = St = Yt = nt = yn = qe = kt = cn = Dn = on = Mn = Pe = ro = P.dragged = P.ghost = P.clone = P.active = null, Po.forEach(function(e) {
11143
+ Ge("nulling", this), pe = A = he = K = Ht = de = mo = St = Yt = nt = yn = qe = kt = cn = Dn = on = Mn = Pe = ro = P.dragged = P.ghost = P.clone = P.active = null, Mo.forEach(function(e) {
11144
11144
  e.checked = !0;
11145
- }), Po.length = yi = Ci = 0;
11145
+ }), Mo.length = Ii = yi = 0;
11146
11146
  },
11147
11147
  handleEvent: function(e) {
11148
11148
  switch (e.type) {
@@ -11208,21 +11208,21 @@ P.prototype = /** @lends Sortable.prototype */
11208
11208
  if (t === void 0)
11209
11209
  return n[e];
11210
11210
  var o = Wn.modifyOption(this, e, t);
11211
- typeof o < "u" ? n[e] = o : n[e] = t, e === "group" && Sr(n);
11211
+ typeof o < "u" ? n[e] = o : n[e] = t, e === "group" && Br(n);
11212
11212
  },
11213
11213
  /**
11214
11214
  * Destroy
11215
11215
  */
11216
11216
  destroy: function() {
11217
- je("destroy", this);
11217
+ Ge("destroy", this);
11218
11218
  var e = this.el;
11219
11219
  e[Je] = null, Z(e, "mousedown", this._onTapStart), Z(e, "touchstart", this._onTapStart), Z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Z(e, "dragover", this), Z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
11220
11220
  t.removeAttribute("draggable");
11221
- }), this._onDrop(), this._disableDelayedDragEvents(), Mo.splice(Mo.indexOf(this.el), 1), this.el = e = null;
11221
+ }), this._onDrop(), this._disableDelayedDragEvents(), Do.splice(Do.indexOf(this.el), 1), this.el = e = null;
11222
11222
  },
11223
11223
  _hideClone: function() {
11224
11224
  if (!St) {
11225
- if (je("hideClone", this), P.eventCanceled)
11225
+ if (Ge("hideClone", this), P.eventCanceled)
11226
11226
  return;
11227
11227
  M(de, "display", "none"), this.options.removeCloneOnHide && de.parentNode && de.parentNode.removeChild(de), St = !0;
11228
11228
  }
@@ -11233,7 +11233,7 @@ P.prototype = /** @lends Sortable.prototype */
11233
11233
  return;
11234
11234
  }
11235
11235
  if (St) {
11236
- if (je("showClone", this), P.eventCanceled)
11236
+ if (Ge("showClone", this), P.eventCanceled)
11237
11237
  return;
11238
11238
  A.parentNode == pe && !this.options.group.revertClone ? pe.insertBefore(de, A) : Ht ? pe.insertBefore(de, Ht) : pe.appendChild(de), this.options.group.revertClone && this.animate(A, de), M(de, "display", ""), St = !1;
11239
11239
  }
@@ -11249,18 +11249,18 @@ function uo(e, t, n, o, i, s, a, l) {
11249
11249
  cancelable: !0
11250
11250
  }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = o, c.related = i || t, c.relatedRect = s || Ce(t), c.willInsertAfter = l, c.originalEvent = a, e.dispatchEvent(c), h && (d = h.call(_, c, a)), d;
11251
11251
  }
11252
- function ki(e) {
11252
+ function Ni(e) {
11253
11253
  e.draggable = !1;
11254
11254
  }
11255
11255
  function Vf() {
11256
- zi = !1;
11256
+ Xi = !1;
11257
11257
  }
11258
11258
  function Ff(e, t, n) {
11259
- var o = Ce(mn(n.el, 0, n.options, !0)), i = Nr(n.el, n.options, K), s = 10;
11259
+ var o = Ce(mn(n.el, 0, n.options, !0)), i = kr(n.el, n.options, K), s = 10;
11260
11260
  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;
11261
11261
  }
11262
11262
  function Yf(e, t, n) {
11263
- var o = Ce(cs(n.el, n.options.draggable)), i = Nr(n.el, n.options, K), s = 10;
11263
+ var o = Ce(cs(n.el, n.options.draggable)), i = kr(n.el, n.options, K), s = 10;
11264
11264
  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;
11265
11265
  }
11266
11266
  function Kf(e, t, n, o, i, s, a, l) {
@@ -11285,38 +11285,38 @@ function $f(e) {
11285
11285
  return o.toString(36);
11286
11286
  }
11287
11287
  function Gf(e) {
11288
- Po.length = 0;
11288
+ Mo.length = 0;
11289
11289
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
11290
11290
  var o = t[n];
11291
- o.checked && Po.push(o);
11291
+ o.checked && Mo.push(o);
11292
11292
  }
11293
11293
  }
11294
11294
  function Eo(e) {
11295
11295
  return setTimeout(e, 0);
11296
11296
  }
11297
- function qi(e) {
11297
+ function zi(e) {
11298
11298
  return clearTimeout(e);
11299
11299
  }
11300
- ni && te(document, "touchmove", function(e) {
11300
+ ti && te(document, "touchmove", function(e) {
11301
11301
  (P.active || an) && e.cancelable && e.preventDefault();
11302
11302
  });
11303
11303
  P.utils = {
11304
11304
  on: te,
11305
11305
  off: Z,
11306
11306
  css: M,
11307
- find: br,
11307
+ find: Ir,
11308
11308
  is: function(e, t) {
11309
11309
  return !!ot(e, t, e, !1);
11310
11310
  },
11311
11311
  extend: Nf,
11312
- throttle: Ir,
11312
+ throttle: yr,
11313
11313
  closest: ot,
11314
11314
  toggleClass: ze,
11315
- clone: Cr,
11315
+ clone: Nr,
11316
11316
  index: Qe,
11317
11317
  nextTick: Eo,
11318
- cancelNextTick: qi,
11319
- detectDirection: Lr,
11318
+ cancelNextTick: zi,
11319
+ detectDirection: Sr,
11320
11320
  getChild: mn
11321
11321
  };
11322
11322
  P.get = function(e) {
@@ -11335,7 +11335,7 @@ P.create = function(e, t) {
11335
11335
  return new P(e, t);
11336
11336
  };
11337
11337
  P.version = If;
11338
- var ye = [], Cn, Ji, Qi = !1, Li, Si, Uo, Nn;
11338
+ var ye = [], Cn, qi, Ji = !1, ki, Li, Po, Nn;
11339
11339
  function jf() {
11340
11340
  function e() {
11341
11341
  this.defaults = {
@@ -11361,26 +11361,26 @@ function jf() {
11361
11361
  this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)), Oa(), Ao(), kf();
11362
11362
  },
11363
11363
  nulling: function() {
11364
- Uo = Ji = Cn = Qi = Nn = Li = Si = null, ye.length = 0;
11364
+ Po = qi = Cn = Ji = Nn = ki = Li = null, ye.length = 0;
11365
11365
  },
11366
11366
  _handleFallbackAutoScroll: function(t) {
11367
11367
  this._handleAutoScroll(t, !0);
11368
11368
  },
11369
11369
  _handleAutoScroll: function(t, n) {
11370
11370
  var o = this, i = (t.touches ? t.touches[0] : t).clientX, s = (t.touches ? t.touches[0] : t).clientY, a = document.elementFromPoint(i, s);
11371
- if (Uo = t, n || this.options.forceAutoScrollFallback || jn || yt || Bn) {
11372
- Bi(t, this.options, a, n);
11371
+ if (Po = t, n || this.options.forceAutoScrollFallback || jn || yt || Bn) {
11372
+ Si(t, this.options, a, n);
11373
11373
  var l = Dt(a, !0);
11374
- Qi && (!Nn || i !== Li || s !== Si) && (Nn && Oa(), Nn = setInterval(function() {
11374
+ Ji && (!Nn || i !== ki || s !== Li) && (Nn && Oa(), Nn = setInterval(function() {
11375
11375
  var c = Dt(document.elementFromPoint(i, s), !0);
11376
- c !== l && (l = c, Ao()), Bi(t, o.options, c, n);
11377
- }, 10), Li = i, Si = s);
11376
+ c !== l && (l = c, Ao()), Si(t, o.options, c, n);
11377
+ }, 10), ki = i, Li = s);
11378
11378
  } else {
11379
11379
  if (!this.options.bubbleScroll || Dt(a, !0) === dt()) {
11380
11380
  Ao();
11381
11381
  return;
11382
11382
  }
11383
- Bi(t, this.options, Dt(a, !1), !1);
11383
+ Si(t, this.options, Dt(a, !1), !1);
11384
11384
  }
11385
11385
  }
11386
11386
  }, bt(e, {
@@ -11396,29 +11396,29 @@ function Ao() {
11396
11396
  function Oa() {
11397
11397
  clearInterval(Nn);
11398
11398
  }
11399
- var Bi = Ir(function(e, t, n, o) {
11399
+ var Si = yr(function(e, t, n, o) {
11400
11400
  if (t.scroll) {
11401
11401
  var i = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, c = dt(), _ = !1, h;
11402
- Ji !== n && (Ji = n, Ao(), Cn = t.scroll, h = t.scrollFn, Cn === !0 && (Cn = Dt(n, !0)));
11402
+ qi !== n && (qi = n, Ao(), Cn = t.scroll, h = t.scrollFn, Cn === !0 && (Cn = Dt(n, !0)));
11403
11403
  var d = 0, g = Cn;
11404
11404
  do {
11405
- var m = g, I = Ce(m), v = I.top, G = I.bottom, D = I.left, X = I.right, ee = I.width, _e = I.height, q = void 0, ke = void 0, Ge = m.scrollWidth, R = m.scrollHeight, F = M(m), se = m.scrollLeft, Te = m.scrollTop;
11406
- m === c ? (q = ee < Ge && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (q = ee < Ge && (F.overflowX === "auto" || F.overflowX === "scroll"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll"));
11407
- var k = q && (Math.abs(X - i) <= a && se + ee < Ge) - (Math.abs(D - i) <= a && !!se), J = ke && (Math.abs(G - s) <= a && Te + _e < R) - (Math.abs(v - s) <= a && !!Te);
11405
+ var m = g, I = Ce(m), v = I.top, G = I.bottom, D = I.left, X = I.right, ee = I.width, _e = I.height, q = void 0, ke = void 0, $e = m.scrollWidth, R = m.scrollHeight, F = M(m), se = m.scrollLeft, me = m.scrollTop;
11406
+ m === c ? (q = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (q = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll"));
11407
+ var k = q && (Math.abs(X - i) <= a && se + ee < $e) - (Math.abs(D - i) <= a && !!se), J = ke && (Math.abs(G - s) <= a && me + _e < R) - (Math.abs(v - s) <= a && !!me);
11408
11408
  if (!ye[d])
11409
11409
  for (var ne = 0; ne <= d; ne++)
11410
11410
  ye[ne] || (ye[ne] = {});
11411
11411
  (ye[d].vx != k || ye[d].vy != J || ye[d].el !== m) && (ye[d].el = m, ye[d].vx = k, ye[d].vy = J, clearInterval(ye[d].pid), (k != 0 || J != 0) && (_ = !0, ye[d].pid = setInterval((function() {
11412
- o && this.layer === 0 && P.active._onTouchMove(Uo);
11412
+ o && this.layer === 0 && P.active._onTouchMove(Po);
11413
11413
  var ie = ye[this.layer].vy ? ye[this.layer].vy * l : 0, Le = ye[this.layer].vx ? ye[this.layer].vx * l : 0;
11414
- typeof h == "function" && h.call(P.dragged.parentNode[Je], Le, ie, e, Uo, ye[this.layer].el) !== "continue" || yr(ye[this.layer].el, Le, ie);
11414
+ typeof h == "function" && h.call(P.dragged.parentNode[Je], Le, ie, e, Po, ye[this.layer].el) !== "continue" || Cr(ye[this.layer].el, Le, ie);
11415
11415
  }).bind({
11416
11416
  layer: d
11417
11417
  }), 24))), d++;
11418
11418
  } while (t.bubbleScroll && g !== c && (g = Dt(g, !1)));
11419
- Qi = _;
11419
+ Ji = _;
11420
11420
  }
11421
- }, 30), Dr = function(e) {
11421
+ }, 30), Mr = function(e) {
11422
11422
  var t = e.originalEvent, n = e.putSortable, o = e.dragEl, i = e.activeSortable, s = e.dispatchSortableEvent, a = e.hideGhostForTarget, l = e.unhideGhostForTarget;
11423
11423
  if (t) {
11424
11424
  var c = n || i;
@@ -11444,7 +11444,7 @@ us.prototype = {
11444
11444
  var o = mn(this.sortable.el, this.startIndex, this.options);
11445
11445
  o ? this.sortable.el.insertBefore(t, o) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
11446
11446
  },
11447
- drop: Dr
11447
+ drop: Mr
11448
11448
  };
11449
11449
  bt(us, {
11450
11450
  pluginName: "revertOnSpill"
@@ -11456,7 +11456,7 @@ ps.prototype = {
11456
11456
  var t = e.dragEl, n = e.putSortable, o = n || this.sortable;
11457
11457
  o.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), o.animateAll();
11458
11458
  },
11459
- drop: Dr
11459
+ drop: Mr
11460
11460
  };
11461
11461
  bt(ps, {
11462
11462
  pluginName: "removeOnSpill"
@@ -11467,25 +11467,25 @@ function Wf(e) {
11467
11467
  return e == null ? e : JSON.parse(JSON.stringify(e));
11468
11468
  }
11469
11469
  function Xf(e) {
11470
- xo() && Ul(e);
11470
+ Uo() && ka(e);
11471
11471
  }
11472
11472
  function zf(e) {
11473
- xo() ? dn(e) : ts(e);
11473
+ Uo() ? dn(e) : ts(e);
11474
11474
  }
11475
- let Mr = null, Pr = null;
11475
+ let Pr = null, Ur = null;
11476
11476
  function ba(e = null, t = null) {
11477
- Mr = e, Pr = t;
11477
+ Pr = e, Ur = t;
11478
11478
  }
11479
11479
  function qf() {
11480
11480
  return {
11481
- data: Mr,
11482
- clonedData: Pr
11481
+ data: Pr,
11482
+ clonedData: Ur
11483
11483
  };
11484
11484
  }
11485
11485
  const Ia = Symbol("cloneElement");
11486
11486
  function Jf(...e) {
11487
11487
  var t, n;
11488
- const o = (t = xo()) == null ? void 0 : t.proxy;
11488
+ const o = (t = Uo()) == null ? void 0 : t.proxy;
11489
11489
  let i = null;
11490
11490
  const s = e[0];
11491
11491
  let [, a, l] = e;
@@ -11498,15 +11498,15 @@ function Jf(...e) {
11498
11498
  } = (n = W(l)) != null ? n : {};
11499
11499
  function g(R) {
11500
11500
  var F;
11501
- const { from: se, oldIndex: Te, item: k } = R;
11501
+ const { from: se, oldIndex: me, item: k } = R;
11502
11502
  i = Array.from(se.childNodes);
11503
- const J = W((F = W(a)) == null ? void 0 : F[Te]), ne = h(J);
11503
+ const J = W((F = W(a)) == null ? void 0 : F[me]), ne = h(J);
11504
11504
  ba(J, ne), k[Ia] = ne;
11505
11505
  }
11506
11506
  function m(R) {
11507
11507
  const F = R.item[Ia];
11508
11508
  if (!df(F)) {
11509
- if (Oi(R.item), kn(a)) {
11509
+ if (vi(R.item), kn(a)) {
11510
11510
  const se = [...W(a)];
11511
11511
  a.value = pa(se, R.newDraggableIndex, F);
11512
11512
  return;
@@ -11515,9 +11515,9 @@ function Jf(...e) {
11515
11515
  }
11516
11516
  }
11517
11517
  function I(R) {
11518
- const { from: F, item: se, oldIndex: Te, oldDraggableIndex: k, pullMode: J, clone: ne } = R;
11519
- if (_a(F, se, Te), J === "clone") {
11520
- Oi(ne);
11518
+ const { from: F, item: se, oldIndex: me, oldDraggableIndex: k, pullMode: J, clone: ne } = R;
11519
+ if (_a(F, se, me), J === "clone") {
11520
+ vi(ne);
11521
11521
  return;
11522
11522
  }
11523
11523
  if (kn(a)) {
@@ -11532,8 +11532,8 @@ function Jf(...e) {
11532
11532
  d(R);
11533
11533
  return;
11534
11534
  }
11535
- const { from: F, item: se, oldIndex: Te, oldDraggableIndex: k, newDraggableIndex: J } = R;
11536
- if (Oi(se), _a(F, se, Te), kn(a)) {
11535
+ const { from: F, item: se, oldIndex: me, oldDraggableIndex: k, newDraggableIndex: J } = R;
11536
+ if (vi(se), _a(F, se, me), kn(a)) {
11537
11537
  const ne = [...W(a)];
11538
11538
  a.value = ca(
11539
11539
  ne,
@@ -11545,17 +11545,17 @@ function Jf(...e) {
11545
11545
  ca(W(a), k, J);
11546
11546
  }
11547
11547
  function G(R) {
11548
- const { newIndex: F, oldIndex: se, from: Te, to: k } = R;
11548
+ const { newIndex: F, oldIndex: se, from: me, to: k } = R;
11549
11549
  let J = null;
11550
- const ne = F === se && Te === k;
11550
+ const ne = F === se && me === k;
11551
11551
  try {
11552
11552
  if (ne) {
11553
11553
  let ie = null;
11554
- i == null || i.some((Le, He) => {
11554
+ i == null || i.some((Le, We) => {
11555
11555
  if (ie && (i == null ? void 0 : i.length) !== k.childNodes.length)
11556
- return Te.insertBefore(ie, Le.nextSibling), !0;
11557
- const Ee = k.childNodes[He];
11558
- ie = k == null ? void 0 : k.replaceChild(Le, Ee);
11556
+ return me.insertBefore(ie, Le.nextSibling), !0;
11557
+ const Te = k.childNodes[We];
11558
+ ie = k == null ? void 0 : k.replaceChild(Le, Te);
11559
11559
  });
11560
11560
  }
11561
11561
  } catch (ie) {
@@ -11581,11 +11581,11 @@ function Jf(...e) {
11581
11581
  }
11582
11582
  function ee() {
11583
11583
  var R;
11584
- const F = (R = W(l)) != null ? R : {}, { immediate: se, clone: Te } = F, k = Tr(F, ["immediate", "clone"]);
11584
+ const F = (R = W(l)) != null ? R : {}, { immediate: se, clone: me } = F, k = Er(F, ["immediate", "clone"]);
11585
11585
  return da(k, (J, ne) => {
11586
11586
  Ef(J) && (k[J] = (ie, ...Le) => {
11587
- const He = qf();
11588
- return Af(ie, He), ne(ie, ...Le);
11587
+ const We = qf();
11588
+ return Af(ie, We), ne(ie, ...Le);
11589
11589
  });
11590
11590
  }), mf(
11591
11591
  a === null ? {} : D,
@@ -11612,12 +11612,12 @@ function Jf(...e) {
11612
11612
  save: () => c == null ? void 0 : c.save(),
11613
11613
  toArray: () => c == null ? void 0 : c.toArray(),
11614
11614
  closest: (...R) => c == null ? void 0 : c.closest(...R)
11615
- }, ke = () => q == null ? void 0 : q.option("disabled", !0), Ge = () => q == null ? void 0 : q.option("disabled", !1);
11615
+ }, ke = () => q == null ? void 0 : q.option("disabled", !0), $e = () => q == null ? void 0 : q.option("disabled", !1);
11616
11616
  return zf(() => {
11617
11617
  _ && _e();
11618
- }), Xf(q.destroy), ln({ start: _e, pause: ke, resume: Ge }, q);
11618
+ }), Xf(q.destroy), ln({ start: _e, pause: ke, resume: $e }, q);
11619
11619
  }
11620
- const Zi = [
11620
+ const Qi = [
11621
11621
  "update",
11622
11622
  "start",
11623
11623
  "add",
@@ -11674,7 +11674,7 @@ const Zi = [
11674
11674
  "tag",
11675
11675
  "target",
11676
11676
  "customUpdate",
11677
- ...Zi.map((e) => `on${e.replace(/^\S/, (t) => t.toUpperCase())}`)
11677
+ ...Qi.map((e) => `on${e.replace(/^\S/, (t) => t.toUpperCase())}`)
11678
11678
  ], Zf = ft({
11679
11679
  name: "VueDraggable",
11680
11680
  model: {
@@ -11682,13 +11682,13 @@ const Zi = [
11682
11682
  event: "update:modelValue"
11683
11683
  },
11684
11684
  props: Qf,
11685
- emits: ["update:modelValue", ...Zi],
11685
+ emits: ["update:modelValue", ...Qi],
11686
11686
  setup(e, { slots: t, emit: n, expose: o, attrs: i }) {
11687
- const s = Zi.reduce((h, d) => {
11687
+ const s = Qi.reduce((h, d) => {
11688
11688
  const g = `on${d.replace(/^\S/, (m) => m.toUpperCase())}`;
11689
11689
  return h[g] = (...m) => n(d, ...m), h;
11690
11690
  }, {}), a = Be(() => {
11691
- const h = Ml(e), { modelValue: d } = h, g = Tr(h, ["modelValue"]), m = Object.entries(g).reduce((I, [v, G]) => {
11691
+ const h = Pl(e), { modelValue: d } = h, g = Er(h, ["modelValue"]), m = Object.entries(g).reduce((I, [v, G]) => {
11692
11692
  const D = W(G);
11693
11693
  return D !== void 0 && (I[v] = D), I;
11694
11694
  }, {});
@@ -11696,12 +11696,12 @@ const Zi = [
11696
11696
  }), l = Be({
11697
11697
  get: () => e.modelValue,
11698
11698
  set: (h) => n("update:modelValue", h)
11699
- }), c = Mt(), _ = Pl(
11699
+ }), c = Mt(), _ = Ul(
11700
11700
  Jf(e.target || c, l, a)
11701
11701
  );
11702
11702
  return o(_), () => {
11703
11703
  var h;
11704
- return Pi(e.tag || "div", { ref: c }, (h = t == null ? void 0 : t.default) == null ? void 0 : h.call(t, _));
11704
+ return Mi(e.tag || "div", { ref: c }, (h = t == null ? void 0 : t.default) == null ? void 0 : h.call(t, _));
11705
11705
  };
11706
11706
  }
11707
11707
  }), eg = { class: "text-subtitle-1 ml-6" }, tg = /* @__PURE__ */ ft({
@@ -11713,7 +11713,7 @@ const Zi = [
11713
11713
  },
11714
11714
  emits: ["x-click"],
11715
11715
  setup(e, { emit: t }) {
11716
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Yo(), s = e, a = t, l = Mt(!1), c = Be(() => ({
11716
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Fo(), s = e, a = t, l = Mt(!1), c = Be(() => ({
11717
11717
  position: "relative",
11718
11718
  background: l.value ? i.value : o.value,
11719
11719
  height: "48px",
@@ -11730,24 +11730,24 @@ const Zi = [
11730
11730
  pointerEvents: "none"
11731
11731
  }));
11732
11732
  return (h, d) => {
11733
- const g = Re("v-spacer"), m = Re("v-icon"), I = xl("ripple");
11734
- return wl((Ne(), lt("div", {
11733
+ const g = De("v-spacer"), m = De("v-icon"), I = xl("ripple");
11734
+ return wl((Ne(), rt("div", {
11735
11735
  class: "d-flex align-center cursor-pointer",
11736
- style: ut(c.value),
11736
+ style: ct(c.value),
11737
11737
  onClick: d[1] || (d[1] = (v) => a("x-click", s.id)),
11738
11738
  onMouseover: d[2] || (d[2] = (v) => l.value = !0),
11739
11739
  onMouseout: d[3] || (d[3] = (v) => l.value = !1)
11740
11740
  }, [
11741
- ct("span", eg, wo(s.title), 1),
11742
- fe(g),
11743
- fe(m, {
11741
+ lt("span", eg, xo(s.title), 1),
11742
+ Oe(g),
11743
+ Oe(m, {
11744
11744
  class: "x-handle cursor-move mr-3",
11745
11745
  icon: W(oc),
11746
11746
  onMousedown: d[0] || (d[0] = Ln(() => {
11747
11747
  }, ["stop"]))
11748
11748
  }, null, 8, ["icon"]),
11749
- ct("div", {
11750
- style: ut(_.value)
11749
+ lt("div", {
11750
+ style: ct(_.value)
11751
11751
  }, null, 4)
11752
11752
  ], 36)), [
11753
11753
  [I]
@@ -11786,14 +11786,14 @@ const Zi = [
11786
11786
  }), o.value = g;
11787
11787
  };
11788
11788
  dn(() => {
11789
- pt.on("codeUpdate", i);
11790
- }), Oo(() => {
11791
- pt.off("codeUpdate", i);
11789
+ ut.on("codeUpdate", i);
11790
+ }), Zi(() => {
11791
+ ut.off("codeUpdate", i);
11792
11792
  });
11793
11793
  let s = [];
11794
11794
  const a = () => {
11795
11795
  if (n.lock) {
11796
- Da(t("x-block-lib.msg.cannotOperateInLockedState"));
11796
+ Ma(t("x-block-lib.msg.cannotOperateInLockedState"));
11797
11797
  return;
11798
11798
  }
11799
11799
  const d = [];
@@ -11822,17 +11822,17 @@ const Zi = [
11822
11822
  let G = -10;
11823
11823
  v !== "" && (G = g.getBlockById(v).getRelativeToSurfaceXY().y + 10);
11824
11824
  const D = I.getRelativeToSurfaceXY();
11825
- I.moveTo(new L.Coordinate(D.x, G)), pt.emit("cleanWorkspace"), pr();
11826
- }, { open: _ } = Ko("blocklyNavigatorDlg"), h = async (d) => {
11825
+ I.moveTo(new L.Coordinate(D.x, G)), ut.emit("cleanWorkspace"), _r();
11826
+ }, { open: _ } = Yo("blocklyNavigatorDlg"), h = async (d) => {
11827
11827
  const g = Pt();
11828
11828
  if (!g) {
11829
11829
  console.assert(!1);
11830
11830
  return;
11831
11831
  }
11832
11832
  const m = g.getBlockById(d);
11833
- Wl.setSelected(m), ur(d), _.value = !1;
11833
+ Wl.setSelected(m), pr(d), _.value = !1;
11834
11834
  };
11835
- return (d, g) => o.value.length > 0 ? (Ne(), _t(W(Zf), {
11835
+ return (d, g) => o.value.length > 0 ? (Ne(), pt(W(Zf), {
11836
11836
  key: 0,
11837
11837
  modelValue: o.value,
11838
11838
  "onUpdate:modelValue": g[0] || (g[0] = (m) => o.value = m),
@@ -11843,8 +11843,8 @@ const Zi = [
11843
11843
  onMove: l,
11844
11844
  onEnd: c
11845
11845
  }, {
11846
- default: st(() => [
11847
- (Ne(!0), lt(ka, null, Vl(o.value, (m) => (Ne(), _t(tg, {
11846
+ default: _t(() => [
11847
+ (Ne(!0), rt(La, null, Vl(o.value, (m) => (Ne(), pt(tg, {
11848
11848
  id: m.id,
11849
11849
  key: m.id,
11850
11850
  title: m.name,
@@ -11853,25 +11853,25 @@ const Zi = [
11853
11853
  }, null, 8, ["id", "title", "select"]))), 128))
11854
11854
  ]),
11855
11855
  _: 1
11856
- }, 8, ["modelValue"])) : (Ne(), lt("span", ng, wo(W(t)("x-block-lib.noOption")), 1));
11856
+ }, 8, ["modelValue"])) : (Ne(), rt("span", ng, xo(W(t)("x-block-lib.noOption")), 1));
11857
11857
  }
11858
- }), Ur = (e, t) => {
11858
+ }), xr = (e, t) => {
11859
11859
  const n = e.__vccOpts || e;
11860
11860
  for (const [o, i] of t)
11861
11861
  n[o] = i;
11862
11862
  return n;
11863
- }, ig = /* @__PURE__ */ Ur(og, [["__scopeId", "data-v-448cc5cd"]]), sg = {};
11863
+ }, ig = /* @__PURE__ */ xr(og, [["__scopeId", "data-v-448cc5cd"]]), sg = {};
11864
11864
  function ag(e, t) {
11865
- return Ne(), lt("div", null, "blockTree");
11865
+ return Ne(), rt("div", null, "blockTree");
11866
11866
  }
11867
- const rg = /* @__PURE__ */ Ur(sg, [["render", ag]]), lg = { class: "text-subtitle-1" }, cg = /* @__PURE__ */ ft({
11867
+ const rg = /* @__PURE__ */ xr(sg, [["render", ag]]), lg = { class: "text-subtitle-1" }, cg = /* @__PURE__ */ ft({
11868
11868
  __name: "index",
11869
11869
  props: {
11870
11870
  type: {},
11871
11871
  lock: { type: Boolean }
11872
11872
  },
11873
11873
  setup(e) {
11874
- const { t } = Kn(), n = ec(), { sysBarAvail: o } = Ma(), { backgroundColor1: i } = Yo(), s = e, a = Be(() => {
11874
+ const { t } = Kn(), n = ec(), { sysBarAvail: o } = Pa(), { backgroundColor1: i } = Fo(), s = e, a = Be(() => {
11875
11875
  let h = "100%";
11876
11876
  return n.mdAndUp.value && (h = "400px"), {
11877
11877
  background: i.value,
@@ -11886,11 +11886,11 @@ const rg = /* @__PURE__ */ Ur(sg, [["render", ag]]), lg = { class: "text-subtitl
11886
11886
  };
11887
11887
  }), c = Be(() => ({
11888
11888
  height: "60px"
11889
- })), { open: _ } = Ko("blocklyNavigatorDlg");
11889
+ })), { open: _ } = Yo("blocklyNavigatorDlg");
11890
11890
  return (h, d) => {
11891
- const g = Re("v-sheet"), m = Re("v-btn"), I = Re("v-spacer"), v = Re("v-dialog"), G = Re("v-tooltip");
11892
- return Ne(), lt(ka, null, [
11893
- fe(v, {
11891
+ const g = De("v-sheet"), m = De("v-btn"), I = De("v-spacer"), v = De("v-dialog"), G = De("v-tooltip");
11892
+ return Ne(), rt(La, null, [
11893
+ Oe(v, {
11894
11894
  modelValue: W(_),
11895
11895
  "onUpdate:modelValue": d[3] || (d[3] = (D) => kn(_) ? _.value = D : null),
11896
11896
  transition: "scroll-x-reverse-transition",
@@ -11898,50 +11898,50 @@ const rg = /* @__PURE__ */ Ur(sg, [["render", ag]]), lg = { class: "text-subtitl
11898
11898
  "no-click-animation": "",
11899
11899
  fullscreen: "",
11900
11900
  eager: "",
11901
- onKeydown: d[4] || (d[4] = La(Ln((D) => _.value = !1, ["stop", "prevent"]), ["esc"]))
11901
+ onKeydown: d[4] || (d[4] = Sa(Ln((D) => _.value = !1, ["stop", "prevent"]), ["esc"]))
11902
11902
  }, {
11903
- default: st(() => [
11904
- ct("div", {
11903
+ default: _t(() => [
11904
+ lt("div", {
11905
11905
  class: "w-100 h-100 d-flex flex-row-reverse",
11906
11906
  onClick: d[1] || (d[1] = Ln((D) => _.value = !1, ["self"])),
11907
11907
  onContextmenu: d[2] || (d[2] = Ln((D) => _.value = !1, ["self", "prevent"]))
11908
11908
  }, [
11909
- ct("div", {
11909
+ lt("div", {
11910
11910
  class: "elevation-2",
11911
- style: ut(a.value)
11911
+ style: ct(a.value)
11912
11912
  }, [
11913
- W(o) ? (Ne(), _t(g, {
11913
+ W(o) ? (Ne(), pt(g, {
11914
11914
  key: 0,
11915
11915
  color: "transparent",
11916
11916
  height: 24
11917
11917
  })) : $t("", !0),
11918
- fe(g, {
11918
+ Oe(g, {
11919
11919
  class: "d-flex align-center px-2",
11920
11920
  color: "transparent",
11921
11921
  height: 48
11922
11922
  }, {
11923
- default: st(() => [
11924
- fe(m, {
11923
+ default: _t(() => [
11924
+ Oe(m, {
11925
11925
  variant: "text",
11926
11926
  density: "comfortable",
11927
- icon: W(Pa),
11927
+ icon: W(Ua),
11928
11928
  onClick: d[0] || (d[0] = (D) => _.value = !1)
11929
11929
  }, null, 8, ["icon"]),
11930
- ct("span", lg, wo(W(t)("x-block-lib.navigator")), 1),
11931
- fe(I)
11930
+ lt("span", lg, xo(W(t)("x-block-lib.navigator")), 1),
11931
+ Oe(I)
11932
11932
  ]),
11933
11933
  _: 1
11934
11934
  }),
11935
- ct("div", {
11935
+ lt("div", {
11936
11936
  class: "overflow-y-auto",
11937
- style: ut(l.value)
11937
+ style: ct(l.value)
11938
11938
  }, [
11939
- s.type === "list" ? (Ne(), _t(ig, {
11939
+ s.type === "list" ? (Ne(), pt(ig, {
11940
11940
  key: 0,
11941
11941
  lock: s.lock
11942
- }, null, 8, ["lock"])) : s.type === "tree" ? (Ne(), _t(rg, { key: 1 })) : $t("", !0),
11943
- ct("div", {
11944
- style: ut(c.value)
11942
+ }, null, 8, ["lock"])) : s.type === "tree" ? (Ne(), pt(rg, { key: 1 })) : $t("", !0),
11943
+ lt("div", {
11944
+ style: ct(c.value)
11945
11945
  }, null, 4)
11946
11946
  ], 4)
11947
11947
  ], 4)
@@ -11949,11 +11949,11 @@ const rg = /* @__PURE__ */ Ur(sg, [["render", ag]]), lg = { class: "text-subtitl
11949
11949
  ]),
11950
11950
  _: 1
11951
11951
  }, 8, ["modelValue"]),
11952
- fe(G, {
11952
+ Oe(G, {
11953
11953
  text: W(t)("x-block-lib.tip.hotkeyCtrlE")
11954
11954
  }, {
11955
- activator: st(({ props: D }) => [
11956
- fe(m, es(D, {
11955
+ activator: _t(({ props: D }) => [
11956
+ Oe(m, es(D, {
11957
11957
  variant: "outlined",
11958
11958
  density: "comfortable",
11959
11959
  icon: W(ac),
@@ -11965,7 +11965,7 @@ const rg = /* @__PURE__ */ Ur(sg, [["render", ag]]), lg = { class: "text-subtitl
11965
11965
  ], 64);
11966
11966
  };
11967
11967
  }
11968
- }), Ri = {
11968
+ }), Bi = {
11969
11969
  grid: {
11970
11970
  length: 2,
11971
11971
  snap: !0,
@@ -11992,8 +11992,8 @@ const rg = /* @__PURE__ */ Ur(sg, [["render", ag]]), lg = { class: "text-subtitl
11992
11992
  }
11993
11993
  };
11994
11994
  function ug(e, t, n, o) {
11995
- Ri.theme = o ? "dark" : "light", Ri.toolbox = pg(t, n);
11996
- const i = Xl(e, Ri);
11995
+ Bi.theme = o ? "dark" : "light", Bi.toolbox = pg(t, n);
11996
+ const i = Xl(e, Bi);
11997
11997
  return _g(i, t, n), dg(i), i;
11998
11998
  }
11999
11999
  function pg(e, t) {
@@ -12004,7 +12004,7 @@ function _g(e, t, n) {
12004
12004
  function o({ name: i, callback: s }) {
12005
12005
  e.registerToolboxCategoryCallback(i, () => s(t));
12006
12006
  }
12007
- t === "page" || t === "comp" ? n === "v1" && (o(So), o(Rt), o(Bt)) : t === "func" ? n === "v1" && (o(Lo), o(ko), o(No), o(Rt), o(Bt)) : t === "flow" && n === "v1" && (o(ko), o(Lo), o(No), o(Rt), o(Bt));
12007
+ t === "page" || t === "comp" ? n === "v1" && (o(Lo), o(Rt), o(Bt)) : t === "func" ? n === "v1" && (o(ko), o(No), o(Co), o(Rt), o(Bt)) : t === "flow" && n === "v1" && (o(No), o(ko), o(Co), o(Rt), o(Bt));
12008
12008
  }
12009
12009
  function dg(e) {
12010
12010
  const { router: t } = V.base;
@@ -12039,9 +12039,9 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12039
12039
  }),
12040
12040
  emits: /* @__PURE__ */ ks(["ready"], ["update:lock", "update:scale"]),
12041
12041
  setup(e, { expose: t, emit: n }) {
12042
- const o = Mi(e, "lock"), i = Mi(e, "scale"), s = n, a = Mt();
12042
+ const o = Di(e, "lock"), i = Di(e, "scale"), s = n, a = Mt();
12043
12043
  let l;
12044
- const c = Mt(!1), _ = Mt(!1), h = Be(() => e.type === "json" ? "tree" : "list"), d = Be(() => ({
12044
+ const c = Mt(!0), _ = Mt(!1), h = Be(() => e.type === "json" ? "tree" : "list"), d = Be(() => ({
12045
12045
  position: "absolute",
12046
12046
  background: e.dark ? "#0000007f" : "#ffffff7f",
12047
12047
  top: "1px",
@@ -12070,7 +12070,7 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12070
12070
  width: "56px",
12071
12071
  height: "calc(100% - 1px)",
12072
12072
  zIndex: 999
12073
- })), { open: v } = Ko("blocklyEditorFlyout");
12073
+ })), { open: v } = Yo("blocklyEditorFlyout");
12074
12074
  dn(async () => {
12075
12075
  if (!a.value) {
12076
12076
  console.assert(!1);
@@ -12083,14 +12083,14 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12083
12083
  ie.type === "attributes" && ie.attributeName === "style" && (v.value = l.getFlyout().isVisible());
12084
12084
  });
12085
12085
  }).observe(k, { attributes: !0 }), v.value = l.getFlyout().isVisible(), _e(), q(), await ts(), s("ready");
12086
- }), Oo(() => {
12086
+ }), Zi(() => {
12087
12087
  v.value = !1;
12088
12088
  }), _c(a, () => {
12089
12089
  l && zl(l);
12090
12090
  });
12091
12091
  async function G(k) {
12092
12092
  if (k.type === w.FINISHED_LOADING) {
12093
- pr(), pt.emit("codeUpdate"), c.value = !1;
12093
+ _r(), ut.emit("codeUpdate"), c.value = !1;
12094
12094
  return;
12095
12095
  }
12096
12096
  if (!c.value) {
@@ -12098,7 +12098,7 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12098
12098
  i.value = l.getScale();
12099
12099
  return;
12100
12100
  }
12101
- k.type === w.BLOCK_DRAG && (k.isStart ? _.value = !0 : _.value = !1), pt.emit("codeUpdate");
12101
+ k.type === w.BLOCK_DRAG && (k.isStart ? _.value = !0 : _.value = !1), ut.emit("codeUpdate");
12102
12102
  }
12103
12103
  }
12104
12104
  const D = (k) => {
@@ -12114,7 +12114,7 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12114
12114
  tt(this, "isBlank", !0);
12115
12115
  }
12116
12116
  }
12117
- const Ge = () => {
12117
+ const $e = () => {
12118
12118
  l.fireChangeListener(new ke());
12119
12119
  }, R = (k) => {
12120
12120
  if (k.key === "q" && k.ctrlKey) {
@@ -12126,20 +12126,20 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12126
12126
  return;
12127
12127
  }
12128
12128
  if (k.key === "e" && k.ctrlKey) {
12129
- Te();
12129
+ me();
12130
12130
  return;
12131
12131
  }
12132
12132
  }, F = () => {
12133
- pt.emit("cleanWorkspace");
12133
+ ut.emit("cleanWorkspace");
12134
12134
  }, se = () => {
12135
12135
  o.value = !o.value;
12136
- }, Te = () => {
12137
- pt.emit("blocklyNavigatorDlg");
12136
+ }, me = () => {
12137
+ ut.emit("blocklyNavigatorDlg");
12138
12138
  };
12139
12139
  return dn(() => {
12140
12140
  window.addEventListener("keydown", R, !1);
12141
- }), Oo(() => {
12142
- window.addEventListener("keydown", R, !1);
12141
+ }), ka(() => {
12142
+ window.removeEventListener("keydown", R, !1);
12143
12143
  }), Lt(
12144
12144
  () => e.locale,
12145
12145
  (k) => {
@@ -12156,54 +12156,49 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12156
12156
  _e();
12157
12157
  }), Lt(i, () => {
12158
12158
  q();
12159
- }), t({ loading: c, load: D, save: X, generateCode: ee, fireStateChange: Ge }), (k, J) => {
12160
- const ne = Re("v-icon"), ie = Re("v-slide-y-transition"), Le = Re("x-loading");
12161
- return Ne(), lt("div", hg, [
12162
- ct("div", {
12159
+ }), t({ loading: c, load: D, save: X, generateCode: ee, fireStateChange: $e }), (k, J) => {
12160
+ const ne = De("v-icon"), ie = De("x-loading");
12161
+ return Ne(), rt("div", hg, [
12162
+ lt("div", {
12163
12163
  id: "blocklyEditor",
12164
12164
  ref_key: "blocklyDiv",
12165
12165
  ref: a,
12166
12166
  class: "w-100 h-100"
12167
12167
  }, null, 512),
12168
- _.value ? (Ne(), lt("div", {
12168
+ _.value ? (Ne(), rt("div", {
12169
12169
  key: 0,
12170
12170
  class: "d-flex flex-column justify-center align-center",
12171
- style: ut(d.value)
12171
+ style: ct(d.value)
12172
12172
  }, [
12173
- fe(ne, {
12173
+ Oe(ne, {
12174
12174
  size: "x-large",
12175
12175
  icon: W(nc)
12176
12176
  }, null, 8, ["icon"])
12177
12177
  ], 4)) : $t("", !0),
12178
- fe(ie, null, {
12179
- default: st(() => [
12180
- c.value ? $t("", !0) : (Ne(), lt("div", {
12181
- key: 0,
12182
- class: "d-flex align-end ga-3 pt-3 pr-3",
12183
- style: ut(g.value)
12184
- }, [
12185
- fe(af, { lock: o.value }, null, 8, ["lock"]),
12186
- fe(rf, {
12187
- modelValue: o.value,
12188
- "onUpdate:modelValue": J[0] || (J[0] = (He) => o.value = He)
12189
- }, null, 8, ["modelValue"]),
12190
- fe(cg, {
12191
- type: h.value,
12192
- lock: o.value
12193
- }, null, 8, ["type", "lock"])
12194
- ], 4))
12195
- ]),
12196
- _: 1
12197
- }),
12198
- o.value ? (Ne(), lt("div", {
12178
+ c.value ? $t("", !0) : (Ne(), rt("div", {
12199
12179
  key: 1,
12200
- style: ut(I.value)
12201
- }, null, 4)) : $t("", !0),
12202
- o.value ? (Ne(), lt("div", {
12180
+ class: "d-flex align-end ga-3 pt-3 pr-3",
12181
+ style: ct(g.value)
12182
+ }, [
12183
+ Oe(af, { lock: o.value }, null, 8, ["lock"]),
12184
+ Oe(rf, {
12185
+ modelValue: o.value,
12186
+ "onUpdate:modelValue": J[0] || (J[0] = (Le) => o.value = Le)
12187
+ }, null, 8, ["modelValue"]),
12188
+ Oe(cg, {
12189
+ type: h.value,
12190
+ lock: o.value
12191
+ }, null, 8, ["type", "lock"])
12192
+ ], 4)),
12193
+ o.value ? (Ne(), rt("div", {
12203
12194
  key: 2,
12204
- style: ut(m.value)
12195
+ style: ct(I.value)
12205
12196
  }, null, 4)) : $t("", !0),
12206
- fe(Le, {
12197
+ o.value ? (Ne(), rt("div", {
12198
+ key: 3,
12199
+ style: ct(m.value)
12200
+ }, null, 4)) : $t("", !0),
12201
+ Oe(ie, {
12207
12202
  open: c.value,
12208
12203
  "z-index": 99
12209
12204
  }, null, 8, ["open"])
@@ -12211,9 +12206,9 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12211
12206
  };
12212
12207
  }
12213
12208
  });
12214
- var Di, ya;
12209
+ var Ri, ya;
12215
12210
  function gg() {
12216
- if (ya) return Di;
12211
+ if (ya) return Ri;
12217
12212
  ya = 1;
12218
12213
  function e(u) {
12219
12214
  return u instanceof Map ? u.clear = u.delete = u.set = function() {
@@ -12244,8 +12239,8 @@ function gg() {
12244
12239
  for (const Y in u)
12245
12240
  O[Y] = u[Y];
12246
12241
  return f.forEach(function(Y) {
12247
- for (const Ae in Y)
12248
- O[Ae] = Y[Ae];
12242
+ for (const Ee in Y)
12243
+ O[Ee] = Y[Ee];
12249
12244
  }), /** @type {T} */
12250
12245
  O;
12251
12246
  }
@@ -12256,7 +12251,7 @@ function gg() {
12256
12251
  const O = u.split(".");
12257
12252
  return [
12258
12253
  `${f}${O.shift()}`,
12259
- ...O.map((Y, Ae) => `${Y}${"_".repeat(Ae + 1)}`)
12254
+ ...O.map((Y, Ee) => `${Y}${"_".repeat(Ee + 1)}`)
12260
12255
  ].join(" ");
12261
12256
  }
12262
12257
  return `${f}${u}`;
@@ -12437,20 +12432,20 @@ function gg() {
12437
12432
  let O = 0;
12438
12433
  return u.map((Y) => {
12439
12434
  O += 1;
12440
- const Ae = O;
12441
- let ve = d(Y), N = "";
12442
- for (; ve.length > 0; ) {
12443
- const y = _e.exec(ve);
12435
+ const Ee = O;
12436
+ let Ae = d(Y), N = "";
12437
+ for (; Ae.length > 0; ) {
12438
+ const y = _e.exec(Ae);
12444
12439
  if (!y) {
12445
- N += ve;
12440
+ N += Ae;
12446
12441
  break;
12447
12442
  }
12448
- N += ve.substring(0, y.index), ve = ve.substring(y.index + y[0].length), y[0][0] === "\\" && y[1] ? N += "\\" + String(Number(y[1]) + Ae) : (N += y[0], y[0] === "(" && O++);
12443
+ N += Ae.substring(0, y.index), Ae = Ae.substring(y.index + y[0].length), y[0][0] === "\\" && y[1] ? N += "\\" + String(Number(y[1]) + Ee) : (N += y[0], y[0] === "(" && O++);
12449
12444
  }
12450
12445
  return N;
12451
12446
  }).map((Y) => `(${Y})`).join(f);
12452
12447
  }
12453
- const ke = /\b\B/, Ge = "[a-zA-Z]\\w*", R = "[a-zA-Z_]\\w*", F = "\\b\\d+(\\.\\d+)?", se = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Te = "\\b(0b[01]+)", k = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", J = (u = {}) => {
12448
+ const ke = /\b\B/, $e = "[a-zA-Z]\\w*", R = "[a-zA-Z_]\\w*", F = "\\b\\d+(\\.\\d+)?", se = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", me = "\\b(0b[01]+)", k = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", J = (u = {}) => {
12454
12449
  const f = /^#![ ]*\//;
12455
12450
  return u.binary && (u.begin = v(
12456
12451
  f,
@@ -12482,9 +12477,9 @@ function gg() {
12482
12477
  end: '"',
12483
12478
  illegal: "\\n",
12484
12479
  contains: [ne]
12485
- }, He = {
12480
+ }, We = {
12486
12481
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
12487
- }, Ee = function(u, f, O = {}) {
12482
+ }, Te = function(u, f, O = {}) {
12488
12483
  const Y = o(
12489
12484
  {
12490
12485
  scope: "comment",
@@ -12503,7 +12498,7 @@ function gg() {
12503
12498
  excludeBegin: !0,
12504
12499
  relevance: 0
12505
12500
  });
12506
- const Ae = D(
12501
+ const Ee = D(
12507
12502
  // list of common 1 and 2 letter words in English
12508
12503
  "I",
12509
12504
  "a",
@@ -12543,14 +12538,14 @@ function gg() {
12543
12538
  /[ ]+/,
12544
12539
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
12545
12540
  "(",
12546
- Ae,
12541
+ Ee,
12547
12542
  /[.]?[:]?([.][ ]|[ ])/,
12548
12543
  "){3}"
12549
12544
  )
12550
12545
  // look for 3 words in a row
12551
12546
  }
12552
12547
  ), Y;
12553
- }, Ze = Ee("//", "$"), mt = Ee("/\\*", "\\*/"), Jt = Ee("#", "$"), An = {
12548
+ }, Ze = Te("//", "$"), mt = Te("/\\*", "\\*/"), Jt = Te("#", "$"), An = {
12554
12549
  scope: "number",
12555
12550
  begin: F,
12556
12551
  relevance: 0
@@ -12558,11 +12553,11 @@ function gg() {
12558
12553
  scope: "number",
12559
12554
  begin: se,
12560
12555
  relevance: 0
12561
- }, Fr = {
12556
+ }, Yr = {
12562
12557
  scope: "number",
12563
- begin: Te,
12558
+ begin: me,
12564
12559
  relevance: 0
12565
- }, Yr = {
12560
+ }, Kr = {
12566
12561
  scope: "regexp",
12567
12562
  begin: /\/(?=[^/\n]*\/)/,
12568
12563
  end: /\/[gimuy]*/,
@@ -12575,15 +12570,15 @@ function gg() {
12575
12570
  contains: [ne]
12576
12571
  }
12577
12572
  ]
12578
- }, Kr = {
12573
+ }, Hr = {
12579
12574
  scope: "title",
12580
- begin: Ge,
12575
+ begin: $e,
12581
12576
  relevance: 0
12582
- }, Hr = {
12577
+ }, $r = {
12583
12578
  scope: "title",
12584
12579
  begin: R,
12585
12580
  relevance: 0
12586
- }, $r = {
12581
+ }, Gr = {
12587
12582
  // excludes method names from keyword processing
12588
12583
  begin: "\\.\\s*" + R,
12589
12584
  relevance: 0
@@ -12592,9 +12587,9 @@ function gg() {
12592
12587
  __proto__: null,
12593
12588
  APOS_STRING_MODE: ie,
12594
12589
  BACKSLASH_ESCAPE: ne,
12595
- BINARY_NUMBER_MODE: Fr,
12596
- BINARY_NUMBER_RE: Te,
12597
- COMMENT: Ee,
12590
+ BINARY_NUMBER_MODE: Yr,
12591
+ BINARY_NUMBER_RE: me,
12592
+ COMMENT: Te,
12598
12593
  C_BLOCK_COMMENT_MODE: mt,
12599
12594
  C_LINE_COMMENT_MODE: Ze,
12600
12595
  C_NUMBER_MODE: Xn,
@@ -12615,42 +12610,42 @@ function gg() {
12615
12610
  );
12616
12611
  },
12617
12612
  HASH_COMMENT_MODE: Jt,
12618
- IDENT_RE: Ge,
12613
+ IDENT_RE: $e,
12619
12614
  MATCH_NOTHING_RE: ke,
12620
- METHOD_GUARD: $r,
12615
+ METHOD_GUARD: Gr,
12621
12616
  NUMBER_MODE: An,
12622
12617
  NUMBER_RE: F,
12623
- PHRASAL_WORDS_MODE: He,
12618
+ PHRASAL_WORDS_MODE: We,
12624
12619
  QUOTE_STRING_MODE: Le,
12625
- REGEXP_MODE: Yr,
12620
+ REGEXP_MODE: Kr,
12626
12621
  RE_STARTERS_RE: k,
12627
12622
  SHEBANG: J,
12628
- TITLE_MODE: Kr,
12623
+ TITLE_MODE: Hr,
12629
12624
  UNDERSCORE_IDENT_RE: R,
12630
- UNDERSCORE_TITLE_MODE: Hr
12625
+ UNDERSCORE_TITLE_MODE: $r
12631
12626
  });
12632
- function Gr(u, f) {
12633
- u.input[u.index - 1] === "." && f.ignoreMatch();
12634
- }
12635
12627
  function jr(u, f) {
12636
- u.className !== void 0 && (u.scope = u.className, delete u.className);
12628
+ u.input[u.index - 1] === "." && f.ignoreMatch();
12637
12629
  }
12638
12630
  function Wr(u, f) {
12639
- f && u.beginKeywords && (u.begin = "\\b(" + u.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", u.__beforeBegin = Gr, u.keywords = u.keywords || u.beginKeywords, delete u.beginKeywords, u.relevance === void 0 && (u.relevance = 0));
12631
+ u.className !== void 0 && (u.scope = u.className, delete u.className);
12640
12632
  }
12641
12633
  function Xr(u, f) {
12642
- Array.isArray(u.illegal) && (u.illegal = D(...u.illegal));
12634
+ f && u.beginKeywords && (u.begin = "\\b(" + u.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", u.__beforeBegin = jr, u.keywords = u.keywords || u.beginKeywords, delete u.beginKeywords, u.relevance === void 0 && (u.relevance = 0));
12643
12635
  }
12644
12636
  function zr(u, f) {
12637
+ Array.isArray(u.illegal) && (u.illegal = D(...u.illegal));
12638
+ }
12639
+ function qr(u, f) {
12645
12640
  if (u.match) {
12646
12641
  if (u.begin || u.end) throw new Error("begin & end are not supported with match");
12647
12642
  u.begin = u.match, delete u.match;
12648
12643
  }
12649
12644
  }
12650
- function qr(u, f) {
12645
+ function Jr(u, f) {
12651
12646
  u.relevance === void 0 && (u.relevance = 1);
12652
12647
  }
12653
- const Jr = (u, f) => {
12648
+ const Qr = (u, f) => {
12654
12649
  if (!u.beforeMatch) return;
12655
12650
  if (u.starts) throw new Error("beforeMatch cannot be used with starts");
12656
12651
  const O = Object.assign({}, u);
@@ -12662,7 +12657,7 @@ function gg() {
12662
12657
  Object.assign(O, { endsParent: !0 })
12663
12658
  ]
12664
12659
  }, u.relevance = 0, delete O.beforeMatch;
12665
- }, Qr = [
12660
+ }, Zr = [
12666
12661
  "of",
12667
12662
  "and",
12668
12663
  "for",
@@ -12677,27 +12672,27 @@ function gg() {
12677
12672
  // common variable name
12678
12673
  "value"
12679
12674
  // common variable name
12680
- ], Zr = "keyword";
12681
- function _s(u, f, O = Zr) {
12675
+ ], el = "keyword";
12676
+ function _s(u, f, O = el) {
12682
12677
  const Y = /* @__PURE__ */ Object.create(null);
12683
- return typeof u == "string" ? Ae(O, u.split(" ")) : Array.isArray(u) ? Ae(O, u) : Object.keys(u).forEach(function(ve) {
12678
+ return typeof u == "string" ? Ee(O, u.split(" ")) : Array.isArray(u) ? Ee(O, u) : Object.keys(u).forEach(function(Ae) {
12684
12679
  Object.assign(
12685
12680
  Y,
12686
- _s(u[ve], f, ve)
12681
+ _s(u[Ae], f, Ae)
12687
12682
  );
12688
12683
  }), Y;
12689
- function Ae(ve, N) {
12684
+ function Ee(Ae, N) {
12690
12685
  f && (N = N.map((y) => y.toLowerCase())), N.forEach(function(y) {
12691
12686
  const x = y.split("|");
12692
- Y[x[0]] = [ve, el(x[0], x[1])];
12687
+ Y[x[0]] = [Ae, tl(x[0], x[1])];
12693
12688
  });
12694
12689
  }
12695
12690
  }
12696
- function el(u, f) {
12697
- return f ? Number(f) : tl(u) ? 0 : 1;
12691
+ function tl(u, f) {
12692
+ return f ? Number(f) : nl(u) ? 0 : 1;
12698
12693
  }
12699
- function tl(u) {
12700
- return Qr.includes(u.toLowerCase());
12694
+ function nl(u) {
12695
+ return Zr.includes(u.toLowerCase());
12701
12696
  }
12702
12697
  const ds = {}, Vt = (u) => {
12703
12698
  console.error(u);
@@ -12708,12 +12703,12 @@ function gg() {
12708
12703
  }, qn = new Error();
12709
12704
  function fs(u, f, { key: O }) {
12710
12705
  let Y = 0;
12711
- const Ae = u[O], ve = {}, N = {};
12706
+ const Ee = u[O], Ae = {}, N = {};
12712
12707
  for (let y = 1; y <= f.length; y++)
12713
- N[y + Y] = Ae[y], ve[y + Y] = !0, Y += X(f[y - 1]);
12714
- u[O] = N, u[O]._emit = ve, u[O]._multi = !0;
12708
+ N[y + Y] = Ee[y], Ae[y + Y] = !0, Y += X(f[y - 1]);
12709
+ u[O] = N, u[O]._emit = Ae, u[O]._multi = !0;
12715
12710
  }
12716
- function nl(u) {
12711
+ function ol(u) {
12717
12712
  if (Array.isArray(u.begin)) {
12718
12713
  if (u.skip || u.excludeBegin || u.returnBegin)
12719
12714
  throw Vt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), qn;
@@ -12722,7 +12717,7 @@ function gg() {
12722
12717
  fs(u, u.begin, { key: "beginScope" }), u.begin = q(u.begin, { joinWith: "" });
12723
12718
  }
12724
12719
  }
12725
- function ol(u) {
12720
+ function il(u) {
12726
12721
  if (Array.isArray(u.end)) {
12727
12722
  if (u.skip || u.excludeEnd || u.returnEnd)
12728
12723
  throw Vt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), qn;
@@ -12731,13 +12726,13 @@ function gg() {
12731
12726
  fs(u, u.end, { key: "endScope" }), u.end = q(u.end, { joinWith: "" });
12732
12727
  }
12733
12728
  }
12734
- function il(u) {
12735
- u.scope && typeof u.scope == "object" && u.scope !== null && (u.beginScope = u.scope, delete u.scope);
12736
- }
12737
12729
  function sl(u) {
12738
- il(u), typeof u.beginScope == "string" && (u.beginScope = { _wrap: u.beginScope }), typeof u.endScope == "string" && (u.endScope = { _wrap: u.endScope }), nl(u), ol(u);
12730
+ u.scope && typeof u.scope == "object" && u.scope !== null && (u.beginScope = u.scope, delete u.scope);
12739
12731
  }
12740
12732
  function al(u) {
12733
+ sl(u), typeof u.beginScope == "string" && (u.beginScope = { _wrap: u.beginScope }), typeof u.endScope == "string" && (u.endScope = { _wrap: u.endScope }), ol(u), il(u);
12734
+ }
12735
+ function rl(u) {
12741
12736
  function f(N, y) {
12742
12737
  return new RegExp(
12743
12738
  d(N),
@@ -12763,8 +12758,8 @@ function gg() {
12763
12758
  const x = this.matcherRe.exec(y);
12764
12759
  if (!x)
12765
12760
  return null;
12766
- const De = x.findIndex((vn, ii) => ii > 0 && vn !== void 0), Ie = this.matchIndexes[De];
12767
- return x.splice(0, De), Object.assign(x, Ie);
12761
+ const Re = x.findIndex((vn, oi) => oi > 0 && vn !== void 0), Ie = this.matchIndexes[Re];
12762
+ return x.splice(0, Re), Object.assign(x, Ie);
12768
12763
  }
12769
12764
  }
12770
12765
  class Y {
@@ -12775,7 +12770,7 @@ function gg() {
12775
12770
  getMatcher(y) {
12776
12771
  if (this.multiRegexes[y]) return this.multiRegexes[y];
12777
12772
  const x = new O();
12778
- return this.rules.slice(y).forEach(([De, Ie]) => x.addRule(De, Ie)), x.compile(), this.multiRegexes[y] = x, x;
12773
+ return this.rules.slice(y).forEach(([Re, Ie]) => x.addRule(Re, Ie)), x.compile(), this.multiRegexes[y] = x, x;
12779
12774
  }
12780
12775
  resumingScanAtSamePosition() {
12781
12776
  return this.regexIndex !== 0;
@@ -12791,56 +12786,56 @@ function gg() {
12791
12786
  exec(y) {
12792
12787
  const x = this.getMatcher(this.regexIndex);
12793
12788
  x.lastIndex = this.lastIndex;
12794
- let De = x.exec(y);
12795
- if (this.resumingScanAtSamePosition() && !(De && De.index === this.lastIndex)) {
12789
+ let Re = x.exec(y);
12790
+ if (this.resumingScanAtSamePosition() && !(Re && Re.index === this.lastIndex)) {
12796
12791
  const Ie = this.getMatcher(0);
12797
- Ie.lastIndex = this.lastIndex + 1, De = Ie.exec(y);
12792
+ Ie.lastIndex = this.lastIndex + 1, Re = Ie.exec(y);
12798
12793
  }
12799
- return De && (this.regexIndex += De.position + 1, this.regexIndex === this.count && this.considerAll()), De;
12794
+ return Re && (this.regexIndex += Re.position + 1, this.regexIndex === this.count && this.considerAll()), Re;
12800
12795
  }
12801
12796
  }
12802
- function Ae(N) {
12797
+ function Ee(N) {
12803
12798
  const y = new Y();
12804
12799
  return N.contains.forEach((x) => y.addRule(x.begin, { rule: x, type: "begin" })), N.terminatorEnd && y.addRule(N.terminatorEnd, { type: "end" }), N.illegal && y.addRule(N.illegal, { type: "illegal" }), y;
12805
12800
  }
12806
- function ve(N, y) {
12801
+ function Ae(N, y) {
12807
12802
  const x = (
12808
12803
  /** @type CompiledMode */
12809
12804
  N
12810
12805
  );
12811
12806
  if (N.isCompiled) return x;
12812
12807
  [
12813
- jr,
12808
+ Wr,
12814
12809
  // do this early so compiler extensions generally don't have to worry about
12815
12810
  // the distinction between match/begin
12816
- zr,
12817
- sl,
12818
- Jr
12811
+ qr,
12812
+ al,
12813
+ Qr
12819
12814
  ].forEach((Ie) => Ie(N, y)), u.compilerExtensions.forEach((Ie) => Ie(N, y)), N.__beforeBegin = null, [
12820
- Wr,
12815
+ Xr,
12821
12816
  // do this later so compiler extensions that come earlier have access to the
12822
12817
  // raw array if they wanted to perhaps manipulate it, etc.
12823
- Xr,
12818
+ zr,
12824
12819
  // default to 1 relevance if not specified
12825
- qr
12820
+ Jr
12826
12821
  ].forEach((Ie) => Ie(N, y)), N.isCompiled = !0;
12827
- let De = null;
12828
- return typeof N.keywords == "object" && N.keywords.$pattern && (N.keywords = Object.assign({}, N.keywords), De = N.keywords.$pattern, delete N.keywords.$pattern), De = De || /\w+/, N.keywords && (N.keywords = _s(N.keywords, u.case_insensitive)), x.keywordPatternRe = f(De, !0), y && (N.begin || (N.begin = /\B|\b/), x.beginRe = f(x.begin), !N.end && !N.endsWithParent && (N.end = /\B|\b/), N.end && (x.endRe = f(x.end)), x.terminatorEnd = d(x.end) || "", N.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (N.end ? "|" : "") + y.terminatorEnd)), N.illegal && (x.illegalRe = f(
12822
+ let Re = null;
12823
+ return typeof N.keywords == "object" && N.keywords.$pattern && (N.keywords = Object.assign({}, N.keywords), Re = N.keywords.$pattern, delete N.keywords.$pattern), Re = Re || /\w+/, N.keywords && (N.keywords = _s(N.keywords, u.case_insensitive)), x.keywordPatternRe = f(Re, !0), y && (N.begin || (N.begin = /\B|\b/), x.beginRe = f(x.begin), !N.end && !N.endsWithParent && (N.end = /\B|\b/), N.end && (x.endRe = f(x.end)), x.terminatorEnd = d(x.end) || "", N.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (N.end ? "|" : "") + y.terminatorEnd)), N.illegal && (x.illegalRe = f(
12829
12824
  /** @type {RegExp | string} */
12830
12825
  N.illegal
12831
12826
  )), N.contains || (N.contains = []), N.contains = [].concat(...N.contains.map(function(Ie) {
12832
- return rl(Ie === "self" ? N : Ie);
12827
+ return ll(Ie === "self" ? N : Ie);
12833
12828
  })), N.contains.forEach(function(Ie) {
12834
- ve(
12829
+ Ae(
12835
12830
  /** @type Mode */
12836
12831
  Ie,
12837
12832
  x
12838
12833
  );
12839
- }), N.starts && ve(N.starts, y), x.matcher = Ae(x), x;
12834
+ }), N.starts && Ae(N.starts, y), x.matcher = Ee(x), x;
12840
12835
  }
12841
12836
  if (u.compilerExtensions || (u.compilerExtensions = []), u.contains && u.contains.includes("self"))
12842
12837
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
12843
- return u.classNameAliases = o(u.classNameAliases || {}), ve(
12838
+ return u.classNameAliases = o(u.classNameAliases || {}), Ae(
12844
12839
  /** @type Mode */
12845
12840
  u
12846
12841
  );
@@ -12848,21 +12843,21 @@ function gg() {
12848
12843
  function gs(u) {
12849
12844
  return u ? u.endsWithParent || gs(u.starts) : !1;
12850
12845
  }
12851
- function rl(u) {
12846
+ function ll(u) {
12852
12847
  return u.variants && !u.cachedVariants && (u.cachedVariants = u.variants.map(function(f) {
12853
12848
  return o(u, { variants: null }, f);
12854
12849
  })), u.cachedVariants ? u.cachedVariants : gs(u) ? o(u, { starts: u.starts ? o(u.starts) : null }) : Object.isFrozen(u) ? o(u) : u;
12855
12850
  }
12856
- var ll = "11.11.1";
12857
- class cl extends Error {
12851
+ var cl = "11.11.1";
12852
+ class ul extends Error {
12858
12853
  constructor(f, O) {
12859
12854
  super(f), this.name = "HTMLInjectionError", this.html = O;
12860
12855
  }
12861
12856
  }
12862
- const oi = n, ms = o, Ts = Symbol("nomatch"), ul = 7, Es = function(u) {
12857
+ const ni = n, ms = o, Ts = Symbol("nomatch"), pl = 7, Es = function(u) {
12863
12858
  const f = /* @__PURE__ */ Object.create(null), O = /* @__PURE__ */ Object.create(null), Y = [];
12864
- let Ae = !0;
12865
- const ve = "Could not find the language '{}', did you forget to load/include a language module?", N = { disableAutodetect: !0, name: "Plain text", contains: [] };
12859
+ let Ee = !0;
12860
+ const Ae = "Could not find the language '{}', did you forget to load/include a language module?", N = { disableAutodetect: !0, name: "Plain text", contains: [] };
12866
12861
  let y = {
12867
12862
  ignoreUnescapedHTML: !1,
12868
12863
  throwUnescapedHTML: !1,
@@ -12878,13 +12873,13 @@ function gg() {
12878
12873
  function x(E) {
12879
12874
  return y.noHighlightRe.test(E);
12880
12875
  }
12881
- function De(E) {
12876
+ function Re(E) {
12882
12877
  let B = E.className + " ";
12883
12878
  B += E.parentNode ? E.parentNode.className : "";
12884
12879
  const z = y.languageDetectRe.exec(B);
12885
12880
  if (z) {
12886
12881
  const ae = Ct(z[1]);
12887
- return ae || (hs(ve.replace("{}", z[1])), hs("Falling back to no-highlight mode for this block.", E)), ae ? z[1] : "no-highlight";
12882
+ return ae || (hs(Ae.replace("{}", z[1])), hs("Falling back to no-highlight mode for this block.", E)), ae ? z[1] : "no-highlight";
12888
12883
  }
12889
12884
  return B.split(/\s+/).find((ae) => x(ae) || Ct(ae));
12890
12885
  }
@@ -12915,14 +12910,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12915
12910
  let S = H.keywordPatternRe.exec(re), j = "";
12916
12911
  for (; S; ) {
12917
12912
  j += re.substring(b, S.index);
12918
- const oe = rt.case_insensitive ? S[0].toLowerCase() : S[0], we = et(H, oe);
12913
+ const oe = at.case_insensitive ? S[0].toLowerCase() : S[0], we = et(H, oe);
12919
12914
  if (we) {
12920
- const [Tt, Nl] = we;
12921
- if (Me.addText(j), j = "", Se[oe] = (Se[oe] || 0) + 1, Se[oe] <= ul && (to += Nl), Tt.startsWith("_"))
12915
+ const [Tt, kl] = we;
12916
+ if (Me.addText(j), j = "", Se[oe] = (Se[oe] || 0) + 1, Se[oe] <= pl && (to += kl), Tt.startsWith("_"))
12922
12917
  j += S[0];
12923
12918
  else {
12924
- const kl = rt.classNameAliases[Tt] || Tt;
12925
- at(S[0], kl);
12919
+ const Ll = at.classNameAliases[Tt] || Tt;
12920
+ st(S[0], Ll);
12926
12921
  }
12927
12922
  } else
12928
12923
  j += S[0];
@@ -12941,13 +12936,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12941
12936
  b = vn(H.subLanguage, re, !0, Ns[H.subLanguage]), Ns[H.subLanguage] = /** @type {CompiledMode} */
12942
12937
  b._top;
12943
12938
  } else
12944
- b = si(re, H.subLanguage.length ? H.subLanguage : null);
12939
+ b = ii(re, H.subLanguage.length ? H.subLanguage : null);
12945
12940
  H.relevance > 0 && (to += b.relevance), Me.__addSublanguage(b._emitter, b.language);
12946
12941
  }
12947
12942
  function Xe() {
12948
12943
  H.subLanguage != null ? Zn() : Nt(), re = "";
12949
12944
  }
12950
- function at(b, S) {
12945
+ function st(b, S) {
12951
12946
  b !== "" && (Me.startScope(S), Me.addText(b), Me.endScope());
12952
12947
  }
12953
12948
  function bs(b, S) {
@@ -12958,12 +12953,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12958
12953
  j++;
12959
12954
  continue;
12960
12955
  }
12961
- const we = rt.classNameAliases[b[j]] || b[j], Tt = S[j];
12962
- we ? at(Tt, we) : (re = Tt, Nt(), re = ""), j++;
12956
+ const we = at.classNameAliases[b[j]] || b[j], Tt = S[j];
12957
+ we ? st(Tt, we) : (re = Tt, Nt(), re = ""), j++;
12963
12958
  }
12964
12959
  }
12965
12960
  function Is(b, S) {
12966
- return b.scope && typeof b.scope == "string" && Me.openNode(rt.classNameAliases[b.scope] || b.scope), b.beginScope && (b.beginScope._wrap ? (at(re, rt.classNameAliases[b.beginScope._wrap] || b.beginScope._wrap), re = "") : b.beginScope._multi && (bs(b.beginScope, S), re = "")), H = Object.create(b, { parent: { value: H } }), H;
12961
+ return b.scope && typeof b.scope == "string" && Me.openNode(at.classNameAliases[b.scope] || b.scope), b.beginScope && (b.beginScope._wrap ? (st(re, at.classNameAliases[b.beginScope._wrap] || b.beginScope._wrap), re = "") : b.beginScope._multi && (bs(b.beginScope, S), re = "")), H = Object.create(b, { parent: { value: H } }), H;
12967
12962
  }
12968
12963
  function ys(b, S, j) {
12969
12964
  let oe = ee(b.endRe, j);
@@ -12981,30 +12976,30 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12981
12976
  if (b.endsWithParent)
12982
12977
  return ys(b.parent, S, j);
12983
12978
  }
12984
- function Ol(b) {
12985
- return H.matcher.regexIndex === 0 ? (re += b[0], 1) : (ci = !0, 0);
12986
- }
12987
12979
  function bl(b) {
12980
+ return H.matcher.regexIndex === 0 ? (re += b[0], 1) : (li = !0, 0);
12981
+ }
12982
+ function Il(b) {
12988
12983
  const S = b[0], j = b.rule, oe = new t(j), we = [j.__beforeBegin, j["on:begin"]];
12989
12984
  for (const Tt of we)
12990
12985
  if (Tt && (Tt(b, oe), oe.isMatchIgnored))
12991
- return Ol(S);
12986
+ return bl(S);
12992
12987
  return j.skip ? re += S : (j.excludeBegin && (re += S), Xe(), !j.returnBegin && !j.excludeBegin && (re = S)), Is(j, b), j.returnBegin ? 0 : S.length;
12993
12988
  }
12994
- function Il(b) {
12989
+ function yl(b) {
12995
12990
  const S = b[0], j = B.substring(b.index), oe = ys(H, b, j);
12996
12991
  if (!oe)
12997
12992
  return Ts;
12998
12993
  const we = H;
12999
- H.endScope && H.endScope._wrap ? (Xe(), at(S, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (Xe(), bs(H.endScope, b)) : we.skip ? re += S : (we.returnEnd || we.excludeEnd || (re += S), Xe(), we.excludeEnd && (re = S));
12994
+ H.endScope && H.endScope._wrap ? (Xe(), st(S, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (Xe(), bs(H.endScope, b)) : we.skip ? re += S : (we.returnEnd || we.excludeEnd || (re += S), Xe(), we.excludeEnd && (re = S));
13000
12995
  do
13001
12996
  H.scope && Me.closeNode(), !H.skip && !H.subLanguage && (to += H.relevance), H = H.parent;
13002
12997
  while (H !== oe.parent);
13003
12998
  return oe.starts && Is(oe.starts, b), we.returnEnd ? 0 : S.length;
13004
12999
  }
13005
- function yl() {
13000
+ function Cl() {
13006
13001
  const b = [];
13007
- for (let S = H; S !== rt; S = S.parent)
13002
+ for (let S = H; S !== at; S = S.parent)
13008
13003
  S.scope && b.unshift(S.scope);
13009
13004
  b.forEach((S) => Me.openNode(S));
13010
13005
  }
@@ -13014,43 +13009,43 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13014
13009
  if (re += b, j == null)
13015
13010
  return Xe(), 0;
13016
13011
  if (eo.type === "begin" && S.type === "end" && eo.index === S.index && j === "") {
13017
- if (re += B.slice(S.index, S.index + 1), !Ae) {
13012
+ if (re += B.slice(S.index, S.index + 1), !Ee) {
13018
13013
  const oe = new Error(`0 width match regex (${E})`);
13019
13014
  throw oe.languageName = E, oe.badRule = eo.rule, oe;
13020
13015
  }
13021
13016
  return 1;
13022
13017
  }
13023
13018
  if (eo = S, S.type === "begin")
13024
- return bl(S);
13019
+ return Il(S);
13025
13020
  if (S.type === "illegal" && !z) {
13026
13021
  const oe = new Error('Illegal lexeme "' + j + '" for mode "' + (H.scope || "<unnamed>") + '"');
13027
13022
  throw oe.mode = H, oe;
13028
13023
  } else if (S.type === "end") {
13029
- const oe = Il(S);
13024
+ const oe = yl(S);
13030
13025
  if (oe !== Ts)
13031
13026
  return oe;
13032
13027
  }
13033
13028
  if (S.type === "illegal" && j === "")
13034
13029
  return re += `
13035
13030
  `, 1;
13036
- if (li > 1e5 && li > S.index * 3)
13031
+ if (ri > 1e5 && ri > S.index * 3)
13037
13032
  throw new Error("potential infinite loop, way more iterations than matches");
13038
13033
  return re += j, j.length;
13039
13034
  }
13040
- const rt = Ct(E);
13041
- if (!rt)
13042
- throw Vt(ve.replace("{}", E)), new Error('Unknown language: "' + E + '"');
13043
- const Cl = al(rt);
13044
- let ri = "", H = ae || Cl;
13035
+ const at = Ct(E);
13036
+ if (!at)
13037
+ throw Vt(Ae.replace("{}", E)), new Error('Unknown language: "' + E + '"');
13038
+ const Nl = rl(at);
13039
+ let ai = "", H = ae || Nl;
13045
13040
  const Ns = {}, Me = new y.__emitter(y);
13046
- yl();
13047
- let re = "", to = 0, Ft = 0, li = 0, ci = !1;
13041
+ Cl();
13042
+ let re = "", to = 0, Ft = 0, ri = 0, li = !1;
13048
13043
  try {
13049
- if (rt.__emitTokens)
13050
- rt.__emitTokens(B, Me);
13044
+ if (at.__emitTokens)
13045
+ at.__emitTokens(B, Me);
13051
13046
  else {
13052
13047
  for (H.matcher.considerAll(); ; ) {
13053
- li++, ci ? ci = !1 : H.matcher.considerAll(), H.matcher.lastIndex = Ft;
13048
+ ri++, li ? li = !1 : H.matcher.considerAll(), H.matcher.lastIndex = Ft;
13054
13049
  const b = H.matcher.exec(B);
13055
13050
  if (!b) break;
13056
13051
  const S = B.substring(Ft, b.index), j = Cs(S, b);
@@ -13058,9 +13053,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13058
13053
  }
13059
13054
  Cs(B.substring(Ft));
13060
13055
  }
13061
- return Me.finalize(), ri = Me.toHTML(), {
13056
+ return Me.finalize(), ai = Me.toHTML(), {
13062
13057
  language: E,
13063
- value: ri,
13058
+ value: ai,
13064
13059
  relevance: to,
13065
13060
  illegal: !1,
13066
13061
  _emitter: Me,
@@ -13070,7 +13065,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13070
13065
  if (b.message && b.message.includes("Illegal"))
13071
13066
  return {
13072
13067
  language: E,
13073
- value: oi(B),
13068
+ value: ni(B),
13074
13069
  illegal: !0,
13075
13070
  relevance: 0,
13076
13071
  _illegalBy: {
@@ -13078,14 +13073,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13078
13073
  index: Ft,
13079
13074
  context: B.slice(Ft - 100, Ft + 100),
13080
13075
  mode: b.mode,
13081
- resultSoFar: ri
13076
+ resultSoFar: ai
13082
13077
  },
13083
13078
  _emitter: Me
13084
13079
  };
13085
- if (Ae)
13080
+ if (Ee)
13086
13081
  return {
13087
13082
  language: E,
13088
- value: oi(B),
13083
+ value: ni(B),
13089
13084
  illegal: !1,
13090
13085
  relevance: 0,
13091
13086
  errorRaised: b,
@@ -13095,9 +13090,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13095
13090
  throw b;
13096
13091
  }
13097
13092
  }
13098
- function ii(E) {
13093
+ function oi(E) {
13099
13094
  const B = {
13100
- value: oi(E),
13095
+ value: ni(E),
13101
13096
  illegal: !1,
13102
13097
  relevance: 0,
13103
13098
  _top: N,
@@ -13105,31 +13100,31 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13105
13100
  };
13106
13101
  return B._emitter.addText(E), B;
13107
13102
  }
13108
- function si(E, B) {
13103
+ function ii(E, B) {
13109
13104
  B = B || y.languages || Object.keys(f);
13110
- const z = ii(E), ae = B.filter(Ct).filter(Os).map(
13105
+ const z = oi(E), ae = B.filter(Ct).filter(Os).map(
13111
13106
  (Xe) => vn(Xe, E, !1)
13112
13107
  );
13113
13108
  ae.unshift(z);
13114
- const Se = ae.sort((Xe, at) => {
13115
- if (Xe.relevance !== at.relevance) return at.relevance - Xe.relevance;
13116
- if (Xe.language && at.language) {
13117
- if (Ct(Xe.language).supersetOf === at.language)
13109
+ const Se = ae.sort((Xe, st) => {
13110
+ if (Xe.relevance !== st.relevance) return st.relevance - Xe.relevance;
13111
+ if (Xe.language && st.language) {
13112
+ if (Ct(Xe.language).supersetOf === st.language)
13118
13113
  return 1;
13119
- if (Ct(at.language).supersetOf === Xe.language)
13114
+ if (Ct(st.language).supersetOf === Xe.language)
13120
13115
  return -1;
13121
13116
  }
13122
13117
  return 0;
13123
13118
  }), [et, Nt] = Se, Zn = et;
13124
13119
  return Zn.secondBest = Nt, Zn;
13125
13120
  }
13126
- function pl(E, B, z) {
13121
+ function _l(E, B, z) {
13127
13122
  const ae = B && O[B] || z;
13128
13123
  E.classList.add("hljs"), E.classList.add(`language-${ae}`);
13129
13124
  }
13130
- function ai(E) {
13125
+ function si(E) {
13131
13126
  let B = null;
13132
- const z = De(E);
13127
+ const z = Re(E);
13133
13128
  if (x(z)) return;
13134
13129
  if (Qn(
13135
13130
  "before:highlightElement",
@@ -13139,13 +13134,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13139
13134
  return;
13140
13135
  }
13141
13136
  if (E.children.length > 0 && (y.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(E)), y.throwUnescapedHTML))
13142
- throw new cl(
13137
+ throw new ul(
13143
13138
  "One of your code blocks includes unescaped HTML.",
13144
13139
  E.innerHTML
13145
13140
  );
13146
13141
  B = E;
13147
- const ae = B.textContent, Se = z ? Ie(ae, { language: z, ignoreIllegals: !0 }) : si(ae);
13148
- E.innerHTML = Se.value, E.dataset.highlighted = "yes", pl(E, z, Se.language), E.result = {
13142
+ const ae = B.textContent, Se = z ? Ie(ae, { language: z, ignoreIllegals: !0 }) : ii(ae);
13143
+ E.innerHTML = Se.value, E.dataset.highlighted = "yes", _l(E, z, Se.language), E.result = {
13149
13144
  language: Se.language,
13150
13145
  // TODO: remove with version 11.0
13151
13146
  re: Se.relevance,
@@ -13155,13 +13150,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13155
13150
  relevance: Se.secondBest.relevance
13156
13151
  }), Qn("after:highlightElement", { el: E, result: Se, text: ae });
13157
13152
  }
13158
- function _l(E) {
13153
+ function dl(E) {
13159
13154
  y = ms(y, E);
13160
13155
  }
13161
- const dl = () => {
13156
+ const hl = () => {
13162
13157
  Jn(), Qt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
13163
13158
  };
13164
- function hl() {
13159
+ function fl() {
13165
13160
  Jn(), Qt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
13166
13161
  }
13167
13162
  let As = !1;
@@ -13173,14 +13168,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13173
13168
  As || window.addEventListener("DOMContentLoaded", E, !1), As = !0;
13174
13169
  return;
13175
13170
  }
13176
- document.querySelectorAll(y.cssSelector).forEach(ai);
13171
+ document.querySelectorAll(y.cssSelector).forEach(si);
13177
13172
  }
13178
- function fl(E, B) {
13173
+ function gl(E, B) {
13179
13174
  let z = null;
13180
13175
  try {
13181
13176
  z = B(u);
13182
13177
  } catch (ae) {
13183
- if (Vt("Language definition for '{}' could not be registered.".replace("{}", E)), Ae)
13178
+ if (Vt("Language definition for '{}' could not be registered.".replace("{}", E)), Ee)
13184
13179
  Vt(ae);
13185
13180
  else
13186
13181
  throw ae;
@@ -13188,12 +13183,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13188
13183
  }
13189
13184
  z.name || (z.name = E), f[E] = z, z.rawDefinition = B.bind(null, u), z.aliases && vs(z.aliases, { languageName: E });
13190
13185
  }
13191
- function gl(E) {
13186
+ function ml(E) {
13192
13187
  delete f[E];
13193
13188
  for (const B of Object.keys(O))
13194
13189
  O[B] === E && delete O[B];
13195
13190
  }
13196
- function ml() {
13191
+ function Tl() {
13197
13192
  return Object.keys(f);
13198
13193
  }
13199
13194
  function Ct(E) {
@@ -13208,7 +13203,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13208
13203
  const B = Ct(E);
13209
13204
  return B && !B.disableAutodetect;
13210
13205
  }
13211
- function Tl(E) {
13206
+ function El(E) {
13212
13207
  E["before:highlightBlock"] && !E["before:highlightElement"] && (E["before:highlightElement"] = (B) => {
13213
13208
  E["before:highlightBlock"](
13214
13209
  Object.assign({ block: B.el }, B)
@@ -13219,10 +13214,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13219
13214
  );
13220
13215
  });
13221
13216
  }
13222
- function El(E) {
13223
- Tl(E), Y.push(E);
13224
- }
13225
13217
  function Al(E) {
13218
+ El(E), Y.push(E);
13219
+ }
13220
+ function vl(E) {
13226
13221
  const B = Y.indexOf(E);
13227
13222
  B !== -1 && Y.splice(B, 1);
13228
13223
  }
@@ -13232,33 +13227,33 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13232
13227
  ae[z] && ae[z](B);
13233
13228
  });
13234
13229
  }
13235
- function vl(E) {
13236
- return Qt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Qt("10.7.0", "Please use highlightElement now."), ai(E);
13230
+ function Ol(E) {
13231
+ return Qt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Qt("10.7.0", "Please use highlightElement now."), si(E);
13237
13232
  }
13238
13233
  Object.assign(u, {
13239
13234
  highlight: Ie,
13240
- highlightAuto: si,
13235
+ highlightAuto: ii,
13241
13236
  highlightAll: Jn,
13242
- highlightElement: ai,
13237
+ highlightElement: si,
13243
13238
  // TODO: Remove with v12 API
13244
- highlightBlock: vl,
13245
- configure: _l,
13246
- initHighlighting: dl,
13247
- initHighlightingOnLoad: hl,
13248
- registerLanguage: fl,
13249
- unregisterLanguage: gl,
13250
- listLanguages: ml,
13239
+ highlightBlock: Ol,
13240
+ configure: dl,
13241
+ initHighlighting: hl,
13242
+ initHighlightingOnLoad: fl,
13243
+ registerLanguage: gl,
13244
+ unregisterLanguage: ml,
13245
+ listLanguages: Tl,
13251
13246
  getLanguage: Ct,
13252
13247
  registerAliases: vs,
13253
13248
  autoDetection: Os,
13254
13249
  inherit: ms,
13255
- addPlugin: El,
13256
- removePlugin: Al
13250
+ addPlugin: Al,
13251
+ removePlugin: vl
13257
13252
  }), u.debugMode = function() {
13258
- Ae = !1;
13253
+ Ee = !1;
13259
13254
  }, u.safeMode = function() {
13260
- Ae = !0;
13261
- }, u.versionString = ll, u.regex = {
13255
+ Ee = !0;
13256
+ }, u.versionString = cl, u.regex = {
13262
13257
  concat: v,
13263
13258
  lookahead: g,
13264
13259
  either: D,
@@ -13269,7 +13264,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13269
13264
  typeof zn[E] == "object" && e(zn[E]);
13270
13265
  return Object.assign(u, zn), u;
13271
13266
  }, Zt = Es({});
13272
- return Zt.newInstance = () => Es({}), Di = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Di;
13267
+ return Zt.newInstance = () => Es({}), Ri = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Ri;
13273
13268
  }
13274
13269
  var mg = /* @__PURE__ */ gg();
13275
13270
  const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
@@ -13324,7 +13319,7 @@ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
13324
13319
  "undefined",
13325
13320
  "NaN",
13326
13321
  "Infinity"
13327
- ], xr = [
13322
+ ], wr = [
13328
13323
  // Fundamental objects
13329
13324
  "Object",
13330
13325
  "Function",
@@ -13374,7 +13369,7 @@ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
13374
13369
  "Intl",
13375
13370
  // WebAssembly
13376
13371
  "WebAssembly"
13377
- ], wr = [
13372
+ ], Vr = [
13378
13373
  "Error",
13379
13374
  "EvalError",
13380
13375
  "InternalError",
@@ -13383,7 +13378,7 @@ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
13383
13378
  "SyntaxError",
13384
13379
  "TypeError",
13385
13380
  "URIError"
13386
- ], Vr = [
13381
+ ], Fr = [
13387
13382
  "setInterval",
13388
13383
  "setTimeout",
13389
13384
  "clearInterval",
@@ -13414,14 +13409,14 @@ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
13414
13409
  "global"
13415
13410
  // Node.js
13416
13411
  ], vg = [].concat(
13417
- Vr,
13418
- xr,
13419
- wr
13412
+ Fr,
13413
+ wr,
13414
+ Vr
13420
13415
  );
13421
13416
  function Og(e) {
13422
- const t = e.regex, n = (Ee, { after: Ze }) => {
13423
- const mt = "</" + Ee[0].slice(1);
13424
- return Ee.input.indexOf(mt, Ze) !== -1;
13417
+ const t = e.regex, n = (Te, { after: Ze }) => {
13418
+ const mt = "</" + Te[0].slice(1);
13419
+ return Te.input.indexOf(mt, Ze) !== -1;
13425
13420
  }, o = Ca, i = {
13426
13421
  begin: "<>",
13427
13422
  end: "</>"
@@ -13432,8 +13427,8 @@ function Og(e) {
13432
13427
  * @param {RegExpMatchArray} match
13433
13428
  * @param {CallbackResponse} response
13434
13429
  */
13435
- isTrulyOpeningTag: (Ee, Ze) => {
13436
- const mt = Ee[0].length + Ee.index, Jt = Ee.input[mt];
13430
+ isTrulyOpeningTag: (Te, Ze) => {
13431
+ const mt = Te[0].length + Te.index, Jt = Te.input[mt];
13437
13432
  if (
13438
13433
  // HTML should not include another raw `<` inside a tag
13439
13434
  // nested type?
@@ -13445,9 +13440,9 @@ function Og(e) {
13445
13440
  Ze.ignoreMatch();
13446
13441
  return;
13447
13442
  }
13448
- Jt === ">" && (n(Ee, { after: mt }) || Ze.ignoreMatch());
13443
+ Jt === ">" && (n(Te, { after: mt }) || Ze.ignoreMatch());
13449
13444
  let An;
13450
- const Xn = Ee.input.substring(mt);
13445
+ const Xn = Te.input.substring(mt);
13451
13446
  if (An = Xn.match(/^\s*=/)) {
13452
13447
  Ze.ignoreMatch();
13453
13448
  return;
@@ -13618,7 +13613,7 @@ function Og(e) {
13618
13613
  excludeEnd: !0,
13619
13614
  keywords: l,
13620
13615
  contains: q
13621
- }, Ge = {
13616
+ }, $e = {
13622
13617
  variants: [
13623
13618
  // class Car extends vehicle
13624
13619
  {
@@ -13671,8 +13666,8 @@ function Og(e) {
13671
13666
  keywords: {
13672
13667
  _: [
13673
13668
  // se we still get relevance credit for JS library classes
13674
- ...xr,
13675
- ...wr
13669
+ ...wr,
13670
+ ...Vr
13676
13671
  ]
13677
13672
  }
13678
13673
  }, F = {
@@ -13705,22 +13700,22 @@ function Og(e) {
13705
13700
  label: "func.def",
13706
13701
  contains: [ke],
13707
13702
  illegal: /%/
13708
- }, Te = {
13703
+ }, me = {
13709
13704
  relevance: 0,
13710
13705
  match: /\b[A-Z][A-Z_0-9]+\b/,
13711
13706
  className: "variable.constant"
13712
13707
  };
13713
- function k(Ee) {
13714
- return t.concat("(?!", Ee.join("|"), ")");
13708
+ function k(Te) {
13709
+ return t.concat("(?!", Te.join("|"), ")");
13715
13710
  }
13716
13711
  const J = {
13717
13712
  match: t.concat(
13718
13713
  /\b/,
13719
13714
  k([
13720
- ...Vr,
13715
+ ...Fr,
13721
13716
  "super",
13722
13717
  "import"
13723
- ].map((Ee) => `${Ee}\\s*\\(`)),
13718
+ ].map((Te) => `${Te}\\s*\\(`)),
13724
13719
  o,
13725
13720
  t.lookahead(/\s*\(/)
13726
13721
  ),
@@ -13753,7 +13748,7 @@ function Og(e) {
13753
13748
  },
13754
13749
  ke
13755
13750
  ]
13756
- }, Le = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", He = {
13751
+ }, Le = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", We = {
13757
13752
  match: [
13758
13753
  /const|var|let/,
13759
13754
  /\s+/,
@@ -13803,7 +13798,7 @@ function Og(e) {
13803
13798
  match: o + t.lookahead(":"),
13804
13799
  relevance: 0
13805
13800
  },
13806
- He,
13801
+ We,
13807
13802
  {
13808
13803
  // "value" container
13809
13804
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
@@ -13917,8 +13912,8 @@ function Og(e) {
13917
13912
  contains: [ke]
13918
13913
  },
13919
13914
  J,
13920
- Te,
13921
- Ge,
13915
+ me,
13916
+ $e,
13922
13917
  ie,
13923
13918
  {
13924
13919
  match: /\$[(.]/
@@ -13951,7 +13946,7 @@ var bg = ft({ props: { code: { type: String, required: !0 }, language: { type: S
13951
13946
  return (s = vo.highlight(e.code, { language: t.value, ignoreIllegals: e.ignoreIllegals })).value;
13952
13947
  }) };
13953
13948
  }, render: function() {
13954
- return Pi("pre", {}, [Pi("code", { class: this.className, innerHTML: this.highlightedCode })]);
13949
+ return Mi("pre", {}, [Mi("code", { class: this.className, innerHTML: this.highlightedCode })]);
13955
13950
  } }), Ig = { component: bg };
13956
13951
  const yg = /* @__PURE__ */ ft({
13957
13952
  __name: "index",
@@ -13961,16 +13956,16 @@ const yg = /* @__PURE__ */ ft({
13961
13956
  setup(e) {
13962
13957
  const t = e;
13963
13958
  vo.registerLanguage("javascript", Og);
13964
- const n = Ig.component, { backgroundColor2: o } = Yo();
13959
+ const n = Ig.component, { backgroundColor2: o } = Fo();
13965
13960
  return (i, s) => {
13966
- const a = Re("v-sheet");
13967
- return Ne(), _t(a, {
13961
+ const a = De("v-sheet");
13962
+ return Ne(), pt(a, {
13968
13963
  color: W(o),
13969
13964
  width: "100%",
13970
13965
  height: "100%"
13971
13966
  }, {
13972
- default: st(() => [
13973
- fe(W(n), {
13967
+ default: _t(() => [
13968
+ Oe(W(n), {
13974
13969
  language: "js",
13975
13970
  code: t.code
13976
13971
  }, null, 8, ["code"])
@@ -13982,7 +13977,7 @@ const yg = /* @__PURE__ */ ft({
13982
13977
  }), Cg = { class: "text-subtitle-1 ml-3" }, Ng = /* @__PURE__ */ ft({
13983
13978
  __name: "index",
13984
13979
  setup(e) {
13985
- const { t } = Kn(), { sysBarAvail: n } = Ma(), { backgroundColor0: o, backgroundColor2: i } = Yo(), s = Mt(""), a = Be(() => {
13980
+ const { t } = Kn(), { sysBarAvail: n } = Pa(), { backgroundColor0: o, backgroundColor2: i } = Fo(), s = Mt(""), a = Be(() => {
13986
13981
  let _ = 48;
13987
13982
  return n.value && (_ += 24), {
13988
13983
  position: "relative",
@@ -13991,49 +13986,49 @@ const yg = /* @__PURE__ */ ft({
13991
13986
  };
13992
13987
  }), l = (_) => {
13993
13988
  s.value = _.code;
13994
- }, { open: c } = Ko("sourceDlg", l);
13989
+ }, { open: c } = Yo("sourceDlg", l);
13995
13990
  return (_, h) => {
13996
- const d = Re("v-sheet"), g = Re("v-icon"), m = Re("v-spacer"), I = Re("v-dialog");
13997
- return Ne(), _t(I, {
13991
+ const d = De("v-sheet"), g = De("v-icon"), m = De("v-spacer"), I = De("v-dialog");
13992
+ return Ne(), pt(I, {
13998
13993
  modelValue: W(c),
13999
13994
  "onUpdate:modelValue": h[1] || (h[1] = (v) => kn(c) ? c.value = v : null),
14000
13995
  transition: "dialog-bottom-transition",
14001
13996
  persistent: "",
14002
13997
  "no-click-animation": "",
14003
13998
  fullscreen: "",
14004
- onKeydown: h[2] || (h[2] = La(Ln((v) => c.value = !1, ["stop", "prevent"]), ["esc"]))
13999
+ onKeydown: h[2] || (h[2] = Sa(Ln((v) => c.value = !1, ["stop", "prevent"]), ["esc"]))
14005
14000
  }, {
14006
- default: st(() => [
14007
- fe(d, {
14001
+ default: _t(() => [
14002
+ Oe(d, {
14008
14003
  color: W(o),
14009
14004
  width: "100%",
14010
14005
  height: "100%"
14011
14006
  }, {
14012
- default: st(() => [
14013
- W(n) ? (Ne(), _t(d, {
14007
+ default: _t(() => [
14008
+ W(n) ? (Ne(), pt(d, {
14014
14009
  key: 0,
14015
14010
  color: W(i),
14016
14011
  height: 24
14017
14012
  }, null, 8, ["color"])) : $t("", !0),
14018
- fe(d, {
14013
+ Oe(d, {
14019
14014
  class: "d-flex align-center px-3",
14020
14015
  color: W(i),
14021
14016
  height: 48
14022
14017
  }, {
14023
- default: st(() => [
14024
- fe(g, {
14025
- icon: W(Pa),
14018
+ default: _t(() => [
14019
+ Oe(g, {
14020
+ icon: W(Ua),
14026
14021
  onClick: h[0] || (h[0] = (v) => c.value = !1)
14027
14022
  }, null, 8, ["icon"]),
14028
- ct("span", Cg, wo(W(t)("x-block-lib.dlg.source.title")), 1),
14029
- fe(m)
14023
+ lt("span", Cg, xo(W(t)("x-block-lib.dlg.source.title")), 1),
14024
+ Oe(m)
14030
14025
  ]),
14031
14026
  _: 1
14032
14027
  }, 8, ["color"]),
14033
- ct("div", {
14034
- style: ut(a.value)
14028
+ lt("div", {
14029
+ style: ct(a.value)
14035
14030
  }, [
14036
- fe(yg, { code: s.value }, null, 8, ["code"])
14031
+ Oe(yg, { code: s.value }, null, 8, ["code"])
14037
14032
  ], 4)
14038
14033
  ]),
14039
14034
  _: 1
@@ -14047,7 +14042,7 @@ const yg = /* @__PURE__ */ ft({
14047
14042
  e.component("XBlockly", fg), e.component("XSourceDlg", Ng);
14048
14043
  };
14049
14044
  async function wg(e) {
14050
- return (await cr(/* @__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;
14045
+ return (await ur(/* @__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;
14051
14046
  }
14052
14047
  const Vg = { install: kg };
14053
14048
  export {