x-block-lib 0.10.13 → 0.10.15

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
@@ -8,15 +8,15 @@
8
8
  Touched: 2021
9
9
  */
10
10
  pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#444;background:#f3f3f3}.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-a710550b]{opacity:.4;pointer-events:none}.blocklyToolbox{width:56px;overflow-x:hidden}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{place-items:center;height:28px;display:flex;overflow:hidden}.blocklyFlyout{z-index:21}
11
- /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as ee, M as te, N as d, O as f, P as ne, Q as p, R as re, S as m, T as h, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, _ as g, a as ue, b as de, c as fe, d as pe, f as me, g as _, h as he, i as ge, j as _e, k as ve, l as ye, m as be, n as xe, o as Se, p as v, q as Ce, r as we, s as Te, t as Ee, u as De, v as y, w as b, x, y as Oe, z as ke } from "./vendor.fv51g55i.js";
11
+ /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as ee, M as te, N as d, O as f, P as ne, Q as p, R as re, S as m, T as h, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, _ as g, a as ue, b as de, c as fe, d as pe, f as me, g as _, h as he, i as ge, j as _e, k as ve, l as ye, m as be, n as xe, o as Se, p as v, q as Ce, r as we, s as Te, t as Ee, u as De, v as y, w as b, x, y as Oe, z as ke } from "./vendor.7ekzovn9.js";
12
12
  import { globalState as S } from "x-state-lib";
13
- import { addIndent as Ae, finalProperties as C, getElement as w, getImplementMethodName as je, getTag as Me, makeEventId as T, makeEventKeyOfCustomSlot as Ne, makeEventKeyOfElementSlot as Pe, makeMethodId as Fe, makeMethodKeyOfCustomSlot as Ie, makeMethodKeyOfElementSlot as Le, makePropertyId as Re, makePropertyKeyOfCustomSlot as ze, makePropertyKeyOfElementSlot as Be, makeTriggerId as Ve, parsePercent as He, parsePixel as Ue, pkgs as We, toEventName as Ge, toMethodName as Ke, toPropertyName as qe, unwrapEventId as Je, unwrapEventKeyOfCustomSlot as Ye, unwrapEventKeyOfElementSlot as Xe, unwrapMethodId as Ze, unwrapMethodKeyOfCustomSlot as Qe, unwrapMethodKeyOfElementSlot as $e, unwrapPropertyId as et, unwrapPropertyKeyOfCustomSlot as tt, unwrapPropertyKeyOfElementSlot as nt, unwrapSlotId as rt } from "x-runtime-lib";
14
- import { eventBus as it, globalObjects as at, messageWarning as ot, openConfirmDlg as st, openPromptDlg as ct, useColor as lt, useSystem as ut, useViewStack as dt } from "x-essential-lib";
15
- import { Fragment as ft, computed as E, createBlock as pt, createCommentVNode as mt, createElementBlock as D, createElementVNode as O, createVNode as k, defineComponent as ht, inject as gt, isRef as _t, mergeModels as vt, mergeProps as yt, nextTick as bt, normalizeStyle as A, onBeforeUnmount as xt, onMounted as St, onUnmounted as Ct, openBlock as j, provide as wt, ref as Tt, renderList as Et, renderSlot as Dt, resolveComponent as M, resolveDirective as Ot, toDisplayString as kt, unref as N, useId as At, useModel as jt, useTemplateRef as Mt, watch as Nt, withCtx as Pt, withDirectives as Ft, withKeys as It, withModifiers as Lt } from "vue";
16
- import { useDisplay as Rt } from "vuetify";
17
- import { useI18n as zt } from "vue-i18n";
13
+ import { addIndent as Ae, finalProperties as C, getElement as w, getImplementMethodName as je, getTag as Me, makeEventId as T, makeEventKeyOfCustomSlot as Ne, makeEventKeyOfElementSlot as Pe, makeMethodId as Fe, makeMethodKeyOfCustomSlot as Ie, makeMethodKeyOfElementSlot as Le, makePropertyId as Re, makePropertyKeyOfCustomSlot as ze, makePropertyKeyOfElementSlot as Be, makeTriggerId as Ve, parsePercent as He, parsePixel as Ue, pkgs as We, themeColors as Ge, toEventName as Ke, toMethodName as qe, toPropertyName as Je, unwrapEventId as Ye, unwrapEventKeyOfCustomSlot as Xe, unwrapEventKeyOfElementSlot as Ze, unwrapMethodId as Qe, unwrapMethodKeyOfCustomSlot as $e, unwrapMethodKeyOfElementSlot as et, unwrapPropertyId as tt, unwrapPropertyKeyOfCustomSlot as nt, unwrapPropertyKeyOfElementSlot as rt, unwrapSlotId as it } from "x-runtime-lib";
14
+ import { eventBus as at, globalObjects as ot, messageWarning as st, openConfirmDlg as ct, openPromptDlg as lt, useColor as ut, useSystem as dt, useViewStack as ft } from "x-essential-lib";
15
+ import { Fragment as pt, computed as E, createBlock as mt, createCommentVNode as ht, createElementBlock as D, createElementVNode as O, createVNode as k, defineComponent as gt, inject as _t, isRef as vt, mergeModels as yt, mergeProps as bt, nextTick as xt, normalizeStyle as A, onBeforeUnmount as St, onMounted as Ct, onUnmounted as wt, openBlock as j, provide as Tt, ref as Et, renderList as Dt, renderSlot as Ot, resolveComponent as M, resolveDirective as kt, toDisplayString as At, unref as N, useId as jt, useModel as Mt, useTemplateRef as Nt, watch as Pt, withCtx as Ft, withDirectives as It, withKeys as Lt, withModifiers as Rt } from "vue";
16
+ import { useDisplay as zt } from "vuetify";
17
+ import { useI18n as Bt } from "vue-i18n";
18
18
  //#region \0rolldown_dynamic_import_helper.js
19
- var Bt = (e, t, n) => {
19
+ var Vt = (e, t, n) => {
20
20
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
21
21
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
22
22
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
@@ -24,8 +24,8 @@ var Bt = (e, t, n) => {
24
24
  };
25
25
  //#endregion
26
26
  //#region src/core/locale/index.ts
27
- async function Vt(e) {
28
- ce((await Bt(/* @__PURE__ */ Object.assign({
27
+ async function Ht(e) {
28
+ ce((await Vt(/* @__PURE__ */ Object.assign({
29
29
  "./msg/en.ts": () => import("./msg-en.mdggqv1h.js").then((e) => e.t),
30
30
  "./msg/zhHans.ts": () => import("./msg-zhHans.nnp59bv2.js").then((e) => e.t)
31
31
  }), `./msg/${e}.ts`, 3)).default);
@@ -35,12 +35,12 @@ function P(e) {
35
35
  }
36
36
  //#endregion
37
37
  //#region src/core/utils/common/misc.ts
38
- var Ht = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Ut = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
39
- function Wt(e) {
38
+ var Ut = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Wt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
39
+ function Gt(e) {
40
40
  let t = e.lastIndexOf("V");
41
41
  return t <= 0 || t >= e.length - 1 ? (console.assert(!1, `invalid key=${e}`), "") : `${pe(e.substring(0, t - 1))}_${"v" + e.substring(t + 1)}`;
42
42
  }
43
- function Gt(e) {
43
+ function Kt(e) {
44
44
  let t = e.lastIndexOf("V");
45
45
  if (t <= 0 || t >= e.length - 1) return console.assert(!1, `invalid key=${e}`), "";
46
46
  let n = e.substring(0, t - 1);
@@ -49,15 +49,15 @@ function Gt(e) {
49
49
  function F(e) {
50
50
  return e.length <= 0 && e.push([P("NO_OPTION"), ""]), e;
51
51
  }
52
- function Kt(e) {
52
+ function qt(e) {
53
53
  let t = 0;
54
54
  for (; e;) t++, e = e.getParent();
55
55
  return t;
56
56
  }
57
- function qt(e) {
57
+ function Jt(e) {
58
58
  return e.ui === "strInput" ? "string" : e.ui === "numInput" ? "number" : e.ui === "switch" ? "boolean" : "string";
59
59
  }
60
- function Jt(e, t) {
60
+ function Yt(e, t) {
61
61
  return !!(e.startsWith("basic.") || !t.ui || t.readonly);
62
62
  }
63
63
  function I(e) {
@@ -75,46 +75,49 @@ function z(e) {
75
75
  function B(e) {
76
76
  return e.startsWith("multiple_slot_v");
77
77
  }
78
- function Yt(e, t, n) {
79
- let { kind: r, mainKey: i, slotKey: a } = rt(e);
78
+ function Xt(e, t, n) {
79
+ let { kind: r, mainKey: i, slotKey: a } = it(e);
80
80
  return !(r !== "elementSlot" && r !== "multipleElementSlot" || t !== i || n !== a);
81
81
  }
82
- function Xt(e, t, n) {
83
- let { kind: r, mainKey: i, slotKey: a } = rt(e);
82
+ function Zt(e, t, n) {
83
+ let { kind: r, mainKey: i, slotKey: a } = it(e);
84
84
  return !(r !== "customSlot" && r !== "multipleCustomSlot" || t !== i || n !== a);
85
85
  }
86
86
  //#endregion
87
87
  //#region src/core/utils/common/block.ts
88
- function Zt(e) {
88
+ function Qt(e) {
89
89
  let t = `<block type="text_v1"><field name="TEXT">${e}</field></block>`;
90
90
  return p.xml.textToDom(t);
91
91
  }
92
- function Qt(e) {
92
+ function $t(e) {
93
93
  let t = `<block type="math_number_v1"><field name="NUM">${e}</field></block>`;
94
94
  return p.xml.textToDom(t);
95
95
  }
96
- function $t(e) {
96
+ function en(e) {
97
97
  let t = `<block type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></block>`;
98
98
  return p.xml.textToDom(t);
99
99
  }
100
- function en(e, t) {
100
+ function tn(e, t) {
101
101
  let n = null;
102
- return t === "string" ? n = Zt("") : t === "integer" || t === "decimal" ? n = Qt(0) : t === "boolean" ? n = $t(!1) : t === "enum" || t === "dateTime" ? n = Zt("") : console.assert(!1), n ? re.domToBlock(n, e) : null;
102
+ return t === "string" ? n = Qt("") : t === "integer" || t === "decimal" ? n = $t(0) : t === "boolean" ? n = en(!1) : t === "enum" || t === "dateTime" ? n = Qt("") : console.assert(!1), n ? re.domToBlock(n, e) : null;
103
103
  }
104
104
  //#endregion
105
105
  //#region src/core/utils/common/check.ts
106
- function tn(e) {
107
- return e === "string" ? "String" : e === "number" ? "Number" : e === "boolean" ? "Boolean" : e === "array" ? "Array" : e === "object" ? "Object" : (e === "any" || console.assert(!1), null);
108
- }
109
106
  function nn(e) {
110
- return e.array ? "Array" : e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Gt(e.items) : e.ui === "multiTypes" ? Gt(e.types) : e.ui === "selectComp" ? "Comp" : e.ui === "selectSlot" ? "Slot" : e.ui === "selectAdaptSlot" ? "AdaptSlot" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
107
+ return e === "string" ? "String" : e === "number" ? "Number" : e === "boolean" ? "Boolean" : e === "array" ? "Array" : e === "object" ? "Object" : (e === "any" || console.assert(!1), null);
111
108
  }
112
109
  function rn(e) {
110
+ return e.array ? "Array" : e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Kt(e.items) : e.ui === "multiTypes" ? Kt(e.types) : e.ui === "selectComp" ? "Comp" : e.ui === "selectSlot" ? "Slot" : e.ui === "selectAdaptSlot" ? "AdaptSlot" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
111
+ }
112
+ function an(e) {
113
113
  return e === "string" ? "String" : e === "integer" || e === "decimal" ? "Number" : e === "boolean" ? "Boolean" : e === "enum" || e === "dateTime" ? "String" : (console.assert(!1), null);
114
114
  }
115
115
  //#endregion
116
+ //#region src/core/utils/common/colour.ts
117
+ var on = /* @__PURE__ */ "#F44336.#FFEBEE.#FFCDD2.#EF9A9A.#E57373.#EF5350.#E53935.#D32F2F.#C62828.#B71C1C.#FF8A80.#FF5252.#FF1744.#D50000.#e91e63.#fce4ec.#f8bbd0.#f48fb1.#f06292.#ec407a.#d81b60.#c2185b.#ad1457.#880e4f.#ff80ab.#ff4081.#f50057.#c51162.#9c27b0.#f3e5f5.#e1bee7.#ce93d8.#ba68c8.#ab47bc.#8e24aa.#7b1fa2.#6a1b9a.#4a148c.#ea80fc.#e040fb.#d500f9.#aa00ff.#673ab7.#ede7f6.#d1c4e9.#b39ddb.#9575cd.#7e57c2.#5e35b1.#512da8.#4527a0.#311b92.#b388ff.#7c4dff.#651fff.#6200ea.#3f51b5.#e8eaf6.#c5cae9.#9fa8da.#7986cb.#5c6bc0.#3949ab.#303f9f.#283593.#1a237e.#8c9eff.#536dfe.#3d5afe.#304ffe.#2196F3.#E3F2FD.#BBDEFB.#90CAF9.#64B5F6.#42A5F5.#1E88E5.#1976D2.#1565C0.#0D47A1.#82B1FF.#448AFF.#2979FF.#2962FF.#03a9f4.#e1f5fe.#b3e5fc.#81d4fa.#4fc3f7.#29b6f6.#039be5.#0288d1.#0277bd.#01579b.#80d8ff.#40c4ff.#00b0ff.#0091ea.#00bcd4.#e0f7fa.#b2ebf2.#80deea.#4dd0e1.#26c6da.#00acc1.#0097a7.#00838f.#006064.#84ffff.#18ffff.#00e5ff.#00b8d4.#009688.#e0f2f1.#b2dfdb.#80cbc4.#4db6ac.#26a69a.#00897b.#00796b.#00695c.#004d40.#a7ffeb.#64ffda.#1de9b6.#00bfa5.#4CAF50.#E8F5E9.#C8E6C9.#A5D6A7.#81C784.#66BB6A.#43A047.#388E3C.#2E7D32.#1B5E20.#B9F6CA.#69F0AE.#00E676.#00C853.#8bc34a.#f1f8e9.#dcedc8.#c5e1a5.#aed581.#9ccc65.#7cb342.#689f38.#558b2f.#33691e.#ccff90.#b2ff59.#76ff03.#64dd17.#cddc39.#f9fbe7.#f0f4c3.#e6ee9c.#dce775.#d4e157.#c0ca33.#afb42b.#9e9d24.#827717.#f4ff81.#eeff41.#c6ff00.#aeea00.#ffeb3b.#fffde7.#fff9c4.#fff59d.#fff176.#ffee58.#fdd835.#fbc02d.#f9a825.#f57f17.#ffff8d.#ffff00.#ffea00.#ffd600.#ffc107.#fff8e1.#ffecb3.#ffe082.#ffd54f.#ffca28.#ffb300.#ffa000.#ff8f00.#ff6f00.#ffe57f.#ffd740.#ffc400.#ffab00.#ff9800.#fff3e0.#ffe0b2.#ffcc80.#ffb74d.#ffa726.#fb8c00.#f57c00.#ef6c00.#e65100.#ffd180.#ffab40.#ff9100.#ff6d00.#ff5722.#fbe9e7.#ffccbc.#ffab91.#ff8a65.#ff7043.#f4511e.#e64a19.#d84315.#bf360c.#ff9e80.#ff6e40.#ff3d00.#dd2c00.#795548.#efebe9.#d7ccc8.#bcaaa4.#a1887f.#8d6e63.#6d4c41.#5d4037.#4e342e.#3e2723.#.#.#.#.#607d8b.#eceff1.#cfd8dc.#b0bec5.#90a4ae.#78909c.#546e7a.#455a64.#37474f.#263238.#.#.#.#.#9e9e9e.#fafafa.#f5f5f5.#eeeeee.#e0e0e0.#bdbdbd.#757575.#616161.#424242.#212121.#.#.#.#.#000000.#FFFFFF.#FFFFFF00".split(".");
118
+ //#endregion
116
119
  //#region src/core/utils/common/parameter.ts
117
- function an(e, t, n, r) {
120
+ function sn(e, t, n, r) {
118
121
  let i = `
119
122
  <block type="parameter_v1">
120
123
  <mutation key="${t}" name="${n}" locale="${r ? "TRUE" : "FALSE"}"/>
@@ -133,7 +136,7 @@ function V(e, t) {
133
136
  if (e && e.key === r && e.name === i && e.locale === a) return;
134
137
  s.dispose();
135
138
  }
136
- s = an(e.workspace, r, i, a), s.outputConnection.connect(o);
139
+ s = sn(e.workspace, r, i, a), s.outputConnection.connect(o);
137
140
  });
138
141
  } finally {
139
142
  x.enable();
@@ -141,56 +144,56 @@ function V(e, t) {
141
144
  }
142
145
  //#endregion
143
146
  //#region src/core/utils/common/shadow.ts
144
- function on(e) {
147
+ function cn(e) {
145
148
  let t = `<shadow type="text_v1"><field name="TEXT">${e}</field></shadow>`;
146
149
  return p.xml.textToDom(t);
147
150
  }
148
- function sn(e) {
151
+ function ln(e) {
149
152
  let t = `<shadow type="math_number_v1"><field name="NUM">${e}</field></shadow>`;
150
153
  return p.xml.textToDom(t);
151
154
  }
152
- function cn(e) {
155
+ function un(e) {
153
156
  let t = `<shadow type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></shadow>`;
154
157
  return p.xml.textToDom(t);
155
158
  }
156
- function ln() {
159
+ function dn() {
157
160
  return p.xml.textToDom("<shadow type=\"list_create_v1\"></shadow>");
158
161
  }
159
- function un() {
162
+ function fn() {
160
163
  return p.xml.textToDom("<shadow type=\"object_create_v1\"></shadow>");
161
164
  }
162
- function dn(e) {
163
- let t = `<shadow type="${Wt(e)}"></shadow>`;
165
+ function pn(e) {
166
+ let t = `<shadow type="${Gt(e)}"></shadow>`;
164
167
  return p.xml.textToDom(t);
165
168
  }
166
- function fn(e) {
167
- let t = `<shadow type="${Wt(e)}"></shadow>`;
169
+ function mn(e) {
170
+ let t = `<shadow type="${Gt(e)}"></shadow>`;
168
171
  return p.xml.textToDom(t);
169
172
  }
170
- function pn() {
173
+ function hn() {
171
174
  return p.xml.textToDom("<shadow type=\"select_comp_v1\"></shadow>");
172
175
  }
173
- function mn() {
176
+ function gn() {
174
177
  return p.xml.textToDom("<shadow type=\"select_slot_v1\"></shadow>");
175
178
  }
176
- function hn(e) {
179
+ function _n(e) {
177
180
  let t = `<shadow type="color_picker_v1"><field name="COLOR">${e}</field></shadow>`;
178
181
  return p.xml.textToDom(t);
179
182
  }
180
- function gn() {
183
+ function vn() {
181
184
  return p.xml.textToDom("\n<shadow type=\"app_bind_entry_v1\">\n <field name=\"KIND\">notSet</field>\n</shadow>");
182
185
  }
183
186
  function H(e) {
184
187
  let t = null;
185
- return e === "string" ? t = on("") : e === "number" ? t = sn(0) : e === "boolean" ? t = cn(!1) : e === "array" ? t = ln() : e === "object" ? t = un() : e === "any" ? t = null : console.assert(!1), t;
188
+ return e === "string" ? t = cn("") : e === "number" ? t = ln(0) : e === "boolean" ? t = un(!1) : e === "array" ? t = dn() : e === "object" ? t = fn() : e === "any" ? t = null : console.assert(!1), t;
186
189
  }
187
- function _n(e) {
190
+ function yn(e) {
188
191
  let t = null;
189
- return e.array ? t = ln() : e.ui === "dummy" ? t = null : e.ui === "strInput" ? t = on(e.default) : e.ui === "numInput" ? t = sn(e.default) : e.ui === "switch" ? t = cn(e.default) : e.ui === "select" ? t = dn(e.items) : e.ui === "multiTypes" ? t = fn(e.types) : e.ui === "selectComp" ? t = pn() : e.ui === "selectSlot" ? t = mn() : e.ui === "colorPicker" ? t = hn(e.default ?? "#ff0000") : console.assert(!1), t;
192
+ return e.array ? t = dn() : e.ui === "dummy" ? t = null : e.ui === "strInput" ? t = cn(e.default) : e.ui === "numInput" ? t = ln(e.default) : e.ui === "switch" ? t = un(e.default) : e.ui === "select" ? t = pn(e.items) : e.ui === "multiTypes" ? t = mn(e.types) : e.ui === "selectComp" ? t = hn() : e.ui === "selectSlot" ? t = gn() : e.ui === "colorPicker" ? t = _n(e.default ?? "#ff0000") : console.assert(!1), t;
190
193
  }
191
194
  //#endregion
192
195
  //#region src/core/utils/app/argument.ts
193
- function vn() {
196
+ function bn() {
194
197
  let { activeObject: e, activePage: t } = S.app, n = [];
195
198
  if (e.type === "page" && t.meta.arguments) for (let { id: e, name: r, type: i } of t.meta.arguments) n.push({
196
199
  key: e,
@@ -199,7 +202,7 @@ function vn() {
199
202
  });
200
203
  return n;
201
204
  }
202
- function yn(e) {
205
+ function xn(e) {
203
206
  let { activeObject: t, activePage: n } = S.app;
204
207
  if (t.type === "page") {
205
208
  let t = n.meta.arguments?.find((t) => t.id === e);
@@ -210,9 +213,9 @@ function yn(e) {
210
213
  };
211
214
  }
212
215
  }
213
- function bn() {
216
+ function Sn() {
214
217
  let e = [];
215
- return vn().forEach(({ key: t, name: n }) => {
218
+ return bn().forEach(({ key: t, name: n }) => {
216
219
  e.push([n, t]);
217
220
  }), F(e);
218
221
  }
@@ -233,7 +236,7 @@ y.get_page_argument_v1 = {
233
236
  }, 0);
234
237
  },
235
238
  genArgumentOpts_: function() {
236
- return bn();
239
+ return Sn();
237
240
  },
238
241
  onchange: function(e) {
239
242
  if (e.type === x.BLOCK_CHANGE) {
@@ -244,7 +247,7 @@ y.get_page_argument_v1 = {
244
247
  }
245
248
  },
246
249
  onArgumentChange_: function(e) {
247
- let t = yn(e);
250
+ let t = xn(e);
248
251
  if (!t) {
249
252
  console.assert(!1);
250
253
  return;
@@ -252,10 +255,10 @@ y.get_page_argument_v1 = {
252
255
  this.argument.key = t.key, this.argument.name = t.name, this.argument.type = t.type, this.updateShape_();
253
256
  },
254
257
  updateShape_: function() {
255
- this.setOutput(!0, tn(this.argument.type));
258
+ this.setOutput(!0, nn(this.argument.type));
256
259
  },
257
260
  checkWarning_: function() {
258
- let e = yn(this.argument.key);
261
+ let e = xn(this.argument.key);
259
262
  if (!e) {
260
263
  this.setWarningText(P("WARN_ARGUMENT_NOT_FOUND"));
261
264
  return;
@@ -272,14 +275,14 @@ y.get_page_argument_v1 = {
272
275
  };
273
276
  //#endregion
274
277
  //#region src/core/blocks/app/define/items/v1/index.ts
275
- var xn = (e, t) => {
276
- let n = Wt(e), r = Gt(e);
278
+ var Cn = (e, t) => {
279
+ let n = Gt(e), r = Kt(e);
277
280
  y[n] = {
278
281
  init: function() {
279
282
  this.appendDummyInput().appendField(new b(() => this.genOpts_()), "ITEM"), this.setOutput(!0, r), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl("");
280
283
  },
281
284
  genOpts_: function() {
282
- let { i18n: e } = at, n = [];
285
+ let { i18n: e } = ot, n = [];
283
286
  for (let { title: r, value: i } of t) n.push([e.global.t(r), i]);
284
287
  return F(n);
285
288
  }
@@ -290,15 +293,15 @@ var xn = (e, t) => {
290
293
  };
291
294
  for (let e in We) {
292
295
  let t = We[e];
293
- for (let e in t.items) xn(e, t.items[e]);
296
+ for (let e in t.items) Cn(e, t.items[e]);
294
297
  }
295
298
  //#endregion
296
299
  //#region src/core/blocks/app/define/types/v1/index.ts
297
- var Sn = (e, t) => {
298
- let n = Wt(e), i = Gt(e);
300
+ var wn = ye(), Tn = (e, t) => {
301
+ let n = Gt(e), i = Kt(e);
299
302
  y[n] = {
300
303
  init: function() {
301
- this.value = t[0].default ?? "", this.appendDummyInput("DUMMY").appendField(new b(() => this.genOpts_()), "TYPE"), this.setOutput(!0, i), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl(""), this.updateShape_();
304
+ this.value = t[0].default, this.appendDummyInput("DUMMY").appendField(new b(() => this.genOpts_()), "TYPE"), this.setOutput(!0, i), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl(""), this.updateShape_();
302
305
  },
303
306
  saveExtraState: function() {
304
307
  return { value: this.value };
@@ -309,7 +312,7 @@ var Sn = (e, t) => {
309
312
  }, 0);
310
313
  },
311
314
  genOpts_: function() {
312
- let { i18n: e } = at, n = [];
315
+ let { i18n: e } = ot, n = [];
313
316
  for (let { title: r, value: i } of t) n.push([e.global.t(r), i]);
314
317
  return F(n);
315
318
  },
@@ -327,26 +330,41 @@ var Sn = (e, t) => {
327
330
  console.assert(!1);
328
331
  return;
329
332
  }
330
- this.value = n.default ?? "", this.updateShape_();
333
+ this.value = n.default, this.updateShape_();
331
334
  },
332
335
  updateShape_: function() {
333
336
  let e = this.getInput("DUMMY");
334
337
  if (!e) return;
335
- let n = this.value;
336
- n ||= void 0;
337
- let i = t.find((e) => e.validator(n));
338
- if (!i) return;
338
+ let n = t.find((e) => e.validator(this.value));
339
+ if (!n) return;
339
340
  e.removeField("VALUE", !0), e.removeField("SUFFIX", !0);
340
- let a, o;
341
- i.value === "pixel" ? (a = new r(Ue(this.value) ?? 0, i.min, i.max, i.precision ? 1 / 10 ** i.precision : null, (e) => {
341
+ let i, a;
342
+ if (n.trait === "pixel") i = new r(Ue(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
342
343
  this.value = e + "px";
343
- }), o = "px") : i.value === "percent" && (a = new r(He(this.value) ?? 0, i.min, i.max, i.precision ? 1 / 10 ** i.precision : null, (e) => {
344
+ }), a = "px";
345
+ else if (n.trait === "percent") i = new r(He(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
344
346
  this.value = e + "%";
345
- }), o = "%"), a && e.appendField(a, "VALUE"), o && e.appendField(o, "SUFFIX");
347
+ }), a = "%";
348
+ else if (n.trait === "hexColor") i = new wn.FieldColour(this.value, (e) => {
349
+ this.value = e;
350
+ }, {
351
+ colourOptions: on,
352
+ columns: 14
353
+ });
354
+ else if (n.trait === "themeColor") {
355
+ let { i18n: e } = ot;
356
+ i = new b(() => {
357
+ let t = [];
358
+ for (let { value: n, title: r } of Ge) t.push([e.global.t(r), n]);
359
+ return t;
360
+ }, (e) => {
361
+ this.value = e;
362
+ });
363
+ }
364
+ i && e.appendField(i, "VALUE"), a && e.appendField(a, "SUFFIX");
346
365
  },
347
366
  checkWarning_: function() {
348
- let e = this.value;
349
- if (e ||= void 0, !t.find((t) => t.validator(e))) {
367
+ if (!t.find((e) => e.validator(this.value))) {
350
368
  this.setWarningText(P("WARN_TYPE_NOT_FOUND"));
351
369
  return;
352
370
  }
@@ -359,11 +377,11 @@ var Sn = (e, t) => {
359
377
  };
360
378
  for (let e in We) {
361
379
  let t = We[e];
362
- for (let e in t.types) Sn(e, t.types[e]);
380
+ for (let e in t.types) Tn(e, t.types[e]);
363
381
  }
364
382
  //#endregion
365
383
  //#region src/core/utils/app/app.ts
366
- function Cn() {
384
+ function En() {
367
385
  let e = [], { appList: t } = S.app;
368
386
  for (let { id: n, name: r } of t) e.push({
369
387
  id: n,
@@ -371,26 +389,26 @@ function Cn() {
371
389
  });
372
390
  return e;
373
391
  }
374
- function wn(e) {
392
+ function Dn(e) {
375
393
  let { appList: t } = S.app, n = t.find((t) => t.id === e);
376
394
  if (n) return {
377
395
  id: n.id,
378
396
  name: n.name
379
397
  };
380
398
  }
381
- function Tn() {
399
+ function On() {
382
400
  let e = [];
383
- return Cn().forEach(({ id: t, name: n }) => {
401
+ return En().forEach(({ id: t, name: n }) => {
384
402
  e.push([n, t]);
385
403
  }), F(e);
386
404
  }
387
405
  //#endregion
388
406
  //#region src/core/utils/app/node.ts
389
- function En(e, t, n, r, i) {
407
+ function kn(e, t, n, r, i) {
390
408
  let { activeObject: a, activePage: o, activeComp: s, depends: c } = S.app;
391
409
  if (e.events && e.events.length > 0) return !1;
392
410
  if (C[e.key] && C[e.key][t]) {
393
- for (let { keys: n, raw: r } of C[e.key][t]) if (!Jt(n, r)) return !1;
411
+ for (let { keys: n, raw: r } of C[e.key][t]) if (!Yt(n, r)) return !1;
394
412
  }
395
413
  if (L(e.key) && r) {
396
414
  let e = c[r];
@@ -426,7 +444,7 @@ function En(e, t, n, r, i) {
426
444
  }
427
445
  if (I(e.key) && a.type === "comp" && s.meta.events && s.meta.events.length > 0 || I(e.key) && a.type === "comp" && s.meta.properties && s.meta.properties.length > 0) return !1;
428
446
  if (I(e.key) && a.type === "comp" && i) {
429
- let { kind: e, mainKey: t, slotKey: n } = rt(i);
447
+ let { kind: e, mainKey: t, slotKey: n } = it(i);
430
448
  if (e === "elementSlot") {
431
449
  let e = w(t);
432
450
  if (e && e.slots) {
@@ -448,7 +466,7 @@ function En(e, t, n, r, i) {
448
466
  }
449
467
  return !0;
450
468
  }
451
- function Dn(e, t) {
469
+ function An(e, t) {
452
470
  let { activeObject: n, activeComp: r } = S.app;
453
471
  if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
454
472
  let e = r.meta.slots.find((e) => e.id === t);
@@ -460,7 +478,7 @@ function Dn(e, t) {
460
478
  }
461
479
  return !(I(e.key) && n.type === "comp" && r.meta.events && r.meta.events.length > 0);
462
480
  }
463
- function On(e, t, n) {
481
+ function jn(e, t, n) {
464
482
  let { activeObject: r, activeComp: i, depends: a } = S.app;
465
483
  if (e.methods && e.methods.length > 0) return !1;
466
484
  if (L(e.key) && t) {
@@ -473,7 +491,7 @@ function On(e, t, n) {
473
491
  }
474
492
  if (I(e.key) && r.type === "comp" && i.meta.methods && i.meta.methods.length > 0) return !1;
475
493
  if (I(e.key) && n && r.type === "comp") {
476
- let { kind: e, mainKey: t, slotKey: r } = rt(n);
494
+ let { kind: e, mainKey: t, slotKey: r } = it(n);
477
495
  if (e === "elementSlot") {
478
496
  let e = w(t);
479
497
  if (e && e.slots) {
@@ -490,7 +508,7 @@ function On(e, t, n) {
490
508
  }
491
509
  return !0;
492
510
  }
493
- function kn(e, t) {
511
+ function Mn(e, t) {
494
512
  let { activeObject: n, activeComp: r } = S.app;
495
513
  if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
496
514
  let e = r.meta.slots.find((e) => e.id === t);
@@ -502,7 +520,7 @@ function kn(e, t) {
502
520
  }
503
521
  return !(I(e.key) && n.type === "comp" && r.meta.methods && r.meta.methods.length > 0);
504
522
  }
505
- function An(e, t) {
523
+ function Nn(e, t) {
506
524
  let { activeObject: n, activeComp: r } = S.app;
507
525
  if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
508
526
  let e = r.meta.slots.find((e) => e.id === t);
@@ -521,7 +539,7 @@ function An(e, t) {
521
539
  }
522
540
  return !0;
523
541
  }
524
- function jn(e, t, n, r, i) {
542
+ function Pn(e, t, n, r, i) {
525
543
  let { activeObject: a, activeComp: o, depends: s } = S.app;
526
544
  if (C[e.key] && C[e.key][t] && C[e.key][t].length > 0) return !1;
527
545
  if (L(e.key) && r) {
@@ -542,7 +560,7 @@ function jn(e, t, n, r, i) {
542
560
  }
543
561
  if (I(e.key) && a.type === "comp" && o.meta.properties && o.meta.properties.length > 0) return !1;
544
562
  if (I(e.key) && i && a.type === "comp") {
545
- let { kind: e, mainKey: t, slotKey: n } = rt(i);
563
+ let { kind: e, mainKey: t, slotKey: n } = it(i);
546
564
  if (e === "elementSlot") {
547
565
  let e = w(t);
548
566
  if (e && e.slots) {
@@ -559,10 +577,10 @@ function jn(e, t, n, r, i) {
559
577
  }
560
578
  return !0;
561
579
  }
562
- function Mn(e, t, n, r, i) {
580
+ function Fn(e, t, n, r, i) {
563
581
  let { activeObject: a, activeComp: o, depends: s } = S.app;
564
582
  if (C[e.key] && C[e.key][t]) {
565
- for (let { keys: n, raw: r } of C[e.key][t]) if (!Jt(n, r)) return !1;
583
+ for (let { keys: n, raw: r } of C[e.key][t]) if (!Yt(n, r)) return !1;
566
584
  }
567
585
  if (L(e.key) && r) {
568
586
  let e = s[r];
@@ -582,7 +600,7 @@ function Mn(e, t, n, r, i) {
582
600
  }
583
601
  if (I(e.key) && a.type === "comp" && o.meta.properties && o.meta.properties.length > 0) return !1;
584
602
  if (I(e.key) && i && a.type === "comp") {
585
- let { kind: e, mainKey: t, slotKey: n } = rt(i);
603
+ let { kind: e, mainKey: t, slotKey: n } = it(i);
586
604
  if (e === "elementSlot") {
587
605
  let e = w(t);
588
606
  if (e && e.slots) {
@@ -599,8 +617,8 @@ function Mn(e, t, n, r, i) {
599
617
  }
600
618
  return !0;
601
619
  }
602
- function Nn(e, t, n, r, i, a) {
603
- return e ? e === "onEvent" ? En(t, n, r, i, a) : e === "triggerEvent" ? Dn(t, r) : e === "callMethod" ? On(t, i, a) : e === "implementMethod" ? kn(t, r) : e === "implementMethodOutput" ? An(t, r) : e === "getProperty" ? jn(t, n, r, i, a) : e === "setProperty" ? Mn(t, n, r, i, a) : !1 : !1;
620
+ function In(e, t, n, r, i, a) {
621
+ return e ? e === "onEvent" ? kn(t, n, r, i, a) : e === "triggerEvent" ? An(t, r) : e === "callMethod" ? jn(t, i, a) : e === "implementMethod" ? Mn(t, r) : e === "implementMethodOutput" ? Nn(t, r) : e === "getProperty" ? Pn(t, n, r, i, a) : e === "setProperty" ? Fn(t, n, r, i, a) : !1 : !1;
604
622
  }
605
623
  function U(e) {
606
624
  let { activeObject: t } = S.app, n = Me(t.type, t.subtype);
@@ -610,11 +628,11 @@ function U(e) {
610
628
  console.assert(!1, "invalid element", r.key);
611
629
  continue;
612
630
  }
613
- if (!Nn(e, t, n, r.slot, r.comp, r.adaptSlot)) return !0;
631
+ if (!In(e, t, n, r.slot, r.comp, r.adaptSlot)) return !0;
614
632
  }
615
633
  return !1;
616
634
  }
617
- function Pn(e) {
635
+ function Ln(e) {
618
636
  let { activeObject: t } = S.app, n = [], r = Me(t.type, t.subtype);
619
637
  for (let i of t.nodes) {
620
638
  let t = w(i.key);
@@ -622,7 +640,7 @@ function Pn(e) {
622
640
  console.assert(!1, "invalid element", i.key);
623
641
  continue;
624
642
  }
625
- Nn(e, t, r, i.slot, i.comp, i.adaptSlot) || n.push({
643
+ In(e, t, r, i.slot, i.comp, i.adaptSlot) || n.push({
626
644
  id: i.id,
627
645
  key: i.key,
628
646
  name: t.name,
@@ -646,8 +664,8 @@ function W(e) {
646
664
  alias: n.alias
647
665
  };
648
666
  }
649
- function Fn(e) {
650
- let { i18n: t } = at, n = [], r = Pn(e);
667
+ function Rn(e) {
668
+ let { i18n: t } = ot, n = [], r = Ln(e);
651
669
  for (let { id: e, name: i, alias: a } of r) {
652
670
  let r = t.global.t(i);
653
671
  a && (r += " / " + a), n.push([r, e]);
@@ -656,33 +674,33 @@ function Fn(e) {
656
674
  }
657
675
  //#endregion
658
676
  //#region src/core/utils/app/state.ts
659
- function In() {
677
+ function zn() {
660
678
  let { activeObject: e, activePage: t, activeComp: n } = S.app;
661
679
  return e.type === "page" ? t.meta.states ?? [] : e.type === "comp" ? n.meta.states ?? [] : [];
662
680
  }
663
- function Ln(e) {
681
+ function Bn(e) {
664
682
  let { activeObject: t, activePage: n, activeComp: r } = S.app;
665
683
  if (t.type === "page") return n.meta.states?.find((t) => t.id === e);
666
684
  if (t.type === "comp") return r.meta.states?.find((t) => t.id === e);
667
685
  }
668
- function Rn() {
669
- let e = [], t = In();
686
+ function Vn() {
687
+ let e = [], t = zn();
670
688
  for (let { id: n, name: r } of t) e.push([r, n]);
671
689
  return F(e);
672
690
  }
673
691
  //#endregion
674
692
  //#region src/core/utils/app/bind.ts
675
- function zn() {
693
+ function Hn() {
676
694
  let e = ["notSet"];
677
- return Pn("setProperty").length > 0 && e.push("property"), In().length > 0 && e.push("state"), e;
695
+ return Ln("setProperty").length > 0 && e.push("property"), zn().length > 0 && e.push("state"), e;
678
696
  }
679
- function Bn() {
680
- let { i18n: e } = at;
681
- return F(zn().map((t) => t === "notSet" ? [e.global.t(`x-runtime-lib.${t}`), t] : [P(`APP_${De(t)}`), t]));
697
+ function Un() {
698
+ let { i18n: e } = ot;
699
+ return F(Hn().map((t) => t === "notSet" ? [e.global.t(`x-runtime-lib.${t}`), t] : [P(`APP_${De(t)}`), t]));
682
700
  }
683
701
  //#endregion
684
702
  //#region src/core/utils/app/comp.ts
685
- function Vn() {
703
+ function Wn() {
686
704
  let { activeApp: e } = S.app, t = [{
687
705
  id: "",
688
706
  name: ""
@@ -693,7 +711,7 @@ function Vn() {
693
711
  });
694
712
  return t;
695
713
  }
696
- function Hn(e) {
714
+ function Gn(e) {
697
715
  let { activeApp: t } = S.app;
698
716
  if (!e) return {
699
717
  id: "",
@@ -705,9 +723,9 @@ function Hn(e) {
705
723
  name: n.name
706
724
  };
707
725
  }
708
- function Un() {
709
- let { i18n: e } = at, t = [];
710
- return Vn().forEach(({ id: n, name: r }) => {
726
+ function Kn() {
727
+ let { i18n: e } = ot, t = [];
728
+ return Wn().forEach(({ id: n, name: r }) => {
711
729
  let i = r;
712
730
  n === "" && (i = e.global.t("x-runtime-lib.notSet")), t.push([i, n]);
713
731
  }), F(t);
@@ -735,7 +753,7 @@ function K(e) {
735
753
  type: e
736
754
  }];
737
755
  }
738
- function Wn(e) {
756
+ function qn(e) {
739
757
  let t = !0;
740
758
  switch (e) {
741
759
  case "": break;
@@ -776,7 +794,7 @@ function Wn(e) {
776
794
  }
777
795
  return t;
778
796
  }
779
- function Gn(e) {
797
+ function Jn(e) {
780
798
  let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = [], o = Me(t.type, t.subtype), s = t.nodes.find((t) => t.id === e);
781
799
  if (!s) return a;
782
800
  let c = w(s.key);
@@ -787,11 +805,11 @@ function Gn(e) {
787
805
  names: [n],
788
806
  params: r
789
807
  });
790
- if (C[c.key] && C[c.key][o]) for (let { keys: t, names: n, raw: r } of C[c.key][o]) Jt(t, r) || a.push({
808
+ if (C[c.key] && C[c.key][o]) for (let { keys: t, names: n, raw: r } of C[c.key][o]) Yt(t, r) || a.push({
791
809
  id: T("elementPropertyChangeEvent", e, t),
792
810
  kind: "elementPropertyChangeEvent",
793
811
  names: n,
794
- params: K(qt(r))
812
+ params: K(Jt(r))
795
813
  });
796
814
  if (L(c.key) && s.comp) {
797
815
  let t = i[s.comp];
@@ -878,7 +896,7 @@ function Gn(e) {
878
896
  params: K(i)
879
897
  });
880
898
  if (I(c.key) && t.type === "comp" && s.adaptSlot) {
881
- let { kind: t, mainKey: n, slotKey: r } = rt(s.adaptSlot);
899
+ let { kind: t, mainKey: n, slotKey: r } = it(s.adaptSlot);
882
900
  if (t === "elementSlot") {
883
901
  let t = w(n);
884
902
  if (t && t.slots) {
@@ -948,9 +966,9 @@ function Gn(e) {
948
966
  }
949
967
  return a;
950
968
  }
951
- function Kn(e) {
969
+ function Yn(e) {
952
970
  if (!e) return;
953
- let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = Me(t.type, t.subtype), { kind: o, nodeId: s, eventKey: c } = Je(e), l = t.nodes.find((e) => e.id === s);
971
+ let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = Me(t.type, t.subtype), { kind: o, nodeId: s, eventKey: c } = Ye(e), l = t.nodes.find((e) => e.id === s);
954
972
  if (!l) return;
955
973
  let u = w(l.key);
956
974
  if (!u) {
@@ -972,7 +990,7 @@ function Kn(e) {
972
990
  id: e,
973
991
  kind: o,
974
992
  names: t.names,
975
- params: K(qt(t.raw))
993
+ params: K(Jt(t.raw))
976
994
  };
977
995
  }
978
996
  } else if (o === "refEvent") {
@@ -1029,7 +1047,7 @@ function Kn(e) {
1029
1047
  }
1030
1048
  } else if (o === "customSlotEvent") {
1031
1049
  if (z(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1032
- let { compId: t, slotId: n, eventId: i } = Ye(c);
1050
+ let { compId: t, slotId: n, eventId: i } = Xe(c);
1033
1051
  if (r.id === t && l.slot === n) {
1034
1052
  let t = r.meta.slots.find((e) => e.id === n);
1035
1053
  if (t && t.events) {
@@ -1045,7 +1063,7 @@ function Kn(e) {
1045
1063
  }
1046
1064
  } else if (o === "customSlotPropertyChangeEvent") {
1047
1065
  if (z(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1048
- let { compId: t, slotId: n, eventId: i } = Ye(c);
1066
+ let { compId: t, slotId: n, eventId: i } = Xe(c);
1049
1067
  if (r.id === t && l.slot === n) {
1050
1068
  let t = r.meta.slots.find((e) => e.id === n);
1051
1069
  if (t && t.properties) {
@@ -1061,7 +1079,7 @@ function Kn(e) {
1061
1079
  }
1062
1080
  } else if (o === "multipleCustomSlotEvent") {
1063
1081
  if (B(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1064
- let { compId: t, slotId: n, eventId: i } = Ye(c);
1082
+ let { compId: t, slotId: n, eventId: i } = Xe(c);
1065
1083
  if (r.id === t && l.slot && n) {
1066
1084
  let t = r.meta.slots.find((e) => e.id === n);
1067
1085
  if (t && t.events) {
@@ -1077,7 +1095,7 @@ function Kn(e) {
1077
1095
  }
1078
1096
  } else if (o === "multipleCustomSlotPropertyChangeEvent") {
1079
1097
  if (B(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1080
- let { compId: t, slotId: n, eventId: i } = Ye(c);
1098
+ let { compId: t, slotId: n, eventId: i } = Xe(c);
1081
1099
  if (r.id === t && l.slot === n) {
1082
1100
  let t = r.meta.slots.find((e) => e.id === n);
1083
1101
  if (t && t.properties) {
@@ -1113,8 +1131,8 @@ function Kn(e) {
1113
1131
  }
1114
1132
  } else if (o === "elementAdaptSlotEvent") {
1115
1133
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1116
- let { elementKey: t, slotKey: n, eventKey: r } = Xe(c);
1117
- if (Yt(l.adaptSlot, t, n)) {
1134
+ let { elementKey: t, slotKey: n, eventKey: r } = Ze(c);
1135
+ if (Xt(l.adaptSlot, t, n)) {
1118
1136
  let i = w(t);
1119
1137
  if (i && i.slots) {
1120
1138
  let t = i.slots.find((e) => e.key === n);
@@ -1136,8 +1154,8 @@ function Kn(e) {
1136
1154
  }
1137
1155
  } else if (o === "elementAdaptSlotPropertyChangeEvent") {
1138
1156
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1139
- let { elementKey: t, slotKey: n, propertyKey: r } = nt(c);
1140
- if (Yt(l.adaptSlot, t, n)) {
1157
+ let { elementKey: t, slotKey: n, propertyKey: r } = rt(c);
1158
+ if (Xt(l.adaptSlot, t, n)) {
1141
1159
  let i = w(t);
1142
1160
  if (i && i.slots) {
1143
1161
  let t = i.slots.find((e) => e.key === n);
@@ -1159,8 +1177,8 @@ function Kn(e) {
1159
1177
  }
1160
1178
  } else if (o === "customAdaptSlotEvent") {
1161
1179
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1162
- let { compId: t, slotId: n, eventId: r } = Ye(c);
1163
- if (Xt(l.adaptSlot, t, n)) {
1180
+ let { compId: t, slotId: n, eventId: r } = Xe(c);
1181
+ if (Zt(l.adaptSlot, t, n)) {
1164
1182
  let a = i[t];
1165
1183
  if (a && a.meta.slots) {
1166
1184
  let t = a.meta.slots.find((e) => e.id === n);
@@ -1182,8 +1200,8 @@ function Kn(e) {
1182
1200
  }
1183
1201
  } else if (o === "customAdaptSlotPropertyChangeEvent") {
1184
1202
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1185
- let { compId: t, slotId: n, propertyId: r } = tt(c);
1186
- if (Xt(l.adaptSlot, t, n)) {
1203
+ let { compId: t, slotId: n, propertyId: r } = nt(c);
1204
+ if (Zt(l.adaptSlot, t, n)) {
1187
1205
  let a = i[t];
1188
1206
  if (a && a.meta.slots) {
1189
1207
  let t = a.meta.slots.find((e) => e.id === n);
@@ -1223,12 +1241,12 @@ function Kn(e) {
1223
1241
  }
1224
1242
  }
1225
1243
  }
1226
- function qn(e) {
1227
- let t = [], n = Gn(e), r;
1228
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ge(i, a), e]);
1244
+ function Xn(e) {
1245
+ let t = [], n = Jn(e), r;
1246
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ke(i, a), e]);
1229
1247
  return F(t);
1230
1248
  }
1231
- function Jn(e) {
1249
+ function Zn(e) {
1232
1250
  let { activeObject: t, activeComp: n } = S.app, r = [], i = t.nodes.find((t) => t.id === e);
1233
1251
  if (!i) return r;
1234
1252
  let a = w(i.key);
@@ -1259,9 +1277,9 @@ function Jn(e) {
1259
1277
  });
1260
1278
  return r;
1261
1279
  }
1262
- function Yn(e) {
1280
+ function Qn(e) {
1263
1281
  if (!e) return;
1264
- let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, eventKey: a } = Je(e), o = t.nodes.find((e) => e.id === i);
1282
+ let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, eventKey: a } = Ye(e), o = t.nodes.find((e) => e.id === i);
1265
1283
  if (!o) return;
1266
1284
  let s = w(o.key);
1267
1285
  if (!s) {
@@ -1270,7 +1288,7 @@ function Yn(e) {
1270
1288
  }
1271
1289
  if (r === "customSlotEvent") {
1272
1290
  if (z(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1273
- let { compId: t, slotId: i, eventId: s } = Ye(a);
1291
+ let { compId: t, slotId: i, eventId: s } = Xe(a);
1274
1292
  if (n.id === t && o.slot === i) {
1275
1293
  let t = n.meta.slots.find((e) => e.id === i);
1276
1294
  if (t && t.events) {
@@ -1286,7 +1304,7 @@ function Yn(e) {
1286
1304
  }
1287
1305
  } else if (r === "multipleCustomSlotEvent") {
1288
1306
  if (B(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1289
- let { compId: t, slotId: i, eventId: s } = Ye(a);
1307
+ let { compId: t, slotId: i, eventId: s } = Xe(a);
1290
1308
  if (n.id === t && o.slot && i) {
1291
1309
  let t = n.meta.slots.find((e) => e.id === i);
1292
1310
  if (t && t.events) {
@@ -1310,9 +1328,9 @@ function Yn(e) {
1310
1328
  };
1311
1329
  }
1312
1330
  }
1313
- function Xn(e) {
1314
- let t = [], n = Jn(e), r;
1315
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ge(i, a), e]);
1331
+ function $n(e) {
1332
+ let t = [], n = Zn(e), r;
1333
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ke(i, a), e]);
1316
1334
  return F(t);
1317
1335
  }
1318
1336
  //#endregion
@@ -1337,7 +1355,7 @@ function J(e) {
1337
1355
  });
1338
1356
  return t;
1339
1357
  }
1340
- function Zn(e) {
1358
+ function er(e) {
1341
1359
  let t = !0;
1342
1360
  switch (e) {
1343
1361
  case "": break;
@@ -1363,7 +1381,7 @@ function Zn(e) {
1363
1381
  }
1364
1382
  return t;
1365
1383
  }
1366
- function Qn(e) {
1384
+ function tr(e) {
1367
1385
  let { activeObject: t, activeComp: n, depends: r } = S.app, i = [], a = t.nodes.find((t) => t.id === e);
1368
1386
  if (!a) return i;
1369
1387
  let o = w(a.key);
@@ -1403,7 +1421,7 @@ function Qn(e) {
1403
1421
  outputs: J(o)
1404
1422
  });
1405
1423
  if (I(o.key) && t.type === "comp" && a.adaptSlot) {
1406
- let { kind: t, mainKey: n, slotKey: o } = rt(a.adaptSlot);
1424
+ let { kind: t, mainKey: n, slotKey: o } = it(a.adaptSlot);
1407
1425
  if (t === "elementSlot") {
1408
1426
  let t = w(n);
1409
1427
  if (t && t.slots) {
@@ -1440,9 +1458,9 @@ function Qn(e) {
1440
1458
  }
1441
1459
  return i;
1442
1460
  }
1443
- function $n(e) {
1461
+ function nr(e) {
1444
1462
  if (!e) return;
1445
- let { activeObject: t, activeComp: n, depends: r } = S.app, { kind: i, nodeId: a, methodKey: o } = Ze(e), s = t.nodes.find((e) => e.id === a);
1463
+ let { activeObject: t, activeComp: n, depends: r } = S.app, { kind: i, nodeId: a, methodKey: o } = Qe(e), s = t.nodes.find((e) => e.id === a);
1446
1464
  if (!s) return;
1447
1465
  let c = w(s.key);
1448
1466
  if (!c) {
@@ -1499,7 +1517,7 @@ function $n(e) {
1499
1517
  }
1500
1518
  } else if (i === "customSlotMethod") {
1501
1519
  if (I(c.key) && t.type === "comp" && n.meta.slots) {
1502
- let { slotId: t, methodId: r } = Qe(o), a = n.meta.slots.find((e) => e.id === t);
1520
+ let { slotId: t, methodId: r } = $e(o), a = n.meta.slots.find((e) => e.id === t);
1503
1521
  if (a && a.methods) {
1504
1522
  let t = a.methods.find((e) => e.id === r);
1505
1523
  if (t) return {
@@ -1513,8 +1531,8 @@ function $n(e) {
1513
1531
  }
1514
1532
  } else if (i === "elementAdaptSlotMethod") {
1515
1533
  if (I(c.key) && t.type === "comp" && s.adaptSlot) {
1516
- let { elementKey: t, slotKey: n, methodKey: r } = $e(o);
1517
- if (Yt(s.adaptSlot, t, n)) {
1534
+ let { elementKey: t, slotKey: n, methodKey: r } = et(o);
1535
+ if (Xt(s.adaptSlot, t, n)) {
1518
1536
  let a = w(t);
1519
1537
  if (a && a.slots) {
1520
1538
  let t = a.slots.find((e) => e.key === n);
@@ -1536,8 +1554,8 @@ function $n(e) {
1536
1554
  }
1537
1555
  }
1538
1556
  } else if (i === "customAdaptSlotMethod" && I(c.key) && t.type === "comp" && s.adaptSlot) {
1539
- let { compId: t, slotId: n, methodId: a } = Qe(o);
1540
- if (Xt(s.adaptSlot, t, n)) {
1557
+ let { compId: t, slotId: n, methodId: a } = $e(o);
1558
+ if (Zt(s.adaptSlot, t, n)) {
1541
1559
  let o = r[t];
1542
1560
  if (o && o.meta.slots) {
1543
1561
  let t = o.meta.slots.find((e) => e.id === n);
@@ -1559,12 +1577,12 @@ function $n(e) {
1559
1577
  }
1560
1578
  }
1561
1579
  }
1562
- function er(e) {
1563
- let t = [], n = Qn(e), r;
1564
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ke(i, a), e]);
1580
+ function rr(e) {
1581
+ let t = [], n = tr(e), r;
1582
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([qe(i, a), e]);
1565
1583
  return F(t);
1566
1584
  }
1567
- function tr(e) {
1585
+ function ir(e) {
1568
1586
  let t = !0;
1569
1587
  switch (e) {
1570
1588
  case "": break;
@@ -1590,7 +1608,7 @@ function tr(e) {
1590
1608
  }
1591
1609
  return t;
1592
1610
  }
1593
- function nr(e) {
1611
+ function ar(e) {
1594
1612
  let { activeObject: t, activeComp: n } = S.app, r = [], i = t.nodes.find((t) => t.id === e);
1595
1613
  if (!i) return r;
1596
1614
  let a = w(i.key);
@@ -1624,9 +1642,9 @@ function nr(e) {
1624
1642
  });
1625
1643
  return r;
1626
1644
  }
1627
- function rr(e) {
1645
+ function or(e) {
1628
1646
  if (!e) return;
1629
- let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, methodKey: a } = Ze(e), o = t.nodes.find((e) => e.id === i);
1647
+ let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, methodKey: a } = Qe(e), o = t.nodes.find((e) => e.id === i);
1630
1648
  if (!o) return;
1631
1649
  let s = w(o.key);
1632
1650
  if (!s) {
@@ -1635,7 +1653,7 @@ function rr(e) {
1635
1653
  }
1636
1654
  if (r === "customSlotMethod") {
1637
1655
  if (z(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1638
- let { compId: t, slotId: i, methodId: s } = Qe(a);
1656
+ let { compId: t, slotId: i, methodId: s } = $e(a);
1639
1657
  if (n.id === t && i === o.slot) {
1640
1658
  let t = n.meta.slots.find((e) => e.id === i);
1641
1659
  if (t && t.methods) {
@@ -1652,7 +1670,7 @@ function rr(e) {
1652
1670
  }
1653
1671
  } else if (r === "multipleCustomSlotMethod") {
1654
1672
  if (B(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1655
- let { compId: t, slotId: i, methodId: s } = Qe(a);
1673
+ let { compId: t, slotId: i, methodId: s } = $e(a);
1656
1674
  if (n.id === t && o.slot === i) {
1657
1675
  let t = n.meta.slots.find((e) => e.id === i);
1658
1676
  if (t && t.methods) {
@@ -1678,27 +1696,27 @@ function rr(e) {
1678
1696
  };
1679
1697
  }
1680
1698
  }
1681
- function ir(e) {
1682
- let t = [], n = nr(e), r;
1683
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ke(i, a), e]);
1699
+ function sr(e) {
1700
+ let t = [], n = ar(e), r;
1701
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([qe(i, a), e]);
1684
1702
  return F(t);
1685
1703
  }
1686
- function ar(e) {
1687
- let t = rr(e);
1704
+ function cr(e) {
1705
+ let t = or(e);
1688
1706
  return t ? t.outputs : [];
1689
1707
  }
1690
- function or(e, t) {
1691
- let n = rr(e);
1708
+ function lr(e, t) {
1709
+ let n = or(e);
1692
1710
  if (n) return n.outputs?.find((e) => e.key === t);
1693
1711
  }
1694
- function sr(e) {
1695
- let t = [], n = ar(e);
1712
+ function ur(e) {
1713
+ let t = [], n = cr(e);
1696
1714
  if (n) for (let { name: e, key: r } of n) t.push([e, r]);
1697
1715
  return F(t);
1698
1716
  }
1699
1717
  //#endregion
1700
1718
  //#region src/core/utils/app/page.ts
1701
- function cr(e) {
1719
+ function dr(e) {
1702
1720
  let { appList: t } = S.app, n = [], r = t.find((t) => t.id === e);
1703
1721
  if (!r) return n;
1704
1722
  for (let { id: e, name: t } of r.pages) n.push({
@@ -1707,7 +1725,7 @@ function cr(e) {
1707
1725
  });
1708
1726
  return n;
1709
1727
  }
1710
- function lr(e, t) {
1728
+ function fr(e, t) {
1711
1729
  let { appList: n } = S.app, r = n.find((t) => t.id === e);
1712
1730
  if (!r) return;
1713
1731
  let i = r.pages.find((e) => e.id === t);
@@ -1716,20 +1734,20 @@ function lr(e, t) {
1716
1734
  name: i.name
1717
1735
  };
1718
1736
  }
1719
- function ur(e) {
1737
+ function pr(e) {
1720
1738
  let t = [];
1721
- return cr(e).forEach(({ id: e, name: n }) => {
1739
+ return dr(e).forEach(({ id: e, name: n }) => {
1722
1740
  t.push([n, e]);
1723
1741
  }), F(t);
1724
1742
  }
1725
1743
  //#endregion
1726
1744
  //#region src/core/utils/app/property.ts
1727
- function dr(e, t) {
1745
+ function mr(e, t) {
1728
1746
  let { activeObject: n, activeComp: r, depends: i } = S.app, a = [], o = Me(n.type, n.subtype), s = n.nodes.find((t) => t.id === e);
1729
1747
  if (!s) return a;
1730
1748
  let c = w(s.key);
1731
1749
  if (!c) return console.assert(!1, "invalid element", s.key), a;
1732
- if (C[c.key] && C[c.key][o]) for (let { keys: n, names: r, raw: i } of C[c.key][o]) t === "write" && Jt(n, i) || a.push({
1750
+ if (C[c.key] && C[c.key][o]) for (let { keys: n, names: r, raw: i } of C[c.key][o]) t === "write" && Yt(n, i) || a.push({
1733
1751
  id: Re("elementProperty", e, n),
1734
1752
  kind: "elementProperty",
1735
1753
  names: r,
@@ -1781,7 +1799,7 @@ function dr(e, t) {
1781
1799
  meta: { raw: { type: i } }
1782
1800
  });
1783
1801
  if (I(c.key) && n.type === "comp" && s.adaptSlot) {
1784
- let { kind: n, mainKey: r, slotKey: o } = rt(s.adaptSlot);
1802
+ let { kind: n, mainKey: r, slotKey: o } = it(s.adaptSlot);
1785
1803
  if (n === "elementSlot") {
1786
1804
  let n = w(r);
1787
1805
  if (n && n.slots) {
@@ -1816,9 +1834,9 @@ function dr(e, t) {
1816
1834
  }
1817
1835
  return a;
1818
1836
  }
1819
- function fr(e) {
1837
+ function hr(e) {
1820
1838
  if (!e) return;
1821
- let { activeObject: t, activeComp: n, depends: r } = S.app, i = Me(t.type, t.subtype), { kind: a, nodeId: o, propertyKey: s } = et(e), c = t.nodes.find((e) => e.id === o);
1839
+ let { activeObject: t, activeComp: n, depends: r } = S.app, i = Me(t.type, t.subtype), { kind: a, nodeId: o, propertyKey: s } = tt(e), c = t.nodes.find((e) => e.id === o);
1822
1840
  if (!c) return;
1823
1841
  let l = w(c.key);
1824
1842
  if (!l) {
@@ -1866,7 +1884,7 @@ function fr(e) {
1866
1884
  }
1867
1885
  } else if (a === "customSlotProperty") {
1868
1886
  if (z(l.key) && c.slot && t.type === "comp" && n.meta.slots) {
1869
- let { compId: t, slotId: r, propertyId: i } = tt(s);
1887
+ let { compId: t, slotId: r, propertyId: i } = nt(s);
1870
1888
  if (n.id === t && c.slot === r) {
1871
1889
  let t = n.meta.slots.find((e) => e.id === r);
1872
1890
  if (t && t.properties) {
@@ -1882,7 +1900,7 @@ function fr(e) {
1882
1900
  }
1883
1901
  } else if (a === "multipleCustomSlotProperty") {
1884
1902
  if (B(l.key) && c.slot && t.type === "comp" && n.meta.slots) {
1885
- let { compId: t, slotId: r, propertyId: i } = tt(s);
1903
+ let { compId: t, slotId: r, propertyId: i } = nt(s);
1886
1904
  if (n.id === t && c.slot === r) {
1887
1905
  let t = n.meta.slots.find((e) => e.id === r);
1888
1906
  if (t && t.properties) {
@@ -1908,8 +1926,8 @@ function fr(e) {
1908
1926
  }
1909
1927
  } else if (a === "elementAdaptSlotProperty") {
1910
1928
  if (I(l.key) && t.type === "comp" && c.adaptSlot) {
1911
- let { elementKey: t, slotKey: n, propertyKey: r } = nt(s);
1912
- if (Yt(c.adaptSlot, t, n)) {
1929
+ let { elementKey: t, slotKey: n, propertyKey: r } = rt(s);
1930
+ if (Xt(c.adaptSlot, t, n)) {
1913
1931
  let i = w(t);
1914
1932
  if (i && i.slots) {
1915
1933
  let t = i.slots.find((e) => e.key === n);
@@ -1930,8 +1948,8 @@ function fr(e) {
1930
1948
  }
1931
1949
  }
1932
1950
  } else if (a === "customAdaptSlotProperty" && I(l.key) && t.type === "comp" && c.adaptSlot) {
1933
- let { compId: t, slotId: n, propertyId: i } = tt(s);
1934
- if (Xt(c.adaptSlot, t, n)) {
1951
+ let { compId: t, slotId: n, propertyId: i } = nt(s);
1952
+ if (Zt(c.adaptSlot, t, n)) {
1935
1953
  let o = r[t];
1936
1954
  if (o && o.meta.slots) {
1937
1955
  let t = o.meta.slots.find((e) => e.id === n);
@@ -1952,14 +1970,14 @@ function fr(e) {
1952
1970
  }
1953
1971
  }
1954
1972
  }
1955
- function pr(e, t) {
1956
- let n = [], r = dr(e, t), i;
1957
- for (let { id: e, kind: t, names: a } of r) t !== i && (i && n.push("separator"), i = t), n.push([qe(t, a), e]);
1973
+ function gr(e, t) {
1974
+ let n = [], r = mr(e, t), i;
1975
+ for (let { id: e, kind: t, names: a } of r) t !== i && (i && n.push("separator"), i = t), n.push([Je(t, a), e]);
1958
1976
  return F(n);
1959
1977
  }
1960
1978
  //#endregion
1961
1979
  //#region src/core/utils/app/slot.ts
1962
- function mr() {
1980
+ function _r() {
1963
1981
  let { activeObject: e, activeComp: t } = S.app, n = [{
1964
1982
  id: "",
1965
1983
  name: ""
@@ -1971,7 +1989,7 @@ function mr() {
1971
1989
  });
1972
1990
  return n;
1973
1991
  }
1974
- function hr(e) {
1992
+ function vr(e) {
1975
1993
  let { activeObject: t, activeComp: n } = S.app;
1976
1994
  if (t.type !== "comp" || !n.meta.slots) return;
1977
1995
  if (!e) return {
@@ -1984,8 +2002,8 @@ function hr(e) {
1984
2002
  name: r.name
1985
2003
  };
1986
2004
  }
1987
- function gr() {
1988
- let { i18n: e } = at, t = [], n = mr();
2005
+ function yr() {
2006
+ let { i18n: e } = ot, t = [], n = _r();
1989
2007
  for (let { id: r, name: i } of n) {
1990
2008
  let n = i;
1991
2009
  r === "" && (n = e.global.t("x-runtime-lib.notSet")), t.push([n, r]);
@@ -1994,7 +2012,7 @@ function gr() {
1994
2012
  }
1995
2013
  //#endregion
1996
2014
  //#region src/core/blocks/app/event/appBind/v1/index.ts
1997
- var _r = p.xml;
2015
+ var br = p.xml;
1998
2016
  y.app_bind_container_v1 = { init: function() {
1999
2017
  this.appendDummyInput().appendField("%{BKY_APP_V1_APP_BIND_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("event_blocks"), this.contextMenu = !1;
2000
2018
  } }, y.app_bind_item_v1 = { init: function() {
@@ -2006,7 +2024,7 @@ y.app_bind_container_v1 = { init: function() {
2006
2024
  }, 250), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_APP_BIND_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_BIND_HELPURL}");
2007
2025
  },
2008
2026
  mutationToDom: function() {
2009
- let e = _r.createElement("mutation");
2027
+ let e = br.createElement("mutation");
2010
2028
  return e.setAttribute("items", String(this.itemCount_)), e;
2011
2029
  },
2012
2030
  domToMutation: function(e) {
@@ -2073,7 +2091,7 @@ y.app_bind_container_v1 = { init: function() {
2073
2091
  for (let e = this.itemCount_; this.getInput("ADD" + e); e++) this.removeInput("ADD" + e);
2074
2092
  },
2075
2093
  updateShadow_: function() {
2076
- if (!this.isInsertionMarker()) for (let e = 0; e < this.itemCount_; e++) this.getInput("ADD" + e).setShadowDom(gn());
2094
+ if (!this.isInsertionMarker()) for (let e = 0; e < this.itemCount_; e++) this.getInput("ADD" + e).setShadowDom(vn());
2077
2095
  },
2078
2096
  checkWarning_: function() {
2079
2097
  let e;
@@ -2082,11 +2100,11 @@ y.app_bind_container_v1 = { init: function() {
2082
2100
  if (!n) continue;
2083
2101
  let r;
2084
2102
  if (n.kind === "property") {
2085
- let e = fr(n.property.id);
2086
- e && (r = e.meta.element ? nn(e.meta.raw) : tn(e.meta.raw.type));
2103
+ let e = hr(n.property.id);
2104
+ e && (r = e.meta.element ? rn(e.meta.raw) : nn(e.meta.raw.type));
2087
2105
  } else if (n.kind === "state") {
2088
- let e = Ln(n.state.id);
2089
- e && (r = tn(e.type));
2106
+ let e = Bn(n.state.id);
2107
+ e && (r = nn(e.type));
2090
2108
  }
2091
2109
  if (r && (e ||= r, r !== e)) {
2092
2110
  this.setWarningText(P("WARN_TYPE_NOT_MATCH"));
@@ -2127,16 +2145,16 @@ y.app_bind_container_v1 = { init: function() {
2127
2145
  }, 0);
2128
2146
  },
2129
2147
  genKindOpts_: function() {
2130
- return Bn();
2148
+ return Un();
2131
2149
  },
2132
2150
  genNodeOpts_: function() {
2133
- return this.kind === "property" ? Fn("setProperty") : F([]);
2151
+ return this.kind === "property" ? Rn("setProperty") : F([]);
2134
2152
  },
2135
2153
  genPropertyOpts_: function() {
2136
- return this.kind === "property" ? pr(this.node.id, "write") : F([]);
2154
+ return this.kind === "property" ? gr(this.node.id, "write") : F([]);
2137
2155
  },
2138
2156
  genStateOpts_: function() {
2139
- return this.kind === "state" ? Rn() : F([]);
2157
+ return this.kind === "state" ? Vn() : F([]);
2140
2158
  },
2141
2159
  onchange: function(e) {
2142
2160
  if (e.type === x.BLOCK_CHANGE) {
@@ -2152,14 +2170,14 @@ y.app_bind_container_v1 = { init: function() {
2152
2170
  else if (this.kind === "property") {
2153
2171
  let e = this.getField("NODE");
2154
2172
  if (e.getOptions(!1), t) {
2155
- let t = Pn("setProperty")?.[0];
2173
+ let t = Ln("setProperty")?.[0];
2156
2174
  e.setValue(t?.id ?? "");
2157
2175
  }
2158
2176
  this.onNodeChange_(e.getValue());
2159
2177
  } else if (this.kind === "state") {
2160
2178
  let e = this.getField("STATE");
2161
2179
  if (e.getOptions(!1), t) {
2162
- let t = In()?.[0];
2180
+ let t = zn()?.[0];
2163
2181
  e.setValue(t?.id ?? "");
2164
2182
  }
2165
2183
  this.onStateChange_(e.getValue());
@@ -2175,13 +2193,13 @@ y.app_bind_container_v1 = { init: function() {
2175
2193
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2176
2194
  let r = this.getField("PROPERTY");
2177
2195
  if (r.getOptions(!1), n) {
2178
- let e = dr(this.node.id, "write")?.[0];
2196
+ let e = mr(this.node.id, "write")?.[0];
2179
2197
  r.setValue(e?.id ?? "");
2180
2198
  }
2181
2199
  this.onPropertyChange_(r.getValue());
2182
2200
  },
2183
2201
  onPropertyChange_: function(e) {
2184
- let t = fr(e);
2202
+ let t = hr(e);
2185
2203
  if (!t) {
2186
2204
  console.assert(!1);
2187
2205
  return;
@@ -2189,7 +2207,7 @@ y.app_bind_container_v1 = { init: function() {
2189
2207
  this.property.id = t.id, this.property.kind = t.kind, this.property.names = t.names, this.updateShape_();
2190
2208
  },
2191
2209
  onStateChange_: function(e) {
2192
- let t = Ln(e);
2210
+ let t = Bn(e);
2193
2211
  if (!t) {
2194
2212
  console.assert(!1);
2195
2213
  return;
@@ -2213,7 +2231,7 @@ y.app_bind_container_v1 = { init: function() {
2213
2231
  return;
2214
2232
  }
2215
2233
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2216
- let t = fr(this.property.id);
2234
+ let t = hr(this.property.id);
2217
2235
  if (!t) {
2218
2236
  this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
2219
2237
  return;
@@ -2224,7 +2242,7 @@ y.app_bind_container_v1 = { init: function() {
2224
2242
  }
2225
2243
  v(t.names, this.property.names) || (this.property.names = t.names);
2226
2244
  } else if (this.kind === "state") {
2227
- let e = Ln(this.state.id);
2245
+ let e = Bn(this.state.id);
2228
2246
  if (!e) {
2229
2247
  this.setWarningText(P("WARN_STATE_NOT_FOUND"));
2230
2248
  return;
@@ -2252,12 +2270,12 @@ y.app_bind_container_v1 = { init: function() {
2252
2270
  },
2253
2271
  initData_: function() {
2254
2272
  if (this.node.id) return;
2255
- let e = Pn("onEvent")?.[0];
2273
+ let e = Ln("onEvent")?.[0];
2256
2274
  if (!e) return;
2257
2275
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2258
2276
  let t = this.getField("NODE");
2259
2277
  t.getOptions(!1), t.setValue(this.node.id);
2260
- let n = Gn(this.node.id)?.[0];
2278
+ let n = Jn(this.node.id)?.[0];
2261
2279
  if (!n) return;
2262
2280
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
2263
2281
  let r = this.getField("EVENT");
@@ -2275,10 +2293,10 @@ y.app_bind_container_v1 = { init: function() {
2275
2293
  }, 0);
2276
2294
  },
2277
2295
  genNodeOpts_: function() {
2278
- return Fn("onEvent");
2296
+ return Rn("onEvent");
2279
2297
  },
2280
2298
  genEventOpts_: function() {
2281
- return qn(this.node.id);
2299
+ return Xn(this.node.id);
2282
2300
  },
2283
2301
  onchange: function(e) {
2284
2302
  if (e.type === x.BLOCK_CHANGE) {
@@ -2298,13 +2316,13 @@ y.app_bind_container_v1 = { init: function() {
2298
2316
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2299
2317
  let r = this.getField("EVENT");
2300
2318
  if (r.getOptions(!1), n) {
2301
- let e = Gn(this.node.id)?.[0];
2319
+ let e = Jn(this.node.id)?.[0];
2302
2320
  r.setValue(e?.id ?? "");
2303
2321
  }
2304
2322
  this.onEventChange_(r.getValue());
2305
2323
  },
2306
2324
  onEventChange_: function(e) {
2307
- let t = Kn(e);
2325
+ let t = Yn(e);
2308
2326
  if (!t) {
2309
2327
  console.assert(!1);
2310
2328
  return;
@@ -2341,7 +2359,7 @@ y.app_bind_container_v1 = { init: function() {
2341
2359
  "x-runtime-lib.instance",
2342
2360
  !0
2343
2361
  ]);
2344
- let t = Wn(this.event.kind);
2362
+ let t = qn(this.event.kind);
2345
2363
  if (this.event.params) for (let n = 0; n < this.event.params.length; n++) {
2346
2364
  let { key: r, name: i } = this.event.params[n];
2347
2365
  e.push([
@@ -2364,7 +2382,7 @@ y.app_bind_container_v1 = { init: function() {
2364
2382
  return;
2365
2383
  }
2366
2384
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2367
- let t = Kn(this.event.id);
2385
+ let t = Yn(this.event.id);
2368
2386
  if (!t) {
2369
2387
  this.setWarningText(P("WARN_EVENT_NOT_FOUND"));
2370
2388
  return;
@@ -2407,12 +2425,12 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2407
2425
  },
2408
2426
  initData_: function() {
2409
2427
  if (this.node.id) return;
2410
- let e = Pn("triggerEvent")?.[0];
2428
+ let e = Ln("triggerEvent")?.[0];
2411
2429
  if (!e) return;
2412
2430
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2413
2431
  let t = this.getField("NODE");
2414
2432
  t.getOptions(!1), t.setValue(this.node.id);
2415
- let n = Jn(this.node.id)?.[0];
2433
+ let n = Zn(this.node.id)?.[0];
2416
2434
  if (!n) return;
2417
2435
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
2418
2436
  let r = this.getField("EVENT");
@@ -2430,10 +2448,10 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2430
2448
  }, 0);
2431
2449
  },
2432
2450
  genNodeOpts_: function() {
2433
- return Fn("triggerEvent");
2451
+ return Rn("triggerEvent");
2434
2452
  },
2435
2453
  genEventOpts_: function() {
2436
- return Xn(this.node.id);
2454
+ return $n(this.node.id);
2437
2455
  },
2438
2456
  onchange: function(e) {
2439
2457
  if (e.type === x.BLOCK_CHANGE) {
@@ -2453,13 +2471,13 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2453
2471
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2454
2472
  let r = this.getField("EVENT");
2455
2473
  if (r.getOptions(!1), n) {
2456
- let e = Jn(this.node.id)?.[0];
2474
+ let e = Zn(this.node.id)?.[0];
2457
2475
  r.setValue(e?.id ?? "");
2458
2476
  }
2459
2477
  this.onEventChange_(r.getValue());
2460
2478
  },
2461
2479
  onEventChange_: function(e) {
2462
- let t = Yn(e);
2480
+ let t = Qn(e);
2463
2481
  if (!t) {
2464
2482
  console.assert(!1);
2465
2483
  return;
@@ -2477,7 +2495,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2477
2495
  let { type: t } = this.event.params[e], n = this.getInput("PARAM" + e);
2478
2496
  n.connection.setShadowDom(null);
2479
2497
  let r = n.connection.targetBlock();
2480
- r && !r.isShadow() && r.dispose(), n.setCheck(tn(t));
2498
+ r && !r.isShadow() && r.dispose(), n.setCheck(nn(t));
2481
2499
  }
2482
2500
  }
2483
2501
  let e = !1;
@@ -2516,7 +2534,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2516
2534
  return;
2517
2535
  }
2518
2536
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2519
- let t = Yn(this.event.id);
2537
+ let t = Qn(this.event.id);
2520
2538
  if (!t) {
2521
2539
  this.setWarningText(P("WARN_EVENT_NOT_FOUND"));
2522
2540
  return;
@@ -2551,7 +2569,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2551
2569
  tooltip: "%{BKY_APP_V1_WATCH_EFFECT_TOOLTIP}",
2552
2570
  helpUrl: "%{BKY_APP_V1_WATCH_EFFECT_HELPURL}"
2553
2571
  }]), g.forBlock.watch_effect_v1 = function(e) {
2554
- return `async function __watchEffect$${ye(e.id)}__() {
2572
+ return `async function __watchEffect$${fe(e.id)}__() {
2555
2573
  ${g.statementToCode(e, "HANDLE")}};
2556
2574
  `;
2557
2575
  }, t([{
@@ -2585,9 +2603,9 @@ ${g.statementToCode(e, "HANDLE")}};
2585
2603
  },
2586
2604
  updateShadow_: function() {
2587
2605
  if (this.isInsertionMarker()) return;
2588
- let e = on("title");
2606
+ let e = cn("title");
2589
2607
  this.getInput("TITLE").connection.setShadowDom(e);
2590
- let t = on("text");
2608
+ let t = cn("text");
2591
2609
  this.getInput("TEXT").connection.setShadowDom(t);
2592
2610
  },
2593
2611
  ensureBlocks_: function() {
@@ -2620,11 +2638,11 @@ ${g.statementToCode(e, "HANDLE")}}
2620
2638
  },
2621
2639
  updateShadow_: function() {
2622
2640
  if (this.isInsertionMarker()) return;
2623
- let e = on("title");
2641
+ let e = cn("title");
2624
2642
  this.getInput("TITLE").connection.setShadowDom(e);
2625
- let t = on("label");
2643
+ let t = cn("label");
2626
2644
  this.getInput("LABEL").connection.setShadowDom(t);
2627
- let n = on("");
2645
+ let n = cn("");
2628
2646
  this.getInput("VALUE").connection.setShadowDom(n);
2629
2647
  },
2630
2648
  ensureBlocks_: function() {
@@ -2677,12 +2695,12 @@ ${g.statementToCode(e, "HANDLE")}}
2677
2695
  },
2678
2696
  initData_: function() {
2679
2697
  if (this.node.id) return;
2680
- let e = Pn("callMethod")?.[0];
2698
+ let e = Ln("callMethod")?.[0];
2681
2699
  if (!e) return;
2682
2700
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2683
2701
  let t = this.getField("NODE");
2684
2702
  t.getOptions(!1), t.setValue(this.node.id);
2685
- let n = Qn(this.node.id)?.[0];
2703
+ let n = tr(this.node.id)?.[0];
2686
2704
  if (!n) return;
2687
2705
  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;
2688
2706
  let r = this.getField("METHOD");
@@ -2700,10 +2718,10 @@ ${g.statementToCode(e, "HANDLE")}}
2700
2718
  }, 0);
2701
2719
  },
2702
2720
  genNodeOpts_: function() {
2703
- return Fn("callMethod");
2721
+ return Rn("callMethod");
2704
2722
  },
2705
2723
  genMethodOpts_: function() {
2706
- return er(this.node.id);
2724
+ return rr(this.node.id);
2707
2725
  },
2708
2726
  onchange: function(e) {
2709
2727
  if (e.type === x.BLOCK_CHANGE) {
@@ -2723,13 +2741,13 @@ ${g.statementToCode(e, "HANDLE")}}
2723
2741
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2724
2742
  let r = this.getField("METHOD");
2725
2743
  if (r.getOptions(!1), n) {
2726
- let e = Qn(this.node.id)?.[0];
2744
+ let e = tr(this.node.id)?.[0];
2727
2745
  r.setValue(e?.id ?? "");
2728
2746
  }
2729
2747
  this.onMethodChange_(r.getValue());
2730
2748
  },
2731
2749
  onMethodChange_: function(e) {
2732
- let t = $n(e);
2750
+ let t = nr(e);
2733
2751
  if (!t) {
2734
2752
  console.assert(!1);
2735
2753
  return;
@@ -2785,7 +2803,7 @@ ${g.statementToCode(e, "HANDLE")}}
2785
2803
  },
2786
2804
  ensureBlocks_: function() {
2787
2805
  if (this.isInsertionMarker()) return;
2788
- let e = [], t = Zn(this.method.kind);
2806
+ let e = [], t = er(this.method.kind);
2789
2807
  if (this.method.outputs) for (let n = 0; n < this.method.outputs.length; n++) {
2790
2808
  let { key: r, name: i } = this.method.outputs[n];
2791
2809
  e.push([
@@ -2808,7 +2826,7 @@ ${g.statementToCode(e, "HANDLE")}}
2808
2826
  return;
2809
2827
  }
2810
2828
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2811
- let t = $n(this.method.id);
2829
+ let t = nr(this.method.id);
2812
2830
  if (!t) {
2813
2831
  this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
2814
2832
  return;
@@ -2860,7 +2878,7 @@ ${g.statementToCode(e, "HANDLE")}}
2860
2878
  let o = "";
2861
2879
  if (r.method.outputs) for (let { key: e } of r.method.outputs) o += `${t}const __output$${e}__ = __outputs__[${n(e)}];\n`;
2862
2880
  if (r.method.kind === "customMethod") {
2863
- let { kind: e, nodeId: t, methodKey: n } = Ze(r.method.id), s = je(e, t, n);
2881
+ let { kind: e, nodeId: t, methodKey: n } = Qe(r.method.id), s = je(e, t, n);
2864
2882
  if (r.method.outputs && r.method.outputs.length > 0) {
2865
2883
  let e = g.statementToCode(r, "HANDLE");
2866
2884
  return `{
@@ -2889,12 +2907,12 @@ ${o}${e}}
2889
2907
  },
2890
2908
  initData_: function() {
2891
2909
  if (this.node.id) return;
2892
- let e = Pn("implementMethod")?.[0];
2910
+ let e = Ln("implementMethod")?.[0];
2893
2911
  if (!e) return;
2894
2912
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2895
2913
  let t = this.getField("NODE");
2896
2914
  t.getOptions(!1), t.setValue(this.node.id);
2897
- let n = nr(this.node.id)?.[0];
2915
+ let n = ar(this.node.id)?.[0];
2898
2916
  if (!n) return;
2899
2917
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs;
2900
2918
  let r = this.getField("METHOD");
@@ -2912,10 +2930,10 @@ ${o}${e}}
2912
2930
  }, 0);
2913
2931
  },
2914
2932
  genNodeOpts_: function() {
2915
- return Fn("implementMethod");
2933
+ return Rn("implementMethod");
2916
2934
  },
2917
2935
  genMethodOpts_: function() {
2918
- return ir(this.node.id);
2936
+ return sr(this.node.id);
2919
2937
  },
2920
2938
  onchange: function(e) {
2921
2939
  if (e.type === x.BLOCK_CHANGE) {
@@ -2935,13 +2953,13 @@ ${o}${e}}
2935
2953
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2936
2954
  let r = this.getField("METHOD");
2937
2955
  if (r.getOptions(!1), n) {
2938
- let e = nr(this.node.id)?.[0];
2956
+ let e = ar(this.node.id)?.[0];
2939
2957
  r.setValue(e?.id ?? "");
2940
2958
  }
2941
2959
  r.setValue(r.getValue());
2942
2960
  },
2943
2961
  onMethodChange_: function(e) {
2944
- let t = rr(e);
2962
+ let t = or(e);
2945
2963
  if (!t) {
2946
2964
  console.assert(!1);
2947
2965
  return;
@@ -2975,7 +2993,7 @@ ${o}${e}}
2975
2993
  "x-runtime-lib.instance",
2976
2994
  !0
2977
2995
  ]);
2978
- let t = tr(this.method.kind);
2996
+ let t = ir(this.method.kind);
2979
2997
  if (this.method.inputs) for (let n = 0; n < this.method.inputs.length; n++) {
2980
2998
  let { key: r, name: i } = this.method.inputs[n];
2981
2999
  e.push([
@@ -2998,7 +3016,7 @@ ${o}${e}}
2998
3016
  return;
2999
3017
  }
3000
3018
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3001
- let t = rr(this.method.id);
3019
+ let t = or(this.method.id);
3002
3020
  if (!t) {
3003
3021
  this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
3004
3022
  return;
@@ -3014,7 +3032,7 @@ ${o}${e}}
3014
3032
  this.setWarningText(null);
3015
3033
  }
3016
3034
  }, g.forBlock.implement_app_method_v1 = function(e) {
3017
- let t = g.INDENT, n = g.quote_, r = e, { kind: i, nodeId: a, methodKey: o } = Ze(r.method.id), s = "";
3035
+ let t = g.INDENT, n = g.quote_, r = e, { kind: i, nodeId: a, methodKey: o } = Qe(r.method.id), s = "";
3018
3036
  if (r.method.inputs) for (let { key: e } of r.method.inputs) s += `${t}const __input$${e}__ = __inputs__[${n(e)}];\n`;
3019
3037
  let c = g.statementToCode(r, "HANDLE");
3020
3038
  return `async function ${je(i, a, o)}(__instance__, __inputs__) {
@@ -3040,17 +3058,17 @@ ${c}${t}return __outputs__;
3040
3058
  },
3041
3059
  initData_: function() {
3042
3060
  if (this.node.id) return;
3043
- let e = Pn("implementMethod")?.[0];
3061
+ let e = Ln("implementMethod")?.[0];
3044
3062
  if (!e) return;
3045
3063
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3046
3064
  let t = this.getField("NODE");
3047
3065
  t.getOptions(!1), t.setValue(this.node.id);
3048
- let n = nr(this.node.id)?.[0];
3066
+ let n = ar(this.node.id)?.[0];
3049
3067
  if (!n) return;
3050
3068
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names;
3051
3069
  let r = this.getField("METHOD");
3052
3070
  r.getOptions(!1), r.setValue(this.method.id);
3053
- let i = ar(this.method.id)?.[0];
3071
+ let i = cr(this.method.id)?.[0];
3054
3072
  if (!i) return;
3055
3073
  this.output.key = i.key, this.output.name = i.name, this.output.type = i.type;
3056
3074
  let a = this.getField("OUTPUT");
@@ -3069,13 +3087,13 @@ ${c}${t}return __outputs__;
3069
3087
  }, 0);
3070
3088
  },
3071
3089
  genNodeOpts_: function() {
3072
- return Fn("implementMethod");
3090
+ return Rn("implementMethod");
3073
3091
  },
3074
3092
  genMethodOpts_: function() {
3075
- return ir(this.node.id);
3093
+ return sr(this.node.id);
3076
3094
  },
3077
3095
  genOutputOpts_: function() {
3078
- return sr(this.method.id);
3096
+ return ur(this.method.id);
3079
3097
  },
3080
3098
  onchange: function(e) {
3081
3099
  if (e.type === x.BLOCK_CHANGE) {
@@ -3095,13 +3113,13 @@ ${c}${t}return __outputs__;
3095
3113
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3096
3114
  let r = this.getField("METHOD");
3097
3115
  if (r.getOptions(!1), n) {
3098
- let e = nr(this.node.id)?.[0];
3116
+ let e = ar(this.node.id)?.[0];
3099
3117
  r.setValue(e?.id ?? "");
3100
3118
  }
3101
3119
  r.setValue(r.getValue());
3102
3120
  },
3103
3121
  onMethodChange_: function(e) {
3104
- let t = rr(e);
3122
+ let t = or(e);
3105
3123
  if (!t) {
3106
3124
  console.assert(!1);
3107
3125
  return;
@@ -3109,14 +3127,14 @@ ${c}${t}return __outputs__;
3109
3127
  let n = this.method.id !== t.id;
3110
3128
  this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
3111
3129
  let r = this.getField("OUTPUT");
3112
- if (r.getOptions(!1), n || !or(this.method.id, this.output.key)) {
3113
- let e = ar(this.method.id)?.[0];
3130
+ if (r.getOptions(!1), n || !lr(this.method.id, this.output.key)) {
3131
+ let e = cr(this.method.id)?.[0];
3114
3132
  r.setValue(e?.key ?? "");
3115
3133
  }
3116
3134
  this.onOutputChange_(r.getValue());
3117
3135
  },
3118
3136
  onOutputChange_: function(e) {
3119
- let t = or(this.method.id, e);
3137
+ let t = lr(this.method.id, e);
3120
3138
  if (!t) {
3121
3139
  console.assert(!1);
3122
3140
  return;
@@ -3128,7 +3146,7 @@ ${c}${t}return __outputs__;
3128
3146
  e.connection.setShadowDom(null);
3129
3147
  let t = e.connection.targetBlock();
3130
3148
  t && !t.isShadow() && t.dispose();
3131
- let n = tn(this.output.type);
3149
+ let n = nn(this.output.type);
3132
3150
  e.setCheck(n);
3133
3151
  },
3134
3152
  updateShadows_: function() {
@@ -3147,7 +3165,7 @@ ${c}${t}return __outputs__;
3147
3165
  return;
3148
3166
  }
3149
3167
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3150
- let t = rr(this.method.id);
3168
+ let t = or(this.method.id);
3151
3169
  if (!t) {
3152
3170
  this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
3153
3171
  return;
@@ -3157,7 +3175,7 @@ ${c}${t}return __outputs__;
3157
3175
  return;
3158
3176
  }
3159
3177
  t.names !== this.method.names && (this.method.names = t.names);
3160
- let n = or(this.method.id, this.output.key);
3178
+ let n = lr(this.method.id, this.output.key);
3161
3179
  if (!n) {
3162
3180
  this.setWarningText(P("WARN_OUTPUT_NOT_FOUND"));
3163
3181
  return;
@@ -3215,12 +3233,12 @@ ${c}${t}return __outputs__;
3215
3233
  },
3216
3234
  initData_: function() {
3217
3235
  if (this.app.id) return;
3218
- let e = Cn()?.[0];
3236
+ let e = En()?.[0];
3219
3237
  if (!e) return;
3220
3238
  this.app.id = e.id, this.app.name = e.name;
3221
3239
  let t = this.getField("APP");
3222
3240
  t.getOptions(!1), t.setValue(this.app.id);
3223
- let n = cr(this.app.id)?.[0];
3241
+ let n = dr(this.app.id)?.[0];
3224
3242
  if (!n) return;
3225
3243
  this.page.id = n.id, this.page.name = n.name;
3226
3244
  let r = this.getField("PAGE");
@@ -3238,10 +3256,10 @@ ${c}${t}return __outputs__;
3238
3256
  }, 0);
3239
3257
  },
3240
3258
  genAppOpts_: function() {
3241
- return Tn();
3259
+ return On();
3242
3260
  },
3243
3261
  genPageOpts_: function() {
3244
- return ur(this.app.id);
3262
+ return pr(this.app.id);
3245
3263
  },
3246
3264
  onchange: function(e) {
3247
3265
  if (e.type === x.BLOCK_CHANGE) {
@@ -3252,7 +3270,7 @@ ${c}${t}return __outputs__;
3252
3270
  }
3253
3271
  },
3254
3272
  onAppChange_: function(e) {
3255
- let t = wn(e);
3273
+ let t = Dn(e);
3256
3274
  if (!t) {
3257
3275
  console.assert(!1);
3258
3276
  return;
@@ -3261,13 +3279,13 @@ ${c}${t}return __outputs__;
3261
3279
  this.app.id = t.id, this.app.name = t.name;
3262
3280
  let r = this.getField("PAGE");
3263
3281
  if (r.getOptions(!1), n) {
3264
- let e = cr(this.app.id)?.[0];
3282
+ let e = dr(this.app.id)?.[0];
3265
3283
  r.setValue(e?.id ?? "");
3266
3284
  }
3267
3285
  this.onPageChange_(r.getValue());
3268
3286
  },
3269
3287
  onPageChange_: function(e) {
3270
- let t = lr(this.app.id, e);
3288
+ let t = fr(this.app.id, e);
3271
3289
  if (!t) {
3272
3290
  console.assert(!1);
3273
3291
  return;
@@ -3275,13 +3293,13 @@ ${c}${t}return __outputs__;
3275
3293
  this.page.id = t.id, this.page.name = t.name;
3276
3294
  },
3277
3295
  checkWarning_: function() {
3278
- let e = wn(this.app.id);
3296
+ let e = Dn(this.app.id);
3279
3297
  if (!e) {
3280
3298
  this.setWarningText(P("WARN_APP_NOT_FOUND"));
3281
3299
  return;
3282
3300
  }
3283
3301
  e.name !== this.app.name && (this.app.name = e.name);
3284
- let t = lr(this.app.id, this.page.id);
3302
+ let t = fr(this.app.id, this.page.id);
3285
3303
  if (!t) {
3286
3304
  this.setWarningText(P("WARN_PAGE_NOT_FOUND"));
3287
3305
  return;
@@ -3300,7 +3318,7 @@ ${c}${t}return __outputs__;
3300
3318
  },
3301
3319
  initData_: function() {
3302
3320
  if (this.comp.id) return;
3303
- let e = Vn()?.[0];
3321
+ let e = Wn()?.[0];
3304
3322
  if (!e) return;
3305
3323
  this.comp.id = e.id, this.comp.name = e.name;
3306
3324
  let t = this.getField("COMP");
@@ -3315,7 +3333,7 @@ ${c}${t}return __outputs__;
3315
3333
  }, 0);
3316
3334
  },
3317
3335
  genCompOpts_: function() {
3318
- return Un();
3336
+ return Kn();
3319
3337
  },
3320
3338
  onchange: function(e) {
3321
3339
  if (e.type === x.BLOCK_CHANGE) {
@@ -3326,7 +3344,7 @@ ${c}${t}return __outputs__;
3326
3344
  }
3327
3345
  },
3328
3346
  onCompChange_: function(e) {
3329
- let t = Hn(e);
3347
+ let t = Gn(e);
3330
3348
  if (!t) {
3331
3349
  console.assert(!1);
3332
3350
  return;
@@ -3334,7 +3352,7 @@ ${c}${t}return __outputs__;
3334
3352
  this.comp.id = t.id, this.comp.name = t.name;
3335
3353
  },
3336
3354
  checkWarning_: function() {
3337
- let e = Hn(this.comp.id);
3355
+ let e = Gn(this.comp.id);
3338
3356
  if (!e) {
3339
3357
  this.setWarningText(P("WARN_COMP_NOT_FOUND"));
3340
3358
  return;
@@ -3353,7 +3371,7 @@ ${c}${t}return __outputs__;
3353
3371
  },
3354
3372
  initData_: function() {
3355
3373
  if (this.slot.id) return;
3356
- let e = mr()?.[0];
3374
+ let e = _r()?.[0];
3357
3375
  if (!e) return;
3358
3376
  this.slot.id = e.id, this.slot.name = e.name;
3359
3377
  let t = this.getField("SLOT");
@@ -3368,7 +3386,7 @@ ${c}${t}return __outputs__;
3368
3386
  }, 0);
3369
3387
  },
3370
3388
  genSlotOpts_: function() {
3371
- return gr();
3389
+ return yr();
3372
3390
  },
3373
3391
  onchange: function(e) {
3374
3392
  if (e.type === x.BLOCK_CHANGE) {
@@ -3379,7 +3397,7 @@ ${c}${t}return __outputs__;
3379
3397
  }
3380
3398
  },
3381
3399
  onSlotChange_: function(e) {
3382
- let t = hr(e);
3400
+ let t = vr(e);
3383
3401
  if (!t) {
3384
3402
  console.assert(!1);
3385
3403
  return;
@@ -3387,7 +3405,7 @@ ${c}${t}return __outputs__;
3387
3405
  this.slot.id = t.id, this.slot.name = t.name;
3388
3406
  },
3389
3407
  checkWarning_: function() {
3390
- let e = hr(this.slot.id);
3408
+ let e = vr(this.slot.id);
3391
3409
  if (!e) {
3392
3410
  this.setWarningText(P("WARN_SLOT_NOT_FOUND"));
3393
3411
  return;
@@ -3411,12 +3429,12 @@ ${c}${t}return __outputs__;
3411
3429
  },
3412
3430
  initData_: function() {
3413
3431
  if (this.node.id) return;
3414
- let e = Pn("getProperty")?.[0];
3432
+ let e = Ln("getProperty")?.[0];
3415
3433
  if (!e) return;
3416
3434
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3417
3435
  let t = this.getField("NODE");
3418
3436
  t.getOptions(!1), t.setValue(this.node.id);
3419
- let n = dr(this.node.id, "read")?.[0];
3437
+ let n = mr(this.node.id, "read")?.[0];
3420
3438
  if (!n) return;
3421
3439
  this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
3422
3440
  let r = this.getField("PROPERTY");
@@ -3434,10 +3452,10 @@ ${c}${t}return __outputs__;
3434
3452
  }, 0);
3435
3453
  },
3436
3454
  genNodeOpts_: function() {
3437
- return Fn("getProperty");
3455
+ return Rn("getProperty");
3438
3456
  },
3439
3457
  genPropertyOpts_: function() {
3440
- return pr(this.node.id, "read");
3458
+ return gr(this.node.id, "read");
3441
3459
  },
3442
3460
  onchange: function(e) {
3443
3461
  if (e.type === x.BLOCK_CHANGE) {
@@ -3457,13 +3475,13 @@ ${c}${t}return __outputs__;
3457
3475
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3458
3476
  let r = this.getField("PROPERTY");
3459
3477
  if (r.getOptions(!1), n) {
3460
- let e = dr(this.node.id, "read")?.[0];
3478
+ let e = mr(this.node.id, "read")?.[0];
3461
3479
  r.setValue(e?.id ?? "");
3462
3480
  }
3463
3481
  this.onPropertyChange_(r.getValue());
3464
3482
  },
3465
3483
  onPropertyChange_: function(e) {
3466
- let t = fr(e);
3484
+ let t = hr(e);
3467
3485
  if (!t) {
3468
3486
  console.assert(!1);
3469
3487
  return;
@@ -3502,7 +3520,7 @@ ${c}${t}return __outputs__;
3502
3520
  return;
3503
3521
  }
3504
3522
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3505
- let t = fr(this.property.id);
3523
+ let t = hr(this.property.id);
3506
3524
  if (!t) {
3507
3525
  this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
3508
3526
  return;
@@ -3530,12 +3548,12 @@ ${c}${t}return __outputs__;
3530
3548
  },
3531
3549
  initData_: function() {
3532
3550
  if (this.node.id) return;
3533
- let e = Pn("setProperty")?.[0];
3551
+ let e = Ln("setProperty")?.[0];
3534
3552
  if (!e) return;
3535
3553
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3536
3554
  let t = this.getField("NODE");
3537
3555
  t.getOptions(!1), t.setValue(this.node.id);
3538
- let n = dr(this.node.id, "write")?.[0];
3556
+ let n = mr(this.node.id, "write")?.[0];
3539
3557
  if (!n) return;
3540
3558
  this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
3541
3559
  let r = this.getField("PROPERTY");
@@ -3553,10 +3571,10 @@ ${c}${t}return __outputs__;
3553
3571
  }, 0);
3554
3572
  },
3555
3573
  genNodeOpts_: function() {
3556
- return Fn("setProperty");
3574
+ return Rn("setProperty");
3557
3575
  },
3558
3576
  genPropertyOpts_: function() {
3559
- return pr(this.node.id, "write");
3577
+ return gr(this.node.id, "write");
3560
3578
  },
3561
3579
  onchange: function(e) {
3562
3580
  if (e.type === x.BLOCK_CHANGE) {
@@ -3576,13 +3594,13 @@ ${c}${t}return __outputs__;
3576
3594
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3577
3595
  let r = this.getField("PROPERTY");
3578
3596
  if (r.getOptions(!1), n) {
3579
- let e = dr(this.node.id, "write")?.[0];
3597
+ let e = mr(this.node.id, "write")?.[0];
3580
3598
  r.setValue(e?.id ?? "");
3581
3599
  }
3582
3600
  this.onPropertyChange_(r.getValue());
3583
3601
  },
3584
3602
  onPropertyChange_: function(e) {
3585
- let t = fr(e);
3603
+ let t = hr(e);
3586
3604
  if (!t) {
3587
3605
  console.assert(!1);
3588
3606
  return;
@@ -3603,7 +3621,7 @@ ${c}${t}return __outputs__;
3603
3621
  },
3604
3622
  updateShadow_: function() {
3605
3623
  if (this.isInsertionMarker()) return;
3606
- let e = fr(this.property.id);
3624
+ let e = hr(this.property.id);
3607
3625
  if (!e) return;
3608
3626
  let t = this.getInput("INSTANCE");
3609
3627
  if (t) {
@@ -3615,7 +3633,7 @@ ${c}${t}return __outputs__;
3615
3633
  if (n) {
3616
3634
  n.setShadowDom(null);
3617
3635
  let t = n.connection?.targetBlock();
3618
- t && t.dispose(), e.meta.element ? n.setCheck(nn(e.meta.raw)).setShadowDom(_n(e.meta.raw)) : n.setCheck(tn(e.meta.raw.type)).setShadowDom(H(e.meta.raw.type));
3636
+ t && t.dispose(), e.meta.element ? n.setCheck(rn(e.meta.raw)).setShadowDom(yn(e.meta.raw)) : n.setCheck(nn(e.meta.raw.type)).setShadowDom(H(e.meta.raw.type));
3619
3637
  }
3620
3638
  },
3621
3639
  checkWarning_: function() {
@@ -3629,7 +3647,7 @@ ${c}${t}return __outputs__;
3629
3647
  return;
3630
3648
  }
3631
3649
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3632
- let t = fr(this.property.id);
3650
+ let t = hr(this.property.id);
3633
3651
  if (!t) {
3634
3652
  this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
3635
3653
  return;
@@ -3658,7 +3676,7 @@ ${c}${t}return __outputs__;
3658
3676
  },
3659
3677
  initData_: function() {
3660
3678
  if (this.state.id) return;
3661
- let e = In()?.[0];
3679
+ let e = zn()?.[0];
3662
3680
  if (!e) return;
3663
3681
  this.state.id = e.id, this.state.name = e.name, this.state.type = e.type;
3664
3682
  let t = this.getField("STATE");
@@ -3673,7 +3691,7 @@ ${c}${t}return __outputs__;
3673
3691
  }, 0);
3674
3692
  },
3675
3693
  genStateOpts_: function() {
3676
- return Rn();
3694
+ return Vn();
3677
3695
  },
3678
3696
  onchange: function(e) {
3679
3697
  if (e.type === x.BLOCK_CHANGE) {
@@ -3682,7 +3700,7 @@ ${c}${t}return __outputs__;
3682
3700
  }
3683
3701
  },
3684
3702
  onStateChange_: function(e) {
3685
- let t = Ln(e);
3703
+ let t = Bn(e);
3686
3704
  if (!t) {
3687
3705
  console.assert(!1);
3688
3706
  return;
@@ -3690,7 +3708,7 @@ ${c}${t}return __outputs__;
3690
3708
  this.state.id = t.id, this.state.name = t.name, this.state.type = t.type;
3691
3709
  },
3692
3710
  checkWarning_: function() {
3693
- let e = Ln(this.state.id);
3711
+ let e = Bn(this.state.id);
3694
3712
  if (!e) {
3695
3713
  this.setWarningText(P("WARN_STATE_NOT_FOUND"));
3696
3714
  return;
@@ -3714,7 +3732,7 @@ ${c}${t}return __outputs__;
3714
3732
  },
3715
3733
  initData_: function() {
3716
3734
  if (this.state.id) return;
3717
- let e = In()?.[0];
3735
+ let e = zn()?.[0];
3718
3736
  if (!e) return;
3719
3737
  this.state.id = e.id, this.state.name = e.name, this.state.type = e.type;
3720
3738
  let t = this.getField("STATE");
@@ -3727,7 +3745,7 @@ ${c}${t}return __outputs__;
3727
3745
  this.state.id = e.state?.id ?? "", this.state.name = e.state?.name ?? "", this.state.type = e.state?.type ?? "string";
3728
3746
  },
3729
3747
  genStateOpts_: function() {
3730
- return Rn();
3748
+ return Vn();
3731
3749
  },
3732
3750
  onchange: function(e) {
3733
3751
  if (e.type === x.BLOCK_CHANGE) {
@@ -3736,7 +3754,7 @@ ${c}${t}return __outputs__;
3736
3754
  }
3737
3755
  },
3738
3756
  onStateChange_: function(e) {
3739
- let t = Ln(e);
3757
+ let t = Bn(e);
3740
3758
  if (!t) {
3741
3759
  console.assert(!1);
3742
3760
  return;
@@ -3748,11 +3766,11 @@ ${c}${t}return __outputs__;
3748
3766
  this.getInput("VALUE").setShadowDom(null);
3749
3767
  let e = this.getInput("VALUE").connection.targetBlock();
3750
3768
  e && e.dispose();
3751
- let t = tn(this.state.type), n = H(this.state.type);
3769
+ let t = nn(this.state.type), n = H(this.state.type);
3752
3770
  this.getInput("VALUE").setCheck(t).setShadowDom(n);
3753
3771
  },
3754
3772
  checkWarning_: function() {
3755
- let e = Ln(this.state.id);
3773
+ let e = Bn(this.state.id);
3756
3774
  if (!e) {
3757
3775
  this.setWarningText(P("WARN_STATE_NOT_FOUND"));
3758
3776
  return;
@@ -3820,7 +3838,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
3820
3838
  type: "field_colour",
3821
3839
  name: "COLOR",
3822
3840
  colour: "#ff0000",
3823
- colourOptions: /* @__PURE__ */ "#F44336.#FFEBEE.#FFCDD2.#EF9A9A.#E57373.#EF5350.#E53935.#D32F2F.#C62828.#B71C1C.#FF8A80.#FF5252.#FF1744.#D50000.#e91e63.#fce4ec.#f8bbd0.#f48fb1.#f06292.#ec407a.#d81b60.#c2185b.#ad1457.#880e4f.#ff80ab.#ff4081.#f50057.#c51162.#9c27b0.#f3e5f5.#e1bee7.#ce93d8.#ba68c8.#ab47bc.#8e24aa.#7b1fa2.#6a1b9a.#4a148c.#ea80fc.#e040fb.#d500f9.#aa00ff.#673ab7.#ede7f6.#d1c4e9.#b39ddb.#9575cd.#7e57c2.#5e35b1.#512da8.#4527a0.#311b92.#b388ff.#7c4dff.#651fff.#6200ea.#3f51b5.#e8eaf6.#c5cae9.#9fa8da.#7986cb.#5c6bc0.#3949ab.#303f9f.#283593.#1a237e.#8c9eff.#536dfe.#3d5afe.#304ffe.#2196F3.#E3F2FD.#BBDEFB.#90CAF9.#64B5F6.#42A5F5.#1E88E5.#1976D2.#1565C0.#0D47A1.#82B1FF.#448AFF.#2979FF.#2962FF.#03a9f4.#e1f5fe.#b3e5fc.#81d4fa.#4fc3f7.#29b6f6.#039be5.#0288d1.#0277bd.#01579b.#80d8ff.#40c4ff.#00b0ff.#0091ea.#00bcd4.#e0f7fa.#b2ebf2.#80deea.#4dd0e1.#26c6da.#00acc1.#0097a7.#00838f.#006064.#84ffff.#18ffff.#00e5ff.#00b8d4.#009688.#e0f2f1.#b2dfdb.#80cbc4.#4db6ac.#26a69a.#00897b.#00796b.#00695c.#004d40.#a7ffeb.#64ffda.#1de9b6.#00bfa5.#4CAF50.#E8F5E9.#C8E6C9.#A5D6A7.#81C784.#66BB6A.#43A047.#388E3C.#2E7D32.#1B5E20.#B9F6CA.#69F0AE.#00E676.#00C853.#8bc34a.#f1f8e9.#dcedc8.#c5e1a5.#aed581.#9ccc65.#7cb342.#689f38.#558b2f.#33691e.#ccff90.#b2ff59.#76ff03.#64dd17.#cddc39.#f9fbe7.#f0f4c3.#e6ee9c.#dce775.#d4e157.#c0ca33.#afb42b.#9e9d24.#827717.#f4ff81.#eeff41.#c6ff00.#aeea00.#ffeb3b.#fffde7.#fff9c4.#fff59d.#fff176.#ffee58.#fdd835.#fbc02d.#f9a825.#f57f17.#ffff8d.#ffff00.#ffea00.#ffd600.#ffc107.#fff8e1.#ffecb3.#ffe082.#ffd54f.#ffca28.#ffb300.#ffa000.#ff8f00.#ff6f00.#ffe57f.#ffd740.#ffc400.#ffab00.#ff9800.#fff3e0.#ffe0b2.#ffcc80.#ffb74d.#ffa726.#fb8c00.#f57c00.#ef6c00.#e65100.#ffd180.#ffab40.#ff9100.#ff6d00.#ff5722.#fbe9e7.#ffccbc.#ffab91.#ff8a65.#ff7043.#f4511e.#e64a19.#d84315.#bf360c.#ff9e80.#ff6e40.#ff3d00.#dd2c00.#795548.#efebe9.#d7ccc8.#bcaaa4.#a1887f.#8d6e63.#6d4c41.#5d4037.#4e342e.#3e2723.#.#.#.#.#607d8b.#eceff1.#cfd8dc.#b0bec5.#90a4ae.#78909c.#546e7a.#455a64.#37474f.#263238.#.#.#.#.#9e9e9e.#fafafa.#f5f5f5.#eeeeee.#e0e0e0.#bdbdbd.#757575.#616161.#424242.#212121.#.#.#.#.#000000.#FFFFFF.#FFFFFF00".split("."),
3841
+ colourOptions: on,
3824
3842
  columns: 14
3825
3843
  }],
3826
3844
  output: "Color",
@@ -3886,7 +3904,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
3886
3904
  };
3887
3905
  //#endregion
3888
3906
  //#region src/core/blocks/common/parameter/v1/whiteList.ts
3889
- var vr = [
3907
+ var xr = [
3890
3908
  "add_data_v",
3891
3909
  "call_app_method_v",
3892
3910
  "call_func_v",
@@ -3902,18 +3920,18 @@ var vr = [
3902
3920
  "query_data_v",
3903
3921
  "update_data_v"
3904
3922
  ];
3905
- function yr(e) {
3906
- return !!vr.find((t) => e.startsWith(t));
3923
+ function Sr(e) {
3924
+ return !!xr.find((t) => e.startsWith(t));
3907
3925
  }
3908
3926
  //#endregion
3909
3927
  //#region src/core/blocks/common/parameter/v1/index.ts
3910
- var br = p.xml;
3928
+ var Cr = p.xml;
3911
3929
  y.parameter_v1 = {
3912
3930
  init: function() {
3913
3931
  this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
3914
3932
  },
3915
3933
  mutationToDom: function() {
3916
- let e = br.createElement("mutation");
3934
+ let e = Cr.createElement("mutation");
3917
3935
  return e.setAttribute("key", this.key), e.setAttribute("name", this.name), e.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), e;
3918
3936
  },
3919
3937
  domToMutation: function(e) {
@@ -3950,11 +3968,11 @@ y.parameter_v1 = {
3950
3968
  },
3951
3969
  tryDuplicate_: function(e) {
3952
3970
  let t = this.workspace.getBlockById(e.oldParentId);
3953
- if (t && yr(t.type)) try {
3971
+ if (t && Sr(t.type)) try {
3954
3972
  x.disable();
3955
3973
  let n = t.getInput(e.oldInputName)?.connection;
3956
3974
  if (n) {
3957
- let e = an(this.workspace, this.key, this.name, this.locale);
3975
+ let e = sn(this.workspace, this.key, this.name, this.locale);
3958
3976
  n.connect(e.outputConnection);
3959
3977
  }
3960
3978
  } finally {
@@ -3963,14 +3981,14 @@ y.parameter_v1 = {
3963
3981
  },
3964
3982
  updateShape_: function() {
3965
3983
  if (this.locale) {
3966
- let { i18n: e } = at;
3984
+ let { i18n: e } = ot;
3967
3985
  this.setFieldValue(e.global.t(this.name), "LABEL");
3968
3986
  } else this.setFieldValue(this.name, "LABEL");
3969
3987
  },
3970
3988
  checkWarning_: function() {
3971
3989
  let e = this.getSurroundParent();
3972
3990
  for (; e;) {
3973
- if (yr(e.type)) for (let t of e.inputList) {
3991
+ if (Sr(e.type)) for (let t of e.inputList) {
3974
3992
  let e = t.connection?.targetBlock();
3975
3993
  if (!e || e.type !== "parameter_v1") continue;
3976
3994
  let n = e;
@@ -3990,28 +4008,28 @@ y.parameter_v1 = {
3990
4008
  };
3991
4009
  //#endregion
3992
4010
  //#region src/core/utils/compute/func.ts
3993
- function xr(e) {
4011
+ function wr(e) {
3994
4012
  let t = S.compute.spaces.find((t) => t.id === e);
3995
4013
  return t ? t.funcs : [];
3996
4014
  }
3997
- function Sr(e, t) {
4015
+ function Tr(e, t) {
3998
4016
  let n = S.compute.spaces.find((t) => t.id === e);
3999
4017
  if (n) return n.funcs.find((e) => e.id === t);
4000
4018
  }
4001
- function Cr(e) {
4019
+ function Er(e) {
4002
4020
  let t = [];
4003
- return xr(e).forEach(({ id: e, name: n }) => {
4021
+ return wr(e).forEach(({ id: e, name: n }) => {
4004
4022
  t.push([n, e]);
4005
4023
  }), F(t);
4006
4024
  }
4007
- function wr() {
4025
+ function Dr() {
4008
4026
  return S.compute.activeFunc;
4009
4027
  }
4010
- function Tr(e) {
4028
+ function Or(e) {
4011
4029
  let { activeFunc: t } = S.compute;
4012
4030
  return t.outputs?.find((t) => t.id === e);
4013
4031
  }
4014
- function Er() {
4032
+ function kr() {
4015
4033
  let { activeFunc: e } = S.compute, t = [];
4016
4034
  return e.outputs?.forEach(({ id: e, name: n }) => {
4017
4035
  t.push([n, e]);
@@ -4019,18 +4037,18 @@ function Er() {
4019
4037
  }
4020
4038
  //#endregion
4021
4039
  //#region src/core/utils/compute/space.ts
4022
- function Dr(e) {
4040
+ function Ar(e) {
4023
4041
  let t = [];
4024
4042
  return S.compute.spaces.forEach((n) => {
4025
4043
  e === "func" && n.funcs.length > 0 && t.push(n), e === "flow" && n.flows.length > 0 && t.push(n);
4026
4044
  }), t;
4027
4045
  }
4028
- function Or(e) {
4046
+ function jr(e) {
4029
4047
  return S.compute.spaces.find((t) => t.id === e);
4030
4048
  }
4031
- function kr(e) {
4049
+ function Mr(e) {
4032
4050
  let t = [];
4033
- return Dr(e).forEach(({ id: e, name: n }) => {
4051
+ return Ar(e).forEach(({ id: e, name: n }) => {
4034
4052
  t.push([n, e]);
4035
4053
  }), F(t);
4036
4054
  }
@@ -4048,12 +4066,12 @@ y.call_func_v1 = {
4048
4066
  },
4049
4067
  initData_: function() {
4050
4068
  if (this.space.id) return;
4051
- let e = Dr("func")?.[0];
4069
+ let e = Ar("func")?.[0];
4052
4070
  if (!e) return;
4053
4071
  this.space.id = e.id, this.space.name = e.name;
4054
4072
  let t = this.getField("SPACE");
4055
4073
  t.getOptions(!1), t.setValue(this.space.id);
4056
- let n = xr(this.space.id)?.[0];
4074
+ let n = wr(this.space.id)?.[0];
4057
4075
  if (!n) return;
4058
4076
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
4059
4077
  let r = this.getField("FUNC");
@@ -4071,10 +4089,10 @@ y.call_func_v1 = {
4071
4089
  }, 0);
4072
4090
  },
4073
4091
  genSpaceOpts_: function() {
4074
- return kr("func");
4092
+ return Mr("func");
4075
4093
  },
4076
4094
  genFuncOpts_: function() {
4077
- return Cr(this.space.id);
4095
+ return Er(this.space.id);
4078
4096
  },
4079
4097
  onchange: function(e) {
4080
4098
  if (e.type === x.BLOCK_CHANGE) {
@@ -4085,7 +4103,7 @@ y.call_func_v1 = {
4085
4103
  }
4086
4104
  },
4087
4105
  onSpaceChange_: function(e) {
4088
- let t = Or(e);
4106
+ let t = jr(e);
4089
4107
  if (!t) {
4090
4108
  console.assert(!1);
4091
4109
  return;
@@ -4094,13 +4112,13 @@ y.call_func_v1 = {
4094
4112
  this.space.id = t.id, this.space.name = t.name;
4095
4113
  let r = this.getField("FUNC");
4096
4114
  if (r.getOptions(!1), n) {
4097
- let e = xr(this.space.id)?.[0];
4115
+ let e = wr(this.space.id)?.[0];
4098
4116
  r.setValue(e?.id ?? "");
4099
4117
  }
4100
4118
  this.onFuncChange_(r.getValue());
4101
4119
  },
4102
4120
  onFuncChange_: function(e) {
4103
- let t = Sr(this.space.id, e);
4121
+ let t = Tr(this.space.id, e);
4104
4122
  if (!t) {
4105
4123
  console.assert(!1);
4106
4124
  return;
@@ -4131,7 +4149,7 @@ y.call_func_v1 = {
4131
4149
  },
4132
4150
  updateCheck_: function() {
4133
4151
  for (let e = 0; e < this.func.inputs.length; e++) {
4134
- let { type: t } = this.func.inputs[e], n = tn(t);
4152
+ let { type: t } = this.func.inputs[e], n = nn(t);
4135
4153
  this.getInput("INPUT" + e).connection.setCheck(n);
4136
4154
  }
4137
4155
  },
@@ -4156,13 +4174,13 @@ y.call_func_v1 = {
4156
4174
  V(this, e);
4157
4175
  },
4158
4176
  checkWarning_: function() {
4159
- let e = Or(this.space.id);
4177
+ let e = jr(this.space.id);
4160
4178
  if (!e) {
4161
4179
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
4162
4180
  return;
4163
4181
  }
4164
4182
  e.name !== this.space.name && (this.space.name = e.name);
4165
- let t = Sr(this.space.id, this.func.id);
4183
+ let t = Tr(this.space.id, this.func.id);
4166
4184
  if (!t) {
4167
4185
  this.setWarningText(P("WARN_FUNC_NOT_FOUND"));
4168
4186
  return;
@@ -4207,12 +4225,12 @@ ${c}${l}}
4207
4225
  },
4208
4226
  initData_: function() {
4209
4227
  if (this.space.id) return;
4210
- let e = Dr("func")?.[0];
4228
+ let e = Ar("func")?.[0];
4211
4229
  if (!e) return;
4212
4230
  this.space.id = e.id, this.space.name = e.name;
4213
4231
  let t = this.getField("SPACE");
4214
4232
  t.getOptions(!1), t.setValue(this.space.id);
4215
- let n = xr(this.space.id)?.[0];
4233
+ let n = wr(this.space.id)?.[0];
4216
4234
  if (!n) return;
4217
4235
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
4218
4236
  let r = this.getField("FUNC");
@@ -4230,10 +4248,10 @@ ${c}${l}}
4230
4248
  }, 0);
4231
4249
  },
4232
4250
  genSpaceOpts_: function() {
4233
- return kr("func");
4251
+ return Mr("func");
4234
4252
  },
4235
4253
  genFuncOpts_: function() {
4236
- return Cr(this.space.id);
4254
+ return Er(this.space.id);
4237
4255
  },
4238
4256
  onchange: function(e) {
4239
4257
  if (e.type === x.BLOCK_CHANGE) {
@@ -4244,7 +4262,7 @@ ${c}${l}}
4244
4262
  }
4245
4263
  },
4246
4264
  onSpaceChange_: function(e) {
4247
- let t = Or(e);
4265
+ let t = jr(e);
4248
4266
  if (!t) {
4249
4267
  console.assert(!1);
4250
4268
  return;
@@ -4253,13 +4271,13 @@ ${c}${l}}
4253
4271
  this.space.id = t.id, this.space.name = t.name;
4254
4272
  let r = this.getField("FUNC");
4255
4273
  if (r.getOptions(!1), n) {
4256
- let e = xr(this.space.id)?.[0];
4274
+ let e = wr(this.space.id)?.[0];
4257
4275
  r.setValue(e?.id ?? "");
4258
4276
  }
4259
4277
  this.onFuncChange_(r.getValue());
4260
4278
  },
4261
4279
  onFuncChange_: function(e) {
4262
- let t = Sr(this.space.id, e);
4280
+ let t = Tr(this.space.id, e);
4263
4281
  if (!t) {
4264
4282
  console.assert(!1);
4265
4283
  return;
@@ -4290,7 +4308,7 @@ ${c}${l}}
4290
4308
  },
4291
4309
  updateCheck_: function() {
4292
4310
  for (let e = 0; e < this.func.inputs.length; e++) {
4293
- let { type: t } = this.func.inputs[e], n = tn(t);
4311
+ let { type: t } = this.func.inputs[e], n = nn(t);
4294
4312
  this.getInput("INPUT" + e).connection.setCheck(n);
4295
4313
  }
4296
4314
  },
@@ -4315,13 +4333,13 @@ ${c}${l}}
4315
4333
  V(this, e);
4316
4334
  },
4317
4335
  checkWarning_: function() {
4318
- let e = Or(this.space.id);
4336
+ let e = jr(this.space.id);
4319
4337
  if (!e) {
4320
4338
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
4321
4339
  return;
4322
4340
  }
4323
4341
  e.name !== this.space.name && (this.space.name = e.name);
4324
- let t = Sr(this.space.id, this.func.id);
4342
+ let t = Tr(this.space.id, this.func.id);
4325
4343
  if (!t) {
4326
4344
  this.setWarningText(P("WARN_FUNC_NOT_FOUND"));
4327
4345
  return;
@@ -4361,7 +4379,7 @@ ${c}${l}}
4361
4379
  },
4362
4380
  initData_: function() {
4363
4381
  if (this.func.id) return;
4364
- let { id: e, inputs: t } = wr();
4382
+ let { id: e, inputs: t } = Dr();
4365
4383
  this.func.id = e, this.func.inputs = t;
4366
4384
  },
4367
4385
  saveExtraState: function() {
@@ -4399,7 +4417,7 @@ ${c}${l}}
4399
4417
  V(this, e);
4400
4418
  },
4401
4419
  checkWarning_: function() {
4402
- let { id: e, inputs: t } = wr();
4420
+ let { id: e, inputs: t } = Dr();
4403
4421
  if (this.func.id !== e && (this.func.id = e), !v(t, this.func.inputs)) {
4404
4422
  this.setWarningText(P("WARN_FUNC_HAS_CHANGED"));
4405
4423
  return;
@@ -4424,7 +4442,7 @@ ${n}}`;
4424
4442
  },
4425
4443
  initData_: function() {
4426
4444
  if (this.output.id) return;
4427
- let e = wr().outputs?.[0];
4445
+ let e = Dr().outputs?.[0];
4428
4446
  e && (this.output.id = e.id, this.output.name = e.name, this.output.type = e.type);
4429
4447
  },
4430
4448
  saveExtraState: function() {
@@ -4436,7 +4454,7 @@ ${n}}`;
4436
4454
  }, 0);
4437
4455
  },
4438
4456
  genOutputOpts_: function() {
4439
- return Er();
4457
+ return kr();
4440
4458
  },
4441
4459
  onchange: function(e) {
4442
4460
  if (e.type === x.BLOCK_CHANGE) {
@@ -4447,7 +4465,7 @@ ${n}}`;
4447
4465
  }
4448
4466
  },
4449
4467
  onOutputChange_: function(e) {
4450
- let t = Tr(e);
4468
+ let t = Or(e);
4451
4469
  if (!t) {
4452
4470
  console.assert(!1);
4453
4471
  return;
@@ -4459,7 +4477,7 @@ ${n}}`;
4459
4477
  e.connection.setShadowDom(null);
4460
4478
  let t = e.connection.targetBlock();
4461
4479
  t && !t.isShadow() && t.dispose();
4462
- let n = tn(this.output.type);
4480
+ let n = nn(this.output.type);
4463
4481
  e.setCheck(n);
4464
4482
  },
4465
4483
  updateShadows_: function() {
@@ -4468,7 +4486,7 @@ ${n}}`;
4468
4486
  this.getInput("VALUE").setShadowDom(e);
4469
4487
  },
4470
4488
  checkWarning_: function() {
4471
- let e = Tr(this.output.id);
4489
+ let e = Or(this.output.id);
4472
4490
  if (!e) {
4473
4491
  this.setWarningText(P("WARN_FUNC_HAS_CHANGED"));
4474
4492
  return;
@@ -4538,11 +4556,11 @@ function Y() {
4538
4556
  t.tables.length > 0 && e.push(t);
4539
4557
  }), e;
4540
4558
  }
4541
- function Ar(e) {
4559
+ function Nr(e) {
4542
4560
  let { spaces: t } = S.data;
4543
4561
  return t.find((t) => t.id === e);
4544
4562
  }
4545
- function jr() {
4563
+ function Pr() {
4546
4564
  let e = [];
4547
4565
  return Y().forEach(({ id: t, name: n }) => {
4548
4566
  e.push([n, t]);
@@ -4554,37 +4572,37 @@ function X(e) {
4554
4572
  let { spaces: t } = S.data, n = t.find((t) => t.id === e);
4555
4573
  return n ? n.tables : [];
4556
4574
  }
4557
- function Mr(e, t) {
4575
+ function Fr(e, t) {
4558
4576
  let { spaces: n } = S.data, r = n.find((t) => t.id === e);
4559
4577
  if (r) return r.tables.find((e) => e.id === t);
4560
4578
  }
4561
- function Nr(e) {
4579
+ function Ir(e) {
4562
4580
  let t = [];
4563
4581
  return X(e).forEach(({ id: e, name: n }) => {
4564
4582
  t.push([n, e]);
4565
4583
  }), F(t);
4566
4584
  }
4567
- function Pr(e, t) {
4585
+ function Lr(e, t) {
4568
4586
  let { spaces: n } = S.data, r = n.find((t) => t.id === e);
4569
4587
  if (!r) return [];
4570
4588
  let i = r.tables.find((e) => e.id === t);
4571
4589
  return i ? i.columns : [];
4572
4590
  }
4573
- function Fr(e, t, n) {
4591
+ function Rr(e, t, n) {
4574
4592
  let { spaces: r } = S.data, i = r.find((t) => t.id === e);
4575
4593
  if (!i) return;
4576
4594
  let a = i.tables.find((e) => e.id === t);
4577
4595
  if (a) return a.columns.find((e) => e.id === n);
4578
4596
  }
4579
- function Ir(e, t) {
4597
+ function zr(e, t) {
4580
4598
  let n = [];
4581
- return Pr(e, t).forEach(({ id: e, name: t }) => {
4599
+ return Lr(e, t).forEach(({ id: e, name: t }) => {
4582
4600
  n.push([t, e]);
4583
4601
  }), F(n);
4584
4602
  }
4585
4603
  //#endregion
4586
4604
  //#region src/core/blocks/data/addData/v1/blocks.ts
4587
- function Lr(e) {
4605
+ function Br(e) {
4588
4606
  let t = e.getInput("TABLE").connection;
4589
4607
  if (t.targetBlock()) return;
4590
4608
  let n, r, i = Y()?.[0];
@@ -4616,7 +4634,7 @@ function Lr(e) {
4616
4634
  }, o = l.blocks.append(a, e.workspace);
4617
4635
  t.connect(o.outputConnection);
4618
4636
  }
4619
- function Rr(e) {
4637
+ function Vr(e) {
4620
4638
  let t = e.getInput("HANDLE").connection;
4621
4639
  if (t.targetBlock()) return;
4622
4640
  let n = l.blocks.append({
@@ -4651,7 +4669,7 @@ y.add_data_v1 = {
4651
4669
  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(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
4652
4670
  },
4653
4671
  ensureBlocks_: function() {
4654
- this.isInsertionMarker() || (Lr(this), V(this, [
4672
+ this.isInsertionMarker() || (Br(this), V(this, [
4655
4673
  [
4656
4674
  "SUCCESS",
4657
4675
  "__success__",
@@ -4670,7 +4688,7 @@ y.add_data_v1 = {
4670
4688
  "x-runtime-lib.data",
4671
4689
  !0
4672
4690
  ]
4673
- ]), Rr(this));
4691
+ ]), Vr(this));
4674
4692
  }
4675
4693
  }, g.forBlock.add_data_v1 = function(e) {
4676
4694
  let t = g.INDENT;
@@ -4718,7 +4736,7 @@ ${g.statementToCode(e, "HANDLE")}}
4718
4736
  let t = X(this.space.id)?.[0];
4719
4737
  if (!t) return;
4720
4738
  this.table.id = t.id, this.table.name = t.name;
4721
- let n = Pr(this.space.id, this.table.id)?.[0];
4739
+ let n = Lr(this.space.id, this.table.id)?.[0];
4722
4740
  n && (this.column.id = n.id, this.column.name = n.name, this.column.type = n.type, this.column.extend = n.extend);
4723
4741
  },
4724
4742
  saveExtraState: function() {
@@ -4734,13 +4752,13 @@ ${g.statementToCode(e, "HANDLE")}}
4734
4752
  }, 0);
4735
4753
  },
4736
4754
  genSpaceOpts_: function() {
4737
- return jr();
4755
+ return Pr();
4738
4756
  },
4739
4757
  genTableOpts_: function() {
4740
- return Nr(this.space.id);
4758
+ return Ir(this.space.id);
4741
4759
  },
4742
4760
  genColumnOpts_: function() {
4743
- return Ir(this.space.id, this.table.id);
4761
+ return zr(this.space.id, this.table.id);
4744
4762
  },
4745
4763
  onchange: function(e) {
4746
4764
  if (e.type === x.BLOCK_CHANGE) {
@@ -4751,7 +4769,7 @@ ${g.statementToCode(e, "HANDLE")}}
4751
4769
  }
4752
4770
  },
4753
4771
  onSpaceChange_: function(e) {
4754
- let t = Ar(e);
4772
+ let t = Nr(e);
4755
4773
  if (!t) {
4756
4774
  console.assert(!1);
4757
4775
  return;
@@ -4766,7 +4784,7 @@ ${g.statementToCode(e, "HANDLE")}}
4766
4784
  this.onTableChange_(r.getValue());
4767
4785
  },
4768
4786
  onTableChange_: function(e) {
4769
- let t = Mr(this.space.id, e);
4787
+ let t = Fr(this.space.id, e);
4770
4788
  if (!t) {
4771
4789
  console.assert(!1);
4772
4790
  return;
@@ -4775,13 +4793,13 @@ ${g.statementToCode(e, "HANDLE")}}
4775
4793
  this.table.id = t.id, this.table.name = t.name;
4776
4794
  let r = this.getField("COLUMN");
4777
4795
  if (r.getOptions(!1), n) {
4778
- let e = Pr(this.space.id, this.table.id)?.[0];
4796
+ let e = Lr(this.space.id, this.table.id)?.[0];
4779
4797
  r.setValue(e?.id ?? "");
4780
4798
  }
4781
4799
  this.onColumnChange_(r.getValue());
4782
4800
  },
4783
4801
  onColumnChange_: function(e) {
4784
- let t = Fr(this.space.id, this.table.id, e);
4802
+ let t = Rr(this.space.id, this.table.id, e);
4785
4803
  if (!t) {
4786
4804
  console.assert(!1);
4787
4805
  return;
@@ -4801,27 +4819,27 @@ ${g.statementToCode(e, "HANDLE")}}
4801
4819
  let t = this.getInput("VALUE").connection, n = t.targetBlock();
4802
4820
  if (e) n && n.dispose();
4803
4821
  else if (n) return;
4804
- let r = en(this.workspace, this.column.type);
4822
+ let r = tn(this.workspace, this.column.type);
4805
4823
  r && (t.setCheck(null), t.connect(r.outputConnection));
4806
4824
  },
4807
4825
  updateCheck_: function() {
4808
- let e = rn(this.column.type);
4826
+ let e = an(this.column.type);
4809
4827
  this.getInput("VALUE").connection.setCheck(e);
4810
4828
  },
4811
4829
  checkWarning_: function() {
4812
- let e = Ar(this.space.id);
4830
+ let e = Nr(this.space.id);
4813
4831
  if (!e) {
4814
4832
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
4815
4833
  return;
4816
4834
  }
4817
4835
  e.name !== this.space.name && (this.space.name = e.name);
4818
- let t = Mr(this.space.id, this.table.id);
4836
+ let t = Fr(this.space.id, this.table.id);
4819
4837
  if (!t) {
4820
4838
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
4821
4839
  return;
4822
4840
  }
4823
4841
  t.name !== this.table.name && (this.table.name = t.name);
4824
- let n = Fr(this.space.id, this.table.id, this.column.id);
4842
+ let n = Rr(this.space.id, this.table.id, this.column.id);
4825
4843
  if (!n) {
4826
4844
  this.setWarningText(P("WARN_COLUMN_NOT_FOUND"));
4827
4845
  return;
@@ -4907,7 +4925,7 @@ ${g.statementToCode(e, "HANDLE")}}
4907
4925
  };
4908
4926
  //#endregion
4909
4927
  //#region src/core/blocks/data/deleteData/v1/blocks.ts
4910
- function zr(e) {
4928
+ function Hr(e) {
4911
4929
  let t = e.getInput("TABLE").connection;
4912
4930
  if (t.targetBlock()) return;
4913
4931
  let n = Y()?.[0], r = X(n?.id ?? "")?.[0], i = {
@@ -4925,10 +4943,10 @@ function zr(e) {
4925
4943
  }, a = l.blocks.append(i, e.workspace);
4926
4944
  t.connect(a.outputConnection);
4927
4945
  }
4928
- function Br(e) {
4946
+ function Ur(e) {
4929
4947
  let t = e.getInput("CONDITION").connection;
4930
4948
  if (t.targetBlock()) return;
4931
- let n = Y()?.[0], r = X(n?.id ?? "")?.[0], i = Pr(n?.id, r?.id)?.[0], a = {
4949
+ let n = Y()?.[0], r = X(n?.id ?? "")?.[0], i = Lr(n?.id, r?.id)?.[0], a = {
4932
4950
  type: "cond_atomic_v1",
4933
4951
  extraState: {
4934
4952
  space: {
@@ -4949,7 +4967,7 @@ function Br(e) {
4949
4967
  }, o = l.blocks.append(a, e.workspace);
4950
4968
  t.connect(o.outputConnection);
4951
4969
  }
4952
- function Vr(e) {
4970
+ function Wr(e) {
4953
4971
  let t = e.getInput("HANDLE").connection;
4954
4972
  if (t.targetBlock()) return;
4955
4973
  let n = l.blocks.append({
@@ -4984,7 +5002,7 @@ y.delete_data_v1 = {
4984
5002
  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(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4985
5003
  },
4986
5004
  ensureBlocks_: function() {
4987
- this.isInsertionMarker() || (zr(this), Br(this), V(this, [[
5005
+ this.isInsertionMarker() || (Hr(this), Ur(this), V(this, [[
4988
5006
  "SUCCESS",
4989
5007
  "__success__",
4990
5008
  "x-runtime-lib.success",
@@ -4994,7 +5012,7 @@ y.delete_data_v1 = {
4994
5012
  "__message__",
4995
5013
  "x-runtime-lib.message",
4996
5014
  !0
4997
- ]]), Vr(this));
5015
+ ]]), Wr(this));
4998
5016
  }
4999
5017
  }, g.forBlock.delete_data_v1 = function(e) {
5000
5018
  let t = g.INDENT;
@@ -5028,7 +5046,7 @@ ${g.statementToCode(e, "HANDLE")}}
5028
5046
  };
5029
5047
  //#endregion
5030
5048
  //#region src/core/blocks/data/queryData/v1/blocks.ts
5031
- function Hr(e) {
5049
+ function Gr(e) {
5032
5050
  let t = e.getInput("TABLE").connection;
5033
5051
  if (t.targetBlock()) return;
5034
5052
  let n, r, i = Y()?.[0];
@@ -5060,13 +5078,13 @@ function Hr(e) {
5060
5078
  }, o = l.blocks.append(a, e.workspace);
5061
5079
  t.connect(o.outputConnection);
5062
5080
  }
5063
- function Ur(e) {
5081
+ function Kr(e) {
5064
5082
  let t = e.getInput("CONDITION").connection;
5065
5083
  if (t.targetBlock()) return;
5066
5084
  let n = l.blocks.append({ type: "cond_atomic_v1" }, e.workspace);
5067
5085
  t.connect(n.outputConnection);
5068
5086
  }
5069
- function Wr(e) {
5087
+ function qr(e) {
5070
5088
  let t = e.getInput("EXTRA").connection;
5071
5089
  if (t.targetBlock()) return;
5072
5090
  let n = l.blocks.append({
@@ -5088,7 +5106,7 @@ function Wr(e) {
5088
5106
  }, e.workspace);
5089
5107
  t.connect(n.outputConnection);
5090
5108
  }
5091
- function Gr(e) {
5109
+ function Jr(e) {
5092
5110
  let t = e.getInput("HANDLE").connection;
5093
5111
  if (t.targetBlock()) return;
5094
5112
  let n = l.blocks.append({
@@ -5132,7 +5150,7 @@ t([{
5132
5150
  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(u.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5133
5151
  },
5134
5152
  ensureBlocks_: function() {
5135
- this.isInsertionMarker() || (Hr(this), Ur(this), Wr(this), V(this, [
5153
+ this.isInsertionMarker() || (Gr(this), Kr(this), qr(this), V(this, [
5136
5154
  [
5137
5155
  "SUCCESS",
5138
5156
  "__success__",
@@ -5157,7 +5175,7 @@ t([{
5157
5175
  "x-runtime-lib.extraData",
5158
5176
  !0
5159
5177
  ]
5160
- ]), Gr(this));
5178
+ ]), Jr(this));
5161
5179
  }
5162
5180
  }, g.forBlock.query_data_v1 = function(e) {
5163
5181
  let t = g.INDENT;
@@ -5255,10 +5273,10 @@ ${g.statementToCode(e, "HANDLE")}}
5255
5273
  }, 0);
5256
5274
  },
5257
5275
  genSpaceOpts_: function() {
5258
- return jr();
5276
+ return Pr();
5259
5277
  },
5260
5278
  genTableOpts_: function() {
5261
- return Nr(this.space.id);
5279
+ return Ir(this.space.id);
5262
5280
  },
5263
5281
  genColumnOpts_: function() {
5264
5282
  let e = [];
@@ -5285,7 +5303,7 @@ ${g.statementToCode(e, "HANDLE")}}
5285
5303
  }
5286
5304
  },
5287
5305
  onSpaceChange_: function(e) {
5288
- let t = Ar(e);
5306
+ let t = Nr(e);
5289
5307
  if (!t) {
5290
5308
  console.assert(!1);
5291
5309
  return;
@@ -5300,7 +5318,7 @@ ${g.statementToCode(e, "HANDLE")}}
5300
5318
  this.onTableChange_(r.getValue());
5301
5319
  },
5302
5320
  onTableChange_: function(e) {
5303
- let t = Mr(this.space.id, e);
5321
+ let t = Fr(this.space.id, e);
5304
5322
  if (!t) {
5305
5323
  console.assert(!1);
5306
5324
  return;
@@ -5374,13 +5392,13 @@ ${g.statementToCode(e, "HANDLE")}}
5374
5392
  }
5375
5393
  },
5376
5394
  checkWarning_: function() {
5377
- let e = Ar(this.space.id);
5395
+ let e = Nr(this.space.id);
5378
5396
  if (!e) {
5379
5397
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
5380
5398
  return;
5381
5399
  }
5382
5400
  e.name !== this.space.name && (this.space.name = e.name);
5383
- let t = Mr(this.space.id, this.table.id);
5401
+ let t = Fr(this.space.id, this.table.id);
5384
5402
  if (!t) {
5385
5403
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
5386
5404
  return;
@@ -5437,10 +5455,10 @@ ${g.statementToCode(e, "HANDLE")}}
5437
5455
  this.space.id = e.space?.id ?? "", this.space.name = e.space?.name ?? "", this.table.id = e.table?.id ?? "", this.table.name = e.table?.name ?? "", this.checkWarning_();
5438
5456
  },
5439
5457
  genSpaceOpts_: function() {
5440
- return jr();
5458
+ return Pr();
5441
5459
  },
5442
5460
  genTableOpts_: function() {
5443
- return Nr(this.space.id);
5461
+ return Ir(this.space.id);
5444
5462
  },
5445
5463
  onchange: function(e) {
5446
5464
  if (e.type === x.BLOCK_CHANGE) {
@@ -5451,7 +5469,7 @@ ${g.statementToCode(e, "HANDLE")}}
5451
5469
  }
5452
5470
  },
5453
5471
  onSpaceChange_: function(e) {
5454
- let t = Ar(e);
5472
+ let t = Nr(e);
5455
5473
  if (!t) {
5456
5474
  console.assert(!1);
5457
5475
  return;
@@ -5466,7 +5484,7 @@ ${g.statementToCode(e, "HANDLE")}}
5466
5484
  this.onTableChange_(r.getValue());
5467
5485
  },
5468
5486
  onTableChange_: function(e) {
5469
- let t = Mr(this.space.id, e);
5487
+ let t = Fr(this.space.id, e);
5470
5488
  if (!t) {
5471
5489
  console.assert(!1);
5472
5490
  return;
@@ -5474,13 +5492,13 @@ ${g.statementToCode(e, "HANDLE")}}
5474
5492
  this.table.id = t.id, this.table.name = t.name;
5475
5493
  },
5476
5494
  checkWarning_: function() {
5477
- let e = Ar(this.space.id);
5495
+ let e = Nr(this.space.id);
5478
5496
  if (!e) {
5479
5497
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
5480
5498
  return;
5481
5499
  }
5482
5500
  e.name !== this.space.name && (this.space.name = e.name);
5483
- let t = Mr(this.space.id, this.table.id);
5501
+ let t = Fr(this.space.id, this.table.id);
5484
5502
  if (!t) {
5485
5503
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
5486
5504
  return;
@@ -5519,7 +5537,7 @@ ${g.statementToCode(e, "HANDLE")}}
5519
5537
  ]]);
5520
5538
  }
5521
5539
  }, g.forBlock.transaction_v1 = function(e) {
5522
- let t = g.INDENT, n = e, r = Kt(n), i = g.statementToCode(n, "HANDLE"), a = g.statementToCode(n, "FINALLY");
5540
+ let t = g.INDENT, n = e, r = qt(n), i = g.statementToCode(n, "HANDLE"), a = g.statementToCode(n, "FINALLY");
5523
5541
  return `{
5524
5542
  ${t}var __error${r}__ = '';
5525
5543
  ${t}var __txExist${r}__ = typeof(__tx__) !== 'undefined';
@@ -5601,10 +5619,10 @@ ${t}}
5601
5619
  }, 0);
5602
5620
  },
5603
5621
  genSpaceOpts_: function() {
5604
- return jr();
5622
+ return Pr();
5605
5623
  },
5606
5624
  genTableOpts_: function() {
5607
- return Nr(this.space.id);
5625
+ return Ir(this.space.id);
5608
5626
  },
5609
5627
  genColumnOpts_: function() {
5610
5628
  let e = [];
@@ -5631,7 +5649,7 @@ ${t}}
5631
5649
  }
5632
5650
  },
5633
5651
  onSpaceChange_: function(e) {
5634
- let t = Ar(e);
5652
+ let t = Nr(e);
5635
5653
  if (!t) {
5636
5654
  console.assert(!1);
5637
5655
  return;
@@ -5646,7 +5664,7 @@ ${t}}
5646
5664
  this.onTableChange_(r.getValue());
5647
5665
  },
5648
5666
  onTableChange_: function(e) {
5649
- let t = Mr(this.space.id, e);
5667
+ let t = Fr(this.space.id, e);
5650
5668
  if (!t) {
5651
5669
  console.assert(!1);
5652
5670
  return;
@@ -5668,7 +5686,7 @@ ${t}}
5668
5686
  }
5669
5687
  let r = this.getInput("ADD" + e).connection, i = r.targetBlock();
5670
5688
  i && i.dispose();
5671
- let a = en(this.workspace, n.type);
5689
+ let a = tn(this.workspace, n.type);
5672
5690
  a && (r.setCheck(null), r.connect(a.outputConnection)), this.updateCheck_();
5673
5691
  },
5674
5692
  decompose: function(e) {
@@ -5739,7 +5757,7 @@ ${t}}
5739
5757
  let a = this.getFieldValue("COLUMN" + t), o = this.table.columns.find((e) => e.id === a);
5740
5758
  if (!o) continue;
5741
5759
  n.setCheck(null);
5742
- let s = en(this.workspace, o.type);
5760
+ let s = tn(this.workspace, o.type);
5743
5761
  s && r.connect(s.outputConnection);
5744
5762
  }
5745
5763
  },
@@ -5747,18 +5765,18 @@ ${t}}
5747
5765
  for (let e = 0; e < this.itemCount_; e++) {
5748
5766
  let t = this.getFieldValue("COLUMN" + e), n = this.table.columns.find((e) => e.id === t);
5749
5767
  if (!n) continue;
5750
- let r = rn(n.type);
5768
+ let r = an(n.type);
5751
5769
  this.getInput("ADD" + e).setCheck(r);
5752
5770
  }
5753
5771
  },
5754
5772
  checkWarning_: function() {
5755
- let e = Ar(this.space.id);
5773
+ let e = Nr(this.space.id);
5756
5774
  if (!e) {
5757
5775
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
5758
5776
  return;
5759
5777
  }
5760
5778
  e.name !== this.space.name && (this.space.name = e.name);
5761
- let t = Mr(this.space.id, this.table.id);
5779
+ let t = Fr(this.space.id, this.table.id);
5762
5780
  if (!t) {
5763
5781
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
5764
5782
  return;
@@ -5785,7 +5803,7 @@ ${t}}
5785
5803
  };
5786
5804
  //#endregion
5787
5805
  //#region src/core/blocks/data/updateData/v1/blocks.ts
5788
- function Kr(e) {
5806
+ function Yr(e) {
5789
5807
  let t = e.getInput("TABLE").connection;
5790
5808
  if (t.targetBlock()) return;
5791
5809
  let n, r, i = Y()?.[0];
@@ -5817,13 +5835,13 @@ function Kr(e) {
5817
5835
  }, o = l.blocks.append(a, e.workspace);
5818
5836
  t.connect(o.outputConnection);
5819
5837
  }
5820
- function qr(e) {
5838
+ function Xr(e) {
5821
5839
  let t = e.getInput("CONDITION").connection;
5822
5840
  if (t.targetBlock()) return;
5823
5841
  let n = l.blocks.append({ type: "cond_atomic_v1" }, e.workspace);
5824
5842
  t.connect(n.outputConnection);
5825
5843
  }
5826
- function Jr(e) {
5844
+ function Zr(e) {
5827
5845
  let t = e.getInput("HANDLE").connection;
5828
5846
  if (t.targetBlock()) return;
5829
5847
  let n = l.blocks.append({
@@ -5858,7 +5876,7 @@ y.update_data_v1 = {
5858
5876
  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(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5859
5877
  },
5860
5878
  ensureBlocks: function() {
5861
- this.isInsertionMarker() || (Kr(this), qr(this), V(this, [
5879
+ this.isInsertionMarker() || (Yr(this), Xr(this), V(this, [
5862
5880
  [
5863
5881
  "SUCCESS",
5864
5882
  "__success__",
@@ -5877,7 +5895,7 @@ y.update_data_v1 = {
5877
5895
  "x-runtime-lib.data",
5878
5896
  !0
5879
5897
  ]
5880
- ]), Jr(this));
5898
+ ]), Zr(this));
5881
5899
  }
5882
5900
  }, g.forBlock.update_data_v1 = function(e) {
5883
5901
  let t = g.INDENT;
@@ -5897,15 +5915,15 @@ ${g.statementToCode(e, "HANDLE")}}
5897
5915
  };
5898
5916
  //#endregion
5899
5917
  //#region src/core/blocks/json/jsonArray/v1/index.ts
5900
- var Yr = p.xml;
5918
+ var Qr = p.xml;
5901
5919
  y.json_array_v1 = {
5902
5920
  init: function() {
5903
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Ht, 20, 20, void 0, () => {
5921
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Ut, 20, 20, void 0, () => {
5904
5922
  this.isInFlyout || this.addEntry_();
5905
5923
  })), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
5906
5924
  },
5907
5925
  mutationToDom: function() {
5908
- let e = Yr.createElement("mutation");
5926
+ let e = Qr.createElement("mutation");
5909
5927
  return e.setAttribute("items", String(this.length)), e;
5910
5928
  },
5911
5929
  domToMutation: function(e) {
@@ -5917,9 +5935,9 @@ y.json_array_v1 = {
5917
5935
  initShape_: function() {
5918
5936
  for (let e = 0; e < this.length; e++) {
5919
5937
  let t = "ENTRY" + e, n = this.appendValueInput(t);
5920
- n.appendField(new h(Ht, 20, 20, void 0, () => {
5938
+ n.appendField(new h(Ut, 20, 20, void 0, () => {
5921
5939
  this.isInFlyout || this.addEntry_(n);
5922
- })), n.appendField(new i(String(e))), n.appendField(new h(Ut, 20, 20, void 0, () => {
5940
+ })), n.appendField(new i(String(e))), n.appendField(new h(Wt, 20, 20, void 0, () => {
5923
5941
  this.isInFlyout || this.removeEntry_(n);
5924
5942
  })), this.moveInputBefore(t, "ADD");
5925
5943
  }
@@ -5932,9 +5950,9 @@ y.json_array_v1 = {
5932
5950
  t.name = "ENTRY" + (e + 1), t.fieldRow[1].setValue(e + 1);
5933
5951
  }
5934
5952
  let n = this.appendValueInput("ENTRY" + t);
5935
- n.appendField(new h(Ht, 20, 20, void 0, () => {
5953
+ n.appendField(new h(Ut, 20, 20, void 0, () => {
5936
5954
  this.isInFlyout || this.addEntry_(n);
5937
- })), n.appendField(new i(String(t))), n.appendField(new h(Ut, 20, 20, void 0, () => {
5955
+ })), n.appendField(new i(String(t))), n.appendField(new h(Wt, 20, 20, void 0, () => {
5938
5956
  this.isInFlyout || this.removeEntry_(n);
5939
5957
  })), t === this.length ? this.moveInputBefore("ENTRY" + t, "ADD") : this.moveInputBefore("ENTRY" + t, "ENTRY" + (t + 1)), this.length++;
5940
5958
  },
@@ -5953,17 +5971,17 @@ y.json_array_v1 = {
5953
5971
  } };
5954
5972
  //#endregion
5955
5973
  //#region src/core/blocks/json/jsonMap/v1/index.ts
5956
- var Xr = p.xml;
5974
+ var $r = p.xml;
5957
5975
  y.json_map_v1 = {
5958
5976
  init: function() {
5959
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Ht, 20, 20, void 0, () => {
5977
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Ut, 20, 20, void 0, () => {
5960
5978
  this.isInFlyout || this.addEntry_();
5961
5979
  })), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
5962
5980
  },
5963
5981
  mutationToDom: function() {
5964
- let e = Xr.createElement("mutation");
5982
+ let e = $r.createElement("mutation");
5965
5983
  for (let t = 0; t < this.length; t++) {
5966
- let n = Xr.createElement("item");
5984
+ let n = $r.createElement("item");
5967
5985
  n.setAttribute("key", this.getFieldValue("KEY" + t)), e.appendChild(n);
5968
5986
  }
5969
5987
  return e;
@@ -5982,9 +6000,9 @@ y.json_map_v1 = {
5982
6000
  initShape_: function(e) {
5983
6001
  for (let t = 0; t < e.length; t++) {
5984
6002
  let n = e[t], r = "ENTRY" + t, i = this.appendValueInput(r);
5985
- i.appendField(new h(Ht, 20, 20, void 0, () => {
6003
+ i.appendField(new h(Ut, 20, 20, void 0, () => {
5986
6004
  this.isInFlyout || this.addEntry_(i);
5987
- })), i.appendField(new f(n), "KEY" + t), i.appendField(new h(Ut, 20, 20, void 0, () => {
6005
+ })), i.appendField(new f(n), "KEY" + t), i.appendField(new h(Wt, 20, 20, void 0, () => {
5988
6006
  this.isInFlyout || this.removeEntry_(i);
5989
6007
  })), this.moveInputBefore(r, "ADD");
5990
6008
  }
@@ -5994,9 +6012,9 @@ y.json_map_v1 = {
5994
6012
  e && (t = me(e.name.substring(5)));
5995
6013
  for (let e = this.length - 1; e >= t; e--) this.getField("KEY" + e).name = "KEY" + (e + 1), this.getInput("ENTRY" + e).name = "ENTRY" + (e + 1);
5996
6014
  let n = this.appendValueInput("ENTRY" + t);
5997
- n.appendField(new h(Ht, 20, 20, void 0, () => {
6015
+ n.appendField(new h(Ut, 20, 20, void 0, () => {
5998
6016
  this.isInFlyout || this.addEntry_(n);
5999
- })), n.appendField(new f("key"), "KEY" + t), n.appendField(new h(Ut, 20, 20, void 0, () => {
6017
+ })), n.appendField(new f("key"), "KEY" + t), n.appendField(new h(Wt, 20, 20, void 0, () => {
6000
6018
  this.isInFlyout || this.removeEntry_(n);
6001
6019
  })), t === this.length ? this.moveInputBefore("ENTRY" + t, "ADD") : this.moveInputBefore("ENTRY" + t, "ENTRY" + (t + 1)), this.length++;
6002
6020
  },
@@ -6016,7 +6034,7 @@ y.json_map_v1 = {
6016
6034
  } };
6017
6035
  //#endregion
6018
6036
  //#region src/core/blocks/list/listCreate/v1/index.ts
6019
- var Zr = p.xml;
6037
+ var ei = p.xml;
6020
6038
  y.list_create_container_v1 = { init: function() {
6021
6039
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
6022
6040
  } }, y.list_create_item_v1 = { init: function() {
@@ -6026,7 +6044,7 @@ y.list_create_container_v1 = { init: function() {
6026
6044
  this.itemCount_ = 0, this.setMutator(new oe.MutatorIcon(["list_create_item_v1"], this)), this.setOutput(!0, "Array"), this.setStyle("list_blocks"), this.setTooltip("%{BKY_LIST_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_LIST_V1_CREATE_HELPURL}"), this.updateShape_();
6027
6045
  },
6028
6046
  mutationToDom: function() {
6029
- let e = Zr.createElement("mutation");
6047
+ let e = ei.createElement("mutation");
6030
6048
  return e.setAttribute("items", String(this.itemCount_)), e;
6031
6049
  },
6032
6050
  domToMutation: function(e) {
@@ -6273,7 +6291,7 @@ y.list_create_container_v1 = { init: function() {
6273
6291
  };
6274
6292
  //#endregion
6275
6293
  //#region src/core/blocks/logic/logicCompare/v1/index.ts
6276
- var Qr = { onchange: function(e) {
6294
+ var ti = { onchange: function(e) {
6277
6295
  this.prevBlocks_ ||= [null, null];
6278
6296
  let t = this.getInputTargetBlock("A"), n = this.getInputTargetBlock("B");
6279
6297
  if (t && n && !this.workspace.connectionChecker.doTypeChecks(t.outputConnection, n.outputConnection)) {
@@ -6288,7 +6306,7 @@ var Qr = { onchange: function(e) {
6288
6306
  //#endregion
6289
6307
  //#region src/core/blocks/loop/flowControl/v1/extensions.ts
6290
6308
  m.register("logic_compare_v1", function() {
6291
- this.mixin(Qr);
6309
+ this.mixin(ti);
6292
6310
  }), t([{
6293
6311
  type: "logic_compare_v1",
6294
6312
  message0: "%1 %2 %3",
@@ -6582,7 +6600,7 @@ m.register("logic_compare_v1", function() {
6582
6600
  BREAK: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_BREAK}",
6583
6601
  CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
6584
6602
  }));
6585
- var $r = new Set([
6603
+ var ni = new Set([
6586
6604
  "repeat_v1",
6587
6605
  "for_each_v1",
6588
6606
  "for_v1",
@@ -6592,7 +6610,7 @@ m.registerMixin("flow_control_in_loop_check_v1", {
6592
6610
  getSurroundLoop: function() {
6593
6611
  let e = this;
6594
6612
  do {
6595
- if ($r.has(e.type)) return e;
6613
+ if (ni.has(e.type)) return e;
6596
6614
  e = e?.getSurroundParent();
6597
6615
  } while (e);
6598
6616
  return null;
@@ -7316,7 +7334,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(a, b) {
7316
7334
  };
7317
7335
  //#endregion
7318
7336
  //#region src/core/blocks/object/objectCreate/v1/index.ts
7319
- var ei = p.xml;
7337
+ var ri = p.xml;
7320
7338
  y.object_create_container_v1 = { init: function() {
7321
7339
  this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
7322
7340
  } }, y.object_create_item_v1 = { init: function() {
@@ -7326,7 +7344,7 @@ y.object_create_container_v1 = { init: function() {
7326
7344
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(new oe.MutatorIcon(["object_create_item_v1"], this)), this.setOutput(!0, "Object"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_OBJECT_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_OBJECT_V1_CREATE_HELPURL}");
7327
7345
  },
7328
7346
  mutationToDom: function() {
7329
- let e = ei.createElement("mutation");
7347
+ let e = ri.createElement("mutation");
7330
7348
  return e.setAttribute("items", String(this.itemCount_)), e;
7331
7349
  },
7332
7350
  domToMutation: function(e) {
@@ -7583,7 +7601,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(obj, key, val) {
7583
7601
  };
7584
7602
  //#endregion
7585
7603
  //#region src/core/blocks/procedure/procedureDef/v1/index.ts
7586
- var ti = p.xml;
7604
+ var ii = p.xml;
7587
7605
  y.procedure_def_container_v1 = { init: function() {
7588
7606
  this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new n(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7589
7607
  } }, y.procedure_def_item_v1 = {
@@ -7611,9 +7629,9 @@ y.procedure_def_container_v1 = { init: function() {
7611
7629
  e.setValidator(_e.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(new oe.MutatorIcon(["procedure_def_item_v1"], this)), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_DEF_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_DEF_HELPURL}");
7612
7630
  },
7613
7631
  mutationToDom: function() {
7614
- let e = ti.createElement("mutation");
7632
+ let e = ii.createElement("mutation");
7615
7633
  return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), this.args.forEach((t) => {
7616
- let n = ti.createElement("arg");
7634
+ let n = ii.createElement("arg");
7617
7635
  n.setAttribute("name", t.name), n.setAttribute("id", t.id), e.appendChild(n);
7618
7636
  }), e;
7619
7637
  },
@@ -7690,7 +7708,7 @@ y.procedure_def_container_v1 = { init: function() {
7690
7708
  let t = this.args[e], n = this.getInput("ARG" + e).connection, r = n.targetBlock();
7691
7709
  if (r) r.setKeyName(`__param@${t.id}__`, t.name, !1);
7692
7710
  else try {
7693
- x.disable(), r = an(this.workspace, `__param@${t.id}__`, t.name, !1), r.outputConnection.connect(n);
7711
+ x.disable(), r = sn(this.workspace, `__param@${t.id}__`, t.name, !1), r.outputConnection.connect(n);
7694
7712
  } finally {
7695
7713
  x.enable();
7696
7714
  }
@@ -7699,13 +7717,13 @@ y.procedure_def_container_v1 = { init: function() {
7699
7717
  };
7700
7718
  //#endregion
7701
7719
  //#region src/core/blocks/procedure/procedureReturn/v1/index.ts
7702
- var ni = p.xml;
7720
+ var ai = p.xml;
7703
7721
  y.procedure_return_v1 = {
7704
7722
  init: function() {
7705
7723
  this.withReturn = !1, this.appendDummyInput("DUMMY").appendField("%{BKY_PROCEDURE_RETURN}"), this.appendValueInput("VALUE").appendField("%{BKY_PROCEDURE_RETURN}").setVisible(!1), this.setPreviousStatement(!0), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_RETURN_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_RETURN_HELPURL}");
7706
7724
  },
7707
7725
  mutationToDom: function() {
7708
- let e = ni.createElement("mutation");
7726
+ let e = ai.createElement("mutation");
7709
7727
  return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), e;
7710
7728
  },
7711
7729
  domToMutation: function(e) {
@@ -7801,7 +7819,7 @@ ${g.statementToCode(e, "HANDLE")}
7801
7819
  };
7802
7820
  //#endregion
7803
7821
  //#region src/core/utils/resource/dir.ts
7804
- function ri(e) {
7822
+ function oi(e) {
7805
7823
  let t = S.resource.spaces.find((t) => t.id === e);
7806
7824
  if (!t) return [];
7807
7825
  let n = [];
@@ -7816,15 +7834,15 @@ function ri(e) {
7816
7834
  }
7817
7835
  return r(t.dirTree, ""), n;
7818
7836
  }
7819
- function ii(e) {
7837
+ function si(e) {
7820
7838
  let t = [];
7821
- return ri(e).forEach(({ id: e, name: n }) => {
7839
+ return oi(e).forEach(({ id: e, name: n }) => {
7822
7840
  t.push([n, e]);
7823
7841
  }), F(t);
7824
7842
  }
7825
7843
  //#endregion
7826
7844
  //#region src/core/utils/resource/resource.ts
7827
- function ai(e, t) {
7845
+ function ci(e, t) {
7828
7846
  let n = S.resource.spaces.find((t) => t.id === e);
7829
7847
  if (!n) return [];
7830
7848
  let r = [];
@@ -7832,23 +7850,23 @@ function ai(e, t) {
7832
7850
  e.dirid === t && r.push(e);
7833
7851
  }), r;
7834
7852
  }
7835
- function oi(e, t) {
7853
+ function li(e, t) {
7836
7854
  let n = [];
7837
- return ai(e, t).forEach(({ id: e, name: t }) => {
7855
+ return ci(e, t).forEach(({ id: e, name: t }) => {
7838
7856
  n.push([t, e]);
7839
7857
  }), F(n);
7840
7858
  }
7841
7859
  //#endregion
7842
7860
  //#region src/core/utils/resource/space.ts
7843
- function si() {
7861
+ function ui() {
7844
7862
  let e = [];
7845
7863
  return S.resource.spaces.forEach((t) => {
7846
7864
  t.resources.length > 0 && e.push(t);
7847
7865
  }), e;
7848
7866
  }
7849
- function ci() {
7867
+ function di() {
7850
7868
  let e = [];
7851
- return si().forEach(({ id: t, name: n }) => {
7869
+ return ui().forEach(({ id: t, name: n }) => {
7852
7870
  e.push([n, t]);
7853
7871
  }), F(e);
7854
7872
  }
@@ -7867,17 +7885,17 @@ y.select_resource_v1 = {
7867
7885
  },
7868
7886
  initData_: function() {
7869
7887
  if (this.space.id) return;
7870
- let e = si()?.[0];
7888
+ let e = ui()?.[0];
7871
7889
  if (!e) return;
7872
7890
  this.space.id = e.id, this.space.name = e.name;
7873
7891
  let t = this.getField("SPACE");
7874
7892
  t.getOptions(!1), t.setValue(this.space.id);
7875
- let n = ri(this.space.id)?.[0];
7893
+ let n = oi(this.space.id)?.[0];
7876
7894
  if (!n) return;
7877
7895
  this.dir.id = n.id, this.dir.name = n.name;
7878
7896
  let r = this.getField("DIR");
7879
7897
  r.getOptions(!1), r.setValue(this.dir.id);
7880
- let i = ai(this.space.id, this.dir.id)?.[0];
7898
+ let i = ci(this.space.id, this.dir.id)?.[0];
7881
7899
  if (!i) return;
7882
7900
  this.resource.id = i.id, this.resource.name = i.name;
7883
7901
  let a = this.getField("RESOURCE");
@@ -7894,13 +7912,13 @@ y.select_resource_v1 = {
7894
7912
  this.space = he(e.space), this.dir = he(e.dir), this.resource = he(e.resource);
7895
7913
  },
7896
7914
  genSpaceOpts_: function() {
7897
- return ci();
7915
+ return di();
7898
7916
  },
7899
7917
  genDirOpts_: function() {
7900
- return ii(this.space.id);
7918
+ return si(this.space.id);
7901
7919
  },
7902
7920
  genResourceOpts_: function() {
7903
- return oi(this.space.id, this.dir.id);
7921
+ return li(this.space.id, this.dir.id);
7904
7922
  }
7905
7923
  }, g.forBlock.select_resource_v1 = function() {
7906
7924
  return "";
@@ -7921,7 +7939,7 @@ y.select_resource_v1 = {
7921
7939
  },
7922
7940
  updateShadow_: function() {
7923
7941
  if (this.isInsertionMarker()) return;
7924
- let e = on("");
7942
+ let e = cn("");
7925
7943
  this.getInput("NAME")?.setShadowDom(e);
7926
7944
  },
7927
7945
  ensureBlocks_: function() {
@@ -7973,9 +7991,9 @@ ${g.statementToCode(e, "HANDLE")}
7973
7991
  };
7974
7992
  //#endregion
7975
7993
  //#region src/core/blocks/text/utils/index.ts
7976
- var li = /^\s*'([^']|\\')*'\s*$/;
7977
- function ui(e) {
7978
- return li.test(e) ? [e, _.ATOMIC] : [`String(${e})`, _.FUNCTION_CALL];
7994
+ var fi = /^\s*'([^']|\\')*'\s*$/;
7995
+ function pi(e) {
7996
+ return fi.test(e) ? [e, _.ATOMIC] : [`String(${e})`, _.FUNCTION_CALL];
7979
7997
  }
7980
7998
  m.register("text_append_tooltip_v1", m.buildTooltipWithFieldText("%{BKY_TEXT_V1_APPEND_TOOLTIP}", "VAR")), t([{
7981
7999
  type: "text_append_v1",
@@ -7993,7 +8011,7 @@ m.register("text_append_tooltip_v1", m.buildTooltipWithFieldText("%{BKY_TEXT_V1_
7993
8011
  helpUrl: "%{BKY_TEXT_V1_APPEND_HELPURL}",
7994
8012
  extensions: ["text_append_tooltip_v1"]
7995
8013
  }]), g.forBlock.text_append_v1 = function(t) {
7996
- return `${g.nameDB_?.getName(t.getFieldValue("VAR"), e.NameType.VARIABLE)} += ${ui(g.valueToCode(t, "TEXT", _.NONE) || "''")};\n`;
8014
+ return `${g.nameDB_?.getName(t.getFieldValue("VAR"), e.NameType.VARIABLE)} += ${pi(g.valueToCode(t, "TEXT", _.NONE) || "''")};\n`;
7997
8015
  }, t([{
7998
8016
  type: "text_change_case_v1",
7999
8017
  message0: "%{BKY_TEXT_V1_CHANGE_CASE_TITLE}",
@@ -8117,11 +8135,11 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle) {
8117
8135
  };
8118
8136
  //#endregion
8119
8137
  //#region src/core/blocks/text/textJoin/v1/index.ts
8120
- var di = p.xml;
8138
+ var mi = p.xml;
8121
8139
  m.registerMutator("text_join_mutator_v1", {
8122
8140
  itemCount_: 0,
8123
8141
  mutationToDom: function() {
8124
- let e = di.createElement("mutation");
8142
+ let e = mi.createElement("mutation");
8125
8143
  return e.setAttribute("items", `${this.itemCount_}`), e;
8126
8144
  },
8127
8145
  domToMutation: function(e) {
@@ -8212,10 +8230,10 @@ m.registerMutator("text_join_mutator_v1", {
8212
8230
  let t = e;
8213
8231
  switch (t.itemCount_) {
8214
8232
  case 0: return ["''", _.ATOMIC];
8215
- case 1: return ui(g.valueToCode(t, "ADD0", _.NONE) || "''");
8233
+ case 1: return pi(g.valueToCode(t, "ADD0", _.NONE) || "''");
8216
8234
  case 2: {
8217
8235
  let e = g.valueToCode(t, "ADD0", _.NONE) || "''", n = g.valueToCode(t, "ADD1", _.NONE) || "''";
8218
- return [ui(e)[0] + " + " + ui(n)[0], _.ADDITION];
8236
+ return [pi(e)[0] + " + " + pi(n)[0], _.ADDITION];
8219
8237
  }
8220
8238
  default: {
8221
8239
  let e = Array(t.itemCount_);
@@ -8373,13 +8391,13 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
8373
8391
  },
8374
8392
  updateShadow_: function() {
8375
8393
  if (this.isInsertionMarker()) return;
8376
- let e = sn(1e3);
8394
+ let e = ln(1e3);
8377
8395
  this.getInput("INTERVAL")?.setShadowDom(e);
8378
- let t = cn(!1);
8396
+ let t = un(!1);
8379
8397
  this.getInput("LOOP")?.setShadowDom(t);
8380
- let n = sn(1);
8398
+ let n = ln(1);
8381
8399
  this.getInput("COUNT")?.setShadowDom(n);
8382
- let r = cn(!1);
8400
+ let r = un(!1);
8383
8401
  this.getInput("IMMEDIATE")?.setShadowDom(r);
8384
8402
  }
8385
8403
  }, g.forBlock.create_timer_v1 = function(e) {
@@ -8403,7 +8421,7 @@ ${g.statementToCode(e, "CALLBACK")}});\n`;
8403
8421
  };
8404
8422
  //#endregion
8405
8423
  //#region src/core/blocks/variable/extensions/v1/index.ts
8406
- var fi = { customContextMenu: function(e) {
8424
+ var hi = { customContextMenu: function(e) {
8407
8425
  if (!this.isInFlyout) {
8408
8426
  let t, n;
8409
8427
  this.type === "variable_get_v1" ? (t = "variable_set_v1", n = P("VARIABLE_GET_CREATE_SET")) : this.type === "variable_set_v1" ? (t = "variable_get_v1", n = P("VARIABLE_SET_CREATE_GET")) : console.assert(!1);
@@ -8420,26 +8438,26 @@ var fi = { customContextMenu: function(e) {
8420
8438
  let t = {
8421
8439
  text: P("RENAME_VARIABLE"),
8422
8440
  enabled: !0,
8423
- callback: pi(this)
8441
+ callback: gi(this)
8424
8442
  }, n = this.getField("VAR").getText(), r = {
8425
8443
  text: P("DELETE_VARIABLE").replace("%1", n),
8426
8444
  enabled: !0,
8427
- callback: mi(this)
8445
+ callback: _i(this)
8428
8446
  };
8429
8447
  e.unshift(t), e.unshift(r);
8430
8448
  }
8431
- } }, pi = function(e) {
8449
+ } }, gi = function(e) {
8432
8450
  return function() {
8433
8451
  let t = e.workspace, n = e.getField("VAR").getVariable();
8434
8452
  c.renameVariable(t, n);
8435
8453
  };
8436
- }, mi = function(e) {
8454
+ }, _i = function(e) {
8437
8455
  return function() {
8438
8456
  let t = e.getField("VAR").getVariable();
8439
8457
  t && c.deleteVariable(t.getWorkspace(), t, e);
8440
8458
  };
8441
8459
  };
8442
- m.registerMixin("context_menu_variable_v1", fi), t([{
8460
+ m.registerMixin("context_menu_variable_v1", hi), t([{
8443
8461
  type: "variable_get_v1",
8444
8462
  message0: "%1",
8445
8463
  args0: [{
@@ -8473,12 +8491,12 @@ m.registerMixin("context_menu_variable_v1", fi), t([{
8473
8491
  }]), g.forBlock.variable_set_v1 = function(t) {
8474
8492
  return `${g.nameDB_.getName(t.getFieldValue("VAR"), e.NameType.VARIABLE)} = ${g.valueToCode(t, "VALUE", _.ASSIGNMENT) || "0"};\n`;
8475
8493
  }, ae.setConfirm(async (e, t) => {
8476
- t(!!await st({
8494
+ t(!!await ct({
8477
8495
  title: "",
8478
8496
  text: e
8479
8497
  }));
8480
8498
  }), ae.setPrompt(async (e, t, n) => {
8481
- let r = await ct({
8499
+ let r = await lt({
8482
8500
  title: "",
8483
8501
  value: t
8484
8502
  });
@@ -8486,18 +8504,18 @@ m.registerMixin("context_menu_variable_v1", fi), t([{
8486
8504
  });
8487
8505
  //#endregion
8488
8506
  //#region src/core/plugins/fieldDropdown/index.ts
8489
- var hi = b.prototype;
8490
- hi.doClassValidation_ = function(e) {
8507
+ var vi = b.prototype;
8508
+ vi.doClassValidation_ = function(e) {
8491
8509
  return e;
8492
8510
  };
8493
- var gi = hi.doValueUpdate_;
8494
- hi.doValueUpdate_ = function(e) {
8495
- gi.call(this, e), this.selectedOption && this.selectedOption[1] !== e && (this.selectedOption = null);
8511
+ var yi = vi.doValueUpdate_;
8512
+ vi.doValueUpdate_ = function(e) {
8513
+ yi.call(this, e), this.selectedOption && this.selectedOption[1] !== e && (this.selectedOption = null);
8496
8514
  };
8497
- var _i = hi.getText_;
8498
- hi.getText_ = function() {
8499
- if (this.selectedOption) return _i.call(this);
8500
- let { i18n: e } = at, t = this.getSourceBlock();
8515
+ var bi = vi.getText_;
8516
+ vi.getText_ = function() {
8517
+ if (this.selectedOption) return bi.call(this);
8518
+ let { i18n: e } = ot, t = this.getSourceBlock();
8501
8519
  if (this.name === "APP") return t.app.name;
8502
8520
  if (this.name === "PAGE") return t.page.name;
8503
8521
  if (this.name === "ELEMENT") return t.element.name;
@@ -8506,13 +8524,13 @@ hi.getText_ = function() {
8506
8524
  if (n) return `${e.global.t(n.name)} / ${t.node.alias}`;
8507
8525
  } else if (this.name === "PROPERTY") {
8508
8526
  let { kind: e, names: n } = t.property;
8509
- return qe(e, n);
8527
+ return Je(e, n);
8510
8528
  } else if (this.name === "EVENT") {
8511
8529
  let { kind: e, names: n } = t.event;
8512
- return Ge(e, n);
8530
+ return Ke(e, n);
8513
8531
  } else if (this.name === "METHOD") {
8514
8532
  let { kind: e, names: n } = t.method;
8515
- return Ke(e, n);
8533
+ return qe(e, n);
8516
8534
  } else if (this.name === "SPACE") return t.space.name;
8517
8535
  else if (this.name === "FUNC") return t.func.name;
8518
8536
  else if (this.name === "OUTPUT") return t.output.name;
@@ -8524,7 +8542,7 @@ hi.getText_ = function() {
8524
8542
  };
8525
8543
  //#endregion
8526
8544
  //#region src/core/plugins/workspaceCleanUp/index.ts
8527
- var vi = 60;
8545
+ var xi = 60;
8528
8546
  ee.prototype.cleanUp = function() {
8529
8547
  this.setResizesEnabled(!1);
8530
8548
  let e = x.getGroup();
@@ -8537,47 +8555,47 @@ ee.prototype.cleanUp = function() {
8537
8555
  let t = e.getBoundingRectangle();
8538
8556
  e.moveBy(-t.left, a - t.top, ["cleanup"]), e.snapToGrid(), t = e.getBoundingRectangle();
8539
8557
  let n = i(t);
8540
- for (; n != null;) a = n.top + n.getHeight() + vi, e.moveBy(0, a - t.top, ["cleanup"]), e.snapToGrid(), t = e.getBoundingRectangle(), n = i(t);
8541
- a = e.getRelativeToSurfaceXY().y + e.getHeightWidth().height + vi;
8558
+ for (; n != null;) a = n.top + n.getHeight() + xi, e.moveBy(0, a - t.top, ["cleanup"]), e.snapToGrid(), t = e.getBoundingRectangle(), n = i(t);
8559
+ a = e.getRelativeToSurfaceXY().y + e.getHeightWidth().height + xi;
8542
8560
  }
8543
8561
  x.setGroup(e), this.setResizesEnabled(!0);
8544
8562
  };
8545
8563
  //#endregion
8546
8564
  //#region src/core/plugins/disableTopBlocks/index.ts
8547
- var yi = Te(), bi = fe();
8548
- function xi(e) {
8565
+ var Si = Te();
8566
+ function Ci(e) {
8549
8567
  let t = e.getParent();
8550
- return t && xi(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
8568
+ return t && Ci(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
8551
8569
  }
8552
- var Si = class {
8570
+ var wi = class {
8553
8571
  init() {
8554
8572
  let e = de.registry.getItem("blockDisable");
8555
8573
  e && (e.preconditionFn = function(e) {
8556
8574
  let t = e.block;
8557
- return t && !t.isInFlyout && t.workspace.options.disable && t.isEditable() ? t.getInheritedDisabled() || xi(t) ? "disabled" : "enabled" : "hidden";
8575
+ return t && !t.isInFlyout && t.workspace.options.disable && t.isEditable() ? t.getInheritedDisabled() || Ci(t) ? "disabled" : "enabled" : "hidden";
8558
8576
  });
8559
8577
  }
8560
8578
  };
8561
- (0, bi.registerFieldColour)(), d.registry.unregister(te.names.ESCAPE), new yi.CrossTabCopyPaste().init({
8579
+ (0, wn.registerFieldColour)(), d.registry.unregister(te.names.ESCAPE), new Si.CrossTabCopyPaste().init({
8562
8580
  contextMenu: !0,
8563
8581
  shortcut: !0
8564
- }), new Si().init();
8582
+ }), new wi().init();
8565
8583
  //#endregion
8566
8584
  //#region src/core/events/index.ts
8567
- var Ci = /* @__PURE__ */ function(e) {
8585
+ var Ti = /* @__PURE__ */ function(e) {
8568
8586
  return e.STATE_CHANGE = "state_change", e;
8569
- }({}), wi = class extends x.Abstract {
8587
+ }({}), Ei = class extends x.Abstract {
8570
8588
  isBlank = !0;
8571
8589
  recordUndo = !1;
8572
- type = Ci.STATE_CHANGE;
8590
+ type = Ti.STATE_CHANGE;
8573
8591
  constructor(e) {
8574
8592
  super(), this.workspaceId = e.id;
8575
8593
  }
8576
8594
  };
8577
- Ce.register(Ce.Type.EVENT, Ci.STATE_CHANGE, wi);
8595
+ Ce.register(Ce.Type.EVENT, Ti.STATE_CHANGE, Ei);
8578
8596
  //#endregion
8579
8597
  //#region src/core/misc/index.ts
8580
- function Ti(e) {
8598
+ function Di(e) {
8581
8599
  let t = s();
8582
8600
  if (!t) return;
8583
8601
  let n = t.getBlockById(e);
@@ -8587,11 +8605,11 @@ function Ti(e) {
8587
8605
  let i = r.getRelativeToSurfaceXY(), a = i.x * t.scale, o = i.y * t.scale;
8588
8606
  t.scroll(-a, -o);
8589
8607
  }
8590
- function Ei() {
8608
+ function Oi() {
8591
8609
  let e = s();
8592
8610
  if (!e) return;
8593
8611
  let t = e.getTopBlocks(!0)?.[0];
8594
- t && Ti(t.id);
8612
+ t && Di(t.id);
8595
8613
  }
8596
8614
  a.Classic.blockStyles = {
8597
8615
  color_blocks: {
@@ -8701,7 +8719,7 @@ a.Classic.blockStyles = {
8701
8719
  time_category: { colour: "#5b99a5" },
8702
8720
  variable_category: { colour: "#a55b80" }
8703
8721
  };
8704
- var Di = ne.defineTheme("light", {
8722
+ var ki = ne.defineTheme("light", {
8705
8723
  name: "light",
8706
8724
  base: a.Classic,
8707
8725
  componentStyles: {
@@ -8717,7 +8735,7 @@ var Di = ne.defineTheme("light", {
8717
8735
  scrollbarOpacity: .4,
8718
8736
  cursorColour: ""
8719
8737
  }
8720
- }), Oi = ne.defineTheme("dark", {
8738
+ }), Ai = ne.defineTheme("dark", {
8721
8739
  name: "dark",
8722
8740
  base: a.Classic,
8723
8741
  componentStyles: {
@@ -8734,45 +8752,45 @@ var Di = ne.defineTheme("light", {
8734
8752
  cursorColour: ""
8735
8753
  }
8736
8754
  });
8737
- function ki(e) {
8755
+ function ji(e) {
8738
8756
  let t = s();
8739
8757
  switch (e) {
8740
8758
  case "light":
8741
- t.setTheme(Di);
8759
+ t.setTheme(ki);
8742
8760
  break;
8743
8761
  case "dark":
8744
- t.setTheme(Oi);
8762
+ t.setTheme(Ai);
8745
8763
  break;
8746
8764
  }
8747
8765
  }
8748
8766
  //#endregion
8749
8767
  //#region src/components/blockly/buildReactivity.ts
8750
- function Ai(e, t) {
8768
+ function Mi(e, t) {
8751
8769
  e.find((e) => e === t) || e.push(t);
8752
8770
  }
8753
- var ji = ["get_app_property_v1", "get_app_state_v1"];
8754
- function Mi(e) {
8771
+ var Ni = ["get_app_property_v1", "get_app_state_v1"];
8772
+ function Pi(e) {
8755
8773
  let t = [];
8756
8774
  function n(e) {
8757
- for (let r of e.getChildren(!0)) ji.includes(r.type) && t.push(r), n(r);
8775
+ for (let r of e.getChildren(!0)) Ni.includes(r.type) && t.push(r), n(r);
8758
8776
  }
8759
8777
  return n(e), t;
8760
8778
  }
8761
- function Ni(e) {
8779
+ function Fi(e) {
8762
8780
  let t = [];
8763
- for (let n of e) n.type === "get_app_property_v1" ? Ai(t, Ve("propertyTrigger", n.property.id)) : n.type === "get_app_state_v1" ? Ai(t, Ve("stateTrigger", n.state.id)) : console.assert(!1);
8781
+ for (let n of e) n.type === "get_app_property_v1" ? Mi(t, Ve("propertyTrigger", n.property.id)) : n.type === "get_app_state_v1" ? Mi(t, Ve("stateTrigger", n.state.id)) : console.assert(!1);
8764
8782
  return t;
8765
8783
  }
8766
- function Pi(e) {
8784
+ function Ii(e) {
8767
8785
  let t = [];
8768
8786
  for (let n of e) {
8769
8787
  if (n.type !== "app_bind_entry_v1") continue;
8770
8788
  let e = n;
8771
- e.kind === "property" ? Ai(t, Ve("propertyTrigger", e.property.id)) : e.kind === "state" && Ai(t, Ve("stateTrigger", e.state.id));
8789
+ e.kind === "property" ? Mi(t, Ve("propertyTrigger", e.property.id)) : e.kind === "state" && Mi(t, Ve("stateTrigger", e.state.id));
8772
8790
  }
8773
8791
  return t;
8774
8792
  }
8775
- function Fi(e) {
8793
+ function Li(e) {
8776
8794
  let t = {
8777
8795
  watchEffect: {
8778
8796
  ids: [],
@@ -8785,38 +8803,38 @@ function Fi(e) {
8785
8803
  }, n = e.getTopBlocks(!0);
8786
8804
  if (!n) return t;
8787
8805
  for (let e of n) if (e.type === "watch_effect_v1") {
8788
- let n = Ni(Mi(e));
8789
- for (let r of n) t.watchEffect.triggers[r] || (t.watchEffect.triggers[r] = []), Ai(t.watchEffect.triggers[r], e.id);
8806
+ let n = Fi(Pi(e));
8807
+ for (let r of n) t.watchEffect.triggers[r] || (t.watchEffect.triggers[r] = []), Mi(t.watchEffect.triggers[r], e.id);
8790
8808
  t.watchEffect.ids.push(e.id);
8791
8809
  } else if (e.type === "app_bind_v1") {
8792
- let n = Pi(e.getChildren(!0));
8810
+ let n = Ii(e.getChildren(!0));
8793
8811
  t.bind.sets[e.id] = n;
8794
- for (let r of n) t.bind.triggers[r] || (t.bind.triggers[r] = []), Ai(t.bind.triggers[r], e.id);
8812
+ for (let r of n) t.bind.triggers[r] || (t.bind.triggers[r] = []), Mi(t.bind.triggers[r], e.id);
8795
8813
  }
8796
8814
  return t;
8797
8815
  }
8798
8816
  //#endregion
8799
8817
  //#region src/components/blockly/provideInject.ts
8800
- var Ii = Symbol();
8801
- function Li(e) {
8802
- wt(Ii, e);
8818
+ var Ri = Symbol();
8819
+ function zi(e) {
8820
+ Tt(Ri, e);
8803
8821
  }
8804
- function Ri() {
8805
- return gt(Ii);
8822
+ function Bi() {
8823
+ return _t(Ri);
8806
8824
  }
8807
8825
  //#endregion
8808
8826
  //#region src/components/blockly/clean/index.vue
8809
- var zi = /* @__PURE__ */ ht({
8827
+ var Vi = /* @__PURE__ */ gt({
8810
8828
  __name: "index",
8811
8829
  props: { lock: { type: Boolean } },
8812
8830
  setup(e, { expose: t }) {
8813
- let { t: n } = zt(), r = Rt(), i = e, a = Ri(), o = E(() => r.smAndDown.value), s = () => {
8831
+ let { t: n } = Bt(), r = zt(), i = e, a = Bi(), o = E(() => r.smAndDown.value), s = () => {
8814
8832
  if (!a.workspace) {
8815
8833
  console.assert(!1);
8816
8834
  return;
8817
8835
  }
8818
8836
  if (i.lock) {
8819
- ot(n("x-block-lib.msg.cannotOperateInLockedState"));
8837
+ st(n("x-block-lib.msg.cannotOperateInLockedState"));
8820
8838
  return;
8821
8839
  }
8822
8840
  a.workspace.cleanUp();
@@ -8825,11 +8843,11 @@ var zi = /* @__PURE__ */ ht({
8825
8843
  };
8826
8844
  return t({ cleanWorkspace: s }), (e, t) => {
8827
8845
  let r = M("v-btn"), i = M("v-tooltip");
8828
- return j(), pt(i, {
8846
+ return j(), mt(i, {
8829
8847
  disabled: o.value,
8830
8848
  text: N(n)("x-block-lib.tip.hotkeyCtrlQ")
8831
8849
  }, {
8832
- activator: Pt(({ props: e }) => [k(r, yt(e, {
8850
+ activator: Ft(({ props: e }) => [k(r, bt(e, {
8833
8851
  density: "comfortable",
8834
8852
  icon: "mdi-broom",
8835
8853
  variant: "outlined",
@@ -8839,7 +8857,7 @@ var zi = /* @__PURE__ */ ht({
8839
8857
  }, 8, ["disabled", "text"]);
8840
8858
  };
8841
8859
  }
8842
- }), Bi = /* @__PURE__ */ ht({
8860
+ }), Hi = /* @__PURE__ */ gt({
8843
8861
  __name: "index",
8844
8862
  props: {
8845
8863
  modelValue: {
@@ -8850,14 +8868,14 @@ var zi = /* @__PURE__ */ ht({
8850
8868
  },
8851
8869
  emits: ["update:modelValue"],
8852
8870
  setup(e) {
8853
- let { t } = zt(), n = Rt(), r = jt(e, "modelValue"), i = E(() => n.smAndDown.value);
8871
+ let { t } = Bt(), n = zt(), r = Mt(e, "modelValue"), i = E(() => n.smAndDown.value);
8854
8872
  return (e, n) => {
8855
8873
  let a = M("v-btn"), o = M("v-tooltip");
8856
- return j(), pt(o, {
8874
+ return j(), mt(o, {
8857
8875
  disabled: i.value,
8858
8876
  text: N(t)("x-block-lib.tip.hotkeyCtrlW")
8859
8877
  }, {
8860
- activator: Pt(({ props: e }) => [k(a, yt(e, {
8878
+ activator: Ft(({ props: e }) => [k(a, bt(e, {
8861
8879
  density: "comfortable",
8862
8880
  icon: r.value ? "mdi-lock" : "mdi-lock-open",
8863
8881
  variant: "outlined",
@@ -8867,11 +8885,11 @@ var zi = /* @__PURE__ */ ht({
8867
8885
  }, 8, ["disabled", "text"]);
8868
8886
  };
8869
8887
  }
8870
- }), Vi = { class: "d-flex flex-column" }, Hi = { class: "text-body-large ml-6" }, Ui = {
8888
+ }), Ui = { class: "d-flex flex-column" }, Wi = { class: "text-body-large ml-6" }, Gi = {
8871
8889
  key: 0,
8872
8890
  class: "text-body-small text-grey text-truncate ml-6",
8873
8891
  style: { maxWidth: "340px" }
8874
- }, Wi = /* @__PURE__ */ ht({
8892
+ }, Ki = /* @__PURE__ */ gt({
8875
8893
  __name: "item",
8876
8894
  props: {
8877
8895
  id: {},
@@ -8881,7 +8899,7 @@ var zi = /* @__PURE__ */ ht({
8881
8899
  },
8882
8900
  emits: ["x-click"],
8883
8901
  setup(e, { emit: t }) {
8884
- let { primaryColor: n, backgroundColor2: r, highlightColor: i } = lt(), a = t, o = Tt(!1), s = E(() => {
8902
+ let { primaryColor: n, backgroundColor2: r, highlightColor: i } = ut(), a = t, o = Et(!1), s = E(() => {
8885
8903
  let t = {
8886
8904
  position: "relative",
8887
8905
  background: o.value ? i.value : r.value,
@@ -8895,34 +8913,34 @@ var zi = /* @__PURE__ */ ht({
8895
8913
  return e.select ? t.outline = "1px solid " + n.value : t.outline = void 0, t;
8896
8914
  });
8897
8915
  return (t, n) => {
8898
- let r = M("v-spacer"), i = M("v-icon"), c = Ot("ripple");
8899
- return Ft((j(), D("div", {
8916
+ let r = M("v-spacer"), i = M("v-icon"), c = kt("ripple");
8917
+ return It((j(), D("div", {
8900
8918
  class: "d-flex align-center cursor-pointer",
8901
8919
  style: A(s.value),
8902
8920
  onClick: n[1] ||= (t) => a("x-click", e.id),
8903
8921
  onMouseout: n[2] ||= (e) => o.value = !1,
8904
8922
  onMouseover: n[3] ||= (e) => o.value = !0
8905
8923
  }, [
8906
- O("div", Vi, [O("span", Hi, kt(e.title), 1), e.desc ? (j(), D("span", Ui, kt(e.desc), 1)) : mt("", !0)]),
8924
+ O("div", Ui, [O("span", Wi, At(e.title), 1), e.desc ? (j(), D("span", Gi, At(e.desc), 1)) : ht("", !0)]),
8907
8925
  k(r),
8908
8926
  k(i, {
8909
8927
  class: "x-handle cursor-move mr-3",
8910
8928
  icon: "mdi-drag-horizontal-variant",
8911
- onMousedown: n[0] ||= Lt(() => {}, ["stop"])
8929
+ onMousedown: n[0] ||= Rt(() => {}, ["stop"])
8912
8930
  })
8913
8931
  ], 36)), [[c]]);
8914
8932
  };
8915
8933
  }
8916
- }), Gi = {
8934
+ }), qi = {
8917
8935
  key: 1,
8918
8936
  class: "text-body-small text-grey"
8919
- }, Ki = /* @__PURE__ */ ((e, t) => {
8937
+ }, Ji = /* @__PURE__ */ ((e, t) => {
8920
8938
  let n = e.__vccOpts || e;
8921
8939
  for (let [e, r] of t) n[e] = r;
8922
8940
  return n;
8923
- })(/* @__PURE__ */ ht({
8941
+ })(/* @__PURE__ */ gt({
8924
8942
  __name: "index",
8925
- props: /* @__PURE__ */ vt({ lock: { type: Boolean } }, {
8943
+ props: /* @__PURE__ */ yt({ lock: { type: Boolean } }, {
8926
8944
  modelValue: {
8927
8945
  type: Boolean,
8928
8946
  required: !0
@@ -8931,7 +8949,7 @@ var zi = /* @__PURE__ */ ht({
8931
8949
  }),
8932
8950
  emits: ["update:modelValue"],
8933
8951
  setup(e, { expose: t }) {
8934
- let { t: n } = zt(), r = jt(e, "modelValue"), i = Ri(), a = Tt([]);
8952
+ let { t: n } = Bt(), r = Mt(e, "modelValue"), i = Bi(), a = Et([]);
8935
8953
  t({ update: () => {
8936
8954
  if (!i.workspace) {
8937
8955
  console.assert(!1);
@@ -8942,12 +8960,12 @@ var zi = /* @__PURE__ */ ht({
8942
8960
  let r = t.id === ie()?.id, i = "";
8943
8961
  if (t.type.startsWith("on_app_event_v")) {
8944
8962
  let e = t, r = w(e.node.key);
8945
- r && (i = n(r.name), e.node.alias && (i += " / " + e.node.alias), i += " - " + Ge(e.event.kind, e.event.names));
8963
+ r && (i = n(r.name), e.node.alias && (i += " / " + e.node.alias), i += " - " + Ke(e.event.kind, e.event.names));
8946
8964
  } else if (t.type.startsWith("watch_effect_v")) i = n("x-block-lib.watchEffect");
8947
8965
  else if (t.type.startsWith("app_bind_v")) i = n("x-block-lib.bind");
8948
8966
  else if (t.type.startsWith("implement_app_method_v")) {
8949
8967
  let e = t;
8950
- i = n("x-block-lib.implementMethod"), i += " - " + Ke(e.method.kind, e.method.names);
8968
+ i = n("x-block-lib.implementMethod"), i += " - " + qe(e.method.kind, e.method.names);
8951
8969
  } else i = t.type.startsWith("func_entry_v") ? n("x-block-lib.funcEntry") : t.type.startsWith("procedure_def_v") ? n("x-block-lib.procedure") + " - " + t.getFieldValue("NAME") : n("x-block-lib.temporaryBlock");
8952
8970
  let a = t.getCommentText() ?? "";
8953
8971
  e.push({
@@ -8960,7 +8978,7 @@ var zi = /* @__PURE__ */ ht({
8960
8978
  } });
8961
8979
  let o = [], s = () => {
8962
8980
  if (e.lock) {
8963
- ot(n("x-block-lib.msg.cannotOperateInLockedState"));
8981
+ st(n("x-block-lib.msg.cannotOperateInLockedState"));
8964
8982
  return;
8965
8983
  }
8966
8984
  let t = [];
@@ -8987,16 +9005,16 @@ var zi = /* @__PURE__ */ ht({
8987
9005
  let a = -10;
8988
9006
  r !== "" && (a = i.workspace.getBlockById(r).getRelativeToSurfaceXY().y + 10);
8989
9007
  let s = n.getRelativeToSurfaceXY();
8990
- n.moveTo(new p.Coordinate(s.x, a)), i.workspace.cleanUp(), Ei();
9008
+ n.moveTo(new p.Coordinate(s.x, a)), i.workspace.cleanUp(), Oi();
8991
9009
  }, u = async (e) => {
8992
9010
  if (!i.workspace) {
8993
9011
  console.assert(!1);
8994
9012
  return;
8995
9013
  }
8996
9014
  let t = i.workspace.getBlockById(e);
8997
- ke.setSelected(t), Ti(e), r.value = !1;
9015
+ ke.setSelected(t), Di(e), r.value = !1;
8998
9016
  };
8999
- return (e, t) => a.value.length > 0 ? (j(), pt(N(ue), {
9017
+ return (e, t) => a.value.length > 0 ? (j(), mt(N(ue), {
9000
9018
  key: 0,
9001
9019
  modelValue: a.value,
9002
9020
  "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
@@ -9007,7 +9025,7 @@ var zi = /* @__PURE__ */ ht({
9007
9025
  onMove: c,
9008
9026
  onStart: s
9009
9027
  }, {
9010
- default: Pt(() => [(j(!0), D(ft, null, Et(a.value, (e) => (j(), pt(Wi, {
9028
+ default: Ft(() => [(j(!0), D(pt, null, Dt(a.value, (e) => (j(), mt(Ki, {
9011
9029
  id: e.id,
9012
9030
  key: e.id,
9013
9031
  desc: e.desc,
@@ -9021,9 +9039,9 @@ var zi = /* @__PURE__ */ ht({
9021
9039
  "title"
9022
9040
  ]))), 128))]),
9023
9041
  _: 1
9024
- }, 8, ["modelValue"])) : (j(), D("span", Gi, kt(N(n)("x-block-lib.noOption")), 1));
9042
+ }, 8, ["modelValue"])) : (j(), D("span", qi, At(N(n)("x-block-lib.noOption")), 1));
9025
9043
  }
9026
- }), [["__scopeId", "data-v-a710550b"]]), qi = /* @__PURE__ */ ht({
9044
+ }), [["__scopeId", "data-v-a710550b"]]), Yi = /* @__PURE__ */ gt({
9027
9045
  __name: "index",
9028
9046
  props: {
9029
9047
  modelValue: {
@@ -9034,7 +9052,7 @@ var zi = /* @__PURE__ */ ht({
9034
9052
  },
9035
9053
  emits: ["update:modelValue"],
9036
9054
  setup(e, { expose: t }) {
9037
- let n = jt(e, "modelValue"), r = Ri();
9055
+ let n = Mt(e, "modelValue"), r = Bi();
9038
9056
  t({ update: () => {
9039
9057
  if (!r.workspace) {
9040
9058
  console.assert(!1);
@@ -9048,18 +9066,18 @@ var zi = /* @__PURE__ */ ht({
9048
9066
  return;
9049
9067
  }
9050
9068
  let r = t.getBlockById(e);
9051
- ke.setSelected(r), Ti(e), n.value = !1;
9069
+ ke.setSelected(r), Di(e), n.value = !1;
9052
9070
  };
9053
9071
  return (e, t) => (j(), D("div", { onClick: t[0] ||= (e) => i("") }, "blockTree"));
9054
9072
  }
9055
- }), Ji = { class: "text-body-large" }, Yi = /* @__PURE__ */ ht({
9073
+ }), Xi = { class: "text-body-large" }, Zi = /* @__PURE__ */ gt({
9056
9074
  __name: "index",
9057
9075
  props: {
9058
9076
  type: {},
9059
9077
  lock: { type: Boolean }
9060
9078
  },
9061
9079
  setup(e, { expose: t }) {
9062
- let { t: n } = zt(), r = Rt(), { sysBarAvail: i } = ut(), { backgroundColor1: a } = lt(), o = E(() => r.smAndDown.value), s = E(() => {
9080
+ let { t: n } = Bt(), r = zt(), { sysBarAvail: i } = dt(), { backgroundColor1: a } = ut(), o = E(() => r.smAndDown.value), s = E(() => {
9063
9081
  let e = "100%";
9064
9082
  return r.mdAndUp.value && (e = "400px"), {
9065
9083
  background: a.value,
@@ -9072,11 +9090,11 @@ var zi = /* @__PURE__ */ ht({
9072
9090
  position: "relative",
9073
9091
  height: `calc(100% - ${e}px)`
9074
9092
  };
9075
- }), l = E(() => ({ height: "60px" })), { open: u } = dt(`blocklyNavigatorDlg${At()}`);
9076
- Ct(() => {
9093
+ }), l = E(() => ({ height: "60px" })), { open: u } = ft(`blocklyNavigatorDlg${jt()}`);
9094
+ wt(() => {
9077
9095
  u.value = !1;
9078
9096
  });
9079
- let ee = Mt("blockList"), te = Mt("blockTree");
9097
+ let ee = Nt("blockList"), te = Nt("blockTree");
9080
9098
  return t({
9081
9099
  open: u,
9082
9100
  update: () => {
@@ -9084,42 +9102,42 @@ var zi = /* @__PURE__ */ ht({
9084
9102
  }
9085
9103
  }), (t, r) => {
9086
9104
  let a = M("v-sheet"), d = M("v-btn"), f = M("v-spacer"), ne = M("v-dialog"), p = M("v-tooltip");
9087
- return j(), D(ft, null, [k(ne, {
9105
+ return j(), D(pt, null, [k(ne, {
9088
9106
  modelValue: N(u),
9089
- "onUpdate:modelValue": r[5] ||= (e) => _t(u) ? u.value = e : null,
9107
+ "onUpdate:modelValue": r[5] ||= (e) => vt(u) ? u.value = e : null,
9090
9108
  eager: "",
9091
9109
  fullscreen: "",
9092
9110
  "no-click-animation": "",
9093
9111
  persistent: "",
9094
9112
  transition: "scroll-x-reverse-transition",
9095
- onKeydown: r[6] ||= It(Lt((e) => u.value = !1, ["stop", "prevent"]), ["esc"])
9113
+ onKeydown: r[6] ||= Lt(Rt((e) => u.value = !1, ["stop", "prevent"]), ["esc"])
9096
9114
  }, {
9097
- default: Pt(() => [O("div", {
9115
+ default: Ft(() => [O("div", {
9098
9116
  class: "w-100 h-100 d-flex flex-row-reverse",
9099
- onClick: r[3] ||= Lt((e) => u.value = !1, ["self"]),
9100
- onContextmenu: r[4] ||= Lt((e) => u.value = !1, ["self", "prevent"])
9117
+ onClick: r[3] ||= Rt((e) => u.value = !1, ["self"]),
9118
+ onContextmenu: r[4] ||= Rt((e) => u.value = !1, ["self", "prevent"])
9101
9119
  }, [O("div", {
9102
9120
  class: "elevation-2",
9103
9121
  style: A(s.value)
9104
9122
  }, [
9105
- N(i) ? (j(), pt(a, {
9123
+ N(i) ? (j(), mt(a, {
9106
9124
  key: 0,
9107
9125
  color: "transparent",
9108
9126
  height: 24
9109
- })) : mt("", !0),
9127
+ })) : ht("", !0),
9110
9128
  k(a, {
9111
9129
  class: "d-flex align-center px-2",
9112
9130
  color: "transparent",
9113
9131
  height: 48
9114
9132
  }, {
9115
- default: Pt(() => [
9133
+ default: Ft(() => [
9116
9134
  k(d, {
9117
9135
  density: "comfortable",
9118
9136
  icon: "mdi-close",
9119
9137
  variant: "text",
9120
9138
  onClick: r[0] ||= (e) => u.value = !1
9121
9139
  }),
9122
- O("span", Ji, kt(N(n)("x-block-lib.navigator")), 1),
9140
+ O("span", Xi, At(N(n)("x-block-lib.navigator")), 1),
9123
9141
  k(f)
9124
9142
  ]),
9125
9143
  _: 1
@@ -9127,27 +9145,27 @@ var zi = /* @__PURE__ */ ht({
9127
9145
  O("div", {
9128
9146
  class: "overflow-y-auto",
9129
9147
  style: A(c.value)
9130
- }, [e.type === "list" ? (j(), pt(Ki, {
9148
+ }, [e.type === "list" ? (j(), mt(Ji, {
9131
9149
  key: 0,
9132
9150
  ref_key: "blockList",
9133
9151
  ref: ee,
9134
9152
  modelValue: N(u),
9135
- "onUpdate:modelValue": r[1] ||= (e) => _t(u) ? u.value = e : null,
9153
+ "onUpdate:modelValue": r[1] ||= (e) => vt(u) ? u.value = e : null,
9136
9154
  lock: e.lock
9137
- }, null, 8, ["modelValue", "lock"])) : e.type === "tree" ? (j(), pt(qi, {
9155
+ }, null, 8, ["modelValue", "lock"])) : e.type === "tree" ? (j(), mt(Yi, {
9138
9156
  key: 1,
9139
9157
  ref_key: "blockTree",
9140
9158
  ref: te,
9141
9159
  modelValue: N(u),
9142
- "onUpdate:modelValue": r[2] ||= (e) => _t(u) ? u.value = e : null
9143
- }, null, 8, ["modelValue"])) : mt("", !0), O("div", { style: A(l.value) }, null, 4)], 4)
9160
+ "onUpdate:modelValue": r[2] ||= (e) => vt(u) ? u.value = e : null
9161
+ }, null, 8, ["modelValue"])) : ht("", !0), O("div", { style: A(l.value) }, null, 4)], 4)
9144
9162
  ], 4)], 32)]),
9145
9163
  _: 1
9146
9164
  }, 8, ["modelValue"]), k(p, {
9147
9165
  disabled: o.value,
9148
9166
  text: N(n)("x-block-lib.tip.hotkeyCtrlE")
9149
9167
  }, {
9150
- activator: Pt(({ props: e }) => [k(d, yt(e, {
9168
+ activator: Ft(({ props: e }) => [k(d, bt(e, {
9151
9169
  density: "comfortable",
9152
9170
  icon: "mdi-navigation-variant",
9153
9171
  variant: "outlined",
@@ -9157,7 +9175,7 @@ var zi = /* @__PURE__ */ ht({
9157
9175
  }, 8, ["disabled", "text"])], 64);
9158
9176
  };
9159
9177
  }
9160
- }), Xi = ge(), Z = p.xml;
9178
+ }), Qi = ge(), Z = p.xml;
9161
9179
  function Q(e) {
9162
9180
  let t = Z.createElement("label");
9163
9181
  return t.setAttribute("text", e), t;
@@ -9167,12 +9185,12 @@ function $(e, t) {
9167
9185
  if (n.setAttribute("type", e), t) for (let e of t) n.appendChild(e);
9168
9186
  return n;
9169
9187
  }
9170
- function Zi(e) {
9188
+ function $i(e) {
9171
9189
  let t = Z.createElement("mutation");
9172
9190
  for (let { key: n, value: r } of e) t.setAttribute(n, r);
9173
9191
  return t;
9174
9192
  }
9175
- function Qi(e, t) {
9193
+ function ea(e, t) {
9176
9194
  t === void 0 && (t = "");
9177
9195
  let n = Z.createElement("value");
9178
9196
  n.setAttribute("name", e);
@@ -9183,7 +9201,7 @@ function Qi(e, t) {
9183
9201
  let a = Z.createTextNode(t);
9184
9202
  return i.appendChild(a), r.appendChild(i), n.appendChild(r), n;
9185
9203
  }
9186
- function $i(e, t) {
9204
+ function ta(e, t) {
9187
9205
  t === void 0 && (t = 0);
9188
9206
  let n = Z.createElement("value");
9189
9207
  n.setAttribute("name", e);
@@ -9194,7 +9212,7 @@ function $i(e, t) {
9194
9212
  let a = Z.createTextNode(String(t));
9195
9213
  return i.appendChild(a), r.appendChild(i), n.appendChild(r), n;
9196
9214
  }
9197
- function ea(e, t) {
9215
+ function na(e, t) {
9198
9216
  t === void 0 && (t = !1);
9199
9217
  let n = Z.createElement("value");
9200
9218
  n.setAttribute("name", e);
@@ -9207,117 +9225,117 @@ function ea(e, t) {
9207
9225
  }
9208
9226
  //#endregion
9209
9227
  //#region src/core/category/app/comp/v1/index.ts
9210
- function ta() {
9228
+ function ra() {
9211
9229
  let { activeObject: e, activeComp: t } = S.app;
9212
9230
  return !(e.type !== "comp" || !t.meta.states || t.meta.states.length <= 0);
9213
9231
  }
9214
- function na() {
9232
+ function ia() {
9215
9233
  let e = [];
9216
- return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), U("triggerEvent") && e.push($("trigger_app_event_v1")), e.push($("app_bind_v1", [Zi([{
9234
+ return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), U("triggerEvent") && e.push($("trigger_app_event_v1")), e.push($("app_bind_v1", [$i([{
9217
9235
  key: "items",
9218
9236
  value: "2"
9219
- }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), ta() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), (U("callMethod") || U("implementMethod")) && e.push(Q(P("LABEL_METHOD"))), U("callMethod") && e.push($("call_app_method_v1")), U("implementMethod") && (e.push($("implement_app_method_v1")), U("implementMethodOutput") && e.push($("set_app_method_output_v1")), e.push($("procedure_return_v1"))), e;
9237
+ }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), ra() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), (U("callMethod") || U("implementMethod")) && e.push(Q(P("LABEL_METHOD"))), U("callMethod") && e.push($("call_app_method_v1")), U("implementMethod") && (e.push($("implement_app_method_v1")), U("implementMethodOutput") && e.push($("set_app_method_output_v1")), e.push($("procedure_return_v1"))), e;
9220
9238
  }
9221
- var ra = {
9239
+ var aa = {
9222
9240
  name: "APP_COMP_CATEGORY",
9223
- callback: na
9241
+ callback: ia
9224
9242
  };
9225
9243
  //#endregion
9226
9244
  //#region src/core/category/app/compute/v1/index.ts
9227
- function ia() {
9245
+ function oa() {
9228
9246
  let e = [];
9229
9247
  return e.push(Q(P("LABEL_FUNC"))), e.push(Q(P("LABEL_FLOW"))), e;
9230
9248
  }
9231
- var aa = {
9249
+ var sa = {
9232
9250
  name: "APP_COMPUTE_CATEGORY",
9233
- callback: ia
9251
+ callback: oa
9234
9252
  };
9235
9253
  //#endregion
9236
9254
  //#region src/core/category/app/message/v1/index.ts
9237
- function oa() {
9255
+ function ca() {
9238
9256
  let e = [];
9239
- return e.push($("app_debug_trace_v1", [Qi("OBJECT")])), e.push($("popup_message_v1", [Qi("TEXT")])), e.push($("open_confirm_dlg_v1")), e.push($("open_prompt_dlg_v1")), e;
9257
+ return e.push($("app_debug_trace_v1", [ea("OBJECT")])), e.push($("popup_message_v1", [ea("TEXT")])), e.push($("open_confirm_dlg_v1")), e.push($("open_prompt_dlg_v1")), e;
9240
9258
  }
9241
- var sa = {
9259
+ var la = {
9242
9260
  name: "APP_MESSAGE_CATEGORY",
9243
- callback: oa
9261
+ callback: ca
9244
9262
  };
9245
9263
  //#endregion
9246
9264
  //#region src/core/category/app/misc/v1/index.ts
9247
- function ca() {
9265
+ function ua() {
9248
9266
  for (let e of S.app.appList) if (e.pages.length > 0) return !0;
9249
9267
  return !1;
9250
9268
  }
9251
- function la() {
9269
+ function da() {
9252
9270
  let e = [];
9253
- return e.push($("app_env_is_v1")), ca() && e.push($("navigate_to_v1")), e;
9271
+ return e.push($("app_env_is_v1")), ua() && e.push($("navigate_to_v1")), e;
9254
9272
  }
9255
- var ua = {
9273
+ var fa = {
9256
9274
  name: "APP_MISC_CATEGORY",
9257
- callback: la
9275
+ callback: da
9258
9276
  };
9259
9277
  //#endregion
9260
9278
  //#region src/core/category/app/page/v1/index.ts
9261
- function da() {
9279
+ function pa() {
9262
9280
  let { activeObject: e, activePage: t } = S.app;
9263
9281
  return !(e.type !== "page" || !t.meta.states || t.meta.states.length <= 0);
9264
9282
  }
9265
- function fa() {
9283
+ function ma() {
9266
9284
  let { activeObject: e, activePage: t } = S.app;
9267
9285
  return !(e.type !== "page" || !t.meta.arguments || t.meta.arguments.length <= 0);
9268
9286
  }
9269
- function pa() {
9287
+ function ha() {
9270
9288
  let e = [];
9271
- return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), e.push($("app_bind_v1", [Zi([{
9289
+ return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), e.push($("app_bind_v1", [$i([{
9272
9290
  key: "items",
9273
9291
  value: "2"
9274
- }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), da() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), U("callMethod") && (e.push(Q(P("LABEL_METHOD"))), e.push($("call_app_method_v1"))), fa() && (e.push(Q(P("LABEL_ARGUMENT"))), e.push($("get_page_argument_v1"))), e;
9292
+ }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), pa() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), U("callMethod") && (e.push(Q(P("LABEL_METHOD"))), e.push($("call_app_method_v1"))), ma() && (e.push(Q(P("LABEL_ARGUMENT"))), e.push($("get_page_argument_v1"))), e;
9275
9293
  }
9276
- var ma = {
9294
+ var ga = {
9277
9295
  name: "APP_PAGE_CATEGORY",
9278
- callback: pa
9296
+ callback: ha
9279
9297
  };
9280
9298
  //#endregion
9281
9299
  //#region src/core/category/app/resource/v1/index.ts
9282
- function ha() {
9300
+ function _a() {
9283
9301
  let e = [];
9284
9302
  return e.push(Q(P("LABEL_RESOURCE"))), e.push($("upload_resource_v1")), e;
9285
9303
  }
9286
- var ga = {
9304
+ var va = {
9287
9305
  name: "APP_RESOURCE_CATEGORY",
9288
- callback: ha
9289
- }, _a = p.xml;
9290
- function va() {
9306
+ callback: _a
9307
+ }, ya = p.xml;
9308
+ function ba() {
9291
9309
  let e = [];
9292
9310
  {
9293
- let t = _a.createElement("label");
9311
+ let t = ya.createElement("label");
9294
9312
  t.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), e.push(t);
9295
9313
  }
9296
9314
  {
9297
- let t = _a.createElement("block");
9315
+ let t = ya.createElement("block");
9298
9316
  t.setAttribute("type", "procedure_def_v1");
9299
9317
  {
9300
- let e = _a.createElement("field");
9318
+ let e = ya.createElement("field");
9301
9319
  e.setAttribute("name", "NAME");
9302
- let n = _a.createTextNode(P("PROCEDURE_DEFAULT_NAME"));
9320
+ let n = ya.createTextNode(P("PROCEDURE_DEFAULT_NAME"));
9303
9321
  e.appendChild(n), t.appendChild(e);
9304
9322
  }
9305
9323
  e.push(t);
9306
9324
  }
9307
9325
  {
9308
- let t = _a.createElement("block");
9326
+ let t = ya.createElement("block");
9309
9327
  t.setAttribute("type", "procedure_return_v1"), e.push(t);
9310
9328
  }
9311
9329
  return e;
9312
9330
  }
9313
- var ya = {
9331
+ var xa = {
9314
9332
  name: "PROCEDURE_CATEGORY",
9315
- callback: va
9316
- }, ba = p.xml;
9317
- function xa() {
9333
+ callback: ba
9334
+ }, Sa = p.xml;
9335
+ function Ca() {
9318
9336
  let e = s(), t = [];
9319
9337
  {
9320
- let e = ba.createElement("label");
9338
+ let e = Sa.createElement("label");
9321
9339
  e.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), t.push(e);
9322
9340
  }
9323
9341
  {
@@ -9330,75 +9348,75 @@ function xa() {
9330
9348
  if (n.length <= 0) return t;
9331
9349
  n.sort(c.compareByName);
9332
9350
  {
9333
- let e = ba.createElement("label");
9351
+ let e = Sa.createElement("label");
9334
9352
  e.setAttribute("text", P("LABEL_CREATED")), t.push(e);
9335
9353
  }
9336
9354
  return n.forEach((e) => {
9337
9355
  {
9338
- let n = ba.createElement("block");
9356
+ let n = Sa.createElement("block");
9339
9357
  n.setAttribute("type", "variable_get_v1"), n.appendChild(c.generateVariableFieldDom(e)), t.push(n);
9340
9358
  }
9341
9359
  {
9342
- let n = ba.createElement("block");
9360
+ let n = Sa.createElement("block");
9343
9361
  n.setAttribute("type", "variable_set_v1"), n.appendChild(c.generateVariableFieldDom(e)), t.push(n);
9344
9362
  }
9345
9363
  }), t;
9346
9364
  }
9347
- var Sa = {
9365
+ var wa = {
9348
9366
  name: "VARIABLE_CATEGORY",
9349
- callback: xa
9367
+ callback: Ca
9350
9368
  };
9351
9369
  //#endregion
9352
9370
  //#region src/core/category/compute/data/v1/index.ts
9353
- function Ca() {
9371
+ function Ta() {
9354
9372
  let e = [];
9355
- if (Y().length > 0) e.push(Q(P("LABEL_OPERATION"))), e.push($("add_data_v1")), e.push($("delete_data_v1")), e.push($("update_data_v1")), e.push($("query_data_v1")), e.push($("transaction_v1")), e.push($("interrupt_transaction_v1", [Qi("VALUE")])), e.push(Q(P("LABEL_CONDITION"))), e.push($("cond_logic_v1")), e.push($("cond_atomic_v1", [Qi("VALUE")])), e.push(Q(P("LABEL_QUERY_EXTRA"))), e.push($("query_extra_limit_v1", [$i("OFFSET", 0), $i("LIMIT", 1)])), e.push($("query_extra_sortby_v1", [Qi("COLUMN"), ea("DESC")]));
9373
+ if (Y().length > 0) e.push(Q(P("LABEL_OPERATION"))), e.push($("add_data_v1")), e.push($("delete_data_v1")), e.push($("update_data_v1")), e.push($("query_data_v1")), e.push($("transaction_v1")), e.push($("interrupt_transaction_v1", [ea("VALUE")])), e.push(Q(P("LABEL_CONDITION"))), e.push($("cond_logic_v1")), e.push($("cond_atomic_v1", [ea("VALUE")])), e.push(Q(P("LABEL_QUERY_EXTRA"))), e.push($("query_extra_limit_v1", [ta("OFFSET", 0), ta("LIMIT", 1)])), e.push($("query_extra_sortby_v1", [ea("COLUMN"), na("DESC")]));
9356
9374
  else {
9357
9375
  let t = document.createElement("button");
9358
9376
  t.setAttribute("text", P("BUTTON_NO_TABLE")), t.setAttribute("callbackKey", "NO_TABLE"), e.push(t);
9359
9377
  }
9360
9378
  return e;
9361
9379
  }
9362
- var wa = {
9380
+ var Ea = {
9363
9381
  name: "COMPUTE_DATA_CATEGORY",
9364
- callback: Ca
9382
+ callback: Ta
9365
9383
  };
9366
9384
  //#endregion
9367
9385
  //#region src/core/category/compute/flow/v1/index.ts
9368
- function Ta() {
9369
- return Dr("flow").length > 0;
9386
+ function Da() {
9387
+ return Ar("flow").length > 0;
9370
9388
  }
9371
- function Ea() {
9389
+ function Oa() {
9372
9390
  let e = [];
9373
- return S.compute.activeObject.type === "flow" && e.push($("on_flow_state_event_v1")), Ta() && console.assert(!0), e;
9391
+ return S.compute.activeObject.type === "flow" && e.push($("on_flow_state_event_v1")), Da() && console.assert(!0), e;
9374
9392
  }
9375
- var Da = {
9393
+ var ka = {
9376
9394
  name: "COMPUTE_FLOW_CATEGORY",
9377
- callback: Ea
9395
+ callback: Oa
9378
9396
  };
9379
9397
  //#endregion
9380
9398
  //#region src/core/category/compute/func/v1/index.ts
9381
- function Oa() {
9382
- return Dr("func").length > 0;
9399
+ function Aa() {
9400
+ return Ar("func").length > 0;
9383
9401
  }
9384
- function ka() {
9402
+ function ja() {
9385
9403
  let { activeObject: e, activeFunc: t } = S.compute, n = [];
9386
- return e.type === "func" && (n.push($("func_entry_v1")), t.outputs && t.outputs.length > 0 && n.push($("set_func_output_v1")), n.push($("procedure_return_v1"))), Oa() && n.push($("call_func_internal_v1")), n;
9404
+ return e.type === "func" && (n.push($("func_entry_v1")), t.outputs && t.outputs.length > 0 && n.push($("set_func_output_v1")), n.push($("procedure_return_v1"))), Aa() && n.push($("call_func_internal_v1")), n;
9387
9405
  }
9388
- var Aa = {
9406
+ var Ma = {
9389
9407
  name: "COMPUTE_FUNC_CATEGORY",
9390
- callback: ka
9408
+ callback: ja
9391
9409
  };
9392
9410
  //#endregion
9393
9411
  //#region src/core/category/compute/misc/v1/index.ts
9394
- function ja() {
9412
+ function Na() {
9395
9413
  let e = [];
9396
- return e.push($("compute_debug_trace_v1", [Qi("OBJECT")])), e;
9414
+ return e.push($("compute_debug_trace_v1", [ea("OBJECT")])), e;
9397
9415
  }
9398
- var Ma = {
9416
+ var Pa = {
9399
9417
  name: "COMPUTE_MISC_CATEGORY",
9400
- callback: ja
9401
- }, Na = {
9418
+ callback: Na
9419
+ }, Fa = {
9402
9420
  kind: "category",
9403
9421
  name: "%{BKY_CATEGORY_COLOR}",
9404
9422
  categorystyle: "color_category",
@@ -9448,7 +9466,7 @@ var Ma = {
9448
9466
  }
9449
9467
  }
9450
9468
  ]
9451
- }, Pa = {
9469
+ }, Ia = {
9452
9470
  kind: "category",
9453
9471
  name: "%{BKY_CATEGORY_LIST}",
9454
9472
  categorystyle: "list_category",
@@ -9529,7 +9547,7 @@ var Ma = {
9529
9547
  type: "list_reverse_v1"
9530
9548
  }
9531
9549
  ]
9532
- }, Fa = {
9550
+ }, La = {
9533
9551
  kind: "category",
9534
9552
  name: "%{BKY_CATEGORY_LOGIC}",
9535
9553
  categorystyle: "logic_category",
@@ -9571,7 +9589,7 @@ var Ma = {
9571
9589
  type: "logic_ternary_v1"
9572
9590
  }
9573
9591
  ]
9574
- }, Ia = {
9592
+ }, Ra = {
9575
9593
  kind: "category",
9576
9594
  name: "%{BKY_CATEGORY_LOOP}",
9577
9595
  categorystyle: "loop_category",
@@ -9615,7 +9633,7 @@ var Ma = {
9615
9633
  type: "flow_control_v1"
9616
9634
  }
9617
9635
  ]
9618
- }, La = {
9636
+ }, za = {
9619
9637
  kind: "category",
9620
9638
  name: "%{BKY_CATEGORY_MATH}",
9621
9639
  categorystyle: "math_category",
@@ -9720,7 +9738,7 @@ var Ma = {
9720
9738
  type: "math_on_list_v1"
9721
9739
  }
9722
9740
  ]
9723
- }, Ra = {
9741
+ }, Ba = {
9724
9742
  kind: "category",
9725
9743
  name: "%{BKY_CATEGORY_OBJECT}",
9726
9744
  categorystyle: "object_category",
@@ -9770,7 +9788,7 @@ var Ma = {
9770
9788
  } } }
9771
9789
  }
9772
9790
  ]
9773
- }, za = {
9791
+ }, Va = {
9774
9792
  kind: "category",
9775
9793
  name: "%{BKY_CATEGORY_TEXT}",
9776
9794
  categorystyle: "text_category",
@@ -9885,7 +9903,7 @@ var Ma = {
9885
9903
  type: "text_reverse_v1"
9886
9904
  }
9887
9905
  ]
9888
- }, Ba = {
9906
+ }, Ha = {
9889
9907
  kind: "category",
9890
9908
  name: "%{BKY_CATEGORY_TIME}",
9891
9909
  categorystyle: "time_category",
@@ -9900,155 +9918,155 @@ var Ma = {
9900
9918
  fields: { NUM: 1e3 }
9901
9919
  } } }
9902
9920
  }]
9903
- }, Va = {
9921
+ }, Ua = {
9904
9922
  kind: "categoryToolbox",
9905
9923
  contents: [
9906
9924
  {
9907
9925
  kind: "category",
9908
9926
  name: "%{BKY_CATEGORY_COMP}",
9909
9927
  categorystyle: "misc_category",
9910
- custom: ra.name
9928
+ custom: aa.name
9911
9929
  },
9912
9930
  {
9913
9931
  kind: "category",
9914
9932
  name: "%{BKY_CATEGORY_MESSAGE}",
9915
9933
  categorystyle: "misc_category",
9916
- custom: sa.name
9934
+ custom: la.name
9917
9935
  },
9918
9936
  {
9919
9937
  kind: "category",
9920
9938
  name: "%{BKY_CATEGORY_MISC}",
9921
9939
  categorystyle: "misc_category",
9922
- custom: ua.name
9940
+ custom: fa.name
9923
9941
  },
9924
- Ia,
9925
- Fa,
9942
+ Ra,
9926
9943
  La,
9927
9944
  za,
9928
- Pa,
9929
- Ra,
9930
- Na,
9945
+ Va,
9946
+ Ia,
9931
9947
  Ba,
9948
+ Fa,
9949
+ Ha,
9932
9950
  {
9933
9951
  kind: "category",
9934
9952
  name: "%{BKY_CATEGORY_VARIABLE}",
9935
9953
  categorystyle: "variable_category",
9936
- custom: Sa.name
9954
+ custom: wa.name
9937
9955
  },
9938
9956
  {
9939
9957
  kind: "category",
9940
9958
  name: "%{BKY_CATEGORY_PROCEDURE}",
9941
9959
  categorystyle: "procedure_category",
9942
- custom: ya.name
9960
+ custom: xa.name
9943
9961
  },
9944
9962
  {
9945
9963
  kind: "category",
9946
9964
  name: "%{BKY_CATEGORY_RESOURCE}",
9947
9965
  categorystyle: "resource_category",
9948
- custom: ga.name
9966
+ custom: va.name
9949
9967
  },
9950
9968
  {
9951
9969
  kind: "category",
9952
9970
  name: "%{BKY_CATEGORY_COMPUTE}",
9953
9971
  categorystyle: "compute_category",
9954
- custom: aa.name
9972
+ custom: sa.name
9955
9973
  }
9956
9974
  ]
9957
- }, Ha = {
9975
+ }, Wa = {
9958
9976
  kind: "categoryToolbox",
9959
9977
  contents: [
9960
9978
  {
9961
9979
  kind: "category",
9962
9980
  name: "%{BKY_CATEGORY_FUNC}",
9963
9981
  categorystyle: "func_category",
9964
- custom: Aa.name
9982
+ custom: Ma.name
9965
9983
  },
9966
9984
  {
9967
9985
  kind: "category",
9968
9986
  name: "%{BKY_CATEGORY_FLOW}",
9969
9987
  categorystyle: "flow_category",
9970
- custom: Da.name
9988
+ custom: ka.name
9971
9989
  },
9972
9990
  {
9973
9991
  kind: "category",
9974
9992
  name: "%{BKY_CATEGORY_DATA}",
9975
9993
  categorystyle: "data_category",
9976
- custom: wa.name
9994
+ custom: Ea.name
9977
9995
  },
9978
9996
  {
9979
9997
  kind: "category",
9980
9998
  name: "%{BKY_CATEGORY_MISC}",
9981
9999
  categorystyle: "misc_category",
9982
- custom: Ma.name
10000
+ custom: Pa.name
9983
10001
  },
9984
- Ia,
9985
- Fa,
10002
+ Ra,
9986
10003
  La,
9987
10004
  za,
9988
- Pa,
9989
- Ra,
9990
- Na,
10005
+ Va,
10006
+ Ia,
10007
+ Ba,
10008
+ Fa,
9991
10009
  {
9992
10010
  kind: "category",
9993
10011
  name: "%{BKY_CATEGORY_VARIABLE}",
9994
10012
  categorystyle: "variable_category",
9995
- custom: Sa.name
10013
+ custom: wa.name
9996
10014
  },
9997
10015
  {
9998
10016
  kind: "category",
9999
10017
  name: "%{BKY_CATEGORY_PROCEDURE}",
10000
10018
  categorystyle: "procedure_category",
10001
- custom: ya.name
10019
+ custom: xa.name
10002
10020
  }
10003
10021
  ]
10004
- }, Ua = {
10022
+ }, Ga = {
10005
10023
  kind: "categoryToolbox",
10006
10024
  contents: [
10007
10025
  {
10008
10026
  kind: "category",
10009
10027
  name: "%{BKY_CATEGORY_FUNC}",
10010
10028
  categorystyle: "func_category",
10011
- custom: Aa.name
10029
+ custom: Ma.name
10012
10030
  },
10013
10031
  {
10014
10032
  kind: "category",
10015
10033
  name: "%{BKY_CATEGORY_FLOW}",
10016
10034
  categorystyle: "flow_category",
10017
- custom: Da.name
10035
+ custom: ka.name
10018
10036
  },
10019
10037
  {
10020
10038
  kind: "category",
10021
10039
  name: "%{BKY_CATEGORY_DATA}",
10022
10040
  categorystyle: "data_category",
10023
- custom: wa.name
10041
+ custom: Ea.name
10024
10042
  },
10025
10043
  {
10026
10044
  kind: "category",
10027
10045
  name: "%{BKY_CATEGORY_MISC}",
10028
10046
  categorystyle: "misc_category",
10029
- custom: Ma.name
10047
+ custom: Pa.name
10030
10048
  },
10031
- Ia,
10032
- Fa,
10049
+ Ra,
10033
10050
  La,
10034
10051
  za,
10035
- Pa,
10036
- Ra,
10037
- Na,
10052
+ Va,
10053
+ Ia,
10054
+ Ba,
10055
+ Fa,
10038
10056
  {
10039
10057
  kind: "category",
10040
10058
  name: "%{BKY_CATEGORY_VARIABLE}",
10041
10059
  categorystyle: "variable_category",
10042
- custom: Sa.name
10060
+ custom: wa.name
10043
10061
  },
10044
10062
  {
10045
10063
  kind: "category",
10046
10064
  name: "%{BKY_CATEGORY_PROCEDURE}",
10047
10065
  categorystyle: "procedure_category",
10048
- custom: ya.name
10066
+ custom: xa.name
10049
10067
  }
10050
10068
  ]
10051
- }, Wa = {
10069
+ }, Ka = {
10052
10070
  kind: "categoryToolbox",
10053
10071
  contents: [{
10054
10072
  kind: "category",
@@ -10077,61 +10095,61 @@ var Ma = {
10077
10095
  }
10078
10096
  ]
10079
10097
  }]
10080
- }, Ga = {
10098
+ }, qa = {
10081
10099
  kind: "categoryToolbox",
10082
10100
  contents: [
10083
10101
  {
10084
10102
  kind: "category",
10085
10103
  name: "%{BKY_CATEGORY_PAGE}",
10086
10104
  categorystyle: "misc_category",
10087
- custom: ma.name
10105
+ custom: ga.name
10088
10106
  },
10089
10107
  {
10090
10108
  kind: "category",
10091
10109
  name: "%{BKY_CATEGORY_MESSAGE}",
10092
10110
  categorystyle: "misc_category",
10093
- custom: sa.name
10111
+ custom: la.name
10094
10112
  },
10095
10113
  {
10096
10114
  kind: "category",
10097
10115
  name: "%{BKY_CATEGORY_MISC}",
10098
10116
  categorystyle: "misc_category",
10099
- custom: ua.name
10117
+ custom: fa.name
10100
10118
  },
10101
- Ia,
10102
- Fa,
10119
+ Ra,
10103
10120
  La,
10104
10121
  za,
10105
- Pa,
10106
- Ra,
10107
- Na,
10122
+ Va,
10123
+ Ia,
10108
10124
  Ba,
10125
+ Fa,
10126
+ Ha,
10109
10127
  {
10110
10128
  kind: "category",
10111
10129
  name: "%{BKY_CATEGORY_VARIABLE}",
10112
10130
  categorystyle: "variable_category",
10113
- custom: Sa.name
10131
+ custom: wa.name
10114
10132
  },
10115
10133
  {
10116
10134
  kind: "category",
10117
10135
  name: "%{BKY_CATEGORY_PROCEDURE}",
10118
10136
  categorystyle: "procedure_category",
10119
- custom: ya.name
10137
+ custom: xa.name
10120
10138
  },
10121
10139
  {
10122
10140
  kind: "category",
10123
10141
  name: "%{BKY_CATEGORY_RESOURCE}",
10124
10142
  categorystyle: "resource_category",
10125
- custom: ga.name
10143
+ custom: va.name
10126
10144
  },
10127
10145
  {
10128
10146
  kind: "category",
10129
10147
  name: "%{BKY_CATEGORY_COMPUTE}",
10130
10148
  categorystyle: "compute_category",
10131
- custom: aa.name
10149
+ custom: sa.name
10132
10150
  }
10133
10151
  ]
10134
- }, Ka = {
10152
+ }, Ja = {
10135
10153
  grid: {
10136
10154
  length: 2,
10137
10155
  snap: !0,
@@ -10155,11 +10173,11 @@ var Ma = {
10155
10173
  wheel: !0
10156
10174
  }
10157
10175
  };
10158
- function qa(e, t, n, r) {
10159
- Ka.theme = r ? "dark" : "light", Ka.toolbox = Ja(t, n);
10160
- let i = o(e, Ka);
10176
+ function Ya(e, t, n, r) {
10177
+ Ja.theme = r ? "dark" : "light", Ja.toolbox = Xa(t, n);
10178
+ let i = o(e, Ja);
10161
10179
  return i.addChangeListener((e) => {
10162
- if (e.type === Ci.STATE_CHANGE) {
10180
+ if (e.type === Ti.STATE_CHANGE) {
10163
10181
  let e = i.getAllBlocks();
10164
10182
  for (let t of e) {
10165
10183
  let e = t;
@@ -10167,22 +10185,22 @@ function qa(e, t, n, r) {
10167
10185
  }
10168
10186
  }
10169
10187
  setTimeout(() => {
10170
- (0, Xi.shadowBlockConversionChangeListener)(e);
10188
+ (0, Qi.shadowBlockConversionChangeListener)(e);
10171
10189
  }, 0);
10172
- }), Ya(i, t, n), Xa(i), i;
10190
+ }), Za(i, t, n), Qa(i), i;
10173
10191
  }
10174
- function Ja(e, t) {
10192
+ function Xa(e, t) {
10175
10193
  let n;
10176
- return e === "page" ? t === "v1" && (n = Ga) : e === "comp" ? t === "v1" && (n = Va) : e === "func" ? t === "v1" && (n = Ua) : e === "flow" ? t === "v1" && (n = Ha) : e === "json" && t === "v1" && (n = Wa), console.assert(!!n, `invalid toolbox type=${e} version=${t}`), n;
10194
+ return e === "page" ? t === "v1" && (n = qa) : e === "comp" ? t === "v1" && (n = Ua) : e === "func" ? t === "v1" && (n = Ga) : e === "flow" ? t === "v1" && (n = Wa) : e === "json" && t === "v1" && (n = Ka), console.assert(!!n, `invalid toolbox type=${e} version=${t}`), n;
10177
10195
  }
10178
- function Ya(e, t, n) {
10196
+ function Za(e, t, n) {
10179
10197
  function r({ name: n, callback: r }) {
10180
10198
  e.registerToolboxCategoryCallback(n, () => r(t));
10181
10199
  }
10182
- t === "page" ? n === "v1" && (r(ma), r(sa), r(ua), r(Sa), r(ya), r(ga), r(aa)) : t === "comp" ? n === "v1" && (r(ra), r(sa), r(ua), r(Sa), r(ya), r(ga), r(aa)) : t === "func" ? n === "v1" && (r(Aa), r(Da), r(wa), r(Ma), r(Sa), r(ya)) : t === "flow" && n === "v1" && (r(Aa), r(Da), r(wa), r(Ma), r(Sa), r(ya));
10200
+ t === "page" ? n === "v1" && (r(ga), r(la), r(fa), r(wa), r(xa), r(va), r(sa)) : t === "comp" ? n === "v1" && (r(aa), r(la), r(fa), r(wa), r(xa), r(va), r(sa)) : t === "func" ? n === "v1" && (r(Ma), r(ka), r(Ea), r(Pa), r(wa), r(xa)) : t === "flow" && n === "v1" && (r(Ma), r(ka), r(Ea), r(Pa), r(wa), r(xa));
10183
10201
  }
10184
- function Xa(e) {
10185
- let { router: t } = at;
10202
+ function Qa(e) {
10203
+ let { router: t } = ot;
10186
10204
  e.registerButtonCallback("NO_COMPUTE", () => {
10187
10205
  let e = t.resolve({ path: "/compute/" + Date.now() });
10188
10206
  setTimeout(() => {
@@ -10197,7 +10215,7 @@ function Xa(e) {
10197
10215
  }
10198
10216
  //#endregion
10199
10217
  //#region src/components/blockly/jsonHelper.ts
10200
- function Za(e, t) {
10218
+ function $a(e, t) {
10201
10219
  let n = t.newBlock("json_root_v1");
10202
10220
  n.initSvg(), n.render();
10203
10221
  let r = (e, n) => {
@@ -10228,7 +10246,7 @@ function Za(e, t) {
10228
10246
  };
10229
10247
  r(e, n.getInput("JSON").connection), x.fire(new (x.get(x.FINISHED_LOADING))(t));
10230
10248
  }
10231
- function Qa(e) {
10249
+ function eo(e) {
10232
10250
  let t = (e) => {
10233
10251
  if (!e) return null;
10234
10252
  if (e.type === "json_root_v1") return t(e.getInputTargetBlock("JSON"));
@@ -10252,9 +10270,9 @@ function Qa(e) {
10252
10270
  }
10253
10271
  //#endregion
10254
10272
  //#region src/components/blockly/index.vue?vue&type=script&setup=true&lang.ts
10255
- var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10273
+ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10256
10274
  __name: "index",
10257
- props: /* @__PURE__ */ vt({
10275
+ props: /* @__PURE__ */ yt({
10258
10276
  type: {},
10259
10277
  version: {},
10260
10278
  locale: {},
@@ -10268,11 +10286,11 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10268
10286
  scale: { required: !0 },
10269
10287
  scaleModifiers: {}
10270
10288
  }),
10271
- emits: /* @__PURE__ */ vt(["ready"], ["update:lock", "update:scale"]),
10289
+ emits: /* @__PURE__ */ yt(["ready"], ["update:lock", "update:scale"]),
10272
10290
  setup(e, { expose: t, emit: n }) {
10273
- let { backgroundColor2: r } = lt(), i = jt(e, "lock"), a = jt(e, "scale"), o = n, s = `blocklyEditor${At()}`, c = Tt(), u = Mt("parentContainer"), ee = Mt("clean"), te = Mt("navigator"), d = {};
10274
- Li(d);
10275
- let f = Tt(!0), ne = Tt(!1), p = E(() => e.type === "json" ? "tree" : "list"), re = E(() => ({
10291
+ let { backgroundColor2: r } = ut(), i = Mt(e, "lock"), a = Mt(e, "scale"), o = n, s = `blocklyEditor${jt()}`, c = Et(), u = Nt("parentContainer"), ee = Nt("clean"), te = Nt("navigator"), d = {};
10292
+ zi(d);
10293
+ let f = Et(!0), ne = Et(!1), p = E(() => e.type === "json" ? "tree" : "list"), re = E(() => ({
10276
10294
  width: "100%",
10277
10295
  height: "calc(100% - 48px)"
10278
10296
  })), m = E(() => ({
@@ -10315,27 +10333,27 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10315
10333
  top: 0,
10316
10334
  left: 0,
10317
10335
  zIndex: 3e3
10318
- })), { open: ue } = dt(`blocklyEditorFlyout${At()}`);
10319
- St(async () => {
10336
+ })), { open: ue } = ft(`blocklyEditorFlyout${jt()}`);
10337
+ Ct(async () => {
10320
10338
  if (!c.value || !u.value) {
10321
10339
  console.assert(!1);
10322
10340
  return;
10323
10341
  }
10324
- se(u.value), await Vt(e.locale), d.workspace = qa(c.value, e.type, e.version, e.dark), d.workspace.addChangeListener(x.disableOrphans), d.workspace.addChangeListener(de);
10342
+ se(u.value), await Ht(e.locale), d.workspace = Ya(c.value, e.type, e.version, e.dark), d.workspace.addChangeListener(x.disableOrphans), d.workspace.addChangeListener(de);
10325
10343
  let t = document.querySelector(`#${s} .blocklyFlyout`);
10326
10344
  new MutationObserver((e) => {
10327
10345
  e.forEach((e) => {
10328
10346
  e.type === "attributes" && e.attributeName === "style" && (ue.value = d.workspace.getFlyout().isVisible());
10329
10347
  });
10330
- }).observe(t, { attributes: !0 }), ue.value = d.workspace.getFlyout().isVisible(), he(), ge(), await bt(), o("ready");
10331
- }), xt(() => {
10348
+ }).observe(t, { attributes: !0 }), ue.value = d.workspace.getFlyout().isVisible(), he(), ge(), await xt(), o("ready");
10349
+ }), St(() => {
10332
10350
  ue.value = !1;
10333
10351
  }), Se(c, () => {
10334
10352
  d.workspace && le(d.workspace);
10335
10353
  });
10336
10354
  async function de(e) {
10337
10355
  if (e.type === x.FINISHED_LOADING) {
10338
- Ei(), setTimeout(() => {
10356
+ Oi(), setTimeout(() => {
10339
10357
  te.value?.update();
10340
10358
  }, 0), f.value = !1;
10341
10359
  return;
@@ -10351,16 +10369,16 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10351
10369
  }
10352
10370
  }
10353
10371
  let fe = (t) => {
10354
- f.value = !0, e.type === "json" ? Za(t, d.workspace) : l.workspaces.load(t, d.workspace);
10355
- }, pe = () => e.type === "json" ? Qa(d.workspace) : l.workspaces.save(d.workspace), me = () => {
10372
+ f.value = !0, e.type === "json" ? $a(t, d.workspace) : l.workspaces.load(t, d.workspace);
10373
+ }, pe = () => e.type === "json" ? eo(d.workspace) : l.workspaces.save(d.workspace), me = () => {
10356
10374
  if (e.type === "json") console.assert(!1);
10357
10375
  else return g.workspaceToCode(d.workspace);
10358
- }, _ = () => Fi(d.workspace), he = () => {
10376
+ }, _ = () => Li(d.workspace), he = () => {
10359
10377
  d.workspace.setIsReadOnly(i.value), d.workspace.isReadOnly() && (ue.value = !1);
10360
10378
  }, ge = () => {
10361
10379
  d.workspace.setScale(a.value);
10362
10380
  }, _e = () => {
10363
- x.fire(new (x.get(Ci.STATE_CHANGE))(d.workspace));
10381
+ x.fire(new (x.get(Ti.STATE_CHANGE))(d.workspace));
10364
10382
  }, ve = () => {
10365
10383
  ee.value?.cleanWorkspace();
10366
10384
  }, ye = () => {
@@ -10368,19 +10386,19 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10368
10386
  }, be = () => {
10369
10387
  te.value && (te.value.open = !0);
10370
10388
  };
10371
- return St(() => {
10372
- it.on("cleanWorkspace", ve), it.on("toggleBlocklyLock", ye), it.on("openBlocklyNavigator", be);
10373
- }), xt(() => {
10374
- it.off("cleanWorkspace", ve), it.off("toggleBlocklyLock", ye), it.off("openBlocklyNavigator", be);
10375
- }), Nt(() => e.locale, (e) => {
10376
- Vt(e);
10377
- }), Nt(() => e.dark, (e) => {
10378
- ki(e ? "dark" : "light");
10379
- }), Nt(ue, (e) => {
10389
+ return Ct(() => {
10390
+ at.on("cleanWorkspace", ve), at.on("toggleBlocklyLock", ye), at.on("openBlocklyNavigator", be);
10391
+ }), St(() => {
10392
+ at.off("cleanWorkspace", ve), at.off("toggleBlocklyLock", ye), at.off("openBlocklyNavigator", be);
10393
+ }), Pt(() => e.locale, (e) => {
10394
+ Ht(e);
10395
+ }), Pt(() => e.dark, (e) => {
10396
+ ji(e ? "dark" : "light");
10397
+ }), Pt(ue, (e) => {
10380
10398
  e || d.workspace?.hideChaff();
10381
- }), Nt(i, () => {
10399
+ }), Pt(i, () => {
10382
10400
  he();
10383
- }), Nt(a, () => {
10401
+ }), Pt(a, () => {
10384
10402
  ge();
10385
10403
  }), t({
10386
10404
  loading: f,
@@ -10391,14 +10409,14 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10391
10409
  fireStateChange: _e
10392
10410
  }), (e, t) => {
10393
10411
  let n = M("v-icon"), r = M("x-loading");
10394
- return j(), D("div", $a, [
10412
+ return j(), D("div", to, [
10395
10413
  O("div", {
10396
10414
  id: s,
10397
10415
  ref_key: "blocklyDiv",
10398
10416
  ref: c,
10399
10417
  style: A(re.value)
10400
10418
  }, null, 4),
10401
- O("div", { style: A(m.value) }, [Dt(e.$slots, "bottom")], 4),
10419
+ O("div", { style: A(m.value) }, [Ot(e.$slots, "bottom")], 4),
10402
10420
  ne.value ? (j(), D("div", {
10403
10421
  key: 0,
10404
10422
  class: "d-flex flex-column justify-center align-center",
@@ -10406,22 +10424,22 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10406
10424
  }, [k(n, {
10407
10425
  icon: "mdi-delete",
10408
10426
  size: "x-large"
10409
- })], 4)) : mt("", !0),
10410
- f.value ? mt("", !0) : (j(), D("div", {
10427
+ })], 4)) : ht("", !0),
10428
+ f.value ? ht("", !0) : (j(), D("div", {
10411
10429
  key: 1,
10412
10430
  class: "d-flex align-end ga-3 pt-3 pr-3",
10413
10431
  style: A(ie.value)
10414
10432
  }, [
10415
- k(zi, {
10433
+ k(Vi, {
10416
10434
  ref_key: "clean",
10417
10435
  ref: ee,
10418
10436
  lock: i.value
10419
10437
  }, null, 8, ["lock"]),
10420
- k(Bi, {
10438
+ k(Hi, {
10421
10439
  modelValue: i.value,
10422
10440
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e
10423
10441
  }, null, 8, ["modelValue"]),
10424
- k(Yi, {
10442
+ k(Zi, {
10425
10443
  ref_key: "navigator",
10426
10444
  ref: te,
10427
10445
  lock: i.value,
@@ -10431,11 +10449,11 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10431
10449
  i.value ? (j(), D("div", {
10432
10450
  key: 2,
10433
10451
  style: A(oe.value)
10434
- }, null, 4)) : mt("", !0),
10452
+ }, null, 4)) : ht("", !0),
10435
10453
  i.value ? (j(), D("div", {
10436
10454
  key: 3,
10437
10455
  style: A(ae.value)
10438
- }, null, 4)) : mt("", !0),
10456
+ }, null, 4)) : ht("", !0),
10439
10457
  O("div", {
10440
10458
  ref_key: "parentContainer",
10441
10459
  ref: u,
@@ -10448,21 +10466,21 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10448
10466
  ]);
10449
10467
  };
10450
10468
  }
10451
- }), to = /* @__PURE__ */ ht({
10469
+ }), ro = /* @__PURE__ */ gt({
10452
10470
  __name: "index",
10453
10471
  props: { code: {} },
10454
10472
  setup(e) {
10455
10473
  let t = e;
10456
10474
  we.registerLanguage("javascript", xe);
10457
- let n = Ee.component, { backgroundColor2: r } = lt();
10475
+ let n = Ee.component, { backgroundColor2: r } = ut();
10458
10476
  return (e, i) => {
10459
10477
  let a = M("v-sheet");
10460
- return j(), pt(a, {
10478
+ return j(), mt(a, {
10461
10479
  color: N(r),
10462
10480
  height: "100%",
10463
10481
  width: "100%"
10464
10482
  }, {
10465
- default: Pt(() => [k(N(n), {
10483
+ default: Ft(() => [k(N(n), {
10466
10484
  code: t.code,
10467
10485
  language: "js"
10468
10486
  }, null, 8, ["code"])]),
@@ -10470,58 +10488,58 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10470
10488
  }, 8, ["color"]);
10471
10489
  };
10472
10490
  }
10473
- }), no = { class: "text-body-large" }, ro = { class: "w-100 h-100 overflow-auto" }, io = /* @__PURE__ */ ht({
10491
+ }), io = { class: "text-body-large" }, ao = { class: "w-100 h-100 overflow-auto" }, oo = /* @__PURE__ */ gt({
10474
10492
  __name: "index",
10475
10493
  setup(e) {
10476
- let { t } = zt(), { sysBarAvail: n } = ut(), { backgroundColor0: r, backgroundColor2: i } = lt(), a = Tt(""), o = E(() => {
10494
+ let { t } = Bt(), { sysBarAvail: n } = dt(), { backgroundColor0: r, backgroundColor2: i } = ut(), a = Et(""), o = E(() => {
10477
10495
  let e = 48;
10478
10496
  return n.value && (e += 24), {
10479
10497
  position: "relative",
10480
10498
  height: `calc(100% - ${e}px)`
10481
10499
  };
10482
- }), { open: s } = dt("sourceDlg", (e) => {
10500
+ }), { open: s } = ft("sourceDlg", (e) => {
10483
10501
  a.value = e.code;
10484
10502
  });
10485
10503
  return (e, c) => {
10486
10504
  let l = M("v-sheet"), u = M("v-btn"), ee = M("v-spacer"), te = M("v-dialog");
10487
- return j(), pt(te, {
10505
+ return j(), mt(te, {
10488
10506
  modelValue: N(s),
10489
- "onUpdate:modelValue": c[1] ||= (e) => _t(s) ? s.value = e : null,
10507
+ "onUpdate:modelValue": c[1] ||= (e) => vt(s) ? s.value = e : null,
10490
10508
  fullscreen: "",
10491
10509
  "no-click-animation": "",
10492
10510
  persistent: "",
10493
10511
  transition: "dialog-bottom-transition",
10494
- onKeydown: c[2] ||= It(Lt((e) => s.value = !1, ["stop", "prevent"]), ["esc"])
10512
+ onKeydown: c[2] ||= Lt(Rt((e) => s.value = !1, ["stop", "prevent"]), ["esc"])
10495
10513
  }, {
10496
- default: Pt(() => [k(l, {
10514
+ default: Ft(() => [k(l, {
10497
10515
  color: N(r),
10498
10516
  height: "100%",
10499
10517
  width: "100%"
10500
10518
  }, {
10501
- default: Pt(() => [
10502
- N(n) ? (j(), pt(l, {
10519
+ default: Ft(() => [
10520
+ N(n) ? (j(), mt(l, {
10503
10521
  key: 0,
10504
10522
  color: N(i),
10505
10523
  height: 24
10506
- }, null, 8, ["color"])) : mt("", !0),
10524
+ }, null, 8, ["color"])) : ht("", !0),
10507
10525
  k(l, {
10508
10526
  class: "d-flex align-center px-2",
10509
10527
  color: N(i),
10510
10528
  height: 48
10511
10529
  }, {
10512
- default: Pt(() => [
10530
+ default: Ft(() => [
10513
10531
  k(u, {
10514
10532
  density: "comfortable",
10515
10533
  icon: "mdi-close",
10516
10534
  variant: "text",
10517
10535
  onClick: c[0] ||= (e) => s.value = !1
10518
10536
  }),
10519
- O("span", no, kt(N(t)("x-block-lib.dlg.source.title")), 1),
10537
+ O("span", io, At(N(t)("x-block-lib.dlg.source.title")), 1),
10520
10538
  k(ee)
10521
10539
  ]),
10522
10540
  _: 1
10523
10541
  }, 8, ["color"]),
10524
- O("div", { style: A(o.value) }, [O("div", ro, [k(to, { code: a.value }, null, 8, ["code"])])], 4)
10542
+ O("div", { style: A(o.value) }, [O("div", ao, [k(ro, { code: a.value }, null, 8, ["code"])])], 4)
10525
10543
  ]),
10526
10544
  _: 1
10527
10545
  }, 8, ["color"])]),
@@ -10529,19 +10547,19 @@ var $a = { class: "position-relative w-100 h-100" }, eo = /* @__PURE__ */ ht({
10529
10547
  }, 8, ["modelValue"]);
10530
10548
  };
10531
10549
  }
10532
- }), ao = (e) => {
10533
- e.component("XBlockly", eo), e.component("XSourceDlg", io);
10550
+ }), so = (e) => {
10551
+ e.component("XBlockly", no), e.component("XSourceDlg", oo);
10534
10552
  };
10535
10553
  //#endregion
10536
10554
  //#region src/i18n/index.ts
10537
- async function oo(e) {
10538
- return (await Bt(/* @__PURE__ */ Object.assign({
10555
+ async function co(e) {
10556
+ return (await Vt(/* @__PURE__ */ Object.assign({
10539
10557
  "./locales/en/index.ts": () => import("./i18n-en.nyqc9jvc.js").then((e) => e.t),
10540
10558
  "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hgqwzee0.js").then((e) => e.t)
10541
10559
  }), `./locales/${e}/index.ts`, 4)).default;
10542
10560
  }
10543
10561
  //#endregion
10544
10562
  //#region src/index.ts
10545
- var so = { install: ao };
10563
+ var lo = { install: so };
10546
10564
  //#endregion
10547
- export { eo as XBlockly, so as default, ao as install, oo as loadLocaleMessageBlock };
10565
+ export { no as XBlockly, lo as default, so as install, co as loadLocaleMessageBlock };