x-block-lib 0.4.47 → 0.4.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/blocks/ui/appDebugTrace/v1/index.d.ts +1 -0
- package/dist/core/blocks/ui/appEnv/v1/index.d.ts +1 -0
- package/dist/core/blocks/ui/index.d.ts +2 -0
- package/dist/core/locale/msg/en.d.ts +8 -0
- package/dist/core/locale/msg/zhHans.d.ts +9 -1
- package/dist/core/toolbox/common/message/v1/index.d.ts +12 -0
- package/dist/core/toolbox/common/time/v1/index.d.ts +1 -1
- package/dist/index.js +387 -329
- package/dist/{msg-en-gh1serth.js → msg-en-enl17pxd.js} +8 -0
- package/dist/{msg-zhHans-aboc49to.js → msg-zhHans-oo3u4x5i.js} +9 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
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}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
10
10
|
var Dr = Object.defineProperty;
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
import { getCurrentScope as
|
|
14
|
-
import { d as O, j as l, O as u, M as v, u as I, X as $r, E as V, B as
|
|
11
|
+
var Pr = (e, t, n) => t in e ? Dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
12
|
+
var Fe = (e, t, n) => Pr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
13
|
+
import { getCurrentScope as xr, onScopeDispose as Ur, unref as w, computed as Te, watch as pt, ref as At, getCurrentInstance as ro, onMounted as Wt, defineComponent as Qe, onBeforeUnmount as Wn, resolveComponent as Ae, openBlock as he, createBlock as $e, withCtx as Xe, createVNode as ge, mergeProps as Ai, useModel as ti, toRefs as wr, reactive as Vr, h as ni, onUnmounted as Fr, nextTick as vi, isRef as an, resolveDirective as Yr, withDirectives as Kr, createElementBlock as mt, normalizeStyle as ot, createElementVNode as He, toDisplayString as lo, withModifiers as rn, Fragment as ea, renderList as Hr, withKeys as ta, createCommentVNode as Gt, mergeModels as Wi } from "vue";
|
|
14
|
+
import { d as O, j as l, O as u, M as v, u as I, X as $r, E as V, B as U, F as Z, i as re, a as Bt, b as co, c as ue, C as na, e as Gr, P as oi, N as bi, V as wn, g as Et, f as jr, h as oa, s as Wr, S as ye, k as Mo, l as Yt, m as Ln, n as Do, o as Zt, p as St, q as Xi, G as Po, r as Xr, t as zr, v as xo, U as Nn, D as kn, w as xt, x as Jr, T as uo, y as ia, z as qr, A as Qr, H as Zr, I as zi, J as el } from "./blockly-cc5ny7z2.js";
|
|
15
15
|
import { storeToRefs as tl } from "pinia";
|
|
16
16
|
import { openConfirmDlg as nl, openPromptDlg as ol, eventBus as We, messageWarning as sa, useColor as _o, useViewStack as po, useSystem as aa, useGlobalStore as il } from "x-essential-lib";
|
|
17
17
|
import { elements as Je, getPropTag as ra } from "x-runtime-lib";
|
|
@@ -19,10 +19,10 @@ import { useI18n as En } from "vue-i18n";
|
|
|
19
19
|
import { useDisplay as sl } from "vuetify";
|
|
20
20
|
import { useRouter as al } from "vue-router";
|
|
21
21
|
function rl(e) {
|
|
22
|
-
return
|
|
22
|
+
return xr() ? (Ur(e), !0) : !1;
|
|
23
23
|
}
|
|
24
24
|
function ll(e) {
|
|
25
|
-
return typeof e == "function" ? e() :
|
|
25
|
+
return typeof e == "function" ? e() : w(e);
|
|
26
26
|
}
|
|
27
27
|
const cl = typeof window < "u" && typeof document < "u";
|
|
28
28
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -350,7 +350,7 @@ const Tl = {
|
|
|
350
350
|
this.name ? this.setFieldValue(v[this.name], "LABEL") : this.setFieldValue(this.key, "LABEL");
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
U.parameter_v1 = Tl;
|
|
354
354
|
l.forBlock.parameter_v1 = function(e) {
|
|
355
355
|
return [e.key, u.ATOMIC];
|
|
356
356
|
};
|
|
@@ -388,8 +388,8 @@ function ua(e) {
|
|
|
388
388
|
var t = An(e);
|
|
389
389
|
return t == Ll || t == Nl || t == Sl || t == kl;
|
|
390
390
|
}
|
|
391
|
-
var
|
|
392
|
-
var e = /[^.]+$/.exec(
|
|
391
|
+
var Uo = et["__core-js_shared__"], Qi = function() {
|
|
392
|
+
var e = /[^.]+$/.exec(Uo && Uo.keys && Uo.keys.IE_PROTO || "");
|
|
393
393
|
return e ? "Symbol(src)_1." + e : "";
|
|
394
394
|
}();
|
|
395
395
|
function Bl(e) {
|
|
@@ -409,13 +409,13 @@ function Rt(e) {
|
|
|
409
409
|
}
|
|
410
410
|
return "";
|
|
411
411
|
}
|
|
412
|
-
var Dl = /[\\^$.*+?()[\]{}|]/g,
|
|
413
|
-
"^" +
|
|
412
|
+
var Dl = /[\\^$.*+?()[\]{}|]/g, Pl = /^\[object .+?Constructor\]$/, xl = Function.prototype, Ul = Object.prototype, wl = xl.toString, Vl = Ul.hasOwnProperty, Fl = RegExp(
|
|
413
|
+
"^" + wl.call(Vl).replace(Dl, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
414
414
|
);
|
|
415
415
|
function Yl(e) {
|
|
416
416
|
if (!vn(e) || Bl(e))
|
|
417
417
|
return !1;
|
|
418
|
-
var t = ua(e) ? Fl :
|
|
418
|
+
var t = ua(e) ? Fl : Pl;
|
|
419
419
|
return t.test(Rt(e));
|
|
420
420
|
}
|
|
421
421
|
function Kl(e, t) {
|
|
@@ -526,10 +526,10 @@ function Ci(e) {
|
|
|
526
526
|
return e(t);
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
|
-
var Ta = typeof exports == "object" && exports && !exports.nodeType && exports, ln = Ta && typeof module == "object" && module && !module.nodeType && module, Bc = ln && ln.exports === Ta,
|
|
529
|
+
var Ta = typeof exports == "object" && exports && !exports.nodeType && exports, ln = Ta && typeof module == "object" && module && !module.nodeType && module, Bc = ln && ln.exports === Ta, wo = Bc && la.process, zt = function() {
|
|
530
530
|
try {
|
|
531
531
|
var e = ln && ln.require && ln.require("util").types;
|
|
532
|
-
return e ||
|
|
532
|
+
return e || wo && wo.binding && wo.binding("util");
|
|
533
533
|
} catch {
|
|
534
534
|
}
|
|
535
535
|
}(), is = zt && zt.isTypedArray, Si = is ? Ci(is) : kc, Rc = Object.prototype, Mc = Rc.hasOwnProperty;
|
|
@@ -548,29 +548,29 @@ function Ea(e, t) {
|
|
|
548
548
|
return e(t(n));
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
-
var Dc = Ea(Object.keys, Object),
|
|
551
|
+
var Dc = Ea(Object.keys, Object), Pc = Object.prototype, xc = Pc.hasOwnProperty;
|
|
552
552
|
function Aa(e) {
|
|
553
553
|
if (!ho(e))
|
|
554
554
|
return Dc(e);
|
|
555
555
|
var t = [];
|
|
556
556
|
for (var n in Object(e))
|
|
557
|
-
|
|
557
|
+
xc.call(e, n) && n != "constructor" && t.push(n);
|
|
558
558
|
return t;
|
|
559
559
|
}
|
|
560
560
|
function Li(e) {
|
|
561
561
|
return yi(e) ? ma(e) : Aa(e);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Uc(e) {
|
|
564
564
|
var t = [];
|
|
565
565
|
if (e != null)
|
|
566
566
|
for (var n in Object(e))
|
|
567
567
|
t.push(n);
|
|
568
568
|
return t;
|
|
569
569
|
}
|
|
570
|
-
var
|
|
570
|
+
var wc = Object.prototype, Vc = wc.hasOwnProperty;
|
|
571
571
|
function Fc(e) {
|
|
572
572
|
if (!vn(e))
|
|
573
|
-
return
|
|
573
|
+
return Uc(e);
|
|
574
574
|
var t = ho(e), n = [];
|
|
575
575
|
for (var o in e)
|
|
576
576
|
o == "constructor" && (t || !Vc.call(e, o)) || n.push(o);
|
|
@@ -806,23 +806,23 @@ var ai = Mt(et, "DataView"), ri = Mt(et, "Promise"), li = Mt(et, "Set"), cs = "[
|
|
|
806
806
|
}
|
|
807
807
|
return t;
|
|
808
808
|
});
|
|
809
|
-
var Du = Object.prototype,
|
|
810
|
-
function
|
|
809
|
+
var Du = Object.prototype, Pu = Du.hasOwnProperty;
|
|
810
|
+
function xu(e) {
|
|
811
811
|
var t = e.length, n = new e.constructor(t);
|
|
812
|
-
return t && typeof e[0] == "string" &&
|
|
812
|
+
return t && typeof e[0] == "string" && Pu.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
813
813
|
}
|
|
814
814
|
var Xn = et.Uint8Array;
|
|
815
815
|
function Bi(e) {
|
|
816
816
|
var t = new e.constructor(e.byteLength);
|
|
817
817
|
return new Xn(t).set(new Xn(e)), t;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Uu(e, t) {
|
|
820
820
|
var n = t ? Bi(e.buffer) : e.buffer;
|
|
821
821
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
822
822
|
}
|
|
823
|
-
var
|
|
823
|
+
var wu = /\w*$/;
|
|
824
824
|
function Vu(e) {
|
|
825
|
-
var t = new e.constructor(e.source,
|
|
825
|
+
var t = new e.constructor(e.source, wu.exec(e));
|
|
826
826
|
return t.lastIndex = e.lastIndex, t;
|
|
827
827
|
}
|
|
828
828
|
var fs = vt ? vt.prototype : void 0, hs = fs ? fs.valueOf : void 0;
|
|
@@ -843,7 +843,7 @@ function r_(e, t, n) {
|
|
|
843
843
|
case Hu:
|
|
844
844
|
return new o(+e);
|
|
845
845
|
case qu:
|
|
846
|
-
return
|
|
846
|
+
return Uu(e, n);
|
|
847
847
|
case Qu:
|
|
848
848
|
case Zu:
|
|
849
849
|
case e_:
|
|
@@ -878,8 +878,8 @@ var gs = zt && zt.isMap, __ = gs ? Ci(gs) : u_, p_ = "[object Set]";
|
|
|
878
878
|
function d_(e) {
|
|
879
879
|
return Nt(e) && we(e) == p_;
|
|
880
880
|
}
|
|
881
|
-
var Ts = zt && zt.isSet, f_ = Ts ? Ci(Ts) : d_, h_ = 1, g_ = 2, T_ = 4, Sa = "[object Arguments]", m_ = "[object Array]", E_ = "[object Boolean]", A_ = "[object Date]", v_ = "[object Error]", La = "[object Function]", b_ = "[object GeneratorFunction]", O_ = "[object Map]", I_ = "[object Number]", Na = "[object Object]", y_ = "[object RegExp]", C_ = "[object Set]", S_ = "[object String]", L_ = "[object Symbol]", N_ = "[object WeakMap]", k_ = "[object ArrayBuffer]", B_ = "[object DataView]", R_ = "[object Float32Array]", M_ = "[object Float64Array]", D_ = "[object Int8Array]",
|
|
882
|
-
Q[Sa] = Q[m_] = Q[k_] = Q[B_] = Q[E_] = Q[A_] = Q[R_] = Q[M_] = Q[D_] = Q[
|
|
881
|
+
var Ts = zt && zt.isSet, f_ = Ts ? Ci(Ts) : d_, h_ = 1, g_ = 2, T_ = 4, Sa = "[object Arguments]", m_ = "[object Array]", E_ = "[object Boolean]", A_ = "[object Date]", v_ = "[object Error]", La = "[object Function]", b_ = "[object GeneratorFunction]", O_ = "[object Map]", I_ = "[object Number]", Na = "[object Object]", y_ = "[object RegExp]", C_ = "[object Set]", S_ = "[object String]", L_ = "[object Symbol]", N_ = "[object WeakMap]", k_ = "[object ArrayBuffer]", B_ = "[object DataView]", R_ = "[object Float32Array]", M_ = "[object Float64Array]", D_ = "[object Int8Array]", P_ = "[object Int16Array]", x_ = "[object Int32Array]", U_ = "[object Uint8Array]", w_ = "[object Uint8ClampedArray]", V_ = "[object Uint16Array]", F_ = "[object Uint32Array]", Q = {};
|
|
882
|
+
Q[Sa] = Q[m_] = Q[k_] = Q[B_] = Q[E_] = Q[A_] = Q[R_] = Q[M_] = Q[D_] = Q[P_] = Q[x_] = Q[O_] = Q[I_] = Q[Na] = Q[y_] = Q[C_] = Q[S_] = Q[L_] = Q[U_] = Q[w_] = Q[V_] = Q[F_] = !0;
|
|
883
883
|
Q[v_] = Q[La] = Q[N_] = !1;
|
|
884
884
|
function Vn(e, t, n, o, i, s) {
|
|
885
885
|
var a, r = t & h_, c = t & g_, _ = t & T_;
|
|
@@ -889,7 +889,7 @@ function Vn(e, t, n, o, i, s) {
|
|
|
889
889
|
return e;
|
|
890
890
|
var d = Xt(e);
|
|
891
891
|
if (d) {
|
|
892
|
-
if (a =
|
|
892
|
+
if (a = xu(e), !r)
|
|
893
893
|
return $l(e, a);
|
|
894
894
|
} else {
|
|
895
895
|
var p = we(e), f = p == La || p == b_;
|
|
@@ -1160,9 +1160,9 @@ function Dg() {
|
|
|
1160
1160
|
function Np(e) {
|
|
1161
1161
|
const t = [];
|
|
1162
1162
|
function n(o, i, s) {
|
|
1163
|
-
if (
|
|
1163
|
+
if (i !== "" && (i += "."), i += o.key, o.children) {
|
|
1164
1164
|
o.children.forEach((c) => {
|
|
1165
|
-
n(c, i, o.
|
|
1165
|
+
n(c, i, o.name);
|
|
1166
1166
|
});
|
|
1167
1167
|
return;
|
|
1168
1168
|
}
|
|
@@ -1224,7 +1224,7 @@ function Mi(e) {
|
|
|
1224
1224
|
function Da(e) {
|
|
1225
1225
|
return ee.compute.funcs[e];
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Pa(e) {
|
|
1228
1228
|
const t = [];
|
|
1229
1229
|
return Mi(e).forEach((o) => {
|
|
1230
1230
|
t.push([o.name, o.id]);
|
|
@@ -1291,7 +1291,7 @@ const Bp = {
|
|
|
1291
1291
|
return Ma();
|
|
1292
1292
|
},
|
|
1293
1293
|
genFuncOpts_: function() {
|
|
1294
|
-
return
|
|
1294
|
+
return Pa(this.space.id);
|
|
1295
1295
|
},
|
|
1296
1296
|
onchange: function() {
|
|
1297
1297
|
setTimeout(() => {
|
|
@@ -1369,7 +1369,7 @@ const Bp = {
|
|
|
1369
1369
|
this.setWarningText(null);
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
|
-
|
|
1372
|
+
U.call_func_v1 = Bp;
|
|
1373
1373
|
l.forBlock.call_func_v1 = function(e) {
|
|
1374
1374
|
const t = l.INDENT, n = l.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
|
|
1375
1375
|
for (let f = 0; f < o.func.inputs.length; f++)
|
|
@@ -1435,7 +1435,7 @@ const Rp = {
|
|
|
1435
1435
|
return Ma();
|
|
1436
1436
|
},
|
|
1437
1437
|
genFuncOpts_: function() {
|
|
1438
|
-
return
|
|
1438
|
+
return Pa(this.space.id);
|
|
1439
1439
|
},
|
|
1440
1440
|
onchange: function() {
|
|
1441
1441
|
setTimeout(() => {
|
|
@@ -1513,7 +1513,7 @@ const Rp = {
|
|
|
1513
1513
|
this.setWarningText(null);
|
|
1514
1514
|
}
|
|
1515
1515
|
};
|
|
1516
|
-
|
|
1516
|
+
U.call_func_internal_v1 = Rp;
|
|
1517
1517
|
l.forBlock.call_func_internal_v1 = function(e) {
|
|
1518
1518
|
const t = l.INDENT, n = l.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
|
|
1519
1519
|
for (let f = 0; f < o.func.inputs.length; f++)
|
|
@@ -1619,7 +1619,7 @@ const Mp = {
|
|
|
1619
1619
|
this.setWarningText(null);
|
|
1620
1620
|
}
|
|
1621
1621
|
};
|
|
1622
|
-
|
|
1622
|
+
U.func_entry_v1 = Mp;
|
|
1623
1623
|
l.forBlock.func_entry_v1 = function(e) {
|
|
1624
1624
|
const t = e, n = l.statementToCode(t, "HANDLE"), o = [];
|
|
1625
1625
|
for (let a = 0; a < t.func.inputs.length; a++) {
|
|
@@ -1633,12 +1633,12 @@ const Dp = {
|
|
|
1633
1633
|
init: function() {
|
|
1634
1634
|
}
|
|
1635
1635
|
};
|
|
1636
|
-
|
|
1636
|
+
U.on_flow_state_event_v1 = Dp;
|
|
1637
1637
|
l.forBlock.on_flow_state_event_v1 = function() {
|
|
1638
1638
|
return `__onFlowStateEventV1__();
|
|
1639
1639
|
`;
|
|
1640
1640
|
};
|
|
1641
|
-
const
|
|
1641
|
+
const Pp = {
|
|
1642
1642
|
init: function() {
|
|
1643
1643
|
this.output = {
|
|
1644
1644
|
id: "",
|
|
@@ -1717,7 +1717,7 @@ const xp = {
|
|
|
1717
1717
|
this.setWarningText(null);
|
|
1718
1718
|
}
|
|
1719
1719
|
};
|
|
1720
|
-
|
|
1720
|
+
U.set_func_output_v1 = Pp;
|
|
1721
1721
|
l.forBlock.set_func_output_v1 = function(e) {
|
|
1722
1722
|
const t = l.quote_, n = e, { id: o, type: i } = n.output;
|
|
1723
1723
|
let s = l.valueToCode(n, "VALUE", u.ATOMIC);
|
|
@@ -1744,7 +1744,7 @@ l.forBlock.set_func_output_v1 = function(e) {
|
|
|
1744
1744
|
return `__setFuncOutputV1__(${t(o)}, ${s});
|
|
1745
1745
|
`;
|
|
1746
1746
|
};
|
|
1747
|
-
const
|
|
1747
|
+
const xp = {
|
|
1748
1748
|
init: function() {
|
|
1749
1749
|
this.appendDummyInput().appendField("%{BKY_DATA_V1_ADD_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_ADD_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_ADD_DATA_HELPURL}");
|
|
1750
1750
|
},
|
|
@@ -1767,7 +1767,7 @@ const Pp = {
|
|
|
1767
1767
|
]);
|
|
1768
1768
|
}
|
|
1769
1769
|
};
|
|
1770
|
-
|
|
1770
|
+
U.add_data_v1 = xp;
|
|
1771
1771
|
l.forBlock.add_data_v1 = function(e) {
|
|
1772
1772
|
const t = l.INDENT, n = l.valueToCode(e, "TABLE", u.ATOMIC) || "null", o = l.statementToCode(e, "HANDLE");
|
|
1773
1773
|
return `{
|
|
@@ -1819,7 +1819,7 @@ function Eo(e) {
|
|
|
1819
1819
|
t.push([o.name, o.id]);
|
|
1820
1820
|
}), Be(t);
|
|
1821
1821
|
}
|
|
1822
|
-
const
|
|
1822
|
+
const Up = {
|
|
1823
1823
|
init: function() {
|
|
1824
1824
|
this.space = {
|
|
1825
1825
|
id: "",
|
|
@@ -1964,7 +1964,7 @@ const wp = {
|
|
|
1964
1964
|
this.setWarningText(null);
|
|
1965
1965
|
}
|
|
1966
1966
|
};
|
|
1967
|
-
|
|
1967
|
+
U.cond_atomic_v1 = Up;
|
|
1968
1968
|
l.forBlock.cond_atomic_v1 = function(e) {
|
|
1969
1969
|
const t = l.quote_, n = e.getFieldValue("COLUMN"), o = l.valueToCode(e, "VALUE", u.ATOMIC) || null, s = {
|
|
1970
1970
|
EQ: "=",
|
|
@@ -1976,18 +1976,18 @@ l.forBlock.cond_atomic_v1 = function(e) {
|
|
|
1976
1976
|
}[e.getFieldValue("OP")];
|
|
1977
1977
|
return [`{type:'ATOMIC,key:${t(n)},value:${o},operator:${t(s)}}`, u.ATOMIC];
|
|
1978
1978
|
};
|
|
1979
|
-
const
|
|
1979
|
+
const wp = {
|
|
1980
1980
|
init: function() {
|
|
1981
1981
|
this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
1982
1982
|
}
|
|
1983
1983
|
};
|
|
1984
|
-
|
|
1984
|
+
U.cond_logic_container_v1 = wp;
|
|
1985
1985
|
const Vp = {
|
|
1986
1986
|
init: function() {
|
|
1987
1987
|
this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
1988
1988
|
}
|
|
1989
1989
|
};
|
|
1990
|
-
|
|
1990
|
+
U.cond_logic_item_v1 = Vp;
|
|
1991
1991
|
const Fp = {
|
|
1992
1992
|
init: function() {
|
|
1993
1993
|
this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
|
|
@@ -2064,7 +2064,7 @@ const Fp = {
|
|
|
2064
2064
|
this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setCheck("Condition");
|
|
2065
2065
|
}
|
|
2066
2066
|
};
|
|
2067
|
-
|
|
2067
|
+
U.cond_logic_v1 = Fp;
|
|
2068
2068
|
l.forBlock.cond_logic_v1 = function(e) {
|
|
2069
2069
|
const t = l.quote_, n = e, o = n.getFieldValue("TYPE"), i = [], s = l.valueToCode(n, "VALUE", u.ATOMIC) || null;
|
|
2070
2070
|
i.push(s);
|
|
@@ -2096,7 +2096,7 @@ const Yp = {
|
|
|
2096
2096
|
]);
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
|
-
|
|
2099
|
+
U.delete_data_v1 = Yp;
|
|
2100
2100
|
l.forBlock.delete_data_v1 = function(e) {
|
|
2101
2101
|
const t = l.INDENT, n = l.valueToCode(e, "TABLE", u.ATOMIC) || "null", o = l.valueToCode(e, "CONDITION", u.ATOMIC) || "null", i = l.statementToCode(e, "HANDLE");
|
|
2102
2102
|
return `{
|
|
@@ -2157,7 +2157,7 @@ const Kp = {
|
|
|
2157
2157
|
]);
|
|
2158
2158
|
}
|
|
2159
2159
|
};
|
|
2160
|
-
|
|
2160
|
+
U.query_data_v1 = Kp;
|
|
2161
2161
|
l.forBlock.query_data_v1 = function(e) {
|
|
2162
2162
|
const t = l.INDENT, n = l.valueToCode(e, "TABLE", u.ATOMIC) || "null", o = l.valueToCode(e, "CONDITION", u.ATOMIC) || "null";
|
|
2163
2163
|
let i = "null";
|
|
@@ -2232,13 +2232,13 @@ const Hp = {
|
|
|
2232
2232
|
this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
2233
2233
|
}
|
|
2234
2234
|
};
|
|
2235
|
-
|
|
2235
|
+
U.select_column_container_v1 = Hp;
|
|
2236
2236
|
const $p = {
|
|
2237
2237
|
init: function() {
|
|
2238
2238
|
this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
2239
2239
|
}
|
|
2240
2240
|
};
|
|
2241
|
-
|
|
2241
|
+
U.select_column_item_v1 = $p;
|
|
2242
2242
|
const Gp = {
|
|
2243
2243
|
init: function() {
|
|
2244
2244
|
this.space = {
|
|
@@ -2428,7 +2428,7 @@ const Gp = {
|
|
|
2428
2428
|
this.setWarningText(null);
|
|
2429
2429
|
}
|
|
2430
2430
|
};
|
|
2431
|
-
|
|
2431
|
+
U.select_column_v1 = Gp;
|
|
2432
2432
|
l.forBlock.select_column_v1 = function(e) {
|
|
2433
2433
|
const t = l.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
|
|
2434
2434
|
for (let c = 0; c < n.itemCount_; c++) {
|
|
@@ -2534,7 +2534,7 @@ const jp = {
|
|
|
2534
2534
|
t.name !== this.table.name && (this.table.name = t.name), this.setWarningText(null);
|
|
2535
2535
|
}
|
|
2536
2536
|
};
|
|
2537
|
-
|
|
2537
|
+
U.select_table_v1 = jp;
|
|
2538
2538
|
l.forBlock.select_table_v1 = function(e) {
|
|
2539
2539
|
const t = l.quote_, n = e, o = n.space.id, i = n.table.id;
|
|
2540
2540
|
return [`{spaceid:${t(o)},tableid:${t(i)}}`, u.ATOMIC];
|
|
@@ -2544,13 +2544,13 @@ const Wp = {
|
|
|
2544
2544
|
this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
2545
2545
|
}
|
|
2546
2546
|
};
|
|
2547
|
-
|
|
2547
|
+
U.update_column_container_v1 = Wp;
|
|
2548
2548
|
const Xp = {
|
|
2549
2549
|
init: function() {
|
|
2550
2550
|
this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
2551
2551
|
}
|
|
2552
2552
|
};
|
|
2553
|
-
|
|
2553
|
+
U.update_column_item_v1 = Xp;
|
|
2554
2554
|
const zp = {
|
|
2555
2555
|
init: function() {
|
|
2556
2556
|
this.space = {
|
|
@@ -2759,7 +2759,7 @@ const zp = {
|
|
|
2759
2759
|
this.setWarningText(null);
|
|
2760
2760
|
}
|
|
2761
2761
|
};
|
|
2762
|
-
|
|
2762
|
+
U.update_column_v1 = zp;
|
|
2763
2763
|
l.forBlock.update_column_v1 = function(e) {
|
|
2764
2764
|
const t = l.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
|
|
2765
2765
|
for (let c = 0; c < n.itemCount_; c++) {
|
|
@@ -2792,7 +2792,7 @@ const Jp = {
|
|
|
2792
2792
|
]);
|
|
2793
2793
|
}
|
|
2794
2794
|
};
|
|
2795
|
-
|
|
2795
|
+
U.update_data_v1 = Jp;
|
|
2796
2796
|
l.forBlock.update_data_v1 = function(e) {
|
|
2797
2797
|
const t = l.INDENT, n = l.valueToCode(e, "TABLE", u.ATOMIC) || "null", o = l.valueToCode(e, "CONDITION", u.ATOMIC) || "null", i = l.statementToCode(e, "HANDLE");
|
|
2798
2798
|
return `{
|
|
@@ -2809,13 +2809,13 @@ const qp = I.xml, Qp = {
|
|
|
2809
2809
|
this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
|
|
2810
2810
|
}
|
|
2811
2811
|
};
|
|
2812
|
-
|
|
2812
|
+
U.list_create_container_v1 = Qp;
|
|
2813
2813
|
const Zp = {
|
|
2814
2814
|
init: function() {
|
|
2815
2815
|
this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("list_blocks"), this.contextMenu = !1;
|
|
2816
2816
|
}
|
|
2817
2817
|
};
|
|
2818
|
-
|
|
2818
|
+
U.list_create_item_v1 = Zp;
|
|
2819
2819
|
const ed = {
|
|
2820
2820
|
init: function() {
|
|
2821
2821
|
this.itemCount_ = 0, this.setMutator(
|
|
@@ -2900,7 +2900,7 @@ const ed = {
|
|
|
2900
2900
|
this.removeInput("ADD" + e);
|
|
2901
2901
|
}
|
|
2902
2902
|
};
|
|
2903
|
-
|
|
2903
|
+
U.list_create_v1 = ed;
|
|
2904
2904
|
l.forBlock.list_create_v1 = function(e) {
|
|
2905
2905
|
const t = e, n = new Array(t.itemCount_);
|
|
2906
2906
|
for (let i = 0; i < t.itemCount_; i++)
|
|
@@ -4423,13 +4423,13 @@ const cd = I.xml, ud = {
|
|
|
4423
4423
|
), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
4424
4424
|
}
|
|
4425
4425
|
};
|
|
4426
|
-
|
|
4426
|
+
U.object_create_container_v1 = ud;
|
|
4427
4427
|
const _d = {
|
|
4428
4428
|
init: function() {
|
|
4429
4429
|
this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
4430
4430
|
}
|
|
4431
4431
|
};
|
|
4432
|
-
|
|
4432
|
+
U.object_create_item_v1 = _d;
|
|
4433
4433
|
const pd = {
|
|
4434
4434
|
init: function() {
|
|
4435
4435
|
this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
|
|
@@ -4506,7 +4506,7 @@ const pd = {
|
|
|
4506
4506
|
this.removeInput("ADD" + e);
|
|
4507
4507
|
}
|
|
4508
4508
|
};
|
|
4509
|
-
|
|
4509
|
+
U.object_create_v1 = pd;
|
|
4510
4510
|
l.forBlock.object_create_v1 = function(e) {
|
|
4511
4511
|
const t = e;
|
|
4512
4512
|
let n = "{";
|
|
@@ -4769,7 +4769,7 @@ const Os = I.xml, dd = {
|
|
|
4769
4769
|
this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new Gr(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
|
|
4770
4770
|
}
|
|
4771
4771
|
};
|
|
4772
|
-
|
|
4772
|
+
U.procedure_def_container_v1 = dd;
|
|
4773
4773
|
const fd = {
|
|
4774
4774
|
init: function() {
|
|
4775
4775
|
const e = new co(oi.DEFAULT_ARG);
|
|
@@ -4792,7 +4792,7 @@ const fd = {
|
|
|
4792
4792
|
return e;
|
|
4793
4793
|
}
|
|
4794
4794
|
};
|
|
4795
|
-
|
|
4795
|
+
U.procedure_def_item_v1 = fd;
|
|
4796
4796
|
const hd = {
|
|
4797
4797
|
init: function() {
|
|
4798
4798
|
this.withReturn = !1, this.args = [];
|
|
@@ -4893,7 +4893,7 @@ const hd = {
|
|
|
4893
4893
|
}
|
|
4894
4894
|
}
|
|
4895
4895
|
};
|
|
4896
|
-
|
|
4896
|
+
U.procedure_def_v1 = hd;
|
|
4897
4897
|
const gd = I.xml, Td = {
|
|
4898
4898
|
init: function() {
|
|
4899
4899
|
this.withReturn = !1, this.appendDummyInput("DUMMY").appendField("%{BKY_PROCEDURE_RETURN}"), this.appendValueInput("VALUE").appendField("%{BKY_PROCEDURE_RETURN}").setVisible(!1), this.setPreviousStatement(!0), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_RETURN_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_RETURN_HELPURL}");
|
|
@@ -4950,7 +4950,7 @@ const gd = I.xml, Td = {
|
|
|
4950
4950
|
e.type === "procedure_def_v1" || e.type === "func_entry_v1" ? this.setWarningText(null) : this.setWarningText("the block can only be used in procedure block");
|
|
4951
4951
|
}
|
|
4952
4952
|
};
|
|
4953
|
-
|
|
4953
|
+
U.procedure_return_v1 = Td;
|
|
4954
4954
|
l.forBlock.procedure_return_v1 = function(e) {
|
|
4955
4955
|
const t = e;
|
|
4956
4956
|
return t.withReturn ? `return ${l.valueToCode(t, "VALUE", u.NONE) || "null"};
|
|
@@ -5524,12 +5524,11 @@ const bd = {
|
|
|
5524
5524
|
));
|
|
5525
5525
|
}
|
|
5526
5526
|
};
|
|
5527
|
-
|
|
5527
|
+
U.create_timer_v1 = bd;
|
|
5528
5528
|
l.forBlock.create_timer_v1 = function(e) {
|
|
5529
5529
|
const t = l.valueToCode(e, "INTERVAL", u.ATOMIC) || "1000", n = l.valueToCode(e, "LOOP", u.ATOMIC) || "false", o = l.valueToCode(e, "COUNT", u.ATOMIC) || "1", i = l.valueToCode(e, "IMMEDIATE", u.ATOMIC) || "false", s = l.statementToCode(e, "CALLBACK");
|
|
5530
5530
|
return `__createTimerV1__(${t}, ${n}, ${o}, ${i}, function() {
|
|
5531
|
-
|
|
5532
|
-
});
|
|
5531
|
+
${s}});
|
|
5533
5532
|
`;
|
|
5534
5533
|
};
|
|
5535
5534
|
O([
|
|
@@ -5539,7 +5538,7 @@ O([
|
|
|
5539
5538
|
args0: [
|
|
5540
5539
|
{
|
|
5541
5540
|
type: "input_value",
|
|
5542
|
-
name: "
|
|
5541
|
+
name: "DURATION",
|
|
5543
5542
|
check: "Number"
|
|
5544
5543
|
}
|
|
5545
5544
|
],
|
|
@@ -5551,9 +5550,53 @@ O([
|
|
|
5551
5550
|
}
|
|
5552
5551
|
]);
|
|
5553
5552
|
l.forBlock.delay_v1 = function(e) {
|
|
5554
|
-
return `__delayV1__(${l.valueToCode(e, "
|
|
5553
|
+
return `__delayV1__(${l.valueToCode(e, "DURATION", u.ATOMIC) || "0"});
|
|
5555
5554
|
`;
|
|
5556
5555
|
};
|
|
5556
|
+
O([
|
|
5557
|
+
{
|
|
5558
|
+
type: "app_debug_trace_v1",
|
|
5559
|
+
message0: "%{BKY_UI_V1_APP_DEBUG_TRACE_TITLE}",
|
|
5560
|
+
args0: [
|
|
5561
|
+
{
|
|
5562
|
+
type: "input_value",
|
|
5563
|
+
name: "OBJECT"
|
|
5564
|
+
}
|
|
5565
|
+
],
|
|
5566
|
+
previousStatement: null,
|
|
5567
|
+
nextStatement: null,
|
|
5568
|
+
style: "procedure_blocks",
|
|
5569
|
+
tooltip: "%{BKY_UI_V1_APP_DEBUG_TRACE_TOOLTIP}",
|
|
5570
|
+
helpUrl: "%{BKY_UI_V1_APP_DEBUG_TRACE_HELPURL}"
|
|
5571
|
+
}
|
|
5572
|
+
]);
|
|
5573
|
+
l.forBlock.app_debug_trace_v1 = function(e) {
|
|
5574
|
+
return `__debugTraceV1__(${l.valueToCode(e, "OBJECT", u.NONE)});
|
|
5575
|
+
`;
|
|
5576
|
+
};
|
|
5577
|
+
O([
|
|
5578
|
+
{
|
|
5579
|
+
type: "app_env_v1",
|
|
5580
|
+
message0: "%{BKY_UI_V1_APP_ENV_TITLE}",
|
|
5581
|
+
args0: [
|
|
5582
|
+
{
|
|
5583
|
+
type: "field_dropdown",
|
|
5584
|
+
name: "ENV",
|
|
5585
|
+
options: [
|
|
5586
|
+
["%{BKY_UI_ENV_DEV}", "dev"],
|
|
5587
|
+
["%{BKY_UI_ENV_PROD}", "prod"]
|
|
5588
|
+
]
|
|
5589
|
+
}
|
|
5590
|
+
],
|
|
5591
|
+
output: "Boolean",
|
|
5592
|
+
style: "logic_blocks",
|
|
5593
|
+
tooltip: "%{BKY_UI_V1_APP_ENV_TOOLTIP}",
|
|
5594
|
+
helpUrl: "%{BKY_UI_V1_APP_ENV_HELPURL}"
|
|
5595
|
+
}
|
|
5596
|
+
]);
|
|
5597
|
+
l.forBlock.app_env_v1 = function(e) {
|
|
5598
|
+
return [`__getEnvV1__() === ${l.quote_(e.getFieldValue("ENV"))}`, u.ATOMIC];
|
|
5599
|
+
};
|
|
5557
5600
|
function bn(e) {
|
|
5558
5601
|
const { nodes: t } = ee.app, n = [];
|
|
5559
5602
|
for (const o in t) {
|
|
@@ -5766,7 +5809,7 @@ const Cd = {
|
|
|
5766
5809
|
this.setWarningText(null);
|
|
5767
5810
|
}
|
|
5768
5811
|
};
|
|
5769
|
-
|
|
5812
|
+
U.call_node_method_v1 = Cd;
|
|
5770
5813
|
l.forBlock.call_node_method_v1 = function(e) {
|
|
5771
5814
|
return `${e.node.id}`;
|
|
5772
5815
|
};
|
|
@@ -5834,7 +5877,7 @@ const Sd = {
|
|
|
5834
5877
|
this.node.alias !== e.alias && (this.node.alias = e.alias), this.setWarningText(null);
|
|
5835
5878
|
}
|
|
5836
5879
|
};
|
|
5837
|
-
|
|
5880
|
+
U.get_node_v1 = Sd;
|
|
5838
5881
|
l.forBlock.get_node_v1 = function(e) {
|
|
5839
5882
|
const t = e;
|
|
5840
5883
|
return [l.quote_(t.node.id), u.ATOMIC];
|
|
@@ -5931,7 +5974,7 @@ const Ld = {
|
|
|
5931
5974
|
at(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
5932
5975
|
}
|
|
5933
5976
|
};
|
|
5934
|
-
|
|
5977
|
+
U.get_node_prop_v1 = Ld;
|
|
5935
5978
|
l.forBlock.get_node_prop_v1 = function(e) {
|
|
5936
5979
|
const t = e, n = l.quote_(t.node.id), o = l.quote_(t.prop.keys);
|
|
5937
5980
|
return [`__getNodePropV1_(${n}, ${o})`, u.ATOMIC];
|
|
@@ -6060,7 +6103,7 @@ const Bd = {
|
|
|
6060
6103
|
t.name !== this.page.name && (this.page.name = t.name), this.setWarningText(null);
|
|
6061
6104
|
}
|
|
6062
6105
|
};
|
|
6063
|
-
|
|
6106
|
+
U.navigate_to_v1 = Bd;
|
|
6064
6107
|
l.forBlock.navigate_to_v1 = function(e) {
|
|
6065
6108
|
const t = e, n = l.quote_(t.app.id), o = l.quote_(t.page.id), i = l.quote_(t.getFieldValue("MODE"));
|
|
6066
6109
|
return `__navigateToV1__(${n}, ${o}, ${i});
|
|
@@ -6187,7 +6230,7 @@ const Rd = {
|
|
|
6187
6230
|
this.setWarningText(null);
|
|
6188
6231
|
}
|
|
6189
6232
|
};
|
|
6190
|
-
|
|
6233
|
+
U.on_node_event_v1 = Rd;
|
|
6191
6234
|
l.forBlock.on_node_event_v1 = function(e) {
|
|
6192
6235
|
const t = e, n = l.quote_(t.node.id), o = l.quote_(t.event.key);
|
|
6193
6236
|
let i = "";
|
|
@@ -6230,7 +6273,7 @@ const Md = {
|
|
|
6230
6273
|
]);
|
|
6231
6274
|
}
|
|
6232
6275
|
};
|
|
6233
|
-
|
|
6276
|
+
U.open_confirm_dlg_v1 = Md;
|
|
6234
6277
|
l.forBlock.open_confirm_dlg_v1 = function(e) {
|
|
6235
6278
|
const t = l.valueToCode(e, "TITLE", u.ATOMIC), n = l.valueToCode(e, "TEXT", u.ATOMIC), o = l.statementToCode(e, "HANDLE");
|
|
6236
6279
|
return `{
|
|
@@ -6271,7 +6314,7 @@ const Dd = {
|
|
|
6271
6314
|
]);
|
|
6272
6315
|
}
|
|
6273
6316
|
};
|
|
6274
|
-
|
|
6317
|
+
U.open_prompt_dlg_v1 = Dd;
|
|
6275
6318
|
l.forBlock.open_prompt_dlg_v1 = function(e) {
|
|
6276
6319
|
const t = l.valueToCode(e, "TITLE", u.ATOMIC), n = l.valueToCode(e, "LABEL", u.ATOMIC), o = l.valueToCode(e, "VALUE", u.ATOMIC), i = l.statementToCode(e, "HANDLE");
|
|
6277
6320
|
return `{
|
|
@@ -6311,18 +6354,18 @@ l.forBlock.popup_message_v1 = function(e) {
|
|
|
6311
6354
|
return `__messageV1__(${t}, ${n});
|
|
6312
6355
|
`;
|
|
6313
6356
|
};
|
|
6314
|
-
const
|
|
6357
|
+
const Pd = {
|
|
6315
6358
|
customContextMenu: function(e) {
|
|
6316
6359
|
if (this.isInFlyout) {
|
|
6317
6360
|
if (this.type === "variables_get_v1" || this.type === "variables_get_v1_reporter") {
|
|
6318
6361
|
const t = {
|
|
6319
6362
|
text: v.RENAME_VARIABLE,
|
|
6320
6363
|
enabled: !0,
|
|
6321
|
-
callback:
|
|
6364
|
+
callback: xd(this)
|
|
6322
6365
|
}, n = this.getField("VAR").getText(), o = {
|
|
6323
6366
|
text: v.DELETE_VARIABLE.replace("%1", n),
|
|
6324
6367
|
enabled: !0,
|
|
6325
|
-
callback:
|
|
6368
|
+
callback: Ud(this)
|
|
6326
6369
|
};
|
|
6327
6370
|
e.unshift(t), e.unshift(o);
|
|
6328
6371
|
}
|
|
@@ -6340,12 +6383,12 @@ const xd = {
|
|
|
6340
6383
|
});
|
|
6341
6384
|
}
|
|
6342
6385
|
}
|
|
6343
|
-
},
|
|
6386
|
+
}, xd = function(e) {
|
|
6344
6387
|
return function() {
|
|
6345
6388
|
const t = e.workspace, o = e.getField("VAR").getVariable();
|
|
6346
|
-
|
|
6389
|
+
wn.renameVariable(t, o);
|
|
6347
6390
|
};
|
|
6348
|
-
},
|
|
6391
|
+
}, Ud = function(e) {
|
|
6349
6392
|
return function() {
|
|
6350
6393
|
const t = e.workspace, o = e.getField("VAR").getVariable();
|
|
6351
6394
|
t.deleteVariableById(o.getId()), t.refreshToolboxSelection();
|
|
@@ -6353,7 +6396,7 @@ const xd = {
|
|
|
6353
6396
|
};
|
|
6354
6397
|
ue.registerMixin(
|
|
6355
6398
|
"context_menu_variable_v1",
|
|
6356
|
-
|
|
6399
|
+
Pd
|
|
6357
6400
|
);
|
|
6358
6401
|
O([
|
|
6359
6402
|
{
|
|
@@ -6410,7 +6453,7 @@ l.forBlock.variable_set_v1 = function(e) {
|
|
|
6410
6453
|
`;
|
|
6411
6454
|
};
|
|
6412
6455
|
const K = I.xml;
|
|
6413
|
-
function
|
|
6456
|
+
function wd() {
|
|
6414
6457
|
const e = [];
|
|
6415
6458
|
if (Qt().length > 0) {
|
|
6416
6459
|
{
|
|
@@ -6562,26 +6605,26 @@ function Ud() {
|
|
|
6562
6605
|
}
|
|
6563
6606
|
const Jn = {
|
|
6564
6607
|
name: "DATA_CATEGORY",
|
|
6565
|
-
callback:
|
|
6566
|
-
},
|
|
6608
|
+
callback: wd
|
|
6609
|
+
}, Ut = I.xml;
|
|
6567
6610
|
function Vd(e) {
|
|
6568
6611
|
const { funcs: t } = ee.compute, n = [];
|
|
6569
6612
|
if (e === "flow") {
|
|
6570
6613
|
{
|
|
6571
|
-
const o =
|
|
6614
|
+
const o = Ut.createElement("block");
|
|
6572
6615
|
o.setAttribute("type", "on_flow_state_event_v1"), n.push(o);
|
|
6573
6616
|
}
|
|
6574
6617
|
{
|
|
6575
|
-
const o =
|
|
6618
|
+
const o = Ut.createElement("block");
|
|
6576
6619
|
o.setAttribute("type", "compute_debug_trace_v1");
|
|
6577
6620
|
{
|
|
6578
|
-
const i =
|
|
6621
|
+
const i = Ut.createElement("value");
|
|
6579
6622
|
i.setAttribute("name", "OBJECT");
|
|
6580
6623
|
{
|
|
6581
|
-
const s =
|
|
6624
|
+
const s = Ut.createElement("shadow");
|
|
6582
6625
|
s.setAttribute("type", "text_v1");
|
|
6583
6626
|
{
|
|
6584
|
-
const a =
|
|
6627
|
+
const a = Ut.createElement("field");
|
|
6585
6628
|
a.setAttribute("name", "TEXT"), s.appendChild(a);
|
|
6586
6629
|
}
|
|
6587
6630
|
i.appendChild(s);
|
|
@@ -6592,7 +6635,7 @@ function Vd(e) {
|
|
|
6592
6635
|
}
|
|
6593
6636
|
} else if (e === "func") {
|
|
6594
6637
|
if (!ci(t)) {
|
|
6595
|
-
const o =
|
|
6638
|
+
const o = Ut.createElement("block");
|
|
6596
6639
|
o.setAttribute("type", "call_func_internal_v1"), n.push(o);
|
|
6597
6640
|
}
|
|
6598
6641
|
} else
|
|
@@ -6666,7 +6709,7 @@ function Yd() {
|
|
|
6666
6709
|
}
|
|
6667
6710
|
return e;
|
|
6668
6711
|
}
|
|
6669
|
-
const
|
|
6712
|
+
const xa = {
|
|
6670
6713
|
name: "INTERFACE_CATEGORY",
|
|
6671
6714
|
callback: Yd
|
|
6672
6715
|
}, tn = I.xml;
|
|
@@ -6703,53 +6746,57 @@ function Hd() {
|
|
|
6703
6746
|
const { args: e } = ee.app;
|
|
6704
6747
|
return e;
|
|
6705
6748
|
}
|
|
6706
|
-
const
|
|
6749
|
+
const xe = I.xml;
|
|
6707
6750
|
function $d() {
|
|
6708
6751
|
const e = [];
|
|
6709
6752
|
if (Hd().length > 0) {
|
|
6710
6753
|
{
|
|
6711
|
-
const t =
|
|
6754
|
+
const t = xe.createElement("label");
|
|
6712
6755
|
t.setAttribute("text", v.LABEL_ARGUMENT), e.push(t);
|
|
6713
6756
|
}
|
|
6714
6757
|
{
|
|
6715
|
-
const t =
|
|
6758
|
+
const t = xe.createElement("block");
|
|
6716
6759
|
t.setAttribute("type", "get_arg_v1"), e.push(t);
|
|
6717
6760
|
}
|
|
6718
6761
|
}
|
|
6719
6762
|
{
|
|
6720
|
-
const t =
|
|
6763
|
+
const t = xe.createElement("label");
|
|
6721
6764
|
t.setAttribute("text", v.LABEL_EVENT), e.push(t);
|
|
6722
6765
|
}
|
|
6723
6766
|
{
|
|
6724
|
-
const t =
|
|
6767
|
+
const t = xe.createElement("block");
|
|
6725
6768
|
t.setAttribute("type", "on_node_event_v1"), e.push(t);
|
|
6726
6769
|
}
|
|
6727
6770
|
{
|
|
6728
|
-
const t =
|
|
6771
|
+
const t = xe.createElement("label");
|
|
6729
6772
|
t.setAttribute("text", v.LABEL_METHOD), e.push(t);
|
|
6730
6773
|
}
|
|
6731
6774
|
{
|
|
6732
|
-
const t =
|
|
6775
|
+
const t = xe.createElement("block");
|
|
6733
6776
|
t.setAttribute("type", "call_node_method_v1"), e.push(t);
|
|
6734
6777
|
}
|
|
6735
6778
|
{
|
|
6736
|
-
const t =
|
|
6779
|
+
const t = xe.createElement("label");
|
|
6737
6780
|
t.setAttribute("text", v.LABEL_PROPERTY), e.push(t);
|
|
6738
6781
|
}
|
|
6739
6782
|
{
|
|
6740
|
-
const t =
|
|
6783
|
+
const t = xe.createElement("block");
|
|
6741
6784
|
t.setAttribute("type", "get_node_prop_v1"), e.push(t);
|
|
6742
6785
|
}
|
|
6743
6786
|
{
|
|
6744
|
-
const t =
|
|
6787
|
+
const t = xe.createElement("label");
|
|
6745
6788
|
t.setAttribute("text", v.LABEL_OTHER), e.push(t);
|
|
6746
6789
|
}
|
|
6747
6790
|
{
|
|
6748
|
-
const t =
|
|
6791
|
+
const t = xe.createElement("block");
|
|
6749
6792
|
t.setAttribute("type", "get_node_v1"), e.push(t);
|
|
6750
6793
|
}
|
|
6794
|
+
{
|
|
6795
|
+
const t = xe.createElement("block");
|
|
6796
|
+
t.setAttribute("type", "app_env_v1"), e.push(t);
|
|
6797
|
+
}
|
|
6751
6798
|
if (Di().length > 0) {
|
|
6752
|
-
const t =
|
|
6799
|
+
const t = xe.createElement("block");
|
|
6753
6800
|
t.setAttribute("type", "navigate_to_v1"), e.push(t);
|
|
6754
6801
|
}
|
|
6755
6802
|
return e;
|
|
@@ -6769,7 +6816,7 @@ function Gd() {
|
|
|
6769
6816
|
o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), e.registerButtonCallback(
|
|
6770
6817
|
"CREATE_VARIABLE",
|
|
6771
6818
|
function(i) {
|
|
6772
|
-
|
|
6819
|
+
wn.createVariableButtonHandler(
|
|
6773
6820
|
i.getTargetWorkspace()
|
|
6774
6821
|
);
|
|
6775
6822
|
}
|
|
@@ -6786,11 +6833,11 @@ function Gd() {
|
|
|
6786
6833
|
return n.forEach((o) => {
|
|
6787
6834
|
{
|
|
6788
6835
|
const i = Rn.createElement("block");
|
|
6789
|
-
i.setAttribute("type", "variable_get_v1"), i.appendChild(
|
|
6836
|
+
i.setAttribute("type", "variable_get_v1"), i.appendChild(wn.generateVariableFieldDom(o)), t.push(i);
|
|
6790
6837
|
}
|
|
6791
6838
|
{
|
|
6792
6839
|
const i = Rn.createElement("block");
|
|
6793
|
-
i.setAttribute("type", "variable_set_v1"), i.appendChild(
|
|
6840
|
+
i.setAttribute("type", "variable_set_v1"), i.appendChild(wn.generateVariableFieldDom(o)), t.push(i);
|
|
6794
6841
|
}
|
|
6795
6842
|
}), t;
|
|
6796
6843
|
}
|
|
@@ -6812,7 +6859,7 @@ oa.setPrompt(async (e, t, n) => {
|
|
|
6812
6859
|
});
|
|
6813
6860
|
n(String(o));
|
|
6814
6861
|
});
|
|
6815
|
-
const
|
|
6862
|
+
const Ua = (e, t, n) => {
|
|
6816
6863
|
const o = e[t];
|
|
6817
6864
|
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, s) => {
|
|
6818
6865
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -6826,10 +6873,10 @@ const wa = (e, t, n) => {
|
|
|
6826
6873
|
});
|
|
6827
6874
|
};
|
|
6828
6875
|
async function Cs(e) {
|
|
6829
|
-
const t = await
|
|
6876
|
+
const t = await Ua(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-enl17pxd.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-oo3u4x5i.js") }), `./msg/${e}.ts`, 3);
|
|
6830
6877
|
Wr(t.default);
|
|
6831
6878
|
}
|
|
6832
|
-
function
|
|
6879
|
+
function wa(e) {
|
|
6833
6880
|
const t = Et();
|
|
6834
6881
|
if (!t)
|
|
6835
6882
|
return;
|
|
@@ -6848,7 +6895,7 @@ function Va() {
|
|
|
6848
6895
|
if (!e)
|
|
6849
6896
|
return;
|
|
6850
6897
|
const t = (n = e.getTopBlocks(!0)) == null ? void 0 : n[0];
|
|
6851
|
-
t &&
|
|
6898
|
+
t && wa(t.id);
|
|
6852
6899
|
}
|
|
6853
6900
|
class jd {
|
|
6854
6901
|
init({ contextMenu: t = !0, shortcut: n = !0 } = {
|
|
@@ -6924,7 +6971,7 @@ class jd {
|
|
|
6924
6971
|
), i = {
|
|
6925
6972
|
name: "copy",
|
|
6926
6973
|
preconditionFn: function(s) {
|
|
6927
|
-
if (s.options.readOnly ||
|
|
6974
|
+
if (s.options.readOnly || Po.inProgress())
|
|
6928
6975
|
return !1;
|
|
6929
6976
|
const a = Yt();
|
|
6930
6977
|
return !(!a || !Ln(a) || !a.isDeletable() || !Do(a) || !a.isMovable() || !Zt(a));
|
|
@@ -6954,7 +7001,7 @@ class jd {
|
|
|
6954
7001
|
), i = {
|
|
6955
7002
|
name: "cut",
|
|
6956
7003
|
preconditionFn: function(s) {
|
|
6957
|
-
if (s.options.readOnly ||
|
|
7004
|
+
if (s.options.readOnly || Po.inProgress())
|
|
6958
7005
|
return !1;
|
|
6959
7006
|
const a = Yt();
|
|
6960
7007
|
return !(!a || !Ln(a) || !a.isDeletable() || !Do(a) || !a.isMovable() || !Zt(a) || a.workspace.isFlyout);
|
|
@@ -6984,7 +7031,7 @@ class jd {
|
|
|
6984
7031
|
), i = {
|
|
6985
7032
|
name: "paste",
|
|
6986
7033
|
preconditionFn: function(s) {
|
|
6987
|
-
if (s.options.readOnly ||
|
|
7034
|
+
if (s.options.readOnly || Po.inProgress())
|
|
6988
7035
|
return !1;
|
|
6989
7036
|
const a = localStorage.getItem("blocklyStash");
|
|
6990
7037
|
if (!a)
|
|
@@ -7038,37 +7085,37 @@ class Xd {
|
|
|
7038
7085
|
});
|
|
7039
7086
|
}
|
|
7040
7087
|
}
|
|
7041
|
-
class Ya extends
|
|
7088
|
+
class Ya extends xo {
|
|
7042
7089
|
constructor(n, o, i) {
|
|
7043
|
-
super(
|
|
7090
|
+
super(xo.SKIP_SETUP);
|
|
7044
7091
|
/** The field's colour picker element. */
|
|
7045
|
-
|
|
7092
|
+
Fe(this, "picker", null);
|
|
7046
7093
|
/** Index of the currently highlighted element. */
|
|
7047
|
-
|
|
7094
|
+
Fe(this, "highlightedIndex", null);
|
|
7048
7095
|
/**
|
|
7049
7096
|
* Array holding info needed to unbind events.
|
|
7050
7097
|
* Used for disposing.
|
|
7051
7098
|
* Ex: [[node, name, func], [node, name, func]].
|
|
7052
7099
|
*/
|
|
7053
|
-
|
|
7100
|
+
Fe(this, "boundEvents", []);
|
|
7054
7101
|
/**
|
|
7055
7102
|
* Serializable fields are saved by the serializer, non-serializable fields
|
|
7056
7103
|
* are not. Editable fields should also be serializable.
|
|
7057
7104
|
*/
|
|
7058
|
-
|
|
7105
|
+
Fe(this, "SERIALIZABLE", !0);
|
|
7059
7106
|
/** Mouse cursor style when over the hotspot that initiates the editor. */
|
|
7060
|
-
|
|
7107
|
+
Fe(this, "CURSOR", "default");
|
|
7061
7108
|
/**
|
|
7062
7109
|
* Used to tell if the field needs to be rendered the next time the block is
|
|
7063
7110
|
* rendered. Colour fields are statically sized, and only need to be
|
|
7064
7111
|
* rendered at initialization.
|
|
7065
7112
|
*/
|
|
7066
|
-
|
|
7113
|
+
Fe(this, "isDirty_", !1);
|
|
7067
7114
|
/**
|
|
7068
7115
|
* An array of colour strings for the palette.
|
|
7069
7116
|
* Copied from goog.ui.ColorPicker.SIMPLE_GRID_COLORS
|
|
7070
7117
|
*/
|
|
7071
|
-
|
|
7118
|
+
Fe(this, "colours", [
|
|
7072
7119
|
// red
|
|
7073
7120
|
"#F44336",
|
|
7074
7121
|
// base
|
|
@@ -7630,12 +7677,12 @@ class Ya extends Po {
|
|
|
7630
7677
|
* An array of tooltip strings for the palette. If not the same length as
|
|
7631
7678
|
* COLOURS, the colour's hex code will be used for any missing titles.
|
|
7632
7679
|
*/
|
|
7633
|
-
|
|
7680
|
+
Fe(this, "titles", ["%{BKY_COLOR_RED}"]);
|
|
7634
7681
|
/**
|
|
7635
7682
|
* Number of columns in the palette.
|
|
7636
7683
|
*/
|
|
7637
|
-
|
|
7638
|
-
n !==
|
|
7684
|
+
Fe(this, "columns", 14);
|
|
7685
|
+
n !== xo.SKIP_SETUP && (i && this.configure_(i), this.setValue(n), o && this.setValidator(o));
|
|
7639
7686
|
}
|
|
7640
7687
|
configure_(n) {
|
|
7641
7688
|
super.configure_(n), n.colourOptions && (this.colours = n.colourOptions), n.colourTitles && (this.titles = n.colourTitles), n.columns && (this.columns = n.columns);
|
|
@@ -7804,7 +7851,7 @@ class Ya extends Po {
|
|
|
7804
7851
|
), c.style.backgroundColor = o[r], o[r] === i && (c.className = "blocklyColourSelected", this.highlightedIndex = r);
|
|
7805
7852
|
}
|
|
7806
7853
|
this.boundEvents.push(
|
|
7807
|
-
|
|
7854
|
+
xt.conditionalBind(
|
|
7808
7855
|
s,
|
|
7809
7856
|
"pointerdown",
|
|
7810
7857
|
this,
|
|
@@ -7812,7 +7859,7 @@ class Ya extends Po {
|
|
|
7812
7859
|
!0
|
|
7813
7860
|
)
|
|
7814
7861
|
), this.boundEvents.push(
|
|
7815
|
-
|
|
7862
|
+
xt.conditionalBind(
|
|
7816
7863
|
s,
|
|
7817
7864
|
"pointermove",
|
|
7818
7865
|
this,
|
|
@@ -7820,7 +7867,7 @@ class Ya extends Po {
|
|
|
7820
7867
|
!0
|
|
7821
7868
|
)
|
|
7822
7869
|
), this.boundEvents.push(
|
|
7823
|
-
|
|
7870
|
+
xt.conditionalBind(
|
|
7824
7871
|
s,
|
|
7825
7872
|
"pointerenter",
|
|
7826
7873
|
this,
|
|
@@ -7828,7 +7875,7 @@ class Ya extends Po {
|
|
|
7828
7875
|
!0
|
|
7829
7876
|
)
|
|
7830
7877
|
), this.boundEvents.push(
|
|
7831
|
-
|
|
7878
|
+
xt.conditionalBind(
|
|
7832
7879
|
s,
|
|
7833
7880
|
"pointerleave",
|
|
7834
7881
|
this,
|
|
@@ -7836,7 +7883,7 @@ class Ya extends Po {
|
|
|
7836
7883
|
!0
|
|
7837
7884
|
)
|
|
7838
7885
|
), this.boundEvents.push(
|
|
7839
|
-
|
|
7886
|
+
xt.conditionalBind(
|
|
7840
7887
|
s,
|
|
7841
7888
|
"keydown",
|
|
7842
7889
|
this,
|
|
@@ -7848,7 +7895,7 @@ class Ya extends Po {
|
|
|
7848
7895
|
/** Disposes of events and DOM-references belonging to the colour editor. */
|
|
7849
7896
|
dropdownDispose() {
|
|
7850
7897
|
for (const n of this.boundEvents)
|
|
7851
|
-
|
|
7898
|
+
xt.unbind(n);
|
|
7852
7899
|
this.boundEvents.length = 0, this.picker = null, this.highlightedIndex = null;
|
|
7853
7900
|
}
|
|
7854
7901
|
static fromJson(n) {
|
|
@@ -8480,6 +8527,17 @@ const vo = {
|
|
|
8480
8527
|
name: "%{BKY_CATEGORY_MESSAGE}",
|
|
8481
8528
|
categorystyle: "message_category",
|
|
8482
8529
|
contents: [
|
|
8530
|
+
{
|
|
8531
|
+
kind: "block",
|
|
8532
|
+
type: "app_debug_trace_v1",
|
|
8533
|
+
inputs: {
|
|
8534
|
+
OBJECT: {
|
|
8535
|
+
shadow: {
|
|
8536
|
+
type: "text_v1"
|
|
8537
|
+
}
|
|
8538
|
+
}
|
|
8539
|
+
}
|
|
8540
|
+
},
|
|
8483
8541
|
{
|
|
8484
8542
|
kind: "block",
|
|
8485
8543
|
type: "popup_message_v1",
|
|
@@ -8744,7 +8802,7 @@ const vo = {
|
|
|
8744
8802
|
kind: "block",
|
|
8745
8803
|
type: "delay_v1",
|
|
8746
8804
|
inputs: {
|
|
8747
|
-
|
|
8805
|
+
DURATION: {
|
|
8748
8806
|
shadow: {
|
|
8749
8807
|
type: "math_number_v1",
|
|
8750
8808
|
fields: {
|
|
@@ -8789,7 +8847,7 @@ const vo = {
|
|
|
8789
8847
|
kind: "category",
|
|
8790
8848
|
name: "%{BKY_CATEGORY_INTERFACE}",
|
|
8791
8849
|
categorystyle: "interface_category",
|
|
8792
|
-
custom:
|
|
8850
|
+
custom: xa.name
|
|
8793
8851
|
}
|
|
8794
8852
|
]
|
|
8795
8853
|
}, of = {
|
|
@@ -8908,7 +8966,7 @@ const vo = {
|
|
|
8908
8966
|
kind: "category",
|
|
8909
8967
|
name: "%{BKY_CATEGORY_INTERFACE}",
|
|
8910
8968
|
categorystyle: "interface_category",
|
|
8911
|
-
custom:
|
|
8969
|
+
custom: xa.name
|
|
8912
8970
|
}
|
|
8913
8971
|
]
|
|
8914
8972
|
};
|
|
@@ -8937,15 +8995,15 @@ const pf = /* @__PURE__ */ Qe({
|
|
|
8937
8995
|
}), (i, s) => {
|
|
8938
8996
|
const a = Ae("v-btn"), r = Ae("v-tooltip");
|
|
8939
8997
|
return he(), $e(r, {
|
|
8940
|
-
text:
|
|
8998
|
+
text: w(t)("x-block-lib.tip.hotkeyCtrlQ")
|
|
8941
8999
|
}, {
|
|
8942
9000
|
activator: Xe(({ props: c }) => [
|
|
8943
9001
|
ge(a, Ai(c, {
|
|
8944
9002
|
class: "mr-3",
|
|
8945
9003
|
variant: "outlined",
|
|
8946
9004
|
density: "comfortable",
|
|
8947
|
-
icon:
|
|
8948
|
-
onClick: s[0] || (s[0] = (_) =>
|
|
9005
|
+
icon: w(rf),
|
|
9006
|
+
onClick: s[0] || (s[0] = (_) => w(We).emit("cleanWorkspace"))
|
|
8949
9007
|
}), null, 16, ["icon"])
|
|
8950
9008
|
]),
|
|
8951
9009
|
_: 1
|
|
@@ -8964,14 +9022,14 @@ const pf = /* @__PURE__ */ Qe({
|
|
|
8964
9022
|
return (o, i) => {
|
|
8965
9023
|
const s = Ae("v-btn"), a = Ae("v-tooltip");
|
|
8966
9024
|
return he(), $e(a, {
|
|
8967
|
-
text:
|
|
9025
|
+
text: w(t)("x-block-lib.tip.hotkeyCtrlW")
|
|
8968
9026
|
}, {
|
|
8969
9027
|
activator: Xe(({ props: r }) => [
|
|
8970
9028
|
ge(s, Ai(r, {
|
|
8971
9029
|
class: "mr-3",
|
|
8972
9030
|
variant: "outlined",
|
|
8973
9031
|
density: "comfortable",
|
|
8974
|
-
icon: n.value ?
|
|
9032
|
+
icon: n.value ? w(cf) : w(uf),
|
|
8975
9033
|
onClick: i[0] || (i[0] = (c) => n.value = !n.value)
|
|
8976
9034
|
}), null, 16, ["icon"])
|
|
8977
9035
|
]),
|
|
@@ -9178,14 +9236,14 @@ function Ke(e, t, n, o) {
|
|
|
9178
9236
|
}
|
|
9179
9237
|
return null;
|
|
9180
9238
|
}
|
|
9181
|
-
var
|
|
9239
|
+
var Ps = /\s+/g;
|
|
9182
9240
|
function Me(e, t, n) {
|
|
9183
9241
|
if (e && t)
|
|
9184
9242
|
if (e.classList)
|
|
9185
9243
|
e.classList[n ? "add" : "remove"](t);
|
|
9186
9244
|
else {
|
|
9187
|
-
var o = (" " + e.className + " ").replace(
|
|
9188
|
-
e.className = (o + (n ? " " + t : "")).replace(
|
|
9245
|
+
var o = (" " + e.className + " ").replace(Ps, " ").replace(" " + t + " ", " ");
|
|
9246
|
+
e.className = (o + (n ? " " + t : "")).replace(Ps, " ");
|
|
9189
9247
|
}
|
|
9190
9248
|
}
|
|
9191
9249
|
function k(e, t, n) {
|
|
@@ -9247,7 +9305,7 @@ function de(e, t, n, o, i) {
|
|
|
9247
9305
|
};
|
|
9248
9306
|
}
|
|
9249
9307
|
}
|
|
9250
|
-
function
|
|
9308
|
+
function xs(e, t, n) {
|
|
9251
9309
|
for (var o = gt(e, !0), i = de(e)[t]; o; ) {
|
|
9252
9310
|
var s = de(o)[n], a = void 0;
|
|
9253
9311
|
if (a = i >= s, !a)
|
|
@@ -9269,12 +9327,12 @@ function Jt(e, t, n, o) {
|
|
|
9269
9327
|
}
|
|
9270
9328
|
return null;
|
|
9271
9329
|
}
|
|
9272
|
-
function
|
|
9330
|
+
function Pi(e, t) {
|
|
9273
9331
|
for (var n = e.lastElementChild; n && (n === B.ghost || k(n, "display") === "none" || t && !to(n, t)); )
|
|
9274
9332
|
n = n.previousElementSibling;
|
|
9275
9333
|
return n || null;
|
|
9276
9334
|
}
|
|
9277
|
-
function
|
|
9335
|
+
function Ue(e, t) {
|
|
9278
9336
|
var n = 0;
|
|
9279
9337
|
if (!e || !e.parentNode)
|
|
9280
9338
|
return -1;
|
|
@@ -9282,7 +9340,7 @@ function Pe(e, t) {
|
|
|
9282
9340
|
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== B.clone && (!t || to(e, t)) && n++;
|
|
9283
9341
|
return n;
|
|
9284
9342
|
}
|
|
9285
|
-
function
|
|
9343
|
+
function Us(e) {
|
|
9286
9344
|
var t = 0, n = 0, o = ze();
|
|
9287
9345
|
if (e)
|
|
9288
9346
|
do {
|
|
@@ -9358,8 +9416,8 @@ function nr(e, t, n) {
|
|
|
9358
9416
|
}
|
|
9359
9417
|
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
9360
9418
|
}
|
|
9361
|
-
var
|
|
9362
|
-
function
|
|
9419
|
+
var Pe = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
9420
|
+
function Pf() {
|
|
9363
9421
|
var e = [], t;
|
|
9364
9422
|
return {
|
|
9365
9423
|
captureAnimationState: function() {
|
|
@@ -9399,7 +9457,7 @@ function xf() {
|
|
|
9399
9457
|
e.forEach(function(a) {
|
|
9400
9458
|
var r = 0, c = a.target, _ = c.fromRect, d = de(c), p = c.prevFromRect, f = c.prevToRect, g = a.rect, b = jt(c, !0);
|
|
9401
9459
|
b && (d.top -= b.f, d.left -= b.e), c.toRect = d, c.thisAnimationDuration && Go(p, d) && !Go(_, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
9402
|
-
(g.top - d.top) / (g.left - d.left) === (_.top - d.top) / (_.left - d.left) && (r =
|
|
9460
|
+
(g.top - d.top) / (g.left - d.left) === (_.top - d.top) / (_.left - d.left) && (r = Uf(g, p, f, o.options)), Go(d, _) || (c.prevFromRect = _, c.prevToRect = d, r || (r = o.options.animation), o.animate(c, g, d, r)), r && (i = !0, s = Math.max(s, r), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
9403
9461
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
9404
9462
|
}, r), c.thisAnimationDuration = r);
|
|
9405
9463
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -9410,29 +9468,29 @@ function xf() {
|
|
|
9410
9468
|
if (s) {
|
|
9411
9469
|
k(n, "transition", ""), k(n, "transform", "");
|
|
9412
9470
|
var a = jt(this.el), r = a && a.a, c = a && a.d, _ = (o.left - i.left) / (r || 1), d = (o.top - i.top) / (c || 1);
|
|
9413
|
-
n.animatingX = !!_, n.animatingY = !!d, k(n, "transform", "translate3d(" + _ + "px," + d + "px,0)"), this.forRepaintDummy =
|
|
9471
|
+
n.animatingX = !!_, n.animatingY = !!d, k(n, "transform", "translate3d(" + _ + "px," + d + "px,0)"), this.forRepaintDummy = xf(n), k(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), k(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
9414
9472
|
k(n, "transition", ""), k(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
9415
9473
|
}, s);
|
|
9416
9474
|
}
|
|
9417
9475
|
}
|
|
9418
9476
|
};
|
|
9419
9477
|
}
|
|
9420
|
-
function
|
|
9478
|
+
function xf(e) {
|
|
9421
9479
|
return e.offsetWidth;
|
|
9422
9480
|
}
|
|
9423
|
-
function
|
|
9481
|
+
function Uf(e, t, n, o) {
|
|
9424
9482
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
9425
9483
|
}
|
|
9426
|
-
var
|
|
9484
|
+
var wt = [], jo = {
|
|
9427
9485
|
initializeByDefault: !0
|
|
9428
9486
|
}, In = {
|
|
9429
9487
|
mount: function(e) {
|
|
9430
9488
|
for (var t in jo)
|
|
9431
9489
|
jo.hasOwnProperty(t) && !(t in e) && (e[t] = jo[t]);
|
|
9432
|
-
|
|
9490
|
+
wt.forEach(function(n) {
|
|
9433
9491
|
if (n.pluginName === e.pluginName)
|
|
9434
9492
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
9435
|
-
}),
|
|
9493
|
+
}), wt.push(e);
|
|
9436
9494
|
},
|
|
9437
9495
|
pluginEvent: function(e, t, n) {
|
|
9438
9496
|
var o = this;
|
|
@@ -9440,7 +9498,7 @@ var Ut = [], jo = {
|
|
|
9440
9498
|
o.eventCanceled = !0;
|
|
9441
9499
|
};
|
|
9442
9500
|
var i = e + "Global";
|
|
9443
|
-
|
|
9501
|
+
wt.forEach(function(s) {
|
|
9444
9502
|
t[s.pluginName] && (t[s.pluginName][i] && t[s.pluginName][i](qe({
|
|
9445
9503
|
sortable: t
|
|
9446
9504
|
}, n)), t.options[s.pluginName] && t[s.pluginName][e] && t[s.pluginName][e](qe({
|
|
@@ -9449,7 +9507,7 @@ var Ut = [], jo = {
|
|
|
9449
9507
|
});
|
|
9450
9508
|
},
|
|
9451
9509
|
initializePlugins: function(e, t, n, o) {
|
|
9452
|
-
|
|
9510
|
+
wt.forEach(function(a) {
|
|
9453
9511
|
var r = a.pluginName;
|
|
9454
9512
|
if (!(!e.options[r] && !a.initializeByDefault)) {
|
|
9455
9513
|
var c = new a(e, t, e.options);
|
|
@@ -9464,20 +9522,20 @@ var Ut = [], jo = {
|
|
|
9464
9522
|
},
|
|
9465
9523
|
getEventProperties: function(e, t) {
|
|
9466
9524
|
var n = {};
|
|
9467
|
-
return
|
|
9525
|
+
return wt.forEach(function(o) {
|
|
9468
9526
|
typeof o.eventProperties == "function" && lt(n, o.eventProperties.call(t[o.pluginName], e));
|
|
9469
9527
|
}), n;
|
|
9470
9528
|
},
|
|
9471
9529
|
modifyOption: function(e, t, n) {
|
|
9472
9530
|
var o;
|
|
9473
|
-
return
|
|
9531
|
+
return wt.forEach(function(i) {
|
|
9474
9532
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (o = i.optionListeners[t].call(e[i.pluginName], n));
|
|
9475
9533
|
}), o;
|
|
9476
9534
|
}
|
|
9477
9535
|
};
|
|
9478
|
-
function
|
|
9536
|
+
function wf(e) {
|
|
9479
9537
|
var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, r = e.fromEl, c = e.oldIndex, _ = e.newIndex, d = e.oldDraggableIndex, p = e.newDraggableIndex, f = e.originalEvent, g = e.putSortable, b = e.extraEventProperties;
|
|
9480
|
-
if (t = t || n && n[
|
|
9538
|
+
if (t = t || n && n[Pe], !!t) {
|
|
9481
9539
|
var E, S = t.options, C = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
9482
9540
|
window.CustomEvent && !ut && !On ? E = new CustomEvent(o, {
|
|
9483
9541
|
bubbles: !0,
|
|
@@ -9526,7 +9584,7 @@ var Vf = ["evt"], Le = function(e, t) {
|
|
|
9526
9584
|
}, i));
|
|
9527
9585
|
};
|
|
9528
9586
|
function Ce(e) {
|
|
9529
|
-
|
|
9587
|
+
wf(qe({
|
|
9530
9588
|
putSortable: Ee,
|
|
9531
9589
|
cloneEl: le,
|
|
9532
9590
|
targetEl: T,
|
|
@@ -9537,7 +9595,7 @@ function Ce(e) {
|
|
|
9537
9595
|
newDraggableIndex: _t
|
|
9538
9596
|
}, e));
|
|
9539
9597
|
}
|
|
9540
|
-
var T, ce, D, ae, Ct, Kn, le, dt, $t, De, _n, _t, Mn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo,
|
|
9598
|
+
var T, ce, D, ae, Ct, Kn, le, dt, $t, De, _n, _t, Mn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo, ws, Vs, nn, Vt, pn, dn = !1, Dn = !1, Hn, Oe, zo = [], hi = !1, io = [], Lo = typeof document < "u", Pn = za, Fs = On || ut ? "cssFloat" : "float", Ff = Lo && !Ja && !za && "draggable" in document.createElement("div"), or = function() {
|
|
9541
9599
|
if (Lo) {
|
|
9542
9600
|
if (ut)
|
|
9543
9601
|
return !1;
|
|
@@ -9561,8 +9619,8 @@ var T, ce, D, ae, Ct, Kn, le, dt, $t, De, _n, _t, Mn, Ee, Kt = !1, no = !1, oo =
|
|
|
9561
9619
|
}, Kf = function(e, t) {
|
|
9562
9620
|
var n;
|
|
9563
9621
|
return oo.some(function(o) {
|
|
9564
|
-
var i = o[
|
|
9565
|
-
if (!(!i ||
|
|
9622
|
+
var i = o[Pe].options.emptyInsertThreshold;
|
|
9623
|
+
if (!(!i || Pi(o))) {
|
|
9566
9624
|
var s = de(o), a = e >= s.left - i && e <= s.right + i, r = t >= s.top - i && t <= s.bottom + i;
|
|
9567
9625
|
if (a && r)
|
|
9568
9626
|
return n = o;
|
|
@@ -9605,16 +9663,16 @@ var yt = function(e) {
|
|
|
9605
9663
|
var n = {};
|
|
9606
9664
|
for (var o in e)
|
|
9607
9665
|
e.hasOwnProperty(o) && (n[o] = e[o]);
|
|
9608
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
9666
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Pe]._onDragOver(n);
|
|
9609
9667
|
}
|
|
9610
9668
|
}
|
|
9611
9669
|
}, Hf = function(e) {
|
|
9612
|
-
T && T.parentNode[
|
|
9670
|
+
T && T.parentNode[Pe]._isOutsideThisEl(e.target);
|
|
9613
9671
|
};
|
|
9614
9672
|
function B(e, t) {
|
|
9615
9673
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
9616
9674
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
9617
|
-
this.el = e, this.options = t = lt({}, t), e[
|
|
9675
|
+
this.el = e, this.options = t = lt({}, t), e[Pe] = this;
|
|
9618
9676
|
var n = {
|
|
9619
9677
|
group: null,
|
|
9620
9678
|
sort: !0,
|
|
@@ -9666,7 +9724,7 @@ function B(e, t) {
|
|
|
9666
9724
|
sr(t);
|
|
9667
9725
|
for (var i in this)
|
|
9668
9726
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
9669
|
-
this.nativeDraggable = t.forceFallback ? !1 : Ff, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), oo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), lt(this,
|
|
9727
|
+
this.nativeDraggable = t.forceFallback ? !1 : Ff, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), oo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), lt(this, Pf());
|
|
9670
9728
|
}
|
|
9671
9729
|
B.prototype = /** @lends Sortable.prototype */
|
|
9672
9730
|
{
|
|
@@ -9681,7 +9739,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9681
9739
|
if (e.cancelable) {
|
|
9682
9740
|
var t = this, n = this.el, o = this.options, i = o.preventOnFilter, s = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, r = (a || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || r, _ = o.filter;
|
|
9683
9741
|
if (qf(n), !T && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && cn && r && r.tagName.toUpperCase() === "SELECT") && (r = Ke(r, o.draggable, n, !1), !(r && r.animated) && Kn !== r)) {
|
|
9684
|
-
if ($t =
|
|
9742
|
+
if ($t = Ue(r), _n = Ue(r, o.draggable), typeof _ == "function") {
|
|
9685
9743
|
if (_.call(this, e, r, this)) {
|
|
9686
9744
|
Ce({
|
|
9687
9745
|
sortable: t,
|
|
@@ -9723,7 +9781,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9723
9781
|
target: T,
|
|
9724
9782
|
clientX: (t || e).clientX,
|
|
9725
9783
|
clientY: (t || e).clientY
|
|
9726
|
-
},
|
|
9784
|
+
}, ws = It.clientX - c.left, Vs = It.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, T.style["will-change"] = "all", r = function() {
|
|
9727
9785
|
if (Le("delayEnded", o, {
|
|
9728
9786
|
evt: e
|
|
9729
9787
|
}), B.eventCanceled) {
|
|
@@ -9788,11 +9846,11 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9788
9846
|
this._lastX = Ye.clientX, this._lastY = Ye.clientY, ar();
|
|
9789
9847
|
for (var e = document.elementFromPoint(Ye.clientX, Ye.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Ye.clientX, Ye.clientY), e !== t); )
|
|
9790
9848
|
t = e;
|
|
9791
|
-
if (T.parentNode[
|
|
9849
|
+
if (T.parentNode[Pe]._isOutsideThisEl(e), t)
|
|
9792
9850
|
do {
|
|
9793
|
-
if (t[
|
|
9851
|
+
if (t[Pe]) {
|
|
9794
9852
|
var n = void 0;
|
|
9795
|
-
if (n = t[
|
|
9853
|
+
if (n = t[Pe]._onDragOver({
|
|
9796
9854
|
clientX: Ye.clientX,
|
|
9797
9855
|
clientY: Ye.clientY,
|
|
9798
9856
|
target: e,
|
|
@@ -9807,7 +9865,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9807
9865
|
},
|
|
9808
9866
|
_onTouchMove: function(e) {
|
|
9809
9867
|
if (It) {
|
|
9810
|
-
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = D && jt(D, !0), a = D && s && s.a, r = D && s && s.d, c =
|
|
9868
|
+
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = D && jt(D, !0), a = D && s && s.a, r = D && s && s.d, c = Pn && Oe && Us(Oe), _ = (i.clientX - It.clientX + o.x) / (a || 1) + (c ? c[0] - zo[0] : 0) / (a || 1), d = (i.clientY - It.clientY + o.y) / (r || 1) + (c ? c[1] - zo[1] : 0) / (r || 1);
|
|
9811
9869
|
if (!B.active && !Kt) {
|
|
9812
9870
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
|
|
9813
9871
|
return;
|
|
@@ -9830,13 +9888,13 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9830
9888
|
},
|
|
9831
9889
|
_appendGhost: function() {
|
|
9832
9890
|
if (!D) {
|
|
9833
|
-
var e = this.options.fallbackOnBody ? document.body : ae, t = de(T, !0,
|
|
9834
|
-
if (
|
|
9891
|
+
var e = this.options.fallbackOnBody ? document.body : ae, t = de(T, !0, Pn, !0, e), n = this.options;
|
|
9892
|
+
if (Pn) {
|
|
9835
9893
|
for (Oe = e; k(Oe, "position") === "static" && k(Oe, "transform") === "none" && Oe !== document; )
|
|
9836
9894
|
Oe = Oe.parentNode;
|
|
9837
|
-
Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = ze()), t.top += Oe.scrollTop, t.left += Oe.scrollLeft) : Oe = ze(), zo =
|
|
9895
|
+
Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = ze()), t.top += Oe.scrollTop, t.left += Oe.scrollLeft) : Oe = ze(), zo = Us(Oe);
|
|
9838
9896
|
}
|
|
9839
|
-
D = T.cloneNode(!0), Me(D, n.ghostClass, !1), Me(D, n.fallbackClass, !0), Me(D, n.dragClass, !0), k(D, "transition", ""), k(D, "transform", ""), k(D, "box-sizing", "border-box"), k(D, "margin", 0), k(D, "top", t.top), k(D, "left", t.left), k(D, "width", t.width), k(D, "height", t.height), k(D, "opacity", "0.8"), k(D, "position",
|
|
9897
|
+
D = T.cloneNode(!0), Me(D, n.ghostClass, !1), Me(D, n.fallbackClass, !0), Me(D, n.dragClass, !0), k(D, "transition", ""), k(D, "transform", ""), k(D, "box-sizing", "border-box"), k(D, "margin", 0), k(D, "top", t.top), k(D, "left", t.left), k(D, "width", t.width), k(D, "height", t.height), k(D, "opacity", "0.8"), k(D, "position", Pn ? "absolute" : "fixed"), k(D, "zIndex", "100000"), k(D, "pointerEvents", "none"), B.ghost = D, e.appendChild(D), k(D, "transform-origin", ws / parseInt(D.style.width) * 100 + "% " + Vs / parseInt(D.style.height) * 100 + "%");
|
|
9840
9898
|
}
|
|
9841
9899
|
},
|
|
9842
9900
|
_onDragStart: function(e, t) {
|
|
@@ -9872,7 +9930,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9872
9930
|
target: n,
|
|
9873
9931
|
completed: C,
|
|
9874
9932
|
onMove: function(M, Y) {
|
|
9875
|
-
return
|
|
9933
|
+
return xn(ae, t, T, o, M, de(M), e, Y);
|
|
9876
9934
|
},
|
|
9877
9935
|
changed: F
|
|
9878
9936
|
}, A));
|
|
@@ -9885,10 +9943,10 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9885
9943
|
insertion: h
|
|
9886
9944
|
}), h && (_ ? c._hideClone() : c._showClone(g), g !== p && (Me(T, Ee ? Ee.options.ghostClass : c.options.ghostClass, !1), Me(T, a.ghostClass, !0)), Ee !== g && g !== B.active ? Ee = g : g === B.active && Ee && (Ee = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
|
|
9887
9945
|
E("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
9888
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === T && !T.animated || n === t && !n.animated) && (Vt = null), !a.dragoverBubble && !e.rootEl && n !== document && (T.parentNode[
|
|
9946
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === T && !T.animated || n === t && !n.animated) && (Vt = null), !a.dragoverBubble && !e.rootEl && n !== document && (T.parentNode[Pe]._isOutsideThisEl(e.target), !h && yt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), b = !0;
|
|
9889
9947
|
}
|
|
9890
9948
|
function F() {
|
|
9891
|
-
De =
|
|
9949
|
+
De = Ue(T), _t = Ue(T, a.draggable), Ce({
|
|
9892
9950
|
sortable: g,
|
|
9893
9951
|
name: "change",
|
|
9894
9952
|
toEl: t,
|
|
@@ -9906,25 +9964,25 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9906
9964
|
return b;
|
|
9907
9965
|
if (s)
|
|
9908
9966
|
return ce = ae, S(), this._hideClone(), E("revert"), B.eventCanceled || (Ct ? ae.insertBefore(T, Ct) : ae.appendChild(T)), C(!0);
|
|
9909
|
-
var H =
|
|
9967
|
+
var H = Pi(t, a.draggable);
|
|
9910
9968
|
if (!H || Wf(e, f, this) && !H.animated) {
|
|
9911
9969
|
if (H === T)
|
|
9912
9970
|
return C(!1);
|
|
9913
|
-
if (H && t === e.target && (n = H), n && (i = de(n)),
|
|
9971
|
+
if (H && t === e.target && (n = H), n && (i = de(n)), xn(ae, t, T, o, n, i, e, !!n) !== !1)
|
|
9914
9972
|
return S(), H && H.nextSibling ? t.insertBefore(T, H.nextSibling) : t.appendChild(T), ce = t, F(), C(!0);
|
|
9915
9973
|
} else if (H && jf(e, f, this)) {
|
|
9916
9974
|
var te = Jt(t, 0, a, !0);
|
|
9917
9975
|
if (te === T)
|
|
9918
9976
|
return C(!1);
|
|
9919
|
-
if (n = te, i = de(n),
|
|
9977
|
+
if (n = te, i = de(n), xn(ae, t, T, o, n, i, e, !1) !== !1)
|
|
9920
9978
|
return S(), t.insertBefore(T, te), ce = t, F(), C(!0);
|
|
9921
9979
|
} else if (n.parentNode === t) {
|
|
9922
9980
|
i = de(n);
|
|
9923
|
-
var j = 0, _e, Se = T.parentNode !== t, L = !Yf(T.animated && T.toRect || o, n.animated && n.toRect || i, f), N = f ? "top" : "left", W =
|
|
9981
|
+
var j = 0, _e, Se = T.parentNode !== t, L = !Yf(T.animated && T.toRect || o, n.animated && n.toRect || i, f), N = f ? "top" : "left", W = xs(n, "top", "top") || xs(T, "top", "top"), ne = W ? W.scrollTop : void 0;
|
|
9924
9982
|
Vt !== n && (_e = i[N], dn = !1, Dn = !L && a.invertSwap || Se), j = Xf(e, n, i, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Dn, Vt === n);
|
|
9925
9983
|
var X;
|
|
9926
9984
|
if (j !== 0) {
|
|
9927
|
-
var q =
|
|
9985
|
+
var q = Ue(T);
|
|
9928
9986
|
do
|
|
9929
9987
|
q -= j, X = ce.children[q];
|
|
9930
9988
|
while (X && (k(X, "display") === "none" || X === D));
|
|
@@ -9934,7 +9992,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9934
9992
|
Vt = n, pn = j;
|
|
9935
9993
|
var R = n.nextElementSibling, G = !1;
|
|
9936
9994
|
G = j === 1;
|
|
9937
|
-
var fe =
|
|
9995
|
+
var fe = xn(ae, t, T, o, n, i, e, G);
|
|
9938
9996
|
if (fe !== !1)
|
|
9939
9997
|
return (fe === 1 || fe === -1) && (G = fe === 1), hi = !0, setTimeout(Gf, 30), S(), G && !R ? t.appendChild(T) : n.parentNode.insertBefore(T, G ? R : n), W && er(W, 0, ne - W.scrollTop), ce = T.parentNode, _e !== void 0 && !Dn && (Hn = Math.abs(_e - de(n)[N])), F(), C(!0);
|
|
9940
9998
|
}
|
|
@@ -9953,9 +10011,9 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9953
10011
|
},
|
|
9954
10012
|
_onDrop: function(e) {
|
|
9955
10013
|
var t = this.el, n = this.options;
|
|
9956
|
-
if (De =
|
|
10014
|
+
if (De = Ue(T), _t = Ue(T, n.draggable), Le("drop", this, {
|
|
9957
10015
|
evt: e
|
|
9958
|
-
}), ce = T && T.parentNode, De =
|
|
10016
|
+
}), ce = T && T.parentNode, De = Ue(T), _t = Ue(T, n.draggable), B.eventCanceled) {
|
|
9959
10017
|
this._nulling();
|
|
9960
10018
|
return;
|
|
9961
10019
|
}
|
|
@@ -10082,7 +10140,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10082
10140
|
destroy: function() {
|
|
10083
10141
|
Le("destroy", this);
|
|
10084
10142
|
var e = this.el;
|
|
10085
|
-
e[
|
|
10143
|
+
e[Pe] = null, $(e, "mousedown", this._onTapStart), $(e, "touchstart", this._onTapStart), $(e, "pointerdown", this._onTapStart), this.nativeDraggable && ($(e, "dragover", this), $(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
|
|
10086
10144
|
t.removeAttribute("draggable");
|
|
10087
10145
|
}), this._onDrop(), this._disableDelayedDragEvents(), oo.splice(oo.indexOf(this.el), 1), this.el = e = null;
|
|
10088
10146
|
},
|
|
@@ -10108,8 +10166,8 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10108
10166
|
function $f(e) {
|
|
10109
10167
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
10110
10168
|
}
|
|
10111
|
-
function
|
|
10112
|
-
var c, _ = e[
|
|
10169
|
+
function xn(e, t, n, o, i, s, a, r) {
|
|
10170
|
+
var c, _ = e[Pe], d = _.options.onMove, p;
|
|
10113
10171
|
return window.CustomEvent && !ut && !On ? c = new CustomEvent("move", {
|
|
10114
10172
|
bubbles: !0,
|
|
10115
10173
|
cancelable: !0
|
|
@@ -10126,7 +10184,7 @@ function jf(e, t, n) {
|
|
|
10126
10184
|
return t ? e.clientX < i.left - s || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - s || e.clientY < o.bottom && e.clientX < o.left;
|
|
10127
10185
|
}
|
|
10128
10186
|
function Wf(e, t, n) {
|
|
10129
|
-
var o = de(
|
|
10187
|
+
var o = de(Pi(n.el, n.options.draggable)), i = nr(n.el, n.options, D), s = 10;
|
|
10130
10188
|
return t ? e.clientX > i.right + s || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + s || e.clientX > o.right && e.clientY > o.top;
|
|
10131
10189
|
}
|
|
10132
10190
|
function Xf(e, t, n, o, i, s, a, r) {
|
|
@@ -10143,7 +10201,7 @@ function Xf(e, t, n, o, i, s, a, r) {
|
|
|
10143
10201
|
return f = f || a, f && (c < d + _ * s / 2 || c > p - _ * s / 2) ? c > d + _ / 2 ? 1 : -1 : 0;
|
|
10144
10202
|
}
|
|
10145
10203
|
function zf(e) {
|
|
10146
|
-
return
|
|
10204
|
+
return Ue(T) < Ue(e) ? 1 : -1;
|
|
10147
10205
|
}
|
|
10148
10206
|
function Jf(e) {
|
|
10149
10207
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
@@ -10179,14 +10237,14 @@ B.utils = {
|
|
|
10179
10237
|
closest: Ke,
|
|
10180
10238
|
toggleClass: Me,
|
|
10181
10239
|
clone: tr,
|
|
10182
|
-
index:
|
|
10240
|
+
index: Ue,
|
|
10183
10241
|
nextTick: $n,
|
|
10184
10242
|
cancelNextTick: gi,
|
|
10185
10243
|
detectDirection: ir,
|
|
10186
10244
|
getChild: Jt
|
|
10187
10245
|
};
|
|
10188
10246
|
B.get = function(e) {
|
|
10189
|
-
return e[
|
|
10247
|
+
return e[Pe];
|
|
10190
10248
|
};
|
|
10191
10249
|
B.mount = function() {
|
|
10192
10250
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
@@ -10277,7 +10335,7 @@ var Zo = Za(function(e, t, n, o) {
|
|
|
10277
10335
|
(pe[p].vx != X || pe[p].vy != q || pe[p].el !== g) && (pe[p].el = g, pe[p].vx = X, pe[p].vy = q, clearInterval(pe[p].pid), (X != 0 || q != 0) && (_ = !0, pe[p].pid = setInterval((function() {
|
|
10278
10336
|
o && this.layer === 0 && B.active._onTouchMove(so);
|
|
10279
10337
|
var G = pe[this.layer].vy ? pe[this.layer].vy * r : 0, fe = pe[this.layer].vx ? pe[this.layer].vx * r : 0;
|
|
10280
|
-
typeof d == "function" && d.call(B.dragged.parentNode[
|
|
10338
|
+
typeof d == "function" && d.call(B.dragged.parentNode[Pe], fe, G, e, so, pe[this.layer].el) !== "continue" || er(pe[this.layer].el, fe, G);
|
|
10281
10339
|
}).bind({
|
|
10282
10340
|
layer: p
|
|
10283
10341
|
}), 24))), p++;
|
|
@@ -10296,9 +10354,9 @@ var Zo = Za(function(e, t, n, o) {
|
|
|
10296
10354
|
}));
|
|
10297
10355
|
}
|
|
10298
10356
|
};
|
|
10299
|
-
function
|
|
10357
|
+
function xi() {
|
|
10300
10358
|
}
|
|
10301
|
-
|
|
10359
|
+
xi.prototype = {
|
|
10302
10360
|
startIndex: null,
|
|
10303
10361
|
dragStart: function(e) {
|
|
10304
10362
|
var t = e.oldDraggableIndex;
|
|
@@ -10312,23 +10370,23 @@ Pi.prototype = {
|
|
|
10312
10370
|
},
|
|
10313
10371
|
drop: lr
|
|
10314
10372
|
};
|
|
10315
|
-
lt(
|
|
10373
|
+
lt(xi, {
|
|
10316
10374
|
pluginName: "revertOnSpill"
|
|
10317
10375
|
});
|
|
10318
|
-
function
|
|
10376
|
+
function Ui() {
|
|
10319
10377
|
}
|
|
10320
|
-
|
|
10378
|
+
Ui.prototype = {
|
|
10321
10379
|
onSpill: function(e) {
|
|
10322
10380
|
var t = e.dragEl, n = e.putSortable, o = n || this.sortable;
|
|
10323
10381
|
o.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), o.animateAll();
|
|
10324
10382
|
},
|
|
10325
10383
|
drop: lr
|
|
10326
10384
|
};
|
|
10327
|
-
lt(
|
|
10385
|
+
lt(Ui, {
|
|
10328
10386
|
pluginName: "removeOnSpill"
|
|
10329
10387
|
});
|
|
10330
10388
|
B.mount(new Qf());
|
|
10331
|
-
B.mount(
|
|
10389
|
+
B.mount(Ui, xi);
|
|
10332
10390
|
function Zf(e) {
|
|
10333
10391
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
10334
10392
|
}
|
|
@@ -10355,29 +10413,29 @@ function oh(...e) {
|
|
|
10355
10413
|
let i = null;
|
|
10356
10414
|
const s = e[0];
|
|
10357
10415
|
let [, a, r] = e;
|
|
10358
|
-
Array.isArray(
|
|
10416
|
+
Array.isArray(w(a)) || (r = a, a = null);
|
|
10359
10417
|
let c = null;
|
|
10360
10418
|
const {
|
|
10361
10419
|
immediate: _ = !0,
|
|
10362
10420
|
clone: d = Zf,
|
|
10363
10421
|
customUpdate: p
|
|
10364
|
-
} = (n =
|
|
10422
|
+
} = (n = w(r)) != null ? n : {};
|
|
10365
10423
|
function f(L) {
|
|
10366
10424
|
var N;
|
|
10367
10425
|
const { from: W, oldIndex: ne, item: X } = L;
|
|
10368
10426
|
i = Array.from(W.childNodes);
|
|
10369
|
-
const q =
|
|
10427
|
+
const q = w((N = w(a)) == null ? void 0 : N[ne]), R = d(q);
|
|
10370
10428
|
Ks(q, R), X[Hs] = R;
|
|
10371
10429
|
}
|
|
10372
10430
|
function g(L) {
|
|
10373
10431
|
const N = L.item[Hs];
|
|
10374
10432
|
if (!Ef(N)) {
|
|
10375
10433
|
if ($o(L.item), an(a)) {
|
|
10376
|
-
const W = [...
|
|
10434
|
+
const W = [...w(a)];
|
|
10377
10435
|
a.value = ks(W, L.newDraggableIndex, N);
|
|
10378
10436
|
return;
|
|
10379
10437
|
}
|
|
10380
|
-
ks(
|
|
10438
|
+
ks(w(a), L.newDraggableIndex, N);
|
|
10381
10439
|
}
|
|
10382
10440
|
}
|
|
10383
10441
|
function b(L) {
|
|
@@ -10387,11 +10445,11 @@ function oh(...e) {
|
|
|
10387
10445
|
return;
|
|
10388
10446
|
}
|
|
10389
10447
|
if (an(a)) {
|
|
10390
|
-
const G = [...
|
|
10448
|
+
const G = [...w(a)];
|
|
10391
10449
|
a.value = Ns(G, X);
|
|
10392
10450
|
return;
|
|
10393
10451
|
}
|
|
10394
|
-
Ns(
|
|
10452
|
+
Ns(w(a), X);
|
|
10395
10453
|
}
|
|
10396
10454
|
function E(L) {
|
|
10397
10455
|
if (p) {
|
|
@@ -10400,11 +10458,11 @@ function oh(...e) {
|
|
|
10400
10458
|
}
|
|
10401
10459
|
const { from: N, item: W, oldIndex: ne, newIndex: X } = L;
|
|
10402
10460
|
if ($o(W), Bs(N, W, ne), an(a)) {
|
|
10403
|
-
const q = [...
|
|
10461
|
+
const q = [...w(a)];
|
|
10404
10462
|
a.value = Ls(q, ne, X);
|
|
10405
10463
|
return;
|
|
10406
10464
|
}
|
|
10407
|
-
Ls(
|
|
10465
|
+
Ls(w(a), ne, X);
|
|
10408
10466
|
}
|
|
10409
10467
|
function S(L) {
|
|
10410
10468
|
const { newIndex: N, oldIndex: W, from: ne, to: X } = L;
|
|
@@ -10438,12 +10496,12 @@ function oh(...e) {
|
|
|
10438
10496
|
onEnd: S
|
|
10439
10497
|
};
|
|
10440
10498
|
function F(L) {
|
|
10441
|
-
const N =
|
|
10499
|
+
const N = w(s);
|
|
10442
10500
|
return L || (L = Af(N) ? vf(N, o == null ? void 0 : o.$el) : N), L && !If(L) && (L = L.$el), L || gf("Root element not found"), L;
|
|
10443
10501
|
}
|
|
10444
10502
|
function H() {
|
|
10445
10503
|
var L;
|
|
10446
|
-
const N = (L =
|
|
10504
|
+
const N = (L = w(r)) != null ? L : {}, W = Wa(N, ["immediate", "clone"]);
|
|
10447
10505
|
return Rs(W, (ne, X) => {
|
|
10448
10506
|
yf(ne) && (W[ne] = (q, ...R) => {
|
|
10449
10507
|
const G = nh();
|
|
@@ -10550,8 +10608,8 @@ const Ei = [
|
|
|
10550
10608
|
const f = `on${p.replace(/^\S/, (g) => g.toUpperCase())}`;
|
|
10551
10609
|
return d[f] = (...g) => n(p, ...g), d;
|
|
10552
10610
|
}, {}), a = Te(() => {
|
|
10553
|
-
const d =
|
|
10554
|
-
const S =
|
|
10611
|
+
const d = wr(e), p = Wa(d, ["modelValue"]), f = Object.entries(p).reduce((g, [b, E]) => {
|
|
10612
|
+
const S = w(E);
|
|
10555
10613
|
return S !== void 0 && (g[b] = S), g;
|
|
10556
10614
|
}, {});
|
|
10557
10615
|
return Ht(Ht({}, s), mf(Ht(Ht({}, i), f)));
|
|
@@ -10604,7 +10662,7 @@ const Ei = [
|
|
|
10604
10662
|
ge(f),
|
|
10605
10663
|
ge(g, {
|
|
10606
10664
|
class: "x-handle cursor-move mr-3",
|
|
10607
|
-
icon:
|
|
10665
|
+
icon: w(lf),
|
|
10608
10666
|
onMousedown: p[0] || (p[0] = rn(() => {
|
|
10609
10667
|
}, ["stop"]))
|
|
10610
10668
|
}, null, 8, ["icon"]),
|
|
@@ -10692,9 +10750,9 @@ const Ei = [
|
|
|
10692
10750
|
return;
|
|
10693
10751
|
}
|
|
10694
10752
|
const g = f.getBlockById(p);
|
|
10695
|
-
qr.setSelected(g),
|
|
10753
|
+
qr.setSelected(g), wa(p), _.value = !1;
|
|
10696
10754
|
};
|
|
10697
|
-
return (p, f) => o.value.length > 0 ? (he(), $e(
|
|
10755
|
+
return (p, f) => o.value.length > 0 ? (he(), $e(w(sh), {
|
|
10698
10756
|
key: 0,
|
|
10699
10757
|
modelValue: o.value,
|
|
10700
10758
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => o.value = g),
|
|
@@ -10715,7 +10773,7 @@ const Ei = [
|
|
|
10715
10773
|
}, null, 8, ["id", "title", "select"]))), 128))
|
|
10716
10774
|
]),
|
|
10717
10775
|
_: 1
|
|
10718
|
-
}, 8, ["modelValue"])) : (he(), mt("span", lh, lo(
|
|
10776
|
+
}, 8, ["modelValue"])) : (he(), mt("span", lh, lo(w(t)("x-block-lib.noOption")), 1));
|
|
10719
10777
|
}
|
|
10720
10778
|
}), _r = (e, t) => {
|
|
10721
10779
|
const n = e.__vccOpts || e;
|
|
@@ -10754,7 +10812,7 @@ const dh = /* @__PURE__ */ _r(_h, [["render", ph]]), fh = { class: "text-subtitl
|
|
|
10754
10812
|
const f = Ae("v-sheet"), g = Ae("v-icon"), b = Ae("v-dialog"), E = Ae("v-btn"), S = Ae("v-tooltip");
|
|
10755
10813
|
return he(), mt(ea, null, [
|
|
10756
10814
|
ge(b, {
|
|
10757
|
-
modelValue:
|
|
10815
|
+
modelValue: w(_),
|
|
10758
10816
|
"onUpdate:modelValue": p[3] || (p[3] = (C) => an(_) ? _.value = C : null),
|
|
10759
10817
|
transition: "scroll-x-reverse-transition",
|
|
10760
10818
|
persistent: "",
|
|
@@ -10773,7 +10831,7 @@ const dh = /* @__PURE__ */ _r(_h, [["render", ph]]), fh = { class: "text-subtitl
|
|
|
10773
10831
|
class: "elevation-2",
|
|
10774
10832
|
style: ot(a.value)
|
|
10775
10833
|
}, [
|
|
10776
|
-
|
|
10834
|
+
w(o) ? (he(), $e(f, {
|
|
10777
10835
|
key: 0,
|
|
10778
10836
|
color: "transparent",
|
|
10779
10837
|
height: 24
|
|
@@ -10785,10 +10843,10 @@ const dh = /* @__PURE__ */ _r(_h, [["render", ph]]), fh = { class: "text-subtitl
|
|
|
10785
10843
|
}, {
|
|
10786
10844
|
default: Xe(() => [
|
|
10787
10845
|
ge(g, {
|
|
10788
|
-
icon:
|
|
10846
|
+
icon: w($a),
|
|
10789
10847
|
onClick: p[0] || (p[0] = (C) => _.value = !1)
|
|
10790
10848
|
}, null, 8, ["icon"]),
|
|
10791
|
-
He("span", fh, lo(
|
|
10849
|
+
He("span", fh, lo(w(t)("x-block-lib.navigator")), 1)
|
|
10792
10850
|
]),
|
|
10793
10851
|
_: 1
|
|
10794
10852
|
}),
|
|
@@ -10810,13 +10868,13 @@ const dh = /* @__PURE__ */ _r(_h, [["render", ph]]), fh = { class: "text-subtitl
|
|
|
10810
10868
|
_: 1
|
|
10811
10869
|
}, 8, ["modelValue"]),
|
|
10812
10870
|
ge(S, {
|
|
10813
|
-
text:
|
|
10871
|
+
text: w(t)("x-block-lib.tip.hotkeyCtrlE")
|
|
10814
10872
|
}, {
|
|
10815
10873
|
activator: Xe(({ props: C }) => [
|
|
10816
10874
|
ge(E, Ai(C, {
|
|
10817
10875
|
variant: "outlined",
|
|
10818
10876
|
density: "comfortable",
|
|
10819
|
-
icon:
|
|
10877
|
+
icon: w(_f),
|
|
10820
10878
|
onClick: p[5] || (p[5] = (F) => _.value = !0)
|
|
10821
10879
|
}), null, 16, ["icon"])
|
|
10822
10880
|
]),
|
|
@@ -10956,7 +11014,7 @@ const Ah = { class: "position-relative w-100 h-100" }, vh = /* @__PURE__ */ Qe({
|
|
|
10956
11014
|
class L extends V.Abstract {
|
|
10957
11015
|
constructor() {
|
|
10958
11016
|
super(...arguments);
|
|
10959
|
-
|
|
11017
|
+
Fe(this, "isBlank", !0);
|
|
10960
11018
|
}
|
|
10961
11019
|
}
|
|
10962
11020
|
const N = () => {
|
|
@@ -11135,7 +11193,7 @@ const Ws = (e = {}) => {
|
|
|
11135
11193
|
const t = { children: [] };
|
|
11136
11194
|
return Object.assign(t, e), t;
|
|
11137
11195
|
};
|
|
11138
|
-
class
|
|
11196
|
+
class wi {
|
|
11139
11197
|
constructor() {
|
|
11140
11198
|
this.rootNode = Ws(), this.stack = [this.rootNode];
|
|
11141
11199
|
}
|
|
@@ -11183,11 +11241,11 @@ class Ui {
|
|
|
11183
11241
|
*/
|
|
11184
11242
|
static _collapse(t) {
|
|
11185
11243
|
typeof t != "string" && t.children && (t.children.every((n) => typeof n == "string") ? t.children = [t.children.join("")] : t.children.forEach((n) => {
|
|
11186
|
-
|
|
11244
|
+
wi._collapse(n);
|
|
11187
11245
|
}));
|
|
11188
11246
|
}
|
|
11189
11247
|
}
|
|
11190
|
-
class yh extends
|
|
11248
|
+
class yh extends wi {
|
|
11191
11249
|
/**
|
|
11192
11250
|
* @param {*} options
|
|
11193
11251
|
*/
|
|
@@ -11226,15 +11284,15 @@ function Tn(e) {
|
|
|
11226
11284
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
11227
11285
|
}
|
|
11228
11286
|
function fr(e) {
|
|
11229
|
-
return
|
|
11287
|
+
return Pt("(?=", e, ")");
|
|
11230
11288
|
}
|
|
11231
11289
|
function Ch(e) {
|
|
11232
|
-
return
|
|
11290
|
+
return Pt("(?:", e, ")*");
|
|
11233
11291
|
}
|
|
11234
11292
|
function Sh(e) {
|
|
11235
|
-
return
|
|
11293
|
+
return Pt("(?:", e, ")?");
|
|
11236
11294
|
}
|
|
11237
|
-
function
|
|
11295
|
+
function Pt(...e) {
|
|
11238
11296
|
return e.map((n) => Tn(n)).join("");
|
|
11239
11297
|
}
|
|
11240
11298
|
function Lh(e) {
|
|
@@ -11271,7 +11329,7 @@ function Fi(e, { joinWith: t }) {
|
|
|
11271
11329
|
}
|
|
11272
11330
|
const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\\d+)?", mr = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Er = "\\b(0b[01]+)", Rh = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Mh = (e = {}) => {
|
|
11273
11331
|
const t = /^#![ ]*\//;
|
|
11274
|
-
return e.binary && (e.begin =
|
|
11332
|
+
return e.binary && (e.begin = Pt(
|
|
11275
11333
|
t,
|
|
11276
11334
|
/.*\b/,
|
|
11277
11335
|
e.binary,
|
|
@@ -11295,13 +11353,13 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
|
|
|
11295
11353
|
end: "'",
|
|
11296
11354
|
illegal: "\\n",
|
|
11297
11355
|
contains: [mn]
|
|
11298
|
-
},
|
|
11356
|
+
}, Ph = {
|
|
11299
11357
|
scope: "string",
|
|
11300
11358
|
begin: '"',
|
|
11301
11359
|
end: '"',
|
|
11302
11360
|
illegal: "\\n",
|
|
11303
11361
|
contains: [mn]
|
|
11304
|
-
},
|
|
11362
|
+
}, xh = {
|
|
11305
11363
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
11306
11364
|
}, No = function(e, t, n = {}) {
|
|
11307
11365
|
const o = Tt(
|
|
@@ -11358,7 +11416,7 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
|
|
|
11358
11416
|
//
|
|
11359
11417
|
// for a visual example please see:
|
|
11360
11418
|
// https://github.com/highlightjs/highlight.js/issues/2827
|
|
11361
|
-
begin:
|
|
11419
|
+
begin: Pt(
|
|
11362
11420
|
/[ ]+/,
|
|
11363
11421
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
11364
11422
|
"(",
|
|
@@ -11369,7 +11427,7 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
|
|
|
11369
11427
|
// look for 3 words in a row
|
|
11370
11428
|
}
|
|
11371
11429
|
), o;
|
|
11372
|
-
},
|
|
11430
|
+
}, Uh = No("//", "$"), wh = No("/\\*", "\\*/"), Vh = No("#", "$"), Fh = {
|
|
11373
11431
|
scope: "number",
|
|
11374
11432
|
begin: Tr,
|
|
11375
11433
|
relevance: 0
|
|
@@ -11421,15 +11479,15 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
|
|
|
11421
11479
|
}
|
|
11422
11480
|
);
|
|
11423
11481
|
};
|
|
11424
|
-
var
|
|
11482
|
+
var Un = /* @__PURE__ */ Object.freeze({
|
|
11425
11483
|
__proto__: null,
|
|
11426
11484
|
APOS_STRING_MODE: Dh,
|
|
11427
11485
|
BACKSLASH_ESCAPE: mn,
|
|
11428
11486
|
BINARY_NUMBER_MODE: Kh,
|
|
11429
11487
|
BINARY_NUMBER_RE: Er,
|
|
11430
11488
|
COMMENT: No,
|
|
11431
|
-
C_BLOCK_COMMENT_MODE:
|
|
11432
|
-
C_LINE_COMMENT_MODE:
|
|
11489
|
+
C_BLOCK_COMMENT_MODE: wh,
|
|
11490
|
+
C_LINE_COMMENT_MODE: Uh,
|
|
11433
11491
|
C_NUMBER_MODE: Yh,
|
|
11434
11492
|
C_NUMBER_RE: mr,
|
|
11435
11493
|
END_SAME_AS_BEGIN: Wh,
|
|
@@ -11439,8 +11497,8 @@ var wn = /* @__PURE__ */ Object.freeze({
|
|
|
11439
11497
|
METHOD_GUARD: jh,
|
|
11440
11498
|
NUMBER_MODE: Fh,
|
|
11441
11499
|
NUMBER_RE: Tr,
|
|
11442
|
-
PHRASAL_WORDS_MODE:
|
|
11443
|
-
QUOTE_STRING_MODE:
|
|
11500
|
+
PHRASAL_WORDS_MODE: xh,
|
|
11501
|
+
QUOTE_STRING_MODE: Ph,
|
|
11444
11502
|
REGEXP_MODE: Hh,
|
|
11445
11503
|
RE_STARTERS_RE: Rh,
|
|
11446
11504
|
SHEBANG: Mh,
|
|
@@ -11475,7 +11533,7 @@ const eg = (e, t) => {
|
|
|
11475
11533
|
const n = Object.assign({}, e);
|
|
11476
11534
|
Object.keys(e).forEach((o) => {
|
|
11477
11535
|
delete e[o];
|
|
11478
|
-
}), e.keywords = n.keywords, e.begin =
|
|
11536
|
+
}), e.keywords = n.keywords, e.begin = Pt(n.beforeMatch, fr(n.begin)), e.starts = {
|
|
11479
11537
|
relevance: 0,
|
|
11480
11538
|
contains: [
|
|
11481
11539
|
Object.assign(n, { endsParent: !0 })
|
|
@@ -11716,76 +11774,76 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
11716
11774
|
language: se
|
|
11717
11775
|
};
|
|
11718
11776
|
G("before:highlight", Ie);
|
|
11719
|
-
const
|
|
11720
|
-
return
|
|
11777
|
+
const Ve = Ie.result ? Ie.result : p(Ie.language, Ie.code, M);
|
|
11778
|
+
return Ve.code = Ie.code, G("after:highlight", Ve), Ve;
|
|
11721
11779
|
}
|
|
11722
11780
|
function p(h, A, M, Y) {
|
|
11723
11781
|
const se = /* @__PURE__ */ Object.create(null);
|
|
11724
11782
|
function Ie(m, y) {
|
|
11725
11783
|
return m.keywords[y];
|
|
11726
11784
|
}
|
|
11727
|
-
function
|
|
11728
|
-
if (!
|
|
11785
|
+
function Ve() {
|
|
11786
|
+
if (!P.keywords) {
|
|
11729
11787
|
me.addText(oe);
|
|
11730
11788
|
return;
|
|
11731
11789
|
}
|
|
11732
11790
|
let m = 0;
|
|
11733
|
-
|
|
11734
|
-
let y =
|
|
11791
|
+
P.keywordPatternRe.lastIndex = 0;
|
|
11792
|
+
let y = P.keywordPatternRe.exec(oe), x = "";
|
|
11735
11793
|
for (; y; ) {
|
|
11736
|
-
|
|
11737
|
-
const J = je.case_insensitive ? y[0].toLowerCase() : y[0], be = Ie(
|
|
11794
|
+
x += oe.substring(m, y.index);
|
|
11795
|
+
const J = je.case_insensitive ? y[0].toLowerCase() : y[0], be = Ie(P, J);
|
|
11738
11796
|
if (be) {
|
|
11739
11797
|
const [tt, Rr] = be;
|
|
11740
|
-
if (me.addText(
|
|
11741
|
-
|
|
11798
|
+
if (me.addText(x), x = "", se[J] = (se[J] || 0) + 1, se[J] <= dg && (Sn += Rr), tt.startsWith("_"))
|
|
11799
|
+
x += y[0];
|
|
11742
11800
|
else {
|
|
11743
11801
|
const Mr = je.classNameAliases[tt] || tt;
|
|
11744
11802
|
Ge(y[0], Mr);
|
|
11745
11803
|
}
|
|
11746
11804
|
} else
|
|
11747
|
-
|
|
11748
|
-
m =
|
|
11805
|
+
x += y[0];
|
|
11806
|
+
m = P.keywordPatternRe.lastIndex, y = P.keywordPatternRe.exec(oe);
|
|
11749
11807
|
}
|
|
11750
|
-
|
|
11808
|
+
x += oe.substring(m), me.addText(x);
|
|
11751
11809
|
}
|
|
11752
11810
|
function yn() {
|
|
11753
11811
|
if (oe === "") return;
|
|
11754
11812
|
let m = null;
|
|
11755
|
-
if (typeof
|
|
11756
|
-
if (!t[
|
|
11813
|
+
if (typeof P.subLanguage == "string") {
|
|
11814
|
+
if (!t[P.subLanguage]) {
|
|
11757
11815
|
me.addText(oe);
|
|
11758
11816
|
return;
|
|
11759
11817
|
}
|
|
11760
|
-
m = p(
|
|
11818
|
+
m = p(P.subLanguage, oe, !0, ji[P.subLanguage]), ji[P.subLanguage] = /** @type {CompiledMode} */
|
|
11761
11819
|
m._top;
|
|
11762
11820
|
} else
|
|
11763
|
-
m = g(oe,
|
|
11764
|
-
|
|
11821
|
+
m = g(oe, P.subLanguage.length ? P.subLanguage : null);
|
|
11822
|
+
P.relevance > 0 && (Sn += m.relevance), me.__addSublanguage(m._emitter, m.language);
|
|
11765
11823
|
}
|
|
11766
11824
|
function Re() {
|
|
11767
|
-
|
|
11825
|
+
P.subLanguage != null ? yn() : Ve(), oe = "";
|
|
11768
11826
|
}
|
|
11769
11827
|
function Ge(m, y) {
|
|
11770
11828
|
m !== "" && (me.startScope(y), me.addText(m), me.endScope());
|
|
11771
11829
|
}
|
|
11772
11830
|
function Ki(m, y) {
|
|
11773
|
-
let
|
|
11831
|
+
let x = 1;
|
|
11774
11832
|
const J = y.length - 1;
|
|
11775
|
-
for (;
|
|
11776
|
-
if (!m._emit[
|
|
11777
|
-
|
|
11833
|
+
for (; x <= J; ) {
|
|
11834
|
+
if (!m._emit[x]) {
|
|
11835
|
+
x++;
|
|
11778
11836
|
continue;
|
|
11779
11837
|
}
|
|
11780
|
-
const be = je.classNameAliases[m[
|
|
11781
|
-
be ? Ge(tt, be) : (oe = tt,
|
|
11838
|
+
const be = je.classNameAliases[m[x]] || m[x], tt = y[x];
|
|
11839
|
+
be ? Ge(tt, be) : (oe = tt, Ve(), oe = ""), x++;
|
|
11782
11840
|
}
|
|
11783
11841
|
}
|
|
11784
11842
|
function Hi(m, y) {
|
|
11785
|
-
return m.scope && typeof m.scope == "string" && me.openNode(je.classNameAliases[m.scope] || m.scope), m.beginScope && (m.beginScope._wrap ? (Ge(oe, je.classNameAliases[m.beginScope._wrap] || m.beginScope._wrap), oe = "") : m.beginScope._multi && (Ki(m.beginScope, y), oe = "")),
|
|
11843
|
+
return m.scope && typeof m.scope == "string" && me.openNode(je.classNameAliases[m.scope] || m.scope), m.beginScope && (m.beginScope._wrap ? (Ge(oe, je.classNameAliases[m.beginScope._wrap] || m.beginScope._wrap), oe = "") : m.beginScope._multi && (Ki(m.beginScope, y), oe = "")), P = Object.create(m, { parent: { value: P } }), P;
|
|
11786
11844
|
}
|
|
11787
|
-
function $i(m, y,
|
|
11788
|
-
let J = Nh(m.endRe,
|
|
11845
|
+
function $i(m, y, x) {
|
|
11846
|
+
let J = Nh(m.endRe, x);
|
|
11789
11847
|
if (J) {
|
|
11790
11848
|
if (m["on:end"]) {
|
|
11791
11849
|
const be = new Gs(m);
|
|
@@ -11798,41 +11856,41 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
11798
11856
|
}
|
|
11799
11857
|
}
|
|
11800
11858
|
if (m.endsWithParent)
|
|
11801
|
-
return $i(m.parent, y,
|
|
11859
|
+
return $i(m.parent, y, x);
|
|
11802
11860
|
}
|
|
11803
11861
|
function Sr(m) {
|
|
11804
|
-
return
|
|
11862
|
+
return P.matcher.regexIndex === 0 ? (oe += m[0], 1) : (Ro = !0, 0);
|
|
11805
11863
|
}
|
|
11806
11864
|
function Lr(m) {
|
|
11807
|
-
const y = m[0],
|
|
11865
|
+
const y = m[0], x = m.rule, J = new Gs(x), be = [x.__beforeBegin, x["on:begin"]];
|
|
11808
11866
|
for (const tt of be)
|
|
11809
11867
|
if (tt && (tt(m, J), J.isMatchIgnored))
|
|
11810
11868
|
return Sr(y);
|
|
11811
|
-
return
|
|
11869
|
+
return x.skip ? oe += y : (x.excludeBegin && (oe += y), Re(), !x.returnBegin && !x.excludeBegin && (oe = y)), Hi(x, m), x.returnBegin ? 0 : y.length;
|
|
11812
11870
|
}
|
|
11813
11871
|
function Nr(m) {
|
|
11814
|
-
const y = m[0],
|
|
11872
|
+
const y = m[0], x = A.substring(m.index), J = $i(P, m, x);
|
|
11815
11873
|
if (!J)
|
|
11816
11874
|
return qs;
|
|
11817
|
-
const be =
|
|
11818
|
-
|
|
11875
|
+
const be = P;
|
|
11876
|
+
P.endScope && P.endScope._wrap ? (Re(), Ge(y, P.endScope._wrap)) : P.endScope && P.endScope._multi ? (Re(), Ki(P.endScope, m)) : be.skip ? oe += y : (be.returnEnd || be.excludeEnd || (oe += y), Re(), be.excludeEnd && (oe = y));
|
|
11819
11877
|
do
|
|
11820
|
-
|
|
11821
|
-
while (
|
|
11878
|
+
P.scope && me.closeNode(), !P.skip && !P.subLanguage && (Sn += P.relevance), P = P.parent;
|
|
11879
|
+
while (P !== J.parent);
|
|
11822
11880
|
return J.starts && Hi(J.starts, m), be.returnEnd ? 0 : y.length;
|
|
11823
11881
|
}
|
|
11824
11882
|
function kr() {
|
|
11825
11883
|
const m = [];
|
|
11826
|
-
for (let y =
|
|
11884
|
+
for (let y = P; y !== je; y = y.parent)
|
|
11827
11885
|
y.scope && m.unshift(y.scope);
|
|
11828
11886
|
m.forEach((y) => me.openNode(y));
|
|
11829
11887
|
}
|
|
11830
11888
|
let Cn = {};
|
|
11831
11889
|
function Gi(m, y) {
|
|
11832
|
-
const
|
|
11833
|
-
if (oe += m,
|
|
11890
|
+
const x = y && y[0];
|
|
11891
|
+
if (oe += m, x == null)
|
|
11834
11892
|
return Re(), 0;
|
|
11835
|
-
if (Cn.type === "begin" && y.type === "end" && Cn.index === y.index &&
|
|
11893
|
+
if (Cn.type === "begin" && y.type === "end" && Cn.index === y.index && x === "") {
|
|
11836
11894
|
if (oe += A.slice(y.index, y.index + 1), !i) {
|
|
11837
11895
|
const J = new Error(`0 width match regex (${h})`);
|
|
11838
11896
|
throw J.languageName = h, J.badRule = Cn.rule, J;
|
|
@@ -11842,24 +11900,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
11842
11900
|
if (Cn = y, y.type === "begin")
|
|
11843
11901
|
return Lr(y);
|
|
11844
11902
|
if (y.type === "illegal" && !M) {
|
|
11845
|
-
const J = new Error('Illegal lexeme "' +
|
|
11846
|
-
throw J.mode =
|
|
11903
|
+
const J = new Error('Illegal lexeme "' + x + '" for mode "' + (P.scope || "<unnamed>") + '"');
|
|
11904
|
+
throw J.mode = P, J;
|
|
11847
11905
|
} else if (y.type === "end") {
|
|
11848
11906
|
const J = Nr(y);
|
|
11849
11907
|
if (J !== qs)
|
|
11850
11908
|
return J;
|
|
11851
11909
|
}
|
|
11852
|
-
if (y.type === "illegal" &&
|
|
11910
|
+
if (y.type === "illegal" && x === "")
|
|
11853
11911
|
return 1;
|
|
11854
11912
|
if (Bo > 1e5 && Bo > y.index * 3)
|
|
11855
11913
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
11856
|
-
return oe +=
|
|
11914
|
+
return oe += x, x.length;
|
|
11857
11915
|
}
|
|
11858
11916
|
const je = N(h);
|
|
11859
11917
|
if (!je)
|
|
11860
11918
|
throw Lt(s.replace("{}", h)), new Error('Unknown language: "' + h + '"');
|
|
11861
11919
|
const Br = cg(je);
|
|
11862
|
-
let ko = "",
|
|
11920
|
+
let ko = "", P = Y || Br;
|
|
11863
11921
|
const ji = {}, me = new r.__emitter(r);
|
|
11864
11922
|
kr();
|
|
11865
11923
|
let oe = "", Sn = 0, Ot = 0, Bo = 0, Ro = !1;
|
|
@@ -11867,12 +11925,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
11867
11925
|
if (je.__emitTokens)
|
|
11868
11926
|
je.__emitTokens(A, me);
|
|
11869
11927
|
else {
|
|
11870
|
-
for (
|
|
11871
|
-
Bo++, Ro ? Ro = !1 :
|
|
11872
|
-
const m =
|
|
11928
|
+
for (P.matcher.considerAll(); ; ) {
|
|
11929
|
+
Bo++, Ro ? Ro = !1 : P.matcher.considerAll(), P.matcher.lastIndex = Ot;
|
|
11930
|
+
const m = P.matcher.exec(A);
|
|
11873
11931
|
if (!m) break;
|
|
11874
|
-
const y = A.substring(Ot, m.index),
|
|
11875
|
-
Ot = m.index +
|
|
11932
|
+
const y = A.substring(Ot, m.index), x = Gi(y, m);
|
|
11933
|
+
Ot = m.index + x;
|
|
11876
11934
|
}
|
|
11877
11935
|
Gi(A.substring(Ot));
|
|
11878
11936
|
}
|
|
@@ -11882,7 +11940,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
11882
11940
|
relevance: Sn,
|
|
11883
11941
|
illegal: !1,
|
|
11884
11942
|
_emitter: me,
|
|
11885
|
-
_top:
|
|
11943
|
+
_top: P
|
|
11886
11944
|
};
|
|
11887
11945
|
} catch (m) {
|
|
11888
11946
|
if (m.message && m.message.includes("Illegal"))
|
|
@@ -11908,7 +11966,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
11908
11966
|
relevance: 0,
|
|
11909
11967
|
errorRaised: m,
|
|
11910
11968
|
_emitter: me,
|
|
11911
|
-
_top:
|
|
11969
|
+
_top: P
|
|
11912
11970
|
};
|
|
11913
11971
|
throw m;
|
|
11914
11972
|
}
|
|
@@ -11938,8 +11996,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
11938
11996
|
return -1;
|
|
11939
11997
|
}
|
|
11940
11998
|
return 0;
|
|
11941
|
-
}), [Ie,
|
|
11942
|
-
return yn.secondBest =
|
|
11999
|
+
}), [Ie, Ve] = se, yn = Ie;
|
|
12000
|
+
return yn.secondBest = Ve, yn;
|
|
11943
12001
|
}
|
|
11944
12002
|
function b(h, A, M) {
|
|
11945
12003
|
const Y = A && n[A] || M;
|
|
@@ -12078,15 +12136,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
|
|
|
12078
12136
|
}, e.safeMode = function() {
|
|
12079
12137
|
i = !0;
|
|
12080
12138
|
}, e.versionString = _g, e.regex = {
|
|
12081
|
-
concat:
|
|
12139
|
+
concat: Pt,
|
|
12082
12140
|
lookahead: fr,
|
|
12083
12141
|
either: Vi,
|
|
12084
12142
|
optional: Sh,
|
|
12085
12143
|
anyNumberOfTimes: Ch
|
|
12086
12144
|
};
|
|
12087
|
-
for (const h in
|
|
12088
|
-
typeof
|
|
12089
|
-
return Object.assign(e,
|
|
12145
|
+
for (const h in Un)
|
|
12146
|
+
typeof Un[h] == "object" && pr(Un[h]);
|
|
12147
|
+
return Object.assign(e, Un), e;
|
|
12090
12148
|
}, qt = Or({});
|
|
12091
12149
|
qt.newInstance = () => Or({});
|
|
12092
12150
|
var fg = qt;
|
|
@@ -12265,12 +12323,12 @@ function Eg(e) {
|
|
|
12265
12323
|
}
|
|
12266
12324
|
se === ">" && (n(A, { after: Y }) || M.ignoreMatch());
|
|
12267
12325
|
let Ie;
|
|
12268
|
-
const
|
|
12269
|
-
if (Ie =
|
|
12326
|
+
const Ve = A.input.substring(Y);
|
|
12327
|
+
if (Ie = Ve.match(/^\s*=/)) {
|
|
12270
12328
|
M.ignoreMatch();
|
|
12271
12329
|
return;
|
|
12272
12330
|
}
|
|
12273
|
-
if ((Ie =
|
|
12331
|
+
if ((Ie = Ve.match(/^\s+extends\s+/)) && Ie.index === 0) {
|
|
12274
12332
|
M.ignoreMatch();
|
|
12275
12333
|
return;
|
|
12276
12334
|
}
|
|
@@ -12785,12 +12843,12 @@ const vg = /* @__PURE__ */ Qe({
|
|
|
12785
12843
|
return (i, s) => {
|
|
12786
12844
|
const a = Ae("v-sheet");
|
|
12787
12845
|
return he(), $e(a, {
|
|
12788
|
-
color:
|
|
12846
|
+
color: w(o),
|
|
12789
12847
|
width: "100%",
|
|
12790
12848
|
height: "100%"
|
|
12791
12849
|
}, {
|
|
12792
12850
|
default: Xe(() => [
|
|
12793
|
-
ge(
|
|
12851
|
+
ge(w(n), {
|
|
12794
12852
|
language: "js",
|
|
12795
12853
|
code: t.code
|
|
12796
12854
|
}, null, 8, ["code"])
|
|
@@ -12815,7 +12873,7 @@ const vg = /* @__PURE__ */ Qe({
|
|
|
12815
12873
|
return (_, d) => {
|
|
12816
12874
|
const p = Ae("v-sheet"), f = Ae("v-icon"), g = Ae("v-spacer"), b = Ae("v-dialog");
|
|
12817
12875
|
return he(), $e(b, {
|
|
12818
|
-
modelValue:
|
|
12876
|
+
modelValue: w(c),
|
|
12819
12877
|
"onUpdate:modelValue": d[1] || (d[1] = (E) => an(c) ? c.value = E : null),
|
|
12820
12878
|
transition: "fade-transition",
|
|
12821
12879
|
persistent: "",
|
|
@@ -12825,27 +12883,27 @@ const vg = /* @__PURE__ */ Qe({
|
|
|
12825
12883
|
}, {
|
|
12826
12884
|
default: Xe(() => [
|
|
12827
12885
|
ge(p, {
|
|
12828
|
-
color:
|
|
12886
|
+
color: w(o),
|
|
12829
12887
|
width: "100%",
|
|
12830
12888
|
height: "100%"
|
|
12831
12889
|
}, {
|
|
12832
12890
|
default: Xe(() => [
|
|
12833
|
-
|
|
12891
|
+
w(n) ? (he(), $e(p, {
|
|
12834
12892
|
key: 0,
|
|
12835
|
-
color:
|
|
12893
|
+
color: w(i),
|
|
12836
12894
|
height: 24
|
|
12837
12895
|
}, null, 8, ["color"])) : Gt("", !0),
|
|
12838
12896
|
ge(p, {
|
|
12839
12897
|
class: "d-flex align-center px-3",
|
|
12840
|
-
color:
|
|
12898
|
+
color: w(i),
|
|
12841
12899
|
height: 48
|
|
12842
12900
|
}, {
|
|
12843
12901
|
default: Xe(() => [
|
|
12844
12902
|
ge(f, {
|
|
12845
|
-
icon:
|
|
12903
|
+
icon: w($a),
|
|
12846
12904
|
onClick: d[0] || (d[0] = (E) => c.value = !1)
|
|
12847
12905
|
}, null, 8, ["icon"]),
|
|
12848
|
-
He("span", bg, lo(
|
|
12906
|
+
He("span", bg, lo(w(t)("x-block-lib.dlg.source.title")), 1),
|
|
12849
12907
|
ge(g)
|
|
12850
12908
|
]),
|
|
12851
12909
|
_: 1
|
|
@@ -12866,20 +12924,20 @@ const vg = /* @__PURE__ */ Qe({
|
|
|
12866
12924
|
}), Ig = (e) => {
|
|
12867
12925
|
e.component("XBlockly", vh), e.component("XSourceDlg", Og);
|
|
12868
12926
|
};
|
|
12869
|
-
async function
|
|
12870
|
-
return (await
|
|
12927
|
+
async function Pg(e) {
|
|
12928
|
+
return (await Ua(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-bw16iab9.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
12871
12929
|
}
|
|
12872
|
-
const
|
|
12930
|
+
const xg = { install: Ig };
|
|
12873
12931
|
export {
|
|
12874
12932
|
vh as XBlockly,
|
|
12875
12933
|
ee as blocklyState,
|
|
12876
12934
|
Dg as buildProps,
|
|
12877
|
-
|
|
12935
|
+
xg as default,
|
|
12878
12936
|
Ip as initApp,
|
|
12879
12937
|
yp as initCompute,
|
|
12880
12938
|
Cp as initData,
|
|
12881
12939
|
Sp as initResource,
|
|
12882
12940
|
Lp as initRuntime,
|
|
12883
12941
|
Ig as install,
|
|
12884
|
-
|
|
12942
|
+
Pg as loadLocaleMessageBlock
|
|
12885
12943
|
};
|