x-block-lib 0.8.33 → 0.8.35

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,35 +6,35 @@
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-6cb62cd6]{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 { E as I, r as Tn, M as Rn, s as vo, a as Co, X as Dn, u as C, B as E, j as s, O as r, F as O, b as He, i as v, c as Tt, d as ko, e as M, f as T, g as No, h as $, k as ht, p as Yt, l as ot, m as En, n as B, C as Mn, N as it, o as Lo, P as Ge, q as Ue, V as Nt, t as Un, W as So, v as Bo, w as bo, S as Po, x as Ro, y as Do, z as Wt, T as Ae, A as Vn, D as Mo, G as Uo, H as xn, I as Vo, J as xo, K as Yo, L as Fo, Q as wo, R as Ko, U as $o, Y as Ho } from "./vendor.txua272r.js";
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-daa85471]{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 { E as I, r as Tn, M as vo, s as yo, a as Co, X as Rn, u as C, B as E, j as s, O as r, F as O, b as Ge, i as y, c as Tt, d as ko, e as U, f as T, g as No, h as $, k as ht, p as Yt, l as ot, m as En, n as B, C as Dn, N as it, o as Lo, P as We, q as Ve, V as Nt, t as Mn, W as So, v as Bo, w as bo, S as Po, x as Ro, y as Do, z as Wt, T as Ae, A as Un, D as Mo, G as Uo, H as Vn, I as Vo, J as xo, K as Yo, L as Fo, Q as wo, R as Ko, U as $o, Y as Ho } from "./vendor.txua272r.js";
11
11
  import { globalState as g } from "x-state-lib";
12
- import { globalObjects as vt, openConfirmDlg as Go, openPromptDlg as Wo, messageWarning as Yn, useColor as jt, useSystem as Fn, useViewStack as en, eventBus as kt } from "x-essential-lib";
13
- import { pkgs as ie, parsePixelStr as jo, parsePercentStr as Xo, getPropertyTag as Mt, unwrapEventId as nn, elements as tt, makeEventId as z, toEventName as Ie, unwrapMethodId as Oe, makeMethodId as ee, toMethodName as on, unwrapPropertyId as Jo, makePropertyId as Zt, toPropertyName as wn, isLocaleOfMethodKind as Kn, makeTriggerId as Ot } from "x-runtime-lib";
14
- import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as D, createBlock as st, openBlock as S, unref as R, withCtx as at, createVNode as L, mergeProps as sn, useModel as Kt, ref as Lt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as Z, normalizeStyle as W, createElementVNode as w, createCommentVNode as rt, toDisplayString as $t, withModifiers as Ft, mergeModels as We, Fragment as $n, renderList as ti, useId as je, onUnmounted as ei, useTemplateRef as wt, withKeys as Hn, isRef as ne, onMounted as gn, nextTick as ni, onBeforeUnmount as An, watch as Vt, renderSlot as oi } from "vue";
12
+ import { globalObjects as yt, openConfirmDlg as Go, openPromptDlg as Wo, messageWarning as xn, useColor as jt, useSystem as Yn, useViewStack as nn, eventBus as kt } from "x-essential-lib";
13
+ import { pkgs as ie, parsePixelStr as jo, parsePercentStr as Xo, getPropertyTag as Mt, unwrapEventId as on, elements as et, makeEventId as Z, toEventName as Ie, unwrapMethodId as Oe, makeMethodId as ee, toMethodName as ve, unwrapPropertyId as Jo, makePropertyId as Zt, toPropertyName as Fn, isLocaleOfMethodKind as wn, makeTriggerId as Ot } from "x-runtime-lib";
14
+ import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as M, createBlock as st, openBlock as S, unref as D, withCtx as at, createVNode as L, mergeProps as sn, useModel as Kt, ref as Lt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as tt, normalizeStyle as j, createElementVNode as w, createCommentVNode as rt, toDisplayString as $t, withModifiers as Ft, mergeModels as je, Fragment as Kn, renderList as ti, useId as Xe, onUnmounted as ei, useTemplateRef as wt, withKeys as $n, isRef as ne, onMounted as gn, nextTick as ni, onBeforeUnmount as An, watch as Vt, renderSlot as oi } from "vue";
15
15
  import { useI18n as Xt } from "vue-i18n";
16
16
  import { useDisplay as ii } from "vuetify";
17
17
  var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
18
- class Gn extends I.Abstract {
18
+ class Hn extends I.Abstract {
19
19
  isBlank = !0;
20
20
  }
21
21
  Tn.register(
22
22
  Tn.Type.EVENT,
23
23
  "state_change",
24
- Gn
24
+ Hn
25
25
  );
26
- const Wn = (t, e, n) => {
26
+ const Gn = (t, e, n) => {
27
27
  const o = t[e];
28
28
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, a) => {
29
29
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + e + (e.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
30
30
  });
31
31
  };
32
32
  async function In(t) {
33
- const e = await Wn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.i31hlb1k.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.e1w1hz44.js") }), `./msg/${t}.ts`, 3);
34
- vo(e.default);
33
+ const e = await Gn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.gmqsbfuw.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.f0e8559c.js") }), `./msg/${t}.ts`, 3);
34
+ yo(e.default);
35
35
  }
36
36
  function f(t) {
37
- return Rn[t] ?? t;
37
+ return vo[t] ?? t;
38
38
  }
39
39
  const St = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", se = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
40
40
  function ye(t) {
@@ -60,22 +60,22 @@ function si(t) {
60
60
  e++, t = t.getParent();
61
61
  return e;
62
62
  }
63
- function jn(t) {
63
+ function Wn(t) {
64
64
  return t.ui === "strInput" ? "string" : t.ui === "numInput" ? "number" : t.ui === "switch" ? "boolean" : "string";
65
65
  }
66
- function ve(t, e) {
66
+ function Ce(t, e) {
67
67
  return !!(t.startsWith("basic.") || !e.ui || e.readonly);
68
68
  }
69
69
  function K(t) {
70
70
  return t.startsWith("globality_v");
71
71
  }
72
- function q(t) {
72
+ function Q(t) {
73
73
  return t.startsWith("reference_v");
74
74
  }
75
- function Q(t) {
75
+ function z(t) {
76
76
  return t.startsWith("multiple_ref_v");
77
77
  }
78
- function Ve(t) {
78
+ function xe(t) {
79
79
  const e = `<block type="text_v1"><field name="TEXT">${t}</field></block>`;
80
80
  return C.xml.textToDom(e);
81
81
  }
@@ -86,9 +86,9 @@ function On(t) {
86
86
  function ai(t) {
87
87
  return C.xml.textToDom('<block type="logic_boolean_v1"><field name="BOOL">FALSE</field></block>');
88
88
  }
89
- function Xe(t, e) {
89
+ function Je(t, e) {
90
90
  let n = null;
91
- return e === "string" ? n = Ve("") : e === "integer" || e === "decimal" ? n = On(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = Ve("") : console.assert(!1), n ? Dn.domToBlock(n, t) : null;
91
+ return e === "string" ? n = xe("") : e === "integer" || e === "decimal" ? n = On(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = xe("") : console.assert(!1), n ? Rn.domToBlock(n, t) : null;
92
92
  }
93
93
  function Et(t) {
94
94
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
@@ -96,7 +96,7 @@ function Et(t) {
96
96
  function ci(t) {
97
97
  return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? ae(t.items) : t.ui === "multiTypes" ? ae(t.types) : t.ui === "compSelect" ? "Comp" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
98
98
  }
99
- function Xn(t) {
99
+ function jn(t) {
100
100
  return t === "string" ? "String" : t === "integer" || t === "decimal" ? "Number" : t === "boolean" ? "Boolean" : t === "enum" || t === "dateTime" ? "String" : (console.assert(!1), null);
101
101
  }
102
102
  function an(t, e, n, o) {
@@ -105,7 +105,7 @@ function an(t, e, n, o) {
105
105
  <mutation key="${e}" name="${n}" locale="${o ? "TRUE" : "FALSE"}"/>
106
106
  </block>
107
107
  `, a = C.xml.textToDom(i);
108
- return Dn.domToBlock(a, t);
108
+ return Rn.domToBlock(a, t);
109
109
  }
110
110
  function Y(t, e) {
111
111
  try {
@@ -179,7 +179,7 @@ function fi() {
179
179
  n.push({ key: o, name: i, type: a });
180
180
  return n;
181
181
  }
182
- function yn(t) {
182
+ function vn(t) {
183
183
  const { activeObject: e, activePage: n } = g.app;
184
184
  if (e.type === "page") {
185
185
  const o = n.meta.arguments.find((i) => i.id === t);
@@ -232,7 +232,7 @@ const Ti = {
232
232
  }
233
233
  },
234
234
  onArgumentChange_: function(t) {
235
- const e = yn(t);
235
+ const e = vn(t);
236
236
  if (!e) {
237
237
  console.assert(!1);
238
238
  return;
@@ -243,7 +243,7 @@ const Ti = {
243
243
  this.setOutput(!0, Et(this.argument.type));
244
244
  },
245
245
  checkWarning_: function() {
246
- const t = yn(this.argument.key);
246
+ const t = vn(this.argument.key);
247
247
  if (!t) {
248
248
  this.setWarningText(f("WARN_ARGUMENT_NOT_FOUND"));
249
249
  return;
@@ -270,7 +270,7 @@ const Ei = (t, e) => {
270
270
  ), this.setOutput(!0, o), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl("");
271
271
  },
272
272
  genOpts_: function() {
273
- const { i18n: i } = vt, a = [];
273
+ const { i18n: i } = yt, a = [];
274
274
  for (const { title: c, value: u } of e)
275
275
  a.push([i.global.t(c), u]);
276
276
  return k(a);
@@ -303,7 +303,7 @@ const gi = (t, e) => {
303
303
  }, 0);
304
304
  },
305
305
  genOpts_: function() {
306
- const { i18n: i } = vt, a = [];
306
+ const { i18n: i } = yt, a = [];
307
307
  for (const { title: c, value: u } of e)
308
308
  a.push([i.global.t(c), u]);
309
309
  return k(a);
@@ -339,7 +339,7 @@ const gi = (t, e) => {
339
339
  let u, l;
340
340
  if (c.ui === "pixelInput") {
341
341
  const _ = jo(this.value) ?? 0;
342
- u = new He(
342
+ u = new Ge(
343
343
  _,
344
344
  c.min,
345
345
  c.max,
@@ -350,7 +350,7 @@ const gi = (t, e) => {
350
350
  ), l = "px";
351
351
  } else if (c.ui === "percentInput") {
352
352
  const _ = Xo(this.value) ?? 0;
353
- u = new He(
353
+ u = new Ge(
354
354
  _,
355
355
  c.min,
356
356
  c.max,
@@ -394,7 +394,7 @@ const Oi = {
394
394
  }
395
395
  };
396
396
  E.app_bind_item_v1 = Oi;
397
- const yi = {
397
+ const vi = {
398
398
  init: function() {
399
399
  this.itemCount_ = 0, this.setMutator(
400
400
  new Tt.MutatorIcon(
@@ -482,7 +482,7 @@ const yi = {
482
482
  "Boolean",
483
483
  "Array",
484
484
  "Object"
485
- ]), t === 0 && this.getInput("ADD" + t).setAlign(v.Align.RIGHT).appendField("%{BKY_APP_V1_APP_BIND_TITLE}"));
485
+ ]), t === 0 && this.getInput("ADD" + t).setAlign(y.Align.RIGHT).appendField("%{BKY_APP_V1_APP_BIND_TITLE}"));
486
486
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
487
487
  this.removeInput("ADD" + t);
488
488
  },
@@ -512,53 +512,53 @@ const yi = {
512
512
  this.setWarningText(null);
513
513
  }
514
514
  };
515
- E.app_bind_v1 = yi;
515
+ E.app_bind_v1 = vi;
516
516
  s.forBlock.app_bind_v1 = function() {
517
517
  return "";
518
518
  };
519
- function Jn() {
519
+ function Xn() {
520
520
  return g.app.appList;
521
521
  }
522
- function vn(t) {
522
+ function yn(t) {
523
523
  return g.app.appList.find((e) => e.id === t);
524
524
  }
525
- function vi() {
525
+ function yi() {
526
526
  const t = [];
527
- return Jn().forEach(({ id: n, name: o }) => {
527
+ return Xn().forEach(({ id: n, name: o }) => {
528
528
  t.push([o, n]);
529
529
  }), k(t);
530
530
  }
531
- function Je(t) {
531
+ function qe(t) {
532
532
  const e = g.app.appList.find((n) => n.id === t);
533
533
  return e ? e.pages : [];
534
534
  }
535
- function xe(t, e) {
535
+ function Ye(t, e) {
536
536
  const n = g.app.appList.find((o) => o.id === t);
537
537
  if (n)
538
538
  return n.pages.find((o) => o.id === e);
539
539
  }
540
540
  function Ci(t) {
541
541
  const e = [];
542
- return Je(t).forEach(({ id: o, name: i }) => {
542
+ return qe(t).forEach(({ id: o, name: i }) => {
543
543
  e.push([i, o]);
544
544
  }), k(e);
545
545
  }
546
- const qn = {
546
+ const Jn = {
547
547
  id: "",
548
548
  groupId: "",
549
549
  name: "",
550
550
  position: 0
551
551
  };
552
- function Qn() {
552
+ function qn() {
553
553
  const { comps: t } = g.app.activeApp;
554
- return [qn, ...t];
554
+ return [Jn, ...t];
555
555
  }
556
556
  function Cn(t) {
557
- return t === "" ? qn : g.app.activeApp.comps.find((e) => e.id === t);
557
+ return t === "" ? Jn : g.app.activeApp.comps.find((e) => e.id === t);
558
558
  }
559
559
  function ki() {
560
- const { i18n: t } = vt, e = [];
561
- return Qn().forEach(({ id: o, name: i }) => {
560
+ const { i18n: t } = yt, e = [];
561
+ return qn().forEach(({ id: o, name: i }) => {
562
562
  let a = i;
563
563
  o === "" && (a = t.global.t("x-runtime-lib.notSet")), e.push([a, o]);
564
564
  }), k(e);
@@ -569,46 +569,46 @@ function dt(t) {
569
569
  e.push({ key: n, name: o, type: i });
570
570
  return e;
571
571
  }
572
- function X(t) {
572
+ function J(t) {
573
573
  return [
574
574
  { key: "newValue", name: "x-runtime-lib.newValue", type: t },
575
575
  { key: "oldValue", name: "x-runtime-lib.oldValue", type: t }
576
576
  ];
577
577
  }
578
- function qe(t) {
578
+ function Qe(t) {
579
579
  const { properties: e } = g.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = g.app, c = [], u = Mt(n.type, n.subtype);
580
580
  if (!u)
581
581
  return c;
582
582
  const l = n.nodes.find((d) => d.id === t);
583
583
  if (!l)
584
584
  return c;
585
- const _ = tt[l.key];
585
+ const _ = et[l.key];
586
586
  if (!_)
587
587
  return console.assert(!1, "invalid element", l.key), c;
588
588
  for (const { key: d, name: h, params: p } of _.events)
589
589
  c.push({
590
- id: z("elementEvent", t, d),
590
+ id: Z("elementEvent", t, d),
591
591
  kind: "elementEvent",
592
592
  names: [h],
593
593
  params: p
594
594
  });
595
- if (q(_.key) && l.reference && l.reference.comp) {
595
+ if (Q(_.key) && l.reference && l.reference.comp) {
596
596
  const d = a[l.reference.comp];
597
597
  if (d)
598
598
  for (const { id: h, name: p, params: m } of d.meta.events)
599
599
  c.push({
600
- id: z("referenceEvent", t, h),
600
+ id: Z("referenceEvent", t, h),
601
601
  kind: "referenceEvent",
602
602
  names: [p],
603
603
  params: dt(m)
604
604
  });
605
605
  }
606
- if (Q(_.key) && l.reference && l.reference.comp) {
606
+ if (z(_.key) && l.reference && l.reference.comp) {
607
607
  const d = a[l.reference.comp];
608
608
  if (d)
609
609
  for (const { id: h, name: p, params: m } of d.meta.events)
610
610
  c.push({
611
- id: z("multipleRefEvent", t, h),
611
+ id: Z("multipleRefEvent", t, h),
612
612
  kind: "multipleRefEvent",
613
613
  names: [p],
614
614
  params: dt(m)
@@ -617,79 +617,79 @@ function qe(t) {
617
617
  if (K(_.key) && n.type === "comp")
618
618
  for (const { id: d, name: h, params: p } of i.meta.events)
619
619
  c.push({
620
- id: z("customEvent", t, d),
620
+ id: Z("customEvent", t, d),
621
621
  kind: "customEvent",
622
622
  names: [h],
623
623
  params: dt(p)
624
624
  });
625
625
  if (e[_.key] && e[_.key][u])
626
626
  for (const { keys: d, names: h, raw: p } of e[_.key][u])
627
- ve(d, p) || c.push({
628
- id: z("elementPropertyChangeEvent", t, d),
627
+ Ce(d, p) || c.push({
628
+ id: Z("elementPropertyChangeEvent", t, d),
629
629
  kind: "elementPropertyChangeEvent",
630
630
  names: h,
631
- params: X(jn(p))
631
+ params: J(Wn(p))
632
632
  });
633
- if (q(_.key) && l.reference && l.reference.comp) {
633
+ if (Q(_.key) && l.reference && l.reference.comp) {
634
634
  const d = a[l.reference.comp];
635
635
  if (d)
636
636
  for (const { id: h, name: p, type: m } of d.meta.properties)
637
637
  c.push({
638
- id: z("referencePropertyChangeEvent", t, h),
638
+ id: Z("referencePropertyChangeEvent", t, h),
639
639
  kind: "referencePropertyChangeEvent",
640
640
  names: [p],
641
- params: X(m)
641
+ params: J(m)
642
642
  });
643
643
  }
644
- if (Q(_.key) && l.reference && l.reference.comp) {
644
+ if (z(_.key) && l.reference && l.reference.comp) {
645
645
  const d = a[l.reference.comp];
646
646
  if (d)
647
647
  for (const { id: h, name: p, type: m } of d.meta.properties)
648
648
  c.push({
649
- id: z("multipleRefPropertyChangeEvent", t, h),
649
+ id: Z("multipleRefPropertyChangeEvent", t, h),
650
650
  kind: "multipleRefPropertyChangeEvent",
651
651
  names: [p],
652
- params: X(m)
652
+ params: J(m)
653
653
  });
654
654
  }
655
655
  if (K(_.key) && n.type === "comp")
656
656
  for (const { id: d, name: h, type: p } of i.meta.properties)
657
657
  c.push({
658
- id: z("customPropertyChangeEvent", t, d),
658
+ id: Z("customPropertyChangeEvent", t, d),
659
659
  kind: "customPropertyChangeEvent",
660
660
  names: [h],
661
- params: X(p)
661
+ params: J(p)
662
662
  });
663
663
  if (K(_.key)) {
664
664
  if (n.type === "page")
665
665
  for (const { id: d, name: h, type: p } of o.meta.states)
666
666
  c.push({
667
- id: z("stateChangeEvent", "globality", d),
667
+ id: Z("stateChangeEvent", "globality", d),
668
668
  kind: "stateChangeEvent",
669
669
  names: [h],
670
- params: X(p)
670
+ params: J(p)
671
671
  });
672
672
  else if (n.type === "comp")
673
673
  for (const { id: d, name: h, type: p } of i.meta.states)
674
674
  c.push({
675
- id: z("stateChangeEvent", "globality", d),
675
+ id: Z("stateChangeEvent", "globality", d),
676
676
  kind: "stateChangeEvent",
677
677
  names: [h],
678
- params: X(p)
678
+ params: J(p)
679
679
  });
680
680
  }
681
681
  return c;
682
682
  }
683
- function Ye(t) {
683
+ function Fe(t) {
684
684
  if (!t)
685
685
  return;
686
686
  const { properties: e } = g.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = g.app, c = Mt(n.type, n.subtype);
687
687
  if (!c)
688
688
  return;
689
- const { kind: u, nodeId: l, eventKey: _ } = nn(t), d = n.nodes.find((p) => p.id === l);
689
+ const { kind: u, nodeId: l, eventKey: _ } = on(t), d = n.nodes.find((p) => p.id === l);
690
690
  if (!d)
691
691
  return;
692
- const h = tt[d.key];
692
+ const h = et[d.key];
693
693
  if (!h) {
694
694
  console.assert(!1, "invalid element", d.key);
695
695
  return;
@@ -704,7 +704,7 @@ function Ye(t) {
704
704
  params: p.params
705
705
  };
706
706
  } else if (u === "referenceEvent") {
707
- if (q(h.key) && d.reference && d.reference.comp) {
707
+ if (Q(h.key) && d.reference && d.reference.comp) {
708
708
  const p = a[d.reference.comp];
709
709
  if (p) {
710
710
  const m = p.meta.events.find((A) => A.id === _);
@@ -718,7 +718,7 @@ function Ye(t) {
718
718
  }
719
719
  }
720
720
  } else if (u === "multipleRefEvent") {
721
- if (Q(h.key) && d.reference && d.reference.comp) {
721
+ if (z(h.key) && d.reference && d.reference.comp) {
722
722
  const p = a[d.reference.comp];
723
723
  if (p) {
724
724
  const m = p.meta.events.find((A) => A.id === _);
@@ -752,11 +752,11 @@ function Ye(t) {
752
752
  id: t,
753
753
  kind: u,
754
754
  names: p.names,
755
- params: X(jn(p.raw))
755
+ params: J(Wn(p.raw))
756
756
  };
757
757
  }
758
758
  } else if (u === "referencePropertyChangeEvent") {
759
- if (q(h.key) && d.reference && d.reference.comp) {
759
+ if (Q(h.key) && d.reference && d.reference.comp) {
760
760
  const p = a[d.reference.comp];
761
761
  if (p) {
762
762
  const m = p.meta.properties.find(
@@ -767,12 +767,12 @@ function Ye(t) {
767
767
  id: t,
768
768
  kind: u,
769
769
  names: [m.name],
770
- params: X(m.type)
770
+ params: J(m.type)
771
771
  };
772
772
  }
773
773
  }
774
774
  } else if (u === "multipleRefPropertyChangeEvent") {
775
- if (Q(h.key) && d.reference && d.reference.comp) {
775
+ if (z(h.key) && d.reference && d.reference.comp) {
776
776
  const p = a[d.reference.comp];
777
777
  if (p) {
778
778
  const m = p.meta.properties.find(
@@ -783,7 +783,7 @@ function Ye(t) {
783
783
  id: t,
784
784
  kind: u,
785
785
  names: [m.name],
786
- params: X(m.type)
786
+ params: J(m.type)
787
787
  };
788
788
  }
789
789
  }
@@ -797,7 +797,7 @@ function Ye(t) {
797
797
  id: t,
798
798
  kind: u,
799
799
  names: [p.name],
800
- params: X(p.type)
800
+ params: J(p.type)
801
801
  };
802
802
  }
803
803
  } else if (u === "stateChangeEvent" && K(h.key)) {
@@ -810,7 +810,7 @@ function Ye(t) {
810
810
  id: t,
811
811
  kind: u,
812
812
  names: [p.name],
813
- params: X(p.type)
813
+ params: J(p.type)
814
814
  };
815
815
  } else if (n.type === "comp") {
816
816
  const p = i.meta.states.find(
@@ -821,23 +821,23 @@ function Ye(t) {
821
821
  id: t,
822
822
  kind: u,
823
823
  names: [p.name],
824
- params: X(p.type)
824
+ params: J(p.type)
825
825
  };
826
826
  }
827
827
  }
828
828
  }
829
829
  function Ni(t) {
830
- const e = [], n = qe(t);
830
+ const e = [], n = Qe(t);
831
831
  for (const { id: o, kind: i, names: a } of n)
832
832
  e.push([Ie(i, a), o]);
833
833
  return k(e);
834
834
  }
835
- function zn() {
835
+ function Qn() {
836
836
  const { activeObject: t, activeComp: e } = g.app, n = [];
837
837
  if (t.type === "comp")
838
838
  for (const { id: o, name: i, params: a } of e.meta.events)
839
839
  n.push({
840
- id: z("customEvent", "globality", o),
840
+ id: Z("customEvent", "globality", o),
841
841
  kind: "customEvent",
842
842
  names: [i],
843
843
  params: dt(a)
@@ -847,7 +847,7 @@ function zn() {
847
847
  function kn(t) {
848
848
  if (!t)
849
849
  return;
850
- const { activeObject: e, activeComp: n } = g.app, { kind: o, nodeId: i, eventKey: a } = nn(t);
850
+ const { activeObject: e, activeComp: n } = g.app, { kind: o, nodeId: i, eventKey: a } = on(t);
851
851
  if (o === "customEvent" && i === "globality" && e.type === "comp") {
852
852
  const c = n.meta.events.find(
853
853
  (u) => u.id === a
@@ -862,7 +862,7 @@ function kn(t) {
862
862
  }
863
863
  }
864
864
  function Li() {
865
- const t = [], e = zn();
865
+ const t = [], e = Qn();
866
866
  for (const { id: n, kind: o, names: i } of e)
867
867
  t.push([Ie(o, i), n]);
868
868
  return k(t);
@@ -879,11 +879,11 @@ function Rt(t) {
879
879
  e.push({ key: n, name: o, type: i });
880
880
  return e;
881
881
  }
882
- function Qe(t) {
882
+ function ze(t) {
883
883
  const { activeObject: e, depends: n } = g.app, o = [], i = e.nodes.find((c) => c.id === t);
884
884
  if (!i)
885
885
  return o;
886
- const a = tt[i.key];
886
+ const a = et[i.key];
887
887
  if (!a)
888
888
  return console.assert(!1, "inavlid element", i.key), o;
889
889
  for (const { key: c, name: u, inputs: l, outputs: _ } of a.methods)
@@ -894,7 +894,7 @@ function Qe(t) {
894
894
  inputs: l,
895
895
  outputs: _
896
896
  });
897
- if (q(a.key) && i.reference && i.reference.comp) {
897
+ if (Q(a.key) && i.reference && i.reference.comp) {
898
898
  const c = n[i.reference.comp];
899
899
  if (c)
900
900
  for (const { id: u, name: l, inputs: _, outputs: d } of c.meta.methods)
@@ -906,7 +906,7 @@ function Qe(t) {
906
906
  outputs: Rt(d)
907
907
  });
908
908
  }
909
- if (Q(a.key) && i.reference && i.reference.comp) {
909
+ if (z(a.key) && i.reference && i.reference.comp) {
910
910
  const c = n[i.reference.comp];
911
911
  if (c)
912
912
  for (const { id: u, name: l, inputs: _, outputs: d } of c.meta.methods)
@@ -920,13 +920,13 @@ function Qe(t) {
920
920
  }
921
921
  return K(a.key) && e.type, o;
922
922
  }
923
- function Fe(t) {
923
+ function we(t) {
924
924
  if (!t)
925
925
  return;
926
926
  const { activeObject: e, depends: n } = g.app, { kind: o, nodeId: i, methodKey: a } = Oe(t), c = e.nodes.find((l) => l.id === i);
927
927
  if (!c)
928
928
  return;
929
- const u = tt[c.key];
929
+ const u = et[c.key];
930
930
  if (!u) {
931
931
  console.assert(!1, "invalid element", c.key);
932
932
  return;
@@ -942,7 +942,7 @@ function Fe(t) {
942
942
  outputs: l.outputs
943
943
  };
944
944
  } else if (o === "referenceMethod") {
945
- if (q(u.key) && c.reference && c.reference.comp) {
945
+ if (Q(u.key) && c.reference && c.reference.comp) {
946
946
  const l = n[c.reference.comp];
947
947
  if (l) {
948
948
  const _ = l.meta.methods.find(
@@ -958,7 +958,7 @@ function Fe(t) {
958
958
  };
959
959
  }
960
960
  }
961
- } else if (o === "multipleRefMethod" && Q(u.key) && c.reference && c.reference.comp) {
961
+ } else if (o === "multipleRefMethod" && z(u.key) && c.reference && c.reference.comp) {
962
962
  const l = n[c.reference.comp];
963
963
  if (l) {
964
964
  const _ = l.meta.methods.find(
@@ -976,9 +976,9 @@ function Fe(t) {
976
976
  }
977
977
  }
978
978
  function Si(t) {
979
- const e = [], n = Qe(t);
979
+ const e = [], n = ze(t);
980
980
  for (const { id: o, kind: i, names: a } of n)
981
- e.push([on(i, a), o]);
981
+ e.push([ve(i, a), o]);
982
982
  return k(e);
983
983
  }
984
984
  function cn() {
@@ -1012,23 +1012,23 @@ function Dt(t) {
1012
1012
  };
1013
1013
  }
1014
1014
  }
1015
- function Zn() {
1015
+ function zn() {
1016
1016
  const t = [], e = cn();
1017
1017
  for (const { id: n, kind: o, names: i } of e)
1018
- t.push([on(o, i), n]);
1018
+ t.push([ve(o, i), n]);
1019
1019
  return k(t);
1020
1020
  }
1021
- function ze(t) {
1021
+ function Ze(t) {
1022
1022
  const e = Dt(t);
1023
1023
  return e ? e.outputs : [];
1024
1024
  }
1025
- function we(t, e) {
1025
+ function Ke(t, e) {
1026
1026
  const n = Dt(t);
1027
1027
  if (n)
1028
1028
  return n.outputs.find((o) => o.key === e);
1029
1029
  }
1030
1030
  function Bi(t) {
1031
- const e = [], n = ze(t);
1031
+ const e = [], n = Ze(t);
1032
1032
  for (const { name: o, key: i } of n)
1033
1033
  e.push([o, i]);
1034
1034
  return k(e);
@@ -1037,19 +1037,19 @@ function bi(t, e, n) {
1037
1037
  const { properties: o } = g.runtime, { activeObject: i, activePage: a, activeComp: c, depends: u } = g.app;
1038
1038
  if (t.events.length > 0)
1039
1039
  return !1;
1040
- if (q(t.key) && n) {
1040
+ if (Q(t.key) && n) {
1041
1041
  const l = u[n];
1042
1042
  if (l && l.meta.events.length > 0)
1043
1043
  return !1;
1044
1044
  }
1045
- if (Q(t.key) && n) {
1045
+ if (z(t.key) && n) {
1046
1046
  const l = u[n];
1047
1047
  if (l && l.meta.events.length > 0)
1048
1048
  return !1;
1049
1049
  }
1050
1050
  if (o[t.key] && o[t.key][e]) {
1051
1051
  for (const { keys: l, raw: _ } of o[t.key][e])
1052
- if (!ve(l, _))
1052
+ if (!Ce(l, _))
1053
1053
  return !1;
1054
1054
  }
1055
1055
  if (K(t.key) && i.type === "comp" && c.meta.properties.length > 0)
@@ -1067,12 +1067,12 @@ function Pi(t, e) {
1067
1067
  const { activeObject: n, depends: o } = g.app;
1068
1068
  if (t.methods.length > 0)
1069
1069
  return !1;
1070
- if (q(t.key) && e) {
1070
+ if (Q(t.key) && e) {
1071
1071
  const i = o[e];
1072
1072
  if (i && i.meta.methods.length > 0)
1073
1073
  return !1;
1074
1074
  }
1075
- if (Q(t.key) && e) {
1075
+ if (z(t.key) && e) {
1076
1076
  const i = o[e];
1077
1077
  if (i && i.meta.methods.length > 0)
1078
1078
  return !1;
@@ -1083,12 +1083,12 @@ function Ri(t, e, n) {
1083
1083
  const { properties: o } = g.runtime, { activeObject: i, activeComp: a, depends: c } = g.app;
1084
1084
  if (o[t.key] && o[t.key][e] && o[t.key][e].length > 0)
1085
1085
  return !1;
1086
- if (q(t.key) && n) {
1086
+ if (Q(t.key) && n) {
1087
1087
  const u = c[n];
1088
1088
  if (u && u.meta.properties.length > 0)
1089
1089
  return !1;
1090
1090
  }
1091
- if (Q(t.key) && n) {
1091
+ if (z(t.key) && n) {
1092
1092
  const u = c[n];
1093
1093
  if (u && u.meta.properties.length > 0)
1094
1094
  return !1;
@@ -1099,35 +1099,35 @@ function Di(t, e, n) {
1099
1099
  const { properties: o } = g.runtime, { activeObject: i, activeComp: a, depends: c } = g.app;
1100
1100
  if (o[t.key] && o[t.key][e]) {
1101
1101
  for (const { keys: u, raw: l } of o[t.key][e])
1102
- if (!ve(u, l))
1102
+ if (!Ce(u, l))
1103
1103
  return !1;
1104
1104
  }
1105
- if (q(t.key) && n) {
1105
+ if (Q(t.key) && n) {
1106
1106
  const u = c[n];
1107
1107
  if (u && u.meta.properties.length > 0)
1108
1108
  return !1;
1109
1109
  }
1110
- if (Q(t.key) && n) {
1110
+ if (z(t.key) && n) {
1111
1111
  const u = c[n];
1112
1112
  if (u && u.meta.properties.length > 0)
1113
1113
  return !1;
1114
1114
  }
1115
1115
  return !(K(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1116
1116
  }
1117
- function to(t, e, n, o) {
1117
+ function Zn(t, e, n, o) {
1118
1118
  return t ? t === "onEvent" ? bi(e, n, o) : t === "callMethod" ? Pi(e, o) : t === "getProperty" ? Ri(e, n, o) : t === "setProperty" ? Di(e, n, o) : !1 : !1;
1119
1119
  }
1120
- function j(t) {
1120
+ function X(t) {
1121
1121
  const { activeObject: e } = g.app, n = Mt(e.type, e.subtype);
1122
1122
  if (!n)
1123
1123
  return !1;
1124
1124
  for (const o of e.nodes) {
1125
- const i = tt[o.key];
1125
+ const i = et[o.key];
1126
1126
  if (!i) {
1127
1127
  console.assert(!1, "invalid element", o.key);
1128
1128
  continue;
1129
1129
  }
1130
- if (!to(t, i, n, o.reference?.comp))
1130
+ if (!Zn(t, i, n, o.reference?.comp))
1131
1131
  return !0;
1132
1132
  }
1133
1133
  return !1;
@@ -1137,12 +1137,12 @@ function Jt(t) {
1137
1137
  if (!o)
1138
1138
  return n;
1139
1139
  for (const i of e.nodes) {
1140
- const a = tt[i.key];
1140
+ const a = et[i.key];
1141
1141
  if (!a) {
1142
1142
  console.assert(!1, "invalid element", i.key);
1143
1143
  continue;
1144
1144
  }
1145
- to(t, a, o, i.reference?.comp) || n.push({
1145
+ Zn(t, a, o, i.reference?.comp) || n.push({
1146
1146
  id: i.id,
1147
1147
  key: i.key,
1148
1148
  name: a.name,
@@ -1155,7 +1155,7 @@ function ft(t) {
1155
1155
  const { activeObject: e } = g.app, n = e.nodes.find((i) => i.id === t);
1156
1156
  if (!n)
1157
1157
  return;
1158
- const o = tt[n.key];
1158
+ const o = et[n.key];
1159
1159
  if (!o) {
1160
1160
  console.assert(!1, "invalid element", n.key);
1161
1161
  return;
@@ -1167,8 +1167,8 @@ function ft(t) {
1167
1167
  alias: n.alias
1168
1168
  };
1169
1169
  }
1170
- function Ce(t) {
1171
- const { i18n: e } = vt, n = [], o = Jt(t);
1170
+ function ke(t) {
1171
+ const { i18n: e } = yt, n = [], o = Jt(t);
1172
1172
  for (const { id: i, name: a, alias: c } of o) {
1173
1173
  let u = e.global.t(a);
1174
1174
  c && (u += " / " + c), n.push([u, i]);
@@ -1182,12 +1182,12 @@ function Ht(t, e) {
1182
1182
  const l = o.nodes.find((d) => d.id === t);
1183
1183
  if (!l)
1184
1184
  return c;
1185
- const _ = tt[l.key];
1185
+ const _ = et[l.key];
1186
1186
  if (!_)
1187
1187
  return console.assert(!1, "invalid element", l.key), c;
1188
1188
  if (n[_.key] && n[_.key][u])
1189
1189
  for (const { keys: d, names: h, raw: p } of n[_.key][u])
1190
- e === "write" && ve(d, p) || c.push({
1190
+ e === "write" && Ce(d, p) || c.push({
1191
1191
  id: Zt("elementProperty", t, d),
1192
1192
  kind: "elementProperty",
1193
1193
  names: h,
@@ -1196,7 +1196,7 @@ function Ht(t, e) {
1196
1196
  raw: p
1197
1197
  }
1198
1198
  });
1199
- if (q(_.key) && l.reference && l.reference.comp) {
1199
+ if (Q(_.key) && l.reference && l.reference.comp) {
1200
1200
  const d = a[l.reference.comp];
1201
1201
  if (d)
1202
1202
  for (const { id: h, name: p, type: m } of d.meta.properties)
@@ -1209,7 +1209,7 @@ function Ht(t, e) {
1209
1209
  }
1210
1210
  });
1211
1211
  }
1212
- if (Q(_.key) && l.reference && l.reference.comp) {
1212
+ if (z(_.key) && l.reference && l.reference.comp) {
1213
1213
  const d = a[l.reference.comp];
1214
1214
  if (d)
1215
1215
  for (const { id: h, name: p, type: m } of d.meta.properties)
@@ -1234,7 +1234,7 @@ function Ht(t, e) {
1234
1234
  });
1235
1235
  return c;
1236
1236
  }
1237
- function yt(t) {
1237
+ function vt(t) {
1238
1238
  if (!t)
1239
1239
  return;
1240
1240
  const { properties: e } = g.runtime, { activeObject: n, activeComp: o, depends: i } = g.app, a = Mt(n.type, n.subtype);
@@ -1243,7 +1243,7 @@ function yt(t) {
1243
1243
  const { kind: c, nodeId: u, propertyKey: l } = Jo(t), _ = n.nodes.find((h) => h.id === u);
1244
1244
  if (!_)
1245
1245
  return;
1246
- const d = tt[_.key];
1246
+ const d = et[_.key];
1247
1247
  if (!d) {
1248
1248
  console.assert(!1, "invalid element", _.key);
1249
1249
  return;
@@ -1265,7 +1265,7 @@ function yt(t) {
1265
1265
  };
1266
1266
  }
1267
1267
  } else if (c === "referenceProperty") {
1268
- if (q(d.key) && _.reference && _.reference.comp) {
1268
+ if (Q(d.key) && _.reference && _.reference.comp) {
1269
1269
  const h = i[_.reference.comp];
1270
1270
  if (h) {
1271
1271
  const p = h.meta.properties.find(
@@ -1283,7 +1283,7 @@ function yt(t) {
1283
1283
  }
1284
1284
  }
1285
1285
  } else if (c === "multipleRefProperty") {
1286
- if (Q(d.key) && _.reference && _.reference.comp) {
1286
+ if (z(d.key) && _.reference && _.reference.comp) {
1287
1287
  const h = i[_.reference.comp];
1288
1288
  if (h) {
1289
1289
  const p = h.meta.properties.find(
@@ -1315,10 +1315,10 @@ function yt(t) {
1315
1315
  };
1316
1316
  }
1317
1317
  }
1318
- function eo(t, e) {
1318
+ function to(t, e) {
1319
1319
  const n = [], o = Ht(t, e);
1320
1320
  for (const { id: i, kind: a, names: c } of o)
1321
- n.push([wn(a, c), i]);
1321
+ n.push([Fn(a, c), i]);
1322
1322
  return k(n);
1323
1323
  }
1324
1324
  function rn() {
@@ -1332,7 +1332,7 @@ function ue(t) {
1332
1332
  if (e.type === "comp")
1333
1333
  return o.meta.states.find((i) => i.id === t);
1334
1334
  }
1335
- function no() {
1335
+ function eo() {
1336
1336
  const t = [], e = rn();
1337
1337
  for (const { id: n, name: o } of e)
1338
1338
  t.push([o, n]);
@@ -1363,7 +1363,7 @@ const Mi = {
1363
1363
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1364
1364
  const e = this.getField("NODE");
1365
1365
  e.getOptions(!1), e.setValue(this.node.id);
1366
- const n = qe(this.node.id)?.[0];
1366
+ const n = Qe(this.node.id)?.[0];
1367
1367
  if (!n)
1368
1368
  return;
1369
1369
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
@@ -1382,7 +1382,7 @@ const Mi = {
1382
1382
  }, 0);
1383
1383
  },
1384
1384
  genNodeOpts_: function() {
1385
- return Ce("onEvent");
1385
+ return ke("onEvent");
1386
1386
  },
1387
1387
  genEventOpts_: function() {
1388
1388
  return Ni(this.node.id);
@@ -1406,14 +1406,14 @@ const Mi = {
1406
1406
  const n = this.node.key !== e.key;
1407
1407
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1408
1408
  const o = this.getField("EVENT");
1409
- if (o.getOptions(!1), n || !Ye(this.event.id)) {
1410
- const i = qe(this.node.id)?.[0];
1409
+ if (o.getOptions(!1), n || !Fe(this.event.id)) {
1410
+ const i = Qe(this.node.id)?.[0];
1411
1411
  o.setValue(i?.id ?? "");
1412
1412
  }
1413
1413
  this.onEventChange_(o.getValue());
1414
1414
  },
1415
1415
  onEventChange_: function(t) {
1416
- const e = Ye(t);
1416
+ const e = Fe(t);
1417
1417
  e ? (this.event.id = e.id, this.event.kind = e.kind, this.event.names = e.names, this.event.params = e.params) : (this.event.id = "", this.event.kind = "", this.event.names = [], this.event.params = []), this.updateShape_(), setTimeout(() => {
1418
1418
  this.ensureBlocks_();
1419
1419
  }, 0);
@@ -1425,7 +1425,7 @@ const Mi = {
1425
1425
  }
1426
1426
  for (let e = 0; e < this.event.params.length; e++)
1427
1427
  this.getInput("PARAM" + e) || (this.appendValueInput("PARAM" + e), this.moveInputBefore("PARAM" + e, "HANDLE"));
1428
- const { kind: t } = nn(this.event.id);
1428
+ const { kind: t } = on(this.event.id);
1429
1429
  if (t === "multipleRefEvent")
1430
1430
  this.getInput("REF_KEY") || this.appendValueInput("REF_KEY"), this.event.params.length > 0 ? this.moveInputBefore("REF_KEY", "PARAM0") : this.moveInputBefore("REF_KEY", "HANDLE");
1431
1431
  else if (this.getInput("REF_KEY")) {
@@ -1454,7 +1454,7 @@ const Mi = {
1454
1454
  return;
1455
1455
  }
1456
1456
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1457
- const e = Ye(this.event.id);
1457
+ const e = Fe(this.event.id);
1458
1458
  if (!e) {
1459
1459
  this.setWarningText(f("WARN_EVENT_NOT_FOUND"));
1460
1460
  return;
@@ -1463,7 +1463,7 @@ const Mi = {
1463
1463
  this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1464
1464
  return;
1465
1465
  }
1466
- if (M(e.names, this.event.names) || (this.event.names = e.names), !M(e.params, this.event.params)) {
1466
+ if (U(e.names, this.event.names) || (this.event.names = e.names), !U(e.params, this.event.params)) {
1467
1467
  this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1468
1468
  return;
1469
1469
  }
@@ -1497,7 +1497,7 @@ const Ui = {
1497
1497
  initData_: function() {
1498
1498
  if (this.event.id)
1499
1499
  return;
1500
- const t = zn()?.[0];
1500
+ const t = Qn()?.[0];
1501
1501
  if (!t)
1502
1502
  return;
1503
1503
  this.event.id = t.id, this.event.kind = t.kind, this.event.names = t.names, this.event.params = t.params;
@@ -1564,7 +1564,7 @@ const Ui = {
1564
1564
  this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1565
1565
  return;
1566
1566
  }
1567
- if (M(t.names, this.event.names) || (this.event.names = t.names), !M(t.params, this.event.params)) {
1567
+ if (U(t.names, this.event.names) || (this.event.names = t.names), !U(t.params, this.event.params)) {
1568
1568
  this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1569
1569
  return;
1570
1570
  }
@@ -1644,7 +1644,7 @@ const Vi = {
1644
1644
  }, 0);
1645
1645
  },
1646
1646
  updateShape_: function() {
1647
- this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("TEXT") || (this.appendValueInput("TEXT").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TEXT}"), this.moveInputBefore("TEXT", "RESULT")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "TEXT"));
1647
+ this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("TEXT") || (this.appendValueInput("TEXT").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_TEXT}"), this.moveInputBefore("TEXT", "RESULT")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "TEXT"));
1648
1648
  },
1649
1649
  updateShadow_: function() {
1650
1650
  if (this.isInsertionMarker())
@@ -1681,7 +1681,7 @@ const xi = {
1681
1681
  }, 0);
1682
1682
  },
1683
1683
  updateShape_: function() {
1684
- this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("VALUE") || (this.appendValueInput("VALUE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_VALUE}"), this.moveInputBefore("VALUE", "RESULT")), this.getInput("LABEL") || (this.appendValueInput("LABEL").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_LABEL}"), this.moveInputBefore("LABEL", "VALUE")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "LABEL"));
1684
+ this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("VALUE") || (this.appendValueInput("VALUE").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_VALUE}"), this.moveInputBefore("VALUE", "RESULT")), this.getInput("LABEL") || (this.appendValueInput("LABEL").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_LABEL}"), this.moveInputBefore("LABEL", "VALUE")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "LABEL"));
1685
1685
  },
1686
1686
  updateShadow_: function() {
1687
1687
  if (this.isInsertionMarker())
@@ -1765,7 +1765,7 @@ const Yi = {
1765
1765
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1766
1766
  const e = this.getField("NODE");
1767
1767
  e.getOptions(!1), e.setValue(this.node.id);
1768
- const n = Qe(this.node.id)?.[0];
1768
+ const n = ze(this.node.id)?.[0];
1769
1769
  if (!n)
1770
1770
  return;
1771
1771
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
@@ -1784,7 +1784,7 @@ const Yi = {
1784
1784
  }, 0);
1785
1785
  },
1786
1786
  genNodeOpts_: function() {
1787
- return Ce("callMethod");
1787
+ return ke("callMethod");
1788
1788
  },
1789
1789
  genMethodOpts_: function() {
1790
1790
  return Si(this.node.id);
@@ -1808,14 +1808,14 @@ const Yi = {
1808
1808
  const n = this.node.key !== e.key;
1809
1809
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1810
1810
  const o = this.getField("METHOD");
1811
- if (o.getOptions(!1), n || !Fe(this.method.id)) {
1812
- const i = Qe(this.node.id)?.[0];
1811
+ if (o.getOptions(!1), n || !we(this.method.id)) {
1812
+ const i = ze(this.node.id)?.[0];
1813
1813
  o.setValue(i?.id ?? "");
1814
1814
  }
1815
1815
  this.onMethodChange_(o.getValue());
1816
1816
  },
1817
1817
  onMethodChange_: function(t) {
1818
- const e = Fe(t);
1818
+ const e = we(t);
1819
1819
  e ? (this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names, this.method.inputs = e.inputs, this.method.outputs = e.outputs) : (this.method.id = "", this.method.kind = "", this.method.names = [], this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShadow_(), setTimeout(() => {
1820
1820
  this.ensureBlocks_();
1821
1821
  }, 0);
@@ -1836,10 +1836,10 @@ const Yi = {
1836
1836
  this.removeInput("INPUT" + t);
1837
1837
  for (let t = 0; t < this.method.inputs.length; t++) {
1838
1838
  const e = this.method.inputs[t];
1839
- this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(Rn[e.name]), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + t, "OUTPUT0"));
1839
+ this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t).setAlign(y.Align.RIGHT).appendField(f(e.name)), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + t, "OUTPUT0"));
1840
1840
  }
1841
- if (this.method.kind === "referenceMethod")
1842
- this.getInput("REF_KEY") || this.appendValueInput("REF_KEY"), this.method.inputs.length > 0 ? this.moveInputBefore("REF_KEY", "INPUT0") : this.method.outputs.length > 0 && this.moveInputBefore("REF_KEY", "OUTPUT0");
1841
+ if (this.method.kind === "multipleRefMethod")
1842
+ this.getInput("REF_KEY") || this.appendValueInput("REF_KEY").setAlign(y.Align.RIGHT).appendField(f("BKY_APP_REF_KEY")), this.method.inputs.length > 0 ? this.moveInputBefore("REF_KEY", "INPUT0") : this.method.outputs.length > 0 && this.moveInputBefore("REF_KEY", "OUTPUT0");
1843
1843
  else if (this.getInput("REF_KEY")) {
1844
1844
  const t = this.getInput("REF_KEY").connection.targetBlock();
1845
1845
  t && t.dispose(), this.removeInput("REF_KEY");
@@ -1858,7 +1858,7 @@ const Yi = {
1858
1858
  ensureBlocks_: function() {
1859
1859
  if (this.isInsertionMarker())
1860
1860
  return;
1861
- const { kind: t } = Oe(this.method.id), e = Kn(t), n = [];
1861
+ const { kind: t } = Oe(this.method.id), e = wn(t), n = [];
1862
1862
  for (let o = 0; o < this.method.outputs.length; o++) {
1863
1863
  const { key: i, name: a } = this.method.outputs[o];
1864
1864
  n.push(["OUTPUT" + o, `__output$${i}__`, a, e]);
@@ -1876,7 +1876,7 @@ const Yi = {
1876
1876
  return;
1877
1877
  }
1878
1878
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1879
- const e = Fe(this.method.id);
1879
+ const e = we(this.method.id);
1880
1880
  if (!e) {
1881
1881
  this.setWarningText(f("WARN_METHOD_NOT_FOUND"));
1882
1882
  return;
@@ -1885,11 +1885,11 @@ const Yi = {
1885
1885
  this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1886
1886
  return;
1887
1887
  }
1888
- if (M(e.names, this.method.names) || (this.method.names = e.names), !M(e.inputs, this.method.inputs)) {
1888
+ if (U(e.names, this.method.names) || (this.method.names = e.names), !U(e.inputs, this.method.inputs)) {
1889
1889
  this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1890
1890
  return;
1891
1891
  }
1892
- if (!M(e.outputs, this.method.outputs)) {
1892
+ if (!U(e.outputs, this.method.outputs)) {
1893
1893
  this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1894
1894
  return;
1895
1895
  }
@@ -1898,15 +1898,50 @@ const Yi = {
1898
1898
  };
1899
1899
  E.call_app_method_v1 = Yi;
1900
1900
  s.forBlock.call_app_method_v1 = function(t) {
1901
- const e = s.quote_, n = t;
1902
- if (n.method.outputs.length > 0) {
1903
- const o = s.statementToCode(n, "HANDLE");
1901
+ const e = s.INDENT, n = s.quote_, o = t;
1902
+ let i;
1903
+ o.method.kind === "multipleRefMethod" && (i = s.valueToCode(o, "REF_KEY", r.NONE) || "''");
1904
+ let a = "{";
1905
+ if (o.method.inputs.forEach(({ key: c, type: u }, l) => {
1906
+ let _ = s.valueToCode(
1907
+ o,
1908
+ "INPUT" + l,
1909
+ r.ATOMIC
1910
+ );
1911
+ if (_ === void 0)
1912
+ switch (u) {
1913
+ case "string":
1914
+ _ = "''";
1915
+ break;
1916
+ case "number":
1917
+ _ = "0";
1918
+ break;
1919
+ case "boolean":
1920
+ _ = "false";
1921
+ break;
1922
+ case "array":
1923
+ _ = "[]";
1924
+ break;
1925
+ case "object":
1926
+ _ = "{}";
1927
+ break;
1928
+ default:
1929
+ _ = "null";
1930
+ }
1931
+ a !== "{" && (a += ", "), a += `${n(c)}: ${_}`;
1932
+ }), a += "}", o.method.outputs.length > 0) {
1933
+ let c = "";
1934
+ o.method.outputs.forEach(({ key: _ }) => {
1935
+ c += `${e}__output$${_}__ = __outputs__[${n(_)}];
1936
+ `;
1937
+ });
1938
+ const u = s.statementToCode(o, "HANDLE");
1904
1939
  return `{
1905
- __callMethodV1__(${e(n.method.id)});
1906
- ${o}}
1940
+ var __outputs__ = __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
1941
+ ${c}${u}}
1907
1942
  `;
1908
1943
  } else
1909
- return `__callMethodV1__(${e(n.method.id)});
1944
+ return `__callMethodV1__(${n(o.method.id)}, ${i}, ${a});
1910
1945
  `;
1911
1946
  };
1912
1947
  const Fi = {
@@ -1916,10 +1951,10 @@ const Fi = {
1916
1951
  kind: "",
1917
1952
  names: [],
1918
1953
  inputs: []
1919
- }, this.appendDummyInput().appendField("%{BKY_APP_V1_IMPL_APP_METHOD_TITLE}").appendField(
1954
+ }, this.appendDummyInput().appendField("%{BKY_APP_V1_IMPLEMENT_APP_METHOD_TITLE}").appendField(
1920
1955
  new O(() => this.genMethodOpts_()),
1921
1956
  "METHOD"
1922
- ), this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_IMPL_APP_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_IMPL_APP_METHOD_HELPURL}"), this.initData_();
1957
+ ), this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_IMPLEMENT_APP_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_IMPLEMENT_APP_METHOD_HELPURL}"), this.initData_();
1923
1958
  },
1924
1959
  initData_: function() {
1925
1960
  const t = cn()?.[0];
@@ -1940,7 +1975,7 @@ const Fi = {
1940
1975
  }, 0);
1941
1976
  },
1942
1977
  genMethodOpts_: function() {
1943
- return Zn();
1978
+ return zn();
1944
1979
  },
1945
1980
  onchange: function(t) {
1946
1981
  if (t.type === b.STATE_CHANGE)
@@ -1964,12 +1999,12 @@ const Fi = {
1964
1999
  e && e.dispose(), this.removeInput("INPUT" + t);
1965
2000
  }
1966
2001
  for (let t = 0; t < this.method.inputs.length; t++)
1967
- this.appendValueInput("INPUT" + t), this.moveInputBefore("INPUT" + t, "HANDLE");
2002
+ this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t), this.moveInputBefore("INPUT" + t, "HANDLE"));
1968
2003
  },
1969
2004
  ensureBlocks_: function() {
1970
2005
  if (this.isInsertionMarker() || !this.method.id)
1971
2006
  return;
1972
- const t = Kn(this.method.kind), e = [];
2007
+ const t = wn(this.method.kind), e = [];
1973
2008
  for (let n = 0; n < this.method.inputs.length; n++) {
1974
2009
  const { key: o, name: i } = this.method.inputs[n];
1975
2010
  e.push(["INPUT" + n, `__input$${o}__`, i, t]);
@@ -1986,19 +2021,26 @@ const Fi = {
1986
2021
  this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1987
2022
  return;
1988
2023
  }
1989
- if (M(t.names, this.method.names) || (this.method.names = t.names), !M(t.inputs, this.method.inputs)) {
2024
+ if (U(t.names, this.method.names) || (this.method.names = t.names), !U(t.inputs, this.method.inputs)) {
1990
2025
  this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1991
2026
  return;
1992
2027
  }
1993
2028
  this.setWarningText(null);
1994
2029
  }
1995
2030
  };
1996
- E.impl_app_method_v1 = Fi;
1997
- s.forBlock.impl_app_method_v1 = function(t) {
1998
- const e = t, { methodKey: n } = Oe(e.method.id), o = s.statementToCode(e, "HANDLE");
1999
- return `function __implMethod$${n}__() {
2000
- var __outputs__ = {};
2001
- ${o}}
2031
+ E.implement_app_method_v1 = Fi;
2032
+ s.forBlock.implement_app_method_v1 = function(t) {
2033
+ const e = s.INDENT, n = s.quote_, o = t, { methodKey: i } = Oe(o.method.id);
2034
+ let a = "";
2035
+ o.method.inputs.forEach(({ key: l }) => {
2036
+ a += `${e}var __input$${l}__ = __inputs__[${n(l)}];
2037
+ `;
2038
+ });
2039
+ const c = s.statementToCode(o, "HANDLE");
2040
+ return `function __implementMethod$${i}__(__inputs__) {
2041
+ ${a}${e}var __outputs__ = {};
2042
+ ${c}${e}return __outputs__;
2043
+ }
2002
2044
  `;
2003
2045
  };
2004
2046
  const wi = {
@@ -2028,7 +2070,7 @@ const wi = {
2028
2070
  this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
2029
2071
  const e = this.getField("METHOD");
2030
2072
  e.getOptions(!1), e.setValue(this.method.id);
2031
- const n = ze(this.method.id)?.[0];
2073
+ const n = Ze(this.method.id)?.[0];
2032
2074
  if (!n)
2033
2075
  return;
2034
2076
  this.output.key = n.key, this.output.name = n.name, this.output.type = n.type;
@@ -2047,7 +2089,7 @@ const wi = {
2047
2089
  }, 0);
2048
2090
  },
2049
2091
  genMethodOpts_: function() {
2050
- return Zn();
2092
+ return zn();
2051
2093
  },
2052
2094
  genOutputOpts_: function() {
2053
2095
  return Bi(this.method.id);
@@ -2071,14 +2113,14 @@ const wi = {
2071
2113
  const n = this.method.id !== e.id;
2072
2114
  this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names;
2073
2115
  const o = this.getField("OUTPUT");
2074
- if (o.getOptions(!1), n || !we(this.method.id, this.output.key)) {
2075
- const i = ze(this.method.id)?.[0];
2116
+ if (o.getOptions(!1), n || !Ke(this.method.id, this.output.key)) {
2117
+ const i = Ze(this.method.id)?.[0];
2076
2118
  o.setValue(i?.key ?? "");
2077
2119
  }
2078
2120
  this.onOutputChange_(o.getValue());
2079
2121
  },
2080
2122
  onOutputChange_: function(t) {
2081
- const e = we(this.method.id, t);
2123
+ const e = Ke(this.method.id, t);
2082
2124
  e ? (this.output.key = e.key, this.output.name = e.name, this.output.type = e.type) : (this.output.key = "", this.output.name = "", this.output.type = "string");
2083
2125
  },
2084
2126
  updateShape_: function() {
@@ -2106,7 +2148,7 @@ const wi = {
2106
2148
  return;
2107
2149
  }
2108
2150
  t.names !== this.method.names && (this.method.names = t.names);
2109
- const e = we(this.method.id, this.output.key);
2151
+ const e = Ke(this.method.id, this.output.key);
2110
2152
  if (!e) {
2111
2153
  this.setWarningText(f("WARN_OUTPUT_NOT_FOUND"));
2112
2154
  return;
@@ -2181,13 +2223,13 @@ const Ki = {
2181
2223
  initData_: function() {
2182
2224
  if (this.app.id)
2183
2225
  return;
2184
- const t = Jn()?.[0];
2226
+ const t = Xn()?.[0];
2185
2227
  if (!t)
2186
2228
  return;
2187
2229
  this.app.id = t.id, this.app.name = t.name;
2188
2230
  const e = this.getField("APP");
2189
2231
  e.getOptions(!1), e.setValue(this.app.id);
2190
- const n = Je(this.app.id)?.[0];
2232
+ const n = qe(this.app.id)?.[0];
2191
2233
  if (!n)
2192
2234
  return;
2193
2235
  this.page.id = n.id, this.page.name = n.name;
@@ -2206,7 +2248,7 @@ const Ki = {
2206
2248
  }, 0);
2207
2249
  },
2208
2250
  genAppOpts_: function() {
2209
- return vi();
2251
+ return yi();
2210
2252
  },
2211
2253
  genPageOpts_: function() {
2212
2254
  return Ci(this.app.id);
@@ -2222,7 +2264,7 @@ const Ki = {
2222
2264
  }
2223
2265
  },
2224
2266
  onAppChange_: function(t) {
2225
- const e = vn(t);
2267
+ const e = yn(t);
2226
2268
  if (!e) {
2227
2269
  console.assert(!1);
2228
2270
  return;
@@ -2230,23 +2272,23 @@ const Ki = {
2230
2272
  const n = this.app.id !== e.id;
2231
2273
  this.app.id = e.id, this.app.name = e.name;
2232
2274
  const o = this.getField("PAGE");
2233
- if (o.getOptions(!1), n || !xe(this.app.id, this.page.id)) {
2234
- const a = Je(this.app.id)?.[0]?.id ?? "";
2275
+ if (o.getOptions(!1), n || !Ye(this.app.id, this.page.id)) {
2276
+ const a = qe(this.app.id)?.[0]?.id ?? "";
2235
2277
  o.setValue(a), this.page.id === a && this.onPageChange_(a);
2236
2278
  }
2237
2279
  },
2238
2280
  onPageChange_: function(t) {
2239
- const e = xe(this.app.id, t);
2281
+ const e = Ye(this.app.id, t);
2240
2282
  e ? (this.page.id = e.id, this.page.name = e.name) : (this.page.id = "", this.page.name = "");
2241
2283
  },
2242
2284
  checkWarning_: function() {
2243
- const t = vn(this.app.id);
2285
+ const t = yn(this.app.id);
2244
2286
  if (!t) {
2245
2287
  this.setWarningText(f("WARN_APP_NOT_FOUND"));
2246
2288
  return;
2247
2289
  }
2248
2290
  t.name !== this.app.name && (this.app.name = t.name);
2249
- const e = xe(this.app.id, this.page.id);
2291
+ const e = Ye(this.app.id, this.page.id);
2250
2292
  if (!e) {
2251
2293
  this.setWarningText(f("WARN_PAGE_NOT_FOUND"));
2252
2294
  return;
@@ -2270,7 +2312,7 @@ const $i = {
2270
2312
  initData_: function() {
2271
2313
  if (this.comp.id !== void 0)
2272
2314
  return;
2273
- const t = Qn()?.[0];
2315
+ const t = qn()?.[0];
2274
2316
  if (!t)
2275
2317
  return;
2276
2318
  this.comp.id = t.id, this.comp.name = t.name;
@@ -2368,10 +2410,10 @@ const Hi = {
2368
2410
  }, 0);
2369
2411
  },
2370
2412
  genNodeOpts_: function() {
2371
- return Ce("getProperty");
2413
+ return ke("getProperty");
2372
2414
  },
2373
2415
  genPropertyOpts_: function() {
2374
- return eo(this.node.id, "read");
2416
+ return to(this.node.id, "read");
2375
2417
  },
2376
2418
  onchange: function(t) {
2377
2419
  if (t.type === b.STATE_CHANGE)
@@ -2392,14 +2434,14 @@ const Hi = {
2392
2434
  const n = this.node.key !== e.key;
2393
2435
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2394
2436
  const o = this.getField("PROPERTY");
2395
- if (o.getOptions(!1), n || !yt(this.property.id)) {
2437
+ if (o.getOptions(!1), n || !vt(this.property.id)) {
2396
2438
  const i = Ht(this.node.id, "read")?.[0];
2397
2439
  o.setValue(i?.id ?? "");
2398
2440
  }
2399
2441
  this.onPropChange_(o.getValue());
2400
2442
  },
2401
2443
  onPropChange_: function(t) {
2402
- const e = yt(t);
2444
+ const e = vt(t);
2403
2445
  e ? (this.property.id = e.id, this.property.kind = e.kind, this.property.names = e.names) : (this.property.id = "", this.property.kind = "", this.property.names = []);
2404
2446
  },
2405
2447
  checkWarning_: function() {
@@ -2413,7 +2455,7 @@ const Hi = {
2413
2455
  return;
2414
2456
  }
2415
2457
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2416
- const e = yt(this.property.id);
2458
+ const e = vt(this.property.id);
2417
2459
  if (!e) {
2418
2460
  this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2419
2461
  return;
@@ -2422,7 +2464,7 @@ const Hi = {
2422
2464
  this.setWarningText(f("WARN_PROPERTY_HAS_CHANGED"));
2423
2465
  return;
2424
2466
  }
2425
- M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
2467
+ U(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
2426
2468
  }
2427
2469
  };
2428
2470
  E.get_app_property_v1 = Hi;
@@ -2473,10 +2515,10 @@ const Gi = {
2473
2515
  }, 0);
2474
2516
  },
2475
2517
  genNodeOpts_: function() {
2476
- return Ce("setProperty");
2518
+ return ke("setProperty");
2477
2519
  },
2478
2520
  genPropertyOpts_: function() {
2479
- return eo(this.node.id, "write");
2521
+ return to(this.node.id, "write");
2480
2522
  },
2481
2523
  onchange: function(t) {
2482
2524
  if (t.type === b.STATE_CHANGE)
@@ -2497,20 +2539,20 @@ const Gi = {
2497
2539
  const n = this.node.key !== e.key;
2498
2540
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2499
2541
  const o = this.getField("PROPERTY");
2500
- if (o.getOptions(!1), n || !yt(this.property.id)) {
2542
+ if (o.getOptions(!1), n || !vt(this.property.id)) {
2501
2543
  const i = Ht(this.node.id, "write")?.[0];
2502
2544
  o.setValue(i?.id ?? "");
2503
2545
  }
2504
2546
  this.onPropChange_(o.getValue());
2505
2547
  },
2506
2548
  onPropChange_: function(t) {
2507
- const e = yt(t);
2549
+ const e = vt(t);
2508
2550
  e ? (this.property.id = e.id, this.property.kind = e.kind, this.property.names = e.names) : (this.property.id = "", this.property.kind = "", this.property.names = []), this.updateShadow_();
2509
2551
  },
2510
2552
  updateShadow_: function() {
2511
2553
  if (this.isInsertionMarker())
2512
2554
  return;
2513
- const t = yt(this.property.id);
2555
+ const t = vt(this.property.id);
2514
2556
  if (!t)
2515
2557
  return;
2516
2558
  this.getInput("VALUE").setShadowDom(null);
@@ -2534,7 +2576,7 @@ const Gi = {
2534
2576
  return;
2535
2577
  }
2536
2578
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2537
- const e = yt(this.property.id);
2579
+ const e = vt(this.property.id);
2538
2580
  if (!e) {
2539
2581
  this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2540
2582
  return;
@@ -2543,7 +2585,7 @@ const Gi = {
2543
2585
  this.setWarningText(f("WARN_PROPERTY_HAS_CHANGED"));
2544
2586
  return;
2545
2587
  }
2546
- M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
2588
+ U(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
2547
2589
  }
2548
2590
  };
2549
2591
  E.set_app_property_v1 = Gi;
@@ -2584,7 +2626,7 @@ const Wi = {
2584
2626
  }, 0);
2585
2627
  },
2586
2628
  genStateOpts_: function() {
2587
- return no();
2629
+ return eo();
2588
2630
  },
2589
2631
  onchange: function(t) {
2590
2632
  if (t.type === b.STATE_CHANGE)
@@ -2646,7 +2688,7 @@ const ji = {
2646
2688
  this.state.id = t.state?.id ?? "", this.state.name = t.state?.name ?? "", this.state.type = t.state?.type ?? "string";
2647
2689
  },
2648
2690
  genStateOpts_: function() {
2649
- return no();
2691
+ return eo();
2650
2692
  },
2651
2693
  onchange: function(t) {
2652
2694
  if (t.type === I.BLOCK_CHANGE) {
@@ -3395,25 +3437,17 @@ const Xi = C.xml, Ji = [
3395
3437
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
3396
3438
  },
3397
3439
  {
3398
- type: "call_func_v1",
3399
- prefixInputs: ["OUTPUT"]
3400
- },
3401
- {
3402
- type: "call_func_internal_v1",
3440
+ type: "call_app_method_v1",
3403
3441
  prefixInputs: ["OUTPUT"]
3404
3442
  },
3405
3443
  {
3406
- type: "call_method_as_v1",
3444
+ type: "call_func_v1",
3407
3445
  prefixInputs: ["OUTPUT"]
3408
3446
  },
3409
3447
  {
3410
- type: "call_method_v1",
3448
+ type: "call_func_internal_v1",
3411
3449
  prefixInputs: ["OUTPUT"]
3412
3450
  },
3413
- {
3414
- type: "method_impl_v1",
3415
- prefixInputs: ["INPUT"]
3416
- },
3417
3451
  {
3418
3452
  type: "delete_data_v1",
3419
3453
  inputs: ["SUCCESS", "MESSAGE"]
@@ -3422,6 +3456,10 @@ const Xi = C.xml, Ji = [
3422
3456
  type: "func_entry_v1",
3423
3457
  prefixInputs: ["INPUT"]
3424
3458
  },
3459
+ {
3460
+ type: "implement_app_method_v1",
3461
+ prefixInputs: ["INPUT"]
3462
+ },
3425
3463
  {
3426
3464
  type: "open_confirm_dlg_v1",
3427
3465
  inputs: ["RESULT"]
@@ -3512,7 +3550,7 @@ const Qi = {
3512
3550
  },
3513
3551
  updateShape_: function() {
3514
3552
  if (this.locale) {
3515
- const { i18n: t } = vt;
3553
+ const { i18n: t } = yt;
3516
3554
  this.setFieldValue(t.global.t(this.name), "LABEL");
3517
3555
  } else
3518
3556
  this.setFieldValue(this.name, "LABEL");
@@ -3540,13 +3578,13 @@ function Bt(t, e) {
3540
3578
  if (n)
3541
3579
  return n.funcs.find((o) => o.id === e);
3542
3580
  }
3543
- function oo(t) {
3581
+ function no(t) {
3544
3582
  const e = [];
3545
3583
  return Gt(t).forEach(({ id: o, name: i }) => {
3546
3584
  e.push([i, o]);
3547
3585
  }), k(e);
3548
3586
  }
3549
- function Ze() {
3587
+ function tn() {
3550
3588
  return g.compute.activeFunc;
3551
3589
  }
3552
3590
  function Nn(t) {
@@ -3568,7 +3606,7 @@ function qt(t) {
3568
3606
  function le(t) {
3569
3607
  return g.compute.spaces.find((e) => e.id === t);
3570
3608
  }
3571
- function io(t) {
3609
+ function oo(t) {
3572
3610
  const e = [];
3573
3611
  return qt(t).forEach(({ id: o, name: i }) => {
3574
3612
  e.push([i, o]);
@@ -3617,10 +3655,10 @@ const ts = {
3617
3655
  }, 0);
3618
3656
  },
3619
3657
  genSpaceOpts_: function() {
3620
- return io("func");
3658
+ return oo("func");
3621
3659
  },
3622
3660
  genFuncOpts_: function() {
3623
- return oo(this.space.id);
3661
+ return no(this.space.id);
3624
3662
  },
3625
3663
  onchange: function(t) {
3626
3664
  if (t.type === b.STATE_CHANGE)
@@ -3672,7 +3710,7 @@ const ts = {
3672
3710
  }
3673
3711
  for (let t = 0; t < this.func.inputs.length; t++) {
3674
3712
  const { name: e } = this.func.inputs[t], n = this.getInput("INPUT" + t);
3675
- n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3713
+ n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(y.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3676
3714
  }
3677
3715
  },
3678
3716
  updateCheck_: function() {
@@ -3710,11 +3748,11 @@ const ts = {
3710
3748
  this.setWarningText(f("WARN_FUNC_NOT_FOUND"));
3711
3749
  return;
3712
3750
  }
3713
- if (!M(e.inputs, this.func.inputs)) {
3751
+ if (!U(e.inputs, this.func.inputs)) {
3714
3752
  this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3715
3753
  return;
3716
3754
  }
3717
- if (!M(e.outputs, this.func.outputs)) {
3755
+ if (!U(e.outputs, this.func.outputs)) {
3718
3756
  this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3719
3757
  return;
3720
3758
  }
@@ -3791,10 +3829,10 @@ const es = {
3791
3829
  }, 0);
3792
3830
  },
3793
3831
  genSpaceOpts_: function() {
3794
- return io("func");
3832
+ return oo("func");
3795
3833
  },
3796
3834
  genFuncOpts_: function() {
3797
- return oo(this.space.id);
3835
+ return no(this.space.id);
3798
3836
  },
3799
3837
  onchange: function(t) {
3800
3838
  if (t.type === b.STATE_CHANGE)
@@ -3846,7 +3884,7 @@ const es = {
3846
3884
  }
3847
3885
  for (let t = 0; t < this.func.inputs.length; t++) {
3848
3886
  const { name: e } = this.func.inputs[t], n = this.getInput("INPUT" + t);
3849
- n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3887
+ n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(y.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3850
3888
  }
3851
3889
  },
3852
3890
  updateCheck_: function() {
@@ -3884,11 +3922,11 @@ const es = {
3884
3922
  this.setWarningText(f("WARN_FUNC_NOT_FOUND"));
3885
3923
  return;
3886
3924
  }
3887
- if (!M(e.inputs, this.func.inputs)) {
3925
+ if (!U(e.inputs, this.func.inputs)) {
3888
3926
  this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3889
3927
  return;
3890
3928
  }
3891
- if (!M(e.outputs, this.func.outputs)) {
3929
+ if (!U(e.outputs, this.func.outputs)) {
3892
3930
  this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3893
3931
  return;
3894
3932
  }
@@ -3935,7 +3973,7 @@ const ns = {
3935
3973
  initData_: function() {
3936
3974
  if (this.func.id)
3937
3975
  return;
3938
- const { id: t, inputs: e } = Ze();
3976
+ const { id: t, inputs: e } = tn();
3939
3977
  this.func.id = t, this.func.inputs = e;
3940
3978
  },
3941
3979
  saveExtraState: function() {
@@ -3972,8 +4010,8 @@ const ns = {
3972
4010
  Y(this, t);
3973
4011
  },
3974
4012
  checkWarning_: function() {
3975
- const { id: t, inputs: e } = Ze();
3976
- if (this.func.id !== t && (this.func.id = t), !M(e, this.func.inputs)) {
4013
+ const { id: t, inputs: e } = tn();
4014
+ if (this.func.id !== t && (this.func.id = t), !U(e, this.func.inputs)) {
3977
4015
  this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3978
4016
  return;
3979
4017
  }
@@ -4004,7 +4042,7 @@ const os = {
4004
4042
  initData_: function() {
4005
4043
  if (this.output.id)
4006
4044
  return;
4007
- const t = Ze().outputs?.[0];
4045
+ const t = tn().outputs?.[0];
4008
4046
  t && (this.output.id = t.id, this.output.name = t.name, this.output.type = t.type);
4009
4047
  },
4010
4048
  saveExtraState: function() {
@@ -4137,7 +4175,7 @@ T([
4137
4175
  s.forBlock.compute_env_is_v1 = function(t) {
4138
4176
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, r.ATOMIC];
4139
4177
  };
4140
- function et() {
4178
+ function nt() {
4141
4179
  const t = [];
4142
4180
  return g.data.spaces.forEach((e) => {
4143
4181
  e.tables.length > 0 && t.push(e);
@@ -4147,9 +4185,9 @@ function mt(t) {
4147
4185
  const { spaces: e } = g.data;
4148
4186
  return e.find((n) => n.id === t);
4149
4187
  }
4150
- function ke() {
4188
+ function Ne() {
4151
4189
  const t = [];
4152
- return et().forEach(({ id: n, name: o }) => {
4190
+ return nt().forEach(({ id: n, name: o }) => {
4153
4191
  t.push([o, n]);
4154
4192
  }), k(t);
4155
4193
  }
@@ -4157,12 +4195,12 @@ function H(t) {
4157
4195
  const { spaces: e } = g.data, n = e.find((o) => o.id === t);
4158
4196
  return n ? n.tables : [];
4159
4197
  }
4160
- function J(t, e) {
4198
+ function q(t, e) {
4161
4199
  const { spaces: n } = g.data, o = n.find((i) => i.id === t);
4162
4200
  if (o)
4163
4201
  return o.tables.find((i) => i.id === e);
4164
4202
  }
4165
- function Ne(t) {
4203
+ function Le(t) {
4166
4204
  const e = [];
4167
4205
  return H(t).forEach(({ id: o, name: i }) => {
4168
4206
  e.push([i, o]);
@@ -4175,7 +4213,7 @@ function _e(t, e) {
4175
4213
  const i = o.tables.find((a) => a.id === e);
4176
4214
  return i ? i.columns : [];
4177
4215
  }
4178
- function Ke(t, e, n) {
4216
+ function $e(t, e, n) {
4179
4217
  const { spaces: o } = g.data, i = o.find((c) => c.id === t);
4180
4218
  if (!i)
4181
4219
  return;
@@ -4194,7 +4232,7 @@ function ss(t) {
4194
4232
  if (e.targetBlock())
4195
4233
  return;
4196
4234
  let n, o;
4197
- const i = et()?.[0];
4235
+ const i = nt()?.[0];
4198
4236
  if (i) {
4199
4237
  const u = H(i.id)?.[0];
4200
4238
  if (u) {
@@ -4260,7 +4298,7 @@ const cs = {
4260
4298
  }, 0);
4261
4299
  },
4262
4300
  updateShape_: function() {
4263
- 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"));
4301
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
4264
4302
  },
4265
4303
  ensureBlocks_: function() {
4266
4304
  this.isInsertionMarker() || (ss(this), Y(this, [
@@ -4325,7 +4363,7 @@ const rs = {
4325
4363
  initData_: function() {
4326
4364
  if (this.space.id)
4327
4365
  return;
4328
- const t = et()?.[0];
4366
+ const t = nt()?.[0];
4329
4367
  if (!t)
4330
4368
  return;
4331
4369
  this.space.id = t.id, this.space.name = t.name;
@@ -4349,10 +4387,10 @@ const rs = {
4349
4387
  }, 0);
4350
4388
  },
4351
4389
  genSpaceOpts_: function() {
4352
- return ke();
4390
+ return Ne();
4353
4391
  },
4354
4392
  genTableOpts_: function() {
4355
- return Ne(this.space.id);
4393
+ return Le(this.space.id);
4356
4394
  },
4357
4395
  genColumnOpts_: function() {
4358
4396
  return is(this.space.id, this.table.id);
@@ -4374,25 +4412,25 @@ const rs = {
4374
4412
  return;
4375
4413
  }
4376
4414
  const n = e.id !== this.space.id;
4377
- if (this.space.id = e.id, this.space.name = e.name, n || !J(this.space.id, this.table.id)) {
4415
+ if (this.space.id = e.id, this.space.name = e.name, n || !q(this.space.id, this.table.id)) {
4378
4416
  const o = H(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4379
4417
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
4380
4418
  }
4381
4419
  },
4382
4420
  onTableChange_: function(t) {
4383
- const e = J(this.space.id, t);
4421
+ const e = q(this.space.id, t);
4384
4422
  if (!e) {
4385
4423
  console.assert(!1);
4386
4424
  return;
4387
4425
  }
4388
4426
  const n = e.id !== this.table.id;
4389
- if (this.table.id = e.id, this.table.name = e.name, n || !Ke(this.space.id, this.table.id, this.column.id)) {
4427
+ if (this.table.id = e.id, this.table.name = e.name, n || !$e(this.space.id, this.table.id, this.column.id)) {
4390
4428
  const o = _e(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
4391
4429
  i.getOptions(!1), i.setValue(o, !1), this.onColumnChange_(o);
4392
4430
  }
4393
4431
  },
4394
4432
  onColumnChange_: function(t) {
4395
- const e = Ke(this.space.id, this.table.id, t);
4433
+ const e = $e(this.space.id, this.table.id, t);
4396
4434
  e ? (this.column.id = e.id, this.column.name = e.name, this.column.type = e.type, this.column.extend = e.extend) : (this.column.id = "", this.column.name = "", this.column.type = "", this.column.extend = ""), this.updateShape_(), this.updateBlocks_(!0), this.updateCheck_();
4397
4435
  },
4398
4436
  updateShape_: function() {
@@ -4411,11 +4449,11 @@ const rs = {
4411
4449
  n && n.dispose();
4412
4450
  else if (n)
4413
4451
  return;
4414
- const o = Xe(this.workspace, this.column.type);
4452
+ const o = Je(this.workspace, this.column.type);
4415
4453
  o && (e.setCheck(null), e.connect(o.outputConnection));
4416
4454
  },
4417
4455
  updateCheck_: function() {
4418
- const t = Xn(this.column.type);
4456
+ const t = jn(this.column.type);
4419
4457
  this.getInput("VALUE").connection.setCheck(t);
4420
4458
  },
4421
4459
  checkWarning_: function() {
@@ -4425,13 +4463,13 @@ const rs = {
4425
4463
  return;
4426
4464
  }
4427
4465
  t.name !== this.space.name && (this.space.name = t.name);
4428
- const e = J(this.space.id, this.table.id);
4466
+ const e = q(this.space.id, this.table.id);
4429
4467
  if (!e) {
4430
4468
  this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
4431
4469
  return;
4432
4470
  }
4433
4471
  e.name !== this.table.name && (this.table.name = e.name);
4434
- const n = Ke(
4472
+ const n = $e(
4435
4473
  this.space.id,
4436
4474
  this.table.id,
4437
4475
  this.column.id
@@ -4559,7 +4597,7 @@ function ps(t) {
4559
4597
  const e = t.getInput("TABLE").connection;
4560
4598
  if (e.targetBlock())
4561
4599
  return;
4562
- const n = et()?.[0], o = H(n?.id ?? "")?.[0], i = {
4600
+ const n = nt()?.[0], o = H(n?.id ?? "")?.[0], i = {
4563
4601
  type: "select_table_v1",
4564
4602
  extraState: {
4565
4603
  space: {
@@ -4578,7 +4616,7 @@ function ds(t) {
4578
4616
  const e = t.getInput("CONDITION").connection;
4579
4617
  if (e.targetBlock())
4580
4618
  return;
4581
- const n = et()?.[0], o = H(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
4619
+ const n = nt()?.[0], o = H(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
4582
4620
  type: "cond_atomic_v1",
4583
4621
  extraState: {
4584
4622
  space: {
@@ -4636,7 +4674,7 @@ const fs = {
4636
4674
  }, 0);
4637
4675
  },
4638
4676
  updateShape_: function() {
4639
- 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"));
4677
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4640
4678
  },
4641
4679
  ensureBlocks_: function() {
4642
4680
  this.isInsertionMarker() || (ps(this), ds(this), Y(this, [
@@ -4688,7 +4726,7 @@ function ms(t) {
4688
4726
  if (e.targetBlock())
4689
4727
  return;
4690
4728
  let n, o;
4691
- const i = et()?.[0];
4729
+ const i = nt()?.[0];
4692
4730
  if (i) {
4693
4731
  const u = H(i.id)?.[0];
4694
4732
  if (u) {
@@ -4814,7 +4852,7 @@ const As = {
4814
4852
  }, 0);
4815
4853
  },
4816
4854
  updateShape_: function() {
4817
- 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"));
4855
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4818
4856
  },
4819
4857
  ensureBlocks_: function() {
4820
4858
  this.isInsertionMarker() || (ms(this), Ts(this), Es(this), Y(this, [
@@ -4910,7 +4948,7 @@ const Os = {
4910
4948
  }
4911
4949
  };
4912
4950
  E.select_column_item_v1 = Os;
4913
- const ys = {
4951
+ const vs = {
4914
4952
  init: function() {
4915
4953
  this.space = {
4916
4954
  id: "",
@@ -4935,7 +4973,7 @@ const ys = {
4935
4973
  initData_: function() {
4936
4974
  if (this.space.id)
4937
4975
  return;
4938
- const t = et()?.[0];
4976
+ const t = nt()?.[0];
4939
4977
  if (!t)
4940
4978
  return;
4941
4979
  this.space.id = t.id, this.space.name = t.name;
@@ -4961,10 +4999,10 @@ const ys = {
4961
4999
  }, 0);
4962
5000
  },
4963
5001
  genSpaceOpts_: function() {
4964
- return ke();
5002
+ return Ne();
4965
5003
  },
4966
5004
  genTableOpts_: function() {
4967
- return Ne(this.space.id);
5005
+ return Le(this.space.id);
4968
5006
  },
4969
5007
  genColumnOpts_: function() {
4970
5008
  const t = [];
@@ -5001,13 +5039,13 @@ const ys = {
5001
5039
  return;
5002
5040
  }
5003
5041
  const n = e.id !== this.space.id;
5004
- if (this.space.id = e.id, this.space.name = e.name, n || !J(this.space.id, this.table.id)) {
5042
+ if (this.space.id = e.id, this.space.name = e.name, n || !q(this.space.id, this.table.id)) {
5005
5043
  const o = H(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5006
5044
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
5007
5045
  }
5008
5046
  },
5009
5047
  onTableChange_: function(t) {
5010
- const e = J(this.space.id, t);
5048
+ const e = q(this.space.id, t);
5011
5049
  if (!e) {
5012
5050
  console.assert(!1);
5013
5051
  return;
@@ -5083,7 +5121,7 @@ const ys = {
5083
5121
  const e = this.table.columns[t], n = new O(
5084
5122
  () => this.genColumnOpts_()
5085
5123
  ), o = new ht("");
5086
- 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);
5124
+ this.appendDummyInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
5087
5125
  }
5088
5126
  },
5089
5127
  updateShape_: function() {
@@ -5095,7 +5133,7 @@ const ys = {
5095
5133
  const e = new O(
5096
5134
  () => this.genColumnOpts_()
5097
5135
  ), n = new ht("");
5098
- this.appendDummyInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
5136
+ this.appendDummyInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
5099
5137
  const o = this.table.columns[0];
5100
5138
  e.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
5101
5139
  }
@@ -5107,19 +5145,19 @@ const ys = {
5107
5145
  return;
5108
5146
  }
5109
5147
  t.name !== this.space.name && (this.space.name = t.name);
5110
- const e = J(this.space.id, this.table.id);
5148
+ const e = q(this.space.id, this.table.id);
5111
5149
  if (!e) {
5112
5150
  this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5113
5151
  return;
5114
5152
  }
5115
- if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
5153
+ if (e.name !== this.table.name && (this.table.name = e.name), !U(e.columns, this.table.columns)) {
5116
5154
  this.setWarningText(f("WARN_TABLE_HAS_CHANGED"));
5117
5155
  return;
5118
5156
  }
5119
5157
  this.setWarningText(null);
5120
5158
  }
5121
5159
  };
5122
- E.select_column_v1 = ys;
5160
+ E.select_column_v1 = vs;
5123
5161
  s.forBlock.select_column_v1 = function(t) {
5124
5162
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5125
5163
  for (let l = 0; l < n.itemCount_; l++) {
@@ -5131,7 +5169,7 @@ s.forBlock.select_column_v1 = function(t) {
5131
5169
  d !== 0 && (c += ","), c += `{name:${e(l)},alias:${e(_)}}`;
5132
5170
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, r.ATOMIC];
5133
5171
  };
5134
- const vs = {
5172
+ const ys = {
5135
5173
  init: function() {
5136
5174
  this.space = {
5137
5175
  id: "",
@@ -5150,7 +5188,7 @@ const vs = {
5150
5188
  initData_: function() {
5151
5189
  if (this.space.id)
5152
5190
  return;
5153
- const t = et()?.[0];
5191
+ const t = nt()?.[0];
5154
5192
  if (!t)
5155
5193
  return;
5156
5194
  this.space.id = t.id, this.space.name = t.name;
@@ -5173,10 +5211,10 @@ const vs = {
5173
5211
  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_();
5174
5212
  },
5175
5213
  genSpaceOpts_: function() {
5176
- return ke();
5214
+ return Ne();
5177
5215
  },
5178
5216
  genTableOpts_: function() {
5179
- return Ne(this.space.id);
5217
+ return Le(this.space.id);
5180
5218
  },
5181
5219
  onchange: function(t) {
5182
5220
  if (t.type === b.STATE_CHANGE)
@@ -5195,13 +5233,13 @@ const vs = {
5195
5233
  return;
5196
5234
  }
5197
5235
  let n = !1;
5198
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !J(this.space.id, this.table.id)) {
5236
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !q(this.space.id, this.table.id)) {
5199
5237
  const i = H(this.space.id)?.[0];
5200
5238
  i ? this.setFieldValue(i.id, "TABLE") : this.setFieldValue("", "TABLE");
5201
5239
  }
5202
5240
  },
5203
5241
  onTableChange_: function(t) {
5204
- const e = J(this.space.id, t);
5242
+ const e = q(this.space.id, t);
5205
5243
  if (!e) {
5206
5244
  console.assert(!1);
5207
5245
  return;
@@ -5215,7 +5253,7 @@ const vs = {
5215
5253
  return;
5216
5254
  }
5217
5255
  t.name !== this.space.name && (this.space.name = t.name);
5218
- const e = J(this.space.id, this.table.id);
5256
+ const e = q(this.space.id, this.table.id);
5219
5257
  if (!e) {
5220
5258
  this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5221
5259
  return;
@@ -5223,7 +5261,7 @@ const vs = {
5223
5261
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
5224
5262
  }
5225
5263
  };
5226
- E.select_table_v1 = vs;
5264
+ E.select_table_v1 = ys;
5227
5265
  s.forBlock.select_table_v1 = function(t) {
5228
5266
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id;
5229
5267
  return [`{spaceId:${e(o)},tableId:${e(i)}}`, r.ATOMIC];
@@ -5331,7 +5369,7 @@ const Ls = {
5331
5369
  initData_: function() {
5332
5370
  if (this.space.id)
5333
5371
  return;
5334
- const t = et()?.[0];
5372
+ const t = nt()?.[0];
5335
5373
  if (!t)
5336
5374
  return;
5337
5375
  this.space.id = t.id, this.space.name = t.name;
@@ -5357,10 +5395,10 @@ const Ls = {
5357
5395
  }, 0);
5358
5396
  },
5359
5397
  genSpaceOpts_: function() {
5360
- return ke();
5398
+ return Ne();
5361
5399
  },
5362
5400
  genTableOpts_: function() {
5363
- return Ne(this.space.id);
5401
+ return Le(this.space.id);
5364
5402
  },
5365
5403
  genColumnOpts_: function() {
5366
5404
  const t = [];
@@ -5397,13 +5435,13 @@ const Ls = {
5397
5435
  return;
5398
5436
  }
5399
5437
  const n = e.id !== this.space.id;
5400
- if (this.space.id = e.id, this.space.name = e.name, n || !J(this.space.id, this.table.id)) {
5438
+ if (this.space.id = e.id, this.space.name = e.name, n || !q(this.space.id, this.table.id)) {
5401
5439
  const o = H(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5402
5440
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
5403
5441
  }
5404
5442
  },
5405
5443
  onTableChange_: function(t) {
5406
- const e = J(this.space.id, t);
5444
+ const e = q(this.space.id, t);
5407
5445
  if (!e) {
5408
5446
  console.assert(!1);
5409
5447
  return;
@@ -5427,7 +5465,7 @@ const Ls = {
5427
5465
  }
5428
5466
  const o = this.getInput("ADD" + t).connection, i = o.targetBlock();
5429
5467
  i && i.dispose();
5430
- const a = Xe(this.workspace, n.type);
5468
+ const a = Je(this.workspace, n.type);
5431
5469
  a && (o.setCheck(null), o.connect(a.outputConnection)), this.updateCheck_();
5432
5470
  },
5433
5471
  decompose: function(t) {
@@ -5489,7 +5527,7 @@ const Ls = {
5489
5527
  const e = this.table.columns[t], n = new O(
5490
5528
  () => this.genColumnOpts_()
5491
5529
  );
5492
- this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + t), n.setValue(e.id, !1);
5530
+ this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(n, "COLUMN" + t), n.setValue(e.id, !1);
5493
5531
  }
5494
5532
  },
5495
5533
  updateShape_: function() {
@@ -5503,7 +5541,7 @@ const Ls = {
5503
5541
  const e = new O(
5504
5542
  () => this.genColumnOpts_()
5505
5543
  );
5506
- this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t);
5544
+ this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(e, "COLUMN" + t);
5507
5545
  }
5508
5546
  },
5509
5547
  updateBlocks_: function(t) {
@@ -5518,7 +5556,7 @@ const Ls = {
5518
5556
  if (!c)
5519
5557
  continue;
5520
5558
  n.setCheck(null);
5521
- const u = Xe(this.workspace, c.type);
5559
+ const u = Je(this.workspace, c.type);
5522
5560
  u && o.connect(u.outputConnection);
5523
5561
  }
5524
5562
  },
@@ -5527,7 +5565,7 @@ const Ls = {
5527
5565
  const e = this.getFieldValue("COLUMN" + t), n = this.table.columns.find((i) => i.id === e);
5528
5566
  if (!n)
5529
5567
  continue;
5530
- const o = Xn(n.type);
5568
+ const o = jn(n.type);
5531
5569
  this.getInput("ADD" + t).setCheck(o);
5532
5570
  }
5533
5571
  },
@@ -5538,12 +5576,12 @@ const Ls = {
5538
5576
  return;
5539
5577
  }
5540
5578
  t.name !== this.space.name && (this.space.name = t.name);
5541
- const e = J(this.space.id, this.table.id);
5579
+ const e = q(this.space.id, this.table.id);
5542
5580
  if (!e) {
5543
5581
  this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5544
5582
  return;
5545
5583
  }
5546
- if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
5584
+ if (e.name !== this.table.name && (this.table.name = e.name), !U(e.columns, this.table.columns)) {
5547
5585
  this.setWarningText(f("WARN_TABLE_HAS_CHANGED"));
5548
5586
  return;
5549
5587
  }
@@ -5567,7 +5605,7 @@ function Ss(t) {
5567
5605
  if (e.targetBlock())
5568
5606
  return;
5569
5607
  let n, o;
5570
- const i = et()?.[0];
5608
+ const i = nt()?.[0];
5571
5609
  if (i) {
5572
5610
  const u = H(i.id)?.[0];
5573
5611
  if (u) {
@@ -5642,7 +5680,7 @@ const Ps = {
5642
5680
  }, 0);
5643
5681
  },
5644
5682
  updateShape_: function() {
5645
- 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"));
5683
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5646
5684
  },
5647
5685
  ensureBlocks: function() {
5648
5686
  this.isInsertionMarker() || (Ss(this), Bs(this), Y(this, [
@@ -5671,7 +5709,7 @@ ${i}}
5671
5709
  };
5672
5710
  const Rs = C.xml, Ds = {
5673
5711
  init: function() {
5674
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5712
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
5675
5713
  new ot(St, 20, 20, void 0, () => {
5676
5714
  this.isInFlyout || this.addEntry_();
5677
5715
  })
@@ -5745,7 +5783,7 @@ const Ms = {
5745
5783
  E.json_boolean_v1 = Ms;
5746
5784
  const Ln = C.xml, Us = {
5747
5785
  init: function() {
5748
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5786
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
5749
5787
  new ot(St, 20, 20, void 0, () => {
5750
5788
  this.isInFlyout || this.addEntry_();
5751
5789
  })
@@ -5812,13 +5850,13 @@ const Ln = C.xml, Us = {
5812
5850
  E.json_map_v1 = Us;
5813
5851
  const Vs = {
5814
5852
  init: function() {
5815
- this.appendDummyInput().appendField(new He(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5853
+ this.appendDummyInput().appendField(new Ge(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5816
5854
  }
5817
5855
  };
5818
5856
  E.json_number_v1 = Vs;
5819
5857
  const xs = {
5820
5858
  init: function() {
5821
- this.appendDummyInput().setAlign(v.Align.CENTRE).appendField("JSON"), this.appendValueInput("JSON").setCheck(["JsonMap", "JsonArray"]), this.setDeletable(!1), this.setColour(250), this.setTooltip(""), this.setHelpUrl("");
5859
+ this.appendDummyInput().setAlign(y.Align.CENTRE).appendField("JSON"), this.appendValueInput("JSON").setCheck(["JsonMap", "JsonArray"]), this.setDeletable(!1), this.setColour(250), this.setTooltip(""), this.setHelpUrl("");
5822
5860
  }
5823
5861
  };
5824
5862
  E.json_root_v1 = xs;
@@ -5917,7 +5955,7 @@ const $s = {
5917
5955
  "Boolean",
5918
5956
  "Array",
5919
5957
  "Object"
5920
- ]), t === 0 && this.getInput("ADD" + t).setAlign(v.Align.RIGHT).appendField("%{BKY_LIST_V1_CREATE_TITLE}"));
5958
+ ]), t === 0 && this.getInput("ADD" + t).setAlign(y.Align.RIGHT).appendField("%{BKY_LIST_V1_CREATE_TITLE}"));
5921
5959
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
5922
5960
  this.removeInput("ADD" + t);
5923
5961
  }
@@ -6587,7 +6625,7 @@ const Xs = {
6587
6625
  t.push({
6588
6626
  enabled: !0,
6589
6627
  text: f("VARIABLE_SET_CREATE_GET").replace("%1", o),
6590
- callback: Mn.callbackFactory(this, i)
6628
+ callback: Dn.callbackFactory(this, i)
6591
6629
  });
6592
6630
  }
6593
6631
  }
@@ -7655,7 +7693,7 @@ const ea = {
7655
7693
  },
7656
7694
  updateShape_: function() {
7657
7695
  for (let t = 0; t < this.itemCount_; t++)
7658
- this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(new ht("key"), "KEY" + t);
7696
+ this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(new ht("key"), "KEY" + t);
7659
7697
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
7660
7698
  this.removeInput("ADD" + t);
7661
7699
  }
@@ -7910,7 +7948,7 @@ const Sn = C.xml, na = {
7910
7948
  E.procedure_def_container_v1 = na;
7911
7949
  const oa = {
7912
7950
  init: function() {
7913
- const t = new ht(Ge.DEFAULT_ARG);
7951
+ const t = new ht(We.DEFAULT_ARG);
7914
7952
  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;
7915
7953
  },
7916
7954
  validator_: function(t) {
@@ -7935,9 +7973,9 @@ const ia = {
7935
7973
  init: function() {
7936
7974
  this.withReturn = !1, this.args = [];
7937
7975
  const t = new ht(
7938
- Ge.findLegalName("", this)
7976
+ We.findLegalName("", this)
7939
7977
  );
7940
- t.setValidator(Ge.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7978
+ t.setValidator(We.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7941
7979
  new Tt.MutatorIcon(
7942
7980
  ["procedure_def_item_v1"],
7943
7981
  this
@@ -8112,7 +8150,7 @@ const ca = {
8112
8150
  }, 0);
8113
8151
  },
8114
8152
  updateShape_: function() {
8115
- 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"));
8153
+ 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(y.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
8116
8154
  },
8117
8155
  ensureBlocks_: function() {
8118
8156
  this.isInsertionMarker() || Y(this, [
@@ -8134,7 +8172,7 @@ ${n}
8134
8172
  }
8135
8173
  `;
8136
8174
  };
8137
- function so(t) {
8175
+ function io(t) {
8138
8176
  const e = g.resource.spaces.find((i) => i.id === t);
8139
8177
  if (!e)
8140
8178
  return [];
@@ -8152,11 +8190,11 @@ function so(t) {
8152
8190
  }
8153
8191
  function ra(t) {
8154
8192
  const e = [];
8155
- return so(t).forEach(({ id: o, name: i }) => {
8193
+ return io(t).forEach(({ id: o, name: i }) => {
8156
8194
  e.push([i, o]);
8157
8195
  }), k(e);
8158
8196
  }
8159
- function ao(t, e) {
8197
+ function so(t, e) {
8160
8198
  const n = g.resource.spaces.find((i) => i.id === t);
8161
8199
  if (!n)
8162
8200
  return [];
@@ -8167,11 +8205,11 @@ function ao(t, e) {
8167
8205
  }
8168
8206
  function ua(t, e) {
8169
8207
  const n = [];
8170
- return ao(t, e).forEach(({ id: i, name: a }) => {
8208
+ return so(t, e).forEach(({ id: i, name: a }) => {
8171
8209
  n.push([a, i]);
8172
8210
  }), k(n);
8173
8211
  }
8174
- function co() {
8212
+ function ao() {
8175
8213
  const t = [];
8176
8214
  return g.resource.spaces.forEach((e) => {
8177
8215
  e.resources.length > 0 && t.push(e);
@@ -8179,7 +8217,7 @@ function co() {
8179
8217
  }
8180
8218
  function la() {
8181
8219
  const t = [];
8182
- return co().forEach(({ id: n, name: o }) => {
8220
+ return ao().forEach(({ id: n, name: o }) => {
8183
8221
  t.push([o, n]);
8184
8222
  }), k(t);
8185
8223
  }
@@ -8205,19 +8243,19 @@ const _a = {
8205
8243
  initData_: function() {
8206
8244
  if (this.space.id)
8207
8245
  return;
8208
- const t = co()?.[0];
8246
+ const t = ao()?.[0];
8209
8247
  if (!t)
8210
8248
  return;
8211
8249
  this.space.id = t.id, this.space.name = t.name;
8212
8250
  const e = this.getField("SPACE");
8213
8251
  e.getOptions(!1), e.setValue(this.space.id);
8214
- const n = so(this.space.id)?.[0];
8252
+ const n = io(this.space.id)?.[0];
8215
8253
  if (!n)
8216
8254
  return;
8217
8255
  this.dir.id = n.id, this.dir.name = n.name;
8218
8256
  const o = this.getField("DIR");
8219
8257
  o.getOptions(!1), o.setValue(this.dir.id);
8220
- const i = ao(this.space.id, this.dir.id)?.[0];
8258
+ const i = so(this.space.id, this.dir.id)?.[0];
8221
8259
  if (!i)
8222
8260
  return;
8223
8261
  this.resource.id = i.id, this.resource.name = i.name;
@@ -8232,7 +8270,7 @@ const _a = {
8232
8270
  };
8233
8271
  },
8234
8272
  loadExtraState: function(t) {
8235
- this.space = Ue(t.space), this.dir = Ue(t.dir), this.resource = Ue(t.resource);
8273
+ this.space = Ve(t.space), this.dir = Ve(t.dir), this.resource = Ve(t.resource);
8236
8274
  },
8237
8275
  genSpaceOpts_: function() {
8238
8276
  return la();
@@ -8263,7 +8301,7 @@ const pa = {
8263
8301
  }, 0);
8264
8302
  },
8265
8303
  updateShape_: function() {
8266
- this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_RESOURCE_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "RESULT")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_RESOURCE_RESULT}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("DATA") || (this.appendValueInput("DATA").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_DATA}"), this.moveInputBefore("DATA", "SUCCESS")), this.getInput("DIR") || (this.appendValueInput("DIR").setCheck("SelectDir").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_DIR}"), this.moveInputBefore("DIR", "DATA")), this.getInput("NAME") || (this.appendValueInput("NAME").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_NAME}"), this.moveInputBefore("NAME", "DIR"));
8304
+ this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_RESOURCE_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "RESULT")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_RESOURCE_RESULT}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("DATA") || (this.appendValueInput("DATA").setAlign(y.Align.RIGHT).appendField("%{BKY_RESOURCE_DATA}"), this.moveInputBefore("DATA", "SUCCESS")), this.getInput("DIR") || (this.appendValueInput("DIR").setCheck("SelectDir").setAlign(y.Align.RIGHT).appendField("%{BKY_RESOURCE_DIR}"), this.moveInputBefore("DIR", "DATA")), this.getInput("NAME") || (this.appendValueInput("NAME").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_RESOURCE_NAME}"), this.moveInputBefore("NAME", "DIR"));
8267
8305
  },
8268
8306
  updateShadow_: function() {
8269
8307
  if (this.isInsertionMarker())
@@ -8585,7 +8623,7 @@ const ha = C.xml, fa = {
8585
8623
  for (let t = 0; t < this.itemCount_; t++)
8586
8624
  if (!this.getInput("ADD" + t)) {
8587
8625
  const e = this.appendValueInput("ADD" + t).setAlign(
8588
- v.Align.RIGHT
8626
+ y.Align.RIGHT
8589
8627
  );
8590
8628
  t === 0 && e.appendField("%{BKY_TEXT_V1_JOIN_TITLE}");
8591
8629
  }
@@ -8841,7 +8879,7 @@ const Ta = {
8841
8879
  this.updateShape_(), this.updateShadow_();
8842
8880
  },
8843
8881
  updateShape_: function() {
8844
- this.getInput("CALLBACK") || this.appendStatementInput("CALLBACK").appendField("%{BKY_TIME_DO}"), this.getInput("IMMEDIATE") || (this.appendValueInput("IMMEDIATE").setCheck("Boolean").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_IMMEDIATE}"), this.moveInputBefore("IMMEDIATE", "CALLBACK")), this.getInput("COUNT") || (this.appendValueInput("COUNT").setCheck("Number").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_COUNT}"), this.moveInputBefore("COUNT", "IMMEDIATE")), this.getInput("LOOP") || (this.appendValueInput("LOOP").setCheck("Boolean").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_LOOP}"), this.moveInputBefore("LOOP", "COUNT")), this.getInput("INTERVAL") || (this.appendValueInput("INTERVAL").setCheck("Number").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_INTERVAL_MS}"), this.moveInputBefore("INTERVAL", "LOOP"));
8882
+ this.getInput("CALLBACK") || this.appendStatementInput("CALLBACK").appendField("%{BKY_TIME_DO}"), this.getInput("IMMEDIATE") || (this.appendValueInput("IMMEDIATE").setCheck("Boolean").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_IMMEDIATE}"), this.moveInputBefore("IMMEDIATE", "CALLBACK")), this.getInput("COUNT") || (this.appendValueInput("COUNT").setCheck("Number").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_COUNT}"), this.moveInputBefore("COUNT", "IMMEDIATE")), this.getInput("LOOP") || (this.appendValueInput("LOOP").setCheck("Boolean").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_LOOP}"), this.moveInputBefore("LOOP", "COUNT")), this.getInput("INTERVAL") || (this.appendValueInput("INTERVAL").setCheck("Number").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_INTERVAL_MS}"), this.moveInputBefore("INTERVAL", "LOOP"));
8845
8883
  },
8846
8884
  updateShadow_: function() {
8847
8885
  if (this.isInsertionMarker())
@@ -8910,7 +8948,7 @@ const Ea = {
8910
8948
  t.push({
8911
8949
  enabled: this.workspace.remainingCapacity() > 0,
8912
8950
  text: n.replace("%1", o.getText()),
8913
- callback: Mn.callbackFactory(this, i)
8951
+ callback: Dn.callbackFactory(this, i)
8914
8952
  });
8915
8953
  }
8916
8954
  }
@@ -8983,14 +9021,14 @@ s.forBlock.variable_set_v1 = function(t) {
8983
9021
  return `${e} = ${n};
8984
9022
  `;
8985
9023
  };
8986
- Un.setConfirm(async (t, e) => {
9024
+ Mn.setConfirm(async (t, e) => {
8987
9025
  const n = await Go({
8988
9026
  title: "",
8989
9027
  text: t
8990
9028
  });
8991
9029
  e(!!n);
8992
9030
  });
8993
- Un.setPrompt(async (t, e, n) => {
9031
+ Mn.setPrompt(async (t, e, n) => {
8994
9032
  const o = await Wo({
8995
9033
  title: "",
8996
9034
  value: e
@@ -9009,7 +9047,7 @@ const Oa = Qt.getText_;
9009
9047
  Qt.getText_ = function() {
9010
9048
  if (this.selectedOption)
9011
9049
  return Oa.call(this);
9012
- const { i18n: t } = vt, e = this.getSourceBlock();
9050
+ const { i18n: t } = yt, e = this.getSourceBlock();
9013
9051
  if (this.name === "APP")
9014
9052
  return e.app.name;
9015
9053
  if (this.name === "PAGE")
@@ -9017,20 +9055,20 @@ Qt.getText_ = function() {
9017
9055
  if (this.name === "ELEMENT")
9018
9056
  return e.element.name;
9019
9057
  if (this.name === "NODE") {
9020
- const n = tt[e.node.key];
9058
+ const n = et[e.node.key];
9021
9059
  if (n) {
9022
9060
  const o = t.global.t(n.name), i = e.node.alias;
9023
9061
  return `${o} / ${i}`;
9024
9062
  }
9025
9063
  } else if (this.name === "PROPERTY") {
9026
9064
  const { kind: n, names: o } = e.property;
9027
- return wn(n, o);
9065
+ return Fn(n, o);
9028
9066
  } else if (this.name === "EVENT") {
9029
9067
  const { kind: n, names: o } = e.event;
9030
9068
  return console.log(e.event), Ie(n, o);
9031
9069
  } else if (this.name === "METHOD") {
9032
9070
  const { kind: n, names: o } = e.method;
9033
- return on(n, o);
9071
+ return ve(n, o);
9034
9072
  } else {
9035
9073
  if (this.name === "SPACE")
9036
9074
  return e.space.name;
@@ -9073,24 +9111,24 @@ So.prototype.cleanUp = function() {
9073
9111
  }
9074
9112
  I.setGroup(t), this.setResizesEnabled(!0);
9075
9113
  };
9076
- function ro(t) {
9114
+ function co(t) {
9077
9115
  const e = t.getParent();
9078
- return e && ro(e) ? !0 : !e && !!(t.outputConnection || t.previousConnection);
9116
+ return e && co(e) ? !0 : !e && !!(t.outputConnection || t.previousConnection);
9079
9117
  }
9080
- class ya {
9118
+ class va {
9081
9119
  init() {
9082
9120
  const e = Bo.registry.getItem("blockDisable");
9083
9121
  e && (e.preconditionFn = function(n) {
9084
9122
  const o = n.block;
9085
- return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || ro(o) ? "disabled" : "enabled" : "hidden";
9123
+ return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || co(o) ? "disabled" : "enabled" : "hidden";
9086
9124
  });
9087
9125
  }
9088
9126
  }
9089
9127
  bo.registerFieldColour();
9090
9128
  Po.registry.unregister(Ro.names.ESCAPE);
9091
- const va = new Do.CrossTabCopyPaste();
9092
- va.init({ contextMenu: !0, shortcut: !0 });
9093
- const Ca = new ya();
9129
+ const ya = new Do.CrossTabCopyPaste();
9130
+ ya.init({ contextMenu: !0, shortcut: !0 });
9131
+ const Ca = new va();
9094
9132
  Ca.init();
9095
9133
  function un(t) {
9096
9134
  const e = Wt();
@@ -9105,7 +9143,7 @@ function un(t) {
9105
9143
  const i = o.getRelativeToSurfaceXY(), a = i.x * e.scale, c = i.y * e.scale;
9106
9144
  e.scroll(-a, -c);
9107
9145
  }
9108
- function uo() {
9146
+ function ro() {
9109
9147
  const t = Wt();
9110
9148
  if (!t)
9111
9149
  return;
@@ -9263,7 +9301,7 @@ Ae.Classic.categoryStyles = {
9263
9301
  colour: "#a55b80"
9264
9302
  }
9265
9303
  };
9266
- const ka = Vn.defineTheme("light", {
9304
+ const ka = Un.defineTheme("light", {
9267
9305
  name: "light",
9268
9306
  base: Ae.Classic,
9269
9307
  componentStyles: {
@@ -9279,7 +9317,7 @@ const ka = Vn.defineTheme("light", {
9279
9317
  scrollbarOpacity: 0.4,
9280
9318
  cursorColour: ""
9281
9319
  }
9282
- }), Na = Vn.defineTheme("dark", {
9320
+ }), Na = Un.defineTheme("dark", {
9283
9321
  name: "dark",
9284
9322
  base: Ae.Classic,
9285
9323
  componentStyles: {
@@ -9307,7 +9345,7 @@ function La(t) {
9307
9345
  break;
9308
9346
  }
9309
9347
  }
9310
- const tn = ["get_app_property_v1", "get_app_state_v1"];
9348
+ const en = ["get_app_property_v1", "get_app_state_v1"];
9311
9349
  function ut(t, e) {
9312
9350
  return t.find((o) => o === e) !== void 0 ? !1 : (t.push(e), !0);
9313
9351
  }
@@ -9315,7 +9353,7 @@ function Sa(t) {
9315
9353
  const e = [];
9316
9354
  function n(o) {
9317
9355
  for (const i of o.getChildren(!0))
9318
- tn.includes(i.type) && e.push(i), n(i);
9356
+ en.includes(i.type) && e.push(i), n(i);
9319
9357
  }
9320
9358
  return n(t), e;
9321
9359
  }
@@ -9338,11 +9376,11 @@ function Ba(t) {
9338
9376
  function ba(t) {
9339
9377
  const e = [];
9340
9378
  for (const n of t.getChildren(!0))
9341
- if (tn.includes(n.type))
9379
+ if (en.includes(n.type))
9342
9380
  e.push(n);
9343
9381
  else if (n.type === "object_get_v1") {
9344
9382
  const o = n.getInputTargetBlock("OBJECT");
9345
- o && tn.includes(o.type) && e.push(n);
9383
+ o && en.includes(o.type) && e.push(n);
9346
9384
  }
9347
9385
  return e;
9348
9386
  }
@@ -9435,12 +9473,12 @@ function Ra(t) {
9435
9473
  }
9436
9474
  return e;
9437
9475
  }
9438
- const lo = Symbol();
9476
+ const uo = Symbol();
9439
9477
  function Da(t) {
9440
- qo(lo, t);
9478
+ qo(uo, t);
9441
9479
  }
9442
9480
  function ln() {
9443
- return Qo(lo);
9481
+ return Qo(uo);
9444
9482
  }
9445
9483
  const Ma = /* @__PURE__ */ ct({
9446
9484
  __name: "index",
@@ -9454,7 +9492,7 @@ const Ma = /* @__PURE__ */ ct({
9454
9492
  return;
9455
9493
  }
9456
9494
  if (o.lock) {
9457
- Yn(n("x-block-lib.msg.cannotOperateInLockedState"));
9495
+ xn(n("x-block-lib.msg.cannotOperateInLockedState"));
9458
9496
  return;
9459
9497
  }
9460
9498
  i.workspace.cleanUp();
@@ -9462,9 +9500,9 @@ const Ma = /* @__PURE__ */ ct({
9462
9500
  a();
9463
9501
  };
9464
9502
  return e({ cleanWorkspace: a }), (u, l) => {
9465
- const _ = D("v-btn"), d = D("v-tooltip");
9503
+ const _ = M("v-btn"), d = M("v-tooltip");
9466
9504
  return S(), st(d, {
9467
- text: R(n)("x-block-lib.tip.hotkeyCtrlQ")
9505
+ text: D(n)("x-block-lib.tip.hotkeyCtrlQ")
9468
9506
  }, {
9469
9507
  activator: at(({ props: h }) => [
9470
9508
  L(_, sn(h, {
@@ -9488,9 +9526,9 @@ const Ma = /* @__PURE__ */ ct({
9488
9526
  setup(t) {
9489
9527
  const { t: e } = Xt(), n = Kt(t, "modelValue");
9490
9528
  return (o, i) => {
9491
- const a = D("v-btn"), c = D("v-tooltip");
9529
+ const a = M("v-btn"), c = M("v-tooltip");
9492
9530
  return S(), st(c, {
9493
- text: R(e)("x-block-lib.tip.hotkeyCtrlW")
9531
+ text: D(e)("x-block-lib.tip.hotkeyCtrlW")
9494
9532
  }, {
9495
9533
  activator: at(({ props: u }) => [
9496
9534
  L(a, sn(u, {
@@ -9536,17 +9574,17 @@ const Ma = /* @__PURE__ */ ct({
9536
9574
  pointerEvents: "none"
9537
9575
  }));
9538
9576
  return (d, h) => {
9539
- const p = D("v-spacer"), m = D("v-icon"), A = zo("ripple");
9540
- return Zo((S(), Z("div", {
9577
+ const p = M("v-spacer"), m = M("v-icon"), A = zo("ripple");
9578
+ return Zo((S(), tt("div", {
9541
9579
  class: "d-flex align-center cursor-pointer",
9542
- style: W(l.value),
9543
- onClick: h[1] || (h[1] = (P) => c("x-click", a.id)),
9544
- onMouseout: h[2] || (h[2] = (P) => u.value = !1),
9545
- onMouseover: h[3] || (h[3] = (P) => u.value = !0)
9580
+ style: j(l.value),
9581
+ onClick: h[1] || (h[1] = (R) => c("x-click", a.id)),
9582
+ onMouseout: h[2] || (h[2] = (R) => u.value = !1),
9583
+ onMouseover: h[3] || (h[3] = (R) => u.value = !0)
9546
9584
  }, [
9547
9585
  w("div", Va, [
9548
9586
  w("span", xa, $t(a.title), 1),
9549
- a.desc ? (S(), Z("span", Ya, $t(a.desc), 1)) : rt("", !0)
9587
+ a.desc ? (S(), tt("span", Ya, $t(a.desc), 1)) : rt("", !0)
9550
9588
  ]),
9551
9589
  L(p),
9552
9590
  L(m, {
@@ -9556,7 +9594,7 @@ const Ma = /* @__PURE__ */ ct({
9556
9594
  }, ["stop"]))
9557
9595
  }),
9558
9596
  w("div", {
9559
- style: W(_.value)
9597
+ style: j(_.value)
9560
9598
  }, null, 4)
9561
9599
  ], 36)), [
9562
9600
  [A]
@@ -9568,7 +9606,7 @@ const Ma = /* @__PURE__ */ ct({
9568
9606
  class: "text-caption text-grey"
9569
9607
  }, Ka = /* @__PURE__ */ ct({
9570
9608
  __name: "index",
9571
- props: /* @__PURE__ */ We({
9609
+ props: /* @__PURE__ */ je({
9572
9610
  lock: { type: Boolean }
9573
9611
  }, {
9574
9612
  modelValue: { type: Boolean, required: !0 },
@@ -9584,25 +9622,32 @@ const Ma = /* @__PURE__ */ ct({
9584
9622
  }
9585
9623
  const p = [];
9586
9624
  i.workspace.getTopBlocks(!0).forEach((A) => {
9587
- const P = A.id === Uo()?.id;
9588
- let U = "";
9625
+ const R = A.id === Uo()?.id;
9626
+ let P = "";
9589
9627
  if (A.type.startsWith("on_app_event_v")) {
9590
- const nt = A, Ct = tt[nt.node.key];
9591
- Ct && (U = n(Ct.name), nt.node.alias && (U += " / " + nt.node.alias), U += " - " + Ie(nt.event.kind, nt.event.names));
9592
- } else A.type.startsWith("watch_effect_v") ? U = n("x-block-lib.watchEffect") : A.type.startsWith("app_bind_v") ? U = n("x-block-lib.bind") : A.type.startsWith("func_entry_v") ? U = n("x-block-lib.funcEntry") : A.type.startsWith("procedure_def_v") ? U = n("x-block-lib.procedure") + " - " + A.getFieldValue("NAME") : U = n("x-block-lib.temporaryBlock");
9628
+ const G = A, Ct = et[G.node.key];
9629
+ Ct && (P = n(Ct.name), G.node.alias && (P += " / " + G.node.alias), P += " - " + Ie(G.event.kind, G.event.names));
9630
+ } else if (A.type.startsWith("watch_effect_v"))
9631
+ P = n("x-block-lib.watchEffect");
9632
+ else if (A.type.startsWith("app_bind_v"))
9633
+ P = n("x-block-lib.bind");
9634
+ else if (A.type.startsWith("implement_app_method_v")) {
9635
+ const G = A;
9636
+ P = n("x-block-lib.implementMethod"), P += " - " + ve(G.method.kind, G.method.names);
9637
+ } else A.type.startsWith("func_entry_v") ? P = n("x-block-lib.funcEntry") : A.type.startsWith("procedure_def_v") ? P = n("x-block-lib.procedure") + " - " + A.getFieldValue("NAME") : P = n("x-block-lib.temporaryBlock");
9593
9638
  const At = A.getCommentText() ?? "";
9594
9639
  p.push({
9595
9640
  id: A.id,
9596
- name: U,
9641
+ name: P,
9597
9642
  desc: At,
9598
- select: P
9643
+ select: R
9599
9644
  });
9600
9645
  }), a.value = p;
9601
9646
  } });
9602
9647
  let u = [];
9603
9648
  const l = () => {
9604
9649
  if (t.lock) {
9605
- Yn(n("x-block-lib.msg.cannotOperateInLockedState"));
9650
+ xn(n("x-block-lib.msg.cannotOperateInLockedState"));
9606
9651
  return;
9607
9652
  }
9608
9653
  const p = [];
@@ -9627,23 +9672,23 @@ const Ma = /* @__PURE__ */ ct({
9627
9672
  console.assert(!1);
9628
9673
  return;
9629
9674
  }
9630
- let P = "";
9631
- p.newIndex > p.oldIndex ? P = u[p.newIndex] : p.newIndex > 0 && (P = u[p.newIndex - 1]);
9632
- let U = -10;
9633
- P !== "" && (U = i.workspace.getBlockById(
9634
- P
9675
+ let R = "";
9676
+ p.newIndex > p.oldIndex ? R = u[p.newIndex] : p.newIndex > 0 && (R = u[p.newIndex - 1]);
9677
+ let P = -10;
9678
+ R !== "" && (P = i.workspace.getBlockById(
9679
+ R
9635
9680
  ).getRelativeToSurfaceXY().y + 10);
9636
9681
  const At = A.getRelativeToSurfaceXY();
9637
- A.moveTo(new C.Coordinate(At.x, U)), i.workspace.cleanUp(), uo();
9682
+ A.moveTo(new C.Coordinate(At.x, P)), i.workspace.cleanUp(), ro();
9638
9683
  }, h = async (p) => {
9639
9684
  if (!i.workspace) {
9640
9685
  console.assert(!1);
9641
9686
  return;
9642
9687
  }
9643
9688
  const m = i.workspace.getBlockById(p);
9644
- xn.setSelected(m), un(p), o.value = !1;
9689
+ Vn.setSelected(m), un(p), o.value = !1;
9645
9690
  };
9646
- return (p, m) => a.value.length > 0 ? (S(), st(R(Mo), {
9691
+ return (p, m) => a.value.length > 0 ? (S(), st(D(Mo), {
9647
9692
  key: 0,
9648
9693
  modelValue: a.value,
9649
9694
  "onUpdate:modelValue": m[0] || (m[0] = (A) => a.value = A),
@@ -9655,7 +9700,7 @@ const Ma = /* @__PURE__ */ ct({
9655
9700
  onStart: l
9656
9701
  }, {
9657
9702
  default: at(() => [
9658
- (S(!0), Z($n, null, ti(a.value, (A) => (S(), st(Fa, {
9703
+ (S(!0), tt(Kn, null, ti(a.value, (A) => (S(), st(Fa, {
9659
9704
  id: A.id,
9660
9705
  key: A.id,
9661
9706
  desc: A.desc,
@@ -9665,14 +9710,14 @@ const Ma = /* @__PURE__ */ ct({
9665
9710
  }, null, 8, ["id", "desc", "select", "title"]))), 128))
9666
9711
  ]),
9667
9712
  _: 1
9668
- }, 8, ["modelValue"])) : (S(), Z("span", wa, $t(R(n)("x-block-lib.noOption")), 1));
9713
+ }, 8, ["modelValue"])) : (S(), tt("span", wa, $t(D(n)("x-block-lib.noOption")), 1));
9669
9714
  }
9670
9715
  }), $a = (t, e) => {
9671
9716
  const n = t.__vccOpts || t;
9672
9717
  for (const [o, i] of e)
9673
9718
  n[o] = i;
9674
9719
  return n;
9675
- }, Ha = /* @__PURE__ */ $a(Ka, [["__scopeId", "data-v-6cb62cd6"]]), Ga = /* @__PURE__ */ ct({
9720
+ }, Ha = /* @__PURE__ */ $a(Ka, [["__scopeId", "data-v-daa85471"]]), Ga = /* @__PURE__ */ ct({
9676
9721
  __name: "index",
9677
9722
  props: {
9678
9723
  modelValue: { type: Boolean, required: !0 },
@@ -9694,9 +9739,9 @@ const Ma = /* @__PURE__ */ ct({
9694
9739
  return;
9695
9740
  }
9696
9741
  const l = u.getBlockById(c);
9697
- xn.setSelected(l), un(c), n.value = !1;
9742
+ Vn.setSelected(l), un(c), n.value = !1;
9698
9743
  };
9699
- return (c, u) => (S(), Z("div", {
9744
+ return (c, u) => (S(), tt("div", {
9700
9745
  onClick: u[0] || (u[0] = (l) => a(""))
9701
9746
  }, "blockTree"));
9702
9747
  }
@@ -9707,7 +9752,7 @@ const Ma = /* @__PURE__ */ ct({
9707
9752
  lock: { type: Boolean }
9708
9753
  },
9709
9754
  setup(t, { expose: e }) {
9710
- const { t: n } = Xt(), o = ii(), { sysBarAvail: i } = Fn(), { backgroundColor1: a } = jt(), c = F(() => {
9755
+ const { t: n } = Xt(), o = ii(), { sysBarAvail: i } = Yn(), { backgroundColor1: a } = jt(), c = F(() => {
9711
9756
  let m = "100%";
9712
9757
  return o.mdAndUp.value && (m = "400px"), {
9713
9758
  background: a.value,
@@ -9722,7 +9767,7 @@ const Ma = /* @__PURE__ */ ct({
9722
9767
  };
9723
9768
  }), l = F(() => ({
9724
9769
  height: "60px"
9725
- })), { open: _ } = en(`blocklyNavigatorDlg${je()}`);
9770
+ })), { open: _ } = nn(`blocklyNavigatorDlg${Xe()}`);
9726
9771
  ei(() => {
9727
9772
  _.value = !1;
9728
9773
  });
@@ -9730,70 +9775,70 @@ const Ma = /* @__PURE__ */ ct({
9730
9775
  return e({ open: _, update: () => {
9731
9776
  t.type === "list" ? d.value?.update() : t.type === "tree" && h.value?.update();
9732
9777
  } }), (m, A) => {
9733
- const P = D("v-sheet"), U = D("v-btn"), At = D("v-spacer"), nt = D("v-dialog"), Ct = D("v-tooltip");
9734
- return S(), Z($n, null, [
9735
- L(nt, {
9736
- modelValue: R(_),
9737
- "onUpdate:modelValue": A[5] || (A[5] = (G) => ne(_) ? _.value = G : null),
9778
+ const R = M("v-sheet"), P = M("v-btn"), At = M("v-spacer"), G = M("v-dialog"), Ct = M("v-tooltip");
9779
+ return S(), tt(Kn, null, [
9780
+ L(G, {
9781
+ modelValue: D(_),
9782
+ "onUpdate:modelValue": A[5] || (A[5] = (W) => ne(_) ? _.value = W : null),
9738
9783
  eager: "",
9739
9784
  fullscreen: "",
9740
9785
  "no-click-animation": "",
9741
9786
  persistent: "",
9742
9787
  transition: "scroll-x-reverse-transition",
9743
- onKeydown: A[6] || (A[6] = Hn(Ft((G) => _.value = !1, ["stop", "prevent"]), ["esc"]))
9788
+ onKeydown: A[6] || (A[6] = $n(Ft((W) => _.value = !1, ["stop", "prevent"]), ["esc"]))
9744
9789
  }, {
9745
9790
  default: at(() => [
9746
9791
  w("div", {
9747
9792
  class: "w-100 h-100 d-flex flex-row-reverse",
9748
- onClick: A[3] || (A[3] = Ft((G) => _.value = !1, ["self"])),
9749
- onContextmenu: A[4] || (A[4] = Ft((G) => _.value = !1, ["self", "prevent"]))
9793
+ onClick: A[3] || (A[3] = Ft((W) => _.value = !1, ["self"])),
9794
+ onContextmenu: A[4] || (A[4] = Ft((W) => _.value = !1, ["self", "prevent"]))
9750
9795
  }, [
9751
9796
  w("div", {
9752
9797
  class: "elevation-2",
9753
- style: W(c.value)
9798
+ style: j(c.value)
9754
9799
  }, [
9755
- R(i) ? (S(), st(P, {
9800
+ D(i) ? (S(), st(R, {
9756
9801
  key: 0,
9757
9802
  color: "transparent",
9758
9803
  height: 24
9759
9804
  })) : rt("", !0),
9760
- L(P, {
9805
+ L(R, {
9761
9806
  class: "d-flex align-center px-2",
9762
9807
  color: "transparent",
9763
9808
  height: 48
9764
9809
  }, {
9765
9810
  default: at(() => [
9766
- L(U, {
9811
+ L(P, {
9767
9812
  density: "comfortable",
9768
9813
  icon: "mdi-close",
9769
9814
  variant: "text",
9770
- onClick: A[0] || (A[0] = (G) => _.value = !1)
9815
+ onClick: A[0] || (A[0] = (W) => _.value = !1)
9771
9816
  }),
9772
- w("span", Wa, $t(R(n)("x-block-lib.navigator")), 1),
9817
+ w("span", Wa, $t(D(n)("x-block-lib.navigator")), 1),
9773
9818
  L(At)
9774
9819
  ]),
9775
9820
  _: 1
9776
9821
  }),
9777
9822
  w("div", {
9778
9823
  class: "overflow-y-auto",
9779
- style: W(u.value)
9824
+ style: j(u.value)
9780
9825
  }, [
9781
9826
  t.type === "list" ? (S(), st(Ha, {
9782
9827
  key: 0,
9783
9828
  ref_key: "blockList",
9784
9829
  ref: d,
9785
- modelValue: R(_),
9786
- "onUpdate:modelValue": A[1] || (A[1] = (G) => ne(_) ? _.value = G : null),
9830
+ modelValue: D(_),
9831
+ "onUpdate:modelValue": A[1] || (A[1] = (W) => ne(_) ? _.value = W : null),
9787
9832
  lock: t.lock
9788
9833
  }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (S(), st(Ga, {
9789
9834
  key: 1,
9790
9835
  ref_key: "blockTree",
9791
9836
  ref: h,
9792
- modelValue: R(_),
9793
- "onUpdate:modelValue": A[2] || (A[2] = (G) => ne(_) ? _.value = G : null)
9837
+ modelValue: D(_),
9838
+ "onUpdate:modelValue": A[2] || (A[2] = (W) => ne(_) ? _.value = W : null)
9794
9839
  }, null, 8, ["modelValue"])) : rt("", !0),
9795
9840
  w("div", {
9796
- style: W(l.value)
9841
+ style: j(l.value)
9797
9842
  }, null, 4)
9798
9843
  ], 4)
9799
9844
  ], 4)
@@ -9802,10 +9847,10 @@ const Ma = /* @__PURE__ */ ct({
9802
9847
  _: 1
9803
9848
  }, 8, ["modelValue"]),
9804
9849
  L(Ct, {
9805
- text: R(n)("x-block-lib.tip.hotkeyCtrlE")
9850
+ text: D(n)("x-block-lib.tip.hotkeyCtrlE")
9806
9851
  }, {
9807
- activator: at(({ props: G }) => [
9808
- L(U, sn(G, {
9852
+ activator: at(({ props: W }) => [
9853
+ L(P, sn(W, {
9809
9854
  density: "comfortable",
9810
9855
  icon: "mdi-navigation-variant",
9811
9856
  variant: "outlined",
@@ -9822,14 +9867,14 @@ function V(t) {
9822
9867
  const e = x.createElement("label");
9823
9868
  return e.setAttribute("text", t), e;
9824
9869
  }
9825
- function y(t, e) {
9870
+ function v(t, e) {
9826
9871
  const n = x.createElement("block");
9827
9872
  if (n.setAttribute("type", t), e)
9828
9873
  for (const o of e)
9829
9874
  n.appendChild(o);
9830
9875
  return n;
9831
9876
  }
9832
- function _o(t) {
9877
+ function lo(t) {
9833
9878
  const e = x.createElement("mutation");
9834
9879
  for (const { key: n, value: o } of t)
9835
9880
  e.setAttribute(n, o);
@@ -9891,11 +9936,11 @@ function Qa() {
9891
9936
  }
9892
9937
  function za() {
9893
9938
  const t = [];
9894
- return t.push(V(f("LABEL_EVENT"))), j("onEvent") && t.push(y("on_app_event_v1")), Ja() && t.push(y("trigger_app_event_v1")), t.push(
9895
- y("app_bind_v1", [_o([{ key: "items", value: "2" }])])
9896
- ), t.push(y("watch_effect_v1")), (j("getProperty") || j("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), j("getProperty") && t.push(y("get_app_property_v1")), j("setProperty") && t.push(y("set_app_property_v1")), qa() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), (j("callMethod") || Pn()) && t.push(V(f("LABEL_METHOD"))), j("callMethod") && t.push(y("call_app_method_v1")), Pn() && (t.push(y("impl_app_method_v1")), Qa() && t.push(y("set_app_method_output_v1")), t.push(y("procedure_return_v1"))), t;
9939
+ return t.push(V(f("LABEL_EVENT"))), X("onEvent") && t.push(v("on_app_event_v1")), Ja() && t.push(v("trigger_app_event_v1")), t.push(
9940
+ v("app_bind_v1", [lo([{ key: "items", value: "2" }])])
9941
+ ), t.push(v("watch_effect_v1")), (X("getProperty") || X("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), X("getProperty") && t.push(v("get_app_property_v1")), X("setProperty") && t.push(v("set_app_property_v1")), qa() && (t.push(V(f("LABEL_STATE"))), t.push(v("get_app_state_v1")), t.push(v("set_app_state_v1"))), (X("callMethod") || Pn()) && t.push(V(f("LABEL_METHOD"))), X("callMethod") && t.push(v("call_app_method_v1")), Pn() && (t.push(v("implement_app_method_v1")), Qa() && t.push(v("set_app_method_output_v1")), t.push(v("procedure_return_v1"))), t;
9897
9942
  }
9898
- const po = { name: "APP_COMP_CATEGORY", callback: za };
9943
+ const _o = { name: "APP_COMP_CATEGORY", callback: za };
9899
9944
  function Za() {
9900
9945
  const t = [];
9901
9946
  return t.push(V(f("LABEL_FUNC"))), t.push(V(f("LABEL_FLOW"))), t;
@@ -9903,7 +9948,7 @@ function Za() {
9903
9948
  const pe = { name: "APP_COMPUTE_CATEGORY", callback: Za };
9904
9949
  function tc() {
9905
9950
  const t = [];
9906
- return t.push(y("app_debug_trace_v1", [bt("OBJECT")])), t.push(y("popup_message_v1", [bt("TEXT")])), t.push(y("open_confirm_dlg_v1")), t.push(y("open_prompt_dlg_v1")), t;
9951
+ return t.push(v("app_debug_trace_v1", [bt("OBJECT")])), t.push(v("popup_message_v1", [bt("TEXT")])), t.push(v("open_confirm_dlg_v1")), t.push(v("open_prompt_dlg_v1")), t;
9907
9952
  }
9908
9953
  const de = { name: "APP_MESSAGE_CATEGORY", callback: tc };
9909
9954
  function ec() {
@@ -9914,7 +9959,7 @@ function ec() {
9914
9959
  }
9915
9960
  function nc() {
9916
9961
  const t = [];
9917
- return t.push(y("app_env_is_v1")), ec() && t.push(y("navigate_to_v1")), t;
9962
+ return t.push(v("app_env_is_v1")), ec() && t.push(v("navigate_to_v1")), t;
9918
9963
  }
9919
9964
  const he = { name: "APP_MISC_CATEGORY", callback: nc };
9920
9965
  function oc() {
@@ -9927,14 +9972,14 @@ function ic() {
9927
9972
  }
9928
9973
  function sc() {
9929
9974
  const t = [];
9930
- return t.push(V(f("LABEL_EVENT"))), j("onEvent") && t.push(y("on_app_event_v1")), t.push(
9931
- y("app_bind_v1", [_o([{ key: "items", value: "2" }])])
9932
- ), t.push(y("watch_effect_v1")), (j("getProperty") || j("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), j("getProperty") && t.push(y("get_app_property_v1")), j("setProperty") && t.push(y("set_app_property_v1")), oc() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), j("callMethod") && (t.push(V(f("LABEL_METHOD"))), t.push(y("call_app_method_v1"))), ic() && (t.push(V(f("LABEL_ARGUMENT"))), t.push(y("get_page_argument_v1"))), t;
9975
+ return t.push(V(f("LABEL_EVENT"))), X("onEvent") && t.push(v("on_app_event_v1")), t.push(
9976
+ v("app_bind_v1", [lo([{ key: "items", value: "2" }])])
9977
+ ), t.push(v("watch_effect_v1")), (X("getProperty") || X("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), X("getProperty") && t.push(v("get_app_property_v1")), X("setProperty") && t.push(v("set_app_property_v1")), oc() && (t.push(V(f("LABEL_STATE"))), t.push(v("get_app_state_v1")), t.push(v("set_app_state_v1"))), X("callMethod") && (t.push(V(f("LABEL_METHOD"))), t.push(v("call_app_method_v1"))), ic() && (t.push(V(f("LABEL_ARGUMENT"))), t.push(v("get_page_argument_v1"))), t;
9933
9978
  }
9934
- const ho = { name: "APP_PAGE_CATEGORY", callback: sc };
9979
+ const po = { name: "APP_PAGE_CATEGORY", callback: sc };
9935
9980
  function ac() {
9936
9981
  const t = [];
9937
- return t.push(V(f("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
9982
+ return t.push(V(f("LABEL_RESOURCE"))), t.push(v("upload_resource_v1")), t;
9938
9983
  }
9939
9984
  const fe = { name: "APP_RESOURCE_CATEGORY", callback: ac }, xt = C.xml;
9940
9985
  function cc() {
@@ -10006,16 +10051,16 @@ const _t = {
10006
10051
  };
10007
10052
  function uc() {
10008
10053
  const t = [];
10009
- if (et().length > 0)
10010
- t.push(V(f("LABEL_OPERATION"))), t.push(y("add_data_v1")), t.push(y("delete_data_v1")), t.push(y("update_data_v1")), t.push(y("query_data_v1")), t.push(y("transaction_v1")), t.push(
10011
- y("interrupt_transaction_v1", [bt("VALUE")])
10012
- ), t.push(V(f("LABEL_CONDITION"))), t.push(y("cond_logic_v1")), t.push(y("cond_atomic_v1", [bt("VALUE")])), t.push(V(f("LABEL_QUERY_EXTRA"))), t.push(
10013
- y("query_extra_limit_v1", [
10054
+ if (nt().length > 0)
10055
+ t.push(V(f("LABEL_OPERATION"))), t.push(v("add_data_v1")), t.push(v("delete_data_v1")), t.push(v("update_data_v1")), t.push(v("query_data_v1")), t.push(v("transaction_v1")), t.push(
10056
+ v("interrupt_transaction_v1", [bt("VALUE")])
10057
+ ), t.push(V(f("LABEL_CONDITION"))), t.push(v("cond_logic_v1")), t.push(v("cond_atomic_v1", [bt("VALUE")])), t.push(V(f("LABEL_QUERY_EXTRA"))), t.push(
10058
+ v("query_extra_limit_v1", [
10014
10059
  bn("OFFSET", 0),
10015
10060
  bn("LIMIT", 1)
10016
10061
  ])
10017
10062
  ), t.push(
10018
- y("query_extra_sortby_v1", [
10063
+ v("query_extra_sortby_v1", [
10019
10064
  bt("COLUMN"),
10020
10065
  Xa("DESC")
10021
10066
  ])
@@ -10032,7 +10077,7 @@ function lc() {
10032
10077
  }
10033
10078
  function _c() {
10034
10079
  const t = [];
10035
- return g.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), lc() && console.assert(!0), t;
10080
+ return g.compute.activeObject.type === "flow" && t.push(v("on_flow_state_event_v1")), lc() && console.assert(!0), t;
10036
10081
  }
10037
10082
  const Te = { name: "COMPUTE_FLOW_CATEGORY", callback: _c };
10038
10083
  function pc() {
@@ -10040,16 +10085,16 @@ function pc() {
10040
10085
  }
10041
10086
  function dc() {
10042
10087
  const t = [];
10043
- return g.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), g.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), pc() && t.push(y("call_func_internal_v1")), t;
10088
+ return g.compute.activeObject.type === "func" && (t.push(v("func_entry_v1")), g.compute.activeFunc.outputs.length > 0 && t.push(v("set_func_output_v1")), t.push(v("procedure_return_v1"))), pc() && t.push(v("call_func_internal_v1")), t;
10044
10089
  }
10045
10090
  const Ee = { name: "COMPUTE_FUNC_CATEGORY", callback: dc };
10046
10091
  function hc() {
10047
10092
  const t = [];
10048
10093
  return t.push(
10049
- y("compute_debug_trace_v1", [bt("OBJECT")])
10094
+ v("compute_debug_trace_v1", [bt("OBJECT")])
10050
10095
  ), t;
10051
10096
  }
10052
- const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10097
+ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
10053
10098
  kind: "category",
10054
10099
  name: "%{BKY_CATEGORY_COLOR}",
10055
10100
  categorystyle: "color_category",
@@ -10123,7 +10168,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10123
10168
  }
10124
10169
  }
10125
10170
  ]
10126
- }, Se = {
10171
+ }, Be = {
10127
10172
  kind: "category",
10128
10173
  name: "%{BKY_CATEGORY_LIST}",
10129
10174
  categorystyle: "list_category",
@@ -10238,7 +10283,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10238
10283
  type: "list_reverse_v1"
10239
10284
  }
10240
10285
  ]
10241
- }, Be = {
10286
+ }, be = {
10242
10287
  kind: "category",
10243
10288
  name: "%{BKY_CATEGORY_LOGIC}",
10244
10289
  categorystyle: "logic_category",
@@ -10280,7 +10325,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10280
10325
  type: "logic_ternary_v1"
10281
10326
  }
10282
10327
  ]
10283
- }, be = {
10328
+ }, Pe = {
10284
10329
  kind: "category",
10285
10330
  name: "%{BKY_CATEGORY_LOOP}",
10286
10331
  categorystyle: "loop_category",
@@ -10342,7 +10387,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10342
10387
  type: "flow_control_v1"
10343
10388
  }
10344
10389
  ]
10345
- }, Pe = {
10390
+ }, Re = {
10346
10391
  kind: "category",
10347
10392
  name: "%{BKY_CATEGORY_MATH}",
10348
10393
  categorystyle: "math_category",
@@ -10497,7 +10542,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10497
10542
  type: "math_on_list_v1"
10498
10543
  }
10499
10544
  ]
10500
- }, Re = {
10545
+ }, De = {
10501
10546
  kind: "category",
10502
10547
  name: "%{BKY_CATEGORY_OBJECT}",
10503
10548
  categorystyle: "object_category",
@@ -10565,7 +10610,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10565
10610
  }
10566
10611
  }
10567
10612
  ]
10568
- }, De = {
10613
+ }, Me = {
10569
10614
  kind: "category",
10570
10615
  name: "%{BKY_CATEGORY_TEXT}",
10571
10616
  categorystyle: "text_category",
@@ -10728,7 +10773,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10728
10773
  type: "text_reverse_v1"
10729
10774
  }
10730
10775
  ]
10731
- }, fo = {
10776
+ }, ho = {
10732
10777
  kind: "category",
10733
10778
  name: "%{BKY_CATEGORY_TIME}",
10734
10779
  categorystyle: "time_category",
@@ -10759,7 +10804,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10759
10804
  kind: "category",
10760
10805
  name: "%{BKY_CATEGORY_COMP}",
10761
10806
  categorystyle: "misc_category",
10762
- custom: po.name
10807
+ custom: _o.name
10763
10808
  },
10764
10809
  {
10765
10810
  kind: "category",
@@ -10773,14 +10818,14 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10773
10818
  categorystyle: "misc_category",
10774
10819
  custom: he.name
10775
10820
  },
10821
+ Pe,
10776
10822
  be,
10823
+ Re,
10824
+ Me,
10777
10825
  Be,
10778
- Pe,
10779
10826
  De,
10780
10827
  Se,
10781
- Re,
10782
- Le,
10783
- fo,
10828
+ ho,
10784
10829
  {
10785
10830
  kind: "category",
10786
10831
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10833,13 +10878,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10833
10878
  categorystyle: "misc_category",
10834
10879
  custom: ge.name
10835
10880
  },
10881
+ Pe,
10836
10882
  be,
10883
+ Re,
10884
+ Me,
10837
10885
  Be,
10838
- Pe,
10839
10886
  De,
10840
10887
  Se,
10841
- Re,
10842
- Le,
10843
10888
  {
10844
10889
  kind: "category",
10845
10890
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10880,13 +10925,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10880
10925
  categorystyle: "misc_category",
10881
10926
  custom: ge.name
10882
10927
  },
10928
+ Pe,
10883
10929
  be,
10930
+ Re,
10931
+ Me,
10884
10932
  Be,
10885
- Pe,
10886
10933
  De,
10887
10934
  Se,
10888
- Re,
10889
- Le,
10890
10935
  {
10891
10936
  kind: "category",
10892
10937
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10938,7 +10983,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10938
10983
  kind: "category",
10939
10984
  name: "%{BKY_CATEGORY_PAGE}",
10940
10985
  categorystyle: "misc_category",
10941
- custom: ho.name
10986
+ custom: po.name
10942
10987
  },
10943
10988
  {
10944
10989
  kind: "category",
@@ -10952,14 +10997,14 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10952
10997
  categorystyle: "misc_category",
10953
10998
  custom: he.name
10954
10999
  },
11000
+ Pe,
10955
11001
  be,
11002
+ Re,
11003
+ Me,
10956
11004
  Be,
10957
- Pe,
10958
11005
  De,
10959
11006
  Se,
10960
- Re,
10961
- Le,
10962
- fo,
11007
+ ho,
10963
11008
  {
10964
11009
  kind: "category",
10965
11010
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10985,7 +11030,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10985
11030
  custom: pe.name
10986
11031
  }
10987
11032
  ]
10988
- }, $e = {
11033
+ }, He = {
10989
11034
  grid: {
10990
11035
  length: 2,
10991
11036
  snap: !0,
@@ -11012,9 +11057,9 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
11012
11057
  }
11013
11058
  };
11014
11059
  function Ac(t, e, n, o) {
11015
- $e.theme = o ? "dark" : "light", $e.toolbox = Ic(e, n);
11016
- const i = Vo(t, $e);
11017
- return i.addChangeListener(xo.shadowBlockConversionChangeListener), Oc(i, e, n), yc(i), i;
11060
+ He.theme = o ? "dark" : "light", He.toolbox = Ic(e, n);
11061
+ const i = Vo(t, He);
11062
+ return i.addChangeListener(xo.shadowBlockConversionChangeListener), Oc(i, e, n), vc(i), i;
11018
11063
  }
11019
11064
  function Ic(t, e) {
11020
11065
  let n;
@@ -11024,10 +11069,10 @@ function Oc(t, e, n) {
11024
11069
  function o({ name: i, callback: a }) {
11025
11070
  t.registerToolboxCategoryCallback(i, () => a(e));
11026
11071
  }
11027
- e === "page" ? n === "v1" && (o(ho), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "comp" ? n === "v1" && (o(po), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "func" ? n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt)) : e === "flow" && n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt));
11072
+ e === "page" ? n === "v1" && (o(po), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "comp" ? n === "v1" && (o(_o), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "func" ? n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt)) : e === "flow" && n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt));
11028
11073
  }
11029
- function yc(t) {
11030
- const { router: e } = vt;
11074
+ function vc(t) {
11075
+ const { router: e } = yt;
11031
11076
  t.registerButtonCallback("NO_COMPUTE", () => {
11032
11077
  const n = e.resolve({
11033
11078
  path: "/compute/" + Date.now()
@@ -11044,7 +11089,7 @@ function yc(t) {
11044
11089
  }, 100);
11045
11090
  });
11046
11091
  }
11047
- function vc(t, e) {
11092
+ function yc(t, e) {
11048
11093
  const n = e.newBlock("json_root_v1");
11049
11094
  n.initSvg(), n.render();
11050
11095
  const o = (i, a) => {
@@ -11120,7 +11165,7 @@ function Cc(t) {
11120
11165
  }
11121
11166
  const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11122
11167
  __name: "index",
11123
- props: /* @__PURE__ */ We({
11168
+ props: /* @__PURE__ */ je({
11124
11169
  type: {},
11125
11170
  version: {},
11126
11171
  locale: {},
@@ -11131,11 +11176,11 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11131
11176
  scale: { required: !0 },
11132
11177
  scaleModifiers: {}
11133
11178
  }),
11134
- emits: /* @__PURE__ */ We(["ready"], ["update:lock", "update:scale"]),
11179
+ emits: /* @__PURE__ */ je(["ready"], ["update:lock", "update:scale"]),
11135
11180
  setup(t, { expose: e, emit: n }) {
11136
- const { backgroundColor2: o } = jt(), i = Kt(t, "lock"), a = Kt(t, "scale"), c = n, u = `blocklyEditor${je()}`, l = Lt(), _ = wt("parentContainer"), d = wt("clean"), h = wt("navigator"), p = {};
11181
+ const { backgroundColor2: o } = jt(), i = Kt(t, "lock"), a = Kt(t, "scale"), c = n, u = `blocklyEditor${Xe()}`, l = Lt(), _ = wt("parentContainer"), d = wt("clean"), h = wt("navigator"), p = {};
11137
11182
  Da(p);
11138
- const m = Lt(!0), A = Lt(!1), P = F(() => t.type === "json" ? "tree" : "list"), U = F(() => ({
11183
+ const m = Lt(!0), A = Lt(!1), R = F(() => t.type === "json" ? "tree" : "list"), P = F(() => ({
11139
11184
  width: "100%",
11140
11185
  height: "calc(100% - 48px)"
11141
11186
  })), At = F(() => ({
@@ -11144,7 +11189,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11144
11189
  bottom: "0px",
11145
11190
  width: "100%",
11146
11191
  height: "48px"
11147
- })), nt = F(() => ({
11192
+ })), G = F(() => ({
11148
11193
  position: "absolute",
11149
11194
  background: t.dark ? "#0000007f" : "#ffffff7f",
11150
11195
  top: "1px",
@@ -11157,7 +11202,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11157
11202
  top: "0px",
11158
11203
  right: "0px",
11159
11204
  zIndex: 20
11160
- })), G = F(() => ({
11205
+ })), W = F(() => ({
11161
11206
  position: "absolute",
11162
11207
  background: t.dark ? "#0000007f" : "#ffffff7f",
11163
11208
  top: "0px",
@@ -11173,21 +11218,21 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11173
11218
  width: "56px",
11174
11219
  height: "calc(100% - 49px)",
11175
11220
  zIndex: 999
11176
- })), mo = F(() => ({
11221
+ })), fo = F(() => ({
11177
11222
  position: "fixed",
11178
11223
  top: 0,
11179
11224
  left: 0,
11180
11225
  zIndex: 3e3
11181
- })), { open: Ut } = en(`blocklyEditorFlyout${je()}`);
11226
+ })), { open: Ut } = nn(`blocklyEditorFlyout${Xe()}`);
11182
11227
  gn(async () => {
11183
11228
  if (!l.value || !_.value) {
11184
11229
  console.assert(!1);
11185
11230
  return;
11186
11231
  }
11187
- Yo(_.value), await In(t.locale), p.workspace = Ac(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(I.disableOrphans), p.workspace.addChangeListener(To);
11232
+ Yo(_.value), await In(t.locale), p.workspace = Ac(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(I.disableOrphans), p.workspace.addChangeListener(mo);
11188
11233
  const N = document.querySelector(`#${u} .blocklyFlyout`);
11189
- new MutationObserver((Me) => {
11190
- Me.forEach((zt) => {
11234
+ new MutationObserver((Ue) => {
11235
+ Ue.forEach((zt) => {
11191
11236
  zt.type === "attributes" && zt.attributeName === "style" && (Ut.value = p.workspace.getFlyout().isVisible());
11192
11237
  });
11193
11238
  }).observe(N, { attributes: !0 }), Ut.value = p.workspace.getFlyout().isVisible(), pn(), dn(), await ni(), c("ready");
@@ -11196,9 +11241,9 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11196
11241
  }), Fo(l, () => {
11197
11242
  p.workspace && wo(p.workspace);
11198
11243
  });
11199
- async function To(N) {
11244
+ async function mo(N) {
11200
11245
  if (N.type === I.FINISHED_LOADING) {
11201
- uo(), setTimeout(() => {
11246
+ ro(), setTimeout(() => {
11202
11247
  h.value?.update();
11203
11248
  }, 0), m.value = !1;
11204
11249
  return;
@@ -11213,19 +11258,19 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11213
11258
  }, 0);
11214
11259
  }
11215
11260
  }
11216
- const Eo = (N) => {
11217
- m.value = !0, t.type === "json" ? vc(N, p.workspace) : $.workspaces.load(N, p.workspace);
11218
- }, go = () => t.type === "json" ? Cc(p.workspace) : $.workspaces.save(p.workspace), Ao = () => {
11261
+ const To = (N) => {
11262
+ m.value = !0, t.type === "json" ? yc(N, p.workspace) : $.workspaces.load(N, p.workspace);
11263
+ }, Eo = () => t.type === "json" ? Cc(p.workspace) : $.workspaces.save(p.workspace), go = () => {
11219
11264
  if (t.type === "json")
11220
11265
  console.assert(!1);
11221
11266
  else
11222
11267
  return s.workspaceToCode(p.workspace);
11223
- }, Io = () => Ra(p.workspace), pn = () => {
11268
+ }, Ao = () => Ra(p.workspace), pn = () => {
11224
11269
  p.workspace.setIsReadOnly(i.value), p.workspace.isReadOnly() && (Ut.value = !1);
11225
11270
  }, dn = () => {
11226
11271
  p.workspace.setScale(a.value);
11227
- }, Oo = () => {
11228
- p.workspace.fireChangeListener(new Gn());
11272
+ }, Io = () => {
11273
+ p.workspace.fireChangeListener(new Hn());
11229
11274
  }, hn = () => {
11230
11275
  d.value?.cleanWorkspace();
11231
11276
  }, fn = () => {
@@ -11255,39 +11300,39 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11255
11300
  dn();
11256
11301
  }), e({
11257
11302
  loading: m,
11258
- load: Eo,
11259
- save: go,
11260
- generateCode: Ao,
11261
- generateReactivity: Io,
11262
- fireStateChange: Oo
11303
+ load: To,
11304
+ save: Eo,
11305
+ generateCode: go,
11306
+ generateReactivity: Ao,
11307
+ fireStateChange: Io
11263
11308
  }), (N, It) => {
11264
- const Me = D("v-icon"), zt = D("x-loading");
11265
- return S(), Z("div", kc, [
11309
+ const Ue = M("v-icon"), zt = M("x-loading");
11310
+ return S(), tt("div", kc, [
11266
11311
  w("div", {
11267
11312
  id: u,
11268
11313
  ref_key: "blocklyDiv",
11269
11314
  ref: l,
11270
- style: W(U.value)
11315
+ style: j(P.value)
11271
11316
  }, null, 4),
11272
11317
  w("div", {
11273
- style: W(At.value)
11318
+ style: j(At.value)
11274
11319
  }, [
11275
11320
  oi(N.$slots, "bottom")
11276
11321
  ], 4),
11277
- A.value ? (S(), Z("div", {
11322
+ A.value ? (S(), tt("div", {
11278
11323
  key: 0,
11279
11324
  class: "d-flex flex-column justify-center align-center",
11280
- style: W(nt.value)
11325
+ style: j(G.value)
11281
11326
  }, [
11282
- L(Me, {
11327
+ L(Ue, {
11283
11328
  icon: "mdi-delete",
11284
11329
  size: "x-large"
11285
11330
  })
11286
11331
  ], 4)) : rt("", !0),
11287
- m.value ? rt("", !0) : (S(), Z("div", {
11332
+ m.value ? rt("", !0) : (S(), tt("div", {
11288
11333
  key: 1,
11289
11334
  class: "d-flex align-end ga-3 pt-3 pr-3",
11290
- style: W(Ct.value)
11335
+ style: j(Ct.value)
11291
11336
  }, [
11292
11337
  L(Ma, {
11293
11338
  ref_key: "clean",
@@ -11296,27 +11341,27 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11296
11341
  }, null, 8, ["lock"]),
11297
11342
  L(Ua, {
11298
11343
  modelValue: i.value,
11299
- "onUpdate:modelValue": It[0] || (It[0] = (yo) => i.value = yo)
11344
+ "onUpdate:modelValue": It[0] || (It[0] = (Oo) => i.value = Oo)
11300
11345
  }, null, 8, ["modelValue"]),
11301
11346
  L(ja, {
11302
11347
  ref_key: "navigator",
11303
11348
  ref: h,
11304
11349
  lock: i.value,
11305
- type: P.value
11350
+ type: R.value
11306
11351
  }, null, 8, ["lock", "type"])
11307
11352
  ], 4)),
11308
- i.value ? (S(), Z("div", {
11353
+ i.value ? (S(), tt("div", {
11309
11354
  key: 2,
11310
- style: W(_n.value)
11355
+ style: j(_n.value)
11311
11356
  }, null, 4)) : rt("", !0),
11312
- i.value ? (S(), Z("div", {
11357
+ i.value ? (S(), tt("div", {
11313
11358
  key: 3,
11314
- style: W(G.value)
11359
+ style: j(W.value)
11315
11360
  }, null, 4)) : rt("", !0),
11316
11361
  w("div", {
11317
11362
  ref_key: "parentContainer",
11318
11363
  ref: _,
11319
- style: W(mo.value)
11364
+ style: j(fo.value)
11320
11365
  }, null, 4),
11321
11366
  L(zt, {
11322
11367
  open: m.value,
@@ -11335,14 +11380,14 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11335
11380
  Ko.registerLanguage("javascript", $o);
11336
11381
  const n = Ho.component, { backgroundColor2: o } = jt();
11337
11382
  return (i, a) => {
11338
- const c = D("v-sheet");
11383
+ const c = M("v-sheet");
11339
11384
  return S(), st(c, {
11340
- color: R(o),
11385
+ color: D(o),
11341
11386
  height: "100%",
11342
11387
  width: "100%"
11343
11388
  }, {
11344
11389
  default: at(() => [
11345
- L(R(n), {
11390
+ L(D(n), {
11346
11391
  code: e.code,
11347
11392
  language: "js"
11348
11393
  }, null, 8, ["code"])
@@ -11354,7 +11399,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11354
11399
  }), Sc = { class: "text-subtitle-1" }, Bc = { class: "w-100 h-100 overflow-auto" }, bc = /* @__PURE__ */ ct({
11355
11400
  __name: "index",
11356
11401
  setup(t) {
11357
- const { t: e } = Xt(), { sysBarAvail: n } = Fn(), { backgroundColor0: o, backgroundColor2: i } = jt(), a = Lt(""), c = F(() => {
11402
+ const { t: e } = Xt(), { sysBarAvail: n } = Yn(), { backgroundColor0: o, backgroundColor2: i } = jt(), a = Lt(""), c = F(() => {
11358
11403
  let _ = 48;
11359
11404
  return n.value && (_ += 24), {
11360
11405
  position: "relative",
@@ -11362,33 +11407,33 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11362
11407
  };
11363
11408
  }), u = (_) => {
11364
11409
  a.value = _.code;
11365
- }, { open: l } = en("sourceDlg", u);
11410
+ }, { open: l } = nn("sourceDlg", u);
11366
11411
  return (_, d) => {
11367
- const h = D("v-sheet"), p = D("v-btn"), m = D("v-spacer"), A = D("v-dialog");
11412
+ const h = M("v-sheet"), p = M("v-btn"), m = M("v-spacer"), A = M("v-dialog");
11368
11413
  return S(), st(A, {
11369
- modelValue: R(l),
11370
- "onUpdate:modelValue": d[1] || (d[1] = (P) => ne(l) ? l.value = P : null),
11414
+ modelValue: D(l),
11415
+ "onUpdate:modelValue": d[1] || (d[1] = (R) => ne(l) ? l.value = R : null),
11371
11416
  fullscreen: "",
11372
11417
  "no-click-animation": "",
11373
11418
  persistent: "",
11374
11419
  transition: "dialog-bottom-transition",
11375
- onKeydown: d[2] || (d[2] = Hn(Ft((P) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11420
+ onKeydown: d[2] || (d[2] = $n(Ft((R) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11376
11421
  }, {
11377
11422
  default: at(() => [
11378
11423
  L(h, {
11379
- color: R(o),
11424
+ color: D(o),
11380
11425
  height: "100%",
11381
11426
  width: "100%"
11382
11427
  }, {
11383
11428
  default: at(() => [
11384
- R(n) ? (S(), st(h, {
11429
+ D(n) ? (S(), st(h, {
11385
11430
  key: 0,
11386
- color: R(i),
11431
+ color: D(i),
11387
11432
  height: 24
11388
11433
  }, null, 8, ["color"])) : rt("", !0),
11389
11434
  L(h, {
11390
11435
  class: "d-flex align-center px-2",
11391
- color: R(i),
11436
+ color: D(i),
11392
11437
  height: 48
11393
11438
  }, {
11394
11439
  default: at(() => [
@@ -11396,15 +11441,15 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11396
11441
  density: "comfortable",
11397
11442
  icon: "mdi-close",
11398
11443
  variant: "text",
11399
- onClick: d[0] || (d[0] = (P) => l.value = !1)
11444
+ onClick: d[0] || (d[0] = (R) => l.value = !1)
11400
11445
  }),
11401
- w("span", Sc, $t(R(e)("x-block-lib.dlg.source.title")), 1),
11446
+ w("span", Sc, $t(D(e)("x-block-lib.dlg.source.title")), 1),
11402
11447
  L(m)
11403
11448
  ]),
11404
11449
  _: 1
11405
11450
  }, 8, ["color"]),
11406
11451
  w("div", {
11407
- style: W(c.value)
11452
+ style: j(c.value)
11408
11453
  }, [
11409
11454
  w("div", Bc, [
11410
11455
  L(Lc, { code: a.value }, null, 8, ["code"])
@@ -11422,7 +11467,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11422
11467
  t.component("XBlockly", Nc), t.component("XSourceDlg", bc);
11423
11468
  };
11424
11469
  async function Fc(t) {
11425
- return (await Wn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.h3b844ct.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.mk5971y3.js") }), `./locales/${t}/index.ts`, 4)).default;
11470
+ return (await Gn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.gy41k67q.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.jba8gtia.js") }), `./locales/${t}/index.ts`, 4)).default;
11426
11471
  }
11427
11472
  const wc = { install: Pc };
11428
11473
  export {