x-block-lib 0.7.29 → 0.8.1

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
@@ -6,15 +6,15 @@
6
6
  Website: https://highlightjs.org/
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
- */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-2ba1be08]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- import { provide as Xn, inject as Jn, defineComponent as et, resolveComponent as D, createBlock as Q, openBlock as B, unref as P, withCtx as z, createVNode as L, mergeProps as xe, useModel as Nt, ref as mt, computed as Y, resolveDirective as qn, withDirectives as Qn, createElementBlock as J, normalizeStyle as H, createElementVNode as G, toDisplayString as se, withModifiers as vt, mergeModels as Le, Fragment as un, renderList as zn, useId as Se, onUnmounted as ln, useTemplateRef as yt, withKeys as rn, isRef as xt, createCommentVNode as dt, onMounted as Xe, nextTick as Zn, onBeforeUnmount as to, watch as Ot, renderSlot as eo } from "vue";
11
- import { f as no, F as _n, M as p, E as I, r as Je, s as oo, X as pn, u as y, B as T, j as s, O as c, a as Be, i as M, b as v, d as f, c as w, e as ft, g as at, p as kt, h as q, k as qe, l as S, C as dn, N as Z, m as io, P as be, n as Ae, V as Tt, o as Bt, q as hn, t as so, v as ao, w as co, S as uo, x as lo, y as ro, T as ae, z as fn, A as _o, D as po, G as Tn, H as ho, I as fo, J as To, K as mo, L as Eo, Q as go, R as Ao, U as Io } from "./vendor.d087hkbq.js";
12
- import { globalObjects as nt, openConfirmDlg as Oo, openPromptDlg as Co, messageWarning as mn, useColor as bt, useSystem as En, useViewStack as Ye } from "x-essential-lib";
13
- import { elements as tt, pkgs as Ft, parsePixelStr as vo, parsePercentStr as yo, getPropTag as Rt } from "x-runtime-lib";
9
+ */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-2dc9f755]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
+ import { provide as Xn, inject as Jn, defineComponent as ot, resolveComponent as D, createBlock as q, openBlock as b, unref as P, withCtx as Q, createVNode as S, mergeProps as xe, useModel as Lt, ref as Et, computed as x, resolveDirective as qn, withDirectives as Qn, createElementBlock as X, normalizeStyle as H, createElementVNode as G, toDisplayString as ae, withModifiers as yt, mergeModels as Le, Fragment as un, renderList as zn, useId as Se, onUnmounted as ln, useTemplateRef as kt, withKeys as rn, isRef as Yt, createCommentVNode as dt, onMounted as Xe, nextTick as Zn, onBeforeUnmount as to, watch as Ct, renderSlot as eo } from "vue";
11
+ import { f as no, F as _n, M as p, E as A, r as Je, s as oo, X as pn, u as y, B as T, j as s, O as c, a as Be, i as M, b as v, d as h, c as F, e as ft, g as ct, p as Nt, h as J, k as qe, l as B, C as dn, N as z, m as io, P as be, n as Ae, V as mt, o as bt, q as hn, t as so, v as ao, w as co, S as uo, x as lo, y as ro, T as ce, z as fn, A as _o, D as po, G as Tn, H as ho, I as fo, J as To, K as mo, L as Eo, Q as go, R as Ao, U as Io } from "./vendor.d087hkbq.js";
12
+ import { globalObjects as Z, openConfirmDlg as Oo, openPromptDlg as Co, messageWarning as mn, useColor as Rt, useSystem as En, useViewStack as Ye } from "x-essential-lib";
13
+ import { elements as tt, pkgs as wt, parsePixelStr as vo, parsePercentStr as yo, getPropTag as Pt } from "x-runtime-lib";
14
14
  import { globalState as E } from "x-state-lib";
15
- import { useI18n as Pt } from "vue-i18n";
15
+ import { useI18n as Dt } from "vue-i18n";
16
16
  import { useDisplay as ko } from "vuetify";
17
- class A extends _n {
17
+ class g extends _n {
18
18
  constructor(e, n, o) {
19
19
  super(e, n, o);
20
20
  }
@@ -29,7 +29,7 @@ class A extends _n {
29
29
  getText_() {
30
30
  if (this.selectedOption)
31
31
  return super.getText_();
32
- const { i18n: e } = nt, n = this.getSourceBlock();
32
+ const { i18n: e } = Z, n = this.getSourceBlock();
33
33
  if (this.name === "APP")
34
34
  return n.app.name;
35
35
  if (this.name === "PAGE")
@@ -71,9 +71,9 @@ class A extends _n {
71
71
  return "<n/a>";
72
72
  }
73
73
  }
74
- no.register("field_dropdown2", A);
75
- var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
76
- class gn extends I.Abstract {
74
+ no.register("field_dropdown2", g);
75
+ var R = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(R || {});
76
+ class gn extends A.Abstract {
77
77
  isBlank = !0;
78
78
  }
79
79
  Je.register(
@@ -81,22 +81,22 @@ Je.register(
81
81
  "state_change",
82
82
  gn
83
83
  );
84
- const Et = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", wt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
85
- function ce(t) {
84
+ const gt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Kt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
85
+ function ue(t) {
86
86
  const e = t.lastIndexOf("V");
87
87
  if (e <= 0 || e >= t.length - 1)
88
88
  return console.assert(!1, `invalid key=${t}`), "";
89
89
  const n = oo(t.substring(0, e - 1)), o = "v" + t.substring(e + 1);
90
90
  return `${n}_${o}`;
91
91
  }
92
- function Kt(t) {
92
+ function $t(t) {
93
93
  const e = t.lastIndexOf("V");
94
94
  if (e <= 0 || e >= t.length - 1)
95
95
  return console.assert(!1, `invalid key=${t}`), "";
96
96
  const n = t.substring(0, e - 1), o = n[0].toUpperCase(), i = n.substring(1);
97
97
  return `${o}${i}`;
98
98
  }
99
- function N(t) {
99
+ function L(t) {
100
100
  return t.length <= 0 && t.push([p.NO_OPTION, ""]), t;
101
101
  }
102
102
  function No(t) {
@@ -120,11 +120,11 @@ function Re(t, e) {
120
120
  let n = null;
121
121
  return e === "string" ? n = Ie("") : e === "integer" || e === "decimal" ? n = Qe(0) : e === "boolean" ? n = Lo() : e === "enum" || e === "dateTime" ? n = Ie("") : console.assert(!1), n ? pn.domToBlock(n, t) : null;
122
122
  }
123
- function ct(t) {
123
+ function ut(t) {
124
124
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
125
125
  }
126
126
  function So(t) {
127
- return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? Kt(t.items) : t.ui === "multiTypes" ? Kt(t.types) : t.ui === "compSelect" ? "Comp" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
127
+ return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? $t(t.items) : t.ui === "multiTypes" ? $t(t.types) : t.ui === "compSelect" ? "Comp" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
128
128
  }
129
129
  function An(t) {
130
130
  return t === "string" ? "String" : t === "integer" || t === "decimal" ? "Number" : t === "boolean" ? "Boolean" : t === "enum" || t === "dateTime" ? "String" : (console.assert(!1), null);
@@ -137,9 +137,9 @@ function Fe(t, e, n, o) {
137
137
  `, a = y.xml.textToDom(i);
138
138
  return pn.domToBlock(a, t);
139
139
  }
140
- function x(t, e) {
140
+ function V(t, e) {
141
141
  try {
142
- I.disable(), e.forEach((n) => {
142
+ A.disable(), e.forEach((n) => {
143
143
  const [o, i, a, u] = n, l = t.getInput(o)?.connection;
144
144
  if (!l)
145
145
  return;
@@ -158,18 +158,18 @@ function x(t, e) {
158
158
  ), r.outputConnection.connect(l);
159
159
  });
160
160
  } finally {
161
- I.enable();
161
+ A.enable();
162
162
  }
163
163
  }
164
- function st(t) {
164
+ function at(t) {
165
165
  const e = `<shadow type="text_v1"><field name="TEXT">${t}</field></shadow>`;
166
166
  return y.xml.textToDom(e);
167
167
  }
168
- function $t(t) {
168
+ function Ht(t) {
169
169
  const e = `<shadow type="math_number_v1"><field name="NUM">${t}</field></shadow>`;
170
170
  return y.xml.textToDom(e);
171
171
  }
172
- function Ht(t) {
172
+ function Gt(t) {
173
173
  const e = `<shadow type="logic_boolean_v1"><field name="BOOL">${t ? "TRUE" : "FALSE"}</field></shadow>`;
174
174
  return y.xml.textToDom(e);
175
175
  }
@@ -180,11 +180,11 @@ function bo() {
180
180
  return y.xml.textToDom('<shadow type="object_create_v1"></shadow>');
181
181
  }
182
182
  function Ro(t) {
183
- const e = `<shadow type="${ce(t)}"></shadow>`;
183
+ const e = `<shadow type="${ue(t)}"></shadow>`;
184
184
  return y.xml.textToDom(e);
185
185
  }
186
186
  function Po(t) {
187
- const e = `<shadow type="${ce(t)}"></shadow>`;
187
+ const e = `<shadow type="${ue(t)}"></shadow>`;
188
188
  return y.xml.textToDom(e);
189
189
  }
190
190
  function Do(t) {
@@ -194,13 +194,13 @@ function Do(t) {
194
194
  function Mo() {
195
195
  return y.xml.textToDom('<shadow type="select_comp_v1"></shadow>');
196
196
  }
197
- function ut(t) {
197
+ function lt(t) {
198
198
  let e = null;
199
- return t === "string" ? e = st("") : t === "number" ? e = $t(0) : t === "boolean" ? e = Ht(!1) : t === "array" ? e = Bo() : t === "object" ? e = bo() : console.assert(!1), e;
199
+ return t === "string" ? e = at("") : t === "number" ? e = Ht(0) : t === "boolean" ? e = Gt(!1) : t === "array" ? e = Bo() : t === "object" ? e = bo() : console.assert(!1), e;
200
200
  }
201
201
  function Uo(t) {
202
202
  let e = null;
203
- return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = st(t.default) : t.ui === "numInput" ? e = $t(t.default) : t.ui === "switch" ? e = Ht(t.default) : t.ui === "select" ? e = Ro(t.items) : t.ui === "multiTypes" ? e = Po(t.types) : t.ui === "compSelect" ? e = Mo() : t.ui === "colorPicker" ? e = Do(t.default ?? "#ff0000") : console.assert(!1), e;
203
+ return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = at(t.default) : t.ui === "numInput" ? e = Ht(t.default) : t.ui === "switch" ? e = Gt(t.default) : t.ui === "select" ? e = Ro(t.items) : t.ui === "multiTypes" ? e = Po(t.types) : t.ui === "compSelect" ? e = Mo() : t.ui === "colorPicker" ? e = Do(t.default ?? "#ff0000") : console.assert(!1), e;
204
204
  }
205
205
  function Vo() {
206
206
  return E.app.activePage.meta.arguments;
@@ -214,7 +214,7 @@ function xo() {
214
214
  const t = [];
215
215
  return Vo().forEach(({ id: n, name: o }) => {
216
216
  t.push([o, n]);
217
- }), N(t);
217
+ }), L(t);
218
218
  }
219
219
  const Yo = {
220
220
  init: function() {
@@ -223,7 +223,7 @@ const Yo = {
223
223
  name: "",
224
224
  type: "string"
225
225
  }, this.appendDummyInput().appendField("%{BKY_APP_V1_GET_PAGE_ARGUMENT_TITLE}").appendField(
226
- new A(() => this.genArgumentOpts_()),
226
+ new g(() => this.genArgumentOpts_()),
227
227
  "ARGUMENT"
228
228
  ), this.setOutput(!0, null), this.setStyle("variable_blocks"), this.setTooltip("%{BKY_APP_V1_GET_PAGE_ARGUMENT_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_GET_PAGE_ARGUMENT_HELPURL}");
229
229
  },
@@ -241,9 +241,9 @@ const Yo = {
241
241
  return xo();
242
242
  },
243
243
  onchange: function(t) {
244
- if (t.type === b.STATE_CHANGE)
244
+ if (t.type === R.STATE_CHANGE)
245
245
  this.checkWarning_();
246
- else if (t.type === I.BLOCK_CHANGE) {
246
+ else if (t.type === A.BLOCK_CHANGE) {
247
247
  const e = t;
248
248
  if (e.blockId !== this.id)
249
249
  return;
@@ -261,7 +261,7 @@ const Yo = {
261
261
  this.argument.id = e.id, this.argument.name = e.name, this.argument.type = e.type, this.updateShape_();
262
262
  },
263
263
  updateShape_: function() {
264
- this.setOutput(!0, ct(this.argument.type));
264
+ this.setOutput(!0, ut(this.argument.type));
265
265
  },
266
266
  checkWarning_: function() {
267
267
  const t = ze(this.argument.id);
@@ -282,36 +282,36 @@ s.forBlock.get_page_argument_v1 = function(t) {
282
282
  return [`__getPageArgumentV1__(${s.quote_(e.argument.id)})`, c.FUNCTION_CALL];
283
283
  };
284
284
  const Fo = (t, e) => {
285
- const n = ce(t), o = Kt(t);
285
+ const n = ue(t), o = $t(t);
286
286
  T[n] = {
287
287
  init: function() {
288
288
  this.appendDummyInput().appendField(
289
- new A(() => this.genOpts_()),
289
+ new g(() => this.genOpts_()),
290
290
  "ITEM"
291
291
  ), this.setOutput(!0, o), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl("");
292
292
  },
293
293
  genOpts_: function() {
294
- const { i18n: i } = nt, a = [];
294
+ const { i18n: i } = Z, a = [];
295
295
  for (const { title: u, value: l } of e)
296
296
  a.push([i.global.t(u), l]);
297
- return N(a);
297
+ return L(a);
298
298
  }
299
299
  }, s.forBlock[n] = function(i) {
300
300
  const a = s.quote_, u = i.getFieldValue("ITEM");
301
301
  return [a(u), c.ATOMIC];
302
302
  };
303
303
  };
304
- for (const t in Ft) {
305
- const e = Ft[t];
304
+ for (const t in wt) {
305
+ const e = wt[t];
306
306
  for (const n in e.items)
307
307
  Fo(n, e.items[n]);
308
308
  }
309
309
  const wo = (t, e) => {
310
- const n = ce(t), o = Kt(t);
310
+ const n = ue(t), o = $t(t);
311
311
  T[n] = {
312
312
  init: function() {
313
313
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
314
- new A(() => this.genOpts_()),
314
+ new g(() => this.genOpts_()),
315
315
  "TYPE"
316
316
  ), this.setOutput(!0, o), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl(""), this.updateShape_();
317
317
  },
@@ -324,15 +324,15 @@ const wo = (t, e) => {
324
324
  }, 0);
325
325
  },
326
326
  genOpts_: function() {
327
- const { i18n: i } = nt, a = [];
327
+ const { i18n: i } = Z, a = [];
328
328
  for (const { title: u, value: l } of e)
329
329
  a.push([i.global.t(u), l]);
330
- return N(a);
330
+ return L(a);
331
331
  },
332
332
  onchange: function(i) {
333
- if (i.type === b.STATE_CHANGE)
333
+ if (i.type === R.STATE_CHANGE)
334
334
  this.checkWarning_();
335
- else if (i.type === I.BLOCK_CHANGE) {
335
+ else if (i.type === A.BLOCK_CHANGE) {
336
336
  const a = i;
337
337
  if (a.blockId !== this.id)
338
338
  return;
@@ -398,13 +398,13 @@ const wo = (t, e) => {
398
398
  return [a(i.value), c.ATOMIC];
399
399
  };
400
400
  };
401
- for (const t in Ft) {
402
- const e = Ft[t];
401
+ for (const t in wt) {
402
+ const e = wt[t];
403
403
  for (const n in e.types)
404
404
  wo(n, e.types[n]);
405
405
  }
406
- function Dt(t) {
407
- const { propEvents: e, slotMethods: n } = E.runtime, { activeObject: o } = E.app, i = [], a = Rt(o.type, o.subtype);
406
+ function Mt(t) {
407
+ const { propEvents: e, slotMethods: n } = E.runtime, { activeObject: o } = E.app, i = [], a = Pt(o.type, o.subtype);
408
408
  if (!a)
409
409
  return i;
410
410
  for (const u of o.nodes) {
@@ -431,7 +431,7 @@ function Dt(t) {
431
431
  }
432
432
  return i;
433
433
  }
434
- function lt(t) {
434
+ function rt(t) {
435
435
  const { activeObject: e } = E.app, n = e.nodes.find((i) => i.id === t);
436
436
  if (!n)
437
437
  return;
@@ -447,16 +447,16 @@ function lt(t) {
447
447
  alias: n.alias
448
448
  };
449
449
  }
450
- function ue(t) {
451
- const { i18n: e } = nt, n = [], o = Dt(t);
450
+ function le(t) {
451
+ const { i18n: e } = Z, n = [], o = Mt(t);
452
452
  for (const { id: i, name: a, alias: u } of o) {
453
453
  let l = e.global.t(a);
454
454
  u && (l += " / " + u), n.push([l, i]);
455
455
  }
456
- return N(n);
456
+ return L(n);
457
457
  }
458
458
  function Pe(t) {
459
- const { propEvents: e } = E.runtime, { activeObject: n, activeComp: o } = E.app, i = [], a = Rt(n.type, n.subtype);
459
+ const { propEvents: e } = E.runtime, { activeObject: n, activeComp: o } = E.app, i = [], a = Pt(n.type, n.subtype);
460
460
  if (!a)
461
461
  return i;
462
462
  const u = n.nodes.find((r) => r.id === t);
@@ -492,7 +492,7 @@ function Pe(t) {
492
492
  return i;
493
493
  }
494
494
  function Oe(t, e) {
495
- const { propEvents: n } = E.runtime, { activeObject: o, activeComp: i } = E.app, a = Rt(o.type, o.subtype);
495
+ const { propEvents: n } = E.runtime, { activeObject: o, activeComp: i } = E.app, a = Pt(o.type, o.subtype);
496
496
  if (!a)
497
497
  return;
498
498
  const u = o.nodes.find((_) => _.id === t);
@@ -523,8 +523,8 @@ function Oe(t, e) {
523
523
  );
524
524
  if (_) {
525
525
  const d = [];
526
- for (const { id: m, name: h } of _.params)
527
- d.push({ key: m, name: h });
526
+ for (const { id: m, name: f } of _.params)
527
+ d.push({ key: m, name: f });
528
528
  return {
529
529
  keys: _.id,
530
530
  names: ["x-runtime-lib.custom", _.name],
@@ -534,7 +534,7 @@ function Oe(t, e) {
534
534
  }
535
535
  }
536
536
  function Ko(t) {
537
- const { i18n: e } = nt, n = [], o = Pe(t);
537
+ const { i18n: e } = Z, n = [], o = Pe(t);
538
538
  for (const { keys: i, names: a } of o) {
539
539
  if (a.length <= 0)
540
540
  continue;
@@ -543,7 +543,7 @@ function Ko(t) {
543
543
  r === 1 ? u += " / " : r > 1 && (u += " - "), u += e.global.t(l);
544
544
  }), n.push([u, i]);
545
545
  }
546
- return N(n);
546
+ return L(n);
547
547
  }
548
548
  function De(t) {
549
549
  const { slotMethods: e } = E.runtime, { activeObject: n, activeComp: o } = E.app, i = [], a = n.nodes.find((l) => l.id === t);
@@ -570,8 +570,8 @@ function De(t) {
570
570
  if (t.startsWith("globality") && n.type === "comp")
571
571
  for (const l of o.meta.methods) {
572
572
  const r = [];
573
- for (const { id: d, name: m, type: h } of l.inputs)
574
- r.push({ key: d, name: m, type: h });
573
+ for (const { id: d, name: m, type: f } of l.inputs)
574
+ r.push({ key: d, name: m, type: f });
575
575
  const _ = [];
576
576
  for (const { id: d, name: m } of l.outputs)
577
577
  _.push({ key: d, name: m });
@@ -619,11 +619,11 @@ function Ce(t, e) {
619
619
  );
620
620
  if (r) {
621
621
  const _ = [];
622
- for (const { id: m, name: h, type: O } of r.inputs)
623
- _.push({ key: m, name: h, type: O });
622
+ for (const { id: m, name: f, type: I } of r.inputs)
623
+ _.push({ key: m, name: f, type: I });
624
624
  const d = [];
625
- for (const { id: m, name: h } of r.outputs)
626
- d.push({ key: m, name: h });
625
+ for (const { id: m, name: f } of r.outputs)
626
+ d.push({ key: m, name: f });
627
627
  return {
628
628
  keys: r.id,
629
629
  names: ["x-runtime-lib.custom", r.name],
@@ -634,7 +634,7 @@ function Ce(t, e) {
634
634
  }
635
635
  }
636
636
  function $o(t) {
637
- const { i18n: e } = nt, n = [], o = De(t);
637
+ const { i18n: e } = Z, n = [], o = De(t);
638
638
  for (const { keys: i, names: a } of o) {
639
639
  if (a.length <= 0)
640
640
  continue;
@@ -643,10 +643,10 @@ function $o(t) {
643
643
  r === 1 ? u += " / " : r > 1 && (u += " - "), u += e.global.t(l);
644
644
  }), n.push([u, i]);
645
645
  }
646
- return N(n);
646
+ return L(n);
647
647
  }
648
- function Lt(t, e) {
649
- const { props: n, slotProps: o } = E.runtime, { activeObject: i, activeComp: a } = E.app, u = [], l = Rt(i.type, i.subtype);
648
+ function St(t, e) {
649
+ const { props: n, slotProps: o } = E.runtime, { activeObject: i, activeComp: a } = E.app, u = [], l = Pt(i.type, i.subtype);
650
650
  if (!l)
651
651
  return u;
652
652
  const r = i.nodes.find((d) => d.id === t);
@@ -656,11 +656,11 @@ function Lt(t, e) {
656
656
  if (!_)
657
657
  return console.assert(!1, "invalid element", r.key), u;
658
658
  if (n[_.key] && n[_.key][l])
659
- for (const { keys: d, names: m, raw: h } of n[_.key][l])
660
- e && (!h.ui || h.readonly || d === "basic.alias") || u.push({ keys: d, names: m, meta: { from: "prop", raw: h } });
659
+ for (const { keys: d, names: m, raw: f } of n[_.key][l])
660
+ e && (!f.ui || f.readonly || d === "basic.alias") || u.push({ keys: d, names: m, meta: { from: "prop", raw: f } });
661
661
  if (o[_.key])
662
- for (const { keys: d, names: m, raw: h } of o[_.key])
663
- u.push({ keys: d, names: m, meta: { from: "slot", raw: h } });
662
+ for (const { keys: d, names: m, raw: f } of o[_.key])
663
+ u.push({ keys: d, names: m, meta: { from: "slot", raw: f } });
664
664
  if (t.startsWith("globality") && i.type === "comp")
665
665
  for (const d of a.meta.properties)
666
666
  u.push({
@@ -674,7 +674,7 @@ function Lt(t, e) {
674
674
  return u;
675
675
  }
676
676
  function ht(t, e) {
677
- const { props: n, slotProps: o } = E.runtime, { activeObject: i, activeComp: a } = E.app, u = Rt(i.type, i.subtype);
677
+ const { props: n, slotProps: o } = E.runtime, { activeObject: i, activeComp: a } = E.app, u = Pt(i.type, i.subtype);
678
678
  if (!u)
679
679
  return;
680
680
  const l = i.nodes.find((_) => _.id === t);
@@ -727,14 +727,14 @@ function ht(t, e) {
727
727
  }
728
728
  }
729
729
  function In(t, e) {
730
- const { i18n: n } = nt, o = [], i = Lt(t, e);
730
+ const { i18n: n } = Z, o = [], i = St(t, e);
731
731
  for (const { keys: a, names: u } of i) {
732
732
  let l = "";
733
733
  u.forEach((r, _) => {
734
734
  _ !== 0 && (l += " - "), l += n.global.t(r);
735
735
  }), o.push([l, a]);
736
736
  }
737
- return N(o);
737
+ return L(o);
738
738
  }
739
739
  const Ho = {
740
740
  init: function() {
@@ -747,12 +747,12 @@ const Ho = {
747
747
  keys: "",
748
748
  names: [],
749
749
  params: []
750
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_ON_APP_EVENT_TITLE}").appendField(new A(() => this.genNodeOpts_()), "NODE").appendField(new A(() => this.genEventOpts_()), "EVENT"), this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_ON_APP_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_ON_APP_EVENT_HELPURL}"), this.initData_();
750
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_ON_APP_EVENT_TITLE}").appendField(new g(() => this.genNodeOpts_()), "NODE").appendField(new g(() => this.genEventOpts_()), "EVENT"), this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_ON_APP_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_ON_APP_EVENT_HELPURL}"), this.initData_();
751
751
  },
752
752
  initData_: function() {
753
753
  if (this.node.id)
754
754
  return;
755
- const t = Dt("event")?.[0];
755
+ const t = Mt("event")?.[0];
756
756
  if (!t)
757
757
  return;
758
758
  this.node.id = t.id, this.node.key = t.key, this.node.name = t.name, this.node.alias = t.alias;
@@ -777,15 +777,15 @@ const Ho = {
777
777
  }, 0);
778
778
  },
779
779
  genNodeOpts_: function() {
780
- return ue("event");
780
+ return le("event");
781
781
  },
782
782
  genEventOpts_: function() {
783
783
  return Ko(this.node.id);
784
784
  },
785
785
  onchange: function(t) {
786
- if (t.type === b.STATE_CHANGE)
786
+ if (t.type === R.STATE_CHANGE)
787
787
  this.checkWarning_();
788
- else if (t.type === I.BLOCK_CHANGE) {
788
+ else if (t.type === A.BLOCK_CHANGE) {
789
789
  const e = t;
790
790
  if (e.blockId !== this.id)
791
791
  return;
@@ -795,7 +795,7 @@ const Ho = {
795
795
  }
796
796
  },
797
797
  onNodeChange_: function(t) {
798
- const e = lt(t);
798
+ const e = rt(t);
799
799
  if (!e) {
800
800
  console.assert(!1);
801
801
  return;
@@ -828,10 +828,10 @@ const Ho = {
828
828
  const t = [];
829
829
  this.event.params.forEach(({ key: e, name: n }, o) => {
830
830
  t.push(["PARAM" + o, e, n, !0]);
831
- }), t.length > 0 && x(this, t);
831
+ }), t.length > 0 && V(this, t);
832
832
  },
833
833
  checkWarning_: function() {
834
- const t = lt(this.node.id);
834
+ const t = rt(this.node.id);
835
835
  if (!t) {
836
836
  this.setWarningText(p.WARN_NODE_NOT_FOUND);
837
837
  return;
@@ -868,14 +868,14 @@ ${a}});
868
868
  function we() {
869
869
  return E.app.activeComp.meta.methods;
870
870
  }
871
- function Gt(t) {
871
+ function Wt(t) {
872
872
  return E.app.activeComp.meta.methods.find((e) => e.id === t);
873
873
  }
874
874
  function On() {
875
875
  const t = [], e = we();
876
876
  for (const { id: n, name: o } of e)
877
877
  t.push([o, n]);
878
- return N(t);
878
+ return L(t);
879
879
  }
880
880
  function Me(t) {
881
881
  const e = E.app.activeComp.meta.methods.find(
@@ -894,7 +894,7 @@ function Go(t) {
894
894
  const e = [], n = Me(t);
895
895
  for (const { id: o, name: i } of n)
896
896
  e.push([i, o]);
897
- return N(e);
897
+ return L(e);
898
898
  }
899
899
  function Cn() {
900
900
  return E.app.activeComp.meta.events;
@@ -906,7 +906,7 @@ function Wo() {
906
906
  const t = [], e = Cn();
907
907
  for (const { id: n, name: o } of e)
908
908
  t.push([o, n]);
909
- return N(t);
909
+ return L(t);
910
910
  }
911
911
  const jo = {
912
912
  init: function() {
@@ -914,7 +914,7 @@ const jo = {
914
914
  id: "",
915
915
  name: "",
916
916
  params: []
917
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_TRIGGER_APP_EVENT_TITLE}").appendField(new A(() => this.genEventOpts_()), "EVENT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_TRIGGER_APP_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_TRIGGER_APP_EVENT_HELPURL}"), this.initData_();
917
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_TRIGGER_APP_EVENT_TITLE}").appendField(new g(() => this.genEventOpts_()), "EVENT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_TRIGGER_APP_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_TRIGGER_APP_EVENT_HELPURL}"), this.initData_();
918
918
  },
919
919
  initData_: function() {
920
920
  if (this.event.id)
@@ -940,9 +940,9 @@ const jo = {
940
940
  return Wo();
941
941
  },
942
942
  onchange: function(t) {
943
- if (t.type === b.STATE_CHANGE)
943
+ if (t.type === R.STATE_CHANGE)
944
944
  this.checkWarning_();
945
- else if (t.type === I.BLOCK_CHANGE) {
945
+ else if (t.type === A.BLOCK_CHANGE) {
946
946
  const e = t;
947
947
  if (e.blockId !== this.id)
948
948
  return;
@@ -967,14 +967,14 @@ const jo = {
967
967
  e.connection.setShadowDom(null);
968
968
  const n = e.connection.targetBlock();
969
969
  n && !n.isShadow() && n.dispose();
970
- const { type: o } = this.event.params[t], i = ct(o);
970
+ const { type: o } = this.event.params[t], i = ut(o);
971
971
  e.setCheck(i);
972
972
  }
973
973
  },
974
974
  updateShadows_: function() {
975
975
  if (!this.isInsertionMarker())
976
976
  for (let t = 0; t < this.event.params.length; t++) {
977
- const e = this.event.params[t], n = ut(e.type);
977
+ const e = this.event.params[t], n = lt(e.type);
978
978
  this.getInput("PARAM" + t)?.connection?.setShadowDom(n);
979
979
  }
980
980
  },
@@ -1015,13 +1015,13 @@ const Xo = {
1015
1015
  updateShadow_: function() {
1016
1016
  if (this.isInsertionMarker())
1017
1017
  return;
1018
- const t = st("title");
1018
+ const t = at("title");
1019
1019
  this.getInput("TITLE").connection.setShadowDom(t);
1020
- const e = st("text");
1020
+ const e = at("text");
1021
1021
  this.getInput("TEXT").connection.setShadowDom(e);
1022
1022
  },
1023
1023
  ensureBlocks_: function() {
1024
- this.isInsertionMarker() || x(this, [
1024
+ this.isInsertionMarker() || V(this, [
1025
1025
  ["RESULT", "__result__", "PARAM_RESULT", !0]
1026
1026
  ]);
1027
1027
  }
@@ -1052,15 +1052,15 @@ const Jo = {
1052
1052
  updateShadow_: function() {
1053
1053
  if (this.isInsertionMarker())
1054
1054
  return;
1055
- const t = st("title");
1055
+ const t = at("title");
1056
1056
  this.getInput("TITLE").connection.setShadowDom(t);
1057
- const e = st("label");
1057
+ const e = at("label");
1058
1058
  this.getInput("LABEL").connection.setShadowDom(e);
1059
- const n = st("");
1059
+ const n = at("");
1060
1060
  this.getInput("VALUE").connection.setShadowDom(n);
1061
1061
  },
1062
1062
  ensureBlocks_: function() {
1063
- this.isInsertionMarker() || x(this, [
1063
+ this.isInsertionMarker() || V(this, [
1064
1064
  ["RESULT", "__result__", "PARAM_RESULT", !0]
1065
1065
  ]);
1066
1066
  }
@@ -1073,7 +1073,7 @@ s.forBlock.open_prompt_dlg_v1 = function(t) {
1073
1073
  ${i}}
1074
1074
  `;
1075
1075
  };
1076
- f([
1076
+ h([
1077
1077
  {
1078
1078
  type: "popup_message_v1",
1079
1079
  message0: "%{BKY_APP_V1_POPUP_MESSAGE_TITLE}",
@@ -1111,7 +1111,7 @@ const qo = {
1111
1111
  id: "",
1112
1112
  name: "",
1113
1113
  inputs: []
1114
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_APP_METHOD_IMPL_TITLE}").appendField(new A(() => this.genMethodOpts_()), "METHOD"), this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_APP_METHOD_IMPL_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_METHOD_IMPL_HELPURL}"), this.initData_();
1114
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_APP_METHOD_IMPL_TITLE}").appendField(new g(() => this.genMethodOpts_()), "METHOD"), this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_APP_METHOD_IMPL_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_METHOD_IMPL_HELPURL}"), this.initData_();
1115
1115
  },
1116
1116
  initData_: function() {
1117
1117
  if (this.method.id)
@@ -1137,9 +1137,9 @@ const qo = {
1137
1137
  return On();
1138
1138
  },
1139
1139
  onchange: function(t) {
1140
- if (t.type === b.STATE_CHANGE)
1140
+ if (t.type === R.STATE_CHANGE)
1141
1141
  this.checkWarning_();
1142
- else if (t.type === I.BLOCK_CHANGE) {
1142
+ else if (t.type === A.BLOCK_CHANGE) {
1143
1143
  const e = t;
1144
1144
  if (e.blockId !== this.id)
1145
1145
  return;
@@ -1149,7 +1149,7 @@ const qo = {
1149
1149
  }
1150
1150
  },
1151
1151
  onMethodChange_: function(t) {
1152
- const e = Gt(t);
1152
+ const e = Wt(t);
1153
1153
  e ? (this.method.id = e.id, this.method.name = e.name, this.method.inputs = e.inputs) : (this.method.id = "", this.method.name = "", this.method.inputs = []), this.updateShape_(), setTimeout(() => {
1154
1154
  this.rebuildBlocks();
1155
1155
  }, 0);
@@ -1170,10 +1170,10 @@ const qo = {
1170
1170
  const { id: n, name: o } = this.method.inputs[e];
1171
1171
  t.push(["INPUT" + e, `__param@${n}__`, o, !1]);
1172
1172
  }
1173
- x(this, t);
1173
+ V(this, t);
1174
1174
  },
1175
1175
  checkWarning_: function() {
1176
- const t = Gt(this.method.id);
1176
+ const t = Wt(this.method.id);
1177
1177
  if (!t) {
1178
1178
  this.setWarningText(p.WARN_METHOD_NOT_FOUND);
1179
1179
  return;
@@ -1204,12 +1204,12 @@ const Qo = {
1204
1204
  names: [],
1205
1205
  inputs: [],
1206
1206
  outputs: []
1207
- }, this.appendDummyInput("DUMMY").appendField("%{BKY_APP_V1_CALL_APP_METHOD_TITLE}").appendField(new A(() => this.genNodeOpts_()), "NODE").appendField(new A(() => this.genMethodOpts_()), "METHOD"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_CALL_APP_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_CALL_APP_METHOD_HELPURL}"), this.initData_();
1207
+ }, this.appendDummyInput("DUMMY").appendField("%{BKY_APP_V1_CALL_APP_METHOD_TITLE}").appendField(new g(() => this.genNodeOpts_()), "NODE").appendField(new g(() => this.genMethodOpts_()), "METHOD"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_CALL_APP_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_CALL_APP_METHOD_HELPURL}"), this.initData_();
1208
1208
  },
1209
1209
  initData_: function() {
1210
1210
  if (this.node.id)
1211
1211
  return;
1212
- const t = Dt()?.[0];
1212
+ const t = Mt()?.[0];
1213
1213
  if (!t)
1214
1214
  return;
1215
1215
  this.node.id = t.id, this.node.key = t.key, this.node.name = t.name, this.node.alias = t.alias;
@@ -1234,15 +1234,15 @@ const Qo = {
1234
1234
  }, 0);
1235
1235
  },
1236
1236
  genNodeOpts_: function() {
1237
- return ue("method");
1237
+ return le("method");
1238
1238
  },
1239
1239
  genMethodOpts_: function() {
1240
1240
  return $o(this.node.id);
1241
1241
  },
1242
1242
  onchange: function(t) {
1243
- if (t.type === b.STATE_CHANGE)
1243
+ if (t.type === R.STATE_CHANGE)
1244
1244
  this.checkWarning_();
1245
- else if (t.type === I.BLOCK_CHANGE) {
1245
+ else if (t.type === A.BLOCK_CHANGE) {
1246
1246
  const e = t;
1247
1247
  if (e.blockId !== this.id)
1248
1248
  return;
@@ -1252,7 +1252,7 @@ const Qo = {
1252
1252
  }
1253
1253
  },
1254
1254
  onNodeChange_: function(t) {
1255
- const e = lt(t);
1255
+ const e = rt(t);
1256
1256
  if (!e) {
1257
1257
  console.assert(!1);
1258
1258
  return;
@@ -1296,7 +1296,7 @@ const Qo = {
1296
1296
  const e = this.method.inputs[t];
1297
1297
  if (!e.type)
1298
1298
  continue;
1299
- const n = ut(e.type);
1299
+ const n = lt(e.type);
1300
1300
  this.getInput("INPUT" + t).setShadowDom(n);
1301
1301
  }
1302
1302
  },
@@ -1308,10 +1308,10 @@ const Qo = {
1308
1308
  const { key: n, name: o } = this.method.outputs[e];
1309
1309
  t.push(["OUTPUT" + e, n, o, !0]);
1310
1310
  }
1311
- t.length > 0 && x(this, t);
1311
+ t.length > 0 && V(this, t);
1312
1312
  },
1313
1313
  checkWarning_: function() {
1314
- const t = lt(this.node.id);
1314
+ const t = rt(this.node.id);
1315
1315
  if (!t) {
1316
1316
  this.setWarningText(p.WARN_NODE_NOT_FOUND);
1317
1317
  return;
@@ -1358,7 +1358,7 @@ const zo = {
1358
1358
  id: "",
1359
1359
  name: "",
1360
1360
  type: "string"
1361
- }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_APP_METHOD_OUTPUT_TITLE}").appendField(new A(() => this.genMethodOpts_()), "METHOD").appendField(new A(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_METHOD_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_METHOD_OUTPUT_HELPURL}"), this.initData_();
1361
+ }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_APP_METHOD_OUTPUT_TITLE}").appendField(new g(() => this.genMethodOpts_()), "METHOD").appendField(new g(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_METHOD_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_METHOD_OUTPUT_HELPURL}"), this.initData_();
1362
1362
  },
1363
1363
  initData_: function() {
1364
1364
  if (this.method.id)
@@ -1393,9 +1393,9 @@ const zo = {
1393
1393
  return Go(this.method.id);
1394
1394
  },
1395
1395
  onchange: function(t) {
1396
- if (t.type === b.STATE_CHANGE)
1396
+ if (t.type === R.STATE_CHANGE)
1397
1397
  this.checkWarning_();
1398
- else if (t.type === I.BLOCK_CHANGE) {
1398
+ else if (t.type === A.BLOCK_CHANGE) {
1399
1399
  const e = t;
1400
1400
  if (e.blockId !== this.id)
1401
1401
  return;
@@ -1406,7 +1406,7 @@ const zo = {
1406
1406
  }, 0);
1407
1407
  },
1408
1408
  onMethodChange_: function(t) {
1409
- const e = Gt(t);
1409
+ const e = Wt(t);
1410
1410
  if (!e) {
1411
1411
  console.assert(!1);
1412
1412
  return;
@@ -1428,17 +1428,17 @@ const zo = {
1428
1428
  t.connection.setShadowDom(null);
1429
1429
  const e = t.connection.targetBlock();
1430
1430
  e && !e.isShadow() && e.dispose();
1431
- const n = ct(this.output.type);
1431
+ const n = ut(this.output.type);
1432
1432
  t.setCheck(n);
1433
1433
  },
1434
1434
  updateShadows_: function() {
1435
1435
  if (this.isInsertionMarker())
1436
1436
  return;
1437
- const t = ut(this.output.type);
1437
+ const t = lt(this.output.type);
1438
1438
  this.getInput("VALUE").connection.setShadowDom(t);
1439
1439
  },
1440
1440
  checkWarning_: function() {
1441
- const t = Gt(this.method.id);
1441
+ const t = Wt(this.method.id);
1442
1442
  if (!t) {
1443
1443
  this.setWarningText(p.WARN_METHOD_NOT_FOUND);
1444
1444
  return;
@@ -1483,7 +1483,7 @@ s.forBlock.set_app_method_output_v1 = function(t) {
1483
1483
  return `__setMethodOutputV1__(${n});
1484
1484
  `;
1485
1485
  };
1486
- f([
1486
+ h([
1487
1487
  {
1488
1488
  type: "app_debug_trace_v1",
1489
1489
  message0: "%{BKY_APP_V1_APP_DEBUG_TRACE_TITLE}",
@@ -1504,7 +1504,7 @@ s.forBlock.app_debug_trace_v1 = function(t) {
1504
1504
  return `__debugTraceV1__(${s.valueToCode(t, "OBJECT", c.NONE)});
1505
1505
  `;
1506
1506
  };
1507
- f([
1507
+ h([
1508
1508
  {
1509
1509
  type: "app_env_is_v1",
1510
1510
  message0: "%{BKY_APP_V1_APP_ENV_IS_TITLE}",
@@ -1527,29 +1527,6 @@ f([
1527
1527
  s.forBlock.app_env_is_v1 = function(t) {
1528
1528
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, c.ATOMIC];
1529
1529
  };
1530
- f([
1531
- {
1532
- type: "app_react_v1",
1533
- message0: "%{BKY_APP_V1_APP_REACT_TITLE}",
1534
- args0: [
1535
- {
1536
- type: "input_dummy"
1537
- },
1538
- {
1539
- type: "input_statement",
1540
- name: "HANDLE"
1541
- }
1542
- ],
1543
- style: "event_blocks",
1544
- tooltip: "%{BKY_APP_V1_APP_REACT_TOOLTIP}",
1545
- helpUrl: "%{BKY_APP_V1_APP_REACT_HELPURL}"
1546
- }
1547
- ]);
1548
- s.forBlock.app_react_v1 = function(t) {
1549
- const e = s.quote_;
1550
- return `__regAppReactV1__(${e(t.id)});
1551
- `;
1552
- };
1553
1530
  function vn() {
1554
1531
  return E.app.appList;
1555
1532
  }
@@ -1560,7 +1537,7 @@ function Zo() {
1560
1537
  const t = [];
1561
1538
  return vn().forEach(({ id: n, name: o }) => {
1562
1539
  t.push([o, n]);
1563
- }), N(t);
1540
+ }), L(t);
1564
1541
  }
1565
1542
  function Ue(t) {
1566
1543
  const e = E.app.appList.find((n) => n.id === t);
@@ -1575,7 +1552,7 @@ function ti(t) {
1575
1552
  const e = [];
1576
1553
  return Ue(t).forEach(({ id: o, name: i }) => {
1577
1554
  e.push([i, o]);
1578
- }), N(e);
1555
+ }), L(e);
1579
1556
  }
1580
1557
  const yn = {
1581
1558
  id: "",
@@ -1591,11 +1568,11 @@ function en(t) {
1591
1568
  return t === "" ? yn : E.app.activeApp.comps.find((e) => e.id === t);
1592
1569
  }
1593
1570
  function ei() {
1594
- const { i18n: t } = nt, e = [];
1571
+ const { i18n: t } = Z, e = [];
1595
1572
  return kn().forEach(({ id: o, name: i }) => {
1596
1573
  let a = i;
1597
1574
  o === "" && (a = t.global.t("x-runtime-lib.notSet")), e.push([a, o]);
1598
- }), N(e);
1575
+ }), L(e);
1599
1576
  }
1600
1577
  const ni = {
1601
1578
  init: function() {
@@ -1605,7 +1582,7 @@ const ni = {
1605
1582
  }, this.page = {
1606
1583
  id: "",
1607
1584
  name: ""
1608
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_NAVIGATE_TO_TITLE}").appendField(new A(() => this.genAppOpts_()), "APP").appendField(new A(() => this.genPageOpts_()), "PAGE"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_NAVIGATE_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_NAVIGATE_HELPURL}"), this.initData_();
1585
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_NAVIGATE_TO_TITLE}").appendField(new g(() => this.genAppOpts_()), "APP").appendField(new g(() => this.genPageOpts_()), "PAGE"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_NAVIGATE_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_NAVIGATE_HELPURL}"), this.initData_();
1609
1586
  },
1610
1587
  initData_: function() {
1611
1588
  if (this.app.id)
@@ -1641,9 +1618,9 @@ const ni = {
1641
1618
  return ti(this.app.id);
1642
1619
  },
1643
1620
  onchange: function(t) {
1644
- if (t.type === b.STATE_CHANGE)
1621
+ if (t.type === R.STATE_CHANGE)
1645
1622
  this.checkWarning_();
1646
- else if (t.type === I.BLOCK_CHANGE) {
1623
+ else if (t.type === A.BLOCK_CHANGE) {
1647
1624
  const e = t;
1648
1625
  if (e.blockId !== this.id)
1649
1626
  return;
@@ -1696,7 +1673,7 @@ const oi = {
1696
1673
  this.comp = {
1697
1674
  id: void 0,
1698
1675
  name: ""
1699
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_SELECT_COMP_TITLE}").appendField(new A(() => this.genCompOpts_()), "COMP"), this.setOutput(!0, "Comp"), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SELECT_COMP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SELECT_COMP_HELPURL}"), this.initData_();
1676
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_SELECT_COMP_TITLE}").appendField(new g(() => this.genCompOpts_()), "COMP"), this.setOutput(!0, "Comp"), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SELECT_COMP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SELECT_COMP_HELPURL}"), this.initData_();
1700
1677
  },
1701
1678
  initData_: function() {
1702
1679
  if (this.comp.id !== void 0)
@@ -1722,9 +1699,9 @@ const oi = {
1722
1699
  return ei();
1723
1700
  },
1724
1701
  onchange: function(t) {
1725
- if (t.type === b.STATE_CHANGE)
1702
+ if (t.type === R.STATE_CHANGE)
1726
1703
  this.checkWarning_();
1727
- else if (t.type === I.BLOCK_CHANGE) {
1704
+ else if (t.type === A.BLOCK_CHANGE) {
1728
1705
  const e = t;
1729
1706
  if (e.blockId !== this.id)
1730
1707
  return;
@@ -1758,6 +1735,29 @@ s.forBlock.select_comp_v1 = function(t) {
1758
1735
  const e = s.quote_, o = t.comp.id ?? "";
1759
1736
  return [e(o), c.ATOMIC];
1760
1737
  };
1738
+ h([
1739
+ {
1740
+ type: "watch_effect_v1",
1741
+ message0: "%{BKY_APP_V1_WATCH_EFFECT_TITLE}",
1742
+ args0: [
1743
+ {
1744
+ type: "input_dummy"
1745
+ },
1746
+ {
1747
+ type: "input_statement",
1748
+ name: "HANDLE"
1749
+ }
1750
+ ],
1751
+ style: "event_blocks",
1752
+ tooltip: "%{BKY_APP_V1_WATCH_EFFECT_TOOLTIP}",
1753
+ helpUrl: "%{BKY_APP_V1_WATCH_EFFECT_HELPURL}"
1754
+ }
1755
+ ]);
1756
+ s.forBlock.watch_effect_v1 = function(t) {
1757
+ const e = s.quote_;
1758
+ return `__watchEffectV1__(${e(t.id)});
1759
+ `;
1760
+ };
1761
1761
  const ii = {
1762
1762
  init: function() {
1763
1763
  this.node = {
@@ -1767,18 +1767,18 @@ const ii = {
1767
1767
  }, this.prop = {
1768
1768
  keys: "",
1769
1769
  names: []
1770
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_GET_APP_PROP_TITLE}").appendField(new A(() => this.genNodeOpts_()), "NODE").appendField(new A(() => this.genPropOpts_()), "PROP"), this.setOutput(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_GET_APP_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_GET_APP_PROP_HELPURL}"), this.initData_();
1770
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_GET_APP_PROP_TITLE}").appendField(new g(() => this.genNodeOpts_()), "NODE").appendField(new g(() => this.genPropOpts_()), "PROP"), this.setOutput(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_GET_APP_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_GET_APP_PROP_HELPURL}"), this.initData_();
1771
1771
  },
1772
1772
  initData_: function() {
1773
1773
  if (this.node.id)
1774
1774
  return;
1775
- const t = Dt()?.[0];
1775
+ const t = Mt()?.[0];
1776
1776
  if (!t)
1777
1777
  return;
1778
1778
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1779
1779
  const e = this.getField("NODE");
1780
1780
  e.getOptions(!1), e.setValue(this.node.id);
1781
- const n = Lt(this.node.id)?.[0];
1781
+ const n = St(this.node.id)?.[0];
1782
1782
  if (!n)
1783
1783
  return;
1784
1784
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -1797,15 +1797,15 @@ const ii = {
1797
1797
  }, 0);
1798
1798
  },
1799
1799
  genNodeOpts_: function() {
1800
- return ue();
1800
+ return le();
1801
1801
  },
1802
1802
  genPropOpts_: function() {
1803
1803
  return In(this.node.id);
1804
1804
  },
1805
1805
  onchange: function(t) {
1806
- if (t.type === b.STATE_CHANGE)
1806
+ if (t.type === R.STATE_CHANGE)
1807
1807
  this.checkWarning_();
1808
- else if (t.type === I.BLOCK_CHANGE) {
1808
+ else if (t.type === A.BLOCK_CHANGE) {
1809
1809
  const e = t;
1810
1810
  if (e.blockId !== this.id)
1811
1811
  return;
@@ -1815,7 +1815,7 @@ const ii = {
1815
1815
  }
1816
1816
  },
1817
1817
  onNodeChange_: function(t) {
1818
- const e = lt(t);
1818
+ const e = rt(t);
1819
1819
  if (!e) {
1820
1820
  console.assert(!1);
1821
1821
  return;
@@ -1824,7 +1824,7 @@ const ii = {
1824
1824
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1825
1825
  const o = this.getField("PROP");
1826
1826
  if (o.getOptions(!1), n || !ht(this.node.id, this.prop.keys)) {
1827
- const a = Lt(this.node.id)?.[0]?.keys ?? "";
1827
+ const a = St(this.node.id)?.[0]?.keys ?? "";
1828
1828
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
1829
1829
  }
1830
1830
  },
@@ -1833,7 +1833,7 @@ const ii = {
1833
1833
  e ? (this.prop.keys = e.keys, this.prop.names = e.names) : (this.prop.keys = "", this.prop.names = []);
1834
1834
  },
1835
1835
  checkWarning_: function() {
1836
- const t = lt(this.node.id);
1836
+ const t = rt(this.node.id);
1837
1837
  if (!t) {
1838
1838
  this.setWarningText(p.WARN_NODE_NOT_FOUND);
1839
1839
  return;
@@ -1865,18 +1865,18 @@ const si = {
1865
1865
  }, this.prop = {
1866
1866
  keys: "",
1867
1867
  names: []
1868
- }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_APP_PROP_TITLE}").appendField(new A(() => this.genNodeOpts_()), "NODE").appendField(new A(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_PROP_HELPURL}"), this.initData_(), this.isInFlyout && this.updateShadow_();
1868
+ }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_APP_PROP_TITLE}").appendField(new g(() => this.genNodeOpts_()), "NODE").appendField(new g(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_PROP_HELPURL}"), this.initData_(), this.isInFlyout && this.updateShadow_();
1869
1869
  },
1870
1870
  initData_: function() {
1871
1871
  if (this.node.id)
1872
1872
  return;
1873
- const t = Dt()?.[0];
1873
+ const t = Mt()?.[0];
1874
1874
  if (!t)
1875
1875
  return;
1876
1876
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1877
1877
  const e = this.getField("NODE");
1878
1878
  e.getOptions(!1), e.setValue(this.node.id);
1879
- const n = Lt(this.node.id, !0)?.[0];
1879
+ const n = St(this.node.id, !0)?.[0];
1880
1880
  if (!n)
1881
1881
  return;
1882
1882
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -1895,15 +1895,15 @@ const si = {
1895
1895
  }, 0);
1896
1896
  },
1897
1897
  genNodeOpts_: function() {
1898
- return ue();
1898
+ return le();
1899
1899
  },
1900
1900
  genPropOpts_: function() {
1901
1901
  return In(this.node.id);
1902
1902
  },
1903
1903
  onchange: function(t) {
1904
- if (t.type === b.STATE_CHANGE)
1904
+ if (t.type === R.STATE_CHANGE)
1905
1905
  this.checkWarning_();
1906
- else if (t.type === I.BLOCK_CHANGE) {
1906
+ else if (t.type === A.BLOCK_CHANGE) {
1907
1907
  const e = t;
1908
1908
  if (e.blockId !== this.id)
1909
1909
  return;
@@ -1913,7 +1913,7 @@ const si = {
1913
1913
  }
1914
1914
  },
1915
1915
  onNodeChange_: function(t) {
1916
- const e = lt(t);
1916
+ const e = rt(t);
1917
1917
  if (!e) {
1918
1918
  console.assert(!1);
1919
1919
  return;
@@ -1922,7 +1922,7 @@ const si = {
1922
1922
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1923
1923
  const o = this.getField("PROP");
1924
1924
  if (o.getOptions(!1), n || !ht(this.node.id, this.prop.keys)) {
1925
- const a = Lt(this.node.id)?.[0]?.keys ?? "";
1925
+ const a = St(this.node.id)?.[0]?.keys ?? "";
1926
1926
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
1927
1927
  }
1928
1928
  },
@@ -1942,16 +1942,16 @@ const si = {
1942
1942
  const n = So(t.meta.raw), o = Uo(t.meta.raw);
1943
1943
  this.getInput("VALUE").setCheck(n).setShadowDom(o);
1944
1944
  } else if (t.meta.from === "slot") {
1945
- const n = ct(t.meta.raw.type), o = ut(t.meta.raw.type);
1945
+ const n = ut(t.meta.raw.type), o = lt(t.meta.raw.type);
1946
1946
  this.getInput("VALUE").setCheck(n).setShadowDom(o);
1947
1947
  } else if (t.meta.from === "custom") {
1948
- const n = ct(t.meta.raw.type), o = ut(t.meta.raw.type);
1948
+ const n = ut(t.meta.raw.type), o = lt(t.meta.raw.type);
1949
1949
  this.getInput("VALUE").setCheck(n).setShadowDom(o);
1950
1950
  } else
1951
1951
  console.assert(!1);
1952
1952
  },
1953
1953
  checkWarning_: function() {
1954
- const t = lt(this.node.id);
1954
+ const t = rt(this.node.id);
1955
1955
  if (!t) {
1956
1956
  this.setWarningText(p.WARN_NODE_NOT_FOUND);
1957
1957
  return;
@@ -1983,17 +1983,33 @@ function Nn() {
1983
1983
  const t = [], e = ai();
1984
1984
  for (const { id: n, name: o } of e)
1985
1985
  t.push([o, n]);
1986
- return N(t);
1986
+ return L(t);
1987
1987
  }
1988
1988
  const ci = {
1989
1989
  init: function() {
1990
1990
  this.state = {
1991
1991
  id: "",
1992
- name: ""
1993
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_GET_APP_STATE_TITLE}").appendField(new A(() => this.genStateOpts_()), "STATE"), this.setOutput(!0, null), this.setStyle("state_blocks"), this.setTooltip("%{BKY_APP_V1_GET_APP_STATE_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_GET_APP_STATE_HELPURL}");
1992
+ name: "",
1993
+ type: "string"
1994
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_GET_APP_STATE_TITLE}").appendField(new g(() => this.genStateOpts_()), "STATE"), this.setOutput(!0, null), this.setStyle("state_blocks"), this.setTooltip("%{BKY_APP_V1_GET_APP_STATE_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_GET_APP_STATE_HELPURL}"), this.initData_();
1995
+ },
1996
+ initData_: function() {
1997
+ this.state.id;
1998
+ },
1999
+ saveExtraState: function() {
2000
+ return {
2001
+ state: this.state
2002
+ };
2003
+ },
2004
+ loadExtraState: function(t) {
2005
+ this.state.id = t.state?.id ?? "", this.state.name = t.state?.name ?? "", this.state.type = t.state?.name ?? "string", setTimeout(() => {
2006
+ this.checkWarning_();
2007
+ }, 0);
1994
2008
  },
1995
2009
  genStateOpts_: function() {
1996
2010
  return Nn();
2011
+ },
2012
+ checkWarning_: function() {
1997
2013
  }
1998
2014
  };
1999
2015
  T.get_app_state_v1 = ci;
@@ -2005,7 +2021,7 @@ const ui = {
2005
2021
  this.state = {
2006
2022
  id: "",
2007
2023
  name: ""
2008
- }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_APP_STATE_TITLE}").appendField(new A(() => this.genStateOpts_()), "STATE"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("state_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_STATE_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_STATE_HELPURL}");
2024
+ }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_APP_STATE_TITLE}").appendField(new g(() => this.genStateOpts_()), "STATE"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("state_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_STATE_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_STATE_HELPURL}");
2009
2025
  },
2010
2026
  genStateOpts_: function() {
2011
2027
  return Nn();
@@ -2016,7 +2032,7 @@ s.forBlock.set_app_state_v1 = function() {
2016
2032
  return `__setStateV1__();
2017
2033
  `;
2018
2034
  };
2019
- f([
2035
+ h([
2020
2036
  {
2021
2037
  type: "color_blend_v1",
2022
2038
  message0: "%{BKY_COLOR_V1_BLEND_TITLE}",
@@ -2070,7 +2086,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
2070
2086
  `
2071
2087
  )}(${e}, ${n}, ${o})`, c.FUNCTION_CALL];
2072
2088
  };
2073
- f([
2089
+ h([
2074
2090
  {
2075
2091
  type: "color_picker_v1",
2076
2092
  message0: "%1",
@@ -2651,7 +2667,7 @@ f([
2651
2667
  s.forBlock.color_picker_v1 = function(t) {
2652
2668
  return [s.quote_(t.getFieldValue("COLOR")), c.ATOMIC];
2653
2669
  };
2654
- f([
2670
+ h([
2655
2671
  {
2656
2672
  type: "color_random_v1",
2657
2673
  message0: "%{BKY_COLOR_V1_RANDOM_TITLE}",
@@ -2672,7 +2688,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}() {
2672
2688
  `
2673
2689
  )}()`, c.FUNCTION_CALL];
2674
2690
  };
2675
- f([
2691
+ h([
2676
2692
  {
2677
2693
  type: "color_rgb_v1",
2678
2694
  message0: "%{BKY_COLOR_V1_RGB_TITLE}",
@@ -2814,7 +2830,7 @@ const pi = {
2814
2830
  this.key = t, this.name = e, this.locale = n, this.updateShape_();
2815
2831
  },
2816
2832
  onchange: function(t) {
2817
- if (t.type === I.BLOCK_MOVE) {
2833
+ if (t.type === A.BLOCK_MOVE) {
2818
2834
  const e = t;
2819
2835
  if (e.blockId !== this.id)
2820
2836
  return;
@@ -2825,7 +2841,7 @@ const pi = {
2825
2841
  const e = this.workspace.getBlockById(t.oldParentId);
2826
2842
  if (e && _i(e.type, t.oldInputName))
2827
2843
  try {
2828
- I.disable();
2844
+ A.disable();
2829
2845
  const n = e.getInput(t.oldInputName)?.connection;
2830
2846
  if (n) {
2831
2847
  const o = Fe(
@@ -2837,7 +2853,7 @@ const pi = {
2837
2853
  n.connect(o.outputConnection);
2838
2854
  }
2839
2855
  } finally {
2840
- I.enable();
2856
+ A.enable();
2841
2857
  }
2842
2858
  },
2843
2859
  updateShape_: function() {
@@ -2857,35 +2873,35 @@ s.forBlock.on_flow_state_event_v1 = function() {
2857
2873
  return `__onFlowStateEventV1__();
2858
2874
  `;
2859
2875
  };
2860
- function Mt(t) {
2876
+ function Ut(t) {
2861
2877
  const e = [];
2862
2878
  return E.compute.spaces.forEach((n) => {
2863
2879
  t === "func" && n.funcs.length > 0 && e.push(n), t === "flow" && n.flows.length > 0 && e.push(n);
2864
2880
  }), e;
2865
2881
  }
2866
- function Wt(t) {
2882
+ function jt(t) {
2867
2883
  return E.compute.spaces.find((e) => e.id === t);
2868
2884
  }
2869
2885
  function Ln(t) {
2870
2886
  const e = [];
2871
- return Mt(t).forEach(({ id: o, name: i }) => {
2887
+ return Ut(t).forEach(({ id: o, name: i }) => {
2872
2888
  e.push([i, o]);
2873
- }), N(e);
2889
+ }), L(e);
2874
2890
  }
2875
- function St(t) {
2891
+ function Bt(t) {
2876
2892
  const e = E.compute.spaces.find((n) => n.id === t);
2877
2893
  return e ? e.funcs : [];
2878
2894
  }
2879
- function gt(t, e) {
2895
+ function At(t, e) {
2880
2896
  const n = E.compute.spaces.find((o) => o.id === t);
2881
2897
  if (n)
2882
2898
  return n.funcs.find((o) => o.id === e);
2883
2899
  }
2884
2900
  function Sn(t) {
2885
2901
  const e = [];
2886
- return St(t).forEach(({ id: o, name: i }) => {
2902
+ return Bt(t).forEach(({ id: o, name: i }) => {
2887
2903
  e.push([i, o]);
2888
- }), N(e);
2904
+ }), L(e);
2889
2905
  }
2890
2906
  function Ve() {
2891
2907
  return E.compute.activeFunc;
@@ -2898,7 +2914,7 @@ function hi() {
2898
2914
  const t = [], { outputs: e } = E.compute.activeFunc;
2899
2915
  return e.forEach(({ id: n, name: o }) => {
2900
2916
  t.push([o, n]);
2901
- }), N(t);
2917
+ }), L(t);
2902
2918
  }
2903
2919
  const fi = {
2904
2920
  init: function() {
@@ -2910,18 +2926,18 @@ const fi = {
2910
2926
  name: "",
2911
2927
  inputs: [],
2912
2928
  outputs: []
2913
- }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new A(() => this.genSpaceOpts_()), "SPACE").appendField(new A(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_HELPURL}"), this.initData_();
2929
+ }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new g(() => this.genSpaceOpts_()), "SPACE").appendField(new g(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_HELPURL}"), this.initData_();
2914
2930
  },
2915
2931
  initData_: function() {
2916
2932
  if (this.space.id)
2917
2933
  return;
2918
- const t = Mt("func")?.[0];
2934
+ const t = Ut("func")?.[0];
2919
2935
  if (!t)
2920
2936
  return;
2921
2937
  this.space.id = t.id, this.space.name = t.name;
2922
2938
  const e = this.getField("SPACE");
2923
2939
  e.getOptions(!1), e.setValue(this.space.id);
2924
- const n = St(this.space.id)?.[0];
2940
+ const n = Bt(this.space.id)?.[0];
2925
2941
  if (!n)
2926
2942
  return;
2927
2943
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
@@ -2946,9 +2962,9 @@ const fi = {
2946
2962
  return Sn(this.space.id);
2947
2963
  },
2948
2964
  onchange: function(t) {
2949
- if (t.type === b.STATE_CHANGE)
2965
+ if (t.type === R.STATE_CHANGE)
2950
2966
  this.checkWarning_();
2951
- else if (t.type === I.BLOCK_CHANGE) {
2967
+ else if (t.type === A.BLOCK_CHANGE) {
2952
2968
  const e = t;
2953
2969
  if (e.blockId !== this.id)
2954
2970
  return;
@@ -2958,19 +2974,19 @@ const fi = {
2958
2974
  }
2959
2975
  },
2960
2976
  onSpaceChange_: function(t) {
2961
- const e = Wt(t);
2977
+ const e = jt(t);
2962
2978
  if (!e) {
2963
2979
  console.assert(!1);
2964
2980
  return;
2965
2981
  }
2966
2982
  let n = !1;
2967
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !gt(this.space.id, this.func.id)) {
2968
- const i = St(this.space.id)?.[0];
2983
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !At(this.space.id, this.func.id)) {
2984
+ const i = Bt(this.space.id)?.[0];
2969
2985
  this.setFieldValue(i?.id ?? "", "FUNC");
2970
2986
  }
2971
2987
  },
2972
2988
  onFuncChange_: function(t) {
2973
- const e = gt(this.space.id, t);
2989
+ const e = At(this.space.id, t);
2974
2990
  if (!e) {
2975
2991
  console.assert(!1);
2976
2992
  return;
@@ -3002,14 +3018,14 @@ const fi = {
3002
3018
  },
3003
3019
  updateCheck_: function() {
3004
3020
  for (let t = 0; t < this.func.inputs.length; t++) {
3005
- const { type: e } = this.func.inputs[t], n = ct(e);
3021
+ const { type: e } = this.func.inputs[t], n = ut(e);
3006
3022
  this.getInput("INPUT" + t).connection.setCheck(n);
3007
3023
  }
3008
3024
  },
3009
3025
  updateShadow_: function() {
3010
3026
  if (!this.isInsertionMarker())
3011
3027
  for (let t = 0; t < this.func.inputs.length; t++) {
3012
- const e = this.func.inputs[t], n = ut(e.type);
3028
+ const e = this.func.inputs[t], n = lt(e.type);
3013
3029
  this.getInput("INPUT" + t).setShadowDom(n);
3014
3030
  }
3015
3031
  },
@@ -3021,16 +3037,16 @@ const fi = {
3021
3037
  const { id: n, name: o } = this.func.outputs[e];
3022
3038
  t.push(["OUTPUT" + e, `__output_${n}__`, o, !1]);
3023
3039
  }
3024
- x(this, t);
3040
+ V(this, t);
3025
3041
  },
3026
3042
  checkWarning_: function() {
3027
- const t = Wt(this.space.id);
3043
+ const t = jt(this.space.id);
3028
3044
  if (!t) {
3029
3045
  this.setWarningText(p.WARN_SPACE_NOT_FOUND);
3030
3046
  return;
3031
3047
  }
3032
3048
  t.name !== this.space.name && (this.space.name = t.name);
3033
- const e = gt(this.space.id, this.func.id);
3049
+ const e = At(this.space.id, this.func.id);
3034
3050
  if (!e) {
3035
3051
  this.setWarningText(p.WARN_FUNC_NOT_FOUND);
3036
3052
  return;
@@ -3051,13 +3067,13 @@ s.forBlock.call_func_v1 = function(t) {
3051
3067
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3052
3068
  let u = "";
3053
3069
  u += `${e}var __inputs__ = {
3054
- `, o.func.inputs.forEach(({ id: m }, h) => {
3055
- const O = s.valueToCode(
3070
+ `, o.func.inputs.forEach(({ id: m }, f) => {
3071
+ const I = s.valueToCode(
3056
3072
  o,
3057
- "INPUT" + h,
3073
+ "INPUT" + f,
3058
3074
  c.ATOMIC
3059
3075
  );
3060
- u += `${e}${e}${n(m)}: ${O},
3076
+ u += `${e}${e}${n(m)}: ${I},
3061
3077
  `;
3062
3078
  }), u += `${e}};`;
3063
3079
  const l = n(o.space.name + "/" + o.func.name);
@@ -3083,18 +3099,18 @@ const Ti = {
3083
3099
  name: "",
3084
3100
  inputs: [],
3085
3101
  outputs: []
3086
- }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new A(() => this.genSpaceOpts_()), "SPACE").appendField(new A(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_HELPURL}"), this.initData_();
3102
+ }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new g(() => this.genSpaceOpts_()), "SPACE").appendField(new g(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_HELPURL}"), this.initData_();
3087
3103
  },
3088
3104
  initData_: function() {
3089
3105
  if (this.space.id)
3090
3106
  return;
3091
- const t = Mt("func")?.[0];
3107
+ const t = Ut("func")?.[0];
3092
3108
  if (!t)
3093
3109
  return;
3094
3110
  this.space.id = t.id, this.space.name = t.name;
3095
3111
  const e = this.getField("SPACE");
3096
3112
  e.getOptions(!1), e.setValue(this.space.id);
3097
- const n = St(this.space.id)?.[0];
3113
+ const n = Bt(this.space.id)?.[0];
3098
3114
  if (!n)
3099
3115
  return;
3100
3116
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
@@ -3119,9 +3135,9 @@ const Ti = {
3119
3135
  return Sn(this.space.id);
3120
3136
  },
3121
3137
  onchange: function(t) {
3122
- if (t.type === b.STATE_CHANGE)
3138
+ if (t.type === R.STATE_CHANGE)
3123
3139
  this.checkWarning_();
3124
- else if (t.type === I.BLOCK_CHANGE) {
3140
+ else if (t.type === A.BLOCK_CHANGE) {
3125
3141
  const e = t;
3126
3142
  if (e.blockId !== this.id)
3127
3143
  return;
@@ -3131,19 +3147,19 @@ const Ti = {
3131
3147
  }
3132
3148
  },
3133
3149
  onSpaceChange_: function(t) {
3134
- const e = Wt(t);
3150
+ const e = jt(t);
3135
3151
  if (!e) {
3136
3152
  console.assert(!1);
3137
3153
  return;
3138
3154
  }
3139
3155
  let n = !1;
3140
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !gt(this.space.id, this.func.id)) {
3141
- const i = St(this.space.id)?.[0];
3156
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !At(this.space.id, this.func.id)) {
3157
+ const i = Bt(this.space.id)?.[0];
3142
3158
  i ? this.setFieldValue(i.id, "FUNC") : this.setFieldValue("", "FUNC");
3143
3159
  }
3144
3160
  },
3145
3161
  onFuncChange_: function(t) {
3146
- const e = gt(this.space.id, t);
3162
+ const e = At(this.space.id, t);
3147
3163
  if (!e) {
3148
3164
  console.assert(!1);
3149
3165
  return;
@@ -3175,14 +3191,14 @@ const Ti = {
3175
3191
  },
3176
3192
  updateCheck_: function() {
3177
3193
  for (let t = 0; t < this.func.inputs.length; t++) {
3178
- const { type: e } = this.func.inputs[t], n = ct(e);
3194
+ const { type: e } = this.func.inputs[t], n = ut(e);
3179
3195
  this.getInput("INPUT" + t).connection.setCheck(n);
3180
3196
  }
3181
3197
  },
3182
3198
  updateShadow_: function() {
3183
3199
  if (!this.isInsertionMarker())
3184
3200
  for (let t = 0; t < this.func.inputs.length; t++) {
3185
- const e = this.func.inputs[t], n = ut(e.type);
3201
+ const e = this.func.inputs[t], n = lt(e.type);
3186
3202
  this.getInput("INPUT" + t).setShadowDom(n);
3187
3203
  }
3188
3204
  },
@@ -3194,16 +3210,16 @@ const Ti = {
3194
3210
  const { id: n, name: o } = this.func.outputs[e];
3195
3211
  t.push(["OUTPUT" + e, `__output_${n}__`, o, !1]);
3196
3212
  }
3197
- x(this, t);
3213
+ V(this, t);
3198
3214
  },
3199
3215
  checkWarning_: function() {
3200
- const t = Wt(this.space.id);
3216
+ const t = jt(this.space.id);
3201
3217
  if (!t) {
3202
3218
  this.setWarningText(p.WARN_SPACE_NOT_FOUND);
3203
3219
  return;
3204
3220
  }
3205
3221
  t.name !== this.space.name && (this.space.name = t.name);
3206
- const e = gt(this.space.id, this.func.id);
3222
+ const e = At(this.space.id, this.func.id);
3207
3223
  if (!e) {
3208
3224
  this.setWarningText(p.WARN_FUNC_NOT_FOUND);
3209
3225
  return;
@@ -3224,13 +3240,13 @@ s.forBlock.call_func_internal_v1 = function(t) {
3224
3240
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3225
3241
  let u = `${e}var __inputs__ = {
3226
3242
  `;
3227
- o.func.inputs.forEach(({ id: m }, h) => {
3228
- const O = s.valueToCode(
3243
+ o.func.inputs.forEach(({ id: m }, f) => {
3244
+ const I = s.valueToCode(
3229
3245
  o,
3230
- "INPUT" + h,
3246
+ "INPUT" + f,
3231
3247
  c.ATOMIC
3232
3248
  );
3233
- u += `${e}${e}${n(m)}: ${O},
3249
+ u += `${e}${e}${n(m)}: ${I},
3234
3250
  `;
3235
3251
  }), u += `${e}};`;
3236
3252
  const l = o.space.name + "/" + o.func.name;
@@ -3293,7 +3309,7 @@ const mi = {
3293
3309
  const { id: n, name: o } = this.func.inputs[e];
3294
3310
  t.push(["INPUT" + e, `__input_${n}__`, o, !1]);
3295
3311
  }
3296
- x(this, t);
3312
+ V(this, t);
3297
3313
  },
3298
3314
  checkWarning_: function() {
3299
3315
  const { id: t, inputs: e } = Ve();
@@ -3320,7 +3336,7 @@ const Ei = {
3320
3336
  id: "",
3321
3337
  name: "",
3322
3338
  type: "string"
3323
- }, this.appendValueInput("VALUE").appendField("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TITLE}").appendField(new A(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_();
3339
+ }, this.appendValueInput("VALUE").appendField("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TITLE}").appendField(new g(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_();
3324
3340
  },
3325
3341
  initData_: function() {
3326
3342
  if (this.output.id)
@@ -3342,9 +3358,9 @@ const Ei = {
3342
3358
  return hi();
3343
3359
  },
3344
3360
  onchange: function(t) {
3345
- if (t.type === b.STATE_CHANGE)
3361
+ if (t.type === R.STATE_CHANGE)
3346
3362
  this.checkWarning_();
3347
- else if (t.type === I.BLOCK_CHANGE) {
3363
+ else if (t.type === A.BLOCK_CHANGE) {
3348
3364
  const e = t;
3349
3365
  if (e.blockId !== this.id)
3350
3366
  return;
@@ -3366,13 +3382,13 @@ const Ei = {
3366
3382
  t.connection.setShadowDom(null);
3367
3383
  const e = t.connection.targetBlock();
3368
3384
  e && !e.isShadow() && e.dispose();
3369
- const n = ct(this.output.type);
3385
+ const n = ut(this.output.type);
3370
3386
  t.setCheck(n);
3371
3387
  },
3372
3388
  updateShadows_: function() {
3373
3389
  if (this.isInsertionMarker())
3374
3390
  return;
3375
- const t = ut(this.output.type);
3391
+ const t = lt(this.output.type);
3376
3392
  this.getInput("VALUE").setShadowDom(t);
3377
3393
  },
3378
3394
  checkWarning_: function() {
@@ -3415,7 +3431,7 @@ s.forBlock.set_func_output_v1 = function(t) {
3415
3431
  return `__setFuncOutputV1__(${e(o)}, ${a});
3416
3432
  `;
3417
3433
  };
3418
- f([
3434
+ h([
3419
3435
  {
3420
3436
  type: "compute_debug_trace_v1",
3421
3437
  message0: "%{BKY_COMPUTE_V1_COMPUTE_DEBUG_TRACE_TITLE}",
@@ -3437,7 +3453,7 @@ s.forBlock.compute_debug_trace_v1 = function(t) {
3437
3453
  return `__debugTraceV1__(${s.valueToCode(t, "OBJECT", c.ATOMIC)});
3438
3454
  `;
3439
3455
  };
3440
- f([
3456
+ h([
3441
3457
  {
3442
3458
  type: "compute_env_is_v1",
3443
3459
  message0: "%{BKY_COMPUTE_V1_COMPUTE_ENV_IS_TITLE}",
@@ -3466,17 +3482,17 @@ function j() {
3466
3482
  e.tables.length > 0 && t.push(e);
3467
3483
  }), t;
3468
3484
  }
3469
- function rt(t) {
3485
+ function _t(t) {
3470
3486
  const { spaces: e } = E.data;
3471
3487
  return e.find((n) => n.id === t);
3472
3488
  }
3473
- function le() {
3489
+ function re() {
3474
3490
  const t = [];
3475
3491
  return j().forEach(({ id: n, name: o }) => {
3476
3492
  t.push([o, n]);
3477
- }), N(t);
3493
+ }), L(t);
3478
3494
  }
3479
- function K(t) {
3495
+ function w(t) {
3480
3496
  const { spaces: e } = E.data, n = e.find((o) => o.id === t);
3481
3497
  return n ? n.tables : [];
3482
3498
  }
@@ -3485,13 +3501,13 @@ function W(t, e) {
3485
3501
  if (o)
3486
3502
  return o.tables.find((i) => i.id === e);
3487
3503
  }
3488
- function re(t) {
3504
+ function _e(t) {
3489
3505
  const e = [];
3490
- return K(t).forEach(({ id: o, name: i }) => {
3506
+ return w(t).forEach(({ id: o, name: i }) => {
3491
3507
  e.push([i, o]);
3492
- }), N(e);
3508
+ }), L(e);
3493
3509
  }
3494
- function jt(t, e) {
3510
+ function Xt(t, e) {
3495
3511
  const { spaces: n } = E.data, o = n.find((a) => a.id === t);
3496
3512
  if (!o)
3497
3513
  return [];
@@ -3508,9 +3524,9 @@ function ke(t, e, n) {
3508
3524
  }
3509
3525
  function gi(t, e) {
3510
3526
  const n = [];
3511
- return jt(t, e).forEach(({ id: i, name: a }) => {
3527
+ return Xt(t, e).forEach(({ id: i, name: a }) => {
3512
3528
  n.push([a, i]);
3513
- }), N(n);
3529
+ }), L(n);
3514
3530
  }
3515
3531
  function Ai(t) {
3516
3532
  const e = t.getInput("TABLE").connection;
@@ -3519,7 +3535,7 @@ function Ai(t) {
3519
3535
  let n, o;
3520
3536
  const i = j()?.[0];
3521
3537
  if (i) {
3522
- const l = K(i.id)?.[0];
3538
+ const l = w(i.id)?.[0];
3523
3539
  if (l) {
3524
3540
  n = {
3525
3541
  space: {
@@ -3543,7 +3559,7 @@ function Ai(t) {
3543
3559
  type: "update_column_v1",
3544
3560
  extraState: n,
3545
3561
  fields: o
3546
- }, u = w.blocks.append(a, t.workspace);
3562
+ }, u = F.blocks.append(a, t.workspace);
3547
3563
  e.connect(u.outputConnection);
3548
3564
  }
3549
3565
  function Ii(t) {
@@ -3567,7 +3583,7 @@ function Ii(t) {
3567
3583
  }
3568
3584
  }
3569
3585
  }
3570
- }, o = w.blocks.append(n, t.workspace);
3586
+ }, o = F.blocks.append(n, t.workspace);
3571
3587
  e.connect(o.previousConnection);
3572
3588
  }
3573
3589
  const Oi = {
@@ -3586,7 +3602,7 @@ const Oi = {
3586
3602
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
3587
3603
  },
3588
3604
  ensureBlocks_: function() {
3589
- this.isInsertionMarker() || (Ai(this), x(this, [
3605
+ this.isInsertionMarker() || (Ai(this), V(this, [
3590
3606
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
3591
3607
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
3592
3608
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -3622,8 +3638,8 @@ const Ci = {
3622
3638
  name: "",
3623
3639
  type: "",
3624
3640
  extend: ""
3625
- }, this.appendValueInput("VALUE").appendField(new A(() => this.genSpaceOpts_()), "SPACE").appendField(new A(() => this.genTableOpts_()), "TABLE").appendField(new A(() => this.genColumnOpts_()), "COLUMN").appendField(
3626
- new A([
3641
+ }, this.appendValueInput("VALUE").appendField(new g(() => this.genSpaceOpts_()), "SPACE").appendField(new g(() => this.genTableOpts_()), "TABLE").appendField(new g(() => this.genColumnOpts_()), "COLUMN").appendField(
3642
+ new g([
3627
3643
  ["=", "EQ"],
3628
3644
  ["≠", "NEQ"],
3629
3645
  ["‏<", "LT"],
@@ -3643,11 +3659,11 @@ const Ci = {
3643
3659
  if (!t)
3644
3660
  return;
3645
3661
  this.space.id = t.id, this.space.name = t.name;
3646
- const e = K(this.space.id)?.[0];
3662
+ const e = w(this.space.id)?.[0];
3647
3663
  if (!e)
3648
3664
  return;
3649
3665
  this.table.id = e.id, this.table.name = e.name;
3650
- const n = jt(this.space.id, this.table.id)?.[0];
3666
+ const n = Xt(this.space.id, this.table.id)?.[0];
3651
3667
  n && (this.column.id = n.id, this.column.name = n.name, this.column.type = n.type, this.column.extend = n.extend);
3652
3668
  },
3653
3669
  saveExtraState: function() {
@@ -3663,18 +3679,18 @@ const Ci = {
3663
3679
  }, 0);
3664
3680
  },
3665
3681
  genSpaceOpts_: function() {
3666
- return le();
3682
+ return re();
3667
3683
  },
3668
3684
  genTableOpts_: function() {
3669
- return re(this.space.id);
3685
+ return _e(this.space.id);
3670
3686
  },
3671
3687
  genColumnOpts_: function() {
3672
3688
  return gi(this.space.id, this.table.id);
3673
3689
  },
3674
3690
  onchange: function(t) {
3675
- if (t.type === b.STATE_CHANGE)
3691
+ if (t.type === R.STATE_CHANGE)
3676
3692
  this.checkWarning_();
3677
- else if (t.type === I.BLOCK_CHANGE) {
3693
+ else if (t.type === A.BLOCK_CHANGE) {
3678
3694
  const e = t;
3679
3695
  e.blockId === this.id && e.element === "field" && (e.name === "SPACE" ? this.onSpaceChange_(e.newValue) : e.name === "TABLE" ? this.onTableChange_(e.newValue) : e.name === "COLUMN" && this.onColumnChange_(e.newValue)), setTimeout(() => {
3680
3696
  this.checkWarning_();
@@ -3682,14 +3698,14 @@ const Ci = {
3682
3698
  }
3683
3699
  },
3684
3700
  onSpaceChange_: function(t) {
3685
- const e = rt(t);
3701
+ const e = _t(t);
3686
3702
  if (!e) {
3687
3703
  console.assert(!1);
3688
3704
  return;
3689
3705
  }
3690
3706
  const n = e.id !== this.space.id;
3691
3707
  if (this.space.id = e.id, this.space.name = e.name, n || !W(this.space.id, this.table.id)) {
3692
- const o = K(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
3708
+ const o = w(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
3693
3709
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
3694
3710
  }
3695
3711
  },
@@ -3701,7 +3717,7 @@ const Ci = {
3701
3717
  }
3702
3718
  const n = e.id !== this.table.id;
3703
3719
  if (this.table.id = e.id, this.table.name = e.name, n || !ke(this.space.id, this.table.id, this.column.id)) {
3704
- const o = jt(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
3720
+ const o = Xt(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
3705
3721
  i.getOptions(!1), i.setValue(o, !1), this.onColumnChange_(o);
3706
3722
  }
3707
3723
  },
@@ -3733,7 +3749,7 @@ const Ci = {
3733
3749
  this.getInput("VALUE").connection.setCheck(t);
3734
3750
  },
3735
3751
  checkWarning_: function() {
3736
- const t = rt(this.space.id);
3752
+ const t = _t(this.space.id);
3737
3753
  if (!t) {
3738
3754
  this.setWarningText(p.WARN_SPACE_NOT_FOUND);
3739
3755
  return;
@@ -3788,7 +3804,7 @@ T.cond_logic_item_v1 = yi;
3788
3804
  const ki = {
3789
3805
  init: function() {
3790
3806
  this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
3791
- new A([
3807
+ new g([
3792
3808
  ["%{BKY_DATA_COND_LOGIC_TYPE_AND}", "AND"],
3793
3809
  ["%{BKY_DATA_COND_LOGIC_TYPE_OR}", "OR"]
3794
3810
  ]),
@@ -3873,7 +3889,7 @@ function Ni(t) {
3873
3889
  const e = t.getInput("TABLE").connection;
3874
3890
  if (e.targetBlock())
3875
3891
  return;
3876
- const n = j()?.[0], o = K(n?.id ?? "")?.[0], i = {
3892
+ const n = j()?.[0], o = w(n?.id ?? "")?.[0], i = {
3877
3893
  type: "select_table_v1",
3878
3894
  extraState: {
3879
3895
  space: {
@@ -3885,14 +3901,14 @@ function Ni(t) {
3885
3901
  name: o?.name ?? ""
3886
3902
  }
3887
3903
  }
3888
- }, a = w.blocks.append(i, t.workspace);
3904
+ }, a = F.blocks.append(i, t.workspace);
3889
3905
  e.connect(a.outputConnection);
3890
3906
  }
3891
3907
  function Li(t) {
3892
3908
  const e = t.getInput("CONDITION").connection;
3893
3909
  if (e.targetBlock())
3894
3910
  return;
3895
- const n = j()?.[0], o = K(n?.id ?? "")?.[0], i = jt(n?.id, o?.id)?.[0], a = {
3911
+ const n = j()?.[0], o = w(n?.id ?? "")?.[0], i = Xt(n?.id, o?.id)?.[0], a = {
3896
3912
  type: "cond_atomic_v1",
3897
3913
  extraState: {
3898
3914
  space: {
@@ -3910,7 +3926,7 @@ function Li(t) {
3910
3926
  extend: i?.extend ?? ""
3911
3927
  }
3912
3928
  }
3913
- }, u = w.blocks.append(a, t.workspace);
3929
+ }, u = F.blocks.append(a, t.workspace);
3914
3930
  e.connect(u.outputConnection);
3915
3931
  }
3916
3932
  function Si(t) {
@@ -3934,7 +3950,7 @@ function Si(t) {
3934
3950
  }
3935
3951
  }
3936
3952
  }
3937
- }, o = w.blocks.append(n, t.workspace);
3953
+ }, o = F.blocks.append(n, t.workspace);
3938
3954
  e.connect(o.previousConnection);
3939
3955
  }
3940
3956
  const Bi = {
@@ -3953,7 +3969,7 @@ const Bi = {
3953
3969
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "HANDLE")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
3954
3970
  },
3955
3971
  ensureBlocks_: function() {
3956
- this.isInsertionMarker() || (Ni(this), Li(this), x(this, [
3972
+ this.isInsertionMarker() || (Ni(this), Li(this), V(this, [
3957
3973
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
3958
3974
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0]
3959
3975
  ]), Si(this));
@@ -3975,7 +3991,7 @@ ${e}}
3975
3991
  ${i}}
3976
3992
  `;
3977
3993
  };
3978
- f([
3994
+ h([
3979
3995
  {
3980
3996
  type: "interrupt_transaction_v1",
3981
3997
  message0: "%{BKY_DATA_V1_INTERRUPT_TRANSACTION_TITLE}",
@@ -4004,7 +4020,7 @@ function bi(t) {
4004
4020
  let n, o;
4005
4021
  const i = j()?.[0];
4006
4022
  if (i) {
4007
- const l = K(i.id)?.[0];
4023
+ const l = w(i.id)?.[0];
4008
4024
  if (l) {
4009
4025
  n = {
4010
4026
  space: {
@@ -4028,7 +4044,7 @@ function bi(t) {
4028
4044
  type: "select_column_v1",
4029
4045
  extraState: n,
4030
4046
  fields: o
4031
- }, u = w.blocks.append(a, t.workspace);
4047
+ }, u = F.blocks.append(a, t.workspace);
4032
4048
  e.connect(u.outputConnection);
4033
4049
  }
4034
4050
  function Ri(t) {
@@ -4037,7 +4053,7 @@ function Ri(t) {
4037
4053
  return;
4038
4054
  const n = {
4039
4055
  type: "cond_atomic_v1"
4040
- }, o = w.blocks.append(n, t.workspace);
4056
+ }, o = F.blocks.append(n, t.workspace);
4041
4057
  e.connect(o.outputConnection);
4042
4058
  }
4043
4059
  function Pi(t) {
@@ -4074,7 +4090,7 @@ function Pi(t) {
4074
4090
  }
4075
4091
  }
4076
4092
  }
4077
- }, o = w.blocks.append(n, t.workspace);
4093
+ }, o = F.blocks.append(n, t.workspace);
4078
4094
  e.connect(o.outputConnection);
4079
4095
  }
4080
4096
  function Di(t) {
@@ -4098,10 +4114,10 @@ function Di(t) {
4098
4114
  }
4099
4115
  }
4100
4116
  }
4101
- }, o = w.blocks.append(n, t.workspace);
4117
+ }, o = F.blocks.append(n, t.workspace);
4102
4118
  e.connect(o.previousConnection);
4103
4119
  }
4104
- f([
4120
+ h([
4105
4121
  {
4106
4122
  type: "query_data_container_v1",
4107
4123
  message0: "%{BKY_DATA_EXTRA} %1",
@@ -4131,7 +4147,7 @@ const Mi = {
4131
4147
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("EXTRA_DATA") || (this.appendValueInput("EXTRA_DATA"), this.moveInputBefore("EXTRA_DATA", "HANDLE")), this.getInput("MAIN_DATA") || (this.appendValueInput("MAIN_DATA"), this.moveInputBefore("MAIN_DATA", "EXTRA_DATA")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "MAIN_DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("EXTRA") || (this.appendValueInput("EXTRA").setCheck(["QueryExtra", "Array"]).setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4132
4148
  },
4133
4149
  ensureBlocks_: function() {
4134
- this.isInsertionMarker() || (bi(this), Ri(this), Pi(this), x(this, [
4150
+ this.isInsertionMarker() || (bi(this), Ri(this), Pi(this), V(this, [
4135
4151
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4136
4152
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
4137
4153
  ["MAIN_DATA", "__mainData__", "PARAM_MAIN_DATA", !0],
@@ -4158,7 +4174,7 @@ ${e}}
4158
4174
  ${a}}
4159
4175
  `;
4160
4176
  };
4161
- f([
4177
+ h([
4162
4178
  {
4163
4179
  type: "query_extra_limit_v1",
4164
4180
  message0: "%{BKY_DATA_V1_QUERY_EXTRA_LIMIT_TITLE}",
@@ -4185,7 +4201,7 @@ s.forBlock.query_extra_limit_v1 = function(t) {
4185
4201
  const e = s.valueToCode(t, "OFFSET", c.ATOMIC) || 0, n = s.valueToCode(t, "LIMIT", c.ATOMIC) || 0;
4186
4202
  return [`{type:'limit',value:${e},value2:${n}}`, c.ATOMIC];
4187
4203
  };
4188
- f([
4204
+ h([
4189
4205
  {
4190
4206
  type: "query_extra_sortby_v1",
4191
4207
  message0: "%{BKY_DATA_V1_QUERY_EXTRA_SORTBY_TITLE}",
@@ -4233,7 +4249,7 @@ const xi = {
4233
4249
  id: "",
4234
4250
  name: "",
4235
4251
  columns: []
4236
- }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_COLUMN_TITLE}").appendField(new A(() => this.genSpaceOpts_()), "SPACE").appendField(new A(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4252
+ }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_COLUMN_TITLE}").appendField(new g(() => this.genSpaceOpts_()), "SPACE").appendField(new g(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4237
4253
  new ft.MutatorIcon(
4238
4254
  ["select_column_item_v1"],
4239
4255
  this
@@ -4249,7 +4265,7 @@ const xi = {
4249
4265
  this.space.id = t.id, this.space.name = t.name;
4250
4266
  const e = this.getField("SPACE");
4251
4267
  e.getOptions(!1), e.setValue(this.space.id, !1);
4252
- const n = K(this.space.id)?.[0];
4268
+ const n = w(this.space.id)?.[0];
4253
4269
  if (!n)
4254
4270
  return;
4255
4271
  this.table.id = n.id, this.table.name = n.name, this.table.columns = n.columns;
@@ -4269,21 +4285,21 @@ const xi = {
4269
4285
  }, 0);
4270
4286
  },
4271
4287
  genSpaceOpts_: function() {
4272
- return le();
4288
+ return re();
4273
4289
  },
4274
4290
  genTableOpts_: function() {
4275
- return re(this.space.id);
4291
+ return _e(this.space.id);
4276
4292
  },
4277
4293
  genColumnOpts_: function() {
4278
4294
  const t = [];
4279
4295
  return this.table.columns.forEach(({ id: e, name: n }) => {
4280
4296
  t.push([n, e]);
4281
- }), N(t);
4297
+ }), L(t);
4282
4298
  },
4283
4299
  onchange: function(t) {
4284
- if (t.type === b.STATE_CHANGE)
4300
+ if (t.type === R.STATE_CHANGE)
4285
4301
  this.checkWarning_();
4286
- else if (t.type === I.BLOCK_CHANGE) {
4302
+ else if (t.type === A.BLOCK_CHANGE) {
4287
4303
  const e = t;
4288
4304
  if (e.blockId !== this.id)
4289
4305
  return;
@@ -4303,14 +4319,14 @@ const xi = {
4303
4319
  }
4304
4320
  },
4305
4321
  onSpaceChange_: function(t) {
4306
- const e = rt(t);
4322
+ const e = _t(t);
4307
4323
  if (!e) {
4308
4324
  console.assert(!1);
4309
4325
  return;
4310
4326
  }
4311
4327
  const n = e.id !== this.space.id;
4312
4328
  if (this.space.id = e.id, this.space.name = e.name, n || !W(this.space.id, this.table.id)) {
4313
- const o = K(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4329
+ const o = w(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4314
4330
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
4315
4331
  }
4316
4332
  },
@@ -4384,7 +4400,7 @@ const xi = {
4384
4400
  initShape_: function() {
4385
4401
  if (!this.isInFlyout && !this.getInput("ADD0"))
4386
4402
  for (let t = 0; t < this.table.columns.length; t++) {
4387
- const e = this.table.columns[t], n = new A(() => this.genColumnOpts_()), o = new at("");
4403
+ const e = this.table.columns[t], n = new g(() => this.genColumnOpts_()), o = new ct("");
4388
4404
  this.appendDummyInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
4389
4405
  }
4390
4406
  },
@@ -4394,14 +4410,14 @@ const xi = {
4394
4410
  for (let t = 0; t < this.itemCount_; t++) {
4395
4411
  if (this.getInput("ADD" + t))
4396
4412
  continue;
4397
- const e = new A(() => this.genColumnOpts_()), n = new at("");
4413
+ const e = new g(() => this.genColumnOpts_()), n = new ct("");
4398
4414
  this.appendDummyInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
4399
4415
  const o = this.table.columns[0];
4400
4416
  e.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
4401
4417
  }
4402
4418
  },
4403
4419
  checkWarning_: function() {
4404
- const t = rt(this.space.id);
4420
+ const t = _t(this.space.id);
4405
4421
  if (!t) {
4406
4422
  this.setWarningText(p.WARN_SPACE_NOT_FOUND);
4407
4423
  return;
@@ -4423,7 +4439,7 @@ T.select_column_v1 = xi;
4423
4439
  s.forBlock.select_column_v1 = function(t) {
4424
4440
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
4425
4441
  for (let r = 0; r < n.itemCount_; r++) {
4426
- const _ = n.getFieldValue("COLUMN" + r), d = n.table.columns.find((h) => h.id === _).name, m = n.getFieldValue("ALIAS" + r);
4442
+ const _ = n.getFieldValue("COLUMN" + r), d = n.table.columns.find((f) => f.id === _).name, m = n.getFieldValue("ALIAS" + r);
4427
4443
  a.push({ name: d, alias: m });
4428
4444
  }
4429
4445
  let u = "[";
@@ -4439,7 +4455,7 @@ const Yi = {
4439
4455
  }, this.table = {
4440
4456
  id: "",
4441
4457
  name: ""
4442
- }, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_TABLE_TITLE}").appendField(new A(() => this.genSpaceOpts_()), "SPACE").appendField(new A(() => this.genTableOpts_()), "TABLE"), this.setOutput(!0, "SelectTable"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_DATA_V1_SELECT_TABLE_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_SELECT_TABLE_HELPURL}"), this.initData_();
4458
+ }, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_TABLE_TITLE}").appendField(new g(() => this.genSpaceOpts_()), "SPACE").appendField(new g(() => this.genTableOpts_()), "TABLE"), this.setOutput(!0, "SelectTable"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_DATA_V1_SELECT_TABLE_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_SELECT_TABLE_HELPURL}"), this.initData_();
4443
4459
  },
4444
4460
  initData_: function() {
4445
4461
  if (this.space.id)
@@ -4450,7 +4466,7 @@ const Yi = {
4450
4466
  this.space.id = t.id, this.space.name = t.name;
4451
4467
  const e = this.getField("SPACE");
4452
4468
  e.getOptions(!1), e.setValue(this.space.id);
4453
- const n = K(this.space.id)?.[0];
4469
+ const n = w(this.space.id)?.[0];
4454
4470
  if (!n)
4455
4471
  return;
4456
4472
  this.table.id = n.id, this.table.name = n.name;
@@ -4467,15 +4483,15 @@ const Yi = {
4467
4483
  this.space.id = t.space?.id ?? "", this.space.name = t.space?.name ?? "", this.table.id = t.table?.id ?? "", this.table.name = t.table?.name ?? "", this.checkWarning_();
4468
4484
  },
4469
4485
  genSpaceOpts_: function() {
4470
- return le();
4486
+ return re();
4471
4487
  },
4472
4488
  genTableOpts_: function() {
4473
- return re(this.space.id);
4489
+ return _e(this.space.id);
4474
4490
  },
4475
4491
  onchange: function(t) {
4476
- if (t.type === b.STATE_CHANGE)
4492
+ if (t.type === R.STATE_CHANGE)
4477
4493
  this.checkWarning_();
4478
- else if (t.type === I.BLOCK_CHANGE) {
4494
+ else if (t.type === A.BLOCK_CHANGE) {
4479
4495
  const e = t;
4480
4496
  if (e.blockId !== this.id)
4481
4497
  return;
@@ -4485,14 +4501,14 @@ const Yi = {
4485
4501
  }
4486
4502
  },
4487
4503
  onSpaceChange_: function(t) {
4488
- const e = rt(t);
4504
+ const e = _t(t);
4489
4505
  if (!e) {
4490
4506
  console.assert(!1);
4491
4507
  return;
4492
4508
  }
4493
4509
  let n = !1;
4494
4510
  if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !W(this.space.id, this.table.id)) {
4495
- const i = K(this.space.id)?.[0];
4511
+ const i = w(this.space.id)?.[0];
4496
4512
  i ? this.setFieldValue(i.id, "TABLE") : this.setFieldValue("", "TABLE");
4497
4513
  }
4498
4514
  },
@@ -4505,7 +4521,7 @@ const Yi = {
4505
4521
  this.table.id = e.id, this.table.name = e.name;
4506
4522
  },
4507
4523
  checkWarning_: function() {
4508
- const t = rt(this.space.id);
4524
+ const t = _t(this.space.id);
4509
4525
  if (!t) {
4510
4526
  this.setWarningText(p.WARN_SPACE_NOT_FOUND);
4511
4527
  return;
@@ -4540,7 +4556,7 @@ const Fi = {
4540
4556
  this.getInput("FINALLY") || this.appendStatementInput("FINALLY").appendField("%{BKY_DATA_FINALLY}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "FINALLY")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("HANDLE") || (this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.moveInputBefore("HANDLE", "SUCCESS"));
4541
4557
  },
4542
4558
  ensureBlocks_: function() {
4543
- this.isInsertionMarker() || x(this, [
4559
+ this.isInsertionMarker() || V(this, [
4544
4560
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4545
4561
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0]
4546
4562
  ]);
@@ -4611,7 +4627,7 @@ const $i = {
4611
4627
  id: "",
4612
4628
  name: "",
4613
4629
  columns: []
4614
- }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_COLUMN_TITLE}").appendField(new A(() => this.genSpaceOpts_()), "SPACE").appendField(new A(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4630
+ }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_COLUMN_TITLE}").appendField(new g(() => this.genSpaceOpts_()), "SPACE").appendField(new g(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4615
4631
  new ft.MutatorIcon(
4616
4632
  ["update_column_item_v1"],
4617
4633
  this
@@ -4627,7 +4643,7 @@ const $i = {
4627
4643
  this.space.id = t.id, this.space.name = t.name;
4628
4644
  const e = this.getField("SPACE");
4629
4645
  e.getOptions(!1), e.setValue(this.space.id, !1);
4630
- const n = K(this.space.id)?.[0];
4646
+ const n = w(this.space.id)?.[0];
4631
4647
  if (!n)
4632
4648
  return;
4633
4649
  this.table.id = n.id, this.table.name = n.name, this.table.columns = n.columns;
@@ -4647,21 +4663,21 @@ const $i = {
4647
4663
  }, 0);
4648
4664
  },
4649
4665
  genSpaceOpts_: function() {
4650
- return le();
4666
+ return re();
4651
4667
  },
4652
4668
  genTableOpts_: function() {
4653
- return re(this.space.id);
4669
+ return _e(this.space.id);
4654
4670
  },
4655
4671
  genColumnOpts_: function() {
4656
4672
  const t = [];
4657
4673
  return this.table.columns.forEach(({ id: e, name: n }) => {
4658
4674
  t.push([n, e]);
4659
- }), N(t);
4675
+ }), L(t);
4660
4676
  },
4661
4677
  onchange: function(t) {
4662
- if (t.type === b.STATE_CHANGE)
4678
+ if (t.type === R.STATE_CHANGE)
4663
4679
  this.checkWarning_();
4664
- else if (t.type === I.BLOCK_CHANGE) {
4680
+ else if (t.type === A.BLOCK_CHANGE) {
4665
4681
  const e = t;
4666
4682
  if (e.blockId !== this.id)
4667
4683
  return;
@@ -4681,14 +4697,14 @@ const $i = {
4681
4697
  }
4682
4698
  },
4683
4699
  onSpaceChange_: function(t) {
4684
- const e = rt(t);
4700
+ const e = _t(t);
4685
4701
  if (!e) {
4686
4702
  console.assert(!1);
4687
4703
  return;
4688
4704
  }
4689
4705
  const n = e.id !== this.space.id;
4690
4706
  if (this.space.id = e.id, this.space.name = e.name, n || !W(this.space.id, this.table.id)) {
4691
- const o = K(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4707
+ const o = w(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4692
4708
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
4693
4709
  }
4694
4710
  },
@@ -4772,7 +4788,7 @@ const $i = {
4772
4788
  initShape_: function() {
4773
4789
  if (!this.isInFlyout && !this.getInput("ADD0"))
4774
4790
  for (let t = 0; t < this.table.columns.length; t++) {
4775
- const e = this.table.columns[t], n = new A(() => this.genColumnOpts_());
4791
+ const e = this.table.columns[t], n = new g(() => this.genColumnOpts_());
4776
4792
  this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + t), n.setValue(e.id, !1);
4777
4793
  }
4778
4794
  },
@@ -4784,7 +4800,7 @@ const $i = {
4784
4800
  for (let t = 0; t < this.itemCount_; t++) {
4785
4801
  if (this.getInput("ADD" + t))
4786
4802
  continue;
4787
- const e = new A(() => this.genColumnOpts_());
4803
+ const e = new g(() => this.genColumnOpts_());
4788
4804
  this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t);
4789
4805
  }
4790
4806
  },
@@ -4814,7 +4830,7 @@ const $i = {
4814
4830
  }
4815
4831
  },
4816
4832
  checkWarning_: function() {
4817
- const t = rt(this.space.id);
4833
+ const t = _t(this.space.id);
4818
4834
  if (!t) {
4819
4835
  this.setWarningText(p.WARN_SPACE_NOT_FOUND);
4820
4836
  return;
@@ -4836,7 +4852,7 @@ T.update_column_v1 = $i;
4836
4852
  s.forBlock.update_column_v1 = function(t) {
4837
4853
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
4838
4854
  for (let r = 0; r < n.itemCount_; r++) {
4839
- const _ = n.getFieldValue("COLUMN" + r), d = n.table.columns.find((h) => h.id === _).name, m = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
4855
+ const _ = n.getFieldValue("COLUMN" + r), d = n.table.columns.find((f) => f.id === _).name, m = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
4840
4856
  a.push({ name: d, value: m });
4841
4857
  }
4842
4858
  let u = "[";
@@ -4851,7 +4867,7 @@ function Hi(t) {
4851
4867
  let n, o;
4852
4868
  const i = j()?.[0];
4853
4869
  if (i) {
4854
- const l = K(i.id)?.[0];
4870
+ const l = w(i.id)?.[0];
4855
4871
  if (l) {
4856
4872
  n = {
4857
4873
  space: {
@@ -4875,7 +4891,7 @@ function Hi(t) {
4875
4891
  type: "update_column_v1",
4876
4892
  extraState: n,
4877
4893
  fields: o
4878
- }, u = w.blocks.append(a, t.workspace);
4894
+ }, u = F.blocks.append(a, t.workspace);
4879
4895
  e.connect(u.outputConnection);
4880
4896
  }
4881
4897
  function Gi(t) {
@@ -4884,7 +4900,7 @@ function Gi(t) {
4884
4900
  return;
4885
4901
  const n = {
4886
4902
  type: "cond_atomic_v1"
4887
- }, o = w.blocks.append(n, t.workspace);
4903
+ }, o = F.blocks.append(n, t.workspace);
4888
4904
  e.connect(o.outputConnection);
4889
4905
  }
4890
4906
  function Wi(t) {
@@ -4908,7 +4924,7 @@ function Wi(t) {
4908
4924
  }
4909
4925
  }
4910
4926
  }
4911
- }, o = w.blocks.append(n, t.workspace);
4927
+ }, o = F.blocks.append(n, t.workspace);
4912
4928
  e.connect(o.previousConnection);
4913
4929
  }
4914
4930
  const ji = {
@@ -4927,7 +4943,7 @@ const ji = {
4927
4943
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4928
4944
  },
4929
4945
  ensureBlocks: function() {
4930
- this.isInsertionMarker() || (Hi(this), Gi(this), x(this, [
4946
+ this.isInsertionMarker() || (Hi(this), Gi(this), V(this, [
4931
4947
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4932
4948
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
4933
4949
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -4954,7 +4970,7 @@ ${i}}
4954
4970
  const Xi = y.xml, Ji = {
4955
4971
  init: function() {
4956
4972
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
4957
- new q(Et, 20, 20, void 0, () => {
4973
+ new J(gt, 20, 20, void 0, () => {
4958
4974
  this.isInFlyout || this.addEntry_();
4959
4975
  })
4960
4976
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
@@ -4964,7 +4980,7 @@ const Xi = y.xml, Ji = {
4964
4980
  return t.setAttribute("items", String(this.length)), t;
4965
4981
  },
4966
4982
  domToMutation: function(t) {
4967
- this.length = kt(t.getAttribute("items") ?? "", 0), this.initShape_();
4983
+ this.length = Nt(t.getAttribute("items") ?? "", 0), this.initShape_();
4968
4984
  },
4969
4985
  initData: function(t) {
4970
4986
  this.length = t, this.initShape_();
@@ -4973,11 +4989,11 @@ const Xi = y.xml, Ji = {
4973
4989
  for (let t = 0; t < this.length; t++) {
4974
4990
  const e = "ENTRY" + t, n = this.appendValueInput(e);
4975
4991
  n.appendField(
4976
- new q(Et, 20, 20, void 0, () => {
4992
+ new J(gt, 20, 20, void 0, () => {
4977
4993
  this.isInFlyout || this.addEntry_(n);
4978
4994
  })
4979
4995
  ), n.appendField(new qe(String(t))), n.appendField(
4980
- new q(wt, 20, 20, void 0, () => {
4996
+ new J(Kt, 20, 20, void 0, () => {
4981
4997
  this.isInFlyout || this.removeEntry_(n);
4982
4998
  })
4983
4999
  ), this.moveInputBefore(e, "ADD");
@@ -4985,18 +5001,18 @@ const Xi = y.xml, Ji = {
4985
5001
  },
4986
5002
  addEntry_: function(t) {
4987
5003
  let e = this.length;
4988
- t && (e = kt(t.name.substring(5)));
5004
+ t && (e = Nt(t.name.substring(5)));
4989
5005
  for (let o = this.length - 1; o >= e; o--) {
4990
5006
  const i = this.getInput("ENTRY" + o);
4991
5007
  i.name = "ENTRY" + (o + 1), i.fieldRow[1].setValue(o + 1);
4992
5008
  }
4993
5009
  const n = this.appendValueInput("ENTRY" + e);
4994
5010
  n.appendField(
4995
- new q(Et, 20, 20, void 0, () => {
5011
+ new J(gt, 20, 20, void 0, () => {
4996
5012
  this.isInFlyout || this.addEntry_(n);
4997
5013
  })
4998
5014
  ), n.appendField(new qe(String(e))), n.appendField(
4999
- new q(wt, 20, 20, void 0, () => {
5015
+ new J(Kt, 20, 20, void 0, () => {
5000
5016
  this.isInFlyout || this.removeEntry_(n);
5001
5017
  })
5002
5018
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -5004,7 +5020,7 @@ const Xi = y.xml, Ji = {
5004
5020
  removeEntry_: function(t) {
5005
5021
  const e = t.name, n = this.getInputTargetBlock(e);
5006
5022
  n && n.dispose(), this.removeInput(e);
5007
- const o = kt(e.substring(5));
5023
+ const o = Nt(e.substring(5));
5008
5024
  for (let i = o + 1; i < this.length; i++) {
5009
5025
  const a = this.getInput("ENTRY" + i);
5010
5026
  a.name = "ENTRY" + (i - 1), a.fieldRow[1].setValue(i - 1);
@@ -5028,7 +5044,7 @@ T.json_boolean_v1 = qi;
5028
5044
  const on = y.xml, Qi = {
5029
5045
  init: function() {
5030
5046
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5031
- new q(Et, 20, 20, void 0, () => {
5047
+ new J(gt, 20, 20, void 0, () => {
5032
5048
  this.isInFlyout || this.addEntry_();
5033
5049
  })
5034
5050
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
@@ -5056,11 +5072,11 @@ const on = y.xml, Qi = {
5056
5072
  for (let e = 0; e < t.length; e++) {
5057
5073
  const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
5058
5074
  i.appendField(
5059
- new q(Et, 20, 20, void 0, () => {
5075
+ new J(gt, 20, 20, void 0, () => {
5060
5076
  this.isInFlyout || this.addEntry_(i);
5061
5077
  })
5062
- ), i.appendField(new at(n), "KEY" + e), i.appendField(
5063
- new q(wt, 20, 20, void 0, () => {
5078
+ ), i.appendField(new ct(n), "KEY" + e), i.appendField(
5079
+ new J(Kt, 20, 20, void 0, () => {
5064
5080
  this.isInFlyout || this.removeEntry_(i);
5065
5081
  })
5066
5082
  ), this.moveInputBefore(o, "ADD");
@@ -5068,16 +5084,16 @@ const on = y.xml, Qi = {
5068
5084
  },
5069
5085
  addEntry_: function(t) {
5070
5086
  let e = this.length;
5071
- t && (e = kt(t.name.substring(5)));
5087
+ t && (e = Nt(t.name.substring(5)));
5072
5088
  for (let o = this.length - 1; o >= e; o--)
5073
5089
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
5074
5090
  const n = this.appendValueInput("ENTRY" + e);
5075
5091
  n.appendField(
5076
- new q(Et, 20, 20, void 0, () => {
5092
+ new J(gt, 20, 20, void 0, () => {
5077
5093
  this.isInFlyout || this.addEntry_(n);
5078
5094
  })
5079
- ), n.appendField(new at("key"), "KEY" + e), n.appendField(
5080
- new q(wt, 20, 20, void 0, () => {
5095
+ ), n.appendField(new ct("key"), "KEY" + e), n.appendField(
5096
+ new J(Kt, 20, 20, void 0, () => {
5081
5097
  this.isInFlyout || this.removeEntry_(n);
5082
5098
  })
5083
5099
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -5085,7 +5101,7 @@ const on = y.xml, Qi = {
5085
5101
  removeEntry_: function(t) {
5086
5102
  const e = t.name, n = this.getInputTargetBlock(e);
5087
5103
  n && n.dispose(), this.removeInput(e);
5088
- const o = kt(e.substring(5));
5104
+ const o = Nt(e.substring(5));
5089
5105
  for (let i = o + 1; i < this.length; i++)
5090
5106
  this.getField("KEY" + i).name = "KEY" + (i - 1), this.getInput("ENTRY" + i).name = "ENTRY" + (i - 1);
5091
5107
  this.length--;
@@ -5106,7 +5122,7 @@ const Zi = {
5106
5122
  T.json_root_v1 = Zi;
5107
5123
  const ts = {
5108
5124
  init: function() {
5109
- this.appendDummyInput().appendField('"').appendField(new at(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
5125
+ this.appendDummyInput().appendField('"').appendField(new ct(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
5110
5126
  }
5111
5127
  };
5112
5128
  T.json_string_v1 = ts;
@@ -5212,7 +5228,7 @@ s.forBlock.list_create_v1 = function(t) {
5212
5228
  n[i] = s.valueToCode(e, "ADD" + i, c.NONE) || "null";
5213
5229
  return ["[" + n.join(", ") + "]", c.ATOMIC];
5214
5230
  };
5215
- f([
5231
+ h([
5216
5232
  {
5217
5233
  type: "list_delete_v1",
5218
5234
  message0: "%{BKY_LIST_V1_DELETE_TITLE}",
@@ -5240,7 +5256,7 @@ s.forBlock.list_delete_v1 = function(t) {
5240
5256
  const e = s.valueToCode(t, "VALUE", c.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
5241
5257
  return `${e}.splice(${n}, 1)`;
5242
5258
  };
5243
- f([
5259
+ h([
5244
5260
  {
5245
5261
  type: "list_get_v1",
5246
5262
  message0: "%{BKY_LIST_V1_GET_TITLE}",
@@ -5267,7 +5283,7 @@ s.forBlock.list_get_v1 = function(t) {
5267
5283
  const e = s.valueToCode(t, "VALUE", c.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
5268
5284
  return [`${e}[${n}]`, c.MEMBER];
5269
5285
  };
5270
- f([
5286
+ h([
5271
5287
  {
5272
5288
  type: "list_get_sublist_v1",
5273
5289
  message0: "%{BKY_LIST_V1_GET_SUBLIST_TITLE}",
@@ -5299,7 +5315,7 @@ s.forBlock.list_get_sublist_v1 = function(t) {
5299
5315
  const e = s.valueToCode(t, "LIST", c.MEMBER) || "[]", n = s.getAdjusted(t, "START"), o = s.getAdjusted(t, "END", 1);
5300
5316
  return [`${e}.slice(${n}, ${o})`, c.FUNCTION_CALL];
5301
5317
  };
5302
- f([
5318
+ h([
5303
5319
  {
5304
5320
  type: "list_is_empty_v1",
5305
5321
  message0: "%{BKY_LIST_V1_IS_EMPTY_TITLE}",
@@ -5319,7 +5335,7 @@ f([
5319
5335
  s.forBlock.list_is_empty_v1 = function(t) {
5320
5336
  return [`!${s.valueToCode(t, "VALUE", c.MEMBER) || "[]"}.length`, c.LOGICAL_NOT];
5321
5337
  };
5322
- f([
5338
+ h([
5323
5339
  {
5324
5340
  type: "list_join_v1",
5325
5341
  message0: "%{BKY_LIST_V1_JOIN_TITLE}",
@@ -5346,7 +5362,7 @@ s.forBlock.list_join_v1 = function(t) {
5346
5362
  const e = s.valueToCode(t, "LIST", c.MEMBER) || "[]", n = s.valueToCode(t, "DELIM", c.NONE) || "''";
5347
5363
  return [`${e}.join(${n})`, c.FUNCTION_CALL];
5348
5364
  };
5349
- f([
5365
+ h([
5350
5366
  {
5351
5367
  type: "list_length_v1",
5352
5368
  message0: "%{BKY_LIST_V1_LENGTH_TITLE}",
@@ -5366,7 +5382,7 @@ f([
5366
5382
  s.forBlock.list_length_v1 = function(t) {
5367
5383
  return [`${s.valueToCode(t, "VALUE", c.MEMBER) || "[]"}.length`, c.MEMBER];
5368
5384
  };
5369
- f([
5385
+ h([
5370
5386
  {
5371
5387
  type: "list_reverse_v1",
5372
5388
  message0: "%{BKY_LIST_V1_REVERSE_TITLE}",
@@ -5387,7 +5403,7 @@ f([
5387
5403
  s.forBlock.list_reverse_v1 = function(t) {
5388
5404
  return [`${s.valueToCode(t, "LIST", c.NONE) || "[]"}.slice().reverse()`, c.FUNCTION_CALL];
5389
5405
  };
5390
- f([
5406
+ h([
5391
5407
  {
5392
5408
  type: "list_set_v1",
5393
5409
  message0: "%{BKY_LIST_V1_SET_TITLE}",
@@ -5433,11 +5449,11 @@ const ss = {
5433
5449
  AND: "%{BKY_LOGIC_V1_OPERATION_TOOLTIP_AND}",
5434
5450
  OR: "%{BKY_LOGIC_V1_OPERATION_TOOLTIP_OR}"
5435
5451
  };
5436
- S.register(
5452
+ B.register(
5437
5453
  "logic_op_tooltip_v1",
5438
- S.buildTooltipForDropdown("OP", ss)
5454
+ B.buildTooltipForDropdown("OP", ss)
5439
5455
  );
5440
- f([
5456
+ h([
5441
5457
  {
5442
5458
  type: "logic_boolean_v1",
5443
5459
  message0: "%1",
@@ -5468,22 +5484,22 @@ const as = {
5468
5484
  e.outputConnection,
5469
5485
  n.outputConnection
5470
5486
  )) {
5471
- I.setGroup(t.group);
5487
+ A.setGroup(t.group);
5472
5488
  const o = this.prevBlocks_[0];
5473
5489
  o !== e && (e.unplug(), o && !o.isDisposed() && !o.isShadow() && this.getInput("A").connection.connect(o.outputConnection));
5474
5490
  const i = this.prevBlocks_[1];
5475
- i !== n && (n.unplug(), i && !i.isDisposed() && !i.isShadow() && this.getInput("B").connection.connect(i.outputConnection)), this.bumpNeighbours(), I.setGroup(!1);
5491
+ i !== n && (n.unplug(), i && !i.isDisposed() && !i.isShadow() && this.getInput("B").connection.connect(i.outputConnection)), this.bumpNeighbours(), A.setGroup(!1);
5476
5492
  }
5477
5493
  this.prevBlocks_[0] = this.getInputTargetBlock("A"), this.prevBlocks_[1] = this.getInputTargetBlock("B");
5478
5494
  }
5479
5495
  };
5480
- S.register(
5496
+ B.register(
5481
5497
  "logic_compare_v1",
5482
5498
  function() {
5483
5499
  this.mixin(as);
5484
5500
  }
5485
5501
  );
5486
- f([
5502
+ h([
5487
5503
  {
5488
5504
  type: "logic_compare_v1",
5489
5505
  message0: "%1 %2 %3",
@@ -5655,13 +5671,13 @@ const cs = {
5655
5671
  n?.reconnect(this, "ELSE");
5656
5672
  }
5657
5673
  };
5658
- S.registerMutator(
5674
+ B.registerMutator(
5659
5675
  "logic_if_v1_mutator",
5660
5676
  cs,
5661
5677
  void 0,
5662
5678
  ["logic_if_else_if_v1", "logic_if_else_v1"]
5663
5679
  );
5664
- f([
5680
+ h([
5665
5681
  {
5666
5682
  type: "logic_if_v1",
5667
5683
  message0: "%{BKY_LOGIC_IF} %1",
@@ -5741,7 +5757,7 @@ s.forBlock.logic_if_v1 = function(t) {
5741
5757
  return n + `
5742
5758
  `;
5743
5759
  };
5744
- f([
5760
+ h([
5745
5761
  {
5746
5762
  type: "logic_negate_v1",
5747
5763
  message0: "%{BKY_LOGIC_V1_NEGATE_TITLE}",
@@ -5761,7 +5777,7 @@ f([
5761
5777
  s.forBlock.logic_negate_v1 = function(t) {
5762
5778
  return [`!${s.valueToCode(t, "BOOL", c.LOGICAL_NOT) || "true"}`, c.LOGICAL_NOT];
5763
5779
  };
5764
- f([
5780
+ h([
5765
5781
  {
5766
5782
  type: "logic_operation_v1",
5767
5783
  message0: "%1 %2 %3",
@@ -5813,13 +5829,13 @@ const us = {
5813
5829
  a && !a.workspace.connectionChecker.doTypeChecks(
5814
5830
  a.outputConnection,
5815
5831
  o
5816
- ) && (I.setGroup(t.group), o === this.prevParentConnection_ ? (this.unplug(), o.getSourceBlock().bumpNeighbours()) : (a.unplug(), a.bumpNeighbours()), I.setGroup(!1));
5832
+ ) && (A.setGroup(t.group), o === this.prevParentConnection_ ? (this.unplug(), o.getSourceBlock().bumpNeighbours()) : (a.unplug(), a.bumpNeighbours()), A.setGroup(!1));
5817
5833
  }
5818
5834
  this.prevParentConnection_ = o;
5819
5835
  }
5820
5836
  };
5821
- S.registerMixin("logic_ternary_v1", us);
5822
- f([
5837
+ B.registerMixin("logic_ternary_v1", us);
5838
+ h([
5823
5839
  {
5824
5840
  type: "logic_ternary_v1",
5825
5841
  message0: "%{BKY_LOGIC_TERNARY_CONDITION} %1",
@@ -5875,13 +5891,13 @@ const ls = {
5875
5891
  }
5876
5892
  }
5877
5893
  };
5878
- S.registerMixin(
5894
+ B.registerMixin(
5879
5895
  "contextMenu_newGetVariableBlock_v1",
5880
5896
  ls
5881
5897
  );
5882
- S.register(
5898
+ B.register(
5883
5899
  "flow_control_tooltip_v1",
5884
- S.buildTooltipForDropdown("MODE", {
5900
+ B.buildTooltipForDropdown("MODE", {
5885
5901
  BREAK: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_BREAK}",
5886
5902
  CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
5887
5903
  })
@@ -5903,24 +5919,24 @@ const rs = /* @__PURE__ */ new Set([
5903
5919
  },
5904
5920
  onchange: function(t) {
5905
5921
  const e = this.workspace;
5906
- if (!e.isDragging || e.isDragging() || t.type !== I.BLOCK_MOVE && t.type !== I.BLOCK_CREATE)
5922
+ if (!e.isDragging || e.isDragging() || t.type !== A.BLOCK_MOVE && t.type !== A.BLOCK_CREATE)
5907
5923
  return;
5908
5924
  const n = this.getSurroundLoop();
5909
5925
  if (this.setWarningText(
5910
5926
  n ? null : p.LOOP_FLOW_CONTROL_WARNING
5911
5927
  ), !this.isInFlyout)
5912
5928
  try {
5913
- I.setRecordUndo(!1), this.setDisabledReason(!n, "FLOW_CONTROL_NOT_IN_LOOP");
5929
+ A.setRecordUndo(!1), this.setDisabledReason(!n, "FLOW_CONTROL_NOT_IN_LOOP");
5914
5930
  } finally {
5915
- I.setRecordUndo(!0);
5931
+ A.setRecordUndo(!0);
5916
5932
  }
5917
5933
  }
5918
5934
  };
5919
- S.registerMixin(
5935
+ B.registerMixin(
5920
5936
  "flow_control_in_loop_check_v1",
5921
5937
  _s
5922
5938
  );
5923
- f([
5939
+ h([
5924
5940
  {
5925
5941
  type: "flow_control_v1",
5926
5942
  message0: "%1",
@@ -5967,14 +5983,14 @@ s.forBlock.flow_control_v1 = function(t) {
5967
5983
  throw "unknown mode";
5968
5984
  }
5969
5985
  };
5970
- S.register(
5986
+ B.register(
5971
5987
  "for_tooltip_v1",
5972
- S.buildTooltipWithFieldText(
5988
+ B.buildTooltipWithFieldText(
5973
5989
  "%{BKY_LOOP_V1_FOR_TOOLTIP}",
5974
5990
  "VAR"
5975
5991
  )
5976
5992
  );
5977
- f([
5993
+ h([
5978
5994
  {
5979
5995
  type: "for_v1",
5980
5996
  message0: "%{BKY_LOOP_V1_FOR_TITLE}",
@@ -6036,18 +6052,18 @@ ${u}}
6036
6052
  let l = "", r = o;
6037
6053
  !o.match(/^\w+$/) && !y.string.isNumber(o) && (r = s.nameDB_.getDistinctName(
6038
6054
  `${n}_from`,
6039
- Z.NameType.VARIABLE
6055
+ z.NameType.VARIABLE
6040
6056
  ), l += `var ${r} = ${o};
6041
6057
  `);
6042
6058
  let _ = i;
6043
6059
  !i.match(/^\w+$/) && !y.string.isNumber(i) && (_ = s.nameDB_.getDistinctName(
6044
6060
  `${n}_to`,
6045
- Z.NameType.VARIABLE
6061
+ z.NameType.VARIABLE
6046
6062
  ), l += `var ${_} = ${i};
6047
6063
  `);
6048
6064
  const d = s.nameDB_.getDistinctName(
6049
6065
  `${n}_by`,
6050
- Z.NameType.VARIABLE
6066
+ z.NameType.VARIABLE
6051
6067
  );
6052
6068
  return l += `var ${d} = `, y.string.isNumber(a) ? l += `${Math.abs(Number(a))};
6053
6069
  ` : l += `Math.abs(${a});
@@ -6059,14 +6075,14 @@ ${u}}
6059
6075
  `, l;
6060
6076
  }
6061
6077
  };
6062
- S.register(
6078
+ B.register(
6063
6079
  "for_each_tooltip_v1",
6064
- S.buildTooltipWithFieldText(
6080
+ B.buildTooltipWithFieldText(
6065
6081
  "%{BKY_LOOP_V1_FOR_EACH_TOOLTIP}",
6066
6082
  "VAR"
6067
6083
  )
6068
6084
  );
6069
- f([
6085
+ h([
6070
6086
  {
6071
6087
  type: "for_each_v1",
6072
6088
  message0: "%{BKY_LOOP_V1_FOR_EACH_TITLE}",
@@ -6106,19 +6122,19 @@ s.forBlock.for_each_v1 = function(t) {
6106
6122
  let a = "", u = o;
6107
6123
  o.match(/^\w+$/) || (u = s.nameDB_.getDistinctName(
6108
6124
  `${n}_list`,
6109
- Z.NameType.VARIABLE
6125
+ z.NameType.VARIABLE
6110
6126
  ), a += `var ${u} = ${o};
6111
6127
  `);
6112
6128
  const l = s.nameDB_.getDistinctName(
6113
6129
  `${n}_index`,
6114
- Z.NameType.VARIABLE
6130
+ z.NameType.VARIABLE
6115
6131
  );
6116
6132
  return a += `for (var ${l} in ${u}) {
6117
6133
  ${e}${n} = ${u}[${l}];
6118
6134
  ${i}}
6119
6135
  `, a;
6120
6136
  };
6121
- f([
6137
+ h([
6122
6138
  {
6123
6139
  type: "repeat_v1",
6124
6140
  message0: "%{BKY_LOOP_V1_REPEAT_TITLE}",
@@ -6153,25 +6169,25 @@ s.forBlock.repeat_v1 = function(t) {
6153
6169
  let o = "";
6154
6170
  const i = s.nameDB_.getDistinctName(
6155
6171
  "count",
6156
- Z.NameType.VARIABLE
6172
+ z.NameType.VARIABLE
6157
6173
  );
6158
6174
  let a = e;
6159
6175
  return !e.match(/^\w+$/) && !y.string.isNumber(e) && (a = s.nameDB_.getDistinctName(
6160
6176
  "repeat_end",
6161
- Z.NameType.VARIABLE
6177
+ z.NameType.VARIABLE
6162
6178
  ), o += `var ${a} = ${e};
6163
6179
  `), o += `for (var ${i} = 0; ${i} < ${a}; ${i}++) {
6164
6180
  ${n}}
6165
6181
  `, o;
6166
6182
  };
6167
- S.register(
6183
+ B.register(
6168
6184
  "while_until_tooltip_v1",
6169
- S.buildTooltipForDropdown("MODE", {
6185
+ B.buildTooltipForDropdown("MODE", {
6170
6186
  WHILE: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE}",
6171
6187
  UNTIL: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL}"
6172
6188
  })
6173
6189
  );
6174
- f([
6190
+ h([
6175
6191
  {
6176
6192
  type: "while_until_v1",
6177
6193
  message0: "%1 %2",
@@ -6252,11 +6268,11 @@ const ps = {
6252
6268
  STD_DEV: "%{BKY_MATH_V1_ON_LIST_TOOLTIP_STD_DEV}",
6253
6269
  RANDOM: "%{BKY_MATH_V1_ON_LIST_TOOLTIP_RANDOM}"
6254
6270
  };
6255
- S.register(
6271
+ B.register(
6256
6272
  "math_op_tooltip_v1",
6257
- S.buildTooltipForDropdown("OP", ps)
6273
+ B.buildTooltipForDropdown("OP", ps)
6258
6274
  );
6259
- f([
6275
+ h([
6260
6276
  {
6261
6277
  type: "math_arithmetic_v1",
6262
6278
  message0: "%1 %2 %3",
@@ -6300,7 +6316,7 @@ s.forBlock.math_arithmetic_v1 = function(t) {
6300
6316
  }, [n, o] = e[t.getFieldValue("OP")], i = s.valueToCode(t, "A", o) || "0", a = s.valueToCode(t, "B", o) || "0";
6301
6317
  return n ? [i + n + a, o] : [`Math.pow(${i}, ${a})`, c.FUNCTION_CALL];
6302
6318
  };
6303
- f([
6319
+ h([
6304
6320
  {
6305
6321
  type: "math_constant_v1",
6306
6322
  message0: "%1",
@@ -6334,7 +6350,7 @@ s.forBlock.math_constant_v1 = function(t) {
6334
6350
  INFINITY: ["Infinity", c.ATOMIC]
6335
6351
  }[t.getFieldValue("CONSTANT")];
6336
6352
  };
6337
- f([
6353
+ h([
6338
6354
  {
6339
6355
  type: "math_constrain_v1",
6340
6356
  message0: "%{BKY_MATH_V1_CONSTRAIN_TITLE}",
@@ -6366,7 +6382,7 @@ s.forBlock.math_constrain_v1 = function(t) {
6366
6382
  const e = s.valueToCode(t, "VALUE", c.NONE) || "0", n = s.valueToCode(t, "LOW", c.NONE) || "0", o = s.valueToCode(t, "HIGH", c.NONE) || "Infinity";
6367
6383
  return [`Math.min(Math.max(${e}, ${n}), ${o})`, c.FUNCTION_CALL];
6368
6384
  };
6369
- f([
6385
+ h([
6370
6386
  {
6371
6387
  type: "math_modulo_v1",
6372
6388
  message0: "%{BKY_MATH_V1_MODULO_TITLE}",
@@ -6393,7 +6409,7 @@ s.forBlock.math_modulo_v1 = function(t) {
6393
6409
  const e = s.valueToCode(t, "DIVIDEND", c.MODULUS) || "0", n = s.valueToCode(t, "DIVISOR", c.MODULUS) || "0";
6394
6410
  return [e + " % " + n, c.MODULUS];
6395
6411
  };
6396
- f([
6412
+ h([
6397
6413
  {
6398
6414
  type: "math_number_v1",
6399
6415
  message0: "%1",
@@ -6415,7 +6431,7 @@ s.forBlock.math_number_v1 = function(t) {
6415
6431
  const e = Number(t.getFieldValue("NUM")), n = e >= 0 ? c.ATOMIC : c.UNARY_NEGATION;
6416
6432
  return [String(e), n];
6417
6433
  };
6418
- f([
6434
+ h([
6419
6435
  {
6420
6436
  type: "math_number_property_v1",
6421
6437
  message0: "%{BKY_MATH_V1_NUMBER_PROPERTY_TITLE}",
@@ -6487,7 +6503,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(n) {
6487
6503
  l = u + o;
6488
6504
  return [l, a];
6489
6505
  };
6490
- f([
6506
+ h([
6491
6507
  {
6492
6508
  type: "math_on_list_v1",
6493
6509
  message0: "%{BKY_MATH_V1_ON_LIST_TITLE}",
@@ -6637,7 +6653,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(list) {
6637
6653
  }
6638
6654
  return [o, c.FUNCTION_CALL];
6639
6655
  };
6640
- f([
6656
+ h([
6641
6657
  {
6642
6658
  type: "math_random_float_v1",
6643
6659
  message0: "%{BKY_MATH_V1_RANDOM_FLOAT_TITLE}",
@@ -6650,7 +6666,7 @@ f([
6650
6666
  s.forBlock.math_random_float_v1 = function() {
6651
6667
  return ["Math.random()", c.FUNCTION_CALL];
6652
6668
  };
6653
- f([
6669
+ h([
6654
6670
  {
6655
6671
  type: "math_random_int_v1",
6656
6672
  message0: "%{BKY_MATH_V1_RANDOM_INT_TITLE}",
@@ -6690,7 +6706,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(a, b) {
6690
6706
  `
6691
6707
  ) + "(" + e + ", " + n + ")", c.FUNCTION_CALL];
6692
6708
  };
6693
- f([
6709
+ h([
6694
6710
  {
6695
6711
  type: "math_round_v1",
6696
6712
  message0: "%1 %2",
@@ -6732,7 +6748,7 @@ s.forBlock.math_round_v1 = function(t) {
6732
6748
  }
6733
6749
  return [o, c.FUNCTION_CALL];
6734
6750
  };
6735
- f([
6751
+ h([
6736
6752
  {
6737
6753
  type: "math_single_v1",
6738
6754
  message0: "%1 %2",
@@ -6795,7 +6811,7 @@ s.forBlock.math_single_v1 = function(t) {
6795
6811
  }
6796
6812
  return [n, c.DIVISION];
6797
6813
  };
6798
- f([
6814
+ h([
6799
6815
  {
6800
6816
  type: "math_trig_v1",
6801
6817
  message0: "%1 %2",
@@ -6940,7 +6956,7 @@ const Ts = {
6940
6956
  },
6941
6957
  updateShape_: function() {
6942
6958
  for (let t = 0; t < this.itemCount_; t++)
6943
- this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(new at("key"), "KEY" + t);
6959
+ this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(new ct("key"), "KEY" + t);
6944
6960
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
6945
6961
  this.removeInput("ADD" + t);
6946
6962
  }
@@ -6955,7 +6971,7 @@ s.forBlock.object_create_v1 = function(t) {
6955
6971
  }
6956
6972
  return n += "}", [n, c.ATOMIC];
6957
6973
  };
6958
- f([
6974
+ h([
6959
6975
  {
6960
6976
  type: "object_delete_v1",
6961
6977
  message0: "%{BKY_OBJECT_V1_DELETE_TITLE}",
@@ -7022,7 +7038,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
7022
7038
  return `${e}(${n}, ${o});
7023
7039
  `;
7024
7040
  };
7025
- f([
7041
+ h([
7026
7042
  {
7027
7043
  type: "object_from_json_v1",
7028
7044
  message0: "%{BKY_OBJECT_V1_FROM_JSON_TITLE}",
@@ -7043,7 +7059,7 @@ f([
7043
7059
  s.forBlock.object_from_json_v1 = function(t) {
7044
7060
  return [`__parseJsonV1__(${s.valueToCode(t, "JSON", c.NONE) || "''"})`, c.FUNCTION_CALL];
7045
7061
  };
7046
- f([
7062
+ h([
7047
7063
  {
7048
7064
  type: "object_get_v1",
7049
7065
  message0: "%{BKY_OBJECT_V1_GET_TITLE}",
@@ -7100,7 +7116,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
7100
7116
  ), n = s.valueToCode(t, "OBJECT", c.ATOMIC) || "null", o = s.valueToCode(t, "KEY", c.ATOMIC) || "''";
7101
7117
  return [`${e}(${n}, ${o})`, c.FUNCTION_CALL];
7102
7118
  };
7103
- f([
7119
+ h([
7104
7120
  {
7105
7121
  type: "object_set_v1",
7106
7122
  message0: "%{BKY_OBJECT_V1_SET_TITLE}",
@@ -7166,7 +7182,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key, val) {
7166
7182
  return `${e}(${n}, ${o}, ${i});
7167
7183
  `;
7168
7184
  };
7169
- f([
7185
+ h([
7170
7186
  {
7171
7187
  type: "object_to_json_v1",
7172
7188
  message0: "%{BKY_OBJECT_V1_TO_JSON_TITLE}",
@@ -7195,7 +7211,7 @@ const sn = y.xml, ms = {
7195
7211
  T.procedure_def_container_v1 = ms;
7196
7212
  const Es = {
7197
7213
  init: function() {
7198
- const t = new at(be.DEFAULT_ARG);
7214
+ const t = new ct(be.DEFAULT_ARG);
7199
7215
  t.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(t, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7200
7216
  },
7201
7217
  validator_: function(t) {
@@ -7219,7 +7235,7 @@ T.procedure_def_item_v1 = Es;
7219
7235
  const gs = {
7220
7236
  init: function() {
7221
7237
  this.withReturn = !1, this.args = [];
7222
- const t = new at(
7238
+ const t = new ct(
7223
7239
  be.findLegalName("", this)
7224
7240
  );
7225
7241
  t.setValidator(be.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
@@ -7308,14 +7324,14 @@ const gs = {
7308
7324
  o.setKeyName(`__param@${e.id}__`, e.name, !1);
7309
7325
  else
7310
7326
  try {
7311
- I.disable(), o = Fe(
7327
+ A.disable(), o = Fe(
7312
7328
  this.workspace,
7313
7329
  `__param@${e.id}__`,
7314
7330
  e.name,
7315
7331
  !1
7316
7332
  ), o.outputConnection.connect(n);
7317
7333
  } finally {
7318
- I.enable();
7334
+ A.enable();
7319
7335
  }
7320
7336
  }
7321
7337
  }
@@ -7345,9 +7361,9 @@ const As = y.xml, Is = {
7345
7361
  }, 0);
7346
7362
  },
7347
7363
  onchange: function(t) {
7348
- if (t.type === b.STATE_CHANGE)
7364
+ if (t.type === R.STATE_CHANGE)
7349
7365
  this.checkWarning_();
7350
- else if (t.type === I.BLOCK_DRAG) {
7366
+ else if (t.type === A.BLOCK_DRAG) {
7351
7367
  const e = t;
7352
7368
  if (e.isStart || !e.blocks?.find((n) => n.id === this.id))
7353
7369
  return;
@@ -7400,7 +7416,7 @@ const Os = {
7400
7416
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_ASSET_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_ASSET_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("ASSET") || (this.appendValueInput("ASSET").setCheck("Resource").setAlign(v.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
7401
7417
  },
7402
7418
  ensureBlocks_: function() {
7403
- this.isInsertionMarker() || x(this, [
7419
+ this.isInsertionMarker() || V(this, [
7404
7420
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
7405
7421
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
7406
7422
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -7439,7 +7455,7 @@ function Cs(t) {
7439
7455
  const e = [];
7440
7456
  return Bn(t).forEach(({ id: o, name: i }) => {
7441
7457
  e.push([i, o]);
7442
- }), N(e);
7458
+ }), L(e);
7443
7459
  }
7444
7460
  function bn(t, e) {
7445
7461
  const n = E.resource.spaces.find((i) => i.id === t);
@@ -7454,7 +7470,7 @@ function vs(t, e) {
7454
7470
  const n = [];
7455
7471
  return bn(t, e).forEach(({ id: i, name: a }) => {
7456
7472
  n.push([a, i]);
7457
- }), N(n);
7473
+ }), L(n);
7458
7474
  }
7459
7475
  function Rn() {
7460
7476
  const t = [];
@@ -7466,7 +7482,7 @@ function ys() {
7466
7482
  const t = [];
7467
7483
  return Rn().forEach(({ id: n, name: o }) => {
7468
7484
  t.push([o, n]);
7469
- }), N(t);
7485
+ }), L(t);
7470
7486
  }
7471
7487
  const ks = {
7472
7488
  init: function() {
@@ -7479,8 +7495,8 @@ const ks = {
7479
7495
  }, this.resource = {
7480
7496
  id: "",
7481
7497
  name: ""
7482
- }, this.appendDummyInput().appendField("%{BKY_RESOURCE_V1_SELECT_RESOURCE_TITLE").appendField(new A(() => this.genSpaceOpts_()), "SPACE").appendField(new A(() => this.genDirOpts_()), "DIR").appendField(
7483
- new A(() => this.genResourceOpts_()),
7498
+ }, this.appendDummyInput().appendField("%{BKY_RESOURCE_V1_SELECT_RESOURCE_TITLE").appendField(new g(() => this.genSpaceOpts_()), "SPACE").appendField(new g(() => this.genDirOpts_()), "DIR").appendField(
7499
+ new g(() => this.genResourceOpts_()),
7484
7500
  "RESOURCE"
7485
7501
  ), this.setOutput(!0, "Resource"), this.setStyle("resource_blocks"), this.setTooltip("%{BKY_RESOURCE_V1_SELECT_RESOURCE_TOOLTIP}"), this.setHelpUrl("%{BKY_RESOURCE_V1_SELECT_RESOURCE_HELPURL}"), this.initData_();
7486
7502
  },
@@ -7550,11 +7566,11 @@ const Ns = {
7550
7566
  updateShadow_: function() {
7551
7567
  if (this.isInsertionMarker())
7552
7568
  return;
7553
- const t = st("");
7569
+ const t = at("");
7554
7570
  this.getInput("NAME")?.setShadowDom(t);
7555
7571
  },
7556
7572
  ensureBlocks_: function() {
7557
- this.isInsertionMarker() || x(this, [
7573
+ this.isInsertionMarker() || V(this, [
7558
7574
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
7559
7575
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
7560
7576
  ["RESULT", "__result__", "PARAM_RESULT", !0]
@@ -7573,7 +7589,7 @@ ${i}
7573
7589
  }
7574
7590
  `;
7575
7591
  };
7576
- f([
7592
+ h([
7577
7593
  {
7578
7594
  type: "text_v1",
7579
7595
  message0: "%{BKY_TEXT_V1_TEXT_TITLE}",
@@ -7595,17 +7611,17 @@ s.forBlock.text_v1 = function(t) {
7595
7611
  return [s.quote_(t.getFieldValue("TEXT")), c.ATOMIC];
7596
7612
  };
7597
7613
  const Ls = /^\s*'([^']|\\')*'\s*$/;
7598
- function Yt(t) {
7614
+ function Ft(t) {
7599
7615
  return Ls.test(t) ? [t, c.ATOMIC] : [`String(${t})`, c.FUNCTION_CALL];
7600
7616
  }
7601
- S.register(
7617
+ B.register(
7602
7618
  "text_append_tooltip_v1",
7603
- S.buildTooltipWithFieldText(
7619
+ B.buildTooltipWithFieldText(
7604
7620
  "%{BKY_TEXT_V1_APPEND_TOOLTIP}",
7605
7621
  "VAR"
7606
7622
  )
7607
7623
  );
7608
- f([
7624
+ h([
7609
7625
  {
7610
7626
  type: "text_append_v1",
7611
7627
  message0: "%{BKY_TEXT_V1_APPEND_TITLE}",
@@ -7629,12 +7645,12 @@ f([
7629
7645
  s.forBlock.text_append_v1 = function(t) {
7630
7646
  const e = s.nameDB_?.getName(
7631
7647
  t.getFieldValue("VAR"),
7632
- Z.NameType.VARIABLE
7648
+ z.NameType.VARIABLE
7633
7649
  ), n = s.valueToCode(t, "TEXT", c.NONE) || "''";
7634
- return `${e} += ${Yt(n)};
7650
+ return `${e} += ${Ft(n)};
7635
7651
  `;
7636
7652
  };
7637
- f([
7653
+ h([
7638
7654
  {
7639
7655
  type: "text_change_case_v1",
7640
7656
  message0: "%{BKY_TEXT_V1_CHANGE_CASE_TITLE}",
@@ -7680,7 +7696,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(str) {
7680
7696
  `
7681
7697
  ) + "(" + o + ")", [i, c.FUNCTION_CALL];
7682
7698
  };
7683
- f([
7699
+ h([
7684
7700
  {
7685
7701
  type: "text_char_at_v1",
7686
7702
  message0: "%{BKY_TEXT_V1_CHAR_AT_TITLE}",
@@ -7707,7 +7723,7 @@ s.forBlock.text_char_at_v1 = function(t) {
7707
7723
  const e = s.valueToCode(t, "VALUE", c.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
7708
7724
  return [`${e}.charAt(${n})`, c.FUNCTION_CALL];
7709
7725
  };
7710
- f([
7726
+ h([
7711
7727
  {
7712
7728
  type: "text_count_v1",
7713
7729
  message0: "%{BKY_TEXT_V1_COUNT_TITLE}",
@@ -7745,7 +7761,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle) {
7745
7761
  `
7746
7762
  )}(${e}, ${n})`, c.FUNCTION_CALL];
7747
7763
  };
7748
- f([
7764
+ h([
7749
7765
  {
7750
7766
  type: "text_index_of_v1",
7751
7767
  message0: "%{BKY_TEXT_V1_INDEX_OF_TITLE}",
@@ -7780,7 +7796,7 @@ s.forBlock.text_index_of_v1 = function(t) {
7780
7796
  const e = t.getFieldValue("OP") === "FIRST" ? "indexOf" : "lastIndexOf", n = s.valueToCode(t, "TEXT", c.MEMBER) || "''", o = s.valueToCode(t, "SUBSTR", c.NONE) || "''";
7781
7797
  return [`${n}.${e}(${o})`, c.FUNCTION_CALL];
7782
7798
  };
7783
- f([
7799
+ h([
7784
7800
  {
7785
7801
  type: "text_is_empty_v1",
7786
7802
  message0: "%{BKY_TEXT_V1_IS_EMPTY_TITLE}",
@@ -7877,12 +7893,12 @@ const Ss = y.xml, Bs = {
7877
7893
  }, bs = function() {
7878
7894
  this.itemCount_ = 2, this.updateShape_(), this.setMutator(new ft.MutatorIcon(["text_join_item_v1"], this));
7879
7895
  };
7880
- S.registerMutator(
7896
+ B.registerMutator(
7881
7897
  "text_join_mutator_v1",
7882
7898
  Bs,
7883
7899
  bs
7884
7900
  );
7885
- f([
7901
+ h([
7886
7902
  {
7887
7903
  type: "text_join_v1",
7888
7904
  message0: "",
@@ -7923,11 +7939,11 @@ s.forBlock.text_join_v1 = function(t) {
7923
7939
  return ["''", c.ATOMIC];
7924
7940
  case 1: {
7925
7941
  const n = s.valueToCode(e, "ADD0", c.NONE) || "''";
7926
- return Yt(n);
7942
+ return Ft(n);
7927
7943
  }
7928
7944
  case 2: {
7929
7945
  const n = s.valueToCode(e, "ADD0", c.NONE) || "''", o = s.valueToCode(e, "ADD1", c.NONE) || "''";
7930
- return [Yt(n)[0] + " + " + Yt(o)[0], c.ADDITION];
7946
+ return [Ft(n)[0] + " + " + Ft(o)[0], c.ADDITION];
7931
7947
  }
7932
7948
  default: {
7933
7949
  const n = new Array(e.itemCount_);
@@ -7937,7 +7953,7 @@ s.forBlock.text_join_v1 = function(t) {
7937
7953
  }
7938
7954
  }
7939
7955
  };
7940
- f([
7956
+ h([
7941
7957
  {
7942
7958
  type: "text_length_v1",
7943
7959
  message0: "%{BKY_TEXT_V1_LENGTH_TITLE}",
@@ -7957,7 +7973,7 @@ f([
7957
7973
  s.forBlock.text_length_v1 = function(t) {
7958
7974
  return [`${s.valueToCode(t, "VALUE", c.MEMBER) || "''"}.length`, c.MEMBER];
7959
7975
  };
7960
- f([
7976
+ h([
7961
7977
  {
7962
7978
  type: "text_replace_v1",
7963
7979
  message0: "%{BKY_TEXT_V1_REPLACE_TITLE}",
@@ -7998,7 +8014,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
7998
8014
  `
7999
8015
  )}(${e}, ${n}, ${o})`, c.FUNCTION_CALL];
8000
8016
  };
8001
- f([
8017
+ h([
8002
8018
  {
8003
8019
  type: "text_reverse_v1",
8004
8020
  message0: "%{BKY_TEXT_V1_REVERSE_TITLE}",
@@ -8019,7 +8035,7 @@ f([
8019
8035
  s.forBlock.text_reverse_v1 = function(t) {
8020
8036
  return [(s.valueToCode(t, "TEXT", c.MEMBER) || "''") + ".split('').reverse().join('')", c.FUNCTION_CALL];
8021
8037
  };
8022
- f([
8038
+ h([
8023
8039
  {
8024
8040
  type: "text_split_v1",
8025
8041
  message0: "%{BKY_TEXT_V1_SPLIT_TITLE}",
@@ -8046,7 +8062,7 @@ s.forBlock.text_split_v1 = function(t) {
8046
8062
  const e = s.valueToCode(t, "TEXT", c.MEMBER) || "''", n = s.valueToCode(t, "DELIM", c.NONE) || "''";
8047
8063
  return [`${e}.split(${n})`, c.FUNCTION_CALL];
8048
8064
  };
8049
- f([
8065
+ h([
8050
8066
  {
8051
8067
  type: "text_substring_v1",
8052
8068
  message0: "%{BKY_TEXT_V1_SUBSTRING_TITLE}",
@@ -8078,7 +8094,7 @@ s.forBlock.text_substring_v1 = function(t) {
8078
8094
  const e = s.valueToCode(t, "TEXT", c.MEMBER) || "''", n = s.getAdjusted(t, "START"), o = s.getAdjusted(t, "END", 1);
8079
8095
  return [`${e}.slice(${n}, ${o})`, c.FUNCTION_CALL];
8080
8096
  };
8081
- f([
8097
+ h([
8082
8098
  {
8083
8099
  type: "text_trim_v1",
8084
8100
  message0: "%{BKY_TEXT_V1_TRIM_TITLE}",
@@ -8128,13 +8144,13 @@ const Rs = {
8128
8144
  updateShadow_: function() {
8129
8145
  if (this.isInsertionMarker())
8130
8146
  return;
8131
- const t = $t(1e3);
8147
+ const t = Ht(1e3);
8132
8148
  this.getInput("INTERVAL")?.setShadowDom(t);
8133
- const e = Ht(!1);
8149
+ const e = Gt(!1);
8134
8150
  this.getInput("LOOP")?.setShadowDom(e);
8135
- const n = $t(1);
8151
+ const n = Ht(1);
8136
8152
  this.getInput("COUNT")?.setShadowDom(n);
8137
- const o = Ht(!1);
8153
+ const o = Gt(!1);
8138
8154
  this.getInput("IMMEDIATE")?.setShadowDom(o);
8139
8155
  }
8140
8156
  };
@@ -8145,7 +8161,7 @@ s.forBlock.create_timer_v1 = function(t) {
8145
8161
  ${a}});
8146
8162
  `;
8147
8163
  };
8148
- f([
8164
+ h([
8149
8165
  {
8150
8166
  type: "delay_v1",
8151
8167
  message0: "%{BKY_TIME_V1_DELAY_TITLE}",
@@ -8199,19 +8215,19 @@ const Ps = {
8199
8215
  }, Ds = function(t) {
8200
8216
  return function() {
8201
8217
  const e = t.workspace, o = t.getField("VAR").getVariable();
8202
- Tt.renameVariable(e, o);
8218
+ mt.renameVariable(e, o);
8203
8219
  };
8204
8220
  }, Ms = function(t) {
8205
8221
  return function() {
8206
8222
  const n = t.getField("VAR").getVariable();
8207
- n && Tt.deleteVariable(n.getWorkspace(), n, t);
8223
+ n && mt.deleteVariable(n.getWorkspace(), n, t);
8208
8224
  };
8209
8225
  };
8210
- S.registerMixin(
8226
+ B.registerMixin(
8211
8227
  "context_menu_variable_v1",
8212
8228
  Ps
8213
8229
  );
8214
- f([
8230
+ h([
8215
8231
  {
8216
8232
  type: "variable_get_v1",
8217
8233
  message0: "%1",
@@ -8231,10 +8247,10 @@ f([
8231
8247
  s.forBlock.variable_get_v1 = function(t) {
8232
8248
  return [s.nameDB_.getName(
8233
8249
  t.getFieldValue("VAR"),
8234
- Z.NameType.VARIABLE
8250
+ z.NameType.VARIABLE
8235
8251
  ), c.ATOMIC];
8236
8252
  };
8237
- f([
8253
+ h([
8238
8254
  {
8239
8255
  type: "variable_set_v1",
8240
8256
  message0: "%{BKY_VARIABLE_V1_SET_TITLE}",
@@ -8260,77 +8276,77 @@ f([
8260
8276
  s.forBlock.variable_set_v1 = function(t) {
8261
8277
  const e = s.nameDB_.getName(
8262
8278
  t.getFieldValue("VAR"),
8263
- Z.NameType.VARIABLE
8279
+ z.NameType.VARIABLE
8264
8280
  ), n = s.valueToCode(t, "VALUE", c.ASSIGNMENT) || "0";
8265
8281
  return `${e} = ${n};
8266
8282
  `;
8267
8283
  };
8268
- const F = y.xml;
8269
- function V(t) {
8270
- const e = F.createElement("label");
8284
+ const Y = y.xml;
8285
+ function U(t) {
8286
+ const e = Y.createElement("label");
8271
8287
  return e.setAttribute("text", t), e;
8272
8288
  }
8273
8289
  function C(t, e) {
8274
- const n = F.createElement("block");
8290
+ const n = Y.createElement("block");
8275
8291
  if (n.setAttribute("type", t), e)
8276
8292
  for (const o of e)
8277
8293
  n.appendChild(o);
8278
8294
  return n;
8279
8295
  }
8280
- function At(t, e) {
8296
+ function It(t, e) {
8281
8297
  e === void 0 && (e = "");
8282
- const n = F.createElement("value");
8298
+ const n = Y.createElement("value");
8283
8299
  n.setAttribute("name", t);
8284
- const o = F.createElement("shadow");
8300
+ const o = Y.createElement("shadow");
8285
8301
  o.setAttribute("type", "text_v1");
8286
- const i = F.createElement("field");
8302
+ const i = Y.createElement("field");
8287
8303
  i.setAttribute("name", "TEXT");
8288
- const a = F.createTextNode(e);
8304
+ const a = Y.createTextNode(e);
8289
8305
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
8290
8306
  }
8291
8307
  function an(t, e) {
8292
8308
  e === void 0 && (e = 0);
8293
- const n = F.createElement("value");
8309
+ const n = Y.createElement("value");
8294
8310
  n.setAttribute("name", t);
8295
- const o = F.createElement("shadow");
8311
+ const o = Y.createElement("shadow");
8296
8312
  o.setAttribute("type", "math_number_v1");
8297
- const i = F.createElement("field");
8313
+ const i = Y.createElement("field");
8298
8314
  i.setAttribute("name", "NUM");
8299
- const a = F.createTextNode(String(e));
8315
+ const a = Y.createTextNode(String(e));
8300
8316
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
8301
8317
  }
8302
8318
  function Us(t, e) {
8303
8319
  e === void 0 && (e = !1);
8304
- const n = F.createElement("value");
8320
+ const n = Y.createElement("value");
8305
8321
  n.setAttribute("name", t);
8306
- const o = F.createElement("shadow");
8322
+ const o = Y.createElement("shadow");
8307
8323
  o.setAttribute("type", "logic_boolean_v1");
8308
- const i = F.createElement("field");
8324
+ const i = Y.createElement("field");
8309
8325
  i.setAttribute("name", "BOOL");
8310
- const a = F.createTextNode(e ? "TRUE" : "FALSE");
8326
+ const a = Y.createTextNode(e ? "TRUE" : "FALSE");
8311
8327
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
8312
8328
  }
8313
8329
  function Vs() {
8314
8330
  const t = [];
8315
- return t.push(V(p.LABEL_FUNC)), t.push(V(p.LABEL_FLOW)), t;
8331
+ return t.push(U(p.LABEL_FUNC)), t.push(U(p.LABEL_FLOW)), t;
8316
8332
  }
8317
- const Xt = { name: "APP_COMPUTE_CATEGORY", callback: Vs };
8333
+ const Jt = { name: "APP_COMPUTE_CATEGORY", callback: Vs };
8318
8334
  function xs() {
8319
8335
  return E.app.activeObject.type === "comp" && E.app.activeComp.meta.events.length > 0;
8320
8336
  }
8321
8337
  function Ys() {
8322
8338
  const t = [];
8323
- return t.push(V(p.LABEL_EVENT)), t.push(C("on_app_event_v1")), t.push(C("app_react_v1")), xs() && (t.push(V(p.LABEL_CUSTOM)), t.push(C("trigger_app_event_v1"))), t;
8339
+ return t.push(U(p.LABEL_EVENT)), t.push(C("on_app_event_v1")), t.push(C("watch_effect_v1")), xs() && (t.push(U(p.LABEL_CUSTOM)), t.push(C("trigger_app_event_v1"))), t;
8324
8340
  }
8325
- const Jt = { name: "APP_EVENT_CATEGORY", callback: Ys };
8341
+ const qt = { name: "APP_EVENT_CATEGORY", callback: Ys };
8326
8342
  function Fs() {
8327
8343
  return E.app.activeObject.type === "comp" && E.app.activeComp.meta.methods.length > 0;
8328
8344
  }
8329
8345
  function ws() {
8330
8346
  const t = [];
8331
- return t.push(V(p.LABEL_METHOD)), t.push(C("call_app_method_v1")), Fs() && (t.push(V(p.LABEL_CUSTOM)), t.push(C("app_method_impl_v1")), t.push(C("set_app_method_output_v1")), t.push(C("procedure_return_v1"))), t;
8347
+ return t.push(U(p.LABEL_METHOD)), t.push(C("call_app_method_v1")), Fs() && (t.push(U(p.LABEL_CUSTOM)), t.push(C("app_method_impl_v1")), t.push(C("set_app_method_output_v1")), t.push(C("procedure_return_v1"))), t;
8332
8348
  }
8333
- const qt = { name: "APP_METHOD_CATEGORY", callback: ws };
8349
+ const Qt = { name: "APP_METHOD_CATEGORY", callback: ws };
8334
8350
  function Ks() {
8335
8351
  return E.app.activeObject.type === "page" && E.app.activePage.meta.arguments.length > 0;
8336
8352
  }
@@ -8342,41 +8358,41 @@ function $s() {
8342
8358
  }
8343
8359
  function Hs() {
8344
8360
  const t = [];
8345
- return t.push(V(p.LABEL_MISC)), t.push(C("app_env_is_v1")), Ks() && t.push(C("get_page_argument_v1")), $s() && t.push(C("navigate_to_v1")), t.push(V(p.LABEL_MESSAGE)), t.push(C("app_debug_trace_v1", [At("OBJECT")])), t.push(C("popup_message_v1", [At("TEXT")])), t.push(C("open_confirm_dlg_v1")), t.push(C("open_prompt_dlg_v1")), t;
8361
+ return t.push(U(p.LABEL_MISC)), t.push(C("app_env_is_v1")), Ks() && t.push(C("get_page_argument_v1")), $s() && t.push(C("navigate_to_v1")), t.push(U(p.LABEL_MESSAGE)), t.push(C("app_debug_trace_v1", [It("OBJECT")])), t.push(C("popup_message_v1", [It("TEXT")])), t.push(C("open_confirm_dlg_v1")), t.push(C("open_prompt_dlg_v1")), t;
8346
8362
  }
8347
- const Qt = { name: "APP_MISC_CATEGORY", callback: Hs };
8363
+ const zt = { name: "APP_MISC_CATEGORY", callback: Hs };
8348
8364
  function Gs() {
8349
8365
  const t = [];
8350
- return t.push(V(p.LABEL_GET)), t.push(C("get_app_prop_v1")), t.push(V(p.LABEL_SET)), t.push(C("set_app_prop_v1")), t;
8366
+ return t.push(U(p.LABEL_GET)), t.push(C("get_app_prop_v1")), t.push(U(p.LABEL_SET)), t.push(C("set_app_prop_v1")), t;
8351
8367
  }
8352
- const zt = { name: "APP_PROPERTY_CATEGORY", callback: Gs };
8368
+ const Zt = { name: "APP_PROPERTY_CATEGORY", callback: Gs };
8353
8369
  function Ws() {
8354
8370
  const t = [];
8355
- return t.push(V(p.LABEL_RESOURCE)), t.push(C("upload_resource_v1")), t;
8371
+ return t.push(U(p.LABEL_RESOURCE)), t.push(C("upload_resource_v1")), t;
8356
8372
  }
8357
- const Zt = { name: "APP_RESOURCE_CATEGORY", callback: Ws };
8373
+ const te = { name: "APP_RESOURCE_CATEGORY", callback: Ws };
8358
8374
  function js() {
8359
8375
  const { activeObject: t, activePage: e, activeComp: n } = E.app;
8360
8376
  return t.type === "page" ? e.meta.states.length > 0 : t.type === "comp" ? n.meta.states.length > 0 : !1;
8361
8377
  }
8362
8378
  function Xs() {
8363
8379
  const t = [];
8364
- return js() && (t.push(V(p.LABEL_STATE)), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), t;
8380
+ return js() && (t.push(U(p.LABEL_STATE)), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), t;
8365
8381
  }
8366
- const te = { name: "APP_STATE_CATEGORY", callback: Xs }, Ct = y.xml;
8382
+ const ee = { name: "APP_STATE_CATEGORY", callback: Xs }, vt = y.xml;
8367
8383
  function Js() {
8368
8384
  const t = [];
8369
8385
  {
8370
- const e = Ct.createElement("label");
8386
+ const e = vt.createElement("label");
8371
8387
  e.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), t.push(e);
8372
8388
  }
8373
8389
  {
8374
- const e = Ct.createElement("block");
8390
+ const e = vt.createElement("block");
8375
8391
  e.setAttribute("type", "procedure_def_v1");
8376
8392
  {
8377
- const n = Ct.createElement("field");
8393
+ const n = vt.createElement("field");
8378
8394
  n.setAttribute("name", "NAME");
8379
- const o = Ct.createTextNode(
8395
+ const o = vt.createTextNode(
8380
8396
  p.PROCEDURE_DEFAULT_NAME
8381
8397
  );
8382
8398
  n.appendChild(o), e.appendChild(n);
@@ -8384,19 +8400,19 @@ function Js() {
8384
8400
  t.push(e);
8385
8401
  }
8386
8402
  {
8387
- const e = Ct.createElement("block");
8403
+ const e = vt.createElement("block");
8388
8404
  e.setAttribute("type", "procedure_return_v1"), t.push(e);
8389
8405
  }
8390
8406
  return t;
8391
8407
  }
8392
- const ot = {
8408
+ const it = {
8393
8409
  name: "PROCEDURE_CATEGORY",
8394
8410
  callback: Js
8395
- }, Vt = y.xml;
8411
+ }, xt = y.xml;
8396
8412
  function qs() {
8397
- const t = Bt(), e = [];
8413
+ const t = bt(), e = [];
8398
8414
  {
8399
- const o = Vt.createElement("label");
8415
+ const o = xt.createElement("label");
8400
8416
  o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), e.push(o);
8401
8417
  }
8402
8418
  {
@@ -8404,7 +8420,7 @@ function qs() {
8404
8420
  o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), t.registerButtonCallback(
8405
8421
  "CREATE_VARIABLE",
8406
8422
  function(i) {
8407
- Tt.createVariableButtonHandler(
8423
+ mt.createVariableButtonHandler(
8408
8424
  i.getTargetWorkspace()
8409
8425
  );
8410
8426
  }
@@ -8413,39 +8429,39 @@ function qs() {
8413
8429
  const n = t.getVariablesOfType("");
8414
8430
  if (n.length <= 0)
8415
8431
  return e;
8416
- n.sort(Tt.compareByName);
8432
+ n.sort(mt.compareByName);
8417
8433
  {
8418
- const o = Vt.createElement("label");
8434
+ const o = xt.createElement("label");
8419
8435
  o.setAttribute("text", p.LABEL_CREATED), e.push(o);
8420
8436
  }
8421
8437
  return n.forEach((o) => {
8422
8438
  {
8423
- const i = Vt.createElement("block");
8424
- i.setAttribute("type", "variable_get_v1"), i.appendChild(Tt.generateVariableFieldDom(o)), e.push(i);
8439
+ const i = xt.createElement("block");
8440
+ i.setAttribute("type", "variable_get_v1"), i.appendChild(mt.generateVariableFieldDom(o)), e.push(i);
8425
8441
  }
8426
8442
  {
8427
- const i = Vt.createElement("block");
8428
- i.setAttribute("type", "variable_set_v1"), i.appendChild(Tt.generateVariableFieldDom(o)), e.push(i);
8443
+ const i = xt.createElement("block");
8444
+ i.setAttribute("type", "variable_set_v1"), i.appendChild(mt.generateVariableFieldDom(o)), e.push(i);
8429
8445
  }
8430
8446
  }), e;
8431
8447
  }
8432
- const it = {
8448
+ const st = {
8433
8449
  name: "VARIABLE_CATEGORY",
8434
8450
  callback: qs
8435
8451
  };
8436
8452
  function Qs() {
8437
8453
  const t = [];
8438
8454
  if (j().length > 0)
8439
- t.push(V(p.LABEL_OPERATION)), t.push(C("add_data_v1")), t.push(C("delete_data_v1")), t.push(C("update_data_v1")), t.push(C("query_data_v1")), t.push(C("transaction_v1")), t.push(
8440
- C("interrupt_transaction_v1", [At("VALUE")])
8441
- ), t.push(V(p.LABEL_CONDITION)), t.push(C("cond_logic_v1")), t.push(C("cond_atomic_v1", [At("VALUE")])), t.push(V(p.LABEL_QUERY_EXTRA)), t.push(
8455
+ t.push(U(p.LABEL_OPERATION)), t.push(C("add_data_v1")), t.push(C("delete_data_v1")), t.push(C("update_data_v1")), t.push(C("query_data_v1")), t.push(C("transaction_v1")), t.push(
8456
+ C("interrupt_transaction_v1", [It("VALUE")])
8457
+ ), t.push(U(p.LABEL_CONDITION)), t.push(C("cond_logic_v1")), t.push(C("cond_atomic_v1", [It("VALUE")])), t.push(U(p.LABEL_QUERY_EXTRA)), t.push(
8442
8458
  C("query_extra_limit_v1", [
8443
8459
  an("OFFSET", 0),
8444
8460
  an("LIMIT", 1)
8445
8461
  ])
8446
8462
  ), t.push(
8447
8463
  C("query_extra_sortby_v1", [
8448
- At("COLUMN"),
8464
+ It("COLUMN"),
8449
8465
  Us("DESC")
8450
8466
  ])
8451
8467
  );
@@ -8455,30 +8471,30 @@ function Qs() {
8455
8471
  }
8456
8472
  return t;
8457
8473
  }
8458
- const ee = { name: "COMPUTE_DATA_CATEGORY", callback: Qs };
8474
+ const ne = { name: "COMPUTE_DATA_CATEGORY", callback: Qs };
8459
8475
  function zs() {
8460
- return Mt("flow").length > 0;
8476
+ return Ut("flow").length > 0;
8461
8477
  }
8462
8478
  function Zs() {
8463
8479
  const t = [];
8464
8480
  return E.compute.activeObject.type === "flow" && t.push(C("on_flow_state_event_v1")), zs() && console.assert(!0), t;
8465
8481
  }
8466
- const ne = { name: "COMPUTE_FLOW_CATEGORY", callback: Zs };
8482
+ const oe = { name: "COMPUTE_FLOW_CATEGORY", callback: Zs };
8467
8483
  function ta() {
8468
- return Mt("func").length > 0;
8484
+ return Ut("func").length > 0;
8469
8485
  }
8470
8486
  function ea() {
8471
8487
  const t = [];
8472
8488
  return E.compute.activeObject.type === "func" && (t.push(C("func_entry_v1")), E.compute.activeFunc.outputs.length > 0 && t.push(C("set_func_output_v1")), t.push(C("procedure_return_v1"))), ta() && t.push(C("call_func_internal_v1")), t;
8473
8489
  }
8474
- const oe = { name: "COMPUTE_FUNC_CATEGORY", callback: ea };
8490
+ const ie = { name: "COMPUTE_FUNC_CATEGORY", callback: ea };
8475
8491
  function na() {
8476
8492
  const t = [];
8477
8493
  return t.push(
8478
- C("compute_debug_trace_v1", [At("OBJECT")])
8494
+ C("compute_debug_trace_v1", [It("OBJECT")])
8479
8495
  ), t;
8480
8496
  }
8481
- const ie = { name: "COMPUTE_MISC_CATEGORY", callback: na };
8497
+ const se = { name: "COMPUTE_MISC_CATEGORY", callback: na };
8482
8498
  hn.setConfirm(async (t, e) => {
8483
8499
  const n = await Oo({
8484
8500
  title: "",
@@ -8500,11 +8516,11 @@ const Pn = (t, e, n) => {
8500
8516
  });
8501
8517
  };
8502
8518
  async function cn(t) {
8503
- const e = await Pn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.ej4s6ljb.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.n67weiog.js") }), `./msg/${t}.ts`, 3);
8519
+ const e = await Pn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.kxesdd6m.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.ja44gwyv.js") }), `./msg/${t}.ts`, 3);
8504
8520
  so(e.default);
8505
8521
  }
8506
8522
  function Ke(t) {
8507
- const e = Bt();
8523
+ const e = bt();
8508
8524
  if (!e)
8509
8525
  return;
8510
8526
  const n = e.getBlockById(t);
@@ -8517,7 +8533,7 @@ function Ke(t) {
8517
8533
  e.scroll(-a, -u);
8518
8534
  }
8519
8535
  function Dn() {
8520
- const t = Bt();
8536
+ const t = bt();
8521
8537
  if (!t)
8522
8538
  return;
8523
8539
  const e = t.getTopBlocks(!0)?.[0];
@@ -8542,7 +8558,7 @@ const ia = new ro.CrossTabCopyPaste();
8542
8558
  ia.init({ contextMenu: !0, shortcut: !0 });
8543
8559
  const sa = new oa();
8544
8560
  sa.init();
8545
- ae.Classic.blockStyles = {
8561
+ ce.Classic.blockStyles = {
8546
8562
  color_blocks: {
8547
8563
  colourPrimary: "#a5745b",
8548
8564
  colourSecondary: "#ede3de",
@@ -8628,7 +8644,7 @@ ae.Classic.blockStyles = {
8628
8644
  hat: ""
8629
8645
  }
8630
8646
  };
8631
- ae.Classic.categoryStyles = {
8647
+ ce.Classic.categoryStyles = {
8632
8648
  color_category: {
8633
8649
  colour: "#a5745b"
8634
8650
  },
@@ -8695,7 +8711,7 @@ ae.Classic.categoryStyles = {
8695
8711
  };
8696
8712
  const aa = fn.defineTheme("light", {
8697
8713
  name: "light",
8698
- base: ae.Classic,
8714
+ base: ce.Classic,
8699
8715
  componentStyles: {
8700
8716
  workspaceBackgroundColour: "#ffffff",
8701
8717
  toolboxBackgroundColour: "#eeeeee",
@@ -8711,7 +8727,7 @@ const aa = fn.defineTheme("light", {
8711
8727
  }
8712
8728
  }), ca = fn.defineTheme("dark", {
8713
8729
  name: "dark",
8714
- base: ae.Classic,
8730
+ base: ce.Classic,
8715
8731
  componentStyles: {
8716
8732
  workspaceBackgroundColour: "#1e1e1e",
8717
8733
  toolboxBackgroundColour: "#272727",
@@ -8727,7 +8743,7 @@ const aa = fn.defineTheme("light", {
8727
8743
  }
8728
8744
  });
8729
8745
  function ua(t) {
8730
- const e = Bt();
8746
+ const e = bt();
8731
8747
  switch (t) {
8732
8748
  case "light":
8733
8749
  e.setTheme(aa);
@@ -8737,7 +8753,7 @@ function ua(t) {
8737
8753
  break;
8738
8754
  }
8739
8755
  }
8740
- const _e = {
8756
+ const pe = {
8741
8757
  kind: "category",
8742
8758
  name: "%{BKY_CATEGORY_COLOR}",
8743
8759
  categorystyle: "color_category",
@@ -8811,7 +8827,7 @@ const _e = {
8811
8827
  }
8812
8828
  }
8813
8829
  ]
8814
- }, pe = {
8830
+ }, de = {
8815
8831
  kind: "category",
8816
8832
  name: "%{BKY_CATEGORY_LIST}",
8817
8833
  categorystyle: "list_category",
@@ -8926,7 +8942,7 @@ const _e = {
8926
8942
  type: "list_reverse_v1"
8927
8943
  }
8928
8944
  ]
8929
- }, de = {
8945
+ }, he = {
8930
8946
  kind: "category",
8931
8947
  name: "%{BKY_CATEGORY_LOGIC}",
8932
8948
  categorystyle: "logic_category",
@@ -8968,7 +8984,7 @@ const _e = {
8968
8984
  type: "logic_ternary_v1"
8969
8985
  }
8970
8986
  ]
8971
- }, he = {
8987
+ }, fe = {
8972
8988
  kind: "category",
8973
8989
  name: "%{BKY_CATEGORY_LOOP}",
8974
8990
  categorystyle: "loop_category",
@@ -9030,7 +9046,7 @@ const _e = {
9030
9046
  type: "flow_control_v1"
9031
9047
  }
9032
9048
  ]
9033
- }, fe = {
9049
+ }, Te = {
9034
9050
  kind: "category",
9035
9051
  name: "%{BKY_CATEGORY_MATH}",
9036
9052
  categorystyle: "math_category",
@@ -9185,7 +9201,7 @@ const _e = {
9185
9201
  type: "math_on_list_v1"
9186
9202
  }
9187
9203
  ]
9188
- }, Te = {
9204
+ }, me = {
9189
9205
  kind: "category",
9190
9206
  name: "%{BKY_CATEGORY_OBJECT}",
9191
9207
  categorystyle: "object_category",
@@ -9253,7 +9269,7 @@ const _e = {
9253
9269
  }
9254
9270
  }
9255
9271
  ]
9256
- }, me = {
9272
+ }, Ee = {
9257
9273
  kind: "category",
9258
9274
  name: "%{BKY_CATEGORY_TEXT}",
9259
9275
  categorystyle: "text_category",
@@ -9447,63 +9463,63 @@ const _e = {
9447
9463
  kind: "category",
9448
9464
  name: "%{BKY_CATEGORY_EVENT}",
9449
9465
  categorystyle: "event_category",
9450
- custom: Jt.name
9466
+ custom: qt.name
9451
9467
  },
9452
9468
  {
9453
9469
  kind: "category",
9454
9470
  name: "%{BKY_CATEGORY_METHOD}",
9455
9471
  categorystyle: "method_category",
9456
- custom: qt.name
9472
+ custom: Qt.name
9457
9473
  },
9458
9474
  {
9459
9475
  kind: "category",
9460
9476
  name: "%{BKY_CATEGORY_PROPERTY}",
9461
9477
  categorystyle: "property_category",
9462
- custom: zt.name
9478
+ custom: Zt.name
9463
9479
  },
9464
9480
  {
9465
9481
  kind: "category",
9466
9482
  name: "%{BKY_CATEGORY_STATE}",
9467
9483
  categorystyle: "state_category",
9468
- custom: te.name
9484
+ custom: ee.name
9469
9485
  },
9470
9486
  {
9471
9487
  kind: "category",
9472
9488
  name: "%{BKY_CATEGORY_MISC}",
9473
9489
  categorystyle: "misc_category",
9474
- custom: Qt.name
9490
+ custom: zt.name
9475
9491
  },
9492
+ fe,
9476
9493
  he,
9494
+ Te,
9495
+ Ee,
9477
9496
  de,
9478
- fe,
9479
9497
  me,
9480
9498
  pe,
9481
- Te,
9482
- _e,
9483
9499
  Un,
9484
9500
  {
9485
9501
  kind: "category",
9486
9502
  name: "%{BKY_CATEGORY_VARIABLE}",
9487
9503
  categorystyle: "variable_category",
9488
- custom: it.name
9504
+ custom: st.name
9489
9505
  },
9490
9506
  {
9491
9507
  kind: "category",
9492
9508
  name: "%{BKY_CATEGORY_PROCEDURE}",
9493
9509
  categorystyle: "procedure_category",
9494
- custom: ot.name
9510
+ custom: it.name
9495
9511
  },
9496
9512
  {
9497
9513
  kind: "category",
9498
9514
  name: "%{BKY_CATEGORY_RESOURCE}",
9499
9515
  categorystyle: "resource_category",
9500
- custom: Zt.name
9516
+ custom: te.name
9501
9517
  },
9502
9518
  {
9503
9519
  kind: "category",
9504
9520
  name: "%{BKY_CATEGORY_COMPUTE}",
9505
9521
  categorystyle: "compute_category",
9506
- custom: Xt.name
9522
+ custom: Jt.name
9507
9523
  }
9508
9524
  ]
9509
9525
  }, ra = {
@@ -9513,44 +9529,44 @@ const _e = {
9513
9529
  kind: "category",
9514
9530
  name: "%{BKY_CATEGORY_FUNC}",
9515
9531
  categorystyle: "func_category",
9516
- custom: oe.name
9532
+ custom: ie.name
9517
9533
  },
9518
9534
  {
9519
9535
  kind: "category",
9520
9536
  name: "%{BKY_CATEGORY_FLOW}",
9521
9537
  categorystyle: "flow_category",
9522
- custom: ne.name
9538
+ custom: oe.name
9523
9539
  },
9524
9540
  {
9525
9541
  kind: "category",
9526
9542
  name: "%{BKY_CATEGORY_DATA}",
9527
9543
  categorystyle: "data_category",
9528
- custom: ee.name
9544
+ custom: ne.name
9529
9545
  },
9530
9546
  {
9531
9547
  kind: "category",
9532
9548
  name: "%{BKY_CATEGORY_MISC}",
9533
9549
  categorystyle: "misc_category",
9534
- custom: ie.name
9550
+ custom: se.name
9535
9551
  },
9552
+ fe,
9536
9553
  he,
9554
+ Te,
9555
+ Ee,
9537
9556
  de,
9538
- fe,
9539
9557
  me,
9540
9558
  pe,
9541
- Te,
9542
- _e,
9543
9559
  {
9544
9560
  kind: "category",
9545
9561
  name: "%{BKY_CATEGORY_VARIABLE}",
9546
9562
  categorystyle: "variable_category",
9547
- custom: it.name
9563
+ custom: st.name
9548
9564
  },
9549
9565
  {
9550
9566
  kind: "category",
9551
9567
  name: "%{BKY_CATEGORY_PROCEDURE}",
9552
9568
  categorystyle: "procedure_category",
9553
- custom: ot.name
9569
+ custom: it.name
9554
9570
  }
9555
9571
  ]
9556
9572
  }, _a = {
@@ -9560,44 +9576,44 @@ const _e = {
9560
9576
  kind: "category",
9561
9577
  name: "%{BKY_CATEGORY_FUNC}",
9562
9578
  categorystyle: "func_category",
9563
- custom: oe.name
9579
+ custom: ie.name
9564
9580
  },
9565
9581
  {
9566
9582
  kind: "category",
9567
9583
  name: "%{BKY_CATEGORY_FLOW}",
9568
9584
  categorystyle: "flow_category",
9569
- custom: ne.name
9585
+ custom: oe.name
9570
9586
  },
9571
9587
  {
9572
9588
  kind: "category",
9573
9589
  name: "%{BKY_CATEGORY_DATA}",
9574
9590
  categorystyle: "data_category",
9575
- custom: ee.name
9591
+ custom: ne.name
9576
9592
  },
9577
9593
  {
9578
9594
  kind: "category",
9579
9595
  name: "%{BKY_CATEGORY_MISC}",
9580
9596
  categorystyle: "misc_category",
9581
- custom: ie.name
9597
+ custom: se.name
9582
9598
  },
9599
+ fe,
9583
9600
  he,
9601
+ Te,
9602
+ Ee,
9584
9603
  de,
9585
- fe,
9586
9604
  me,
9587
9605
  pe,
9588
- Te,
9589
- _e,
9590
9606
  {
9591
9607
  kind: "category",
9592
9608
  name: "%{BKY_CATEGORY_VARIABLE}",
9593
9609
  categorystyle: "variable_category",
9594
- custom: it.name
9610
+ custom: st.name
9595
9611
  },
9596
9612
  {
9597
9613
  kind: "category",
9598
9614
  name: "%{BKY_CATEGORY_PROCEDURE}",
9599
9615
  categorystyle: "procedure_category",
9600
- custom: ot.name
9616
+ custom: it.name
9601
9617
  }
9602
9618
  ]
9603
9619
  }, pa = {
@@ -9638,63 +9654,63 @@ const _e = {
9638
9654
  kind: "category",
9639
9655
  name: "%{BKY_CATEGORY_EVENT}",
9640
9656
  categorystyle: "event_category",
9641
- custom: Jt.name
9657
+ custom: qt.name
9642
9658
  },
9643
9659
  {
9644
9660
  kind: "category",
9645
9661
  name: "%{BKY_CATEGORY_METHOD}",
9646
9662
  categorystyle: "method_category",
9647
- custom: qt.name
9663
+ custom: Qt.name
9648
9664
  },
9649
9665
  {
9650
9666
  kind: "category",
9651
9667
  name: "%{BKY_CATEGORY_PROPERTY}",
9652
9668
  categorystyle: "property_category",
9653
- custom: zt.name
9669
+ custom: Zt.name
9654
9670
  },
9655
9671
  {
9656
9672
  kind: "category",
9657
9673
  name: "%{BKY_CATEGORY_STATE}",
9658
9674
  categorystyle: "state_category",
9659
- custom: te.name
9675
+ custom: ee.name
9660
9676
  },
9661
9677
  {
9662
9678
  kind: "category",
9663
9679
  name: "%{BKY_CATEGORY_MISC}",
9664
9680
  categorystyle: "misc_category",
9665
- custom: Qt.name
9681
+ custom: zt.name
9666
9682
  },
9683
+ fe,
9667
9684
  he,
9685
+ Te,
9686
+ Ee,
9668
9687
  de,
9669
- fe,
9670
9688
  me,
9671
9689
  pe,
9672
- Te,
9673
- _e,
9674
9690
  Un,
9675
9691
  {
9676
9692
  kind: "category",
9677
9693
  name: "%{BKY_CATEGORY_VARIABLE}",
9678
9694
  categorystyle: "variable_category",
9679
- custom: it.name
9695
+ custom: st.name
9680
9696
  },
9681
9697
  {
9682
9698
  kind: "category",
9683
9699
  name: "%{BKY_CATEGORY_PROCEDURE}",
9684
9700
  categorystyle: "procedure_category",
9685
- custom: ot.name
9701
+ custom: it.name
9686
9702
  },
9687
9703
  {
9688
9704
  kind: "category",
9689
9705
  name: "%{BKY_CATEGORY_RESOURCE}",
9690
9706
  categorystyle: "resource_category",
9691
- custom: Zt.name
9707
+ custom: te.name
9692
9708
  },
9693
9709
  {
9694
9710
  kind: "category",
9695
9711
  name: "%{BKY_CATEGORY_COMPUTE}",
9696
9712
  categorystyle: "compute_category",
9697
- custom: Xt.name
9713
+ custom: Jt.name
9698
9714
  }
9699
9715
  ]
9700
9716
  }, Vn = Symbol();
@@ -9704,13 +9720,13 @@ function ha(t) {
9704
9720
  function $e() {
9705
9721
  return Jn(Vn);
9706
9722
  }
9707
- const fa = /* @__PURE__ */ et({
9723
+ const fa = /* @__PURE__ */ ot({
9708
9724
  __name: "index",
9709
9725
  props: {
9710
9726
  lock: { type: Boolean }
9711
9727
  },
9712
9728
  setup(t, { expose: e }) {
9713
- const { t: n } = Pt(), o = t, i = $e(), a = () => {
9729
+ const { t: n } = Dt(), o = t, i = $e(), a = () => {
9714
9730
  if (!i.workspace) {
9715
9731
  console.assert(!1);
9716
9732
  return;
@@ -9725,11 +9741,11 @@ const fa = /* @__PURE__ */ et({
9725
9741
  };
9726
9742
  return e({ cleanWorkspace: a }), (l, r) => {
9727
9743
  const _ = D("v-btn"), d = D("v-tooltip");
9728
- return B(), Q(d, {
9744
+ return b(), q(d, {
9729
9745
  text: P(n)("x-block-lib.tip.hotkeyCtrlQ")
9730
9746
  }, {
9731
- activator: z(({ props: m }) => [
9732
- L(_, xe(m, {
9747
+ activator: Q(({ props: m }) => [
9748
+ S(_, xe(m, {
9733
9749
  density: "comfortable",
9734
9750
  icon: "mdi-broom",
9735
9751
  variant: "outlined",
@@ -9740,7 +9756,7 @@ const fa = /* @__PURE__ */ et({
9740
9756
  }, 8, ["text"]);
9741
9757
  };
9742
9758
  }
9743
- }), Ta = /* @__PURE__ */ et({
9759
+ }), Ta = /* @__PURE__ */ ot({
9744
9760
  __name: "index",
9745
9761
  props: {
9746
9762
  modelValue: { type: Boolean, required: !0 },
@@ -9748,14 +9764,14 @@ const fa = /* @__PURE__ */ et({
9748
9764
  },
9749
9765
  emits: ["update:modelValue"],
9750
9766
  setup(t) {
9751
- const { t: e } = Pt(), n = Nt(t, "modelValue");
9767
+ const { t: e } = Dt(), n = Lt(t, "modelValue");
9752
9768
  return (o, i) => {
9753
9769
  const a = D("v-btn"), u = D("v-tooltip");
9754
- return B(), Q(u, {
9770
+ return b(), q(u, {
9755
9771
  text: P(e)("x-block-lib.tip.hotkeyCtrlW")
9756
9772
  }, {
9757
- activator: z(({ props: l }) => [
9758
- L(a, xe(l, {
9773
+ activator: Q(({ props: l }) => [
9774
+ S(a, xe(l, {
9759
9775
  density: "comfortable",
9760
9776
  icon: n.value ? "mdi-lock" : "mdi-lock-open",
9761
9777
  variant: "outlined",
@@ -9766,7 +9782,7 @@ const fa = /* @__PURE__ */ et({
9766
9782
  }, 8, ["text"]);
9767
9783
  };
9768
9784
  }
9769
- }), ma = { class: "text-subtitle-1 ml-6" }, Ea = /* @__PURE__ */ et({
9785
+ }), ma = { class: "text-subtitle-1 ml-6" }, Ea = /* @__PURE__ */ ot({
9770
9786
  __name: "item",
9771
9787
  props: {
9772
9788
  id: {},
@@ -9775,13 +9791,13 @@ const fa = /* @__PURE__ */ et({
9775
9791
  },
9776
9792
  emits: ["x-click"],
9777
9793
  setup(t, { emit: e }) {
9778
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = bt(), a = t, u = e, l = mt(!1), r = Y(() => ({
9794
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Rt(), a = t, u = e, l = Et(!1), r = x(() => ({
9779
9795
  position: "relative",
9780
9796
  background: l.value ? i.value : o.value,
9781
9797
  height: "48px",
9782
9798
  marginBottom: "1px",
9783
9799
  userSelect: "none"
9784
- })), _ = Y(() => ({
9800
+ })), _ = x(() => ({
9785
9801
  display: a.select ? "block" : "none",
9786
9802
  position: "absolute",
9787
9803
  top: "0px",
@@ -9792,34 +9808,34 @@ const fa = /* @__PURE__ */ et({
9792
9808
  pointerEvents: "none"
9793
9809
  }));
9794
9810
  return (d, m) => {
9795
- const h = D("v-spacer"), O = D("v-icon"), g = qn("ripple");
9796
- return Qn((B(), J("div", {
9811
+ const f = D("v-spacer"), I = D("v-icon"), O = qn("ripple");
9812
+ return Qn((b(), X("div", {
9797
9813
  class: "d-flex align-center cursor-pointer",
9798
9814
  style: H(r.value),
9799
- onClick: m[1] || (m[1] = (R) => u("x-click", a.id)),
9800
- onMouseout: m[2] || (m[2] = (R) => l.value = !1),
9801
- onMouseover: m[3] || (m[3] = (R) => l.value = !0)
9815
+ onClick: m[1] || (m[1] = (N) => u("x-click", a.id)),
9816
+ onMouseout: m[2] || (m[2] = (N) => l.value = !1),
9817
+ onMouseover: m[3] || (m[3] = (N) => l.value = !0)
9802
9818
  }, [
9803
- G("span", ma, se(a.title), 1),
9804
- L(h),
9805
- L(O, {
9819
+ G("span", ma, ae(a.title), 1),
9820
+ S(f),
9821
+ S(I, {
9806
9822
  class: "x-handle cursor-move mr-3",
9807
9823
  icon: "mdi-drag-horizontal-variant",
9808
- onMousedown: m[0] || (m[0] = vt(() => {
9824
+ onMousedown: m[0] || (m[0] = yt(() => {
9809
9825
  }, ["stop"]))
9810
9826
  }),
9811
9827
  G("div", {
9812
9828
  style: H(_.value)
9813
9829
  }, null, 4)
9814
9830
  ], 36)), [
9815
- [g]
9831
+ [O]
9816
9832
  ]);
9817
9833
  };
9818
9834
  }
9819
9835
  }), ga = {
9820
9836
  key: 1,
9821
9837
  class: "text-caption text-grey"
9822
- }, Aa = /* @__PURE__ */ et({
9838
+ }, Aa = /* @__PURE__ */ ot({
9823
9839
  __name: "index",
9824
9840
  props: /* @__PURE__ */ Le({
9825
9841
  lock: { type: Boolean }
@@ -9829,26 +9845,27 @@ const fa = /* @__PURE__ */ et({
9829
9845
  }),
9830
9846
  emits: ["update:modelValue"],
9831
9847
  setup(t, { expose: e }) {
9832
- const { t: n } = Pt(), o = Nt(t, "modelValue"), i = $e(), a = mt([]);
9848
+ const { t: n } = Dt(), o = Lt(t, "modelValue"), i = $e(), a = Et([]);
9833
9849
  e({ update: () => {
9850
+ const { i18n: f } = Z;
9834
9851
  if (!i.workspace) {
9835
9852
  console.assert(!1);
9836
9853
  return;
9837
9854
  }
9838
- const h = [];
9839
- i.workspace.getTopBlocks(!0).forEach((g) => {
9840
- const R = g.id === po()?.id;
9841
- let U = "<n/a>";
9842
- if (g.type.startsWith("on_node_event_v")) {
9843
- const X = g, _t = tt[X.node.key];
9844
- _t && (U = n(_t.name), X.node.alias && (U += " / " + X.node.alias), U += " - " + p[X.event.name]);
9845
- } else g.type.startsWith("func_entry_v") ? U = n("x-block-lib.funcEntry") : g.type.startsWith("procedure_def_v") ? (console.log(g), U = n("x-block-lib.procedure") + " - " + g.getFieldValue("NAME")) : U = n("x-block-lib.temporaryBlock");
9846
- h.push({
9847
- id: g.id,
9848
- name: U,
9849
- select: R
9855
+ const I = [];
9856
+ i.workspace.getTopBlocks(!0).forEach((N) => {
9857
+ const et = N.id === po()?.id;
9858
+ let K = "<n/a>";
9859
+ if (N.type.startsWith("on_app_event_v")) {
9860
+ const nt = N, Tt = tt[nt.node.key];
9861
+ Tt && (K = n(Tt.name), nt.node.alias && (K += " / " + nt.node.alias), K += " - " + +f.global.t(nt.event.name));
9862
+ } else N.type.startsWith("func_entry_v") ? K = n("x-block-lib.funcEntry") : N.type.startsWith("procedure_def_v") ? (console.log(N), K = n("x-block-lib.procedure") + " - " + N.getFieldValue("NAME")) : K = n("x-block-lib.temporaryBlock");
9863
+ I.push({
9864
+ id: N.id,
9865
+ name: K,
9866
+ select: et
9850
9867
  });
9851
- }), a.value = h;
9868
+ }), a.value = I;
9852
9869
  } });
9853
9870
  let l = [];
9854
9871
  const r = () => {
@@ -9856,48 +9873,48 @@ const fa = /* @__PURE__ */ et({
9856
9873
  mn(n("x-block-lib.msg.cannotOperateInLockedState"));
9857
9874
  return;
9858
9875
  }
9859
- const h = [];
9860
- a.value.forEach(({ id: O }) => {
9861
- h.push(O);
9862
- }), l = h;
9863
- }, _ = () => !t.lock, d = (h) => {
9876
+ const f = [];
9877
+ a.value.forEach(({ id: I }) => {
9878
+ f.push(I);
9879
+ }), l = f;
9880
+ }, _ = () => !t.lock, d = (f) => {
9864
9881
  if (!i.workspace) {
9865
9882
  console.assert(!1);
9866
9883
  return;
9867
9884
  }
9868
- if (h.oldIndex === void 0 || h.newIndex === void 0) {
9885
+ if (f.oldIndex === void 0 || f.newIndex === void 0) {
9869
9886
  console.assert(!1);
9870
9887
  return;
9871
9888
  }
9872
- if (h.oldIndex === h.newIndex)
9889
+ if (f.oldIndex === f.newIndex)
9873
9890
  return;
9874
- const O = l[h.oldIndex], g = i.workspace.getBlockById(
9875
- O
9891
+ const I = l[f.oldIndex], O = i.workspace.getBlockById(
9892
+ I
9876
9893
  );
9877
- if (!g) {
9894
+ if (!O) {
9878
9895
  console.assert(!1);
9879
9896
  return;
9880
9897
  }
9881
- let R = "";
9882
- h.newIndex > h.oldIndex ? R = l[h.newIndex] : h.newIndex > 0 && (R = l[h.newIndex - 1]);
9883
- let U = -10;
9884
- R !== "" && (U = i.workspace.getBlockById(
9885
- R
9898
+ let N = "";
9899
+ f.newIndex > f.oldIndex ? N = l[f.newIndex] : f.newIndex > 0 && (N = l[f.newIndex - 1]);
9900
+ let et = -10;
9901
+ N !== "" && (et = i.workspace.getBlockById(
9902
+ N
9886
9903
  ).getRelativeToSurfaceXY().y + 10);
9887
- const X = g.getRelativeToSurfaceXY();
9888
- g.moveTo(new y.Coordinate(X.x, U)), i.workspace.cleanUp(), Dn();
9889
- }, m = async (h) => {
9904
+ const K = O.getRelativeToSurfaceXY();
9905
+ O.moveTo(new y.Coordinate(K.x, et)), i.workspace.cleanUp(), Dn();
9906
+ }, m = async (f) => {
9890
9907
  if (!i.workspace) {
9891
9908
  console.assert(!1);
9892
9909
  return;
9893
9910
  }
9894
- const O = i.workspace.getBlockById(h);
9895
- Tn.setSelected(O), Ke(h), o.value = !1;
9911
+ const I = i.workspace.getBlockById(f);
9912
+ Tn.setSelected(I), Ke(f), o.value = !1;
9896
9913
  };
9897
- return (h, O) => a.value.length > 0 ? (B(), Q(P(_o), {
9914
+ return (f, I) => a.value.length > 0 ? (b(), q(P(_o), {
9898
9915
  key: 0,
9899
9916
  modelValue: a.value,
9900
- "onUpdate:modelValue": O[0] || (O[0] = (g) => a.value = g),
9917
+ "onUpdate:modelValue": I[0] || (I[0] = (O) => a.value = O),
9901
9918
  animation: 150,
9902
9919
  "ghost-class": "ghost",
9903
9920
  handle: ".x-handle",
@@ -9905,24 +9922,24 @@ const fa = /* @__PURE__ */ et({
9905
9922
  onMove: _,
9906
9923
  onStart: r
9907
9924
  }, {
9908
- default: z(() => [
9909
- (B(!0), J(un, null, zn(a.value, (g) => (B(), Q(Ea, {
9910
- id: g.id,
9911
- key: g.id,
9912
- select: g.select,
9913
- title: g.name,
9925
+ default: Q(() => [
9926
+ (b(!0), X(un, null, zn(a.value, (O) => (b(), q(Ea, {
9927
+ id: O.id,
9928
+ key: O.id,
9929
+ select: O.select,
9930
+ title: O.name,
9914
9931
  onXClick: m
9915
9932
  }, null, 8, ["id", "select", "title"]))), 128))
9916
9933
  ]),
9917
9934
  _: 1
9918
- }, 8, ["modelValue"])) : (B(), J("span", ga, se(P(n)("x-block-lib.noOption")), 1));
9935
+ }, 8, ["modelValue"])) : (b(), X("span", ga, ae(P(n)("x-block-lib.noOption")), 1));
9919
9936
  }
9920
9937
  }), Ia = (t, e) => {
9921
9938
  const n = t.__vccOpts || t;
9922
9939
  for (const [o, i] of e)
9923
9940
  n[o] = i;
9924
9941
  return n;
9925
- }, Oa = /* @__PURE__ */ Ia(Aa, [["__scopeId", "data-v-2ba1be08"]]), Ca = /* @__PURE__ */ et({
9942
+ }, Oa = /* @__PURE__ */ Ia(Aa, [["__scopeId", "data-v-2dc9f755"]]), Ca = /* @__PURE__ */ ot({
9926
9943
  __name: "index",
9927
9944
  props: {
9928
9945
  modelValue: { type: Boolean, required: !0 },
@@ -9930,7 +9947,7 @@ const fa = /* @__PURE__ */ et({
9930
9947
  },
9931
9948
  emits: ["update:modelValue"],
9932
9949
  setup(t, { expose: e }) {
9933
- const n = Nt(t, "modelValue"), o = $e();
9950
+ const n = Lt(t, "modelValue"), o = $e();
9934
9951
  e({ update: () => {
9935
9952
  if (!o.workspace) {
9936
9953
  console.assert(!1);
@@ -9938,7 +9955,7 @@ const fa = /* @__PURE__ */ et({
9938
9955
  }
9939
9956
  } });
9940
9957
  const a = (u) => {
9941
- const l = Bt();
9958
+ const l = bt();
9942
9959
  if (!l) {
9943
9960
  console.assert(!1);
9944
9961
  return;
@@ -9946,81 +9963,81 @@ const fa = /* @__PURE__ */ et({
9946
9963
  const r = l.getBlockById(u);
9947
9964
  Tn.setSelected(r), Ke(u), n.value = !1;
9948
9965
  };
9949
- return (u, l) => (B(), J("div", {
9966
+ return (u, l) => (b(), X("div", {
9950
9967
  onClick: l[0] || (l[0] = (r) => a(""))
9951
9968
  }, "blockTree"));
9952
9969
  }
9953
- }), va = { class: "text-subtitle-1" }, ya = /* @__PURE__ */ et({
9970
+ }), va = { class: "text-subtitle-1" }, ya = /* @__PURE__ */ ot({
9954
9971
  __name: "index",
9955
9972
  props: {
9956
9973
  type: {},
9957
9974
  lock: { type: Boolean }
9958
9975
  },
9959
9976
  setup(t, { expose: e }) {
9960
- const { t: n } = Pt(), o = ko(), { sysBarAvail: i } = En(), { backgroundColor1: a } = bt(), u = Y(() => {
9961
- let O = "100%";
9962
- return o.mdAndUp.value && (O = "400px"), {
9977
+ const { t: n } = Dt(), o = ko(), { sysBarAvail: i } = En(), { backgroundColor1: a } = Rt(), u = x(() => {
9978
+ let I = "100%";
9979
+ return o.mdAndUp.value && (I = "400px"), {
9963
9980
  background: a.value,
9964
- width: O,
9981
+ width: I,
9965
9982
  height: "100%"
9966
9983
  };
9967
- }), l = Y(() => {
9968
- let O = 48;
9969
- return i.value && (O += 24), {
9984
+ }), l = x(() => {
9985
+ let I = 48;
9986
+ return i.value && (I += 24), {
9970
9987
  position: "relative",
9971
- height: `calc(100% - ${O}px)`
9988
+ height: `calc(100% - ${I}px)`
9972
9989
  };
9973
- }), r = Y(() => ({
9990
+ }), r = x(() => ({
9974
9991
  height: "60px"
9975
9992
  })), { open: _ } = Ye(`blocklyNavigatorDlg${Se()}`);
9976
9993
  ln(() => {
9977
9994
  _.value = !1;
9978
9995
  });
9979
- const d = yt("blockList"), m = yt("blockTree");
9996
+ const d = kt("blockList"), m = kt("blockTree");
9980
9997
  return e({ open: _, update: () => {
9981
9998
  t.type === "list" ? d.value?.update() : t.type === "tree" && m.value?.update();
9982
- } }), (O, g) => {
9983
- const R = D("v-sheet"), U = D("v-btn"), X = D("v-spacer"), _t = D("v-dialog"), Ee = D("v-tooltip");
9984
- return B(), J(un, null, [
9985
- L(_t, {
9999
+ } }), (I, O) => {
10000
+ const N = D("v-sheet"), et = D("v-btn"), K = D("v-spacer"), nt = D("v-dialog"), Tt = D("v-tooltip");
10001
+ return b(), X(un, null, [
10002
+ S(nt, {
9986
10003
  modelValue: P(_),
9987
- "onUpdate:modelValue": g[5] || (g[5] = ($) => xt(_) ? _.value = $ : null),
10004
+ "onUpdate:modelValue": O[5] || (O[5] = ($) => Yt(_) ? _.value = $ : null),
9988
10005
  eager: "",
9989
10006
  fullscreen: "",
9990
10007
  "no-click-animation": "",
9991
10008
  persistent: "",
9992
10009
  transition: "scroll-x-reverse-transition",
9993
- onKeydown: g[6] || (g[6] = rn(vt(($) => _.value = !1, ["stop", "prevent"]), ["esc"]))
10010
+ onKeydown: O[6] || (O[6] = rn(yt(($) => _.value = !1, ["stop", "prevent"]), ["esc"]))
9994
10011
  }, {
9995
- default: z(() => [
10012
+ default: Q(() => [
9996
10013
  G("div", {
9997
10014
  class: "w-100 h-100 d-flex flex-row-reverse",
9998
- onClick: g[3] || (g[3] = vt(($) => _.value = !1, ["self"])),
9999
- onContextmenu: g[4] || (g[4] = vt(($) => _.value = !1, ["self", "prevent"]))
10015
+ onClick: O[3] || (O[3] = yt(($) => _.value = !1, ["self"])),
10016
+ onContextmenu: O[4] || (O[4] = yt(($) => _.value = !1, ["self", "prevent"]))
10000
10017
  }, [
10001
10018
  G("div", {
10002
10019
  class: "elevation-2",
10003
10020
  style: H(u.value)
10004
10021
  }, [
10005
- P(i) ? (B(), Q(R, {
10022
+ P(i) ? (b(), q(N, {
10006
10023
  key: 0,
10007
10024
  color: "transparent",
10008
10025
  height: 24
10009
10026
  })) : dt("", !0),
10010
- L(R, {
10027
+ S(N, {
10011
10028
  class: "d-flex align-center px-2",
10012
10029
  color: "transparent",
10013
10030
  height: 48
10014
10031
  }, {
10015
- default: z(() => [
10016
- L(U, {
10032
+ default: Q(() => [
10033
+ S(et, {
10017
10034
  density: "comfortable",
10018
10035
  icon: "mdi-close",
10019
10036
  variant: "text",
10020
- onClick: g[0] || (g[0] = ($) => _.value = !1)
10037
+ onClick: O[0] || (O[0] = ($) => _.value = !1)
10021
10038
  }),
10022
- G("span", va, se(P(n)("x-block-lib.navigator")), 1),
10023
- L(X)
10039
+ G("span", va, ae(P(n)("x-block-lib.navigator")), 1),
10040
+ S(K)
10024
10041
  ]),
10025
10042
  _: 1
10026
10043
  }),
@@ -10028,19 +10045,19 @@ const fa = /* @__PURE__ */ et({
10028
10045
  class: "overflow-y-auto",
10029
10046
  style: H(l.value)
10030
10047
  }, [
10031
- O.type === "list" ? (B(), Q(Oa, {
10048
+ I.type === "list" ? (b(), q(Oa, {
10032
10049
  key: 0,
10033
10050
  ref_key: "blockList",
10034
10051
  ref: d,
10035
10052
  modelValue: P(_),
10036
- "onUpdate:modelValue": g[1] || (g[1] = ($) => xt(_) ? _.value = $ : null),
10037
- lock: O.lock
10038
- }, null, 8, ["modelValue", "lock"])) : O.type === "tree" ? (B(), Q(Ca, {
10053
+ "onUpdate:modelValue": O[1] || (O[1] = ($) => Yt(_) ? _.value = $ : null),
10054
+ lock: I.lock
10055
+ }, null, 8, ["modelValue", "lock"])) : I.type === "tree" ? (b(), q(Ca, {
10039
10056
  key: 1,
10040
10057
  ref_key: "blockTree",
10041
10058
  ref: m,
10042
10059
  modelValue: P(_),
10043
- "onUpdate:modelValue": g[2] || (g[2] = ($) => xt(_) ? _.value = $ : null)
10060
+ "onUpdate:modelValue": O[2] || (O[2] = ($) => Yt(_) ? _.value = $ : null)
10044
10061
  }, null, 8, ["modelValue"])) : dt("", !0),
10045
10062
  G("div", {
10046
10063
  style: H(r.value)
@@ -10051,15 +10068,15 @@ const fa = /* @__PURE__ */ et({
10051
10068
  ]),
10052
10069
  _: 1
10053
10070
  }, 8, ["modelValue"]),
10054
- L(Ee, {
10071
+ S(Tt, {
10055
10072
  text: P(n)("x-block-lib.tip.hotkeyCtrlE")
10056
10073
  }, {
10057
- activator: z(({ props: $ }) => [
10058
- L(U, xe($, {
10074
+ activator: Q(({ props: $ }) => [
10075
+ S(et, xe($, {
10059
10076
  density: "comfortable",
10060
10077
  icon: "mdi-navigation-variant",
10061
10078
  variant: "outlined",
10062
- onClick: g[7] || (g[7] = (He) => _.value = !0)
10079
+ onClick: O[7] || (O[7] = (He) => _.value = !0)
10063
10080
  }), null, 16)
10064
10081
  ]),
10065
10082
  _: 1
@@ -10076,7 +10093,7 @@ const fa = /* @__PURE__ */ et({
10076
10093
  maxInstances: {
10077
10094
  func_entry_v1: 1
10078
10095
  },
10079
- media: "https://cdn.z9os.com/lib/blockly/v11.0.0/media/",
10096
+ media: "/media/",
10080
10097
  move: {
10081
10098
  drag: !0,
10082
10099
  scrollbars: !0,
@@ -10106,10 +10123,10 @@ function La(t, e, n) {
10106
10123
  function o({ name: i, callback: a }) {
10107
10124
  t.registerToolboxCategoryCallback(i, () => a(e));
10108
10125
  }
10109
- e === "page" || e === "comp" ? n === "v1" && (o(Jt), o(qt), o(zt), o(te), o(Qt), o(it), o(ot), o(Zt), o(Xt)) : e === "func" ? n === "v1" && (o(oe), o(ne), o(ee), o(ie), o(it), o(ot)) : e === "flow" && n === "v1" && (o(oe), o(ne), o(ee), o(ie), o(it), o(ot));
10126
+ e === "page" || e === "comp" ? n === "v1" && (o(qt), o(Qt), o(Zt), o(ee), o(zt), o(st), o(it), o(te), o(Jt)) : e === "func" ? n === "v1" && (o(ie), o(oe), o(ne), o(se), o(st), o(it)) : e === "flow" && n === "v1" && (o(ie), o(oe), o(ne), o(se), o(st), o(it));
10110
10127
  }
10111
10128
  function Sa(t) {
10112
- const { router: e } = nt;
10129
+ const { router: e } = Z;
10113
10130
  t.registerButtonCallback("NO_COMPUTE", () => {
10114
10131
  const n = e.resolve({
10115
10132
  path: "/compute/" + Date.now()
@@ -10164,8 +10181,8 @@ function Ba(t, e) {
10164
10181
  o(i[r], l.getInput("ENTRY" + r).connection);
10165
10182
  } else u === "json_string_v1" || u === "json_number_v1" ? l.setFieldValue(i, "VALUE") : u === "json_boolean_v1" && l.setFieldValue(i ? "true" : "false", "VALUE");
10166
10183
  };
10167
- o(t, n.getInput("JSON").connection), I.fire(
10168
- new (I.get(I.FINISHED_LOADING))(e)
10184
+ o(t, n.getInput("JSON").connection), A.fire(
10185
+ new (A.get(A.FINISHED_LOADING))(e)
10169
10186
  );
10170
10187
  }
10171
10188
  function ba(t) {
@@ -10200,7 +10217,7 @@ function ba(t) {
10200
10217
  if (o.type === "json_root_v1")
10201
10218
  return e(o);
10202
10219
  }
10203
- const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10220
+ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ ot({
10204
10221
  __name: "index",
10205
10222
  props: /* @__PURE__ */ Le({
10206
10223
  type: {},
@@ -10215,18 +10232,18 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10215
10232
  }),
10216
10233
  emits: /* @__PURE__ */ Le(["ready"], ["update:lock", "update:scale"]),
10217
10234
  setup(t, { expose: e, emit: n }) {
10218
- const { backgroundColor2: o } = bt(), i = Nt(t, "lock"), a = Nt(t, "scale"), u = n, l = `blocklyEditor${Se()}`, r = mt(), _ = yt("parentContainer"), d = yt("clean"), m = yt("navigator"), h = {};
10219
- ha(h);
10220
- const O = mt(!0), g = mt(!1), R = Y(() => t.type === "json" ? "tree" : "list"), U = Y(() => ({
10235
+ const { backgroundColor2: o } = Rt(), i = Lt(t, "lock"), a = Lt(t, "scale"), u = n, l = `blocklyEditor${Se()}`, r = Et(), _ = kt("parentContainer"), d = kt("clean"), m = kt("navigator"), f = {};
10236
+ ha(f);
10237
+ const I = Et(!0), O = Et(!1), N = x(() => t.type === "json" ? "tree" : "list"), et = x(() => ({
10221
10238
  width: "100%",
10222
10239
  height: "calc(100% - 48px)"
10223
- })), X = Y(() => ({
10240
+ })), K = x(() => ({
10224
10241
  position: "absolute",
10225
10242
  background: o.value,
10226
10243
  bottom: "0px",
10227
10244
  width: "100%",
10228
10245
  height: "48px"
10229
- })), _t = Y(() => ({
10246
+ })), nt = x(() => ({
10230
10247
  position: "absolute",
10231
10248
  background: t.dark ? "#0000007f" : "#ffffff7f",
10232
10249
  top: "1px",
@@ -10234,12 +10251,12 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10234
10251
  width: "56px",
10235
10252
  height: "calc(100% - 49px)",
10236
10253
  zIndex: 999
10237
- })), Ee = Y(() => ({
10254
+ })), Tt = x(() => ({
10238
10255
  position: "absolute",
10239
10256
  top: "0px",
10240
10257
  right: "0px",
10241
10258
  zIndex: 20
10242
- })), $ = Y(() => ({
10259
+ })), $ = x(() => ({
10243
10260
  position: "absolute",
10244
10261
  background: t.dark ? "#0000007f" : "#ffffff7f",
10245
10262
  top: "0px",
@@ -10247,7 +10264,7 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10247
10264
  width: "100%",
10248
10265
  height: "calc(100% - 48px)",
10249
10266
  pointerEvents: "none"
10250
- })), He = Y(() => ({
10267
+ })), He = x(() => ({
10251
10268
  position: "absolute",
10252
10269
  background: t.dark ? "#0000007f" : "#ffffff7f",
10253
10270
  top: "1px",
@@ -10255,59 +10272,59 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10255
10272
  width: "56px",
10256
10273
  height: "calc(100% - 49px)",
10257
10274
  zIndex: 999
10258
- })), xn = Y(() => ({
10275
+ })), xn = x(() => ({
10259
10276
  position: "fixed",
10260
10277
  top: 0,
10261
10278
  left: 0,
10262
10279
  zIndex: 3e3
10263
- })), { open: It } = Ye(`blocklyEditorFlyout${Se()}`);
10280
+ })), { open: Ot } = Ye(`blocklyEditorFlyout${Se()}`);
10264
10281
  Xe(async () => {
10265
10282
  if (!r.value || !_.value) {
10266
10283
  console.assert(!1);
10267
10284
  return;
10268
10285
  }
10269
- To(_.value), await cn(t.locale), h.workspace = ka(r.value, t.type, t.version, t.dark), h.workspace.addChangeListener(I.disableOrphans), h.workspace.addChangeListener(Yn);
10286
+ To(_.value), await cn(t.locale), f.workspace = ka(r.value, t.type, t.version, t.dark), f.workspace.addChangeListener(A.disableOrphans), f.workspace.addChangeListener(Yn);
10270
10287
  const k = document.querySelector(`#${l} .blocklyFlyout`);
10271
10288
  new MutationObserver((ge) => {
10272
- ge.forEach((Ut) => {
10273
- Ut.type === "attributes" && Ut.attributeName === "style" && (It.value = h.workspace.getFlyout().isVisible());
10289
+ ge.forEach((Vt) => {
10290
+ Vt.type === "attributes" && Vt.attributeName === "style" && (Ot.value = f.workspace.getFlyout().isVisible());
10274
10291
  });
10275
- }).observe(k, { attributes: !0 }), It.value = h.workspace.getFlyout().isVisible(), Ge(), We(), await Zn(), u("ready");
10292
+ }).observe(k, { attributes: !0 }), Ot.value = f.workspace.getFlyout().isVisible(), Ge(), We(), await Zn(), u("ready");
10276
10293
  }), to(() => {
10277
- It.value = !1;
10294
+ Ot.value = !1;
10278
10295
  }), mo(r, () => {
10279
- h.workspace && Eo(h.workspace);
10296
+ f.workspace && Eo(f.workspace);
10280
10297
  });
10281
10298
  async function Yn(k) {
10282
- if (k.type === I.FINISHED_LOADING) {
10299
+ if (k.type === A.FINISHED_LOADING) {
10283
10300
  Dn(), setTimeout(() => {
10284
10301
  m.value?.update();
10285
- }, 0), O.value = !1;
10302
+ }, 0), I.value = !1;
10286
10303
  return;
10287
10304
  }
10288
- if (!O.value) {
10289
- if (k.type === I.VIEWPORT_CHANGE) {
10290
- a.value = h.workspace.getScale();
10305
+ if (!I.value) {
10306
+ if (k.type === A.VIEWPORT_CHANGE) {
10307
+ a.value = f.workspace.getScale();
10291
10308
  return;
10292
10309
  }
10293
- k.type === I.BLOCK_DRAG && (k.isStart ? g.value = !0 : g.value = !1), setTimeout(() => {
10310
+ k.type === A.BLOCK_DRAG && (k.isStart ? O.value = !0 : O.value = !1), setTimeout(() => {
10294
10311
  m.value?.update();
10295
10312
  }, 0);
10296
10313
  }
10297
10314
  }
10298
10315
  const Fn = (k) => {
10299
- O.value = !0, t.type === "json" ? Ba(k, h.workspace) : w.workspaces.load(k, h.workspace);
10300
- }, wn = () => t.type === "json" ? ba(h.workspace) : w.workspaces.save(h.workspace), Kn = () => {
10316
+ I.value = !0, t.type === "json" ? Ba(k, f.workspace) : F.workspaces.load(k, f.workspace);
10317
+ }, wn = () => t.type === "json" ? ba(f.workspace) : F.workspaces.save(f.workspace), Kn = () => {
10301
10318
  if (t.type === "json")
10302
10319
  console.assert(!1);
10303
10320
  else
10304
- return s.workspaceToCode(h.workspace);
10321
+ return s.workspaceToCode(f.workspace);
10305
10322
  }, Ge = () => {
10306
- h.workspace.setIsReadOnly(i.value), h.workspace.isReadOnly() && (It.value = !1);
10323
+ f.workspace.setIsReadOnly(i.value), f.workspace.isReadOnly() && (Ot.value = !1);
10307
10324
  }, We = () => {
10308
- h.workspace.setScale(a.value);
10325
+ f.workspace.setScale(a.value);
10309
10326
  }, $n = () => {
10310
- h.workspace.fireChangeListener(new gn());
10327
+ f.workspace.fireChangeListener(new gn());
10311
10328
  }, je = (k) => {
10312
10329
  if (k.key === "q" && k.ctrlKey) {
10313
10330
  Hn();
@@ -10332,72 +10349,72 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10332
10349
  window.addEventListener("keydown", je, !1);
10333
10350
  }), ln(() => {
10334
10351
  window.removeEventListener("keydown", je, !1);
10335
- }), Ot(
10352
+ }), Ct(
10336
10353
  () => t.locale,
10337
10354
  (k) => {
10338
10355
  cn(k);
10339
10356
  }
10340
- ), Ot(
10357
+ ), Ct(
10341
10358
  () => t.dark,
10342
10359
  (k) => {
10343
10360
  ua(k ? "dark" : "light");
10344
10361
  }
10345
- ), Ot(It, (k) => {
10346
- k || h.workspace?.hideChaff();
10347
- }), Ot(i, () => {
10362
+ ), Ct(Ot, (k) => {
10363
+ k || f.workspace?.hideChaff();
10364
+ }), Ct(i, () => {
10348
10365
  Ge();
10349
- }), Ot(a, () => {
10366
+ }), Ct(a, () => {
10350
10367
  We();
10351
- }), e({ loading: O, load: Fn, save: wn, generateCode: Kn, fireStateChange: $n }), (k, pt) => {
10352
- const ge = D("v-icon"), Ut = D("x-loading");
10353
- return B(), J("div", Ra, [
10368
+ }), e({ loading: I, load: Fn, save: wn, generateCode: Kn, fireStateChange: $n }), (k, pt) => {
10369
+ const ge = D("v-icon"), Vt = D("x-loading");
10370
+ return b(), X("div", Ra, [
10354
10371
  G("div", {
10355
10372
  id: l,
10356
10373
  ref_key: "blocklyDiv",
10357
10374
  ref: r,
10358
- style: H(U.value)
10375
+ style: H(et.value)
10359
10376
  }, null, 4),
10360
10377
  G("div", {
10361
- style: H(X.value)
10378
+ style: H(K.value)
10362
10379
  }, [
10363
10380
  eo(k.$slots, "bottom")
10364
10381
  ], 4),
10365
- g.value ? (B(), J("div", {
10382
+ O.value ? (b(), X("div", {
10366
10383
  key: 0,
10367
10384
  class: "d-flex flex-column justify-center align-center",
10368
- style: H(_t.value)
10385
+ style: H(nt.value)
10369
10386
  }, [
10370
- L(ge, {
10387
+ S(ge, {
10371
10388
  icon: "mdi-delete",
10372
10389
  size: "x-large"
10373
10390
  })
10374
10391
  ], 4)) : dt("", !0),
10375
- O.value ? dt("", !0) : (B(), J("div", {
10392
+ I.value ? dt("", !0) : (b(), X("div", {
10376
10393
  key: 1,
10377
10394
  class: "d-flex align-end ga-3 pt-3 pr-3",
10378
- style: H(Ee.value)
10395
+ style: H(Tt.value)
10379
10396
  }, [
10380
- L(fa, {
10397
+ S(fa, {
10381
10398
  ref_key: "clean",
10382
10399
  ref: d,
10383
10400
  lock: i.value
10384
10401
  }, null, 8, ["lock"]),
10385
- L(Ta, {
10402
+ S(Ta, {
10386
10403
  modelValue: i.value,
10387
10404
  "onUpdate:modelValue": pt[0] || (pt[0] = (jn) => i.value = jn)
10388
10405
  }, null, 8, ["modelValue"]),
10389
- L(ya, {
10406
+ S(ya, {
10390
10407
  ref_key: "navigator",
10391
10408
  ref: m,
10392
10409
  lock: i.value,
10393
- type: R.value
10410
+ type: N.value
10394
10411
  }, null, 8, ["lock", "type"])
10395
10412
  ], 4)),
10396
- i.value ? (B(), J("div", {
10413
+ i.value ? (b(), X("div", {
10397
10414
  key: 2,
10398
10415
  style: H(He.value)
10399
10416
  }, null, 4)) : dt("", !0),
10400
- i.value ? (B(), J("div", {
10417
+ i.value ? (b(), X("div", {
10401
10418
  key: 3,
10402
10419
  style: H($.value)
10403
10420
  }, null, 4)) : dt("", !0),
@@ -10406,14 +10423,14 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10406
10423
  ref: _,
10407
10424
  style: H(xn.value)
10408
10425
  }, null, 4),
10409
- L(Ut, {
10410
- open: O.value,
10426
+ S(Vt, {
10427
+ open: I.value,
10411
10428
  "z-index": 99
10412
10429
  }, null, 8, ["open"])
10413
10430
  ]);
10414
10431
  };
10415
10432
  }
10416
- }), Da = /* @__PURE__ */ et({
10433
+ }), Da = /* @__PURE__ */ ot({
10417
10434
  __name: "index",
10418
10435
  props: {
10419
10436
  code: {}
@@ -10421,16 +10438,16 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10421
10438
  setup(t) {
10422
10439
  const e = t;
10423
10440
  go.registerLanguage("javascript", Ao);
10424
- const n = Io.component, { backgroundColor2: o } = bt();
10441
+ const n = Io.component, { backgroundColor2: o } = Rt();
10425
10442
  return (i, a) => {
10426
10443
  const u = D("v-sheet");
10427
- return B(), Q(u, {
10444
+ return b(), q(u, {
10428
10445
  color: P(o),
10429
10446
  height: "100%",
10430
10447
  width: "100%"
10431
10448
  }, {
10432
- default: z(() => [
10433
- L(P(n), {
10449
+ default: Q(() => [
10450
+ S(P(n), {
10434
10451
  code: e.code,
10435
10452
  language: "js"
10436
10453
  }, null, 8, ["code"])
@@ -10439,10 +10456,10 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10439
10456
  }, 8, ["color"]);
10440
10457
  };
10441
10458
  }
10442
- }), Ma = { class: "text-subtitle-1" }, Ua = { class: "w-100 h-100 overflow-auto" }, Va = /* @__PURE__ */ et({
10459
+ }), Ma = { class: "text-subtitle-1" }, Ua = { class: "w-100 h-100 overflow-auto" }, Va = /* @__PURE__ */ ot({
10443
10460
  __name: "index",
10444
10461
  setup(t) {
10445
- const { t: e } = Pt(), { sysBarAvail: n } = En(), { backgroundColor0: o, backgroundColor2: i } = bt(), a = mt(""), u = Y(() => {
10462
+ const { t: e } = Dt(), { sysBarAvail: n } = En(), { backgroundColor0: o, backgroundColor2: i } = Rt(), a = Et(""), u = x(() => {
10446
10463
  let _ = 48;
10447
10464
  return n.value && (_ += 24), {
10448
10465
  position: "relative",
@@ -10452,42 +10469,42 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10452
10469
  a.value = _.code;
10453
10470
  }, { open: r } = Ye("sourceDlg", l);
10454
10471
  return (_, d) => {
10455
- const m = D("v-sheet"), h = D("v-btn"), O = D("v-spacer"), g = D("v-dialog");
10456
- return B(), Q(g, {
10472
+ const m = D("v-sheet"), f = D("v-btn"), I = D("v-spacer"), O = D("v-dialog");
10473
+ return b(), q(O, {
10457
10474
  modelValue: P(r),
10458
- "onUpdate:modelValue": d[1] || (d[1] = (R) => xt(r) ? r.value = R : null),
10475
+ "onUpdate:modelValue": d[1] || (d[1] = (N) => Yt(r) ? r.value = N : null),
10459
10476
  fullscreen: "",
10460
10477
  "no-click-animation": "",
10461
10478
  persistent: "",
10462
10479
  transition: "dialog-bottom-transition",
10463
- onKeydown: d[2] || (d[2] = rn(vt((R) => r.value = !1, ["stop", "prevent"]), ["esc"]))
10480
+ onKeydown: d[2] || (d[2] = rn(yt((N) => r.value = !1, ["stop", "prevent"]), ["esc"]))
10464
10481
  }, {
10465
- default: z(() => [
10466
- L(m, {
10482
+ default: Q(() => [
10483
+ S(m, {
10467
10484
  color: P(o),
10468
10485
  height: "100%",
10469
10486
  width: "100%"
10470
10487
  }, {
10471
- default: z(() => [
10472
- P(n) ? (B(), Q(m, {
10488
+ default: Q(() => [
10489
+ P(n) ? (b(), q(m, {
10473
10490
  key: 0,
10474
10491
  color: P(i),
10475
10492
  height: 24
10476
10493
  }, null, 8, ["color"])) : dt("", !0),
10477
- L(m, {
10494
+ S(m, {
10478
10495
  class: "d-flex align-center px-2",
10479
10496
  color: P(i),
10480
10497
  height: 48
10481
10498
  }, {
10482
- default: z(() => [
10483
- L(h, {
10499
+ default: Q(() => [
10500
+ S(f, {
10484
10501
  density: "comfortable",
10485
10502
  icon: "mdi-close",
10486
10503
  variant: "text",
10487
- onClick: d[0] || (d[0] = (R) => r.value = !1)
10504
+ onClick: d[0] || (d[0] = (N) => r.value = !1)
10488
10505
  }),
10489
- G("span", Ma, se(P(e)("x-block-lib.dlg.source.title")), 1),
10490
- L(O)
10506
+ G("span", Ma, ae(P(e)("x-block-lib.dlg.source.title")), 1),
10507
+ S(I)
10491
10508
  ]),
10492
10509
  _: 1
10493
10510
  }, 8, ["color"]),
@@ -10495,7 +10512,7 @@ const Ra = { class: "position-relative w-100 h-100" }, Pa = /* @__PURE__ */ et({
10495
10512
  style: H(u.value)
10496
10513
  }, [
10497
10514
  G("div", Ua, [
10498
- L(Da, { code: a.value }, null, 8, ["code"])
10515
+ S(Da, { code: a.value }, null, 8, ["code"])
10499
10516
  ])
10500
10517
  ], 4)
10501
10518
  ]),