x-block-lib 0.8.26 → 0.8.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +673 -610
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-6cb62cd6]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- import { E as I, r as En, M as Dn, s as Co, a as ko, X as Mn, u as C, B as g, j as s, O as r, F as O, b as $e, i as v, c as mt, d as No, e as M, f as m, g as Lo, h as K, k as dt, p as Yt, l as Z, m as gn, n as B, C as Un, N as tt, o as So, P as He, q as Me, V as kt, t as Vn, W as Bo, v as bo, w as Po, S as Ro, x as Do, y as Mo, z as Wt, T as Ae, A as xn, D as Uo, G as Vo, H as Yn, I as xo, J as Yo, K as Fo, L as wo, Q as Ko, R as $o, U as Ho, Y as Go } from "./vendor.txua272r.js";
11
- import { globalState as T } from "x-state-lib";
12
- import { globalObjects as yt, openConfirmDlg as Wo, openPromptDlg as jo, messageWarning as Fn, useColor as jt, useSystem as wn, useViewStack as tn, eventBus as Ct } from "x-essential-lib";
13
- import { pkgs as ie, parsePixelStr as Xo, parsePercentStr as Jo, getPropertyTag as Mt, unwrapEventId as en, elements as q, makeEventId as at, toEventName as Ie, unwrapMethodId as nn, makeMethodId as ee, toMethodName as on, unwrapPropertyId as sn, makePropertyId as Zt, toPropertyName as Kn, isLocaleOfMethodKind as $n, makeTriggerId as It } from "x-runtime-lib";
14
- import { provide as qo, inject as Qo, defineComponent as st, resolveComponent as D, createBlock as et, openBlock as S, unref as R, withCtx as nt, createVNode as L, mergeProps as an, useModel as Kt, ref as Nt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as J, normalizeStyle as G, createElementVNode as w, createCommentVNode as ct, toDisplayString as $t, withModifiers as Ft, mergeModels as Ge, Fragment as Hn, renderList as ti, useId as We, onUnmounted as ei, useTemplateRef as wt, withKeys as Gn, isRef as ne, onMounted as An, nextTick as ni, onBeforeUnmount as In, watch as Vt, renderSlot as oi } from "vue";
10
+ import { E as I, r as En, M as Dn, s as Co, a as ko, X as Mn, u as C, B as g, j as s, O as r, F as O, b as He, i as v, c as mt, d as No, e as M, f as T, g as Lo, h as K, k as dt, p as Yt, l as ot, m as gn, n as B, C as Un, N as it, o as So, P as Ge, q as Ue, V as kt, t as Vn, W as Bo, v as bo, w as Po, S as Ro, x as Do, y as Mo, z as Wt, T as Ae, A as xn, D as Uo, G as Vo, H as Yn, I as xo, J as Yo, K as Fo, L as wo, Q as Ko, R as $o, U as Ho, Y as Go } from "./vendor.txua272r.js";
11
+ import { globalState as E } from "x-state-lib";
12
+ import { globalObjects as yt, openConfirmDlg as Wo, openPromptDlg as jo, messageWarning as Fn, useColor as jt, useSystem as wn, useViewStack as en, eventBus as Ct } from "x-essential-lib";
13
+ import { pkgs as ie, parsePixelStr as Xo, parsePercentStr as Jo, getPropertyTag as Mt, unwrapEventId as Ie, elements as Z, makeEventId as nt, toEventName as Oe, unwrapMethodId as nn, makeMethodId as ee, toMethodName as on, unwrapPropertyId as sn, makePropertyId as Zt, toPropertyName as Kn, isLocaleOfMethodKind as $n, makeTriggerId as It } from "x-runtime-lib";
14
+ import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as D, createBlock as st, openBlock as S, unref as R, withCtx as at, createVNode as L, mergeProps as an, useModel as Kt, ref as Nt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as z, normalizeStyle as G, createElementVNode as w, createCommentVNode as rt, toDisplayString as $t, withModifiers as Ft, mergeModels as We, Fragment as Hn, renderList as ti, useId as je, onUnmounted as ei, useTemplateRef as wt, withKeys as Gn, isRef as ne, onMounted as An, nextTick as ni, onBeforeUnmount as In, watch as Vt, renderSlot as oi } from "vue";
15
15
  import { useI18n as Xt } from "vue-i18n";
16
16
  import { useDisplay as ii } from "vuetify";
17
17
  var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
@@ -33,11 +33,11 @@ async function On(t) {
33
33
  const e = await jn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.n1dap9o0.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.m1pmgr3r.js") }), `./msg/${t}.ts`, 3);
34
34
  Co(e.default);
35
35
  }
36
- function h(t) {
36
+ function f(t) {
37
37
  return Dn[t] ?? t;
38
38
  }
39
39
  const Lt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", se = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
40
- function Oe(t) {
40
+ function ye(t) {
41
41
  const e = t.lastIndexOf("V");
42
42
  if (e <= 0 || e >= t.length - 1)
43
43
  return console.assert(!1, `invalid key=${t}`), "";
@@ -52,7 +52,7 @@ function ae(t) {
52
52
  return `${o}${i}`;
53
53
  }
54
54
  function k(t) {
55
- return t.length <= 0 && t.push([h("NO_OPTION"), ""]), t;
55
+ return t.length <= 0 && t.push([f("NO_OPTION"), ""]), t;
56
56
  }
57
57
  function si(t) {
58
58
  let e = 0;
@@ -63,19 +63,19 @@ function si(t) {
63
63
  function Xn(t) {
64
64
  return t.ui === "strInput" ? "string" : t.ui === "numInput" ? "number" : t.ui === "switch" ? "boolean" : "string";
65
65
  }
66
- function ye(t, e) {
66
+ function ve(t, e) {
67
67
  return !!(t.startsWith("basic.") || !e.ui || e.readonly);
68
68
  }
69
- function X(t) {
69
+ function J(t) {
70
70
  return t.startsWith("globality_v");
71
71
  }
72
- function ot(t) {
72
+ function q(t) {
73
73
  return t.startsWith("reference_v");
74
74
  }
75
- function it(t) {
75
+ function Q(t) {
76
76
  return t.startsWith("multiple_ref_v");
77
77
  }
78
- function Ue(t) {
78
+ function Ve(t) {
79
79
  const e = `<block type="text_v1"><field name="TEXT">${t}</field></block>`;
80
80
  return C.xml.textToDom(e);
81
81
  }
@@ -86,9 +86,9 @@ function yn(t) {
86
86
  function ai(t) {
87
87
  return C.xml.textToDom('<block type="logic_boolean_v1"><field name="BOOL">FALSE</field></block>');
88
88
  }
89
- function je(t, e) {
89
+ function Xe(t, e) {
90
90
  let n = null;
91
- return e === "string" ? n = Ue("") : e === "integer" || e === "decimal" ? n = yn(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = Ue("") : console.assert(!1), n ? Mn.domToBlock(n, t) : null;
91
+ return e === "string" ? n = Ve("") : e === "integer" || e === "decimal" ? n = yn(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = Ve("") : console.assert(!1), n ? Mn.domToBlock(n, t) : null;
92
92
  }
93
93
  function Tt(t) {
94
94
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
@@ -150,11 +150,11 @@ function ui() {
150
150
  return C.xml.textToDom('<shadow type="object_create_v1"></shadow>');
151
151
  }
152
152
  function li(t) {
153
- const e = `<shadow type="${Oe(t)}"></shadow>`;
153
+ const e = `<shadow type="${ye(t)}"></shadow>`;
154
154
  return C.xml.textToDom(e);
155
155
  }
156
156
  function _i(t) {
157
- const e = `<shadow type="${Oe(t)}"></shadow>`;
157
+ const e = `<shadow type="${ye(t)}"></shadow>`;
158
158
  return C.xml.textToDom(e);
159
159
  }
160
160
  function pi(t) {
@@ -173,14 +173,14 @@ function hi(t) {
173
173
  return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = pt(t.default) : t.ui === "numInput" ? e = ce(t.default) : t.ui === "switch" ? e = re(t.default) : t.ui === "select" ? e = li(t.items) : t.ui === "multiTypes" ? e = _i(t.types) : t.ui === "compSelect" ? e = di() : t.ui === "colorPicker" ? e = pi(t.default ?? "#ff0000") : console.assert(!1), e;
174
174
  }
175
175
  function fi() {
176
- const { activeObject: t, activePage: e } = T.app, n = [];
176
+ const { activeObject: t, activePage: e } = E.app, n = [];
177
177
  if (t.type === "page")
178
178
  for (const { id: o, name: i, type: a } of e.meta.arguments)
179
179
  n.push({ key: o, name: i, type: a });
180
180
  return n;
181
181
  }
182
182
  function vn(t) {
183
- const { activeObject: e, activePage: n } = T.app;
183
+ const { activeObject: e, activePage: n } = E.app;
184
184
  if (e.type === "page") {
185
185
  const o = n.meta.arguments.find((i) => i.id === t);
186
186
  if (o)
@@ -245,11 +245,11 @@ const Ti = {
245
245
  checkWarning_: function() {
246
246
  const t = vn(this.argument.key);
247
247
  if (!t) {
248
- this.setWarningText(h("WARN_ARGUMENT_NOT_FOUND"));
248
+ this.setWarningText(f("WARN_ARGUMENT_NOT_FOUND"));
249
249
  return;
250
250
  }
251
251
  if (t.name !== this.argument.name && (this.argument.name = t.name), t.type !== this.argument.type) {
252
- this.setWarningText(h("WARN_ARGUMENT_HAS_CHANGED"));
252
+ this.setWarningText(f("WARN_ARGUMENT_HAS_CHANGED"));
253
253
  return;
254
254
  }
255
255
  this.setWarningText(null);
@@ -261,7 +261,7 @@ s.forBlock.get_page_argument_v1 = function(t) {
261
261
  return [`__getPageArgumentV1__(${s.quote_(e.argument.key)})`, r.FUNCTION_CALL];
262
262
  };
263
263
  const Ei = (t, e) => {
264
- const n = Oe(t), o = ae(t);
264
+ const n = ye(t), o = ae(t);
265
265
  g[n] = {
266
266
  init: function() {
267
267
  this.appendDummyInput().appendField(
@@ -286,7 +286,7 @@ for (const t in ie) {
286
286
  Ei(n, e.items[n]);
287
287
  }
288
288
  const gi = (t, e) => {
289
- const n = Oe(t), o = ae(t);
289
+ const n = ye(t), o = ae(t);
290
290
  g[n] = {
291
291
  init: function() {
292
292
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
@@ -339,7 +339,7 @@ const gi = (t, e) => {
339
339
  let u, l;
340
340
  if (c.ui === "pixelInput") {
341
341
  const _ = Xo(this.value) ?? 0;
342
- u = new $e(
342
+ u = new He(
343
343
  _,
344
344
  c.min,
345
345
  c.max,
@@ -350,7 +350,7 @@ const gi = (t, e) => {
350
350
  ), l = "px";
351
351
  } else if (c.ui === "percentInput") {
352
352
  const _ = Jo(this.value) ?? 0;
353
- u = new $e(
353
+ u = new He(
354
354
  _,
355
355
  c.min,
356
356
  c.max,
@@ -365,7 +365,7 @@ const gi = (t, e) => {
365
365
  checkWarning_: function() {
366
366
  let i = this.value;
367
367
  if (i || (i = void 0), !e.find((c) => c.validator(i))) {
368
- this.setWarningText(h("WARN_TYPE_NOT_FOUND"));
368
+ this.setWarningText(f("WARN_TYPE_NOT_FOUND"));
369
369
  return;
370
370
  }
371
371
  this.setWarningText(null);
@@ -493,17 +493,17 @@ const yi = {
493
493
  if (!n)
494
494
  continue;
495
495
  if (!n.type.startsWith("get_app_prop_v") && !n.type.startsWith("get_app_state_v")) {
496
- this.setWarningText(h("WARN_INVALID_BIND_ITEM"));
496
+ this.setWarningText(f("WARN_INVALID_BIND_ITEM"));
497
497
  return;
498
498
  }
499
499
  const o = n.outputConnection?.getCheck()?.[0] ?? "";
500
500
  if (!o) {
501
- this.setWarningText(h("WARN_TYPE_NOT_MATCH"));
501
+ this.setWarningText(f("WARN_TYPE_NOT_MATCH"));
502
502
  return;
503
503
  }
504
504
  if (t) {
505
505
  if (o !== t) {
506
- this.setWarningText(h("WARN_TYPE_NOT_MATCH"));
506
+ this.setWarningText(f("WARN_TYPE_NOT_MATCH"));
507
507
  return;
508
508
  }
509
509
  } else
@@ -517,10 +517,10 @@ s.forBlock.app_bind_v1 = function() {
517
517
  return "";
518
518
  };
519
519
  function qn() {
520
- return T.app.appList;
520
+ return E.app.appList;
521
521
  }
522
522
  function Cn(t) {
523
- return T.app.appList.find((e) => e.id === t);
523
+ return E.app.appList.find((e) => e.id === t);
524
524
  }
525
525
  function vi() {
526
526
  const t = [];
@@ -528,18 +528,18 @@ function vi() {
528
528
  t.push([o, n]);
529
529
  }), k(t);
530
530
  }
531
- function Xe(t) {
532
- const e = T.app.appList.find((n) => n.id === t);
531
+ function Je(t) {
532
+ const e = E.app.appList.find((n) => n.id === t);
533
533
  return e ? e.pages : [];
534
534
  }
535
- function Ve(t, e) {
536
- const n = T.app.appList.find((o) => o.id === t);
535
+ function xe(t, e) {
536
+ const n = E.app.appList.find((o) => o.id === t);
537
537
  if (n)
538
538
  return n.pages.find((o) => o.id === e);
539
539
  }
540
540
  function Ci(t) {
541
541
  const e = [];
542
- return Xe(t).forEach(({ id: o, name: i }) => {
542
+ return Je(t).forEach(({ id: o, name: i }) => {
543
543
  e.push([i, o]);
544
544
  }), k(e);
545
545
  }
@@ -550,11 +550,11 @@ const Qn = {
550
550
  position: 0
551
551
  };
552
552
  function zn() {
553
- const { comps: t } = T.app.activeApp;
553
+ const { comps: t } = E.app.activeApp;
554
554
  return [Qn, ...t];
555
555
  }
556
556
  function kn(t) {
557
- return t === "" ? Qn : T.app.activeApp.comps.find((e) => e.id === t);
557
+ return t === "" ? Qn : E.app.activeApp.comps.find((e) => e.id === t);
558
558
  }
559
559
  function ki() {
560
560
  const { i18n: t } = yt, e = [];
@@ -569,101 +569,123 @@ function bt(t) {
569
569
  e.push({ key: n, name: o, type: i });
570
570
  return e;
571
571
  }
572
- function rt(t) {
572
+ function j(t) {
573
573
  return [
574
574
  { key: "newValue", name: "x-runtime-lib.newValue", type: t },
575
575
  { key: "oldValue", name: "x-runtime-lib.oldValue", type: t }
576
576
  ];
577
577
  }
578
- function Je(t) {
579
- const { properties: e } = T.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = T.app, c = [], u = Mt(n.type, n.subtype);
578
+ function qe(t) {
579
+ const { properties: e } = E.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = E.app, c = [], u = Mt(n.type, n.subtype);
580
580
  if (!u)
581
581
  return c;
582
582
  const l = n.nodes.find((d) => d.id === t);
583
583
  if (!l)
584
584
  return c;
585
- const _ = q[l.key];
585
+ const _ = Z[l.key];
586
586
  if (!_)
587
587
  return console.assert(!1, "invalid element", l.key), c;
588
- for (const { key: d, name: f, params: p } of _.events)
588
+ for (const { key: d, name: h, params: p } of _.events)
589
589
  c.push({
590
- id: at("elementEvent", t, d),
590
+ id: nt("elementEvent", t, d),
591
591
  kind: "elementEvent",
592
- names: [f],
592
+ names: [h],
593
593
  params: p
594
594
  });
595
- if (ot(_.key) && l.reference && l.reference.comp) {
595
+ if (q(_.key) && l.reference && l.reference.comp) {
596
596
  const d = a[l.reference.comp];
597
597
  if (d)
598
- for (const { id: f, name: p, params: E } of d.meta.events)
598
+ for (const { id: h, name: p, params: m } of d.meta.events)
599
599
  c.push({
600
- id: at("referenceEvent", t, f),
600
+ id: nt("referenceEvent", t, h),
601
601
  kind: "referenceEvent",
602
602
  names: [p],
603
- params: bt(E)
603
+ params: bt(m)
604
604
  });
605
605
  }
606
- if (it(_.key) && l.reference && l.reference.comp) {
606
+ if (Q(_.key) && l.reference && l.reference.comp) {
607
607
  const d = a[l.reference.comp];
608
608
  if (d)
609
- for (const { id: f, name: p, params: E } of d.meta.events)
609
+ for (const { id: h, name: p, params: m } of d.meta.events)
610
610
  c.push({
611
- id: at("multipleRefEvent", t, f),
611
+ id: nt("multipleRefEvent", t, h),
612
612
  kind: "multipleRefEvent",
613
613
  names: [p],
614
- params: bt(E)
614
+ params: bt(m)
615
615
  });
616
616
  }
617
617
  if (e[_.key] && e[_.key][u])
618
- for (const { keys: d, names: f, raw: p } of e[_.key][u])
619
- ye(d, p) || c.push({
620
- id: at("elementPropertyChangeEvent", t, d),
618
+ for (const { keys: d, names: h, raw: p } of e[_.key][u])
619
+ ve(d, p) || c.push({
620
+ id: nt("elementPropertyChangeEvent", t, d),
621
621
  kind: "elementPropertyChangeEvent",
622
- names: f,
623
- params: rt(Xn(p))
622
+ names: h,
623
+ params: j(Xn(p))
624
624
  });
625
- if (X(_.key) && n.type === "comp")
626
- for (const { id: d, name: f, type: p } of i.meta.properties)
625
+ if (q(_.key) && l.reference && l.reference.comp) {
626
+ const d = a[l.reference.comp];
627
+ if (d)
628
+ for (const { id: h, name: p, type: m } of d.meta.properties)
629
+ c.push({
630
+ id: nt("referencePropertyChangeEvent", t, h),
631
+ kind: "referencePropertyChangeEvent",
632
+ names: [p],
633
+ params: j(m)
634
+ });
635
+ }
636
+ if (Q(_.key) && l.reference && l.reference.comp) {
637
+ const d = a[l.reference.comp];
638
+ if (d)
639
+ for (const { id: h, name: p, type: m } of d.meta.properties)
640
+ c.push({
641
+ id: nt("multipleRefPropertyChangeEvent", t, h),
642
+ kind: "multipleRefPropertyChangeEvent",
643
+ names: [p],
644
+ params: j(m)
645
+ });
646
+ }
647
+ if (J(_.key) && n.type === "comp")
648
+ for (const { id: d, name: h, type: p } of i.meta.properties)
627
649
  c.push({
628
- id: at("customPropertyChangeEvent", t, d),
650
+ id: nt("customPropertyChangeEvent", t, d),
629
651
  kind: "customPropertyChangeEvent",
630
- names: [f],
631
- params: rt(p)
652
+ names: [h],
653
+ params: j(p)
632
654
  });
633
- if (X(_.key)) {
655
+ if (J(_.key)) {
634
656
  if (n.type === "page")
635
- for (const { id: d, name: f, type: p } of o.meta.states)
657
+ for (const { id: d, name: h, type: p } of o.meta.states)
636
658
  c.push({
637
- id: at("stateChangeEvent", "globality", d),
659
+ id: nt("stateChangeEvent", "globality", d),
638
660
  kind: "stateChangeEvent",
639
- names: [f],
640
- params: rt(p)
661
+ names: [h],
662
+ params: j(p)
641
663
  });
642
664
  else if (n.type === "comp")
643
- for (const { id: d, name: f, type: p } of i.meta.states)
665
+ for (const { id: d, name: h, type: p } of i.meta.states)
644
666
  c.push({
645
- id: at("stateChangeEvent", "globality", d),
667
+ id: nt("stateChangeEvent", "globality", d),
646
668
  kind: "stateChangeEvent",
647
- names: [f],
648
- params: rt(p)
669
+ names: [h],
670
+ params: j(p)
649
671
  });
650
672
  }
651
673
  return c;
652
674
  }
653
- function xe(t) {
654
- const { properties: e } = T.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = T.app, c = Mt(n.type, n.subtype);
675
+ function Ye(t) {
676
+ const { properties: e } = E.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = E.app, c = Mt(n.type, n.subtype);
655
677
  if (!c)
656
678
  return;
657
- const { kind: u, nodeId: l, eventKey: _ } = en(t), d = n.nodes.find((p) => p.id === l);
679
+ const { kind: u, nodeId: l, eventKey: _ } = Ie(t), d = n.nodes.find((p) => p.id === l);
658
680
  if (!d)
659
681
  return;
660
- const f = q[d.key];
661
- if (!f) {
682
+ const h = Z[d.key];
683
+ if (!h) {
662
684
  console.assert(!1, "invalid element", d.key);
663
685
  return;
664
686
  }
665
687
  if (u === "elementEvent") {
666
- const p = f.events.find((E) => E.key === _);
688
+ const p = h.events.find((m) => m.key === _);
667
689
  if (p)
668
690
  return {
669
691
  id: t,
@@ -672,97 +694,129 @@ function xe(t) {
672
694
  params: p.params
673
695
  };
674
696
  } else if (u === "referenceEvent") {
675
- if (ot(f.key) && d.reference && d.reference.comp) {
697
+ if (q(h.key) && d.reference && d.reference.comp) {
676
698
  const p = a[d.reference.comp];
677
699
  if (p) {
678
- const E = p.meta.events.find((A) => A.id === _);
679
- if (E)
700
+ const m = p.meta.events.find((A) => A.id === _);
701
+ if (m)
680
702
  return {
681
703
  id: t,
682
704
  kind: u,
683
- names: [E.name],
684
- params: bt(E.params)
705
+ names: [m.name],
706
+ params: bt(m.params)
685
707
  };
686
708
  }
687
709
  }
688
710
  } else if (u === "multipleRefEvent") {
689
- if (it(f.key) && d.reference && d.reference.comp) {
711
+ if (Q(h.key) && d.reference && d.reference.comp) {
690
712
  const p = a[d.reference.comp];
691
713
  if (p) {
692
- const E = p.meta.events.find((A) => A.id === _);
693
- if (E)
714
+ const m = p.meta.events.find((A) => A.id === _);
715
+ if (m)
694
716
  return {
695
717
  id: t,
696
718
  kind: u,
697
- names: [E.name],
698
- params: bt(E.params)
719
+ names: [m.name],
720
+ params: bt(m.params)
699
721
  };
700
722
  }
701
723
  }
702
724
  } else if (u === "elementPropertyChangeEvent") {
703
- if (e[f.key] && e[f.key][c]) {
704
- const p = e[f.key][c].find(
705
- (E) => E.keys === _
725
+ if (e[h.key] && e[h.key][c]) {
726
+ const p = e[h.key][c].find(
727
+ (m) => m.keys === _
706
728
  );
707
729
  if (p)
708
730
  return {
709
731
  id: t,
710
732
  kind: u,
711
733
  names: p.names,
712
- params: rt(Xn(p.raw))
734
+ params: j(Xn(p.raw))
713
735
  };
714
736
  }
737
+ } else if (u === "referencePropertyChangeEvent") {
738
+ if (q(h.key) && d.reference && d.reference.comp) {
739
+ const p = a[d.reference.comp];
740
+ if (p) {
741
+ const m = p.meta.properties.find(
742
+ (A) => A.id === _
743
+ );
744
+ if (m)
745
+ return {
746
+ id: t,
747
+ kind: u,
748
+ names: [m.name],
749
+ params: j(m.type)
750
+ };
751
+ }
752
+ }
753
+ } else if (u === "multipleRefPropertyChangeEvent") {
754
+ if (Q(h.key) && d.reference && d.reference.comp) {
755
+ const p = a[d.reference.comp];
756
+ if (p) {
757
+ const m = p.meta.properties.find(
758
+ (A) => A.id === _
759
+ );
760
+ if (m)
761
+ return {
762
+ id: t,
763
+ kind: u,
764
+ names: [m.name],
765
+ params: j(m.type)
766
+ };
767
+ }
768
+ }
715
769
  } else if (u === "customPropertyChangeEvent") {
716
- if (X(f.key) && n.type === "comp") {
770
+ if (J(h.key) && n.type === "comp") {
717
771
  const p = i.meta.properties.find(
718
- (E) => E.id === _
772
+ (m) => m.id === _
719
773
  );
720
774
  if (p)
721
775
  return {
722
776
  id: t,
723
777
  kind: u,
724
778
  names: [p.name],
725
- params: rt(p.type)
779
+ params: j(p.type)
726
780
  };
727
781
  }
728
- } else if (u === "stateChangeEvent" && X(f.key)) {
782
+ } else if (u === "stateChangeEvent" && J(h.key)) {
729
783
  if (n.type === "page") {
730
784
  const p = o.meta.states.find(
731
- (E) => E.id === _
785
+ (m) => m.id === _
732
786
  );
733
787
  if (p)
734
788
  return {
735
789
  id: t,
736
790
  kind: u,
737
791
  names: [p.name],
738
- params: rt(p.type)
792
+ params: j(p.type)
739
793
  };
740
794
  } else if (n.type === "comp") {
741
795
  const p = i.meta.states.find(
742
- (E) => E.id === _
796
+ (m) => m.id === _
743
797
  );
744
798
  if (p)
745
799
  return {
746
800
  id: t,
747
801
  kind: u,
748
802
  names: [p.name],
749
- params: rt(p.type)
803
+ params: j(p.type)
750
804
  };
751
805
  }
752
806
  }
753
807
  }
754
808
  function Ni(t) {
755
- const e = [], n = Je(t);
809
+ const e = [], n = qe(t);
756
810
  for (const { id: o, kind: i, names: a } of n)
757
- e.push([Ie(i, a), o]);
811
+ e.push([Oe(i, a), o]);
758
812
  return k(e);
759
813
  }
760
814
  function Zn() {
761
- const { activeObject: t, activeComp: e } = T.app, n = [];
815
+ const { activeObject: t, activeComp: e } = E.app, n = [];
762
816
  if (t.type === "comp")
763
817
  for (const { id: o, name: i, params: a } of e.meta.events)
764
818
  n.push({
765
- id: at("customEvent", "globality", o),
819
+ id: nt("customEvent", "globality", o),
766
820
  kind: "customEvent",
767
821
  names: [i],
768
822
  params: bt(a)
@@ -770,7 +824,7 @@ function Zn() {
770
824
  return n;
771
825
  }
772
826
  function Nn(t) {
773
- const { activeObject: e, activeComp: n } = T.app, { kind: o, nodeId: i, eventKey: a } = en(t);
827
+ const { activeObject: e, activeComp: n } = E.app, { kind: o, nodeId: i, eventKey: a } = Ie(t);
774
828
  if (o === "customEvent" && i === "globality" && e.type === "comp") {
775
829
  const c = n.meta.events.find(
776
830
  (u) => u.id === a
@@ -787,7 +841,7 @@ function Nn(t) {
787
841
  function Li() {
788
842
  const t = [], e = Zn();
789
843
  for (const { id: n, kind: o, names: i } of e)
790
- t.push([Ie(o, i), n]);
844
+ t.push([Oe(o, i), n]);
791
845
  return k(t);
792
846
  }
793
847
  function Pt(t) {
@@ -802,11 +856,11 @@ function Rt(t) {
802
856
  e.push({ key: n, name: o, type: i });
803
857
  return e;
804
858
  }
805
- function qe(t) {
806
- const { activeObject: e, depends: n } = T.app, o = [], i = e.nodes.find((c) => c.id === t);
859
+ function Qe(t) {
860
+ const { activeObject: e, depends: n } = E.app, o = [], i = e.nodes.find((c) => c.id === t);
807
861
  if (!i)
808
862
  return o;
809
- const a = q[i.key];
863
+ const a = Z[i.key];
810
864
  if (!a)
811
865
  return console.assert(!1, "inavlid element", i.key), o;
812
866
  for (const { key: c, name: u, inputs: l, outputs: _ } of a.methods)
@@ -817,7 +871,7 @@ function qe(t) {
817
871
  inputs: l,
818
872
  outputs: _
819
873
  });
820
- if (ot(a.key) && i.reference && i.reference.comp) {
874
+ if (q(a.key) && i.reference && i.reference.comp) {
821
875
  const c = n[i.reference.comp];
822
876
  if (c)
823
877
  for (const { id: u, name: l, inputs: _, outputs: d } of c.meta.methods)
@@ -829,7 +883,7 @@ function qe(t) {
829
883
  outputs: Rt(d)
830
884
  });
831
885
  }
832
- if (it(a.key) && i.reference && i.reference.comp) {
886
+ if (Q(a.key) && i.reference && i.reference.comp) {
833
887
  const c = n[i.reference.comp];
834
888
  if (c)
835
889
  for (const { id: u, name: l, inputs: _, outputs: d } of c.meta.methods)
@@ -841,13 +895,13 @@ function qe(t) {
841
895
  outputs: Rt(d)
842
896
  });
843
897
  }
844
- return X(a.key) && e.type, o;
898
+ return J(a.key) && e.type, o;
845
899
  }
846
- function Ye(t) {
847
- const { activeObject: e, depends: n } = T.app, { kind: o, nodeId: i, methodKey: a } = nn(t), c = e.nodes.find((l) => l.id === i);
900
+ function Fe(t) {
901
+ const { activeObject: e, depends: n } = E.app, { kind: o, nodeId: i, methodKey: a } = nn(t), c = e.nodes.find((l) => l.id === i);
848
902
  if (!c)
849
903
  return;
850
- const u = q[c.key];
904
+ const u = Z[c.key];
851
905
  if (!u) {
852
906
  console.assert(!1, "invalid element", c.key);
853
907
  return;
@@ -863,7 +917,7 @@ function Ye(t) {
863
917
  outputs: l.outputs
864
918
  };
865
919
  } else if (o === "referenceMethod") {
866
- if (ot(u.key) && c.reference && c.reference.comp) {
920
+ if (q(u.key) && c.reference && c.reference.comp) {
867
921
  const l = n[c.reference.comp];
868
922
  if (l) {
869
923
  const _ = l.meta.methods.find(
@@ -879,7 +933,7 @@ function Ye(t) {
879
933
  };
880
934
  }
881
935
  }
882
- } else if (o === "multipleRefMethod" && it(u.key) && c.reference && c.reference.comp) {
936
+ } else if (o === "multipleRefMethod" && Q(u.key) && c.reference && c.reference.comp) {
883
937
  const l = n[c.reference.comp];
884
938
  if (l) {
885
939
  const _ = l.meta.methods.find(
@@ -897,13 +951,13 @@ function Ye(t) {
897
951
  }
898
952
  }
899
953
  function Si(t) {
900
- const e = [], n = qe(t);
954
+ const e = [], n = Qe(t);
901
955
  for (const { id: o, kind: i, names: a } of n)
902
956
  e.push([on(i, a), o]);
903
957
  return k(e);
904
958
  }
905
959
  function rn() {
906
- const { activeObject: t, activeComp: e } = T.app, n = [];
960
+ const { activeObject: t, activeComp: e } = E.app, n = [];
907
961
  if (t.type === "comp")
908
962
  for (const { id: o, name: i, inputs: a, outputs: c } of e.meta.methods)
909
963
  n.push({
@@ -916,7 +970,7 @@ function rn() {
916
970
  return n;
917
971
  }
918
972
  function Dt(t) {
919
- const { activeObject: e, activeComp: n } = T.app, { kind: o, nodeId: i, methodKey: a } = nn(t);
973
+ const { activeObject: e, activeComp: n } = E.app, { kind: o, nodeId: i, methodKey: a } = nn(t);
920
974
  if (o === "customMethod" && i === "globality" && e.type === "comp") {
921
975
  const c = n.meta.methods.find(
922
976
  (u) => u.id === a
@@ -937,43 +991,43 @@ function to() {
937
991
  t.push([on(o, i), n]);
938
992
  return k(t);
939
993
  }
940
- function Qe(t) {
994
+ function ze(t) {
941
995
  const e = Dt(t);
942
996
  return e ? e.outputs : [];
943
997
  }
944
- function Fe(t, e) {
998
+ function we(t, e) {
945
999
  const n = Dt(t);
946
1000
  if (n)
947
1001
  return n.outputs.find((o) => o.key === e);
948
1002
  }
949
1003
  function Bi(t) {
950
- const e = [], n = Qe(t);
1004
+ const e = [], n = ze(t);
951
1005
  for (const { name: o, key: i } of n)
952
1006
  e.push([o, i]);
953
1007
  return k(e);
954
1008
  }
955
1009
  function bi(t, e, n) {
956
- const { properties: o } = T.runtime, { activeObject: i, activePage: a, activeComp: c, depends: u } = T.app;
1010
+ const { properties: o } = E.runtime, { activeObject: i, activePage: a, activeComp: c, depends: u } = E.app;
957
1011
  if (t.events.length > 0)
958
1012
  return !1;
959
- if (ot(t.key) && n) {
1013
+ if (q(t.key) && n) {
960
1014
  const l = u[n];
961
1015
  if (l && l.meta.events.length > 0)
962
1016
  return !1;
963
1017
  }
964
- if (it(t.key) && n) {
1018
+ if (Q(t.key) && n) {
965
1019
  const l = u[n];
966
1020
  if (l && l.meta.events.length > 0)
967
1021
  return !1;
968
1022
  }
969
1023
  if (o[t.key] && o[t.key][e]) {
970
1024
  for (const { keys: l, raw: _ } of o[t.key][e])
971
- if (!ye(l, _))
1025
+ if (!ve(l, _))
972
1026
  return !1;
973
1027
  }
974
- if (X(t.key) && i.type === "comp" && c.meta.properties.length > 0)
1028
+ if (J(t.key) && i.type === "comp" && c.meta.properties.length > 0)
975
1029
  return !1;
976
- if (X(t.key)) {
1030
+ if (J(t.key)) {
977
1031
  if (i.type === "page") {
978
1032
  if (a.meta.states.length > 0)
979
1033
  return !1;
@@ -983,65 +1037,65 @@ function bi(t, e, n) {
983
1037
  return !0;
984
1038
  }
985
1039
  function Pi(t, e) {
986
- const { activeObject: n, depends: o } = T.app;
1040
+ const { activeObject: n, depends: o } = E.app;
987
1041
  if (t.methods.length > 0)
988
1042
  return !1;
989
- if (ot(t.key) && e) {
1043
+ if (q(t.key) && e) {
990
1044
  const i = o[e];
991
1045
  if (i && i.meta.methods.length > 0)
992
1046
  return !1;
993
1047
  }
994
- if (it(t.key) && e) {
1048
+ if (Q(t.key) && e) {
995
1049
  const i = o[e];
996
1050
  if (i && i.meta.methods.length > 0)
997
1051
  return !1;
998
1052
  }
999
- return X(t.key) && n.type, !0;
1053
+ return J(t.key) && n.type, !0;
1000
1054
  }
1001
1055
  function Ri(t, e, n) {
1002
- const { properties: o } = T.runtime, { activeObject: i, activeComp: a, depends: c } = T.app;
1056
+ const { properties: o } = E.runtime, { activeObject: i, activeComp: a, depends: c } = E.app;
1003
1057
  if (o[t.key] && o[t.key][e] && o[t.key][e].length > 0)
1004
1058
  return !1;
1005
- if (ot(t.key) && n) {
1059
+ if (q(t.key) && n) {
1006
1060
  const u = c[n];
1007
1061
  if (u && u.meta.properties.length > 0)
1008
1062
  return !1;
1009
1063
  }
1010
- if (it(t.key) && n) {
1064
+ if (Q(t.key) && n) {
1011
1065
  const u = c[n];
1012
1066
  if (u && u.meta.properties.length > 0)
1013
1067
  return !1;
1014
1068
  }
1015
- return !(X(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1069
+ return !(J(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1016
1070
  }
1017
1071
  function Di(t, e, n) {
1018
- const { properties: o } = T.runtime, { activeObject: i, activeComp: a, depends: c } = T.app;
1072
+ const { properties: o } = E.runtime, { activeObject: i, activeComp: a, depends: c } = E.app;
1019
1073
  if (o[t.key] && o[t.key][e]) {
1020
1074
  for (const { keys: u, raw: l } of o[t.key][e])
1021
- if (!ye(u, l))
1075
+ if (!ve(u, l))
1022
1076
  return !1;
1023
1077
  }
1024
- if (ot(t.key) && n) {
1078
+ if (q(t.key) && n) {
1025
1079
  const u = c[n];
1026
1080
  if (u && u.meta.properties.length > 0)
1027
1081
  return !1;
1028
1082
  }
1029
- if (it(t.key) && n) {
1083
+ if (Q(t.key) && n) {
1030
1084
  const u = c[n];
1031
1085
  if (u && u.meta.properties.length > 0)
1032
1086
  return !1;
1033
1087
  }
1034
- return !(X(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1088
+ return !(J(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1035
1089
  }
1036
1090
  function eo(t, e, n, o) {
1037
1091
  return t ? t === "onEvent" ? bi(e, n, o) : t === "callMethod" ? Pi(e, o) : t === "getProperty" ? Ri(e, n, o) : t === "setProperty" ? Di(e, n, o) : !1 : !1;
1038
1092
  }
1039
1093
  function W(t) {
1040
- const { activeObject: e } = T.app, n = Mt(e.type, e.subtype);
1094
+ const { activeObject: e } = E.app, n = Mt(e.type, e.subtype);
1041
1095
  if (!n)
1042
1096
  return !1;
1043
1097
  for (const o of e.nodes) {
1044
- const i = q[o.key];
1098
+ const i = Z[o.key];
1045
1099
  if (!i) {
1046
1100
  console.assert(!1, "invalid element", o.key);
1047
1101
  continue;
@@ -1052,11 +1106,11 @@ function W(t) {
1052
1106
  return !1;
1053
1107
  }
1054
1108
  function Jt(t) {
1055
- const { activeObject: e } = T.app, n = [], o = Mt(e.type, e.subtype);
1109
+ const { activeObject: e } = E.app, n = [], o = Mt(e.type, e.subtype);
1056
1110
  if (!o)
1057
1111
  return n;
1058
1112
  for (const i of e.nodes) {
1059
- const a = q[i.key];
1113
+ const a = Z[i.key];
1060
1114
  if (!a) {
1061
1115
  console.assert(!1, "invalid element", i.key);
1062
1116
  continue;
@@ -1071,10 +1125,10 @@ function Jt(t) {
1071
1125
  return n;
1072
1126
  }
1073
1127
  function ht(t) {
1074
- const { activeObject: e } = T.app, n = e.nodes.find((i) => i.id === t);
1128
+ const { activeObject: e } = E.app, n = e.nodes.find((i) => i.id === t);
1075
1129
  if (!n)
1076
1130
  return;
1077
- const o = q[n.key];
1131
+ const o = Z[n.key];
1078
1132
  if (!o) {
1079
1133
  console.assert(!1, "invalid element", n.key);
1080
1134
  return;
@@ -1086,7 +1140,7 @@ function ht(t) {
1086
1140
  alias: n.alias
1087
1141
  };
1088
1142
  }
1089
- function ve(t) {
1143
+ function Ce(t) {
1090
1144
  const { i18n: e } = yt, n = [], o = Jt(t);
1091
1145
  for (const { id: i, name: a, alias: c } of o) {
1092
1146
  let u = e.global.t(a);
@@ -1095,58 +1149,58 @@ function ve(t) {
1095
1149
  return k(n);
1096
1150
  }
1097
1151
  function Ht(t, e) {
1098
- const { properties: n } = T.runtime, { activeObject: o, activeComp: i, depends: a } = T.app, c = [], u = Mt(o.type, o.subtype);
1152
+ const { properties: n } = E.runtime, { activeObject: o, activeComp: i, depends: a } = E.app, c = [], u = Mt(o.type, o.subtype);
1099
1153
  if (!u)
1100
1154
  return c;
1101
1155
  const l = o.nodes.find((d) => d.id === t);
1102
1156
  if (!l)
1103
1157
  return c;
1104
- const _ = q[l.key];
1158
+ const _ = Z[l.key];
1105
1159
  if (!_)
1106
1160
  return console.assert(!1, "invalid element", l.key), c;
1107
1161
  if (n[_.key] && n[_.key][u])
1108
- for (const { keys: d, names: f, raw: p } of n[_.key][u])
1109
- e === "write" && ye(d, p) || c.push({
1162
+ for (const { keys: d, names: h, raw: p } of n[_.key][u])
1163
+ e === "write" && ve(d, p) || c.push({
1110
1164
  id: Zt("elementProperty", t, d),
1111
1165
  kind: "elementProperty",
1112
- names: f,
1166
+ names: h,
1113
1167
  meta: {
1114
1168
  element: !0,
1115
1169
  raw: p
1116
1170
  }
1117
1171
  });
1118
- if (ot(_.key) && l.reference && l.reference.comp) {
1172
+ if (q(_.key) && l.reference && l.reference.comp) {
1119
1173
  const d = a[l.reference.comp];
1120
1174
  if (d)
1121
- for (const { id: f, name: p, type: E } of d.meta.properties)
1175
+ for (const { id: h, name: p, type: m } of d.meta.properties)
1122
1176
  c.push({
1123
- id: Zt("referenceProperty", t, f),
1177
+ id: Zt("referenceProperty", t, h),
1124
1178
  kind: "referenceProperty",
1125
1179
  names: [p],
1126
1180
  meta: {
1127
- raw: { type: E }
1181
+ raw: { type: m }
1128
1182
  }
1129
1183
  });
1130
1184
  }
1131
- if (it(_.key) && l.reference && l.reference.comp) {
1185
+ if (Q(_.key) && l.reference && l.reference.comp) {
1132
1186
  const d = a[l.reference.comp];
1133
1187
  if (d)
1134
- for (const { id: f, name: p, type: E } of d.meta.properties)
1188
+ for (const { id: h, name: p, type: m } of d.meta.properties)
1135
1189
  c.push({
1136
- id: Zt("multipleRefProperty", t, f),
1190
+ id: Zt("multipleRefProperty", t, h),
1137
1191
  kind: "multipleRefProperty",
1138
1192
  names: [p],
1139
1193
  meta: {
1140
- raw: { type: E }
1194
+ raw: { type: m }
1141
1195
  }
1142
1196
  });
1143
1197
  }
1144
- if (X(_.key) && o.type === "comp")
1145
- for (const { id: d, name: f, type: p } of i.meta.properties)
1198
+ if (J(_.key) && o.type === "comp")
1199
+ for (const { id: d, name: h, type: p } of i.meta.properties)
1146
1200
  c.push({
1147
1201
  id: Zt("customProperty", t, d),
1148
1202
  kind: "customProperty",
1149
- names: [f],
1203
+ names: [h],
1150
1204
  meta: {
1151
1205
  raw: { type: p }
1152
1206
  }
@@ -1154,39 +1208,39 @@ function Ht(t, e) {
1154
1208
  return c;
1155
1209
  }
1156
1210
  function Ot(t) {
1157
- const { properties: e } = T.runtime, { activeObject: n, activeComp: o, depends: i } = T.app, a = Mt(n.type, n.subtype);
1211
+ const { properties: e } = E.runtime, { activeObject: n, activeComp: o, depends: i } = E.app, a = Mt(n.type, n.subtype);
1158
1212
  if (!a)
1159
1213
  return;
1160
- const { kind: c, nodeId: u, propertyKey: l } = sn(t), _ = n.nodes.find((f) => f.id === u);
1214
+ const { kind: c, nodeId: u, propertyKey: l } = sn(t), _ = n.nodes.find((h) => h.id === u);
1161
1215
  if (!_)
1162
1216
  return;
1163
- const d = q[_.key];
1217
+ const d = Z[_.key];
1164
1218
  if (!d) {
1165
1219
  console.assert(!1, "invalid element", _.key);
1166
1220
  return;
1167
1221
  }
1168
1222
  if (c === "elementProperty") {
1169
1223
  if (e[d.key] && e[d.key][a]) {
1170
- const f = e[d.key][a].find(
1224
+ const h = e[d.key][a].find(
1171
1225
  (p) => p.keys === l
1172
1226
  );
1173
- if (f)
1227
+ if (h)
1174
1228
  return {
1175
1229
  id: t,
1176
1230
  kind: c,
1177
- names: f.names,
1231
+ names: h.names,
1178
1232
  meta: {
1179
1233
  element: !0,
1180
- raw: f.raw
1234
+ raw: h.raw
1181
1235
  }
1182
1236
  };
1183
1237
  }
1184
1238
  } else if (c === "referenceProperty") {
1185
- if (ot(d.key) && _.reference && _.reference.comp) {
1186
- const f = i[_.reference.comp];
1187
- if (f) {
1188
- const p = f.meta.properties.find(
1189
- (E) => E.id === l
1239
+ if (q(d.key) && _.reference && _.reference.comp) {
1240
+ const h = i[_.reference.comp];
1241
+ if (h) {
1242
+ const p = h.meta.properties.find(
1243
+ (m) => m.id === l
1190
1244
  );
1191
1245
  if (p)
1192
1246
  return {
@@ -1200,11 +1254,11 @@ function Ot(t) {
1200
1254
  }
1201
1255
  }
1202
1256
  } else if (c === "multipleRefProperty") {
1203
- if (it(d.key) && _.reference && _.reference.comp) {
1204
- const f = i[_.reference.comp];
1205
- if (f) {
1206
- const p = f.meta.properties.find(
1207
- (E) => E.id === l
1257
+ if (Q(d.key) && _.reference && _.reference.comp) {
1258
+ const h = i[_.reference.comp];
1259
+ if (h) {
1260
+ const p = h.meta.properties.find(
1261
+ (m) => m.id === l
1208
1262
  );
1209
1263
  if (p)
1210
1264
  return {
@@ -1217,17 +1271,17 @@ function Ot(t) {
1217
1271
  };
1218
1272
  }
1219
1273
  }
1220
- } else if (c === "customProperty" && X(d.key) && n.type === "comp") {
1221
- const f = o.meta.properties.find(
1274
+ } else if (c === "customProperty" && J(d.key) && n.type === "comp") {
1275
+ const h = o.meta.properties.find(
1222
1276
  (p) => p.id === l
1223
1277
  );
1224
- if (f)
1278
+ if (h)
1225
1279
  return {
1226
1280
  id: t,
1227
1281
  kind: c,
1228
- names: [f.name],
1282
+ names: [h.name],
1229
1283
  meta: {
1230
- raw: { type: f.type }
1284
+ raw: { type: h.type }
1231
1285
  }
1232
1286
  };
1233
1287
  }
@@ -1239,11 +1293,11 @@ function no(t, e) {
1239
1293
  return k(n);
1240
1294
  }
1241
1295
  function un() {
1242
- const { activeObject: t, activePage: e, activeComp: n } = T.app;
1296
+ const { activeObject: t, activePage: e, activeComp: n } = E.app;
1243
1297
  return t.type === "page" ? e.meta.states : t.type === "comp" ? n.meta.states : [];
1244
1298
  }
1245
1299
  function ue(t) {
1246
- const { activeObject: e, activePage: n, activeComp: o } = T.app;
1300
+ const { activeObject: e, activePage: n, activeComp: o } = E.app;
1247
1301
  if (e.type === "page")
1248
1302
  return n.meta.states.find((i) => i.id === t);
1249
1303
  if (e.type === "comp")
@@ -1280,7 +1334,7 @@ const Mi = {
1280
1334
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1281
1335
  const e = this.getField("NODE");
1282
1336
  e.getOptions(!1), e.setValue(this.node.id);
1283
- const n = Je(this.node.id)?.[0];
1337
+ const n = qe(this.node.id)?.[0];
1284
1338
  if (!n)
1285
1339
  return;
1286
1340
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
@@ -1299,7 +1353,7 @@ const Mi = {
1299
1353
  }, 0);
1300
1354
  },
1301
1355
  genNodeOpts_: function() {
1302
- return ve("onEvent");
1356
+ return Ce("onEvent");
1303
1357
  },
1304
1358
  genEventOpts_: function() {
1305
1359
  return Ni(this.node.id);
@@ -1323,14 +1377,14 @@ const Mi = {
1323
1377
  const n = this.node.key !== e.key;
1324
1378
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1325
1379
  const o = this.getField("EVENT");
1326
- if (o.getOptions(!1), n || !xe(this.event.id)) {
1327
- const i = Je(this.node.id)?.[0];
1380
+ if (o.getOptions(!1), n || !Ye(this.event.id)) {
1381
+ const i = qe(this.node.id)?.[0];
1328
1382
  o.setValue(i?.id ?? "");
1329
1383
  }
1330
1384
  this.onEventChange_(o.getValue());
1331
1385
  },
1332
1386
  onEventChange_: function(t) {
1333
- const e = xe(t);
1387
+ const e = Ye(t);
1334
1388
  e ? (this.event.id = e.id, this.event.kind = e.kind, this.event.names = e.names, this.event.params = e.params) : (this.event.id = "", this.event.kind = "", this.event.names = [], this.event.params = []), this.updateShape_(), setTimeout(() => {
1335
1389
  this.ensureBlocks_();
1336
1390
  }, 0);
@@ -1342,7 +1396,7 @@ const Mi = {
1342
1396
  }
1343
1397
  for (let e = 0; e < this.event.params.length; e++)
1344
1398
  this.getInput("PARAM" + e) || (this.appendValueInput("PARAM" + e), this.moveInputBefore("PARAM" + e, "HANDLE"));
1345
- const { kind: t } = en(this.event.id);
1399
+ const { kind: t } = Ie(this.event.id);
1346
1400
  if (t === "multipleRefEvent")
1347
1401
  this.getInput("REF_KEY") || this.appendValueInput("REF_KEY"), this.event.params.length > 0 ? this.moveInputBefore("REF_KEY", "PARAM0") : this.moveInputBefore("REF_KEY", "HANDLE");
1348
1402
  else if (this.getInput("REF_KEY")) {
@@ -1363,25 +1417,25 @@ const Mi = {
1363
1417
  checkWarning_: function() {
1364
1418
  const t = ht(this.node.id);
1365
1419
  if (!t) {
1366
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
1420
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
1367
1421
  return;
1368
1422
  }
1369
1423
  if (t.key !== this.node.key) {
1370
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
1424
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
1371
1425
  return;
1372
1426
  }
1373
1427
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1374
- const e = xe(this.event.id);
1428
+ const e = Ye(this.event.id);
1375
1429
  if (!e) {
1376
- this.setWarningText(h("WARN_EVENT_NOT_FOUND"));
1430
+ this.setWarningText(f("WARN_EVENT_NOT_FOUND"));
1377
1431
  return;
1378
1432
  }
1379
1433
  if (e.kind !== this.event.kind) {
1380
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1434
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1381
1435
  return;
1382
1436
  }
1383
1437
  if (M(e.names, this.event.names) || (this.event.names = e.names), !M(e.params, this.event.params)) {
1384
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1438
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1385
1439
  return;
1386
1440
  }
1387
1441
  this.setWarningText(null);
@@ -1389,14 +1443,14 @@ const Mi = {
1389
1443
  };
1390
1444
  g.on_app_event_v1 = Mi;
1391
1445
  s.forBlock.on_app_event_v1 = function(t) {
1392
- const e = s.quote_, n = t;
1393
- let o = "";
1394
- n.event.params.forEach((c, u) => {
1395
- u !== 0 && (o += ", "), o += `__param$${c.key}__`;
1446
+ const e = s.quote_, n = t, o = n.event.id;
1447
+ let i = "";
1448
+ n.event.params.forEach((u, l) => {
1449
+ l !== 0 && (i += ", "), i += `__param$${u.key}__`;
1396
1450
  });
1397
- const i = s.statementToCode(n, "HANDLE");
1398
- return `__onEventV1__(${e(n.event.id)}, function(${o}) {
1399
- ${i}});
1451
+ const a = s.statementToCode(n, "HANDLE");
1452
+ return `__onEventV1__(${e(o)}, function(${i}) {
1453
+ ${a}});
1400
1454
  `;
1401
1455
  };
1402
1456
  const Ui = {
@@ -1474,15 +1528,15 @@ const Ui = {
1474
1528
  checkWarning_: function() {
1475
1529
  const t = Nn(this.event.id);
1476
1530
  if (!t) {
1477
- this.setWarningText(h("WARN_EVENT_NOT_FOUND"));
1531
+ this.setWarningText(f("WARN_EVENT_NOT_FOUND"));
1478
1532
  return;
1479
1533
  }
1480
1534
  if (t.kind !== this.event.kind) {
1481
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1535
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1482
1536
  return;
1483
1537
  }
1484
1538
  if (M(t.names, this.event.names) || (this.event.names = t.names), !M(t.params, this.event.params)) {
1485
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1539
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1486
1540
  return;
1487
1541
  }
1488
1542
  this.setWarningText(null);
@@ -1490,11 +1544,20 @@ const Ui = {
1490
1544
  };
1491
1545
  g.trigger_app_event_v1 = Ui;
1492
1546
  s.forBlock.trigger_app_event_v1 = function(t) {
1493
- const n = [t.event.id];
1494
- return `__callFunctionUpV1__('__triggerEventV1__', ${JSON.stringify(n)});
1547
+ const e = s.quote_, n = t, { eventKey: o } = Ie(n.event.id);
1548
+ let i = "";
1549
+ for (let c = 0; c < n.event.params.length; c++) {
1550
+ const u = s.valueToCode(
1551
+ n,
1552
+ "PARAM" + c,
1553
+ r.NONE
1554
+ );
1555
+ i += ", ", i += u;
1556
+ }
1557
+ return `__triggerCustomEventV1__(${e(o)}, ${i});
1495
1558
  `;
1496
1559
  };
1497
- m([
1560
+ T([
1498
1561
  {
1499
1562
  type: "watch_effect_v1",
1500
1563
  message0: "%{BKY_APP_V1_WATCH_EFFECT_TITLE}",
@@ -1518,7 +1581,7 @@ s.forBlock.watch_effect_v1 = function(t) {
1518
1581
  ${n}};
1519
1582
  `;
1520
1583
  };
1521
- m([
1584
+ T([
1522
1585
  {
1523
1586
  type: "app_debug_trace_v1",
1524
1587
  message0: "%{BKY_APP_V1_APP_DEBUG_TRACE_TITLE}",
@@ -1615,7 +1678,7 @@ s.forBlock.open_prompt_dlg_v1 = function(t) {
1615
1678
  ${i}}
1616
1679
  `;
1617
1680
  };
1618
- m([
1681
+ T([
1619
1682
  {
1620
1683
  type: "popup_message_v1",
1621
1684
  message0: "%{BKY_APP_V1_POPUP_MESSAGE_TITLE}",
@@ -1673,7 +1736,7 @@ const Yi = {
1673
1736
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1674
1737
  const e = this.getField("NODE");
1675
1738
  e.getOptions(!1), e.setValue(this.node.id);
1676
- const n = qe(this.node.id)?.[0];
1739
+ const n = Qe(this.node.id)?.[0];
1677
1740
  if (!n)
1678
1741
  return;
1679
1742
  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;
@@ -1692,7 +1755,7 @@ const Yi = {
1692
1755
  }, 0);
1693
1756
  },
1694
1757
  genNodeOpts_: function() {
1695
- return ve("callMethod");
1758
+ return Ce("callMethod");
1696
1759
  },
1697
1760
  genMethodOpts_: function() {
1698
1761
  return Si(this.node.id);
@@ -1716,14 +1779,14 @@ const Yi = {
1716
1779
  const n = this.node.key !== e.key;
1717
1780
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1718
1781
  const o = this.getField("METHOD");
1719
- if (o.getOptions(!1), n || !Ye(this.method.id)) {
1720
- const i = qe(this.node.id)?.[0];
1782
+ if (o.getOptions(!1), n || !Fe(this.method.id)) {
1783
+ const i = Qe(this.node.id)?.[0];
1721
1784
  o.setValue(i?.id ?? "");
1722
1785
  }
1723
1786
  this.onMethodChange_(o.getValue());
1724
1787
  },
1725
1788
  onMethodChange_: function(t) {
1726
- const e = Ye(t);
1789
+ const e = Fe(t);
1727
1790
  e ? (this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names, this.method.inputs = e.inputs, this.method.outputs = e.outputs) : (this.method.id = "", this.method.kind = "", this.method.names = [], this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShadow_(), setTimeout(() => {
1728
1791
  this.ensureBlocks_();
1729
1792
  }, 0);
@@ -1776,29 +1839,29 @@ const Yi = {
1776
1839
  checkWarning_: function() {
1777
1840
  const t = ht(this.node.id);
1778
1841
  if (!t) {
1779
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
1842
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
1780
1843
  return;
1781
1844
  }
1782
1845
  if (t.key !== this.node.key) {
1783
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
1846
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
1784
1847
  return;
1785
1848
  }
1786
1849
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1787
- const e = Ye(this.method.id);
1850
+ const e = Fe(this.method.id);
1788
1851
  if (!e) {
1789
- this.setWarningText(h("WARN_METHOD_NOT_FOUND"));
1852
+ this.setWarningText(f("WARN_METHOD_NOT_FOUND"));
1790
1853
  return;
1791
1854
  }
1792
1855
  if (e.kind !== this.method.kind) {
1793
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1856
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1794
1857
  return;
1795
1858
  }
1796
1859
  if (M(e.names, this.method.names) || (this.method.names = e.names), !M(e.inputs, this.method.inputs)) {
1797
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1860
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1798
1861
  return;
1799
1862
  }
1800
1863
  if (!M(e.outputs, this.method.outputs)) {
1801
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1864
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1802
1865
  return;
1803
1866
  }
1804
1867
  this.setWarningText(null);
@@ -1887,15 +1950,15 @@ const Fi = {
1887
1950
  checkWarning_: function() {
1888
1951
  const t = Dt(this.method.id);
1889
1952
  if (!t) {
1890
- this.setWarningText(h("WARN_METHOD_NOT_FOUND"));
1953
+ this.setWarningText(f("WARN_METHOD_NOT_FOUND"));
1891
1954
  return;
1892
1955
  }
1893
1956
  if (t.kind !== this.method.kind) {
1894
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1957
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1895
1958
  return;
1896
1959
  }
1897
1960
  if (M(t.names, this.method.names) || (this.method.names = t.names), !M(t.inputs, this.method.inputs)) {
1898
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1961
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1899
1962
  return;
1900
1963
  }
1901
1964
  this.setWarningText(null);
@@ -1935,7 +1998,7 @@ const wi = {
1935
1998
  this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
1936
1999
  const e = this.getField("METHOD");
1937
2000
  e.getOptions(!1), e.setValue(this.method.id);
1938
- const n = Qe(this.method.id)?.[0];
2001
+ const n = ze(this.method.id)?.[0];
1939
2002
  if (!n)
1940
2003
  return;
1941
2004
  this.output.key = n.key, this.output.name = n.name, this.output.type = n.type;
@@ -1977,14 +2040,14 @@ const wi = {
1977
2040
  const n = this.method.id !== e.id;
1978
2041
  this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names;
1979
2042
  const o = this.getField("OUTPUT");
1980
- if (o.getOptions(!1), n || !Fe(this.method.id, this.output.key)) {
1981
- const i = Qe(this.method.id)?.[0];
2043
+ if (o.getOptions(!1), n || !we(this.method.id, this.output.key)) {
2044
+ const i = ze(this.method.id)?.[0];
1982
2045
  o.setValue(i?.key ?? "");
1983
2046
  }
1984
2047
  this.onOutputChange_(o.getValue());
1985
2048
  },
1986
2049
  onOutputChange_: function(t) {
1987
- const e = Fe(this.method.id, t);
2050
+ const e = we(this.method.id, t);
1988
2051
  e ? (this.output.key = e.key, this.output.name = e.name, this.output.type = e.type) : (this.output.key = "", this.output.name = "", this.output.type = "string");
1989
2052
  },
1990
2053
  updateShape_: function() {
@@ -2004,21 +2067,21 @@ const wi = {
2004
2067
  checkWarning_: function() {
2005
2068
  const t = Dt(this.method.id);
2006
2069
  if (!t) {
2007
- this.setWarningText(h("WARN_METHOD_NOT_FOUND"));
2070
+ this.setWarningText(f("WARN_METHOD_NOT_FOUND"));
2008
2071
  return;
2009
2072
  }
2010
2073
  if (t.kind !== this.method.kind) {
2011
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
2074
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
2012
2075
  return;
2013
2076
  }
2014
2077
  t.names !== this.method.names && (this.method.names = t.names);
2015
- const e = Fe(this.method.id, this.output.key);
2078
+ const e = we(this.method.id, this.output.key);
2016
2079
  if (!e) {
2017
- this.setWarningText(h("WARN_OUTPUT_NOT_FOUND"));
2080
+ this.setWarningText(f("WARN_OUTPUT_NOT_FOUND"));
2018
2081
  return;
2019
2082
  }
2020
2083
  if (e.name !== this.output.name && (this.output.name = e.name), e.type !== this.output.type) {
2021
- this.setWarningText(h("WARN_OUTPUT_HAS_CHANGED"));
2084
+ this.setWarningText(f("WARN_OUTPUT_HAS_CHANGED"));
2022
2085
  return;
2023
2086
  }
2024
2087
  this.setWarningText(null);
@@ -2051,7 +2114,7 @@ s.forBlock.set_app_method_output_v1 = function(t) {
2051
2114
  return `__setMethodOutputV1__(${e(n.method.id)}, ${e(n.output.key)}, ${o});
2052
2115
  `;
2053
2116
  };
2054
- m([
2117
+ T([
2055
2118
  {
2056
2119
  type: "app_env_is_v1",
2057
2120
  message0: "%{BKY_APP_V1_APP_ENV_IS_TITLE}",
@@ -2093,7 +2156,7 @@ const Ki = {
2093
2156
  this.app.id = t.id, this.app.name = t.name;
2094
2157
  const e = this.getField("APP");
2095
2158
  e.getOptions(!1), e.setValue(this.app.id);
2096
- const n = Xe(this.app.id)?.[0];
2159
+ const n = Je(this.app.id)?.[0];
2097
2160
  if (!n)
2098
2161
  return;
2099
2162
  this.page.id = n.id, this.page.name = n.name;
@@ -2136,25 +2199,25 @@ const Ki = {
2136
2199
  const n = this.app.id !== e.id;
2137
2200
  this.app.id = e.id, this.app.name = e.name;
2138
2201
  const o = this.getField("PAGE");
2139
- if (o.getOptions(!1), n || !Ve(this.app.id, this.page.id)) {
2140
- const a = Xe(this.app.id)?.[0]?.id ?? "";
2202
+ if (o.getOptions(!1), n || !xe(this.app.id, this.page.id)) {
2203
+ const a = Je(this.app.id)?.[0]?.id ?? "";
2141
2204
  o.setValue(a), this.page.id === a && this.onPageChange_(a);
2142
2205
  }
2143
2206
  },
2144
2207
  onPageChange_: function(t) {
2145
- const e = Ve(this.app.id, t);
2208
+ const e = xe(this.app.id, t);
2146
2209
  e ? (this.page.id = e.id, this.page.name = e.name) : (this.page.id = "", this.page.name = "");
2147
2210
  },
2148
2211
  checkWarning_: function() {
2149
2212
  const t = Cn(this.app.id);
2150
2213
  if (!t) {
2151
- this.setWarningText(h("WARN_APP_NOT_FOUND"));
2214
+ this.setWarningText(f("WARN_APP_NOT_FOUND"));
2152
2215
  return;
2153
2216
  }
2154
2217
  t.name !== this.app.name && (this.app.name = t.name);
2155
- const e = Ve(this.app.id, this.page.id);
2218
+ const e = xe(this.app.id, this.page.id);
2156
2219
  if (!e) {
2157
- this.setWarningText(h("WARN_PAGE_NOT_FOUND"));
2220
+ this.setWarningText(f("WARN_PAGE_NOT_FOUND"));
2158
2221
  return;
2159
2222
  }
2160
2223
  e.name !== this.page.name && (this.page.name = e.name), this.setWarningText(null);
@@ -2216,11 +2279,11 @@ const $i = {
2216
2279
  },
2217
2280
  checkWarning_: function() {
2218
2281
  if (this.comp.id === void 0) {
2219
- this.setWarningText(h("WARN_COMP_NOT_FOUND"));
2282
+ this.setWarningText(f("WARN_COMP_NOT_FOUND"));
2220
2283
  return;
2221
2284
  }
2222
2285
  if (!kn(this.comp.id)) {
2223
- this.setWarningText(h("WARN_COMP_NOT_FOUND"));
2286
+ this.setWarningText(f("WARN_COMP_NOT_FOUND"));
2224
2287
  return;
2225
2288
  }
2226
2289
  this.setWarningText(null);
@@ -2274,7 +2337,7 @@ const Hi = {
2274
2337
  }, 0);
2275
2338
  },
2276
2339
  genNodeOpts_: function() {
2277
- return ve("getProperty");
2340
+ return Ce("getProperty");
2278
2341
  },
2279
2342
  genPropertyOpts_: function() {
2280
2343
  return no(this.node.id, "read");
@@ -2311,21 +2374,21 @@ const Hi = {
2311
2374
  checkWarning_: function() {
2312
2375
  const t = ht(this.node.id);
2313
2376
  if (!t) {
2314
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
2377
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
2315
2378
  return;
2316
2379
  }
2317
2380
  if (t.key !== this.node.key) {
2318
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
2381
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
2319
2382
  return;
2320
2383
  }
2321
2384
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2322
2385
  const e = Ot(this.property.id);
2323
2386
  if (!e) {
2324
- this.setWarningText(h("WARN_PROPERTY_NOT_FOUND"));
2387
+ this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2325
2388
  return;
2326
2389
  }
2327
2390
  if (e.kind !== this.property.kind) {
2328
- this.setWarningText(h("WARN_PROPERTY_HAS_CHANGED"));
2391
+ this.setWarningText(f("WARN_PROPERTY_HAS_CHANGED"));
2329
2392
  return;
2330
2393
  }
2331
2394
  M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
@@ -2379,7 +2442,7 @@ const Gi = {
2379
2442
  }, 0);
2380
2443
  },
2381
2444
  genNodeOpts_: function() {
2382
- return ve("setProperty");
2445
+ return Ce("setProperty");
2383
2446
  },
2384
2447
  genPropertyOpts_: function() {
2385
2448
  return no(this.node.id, "write");
@@ -2432,21 +2495,21 @@ const Gi = {
2432
2495
  checkWarning_: function() {
2433
2496
  const t = ht(this.node.id);
2434
2497
  if (!t) {
2435
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
2498
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
2436
2499
  return;
2437
2500
  }
2438
2501
  if (t.key !== this.node.key) {
2439
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
2502
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
2440
2503
  return;
2441
2504
  }
2442
2505
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2443
2506
  const e = Ot(this.property.id);
2444
2507
  if (!e) {
2445
- this.setWarningText(h("WARN_PROPERTY_NOT_FOUND"));
2508
+ this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2446
2509
  return;
2447
2510
  }
2448
2511
  if (e.kind !== this.property.kind) {
2449
- this.setWarningText(h("WARN_PROPERTY_HAS_CHANGED"));
2512
+ this.setWarningText(f("WARN_PROPERTY_HAS_CHANGED"));
2450
2513
  return;
2451
2514
  }
2452
2515
  M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
@@ -2507,11 +2570,11 @@ const Wi = {
2507
2570
  checkWarning_: function() {
2508
2571
  const t = ue(this.state.id);
2509
2572
  if (!t) {
2510
- this.setWarningText(h("WARN_STATE_NOT_FOUND"));
2573
+ this.setWarningText(f("WARN_STATE_NOT_FOUND"));
2511
2574
  return;
2512
2575
  }
2513
2576
  if (t.name !== this.state.name && (this.state.name = t.name), t.type !== this.state.type) {
2514
- this.setWarningText(h("WARN_STATE_HAS_CHANGED"));
2577
+ this.setWarningText(f("WARN_STATE_HAS_CHANGED"));
2515
2578
  return;
2516
2579
  }
2517
2580
  this.setWarningText(null);
@@ -2576,11 +2639,11 @@ const ji = {
2576
2639
  checkWarning_: function() {
2577
2640
  const t = ue(this.state.id);
2578
2641
  if (!t) {
2579
- this.setWarningText(h("WARN_STATE_NOT_FOUND"));
2642
+ this.setWarningText(f("WARN_STATE_NOT_FOUND"));
2580
2643
  return;
2581
2644
  }
2582
2645
  if (t.name !== this.state.name && (this.state.name = t.name), t.type !== this.state.type) {
2583
- this.setWarningText(h("WARN_STATE_HAS_CHANGED"));
2646
+ this.setWarningText(f("WARN_STATE_HAS_CHANGED"));
2584
2647
  return;
2585
2648
  }
2586
2649
  this.setWarningText(null);
@@ -2592,7 +2655,7 @@ s.forBlock.set_app_state_v1 = function(t) {
2592
2655
  return `__setStateV1__(${e(n.state.id)}, ${o});
2593
2656
  `;
2594
2657
  };
2595
- m([
2658
+ T([
2596
2659
  {
2597
2660
  type: "color_blend_v1",
2598
2661
  message0: "%{BKY_COLOR_V1_BLEND_TITLE}",
@@ -2646,7 +2709,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
2646
2709
  `
2647
2710
  )}(${e}, ${n}, ${o})`, r.FUNCTION_CALL];
2648
2711
  };
2649
- m([
2712
+ T([
2650
2713
  {
2651
2714
  type: "color_picker_v1",
2652
2715
  message0: "%1",
@@ -3227,7 +3290,7 @@ m([
3227
3290
  s.forBlock.color_picker_v1 = function(t) {
3228
3291
  return [s.quote_(t.getFieldValue("COLOR")), r.ATOMIC];
3229
3292
  };
3230
- m([
3293
+ T([
3231
3294
  {
3232
3295
  type: "color_random_v1",
3233
3296
  message0: "%{BKY_COLOR_V1_RANDOM_TITLE}",
@@ -3248,7 +3311,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}() {
3248
3311
  `
3249
3312
  )}()`, r.FUNCTION_CALL];
3250
3313
  };
3251
- m([
3314
+ T([
3252
3315
  {
3253
3316
  type: "color_rgb_v1",
3254
3317
  message0: "%{BKY_COLOR_V1_RGB_TITLE}",
@@ -3438,11 +3501,11 @@ s.forBlock.on_flow_state_event_v1 = function() {
3438
3501
  `;
3439
3502
  };
3440
3503
  function Gt(t) {
3441
- const e = T.compute.spaces.find((n) => n.id === t);
3504
+ const e = E.compute.spaces.find((n) => n.id === t);
3442
3505
  return e ? e.funcs : [];
3443
3506
  }
3444
3507
  function St(t, e) {
3445
- const n = T.compute.spaces.find((o) => o.id === t);
3508
+ const n = E.compute.spaces.find((o) => o.id === t);
3446
3509
  if (n)
3447
3510
  return n.funcs.find((o) => o.id === e);
3448
3511
  }
@@ -3452,27 +3515,27 @@ function io(t) {
3452
3515
  e.push([i, o]);
3453
3516
  }), k(e);
3454
3517
  }
3455
- function ze() {
3456
- return T.compute.activeFunc;
3518
+ function Ze() {
3519
+ return E.compute.activeFunc;
3457
3520
  }
3458
3521
  function Ln(t) {
3459
- const { outputs: e } = T.compute.activeFunc;
3522
+ const { outputs: e } = E.compute.activeFunc;
3460
3523
  return e.find((n) => n.id === t);
3461
3524
  }
3462
3525
  function Zi() {
3463
- const t = [], { outputs: e } = T.compute.activeFunc;
3526
+ const t = [], { outputs: e } = E.compute.activeFunc;
3464
3527
  return e.forEach(({ id: n, name: o }) => {
3465
3528
  t.push([o, n]);
3466
3529
  }), k(t);
3467
3530
  }
3468
3531
  function qt(t) {
3469
3532
  const e = [];
3470
- return T.compute.spaces.forEach((n) => {
3533
+ return E.compute.spaces.forEach((n) => {
3471
3534
  t === "func" && n.funcs.length > 0 && e.push(n), t === "flow" && n.flows.length > 0 && e.push(n);
3472
3535
  }), e;
3473
3536
  }
3474
3537
  function le(t) {
3475
- return T.compute.spaces.find((e) => e.id === t);
3538
+ return E.compute.spaces.find((e) => e.id === t);
3476
3539
  }
3477
3540
  function so(t) {
3478
3541
  const e = [];
@@ -3607,21 +3670,21 @@ const ts = {
3607
3670
  checkWarning_: function() {
3608
3671
  const t = le(this.space.id);
3609
3672
  if (!t) {
3610
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
3673
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
3611
3674
  return;
3612
3675
  }
3613
3676
  t.name !== this.space.name && (this.space.name = t.name);
3614
3677
  const e = St(this.space.id, this.func.id);
3615
3678
  if (!e) {
3616
- this.setWarningText(h("WARN_FUNC_NOT_FOUND"));
3679
+ this.setWarningText(f("WARN_FUNC_NOT_FOUND"));
3617
3680
  return;
3618
3681
  }
3619
3682
  if (!M(e.inputs, this.func.inputs)) {
3620
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3683
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3621
3684
  return;
3622
3685
  }
3623
3686
  if (!M(e.outputs, this.func.outputs)) {
3624
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3687
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3625
3688
  return;
3626
3689
  }
3627
3690
  this.setWarningText(null);
@@ -3632,19 +3695,19 @@ s.forBlock.call_func_v1 = function(t) {
3632
3695
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3633
3696
  let c = "";
3634
3697
  c += `${e}var __inputs__ = {
3635
- `, o.func.inputs.forEach(({ id: f }, p) => {
3636
- const E = s.valueToCode(
3698
+ `, o.func.inputs.forEach(({ id: h }, p) => {
3699
+ const m = s.valueToCode(
3637
3700
  o,
3638
3701
  "INPUT" + p,
3639
3702
  r.ATOMIC
3640
3703
  );
3641
- c += `${e}${e}${n(f)}: ${E},
3704
+ c += `${e}${e}${n(h)}: ${m},
3642
3705
  `;
3643
3706
  }), c += `${e}};`;
3644
3707
  const u = n(o.space.name + "/" + o.func.name);
3645
3708
  let l = "";
3646
- o.func.outputs.forEach(({ id: f }) => {
3647
- l += `${e}var __output${f}__ = __result__[${n(f)}];
3709
+ o.func.outputs.forEach(({ id: h }) => {
3710
+ l += `${e}var __output${h}__ = __result__[${n(h)}];
3648
3711
  `;
3649
3712
  });
3650
3713
  const _ = s.statementToCode(o, "CALLBACK");
@@ -3781,21 +3844,21 @@ const es = {
3781
3844
  checkWarning_: function() {
3782
3845
  const t = le(this.space.id);
3783
3846
  if (!t) {
3784
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
3847
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
3785
3848
  return;
3786
3849
  }
3787
3850
  t.name !== this.space.name && (this.space.name = t.name);
3788
3851
  const e = St(this.space.id, this.func.id);
3789
3852
  if (!e) {
3790
- this.setWarningText(h("WARN_FUNC_NOT_FOUND"));
3853
+ this.setWarningText(f("WARN_FUNC_NOT_FOUND"));
3791
3854
  return;
3792
3855
  }
3793
3856
  if (!M(e.inputs, this.func.inputs)) {
3794
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3857
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3795
3858
  return;
3796
3859
  }
3797
3860
  if (!M(e.outputs, this.func.outputs)) {
3798
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3861
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3799
3862
  return;
3800
3863
  }
3801
3864
  this.setWarningText(null);
@@ -3806,19 +3869,19 @@ s.forBlock.call_func_internal_v1 = function(t) {
3806
3869
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3807
3870
  let c = `${e}var __inputs__ = {
3808
3871
  `;
3809
- o.func.inputs.forEach(({ id: f }, p) => {
3810
- const E = s.valueToCode(
3872
+ o.func.inputs.forEach(({ id: h }, p) => {
3873
+ const m = s.valueToCode(
3811
3874
  o,
3812
3875
  "INPUT" + p,
3813
3876
  r.ATOMIC
3814
3877
  );
3815
- c += `${e}${e}${n(f)}: ${E},
3878
+ c += `${e}${e}${n(h)}: ${m},
3816
3879
  `;
3817
3880
  }), c += `${e}};`;
3818
3881
  const u = o.space.name + "/" + o.func.name;
3819
3882
  let l = "";
3820
- o.func.outputs.forEach(({ id: f }) => {
3821
- l += `${e}var __output$${f}__ = __result__.outputs[${n(f)}];
3883
+ o.func.outputs.forEach(({ id: h }) => {
3884
+ l += `${e}var __output$${h}__ = __result__.outputs[${n(h)}];
3822
3885
  `;
3823
3886
  });
3824
3887
  const _ = s.statementToCode(o, "CALLBACK");
@@ -3841,7 +3904,7 @@ const ns = {
3841
3904
  initData_: function() {
3842
3905
  if (this.func.id)
3843
3906
  return;
3844
- const { id: t, inputs: e } = ze();
3907
+ const { id: t, inputs: e } = Ze();
3845
3908
  this.func.id = t, this.func.inputs = e;
3846
3909
  },
3847
3910
  saveExtraState: function() {
@@ -3878,9 +3941,9 @@ const ns = {
3878
3941
  Y(this, t);
3879
3942
  },
3880
3943
  checkWarning_: function() {
3881
- const { id: t, inputs: e } = ze();
3944
+ const { id: t, inputs: e } = Ze();
3882
3945
  if (this.func.id !== t && (this.func.id = t), !M(e, this.func.inputs)) {
3883
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3946
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3884
3947
  return;
3885
3948
  }
3886
3949
  this.setWarningText(null);
@@ -3910,7 +3973,7 @@ const os = {
3910
3973
  initData_: function() {
3911
3974
  if (this.output.id)
3912
3975
  return;
3913
- const t = ze().outputs?.[0];
3976
+ const t = Ze().outputs?.[0];
3914
3977
  t && (this.output.id = t.id, this.output.name = t.name, this.output.type = t.type);
3915
3978
  },
3916
3979
  saveExtraState: function() {
@@ -3961,11 +4024,11 @@ const os = {
3961
4024
  checkWarning_: function() {
3962
4025
  const t = Ln(this.output.id);
3963
4026
  if (!t) {
3964
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
4027
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3965
4028
  return;
3966
4029
  }
3967
4030
  if (t.name !== this.output.name && (this.output.name = t.name), t.type !== this.output.type) {
3968
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
4031
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3969
4032
  return;
3970
4033
  }
3971
4034
  this.setWarningText(null);
@@ -3998,7 +4061,7 @@ s.forBlock.set_func_output_v1 = function(t) {
3998
4061
  return `__setFuncOutputV1__(${e(o)}, ${a});
3999
4062
  `;
4000
4063
  };
4001
- m([
4064
+ T([
4002
4065
  {
4003
4066
  type: "compute_debug_trace_v1",
4004
4067
  message0: "%{BKY_COMPUTE_V1_COMPUTE_DEBUG_TRACE_TITLE}",
@@ -4020,7 +4083,7 @@ s.forBlock.compute_debug_trace_v1 = function(t) {
4020
4083
  return `__debugTraceV1__(${s.valueToCode(t, "OBJECT", r.ATOMIC)});
4021
4084
  `;
4022
4085
  };
4023
- m([
4086
+ T([
4024
4087
  {
4025
4088
  type: "compute_env_is_v1",
4026
4089
  message0: "%{BKY_COMPUTE_V1_COMPUTE_ENV_IS_TITLE}",
@@ -4043,46 +4106,46 @@ m([
4043
4106
  s.forBlock.compute_env_is_v1 = function(t) {
4044
4107
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, r.ATOMIC];
4045
4108
  };
4046
- function Q() {
4109
+ function tt() {
4047
4110
  const t = [];
4048
- return T.data.spaces.forEach((e) => {
4111
+ return E.data.spaces.forEach((e) => {
4049
4112
  e.tables.length > 0 && t.push(e);
4050
4113
  }), t;
4051
4114
  }
4052
4115
  function ft(t) {
4053
- const { spaces: e } = T.data;
4116
+ const { spaces: e } = E.data;
4054
4117
  return e.find((n) => n.id === t);
4055
4118
  }
4056
- function Ce() {
4119
+ function ke() {
4057
4120
  const t = [];
4058
- return Q().forEach(({ id: n, name: o }) => {
4121
+ return tt().forEach(({ id: n, name: o }) => {
4059
4122
  t.push([o, n]);
4060
4123
  }), k(t);
4061
4124
  }
4062
4125
  function $(t) {
4063
- const { spaces: e } = T.data, n = e.find((o) => o.id === t);
4126
+ const { spaces: e } = E.data, n = e.find((o) => o.id === t);
4064
4127
  return n ? n.tables : [];
4065
4128
  }
4066
- function j(t, e) {
4067
- const { spaces: n } = T.data, o = n.find((i) => i.id === t);
4129
+ function X(t, e) {
4130
+ const { spaces: n } = E.data, o = n.find((i) => i.id === t);
4068
4131
  if (o)
4069
4132
  return o.tables.find((i) => i.id === e);
4070
4133
  }
4071
- function ke(t) {
4134
+ function Ne(t) {
4072
4135
  const e = [];
4073
4136
  return $(t).forEach(({ id: o, name: i }) => {
4074
4137
  e.push([i, o]);
4075
4138
  }), k(e);
4076
4139
  }
4077
4140
  function _e(t, e) {
4078
- const { spaces: n } = T.data, o = n.find((a) => a.id === t);
4141
+ const { spaces: n } = E.data, o = n.find((a) => a.id === t);
4079
4142
  if (!o)
4080
4143
  return [];
4081
4144
  const i = o.tables.find((a) => a.id === e);
4082
4145
  return i ? i.columns : [];
4083
4146
  }
4084
- function we(t, e, n) {
4085
- const { spaces: o } = T.data, i = o.find((c) => c.id === t);
4147
+ function Ke(t, e, n) {
4148
+ const { spaces: o } = E.data, i = o.find((c) => c.id === t);
4086
4149
  if (!i)
4087
4150
  return;
4088
4151
  const a = i.tables.find((c) => c.id === e);
@@ -4100,7 +4163,7 @@ function ss(t) {
4100
4163
  if (e.targetBlock())
4101
4164
  return;
4102
4165
  let n, o;
4103
- const i = Q()?.[0];
4166
+ const i = tt()?.[0];
4104
4167
  if (i) {
4105
4168
  const u = $(i.id)?.[0];
4106
4169
  if (u) {
@@ -4231,7 +4294,7 @@ const rs = {
4231
4294
  initData_: function() {
4232
4295
  if (this.space.id)
4233
4296
  return;
4234
- const t = Q()?.[0];
4297
+ const t = tt()?.[0];
4235
4298
  if (!t)
4236
4299
  return;
4237
4300
  this.space.id = t.id, this.space.name = t.name;
@@ -4255,10 +4318,10 @@ const rs = {
4255
4318
  }, 0);
4256
4319
  },
4257
4320
  genSpaceOpts_: function() {
4258
- return Ce();
4321
+ return ke();
4259
4322
  },
4260
4323
  genTableOpts_: function() {
4261
- return ke(this.space.id);
4324
+ return Ne(this.space.id);
4262
4325
  },
4263
4326
  genColumnOpts_: function() {
4264
4327
  return is(this.space.id, this.table.id);
@@ -4280,25 +4343,25 @@ const rs = {
4280
4343
  return;
4281
4344
  }
4282
4345
  const n = e.id !== this.space.id;
4283
- if (this.space.id = e.id, this.space.name = e.name, n || !j(this.space.id, this.table.id)) {
4346
+ if (this.space.id = e.id, this.space.name = e.name, n || !X(this.space.id, this.table.id)) {
4284
4347
  const o = $(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4285
4348
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
4286
4349
  }
4287
4350
  },
4288
4351
  onTableChange_: function(t) {
4289
- const e = j(this.space.id, t);
4352
+ const e = X(this.space.id, t);
4290
4353
  if (!e) {
4291
4354
  console.assert(!1);
4292
4355
  return;
4293
4356
  }
4294
4357
  const n = e.id !== this.table.id;
4295
- if (this.table.id = e.id, this.table.name = e.name, n || !we(this.space.id, this.table.id, this.column.id)) {
4358
+ if (this.table.id = e.id, this.table.name = e.name, n || !Ke(this.space.id, this.table.id, this.column.id)) {
4296
4359
  const o = _e(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
4297
4360
  i.getOptions(!1), i.setValue(o, !1), this.onColumnChange_(o);
4298
4361
  }
4299
4362
  },
4300
4363
  onColumnChange_: function(t) {
4301
- const e = we(this.space.id, this.table.id, t);
4364
+ const e = Ke(this.space.id, this.table.id, t);
4302
4365
  e ? (this.column.id = e.id, this.column.name = e.name, this.column.type = e.type, this.column.extend = e.extend) : (this.column.id = "", this.column.name = "", this.column.type = "", this.column.extend = ""), this.updateShape_(), this.updateBlocks_(!0), this.updateCheck_();
4303
4366
  },
4304
4367
  updateShape_: function() {
@@ -4317,7 +4380,7 @@ const rs = {
4317
4380
  n && n.dispose();
4318
4381
  else if (n)
4319
4382
  return;
4320
- const o = je(this.workspace, this.column.type);
4383
+ const o = Xe(this.workspace, this.column.type);
4321
4384
  o && (e.setCheck(null), e.connect(o.outputConnection));
4322
4385
  },
4323
4386
  updateCheck_: function() {
@@ -4327,27 +4390,27 @@ const rs = {
4327
4390
  checkWarning_: function() {
4328
4391
  const t = ft(this.space.id);
4329
4392
  if (!t) {
4330
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
4393
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
4331
4394
  return;
4332
4395
  }
4333
4396
  t.name !== this.space.name && (this.space.name = t.name);
4334
- const e = j(this.space.id, this.table.id);
4397
+ const e = X(this.space.id, this.table.id);
4335
4398
  if (!e) {
4336
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
4399
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
4337
4400
  return;
4338
4401
  }
4339
4402
  e.name !== this.table.name && (this.table.name = e.name);
4340
- const n = we(
4403
+ const n = Ke(
4341
4404
  this.space.id,
4342
4405
  this.table.id,
4343
4406
  this.column.id
4344
4407
  );
4345
4408
  if (!n) {
4346
- this.setWarningText(h("WARN_COLUMN_NOT_FOUND"));
4409
+ this.setWarningText(f("WARN_COLUMN_NOT_FOUND"));
4347
4410
  return;
4348
4411
  }
4349
4412
  if (n.name !== this.column.name && (this.column.name = n.name), n.type !== this.column.type || n.extend !== this.column.extend) {
4350
- this.setWarningText(h("WARN_COLUMN_HAS_CHANGED"));
4413
+ this.setWarningText(f("WARN_COLUMN_HAS_CHANGED"));
4351
4414
  return;
4352
4415
  }
4353
4416
  this.setWarningText(null);
@@ -4465,7 +4528,7 @@ function ps(t) {
4465
4528
  const e = t.getInput("TABLE").connection;
4466
4529
  if (e.targetBlock())
4467
4530
  return;
4468
- const n = Q()?.[0], o = $(n?.id ?? "")?.[0], i = {
4531
+ const n = tt()?.[0], o = $(n?.id ?? "")?.[0], i = {
4469
4532
  type: "select_table_v1",
4470
4533
  extraState: {
4471
4534
  space: {
@@ -4484,7 +4547,7 @@ function ds(t) {
4484
4547
  const e = t.getInput("CONDITION").connection;
4485
4548
  if (e.targetBlock())
4486
4549
  return;
4487
- const n = Q()?.[0], o = $(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
4550
+ const n = tt()?.[0], o = $(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
4488
4551
  type: "cond_atomic_v1",
4489
4552
  extraState: {
4490
4553
  space: {
@@ -4567,7 +4630,7 @@ ${e}}
4567
4630
  ${i}}
4568
4631
  `;
4569
4632
  };
4570
- m([
4633
+ T([
4571
4634
  {
4572
4635
  type: "interrupt_transaction_v1",
4573
4636
  message0: "%{BKY_DATA_V1_INTERRUPT_TRANSACTION_TITLE}",
@@ -4594,7 +4657,7 @@ function ms(t) {
4594
4657
  if (e.targetBlock())
4595
4658
  return;
4596
4659
  let n, o;
4597
- const i = Q()?.[0];
4660
+ const i = tt()?.[0];
4598
4661
  if (i) {
4599
4662
  const u = $(i.id)?.[0];
4600
4663
  if (u) {
@@ -4693,7 +4756,7 @@ function gs(t) {
4693
4756
  }, o = K.blocks.append(n, t.workspace);
4694
4757
  e.connect(o.previousConnection);
4695
4758
  }
4696
- m([
4759
+ T([
4697
4760
  {
4698
4761
  type: "query_data_container_v1",
4699
4762
  message0: "%{BKY_DATA_EXTRA} %1",
@@ -4750,7 +4813,7 @@ ${e}}
4750
4813
  ${a}}
4751
4814
  `;
4752
4815
  };
4753
- m([
4816
+ T([
4754
4817
  {
4755
4818
  type: "query_extra_limit_v1",
4756
4819
  message0: "%{BKY_DATA_V1_QUERY_EXTRA_LIMIT_TITLE}",
@@ -4777,7 +4840,7 @@ s.forBlock.query_extra_limit_v1 = function(t) {
4777
4840
  const e = s.valueToCode(t, "OFFSET", r.ATOMIC) || 0, n = s.valueToCode(t, "LIMIT", r.ATOMIC) || 0;
4778
4841
  return [`{type:'limit',value:${e},value2:${n}}`, r.ATOMIC];
4779
4842
  };
4780
- m([
4843
+ T([
4781
4844
  {
4782
4845
  type: "query_extra_sortby_v1",
4783
4846
  message0: "%{BKY_DATA_V1_QUERY_EXTRA_SORTBY_TITLE}",
@@ -4841,7 +4904,7 @@ const ys = {
4841
4904
  initData_: function() {
4842
4905
  if (this.space.id)
4843
4906
  return;
4844
- const t = Q()?.[0];
4907
+ const t = tt()?.[0];
4845
4908
  if (!t)
4846
4909
  return;
4847
4910
  this.space.id = t.id, this.space.name = t.name;
@@ -4867,10 +4930,10 @@ const ys = {
4867
4930
  }, 0);
4868
4931
  },
4869
4932
  genSpaceOpts_: function() {
4870
- return Ce();
4933
+ return ke();
4871
4934
  },
4872
4935
  genTableOpts_: function() {
4873
- return ke(this.space.id);
4936
+ return Ne(this.space.id);
4874
4937
  },
4875
4938
  genColumnOpts_: function() {
4876
4939
  const t = [];
@@ -4907,13 +4970,13 @@ const ys = {
4907
4970
  return;
4908
4971
  }
4909
4972
  const n = e.id !== this.space.id;
4910
- if (this.space.id = e.id, this.space.name = e.name, n || !j(this.space.id, this.table.id)) {
4973
+ if (this.space.id = e.id, this.space.name = e.name, n || !X(this.space.id, this.table.id)) {
4911
4974
  const o = $(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4912
4975
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
4913
4976
  }
4914
4977
  },
4915
4978
  onTableChange_: function(t) {
4916
- const e = j(this.space.id, t);
4979
+ const e = X(this.space.id, t);
4917
4980
  if (!e) {
4918
4981
  console.assert(!1);
4919
4982
  return;
@@ -5009,17 +5072,17 @@ const ys = {
5009
5072
  checkWarning_: function() {
5010
5073
  const t = ft(this.space.id);
5011
5074
  if (!t) {
5012
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
5075
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
5013
5076
  return;
5014
5077
  }
5015
5078
  t.name !== this.space.name && (this.space.name = t.name);
5016
- const e = j(this.space.id, this.table.id);
5079
+ const e = X(this.space.id, this.table.id);
5017
5080
  if (!e) {
5018
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
5081
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5019
5082
  return;
5020
5083
  }
5021
5084
  if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
5022
- this.setWarningText(h("WARN_TABLE_HAS_CHANGED"));
5085
+ this.setWarningText(f("WARN_TABLE_HAS_CHANGED"));
5023
5086
  return;
5024
5087
  }
5025
5088
  this.setWarningText(null);
@@ -5029,8 +5092,8 @@ g.select_column_v1 = ys;
5029
5092
  s.forBlock.select_column_v1 = function(t) {
5030
5093
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5031
5094
  for (let l = 0; l < n.itemCount_; l++) {
5032
- const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, f = n.getFieldValue("ALIAS" + l);
5033
- a.push({ name: d, alias: f });
5095
+ const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, h = n.getFieldValue("ALIAS" + l);
5096
+ a.push({ name: d, alias: h });
5034
5097
  }
5035
5098
  let c = "[";
5036
5099
  return a.forEach(({ name: l, alias: _ }, d) => {
@@ -5056,7 +5119,7 @@ const vs = {
5056
5119
  initData_: function() {
5057
5120
  if (this.space.id)
5058
5121
  return;
5059
- const t = Q()?.[0];
5122
+ const t = tt()?.[0];
5060
5123
  if (!t)
5061
5124
  return;
5062
5125
  this.space.id = t.id, this.space.name = t.name;
@@ -5079,10 +5142,10 @@ const vs = {
5079
5142
  this.space.id = t.space?.id ?? "", this.space.name = t.space?.name ?? "", this.table.id = t.table?.id ?? "", this.table.name = t.table?.name ?? "", this.checkWarning_();
5080
5143
  },
5081
5144
  genSpaceOpts_: function() {
5082
- return Ce();
5145
+ return ke();
5083
5146
  },
5084
5147
  genTableOpts_: function() {
5085
- return ke(this.space.id);
5148
+ return Ne(this.space.id);
5086
5149
  },
5087
5150
  onchange: function(t) {
5088
5151
  if (t.type === b.STATE_CHANGE)
@@ -5101,13 +5164,13 @@ const vs = {
5101
5164
  return;
5102
5165
  }
5103
5166
  let n = !1;
5104
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !j(this.space.id, this.table.id)) {
5167
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !X(this.space.id, this.table.id)) {
5105
5168
  const i = $(this.space.id)?.[0];
5106
5169
  i ? this.setFieldValue(i.id, "TABLE") : this.setFieldValue("", "TABLE");
5107
5170
  }
5108
5171
  },
5109
5172
  onTableChange_: function(t) {
5110
- const e = j(this.space.id, t);
5173
+ const e = X(this.space.id, t);
5111
5174
  if (!e) {
5112
5175
  console.assert(!1);
5113
5176
  return;
@@ -5117,13 +5180,13 @@ const vs = {
5117
5180
  checkWarning_: function() {
5118
5181
  const t = ft(this.space.id);
5119
5182
  if (!t) {
5120
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
5183
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
5121
5184
  return;
5122
5185
  }
5123
5186
  t.name !== this.space.name && (this.space.name = t.name);
5124
- const e = j(this.space.id, this.table.id);
5187
+ const e = X(this.space.id, this.table.id);
5125
5188
  if (!e) {
5126
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
5189
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5127
5190
  return;
5128
5191
  }
5129
5192
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
@@ -5237,7 +5300,7 @@ const Ls = {
5237
5300
  initData_: function() {
5238
5301
  if (this.space.id)
5239
5302
  return;
5240
- const t = Q()?.[0];
5303
+ const t = tt()?.[0];
5241
5304
  if (!t)
5242
5305
  return;
5243
5306
  this.space.id = t.id, this.space.name = t.name;
@@ -5263,10 +5326,10 @@ const Ls = {
5263
5326
  }, 0);
5264
5327
  },
5265
5328
  genSpaceOpts_: function() {
5266
- return Ce();
5329
+ return ke();
5267
5330
  },
5268
5331
  genTableOpts_: function() {
5269
- return ke(this.space.id);
5332
+ return Ne(this.space.id);
5270
5333
  },
5271
5334
  genColumnOpts_: function() {
5272
5335
  const t = [];
@@ -5303,13 +5366,13 @@ const Ls = {
5303
5366
  return;
5304
5367
  }
5305
5368
  const n = e.id !== this.space.id;
5306
- if (this.space.id = e.id, this.space.name = e.name, n || !j(this.space.id, this.table.id)) {
5369
+ if (this.space.id = e.id, this.space.name = e.name, n || !X(this.space.id, this.table.id)) {
5307
5370
  const o = $(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5308
5371
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
5309
5372
  }
5310
5373
  },
5311
5374
  onTableChange_: function(t) {
5312
- const e = j(this.space.id, t);
5375
+ const e = X(this.space.id, t);
5313
5376
  if (!e) {
5314
5377
  console.assert(!1);
5315
5378
  return;
@@ -5333,7 +5396,7 @@ const Ls = {
5333
5396
  }
5334
5397
  const o = this.getInput("ADD" + t).connection, i = o.targetBlock();
5335
5398
  i && i.dispose();
5336
- const a = je(this.workspace, n.type);
5399
+ const a = Xe(this.workspace, n.type);
5337
5400
  a && (o.setCheck(null), o.connect(a.outputConnection)), this.updateCheck_();
5338
5401
  },
5339
5402
  decompose: function(t) {
@@ -5424,7 +5487,7 @@ const Ls = {
5424
5487
  if (!c)
5425
5488
  continue;
5426
5489
  n.setCheck(null);
5427
- const u = je(this.workspace, c.type);
5490
+ const u = Xe(this.workspace, c.type);
5428
5491
  u && o.connect(u.outputConnection);
5429
5492
  }
5430
5493
  },
@@ -5440,17 +5503,17 @@ const Ls = {
5440
5503
  checkWarning_: function() {
5441
5504
  const t = ft(this.space.id);
5442
5505
  if (!t) {
5443
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
5506
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
5444
5507
  return;
5445
5508
  }
5446
5509
  t.name !== this.space.name && (this.space.name = t.name);
5447
- const e = j(this.space.id, this.table.id);
5510
+ const e = X(this.space.id, this.table.id);
5448
5511
  if (!e) {
5449
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
5512
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5450
5513
  return;
5451
5514
  }
5452
5515
  if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
5453
- this.setWarningText(h("WARN_TABLE_HAS_CHANGED"));
5516
+ this.setWarningText(f("WARN_TABLE_HAS_CHANGED"));
5454
5517
  return;
5455
5518
  }
5456
5519
  this.setWarningText(null);
@@ -5460,8 +5523,8 @@ g.update_column_v1 = Ls;
5460
5523
  s.forBlock.update_column_v1 = function(t) {
5461
5524
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5462
5525
  for (let l = 0; l < n.itemCount_; l++) {
5463
- const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, f = s.valueToCode(n, "ADD" + l, r.ATOMIC) || "null";
5464
- a.push({ name: d, value: f });
5526
+ const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, h = s.valueToCode(n, "ADD" + l, r.ATOMIC) || "null";
5527
+ a.push({ name: d, value: h });
5465
5528
  }
5466
5529
  let c = "[";
5467
5530
  return a.forEach(({ name: l, value: _ }, d) => {
@@ -5473,7 +5536,7 @@ function Ss(t) {
5473
5536
  if (e.targetBlock())
5474
5537
  return;
5475
5538
  let n, o;
5476
- const i = Q()?.[0];
5539
+ const i = tt()?.[0];
5477
5540
  if (i) {
5478
5541
  const u = $(i.id)?.[0];
5479
5542
  if (u) {
@@ -5578,7 +5641,7 @@ ${i}}
5578
5641
  const Rs = C.xml, Ds = {
5579
5642
  init: function() {
5580
5643
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5581
- new Z(Lt, 20, 20, void 0, () => {
5644
+ new ot(Lt, 20, 20, void 0, () => {
5582
5645
  this.isInFlyout || this.addEntry_();
5583
5646
  })
5584
5647
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
@@ -5597,11 +5660,11 @@ const Rs = C.xml, Ds = {
5597
5660
  for (let t = 0; t < this.length; t++) {
5598
5661
  const e = "ENTRY" + t, n = this.appendValueInput(e);
5599
5662
  n.appendField(
5600
- new Z(Lt, 20, 20, void 0, () => {
5663
+ new ot(Lt, 20, 20, void 0, () => {
5601
5664
  this.isInFlyout || this.addEntry_(n);
5602
5665
  })
5603
5666
  ), n.appendField(new gn(String(t))), n.appendField(
5604
- new Z(se, 20, 20, void 0, () => {
5667
+ new ot(se, 20, 20, void 0, () => {
5605
5668
  this.isInFlyout || this.removeEntry_(n);
5606
5669
  })
5607
5670
  ), this.moveInputBefore(e, "ADD");
@@ -5616,11 +5679,11 @@ const Rs = C.xml, Ds = {
5616
5679
  }
5617
5680
  const n = this.appendValueInput("ENTRY" + e);
5618
5681
  n.appendField(
5619
- new Z(Lt, 20, 20, void 0, () => {
5682
+ new ot(Lt, 20, 20, void 0, () => {
5620
5683
  this.isInFlyout || this.addEntry_(n);
5621
5684
  })
5622
5685
  ), n.appendField(new gn(String(e))), n.appendField(
5623
- new Z(se, 20, 20, void 0, () => {
5686
+ new ot(se, 20, 20, void 0, () => {
5624
5687
  this.isInFlyout || this.removeEntry_(n);
5625
5688
  })
5626
5689
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -5652,7 +5715,7 @@ g.json_boolean_v1 = Ms;
5652
5715
  const Sn = C.xml, Us = {
5653
5716
  init: function() {
5654
5717
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5655
- new Z(Lt, 20, 20, void 0, () => {
5718
+ new ot(Lt, 20, 20, void 0, () => {
5656
5719
  this.isInFlyout || this.addEntry_();
5657
5720
  })
5658
5721
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
@@ -5680,11 +5743,11 @@ const Sn = C.xml, Us = {
5680
5743
  for (let e = 0; e < t.length; e++) {
5681
5744
  const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
5682
5745
  i.appendField(
5683
- new Z(Lt, 20, 20, void 0, () => {
5746
+ new ot(Lt, 20, 20, void 0, () => {
5684
5747
  this.isInFlyout || this.addEntry_(i);
5685
5748
  })
5686
5749
  ), i.appendField(new dt(n), "KEY" + e), i.appendField(
5687
- new Z(se, 20, 20, void 0, () => {
5750
+ new ot(se, 20, 20, void 0, () => {
5688
5751
  this.isInFlyout || this.removeEntry_(i);
5689
5752
  })
5690
5753
  ), this.moveInputBefore(o, "ADD");
@@ -5697,11 +5760,11 @@ const Sn = C.xml, Us = {
5697
5760
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
5698
5761
  const n = this.appendValueInput("ENTRY" + e);
5699
5762
  n.appendField(
5700
- new Z(Lt, 20, 20, void 0, () => {
5763
+ new ot(Lt, 20, 20, void 0, () => {
5701
5764
  this.isInFlyout || this.addEntry_(n);
5702
5765
  })
5703
5766
  ), n.appendField(new dt("key"), "KEY" + e), n.appendField(
5704
- new Z(se, 20, 20, void 0, () => {
5767
+ new ot(se, 20, 20, void 0, () => {
5705
5768
  this.isInFlyout || this.removeEntry_(n);
5706
5769
  })
5707
5770
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -5718,7 +5781,7 @@ const Sn = C.xml, Us = {
5718
5781
  g.json_map_v1 = Us;
5719
5782
  const Vs = {
5720
5783
  init: function() {
5721
- this.appendDummyInput().appendField(new $e(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5784
+ this.appendDummyInput().appendField(new He(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5722
5785
  }
5723
5786
  };
5724
5787
  g.json_number_v1 = Vs;
@@ -5835,7 +5898,7 @@ s.forBlock.list_create_v1 = function(t) {
5835
5898
  n[i] = s.valueToCode(e, "ADD" + i, r.NONE) || "null";
5836
5899
  return ["[" + n.join(", ") + "]", r.ATOMIC];
5837
5900
  };
5838
- m([
5901
+ T([
5839
5902
  {
5840
5903
  type: "list_delete_v1",
5841
5904
  message0: "%{BKY_LIST_V1_DELETE_TITLE}",
@@ -5863,7 +5926,7 @@ s.forBlock.list_delete_v1 = function(t) {
5863
5926
  const e = s.valueToCode(t, "VALUE", r.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
5864
5927
  return `${e}.splice(${n}, 1)`;
5865
5928
  };
5866
- m([
5929
+ T([
5867
5930
  {
5868
5931
  type: "list_get_v1",
5869
5932
  message0: "%{BKY_LIST_V1_GET_TITLE}",
@@ -5890,7 +5953,7 @@ s.forBlock.list_get_v1 = function(t) {
5890
5953
  const e = s.valueToCode(t, "VALUE", r.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
5891
5954
  return [`${e}[${n}]`, r.MEMBER];
5892
5955
  };
5893
- m([
5956
+ T([
5894
5957
  {
5895
5958
  type: "list_get_sublist_v1",
5896
5959
  message0: "%{BKY_LIST_V1_GET_SUBLIST_TITLE}",
@@ -5922,7 +5985,7 @@ s.forBlock.list_get_sublist_v1 = function(t) {
5922
5985
  const e = s.valueToCode(t, "LIST", r.MEMBER) || "[]", n = s.getAdjusted(t, "START"), o = s.getAdjusted(t, "END", 1);
5923
5986
  return [`${e}.slice(${n}, ${o})`, r.FUNCTION_CALL];
5924
5987
  };
5925
- m([
5988
+ T([
5926
5989
  {
5927
5990
  type: "list_is_empty_v1",
5928
5991
  message0: "%{BKY_LIST_V1_IS_EMPTY_TITLE}",
@@ -5942,7 +6005,7 @@ m([
5942
6005
  s.forBlock.list_is_empty_v1 = function(t) {
5943
6006
  return [`!${s.valueToCode(t, "VALUE", r.MEMBER) || "[]"}.length`, r.LOGICAL_NOT];
5944
6007
  };
5945
- m([
6008
+ T([
5946
6009
  {
5947
6010
  type: "list_join_v1",
5948
6011
  message0: "%{BKY_LIST_V1_JOIN_TITLE}",
@@ -5969,7 +6032,7 @@ s.forBlock.list_join_v1 = function(t) {
5969
6032
  const e = s.valueToCode(t, "LIST", r.MEMBER) || "[]", n = s.valueToCode(t, "DELIM", r.NONE) || "''";
5970
6033
  return [`${e}.join(${n})`, r.FUNCTION_CALL];
5971
6034
  };
5972
- m([
6035
+ T([
5973
6036
  {
5974
6037
  type: "list_length_v1",
5975
6038
  message0: "%{BKY_LIST_V1_LENGTH_TITLE}",
@@ -5989,7 +6052,7 @@ m([
5989
6052
  s.forBlock.list_length_v1 = function(t) {
5990
6053
  return [`${s.valueToCode(t, "VALUE", r.MEMBER) || "[]"}.length`, r.MEMBER];
5991
6054
  };
5992
- m([
6055
+ T([
5993
6056
  {
5994
6057
  type: "list_reverse_v1",
5995
6058
  message0: "%{BKY_LIST_V1_REVERSE_TITLE}",
@@ -6010,7 +6073,7 @@ m([
6010
6073
  s.forBlock.list_reverse_v1 = function(t) {
6011
6074
  return [`${s.valueToCode(t, "LIST", r.NONE) || "[]"}.slice().reverse()`, r.FUNCTION_CALL];
6012
6075
  };
6013
- m([
6076
+ T([
6014
6077
  {
6015
6078
  type: "list_set_v1",
6016
6079
  message0: "%{BKY_LIST_V1_SET_TITLE}",
@@ -6060,7 +6123,7 @@ B.register(
6060
6123
  "logic_op_tooltip_v1",
6061
6124
  B.buildTooltipForDropdown("OP", Hs)
6062
6125
  );
6063
- m([
6126
+ T([
6064
6127
  {
6065
6128
  type: "logic_boolean_v1",
6066
6129
  message0: "%1",
@@ -6106,7 +6169,7 @@ B.register(
6106
6169
  this.mixin(Gs);
6107
6170
  }
6108
6171
  );
6109
- m([
6172
+ T([
6110
6173
  {
6111
6174
  type: "logic_compare_v1",
6112
6175
  message0: "%1 %2 %3",
@@ -6269,8 +6332,8 @@ const Ws = {
6269
6332
  for (let t = 1; this.getInput("IF" + t); t++)
6270
6333
  this.removeInput("IF" + t), this.removeInput("DO" + t);
6271
6334
  for (let t = 1; t <= this.elseIfCount_; t++)
6272
- this.appendValueInput("IF" + t).setCheck("Boolean").appendField(h("LOGIC_ELSE_IF")), this.appendStatementInput("DO" + t).appendField(h("LOGIC_DO"));
6273
- this.hasElse_ && this.appendStatementInput("ELSE").appendField(h("LOGIC_ELSE"));
6335
+ this.appendValueInput("IF" + t).setCheck("Boolean").appendField(f("LOGIC_ELSE_IF")), this.appendStatementInput("DO" + t).appendField(f("LOGIC_DO"));
6336
+ this.hasElse_ && this.appendStatementInput("ELSE").appendField(f("LOGIC_ELSE"));
6274
6337
  },
6275
6338
  reconnectChildBlocks_: function(t, e, n) {
6276
6339
  for (let o = 1; o <= this.elseIfCount_; o++)
@@ -6284,7 +6347,7 @@ B.registerMutator(
6284
6347
  void 0,
6285
6348
  ["logic_if_else_if_v1", "logic_if_else_v1"]
6286
6349
  );
6287
- m([
6350
+ T([
6288
6351
  {
6289
6352
  type: "logic_if_v1",
6290
6353
  message0: "%{BKY_LOGIC_IF} %1",
@@ -6364,7 +6427,7 @@ s.forBlock.logic_if_v1 = function(t) {
6364
6427
  return n + `
6365
6428
  `;
6366
6429
  };
6367
- m([
6430
+ T([
6368
6431
  {
6369
6432
  type: "logic_negate_v1",
6370
6433
  message0: "%{BKY_LOGIC_V1_NEGATE_TITLE}",
@@ -6384,7 +6447,7 @@ m([
6384
6447
  s.forBlock.logic_negate_v1 = function(t) {
6385
6448
  return [`!${s.valueToCode(t, "BOOL", r.LOGICAL_NOT) || "true"}`, r.LOGICAL_NOT];
6386
6449
  };
6387
- m([
6450
+ T([
6388
6451
  {
6389
6452
  type: "logic_operation_v1",
6390
6453
  message0: "%1 %2 %3",
@@ -6442,7 +6505,7 @@ const js = {
6442
6505
  }
6443
6506
  };
6444
6507
  B.registerMixin("logic_ternary_v1", js);
6445
- m([
6508
+ T([
6446
6509
  {
6447
6510
  type: "logic_ternary_v1",
6448
6511
  message0: "%{BKY_LOGIC_TERNARY_CONDITION} %1",
@@ -6492,7 +6555,7 @@ const Xs = {
6492
6555
  };
6493
6556
  t.push({
6494
6557
  enabled: !0,
6495
- text: h("VARIABLE_SET_CREATE_GET").replace("%1", o),
6558
+ text: f("VARIABLE_SET_CREATE_GET").replace("%1", o),
6496
6559
  callback: Un.callbackFactory(this, i)
6497
6560
  });
6498
6561
  }
@@ -6529,7 +6592,7 @@ const Js = /* @__PURE__ */ new Set([
6529
6592
  if (!e.isDragging || e.isDragging() || t.type !== I.BLOCK_MOVE && t.type !== I.BLOCK_CREATE)
6530
6593
  return;
6531
6594
  const n = this.getSurroundLoop();
6532
- if (this.setWarningText(n ? null : h("LOOP_FLOW_CONTROL_WARNING")), !this.isInFlyout)
6595
+ if (this.setWarningText(n ? null : f("LOOP_FLOW_CONTROL_WARNING")), !this.isInFlyout)
6533
6596
  try {
6534
6597
  I.setRecordUndo(!1), this.setDisabledReason(!n, "FLOW_CONTROL_NOT_IN_LOOP");
6535
6598
  } finally {
@@ -6541,7 +6604,7 @@ B.registerMixin(
6541
6604
  "flow_control_in_loop_check_v1",
6542
6605
  qs
6543
6606
  );
6544
- m([
6607
+ T([
6545
6608
  {
6546
6609
  type: "flow_control_v1",
6547
6610
  message0: "%1",
@@ -6595,7 +6658,7 @@ B.register(
6595
6658
  "VAR"
6596
6659
  )
6597
6660
  );
6598
- m([
6661
+ T([
6599
6662
  {
6600
6663
  type: "for_v1",
6601
6664
  message0: "%{BKY_LOOP_V1_FOR_TITLE}",
@@ -6657,18 +6720,18 @@ ${c}}
6657
6720
  let u = "", l = o;
6658
6721
  !o.match(/^\w+$/) && !C.string.isNumber(o) && (l = s.nameDB_.getDistinctName(
6659
6722
  `${n}_from`,
6660
- tt.NameType.VARIABLE
6723
+ it.NameType.VARIABLE
6661
6724
  ), u += `var ${l} = ${o};
6662
6725
  `);
6663
6726
  let _ = i;
6664
6727
  !i.match(/^\w+$/) && !C.string.isNumber(i) && (_ = s.nameDB_.getDistinctName(
6665
6728
  `${n}_to`,
6666
- tt.NameType.VARIABLE
6729
+ it.NameType.VARIABLE
6667
6730
  ), u += `var ${_} = ${i};
6668
6731
  `);
6669
6732
  const d = s.nameDB_.getDistinctName(
6670
6733
  `${n}_by`,
6671
- tt.NameType.VARIABLE
6734
+ it.NameType.VARIABLE
6672
6735
  );
6673
6736
  return u += `var ${d} = `, C.string.isNumber(a) ? u += `${Math.abs(Number(a))};
6674
6737
  ` : u += `Math.abs(${a});
@@ -6687,7 +6750,7 @@ B.register(
6687
6750
  "VAR"
6688
6751
  )
6689
6752
  );
6690
- m([
6753
+ T([
6691
6754
  {
6692
6755
  type: "for_each_v1",
6693
6756
  message0: "%{BKY_LOOP_V1_FOR_EACH_TITLE}",
@@ -6727,19 +6790,19 @@ s.forBlock.for_each_v1 = function(t) {
6727
6790
  let a = "", c = o;
6728
6791
  o.match(/^\w+$/) || (c = s.nameDB_.getDistinctName(
6729
6792
  `${n}_list`,
6730
- tt.NameType.VARIABLE
6793
+ it.NameType.VARIABLE
6731
6794
  ), a += `var ${c} = ${o};
6732
6795
  `);
6733
6796
  const u = s.nameDB_.getDistinctName(
6734
6797
  `${n}_index`,
6735
- tt.NameType.VARIABLE
6798
+ it.NameType.VARIABLE
6736
6799
  );
6737
6800
  return a += `for (var ${u} in ${c}) {
6738
6801
  ${e}${n} = ${c}[${u}];
6739
6802
  ${i}}
6740
6803
  `, a;
6741
6804
  };
6742
- m([
6805
+ T([
6743
6806
  {
6744
6807
  type: "repeat_v1",
6745
6808
  message0: "%{BKY_LOOP_V1_REPEAT_TITLE}",
@@ -6774,12 +6837,12 @@ s.forBlock.repeat_v1 = function(t) {
6774
6837
  let o = "";
6775
6838
  const i = s.nameDB_.getDistinctName(
6776
6839
  "count",
6777
- tt.NameType.VARIABLE
6840
+ it.NameType.VARIABLE
6778
6841
  );
6779
6842
  let a = e;
6780
6843
  return !e.match(/^\w+$/) && !C.string.isNumber(e) && (a = s.nameDB_.getDistinctName(
6781
6844
  "repeat_end",
6782
- tt.NameType.VARIABLE
6845
+ it.NameType.VARIABLE
6783
6846
  ), o += `var ${a} = ${e};
6784
6847
  `), o += `for (var ${i} = 0; ${i} < ${a}; ${i}++) {
6785
6848
  ${n}}
@@ -6792,7 +6855,7 @@ B.register(
6792
6855
  UNTIL: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL}"
6793
6856
  })
6794
6857
  );
6795
- m([
6858
+ T([
6796
6859
  {
6797
6860
  type: "while_until_v1",
6798
6861
  message0: "%1 %2",
@@ -6877,7 +6940,7 @@ B.register(
6877
6940
  "math_op_tooltip_v1",
6878
6941
  B.buildTooltipForDropdown("OP", Qs)
6879
6942
  );
6880
- m([
6943
+ T([
6881
6944
  {
6882
6945
  type: "math_arithmetic_v1",
6883
6946
  message0: "%1 %2 %3",
@@ -6921,7 +6984,7 @@ s.forBlock.math_arithmetic_v1 = function(t) {
6921
6984
  }, [n, o] = e[t.getFieldValue("OP")], i = s.valueToCode(t, "A", o) || "0", a = s.valueToCode(t, "B", o) || "0";
6922
6985
  return n ? [i + n + a, o] : [`Math.pow(${i}, ${a})`, r.FUNCTION_CALL];
6923
6986
  };
6924
- m([
6987
+ T([
6925
6988
  {
6926
6989
  type: "math_constant_v1",
6927
6990
  message0: "%1",
@@ -6955,7 +7018,7 @@ s.forBlock.math_constant_v1 = function(t) {
6955
7018
  INFINITY: ["Infinity", r.ATOMIC]
6956
7019
  }[t.getFieldValue("CONSTANT")];
6957
7020
  };
6958
- m([
7021
+ T([
6959
7022
  {
6960
7023
  type: "math_constrain_v1",
6961
7024
  message0: "%{BKY_MATH_V1_CONSTRAIN_TITLE}",
@@ -6987,7 +7050,7 @@ s.forBlock.math_constrain_v1 = function(t) {
6987
7050
  const e = s.valueToCode(t, "VALUE", r.NONE) || "0", n = s.valueToCode(t, "LOW", r.NONE) || "0", o = s.valueToCode(t, "HIGH", r.NONE) || "Infinity";
6988
7051
  return [`Math.min(Math.max(${e}, ${n}), ${o})`, r.FUNCTION_CALL];
6989
7052
  };
6990
- m([
7053
+ T([
6991
7054
  {
6992
7055
  type: "math_modulo_v1",
6993
7056
  message0: "%{BKY_MATH_V1_MODULO_TITLE}",
@@ -7014,7 +7077,7 @@ s.forBlock.math_modulo_v1 = function(t) {
7014
7077
  const e = s.valueToCode(t, "DIVIDEND", r.MODULUS) || "0", n = s.valueToCode(t, "DIVISOR", r.MODULUS) || "0";
7015
7078
  return [e + " % " + n, r.MODULUS];
7016
7079
  };
7017
- m([
7080
+ T([
7018
7081
  {
7019
7082
  type: "math_number_v1",
7020
7083
  message0: "%1",
@@ -7036,7 +7099,7 @@ s.forBlock.math_number_v1 = function(t) {
7036
7099
  const e = Number(t.getFieldValue("NUM")), n = e >= 0 ? r.ATOMIC : r.UNARY_NEGATION;
7037
7100
  return [String(e), n];
7038
7101
  };
7039
- m([
7102
+ T([
7040
7103
  {
7041
7104
  type: "math_number_property_v1",
7042
7105
  message0: "%{BKY_MATH_V1_NUMBER_PROPERTY_TITLE}",
@@ -7108,7 +7171,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(n) {
7108
7171
  u = c + o;
7109
7172
  return [u, a];
7110
7173
  };
7111
- m([
7174
+ T([
7112
7175
  {
7113
7176
  type: "math_on_list_v1",
7114
7177
  message0: "%{BKY_MATH_V1_ON_LIST_TITLE}",
@@ -7258,7 +7321,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(list) {
7258
7321
  }
7259
7322
  return [o, r.FUNCTION_CALL];
7260
7323
  };
7261
- m([
7324
+ T([
7262
7325
  {
7263
7326
  type: "math_random_float_v1",
7264
7327
  message0: "%{BKY_MATH_V1_RANDOM_FLOAT_TITLE}",
@@ -7271,7 +7334,7 @@ m([
7271
7334
  s.forBlock.math_random_float_v1 = function() {
7272
7335
  return ["Math.random()", r.FUNCTION_CALL];
7273
7336
  };
7274
- m([
7337
+ T([
7275
7338
  {
7276
7339
  type: "math_random_int_v1",
7277
7340
  message0: "%{BKY_MATH_V1_RANDOM_INT_TITLE}",
@@ -7311,7 +7374,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(a, b) {
7311
7374
  `
7312
7375
  ) + "(" + e + ", " + n + ")", r.FUNCTION_CALL];
7313
7376
  };
7314
- m([
7377
+ T([
7315
7378
  {
7316
7379
  type: "math_round_v1",
7317
7380
  message0: "%1 %2",
@@ -7353,7 +7416,7 @@ s.forBlock.math_round_v1 = function(t) {
7353
7416
  }
7354
7417
  return [o, r.FUNCTION_CALL];
7355
7418
  };
7356
- m([
7419
+ T([
7357
7420
  {
7358
7421
  type: "math_single_v1",
7359
7422
  message0: "%1 %2",
@@ -7416,7 +7479,7 @@ s.forBlock.math_single_v1 = function(t) {
7416
7479
  }
7417
7480
  return [n, r.DIVISION];
7418
7481
  };
7419
- m([
7482
+ T([
7420
7483
  {
7421
7484
  type: "math_trig_v1",
7422
7485
  message0: "%1 %2",
@@ -7576,7 +7639,7 @@ s.forBlock.object_create_v1 = function(t) {
7576
7639
  }
7577
7640
  return n += "}", [n, r.ATOMIC];
7578
7641
  };
7579
- m([
7642
+ T([
7580
7643
  {
7581
7644
  type: "object_delete_v1",
7582
7645
  message0: "%{BKY_OBJECT_V1_DELETE_TITLE}",
@@ -7643,7 +7706,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
7643
7706
  return `${e}(${n}, ${o});
7644
7707
  `;
7645
7708
  };
7646
- m([
7709
+ T([
7647
7710
  {
7648
7711
  type: "object_from_json_v1",
7649
7712
  message0: "%{BKY_OBJECT_V1_FROM_JSON_TITLE}",
@@ -7664,7 +7727,7 @@ m([
7664
7727
  s.forBlock.object_from_json_v1 = function(t) {
7665
7728
  return [`__parseJsonV1__(${s.valueToCode(t, "JSON", r.NONE) || "''"})`, r.FUNCTION_CALL];
7666
7729
  };
7667
- m([
7730
+ T([
7668
7731
  {
7669
7732
  type: "object_get_v1",
7670
7733
  message0: "%{BKY_OBJECT_V1_GET_TITLE}",
@@ -7721,7 +7784,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
7721
7784
  ), n = s.valueToCode(t, "OBJECT", r.ATOMIC) || "null", o = s.valueToCode(t, "KEY", r.ATOMIC) || "''";
7722
7785
  return [`${e}(${n}, ${o})`, r.FUNCTION_CALL];
7723
7786
  };
7724
- m([
7787
+ T([
7725
7788
  {
7726
7789
  type: "object_set_v1",
7727
7790
  message0: "%{BKY_OBJECT_V1_SET_TITLE}",
@@ -7787,7 +7850,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key, val) {
7787
7850
  return `${e}(${n}, ${o}, ${i});
7788
7851
  `;
7789
7852
  };
7790
- m([
7853
+ T([
7791
7854
  {
7792
7855
  type: "object_to_json_v1",
7793
7856
  message0: "%{BKY_OBJECT_V1_TO_JSON_TITLE}",
@@ -7816,7 +7879,7 @@ const Bn = C.xml, na = {
7816
7879
  g.procedure_def_container_v1 = na;
7817
7880
  const oa = {
7818
7881
  init: function() {
7819
- const t = new dt(He.DEFAULT_ARG);
7882
+ const t = new dt(Ge.DEFAULT_ARG);
7820
7883
  t.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(t, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7821
7884
  },
7822
7885
  validator_: function(t) {
@@ -7841,9 +7904,9 @@ const ia = {
7841
7904
  init: function() {
7842
7905
  this.withReturn = !1, this.args = [];
7843
7906
  const t = new dt(
7844
- He.findLegalName("", this)
7907
+ Ge.findLegalName("", this)
7845
7908
  );
7846
- t.setValidator(He.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7909
+ t.setValidator(Ge.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7847
7910
  new mt.MutatorIcon(
7848
7911
  ["procedure_def_item_v1"],
7849
7912
  this
@@ -8041,7 +8104,7 @@ ${n}
8041
8104
  `;
8042
8105
  };
8043
8106
  function ao(t) {
8044
- const e = T.resource.spaces.find((i) => i.id === t);
8107
+ const e = E.resource.spaces.find((i) => i.id === t);
8045
8108
  if (!e)
8046
8109
  return [];
8047
8110
  const n = [];
@@ -8063,7 +8126,7 @@ function ra(t) {
8063
8126
  }), k(e);
8064
8127
  }
8065
8128
  function co(t, e) {
8066
- const n = T.resource.spaces.find((i) => i.id === t);
8129
+ const n = E.resource.spaces.find((i) => i.id === t);
8067
8130
  if (!n)
8068
8131
  return [];
8069
8132
  const o = [];
@@ -8079,7 +8142,7 @@ function ua(t, e) {
8079
8142
  }
8080
8143
  function ro() {
8081
8144
  const t = [];
8082
- return T.resource.spaces.forEach((e) => {
8145
+ return E.resource.spaces.forEach((e) => {
8083
8146
  e.resources.length > 0 && t.push(e);
8084
8147
  }), t;
8085
8148
  }
@@ -8138,7 +8201,7 @@ const _a = {
8138
8201
  };
8139
8202
  },
8140
8203
  loadExtraState: function(t) {
8141
- this.space = Me(t.space), this.dir = Me(t.dir), this.resource = Me(t.resource);
8204
+ this.space = Ue(t.space), this.dir = Ue(t.dir), this.resource = Ue(t.resource);
8142
8205
  },
8143
8206
  genSpaceOpts_: function() {
8144
8207
  return la();
@@ -8197,7 +8260,7 @@ ${i}
8197
8260
  }
8198
8261
  `;
8199
8262
  };
8200
- m([
8263
+ T([
8201
8264
  {
8202
8265
  type: "text_v1",
8203
8266
  message0: "%{BKY_TEXT_V1_TEXT_TITLE}",
@@ -8229,7 +8292,7 @@ B.register(
8229
8292
  "VAR"
8230
8293
  )
8231
8294
  );
8232
- m([
8295
+ T([
8233
8296
  {
8234
8297
  type: "text_append_v1",
8235
8298
  message0: "%{BKY_TEXT_V1_APPEND_TITLE}",
@@ -8253,12 +8316,12 @@ m([
8253
8316
  s.forBlock.text_append_v1 = function(t) {
8254
8317
  const e = s.nameDB_?.getName(
8255
8318
  t.getFieldValue("VAR"),
8256
- tt.NameType.VARIABLE
8319
+ it.NameType.VARIABLE
8257
8320
  ), n = s.valueToCode(t, "TEXT", r.NONE) || "''";
8258
8321
  return `${e} += ${oe(n)};
8259
8322
  `;
8260
8323
  };
8261
- m([
8324
+ T([
8262
8325
  {
8263
8326
  type: "text_change_case_v1",
8264
8327
  message0: "%{BKY_TEXT_V1_CHANGE_CASE_TITLE}",
@@ -8304,7 +8367,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(str) {
8304
8367
  `
8305
8368
  ) + "(" + o + ")", [i, r.FUNCTION_CALL];
8306
8369
  };
8307
- m([
8370
+ T([
8308
8371
  {
8309
8372
  type: "text_char_at_v1",
8310
8373
  message0: "%{BKY_TEXT_V1_CHAR_AT_TITLE}",
@@ -8331,7 +8394,7 @@ s.forBlock.text_char_at_v1 = function(t) {
8331
8394
  const e = s.valueToCode(t, "VALUE", r.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
8332
8395
  return [`${e}.charAt(${n})`, r.FUNCTION_CALL];
8333
8396
  };
8334
- m([
8397
+ T([
8335
8398
  {
8336
8399
  type: "text_count_v1",
8337
8400
  message0: "%{BKY_TEXT_V1_COUNT_TITLE}",
@@ -8369,7 +8432,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle) {
8369
8432
  `
8370
8433
  )}(${e}, ${n})`, r.FUNCTION_CALL];
8371
8434
  };
8372
- m([
8435
+ T([
8373
8436
  {
8374
8437
  type: "text_index_of_v1",
8375
8438
  message0: "%{BKY_TEXT_V1_INDEX_OF_TITLE}",
@@ -8404,7 +8467,7 @@ s.forBlock.text_index_of_v1 = function(t) {
8404
8467
  const e = t.getFieldValue("OP") === "FIRST" ? "indexOf" : "lastIndexOf", n = s.valueToCode(t, "TEXT", r.MEMBER) || "''", o = s.valueToCode(t, "SUBSTR", r.NONE) || "''";
8405
8468
  return [`${n}.${e}(${o})`, r.FUNCTION_CALL];
8406
8469
  };
8407
- m([
8470
+ T([
8408
8471
  {
8409
8472
  type: "text_is_empty_v1",
8410
8473
  message0: "%{BKY_TEXT_V1_IS_EMPTY_TITLE}",
@@ -8506,7 +8569,7 @@ B.registerMutator(
8506
8569
  fa,
8507
8570
  ma
8508
8571
  );
8509
- m([
8572
+ T([
8510
8573
  {
8511
8574
  type: "text_join_v1",
8512
8575
  message0: "",
@@ -8561,7 +8624,7 @@ s.forBlock.text_join_v1 = function(t) {
8561
8624
  }
8562
8625
  }
8563
8626
  };
8564
- m([
8627
+ T([
8565
8628
  {
8566
8629
  type: "text_length_v1",
8567
8630
  message0: "%{BKY_TEXT_V1_LENGTH_TITLE}",
@@ -8581,7 +8644,7 @@ m([
8581
8644
  s.forBlock.text_length_v1 = function(t) {
8582
8645
  return [`${s.valueToCode(t, "VALUE", r.MEMBER) || "''"}.length`, r.MEMBER];
8583
8646
  };
8584
- m([
8647
+ T([
8585
8648
  {
8586
8649
  type: "text_replace_v1",
8587
8650
  message0: "%{BKY_TEXT_V1_REPLACE_TITLE}",
@@ -8622,7 +8685,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
8622
8685
  `
8623
8686
  )}(${e}, ${n}, ${o})`, r.FUNCTION_CALL];
8624
8687
  };
8625
- m([
8688
+ T([
8626
8689
  {
8627
8690
  type: "text_reverse_v1",
8628
8691
  message0: "%{BKY_TEXT_V1_REVERSE_TITLE}",
@@ -8643,7 +8706,7 @@ m([
8643
8706
  s.forBlock.text_reverse_v1 = function(t) {
8644
8707
  return [(s.valueToCode(t, "TEXT", r.MEMBER) || "''") + ".split('').reverse().join('')", r.FUNCTION_CALL];
8645
8708
  };
8646
- m([
8709
+ T([
8647
8710
  {
8648
8711
  type: "text_split_v1",
8649
8712
  message0: "%{BKY_TEXT_V1_SPLIT_TITLE}",
@@ -8670,7 +8733,7 @@ s.forBlock.text_split_v1 = function(t) {
8670
8733
  const e = s.valueToCode(t, "TEXT", r.MEMBER) || "''", n = s.valueToCode(t, "DELIM", r.NONE) || "''";
8671
8734
  return [`${e}.split(${n})`, r.FUNCTION_CALL];
8672
8735
  };
8673
- m([
8736
+ T([
8674
8737
  {
8675
8738
  type: "text_substring_v1",
8676
8739
  message0: "%{BKY_TEXT_V1_SUBSTRING_TITLE}",
@@ -8702,7 +8765,7 @@ s.forBlock.text_substring_v1 = function(t) {
8702
8765
  const e = s.valueToCode(t, "TEXT", r.MEMBER) || "''", n = s.getAdjusted(t, "START"), o = s.getAdjusted(t, "END", 1);
8703
8766
  return [`${e}.slice(${n}, ${o})`, r.FUNCTION_CALL];
8704
8767
  };
8705
- m([
8768
+ T([
8706
8769
  {
8707
8770
  type: "text_trim_v1",
8708
8771
  message0: "%{BKY_TEXT_V1_TRIM_TITLE}",
@@ -8769,7 +8832,7 @@ s.forBlock.create_timer_v1 = function(t) {
8769
8832
  ${a}});
8770
8833
  `;
8771
8834
  };
8772
- m([
8835
+ T([
8773
8836
  {
8774
8837
  type: "delay_v1",
8775
8838
  message0: "%{BKY_TIME_V1_DELAY_TITLE}",
@@ -8796,11 +8859,11 @@ const Ea = {
8796
8859
  if (this.isInFlyout) {
8797
8860
  if (this.type === "variable_get_v1") {
8798
8861
  const e = {
8799
- text: h("RENAME_VARIABLE"),
8862
+ text: f("RENAME_VARIABLE"),
8800
8863
  enabled: !0,
8801
8864
  callback: ga(this)
8802
8865
  }, n = this.getField("VAR").getText(), o = {
8803
- text: h("DELETE_VARIABLE").replace("%1", n),
8866
+ text: f("DELETE_VARIABLE").replace("%1", n),
8804
8867
  enabled: !0,
8805
8868
  callback: Aa(this)
8806
8869
  };
@@ -8808,7 +8871,7 @@ const Ea = {
8808
8871
  }
8809
8872
  } else {
8810
8873
  let e, n;
8811
- this.type === "variable_get_v1" ? (e = "variable_set_v1", n = h("VARIABLE_GET_CREATE_SET")) : this.type === "variable_set_v1" ? (e = "variable_get_v1", n = h("VARIABLE_SET_CREATE_GET")) : console.assert(!1);
8874
+ this.type === "variable_get_v1" ? (e = "variable_set_v1", n = f("VARIABLE_GET_CREATE_SET")) : this.type === "variable_set_v1" ? (e = "variable_get_v1", n = f("VARIABLE_SET_CREATE_GET")) : console.assert(!1);
8812
8875
  const o = this.getField("VAR"), i = {
8813
8876
  type: e,
8814
8877
  fields: { VAR: o.saveState(!0) }
@@ -8835,7 +8898,7 @@ B.registerMixin(
8835
8898
  "context_menu_variable_v1",
8836
8899
  Ea
8837
8900
  );
8838
- m([
8901
+ T([
8839
8902
  {
8840
8903
  type: "variable_get_v1",
8841
8904
  message0: "%1",
@@ -8855,10 +8918,10 @@ m([
8855
8918
  s.forBlock.variable_get_v1 = function(t) {
8856
8919
  return [s.nameDB_.getName(
8857
8920
  t.getFieldValue("VAR"),
8858
- tt.NameType.VARIABLE
8921
+ it.NameType.VARIABLE
8859
8922
  ), r.ATOMIC];
8860
8923
  };
8861
- m([
8924
+ T([
8862
8925
  {
8863
8926
  type: "variable_set_v1",
8864
8927
  message0: "%{BKY_VARIABLE_V1_SET_TITLE}",
@@ -8884,7 +8947,7 @@ m([
8884
8947
  s.forBlock.variable_set_v1 = function(t) {
8885
8948
  const e = s.nameDB_.getName(
8886
8949
  t.getFieldValue("VAR"),
8887
- tt.NameType.VARIABLE
8950
+ it.NameType.VARIABLE
8888
8951
  ), n = s.valueToCode(t, "VALUE", r.ASSIGNMENT) || "0";
8889
8952
  return `${e} = ${n};
8890
8953
  `;
@@ -8923,7 +8986,7 @@ Qt.getText_ = function() {
8923
8986
  if (this.name === "ELEMENT")
8924
8987
  return e.element.name;
8925
8988
  if (this.name === "NODE") {
8926
- const n = q[e.node.key];
8989
+ const n = Z[e.node.key];
8927
8990
  if (n) {
8928
8991
  const o = t.global.t(n.name), i = e.node.alias;
8929
8992
  return `${o} / ${i}`;
@@ -8933,7 +8996,7 @@ Qt.getText_ = function() {
8933
8996
  return Kn(n, o);
8934
8997
  } else if (this.name === "EVENT") {
8935
8998
  const { kind: n, names: o } = e.event;
8936
- return console.log(e.event), Ie(n, o);
8999
+ return console.log(e.event), Oe(n, o);
8937
9000
  } else if (this.name === "METHOD") {
8938
9001
  const { kind: n, names: o } = e.method;
8939
9002
  return on(n, o);
@@ -9213,7 +9276,7 @@ function La(t) {
9213
9276
  break;
9214
9277
  }
9215
9278
  }
9216
- const Ze = ["get_app_property_v1", "get_app_state_v1"];
9279
+ const tn = ["get_app_property_v1", "get_app_state_v1"];
9217
9280
  function ut(t, e) {
9218
9281
  return t.find((o) => o === e) !== void 0 ? !1 : (t.push(e), !0);
9219
9282
  }
@@ -9221,7 +9284,7 @@ function Sa(t) {
9221
9284
  const e = [];
9222
9285
  function n(o) {
9223
9286
  for (const i of o.getChildren(!0))
9224
- Ze.includes(i.type) && e.push(i), n(i);
9287
+ tn.includes(i.type) && e.push(i), n(i);
9225
9288
  }
9226
9289
  return n(t), e;
9227
9290
  }
@@ -9244,11 +9307,11 @@ function Ba(t) {
9244
9307
  function ba(t) {
9245
9308
  const e = [];
9246
9309
  for (const n of t.getChildren(!0))
9247
- if (Ze.includes(n.type))
9310
+ if (tn.includes(n.type))
9248
9311
  e.push(n);
9249
9312
  else if (n.type === "object_get_v1") {
9250
9313
  const o = n.getInputTargetBlock("OBJECT");
9251
- o && Ze.includes(o.type) && e.push(n);
9314
+ o && tn.includes(o.type) && e.push(n);
9252
9315
  }
9253
9316
  return e;
9254
9317
  }
@@ -9348,7 +9411,7 @@ function Da(t) {
9348
9411
  function _n() {
9349
9412
  return Qo(_o);
9350
9413
  }
9351
- const Ma = /* @__PURE__ */ st({
9414
+ const Ma = /* @__PURE__ */ ct({
9352
9415
  __name: "index",
9353
9416
  props: {
9354
9417
  lock: { type: Boolean }
@@ -9369,11 +9432,11 @@ const Ma = /* @__PURE__ */ st({
9369
9432
  };
9370
9433
  return e({ cleanWorkspace: a }), (u, l) => {
9371
9434
  const _ = D("v-btn"), d = D("v-tooltip");
9372
- return S(), et(d, {
9435
+ return S(), st(d, {
9373
9436
  text: R(n)("x-block-lib.tip.hotkeyCtrlQ")
9374
9437
  }, {
9375
- activator: nt(({ props: f }) => [
9376
- L(_, an(f, {
9438
+ activator: at(({ props: h }) => [
9439
+ L(_, an(h, {
9377
9440
  density: "comfortable",
9378
9441
  icon: "mdi-broom",
9379
9442
  variant: "outlined",
@@ -9384,7 +9447,7 @@ const Ma = /* @__PURE__ */ st({
9384
9447
  }, 8, ["text"]);
9385
9448
  };
9386
9449
  }
9387
- }), Ua = /* @__PURE__ */ st({
9450
+ }), Ua = /* @__PURE__ */ ct({
9388
9451
  __name: "index",
9389
9452
  props: {
9390
9453
  modelValue: { type: Boolean, required: !0 },
@@ -9395,10 +9458,10 @@ const Ma = /* @__PURE__ */ st({
9395
9458
  const { t: e } = Xt(), n = Kt(t, "modelValue");
9396
9459
  return (o, i) => {
9397
9460
  const a = D("v-btn"), c = D("v-tooltip");
9398
- return S(), et(c, {
9461
+ return S(), st(c, {
9399
9462
  text: R(e)("x-block-lib.tip.hotkeyCtrlW")
9400
9463
  }, {
9401
- activator: nt(({ props: u }) => [
9464
+ activator: at(({ props: u }) => [
9402
9465
  L(a, an(u, {
9403
9466
  density: "comfortable",
9404
9467
  icon: n.value ? "mdi-lock" : "mdi-lock-open",
@@ -9414,7 +9477,7 @@ const Ma = /* @__PURE__ */ st({
9414
9477
  key: 0,
9415
9478
  class: "text-cation text-grey text-truncate ml-6",
9416
9479
  style: { maxWidth: "340px" }
9417
- }, Fa = /* @__PURE__ */ st({
9480
+ }, Fa = /* @__PURE__ */ ct({
9418
9481
  __name: "item",
9419
9482
  props: {
9420
9483
  id: {},
@@ -9441,24 +9504,24 @@ const Ma = /* @__PURE__ */ st({
9441
9504
  border: "1px solid " + n.value,
9442
9505
  pointerEvents: "none"
9443
9506
  }));
9444
- return (d, f) => {
9445
- const p = D("v-spacer"), E = D("v-icon"), A = zo("ripple");
9446
- return Zo((S(), J("div", {
9507
+ return (d, h) => {
9508
+ const p = D("v-spacer"), m = D("v-icon"), A = zo("ripple");
9509
+ return Zo((S(), z("div", {
9447
9510
  class: "d-flex align-center cursor-pointer",
9448
9511
  style: G(l.value),
9449
- onClick: f[1] || (f[1] = (P) => c("x-click", a.id)),
9450
- onMouseout: f[2] || (f[2] = (P) => u.value = !1),
9451
- onMouseover: f[3] || (f[3] = (P) => u.value = !0)
9512
+ onClick: h[1] || (h[1] = (P) => c("x-click", a.id)),
9513
+ onMouseout: h[2] || (h[2] = (P) => u.value = !1),
9514
+ onMouseover: h[3] || (h[3] = (P) => u.value = !0)
9452
9515
  }, [
9453
9516
  w("div", Va, [
9454
9517
  w("span", xa, $t(a.title), 1),
9455
- a.desc ? (S(), J("span", Ya, $t(a.desc), 1)) : ct("", !0)
9518
+ a.desc ? (S(), z("span", Ya, $t(a.desc), 1)) : rt("", !0)
9456
9519
  ]),
9457
9520
  L(p),
9458
- L(E, {
9521
+ L(m, {
9459
9522
  class: "x-handle cursor-move mr-3",
9460
9523
  icon: "mdi-drag-horizontal-variant",
9461
- onMousedown: f[0] || (f[0] = Ft(() => {
9524
+ onMousedown: h[0] || (h[0] = Ft(() => {
9462
9525
  }, ["stop"]))
9463
9526
  }),
9464
9527
  w("div", {
@@ -9472,9 +9535,9 @@ const Ma = /* @__PURE__ */ st({
9472
9535
  }), wa = {
9473
9536
  key: 1,
9474
9537
  class: "text-caption text-grey"
9475
- }, Ka = /* @__PURE__ */ st({
9538
+ }, Ka = /* @__PURE__ */ ct({
9476
9539
  __name: "index",
9477
- props: /* @__PURE__ */ Ge({
9540
+ props: /* @__PURE__ */ We({
9478
9541
  lock: { type: Boolean }
9479
9542
  }, {
9480
9543
  modelValue: { type: Boolean, required: !0 },
@@ -9493,8 +9556,8 @@ const Ma = /* @__PURE__ */ st({
9493
9556
  const P = A.id === Vo()?.id;
9494
9557
  let U = "";
9495
9558
  if (A.type.startsWith("on_app_event_v")) {
9496
- const z = A, vt = q[z.node.key];
9497
- vt && (U = n(vt.name), z.node.alias && (U += " / " + z.node.alias), U += " - " + Ie(z.event.kind, z.event.names));
9559
+ const et = A, vt = Z[et.node.key];
9560
+ vt && (U = n(vt.name), et.node.alias && (U += " / " + et.node.alias), U += " - " + Oe(et.event.kind, et.event.names));
9498
9561
  } else A.type.startsWith("watch_effect_v") ? U = n("x-block-lib.watchEffect") : A.type.startsWith("app_bind_v") ? U = n("x-block-lib.bind") : A.type.startsWith("func_entry_v") ? U = n("x-block-lib.funcEntry") : A.type.startsWith("procedure_def_v") ? U = n("x-block-lib.procedure") + " - " + A.getFieldValue("NAME") : U = n("x-block-lib.temporaryBlock");
9499
9562
  const gt = A.getCommentText() ?? "";
9500
9563
  p.push({
@@ -9512,8 +9575,8 @@ const Ma = /* @__PURE__ */ st({
9512
9575
  return;
9513
9576
  }
9514
9577
  const p = [];
9515
- a.value.forEach(({ id: E }) => {
9516
- p.push(E);
9578
+ a.value.forEach(({ id: m }) => {
9579
+ p.push(m);
9517
9580
  }), u = p;
9518
9581
  }, _ = () => !t.lock, d = (p) => {
9519
9582
  if (!i.workspace) {
@@ -9526,8 +9589,8 @@ const Ma = /* @__PURE__ */ st({
9526
9589
  }
9527
9590
  if (p.oldIndex === p.newIndex)
9528
9591
  return;
9529
- const E = u[p.oldIndex], A = i.workspace.getBlockById(
9530
- E
9592
+ const m = u[p.oldIndex], A = i.workspace.getBlockById(
9593
+ m
9531
9594
  );
9532
9595
  if (!A) {
9533
9596
  console.assert(!1);
@@ -9541,18 +9604,18 @@ const Ma = /* @__PURE__ */ st({
9541
9604
  ).getRelativeToSurfaceXY().y + 10);
9542
9605
  const gt = A.getRelativeToSurfaceXY();
9543
9606
  A.moveTo(new C.Coordinate(gt.x, U)), i.workspace.cleanUp(), lo();
9544
- }, f = async (p) => {
9607
+ }, h = async (p) => {
9545
9608
  if (!i.workspace) {
9546
9609
  console.assert(!1);
9547
9610
  return;
9548
9611
  }
9549
- const E = i.workspace.getBlockById(p);
9550
- Yn.setSelected(E), ln(p), o.value = !1;
9612
+ const m = i.workspace.getBlockById(p);
9613
+ Yn.setSelected(m), ln(p), o.value = !1;
9551
9614
  };
9552
- return (p, E) => a.value.length > 0 ? (S(), et(R(Uo), {
9615
+ return (p, m) => a.value.length > 0 ? (S(), st(R(Uo), {
9553
9616
  key: 0,
9554
9617
  modelValue: a.value,
9555
- "onUpdate:modelValue": E[0] || (E[0] = (A) => a.value = A),
9618
+ "onUpdate:modelValue": m[0] || (m[0] = (A) => a.value = A),
9556
9619
  animation: 150,
9557
9620
  "ghost-class": "ghost",
9558
9621
  handle: ".x-handle",
@@ -9560,25 +9623,25 @@ const Ma = /* @__PURE__ */ st({
9560
9623
  onMove: _,
9561
9624
  onStart: l
9562
9625
  }, {
9563
- default: nt(() => [
9564
- (S(!0), J(Hn, null, ti(a.value, (A) => (S(), et(Fa, {
9626
+ default: at(() => [
9627
+ (S(!0), z(Hn, null, ti(a.value, (A) => (S(), st(Fa, {
9565
9628
  id: A.id,
9566
9629
  key: A.id,
9567
9630
  desc: A.desc,
9568
9631
  select: A.select,
9569
9632
  title: A.name,
9570
- onXClick: f
9633
+ onXClick: h
9571
9634
  }, null, 8, ["id", "desc", "select", "title"]))), 128))
9572
9635
  ]),
9573
9636
  _: 1
9574
- }, 8, ["modelValue"])) : (S(), J("span", wa, $t(R(n)("x-block-lib.noOption")), 1));
9637
+ }, 8, ["modelValue"])) : (S(), z("span", wa, $t(R(n)("x-block-lib.noOption")), 1));
9575
9638
  }
9576
9639
  }), $a = (t, e) => {
9577
9640
  const n = t.__vccOpts || t;
9578
9641
  for (const [o, i] of e)
9579
9642
  n[o] = i;
9580
9643
  return n;
9581
- }, Ha = /* @__PURE__ */ $a(Ka, [["__scopeId", "data-v-6cb62cd6"]]), Ga = /* @__PURE__ */ st({
9644
+ }, Ha = /* @__PURE__ */ $a(Ka, [["__scopeId", "data-v-6cb62cd6"]]), Ga = /* @__PURE__ */ ct({
9582
9645
  __name: "index",
9583
9646
  props: {
9584
9647
  modelValue: { type: Boolean, required: !0 },
@@ -9602,11 +9665,11 @@ const Ma = /* @__PURE__ */ st({
9602
9665
  const l = u.getBlockById(c);
9603
9666
  Yn.setSelected(l), ln(c), n.value = !1;
9604
9667
  };
9605
- return (c, u) => (S(), J("div", {
9668
+ return (c, u) => (S(), z("div", {
9606
9669
  onClick: u[0] || (u[0] = (l) => a(""))
9607
9670
  }, "blockTree"));
9608
9671
  }
9609
- }), Wa = { class: "text-subtitle-1" }, ja = /* @__PURE__ */ st({
9672
+ }), Wa = { class: "text-subtitle-1" }, ja = /* @__PURE__ */ ct({
9610
9673
  __name: "index",
9611
9674
  props: {
9612
9675
  type: {},
@@ -9614,31 +9677,31 @@ const Ma = /* @__PURE__ */ st({
9614
9677
  },
9615
9678
  setup(t, { expose: e }) {
9616
9679
  const { t: n } = Xt(), o = ii(), { sysBarAvail: i } = wn(), { backgroundColor1: a } = jt(), c = F(() => {
9617
- let E = "100%";
9618
- return o.mdAndUp.value && (E = "400px"), {
9680
+ let m = "100%";
9681
+ return o.mdAndUp.value && (m = "400px"), {
9619
9682
  background: a.value,
9620
- width: E,
9683
+ width: m,
9621
9684
  height: "100%"
9622
9685
  };
9623
9686
  }), u = F(() => {
9624
- let E = 48;
9625
- return i.value && (E += 24), {
9687
+ let m = 48;
9688
+ return i.value && (m += 24), {
9626
9689
  position: "relative",
9627
- height: `calc(100% - ${E}px)`
9690
+ height: `calc(100% - ${m}px)`
9628
9691
  };
9629
9692
  }), l = F(() => ({
9630
9693
  height: "60px"
9631
- })), { open: _ } = tn(`blocklyNavigatorDlg${We()}`);
9694
+ })), { open: _ } = en(`blocklyNavigatorDlg${je()}`);
9632
9695
  ei(() => {
9633
9696
  _.value = !1;
9634
9697
  });
9635
- const d = wt("blockList"), f = wt("blockTree");
9698
+ const d = wt("blockList"), h = wt("blockTree");
9636
9699
  return e({ open: _, update: () => {
9637
- t.type === "list" ? d.value?.update() : t.type === "tree" && f.value?.update();
9638
- } }), (E, A) => {
9639
- const P = D("v-sheet"), U = D("v-btn"), gt = D("v-spacer"), z = D("v-dialog"), vt = D("v-tooltip");
9640
- return S(), J(Hn, null, [
9641
- L(z, {
9700
+ t.type === "list" ? d.value?.update() : t.type === "tree" && h.value?.update();
9701
+ } }), (m, A) => {
9702
+ const P = D("v-sheet"), U = D("v-btn"), gt = D("v-spacer"), et = D("v-dialog"), vt = D("v-tooltip");
9703
+ return S(), z(Hn, null, [
9704
+ L(et, {
9642
9705
  modelValue: R(_),
9643
9706
  "onUpdate:modelValue": A[5] || (A[5] = (H) => ne(_) ? _.value = H : null),
9644
9707
  eager: "",
@@ -9648,7 +9711,7 @@ const Ma = /* @__PURE__ */ st({
9648
9711
  transition: "scroll-x-reverse-transition",
9649
9712
  onKeydown: A[6] || (A[6] = Gn(Ft((H) => _.value = !1, ["stop", "prevent"]), ["esc"]))
9650
9713
  }, {
9651
- default: nt(() => [
9714
+ default: at(() => [
9652
9715
  w("div", {
9653
9716
  class: "w-100 h-100 d-flex flex-row-reverse",
9654
9717
  onClick: A[3] || (A[3] = Ft((H) => _.value = !1, ["self"])),
@@ -9658,17 +9721,17 @@ const Ma = /* @__PURE__ */ st({
9658
9721
  class: "elevation-2",
9659
9722
  style: G(c.value)
9660
9723
  }, [
9661
- R(i) ? (S(), et(P, {
9724
+ R(i) ? (S(), st(P, {
9662
9725
  key: 0,
9663
9726
  color: "transparent",
9664
9727
  height: 24
9665
- })) : ct("", !0),
9728
+ })) : rt("", !0),
9666
9729
  L(P, {
9667
9730
  class: "d-flex align-center px-2",
9668
9731
  color: "transparent",
9669
9732
  height: 48
9670
9733
  }, {
9671
- default: nt(() => [
9734
+ default: at(() => [
9672
9735
  L(U, {
9673
9736
  density: "comfortable",
9674
9737
  icon: "mdi-close",
@@ -9684,20 +9747,20 @@ const Ma = /* @__PURE__ */ st({
9684
9747
  class: "overflow-y-auto",
9685
9748
  style: G(u.value)
9686
9749
  }, [
9687
- t.type === "list" ? (S(), et(Ha, {
9750
+ t.type === "list" ? (S(), st(Ha, {
9688
9751
  key: 0,
9689
9752
  ref_key: "blockList",
9690
9753
  ref: d,
9691
9754
  modelValue: R(_),
9692
9755
  "onUpdate:modelValue": A[1] || (A[1] = (H) => ne(_) ? _.value = H : null),
9693
9756
  lock: t.lock
9694
- }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (S(), et(Ga, {
9757
+ }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (S(), st(Ga, {
9695
9758
  key: 1,
9696
9759
  ref_key: "blockTree",
9697
- ref: f,
9760
+ ref: h,
9698
9761
  modelValue: R(_),
9699
9762
  "onUpdate:modelValue": A[2] || (A[2] = (H) => ne(_) ? _.value = H : null)
9700
- }, null, 8, ["modelValue"])) : ct("", !0),
9763
+ }, null, 8, ["modelValue"])) : rt("", !0),
9701
9764
  w("div", {
9702
9765
  style: G(l.value)
9703
9766
  }, null, 4)
@@ -9710,7 +9773,7 @@ const Ma = /* @__PURE__ */ st({
9710
9773
  L(vt, {
9711
9774
  text: R(n)("x-block-lib.tip.hotkeyCtrlE")
9712
9775
  }, {
9713
- activator: nt(({ props: H }) => [
9776
+ activator: at(({ props: H }) => [
9714
9777
  L(U, an(H, {
9715
9778
  density: "comfortable",
9716
9779
  icon: "mdi-navigation-variant",
@@ -9775,24 +9838,24 @@ function Xa(t, e) {
9775
9838
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
9776
9839
  }
9777
9840
  function Ja() {
9778
- return T.app.activeObject.type === "comp" && T.app.activeComp.meta.events.length > 0;
9841
+ return E.app.activeObject.type === "comp" && E.app.activeComp.meta.events.length > 0;
9779
9842
  }
9780
9843
  function qa() {
9781
- return T.app.activeObject.type === "comp" && T.app.activeComp.meta.states.length > 0;
9844
+ return E.app.activeObject.type === "comp" && E.app.activeComp.meta.states.length > 0;
9782
9845
  }
9783
9846
  function Rn() {
9784
- return T.app.activeObject.type === "comp" && T.app.activeComp.meta.methods.length > 0;
9847
+ return E.app.activeObject.type === "comp" && E.app.activeComp.meta.methods.length > 0;
9785
9848
  }
9786
9849
  function Qa() {
9787
9850
  const t = [];
9788
- return t.push(V(h("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), Ja() && t.push(y("trigger_app_event_v1")), t.push(
9851
+ return t.push(V(f("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), Ja() && t.push(y("trigger_app_event_v1")), t.push(
9789
9852
  y("app_bind_v1", [po([{ key: "items", value: "2" }])])
9790
- ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(h("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), qa() && (t.push(V(h("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), (W("callMethod") || Rn()) && t.push(V(h("LABEL_METHOD"))), W("callMethod") && t.push(y("call_app_method_v1")), Rn() && (t.push(y("impl_app_method_v1")), t.push(y("set_app_method_output_v1")), t.push(y("procedure_return_v1"))), t;
9853
+ ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), qa() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), (W("callMethod") || Rn()) && t.push(V(f("LABEL_METHOD"))), W("callMethod") && t.push(y("call_app_method_v1")), Rn() && (t.push(y("impl_app_method_v1")), t.push(y("set_app_method_output_v1")), t.push(y("procedure_return_v1"))), t;
9791
9854
  }
9792
9855
  const ho = { name: "APP_COMP_CATEGORY", callback: Qa };
9793
9856
  function za() {
9794
9857
  const t = [];
9795
- return t.push(V(h("LABEL_FUNC"))), t.push(V(h("LABEL_FLOW"))), t;
9858
+ return t.push(V(f("LABEL_FUNC"))), t.push(V(f("LABEL_FLOW"))), t;
9796
9859
  }
9797
9860
  const pe = { name: "APP_COMPUTE_CATEGORY", callback: za };
9798
9861
  function Za() {
@@ -9801,7 +9864,7 @@ function Za() {
9801
9864
  }
9802
9865
  const de = { name: "APP_MESSAGE_CATEGORY", callback: Za };
9803
9866
  function tc() {
9804
- for (const t of T.app.appList)
9867
+ for (const t of E.app.appList)
9805
9868
  if (t.pages.length > 0)
9806
9869
  return !0;
9807
9870
  return !1;
@@ -9812,21 +9875,21 @@ function ec() {
9812
9875
  }
9813
9876
  const he = { name: "APP_MISC_CATEGORY", callback: ec };
9814
9877
  function nc() {
9815
- return T.app.activeObject.type === "page" && T.app.activePage.meta.states.length > 0;
9878
+ return E.app.activeObject.type === "page" && E.app.activePage.meta.states.length > 0;
9816
9879
  }
9817
9880
  function oc() {
9818
- return T.app.activeObject.type === "page" && T.app.activePage.meta.arguments.length > 0;
9881
+ return E.app.activeObject.type === "page" && E.app.activePage.meta.arguments.length > 0;
9819
9882
  }
9820
9883
  function ic() {
9821
9884
  const t = [];
9822
- return t.push(V(h("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), t.push(
9885
+ return t.push(V(f("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), t.push(
9823
9886
  y("app_bind_v1", [po([{ key: "items", value: "2" }])])
9824
- ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(h("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), nc() && (t.push(V(h("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), W("callMethod") && (t.push(V(h("LABEL_METHOD"))), t.push(y("call_app_method_v1"))), oc() && (t.push(V(h("LABEL_ARGUMENT"))), t.push(y("get_page_argument_v1"))), t;
9887
+ ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), nc() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), W("callMethod") && (t.push(V(f("LABEL_METHOD"))), t.push(y("call_app_method_v1"))), oc() && (t.push(V(f("LABEL_ARGUMENT"))), t.push(y("get_page_argument_v1"))), t;
9825
9888
  }
9826
9889
  const fo = { name: "APP_PAGE_CATEGORY", callback: ic };
9827
9890
  function sc() {
9828
9891
  const t = [];
9829
- return t.push(V(h("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
9892
+ return t.push(V(f("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
9830
9893
  }
9831
9894
  const fe = { name: "APP_RESOURCE_CATEGORY", callback: sc }, xt = C.xml;
9832
9895
  function ac() {
@@ -9841,7 +9904,7 @@ function ac() {
9841
9904
  {
9842
9905
  const n = xt.createElement("field");
9843
9906
  n.setAttribute("name", "NAME");
9844
- const o = xt.createTextNode(h("PROCEDURE_DEFAULT_NAME"));
9907
+ const o = xt.createTextNode(f("PROCEDURE_DEFAULT_NAME"));
9845
9908
  n.appendChild(o), e.appendChild(n);
9846
9909
  }
9847
9910
  t.push(e);
@@ -9879,7 +9942,7 @@ function cc() {
9879
9942
  n.sort(kt.compareByName);
9880
9943
  {
9881
9944
  const o = te.createElement("label");
9882
- o.setAttribute("text", h("LABEL_CREATED")), e.push(o);
9945
+ o.setAttribute("text", f("LABEL_CREATED")), e.push(o);
9883
9946
  }
9884
9947
  return n.forEach((o) => {
9885
9948
  {
@@ -9898,10 +9961,10 @@ const _t = {
9898
9961
  };
9899
9962
  function rc() {
9900
9963
  const t = [];
9901
- if (Q().length > 0)
9902
- t.push(V(h("LABEL_OPERATION"))), t.push(y("add_data_v1")), t.push(y("delete_data_v1")), t.push(y("update_data_v1")), t.push(y("query_data_v1")), t.push(y("transaction_v1")), t.push(
9964
+ if (tt().length > 0)
9965
+ t.push(V(f("LABEL_OPERATION"))), t.push(y("add_data_v1")), t.push(y("delete_data_v1")), t.push(y("update_data_v1")), t.push(y("query_data_v1")), t.push(y("transaction_v1")), t.push(
9903
9966
  y("interrupt_transaction_v1", [Bt("VALUE")])
9904
- ), t.push(V(h("LABEL_CONDITION"))), t.push(y("cond_logic_v1")), t.push(y("cond_atomic_v1", [Bt("VALUE")])), t.push(V(h("LABEL_QUERY_EXTRA"))), t.push(
9967
+ ), t.push(V(f("LABEL_CONDITION"))), t.push(y("cond_logic_v1")), t.push(y("cond_atomic_v1", [Bt("VALUE")])), t.push(V(f("LABEL_QUERY_EXTRA"))), t.push(
9905
9968
  y("query_extra_limit_v1", [
9906
9969
  Pn("OFFSET", 0),
9907
9970
  Pn("LIMIT", 1)
@@ -9914,7 +9977,7 @@ function rc() {
9914
9977
  );
9915
9978
  else {
9916
9979
  const e = document.createElement("button");
9917
- e.setAttribute("text", h("BUTTON_NO_TABLE")), e.setAttribute("callbackKey", "NO_TABLE"), t.push(e);
9980
+ e.setAttribute("text", f("BUTTON_NO_TABLE")), e.setAttribute("callbackKey", "NO_TABLE"), t.push(e);
9918
9981
  }
9919
9982
  return t;
9920
9983
  }
@@ -9924,7 +9987,7 @@ function uc() {
9924
9987
  }
9925
9988
  function lc() {
9926
9989
  const t = [];
9927
- return T.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), uc() && console.assert(!0), t;
9990
+ return E.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), uc() && console.assert(!0), t;
9928
9991
  }
9929
9992
  const Te = { name: "COMPUTE_FLOW_CATEGORY", callback: lc };
9930
9993
  function _c() {
@@ -9932,7 +9995,7 @@ function _c() {
9932
9995
  }
9933
9996
  function pc() {
9934
9997
  const t = [];
9935
- return T.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), T.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), _c() && t.push(y("call_func_internal_v1")), t;
9998
+ return E.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), E.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), _c() && t.push(y("call_func_internal_v1")), t;
9936
9999
  }
9937
10000
  const Ee = { name: "COMPUTE_FUNC_CATEGORY", callback: pc };
9938
10001
  function dc() {
@@ -9941,7 +10004,7 @@ function dc() {
9941
10004
  y("compute_debug_trace_v1", [Bt("OBJECT")])
9942
10005
  ), t;
9943
10006
  }
9944
- const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10007
+ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Le = {
9945
10008
  kind: "category",
9946
10009
  name: "%{BKY_CATEGORY_COLOR}",
9947
10010
  categorystyle: "color_category",
@@ -10015,7 +10078,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10015
10078
  }
10016
10079
  }
10017
10080
  ]
10018
- }, Le = {
10081
+ }, Se = {
10019
10082
  kind: "category",
10020
10083
  name: "%{BKY_CATEGORY_LIST}",
10021
10084
  categorystyle: "list_category",
@@ -10130,7 +10193,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10130
10193
  type: "list_reverse_v1"
10131
10194
  }
10132
10195
  ]
10133
- }, Se = {
10196
+ }, Be = {
10134
10197
  kind: "category",
10135
10198
  name: "%{BKY_CATEGORY_LOGIC}",
10136
10199
  categorystyle: "logic_category",
@@ -10172,7 +10235,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10172
10235
  type: "logic_ternary_v1"
10173
10236
  }
10174
10237
  ]
10175
- }, Be = {
10238
+ }, be = {
10176
10239
  kind: "category",
10177
10240
  name: "%{BKY_CATEGORY_LOOP}",
10178
10241
  categorystyle: "loop_category",
@@ -10234,7 +10297,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10234
10297
  type: "flow_control_v1"
10235
10298
  }
10236
10299
  ]
10237
- }, be = {
10300
+ }, Pe = {
10238
10301
  kind: "category",
10239
10302
  name: "%{BKY_CATEGORY_MATH}",
10240
10303
  categorystyle: "math_category",
@@ -10389,7 +10452,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10389
10452
  type: "math_on_list_v1"
10390
10453
  }
10391
10454
  ]
10392
- }, Pe = {
10455
+ }, Re = {
10393
10456
  kind: "category",
10394
10457
  name: "%{BKY_CATEGORY_OBJECT}",
10395
10458
  categorystyle: "object_category",
@@ -10457,7 +10520,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10457
10520
  }
10458
10521
  }
10459
10522
  ]
10460
- }, Re = {
10523
+ }, De = {
10461
10524
  kind: "category",
10462
10525
  name: "%{BKY_CATEGORY_TEXT}",
10463
10526
  categorystyle: "text_category",
@@ -10665,13 +10728,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10665
10728
  categorystyle: "misc_category",
10666
10729
  custom: he.name
10667
10730
  },
10731
+ be,
10668
10732
  Be,
10733
+ Pe,
10734
+ De,
10669
10735
  Se,
10670
- be,
10671
10736
  Re,
10672
10737
  Le,
10673
- Pe,
10674
- Ne,
10675
10738
  mo,
10676
10739
  {
10677
10740
  kind: "category",
@@ -10725,13 +10788,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10725
10788
  categorystyle: "misc_category",
10726
10789
  custom: ge.name
10727
10790
  },
10791
+ be,
10728
10792
  Be,
10793
+ Pe,
10794
+ De,
10729
10795
  Se,
10730
- be,
10731
10796
  Re,
10732
10797
  Le,
10733
- Pe,
10734
- Ne,
10735
10798
  {
10736
10799
  kind: "category",
10737
10800
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10772,13 +10835,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10772
10835
  categorystyle: "misc_category",
10773
10836
  custom: ge.name
10774
10837
  },
10838
+ be,
10775
10839
  Be,
10840
+ Pe,
10841
+ De,
10776
10842
  Se,
10777
- be,
10778
10843
  Re,
10779
10844
  Le,
10780
- Pe,
10781
- Ne,
10782
10845
  {
10783
10846
  kind: "category",
10784
10847
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10844,13 +10907,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10844
10907
  categorystyle: "misc_category",
10845
10908
  custom: he.name
10846
10909
  },
10910
+ be,
10847
10911
  Be,
10912
+ Pe,
10913
+ De,
10848
10914
  Se,
10849
- be,
10850
10915
  Re,
10851
10916
  Le,
10852
- Pe,
10853
- Ne,
10854
10917
  mo,
10855
10918
  {
10856
10919
  kind: "category",
@@ -10877,7 +10940,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10877
10940
  custom: pe.name
10878
10941
  }
10879
10942
  ]
10880
- }, Ke = {
10943
+ }, $e = {
10881
10944
  grid: {
10882
10945
  length: 2,
10883
10946
  snap: !0,
@@ -10904,8 +10967,8 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10904
10967
  }
10905
10968
  };
10906
10969
  function gc(t, e, n, o) {
10907
- Ke.theme = o ? "dark" : "light", Ke.toolbox = Ac(e, n);
10908
- const i = xo(t, Ke);
10970
+ $e.theme = o ? "dark" : "light", $e.toolbox = Ac(e, n);
10971
+ const i = xo(t, $e);
10909
10972
  return i.addChangeListener(Yo.shadowBlockConversionChangeListener), Ic(i, e, n), Oc(i), i;
10910
10973
  }
10911
10974
  function Ac(t, e) {
@@ -10965,8 +11028,8 @@ function yc(t, e) {
10965
11028
  l.push(_);
10966
11029
  u.initData(l);
10967
11030
  for (let _ = 0; _ < l.length; _++) {
10968
- const d = l[_], f = u.getInput("ENTRY" + _);
10969
- o(i[d], f.connection);
11031
+ const d = l[_], h = u.getInput("ENTRY" + _);
11032
+ o(i[d], h.connection);
10970
11033
  }
10971
11034
  } else if (c === "json_array_v1") {
10972
11035
  u.initData(i.length);
@@ -11010,9 +11073,9 @@ function vc(t) {
11010
11073
  if (o.type === "json_root_v1")
11011
11074
  return e(o);
11012
11075
  }
11013
- const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11076
+ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ ct({
11014
11077
  __name: "index",
11015
- props: /* @__PURE__ */ Ge({
11078
+ props: /* @__PURE__ */ We({
11016
11079
  type: {},
11017
11080
  version: {},
11018
11081
  locale: {},
@@ -11023,11 +11086,11 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11023
11086
  scale: { required: !0 },
11024
11087
  scaleModifiers: {}
11025
11088
  }),
11026
- emits: /* @__PURE__ */ Ge(["ready"], ["update:lock", "update:scale"]),
11089
+ emits: /* @__PURE__ */ We(["ready"], ["update:lock", "update:scale"]),
11027
11090
  setup(t, { expose: e, emit: n }) {
11028
- const { backgroundColor2: o } = jt(), i = Kt(t, "lock"), a = Kt(t, "scale"), c = n, u = `blocklyEditor${We()}`, l = Nt(), _ = wt("parentContainer"), d = wt("clean"), f = wt("navigator"), p = {};
11091
+ const { backgroundColor2: o } = jt(), i = Kt(t, "lock"), a = Kt(t, "scale"), c = n, u = `blocklyEditor${je()}`, l = Nt(), _ = wt("parentContainer"), d = wt("clean"), h = wt("navigator"), p = {};
11029
11092
  Da(p);
11030
- const E = Nt(!0), A = Nt(!1), P = F(() => t.type === "json" ? "tree" : "list"), U = F(() => ({
11093
+ const m = Nt(!0), A = Nt(!1), P = F(() => t.type === "json" ? "tree" : "list"), U = F(() => ({
11031
11094
  width: "100%",
11032
11095
  height: "calc(100% - 48px)"
11033
11096
  })), gt = F(() => ({
@@ -11036,7 +11099,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11036
11099
  bottom: "0px",
11037
11100
  width: "100%",
11038
11101
  height: "48px"
11039
- })), z = F(() => ({
11102
+ })), et = F(() => ({
11040
11103
  position: "absolute",
11041
11104
  background: t.dark ? "#0000007f" : "#ffffff7f",
11042
11105
  top: "1px",
@@ -11070,7 +11133,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11070
11133
  top: 0,
11071
11134
  left: 0,
11072
11135
  zIndex: 3e3
11073
- })), { open: Ut } = tn(`blocklyEditorFlyout${We()}`);
11136
+ })), { open: Ut } = en(`blocklyEditorFlyout${je()}`);
11074
11137
  An(async () => {
11075
11138
  if (!l.value || !_.value) {
11076
11139
  console.assert(!1);
@@ -11078,8 +11141,8 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11078
11141
  }
11079
11142
  Fo(_.value), await On(t.locale), p.workspace = gc(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(I.disableOrphans), p.workspace.addChangeListener(Eo);
11080
11143
  const N = document.querySelector(`#${u} .blocklyFlyout`);
11081
- new MutationObserver((De) => {
11082
- De.forEach((zt) => {
11144
+ new MutationObserver((Me) => {
11145
+ Me.forEach((zt) => {
11083
11146
  zt.type === "attributes" && zt.attributeName === "style" && (Ut.value = p.workspace.getFlyout().isVisible());
11084
11147
  });
11085
11148
  }).observe(N, { attributes: !0 }), Ut.value = p.workspace.getFlyout().isVisible(), dn(), hn(), await ni(), c("ready");
@@ -11091,22 +11154,22 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11091
11154
  async function Eo(N) {
11092
11155
  if (N.type === I.FINISHED_LOADING) {
11093
11156
  lo(), setTimeout(() => {
11094
- f.value?.update();
11095
- }, 0), E.value = !1;
11157
+ h.value?.update();
11158
+ }, 0), m.value = !1;
11096
11159
  return;
11097
11160
  }
11098
- if (!E.value) {
11161
+ if (!m.value) {
11099
11162
  if (N.type === I.VIEWPORT_CHANGE) {
11100
11163
  a.value = p.workspace.getScale();
11101
11164
  return;
11102
11165
  }
11103
11166
  N.type === I.BLOCK_DRAG && (N.isStart ? A.value = !0 : A.value = !1), setTimeout(() => {
11104
- f.value?.update();
11167
+ h.value?.update();
11105
11168
  }, 0);
11106
11169
  }
11107
11170
  }
11108
11171
  const go = (N) => {
11109
- E.value = !0, t.type === "json" ? yc(N, p.workspace) : K.workspaces.load(N, p.workspace);
11172
+ m.value = !0, t.type === "json" ? yc(N, p.workspace) : K.workspaces.load(N, p.workspace);
11110
11173
  }, Ao = () => t.type === "json" ? vc(p.workspace) : K.workspaces.save(p.workspace), Io = () => {
11111
11174
  if (t.type === "json")
11112
11175
  console.assert(!1);
@@ -11123,7 +11186,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11123
11186
  }, mn = () => {
11124
11187
  i.value = !i.value;
11125
11188
  }, Tn = () => {
11126
- f.value && (f.value.open = !0);
11189
+ h.value && (h.value.open = !0);
11127
11190
  };
11128
11191
  return An(() => {
11129
11192
  Ct.on("cleanWorkspace", fn), Ct.on("toggleBlocklyLock", mn), Ct.on("openBlocklyNavigator", Tn);
@@ -11146,15 +11209,15 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11146
11209
  }), Vt(a, () => {
11147
11210
  hn();
11148
11211
  }), e({
11149
- loading: E,
11212
+ loading: m,
11150
11213
  load: go,
11151
11214
  save: Ao,
11152
11215
  generateCode: Io,
11153
11216
  generateReactivity: Oo,
11154
11217
  fireStateChange: yo
11155
11218
  }), (N, At) => {
11156
- const De = D("v-icon"), zt = D("x-loading");
11157
- return S(), J("div", Cc, [
11219
+ const Me = D("v-icon"), zt = D("x-loading");
11220
+ return S(), z("div", Cc, [
11158
11221
  w("div", {
11159
11222
  id: u,
11160
11223
  ref_key: "blocklyDiv",
@@ -11166,17 +11229,17 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11166
11229
  }, [
11167
11230
  oi(N.$slots, "bottom")
11168
11231
  ], 4),
11169
- A.value ? (S(), J("div", {
11232
+ A.value ? (S(), z("div", {
11170
11233
  key: 0,
11171
11234
  class: "d-flex flex-column justify-center align-center",
11172
- style: G(z.value)
11235
+ style: G(et.value)
11173
11236
  }, [
11174
- L(De, {
11237
+ L(Me, {
11175
11238
  icon: "mdi-delete",
11176
11239
  size: "x-large"
11177
11240
  })
11178
- ], 4)) : ct("", !0),
11179
- E.value ? ct("", !0) : (S(), J("div", {
11241
+ ], 4)) : rt("", !0),
11242
+ m.value ? rt("", !0) : (S(), z("div", {
11180
11243
  key: 1,
11181
11244
  class: "d-flex align-end ga-3 pt-3 pr-3",
11182
11245
  style: G(vt.value)
@@ -11192,32 +11255,32 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11192
11255
  }, null, 8, ["modelValue"]),
11193
11256
  L(ja, {
11194
11257
  ref_key: "navigator",
11195
- ref: f,
11258
+ ref: h,
11196
11259
  lock: i.value,
11197
11260
  type: P.value
11198
11261
  }, null, 8, ["lock", "type"])
11199
11262
  ], 4)),
11200
- i.value ? (S(), J("div", {
11263
+ i.value ? (S(), z("div", {
11201
11264
  key: 2,
11202
11265
  style: G(pn.value)
11203
- }, null, 4)) : ct("", !0),
11204
- i.value ? (S(), J("div", {
11266
+ }, null, 4)) : rt("", !0),
11267
+ i.value ? (S(), z("div", {
11205
11268
  key: 3,
11206
11269
  style: G(H.value)
11207
- }, null, 4)) : ct("", !0),
11270
+ }, null, 4)) : rt("", !0),
11208
11271
  w("div", {
11209
11272
  ref_key: "parentContainer",
11210
11273
  ref: _,
11211
11274
  style: G(To.value)
11212
11275
  }, null, 4),
11213
11276
  L(zt, {
11214
- open: E.value,
11277
+ open: m.value,
11215
11278
  "z-index": 99
11216
11279
  }, null, 8, ["open"])
11217
11280
  ]);
11218
11281
  };
11219
11282
  }
11220
- }), Nc = /* @__PURE__ */ st({
11283
+ }), Nc = /* @__PURE__ */ ct({
11221
11284
  __name: "index",
11222
11285
  props: {
11223
11286
  code: {}
@@ -11228,12 +11291,12 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11228
11291
  const n = Go.component, { backgroundColor2: o } = jt();
11229
11292
  return (i, a) => {
11230
11293
  const c = D("v-sheet");
11231
- return S(), et(c, {
11294
+ return S(), st(c, {
11232
11295
  color: R(o),
11233
11296
  height: "100%",
11234
11297
  width: "100%"
11235
11298
  }, {
11236
- default: nt(() => [
11299
+ default: at(() => [
11237
11300
  L(R(n), {
11238
11301
  code: e.code,
11239
11302
  language: "js"
@@ -11243,7 +11306,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11243
11306
  }, 8, ["color"]);
11244
11307
  };
11245
11308
  }
11246
- }), Lc = { class: "text-subtitle-1" }, Sc = { class: "w-100 h-100 overflow-auto" }, Bc = /* @__PURE__ */ st({
11309
+ }), Lc = { class: "text-subtitle-1" }, Sc = { class: "w-100 h-100 overflow-auto" }, Bc = /* @__PURE__ */ ct({
11247
11310
  __name: "index",
11248
11311
  setup(t) {
11249
11312
  const { t: e } = Xt(), { sysBarAvail: n } = wn(), { backgroundColor0: o, backgroundColor2: i } = jt(), a = Nt(""), c = F(() => {
@@ -11254,10 +11317,10 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11254
11317
  };
11255
11318
  }), u = (_) => {
11256
11319
  a.value = _.code;
11257
- }, { open: l } = tn("sourceDlg", u);
11320
+ }, { open: l } = en("sourceDlg", u);
11258
11321
  return (_, d) => {
11259
- const f = D("v-sheet"), p = D("v-btn"), E = D("v-spacer"), A = D("v-dialog");
11260
- return S(), et(A, {
11322
+ const h = D("v-sheet"), p = D("v-btn"), m = D("v-spacer"), A = D("v-dialog");
11323
+ return S(), st(A, {
11261
11324
  modelValue: R(l),
11262
11325
  "onUpdate:modelValue": d[1] || (d[1] = (P) => ne(l) ? l.value = P : null),
11263
11326
  fullscreen: "",
@@ -11266,24 +11329,24 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11266
11329
  transition: "dialog-bottom-transition",
11267
11330
  onKeydown: d[2] || (d[2] = Gn(Ft((P) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11268
11331
  }, {
11269
- default: nt(() => [
11270
- L(f, {
11332
+ default: at(() => [
11333
+ L(h, {
11271
11334
  color: R(o),
11272
11335
  height: "100%",
11273
11336
  width: "100%"
11274
11337
  }, {
11275
- default: nt(() => [
11276
- R(n) ? (S(), et(f, {
11338
+ default: at(() => [
11339
+ R(n) ? (S(), st(h, {
11277
11340
  key: 0,
11278
11341
  color: R(i),
11279
11342
  height: 24
11280
- }, null, 8, ["color"])) : ct("", !0),
11281
- L(f, {
11343
+ }, null, 8, ["color"])) : rt("", !0),
11344
+ L(h, {
11282
11345
  class: "d-flex align-center px-2",
11283
11346
  color: R(i),
11284
11347
  height: 48
11285
11348
  }, {
11286
- default: nt(() => [
11349
+ default: at(() => [
11287
11350
  L(p, {
11288
11351
  density: "comfortable",
11289
11352
  icon: "mdi-close",
@@ -11291,7 +11354,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11291
11354
  onClick: d[0] || (d[0] = (P) => l.value = !1)
11292
11355
  }),
11293
11356
  w("span", Lc, $t(R(e)("x-block-lib.dlg.source.title")), 1),
11294
- L(E)
11357
+ L(m)
11295
11358
  ]),
11296
11359
  _: 1
11297
11360
  }, 8, ["color"]),