x-block-lib 0.6.14 → 0.6.16

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.
package/dist/index.js CHANGED
@@ -10,43 +10,43 @@
10
10
  var Sl = Object.defineProperty;
11
11
  var Bl = (e, t, n) => t in e ? Sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
12
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 Ca, 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 Na, 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 Ns } 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 ts, 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 ks, 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 Ls, 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, waitMs as Zl } from "x-essential-lib";
16
- import { pkgs as ec, elements as Ye, getPropTag as Ko } from "x-runtime-lib";
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 X, 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
- import { useDisplay as tc } from "vuetify";
20
- var nc = "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", oc = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", ic = "M21 11H3V9H21V11M21 13H3V15H21V13Z", sc = "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", ac = "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", rc = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
21
- function lc(e) {
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", 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
+ function rc(e) {
22
22
  return Rl() ? (Dl(e), !0) : !1;
23
23
  }
24
- const cc = typeof window < "u" && typeof document < "u";
24
+ const lc = typeof window < "u" && typeof document < "u";
25
25
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
26
- const uc = cc ? window : void 0;
27
- function Ss(e) {
26
+ const cc = lc ? window : void 0;
27
+ function Bs(e) {
28
28
  var t;
29
- const n = Ca(e);
29
+ const n = Na(e);
30
30
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
31
31
  }
32
- function pc() {
32
+ function uc() {
33
33
  const e = Ml(!1), t = Uo();
34
34
  return t && dn(() => {
35
35
  e.value = !0;
36
36
  }, t), e;
37
37
  }
38
- function _c(e) {
39
- const t = pc();
38
+ function pc(e) {
39
+ const t = uc();
40
40
  return Be(() => (t.value, !!e()));
41
41
  }
42
- function dc(e, t, n = {}) {
43
- const { window: o = uc, ...i } = n;
42
+ function _c(e, t, n = {}) {
43
+ const { window: o = cc, ...i } = n;
44
44
  let s;
45
- const a = _c(() => o && "ResizeObserver" in o), l = () => {
45
+ const a = pc(() => o && "ResizeObserver" in o), l = () => {
46
46
  s && (s.disconnect(), s = void 0);
47
47
  }, c = Be(() => {
48
- const d = Ca(e);
49
- return Array.isArray(d) ? d.map((g) => Ss(g)) : [Ss(d)];
48
+ const d = Na(e);
49
+ return Array.isArray(d) ? d.map((g) => Bs(g)) : [Bs(d)];
50
50
  }), _ = Lt(
51
51
  c,
52
52
  (d) => {
@@ -60,7 +60,7 @@ function dc(e, t, n = {}) {
60
60
  ), h = () => {
61
61
  l(), _();
62
62
  };
63
- return lc(h), {
63
+ return rc(h), {
64
64
  isSupported: a,
65
65
  stop: h
66
66
  };
@@ -109,24 +109,24 @@ 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 xa = typeof global == "object" && global && global.Object === Object && global, hc = typeof self == "object" && self && self.Object === Object && self, gt = xa || hc || Function("return this")(), Ut = gt.Symbol, wa = Object.prototype, fc = wa.hasOwnProperty, gc = wa.toString, bn = Ut ? Ut.toStringTag : void 0;
113
- function mc(e) {
114
- var t = fc.call(e, bn), n = e[bn];
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
+ function gc(e) {
114
+ var t = hc.call(e, bn), n = e[bn];
115
115
  try {
116
116
  e[bn] = void 0;
117
117
  var o = !0;
118
118
  } catch {
119
119
  }
120
- var i = gc.call(e);
120
+ var i = fc.call(e);
121
121
  return o && (t ? e[bn] = n : delete e[bn]), i;
122
122
  }
123
- var Tc = Object.prototype, Ec = Tc.toString;
124
- function Ac(e) {
125
- return Ec.call(e);
123
+ var mc = Object.prototype, Tc = mc.toString;
124
+ function Ec(e) {
125
+ return Tc.call(e);
126
126
  }
127
- var vc = "[object Null]", Oc = "[object Undefined]", Bs = Ut ? Ut.toStringTag : void 0;
127
+ var Ac = "[object Null]", vc = "[object Undefined]", Rs = Ut ? Ut.toStringTag : void 0;
128
128
  function Hn(e) {
129
- return e == null ? e === void 0 ? Oc : vc : Bs && Bs in Object(e) ? mc(e) : Ac(e);
129
+ return e == null ? e === void 0 ? vc : Ac : Rs && Rs in Object(e) ? gc(e) : Ec(e);
130
130
  }
131
131
  function Gt(e) {
132
132
  return e != null && typeof e == "object";
@@ -136,25 +136,25 @@ function Ho(e) {
136
136
  var t = typeof e;
137
137
  return e != null && (t == "object" || t == "function");
138
138
  }
139
- var bc = "[object AsyncFunction]", Ic = "[object Function]", yc = "[object GeneratorFunction]", Cc = "[object Proxy]";
139
+ var Oc = "[object AsyncFunction]", bc = "[object Function]", Ic = "[object GeneratorFunction]", yc = "[object Proxy]";
140
140
  function Va(e) {
141
141
  if (!Ho(e))
142
142
  return !1;
143
143
  var t = Hn(e);
144
- return t == Ic || t == yc || t == bc || t == Cc;
144
+ return t == bc || t == Ic || t == Oc || t == yc;
145
145
  }
146
- var _i = gt["__core-js_shared__"], Rs = function() {
146
+ var _i = gt["__core-js_shared__"], Ds = function() {
147
147
  var e = /[^.]+$/.exec(_i && _i.keys && _i.keys.IE_PROTO || "");
148
148
  return e ? "Symbol(src)_1." + e : "";
149
149
  }();
150
- function Nc(e) {
151
- return !!Rs && Rs in e;
150
+ function Cc(e) {
151
+ return !!Ds && Ds in e;
152
152
  }
153
- var kc = Function.prototype, Lc = kc.toString;
153
+ var Nc = Function.prototype, kc = Nc.toString;
154
154
  function Xt(e) {
155
155
  if (e != null) {
156
156
  try {
157
- return Lc.call(e);
157
+ return kc.call(e);
158
158
  } catch {
159
159
  }
160
160
  try {
@@ -164,122 +164,122 @@ function Xt(e) {
164
164
  }
165
165
  return "";
166
166
  }
167
- var Sc = /[\\^$.*+?()[\]{}|]/g, Bc = /^\[object .+?Constructor\]$/, Rc = Function.prototype, Dc = Object.prototype, Mc = Rc.toString, Pc = Dc.hasOwnProperty, Uc = RegExp(
168
- "^" + Mc.call(Pc).replace(Sc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
167
+ var Lc = /[\\^$.*+?()[\]{}|]/g, Sc = /^\[object .+?Constructor\]$/, Bc = Function.prototype, Rc = Object.prototype, Dc = Bc.toString, Mc = Rc.hasOwnProperty, Pc = RegExp(
168
+ "^" + Dc.call(Mc).replace(Lc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
169
169
  );
170
- function xc(e) {
171
- if (!Ho(e) || Nc(e))
170
+ function Uc(e) {
171
+ if (!Ho(e) || Cc(e))
172
172
  return !1;
173
- var t = Va(e) ? Uc : Bc;
173
+ var t = Va(e) ? Pc : Sc;
174
174
  return t.test(Xt(e));
175
175
  }
176
- function wc(e, t) {
176
+ function xc(e, t) {
177
177
  return e == null ? void 0 : e[t];
178
178
  }
179
179
  function zt(e, t) {
180
- var n = wc(e, t);
181
- return xc(n) ? n : void 0;
180
+ var n = xc(e, t);
181
+ return Uc(n) ? n : void 0;
182
182
  }
183
- var Ui = zt(gt, "WeakMap"), Ds = Object.create, Vc = /* @__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
187
  if (!Ho(t))
188
188
  return {};
189
- if (Ds)
190
- return Ds(t);
189
+ if (Ms)
190
+ return Ms(t);
191
191
  e.prototype = t;
192
192
  var n = new e();
193
193
  return e.prototype = void 0, n;
194
194
  };
195
- }(), Ms = function() {
195
+ }(), Ps = function() {
196
196
  try {
197
197
  var e = zt(Object, "defineProperty");
198
198
  return e({}, "", {}), e;
199
199
  } catch {
200
200
  }
201
201
  }();
202
- function Fc(e, t) {
202
+ function Vc(e, t) {
203
203
  for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
204
204
  ;
205
205
  return e;
206
206
  }
207
- var Yc = 9007199254740991, Kc = /^(?:0|[1-9]\d*)$/;
208
- function Hc(e, t) {
207
+ var Fc = 9007199254740991, Yc = /^(?:0|[1-9]\d*)$/;
208
+ function Kc(e, t) {
209
209
  var n = typeof e;
210
- return t = t ?? Yc, !!t && (n == "number" || n != "symbol" && Kc.test(e)) && e > -1 && e % 1 == 0 && e < t;
210
+ return t = t ?? Fc, !!t && (n == "number" || n != "symbol" && Yc.test(e)) && e > -1 && e % 1 == 0 && e < t;
211
211
  }
212
- function $c(e, t, n) {
213
- t == "__proto__" && Ms ? Ms(e, t, {
212
+ function Hc(e, t, n) {
213
+ t == "__proto__" && Ps ? Ps(e, t, {
214
214
  configurable: !0,
215
215
  enumerable: !0,
216
216
  value: n,
217
217
  writable: !0
218
218
  }) : e[t] = n;
219
219
  }
220
- function ns(e, t) {
220
+ function os(e, t) {
221
221
  return e === t || e !== e && t !== t;
222
222
  }
223
- var Gc = Object.prototype, jc = Gc.hasOwnProperty;
224
- function Wc(e, t, n) {
223
+ var $c = Object.prototype, Gc = $c.hasOwnProperty;
224
+ function jc(e, t, n) {
225
225
  var o = e[t];
226
- (!(jc.call(e, t) && ns(o, n)) || n === void 0 && !(t in e)) && $c(e, t, n);
226
+ (!(Gc.call(e, t) && os(o, n)) || n === void 0 && !(t in e)) && Hc(e, t, n);
227
227
  }
228
- var Xc = 9007199254740991;
228
+ var Wc = 9007199254740991;
229
229
  function Fa(e) {
230
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Xc;
230
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Wc;
231
231
  }
232
- function zc(e) {
232
+ function Xc(e) {
233
233
  return e != null && Fa(e.length) && !Va(e);
234
234
  }
235
- var qc = Object.prototype;
235
+ var zc = Object.prototype;
236
236
  function Ya(e) {
237
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || qc;
237
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || zc;
238
238
  return e === n;
239
239
  }
240
- function Jc(e, t) {
240
+ function qc(e, t) {
241
241
  for (var n = -1, o = Array(e); ++n < e; )
242
242
  o[n] = t(n);
243
243
  return o;
244
244
  }
245
- var Qc = "[object Arguments]";
246
- function Ps(e) {
247
- return Gt(e) && Hn(e) == Qc;
245
+ var Jc = "[object Arguments]";
246
+ function Us(e) {
247
+ return Gt(e) && Hn(e) == Jc;
248
248
  }
249
- var Ka = Object.prototype, Zc = Ka.hasOwnProperty, eu = Ka.propertyIsEnumerable, tu = Ps(/* @__PURE__ */ function() {
249
+ var Ka = Object.prototype, Qc = Ka.hasOwnProperty, Zc = Ka.propertyIsEnumerable, eu = Us(/* @__PURE__ */ function() {
250
250
  return arguments;
251
- }()) ? Ps : function(e) {
252
- return Gt(e) && Zc.call(e, "callee") && !eu.call(e, "callee");
251
+ }()) ? Us : function(e) {
252
+ return Gt(e) && Qc.call(e, "callee") && !Zc.call(e, "callee");
253
253
  };
254
- function nu() {
254
+ function tu() {
255
255
  return !1;
256
256
  }
257
- var Ha = typeof exports == "object" && exports && !exports.nodeType && exports, Us = Ha && typeof module == "object" && module && !module.nodeType && module, ou = Us && Us.exports === Ha, xs = ou ? gt.Buffer : void 0, iu = xs ? xs.isBuffer : void 0, Oo = iu || nu, su = "[object Arguments]", au = "[object Array]", ru = "[object Boolean]", lu = "[object Date]", cu = "[object Error]", uu = "[object Function]", pu = "[object Map]", _u = "[object Number]", du = "[object Object]", hu = "[object RegExp]", fu = "[object Set]", gu = "[object String]", mu = "[object WeakMap]", Tu = "[object ArrayBuffer]", Eu = "[object DataView]", Au = "[object Float32Array]", vu = "[object Float64Array]", Ou = "[object Int8Array]", bu = "[object Int16Array]", Iu = "[object Int32Array]", yu = "[object Uint8Array]", Cu = "[object Uint8ClampedArray]", Nu = "[object Uint16Array]", ku = "[object Uint32Array]", ue = {};
258
- ue[Au] = ue[vu] = ue[Ou] = ue[bu] = ue[Iu] = ue[yu] = ue[Cu] = ue[Nu] = ue[ku] = !0;
259
- ue[su] = ue[au] = ue[Tu] = ue[ru] = ue[Eu] = ue[lu] = ue[cu] = ue[uu] = ue[pu] = ue[_u] = ue[du] = ue[hu] = ue[fu] = ue[gu] = ue[mu] = !1;
260
- function Lu(e) {
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
+ ue[Eu] = ue[Au] = ue[vu] = ue[Ou] = ue[bu] = ue[Iu] = ue[yu] = ue[Cu] = ue[Nu] = !0;
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
+ function ku(e) {
261
261
  return Gt(e) && Fa(e.length) && !!ue[Hn(e)];
262
262
  }
263
- function os(e) {
263
+ function is(e) {
264
264
  return function(t) {
265
265
  return e(t);
266
266
  };
267
267
  }
268
- var $a = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = $a && typeof module == "object" && module && !module.nodeType && module, Su = Sn && Sn.exports === $a, di = Su && xa.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
271
  return e || di && di.binding && di.binding("util");
272
272
  } catch {
273
273
  }
274
- }(), ws = hn && hn.isTypedArray, Ga = ws ? os(ws) : Lu, Bu = Object.prototype, Ru = Bu.hasOwnProperty;
275
- function Du(e, t) {
276
- var n = Un(e), o = !n && tu(e), i = !n && !o && Oo(e), s = !n && !o && !i && Ga(e), a = n || o || i || s, l = a ? Jc(e.length, String) : [], c = l.length;
274
+ }(), Vs = hn && hn.isTypedArray, Ga = Vs ? is(Vs) : ku, Su = Object.prototype, Bu = Su.hasOwnProperty;
275
+ function Ru(e, t) {
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
- Ru.call(e, _) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
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.
280
280
  i && (_ == "offset" || _ == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
281
281
  s && (_ == "buffer" || _ == "byteLength" || _ == "byteOffset") || // Skip index properties.
282
- Hc(_, c))) && l.push(_);
282
+ Kc(_, c))) && l.push(_);
283
283
  return l;
284
284
  }
285
285
  function ja(e, t) {
@@ -287,44 +287,44 @@ function ja(e, t) {
287
287
  return e(t(n));
288
288
  };
289
289
  }
290
- var Mu = ja(Object.keys, Object), Pu = Object.prototype, Uu = Pu.hasOwnProperty;
291
- function xu(e) {
290
+ var Du = ja(Object.keys, Object), Mu = Object.prototype, Pu = Mu.hasOwnProperty;
291
+ function Uu(e) {
292
292
  if (!Ya(e))
293
- return Mu(e);
293
+ return Du(e);
294
294
  var t = [];
295
295
  for (var n in Object(e))
296
- Uu.call(e, n) && n != "constructor" && t.push(n);
296
+ Pu.call(e, n) && n != "constructor" && t.push(n);
297
297
  return t;
298
298
  }
299
- function wu(e) {
300
- return zc(e) ? Du(e) : xu(e);
299
+ function xu(e) {
300
+ return Xc(e) ? Ru(e) : Uu(e);
301
301
  }
302
302
  var xn = zt(Object, "create");
303
- function Vu() {
303
+ function wu() {
304
304
  this.__data__ = xn ? xn(null) : {}, this.size = 0;
305
305
  }
306
- function Fu(e) {
306
+ function Vu(e) {
307
307
  var t = this.has(e) && delete this.__data__[e];
308
308
  return this.size -= t ? 1 : 0, t;
309
309
  }
310
- var Yu = "__lodash_hash_undefined__", Ku = Object.prototype, Hu = Ku.hasOwnProperty;
311
- function $u(e) {
310
+ var Fu = "__lodash_hash_undefined__", Yu = Object.prototype, Ku = Yu.hasOwnProperty;
311
+ function Hu(e) {
312
312
  var t = this.__data__;
313
313
  if (xn) {
314
314
  var n = t[e];
315
- return n === Yu ? void 0 : n;
315
+ return n === Fu ? void 0 : n;
316
316
  }
317
- return Hu.call(t, e) ? t[e] : void 0;
317
+ return Ku.call(t, e) ? t[e] : void 0;
318
318
  }
319
- var Gu = Object.prototype, ju = Gu.hasOwnProperty;
320
- function Wu(e) {
319
+ var $u = Object.prototype, Gu = $u.hasOwnProperty;
320
+ function ju(e) {
321
321
  var t = this.__data__;
322
- return xn ? t[e] !== void 0 : ju.call(t, e);
322
+ return xn ? t[e] !== void 0 : Gu.call(t, e);
323
323
  }
324
- var Xu = "__lodash_hash_undefined__";
325
- function zu(e, t) {
324
+ var Wu = "__lodash_hash_undefined__";
325
+ function Xu(e, t) {
326
326
  var n = this.__data__;
327
- return this.size += this.has(e) ? 0 : 1, n[e] = xn && t === void 0 ? Xu : t, this;
327
+ return this.size += this.has(e) ? 0 : 1, n[e] = xn && t === void 0 ? Wu : t, this;
328
328
  }
329
329
  function jt(e) {
330
330
  var t = -1, n = e == null ? 0 : e.length;
@@ -333,36 +333,36 @@ function jt(e) {
333
333
  this.set(o[0], o[1]);
334
334
  }
335
335
  }
336
- jt.prototype.clear = Vu;
337
- jt.prototype.delete = Fu;
338
- jt.prototype.get = $u;
339
- jt.prototype.has = Wu;
340
- jt.prototype.set = zu;
341
- function qu() {
336
+ jt.prototype.clear = wu;
337
+ jt.prototype.delete = Vu;
338
+ jt.prototype.get = Hu;
339
+ jt.prototype.has = ju;
340
+ jt.prototype.set = Xu;
341
+ function zu() {
342
342
  this.__data__ = [], this.size = 0;
343
343
  }
344
344
  function $o(e, t) {
345
345
  for (var n = e.length; n--; )
346
- if (ns(e[n][0], t))
346
+ if (os(e[n][0], t))
347
347
  return n;
348
348
  return -1;
349
349
  }
350
- var Ju = Array.prototype, Qu = Ju.splice;
351
- function Zu(e) {
350
+ var qu = Array.prototype, Ju = qu.splice;
351
+ function Qu(e) {
352
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
- return n == o ? t.pop() : Qu.call(t, n, 1), --this.size, !0;
356
+ return n == o ? t.pop() : Ju.call(t, n, 1), --this.size, !0;
357
357
  }
358
- function ep(e) {
358
+ function Zu(e) {
359
359
  var t = this.__data__, n = $o(t, e);
360
360
  return n < 0 ? void 0 : t[n][1];
361
361
  }
362
- function tp(e) {
362
+ function ep(e) {
363
363
  return $o(this.__data__, e) > -1;
364
364
  }
365
- function np(e, t) {
365
+ function tp(e, t) {
366
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
  }
@@ -373,38 +373,38 @@ function It(e) {
373
373
  this.set(o[0], o[1]);
374
374
  }
375
375
  }
376
- It.prototype.clear = qu;
377
- It.prototype.delete = Zu;
378
- It.prototype.get = ep;
379
- It.prototype.has = tp;
380
- It.prototype.set = np;
376
+ It.prototype.clear = zu;
377
+ It.prototype.delete = Qu;
378
+ It.prototype.get = Zu;
379
+ It.prototype.has = ep;
380
+ It.prototype.set = tp;
381
381
  var wn = zt(gt, "Map");
382
- function op() {
382
+ function np() {
383
383
  this.size = 0, this.__data__ = {
384
384
  hash: new jt(),
385
385
  map: new (wn || It)(),
386
386
  string: new jt()
387
387
  };
388
388
  }
389
- function ip(e) {
389
+ 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
393
  function Go(e, t) {
394
394
  var n = e.__data__;
395
- return ip(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
395
+ return op(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
396
396
  }
397
- function sp(e) {
397
+ function ip(e) {
398
398
  var t = Go(this, e).delete(e);
399
399
  return this.size -= t ? 1 : 0, t;
400
400
  }
401
- function ap(e) {
401
+ function sp(e) {
402
402
  return Go(this, e).get(e);
403
403
  }
404
- function rp(e) {
404
+ function ap(e) {
405
405
  return Go(this, e).has(e);
406
406
  }
407
- function lp(e, t) {
407
+ function rp(e, t) {
408
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
  }
@@ -415,36 +415,36 @@ function qt(e) {
415
415
  this.set(o[0], o[1]);
416
416
  }
417
417
  }
418
- qt.prototype.clear = op;
419
- qt.prototype.delete = sp;
420
- qt.prototype.get = ap;
421
- qt.prototype.has = rp;
422
- qt.prototype.set = lp;
423
- function cp(e, t) {
418
+ qt.prototype.clear = np;
419
+ qt.prototype.delete = ip;
420
+ qt.prototype.get = sp;
421
+ qt.prototype.has = ap;
422
+ qt.prototype.set = rp;
423
+ function lp(e, t) {
424
424
  for (var n = -1, o = t.length, i = e.length; ++n < o; )
425
425
  e[i + n] = t[n];
426
426
  return e;
427
427
  }
428
- var up = ja(Object.getPrototypeOf, Object);
429
- function pp() {
428
+ var cp = ja(Object.getPrototypeOf, Object);
429
+ function up() {
430
430
  this.__data__ = new It(), this.size = 0;
431
431
  }
432
- function _p(e) {
432
+ function pp(e) {
433
433
  var t = this.__data__, n = t.delete(e);
434
434
  return this.size = t.size, n;
435
435
  }
436
- function dp(e) {
436
+ function _p(e) {
437
437
  return this.__data__.get(e);
438
438
  }
439
- function hp(e) {
439
+ function dp(e) {
440
440
  return this.__data__.has(e);
441
441
  }
442
- var fp = 200;
443
- function gp(e, t) {
442
+ var hp = 200;
443
+ function fp(e, t) {
444
444
  var n = this.__data__;
445
445
  if (n instanceof It) {
446
446
  var o = n.__data__;
447
- if (!wn || o.length < fp - 1)
447
+ if (!wn || o.length < hp - 1)
448
448
  return o.push([e, t]), this.size = ++n.size, this;
449
449
  n = this.__data__ = new qt(o);
450
450
  }
@@ -454,94 +454,95 @@ function At(e) {
454
454
  var t = this.__data__ = new It(e);
455
455
  this.size = t.size;
456
456
  }
457
- At.prototype.clear = pp;
458
- At.prototype.delete = _p;
459
- At.prototype.get = dp;
460
- At.prototype.has = hp;
461
- At.prototype.set = gp;
462
- var Wa = typeof exports == "object" && exports && !exports.nodeType && exports, Vs = Wa && typeof module == "object" && module && !module.nodeType && module, mp = Vs && Vs.exports === Wa, Fs = mp ? gt.Buffer : void 0;
463
- Fs && Fs.allocUnsafe;
464
- function Tp(e, t) {
457
+ At.prototype.clear = up;
458
+ At.prototype.delete = pp;
459
+ At.prototype.get = _p;
460
+ At.prototype.has = dp;
461
+ At.prototype.set = fp;
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
+ Ys && Ys.allocUnsafe;
464
+ function mp(e, t) {
465
465
  return e.slice();
466
466
  }
467
- function Ep(e, t) {
467
+ function Tp(e, t) {
468
468
  for (var n = -1, o = e == null ? 0 : e.length, i = 0, s = []; ++n < o; ) {
469
469
  var a = e[n];
470
470
  t(a, n, e) && (s[i++] = a);
471
471
  }
472
472
  return s;
473
473
  }
474
- function Ap() {
474
+ function Ep() {
475
475
  return [];
476
476
  }
477
- var vp = Object.prototype, Op = vp.propertyIsEnumerable, Ys = Object.getOwnPropertySymbols, bp = Ys ? function(e) {
478
- return e == null ? [] : (e = Object(e), Ep(Ys(e), function(t) {
479
- return Op.call(e, t);
477
+ var Ap = Object.prototype, vp = Ap.propertyIsEnumerable, Ks = Object.getOwnPropertySymbols, Op = Ks ? function(e) {
478
+ return e == null ? [] : (e = Object(e), Tp(Ks(e), function(t) {
479
+ return vp.call(e, t);
480
480
  }));
481
- } : Ap;
482
- function Ip(e, t, n) {
481
+ } : Ep;
482
+ function bp(e, t, n) {
483
483
  var o = t(e);
484
- return Un(e) ? o : cp(o, n(e));
484
+ return Un(e) ? o : lp(o, n(e));
485
485
  }
486
486
  function xi(e) {
487
- return Ip(e, wu, bp);
487
+ return bp(e, xu, Op);
488
488
  }
489
- var wi = zt(gt, "DataView"), Vi = zt(gt, "Promise"), Fi = zt(gt, "Set"), Ks = "[object Map]", yp = "[object Object]", Hs = "[object Promise]", $s = "[object Set]", Gs = "[object WeakMap]", js = "[object DataView]", Cp = Xt(wi), Np = Xt(wn), kp = Xt(Vi), Lp = Xt(Fi), Sp = Xt(Ui), it = Hn;
490
- (wi && it(new wi(new ArrayBuffer(1))) != js || wn && it(new wn()) != Ks || Vi && it(Vi.resolve()) != Hs || Fi && it(new Fi()) != $s || Ui && it(new Ui()) != Gs) && (it = function(e) {
491
- var t = Hn(e), n = t == yp ? e.constructor : void 0, o = n ? Xt(n) : "";
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
+ var t = Hn(e), n = t == Ip ? e.constructor : void 0, o = n ? Xt(n) : "";
492
492
  if (o)
493
493
  switch (o) {
494
+ case yp:
495
+ return Ws;
494
496
  case Cp:
495
- return js;
496
- case Np:
497
- return Ks;
498
- case kp:
499
497
  return Hs;
500
- case Lp:
498
+ case Np:
501
499
  return $s;
502
- case Sp:
500
+ case kp:
503
501
  return Gs;
502
+ case Lp:
503
+ return js;
504
504
  }
505
505
  return t;
506
506
  });
507
- var Bp = Object.prototype, Rp = Bp.hasOwnProperty;
508
- function Dp(e) {
507
+ var Sp = Object.prototype, Bp = Sp.hasOwnProperty;
508
+ function Rp(e) {
509
509
  var t = e.length, n = new e.constructor(t);
510
- return t && typeof e[0] == "string" && Rp.call(e, "index") && (n.index = e.index, n.input = e.input), n;
510
+ return t && typeof e[0] == "string" && Bp.call(e, "index") && (n.index = e.index, n.input = e.input), n;
511
511
  }
512
512
  var bo = gt.Uint8Array;
513
- function is(e) {
513
+ function ss(e) {
514
514
  var t = new e.constructor(e.byteLength);
515
515
  return new bo(t).set(new bo(e)), t;
516
516
  }
517
- function Mp(e, t) {
518
- var n = is(e.buffer);
517
+ function Dp(e, t) {
518
+ var n = ss(e.buffer);
519
519
  return new e.constructor(n, e.byteOffset, e.byteLength);
520
520
  }
521
- var Pp = /\w*$/;
522
- function Up(e) {
523
- var t = new e.constructor(e.source, Pp.exec(e));
521
+ var Mp = /\w*$/;
522
+ function Pp(e) {
523
+ var t = new e.constructor(e.source, Mp.exec(e));
524
524
  return t.lastIndex = e.lastIndex, t;
525
525
  }
526
- var Ws = Ut ? Ut.prototype : void 0, Xs = Ws ? Ws.valueOf : void 0;
527
- function xp(e) {
528
- return Xs ? Object(Xs.call(e)) : {};
526
+ var Xs = Ut ? Ut.prototype : void 0, zs = Xs ? Xs.valueOf : void 0;
527
+ function Up(e) {
528
+ return zs ? Object(zs.call(e)) : {};
529
529
  }
530
- function wp(e, t) {
531
- var n = is(e.buffer);
530
+ function xp(e, t) {
531
+ var n = ss(e.buffer);
532
532
  return new e.constructor(n, e.byteOffset, e.length);
533
533
  }
534
- var Vp = "[object Boolean]", Fp = "[object Date]", Yp = "[object Map]", Kp = "[object Number]", Hp = "[object RegExp]", $p = "[object Set]", Gp = "[object String]", jp = "[object Symbol]", Wp = "[object ArrayBuffer]", Xp = "[object DataView]", zp = "[object Float32Array]", qp = "[object Float64Array]", Jp = "[object Int8Array]", Qp = "[object Int16Array]", Zp = "[object Int32Array]", e_ = "[object Uint8Array]", t_ = "[object Uint8ClampedArray]", n_ = "[object Uint16Array]", o_ = "[object Uint32Array]";
535
- function i_(e, t, n) {
534
+ var wp = "[object Boolean]", Vp = "[object Date]", Fp = "[object Map]", Yp = "[object Number]", Kp = "[object RegExp]", Hp = "[object Set]", $p = "[object String]", Gp = "[object Symbol]", jp = "[object ArrayBuffer]", Wp = "[object DataView]", Xp = "[object Float32Array]", zp = "[object Float64Array]", qp = "[object Int8Array]", Jp = "[object Int16Array]", Qp = "[object Int32Array]", Zp = "[object Uint8Array]", e_ = "[object Uint8ClampedArray]", t_ = "[object Uint16Array]", n_ = "[object Uint32Array]";
535
+ function o_(e, t, n) {
536
536
  var o = e.constructor;
537
537
  switch (t) {
538
- case Wp:
539
- return is(e);
538
+ case jp:
539
+ return ss(e);
540
+ case wp:
540
541
  case Vp:
541
- case Fp:
542
542
  return new o(+e);
543
+ case Wp:
544
+ return Dp(e);
543
545
  case Xp:
544
- return Mp(e);
545
546
  case zp:
546
547
  case qp:
547
548
  case Jp:
@@ -550,35 +551,34 @@ function i_(e, t, n) {
550
551
  case e_:
551
552
  case t_:
552
553
  case n_:
553
- case o_:
554
- return wp(e);
555
- case Yp:
554
+ return xp(e);
555
+ case Fp:
556
556
  return new o();
557
- case Kp:
558
- case Gp:
557
+ case Yp:
558
+ case $p:
559
559
  return new o(e);
560
+ case Kp:
561
+ return Pp(e);
560
562
  case Hp:
561
- return Up(e);
562
- case $p:
563
563
  return new o();
564
- case jp:
565
- return xp(e);
564
+ case Gp:
565
+ return Up(e);
566
566
  }
567
567
  }
568
- function s_(e) {
569
- return typeof e.constructor == "function" && !Ya(e) ? Vc(up(e)) : {};
568
+ function i_(e) {
569
+ return typeof e.constructor == "function" && !Ya(e) ? wc(cp(e)) : {};
570
570
  }
571
- var a_ = "[object Map]";
572
- function r_(e) {
573
- return Gt(e) && it(e) == a_;
571
+ var s_ = "[object Map]";
572
+ function a_(e) {
573
+ return Gt(e) && it(e) == s_;
574
574
  }
575
- var zs = hn && hn.isMap, l_ = zs ? os(zs) : r_, c_ = "[object Set]";
576
- function u_(e) {
577
- return Gt(e) && it(e) == c_;
575
+ var qs = hn && hn.isMap, r_ = qs ? is(qs) : a_, l_ = "[object Set]";
576
+ function c_(e) {
577
+ return Gt(e) && it(e) == l_;
578
578
  }
579
- var qs = hn && hn.isSet, p_ = qs ? os(qs) : u_, Xa = "[object Arguments]", __ = "[object Array]", d_ = "[object Boolean]", h_ = "[object Date]", f_ = "[object Error]", za = "[object Function]", g_ = "[object GeneratorFunction]", m_ = "[object Map]", T_ = "[object Number]", qa = "[object Object]", E_ = "[object RegExp]", A_ = "[object Set]", v_ = "[object String]", O_ = "[object Symbol]", b_ = "[object WeakMap]", I_ = "[object ArrayBuffer]", y_ = "[object DataView]", C_ = "[object Float32Array]", N_ = "[object Float64Array]", k_ = "[object Int8Array]", L_ = "[object Int16Array]", S_ = "[object Int32Array]", B_ = "[object Uint8Array]", R_ = "[object Uint8ClampedArray]", D_ = "[object Uint16Array]", M_ = "[object Uint32Array]", le = {};
580
- le[Xa] = le[__] = le[I_] = le[y_] = le[d_] = le[h_] = le[C_] = le[N_] = le[k_] = le[L_] = le[S_] = le[m_] = le[T_] = le[qa] = le[E_] = le[A_] = le[v_] = le[O_] = le[B_] = le[R_] = le[D_] = le[M_] = !0;
581
- le[f_] = le[za] = le[b_] = !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)
@@ -587,42 +587,42 @@ function ho(e, t, n, o, i, s) {
587
587
  return e;
588
588
  var l = Un(e);
589
589
  if (l)
590
- a = Dp(e);
590
+ a = Rp(e);
591
591
  else {
592
- var c = it(e), _ = c == za || c == g_;
592
+ var c = it(e), _ = c == za || c == f_;
593
593
  if (Oo(e))
594
- return Tp(e);
594
+ return mp(e);
595
595
  if (c == qa || c == Xa || _ && !i)
596
- a = _ ? {} : s_(e);
596
+ a = _ ? {} : i_(e);
597
597
  else {
598
598
  if (!le[c])
599
599
  return i ? e : {};
600
- a = i_(e, c);
600
+ a = o_(e, c);
601
601
  }
602
602
  }
603
603
  s || (s = new At());
604
604
  var h = s.get(e);
605
605
  if (h)
606
606
  return h;
607
- s.set(e, a), p_(e) ? e.forEach(function(m) {
607
+ s.set(e, a), u_(e) ? e.forEach(function(m) {
608
608
  a.add(ho(m, t, n, m, e, s));
609
- }) : l_(e) && e.forEach(function(m, I) {
609
+ }) : r_(e) && e.forEach(function(m, I) {
610
610
  a.set(I, ho(m, t, n, I, e, s));
611
611
  });
612
612
  var d = xi, g = l ? void 0 : d(e);
613
- return Fc(g || e, function(m, I) {
614
- g && (I = m, m = e[I]), Wc(a, I, ho(m, t, n, I, e, s));
613
+ return Vc(g || e, function(m, I) {
614
+ g && (I = m, m = e[I]), jc(a, I, ho(m, t, n, I, e, s));
615
615
  }), a;
616
616
  }
617
- var P_ = 1, U_ = 4;
617
+ var M_ = 1, P_ = 4;
618
618
  function Ja(e) {
619
- return ho(e, P_ | U_);
619
+ return ho(e, M_ | P_);
620
620
  }
621
- var x_ = "__lodash_hash_undefined__";
622
- function w_(e) {
623
- return this.__data__.set(e, x_), this;
621
+ var U_ = "__lodash_hash_undefined__";
622
+ function x_(e) {
623
+ return this.__data__.set(e, U_), this;
624
624
  }
625
- function V_(e) {
625
+ function w_(e) {
626
626
  return this.__data__.has(e);
627
627
  }
628
628
  function Io(e) {
@@ -630,26 +630,26 @@ function Io(e) {
630
630
  for (this.__data__ = new qt(); ++t < n; )
631
631
  this.add(e[t]);
632
632
  }
633
- Io.prototype.add = Io.prototype.push = w_;
634
- Io.prototype.has = V_;
635
- function F_(e, t) {
633
+ Io.prototype.add = Io.prototype.push = x_;
634
+ Io.prototype.has = w_;
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))
638
638
  return !0;
639
639
  return !1;
640
640
  }
641
- function Y_(e, t) {
641
+ function F_(e, t) {
642
642
  return e.has(t);
643
643
  }
644
- var K_ = 1, H_ = 2;
644
+ var Y_ = 1, K_ = 2;
645
645
  function Qa(e, t, n, o, i, s) {
646
- var a = n & K_, l = e.length, c = t.length;
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 & H_ ? new Io() : 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)
@@ -661,9 +661,9 @@ function Qa(e, t, n, o, i, s) {
661
661
  break;
662
662
  }
663
663
  if (m) {
664
- if (!F_(t, function(D, X) {
665
- if (!Y_(m, X) && (I === D || i(I, D, n, o, s)))
666
- return m.push(X);
664
+ if (!V_(t, function(D, z) {
665
+ if (!F_(m, z) && (I === D || i(I, D, n, o, s)))
666
+ return m.push(z);
667
667
  })) {
668
668
  g = !1;
669
669
  break;
@@ -675,62 +675,62 @@ function Qa(e, t, n, o, i, s) {
675
675
  }
676
676
  return s.delete(e), s.delete(t), g;
677
677
  }
678
- function $_(e) {
678
+ function H_(e) {
679
679
  var t = -1, n = Array(e.size);
680
680
  return e.forEach(function(o, i) {
681
681
  n[++t] = [i, o];
682
682
  }), n;
683
683
  }
684
- function G_(e) {
684
+ function $_(e) {
685
685
  var t = -1, n = Array(e.size);
686
686
  return e.forEach(function(o) {
687
687
  n[++t] = o;
688
688
  }), n;
689
689
  }
690
- var j_ = 1, W_ = 2, X_ = "[object Boolean]", z_ = "[object Date]", q_ = "[object Error]", J_ = "[object Map]", Q_ = "[object Number]", Z_ = "[object RegExp]", ed = "[object Set]", td = "[object String]", nd = "[object Symbol]", od = "[object ArrayBuffer]", id = "[object DataView]", Js = Ut ? Ut.prototype : void 0, hi = Js ? Js.valueOf : void 0;
691
- function sd(e, t, n, o, i, s, a) {
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
+ function id(e, t, n, o, i, s, a) {
692
692
  switch (n) {
693
- case id:
693
+ case od:
694
694
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
695
695
  return !1;
696
696
  e = e.buffer, t = t.buffer;
697
- case od:
697
+ case nd:
698
698
  return !(e.byteLength != t.byteLength || !s(new bo(e), new bo(t)));
699
+ case W_:
699
700
  case X_:
701
+ case J_:
702
+ return os(+e, +t);
700
703
  case z_:
704
+ return e.name == t.name && e.message == t.message;
701
705
  case Q_:
702
- return ns(+e, +t);
706
+ case ed:
707
+ return e == t + "";
703
708
  case q_:
704
- return e.name == t.name && e.message == t.message;
709
+ var l = H_;
705
710
  case Z_:
706
- case td:
707
- return e == t + "";
708
- case J_:
709
- var l = $_;
710
- case ed:
711
- var c = o & j_;
712
- if (l || (l = G_), e.size != t.size && !c)
711
+ var c = o & G_;
712
+ if (l || (l = $_), e.size != t.size && !c)
713
713
  return !1;
714
714
  var _ = a.get(e);
715
715
  if (_)
716
716
  return _ == t;
717
- o |= W_, a.set(e, t);
717
+ o |= j_, a.set(e, t);
718
718
  var h = Qa(l(e), l(t), o, i, s, a);
719
719
  return a.delete(e), h;
720
- case nd:
720
+ case td:
721
721
  if (hi)
722
722
  return hi.call(e) == hi.call(t);
723
723
  }
724
724
  return !1;
725
725
  }
726
- var ad = 1, rd = Object.prototype, ld = rd.hasOwnProperty;
727
- function cd(e, t, n, o, i, s) {
728
- var a = n & ad, l = xi(e), c = l.length, _ = xi(t), h = _.length;
726
+ var sd = 1, ad = Object.prototype, rd = ad.hasOwnProperty;
727
+ function ld(e, t, n, o, i, s) {
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--; ) {
732
732
  var g = l[d];
733
- if (!(a ? g in t : ld.call(t, g)))
733
+ if (!(a ? g in t : rd.call(t, g)))
734
734
  return !1;
735
735
  }
736
736
  var m = s.get(e), I = s.get(t);
@@ -740,25 +740,25 @@ function cd(e, t, n, o, i, s) {
740
740
  s.set(e, t), s.set(t, e);
741
741
  for (var G = a; ++d < c; ) {
742
742
  g = l[d];
743
- var D = e[g], X = t[g];
743
+ var D = e[g], z = t[g];
744
744
  if (o)
745
- var te = a ? o(X, D, g, t, e, s) : o(D, X, g, e, t, s);
746
- if (!(te === void 0 ? D === X || i(D, X, n, o, s) : te)) {
745
+ var ee = a ? o(z, D, g, t, e, s) : o(D, z, g, e, t, s);
746
+ if (!(ee === void 0 ? D === z || i(D, z, n, o, s) : ee)) {
747
747
  v = !1;
748
748
  break;
749
749
  }
750
750
  G || (G = g == "constructor");
751
751
  }
752
752
  if (v && !G) {
753
- var _e = e.constructor, q = t.constructor;
754
- _e != q && "constructor" in e && "constructor" in t && !(typeof _e == "function" && _e instanceof _e && typeof q == "function" && q instanceof q) && (v = !1);
753
+ var _e = e.constructor, J = t.constructor;
754
+ _e != J && "constructor" in e && "constructor" in t && !(typeof _e == "function" && _e instanceof _e && typeof J == "function" && J instanceof J) && (v = !1);
755
755
  }
756
756
  return s.delete(e), s.delete(t), v;
757
757
  }
758
- var ud = 1, Qs = "[object Arguments]", Zs = "[object Array]", so = "[object Object]", pd = Object.prototype, ea = pd.hasOwnProperty;
759
- function _d(e, t, n, o, i, s) {
760
- var a = Un(e), l = Un(t), c = a ? Zs : it(e), _ = l ? Zs : it(t);
761
- c = c == Qs ? so : c, _ = _ == Qs ? so : _;
758
+ var cd = 1, Zs = "[object Arguments]", ea = "[object Array]", so = "[object Object]", ud = Object.prototype, ta = ud.hasOwnProperty;
759
+ function pd(e, t, n, o, i, s) {
760
+ var a = Un(e), l = Un(t), c = a ? ea : it(e), _ = l ? ea : it(t);
761
+ c = c == Zs ? so : c, _ = _ == Zs ? so : _;
762
762
  var h = c == so, d = _ == so, g = c == _;
763
763
  if (g && Oo(e)) {
764
764
  if (!Oo(t))
@@ -766,18 +766,18 @@ function _d(e, t, n, o, i, s) {
766
766
  a = !0, h = !1;
767
767
  }
768
768
  if (g && !h)
769
- return s || (s = new At()), a || Ga(e) ? Qa(e, t, n, o, i, s) : sd(e, t, c, n, o, i, s);
770
- if (!(n & ud)) {
771
- var m = h && ea.call(e, "__wrapped__"), I = d && ea.call(t, "__wrapped__");
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
+ if (!(n & cd)) {
771
+ var m = h && ta.call(e, "__wrapped__"), I = d && ta.call(t, "__wrapped__");
772
772
  if (m || I) {
773
773
  var v = m ? e.value() : e, G = I ? t.value() : t;
774
774
  return s || (s = new At()), i(v, G, n, o, s);
775
775
  }
776
776
  }
777
- return g ? (s || (s = new At()), cd(e, t, n, o, i, s)) : !1;
777
+ return g ? (s || (s = new At()), ld(e, t, n, o, i, s)) : !1;
778
778
  }
779
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 : _d(e, t, n, o, Za, 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
783
  return Za(e, t);
@@ -800,7 +800,7 @@ function fe(e) {
800
800
  console.assert(!1, "invalid param type", e.type);
801
801
  return L.xml.textToDom(t);
802
802
  }
803
- function ss(e, t, n, o) {
803
+ 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
  }
@@ -818,7 +818,7 @@ function je(e, t) {
818
818
  return;
819
819
  c.dispose();
820
820
  }
821
- c = ss(
821
+ c = as(
822
822
  e.workspace,
823
823
  i,
824
824
  s,
@@ -831,7 +831,7 @@ function je(e, t) {
831
831
  }
832
832
  function $n(e) {
833
833
  const { version: t } = V.app.activeObject;
834
- if (!ec[t])
834
+ if (!Zl[t])
835
835
  return console.assert(!1, "invalid pkg version", t), [];
836
836
  const o = [];
837
837
  for (const i in Ye) {
@@ -860,7 +860,7 @@ function fi(e, t) {
860
860
  if (n)
861
861
  return n.events.find((o) => o.key === t);
862
862
  }
863
- function dd(e) {
863
+ function _d(e) {
864
864
  const t = [];
865
865
  return Yi(e).forEach(({ key: o, name: i }) => {
866
866
  t.push([T[i] ?? i, o]);
@@ -875,7 +875,7 @@ function gi(e, t) {
875
875
  if (n)
876
876
  return n.methods.find((o) => o.key === t);
877
877
  }
878
- function hd(e) {
878
+ function dd(e) {
879
879
  const t = [];
880
880
  return Ki(e).forEach(({ key: o, name: i }) => {
881
881
  t.push([T[i] ?? i, o]);
@@ -961,7 +961,7 @@ function mi(e, t) {
961
961
  }
962
962
  return o.events.find((i) => i.key === t);
963
963
  }
964
- function fd(e) {
964
+ function hd(e) {
965
965
  const t = [];
966
966
  return Hi(e).forEach(({ key: o, name: i }) => {
967
967
  t.push([T[i] ?? i, o]);
@@ -985,7 +985,7 @@ function Ti(e, t) {
985
985
  }
986
986
  return o.methods.find((i) => i.key === t);
987
987
  }
988
- function gd(e) {
988
+ function fd(e) {
989
989
  const t = [];
990
990
  return $i(e).forEach(({ key: o, name: i }) => {
991
991
  t.push([T[i] ?? i, o]);
@@ -1021,7 +1021,7 @@ function tr(e, t) {
1021
1021
  }), o.push([a, s.keys]);
1022
1022
  }), ge(o);
1023
1023
  }
1024
- const md = {
1024
+ const gd = {
1025
1025
  init: function() {
1026
1026
  this.node = {
1027
1027
  id: "",
@@ -1070,7 +1070,7 @@ const md = {
1070
1070
  return Gn("method");
1071
1071
  },
1072
1072
  genMethodOpts_: function() {
1073
- return gd(this.node.id);
1073
+ return fd(this.node.id);
1074
1074
  },
1075
1075
  genElementOpts_: function() {
1076
1076
  return fn();
@@ -1183,7 +1183,7 @@ const md = {
1183
1183
  this.setWarningText(null);
1184
1184
  }
1185
1185
  };
1186
- U.call_node_method_v1 = md;
1186
+ U.call_node_method_v1 = gd;
1187
1187
  r.forBlock.call_node_method_v1 = function(e) {
1188
1188
  const t = r.quote_, n = e;
1189
1189
  let o = n.node.id;
@@ -1206,7 +1206,7 @@ ${s}}
1206
1206
  `;
1207
1207
  }
1208
1208
  };
1209
- const Td = {
1209
+ const md = {
1210
1210
  init: function() {
1211
1211
  this.element = {
1212
1212
  key: "",
@@ -1257,7 +1257,7 @@ const Td = {
1257
1257
  return fn("method");
1258
1258
  },
1259
1259
  genMethodOpts_: function() {
1260
- return hd(this.element.key);
1260
+ return dd(this.element.key);
1261
1261
  },
1262
1262
  onchange: function(e) {
1263
1263
  if (e.type === w.BLOCK_CHANGE) {
@@ -1363,7 +1363,7 @@ const Td = {
1363
1363
  this.setWarningText(null);
1364
1364
  }
1365
1365
  };
1366
- U.call_node_method_as_v1 = Td;
1366
+ U.call_node_method_as_v1 = md;
1367
1367
  r.forBlock.call_node_method_as_v1 = function(e) {
1368
1368
  const t = r.quote_, n = e, o = r.valueToCode(n, "NODE", p.NONE) || "";
1369
1369
  if (!o)
@@ -1387,7 +1387,7 @@ ${s}}
1387
1387
  `;
1388
1388
  }
1389
1389
  };
1390
- function Ed() {
1390
+ function Td() {
1391
1391
  return V.app.activeObject.type !== "comp" ? !1 : V.app.activeComp.meta.properties.length > 0 || V.app.activeComp.meta.methods.length > 0 || V.app.activeComp.meta.events.length > 0;
1392
1392
  }
1393
1393
  function Yn() {
@@ -1415,7 +1415,7 @@ function Ei(e, t) {
1415
1415
  if (n)
1416
1416
  return n.outputs.find((o) => o.id === t);
1417
1417
  }
1418
- function Ad(e) {
1418
+ function Ed(e) {
1419
1419
  const t = [];
1420
1420
  return Gi(e).forEach((o) => {
1421
1421
  t.push([o.name, o.id]);
@@ -1424,16 +1424,16 @@ function Ad(e) {
1424
1424
  function or() {
1425
1425
  return V.app.activeComp.meta.events;
1426
1426
  }
1427
- function ta(e) {
1427
+ function na(e) {
1428
1428
  return V.app.activeComp.meta.events.find((t) => t.id === e);
1429
1429
  }
1430
- function vd() {
1430
+ function Ad() {
1431
1431
  const e = [];
1432
1432
  return or().forEach((n) => {
1433
1433
  e.push([n.name, n.id]);
1434
1434
  }), ge(e);
1435
1435
  }
1436
- const Od = {
1436
+ const vd = {
1437
1437
  init: function() {
1438
1438
  this.method = {
1439
1439
  id: "",
@@ -1517,12 +1517,12 @@ const Od = {
1517
1517
  this.setWarningText(null);
1518
1518
  }
1519
1519
  };
1520
- U.comp_method_impl_v1 = Od;
1520
+ U.comp_method_impl_v1 = vd;
1521
1521
  r.forBlock.comp_method_impl_v1 = function(e) {
1522
1522
  const t = e;
1523
1523
  return `{${r.statementToCode(t, "HANDLE")}}`;
1524
1524
  };
1525
- const bd = {
1525
+ const Od = {
1526
1526
  init: function() {
1527
1527
  this.node = {
1528
1528
  id: "",
@@ -1586,12 +1586,12 @@ const bd = {
1586
1586
  this.node.alias !== e.alias && (this.node.alias = e.alias), this.setWarningText(null);
1587
1587
  }
1588
1588
  };
1589
- U.get_node_v1 = bd;
1589
+ U.get_node_v1 = Od;
1590
1590
  r.forBlock.get_node_v1 = function(e) {
1591
1591
  const t = e;
1592
1592
  return [r.quote_(t.node.id), p.ATOMIC];
1593
1593
  };
1594
- const Id = {
1594
+ const bd = {
1595
1595
  init: function() {
1596
1596
  this.node = {
1597
1597
  id: "",
@@ -1685,12 +1685,12 @@ const Id = {
1685
1685
  xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
1686
1686
  }
1687
1687
  };
1688
- U.get_node_prop_v1 = Id;
1688
+ U.get_node_prop_v1 = bd;
1689
1689
  r.forBlock.get_node_prop_v1 = function(e) {
1690
1690
  const t = e, n = r.quote_(t.node.id), o = r.quote_(t.prop.keys);
1691
1691
  return [`__getNodePropV1__(${n}, ${o})`, p.ATOMIC];
1692
1692
  };
1693
- const yd = {
1693
+ const Id = {
1694
1694
  init: function() {
1695
1695
  this.element = {
1696
1696
  key: "",
@@ -1782,29 +1782,29 @@ const yd = {
1782
1782
  xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
1783
1783
  }
1784
1784
  };
1785
- U.get_node_prop_as_v1 = yd;
1785
+ U.get_node_prop_as_v1 = Id;
1786
1786
  r.forBlock.get_node_prop_as_v1 = function(e) {
1787
1787
  const t = e, n = r.valueToCode(t, "NODE", p.ATOMIC) || "null", o = r.quote_(t.prop.keys);
1788
1788
  return [`__getNodePropV1__(${n}, ${o})`, p.ATOMIC];
1789
1789
  };
1790
- function Cd() {
1790
+ function yd() {
1791
1791
  if (V.app.activeObject.type !== "page" || V.app.activePage.meta.arguments.length > 0) return !1;
1792
1792
  }
1793
1793
  function ir() {
1794
1794
  return V.app.activePage.meta.arguments;
1795
1795
  }
1796
- function na(e) {
1796
+ function oa(e) {
1797
1797
  return V.app.activePage.meta.arguments.find(
1798
1798
  (t) => t.id === e
1799
1799
  );
1800
1800
  }
1801
- function Nd() {
1801
+ function Cd() {
1802
1802
  const e = [];
1803
1803
  return ir().forEach((n) => {
1804
1804
  e.push([n.name, n.id]);
1805
1805
  }), ge(e);
1806
1806
  }
1807
- const kd = {
1807
+ const Nd = {
1808
1808
  init: function() {
1809
1809
  this.argument = {
1810
1810
  id: "",
@@ -1827,7 +1827,7 @@ const kd = {
1827
1827
  }, 0);
1828
1828
  },
1829
1829
  genArgumentOpts_: function() {
1830
- return Nd();
1830
+ return Cd();
1831
1831
  },
1832
1832
  onchange: function(e) {
1833
1833
  if (e.type === w.BLOCK_CHANGE) {
@@ -1840,7 +1840,7 @@ const kd = {
1840
1840
  }
1841
1841
  },
1842
1842
  onArgumentChange_: function(e) {
1843
- const t = na(e);
1843
+ const t = oa(e);
1844
1844
  if (!t) {
1845
1845
  console.assert(!1);
1846
1846
  return;
@@ -1851,7 +1851,7 @@ const kd = {
1851
1851
  this.argument.type === "string" ? this.setOutput(!0, "String") : this.argument.type === "number" ? this.setOutput(!0, "Number") : this.argument.type === "boolean" ? this.setOutput(!0, "Boolean") : this.argument.type === "list" ? this.setOutput(!0, "Array") : this.argument.type === "object" ? this.setOutput(!0, "Object") : this.setOutput(!0, null);
1852
1852
  },
1853
1853
  checkWarning_: function() {
1854
- const e = na(this.argument.id);
1854
+ const e = oa(this.argument.id);
1855
1855
  if (!e) {
1856
1856
  this.setWarningText(T.WARN_ARGUMENT_NOT_AVAILABLE);
1857
1857
  return;
@@ -1863,20 +1863,20 @@ const kd = {
1863
1863
  this.setWarningText(null);
1864
1864
  }
1865
1865
  };
1866
- U.get_page_argument_v1 = kd;
1866
+ U.get_page_argument_v1 = Nd;
1867
1867
  r.forBlock.get_page_argument_v1 = function(e) {
1868
1868
  const t = e;
1869
1869
  return [`__getPageArgumentV1__(${r.quote_(t.argument.id)})`, p.FUNCTION_CALL];
1870
1870
  };
1871
- function as() {
1871
+ function rs() {
1872
1872
  return V.app.appList;
1873
1873
  }
1874
- function oa(e) {
1874
+ function ia(e) {
1875
1875
  return V.app.appList.find((t) => t.id === e);
1876
1876
  }
1877
- function Ld() {
1877
+ function kd() {
1878
1878
  const e = [];
1879
- return as().forEach((n) => {
1879
+ return rs().forEach((n) => {
1880
1880
  e.push([n.name, n.id]);
1881
1881
  }), ge(e);
1882
1882
  }
@@ -1889,13 +1889,13 @@ function Ai(e, t) {
1889
1889
  if (n)
1890
1890
  return n.pages.find((o) => o.id === t);
1891
1891
  }
1892
- function Sd(e) {
1892
+ function Ld(e) {
1893
1893
  const t = [];
1894
1894
  return ji(e).forEach((o) => {
1895
1895
  t.push([o.name, o.id]);
1896
1896
  }), ge(t);
1897
1897
  }
1898
- const Bd = {
1898
+ const Sd = {
1899
1899
  init: function() {
1900
1900
  this.app = {
1901
1901
  id: "",
@@ -1915,7 +1915,7 @@ const Bd = {
1915
1915
  var i, s;
1916
1916
  if (this.app.id)
1917
1917
  return;
1918
- const e = (i = as()) == null ? void 0 : i[0];
1918
+ const e = (i = rs()) == null ? void 0 : i[0];
1919
1919
  if (!e)
1920
1920
  return;
1921
1921
  this.app.id = e.id, this.app.name = e.name;
@@ -1941,10 +1941,10 @@ const Bd = {
1941
1941
  }, 0);
1942
1942
  },
1943
1943
  genAppOpts_: function() {
1944
- return Ld();
1944
+ return kd();
1945
1945
  },
1946
1946
  genPageOpts_: function() {
1947
- return Sd(this.app.id);
1947
+ return Ld(this.app.id);
1948
1948
  },
1949
1949
  onchange: function(e) {
1950
1950
  if (e.type === w.BLOCK_CHANGE) {
@@ -1958,7 +1958,7 @@ const Bd = {
1958
1958
  },
1959
1959
  onAppChange_: function(e) {
1960
1960
  var i;
1961
- const t = oa(e);
1961
+ const t = ia(e);
1962
1962
  if (!t) {
1963
1963
  console.assert(!1);
1964
1964
  return;
@@ -1976,7 +1976,7 @@ const Bd = {
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() {
1979
- const e = oa(this.app.id);
1979
+ const e = ia(this.app.id);
1980
1980
  if (!e) {
1981
1981
  this.setWarningText(T.WARN_APP_NOT_AVAIALABLE);
1982
1982
  return;
@@ -1990,13 +1990,13 @@ const Bd = {
1990
1990
  t.name !== this.page.name && (this.page.name = t.name), this.setWarningText(null);
1991
1991
  }
1992
1992
  };
1993
- U.navigate_to_v1 = Bd;
1993
+ U.navigate_to_v1 = Sd;
1994
1994
  r.forBlock.navigate_to_v1 = function(e) {
1995
1995
  const t = e, n = r.quote_(t.app.id), o = r.quote_(t.page.id), i = r.quote_(t.getFieldValue("MODE"));
1996
1996
  return `__navigateToV1__(${n}, ${o}, ${i});
1997
1997
  `;
1998
1998
  };
1999
- const Rd = {
1999
+ const Bd = {
2000
2000
  init: function() {
2001
2001
  this.node = {
2002
2002
  id: "",
@@ -2044,7 +2044,7 @@ const Rd = {
2044
2044
  return Gn("event");
2045
2045
  },
2046
2046
  genEventOpts_: function() {
2047
- return fd(this.node.id);
2047
+ return hd(this.node.id);
2048
2048
  },
2049
2049
  onchange: function(e) {
2050
2050
  if (e.type === w.BLOCK_CHANGE) {
@@ -2116,7 +2116,7 @@ const Rd = {
2116
2116
  this.setWarningText(null);
2117
2117
  }
2118
2118
  };
2119
- U.on_node_event_v1 = Rd;
2119
+ U.on_node_event_v1 = Bd;
2120
2120
  r.forBlock.on_node_event_v1 = function(e) {
2121
2121
  const t = e, n = r.quote_(t.node.id), o = r.quote_(t.event.key);
2122
2122
  let i = "";
@@ -2128,7 +2128,7 @@ r.forBlock.on_node_event_v1 = function(e) {
2128
2128
  ${s}});
2129
2129
  `;
2130
2130
  };
2131
- const Dd = {
2131
+ const Rd = {
2132
2132
  init: function() {
2133
2133
  this.element = {
2134
2134
  key: "",
@@ -2178,7 +2178,7 @@ const Dd = {
2178
2178
  return fn("event");
2179
2179
  },
2180
2180
  genEventOpts_: function() {
2181
- return dd(this.element.key);
2181
+ return _d(this.element.key);
2182
2182
  },
2183
2183
  onchange: function(e) {
2184
2184
  if (e.type === w.BLOCK_CHANGE) {
@@ -2246,7 +2246,7 @@ const Dd = {
2246
2246
  this.setWarningText(null);
2247
2247
  }
2248
2248
  };
2249
- U.on_node_event_as_v1 = Dd;
2249
+ U.on_node_event_as_v1 = Rd;
2250
2250
  r.forBlock.on_node_event_as_v1 = function(e) {
2251
2251
  const t = e, n = r.valueToCode(t, "NODE", p.NONE), o = r.quote_(t.event.key);
2252
2252
  let i = "";
@@ -2258,7 +2258,7 @@ r.forBlock.on_node_event_as_v1 = function(e) {
2258
2258
  ${s}});
2259
2259
  `;
2260
2260
  };
2261
- const Md = {
2261
+ const Dd = {
2262
2262
  init: function() {
2263
2263
  this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_CONFIRM_DLG_HELPURL}");
2264
2264
  },
@@ -2287,7 +2287,7 @@ const Md = {
2287
2287
  ]);
2288
2288
  }
2289
2289
  };
2290
- U.open_confirm_dlg_v1 = Md;
2290
+ U.open_confirm_dlg_v1 = Dd;
2291
2291
  r.forBlock.open_confirm_dlg_v1 = function(e) {
2292
2292
  const t = r.valueToCode(e, "TITLE", p.ATOMIC), n = r.valueToCode(e, "TEXT", p.ATOMIC), o = r.statementToCode(e, "HANDLE");
2293
2293
  return `{
@@ -2295,7 +2295,7 @@ r.forBlock.open_confirm_dlg_v1 = function(e) {
2295
2295
  ${o}}
2296
2296
  `;
2297
2297
  };
2298
- const Pd = {
2298
+ const Md = {
2299
2299
  init: function() {
2300
2300
  this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_PROMPT_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_PROMPT_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_PROMPT_DLG_HELPURL}");
2301
2301
  },
@@ -2326,7 +2326,7 @@ const Pd = {
2326
2326
  ]);
2327
2327
  }
2328
2328
  };
2329
- U.open_prompt_dlg_v1 = Pd;
2329
+ U.open_prompt_dlg_v1 = Md;
2330
2330
  r.forBlock.open_prompt_dlg_v1 = function(e) {
2331
2331
  const t = r.valueToCode(e, "TITLE", p.ATOMIC), n = r.valueToCode(e, "LABEL", p.ATOMIC), o = r.valueToCode(e, "VALUE", p.ATOMIC), i = r.statementToCode(e, "HANDLE");
2332
2332
  return `{
@@ -2366,7 +2366,7 @@ r.forBlock.popup_message_v1 = function(e) {
2366
2366
  return `__messageV1__(${t}, ${n});
2367
2367
  `;
2368
2368
  };
2369
- const Ud = {
2369
+ const Pd = {
2370
2370
  init: function() {
2371
2371
  this.method = {
2372
2372
  id: "",
@@ -2415,7 +2415,7 @@ const Ud = {
2415
2415
  return nr();
2416
2416
  },
2417
2417
  genOutputOpts_: function() {
2418
- return Ad(this.method.id);
2418
+ return Ed(this.method.id);
2419
2419
  },
2420
2420
  onchange: function(e) {
2421
2421
  if (e.type === w.BLOCK_CHANGE) {
@@ -2481,7 +2481,7 @@ const Ud = {
2481
2481
  this.setWarningText(null);
2482
2482
  }
2483
2483
  };
2484
- U.set_comp_method_output_v1 = Ud;
2484
+ U.set_comp_method_output_v1 = Pd;
2485
2485
  r.forBlock.set_comp_method_output_v1 = function(e) {
2486
2486
  const t = e;
2487
2487
  let n = r.valueToCode(t, "VALUE", p.ATOMIC);
@@ -2508,7 +2508,7 @@ r.forBlock.set_comp_method_output_v1 = function(e) {
2508
2508
  return `__setCompMethodOutputV1__(${n});
2509
2509
  `;
2510
2510
  };
2511
- const xd = {
2511
+ const Ud = {
2512
2512
  init: function() {
2513
2513
  this.node = {
2514
2514
  id: "",
@@ -2600,13 +2600,13 @@ const xd = {
2600
2600
  xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
2601
2601
  }
2602
2602
  };
2603
- U.set_node_prop_v1 = xd;
2603
+ U.set_node_prop_v1 = Ud;
2604
2604
  r.forBlock.set_node_prop_v1 = function(e) {
2605
2605
  const t = e, n = r.quote_(t.node.id), o = r.quote_(t.prop.keys), i = r.valueToCode(t, "VALUE", p.NONE);
2606
2606
  return `__setNodePropV1__(${n}, ${o}, ${i});
2607
2607
  `;
2608
2608
  };
2609
- const wd = {
2609
+ const xd = {
2610
2610
  init: function() {
2611
2611
  this.element = {
2612
2612
  key: "",
@@ -2700,13 +2700,13 @@ const wd = {
2700
2700
  xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
2701
2701
  }
2702
2702
  };
2703
- U.set_node_prop_as_v1 = wd;
2703
+ U.set_node_prop_as_v1 = xd;
2704
2704
  r.forBlock.set_node_prop_as_v1 = function(e) {
2705
2705
  const t = e, n = r.valueToCode(t, "NODE", p.NONE), o = r.quote_(t.prop.keys), i = r.valueToCode(t, "VALUE", p.NONE);
2706
2706
  return `__setNodePropV1__(${n}, ${o}, ${i});
2707
2707
  `;
2708
2708
  };
2709
- const Vd = {
2709
+ const wd = {
2710
2710
  init: function() {
2711
2711
  this.event = {
2712
2712
  id: "",
@@ -2740,7 +2740,7 @@ const Vd = {
2740
2740
  }, 0);
2741
2741
  },
2742
2742
  genEventOpts_: function() {
2743
- return vd();
2743
+ return Ad();
2744
2744
  },
2745
2745
  onchange: function(e) {
2746
2746
  if (e.type === w.BLOCK_CHANGE) {
@@ -2753,7 +2753,7 @@ const Vd = {
2753
2753
  }
2754
2754
  },
2755
2755
  onEventChange_: function(e) {
2756
- const t = ta(e);
2756
+ const t = na(e);
2757
2757
  t ? (this.event.id = t.id, this.event.name = t.name, this.event.params = t.params) : (this.event.id = "", this.event.name = "", this.event.params = []);
2758
2758
  },
2759
2759
  updateShape_: function() {
@@ -2783,7 +2783,7 @@ const Vd = {
2783
2783
  }
2784
2784
  },
2785
2785
  checkWarning_: function() {
2786
- const e = ta(this.event.id);
2786
+ const e = na(this.event.id);
2787
2787
  if (!e) {
2788
2788
  this.setWarningText(T.WARN_EVENT_NOT_AVAILABLE);
2789
2789
  return;
@@ -2795,7 +2795,7 @@ const Vd = {
2795
2795
  this.setWarningText(null);
2796
2796
  }
2797
2797
  };
2798
- U.trigger_comp_event_v1 = Vd;
2798
+ U.trigger_comp_event_v1 = wd;
2799
2799
  r.forBlock.trigger_comp_event_v1 = function() {
2800
2800
  return "";
2801
2801
  };
@@ -2941,7 +2941,7 @@ function ${r.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
2941
2941
  `
2942
2942
  )}(${t}, ${n}, ${o})`, p.FUNCTION_CALL];
2943
2943
  };
2944
- const Fd = L.xml, Yd = [
2944
+ const Vd = L.xml, Fd = [
2945
2945
  {
2946
2946
  type: "add_data_v1",
2947
2947
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
@@ -2999,17 +2999,17 @@ const Fd = L.xml, Yd = [
2999
2999
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
3000
3000
  }
3001
3001
  ];
3002
- function Kd(e, t) {
3002
+ function Yd(e, t) {
3003
3003
  var o, i;
3004
- const n = Yd.find((s) => s.type === e);
3004
+ const n = Fd.find((s) => s.type === e);
3005
3005
  return n ? !!((o = n.prefixInputs) != null && o.some((s) => t.startsWith(s)) || (i = n.inputs) != null && i.some((s) => s === t)) : !1;
3006
3006
  }
3007
- const Hd = {
3007
+ const Kd = {
3008
3008
  init: function() {
3009
3009
  this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
3010
3010
  },
3011
3011
  mutationToDom: function() {
3012
- const e = Fd.createElement("mutation");
3012
+ const e = Vd.createElement("mutation");
3013
3013
  return e.setAttribute("key", this.key), e.setAttribute("name", this.name), e.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), e;
3014
3014
  },
3015
3015
  domToMutation: function(e) {
@@ -3039,12 +3039,12 @@ const Hd = {
3039
3039
  tryDuplicate_: function(e) {
3040
3040
  var n;
3041
3041
  const t = this.workspace.getBlockById(e.oldParentId);
3042
- if (t && Kd(t.type, e.oldInputName))
3042
+ if (t && Yd(t.type, e.oldInputName))
3043
3043
  try {
3044
3044
  w.disable();
3045
3045
  const o = (n = t.getInput(e.oldInputName)) == null ? void 0 : n.connection;
3046
3046
  if (o) {
3047
- const i = ss(
3047
+ const i = as(
3048
3048
  this.workspace,
3049
3049
  this.key,
3050
3050
  this.name,
@@ -3060,7 +3060,7 @@ const Hd = {
3060
3060
  this.locale ? this.setFieldValue(T[this.name], "LABEL") : this.setFieldValue(this.name, "LABEL");
3061
3061
  }
3062
3062
  };
3063
- U.parameter_v1 = Hd;
3063
+ U.parameter_v1 = Kd;
3064
3064
  r.forBlock.parameter_v1 = function(e) {
3065
3065
  return [e.key, p.ATOMIC];
3066
3066
  };
@@ -3079,7 +3079,7 @@ function ar() {
3079
3079
  e.push([n.name, n.id]);
3080
3080
  }), ge(e);
3081
3081
  }
3082
- function rs(e) {
3082
+ function ls(e) {
3083
3083
  const t = V.compute.spaces.find((n) => n.id === e);
3084
3084
  return t ? t.funcs : [];
3085
3085
  }
@@ -3090,24 +3090,24 @@ function rr(e, t) {
3090
3090
  }
3091
3091
  function lr(e) {
3092
3092
  const t = [];
3093
- return rs(e).forEach((o) => {
3093
+ return ls(e).forEach((o) => {
3094
3094
  t.push([o.name, o.id]);
3095
3095
  }), ge(t);
3096
3096
  }
3097
3097
  function Wi() {
3098
3098
  return V.compute.activeFunc;
3099
3099
  }
3100
- function ia(e) {
3100
+ function sa(e) {
3101
3101
  const { outputs: t } = V.compute.activeFunc;
3102
3102
  return t.find((n) => n.id === e);
3103
3103
  }
3104
- function $d() {
3104
+ 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
3108
  }), ge(e);
3109
3109
  }
3110
- const Gd = {
3110
+ const $d = {
3111
3111
  init: function() {
3112
3112
  this.space = {
3113
3113
  id: "",
@@ -3132,7 +3132,7 @@ const Gd = {
3132
3132
  this.space.id = e.id, this.space.name = e.name;
3133
3133
  const t = this.getField("SPACE");
3134
3134
  t.getOptions(!1), t.setValue(this.space.id);
3135
- const n = (s = rs(this.space.id)) == null ? void 0 : s[0];
3135
+ const n = (s = ls(this.space.id)) == null ? void 0 : s[0];
3136
3136
  if (!n)
3137
3137
  return;
3138
3138
  this.func.id = n.id, this.func.name = n.name;
@@ -3233,7 +3233,7 @@ const Gd = {
3233
3233
  this.setWarningText(null);
3234
3234
  }
3235
3235
  };
3236
- U.call_func_v1 = Gd;
3236
+ U.call_func_v1 = $d;
3237
3237
  r.forBlock.call_func_v1 = function(e) {
3238
3238
  const t = r.INDENT, n = r.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
3239
3239
  for (let g = 0; g < o.func.inputs.length; g++)
@@ -3254,7 +3254,7 @@ r.forBlock.call_func_v1 = function(e) {
3254
3254
  }
3255
3255
  `;
3256
3256
  };
3257
- const jd = {
3257
+ const Gd = {
3258
3258
  init: function() {
3259
3259
  this.space = {
3260
3260
  id: "",
@@ -3276,7 +3276,7 @@ const jd = {
3276
3276
  this.space.id = e.id, this.space.name = e.name;
3277
3277
  const t = this.getField("SPACE");
3278
3278
  t.getOptions(!1), t.setValue(this.space.id);
3279
- const n = (s = rs(this.space.id)) == null ? void 0 : s[0];
3279
+ const n = (s = ls(this.space.id)) == null ? void 0 : s[0];
3280
3280
  if (!n)
3281
3281
  return;
3282
3282
  this.func.id = n.id, this.func.name = n.name;
@@ -3377,7 +3377,7 @@ const jd = {
3377
3377
  this.setWarningText(null);
3378
3378
  }
3379
3379
  };
3380
- U.call_func_internal_v1 = jd;
3380
+ U.call_func_internal_v1 = Gd;
3381
3381
  r.forBlock.call_func_internal_v1 = function(e) {
3382
3382
  const t = r.INDENT, n = r.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
3383
3383
  for (let g = 0; g < o.func.inputs.length; g++)
@@ -3426,7 +3426,7 @@ r.forBlock.compute_debug_trace_v1 = function(e) {
3426
3426
  return `__debugTraceV1__(${r.valueToCode(e, "OBJECT", p.ATOMIC)});
3427
3427
  `;
3428
3428
  };
3429
- const Wd = {
3429
+ const jd = {
3430
3430
  init: function() {
3431
3431
  this.func = {
3432
3432
  id: "",
@@ -3483,7 +3483,7 @@ const Wd = {
3483
3483
  this.setWarningText(null);
3484
3484
  }
3485
3485
  };
3486
- U.func_entry_v1 = Wd;
3486
+ U.func_entry_v1 = jd;
3487
3487
  r.forBlock.func_entry_v1 = function(e) {
3488
3488
  const t = e, n = r.statementToCode(t, "HANDLE"), o = [];
3489
3489
  for (let a = 0; a < t.func.inputs.length; a++) {
@@ -3493,16 +3493,16 @@ r.forBlock.func_entry_v1 = function(e) {
3493
3493
  return `function __funcEntryV1__(${o.join(", ")}) {
3494
3494
  ${n}}`;
3495
3495
  };
3496
- const Xd = {
3496
+ const Wd = {
3497
3497
  init: function() {
3498
3498
  }
3499
3499
  };
3500
- U.on_flow_state_event_v1 = Xd;
3500
+ U.on_flow_state_event_v1 = Wd;
3501
3501
  r.forBlock.on_flow_state_event_v1 = function() {
3502
3502
  return `__onFlowStateEventV1__();
3503
3503
  `;
3504
3504
  };
3505
- const zd = {
3505
+ const Xd = {
3506
3506
  init: function() {
3507
3507
  this.output = {
3508
3508
  id: "",
@@ -3532,7 +3532,7 @@ const zd = {
3532
3532
  }, 0);
3533
3533
  },
3534
3534
  genOutputOpts_: function() {
3535
- return $d();
3535
+ return Hd();
3536
3536
  },
3537
3537
  onchange: function(e) {
3538
3538
  if (e.type === w.BLOCK_CHANGE) {
@@ -3546,7 +3546,7 @@ const zd = {
3546
3546
  }, 0);
3547
3547
  },
3548
3548
  onOutputChange_: function(e) {
3549
- const t = ia(e);
3549
+ const t = sa(e);
3550
3550
  if (!t) {
3551
3551
  console.assert(!1);
3552
3552
  return;
@@ -3569,7 +3569,7 @@ const zd = {
3569
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
- const e = ia(this.output.id);
3572
+ const e = sa(this.output.id);
3573
3573
  if (!e) {
3574
3574
  this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
3575
3575
  return;
@@ -3581,7 +3581,7 @@ const zd = {
3581
3581
  this.setWarningText(null);
3582
3582
  }
3583
3583
  };
3584
- U.set_func_output_v1 = zd;
3584
+ U.set_func_output_v1 = Xd;
3585
3585
  r.forBlock.set_func_output_v1 = function(e) {
3586
3586
  const t = r.quote_, n = e, { name: o, type: i } = n.output;
3587
3587
  let s = r.valueToCode(n, "VALUE", p.ATOMIC);
@@ -3608,7 +3608,7 @@ r.forBlock.set_func_output_v1 = function(e) {
3608
3608
  return `__setFuncOutputV1__(${t(o)}, ${s});
3609
3609
  `;
3610
3610
  };
3611
- const qd = {
3611
+ const zd = {
3612
3612
  init: function() {
3613
3613
  this.appendDummyInput().appendField("%{BKY_DATA_V1_ADD_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_ADD_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_ADD_DATA_HELPURL}");
3614
3614
  },
@@ -3631,7 +3631,7 @@ const qd = {
3631
3631
  ]);
3632
3632
  }
3633
3633
  };
3634
- U.add_data_v1 = qd;
3634
+ U.add_data_v1 = zd;
3635
3635
  r.forBlock.add_data_v1 = function(e) {
3636
3636
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.statementToCode(e, "HANDLE");
3637
3637
  return `{
@@ -3674,7 +3674,7 @@ function Wo(e) {
3674
3674
  t.push([o.name, o.id]);
3675
3675
  }), ge(t);
3676
3676
  }
3677
- const Jd = {
3677
+ const qd = {
3678
3678
  init: function() {
3679
3679
  this.space = {
3680
3680
  id: "",
@@ -3819,7 +3819,7 @@ const Jd = {
3819
3819
  this.setWarningText(null);
3820
3820
  }
3821
3821
  };
3822
- U.cond_atomic_v1 = Jd;
3822
+ U.cond_atomic_v1 = qd;
3823
3823
  r.forBlock.cond_atomic_v1 = function(e) {
3824
3824
  const t = r.quote_, n = e.getFieldValue("COLUMN"), o = r.valueToCode(e, "VALUE", p.ATOMIC) || null, s = {
3825
3825
  EQ: "=",
@@ -3831,19 +3831,19 @@ r.forBlock.cond_atomic_v1 = function(e) {
3831
3831
  }[e.getFieldValue("OP")];
3832
3832
  return [`{type:'ATOMIC',key:${t(n)},value:${o},operator:${t(s)}}`, p.ATOMIC];
3833
3833
  };
3834
- const Qd = {
3834
+ const Jd = {
3835
3835
  init: function() {
3836
3836
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
3837
3837
  }
3838
3838
  };
3839
- U.cond_logic_container_v1 = Qd;
3840
- const Zd = {
3839
+ U.cond_logic_container_v1 = Jd;
3840
+ const Qd = {
3841
3841
  init: function() {
3842
3842
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
3843
3843
  }
3844
3844
  };
3845
- U.cond_logic_item_v1 = Zd;
3846
- const eh = {
3845
+ U.cond_logic_item_v1 = Qd;
3846
+ const Zd = {
3847
3847
  init: function() {
3848
3848
  this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
3849
3849
  new $([
@@ -3919,7 +3919,7 @@ const eh = {
3919
3919
  this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setCheck("Condition");
3920
3920
  }
3921
3921
  };
3922
- U.cond_logic_v1 = eh;
3922
+ U.cond_logic_v1 = Zd;
3923
3923
  r.forBlock.cond_logic_v1 = function(e) {
3924
3924
  const t = r.quote_, n = e, o = n.getFieldValue("TYPE"), i = [], s = r.valueToCode(n, "VALUE", p.ATOMIC) || null;
3925
3925
  i.push(s);
@@ -3929,7 +3929,7 @@ r.forBlock.cond_logic_v1 = function(e) {
3929
3929
  }
3930
3930
  return [`{type:${t(o)},entries:[${i}]}`, p.ATOMIC];
3931
3931
  };
3932
- const th = {
3932
+ const eh = {
3933
3933
  init: function() {
3934
3934
  this.appendDummyInput().appendField("%{BKY_DATA_V1_DELETE_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_DELETE_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_DELETE_DATA_HELPURL}");
3935
3935
  },
@@ -3951,7 +3951,7 @@ const th = {
3951
3951
  ]);
3952
3952
  }
3953
3953
  };
3954
- U.delete_data_v1 = th;
3954
+ U.delete_data_v1 = eh;
3955
3955
  r.forBlock.delete_data_v1 = function(e) {
3956
3956
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null", i = r.statementToCode(e, "HANDLE");
3957
3957
  return `{
@@ -3976,7 +3976,7 @@ C([
3976
3976
  style: "procedure_blocks"
3977
3977
  }
3978
3978
  ]);
3979
- const nh = {
3979
+ const th = {
3980
3980
  init: function() {
3981
3981
  this.appendDummyInput().appendField("%{BKY_DATA_V1_QUERY_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_QUERY_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_QUERY_DATA_HELPURL}");
3982
3982
  },
@@ -4012,7 +4012,7 @@ const nh = {
4012
4012
  ]);
4013
4013
  }
4014
4014
  };
4015
- U.query_data_v1 = nh;
4015
+ U.query_data_v1 = th;
4016
4016
  r.forBlock.query_data_v1 = function(e) {
4017
4017
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null";
4018
4018
  let i = "null";
@@ -4082,19 +4082,19 @@ r.forBlock.query_extra_sortby_v1 = function(e) {
4082
4082
  const t = r.valueToCode(e, "COLUMN", p.ATOMIC) || "''", n = r.valueToCode(e, "DESC", p.ATOMIC) || !1;
4083
4083
  return [`{type:'sortby',value:${t},value2:${n}}`, p.ATOMIC];
4084
4084
  };
4085
- const oh = {
4085
+ const nh = {
4086
4086
  init: function() {
4087
4087
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
4088
4088
  }
4089
4089
  };
4090
- U.select_column_container_v1 = oh;
4091
- const ih = {
4090
+ U.select_column_container_v1 = nh;
4091
+ const oh = {
4092
4092
  init: function() {
4093
4093
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
4094
4094
  }
4095
4095
  };
4096
- U.select_column_item_v1 = ih;
4097
- const sh = {
4096
+ U.select_column_item_v1 = oh;
4097
+ const ih = {
4098
4098
  init: function() {
4099
4099
  this.space = {
4100
4100
  id: "",
@@ -4283,7 +4283,7 @@ const sh = {
4283
4283
  this.setWarningText(null);
4284
4284
  }
4285
4285
  };
4286
- U.select_column_v1 = sh;
4286
+ U.select_column_v1 = ih;
4287
4287
  r.forBlock.select_column_v1 = function(e) {
4288
4288
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
4289
4289
  for (let c = 0; c < n.itemCount_; c++) {
@@ -4293,7 +4293,7 @@ r.forBlock.select_column_v1 = function(e) {
4293
4293
  const a = JSON.stringify(s);
4294
4294
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
4295
4295
  };
4296
- const ah = {
4296
+ const sh = {
4297
4297
  init: function() {
4298
4298
  this.space = {
4299
4299
  id: "",
@@ -4389,24 +4389,24 @@ const ah = {
4389
4389
  t.name !== this.table.name && (this.table.name = t.name), this.setWarningText(null);
4390
4390
  }
4391
4391
  };
4392
- U.select_table_v1 = ah;
4392
+ U.select_table_v1 = sh;
4393
4393
  r.forBlock.select_table_v1 = function(e) {
4394
4394
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id;
4395
4395
  return [`{spaceid:${t(o)},tableid:${t(i)}}`, p.ATOMIC];
4396
4396
  };
4397
- const rh = {
4397
+ const ah = {
4398
4398
  init: function() {
4399
4399
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
4400
4400
  }
4401
4401
  };
4402
- U.update_column_container_v1 = rh;
4403
- const lh = {
4402
+ U.update_column_container_v1 = ah;
4403
+ const rh = {
4404
4404
  init: function() {
4405
4405
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
4406
4406
  }
4407
4407
  };
4408
- U.update_column_item_v1 = lh;
4409
- const ch = {
4408
+ U.update_column_item_v1 = rh;
4409
+ const lh = {
4410
4410
  init: function() {
4411
4411
  this.space = {
4412
4412
  id: "",
@@ -4614,7 +4614,7 @@ const ch = {
4614
4614
  this.setWarningText(null);
4615
4615
  }
4616
4616
  };
4617
- U.update_column_v1 = ch;
4617
+ U.update_column_v1 = lh;
4618
4618
  r.forBlock.update_column_v1 = function(e) {
4619
4619
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
4620
4620
  for (let c = 0; c < n.itemCount_; c++) {
@@ -4624,7 +4624,7 @@ r.forBlock.update_column_v1 = function(e) {
4624
4624
  const a = JSON.stringify(s);
4625
4625
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
4626
4626
  };
4627
- const uh = {
4627
+ const ch = {
4628
4628
  init: function() {
4629
4629
  this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_UPDATE_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_UPDATE_DATA_HELPURL}");
4630
4630
  },
@@ -4647,7 +4647,7 @@ const uh = {
4647
4647
  ]);
4648
4648
  }
4649
4649
  };
4650
- U.update_data_v1 = uh;
4650
+ U.update_data_v1 = ch;
4651
4651
  r.forBlock.update_data_v1 = function(e) {
4652
4652
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null", i = r.statementToCode(e, "HANDLE");
4653
4653
  return `{
@@ -4659,19 +4659,19 @@ ${t}var __data__ = res.data;
4659
4659
  ${i}}
4660
4660
  `;
4661
4661
  };
4662
- const ph = L.xml, _h = {
4662
+ const uh = L.xml, ph = {
4663
4663
  init: function() {
4664
4664
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
4665
4665
  }
4666
4666
  };
4667
- U.list_create_container_v1 = _h;
4668
- const dh = {
4667
+ U.list_create_container_v1 = ph;
4668
+ const _h = {
4669
4669
  init: function() {
4670
4670
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("list_blocks"), this.contextMenu = !1;
4671
4671
  }
4672
4672
  };
4673
- U.list_create_item_v1 = dh;
4674
- const hh = {
4673
+ U.list_create_item_v1 = _h;
4674
+ const dh = {
4675
4675
  init: function() {
4676
4676
  this.itemCount_ = 0, this.setMutator(
4677
4677
  new Wt.MutatorIcon(
@@ -4681,7 +4681,7 @@ const hh = {
4681
4681
  ), this.setOutput(!0, "Array"), this.setStyle("list_blocks"), this.setTooltip("%{BKY_LIST_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_LIST_V1_CREATE_HELPURL}");
4682
4682
  },
4683
4683
  mutationToDom: function() {
4684
- const e = ph.createElement("mutation");
4684
+ const e = uh.createElement("mutation");
4685
4685
  return e.setAttribute("items", String(this.itemCount_)), e;
4686
4686
  },
4687
4687
  domToMutation: function(e) {
@@ -4755,7 +4755,7 @@ const hh = {
4755
4755
  this.removeInput("ADD" + e);
4756
4756
  }
4757
4757
  };
4758
- U.list_create_v1 = hh;
4758
+ U.list_create_v1 = dh;
4759
4759
  r.forBlock.list_create_v1 = function(e) {
4760
4760
  const t = e, n = new Array(t.itemCount_);
4761
4761
  for (let i = 0; i < t.itemCount_; i++)
@@ -4971,7 +4971,7 @@ r.forBlock.list_set_v1 = function(e) {
4971
4971
  return `${t}[${n}] = ${o};
4972
4972
  `;
4973
4973
  };
4974
- const fh = {
4974
+ const hh = {
4975
4975
  // logic_compare
4976
4976
  EQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_EQ}",
4977
4977
  NEQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_NEQ}",
@@ -4985,7 +4985,7 @@ const fh = {
4985
4985
  };
4986
4986
  be.register(
4987
4987
  "logic_op_tooltip_v1",
4988
- be.buildTooltipForDropdown("OP", fh)
4988
+ be.buildTooltipForDropdown("OP", hh)
4989
4989
  );
4990
4990
  C([
4991
4991
  {
@@ -5010,7 +5010,7 @@ C([
5010
5010
  r.forBlock.logic_boolean_v1 = function(e) {
5011
5011
  return [e.getFieldValue("BOOL") === "TRUE" ? "true" : "false", p.ATOMIC];
5012
5012
  };
5013
- const gh = {
5013
+ const fh = {
5014
5014
  onchange: function(e) {
5015
5015
  this.prevBlocks_ || (this.prevBlocks_ = [null, null]);
5016
5016
  const t = this.getInputTargetBlock("A"), n = this.getInputTargetBlock("B");
@@ -5030,7 +5030,7 @@ const gh = {
5030
5030
  be.register(
5031
5031
  "logic_compare_v1",
5032
5032
  function() {
5033
- this.mixin(gh);
5033
+ this.mixin(fh);
5034
5034
  }
5035
5035
  );
5036
5036
  C([
@@ -5080,7 +5080,7 @@ r.forBlock.logic_compare_v1 = function(e) {
5080
5080
  const i = r.valueToCode(e, "A", o) || "0", s = r.valueToCode(e, "B", o) || "0";
5081
5081
  return [`${i} ${n} ${s}`, o];
5082
5082
  };
5083
- const mh = {
5083
+ const gh = {
5084
5084
  elseIfCount_: 0,
5085
5085
  hasElse_: !1,
5086
5086
  mutationToDom: function() {
@@ -5208,7 +5208,7 @@ const mh = {
5208
5208
  };
5209
5209
  be.registerMutator(
5210
5210
  "logic_if_v1_mutator",
5211
- mh,
5211
+ gh,
5212
5212
  void 0,
5213
5213
  ["logic_if_else_if_v1", "logic_if_else_v1"]
5214
5214
  );
@@ -5354,7 +5354,7 @@ r.forBlock.logic_operation_v1 = function(e) {
5354
5354
  }
5355
5355
  return [`${o} ${t} ${i}`, n];
5356
5356
  };
5357
- const Th = {
5357
+ const mh = {
5358
5358
  prevParentConnection_: null,
5359
5359
  onchange: function(e) {
5360
5360
  const t = this.getInputTargetBlock("THEN"), n = this.getInputTargetBlock("ELSE"), o = this.outputConnection.targetConnection;
@@ -5369,7 +5369,7 @@ const Th = {
5369
5369
  this.prevParentConnection_ = o;
5370
5370
  }
5371
5371
  };
5372
- be.registerMixin("logic_ternary_v1", Th);
5372
+ be.registerMixin("logic_ternary_v1", mh);
5373
5373
  C([
5374
5374
  {
5375
5375
  type: "logic_ternary_v1",
@@ -5406,7 +5406,7 @@ r.forBlock.logic_ternary_v1 = function(e) {
5406
5406
  const t = r.valueToCode(e, "IF", p.CONDITIONAL) || "false", n = r.valueToCode(e, "THEN", p.CONDITIONAL) || "null", o = r.valueToCode(e, "ELSE", p.CONDITIONAL) || "null";
5407
5407
  return [t + " ? " + n + " : " + o, p.CONDITIONAL];
5408
5408
  };
5409
- const Eh = {
5409
+ const Th = {
5410
5410
  customContextMenu: function(e) {
5411
5411
  if (this.isInFlyout)
5412
5412
  return;
@@ -5428,7 +5428,7 @@ const Eh = {
5428
5428
  };
5429
5429
  be.registerMixin(
5430
5430
  "contextMenu_newGetVariableBlock_v1",
5431
- Eh
5431
+ Th
5432
5432
  );
5433
5433
  be.register(
5434
5434
  "flow_control_tooltip_v1",
@@ -5437,16 +5437,16 @@ be.register(
5437
5437
  CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
5438
5438
  })
5439
5439
  );
5440
- const Ah = /* @__PURE__ */ new Set([
5440
+ const Eh = /* @__PURE__ */ new Set([
5441
5441
  "repeat_v1",
5442
5442
  "for_each_v1",
5443
5443
  "for_v1",
5444
5444
  "while_until_v1"
5445
- ]), vh = {
5445
+ ]), Ah = {
5446
5446
  getSurroundLoop: function() {
5447
5447
  let e = this;
5448
5448
  do {
5449
- if (Ah.has(e.type))
5449
+ if (Eh.has(e.type))
5450
5450
  return !0;
5451
5451
  e = e == null ? void 0 : e.getSurroundParent();
5452
5452
  } while (e);
@@ -5469,7 +5469,7 @@ const Ah = /* @__PURE__ */ new Set([
5469
5469
  };
5470
5470
  be.registerMixin(
5471
5471
  "flow_control_in_loop_check_v1",
5472
- vh
5472
+ Ah
5473
5473
  );
5474
5474
  C([
5475
5475
  {
@@ -5634,7 +5634,7 @@ ${o}
5634
5634
  }
5635
5635
  `;
5636
5636
  };
5637
- const Oh = {
5637
+ const vh = {
5638
5638
  // math_arithmetic
5639
5639
  ADD: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_ADD}",
5640
5640
  SUBTRACT: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_SUBTRACT}",
@@ -5668,7 +5668,7 @@ const Oh = {
5668
5668
  };
5669
5669
  be.register(
5670
5670
  "math_op_tooltip_v1",
5671
- be.buildTooltipForDropdown("OP", Oh)
5671
+ be.buildTooltipForDropdown("OP", vh)
5672
5672
  );
5673
5673
  C([
5674
5674
  {
@@ -6271,21 +6271,21 @@ r.forBlock.math_trig_v1 = function(e) {
6271
6271
  }
6272
6272
  return [o, p.DIVISION];
6273
6273
  };
6274
- const bh = L.xml, Ih = {
6274
+ const Oh = L.xml, bh = {
6275
6275
  init: function() {
6276
6276
  this.appendDummyInput().appendField(
6277
6277
  "%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"
6278
6278
  ), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
6279
6279
  }
6280
6280
  };
6281
- U.object_create_container_v1 = Ih;
6282
- const yh = {
6281
+ U.object_create_container_v1 = bh;
6282
+ const Ih = {
6283
6283
  init: function() {
6284
6284
  this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
6285
6285
  }
6286
6286
  };
6287
- U.object_create_item_v1 = yh;
6288
- const Ch = {
6287
+ U.object_create_item_v1 = Ih;
6288
+ const yh = {
6289
6289
  init: function() {
6290
6290
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
6291
6291
  new Wt.MutatorIcon(
@@ -6295,7 +6295,7 @@ const Ch = {
6295
6295
  ), this.setOutput(!0, "Object"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_OBJECT_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_OBJECT_V1_CREATE_HELPURL}");
6296
6296
  },
6297
6297
  mutationToDom: function() {
6298
- const e = bh.createElement("mutation");
6298
+ const e = Oh.createElement("mutation");
6299
6299
  return e.setAttribute("items", String(this.itemCount_)), e;
6300
6300
  },
6301
6301
  domToMutation: function(e) {
@@ -6361,7 +6361,7 @@ const Ch = {
6361
6361
  this.removeInput("ADD" + e);
6362
6362
  }
6363
6363
  };
6364
- U.object_create_v1 = Ch;
6364
+ U.object_create_v1 = yh;
6365
6365
  r.forBlock.object_create_v1 = function(e) {
6366
6366
  const t = e;
6367
6367
  let n = "{";
@@ -6619,13 +6619,13 @@ C([
6619
6619
  r.forBlock.object_to_json_v1 = function(e) {
6620
6620
  return [`__jsonStringifyV1__(${r.valueToCode(e, "OBJECT", p.NONE) || "null"})`, p.FUNCTION_CALL];
6621
6621
  };
6622
- const sa = L.xml, Nh = {
6622
+ const aa = L.xml, Ch = {
6623
6623
  init: function() {
6624
6624
  this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new Yl(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
6625
6625
  }
6626
6626
  };
6627
- U.procedure_def_container_v1 = Nh;
6628
- const kh = {
6627
+ U.procedure_def_container_v1 = Ch;
6628
+ const Nh = {
6629
6629
  init: function() {
6630
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;
@@ -6647,8 +6647,8 @@ const kh = {
6647
6647
  return e;
6648
6648
  }
6649
6649
  };
6650
- U.procedure_def_item_v1 = kh;
6651
- const Lh = {
6650
+ U.procedure_def_item_v1 = Nh;
6651
+ const kh = {
6652
6652
  init: function() {
6653
6653
  this.withReturn = !1, this.args = [];
6654
6654
  const e = new wo(
@@ -6662,9 +6662,9 @@ const Lh = {
6662
6662
  ), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_DEF_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_DEF_HELPURL}");
6663
6663
  },
6664
6664
  mutationToDom: function() {
6665
- const e = sa.createElement("mutation");
6665
+ const e = aa.createElement("mutation");
6666
6666
  return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), this.args.forEach((t) => {
6667
- const n = sa.createElement("arg");
6667
+ const n = aa.createElement("arg");
6668
6668
  n.setAttribute("name", t.name), n.setAttribute("id", t.id), e.appendChild(n);
6669
6669
  }), e;
6670
6670
  },
@@ -6741,7 +6741,7 @@ const Lh = {
6741
6741
  o.setKeyName(`__param@${t.id}__`, t.name, !1);
6742
6742
  else
6743
6743
  try {
6744
- w.disable(), o = ss(
6744
+ w.disable(), o = as(
6745
6745
  this.workspace,
6746
6746
  `__param@${t.id}__`,
6747
6747
  t.name,
@@ -6753,13 +6753,13 @@ const Lh = {
6753
6753
  }
6754
6754
  }
6755
6755
  };
6756
- U.procedure_def_v1 = Lh;
6757
- const Sh = L.xml, Bh = {
6756
+ U.procedure_def_v1 = kh;
6757
+ const Lh = L.xml, Sh = {
6758
6758
  init: function() {
6759
6759
  this.withReturn = !1, this.appendDummyInput("DUMMY").appendField("%{BKY_PROCEDURE_RETURN}"), this.appendValueInput("VALUE").appendField("%{BKY_PROCEDURE_RETURN}").setVisible(!1), this.setPreviousStatement(!0), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_RETURN_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_RETURN_HELPURL}");
6760
6760
  },
6761
6761
  mutationToDom: function() {
6762
- const e = Sh.createElement("mutation");
6762
+ const e = Lh.createElement("mutation");
6763
6763
  return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), e;
6764
6764
  },
6765
6765
  domToMutation: function(e) {
@@ -6810,7 +6810,7 @@ const Sh = L.xml, Bh = {
6810
6810
  e.type === "procedure_def_v1" || e.type === "func_entry_v1" ? this.setWarningText(null) : this.setWarningText("the block can only be used in procedure block");
6811
6811
  }
6812
6812
  };
6813
- U.procedure_return_v1 = Bh;
6813
+ U.procedure_return_v1 = Sh;
6814
6814
  r.forBlock.procedure_return_v1 = function(e) {
6815
6815
  const t = e;
6816
6816
  return t.withReturn ? `return ${r.valueToCode(t, "VALUE", p.NONE) || "null"};
@@ -6838,9 +6838,9 @@ C([
6838
6838
  r.forBlock.text_v1 = function(e) {
6839
6839
  return [r.quote_(e.getFieldValue("TEXT")), p.ATOMIC];
6840
6840
  };
6841
- const Rh = /^\s*'([^']|\\')*'\s*$/;
6841
+ const Bh = /^\s*'([^']|\\')*'\s*$/;
6842
6842
  function fo(e) {
6843
- return Rh.test(e) ? [e, p.ATOMIC] : [`String(${e})`, p.FUNCTION_CALL];
6843
+ return Bh.test(e) ? [e, p.ATOMIC] : [`String(${e})`, p.FUNCTION_CALL];
6844
6844
  }
6845
6845
  be.register(
6846
6846
  "text_append_tooltip_v1",
@@ -6874,7 +6874,7 @@ r.forBlock.text_append_v1 = function(e) {
6874
6874
  var o;
6875
6875
  const t = (o = r.nameDB_) == null ? void 0 : o.getName(
6876
6876
  e.getFieldValue("VAR"),
6877
- ts.NameType.VARIABLE
6877
+ ns.NameType.VARIABLE
6878
6878
  ), n = r.valueToCode(e, "TEXT", p.NONE) || "''";
6879
6879
  return `${t} += ${fo(n)};
6880
6880
  `;
@@ -7045,10 +7045,10 @@ C([
7045
7045
  r.forBlock.text_is_empty_v1 = function(e) {
7046
7046
  return [`!${r.valueToCode(e, "VALUE", p.MEMBER) || "''"}.length`, p.LOGICAL_NOT];
7047
7047
  };
7048
- const Dh = L.xml, Mh = {
7048
+ const Rh = L.xml, Dh = {
7049
7049
  itemCount_: 0,
7050
7050
  mutationToDom: function() {
7051
- const e = Dh.createElement("mutation");
7051
+ const e = Rh.createElement("mutation");
7052
7052
  return e.setAttribute("items", `${this.itemCount_}`), e;
7053
7053
  },
7054
7054
  domToMutation: function(e) {
@@ -7120,13 +7120,13 @@ const Dh = L.xml, Mh = {
7120
7120
  for (let e = this.itemCount_; this.getInput("ADD" + e); e++)
7121
7121
  this.removeInput("ADD" + e);
7122
7122
  }
7123
- }, Ph = function() {
7123
+ }, Mh = function() {
7124
7124
  this.itemCount_ = 2, this.updateShape_(), this.setMutator(new Wt.MutatorIcon(["text_join_item_v1"], this));
7125
7125
  };
7126
7126
  be.registerMutator(
7127
7127
  "text_join_mutator_v1",
7128
- Mh,
7129
- Ph
7128
+ Dh,
7129
+ Mh
7130
7130
  );
7131
7131
  C([
7132
7132
  {
@@ -7358,7 +7358,7 @@ r.forBlock.text_trim_v1 = function(e) {
7358
7358
  }[e.getFieldValue("MODE")];
7359
7359
  return [`__trimV1__(${t}, ${o})`, p.ATOMIC];
7360
7360
  };
7361
- const Uh = {
7361
+ const Ph = {
7362
7362
  init: function() {
7363
7363
  this.appendDummyInput().appendField("%{BKY_TIME_V1_CREATE_TIMER_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("time_blocks"), this.setTooltip("%{BKY_TIME_V1_CREATE_TIMER_TOOLTIP}"), this.setHelpUrl("%{BKY_TIME_V1_CREATE_TIMER_HELPURL}");
7364
7364
  },
@@ -7384,7 +7384,7 @@ const Uh = {
7384
7384
  ));
7385
7385
  }
7386
7386
  };
7387
- U.create_timer_v1 = Uh;
7387
+ U.create_timer_v1 = Ph;
7388
7388
  r.forBlock.create_timer_v1 = function(e) {
7389
7389
  const t = r.valueToCode(e, "INTERVAL", p.ATOMIC) || "1000", n = r.valueToCode(e, "LOOP", p.ATOMIC) || "false", o = r.valueToCode(e, "COUNT", p.ATOMIC) || "1", i = r.valueToCode(e, "IMMEDIATE", p.ATOMIC) || "false", s = r.statementToCode(e, "CALLBACK");
7390
7390
  return `__createTimerV1__(${t}, ${n}, ${o}, ${i}, function() {
@@ -7413,18 +7413,18 @@ r.forBlock.delay_v1 = function(e) {
7413
7413
  return `__delayV1__(${r.valueToCode(e, "DURATION", p.ATOMIC) || "0"});
7414
7414
  `;
7415
7415
  };
7416
- const xh = {
7416
+ const Uh = {
7417
7417
  customContextMenu: function(e) {
7418
7418
  if (this.isInFlyout) {
7419
7419
  if (this.type === "variables_get_v1" || this.type === "variables_get_v1_reporter") {
7420
7420
  const t = {
7421
7421
  text: T.RENAME_VARIABLE,
7422
7422
  enabled: !0,
7423
- callback: wh(this)
7423
+ callback: xh(this)
7424
7424
  }, n = this.getField("VAR").getText(), o = {
7425
7425
  text: T.DELETE_VARIABLE.replace("%1", n),
7426
7426
  enabled: !0,
7427
- callback: Vh(this)
7427
+ callback: wh(this)
7428
7428
  };
7429
7429
  e.unshift(t), e.unshift(o);
7430
7430
  }
@@ -7442,12 +7442,12 @@ const xh = {
7442
7442
  });
7443
7443
  }
7444
7444
  }
7445
- }, wh = function(e) {
7445
+ }, xh = function(e) {
7446
7446
  return function() {
7447
7447
  const t = e.workspace, o = e.getField("VAR").getVariable();
7448
7448
  po.renameVariable(t, o);
7449
7449
  };
7450
- }, Vh = function(e) {
7450
+ }, wh = function(e) {
7451
7451
  return function() {
7452
7452
  const t = e.workspace, o = e.getField("VAR").getVariable();
7453
7453
  t.deleteVariableById(o.getId()), t.refreshToolboxSelection();
@@ -7455,7 +7455,7 @@ const xh = {
7455
7455
  };
7456
7456
  be.registerMixin(
7457
7457
  "context_menu_variable_v1",
7458
- xh
7458
+ Uh
7459
7459
  );
7460
7460
  C([
7461
7461
  {
@@ -7477,7 +7477,7 @@ C([
7477
7477
  r.forBlock.variable_get_v1 = function(e) {
7478
7478
  return [r.nameDB_.getName(
7479
7479
  e.getFieldValue("VAR"),
7480
- ts.NameType.VARIABLE
7480
+ ns.NameType.VARIABLE
7481
7481
  ), p.ATOMIC];
7482
7482
  };
7483
7483
  C([
@@ -7506,13 +7506,13 @@ C([
7506
7506
  r.forBlock.variable_set_v1 = function(e) {
7507
7507
  const t = r.nameDB_.getName(
7508
7508
  e.getFieldValue("VAR"),
7509
- ts.NameType.VARIABLE
7509
+ ns.NameType.VARIABLE
7510
7510
  ), n = r.valueToCode(e, "VALUE", p.ASSIGNMENT) || "0";
7511
7511
  return `${t} = ${n};
7512
7512
  `;
7513
7513
  };
7514
7514
  const Q = L.xml;
7515
- function Fh() {
7515
+ function Vh() {
7516
7516
  const e = [];
7517
7517
  if (En().length > 0) {
7518
7518
  {
@@ -7664,9 +7664,9 @@ function Fh() {
7664
7664
  }
7665
7665
  const Co = {
7666
7666
  name: "DATA_CATEGORY",
7667
- callback: Fh
7667
+ callback: Vh
7668
7668
  }, tn = L.xml;
7669
- function Yh(e) {
7669
+ function Fh(e) {
7670
7670
  const t = [];
7671
7671
  if (e === "flow") {
7672
7672
  {
@@ -7703,9 +7703,9 @@ function Yh(e) {
7703
7703
  }
7704
7704
  const No = {
7705
7705
  name: "FLOW_CATEGORY",
7706
- callback: Yh
7706
+ callback: Fh
7707
7707
  }, Et = L.xml;
7708
- function Kh(e) {
7708
+ function Yh(e) {
7709
7709
  const { activeFunc: t } = V.compute, n = [];
7710
7710
  if (e === "func") {
7711
7711
  {
@@ -7754,13 +7754,13 @@ function Kh(e) {
7754
7754
  }
7755
7755
  const ko = {
7756
7756
  name: "FUNC_CATEGORY",
7757
- callback: Kh
7757
+ callback: Yh
7758
7758
  };
7759
7759
  L.xml;
7760
7760
  const cr = {
7761
7761
  name: "INTERFACE_CATEGORY"
7762
7762
  }, In = L.xml;
7763
- function Hh() {
7763
+ function Kh() {
7764
7764
  const e = [];
7765
7765
  {
7766
7766
  const t = In.createElement("label");
@@ -7787,11 +7787,11 @@ function Hh() {
7787
7787
  }
7788
7788
  const Bt = {
7789
7789
  name: "PROCEDURE_CATEGORY",
7790
- callback: Hh
7790
+ callback: Kh
7791
7791
  }, ve = L.xml;
7792
- function $h() {
7792
+ function Hh() {
7793
7793
  const e = [];
7794
- if (Cd()) {
7794
+ if (yd()) {
7795
7795
  {
7796
7796
  const t = ve.createElement("label");
7797
7797
  t.setAttribute("text", T.LABEL_PAGE), e.push(t);
@@ -7801,7 +7801,7 @@ function $h() {
7801
7801
  t.setAttribute("type", "get_page_argument_v1"), e.push(t);
7802
7802
  }
7803
7803
  }
7804
- if (Ed()) {
7804
+ if (Td()) {
7805
7805
  {
7806
7806
  const t = ve.createElement("label");
7807
7807
  t.setAttribute("text", T.LABEL_COMP), e.push(t);
@@ -7877,7 +7877,7 @@ function $h() {
7877
7877
  const t = ve.createElement("block");
7878
7878
  t.setAttribute("type", "app_env_v1"), e.push(t);
7879
7879
  }
7880
- if (as().length > 0) {
7880
+ if (rs().length > 0) {
7881
7881
  const t = ve.createElement("block");
7882
7882
  t.setAttribute("type", "navigate_to_v1"), e.push(t);
7883
7883
  }
@@ -7885,9 +7885,9 @@ function $h() {
7885
7885
  }
7886
7886
  const Lo = {
7887
7887
  name: "UI_CATEGORY",
7888
- callback: $h
7888
+ callback: Hh
7889
7889
  }, ao = L.xml;
7890
- function Gh() {
7890
+ function $h() {
7891
7891
  const e = Pt(), t = [];
7892
7892
  {
7893
7893
  const o = ao.createElement("label");
@@ -7925,7 +7925,7 @@ function Gh() {
7925
7925
  }
7926
7926
  const Rt = {
7927
7927
  name: "VARIABLE_CATEGORY",
7928
- callback: Gh
7928
+ callback: $h
7929
7929
  };
7930
7930
  Ra.setConfirm(async (e, t) => {
7931
7931
  const n = await Jl({
@@ -7954,7 +7954,7 @@ const ur = (e, t, n) => {
7954
7954
  );
7955
7955
  });
7956
7956
  };
7957
- async function aa(e) {
7957
+ async function ra(e) {
7958
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
  }
@@ -7979,7 +7979,7 @@ function _r() {
7979
7979
  const t = (n = e.getTopBlocks(!0)) == null ? void 0 : n[0];
7980
7980
  t && pr(t.id);
7981
7981
  }
7982
- class jh {
7982
+ class Gh {
7983
7983
  init({ contextMenu: t = !0, shortcut: n = !0 } = {
7984
7984
  contextMenu: !0,
7985
7985
  shortcut: !0
@@ -8032,7 +8032,7 @@ class jh {
8032
8032
  if (!o)
8033
8033
  return;
8034
8034
  const i = JSON.parse(o);
8035
- i && n.workspace && ks.paste(i, n.workspace);
8035
+ i && n.workspace && Ls.paste(i, n.workspace);
8036
8036
  },
8037
8037
  scopeType: rn.ScopeType.WORKSPACE,
8038
8038
  id: "blockPasteFromStorage",
@@ -8127,14 +8127,14 @@ class jh {
8127
8127
  if (!l)
8128
8128
  return !1;
8129
8129
  const c = JSON.parse(l);
8130
- return c ? (ks.paste(c, s), !0) : !1;
8130
+ return c ? (Ls.paste(c, s), !0) : !1;
8131
8131
  },
8132
8132
  keyCodes: [t, n, o]
8133
8133
  };
8134
8134
  Fe.registry.register(i);
8135
8135
  }
8136
8136
  }
8137
- class Wh {
8137
+ class jh {
8138
8138
  init() {
8139
8139
  const t = rn.registry.getItem("cleanWorkspace");
8140
8140
  t && (t.callback = function(n) {
@@ -8158,7 +8158,7 @@ function dr(e) {
8158
8158
  const t = e.getParent();
8159
8159
  return t && dr(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
8160
8160
  }
8161
- class Xh {
8161
+ class Wh {
8162
8162
  init() {
8163
8163
  const t = rn.registry.getItem("blockDisable");
8164
8164
  t && (t.preconditionFn = function(n) {
@@ -9012,17 +9012,17 @@ Gl.register(`
9012
9012
  position: relative;
9013
9013
  }
9014
9014
  `);
9015
- function zh() {
9015
+ function Xh() {
9016
9016
  jl.register("field_colour", hr);
9017
9017
  }
9018
9018
  Fe.registry.unregister(_o.names.ESCAPE);
9019
+ const zh = new Gh();
9020
+ zh.init({ contextMenu: !0, shortcut: !0 });
9019
9021
  const qh = new jh();
9020
- qh.init({ contextMenu: !0, shortcut: !0 });
9022
+ qh.init();
9021
9023
  const Jh = new Wh();
9022
9024
  Jh.init();
9023
- const Qh = new Xh();
9024
- Qh.init();
9025
- zh();
9025
+ Xh();
9026
9026
  Vo.Classic.blockStyles = {
9027
9027
  color_blocks: {
9028
9028
  colourPrimary: "#a5745b",
@@ -9153,7 +9153,7 @@ Vo.Classic.categoryStyles = {
9153
9153
  colour: "#a55b80"
9154
9154
  }
9155
9155
  };
9156
- const Zh = Da.defineTheme("light", {
9156
+ const Qh = Da.defineTheme("light", {
9157
9157
  name: "light",
9158
9158
  base: Vo.Classic,
9159
9159
  componentStyles: {
@@ -9169,7 +9169,7 @@ const Zh = Da.defineTheme("light", {
9169
9169
  scrollbarOpacity: 0.4,
9170
9170
  cursorColour: ""
9171
9171
  }
9172
- }), ef = Da.defineTheme("dark", {
9172
+ }), Zh = Da.defineTheme("dark", {
9173
9173
  name: "dark",
9174
9174
  base: Vo.Classic,
9175
9175
  componentStyles: {
@@ -9186,14 +9186,14 @@ const Zh = Da.defineTheme("light", {
9186
9186
  cursorColour: ""
9187
9187
  }
9188
9188
  });
9189
- function tf(e) {
9189
+ function ef(e) {
9190
9190
  const t = Pt();
9191
9191
  switch (e) {
9192
9192
  case "light":
9193
- t.setTheme(Zh);
9193
+ t.setTheme(Qh);
9194
9194
  break;
9195
9195
  case "dark":
9196
- t.setTheme(ef);
9196
+ t.setTheme(Zh);
9197
9197
  break;
9198
9198
  }
9199
9199
  }
@@ -9896,7 +9896,7 @@ const Xo = {
9896
9896
  }
9897
9897
  }
9898
9898
  ]
9899
- }, nf = {
9899
+ }, tf = {
9900
9900
  kind: "categoryToolbox",
9901
9901
  contents: [
9902
9902
  {
@@ -9933,7 +9933,7 @@ const Xo = {
9933
9933
  custom: cr.name
9934
9934
  }
9935
9935
  ]
9936
- }, of = {
9936
+ }, nf = {
9937
9937
  kind: "categoryToolbox",
9938
9938
  contents: [
9939
9939
  {
@@ -9974,7 +9974,7 @@ const Xo = {
9974
9974
  custom: Bt.name
9975
9975
  }
9976
9976
  ]
9977
- }, sf = {
9977
+ }, of = {
9978
9978
  kind: "categoryToolbox",
9979
9979
  contents: [
9980
9980
  {
@@ -10015,7 +10015,7 @@ const Xo = {
10015
10015
  custom: Bt.name
10016
10016
  }
10017
10017
  ]
10018
- }, af = {
10018
+ }, sf = {
10019
10019
  kind: "categoryToolbox",
10020
10020
  contents: [
10021
10021
  {
@@ -10052,7 +10052,7 @@ const Xo = {
10052
10052
  custom: cr.name
10053
10053
  }
10054
10054
  ]
10055
- }, rf = /* @__PURE__ */ ft({
10055
+ }, af = /* @__PURE__ */ ft({
10056
10056
  __name: "index",
10057
10057
  props: {
10058
10058
  lock: { type: Boolean }
@@ -10073,21 +10073,21 @@ const Xo = {
10073
10073
  }), (i, s) => {
10074
10074
  const a = De("v-btn"), l = De("v-tooltip");
10075
10075
  return Ne(), pt(l, {
10076
- text: W(t)("x-block-lib.tip.hotkeyCtrlQ")
10076
+ text: X(t)("x-block-lib.tip.hotkeyCtrlQ")
10077
10077
  }, {
10078
10078
  activator: _t(({ props: c }) => [
10079
10079
  Oe(a, es(c, {
10080
10080
  variant: "outlined",
10081
10081
  density: "comfortable",
10082
- icon: W(nc),
10083
- onClick: s[0] || (s[0] = (_) => W(ut).emit("cleanWorkspace"))
10082
+ icon: X(tc),
10083
+ onClick: s[0] || (s[0] = (_) => X(ut).emit("cleanWorkspace"))
10084
10084
  }), null, 16, ["icon"])
10085
10085
  ]),
10086
10086
  _: 1
10087
10087
  }, 8, ["text"]);
10088
10088
  };
10089
10089
  }
10090
- }), lf = /* @__PURE__ */ ft({
10090
+ }), rf = /* @__PURE__ */ ft({
10091
10091
  __name: "index",
10092
10092
  props: {
10093
10093
  modelValue: { type: Boolean, required: !0 },
@@ -10099,13 +10099,13 @@ const Xo = {
10099
10099
  return (o, i) => {
10100
10100
  const s = De("v-btn"), a = De("v-tooltip");
10101
10101
  return Ne(), pt(a, {
10102
- text: W(t)("x-block-lib.tip.hotkeyCtrlW")
10102
+ text: X(t)("x-block-lib.tip.hotkeyCtrlW")
10103
10103
  }, {
10104
10104
  activator: _t(({ props: l }) => [
10105
10105
  Oe(s, es(l, {
10106
10106
  variant: "outlined",
10107
10107
  density: "comfortable",
10108
- icon: n.value ? W(sc) : W(ac),
10108
+ icon: n.value ? X(ic) : X(sc),
10109
10109
  onClick: i[0] || (i[0] = (c) => n.value = !n.value)
10110
10110
  }), null, 16, ["icon"])
10111
10111
  ]),
@@ -10114,12 +10114,12 @@ const Xo = {
10114
10114
  };
10115
10115
  }
10116
10116
  });
10117
- var cf = Object.defineProperty, So = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, ra = (e, t, n) => t in e ? cf(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
- mr.call(t, n) && ra(e, n, t[n]);
10119
+ mr.call(t, n) && la(e, n, t[n]);
10120
10120
  if (So)
10121
10121
  for (var n of So(t))
10122
- Tr.call(t, n) && ra(e, n, t[n]);
10122
+ Tr.call(t, n) && la(e, n, t[n]);
10123
10123
  return e;
10124
10124
  }, Er = (e, t) => {
10125
10125
  var n = {};
@@ -10131,76 +10131,76 @@ var cf = Object.defineProperty, So = Object.getOwnPropertySymbols, mr = Object.p
10131
10131
  return n;
10132
10132
  };
10133
10133
  const Ar = "[vue-draggable-plus]: ";
10134
- function uf(e) {
10134
+ function cf(e) {
10135
10135
  console.warn(Ar + e);
10136
10136
  }
10137
- function pf(e) {
10137
+ function uf(e) {
10138
10138
  console.error(Ar + e);
10139
10139
  }
10140
- function la(e, t, n) {
10140
+ function ca(e, t, n) {
10141
10141
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
10142
10142
  }
10143
- function _f(e) {
10143
+ function pf(e) {
10144
10144
  return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
10145
10145
  }
10146
- function df(e) {
10147
- return Object.keys(e).reduce((t, n) => (typeof e[n] < "u" && (t[_f(n)] = e[n]), t), {});
10146
+ function _f(e) {
10147
+ return Object.keys(e).reduce((t, n) => (typeof e[n] < "u" && (t[pf(n)] = e[n]), t), {});
10148
10148
  }
10149
- function ca(e, t) {
10149
+ function ua(e, t) {
10150
10150
  return Array.isArray(e) && e.splice(t, 1), e;
10151
10151
  }
10152
- function ua(e, t, n) {
10152
+ function pa(e, t, n) {
10153
10153
  return Array.isArray(e) && e.splice(t, 0, n), e;
10154
10154
  }
10155
- function hf(e) {
10155
+ function df(e) {
10156
10156
  return typeof e > "u";
10157
10157
  }
10158
- function ff(e) {
10158
+ function hf(e) {
10159
10159
  return typeof e == "string";
10160
10160
  }
10161
- function pa(e, t, n) {
10161
+ function _a(e, t, n) {
10162
10162
  const o = e.children[n];
10163
10163
  e.insertBefore(t, o);
10164
10164
  }
10165
10165
  function vi(e) {
10166
10166
  e.parentNode && e.parentNode.removeChild(e);
10167
10167
  }
10168
- function gf(e, t = document) {
10168
+ function ff(e, t = document) {
10169
10169
  var n;
10170
10170
  let o = null;
10171
- return typeof (t == null ? void 0 : t.querySelector) == "function" ? o = (n = t == null ? void 0 : t.querySelector) == null ? void 0 : n.call(t, e) : o = document.querySelector(e), o || uf(`Element not found: ${e}`), o;
10171
+ return typeof (t == null ? void 0 : t.querySelector) == "function" ? o = (n = t == null ? void 0 : t.querySelector) == null ? void 0 : n.call(t, e) : o = document.querySelector(e), o || cf(`Element not found: ${e}`), o;
10172
10172
  }
10173
- function mf(e, t, n = null) {
10173
+ function gf(e, t, n = null) {
10174
10174
  return function(...o) {
10175
10175
  return e.apply(n, o), t.apply(n, o);
10176
10176
  };
10177
10177
  }
10178
- function Tf(e, t) {
10178
+ function mf(e, t) {
10179
10179
  const n = ln({}, e);
10180
10180
  return Object.keys(t).forEach((o) => {
10181
- n[o] ? n[o] = mf(e[o], t[o]) : n[o] = t[o];
10181
+ n[o] ? n[o] = gf(e[o], t[o]) : n[o] = t[o];
10182
10182
  }), n;
10183
10183
  }
10184
- function Ef(e) {
10184
+ function Tf(e) {
10185
10185
  return e instanceof HTMLElement;
10186
10186
  }
10187
- function _a(e, t) {
10187
+ function da(e, t) {
10188
10188
  Object.keys(e).forEach((n) => {
10189
10189
  t(n, e[n]);
10190
10190
  });
10191
10191
  }
10192
- function Af(e) {
10192
+ function Ef(e) {
10193
10193
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
10194
10194
  (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
10195
10195
  }
10196
- const vf = Object.assign;
10196
+ const Af = Object.assign;
10197
10197
  /**!
10198
10198
  * Sortable 1.15.2
10199
10199
  * @author RubaXa <trash@rubaxa.org>
10200
10200
  * @author owenm <owen23355@gmail.com>
10201
10201
  * @license MIT
10202
10202
  */
10203
- function da(e, t) {
10203
+ function ha(e, t) {
10204
10204
  var n = Object.keys(e);
10205
10205
  if (Object.getOwnPropertySymbols) {
10206
10206
  var o = Object.getOwnPropertySymbols(e);
@@ -10213,9 +10213,9 @@ function da(e, t) {
10213
10213
  function ht(e) {
10214
10214
  for (var t = 1; t < arguments.length; t++) {
10215
10215
  var n = arguments[t] != null ? arguments[t] : {};
10216
- t % 2 ? da(Object(n), !0).forEach(function(o) {
10217
- Of(e, o, n[o]);
10218
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : da(Object(n)).forEach(function(o) {
10216
+ t % 2 ? ha(Object(n), !0).forEach(function(o) {
10217
+ vf(e, o, n[o]);
10218
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ha(Object(n)).forEach(function(o) {
10219
10219
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
10220
10220
  });
10221
10221
  }
@@ -10229,7 +10229,7 @@ function go(e) {
10229
10229
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
10230
10230
  }, go(e);
10231
10231
  }
10232
- function Of(e, t, n) {
10232
+ function vf(e, t, n) {
10233
10233
  return t in e ? Object.defineProperty(e, t, {
10234
10234
  value: n,
10235
10235
  enumerable: !0,
@@ -10247,7 +10247,7 @@ function bt() {
10247
10247
  return e;
10248
10248
  }, bt.apply(this, arguments);
10249
10249
  }
10250
- function bf(e, t) {
10250
+ function Of(e, t) {
10251
10251
  if (e == null)
10252
10252
  return {};
10253
10253
  var n = {}, o = Object.keys(e), i, s;
@@ -10255,10 +10255,10 @@ function bf(e, t) {
10255
10255
  i = o[s], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
10256
10256
  return n;
10257
10257
  }
10258
- function If(e, t) {
10258
+ function bf(e, t) {
10259
10259
  if (e == null)
10260
10260
  return {};
10261
- var n = bf(e, t), o, i;
10261
+ var n = Of(e, t), o, i;
10262
10262
  if (Object.getOwnPropertySymbols) {
10263
10263
  var s = Object.getOwnPropertySymbols(e);
10264
10264
  for (i = 0; i < s.length; i++)
@@ -10266,19 +10266,19 @@ function If(e, t) {
10266
10266
  }
10267
10267
  return n;
10268
10268
  }
10269
- var yf = "1.15.2";
10269
+ var If = "1.15.2";
10270
10270
  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), ha = 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 = {
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
- function ne(e, t, n) {
10278
+ function te(e, t, n) {
10279
10279
  e.addEventListener(t, n, !yt && br);
10280
10280
  }
10281
- function ee(e, t, n) {
10281
+ function Z(e, t, n) {
10282
10282
  e.removeEventListener(t, n, !yt && br);
10283
10283
  }
10284
10284
  function Bo(e, t) {
@@ -10297,7 +10297,7 @@ function Bo(e, t) {
10297
10297
  return !1;
10298
10298
  }
10299
10299
  }
10300
- function Cf(e) {
10300
+ function yf(e) {
10301
10301
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
10302
10302
  }
10303
10303
  function ot(e, t, n, o) {
@@ -10308,18 +10308,18 @@ function ot(e, t, n, o) {
10308
10308
  return e;
10309
10309
  if (e === n)
10310
10310
  break;
10311
- } while (e = Cf(e));
10311
+ } while (e = yf(e));
10312
10312
  }
10313
10313
  return null;
10314
10314
  }
10315
- var fa = /\s+/g;
10315
+ var ga = /\s+/g;
10316
10316
  function ze(e, t, n) {
10317
10317
  if (e && t)
10318
10318
  if (e.classList)
10319
10319
  e.classList[n ? "add" : "remove"](t);
10320
10320
  else {
10321
- var o = (" " + e.className + " ").replace(fa, " ").replace(" " + t + " ", " ");
10322
- e.className = (o + (n ? " " + t : "")).replace(fa, " ");
10321
+ var o = (" " + e.className + " ").replace(ga, " ").replace(" " + t + " ", " ");
10322
+ e.className = (o + (n ? " " + t : "")).replace(ga, " ");
10323
10323
  }
10324
10324
  }
10325
10325
  function M(e, t, n) {
@@ -10381,7 +10381,7 @@ function Ce(e, t, n, o, i) {
10381
10381
  };
10382
10382
  }
10383
10383
  }
10384
- function ga(e, t, n) {
10384
+ function ma(e, t, n) {
10385
10385
  for (var o = Dt(e, !0), i = Ce(e)[t]; o; ) {
10386
10386
  var s = Ce(o)[n], a = void 0;
10387
10387
  if (a = i >= s, !a)
@@ -10403,7 +10403,7 @@ function mn(e, t, n, o) {
10403
10403
  }
10404
10404
  return null;
10405
10405
  }
10406
- function ls(e, t) {
10406
+ function cs(e, t) {
10407
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;
@@ -10416,7 +10416,7 @@ function Qe(e, t) {
10416
10416
  e.nodeName.toUpperCase() !== "TEMPLATE" && e !== P.clone && (!t || Bo(e, t)) && n++;
10417
10417
  return n;
10418
10418
  }
10419
- function ma(e) {
10419
+ function Ta(e) {
10420
10420
  var t = 0, n = 0, o = dt();
10421
10421
  if (e)
10422
10422
  do {
@@ -10425,7 +10425,7 @@ function ma(e) {
10425
10425
  } while (e !== o && (e = e.parentNode));
10426
10426
  return [t, n];
10427
10427
  }
10428
- function Nf(e, t) {
10428
+ function Cf(e, t) {
10429
10429
  for (var n in e)
10430
10430
  if (e.hasOwnProperty(n)) {
10431
10431
  for (var o in t)
@@ -10452,7 +10452,7 @@ function Dt(e, t) {
10452
10452
  while (n = n.parentNode);
10453
10453
  return dt();
10454
10454
  }
10455
- function kf(e, t) {
10455
+ function Nf(e, t) {
10456
10456
  if (e && t)
10457
10457
  for (var n in t)
10458
10458
  t.hasOwnProperty(n) && (e[n] = t[n]);
@@ -10472,7 +10472,7 @@ function yr(e, t) {
10472
10472
  }
10473
10473
  };
10474
10474
  }
10475
- function Lf() {
10475
+ function kf() {
10476
10476
  clearTimeout(Rn), Rn = void 0;
10477
10477
  }
10478
10478
  function Cr(e, t, n) {
@@ -10493,7 +10493,7 @@ function kr(e, t, n) {
10493
10493
  }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
10494
10494
  }
10495
10495
  var Je = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
10496
- function Sf() {
10496
+ function Lf() {
10497
10497
  var e = [], t;
10498
10498
  return {
10499
10499
  captureAnimationState: function() {
@@ -10519,7 +10519,7 @@ function Sf() {
10519
10519
  e.push(n);
10520
10520
  },
10521
10521
  removeAnimationState: function(n) {
10522
- e.splice(Nf(e, {
10522
+ e.splice(Cf(e, {
10523
10523
  target: n
10524
10524
  }), 1);
10525
10525
  },
@@ -10533,7 +10533,7 @@ function Sf() {
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
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 = Rf(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() {
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() {
@@ -10544,17 +10544,17 @@ function Sf() {
10544
10544
  if (s) {
10545
10545
  M(n, "transition", ""), M(n, "transform", "");
10546
10546
  var a = _n(this.el), l = a && a.a, c = a && a.d, _ = (o.left - i.left) / (l || 1), h = (o.top - i.top) / (c || 1);
10547
- n.animatingX = !!_, n.animatingY = !!h, M(n, "transform", "translate3d(" + _ + "px," + h + "px,0)"), this.forRepaintDummy = Bf(n), M(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), M(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
10547
+ n.animatingX = !!_, n.animatingY = !!h, M(n, "transform", "translate3d(" + _ + "px," + h + "px,0)"), this.forRepaintDummy = Sf(n), M(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), M(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
10548
10548
  M(n, "transition", ""), M(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
10549
10549
  }, s);
10550
10550
  }
10551
10551
  }
10552
10552
  };
10553
10553
  }
10554
- function Bf(e) {
10554
+ function Sf(e) {
10555
10555
  return e.offsetWidth;
10556
10556
  }
10557
- function Rf(e, t, n, o) {
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
10560
  var nn = [], bi = {
@@ -10609,7 +10609,7 @@ var nn = [], bi = {
10609
10609
  }), o;
10610
10610
  }
10611
10611
  };
10612
- function Df(e) {
10612
+ function Rf(e) {
10613
10613
  var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, l = e.fromEl, c = e.oldIndex, _ = e.newIndex, h = e.oldDraggableIndex, d = e.newDraggableIndex, g = e.originalEvent, m = e.putSortable, I = e.extraEventProperties;
10614
10614
  if (t = t || n && n[Je], !!t) {
10615
10615
  var v, G = t.options, D = "on" + o.charAt(0).toUpperCase() + o.substr(1);
@@ -10617,14 +10617,14 @@ function Df(e) {
10617
10617
  bubbles: !0,
10618
10618
  cancelable: !0
10619
10619
  }) : (v = document.createEvent("Event"), v.initEvent(o, !0, !0)), v.to = a || n, v.from = l || n, v.item = i || n, v.clone = s, v.oldIndex = c, v.newIndex = _, v.oldDraggableIndex = h, v.newDraggableIndex = d, v.originalEvent = g, v.pullMode = m ? m.lastPutMode : void 0;
10620
- var X = ht(ht({}, I), Wn.getEventProperties(o, t));
10621
- for (var te in X)
10622
- v[te] = X[te];
10620
+ var z = ht(ht({}, I), Wn.getEventProperties(o, t));
10621
+ for (var ee in z)
10622
+ v[ee] = z[ee];
10623
10623
  n && n.dispatchEvent(v), G[D] && G[D].call(t, v);
10624
10624
  }
10625
10625
  }
10626
- var Mf = ["evt"], Ge = function(e, t) {
10627
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = If(n, Mf);
10626
+ var Df = ["evt"], Ge = function(e, t) {
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,
10630
10630
  parentEl: he,
@@ -10660,7 +10660,7 @@ var Mf = ["evt"], Ge = function(e, t) {
10660
10660
  }, i));
10661
10661
  };
10662
10662
  function He(e) {
10663
- Df(ht({
10663
+ Rf(ht({
10664
10664
  putSortable: Pe,
10665
10665
  cloneEl: de,
10666
10666
  targetEl: A,
@@ -10671,7 +10671,7 @@ function He(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, Ro = !1, Do = [], Yt, nt, Ii, yi, Ta, Ea, yn, on, Mn, Pn = !1, lo = !1, To, Ve, Ci = [], Xi = !1, Mo = [], ti = typeof document < "u", co = vr, Aa = jn || yt ? "cssFloat" : "float", Pf = ti && !Or && !vr && "draggable" in document.createElement("div"), Lr = function() {
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
10675
  if (ti) {
10676
10676
  if (yt)
10677
10677
  return !1;
@@ -10688,15 +10688,15 @@ var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Ro = !1, Do =
10688
10688
  var h = a.float === "left" ? "left" : "right";
10689
10689
  return s && (l.clear === "both" || l.clear === h) ? "vertical" : "horizontal";
10690
10690
  }
10691
- return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= o && n[Aa] === "none" || s && n[Aa] === "none" && c + _ > o) ? "vertical" : "horizontal";
10692
- }, Uf = function(e, t, n) {
10691
+ return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= o && n[va] === "none" || s && n[va] === "none" && c + _ > o) ? "vertical" : "horizontal";
10692
+ }, Pf = function(e, t, n) {
10693
10693
  var o = n ? e.left : e.top, i = n ? e.right : e.bottom, s = n ? e.width : e.height, a = n ? t.left : t.top, l = n ? t.right : t.bottom, c = n ? t.width : t.height;
10694
10694
  return o === a || i === l || o + s / 2 === a + c / 2;
10695
- }, xf = function(e, t) {
10695
+ }, Uf = function(e, t) {
10696
10696
  var n;
10697
10697
  return Do.some(function(o) {
10698
10698
  var i = o[Je].options.emptyInsertThreshold;
10699
- if (!(!i || ls(o))) {
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;
10701
10701
  if (a && l)
10702
10702
  return n = o;
@@ -10734,7 +10734,7 @@ ti && !Or && document.addEventListener("click", function(e) {
10734
10734
  var Kt = function(e) {
10735
10735
  if (A) {
10736
10736
  e = e.touches ? e.touches[0] : e;
10737
- var t = xf(e.clientX, e.clientY);
10737
+ var t = Uf(e.clientX, e.clientY);
10738
10738
  if (t) {
10739
10739
  var n = {};
10740
10740
  for (var o in e)
@@ -10742,7 +10742,7 @@ var Kt = function(e) {
10742
10742
  n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Je]._onDragOver(n);
10743
10743
  }
10744
10744
  }
10745
- }, wf = function(e) {
10745
+ }, xf = function(e) {
10746
10746
  A && A.parentNode[Je]._isOutsideThisEl(e.target);
10747
10747
  };
10748
10748
  function P(e, t) {
@@ -10800,7 +10800,7 @@ function P(e, t) {
10800
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 : Pf, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? ne(e, "pointerdown", this._onTapStart) : (ne(e, "mousedown", this._onTapStart), ne(e, "touchstart", this._onTapStart)), this.nativeDraggable && (ne(e, "dragover", this), ne(e, "dragenter", this)), Do.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), bt(this, Sf());
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
  {
@@ -10814,7 +10814,7 @@ P.prototype = /** @lends Sortable.prototype */
10814
10814
  _onTapStart: function(e) {
10815
10815
  if (e.cancelable) {
10816
10816
  var t = this, n = this.el, o = this.options, i = o.preventOnFilter, s = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (a || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, _ = o.filter;
10817
- if (jf(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)) {
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
10820
  He({
@@ -10857,28 +10857,28 @@ P.prototype = /** @lends Sortable.prototype */
10857
10857
  target: A,
10858
10858
  clientX: (t || e).clientX,
10859
10859
  clientY: (t || e).clientY
10860
- }, Ta = Yt.clientX - c.left, Ea = Yt.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, A.style["will-change"] = "all", l = function() {
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
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(), !ha && o.nativeDraggable && (A.draggable = !0), o._triggerDragStart(e, t), He({
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
10873
  Ir(A, _.trim(), Ni);
10874
- }), ne(a, "dragover", Kt), ne(a, "mousemove", Kt), ne(a, "touchmove", Kt), ne(a, "mouseup", o._onDrop), ne(a, "touchend", o._onDrop), ne(a, "touchcancel", o._onDrop), ha && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), Ge("delayStart", this, {
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) {
10878
10878
  this._onDrop();
10879
10879
  return;
10880
10880
  }
10881
- ne(a, "mouseup", o._disableDelayedDrag), ne(a, "touchend", o._disableDelayedDrag), ne(a, "touchcancel", o._disableDelayedDrag), ne(a, "mousemove", o._delayedDragTouchMoveHandler), ne(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && ne(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
10881
+ te(a, "mouseup", o._disableDelayedDrag), te(a, "touchend", o._disableDelayedDrag), te(a, "touchcancel", o._disableDelayedDrag), te(a, "mousemove", o._delayedDragTouchMoveHandler), te(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && te(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
10882
10882
  } else
10883
10883
  l();
10884
10884
  }
@@ -10892,10 +10892,10 @@ P.prototype = /** @lends Sortable.prototype */
10892
10892
  },
10893
10893
  _disableDelayedDragEvents: function() {
10894
10894
  var e = this.el.ownerDocument;
10895
- ee(e, "mouseup", this._disableDelayedDrag), ee(e, "touchend", this._disableDelayedDrag), ee(e, "touchcancel", this._disableDelayedDrag), ee(e, "mousemove", this._delayedDragTouchMoveHandler), ee(e, "touchmove", this._delayedDragTouchMoveHandler), ee(e, "pointermove", this._delayedDragTouchMoveHandler);
10895
+ Z(e, "mouseup", this._disableDelayedDrag), Z(e, "touchend", this._disableDelayedDrag), Z(e, "touchcancel", this._disableDelayedDrag), Z(e, "mousemove", this._delayedDragTouchMoveHandler), Z(e, "touchmove", this._delayedDragTouchMoveHandler), Z(e, "pointermove", this._delayedDragTouchMoveHandler);
10896
10896
  },
10897
10897
  _triggerDragStart: function(e, t) {
10898
- t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? ne(document, "pointermove", this._onTouchMove) : t ? ne(document, "touchmove", this._onTouchMove) : ne(document, "mousemove", this._onTouchMove) : (ne(A, "dragend", this), ne(pe, "dragstart", this._onDragStart));
10898
+ t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? te(document, "pointermove", this._onTouchMove) : t ? te(document, "touchmove", this._onTouchMove) : te(document, "mousemove", this._onTouchMove) : (te(A, "dragend", this), te(pe, "dragstart", this._onDragStart));
10899
10899
  try {
10900
10900
  document.selection ? Eo(function() {
10901
10901
  document.selection.empty();
@@ -10907,7 +10907,7 @@ P.prototype = /** @lends Sortable.prototype */
10907
10907
  if (an = !1, pe && A) {
10908
10908
  Ge("dragStarted", this, {
10909
10909
  evt: t
10910
- }), this.nativeDraggable && ne(document, "dragover", wf);
10910
+ }), this.nativeDraggable && te(document, "dragover", xf);
10911
10911
  var n = this.options;
10912
10912
  !e && ze(A, n.dragClass, !1), ze(A, n.ghostClass, !0), P.active = this, e && this._appendGhost(), He({
10913
10913
  sortable: this,
@@ -10941,7 +10941,7 @@ P.prototype = /** @lends Sortable.prototype */
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 && ma(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);
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;
@@ -10968,9 +10968,9 @@ 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(), Ci = ma(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
- 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", Ta / parseInt(K.style.width) * 100 + "% " + Ea / parseInt(K.style.height) * 100 + "%");
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) {
@@ -10986,7 +10986,7 @@ P.prototype = /** @lends Sortable.prototype */
10986
10986
  sortable: n,
10987
10987
  name: "clone"
10988
10988
  }));
10989
- }), !t && ze(A, i.dragClass, !0), t ? (Ro = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (ee(document, "mouseup", n._onDrop), ee(document, "touchend", n._onDrop), ee(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), ne(document, "drop", n), M(A, "transform", "translateZ(0)")), an = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), ne(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) {
@@ -11008,7 +11008,7 @@ P.prototype = /** @lends Sortable.prototype */
11008
11008
  onMove: function(Ze, mt) {
11009
11009
  return uo(pe, t, A, o, Ze, Ce(Ze), e, mt);
11010
11010
  },
11011
- changed: X
11011
+ changed: z
11012
11012
  }, Te));
11013
11013
  }
11014
11014
  function G() {
@@ -11021,7 +11021,7 @@ P.prototype = /** @lends Sortable.prototype */
11021
11021
  v("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
11022
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
- function X() {
11024
+ function z() {
11025
11025
  qe = Qe(A), kt = Qe(A, a.draggable), He({
11026
11026
  sortable: m,
11027
11027
  name: "change",
@@ -11040,37 +11040,37 @@ P.prototype = /** @lends Sortable.prototype */
11040
11040
  return I;
11041
11041
  if (s)
11042
11042
  return he = pe, G(), this._hideClone(), v("revert"), P.eventCanceled || (Ht ? pe.insertBefore(A, Ht) : pe.appendChild(A)), D(!0);
11043
- var te = ls(t, a.draggable);
11044
- if (!te || Kf(e, g, this) && !te.animated) {
11045
- if (te === A)
11043
+ var ee = cs(t, a.draggable);
11044
+ if (!ee || Yf(e, g, this) && !ee.animated) {
11045
+ if (ee === A)
11046
11046
  return D(!1);
11047
- if (te && t === e.target && (n = te), n && (i = Ce(n)), uo(pe, t, A, o, n, i, e, !!n) !== !1)
11048
- return G(), te && te.nextSibling ? t.insertBefore(A, te.nextSibling) : t.appendChild(A), he = t, X(), D(!0);
11049
- } else if (te && Yf(e, g, this)) {
11047
+ if (ee && t === e.target && (n = ee), n && (i = Ce(n)), uo(pe, t, A, o, n, i, e, !!n) !== !1)
11048
+ return G(), ee && ee.nextSibling ? t.insertBefore(A, ee.nextSibling) : t.appendChild(A), he = t, z(), D(!0);
11049
+ } else if (ee && Ff(e, g, this)) {
11050
11050
  var _e = mn(t, 0, a, !0);
11051
11051
  if (_e === A)
11052
11052
  return D(!1);
11053
11053
  if (n = _e, i = Ce(n), uo(pe, t, A, o, n, i, e, !1) !== !1)
11054
- return G(), t.insertBefore(A, _e), he = t, X(), D(!0);
11054
+ return G(), t.insertBefore(A, _e), he = t, z(), D(!0);
11055
11055
  } else if (n.parentNode === t) {
11056
11056
  i = Ce(n);
11057
- var q = 0, ke, $e = A.parentNode !== t, R = !Uf(A.animated && A.toRect || o, n.animated && n.toRect || i, g), F = g ? "top" : "left", se = ga(n, "top", "top") || ga(A, "top", "top"), me = se ? se.scrollTop : void 0;
11058
- on !== n && (ke = i[F], Pn = !1, lo = !R && a.invertSwap || $e), q = Hf(e, n, i, g, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
11057
+ var J = 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), J = Kf(e, n, i, g, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
11059
11059
  var N;
11060
- if (q !== 0) {
11061
- var J = Qe(A);
11060
+ if (J !== 0) {
11061
+ var W = Qe(A);
11062
11062
  do
11063
- J -= q, N = he.children[J];
11063
+ W -= J, N = he.children[W];
11064
11064
  while (N && (M(N, "display") === "none" || N === K));
11065
11065
  }
11066
- if (q === 0 || N === n)
11066
+ if (J === 0 || N === n)
11067
11067
  return D(!1);
11068
- on = n, Mn = q;
11069
- var Z = n.nextElementSibling, ie = !1;
11070
- ie = q === 1;
11068
+ on = n, Mn = J;
11069
+ var ne = n.nextElementSibling, ie = !1;
11070
+ ie = J === 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), Xi = !0, setTimeout(Ff, 30), G(), ie && !Z ? t.appendChild(A) : n.parentNode.insertBefore(A, ie ? Z : 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);
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])), z(), D(!0);
11074
11074
  }
11075
11075
  if (t.contains(A))
11076
11076
  return D(!1);
@@ -11079,11 +11079,11 @@ P.prototype = /** @lends Sortable.prototype */
11079
11079
  },
11080
11080
  _ignoreWhileAnimating: null,
11081
11081
  _offMoveEvents: function() {
11082
- ee(document, "mousemove", this._onTouchMove), ee(document, "touchmove", this._onTouchMove), ee(document, "pointermove", this._onTouchMove), ee(document, "dragover", Kt), ee(document, "mousemove", Kt), ee(document, "touchmove", Kt);
11082
+ Z(document, "mousemove", this._onTouchMove), Z(document, "touchmove", this._onTouchMove), Z(document, "pointermove", this._onTouchMove), Z(document, "dragover", Kt), Z(document, "mousemove", Kt), Z(document, "touchmove", Kt);
11083
11083
  },
11084
11084
  _offUpEvents: function() {
11085
11085
  var e = this.el.ownerDocument;
11086
- ee(e, "mouseup", this._onDrop), ee(e, "touchend", this._onDrop), ee(e, "pointerup", this._onDrop), ee(e, "touchcancel", this._onDrop), ee(document, "selectstart", this);
11086
+ Z(e, "mouseup", this._onDrop), Z(e, "touchend", this._onDrop), Z(e, "pointerup", this._onDrop), Z(e, "touchcancel", this._onDrop), Z(document, "selectstart", this);
11087
11087
  },
11088
11088
  _onDrop: function(e) {
11089
11089
  var t = this.el, n = this.options;
@@ -11093,7 +11093,7 @@ P.prototype = /** @lends Sortable.prototype */
11093
11093
  this._nulling();
11094
11094
  return;
11095
11095
  }
11096
- an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zi(this.cloneId), zi(this._dragStartId), this.nativeDraggable && (ee(document, "drop", this), ee(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 && ee(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({
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,
@@ -11152,7 +11152,7 @@ P.prototype = /** @lends Sortable.prototype */
11152
11152
  break;
11153
11153
  case "dragenter":
11154
11154
  case "dragover":
11155
- A && (this._onDragOver(e), Vf(e));
11155
+ A && (this._onDragOver(e), wf(e));
11156
11156
  break;
11157
11157
  case "selectstart":
11158
11158
  e.preventDefault();
@@ -11165,7 +11165,7 @@ P.prototype = /** @lends Sortable.prototype */
11165
11165
  */
11166
11166
  toArray: function() {
11167
11167
  for (var e = [], t, n = this.el.children, o = 0, i = n.length, s = this.options; o < i; o++)
11168
- t = n[o], ot(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || Gf(t));
11168
+ t = n[o], ot(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || $f(t));
11169
11169
  return e;
11170
11170
  },
11171
11171
  /**
@@ -11216,7 +11216,7 @@ P.prototype = /** @lends Sortable.prototype */
11216
11216
  destroy: function() {
11217
11217
  Ge("destroy", this);
11218
11218
  var e = this.el;
11219
- e[Je] = null, ee(e, "mousedown", this._onTapStart), ee(e, "touchstart", this._onTapStart), ee(e, "pointerdown", this._onTapStart), this.nativeDraggable && (ee(e, "dragover", this), ee(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
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
11221
  }), this._onDrop(), this._disableDelayedDragEvents(), Do.splice(Do.indexOf(this.el), 1), this.el = e = null;
11222
11222
  },
@@ -11239,7 +11239,7 @@ P.prototype = /** @lends Sortable.prototype */
11239
11239
  }
11240
11240
  }
11241
11241
  };
11242
- function Vf(e) {
11242
+ function wf(e) {
11243
11243
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
11244
11244
  }
11245
11245
  function uo(e, t, n, o, i, s, a, l) {
@@ -11252,18 +11252,18 @@ function uo(e, t, n, o, i, s, a, l) {
11252
11252
  function Ni(e) {
11253
11253
  e.draggable = !1;
11254
11254
  }
11255
- function Ff() {
11255
+ function Vf() {
11256
11256
  Xi = !1;
11257
11257
  }
11258
- function Yf(e, t, n) {
11258
+ function Ff(e, t, n) {
11259
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
- function Kf(e, t, n) {
11263
- var o = Ce(ls(n.el, n.options.draggable)), i = kr(n.el, n.options, K), s = 10;
11262
+ function Yf(e, t, n) {
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
- function Hf(e, t, n, o, i, s, a, l) {
11266
+ function Kf(e, t, n, o, i, s, a, l) {
11267
11267
  var c = o ? e.clientY : e.clientX, _ = o ? n.height : n.width, h = o ? n.top : n.left, d = o ? n.bottom : n.right, g = !1;
11268
11268
  if (!a) {
11269
11269
  if (l && To < _ * i) {
@@ -11272,19 +11272,19 @@ function Hf(e, t, n, o, i, s, a, l) {
11272
11272
  else if (Mn === 1 ? c < h + To : c > d - To)
11273
11273
  return -Mn;
11274
11274
  } else if (c > h + _ * (1 - i) / 2 && c < d - _ * (1 - i) / 2)
11275
- return $f(t);
11275
+ return Hf(t);
11276
11276
  }
11277
11277
  return g = g || a, g && (c < h + _ * s / 2 || c > d - _ * s / 2) ? c > h + _ / 2 ? 1 : -1 : 0;
11278
11278
  }
11279
- function $f(e) {
11279
+ function Hf(e) {
11280
11280
  return Qe(A) < Qe(e) ? 1 : -1;
11281
11281
  }
11282
- function Gf(e) {
11282
+ function $f(e) {
11283
11283
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
11284
11284
  o += t.charCodeAt(n);
11285
11285
  return o.toString(36);
11286
11286
  }
11287
- function jf(e) {
11287
+ function Gf(e) {
11288
11288
  Mo.length = 0;
11289
11289
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
11290
11290
  var o = t[n];
@@ -11297,18 +11297,18 @@ function Eo(e) {
11297
11297
  function zi(e) {
11298
11298
  return clearTimeout(e);
11299
11299
  }
11300
- ti && ne(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
- on: ne,
11305
- off: ee,
11304
+ on: te,
11305
+ off: Z,
11306
11306
  css: M,
11307
11307
  find: Ir,
11308
11308
  is: function(e, t) {
11309
11309
  return !!ot(e, t, e, !1);
11310
11310
  },
11311
- extend: kf,
11311
+ extend: Nf,
11312
11312
  throttle: yr,
11313
11313
  closest: ot,
11314
11314
  toggleClass: ze,
@@ -11334,9 +11334,9 @@ P.mount = function() {
11334
11334
  P.create = function(e, t) {
11335
11335
  return new P(e, t);
11336
11336
  };
11337
- P.version = yf;
11337
+ P.version = If;
11338
11338
  var ye = [], Cn, qi, Ji = !1, ki, Li, Po, Nn;
11339
- function Wf() {
11339
+ function jf() {
11340
11340
  function e() {
11341
11341
  this.defaults = {
11342
11342
  scroll: !0,
@@ -11351,14 +11351,14 @@ function Wf() {
11351
11351
  return e.prototype = {
11352
11352
  dragStarted: function(t) {
11353
11353
  var n = t.originalEvent;
11354
- this.sortable.nativeDraggable ? ne(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? ne(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? ne(document, "touchmove", this._handleFallbackAutoScroll) : ne(document, "mousemove", this._handleFallbackAutoScroll);
11354
+ this.sortable.nativeDraggable ? te(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? te(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? te(document, "touchmove", this._handleFallbackAutoScroll) : te(document, "mousemove", this._handleFallbackAutoScroll);
11355
11355
  },
11356
11356
  dragOverCompleted: function(t) {
11357
11357
  var n = t.originalEvent;
11358
11358
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
11359
11359
  },
11360
11360
  drop: function() {
11361
- this.sortable.nativeDraggable ? ee(document, "dragover", this._handleAutoScroll) : (ee(document, "pointermove", this._handleFallbackAutoScroll), ee(document, "touchmove", this._handleFallbackAutoScroll), ee(document, "mousemove", this._handleFallbackAutoScroll)), va(), Ao(), Lf();
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
11364
  Po = qi = Cn = Ji = Nn = ki = Li = null, ye.length = 0;
@@ -11371,7 +11371,7 @@ function Wf() {
11371
11371
  if (Po = t, n || this.options.forceAutoScrollFallback || jn || yt || Bn) {
11372
11372
  Si(t, this.options, a, n);
11373
11373
  var l = Dt(a, !0);
11374
- Ji && (!Nn || i !== ki || s !== Li) && (Nn && va(), 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
11376
  c !== l && (l = c, Ao()), Si(t, o.options, c, n);
11377
11377
  }, 10), ki = i, Li = s);
@@ -11393,7 +11393,7 @@ function Ao() {
11393
11393
  clearInterval(e.pid);
11394
11394
  }), ye = [];
11395
11395
  }
11396
- function va() {
11396
+ function Oa() {
11397
11397
  clearInterval(Nn);
11398
11398
  }
11399
11399
  var Si = yr(function(e, t, n, o) {
@@ -11402,13 +11402,13 @@ var Si = yr(function(e, t, n, o) {
11402
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, te = 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 = te < $e && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (q = te < $e && (F.overflowX === "auto" || F.overflowX === "scroll"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll"));
11407
- var N = q && (Math.abs(X - i) <= a && se + te < $e) - (Math.abs(D - i) <= a && !!se), J = ke && (Math.abs(G - s) <= a && me + _e < R) - (Math.abs(v - s) <= a && !!me);
11405
+ var m = g, I = Ce(m), v = I.top, G = I.bottom, D = I.left, z = I.right, ee = I.width, _e = I.height, J = void 0, ke = void 0, $e = m.scrollWidth, R = m.scrollHeight, F = M(m), se = m.scrollLeft, me = m.scrollTop;
11406
+ m === c ? (J = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (J = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll"));
11407
+ var N = J && (Math.abs(z - i) <= a && se + ee < $e) - (Math.abs(D - i) <= a && !!se), W = ke && (Math.abs(G - s) <= a && me + _e < R) - (Math.abs(v - s) <= a && !!me);
11408
11408
  if (!ye[d])
11409
- for (var Z = 0; Z <= d; Z++)
11410
- ye[Z] || (ye[Z] = {});
11411
- (ye[d].vx != N || ye[d].vy != J || ye[d].el !== m) && (ye[d].el = m, ye[d].vx = N, ye[d].vy = J, clearInterval(ye[d].pid), (N != 0 || J != 0) && (_ = !0, ye[d].pid = setInterval((function() {
11409
+ for (var ne = 0; ne <= d; ne++)
11410
+ ye[ne] || (ye[ne] = {});
11411
+ (ye[d].vx != N || ye[d].vy != W || ye[d].el !== m) && (ye[d].el = m, ye[d].vx = N, ye[d].vy = W, clearInterval(ye[d].pid), (N != 0 || W != 0) && (_ = !0, ye[d].pid = setInterval((function() {
11412
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
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);
@@ -11430,9 +11430,9 @@ var Si = yr(function(e, t, n, o) {
11430
11430
  }));
11431
11431
  }
11432
11432
  };
11433
- function cs() {
11433
+ function us() {
11434
11434
  }
11435
- cs.prototype = {
11435
+ us.prototype = {
11436
11436
  startIndex: null,
11437
11437
  dragStart: function(e) {
11438
11438
  var t = e.oldDraggableIndex;
@@ -11446,110 +11446,110 @@ cs.prototype = {
11446
11446
  },
11447
11447
  drop: Mr
11448
11448
  };
11449
- bt(cs, {
11449
+ bt(us, {
11450
11450
  pluginName: "revertOnSpill"
11451
11451
  });
11452
- function us() {
11452
+ function ps() {
11453
11453
  }
11454
- us.prototype = {
11454
+ ps.prototype = {
11455
11455
  onSpill: function(e) {
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
11459
  drop: Mr
11460
11460
  };
11461
- bt(us, {
11461
+ bt(ps, {
11462
11462
  pluginName: "removeOnSpill"
11463
11463
  });
11464
- P.mount(new Wf());
11465
- P.mount(us, cs);
11466
- function Xf(e) {
11464
+ P.mount(new jf());
11465
+ P.mount(ps, us);
11466
+ function Wf(e) {
11467
11467
  return e == null ? e : JSON.parse(JSON.stringify(e));
11468
11468
  }
11469
- function zf(e) {
11469
+ function Xf(e) {
11470
11470
  Uo() && ka(e);
11471
11471
  }
11472
- function qf(e) {
11473
- Uo() ? dn(e) : Na(e);
11472
+ function zf(e) {
11473
+ Uo() ? dn(e) : ts(e);
11474
11474
  }
11475
11475
  let Pr = null, Ur = null;
11476
- function Oa(e = null, t = null) {
11476
+ function ba(e = null, t = null) {
11477
11477
  Pr = e, Ur = t;
11478
11478
  }
11479
- function Jf() {
11479
+ function qf() {
11480
11480
  return {
11481
11481
  data: Pr,
11482
11482
  clonedData: Ur
11483
11483
  };
11484
11484
  }
11485
- const ba = Symbol("cloneElement");
11486
- function Qf(...e) {
11485
+ const Ia = Symbol("cloneElement");
11486
+ function Jf(...e) {
11487
11487
  var t, n;
11488
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;
11492
- Array.isArray(W(a)) || (l = a, a = null);
11492
+ Array.isArray(X(a)) || (l = a, a = null);
11493
11493
  let c = null;
11494
11494
  const {
11495
11495
  immediate: _ = !0,
11496
- clone: h = Xf,
11496
+ clone: h = Wf,
11497
11497
  customUpdate: d
11498
- } = (n = W(l)) != null ? n : {};
11498
+ } = (n = X(l)) != null ? n : {};
11499
11499
  function g(R) {
11500
11500
  var F;
11501
11501
  const { from: se, oldIndex: me, item: N } = R;
11502
11502
  i = Array.from(se.childNodes);
11503
- const J = W((F = W(a)) == null ? void 0 : F[me]), Z = h(J);
11504
- Oa(J, Z), N[ba] = Z;
11503
+ const W = X((F = X(a)) == null ? void 0 : F[me]), ne = h(W);
11504
+ ba(W, ne), N[Ia] = ne;
11505
11505
  }
11506
11506
  function m(R) {
11507
- const F = R.item[ba];
11508
- if (!hf(F)) {
11507
+ const F = R.item[Ia];
11508
+ if (!df(F)) {
11509
11509
  if (vi(R.item), kn(a)) {
11510
- const se = [...W(a)];
11511
- a.value = ua(se, R.newDraggableIndex, F);
11510
+ const se = [...X(a)];
11511
+ a.value = pa(se, R.newDraggableIndex, F);
11512
11512
  return;
11513
11513
  }
11514
- ua(W(a), R.newDraggableIndex, F);
11514
+ pa(X(a), R.newDraggableIndex, F);
11515
11515
  }
11516
11516
  }
11517
11517
  function I(R) {
11518
- const { from: F, item: se, oldIndex: me, oldDraggableIndex: N, pullMode: J, clone: Z } = R;
11519
- if (pa(F, se, me), J === "clone") {
11520
- vi(Z);
11518
+ const { from: F, item: se, oldIndex: me, oldDraggableIndex: N, pullMode: W, clone: ne } = R;
11519
+ if (_a(F, se, me), W === "clone") {
11520
+ vi(ne);
11521
11521
  return;
11522
11522
  }
11523
11523
  if (kn(a)) {
11524
- const ie = [...W(a)];
11525
- a.value = ca(ie, N);
11524
+ const ie = [...X(a)];
11525
+ a.value = ua(ie, N);
11526
11526
  return;
11527
11527
  }
11528
- ca(W(a), N);
11528
+ ua(X(a), N);
11529
11529
  }
11530
11530
  function v(R) {
11531
11531
  if (d) {
11532
11532
  d(R);
11533
11533
  return;
11534
11534
  }
11535
- const { from: F, item: se, oldIndex: me, oldDraggableIndex: N, newDraggableIndex: J } = R;
11536
- if (vi(se), pa(F, se, me), kn(a)) {
11537
- const Z = [...W(a)];
11538
- a.value = la(
11539
- Z,
11535
+ const { from: F, item: se, oldIndex: me, oldDraggableIndex: N, newDraggableIndex: W } = R;
11536
+ if (vi(se), _a(F, se, me), kn(a)) {
11537
+ const ne = [...X(a)];
11538
+ a.value = ca(
11539
+ ne,
11540
11540
  N,
11541
- J
11541
+ W
11542
11542
  );
11543
11543
  return;
11544
11544
  }
11545
- la(W(a), N, J);
11545
+ ca(X(a), N, W);
11546
11546
  }
11547
11547
  function G(R) {
11548
11548
  const { newIndex: F, oldIndex: se, from: me, to: N } = R;
11549
- let J = null;
11550
- const Z = F === se && me === N;
11549
+ let W = null;
11550
+ const ne = F === se && me === N;
11551
11551
  try {
11552
- if (Z) {
11552
+ if (ne) {
11553
11553
  let ie = null;
11554
11554
  i == null || i.some((Le, We) => {
11555
11555
  if (ie && (i == null ? void 0 : i.length) !== N.childNodes.length)
@@ -11559,13 +11559,13 @@ function Qf(...e) {
11559
11559
  });
11560
11560
  }
11561
11561
  } catch (ie) {
11562
- J = ie;
11562
+ W = ie;
11563
11563
  } finally {
11564
11564
  i = null;
11565
11565
  }
11566
- Na(() => {
11567
- if (Oa(), J)
11568
- throw J;
11566
+ ts(() => {
11567
+ if (ba(), W)
11568
+ throw W;
11569
11569
  });
11570
11570
  }
11571
11571
  const D = {
@@ -11575,36 +11575,36 @@ function Qf(...e) {
11575
11575
  onRemove: I,
11576
11576
  onEnd: G
11577
11577
  };
11578
- function X(R) {
11579
- const F = W(s);
11580
- return R || (R = ff(F) ? gf(F, o == null ? void 0 : o.$el) : F), R && !Ef(R) && (R = R.$el), R || pf("Root element not found"), R;
11578
+ function z(R) {
11579
+ const F = X(s);
11580
+ return R || (R = hf(F) ? ff(F, o == null ? void 0 : o.$el) : F), R && !Tf(R) && (R = R.$el), R || uf("Root element not found"), R;
11581
11581
  }
11582
- function te() {
11582
+ function ee() {
11583
11583
  var R;
11584
- const F = (R = W(l)) != null ? R : {}, { immediate: se, clone: me } = F, N = Er(F, ["immediate", "clone"]);
11585
- return _a(N, (J, Z) => {
11586
- Af(J) && (N[J] = (ie, ...Le) => {
11587
- const We = Jf();
11588
- return vf(ie, We), Z(ie, ...Le);
11584
+ const F = (R = X(l)) != null ? R : {}, { immediate: se, clone: me } = F, N = Er(F, ["immediate", "clone"]);
11585
+ return da(N, (W, ne) => {
11586
+ Ef(W) && (N[W] = (ie, ...Le) => {
11587
+ const We = qf();
11588
+ return Af(ie, We), ne(ie, ...Le);
11589
11589
  });
11590
- }), Tf(
11590
+ }), mf(
11591
11591
  a === null ? {} : D,
11592
11592
  N
11593
11593
  );
11594
11594
  }
11595
11595
  const _e = (R) => {
11596
- R = X(R), c && q.destroy(), c = new P(R, te());
11596
+ R = z(R), c && J.destroy(), c = new P(R, ee());
11597
11597
  };
11598
11598
  Lt(
11599
11599
  () => l,
11600
11600
  () => {
11601
- c && _a(te(), (R, F) => {
11601
+ c && da(ee(), (R, F) => {
11602
11602
  c == null || c.option(R, F);
11603
11603
  });
11604
11604
  },
11605
11605
  { deep: !0 }
11606
11606
  );
11607
- const q = {
11607
+ const J = {
11608
11608
  option: (R, F) => c == null ? void 0 : c.option(R, F),
11609
11609
  destroy: () => {
11610
11610
  c == null || c.destroy(), c = null;
@@ -11612,10 +11612,10 @@ function Qf(...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), $e = () => q == null ? void 0 : q.option("disabled", !1);
11616
- return qf(() => {
11615
+ }, ke = () => J == null ? void 0 : J.option("disabled", !0), $e = () => J == null ? void 0 : J.option("disabled", !1);
11616
+ return zf(() => {
11617
11617
  _ && _e();
11618
- }), zf(q.destroy), ln({ start: _e, pause: ke, resume: $e }, q);
11618
+ }), Xf(J.destroy), ln({ start: _e, pause: ke, resume: $e }, J);
11619
11619
  }
11620
11620
  const Qi = [
11621
11621
  "update",
@@ -11630,7 +11630,7 @@ const Qi = [
11630
11630
  "clone",
11631
11631
  "move",
11632
11632
  "change"
11633
- ], Zf = [
11633
+ ], Qf = [
11634
11634
  "clone",
11635
11635
  "animation",
11636
11636
  "ghostClass",
@@ -11675,13 +11675,13 @@ const Qi = [
11675
11675
  "target",
11676
11676
  "customUpdate",
11677
11677
  ...Qi.map((e) => `on${e.replace(/^\S/, (t) => t.toUpperCase())}`)
11678
- ], eg = ft({
11678
+ ], Zf = ft({
11679
11679
  name: "VueDraggable",
11680
11680
  model: {
11681
11681
  prop: "modelValue",
11682
11682
  event: "update:modelValue"
11683
11683
  },
11684
- props: Zf,
11684
+ props: Qf,
11685
11685
  emits: ["update:modelValue", ...Qi],
11686
11686
  setup(e, { slots: t, emit: n, expose: o, attrs: i }) {
11687
11687
  const s = Qi.reduce((h, d) => {
@@ -11689,22 +11689,22 @@ const Qi = [
11689
11689
  return h[g] = (...m) => n(d, ...m), h;
11690
11690
  }, {}), a = Be(() => {
11691
11691
  const h = Pl(e), { modelValue: d } = h, g = Er(h, ["modelValue"]), m = Object.entries(g).reduce((I, [v, G]) => {
11692
- const D = W(G);
11692
+ const D = X(G);
11693
11693
  return D !== void 0 && (I[v] = D), I;
11694
11694
  }, {});
11695
- return ln(ln({}, s), df(ln(ln({}, i), m)));
11695
+ return ln(ln({}, s), _f(ln(ln({}, i), m)));
11696
11696
  }), l = Be({
11697
11697
  get: () => e.modelValue,
11698
11698
  set: (h) => n("update:modelValue", h)
11699
11699
  }), c = Mt(), _ = Ul(
11700
- Qf(e.target || c, l, a)
11700
+ Jf(e.target || c, l, a)
11701
11701
  );
11702
11702
  return o(_), () => {
11703
11703
  var h;
11704
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
- }), tg = { class: "text-subtitle-1 ml-6" }, ng = /* @__PURE__ */ ft({
11707
+ }), eg = { class: "text-subtitle-1 ml-6" }, tg = /* @__PURE__ */ ft({
11708
11708
  __name: "item",
11709
11709
  props: {
11710
11710
  id: {},
@@ -11738,11 +11738,11 @@ const Qi = [
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
- lt("span", tg, xo(s.title), 1),
11741
+ lt("span", eg, xo(s.title), 1),
11742
11742
  Oe(g),
11743
11743
  Oe(m, {
11744
11744
  class: "x-handle cursor-move mr-3",
11745
- icon: W(ic),
11745
+ icon: X(oc),
11746
11746
  onMousedown: d[0] || (d[0] = Ln(() => {
11747
11747
  }, ["stop"]))
11748
11748
  }, null, 8, ["icon"]),
@@ -11754,10 +11754,10 @@ const Qi = [
11754
11754
  ]);
11755
11755
  };
11756
11756
  }
11757
- }), og = {
11757
+ }), ng = {
11758
11758
  key: 1,
11759
11759
  class: "text-caption text-grey"
11760
- }, ig = /* @__PURE__ */ ft({
11760
+ }, og = /* @__PURE__ */ ft({
11761
11761
  __name: "index",
11762
11762
  props: {
11763
11763
  lock: { type: Boolean }
@@ -11775,8 +11775,8 @@ const Qi = [
11775
11775
  const v = I.id === ((D = sn()) == null ? void 0 : D.id);
11776
11776
  let G = "<n/a>";
11777
11777
  if (I.type.startsWith("on_node_event_v")) {
11778
- const X = I, te = Ye[X.node.key];
11779
- te && (G = t(te.name), X.node.alias && (G += " / " + X.node.alias), G += " - " + T[X.event.name]);
11778
+ const z = I, ee = Ye[z.node.key];
11779
+ ee && (G = t(ee.name), z.node.alias && (G += " / " + z.node.alias), G += " - " + T[z.event.name]);
11780
11780
  } else I.type.startsWith("func_entry_v") ? G = t("x-block-lib.funcEntry") : I.type.startsWith("procedure_def_v") ? (console.log(I), G = t("x-block-lib.procedure") + " - " + I.getFieldValue("NAME")) : G = t("x-block-lib.temporaryBlock");
11781
11781
  g.push({
11782
11782
  id: I.id,
@@ -11832,7 +11832,7 @@ const Qi = [
11832
11832
  const m = g.getBlockById(d);
11833
11833
  Wl.setSelected(m), pr(d), _.value = !1;
11834
11834
  };
11835
- return (d, g) => o.value.length > 0 ? (Ne(), pt(W(eg), {
11835
+ return (d, g) => o.value.length > 0 ? (Ne(), pt(X(Zf), {
11836
11836
  key: 0,
11837
11837
  modelValue: o.value,
11838
11838
  "onUpdate:modelValue": g[0] || (g[0] = (m) => o.value = m),
@@ -11844,7 +11844,7 @@ const Qi = [
11844
11844
  onEnd: c
11845
11845
  }, {
11846
11846
  default: _t(() => [
11847
- (Ne(!0), rt(La, null, Vl(o.value, (m) => (Ne(), pt(ng, {
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 Qi = [
11853
11853
  }, null, 8, ["id", "title", "select"]))), 128))
11854
11854
  ]),
11855
11855
  _: 1
11856
- }, 8, ["modelValue"])) : (Ne(), rt("span", og, xo(W(t)("x-block-lib.noOption")), 1));
11856
+ }, 8, ["modelValue"])) : (Ne(), rt("span", ng, xo(X(t)("x-block-lib.noOption")), 1));
11857
11857
  }
11858
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
- }, sg = /* @__PURE__ */ xr(ig, [["__scopeId", "data-v-448cc5cd"]]), ag = {};
11864
- function rg(e, t) {
11863
+ }, ig = /* @__PURE__ */ xr(og, [["__scopeId", "data-v-448cc5cd"]]), sg = {};
11864
+ function ag(e, t) {
11865
11865
  return Ne(), rt("div", null, "blockTree");
11866
11866
  }
11867
- const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitle-1" }, ug = /* @__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 = tc(), { sysBarAvail: o } = Pa(), { backgroundColor1: i } = Fo(), 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,
@@ -11891,7 +11891,7 @@ const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitl
11891
11891
  const g = De("v-sheet"), m = De("v-btn"), I = De("v-spacer"), v = De("v-dialog"), G = De("v-tooltip");
11892
11892
  return Ne(), rt(La, null, [
11893
11893
  Oe(v, {
11894
- modelValue: W(_),
11894
+ modelValue: X(_),
11895
11895
  "onUpdate:modelValue": d[3] || (d[3] = (D) => kn(_) ? _.value = D : null),
11896
11896
  transition: "scroll-x-reverse-transition",
11897
11897
  persistent: "",
@@ -11910,7 +11910,7 @@ const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitl
11910
11910
  class: "elevation-2",
11911
11911
  style: ct(a.value)
11912
11912
  }, [
11913
- W(o) ? (Ne(), pt(g, {
11913
+ X(o) ? (Ne(), pt(g, {
11914
11914
  key: 0,
11915
11915
  color: "transparent",
11916
11916
  height: 24
@@ -11924,10 +11924,10 @@ const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitl
11924
11924
  Oe(m, {
11925
11925
  variant: "text",
11926
11926
  density: "comfortable",
11927
- icon: W(Ua),
11927
+ icon: X(Ua),
11928
11928
  onClick: d[0] || (d[0] = (D) => _.value = !1)
11929
11929
  }, null, 8, ["icon"]),
11930
- lt("span", cg, xo(W(t)("x-block-lib.navigator")), 1),
11930
+ lt("span", lg, xo(X(t)("x-block-lib.navigator")), 1),
11931
11931
  Oe(I)
11932
11932
  ]),
11933
11933
  _: 1
@@ -11936,10 +11936,10 @@ const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitl
11936
11936
  class: "overflow-y-auto",
11937
11937
  style: ct(l.value)
11938
11938
  }, [
11939
- s.type === "list" ? (Ne(), pt(sg, {
11939
+ s.type === "list" ? (Ne(), pt(ig, {
11940
11940
  key: 0,
11941
11941
  lock: s.lock
11942
- }, null, 8, ["lock"])) : s.type === "tree" ? (Ne(), pt(lg, { key: 1 })) : $t("", !0),
11942
+ }, null, 8, ["lock"])) : s.type === "tree" ? (Ne(), pt(rg, { key: 1 })) : $t("", !0),
11943
11943
  lt("div", {
11944
11944
  style: ct(c.value)
11945
11945
  }, null, 4)
@@ -11950,14 +11950,14 @@ const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitl
11950
11950
  _: 1
11951
11951
  }, 8, ["modelValue"]),
11952
11952
  Oe(G, {
11953
- text: W(t)("x-block-lib.tip.hotkeyCtrlE")
11953
+ text: X(t)("x-block-lib.tip.hotkeyCtrlE")
11954
11954
  }, {
11955
11955
  activator: _t(({ props: D }) => [
11956
11956
  Oe(m, es(D, {
11957
11957
  variant: "outlined",
11958
11958
  density: "comfortable",
11959
- icon: W(rc),
11960
- onClick: d[5] || (d[5] = (X) => _.value = !0)
11959
+ icon: X(ac),
11960
+ onClick: d[5] || (d[5] = (z) => _.value = !0)
11961
11961
  }), null, 16, ["icon"])
11962
11962
  ]),
11963
11963
  _: 1
@@ -11991,22 +11991,22 @@ const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitl
11991
11991
  wheel: !0
11992
11992
  }
11993
11993
  };
11994
- function pg(e, t, n, o) {
11995
- Bi.theme = o ? "dark" : "light", Bi.toolbox = _g(t, n);
11994
+ function ug(e, t, n, o) {
11995
+ Bi.theme = o ? "dark" : "light", Bi.toolbox = pg(t, n);
11996
11996
  const i = Xl(e, Bi);
11997
- return dg(i, t, n), hg(i), i;
11997
+ return _g(i, t, n), dg(i), i;
11998
11998
  }
11999
- function _g(e, t) {
11999
+ function pg(e, t) {
12000
12000
  let n;
12001
- return e === "page" ? t === "v1" && (n = af) : e === "comp" ? t === "v1" && (n = nf) : e === "func" ? t === "v1" && (n = sf) : e === "flow" && t === "v1" && (n = of), console.assert(!!n, "invalid toolbox"), n;
12001
+ return e === "page" ? t === "v1" && (n = sf) : e === "comp" ? t === "v1" && (n = tf) : e === "func" ? t === "v1" && (n = of) : e === "flow" && t === "v1" && (n = nf), console.assert(!!n, "invalid toolbox"), n;
12002
12002
  }
12003
- function dg(e, t, n) {
12003
+ function _g(e, t, n) {
12004
12004
  function o({ name: i, callback: s }) {
12005
12005
  e.registerToolboxCategoryCallback(i, () => s(t));
12006
12006
  }
12007
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
- function hg(e) {
12009
+ function dg(e) {
12010
12010
  const { router: t } = V.base;
12011
12011
  e.registerButtonCallback("NO_COMPUTE", () => {
12012
12012
  const n = t.resolve({
@@ -12024,9 +12024,9 @@ function hg(e) {
12024
12024
  }, 100);
12025
12025
  });
12026
12026
  }
12027
- const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12027
+ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
12028
12028
  __name: "index",
12029
- props: /* @__PURE__ */ Ns({
12029
+ props: /* @__PURE__ */ ks({
12030
12030
  type: {},
12031
12031
  version: {},
12032
12032
  locale: {},
@@ -12037,7 +12037,7 @@ const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12037
12037
  scale: { required: !0 },
12038
12038
  scaleModifiers: {}
12039
12039
  }),
12040
- emits: /* @__PURE__ */ Ns(["ready"], ["update:lock", "update:scale"]),
12040
+ emits: /* @__PURE__ */ ks(["ready"], ["update:lock", "update:scale"]),
12041
12041
  setup(e, { expose: t, emit: n }) {
12042
12042
  const o = Di(e, "lock"), i = Di(e, "scale"), s = n, a = Mt();
12043
12043
  let l;
@@ -12076,18 +12076,24 @@ const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12076
12076
  console.assert(!1);
12077
12077
  return;
12078
12078
  }
12079
- await aa(e.locale), l = pg(a.value, e.type, e.version, e.dark), l.addChangeListener(w.disableOrphans), l.addChangeListener(G);
12080
- let N;
12081
- for (let Z = 0; Z < 100 && (await Zl(30), N = document.querySelector("#blocklyEditor .blocklyFlyout"), !N); Z++)
12082
- ;
12083
- new MutationObserver((Z) => {
12084
- Z.forEach((ie) => {
12079
+ await ra(e.locale), l = ug(a.value, e.type, e.version, e.dark), l.addChangeListener(w.disableOrphans), l.addChangeListener(G);
12080
+ const N = document.querySelector("#blocklyEditor .blocklyFlyout");
12081
+ new MutationObserver((ne) => {
12082
+ ne.forEach((ie) => {
12085
12083
  ie.type === "attributes" && ie.attributeName === "style" && (v.value = l.getFlyout().isVisible());
12086
12084
  });
12087
- }).observe(N, { attributes: !0 }), v.value = l.getFlyout().isVisible(), _e(), q(), s("ready");
12085
+ }).observe(N, { attributes: !0 }), v.value = l.getFlyout().isVisible(), _e(), J(), await ts(), s("ready");
12088
12086
  }), Zi(() => {
12089
12087
  v.value = !1;
12090
- }), dc(a, () => {
12088
+ const N = [
12089
+ document.querySelector(".blocklyWidgetDiv"),
12090
+ document.querySelector(".blocklyDropDownDiv"),
12091
+ document.querySelector(".blocklyTooltipDiv"),
12092
+ document.querySelector(".blocklyComputeCanvas")
12093
+ ];
12094
+ for (const W of N)
12095
+ W == null || W.remove();
12096
+ }), _c(a, () => {
12091
12097
  l && zl(l);
12092
12098
  });
12093
12099
  async function G(N) {
@@ -12104,10 +12110,10 @@ const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12104
12110
  }
12105
12111
  }
12106
12112
  const D = (N) => {
12107
- c.value = !0, Ls.workspaces.load(N, l);
12108
- }, X = () => Ls.workspaces.save(l), te = () => r.workspaceToCode(l), _e = () => {
12113
+ c.value = !0, Ss.workspaces.load(N, l);
12114
+ }, z = () => Ss.workspaces.save(l), ee = () => r.workspaceToCode(l), _e = () => {
12109
12115
  l.options.readOnly = o.value, l.options.readOnly && (v.value = !1);
12110
- }, q = () => {
12116
+ }, J = () => {
12111
12117
  l.setScale(i.value);
12112
12118
  };
12113
12119
  class ke extends w.Abstract {
@@ -12145,22 +12151,22 @@ const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12145
12151
  }), Lt(
12146
12152
  () => e.locale,
12147
12153
  (N) => {
12148
- aa(N);
12154
+ ra(N);
12149
12155
  }
12150
12156
  ), Lt(
12151
12157
  () => e.dark,
12152
12158
  (N) => {
12153
- tf(N ? "dark" : "light");
12159
+ ef(N ? "dark" : "light");
12154
12160
  }
12155
12161
  ), Lt(v, (N) => {
12156
12162
  N || l.hideChaff();
12157
12163
  }), Lt(o, () => {
12158
12164
  _e();
12159
12165
  }), Lt(i, () => {
12160
- q();
12161
- }), t({ loading: c, load: D, save: X, generateCode: te, fireStateChange: $e }), (N, J) => {
12162
- const Z = De("v-icon"), ie = De("x-loading");
12163
- return Ne(), rt("div", fg, [
12166
+ J();
12167
+ }), t({ loading: c, load: D, save: z, generateCode: ee, fireStateChange: $e }), (N, W) => {
12168
+ const ne = De("v-icon"), ie = De("x-loading");
12169
+ return Ne(), rt("div", hg, [
12164
12170
  lt("div", {
12165
12171
  id: "blocklyEditor",
12166
12172
  ref_key: "blocklyDiv",
@@ -12172,9 +12178,9 @@ const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12172
12178
  class: "d-flex flex-column justify-center align-center",
12173
12179
  style: ct(d.value)
12174
12180
  }, [
12175
- Oe(Z, {
12181
+ Oe(ne, {
12176
12182
  size: "x-large",
12177
- icon: W(oc)
12183
+ icon: X(nc)
12178
12184
  }, null, 8, ["icon"])
12179
12185
  ], 4)) : $t("", !0),
12180
12186
  c.value ? $t("", !0) : (Ne(), rt("div", {
@@ -12182,12 +12188,12 @@ const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12182
12188
  class: "d-flex align-end ga-3 pt-3 pr-3",
12183
12189
  style: ct(g.value)
12184
12190
  }, [
12185
- Oe(rf, { lock: o.value }, null, 8, ["lock"]),
12186
- Oe(lf, {
12191
+ Oe(af, { lock: o.value }, null, 8, ["lock"]),
12192
+ Oe(rf, {
12187
12193
  modelValue: o.value,
12188
- "onUpdate:modelValue": J[0] || (J[0] = (Le) => o.value = Le)
12194
+ "onUpdate:modelValue": W[0] || (W[0] = (Le) => o.value = Le)
12189
12195
  }, null, 8, ["modelValue"]),
12190
- Oe(ug, {
12196
+ Oe(cg, {
12191
12197
  type: h.value,
12192
12198
  lock: o.value
12193
12199
  }, null, 8, ["type", "lock"])
@@ -12208,10 +12214,10 @@ const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
12208
12214
  };
12209
12215
  }
12210
12216
  });
12211
- var Ri, Ia;
12212
- function mg() {
12213
- if (Ia) return Ri;
12214
- Ia = 1;
12217
+ var Ri, ya;
12218
+ function gg() {
12219
+ if (ya) return Ri;
12220
+ ya = 1;
12215
12221
  function e(u) {
12216
12222
  return u instanceof Map ? u.clear = u.delete = u.set = function() {
12217
12223
  throw new Error("map is read-only");
@@ -12422,15 +12428,15 @@ function mg() {
12422
12428
  function D(...u) {
12423
12429
  return "(" + (G(u).capture ? "" : "?:") + u.map((Y) => d(Y)).join("|") + ")";
12424
12430
  }
12425
- function X(u) {
12431
+ function z(u) {
12426
12432
  return new RegExp(u.toString() + "|").exec("").length - 1;
12427
12433
  }
12428
- function te(u, f) {
12434
+ function ee(u, f) {
12429
12435
  const O = u && u.exec(f);
12430
12436
  return O && O.index === 0;
12431
12437
  }
12432
12438
  const _e = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
12433
- function q(u, { joinWith: f }) {
12439
+ function J(u, { joinWith: f }) {
12434
12440
  let O = 0;
12435
12441
  return u.map((Y) => {
12436
12442
  O += 1;
@@ -12447,7 +12453,7 @@ function mg() {
12447
12453
  return k;
12448
12454
  }).map((Y) => `(${Y})`).join(f);
12449
12455
  }
12450
- 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]+)", N = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", J = (u = {}) => {
12456
+ 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]+)", N = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", W = (u = {}) => {
12451
12457
  const f = /^#![ ]*\//;
12452
12458
  return u.binary && (u.begin = v(
12453
12459
  f,
@@ -12464,7 +12470,7 @@ function mg() {
12464
12470
  O.index !== 0 && Y.ignoreMatch();
12465
12471
  }
12466
12472
  }, u);
12467
- }, Z = {
12473
+ }, ne = {
12468
12474
  begin: "\\\\[\\s\\S]",
12469
12475
  relevance: 0
12470
12476
  }, ie = {
@@ -12472,13 +12478,13 @@ function mg() {
12472
12478
  begin: "'",
12473
12479
  end: "'",
12474
12480
  illegal: "\\n",
12475
- contains: [Z]
12481
+ contains: [ne]
12476
12482
  }, Le = {
12477
12483
  scope: "string",
12478
12484
  begin: '"',
12479
12485
  end: '"',
12480
12486
  illegal: "\\n",
12481
- contains: [Z]
12487
+ contains: [ne]
12482
12488
  }, We = {
12483
12489
  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/
12484
12490
  }, Te = function(u, f, O = {}) {
@@ -12564,12 +12570,12 @@ function mg() {
12564
12570
  begin: /\/(?=[^/\n]*\/)/,
12565
12571
  end: /\/[gimuy]*/,
12566
12572
  contains: [
12567
- Z,
12573
+ ne,
12568
12574
  {
12569
12575
  begin: /\[/,
12570
12576
  end: /\]/,
12571
12577
  relevance: 0,
12572
- contains: [Z]
12578
+ contains: [ne]
12573
12579
  }
12574
12580
  ]
12575
12581
  }, Hr = {
@@ -12588,7 +12594,7 @@ function mg() {
12588
12594
  var zn = /* @__PURE__ */ Object.freeze({
12589
12595
  __proto__: null,
12590
12596
  APOS_STRING_MODE: ie,
12591
- BACKSLASH_ESCAPE: Z,
12597
+ BACKSLASH_ESCAPE: ne,
12592
12598
  BINARY_NUMBER_MODE: Yr,
12593
12599
  BINARY_NUMBER_RE: me,
12594
12600
  COMMENT: Te,
@@ -12621,7 +12627,7 @@ function mg() {
12621
12627
  QUOTE_STRING_MODE: Le,
12622
12628
  REGEXP_MODE: Kr,
12623
12629
  RE_STARTERS_RE: N,
12624
- SHEBANG: J,
12630
+ SHEBANG: W,
12625
12631
  TITLE_MODE: Hr,
12626
12632
  UNDERSCORE_IDENT_RE: R,
12627
12633
  UNDERSCORE_TITLE_MODE: $r
@@ -12675,12 +12681,12 @@ function mg() {
12675
12681
  "value"
12676
12682
  // common variable name
12677
12683
  ], el = "keyword";
12678
- function ps(u, f, O = el) {
12684
+ function _s(u, f, O = el) {
12679
12685
  const Y = /* @__PURE__ */ Object.create(null);
12680
12686
  return typeof u == "string" ? Ee(O, u.split(" ")) : Array.isArray(u) ? Ee(O, u) : Object.keys(u).forEach(function(Ae) {
12681
12687
  Object.assign(
12682
12688
  Y,
12683
- ps(u[Ae], f, Ae)
12689
+ _s(u[Ae], f, Ae)
12684
12690
  );
12685
12691
  }), Y;
12686
12692
  function Ee(Ae, k) {
@@ -12696,18 +12702,18 @@ function mg() {
12696
12702
  function nl(u) {
12697
12703
  return Zr.includes(u.toLowerCase());
12698
12704
  }
12699
- const _s = {}, Vt = (u) => {
12705
+ const ds = {}, Vt = (u) => {
12700
12706
  console.error(u);
12701
- }, ds = (u, ...f) => {
12707
+ }, hs = (u, ...f) => {
12702
12708
  console.log(`WARN: ${u}`, ...f);
12703
12709
  }, Qt = (u, f) => {
12704
- _s[`${u}/${f}`] || (console.log(`Deprecated as of ${u}. ${f}`), _s[`${u}/${f}`] = !0);
12710
+ ds[`${u}/${f}`] || (console.log(`Deprecated as of ${u}. ${f}`), ds[`${u}/${f}`] = !0);
12705
12711
  }, qn = new Error();
12706
- function hs(u, f, { key: O }) {
12712
+ function fs(u, f, { key: O }) {
12707
12713
  let Y = 0;
12708
12714
  const Ee = u[O], Ae = {}, k = {};
12709
12715
  for (let y = 1; y <= f.length; y++)
12710
- k[y + Y] = Ee[y], Ae[y + Y] = !0, Y += X(f[y - 1]);
12716
+ k[y + Y] = Ee[y], Ae[y + Y] = !0, Y += z(f[y - 1]);
12711
12717
  u[O] = k, u[O]._emit = Ae, u[O]._multi = !0;
12712
12718
  }
12713
12719
  function ol(u) {
@@ -12716,7 +12722,7 @@ function mg() {
12716
12722
  throw Vt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), qn;
12717
12723
  if (typeof u.beginScope != "object" || u.beginScope === null)
12718
12724
  throw Vt("beginScope must be object"), qn;
12719
- hs(u, u.begin, { key: "beginScope" }), u.begin = q(u.begin, { joinWith: "" });
12725
+ fs(u, u.begin, { key: "beginScope" }), u.begin = J(u.begin, { joinWith: "" });
12720
12726
  }
12721
12727
  }
12722
12728
  function il(u) {
@@ -12725,7 +12731,7 @@ function mg() {
12725
12731
  throw Vt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), qn;
12726
12732
  if (typeof u.endScope != "object" || u.endScope === null)
12727
12733
  throw Vt("endScope must be object"), qn;
12728
- hs(u, u.end, { key: "endScope" }), u.end = q(u.end, { joinWith: "" });
12734
+ fs(u, u.end, { key: "endScope" }), u.end = J(u.end, { joinWith: "" });
12729
12735
  }
12730
12736
  }
12731
12737
  function sl(u) {
@@ -12747,12 +12753,12 @@ function mg() {
12747
12753
  }
12748
12754
  // @ts-ignore
12749
12755
  addRule(y, x) {
12750
- x.position = this.position++, this.matchIndexes[this.matchAt] = x, this.regexes.push([x, y]), this.matchAt += X(y) + 1;
12756
+ x.position = this.position++, this.matchIndexes[this.matchAt] = x, this.regexes.push([x, y]), this.matchAt += z(y) + 1;
12751
12757
  }
12752
12758
  compile() {
12753
12759
  this.regexes.length === 0 && (this.exec = () => null);
12754
12760
  const y = this.regexes.map((x) => x[1]);
12755
- this.matcherRe = f(q(y, { joinWith: "|" }), !0), this.lastIndex = 0;
12761
+ this.matcherRe = f(J(y, { joinWith: "|" }), !0), this.lastIndex = 0;
12756
12762
  }
12757
12763
  /** @param {string} s */
12758
12764
  exec(y) {
@@ -12822,7 +12828,7 @@ function mg() {
12822
12828
  Jr
12823
12829
  ].forEach((Ie) => Ie(k, y)), k.isCompiled = !0;
12824
12830
  let Re = null;
12825
- return typeof k.keywords == "object" && k.keywords.$pattern && (k.keywords = Object.assign({}, k.keywords), Re = k.keywords.$pattern, delete k.keywords.$pattern), Re = Re || /\w+/, k.keywords && (k.keywords = ps(k.keywords, u.case_insensitive)), x.keywordPatternRe = f(Re, !0), y && (k.begin || (k.begin = /\B|\b/), x.beginRe = f(x.begin), !k.end && !k.endsWithParent && (k.end = /\B|\b/), k.end && (x.endRe = f(x.end)), x.terminatorEnd = d(x.end) || "", k.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (k.end ? "|" : "") + y.terminatorEnd)), k.illegal && (x.illegalRe = f(
12831
+ return typeof k.keywords == "object" && k.keywords.$pattern && (k.keywords = Object.assign({}, k.keywords), Re = k.keywords.$pattern, delete k.keywords.$pattern), Re = Re || /\w+/, k.keywords && (k.keywords = _s(k.keywords, u.case_insensitive)), x.keywordPatternRe = f(Re, !0), y && (k.begin || (k.begin = /\B|\b/), x.beginRe = f(x.begin), !k.end && !k.endsWithParent && (k.end = /\B|\b/), k.end && (x.endRe = f(x.end)), x.terminatorEnd = d(x.end) || "", k.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (k.end ? "|" : "") + y.terminatorEnd)), k.illegal && (x.illegalRe = f(
12826
12832
  /** @type {RegExp | string} */
12827
12833
  k.illegal
12828
12834
  )), k.contains || (k.contains = []), k.contains = [].concat(...k.contains.map(function(Ie) {
@@ -12842,13 +12848,13 @@ function mg() {
12842
12848
  u
12843
12849
  );
12844
12850
  }
12845
- function fs(u) {
12846
- return u ? u.endsWithParent || fs(u.starts) : !1;
12851
+ function gs(u) {
12852
+ return u ? u.endsWithParent || gs(u.starts) : !1;
12847
12853
  }
12848
12854
  function ll(u) {
12849
12855
  return u.variants && !u.cachedVariants && (u.cachedVariants = u.variants.map(function(f) {
12850
12856
  return o(u, { variants: null }, f);
12851
- })), u.cachedVariants ? u.cachedVariants : fs(u) ? o(u, { starts: u.starts ? o(u.starts) : null }) : Object.isFrozen(u) ? o(u) : u;
12857
+ })), u.cachedVariants ? u.cachedVariants : gs(u) ? o(u, { starts: u.starts ? o(u.starts) : null }) : Object.isFrozen(u) ? o(u) : u;
12852
12858
  }
12853
12859
  var cl = "11.11.1";
12854
12860
  class ul extends Error {
@@ -12856,7 +12862,7 @@ function mg() {
12856
12862
  super(f), this.name = "HTMLInjectionError", this.html = O;
12857
12863
  }
12858
12864
  }
12859
- const ni = n, gs = o, ms = Symbol("nomatch"), pl = 7, Ts = function(u) {
12865
+ const ni = n, ms = o, Ts = Symbol("nomatch"), pl = 7, Es = function(u) {
12860
12866
  const f = /* @__PURE__ */ Object.create(null), O = /* @__PURE__ */ Object.create(null), Y = [];
12861
12867
  let Ee = !0;
12862
12868
  const Ae = "Could not find the language '{}', did you forget to load/include a language module?", k = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -12878,26 +12884,26 @@ function mg() {
12878
12884
  function Re(E) {
12879
12885
  let B = E.className + " ";
12880
12886
  B += E.parentNode ? E.parentNode.className : "";
12881
- const z = y.languageDetectRe.exec(B);
12882
- if (z) {
12883
- const ae = Ct(z[1]);
12884
- return ae || (ds(Ae.replace("{}", z[1])), ds("Falling back to no-highlight mode for this block.", E)), ae ? z[1] : "no-highlight";
12887
+ const q = y.languageDetectRe.exec(B);
12888
+ if (q) {
12889
+ const ae = Ct(q[1]);
12890
+ return ae || (hs(Ae.replace("{}", q[1])), hs("Falling back to no-highlight mode for this block.", E)), ae ? q[1] : "no-highlight";
12885
12891
  }
12886
12892
  return B.split(/\s+/).find((ae) => x(ae) || Ct(ae));
12887
12893
  }
12888
- function Ie(E, B, z) {
12894
+ function Ie(E, B, q) {
12889
12895
  let ae = "", Se = "";
12890
- typeof B == "object" ? (ae = E, z = B.ignoreIllegals, Se = B.language) : (Qt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qt("10.7.0", `Please use highlight(code, options) instead.
12891
- https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z === void 0 && (z = !0);
12896
+ typeof B == "object" ? (ae = E, q = B.ignoreIllegals, Se = B.language) : (Qt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qt("10.7.0", `Please use highlight(code, options) instead.
12897
+ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), q === void 0 && (q = !0);
12892
12898
  const et = {
12893
12899
  code: ae,
12894
12900
  language: Se
12895
12901
  };
12896
12902
  Qn("before:highlight", et);
12897
- const Nt = et.result ? et.result : vn(et.language, et.code, z);
12903
+ const Nt = et.result ? et.result : vn(et.language, et.code, q);
12898
12904
  return Nt.code = et.code, Qn("after:highlight", Nt), Nt;
12899
12905
  }
12900
- function vn(E, B, z, ae) {
12906
+ function vn(E, B, q, ae) {
12901
12907
  const Se = /* @__PURE__ */ Object.create(null);
12902
12908
  function et(b, S) {
12903
12909
  return b.keywords[S];
@@ -12935,7 +12941,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12935
12941
  Me.addText(re);
12936
12942
  return;
12937
12943
  }
12938
- b = vn(H.subLanguage, re, !0, Cs[H.subLanguage]), Cs[H.subLanguage] = /** @type {CompiledMode} */
12944
+ b = vn(H.subLanguage, re, !0, Ns[H.subLanguage]), Ns[H.subLanguage] = /** @type {CompiledMode} */
12939
12945
  b._top;
12940
12946
  } else
12941
12947
  b = ii(re, H.subLanguage.length ? H.subLanguage : null);
@@ -12947,7 +12953,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12947
12953
  function st(b, S) {
12948
12954
  b !== "" && (Me.startScope(S), Me.addText(b), Me.endScope());
12949
12955
  }
12950
- function Os(b, S) {
12956
+ function bs(b, S) {
12951
12957
  let j = 1;
12952
12958
  const oe = S.length - 1;
12953
12959
  for (; j <= oe; ) {
@@ -12959,11 +12965,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12959
12965
  we ? st(Tt, we) : (re = Tt, Nt(), re = ""), j++;
12960
12966
  }
12961
12967
  }
12962
- function bs(b, S) {
12963
- 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 && (Os(b.beginScope, S), re = "")), H = Object.create(b, { parent: { value: H } }), H;
12968
+ function Is(b, S) {
12969
+ 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;
12964
12970
  }
12965
- function Is(b, S, j) {
12966
- let oe = te(b.endRe, j);
12971
+ function ys(b, S, j) {
12972
+ let oe = ee(b.endRe, j);
12967
12973
  if (oe) {
12968
12974
  if (b["on:end"]) {
12969
12975
  const we = new t(b);
@@ -12976,7 +12982,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12976
12982
  }
12977
12983
  }
12978
12984
  if (b.endsWithParent)
12979
- return Is(b.parent, S, j);
12985
+ return ys(b.parent, S, j);
12980
12986
  }
12981
12987
  function bl(b) {
12982
12988
  return H.matcher.regexIndex === 0 ? (re += b[0], 1) : (li = !0, 0);
@@ -12986,18 +12992,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
12986
12992
  for (const Tt of we)
12987
12993
  if (Tt && (Tt(b, oe), oe.isMatchIgnored))
12988
12994
  return bl(S);
12989
- return j.skip ? re += S : (j.excludeBegin && (re += S), Xe(), !j.returnBegin && !j.excludeBegin && (re = S)), bs(j, b), j.returnBegin ? 0 : S.length;
12995
+ return j.skip ? re += S : (j.excludeBegin && (re += S), Xe(), !j.returnBegin && !j.excludeBegin && (re = S)), Is(j, b), j.returnBegin ? 0 : S.length;
12990
12996
  }
12991
12997
  function yl(b) {
12992
- const S = b[0], j = B.substring(b.index), oe = Is(H, b, j);
12998
+ const S = b[0], j = B.substring(b.index), oe = ys(H, b, j);
12993
12999
  if (!oe)
12994
- return ms;
13000
+ return Ts;
12995
13001
  const we = H;
12996
- H.endScope && H.endScope._wrap ? (Xe(), st(S, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (Xe(), Os(H.endScope, b)) : we.skip ? re += S : (we.returnEnd || we.excludeEnd || (re += S), Xe(), we.excludeEnd && (re = S));
13002
+ 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));
12997
13003
  do
12998
13004
  H.scope && Me.closeNode(), !H.skip && !H.subLanguage && (to += H.relevance), H = H.parent;
12999
13005
  while (H !== oe.parent);
13000
- return oe.starts && bs(oe.starts, b), we.returnEnd ? 0 : S.length;
13006
+ return oe.starts && Is(oe.starts, b), we.returnEnd ? 0 : S.length;
13001
13007
  }
13002
13008
  function Cl() {
13003
13009
  const b = [];
@@ -13006,7 +13012,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13006
13012
  b.forEach((S) => Me.openNode(S));
13007
13013
  }
13008
13014
  let eo = {};
13009
- function ys(b, S) {
13015
+ function Cs(b, S) {
13010
13016
  const j = S && S[0];
13011
13017
  if (re += b, j == null)
13012
13018
  return Xe(), 0;
@@ -13019,12 +13025,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13019
13025
  }
13020
13026
  if (eo = S, S.type === "begin")
13021
13027
  return Il(S);
13022
- if (S.type === "illegal" && !z) {
13028
+ if (S.type === "illegal" && !q) {
13023
13029
  const oe = new Error('Illegal lexeme "' + j + '" for mode "' + (H.scope || "<unnamed>") + '"');
13024
13030
  throw oe.mode = H, oe;
13025
13031
  } else if (S.type === "end") {
13026
13032
  const oe = yl(S);
13027
- if (oe !== ms)
13033
+ if (oe !== Ts)
13028
13034
  return oe;
13029
13035
  }
13030
13036
  if (S.type === "illegal" && j === "")
@@ -13039,7 +13045,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13039
13045
  throw Vt(Ae.replace("{}", E)), new Error('Unknown language: "' + E + '"');
13040
13046
  const Nl = rl(at);
13041
13047
  let ai = "", H = ae || Nl;
13042
- const Cs = {}, Me = new y.__emitter(y);
13048
+ const Ns = {}, Me = new y.__emitter(y);
13043
13049
  Cl();
13044
13050
  let re = "", to = 0, Ft = 0, ri = 0, li = !1;
13045
13051
  try {
@@ -13050,10 +13056,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13050
13056
  ri++, li ? li = !1 : H.matcher.considerAll(), H.matcher.lastIndex = Ft;
13051
13057
  const b = H.matcher.exec(B);
13052
13058
  if (!b) break;
13053
- const S = B.substring(Ft, b.index), j = ys(S, b);
13059
+ const S = B.substring(Ft, b.index), j = Cs(S, b);
13054
13060
  Ft = b.index + j;
13055
13061
  }
13056
- ys(B.substring(Ft));
13062
+ Cs(B.substring(Ft));
13057
13063
  }
13058
13064
  return Me.finalize(), ai = Me.toHTML(), {
13059
13065
  language: E,
@@ -13104,10 +13110,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13104
13110
  }
13105
13111
  function ii(E, B) {
13106
13112
  B = B || y.languages || Object.keys(f);
13107
- const z = oi(E), ae = B.filter(Ct).filter(vs).map(
13113
+ const q = oi(E), ae = B.filter(Ct).filter(Os).map(
13108
13114
  (Xe) => vn(Xe, E, !1)
13109
13115
  );
13110
- ae.unshift(z);
13116
+ ae.unshift(q);
13111
13117
  const Se = ae.sort((Xe, st) => {
13112
13118
  if (Xe.relevance !== st.relevance) return st.relevance - Xe.relevance;
13113
13119
  if (Xe.language && st.language) {
@@ -13120,17 +13126,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13120
13126
  }), [et, Nt] = Se, Zn = et;
13121
13127
  return Zn.secondBest = Nt, Zn;
13122
13128
  }
13123
- function _l(E, B, z) {
13124
- const ae = B && O[B] || z;
13129
+ function _l(E, B, q) {
13130
+ const ae = B && O[B] || q;
13125
13131
  E.classList.add("hljs"), E.classList.add(`language-${ae}`);
13126
13132
  }
13127
13133
  function si(E) {
13128
13134
  let B = null;
13129
- const z = Re(E);
13130
- if (x(z)) return;
13135
+ const q = Re(E);
13136
+ if (x(q)) return;
13131
13137
  if (Qn(
13132
13138
  "before:highlightElement",
13133
- { el: E, language: z }
13139
+ { el: E, language: q }
13134
13140
  ), E.dataset.highlighted) {
13135
13141
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", E);
13136
13142
  return;
@@ -13141,8 +13147,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13141
13147
  E.innerHTML
13142
13148
  );
13143
13149
  B = E;
13144
- const ae = B.textContent, Se = z ? Ie(ae, { language: z, ignoreIllegals: !0 }) : ii(ae);
13145
- E.innerHTML = Se.value, E.dataset.highlighted = "yes", _l(E, z, Se.language), E.result = {
13150
+ const ae = B.textContent, Se = q ? Ie(ae, { language: q, ignoreIllegals: !0 }) : ii(ae);
13151
+ E.innerHTML = Se.value, E.dataset.highlighted = "yes", _l(E, q, Se.language), E.result = {
13146
13152
  language: Se.language,
13147
13153
  // TODO: remove with version 11.0
13148
13154
  re: Se.relevance,
@@ -13153,7 +13159,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13153
13159
  }), Qn("after:highlightElement", { el: E, result: Se, text: ae });
13154
13160
  }
13155
13161
  function dl(E) {
13156
- y = gs(y, E);
13162
+ y = ms(y, E);
13157
13163
  }
13158
13164
  const hl = () => {
13159
13165
  Jn(), Qt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
@@ -13161,29 +13167,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13161
13167
  function fl() {
13162
13168
  Jn(), Qt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
13163
13169
  }
13164
- let Es = !1;
13170
+ let As = !1;
13165
13171
  function Jn() {
13166
13172
  function E() {
13167
13173
  Jn();
13168
13174
  }
13169
13175
  if (document.readyState === "loading") {
13170
- Es || window.addEventListener("DOMContentLoaded", E, !1), Es = !0;
13176
+ As || window.addEventListener("DOMContentLoaded", E, !1), As = !0;
13171
13177
  return;
13172
13178
  }
13173
13179
  document.querySelectorAll(y.cssSelector).forEach(si);
13174
13180
  }
13175
13181
  function gl(E, B) {
13176
- let z = null;
13182
+ let q = null;
13177
13183
  try {
13178
- z = B(u);
13184
+ q = B(u);
13179
13185
  } catch (ae) {
13180
13186
  if (Vt("Language definition for '{}' could not be registered.".replace("{}", E)), Ee)
13181
13187
  Vt(ae);
13182
13188
  else
13183
13189
  throw ae;
13184
- z = k;
13190
+ q = k;
13185
13191
  }
13186
- z.name || (z.name = E), f[E] = z, z.rawDefinition = B.bind(null, u), z.aliases && As(z.aliases, { languageName: E });
13192
+ q.name || (q.name = E), f[E] = q, q.rawDefinition = B.bind(null, u), q.aliases && vs(q.aliases, { languageName: E });
13187
13193
  }
13188
13194
  function ml(E) {
13189
13195
  delete f[E];
@@ -13196,12 +13202,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13196
13202
  function Ct(E) {
13197
13203
  return E = (E || "").toLowerCase(), f[E] || f[O[E]];
13198
13204
  }
13199
- function As(E, { languageName: B }) {
13200
- typeof E == "string" && (E = [E]), E.forEach((z) => {
13201
- O[z.toLowerCase()] = B;
13205
+ function vs(E, { languageName: B }) {
13206
+ typeof E == "string" && (E = [E]), E.forEach((q) => {
13207
+ O[q.toLowerCase()] = B;
13202
13208
  });
13203
13209
  }
13204
- function vs(E) {
13210
+ function Os(E) {
13205
13211
  const B = Ct(E);
13206
13212
  return B && !B.disableAutodetect;
13207
13213
  }
@@ -13224,9 +13230,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13224
13230
  B !== -1 && Y.splice(B, 1);
13225
13231
  }
13226
13232
  function Qn(E, B) {
13227
- const z = E;
13233
+ const q = E;
13228
13234
  Y.forEach(function(ae) {
13229
- ae[z] && ae[z](B);
13235
+ ae[q] && ae[q](B);
13230
13236
  });
13231
13237
  }
13232
13238
  function Ol(E) {
@@ -13246,9 +13252,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13246
13252
  unregisterLanguage: ml,
13247
13253
  listLanguages: Tl,
13248
13254
  getLanguage: Ct,
13249
- registerAliases: As,
13250
- autoDetection: vs,
13251
- inherit: gs,
13255
+ registerAliases: vs,
13256
+ autoDetection: Os,
13257
+ inherit: ms,
13252
13258
  addPlugin: Al,
13253
13259
  removePlugin: vl
13254
13260
  }), u.debugMode = function() {
@@ -13265,11 +13271,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
13265
13271
  for (const E in zn)
13266
13272
  typeof zn[E] == "object" && e(zn[E]);
13267
13273
  return Object.assign(u, zn), u;
13268
- }, Zt = Ts({});
13269
- return Zt.newInstance = () => Ts({}), Ri = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Ri;
13274
+ }, Zt = Es({});
13275
+ return Zt.newInstance = () => Es({}), Ri = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Ri;
13270
13276
  }
13271
- var Tg = /* @__PURE__ */ mg();
13272
- const vo = /* @__PURE__ */ ql(Tg), ya = "[A-Za-z$_][0-9A-Za-z$_]*", Eg = [
13277
+ var mg = /* @__PURE__ */ gg();
13278
+ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
13273
13279
  "as",
13274
13280
  // for exports
13275
13281
  "in",
@@ -13314,7 +13320,7 @@ const vo = /* @__PURE__ */ ql(Tg), ya = "[A-Za-z$_][0-9A-Za-z$_]*", Eg = [
13314
13320
  "extends",
13315
13321
  // It's reached stage 3, which is "recommended for implementation":
13316
13322
  "using"
13317
- ], Ag = [
13323
+ ], Eg = [
13318
13324
  "true",
13319
13325
  "false",
13320
13326
  "null",
@@ -13398,7 +13404,7 @@ const vo = /* @__PURE__ */ ql(Tg), ya = "[A-Za-z$_][0-9A-Za-z$_]*", Eg = [
13398
13404
  "encodeURIComponent",
13399
13405
  "escape",
13400
13406
  "unescape"
13401
- ], vg = [
13407
+ ], Ag = [
13402
13408
  "arguments",
13403
13409
  "this",
13404
13410
  "super",
@@ -13410,16 +13416,16 @@ const vo = /* @__PURE__ */ ql(Tg), ya = "[A-Za-z$_][0-9A-Za-z$_]*", Eg = [
13410
13416
  "module",
13411
13417
  "global"
13412
13418
  // Node.js
13413
- ], Og = [].concat(
13419
+ ], vg = [].concat(
13414
13420
  Fr,
13415
13421
  wr,
13416
13422
  Vr
13417
13423
  );
13418
- function bg(e) {
13424
+ function Og(e) {
13419
13425
  const t = e.regex, n = (Te, { after: Ze }) => {
13420
13426
  const mt = "</" + Te[0].slice(1);
13421
13427
  return Te.input.indexOf(mt, Ze) !== -1;
13422
- }, o = ya, i = {
13428
+ }, o = Ca, i = {
13423
13429
  begin: "<>",
13424
13430
  end: "</>"
13425
13431
  }, s = /<[A-Za-z0-9\\._:-]+\s*\/>/, a = {
@@ -13455,11 +13461,11 @@ function bg(e) {
13455
13461
  }
13456
13462
  }
13457
13463
  }, l = {
13458
- $pattern: ya,
13459
- keyword: Eg,
13460
- literal: Ag,
13461
- built_in: Og,
13462
- "variable.language": vg
13464
+ $pattern: Ca,
13465
+ keyword: Tg,
13466
+ literal: Eg,
13467
+ built_in: vg,
13468
+ "variable.language": Ag
13463
13469
  }, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`, h = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
13464
13470
  className: "number",
13465
13471
  variants: [
@@ -13528,7 +13534,7 @@ function bg(e) {
13528
13534
  e.BACKSLASH_ESCAPE,
13529
13535
  g
13530
13536
  ]
13531
- }, X = {
13537
+ }, z = {
13532
13538
  className: "comment",
13533
13539
  variants: [
13534
13540
  e.COMMENT(
@@ -13573,7 +13579,7 @@ function bg(e) {
13573
13579
  e.C_BLOCK_COMMENT_MODE,
13574
13580
  e.C_LINE_COMMENT_MODE
13575
13581
  ]
13576
- }, te = [
13582
+ }, ee = [
13577
13583
  e.APOS_STRING_MODE,
13578
13584
  e.QUOTE_STRING_MODE,
13579
13585
  m,
@@ -13587,7 +13593,7 @@ function bg(e) {
13587
13593
  // See https://github.com/highlightjs/highlight.js/issues/3288
13588
13594
  // hljs.REGEXP_MODE
13589
13595
  ];
13590
- g.contains = te.concat({
13596
+ g.contains = ee.concat({
13591
13597
  // we need to pair up {} inside our subst to prevent
13592
13598
  // it from ending too early by matching another }
13593
13599
  begin: /\{/,
@@ -13595,9 +13601,9 @@ function bg(e) {
13595
13601
  keywords: l,
13596
13602
  contains: [
13597
13603
  "self"
13598
- ].concat(te)
13604
+ ].concat(ee)
13599
13605
  });
13600
- const _e = [].concat(X, g.contains), q = _e.concat([
13606
+ const _e = [].concat(z, g.contains), J = _e.concat([
13601
13607
  // eat recursive parens in sub expressions
13602
13608
  {
13603
13609
  begin: /(\s*)\(/,
@@ -13614,7 +13620,7 @@ function bg(e) {
13614
13620
  excludeBegin: !0,
13615
13621
  excludeEnd: !0,
13616
13622
  keywords: l,
13617
- contains: q
13623
+ contains: J
13618
13624
  }, $e = {
13619
13625
  variants: [
13620
13626
  // class Car extends vehicle
@@ -13710,7 +13716,7 @@ function bg(e) {
13710
13716
  function N(Te) {
13711
13717
  return t.concat("(?!", Te.join("|"), ")");
13712
13718
  }
13713
- const J = {
13719
+ const W = {
13714
13720
  match: t.concat(
13715
13721
  /\b/,
13716
13722
  N([
@@ -13723,7 +13729,7 @@ function bg(e) {
13723
13729
  ),
13724
13730
  className: "title.function",
13725
13731
  relevance: 0
13726
- }, Z = {
13732
+ }, ne = {
13727
13733
  begin: t.concat(/\./, t.lookahead(
13728
13734
  t.concat(o, /(?![0-9A-Za-z$_(])/)
13729
13735
  )),
@@ -13775,7 +13781,7 @@ function bg(e) {
13775
13781
  aliases: ["js", "jsx", "mjs", "cjs"],
13776
13782
  keywords: l,
13777
13783
  // this will be extended by TypeScript
13778
- exports: { PARAMS_CONTAINS: q, CLASS_REFERENCE: R },
13784
+ exports: { PARAMS_CONTAINS: J, CLASS_REFERENCE: R },
13779
13785
  illegal: /#(?![$_A-z])/,
13780
13786
  contains: [
13781
13787
  e.SHEBANG({
@@ -13790,7 +13796,7 @@ function bg(e) {
13790
13796
  I,
13791
13797
  v,
13792
13798
  G,
13793
- X,
13799
+ z,
13794
13800
  // Skip numbers when they are part of a variable name
13795
13801
  { match: /\$\d+/ },
13796
13802
  d,
@@ -13807,7 +13813,7 @@ function bg(e) {
13807
13813
  keywords: "return throw case",
13808
13814
  relevance: 0,
13809
13815
  contains: [
13810
- X,
13816
+ z,
13811
13817
  e.REGEXP_MODE,
13812
13818
  {
13813
13819
  className: "function",
@@ -13836,7 +13842,7 @@ function bg(e) {
13836
13842
  excludeBegin: !0,
13837
13843
  excludeEnd: !0,
13838
13844
  keywords: l,
13839
- contains: q
13845
+ contains: J
13840
13846
  }
13841
13847
  ]
13842
13848
  }
@@ -13900,7 +13906,7 @@ function bg(e) {
13900
13906
  match: /\.\.\./,
13901
13907
  relevance: 0
13902
13908
  },
13903
- Z,
13909
+ ne,
13904
13910
  // hack: prevents detection of keywords in some circumstances
13905
13911
  // .keyword()
13906
13912
  // $keyword = x
@@ -13913,7 +13919,7 @@ function bg(e) {
13913
13919
  className: { 1: "title.function" },
13914
13920
  contains: [ke]
13915
13921
  },
13916
- J,
13922
+ W,
13917
13923
  me,
13918
13924
  $e,
13919
13925
  ie,
@@ -13924,7 +13930,7 @@ function bg(e) {
13924
13930
  ]
13925
13931
  };
13926
13932
  }
13927
- var Ig = ft({ props: { code: { type: String, required: !0 }, language: { type: String, default: "" }, autodetect: { type: Boolean, default: !0 }, ignoreIllegals: { type: Boolean, default: !0 } }, setup: function(e) {
13933
+ var bg = ft({ props: { code: { type: String, required: !0 }, language: { type: String, default: "" }, autodetect: { type: Boolean, default: !0 }, ignoreIllegals: { type: Boolean, default: !0 } }, setup: function(e) {
13928
13934
  var t = Mt(e.language);
13929
13935
  Lt(function() {
13930
13936
  return e.language;
@@ -13949,25 +13955,25 @@ var Ig = ft({ props: { code: { type: String, required: !0 }, language: { type: S
13949
13955
  }) };
13950
13956
  }, render: function() {
13951
13957
  return Mi("pre", {}, [Mi("code", { class: this.className, innerHTML: this.highlightedCode })]);
13952
- } }), yg = { component: Ig };
13953
- const Cg = /* @__PURE__ */ ft({
13958
+ } }), Ig = { component: bg };
13959
+ const yg = /* @__PURE__ */ ft({
13954
13960
  __name: "index",
13955
13961
  props: {
13956
13962
  code: {}
13957
13963
  },
13958
13964
  setup(e) {
13959
13965
  const t = e;
13960
- vo.registerLanguage("javascript", bg);
13961
- const n = yg.component, { backgroundColor2: o } = Fo();
13966
+ vo.registerLanguage("javascript", Og);
13967
+ const n = Ig.component, { backgroundColor2: o } = Fo();
13962
13968
  return (i, s) => {
13963
13969
  const a = De("v-sheet");
13964
13970
  return Ne(), pt(a, {
13965
- color: W(o),
13971
+ color: X(o),
13966
13972
  width: "100%",
13967
13973
  height: "100%"
13968
13974
  }, {
13969
13975
  default: _t(() => [
13970
- Oe(W(n), {
13976
+ Oe(X(n), {
13971
13977
  language: "js",
13972
13978
  code: t.code
13973
13979
  }, null, 8, ["code"])
@@ -13976,7 +13982,7 @@ const Cg = /* @__PURE__ */ ft({
13976
13982
  }, 8, ["color"]);
13977
13983
  };
13978
13984
  }
13979
- }), Ng = { class: "text-subtitle-1 ml-3" }, kg = /* @__PURE__ */ ft({
13985
+ }), Cg = { class: "text-subtitle-1 ml-3" }, Ng = /* @__PURE__ */ ft({
13980
13986
  __name: "index",
13981
13987
  setup(e) {
13982
13988
  const { t } = Kn(), { sysBarAvail: n } = Pa(), { backgroundColor0: o, backgroundColor2: i } = Fo(), s = Mt(""), a = Be(() => {
@@ -13992,7 +13998,7 @@ const Cg = /* @__PURE__ */ ft({
13992
13998
  return (_, h) => {
13993
13999
  const d = De("v-sheet"), g = De("v-icon"), m = De("v-spacer"), I = De("v-dialog");
13994
14000
  return Ne(), pt(I, {
13995
- modelValue: W(c),
14001
+ modelValue: X(c),
13996
14002
  "onUpdate:modelValue": h[1] || (h[1] = (v) => kn(c) ? c.value = v : null),
13997
14003
  transition: "dialog-bottom-transition",
13998
14004
  persistent: "",
@@ -14002,27 +14008,27 @@ const Cg = /* @__PURE__ */ ft({
14002
14008
  }, {
14003
14009
  default: _t(() => [
14004
14010
  Oe(d, {
14005
- color: W(o),
14011
+ color: X(o),
14006
14012
  width: "100%",
14007
14013
  height: "100%"
14008
14014
  }, {
14009
14015
  default: _t(() => [
14010
- W(n) ? (Ne(), pt(d, {
14016
+ X(n) ? (Ne(), pt(d, {
14011
14017
  key: 0,
14012
- color: W(i),
14018
+ color: X(i),
14013
14019
  height: 24
14014
14020
  }, null, 8, ["color"])) : $t("", !0),
14015
14021
  Oe(d, {
14016
14022
  class: "d-flex align-center px-3",
14017
- color: W(i),
14023
+ color: X(i),
14018
14024
  height: 48
14019
14025
  }, {
14020
14026
  default: _t(() => [
14021
14027
  Oe(g, {
14022
- icon: W(Ua),
14028
+ icon: X(Ua),
14023
14029
  onClick: h[0] || (h[0] = (v) => c.value = !1)
14024
14030
  }, null, 8, ["icon"]),
14025
- lt("span", Ng, xo(W(t)("x-block-lib.dlg.source.title")), 1),
14031
+ lt("span", Cg, xo(X(t)("x-block-lib.dlg.source.title")), 1),
14026
14032
  Oe(m)
14027
14033
  ]),
14028
14034
  _: 1
@@ -14030,7 +14036,7 @@ const Cg = /* @__PURE__ */ ft({
14030
14036
  lt("div", {
14031
14037
  style: ct(a.value)
14032
14038
  }, [
14033
- Oe(Cg, { code: s.value }, null, 8, ["code"])
14039
+ Oe(yg, { code: s.value }, null, 8, ["code"])
14034
14040
  ], 4)
14035
14041
  ]),
14036
14042
  _: 1
@@ -14040,16 +14046,16 @@ const Cg = /* @__PURE__ */ ft({
14040
14046
  }, 8, ["modelValue"]);
14041
14047
  };
14042
14048
  }
14043
- }), Lg = (e) => {
14044
- e.component("XBlockly", gg), e.component("XSourceDlg", kg);
14049
+ }), kg = (e) => {
14050
+ e.component("XBlockly", fg), e.component("XSourceDlg", Ng);
14045
14051
  };
14046
- async function Vg(e) {
14052
+ async function wg(e) {
14047
14053
  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;
14048
14054
  }
14049
- const Fg = { install: Lg };
14055
+ const Vg = { install: kg };
14050
14056
  export {
14051
- gg as XBlockly,
14052
- Fg as default,
14053
- Lg as install,
14054
- Vg as loadLocaleMessageBlock
14057
+ fg as XBlockly,
14058
+ Vg as default,
14059
+ kg as install,
14060
+ wg as loadLocaleMessageBlock
14055
14061
  };