x-block-lib 0.6.13 → 0.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +848 -846
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,43 +10,43 @@
|
|
|
10
10
|
var Sl = Object.defineProperty;
|
|
11
11
|
var Bl = (e, t, n) => t in e ? Sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
12
12
|
var tt = (e, t, n) => Bl(e, typeof t != "symbol" ? t + "" : t, n);
|
|
13
|
-
import { getCurrentScope as Rl, onScopeDispose as Dl, computed as Be, toValue as
|
|
14
|
-
import { d as C, j as r, O as p, E as w, u as L, X as Fl, M as T, B as U, i as ce, F as $, a as Wt, b as wo, c as be, C as Ba, e as Yl, P as Pi, N as
|
|
15
|
-
import { openConfirmDlg as Jl, openPromptDlg as Ql, eventBus as ut, messageWarning as Ma, useColor as Fo, useViewStack as Yo, useSystem as Pa } from "x-essential-lib";
|
|
16
|
-
import { pkgs as
|
|
13
|
+
import { getCurrentScope as Rl, onScopeDispose as Dl, computed as Be, toValue as Ca, watch as Lt, shallowRef as Ml, getCurrentInstance as Uo, onMounted as dn, defineComponent as ft, onBeforeUnmount as Zi, resolveComponent as De, createBlock as pt, openBlock as Ne, unref as W, withCtx as _t, createVNode as Oe, mergeProps as es, useModel as Di, toRefs as Pl, ref as Mt, reactive as Ul, h as Mi, nextTick as Na, onUnmounted as ka, isRef as kn, resolveDirective as xl, withDirectives as wl, createElementBlock as rt, normalizeStyle as ct, createElementVNode as lt, toDisplayString as xo, withModifiers as Ln, Fragment as La, renderList as Vl, withKeys as Sa, createCommentVNode as $t, mergeModels as Ns } from "vue";
|
|
14
|
+
import { d as C, j as r, O as p, E as w, u as L, X as Fl, M as T, B as U, i as ce, F as $, a as Wt, b as wo, c as be, C as Ba, e as Yl, P as Pi, N as ts, V as po, g as Pt, f as Kl, h as Ra, s as Hl, S as Fe, k as _o, l as rn, m as sn, n as no, o as ci, p as On, q as ks, G as ui, r as $l, t as Gl, v as pi, U as oo, D as io, w as en, x as jl, T as Vo, y as Da, z as Wl, A as Xl, H as Ls, I as zl, J as ql } from "./blockly-djhb27mv.js";
|
|
15
|
+
import { openConfirmDlg as Jl, openPromptDlg as Ql, eventBus as ut, messageWarning as Ma, useColor as Fo, useViewStack as Yo, useSystem as Pa, waitMs as Zl } from "x-essential-lib";
|
|
16
|
+
import { pkgs as ec, elements as Ye, getPropTag as Ko } from "x-runtime-lib";
|
|
17
17
|
import { globalState as V } from "x-state-lib";
|
|
18
18
|
import { useI18n as Kn } from "vue-i18n";
|
|
19
|
-
import { useDisplay as
|
|
20
|
-
var
|
|
21
|
-
function
|
|
19
|
+
import { useDisplay as tc } from "vuetify";
|
|
20
|
+
var nc = "M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z", Ua = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", oc = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", ic = "M21 11H3V9H21V11M21 13H3V15H21V13Z", sc = "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z", ac = "M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z", rc = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
|
|
21
|
+
function lc(e) {
|
|
22
22
|
return Rl() ? (Dl(e), !0) : !1;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const cc = typeof window < "u" && typeof document < "u";
|
|
25
25
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
26
|
-
const
|
|
27
|
-
function
|
|
26
|
+
const uc = cc ? window : void 0;
|
|
27
|
+
function Ss(e) {
|
|
28
28
|
var t;
|
|
29
|
-
const n =
|
|
29
|
+
const n = Ca(e);
|
|
30
30
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function pc() {
|
|
33
33
|
const e = Ml(!1), t = Uo();
|
|
34
34
|
return t && dn(() => {
|
|
35
35
|
e.value = !0;
|
|
36
36
|
}, t), e;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const t =
|
|
38
|
+
function _c(e) {
|
|
39
|
+
const t = pc();
|
|
40
40
|
return Be(() => (t.value, !!e()));
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const { window: o =
|
|
42
|
+
function dc(e, t, n = {}) {
|
|
43
|
+
const { window: o = uc, ...i } = n;
|
|
44
44
|
let s;
|
|
45
|
-
const a =
|
|
45
|
+
const a = _c(() => o && "ResizeObserver" in o), l = () => {
|
|
46
46
|
s && (s.disconnect(), s = void 0);
|
|
47
47
|
}, c = Be(() => {
|
|
48
|
-
const d =
|
|
49
|
-
return Array.isArray(d) ? d.map((g) =>
|
|
48
|
+
const d = Ca(e);
|
|
49
|
+
return Array.isArray(d) ? d.map((g) => Ss(g)) : [Ss(d)];
|
|
50
50
|
}), _ = Lt(
|
|
51
51
|
c,
|
|
52
52
|
(d) => {
|
|
@@ -60,7 +60,7 @@ function _c(e, t, n = {}) {
|
|
|
60
60
|
), h = () => {
|
|
61
61
|
l(), _();
|
|
62
62
|
};
|
|
63
|
-
return
|
|
63
|
+
return lc(h), {
|
|
64
64
|
isSupported: a,
|
|
65
65
|
stop: h
|
|
66
66
|
};
|
|
@@ -109,24 +109,24 @@ C([
|
|
|
109
109
|
r.forBlock.app_env_v1 = function(e) {
|
|
110
110
|
return [`__getEnvV1__() === ${r.quote_(e.getFieldValue("ENV"))}`, p.ATOMIC];
|
|
111
111
|
};
|
|
112
|
-
var xa = typeof global == "object" && global && global.Object === Object && global,
|
|
113
|
-
function
|
|
114
|
-
var t =
|
|
112
|
+
var xa = typeof global == "object" && global && global.Object === Object && global, hc = typeof self == "object" && self && self.Object === Object && self, gt = xa || hc || Function("return this")(), Ut = gt.Symbol, wa = Object.prototype, fc = wa.hasOwnProperty, gc = wa.toString, bn = Ut ? Ut.toStringTag : void 0;
|
|
113
|
+
function mc(e) {
|
|
114
|
+
var t = fc.call(e, bn), n = e[bn];
|
|
115
115
|
try {
|
|
116
116
|
e[bn] = void 0;
|
|
117
117
|
var o = !0;
|
|
118
118
|
} catch {
|
|
119
119
|
}
|
|
120
|
-
var i =
|
|
120
|
+
var i = gc.call(e);
|
|
121
121
|
return o && (t ? e[bn] = n : delete e[bn]), i;
|
|
122
122
|
}
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
return
|
|
123
|
+
var Tc = Object.prototype, Ec = Tc.toString;
|
|
124
|
+
function Ac(e) {
|
|
125
|
+
return Ec.call(e);
|
|
126
126
|
}
|
|
127
|
-
var
|
|
127
|
+
var vc = "[object Null]", Oc = "[object Undefined]", Bs = Ut ? Ut.toStringTag : void 0;
|
|
128
128
|
function Hn(e) {
|
|
129
|
-
return e == null ? e === void 0 ?
|
|
129
|
+
return e == null ? e === void 0 ? Oc : vc : Bs && Bs in Object(e) ? mc(e) : Ac(e);
|
|
130
130
|
}
|
|
131
131
|
function Gt(e) {
|
|
132
132
|
return e != null && typeof e == "object";
|
|
@@ -136,25 +136,25 @@ function Ho(e) {
|
|
|
136
136
|
var t = typeof e;
|
|
137
137
|
return e != null && (t == "object" || t == "function");
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var bc = "[object AsyncFunction]", Ic = "[object Function]", yc = "[object GeneratorFunction]", Cc = "[object Proxy]";
|
|
140
140
|
function Va(e) {
|
|
141
141
|
if (!Ho(e))
|
|
142
142
|
return !1;
|
|
143
143
|
var t = Hn(e);
|
|
144
|
-
return t ==
|
|
144
|
+
return t == Ic || t == yc || t == bc || t == Cc;
|
|
145
145
|
}
|
|
146
|
-
var _i = gt["__core-js_shared__"],
|
|
146
|
+
var _i = gt["__core-js_shared__"], Rs = function() {
|
|
147
147
|
var e = /[^.]+$/.exec(_i && _i.keys && _i.keys.IE_PROTO || "");
|
|
148
148
|
return e ? "Symbol(src)_1." + e : "";
|
|
149
149
|
}();
|
|
150
|
-
function
|
|
151
|
-
return !!
|
|
150
|
+
function Nc(e) {
|
|
151
|
+
return !!Rs && Rs in e;
|
|
152
152
|
}
|
|
153
|
-
var
|
|
153
|
+
var kc = Function.prototype, Lc = kc.toString;
|
|
154
154
|
function Xt(e) {
|
|
155
155
|
if (e != null) {
|
|
156
156
|
try {
|
|
157
|
-
return
|
|
157
|
+
return Lc.call(e);
|
|
158
158
|
} catch {
|
|
159
159
|
}
|
|
160
160
|
try {
|
|
@@ -164,122 +164,122 @@ function Xt(e) {
|
|
|
164
164
|
}
|
|
165
165
|
return "";
|
|
166
166
|
}
|
|
167
|
-
var
|
|
168
|
-
"^" +
|
|
167
|
+
var Sc = /[\\^$.*+?()[\]{}|]/g, Bc = /^\[object .+?Constructor\]$/, Rc = Function.prototype, Dc = Object.prototype, Mc = Rc.toString, Pc = Dc.hasOwnProperty, Uc = RegExp(
|
|
168
|
+
"^" + Mc.call(Pc).replace(Sc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
169
169
|
);
|
|
170
|
-
function
|
|
171
|
-
if (!Ho(e) ||
|
|
170
|
+
function xc(e) {
|
|
171
|
+
if (!Ho(e) || Nc(e))
|
|
172
172
|
return !1;
|
|
173
|
-
var t = Va(e) ?
|
|
173
|
+
var t = Va(e) ? Uc : Bc;
|
|
174
174
|
return t.test(Xt(e));
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function wc(e, t) {
|
|
177
177
|
return e == null ? void 0 : e[t];
|
|
178
178
|
}
|
|
179
179
|
function zt(e, t) {
|
|
180
|
-
var n =
|
|
181
|
-
return
|
|
180
|
+
var n = wc(e, t);
|
|
181
|
+
return xc(n) ? n : void 0;
|
|
182
182
|
}
|
|
183
|
-
var Ui = zt(gt, "WeakMap"),
|
|
183
|
+
var Ui = zt(gt, "WeakMap"), Ds = Object.create, Vc = /* @__PURE__ */ function() {
|
|
184
184
|
function e() {
|
|
185
185
|
}
|
|
186
186
|
return function(t) {
|
|
187
187
|
if (!Ho(t))
|
|
188
188
|
return {};
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
189
|
+
if (Ds)
|
|
190
|
+
return Ds(t);
|
|
191
191
|
e.prototype = t;
|
|
192
192
|
var n = new e();
|
|
193
193
|
return e.prototype = void 0, n;
|
|
194
194
|
};
|
|
195
|
-
}(),
|
|
195
|
+
}(), Ms = function() {
|
|
196
196
|
try {
|
|
197
197
|
var e = zt(Object, "defineProperty");
|
|
198
198
|
return e({}, "", {}), e;
|
|
199
199
|
} catch {
|
|
200
200
|
}
|
|
201
201
|
}();
|
|
202
|
-
function
|
|
202
|
+
function Fc(e, t) {
|
|
203
203
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
|
|
204
204
|
;
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
207
|
-
var
|
|
208
|
-
function
|
|
207
|
+
var Yc = 9007199254740991, Kc = /^(?:0|[1-9]\d*)$/;
|
|
208
|
+
function Hc(e, t) {
|
|
209
209
|
var n = typeof e;
|
|
210
|
-
return t = t ??
|
|
210
|
+
return t = t ?? Yc, !!t && (n == "number" || n != "symbol" && Kc.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
t == "__proto__" &&
|
|
212
|
+
function $c(e, t, n) {
|
|
213
|
+
t == "__proto__" && Ms ? Ms(e, t, {
|
|
214
214
|
configurable: !0,
|
|
215
215
|
enumerable: !0,
|
|
216
216
|
value: n,
|
|
217
217
|
writable: !0
|
|
218
218
|
}) : e[t] = n;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function ns(e, t) {
|
|
221
221
|
return e === t || e !== e && t !== t;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
224
|
-
function
|
|
223
|
+
var Gc = Object.prototype, jc = Gc.hasOwnProperty;
|
|
224
|
+
function Wc(e, t, n) {
|
|
225
225
|
var o = e[t];
|
|
226
|
-
(!(
|
|
226
|
+
(!(jc.call(e, t) && ns(o, n)) || n === void 0 && !(t in e)) && $c(e, t, n);
|
|
227
227
|
}
|
|
228
|
-
var
|
|
228
|
+
var Xc = 9007199254740991;
|
|
229
229
|
function Fa(e) {
|
|
230
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
230
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Xc;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function zc(e) {
|
|
233
233
|
return e != null && Fa(e.length) && !Va(e);
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var qc = Object.prototype;
|
|
236
236
|
function Ya(e) {
|
|
237
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
237
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || qc;
|
|
238
238
|
return e === n;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Jc(e, t) {
|
|
241
241
|
for (var n = -1, o = Array(e); ++n < e; )
|
|
242
242
|
o[n] = t(n);
|
|
243
243
|
return o;
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
return Gt(e) && Hn(e) ==
|
|
245
|
+
var Qc = "[object Arguments]";
|
|
246
|
+
function Ps(e) {
|
|
247
|
+
return Gt(e) && Hn(e) == Qc;
|
|
248
248
|
}
|
|
249
|
-
var Ka = Object.prototype,
|
|
249
|
+
var Ka = Object.prototype, Zc = Ka.hasOwnProperty, eu = Ka.propertyIsEnumerable, tu = Ps(/* @__PURE__ */ function() {
|
|
250
250
|
return arguments;
|
|
251
|
-
}()) ?
|
|
252
|
-
return Gt(e) &&
|
|
251
|
+
}()) ? Ps : function(e) {
|
|
252
|
+
return Gt(e) && Zc.call(e, "callee") && !eu.call(e, "callee");
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function nu() {
|
|
255
255
|
return !1;
|
|
256
256
|
}
|
|
257
|
-
var Ha = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
258
|
-
ue[
|
|
259
|
-
ue[
|
|
260
|
-
function
|
|
257
|
+
var Ha = typeof exports == "object" && exports && !exports.nodeType && exports, Us = Ha && typeof module == "object" && module && !module.nodeType && module, ou = Us && Us.exports === Ha, xs = ou ? gt.Buffer : void 0, iu = xs ? xs.isBuffer : void 0, Oo = iu || nu, su = "[object Arguments]", au = "[object Array]", ru = "[object Boolean]", lu = "[object Date]", cu = "[object Error]", uu = "[object Function]", pu = "[object Map]", _u = "[object Number]", du = "[object Object]", hu = "[object RegExp]", fu = "[object Set]", gu = "[object String]", mu = "[object WeakMap]", Tu = "[object ArrayBuffer]", Eu = "[object DataView]", Au = "[object Float32Array]", vu = "[object Float64Array]", Ou = "[object Int8Array]", bu = "[object Int16Array]", Iu = "[object Int32Array]", yu = "[object Uint8Array]", Cu = "[object Uint8ClampedArray]", Nu = "[object Uint16Array]", ku = "[object Uint32Array]", ue = {};
|
|
258
|
+
ue[Au] = ue[vu] = ue[Ou] = ue[bu] = ue[Iu] = ue[yu] = ue[Cu] = ue[Nu] = ue[ku] = !0;
|
|
259
|
+
ue[su] = ue[au] = ue[Tu] = ue[ru] = ue[Eu] = ue[lu] = ue[cu] = ue[uu] = ue[pu] = ue[_u] = ue[du] = ue[hu] = ue[fu] = ue[gu] = ue[mu] = !1;
|
|
260
|
+
function Lu(e) {
|
|
261
261
|
return Gt(e) && Fa(e.length) && !!ue[Hn(e)];
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function os(e) {
|
|
264
264
|
return function(t) {
|
|
265
265
|
return e(t);
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
var $a = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = $a && typeof module == "object" && module && !module.nodeType && module,
|
|
268
|
+
var $a = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = $a && typeof module == "object" && module && !module.nodeType && module, Su = Sn && Sn.exports === $a, di = Su && xa.process, hn = function() {
|
|
269
269
|
try {
|
|
270
270
|
var e = Sn && Sn.require && Sn.require("util").types;
|
|
271
271
|
return e || di && di.binding && di.binding("util");
|
|
272
272
|
} catch {
|
|
273
273
|
}
|
|
274
|
-
}(),
|
|
275
|
-
function
|
|
276
|
-
var n = Un(e), o = !n &&
|
|
274
|
+
}(), ws = hn && hn.isTypedArray, Ga = ws ? os(ws) : Lu, Bu = Object.prototype, Ru = Bu.hasOwnProperty;
|
|
275
|
+
function Du(e, t) {
|
|
276
|
+
var n = Un(e), o = !n && tu(e), i = !n && !o && Oo(e), s = !n && !o && !i && Ga(e), a = n || o || i || s, l = a ? Jc(e.length, String) : [], c = l.length;
|
|
277
277
|
for (var _ in e)
|
|
278
|
-
|
|
278
|
+
Ru.call(e, _) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
279
279
|
(_ == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
280
280
|
i && (_ == "offset" || _ == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
281
281
|
s && (_ == "buffer" || _ == "byteLength" || _ == "byteOffset") || // Skip index properties.
|
|
282
|
-
|
|
282
|
+
Hc(_, c))) && l.push(_);
|
|
283
283
|
return l;
|
|
284
284
|
}
|
|
285
285
|
function ja(e, t) {
|
|
@@ -287,44 +287,44 @@ function ja(e, t) {
|
|
|
287
287
|
return e(t(n));
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
var
|
|
291
|
-
function
|
|
290
|
+
var Mu = ja(Object.keys, Object), Pu = Object.prototype, Uu = Pu.hasOwnProperty;
|
|
291
|
+
function xu(e) {
|
|
292
292
|
if (!Ya(e))
|
|
293
|
-
return
|
|
293
|
+
return Mu(e);
|
|
294
294
|
var t = [];
|
|
295
295
|
for (var n in Object(e))
|
|
296
|
-
|
|
296
|
+
Uu.call(e, n) && n != "constructor" && t.push(n);
|
|
297
297
|
return t;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
return
|
|
299
|
+
function wu(e) {
|
|
300
|
+
return zc(e) ? Du(e) : xu(e);
|
|
301
301
|
}
|
|
302
302
|
var xn = zt(Object, "create");
|
|
303
|
-
function
|
|
303
|
+
function Vu() {
|
|
304
304
|
this.__data__ = xn ? xn(null) : {}, this.size = 0;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Fu(e) {
|
|
307
307
|
var t = this.has(e) && delete this.__data__[e];
|
|
308
308
|
return this.size -= t ? 1 : 0, t;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
310
|
+
var Yu = "__lodash_hash_undefined__", Ku = Object.prototype, Hu = Ku.hasOwnProperty;
|
|
311
|
+
function $u(e) {
|
|
312
312
|
var t = this.__data__;
|
|
313
313
|
if (xn) {
|
|
314
314
|
var n = t[e];
|
|
315
|
-
return n ===
|
|
315
|
+
return n === Yu ? void 0 : n;
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return Hu.call(t, e) ? t[e] : void 0;
|
|
318
318
|
}
|
|
319
|
-
var
|
|
320
|
-
function
|
|
319
|
+
var Gu = Object.prototype, ju = Gu.hasOwnProperty;
|
|
320
|
+
function Wu(e) {
|
|
321
321
|
var t = this.__data__;
|
|
322
|
-
return xn ? t[e] !== void 0 :
|
|
322
|
+
return xn ? t[e] !== void 0 : ju.call(t, e);
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
324
|
+
var Xu = "__lodash_hash_undefined__";
|
|
325
|
+
function zu(e, t) {
|
|
326
326
|
var n = this.__data__;
|
|
327
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = xn && t === void 0 ?
|
|
327
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = xn && t === void 0 ? Xu : t, this;
|
|
328
328
|
}
|
|
329
329
|
function jt(e) {
|
|
330
330
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -333,36 +333,36 @@ function jt(e) {
|
|
|
333
333
|
this.set(o[0], o[1]);
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
jt.prototype.clear =
|
|
337
|
-
jt.prototype.delete =
|
|
338
|
-
jt.prototype.get =
|
|
339
|
-
jt.prototype.has =
|
|
340
|
-
jt.prototype.set =
|
|
341
|
-
function
|
|
336
|
+
jt.prototype.clear = Vu;
|
|
337
|
+
jt.prototype.delete = Fu;
|
|
338
|
+
jt.prototype.get = $u;
|
|
339
|
+
jt.prototype.has = Wu;
|
|
340
|
+
jt.prototype.set = zu;
|
|
341
|
+
function qu() {
|
|
342
342
|
this.__data__ = [], this.size = 0;
|
|
343
343
|
}
|
|
344
344
|
function $o(e, t) {
|
|
345
345
|
for (var n = e.length; n--; )
|
|
346
|
-
if (
|
|
346
|
+
if (ns(e[n][0], t))
|
|
347
347
|
return n;
|
|
348
348
|
return -1;
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
function
|
|
350
|
+
var Ju = Array.prototype, Qu = Ju.splice;
|
|
351
|
+
function Zu(e) {
|
|
352
352
|
var t = this.__data__, n = $o(t, e);
|
|
353
353
|
if (n < 0)
|
|
354
354
|
return !1;
|
|
355
355
|
var o = t.length - 1;
|
|
356
|
-
return n == o ? t.pop() :
|
|
356
|
+
return n == o ? t.pop() : Qu.call(t, n, 1), --this.size, !0;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ep(e) {
|
|
359
359
|
var t = this.__data__, n = $o(t, e);
|
|
360
360
|
return n < 0 ? void 0 : t[n][1];
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function tp(e) {
|
|
363
363
|
return $o(this.__data__, e) > -1;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function np(e, t) {
|
|
366
366
|
var n = this.__data__, o = $o(n, e);
|
|
367
367
|
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
368
368
|
}
|
|
@@ -373,38 +373,38 @@ function It(e) {
|
|
|
373
373
|
this.set(o[0], o[1]);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
It.prototype.clear =
|
|
377
|
-
It.prototype.delete =
|
|
378
|
-
It.prototype.get =
|
|
379
|
-
It.prototype.has =
|
|
380
|
-
It.prototype.set =
|
|
376
|
+
It.prototype.clear = qu;
|
|
377
|
+
It.prototype.delete = Zu;
|
|
378
|
+
It.prototype.get = ep;
|
|
379
|
+
It.prototype.has = tp;
|
|
380
|
+
It.prototype.set = np;
|
|
381
381
|
var wn = zt(gt, "Map");
|
|
382
|
-
function
|
|
382
|
+
function op() {
|
|
383
383
|
this.size = 0, this.__data__ = {
|
|
384
384
|
hash: new jt(),
|
|
385
385
|
map: new (wn || It)(),
|
|
386
386
|
string: new jt()
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function ip(e) {
|
|
390
390
|
var t = typeof e;
|
|
391
391
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
392
392
|
}
|
|
393
393
|
function Go(e, t) {
|
|
394
394
|
var n = e.__data__;
|
|
395
|
-
return
|
|
395
|
+
return ip(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function sp(e) {
|
|
398
398
|
var t = Go(this, e).delete(e);
|
|
399
399
|
return this.size -= t ? 1 : 0, t;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function ap(e) {
|
|
402
402
|
return Go(this, e).get(e);
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function rp(e) {
|
|
405
405
|
return Go(this, e).has(e);
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function lp(e, t) {
|
|
408
408
|
var n = Go(this, e), o = n.size;
|
|
409
409
|
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
410
410
|
}
|
|
@@ -415,36 +415,36 @@ function qt(e) {
|
|
|
415
415
|
this.set(o[0], o[1]);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
qt.prototype.clear =
|
|
419
|
-
qt.prototype.delete =
|
|
420
|
-
qt.prototype.get =
|
|
421
|
-
qt.prototype.has =
|
|
422
|
-
qt.prototype.set =
|
|
423
|
-
function
|
|
418
|
+
qt.prototype.clear = op;
|
|
419
|
+
qt.prototype.delete = sp;
|
|
420
|
+
qt.prototype.get = ap;
|
|
421
|
+
qt.prototype.has = rp;
|
|
422
|
+
qt.prototype.set = lp;
|
|
423
|
+
function cp(e, t) {
|
|
424
424
|
for (var n = -1, o = t.length, i = e.length; ++n < o; )
|
|
425
425
|
e[i + n] = t[n];
|
|
426
426
|
return e;
|
|
427
427
|
}
|
|
428
|
-
var
|
|
429
|
-
function
|
|
428
|
+
var up = ja(Object.getPrototypeOf, Object);
|
|
429
|
+
function pp() {
|
|
430
430
|
this.__data__ = new It(), this.size = 0;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function _p(e) {
|
|
433
433
|
var t = this.__data__, n = t.delete(e);
|
|
434
434
|
return this.size = t.size, n;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function dp(e) {
|
|
437
437
|
return this.__data__.get(e);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function hp(e) {
|
|
440
440
|
return this.__data__.has(e);
|
|
441
441
|
}
|
|
442
|
-
var
|
|
443
|
-
function
|
|
442
|
+
var fp = 200;
|
|
443
|
+
function gp(e, t) {
|
|
444
444
|
var n = this.__data__;
|
|
445
445
|
if (n instanceof It) {
|
|
446
446
|
var o = n.__data__;
|
|
447
|
-
if (!wn || o.length <
|
|
447
|
+
if (!wn || o.length < fp - 1)
|
|
448
448
|
return o.push([e, t]), this.size = ++n.size, this;
|
|
449
449
|
n = this.__data__ = new qt(o);
|
|
450
450
|
}
|
|
@@ -454,95 +454,94 @@ function At(e) {
|
|
|
454
454
|
var t = this.__data__ = new It(e);
|
|
455
455
|
this.size = t.size;
|
|
456
456
|
}
|
|
457
|
-
At.prototype.clear =
|
|
458
|
-
At.prototype.delete =
|
|
459
|
-
At.prototype.get =
|
|
460
|
-
At.prototype.has =
|
|
461
|
-
At.prototype.set =
|
|
462
|
-
var Wa = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
463
|
-
|
|
464
|
-
function
|
|
457
|
+
At.prototype.clear = pp;
|
|
458
|
+
At.prototype.delete = _p;
|
|
459
|
+
At.prototype.get = dp;
|
|
460
|
+
At.prototype.has = hp;
|
|
461
|
+
At.prototype.set = gp;
|
|
462
|
+
var Wa = typeof exports == "object" && exports && !exports.nodeType && exports, Vs = Wa && typeof module == "object" && module && !module.nodeType && module, mp = Vs && Vs.exports === Wa, Fs = mp ? gt.Buffer : void 0;
|
|
463
|
+
Fs && Fs.allocUnsafe;
|
|
464
|
+
function Tp(e, t) {
|
|
465
465
|
return e.slice();
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Ep(e, t) {
|
|
468
468
|
for (var n = -1, o = e == null ? 0 : e.length, i = 0, s = []; ++n < o; ) {
|
|
469
469
|
var a = e[n];
|
|
470
470
|
t(a, n, e) && (s[i++] = a);
|
|
471
471
|
}
|
|
472
472
|
return s;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Ap() {
|
|
475
475
|
return [];
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
return e == null ? [] : (e = Object(e),
|
|
479
|
-
return
|
|
477
|
+
var vp = Object.prototype, Op = vp.propertyIsEnumerable, Ys = Object.getOwnPropertySymbols, bp = Ys ? function(e) {
|
|
478
|
+
return e == null ? [] : (e = Object(e), Ep(Ys(e), function(t) {
|
|
479
|
+
return Op.call(e, t);
|
|
480
480
|
}));
|
|
481
|
-
} :
|
|
482
|
-
function
|
|
481
|
+
} : Ap;
|
|
482
|
+
function Ip(e, t, n) {
|
|
483
483
|
var o = t(e);
|
|
484
|
-
return Un(e) ? o :
|
|
484
|
+
return Un(e) ? o : cp(o, n(e));
|
|
485
485
|
}
|
|
486
486
|
function xi(e) {
|
|
487
|
-
return
|
|
487
|
+
return Ip(e, wu, bp);
|
|
488
488
|
}
|
|
489
|
-
var wi = zt(gt, "DataView"), Vi = zt(gt, "Promise"), Fi = zt(gt, "Set"),
|
|
490
|
-
(wi && it(new wi(new ArrayBuffer(1))) !=
|
|
491
|
-
var t = Hn(e), n = t ==
|
|
489
|
+
var wi = zt(gt, "DataView"), Vi = zt(gt, "Promise"), Fi = zt(gt, "Set"), Ks = "[object Map]", yp = "[object Object]", Hs = "[object Promise]", $s = "[object Set]", Gs = "[object WeakMap]", js = "[object DataView]", Cp = Xt(wi), Np = Xt(wn), kp = Xt(Vi), Lp = Xt(Fi), Sp = Xt(Ui), it = Hn;
|
|
490
|
+
(wi && it(new wi(new ArrayBuffer(1))) != js || wn && it(new wn()) != Ks || Vi && it(Vi.resolve()) != Hs || Fi && it(new Fi()) != $s || Ui && it(new Ui()) != Gs) && (it = function(e) {
|
|
491
|
+
var t = Hn(e), n = t == yp ? e.constructor : void 0, o = n ? Xt(n) : "";
|
|
492
492
|
if (o)
|
|
493
493
|
switch (o) {
|
|
494
|
-
case yp:
|
|
495
|
-
return Ws;
|
|
496
494
|
case Cp:
|
|
497
|
-
return
|
|
495
|
+
return js;
|
|
498
496
|
case Np:
|
|
499
|
-
return
|
|
497
|
+
return Ks;
|
|
500
498
|
case kp:
|
|
501
|
-
return
|
|
499
|
+
return Hs;
|
|
502
500
|
case Lp:
|
|
503
|
-
return
|
|
501
|
+
return $s;
|
|
502
|
+
case Sp:
|
|
503
|
+
return Gs;
|
|
504
504
|
}
|
|
505
505
|
return t;
|
|
506
506
|
});
|
|
507
|
-
var
|
|
508
|
-
function
|
|
507
|
+
var Bp = Object.prototype, Rp = Bp.hasOwnProperty;
|
|
508
|
+
function Dp(e) {
|
|
509
509
|
var t = e.length, n = new e.constructor(t);
|
|
510
|
-
return t && typeof e[0] == "string" &&
|
|
510
|
+
return t && typeof e[0] == "string" && Rp.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
511
511
|
}
|
|
512
512
|
var bo = gt.Uint8Array;
|
|
513
|
-
function
|
|
513
|
+
function is(e) {
|
|
514
514
|
var t = new e.constructor(e.byteLength);
|
|
515
515
|
return new bo(t).set(new bo(e)), t;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
var n =
|
|
517
|
+
function Mp(e, t) {
|
|
518
|
+
var n = is(e.buffer);
|
|
519
519
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
520
520
|
}
|
|
521
|
-
var
|
|
522
|
-
function
|
|
523
|
-
var t = new e.constructor(e.source,
|
|
521
|
+
var Pp = /\w*$/;
|
|
522
|
+
function Up(e) {
|
|
523
|
+
var t = new e.constructor(e.source, Pp.exec(e));
|
|
524
524
|
return t.lastIndex = e.lastIndex, t;
|
|
525
525
|
}
|
|
526
|
-
var
|
|
527
|
-
function
|
|
528
|
-
return
|
|
526
|
+
var Ws = Ut ? Ut.prototype : void 0, Xs = Ws ? Ws.valueOf : void 0;
|
|
527
|
+
function xp(e) {
|
|
528
|
+
return Xs ? Object(Xs.call(e)) : {};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
var n =
|
|
530
|
+
function wp(e, t) {
|
|
531
|
+
var n = is(e.buffer);
|
|
532
532
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
533
533
|
}
|
|
534
|
-
var
|
|
535
|
-
function
|
|
534
|
+
var Vp = "[object Boolean]", Fp = "[object Date]", Yp = "[object Map]", Kp = "[object Number]", Hp = "[object RegExp]", $p = "[object Set]", Gp = "[object String]", jp = "[object Symbol]", Wp = "[object ArrayBuffer]", Xp = "[object DataView]", zp = "[object Float32Array]", qp = "[object Float64Array]", Jp = "[object Int8Array]", Qp = "[object Int16Array]", Zp = "[object Int32Array]", e_ = "[object Uint8Array]", t_ = "[object Uint8ClampedArray]", n_ = "[object Uint16Array]", o_ = "[object Uint32Array]";
|
|
535
|
+
function i_(e, t, n) {
|
|
536
536
|
var o = e.constructor;
|
|
537
537
|
switch (t) {
|
|
538
|
-
case
|
|
539
|
-
return
|
|
540
|
-
case wp:
|
|
538
|
+
case Wp:
|
|
539
|
+
return is(e);
|
|
541
540
|
case Vp:
|
|
541
|
+
case Fp:
|
|
542
542
|
return new o(+e);
|
|
543
|
-
case Wp:
|
|
544
|
-
return Dp(e);
|
|
545
543
|
case Xp:
|
|
544
|
+
return Mp(e);
|
|
546
545
|
case zp:
|
|
547
546
|
case qp:
|
|
548
547
|
case Jp:
|
|
@@ -551,34 +550,35 @@ function o_(e, t, n) {
|
|
|
551
550
|
case e_:
|
|
552
551
|
case t_:
|
|
553
552
|
case n_:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
return new o();
|
|
553
|
+
case o_:
|
|
554
|
+
return wp(e);
|
|
557
555
|
case Yp:
|
|
558
|
-
case $p:
|
|
559
|
-
return new o(e);
|
|
560
|
-
case Kp:
|
|
561
|
-
return Pp(e);
|
|
562
|
-
case Hp:
|
|
563
556
|
return new o();
|
|
557
|
+
case Kp:
|
|
564
558
|
case Gp:
|
|
559
|
+
return new o(e);
|
|
560
|
+
case Hp:
|
|
565
561
|
return Up(e);
|
|
562
|
+
case $p:
|
|
563
|
+
return new o();
|
|
564
|
+
case jp:
|
|
565
|
+
return xp(e);
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
return typeof e.constructor == "function" && !Ya(e) ?
|
|
568
|
+
function s_(e) {
|
|
569
|
+
return typeof e.constructor == "function" && !Ya(e) ? Vc(up(e)) : {};
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
573
|
-
return Gt(e) && it(e) ==
|
|
571
|
+
var a_ = "[object Map]";
|
|
572
|
+
function r_(e) {
|
|
573
|
+
return Gt(e) && it(e) == a_;
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
577
|
-
return Gt(e) && it(e) ==
|
|
575
|
+
var zs = hn && hn.isMap, l_ = zs ? os(zs) : r_, c_ = "[object Set]";
|
|
576
|
+
function u_(e) {
|
|
577
|
+
return Gt(e) && it(e) == c_;
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
le[Xa] = le[
|
|
581
|
-
le[
|
|
579
|
+
var qs = hn && hn.isSet, p_ = qs ? os(qs) : u_, Xa = "[object Arguments]", __ = "[object Array]", d_ = "[object Boolean]", h_ = "[object Date]", f_ = "[object Error]", za = "[object Function]", g_ = "[object GeneratorFunction]", m_ = "[object Map]", T_ = "[object Number]", qa = "[object Object]", E_ = "[object RegExp]", A_ = "[object Set]", v_ = "[object String]", O_ = "[object Symbol]", b_ = "[object WeakMap]", I_ = "[object ArrayBuffer]", y_ = "[object DataView]", C_ = "[object Float32Array]", N_ = "[object Float64Array]", k_ = "[object Int8Array]", L_ = "[object Int16Array]", S_ = "[object Int32Array]", B_ = "[object Uint8Array]", R_ = "[object Uint8ClampedArray]", D_ = "[object Uint16Array]", M_ = "[object Uint32Array]", le = {};
|
|
580
|
+
le[Xa] = le[__] = le[I_] = le[y_] = le[d_] = le[h_] = le[C_] = le[N_] = le[k_] = le[L_] = le[S_] = le[m_] = le[T_] = le[qa] = le[E_] = le[A_] = le[v_] = le[O_] = le[B_] = le[R_] = le[D_] = le[M_] = !0;
|
|
581
|
+
le[f_] = le[za] = le[b_] = !1;
|
|
582
582
|
function ho(e, t, n, o, i, s) {
|
|
583
583
|
var a;
|
|
584
584
|
if (a !== void 0)
|
|
@@ -587,42 +587,42 @@ function ho(e, t, n, o, i, s) {
|
|
|
587
587
|
return e;
|
|
588
588
|
var l = Un(e);
|
|
589
589
|
if (l)
|
|
590
|
-
a =
|
|
590
|
+
a = Dp(e);
|
|
591
591
|
else {
|
|
592
|
-
var c = it(e), _ = c == za || c ==
|
|
592
|
+
var c = it(e), _ = c == za || c == g_;
|
|
593
593
|
if (Oo(e))
|
|
594
|
-
return
|
|
594
|
+
return Tp(e);
|
|
595
595
|
if (c == qa || c == Xa || _ && !i)
|
|
596
|
-
a = _ ? {} :
|
|
596
|
+
a = _ ? {} : s_(e);
|
|
597
597
|
else {
|
|
598
598
|
if (!le[c])
|
|
599
599
|
return i ? e : {};
|
|
600
|
-
a =
|
|
600
|
+
a = i_(e, c);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
s || (s = new At());
|
|
604
604
|
var h = s.get(e);
|
|
605
605
|
if (h)
|
|
606
606
|
return h;
|
|
607
|
-
s.set(e, a),
|
|
607
|
+
s.set(e, a), p_(e) ? e.forEach(function(m) {
|
|
608
608
|
a.add(ho(m, t, n, m, e, s));
|
|
609
|
-
}) :
|
|
609
|
+
}) : l_(e) && e.forEach(function(m, I) {
|
|
610
610
|
a.set(I, ho(m, t, n, I, e, s));
|
|
611
611
|
});
|
|
612
612
|
var d = xi, g = l ? void 0 : d(e);
|
|
613
|
-
return
|
|
614
|
-
g && (I = m, m = e[I]),
|
|
613
|
+
return Fc(g || e, function(m, I) {
|
|
614
|
+
g && (I = m, m = e[I]), Wc(a, I, ho(m, t, n, I, e, s));
|
|
615
615
|
}), a;
|
|
616
616
|
}
|
|
617
|
-
var
|
|
617
|
+
var P_ = 1, U_ = 4;
|
|
618
618
|
function Ja(e) {
|
|
619
|
-
return ho(e,
|
|
620
|
-
}
|
|
621
|
-
var U_ = "__lodash_hash_undefined__";
|
|
622
|
-
function x_(e) {
|
|
623
|
-
return this.__data__.set(e, U_), this;
|
|
619
|
+
return ho(e, P_ | U_);
|
|
624
620
|
}
|
|
621
|
+
var x_ = "__lodash_hash_undefined__";
|
|
625
622
|
function w_(e) {
|
|
623
|
+
return this.__data__.set(e, x_), this;
|
|
624
|
+
}
|
|
625
|
+
function V_(e) {
|
|
626
626
|
return this.__data__.has(e);
|
|
627
627
|
}
|
|
628
628
|
function Io(e) {
|
|
@@ -630,26 +630,26 @@ function Io(e) {
|
|
|
630
630
|
for (this.__data__ = new qt(); ++t < n; )
|
|
631
631
|
this.add(e[t]);
|
|
632
632
|
}
|
|
633
|
-
Io.prototype.add = Io.prototype.push =
|
|
634
|
-
Io.prototype.has =
|
|
635
|
-
function
|
|
633
|
+
Io.prototype.add = Io.prototype.push = w_;
|
|
634
|
+
Io.prototype.has = V_;
|
|
635
|
+
function F_(e, t) {
|
|
636
636
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
|
|
637
637
|
if (t(e[n], n, e))
|
|
638
638
|
return !0;
|
|
639
639
|
return !1;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Y_(e, t) {
|
|
642
642
|
return e.has(t);
|
|
643
643
|
}
|
|
644
|
-
var
|
|
644
|
+
var K_ = 1, H_ = 2;
|
|
645
645
|
function Qa(e, t, n, o, i, s) {
|
|
646
|
-
var a = n &
|
|
646
|
+
var a = n & K_, l = e.length, c = t.length;
|
|
647
647
|
if (l != c && !(a && c > l))
|
|
648
648
|
return !1;
|
|
649
649
|
var _ = s.get(e), h = s.get(t);
|
|
650
650
|
if (_ && h)
|
|
651
651
|
return _ == t && h == e;
|
|
652
|
-
var d = -1, g = !0, m = n &
|
|
652
|
+
var d = -1, g = !0, m = n & H_ ? new Io() : void 0;
|
|
653
653
|
for (s.set(e, t), s.set(t, e); ++d < l; ) {
|
|
654
654
|
var I = e[d], v = t[d];
|
|
655
655
|
if (o)
|
|
@@ -661,8 +661,8 @@ function Qa(e, t, n, o, i, s) {
|
|
|
661
661
|
break;
|
|
662
662
|
}
|
|
663
663
|
if (m) {
|
|
664
|
-
if (!
|
|
665
|
-
if (!
|
|
664
|
+
if (!F_(t, function(D, X) {
|
|
665
|
+
if (!Y_(m, X) && (I === D || i(I, D, n, o, s)))
|
|
666
666
|
return m.push(X);
|
|
667
667
|
})) {
|
|
668
668
|
g = !1;
|
|
@@ -675,62 +675,62 @@ function Qa(e, t, n, o, i, s) {
|
|
|
675
675
|
}
|
|
676
676
|
return s.delete(e), s.delete(t), g;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function $_(e) {
|
|
679
679
|
var t = -1, n = Array(e.size);
|
|
680
680
|
return e.forEach(function(o, i) {
|
|
681
681
|
n[++t] = [i, o];
|
|
682
682
|
}), n;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function G_(e) {
|
|
685
685
|
var t = -1, n = Array(e.size);
|
|
686
686
|
return e.forEach(function(o) {
|
|
687
687
|
n[++t] = o;
|
|
688
688
|
}), n;
|
|
689
689
|
}
|
|
690
|
-
var
|
|
691
|
-
function
|
|
690
|
+
var j_ = 1, W_ = 2, X_ = "[object Boolean]", z_ = "[object Date]", q_ = "[object Error]", J_ = "[object Map]", Q_ = "[object Number]", Z_ = "[object RegExp]", ed = "[object Set]", td = "[object String]", nd = "[object Symbol]", od = "[object ArrayBuffer]", id = "[object DataView]", Js = Ut ? Ut.prototype : void 0, hi = Js ? Js.valueOf : void 0;
|
|
691
|
+
function sd(e, t, n, o, i, s, a) {
|
|
692
692
|
switch (n) {
|
|
693
|
-
case
|
|
693
|
+
case id:
|
|
694
694
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
695
695
|
return !1;
|
|
696
696
|
e = e.buffer, t = t.buffer;
|
|
697
|
-
case
|
|
697
|
+
case od:
|
|
698
698
|
return !(e.byteLength != t.byteLength || !s(new bo(e), new bo(t)));
|
|
699
|
-
case W_:
|
|
700
699
|
case X_:
|
|
701
|
-
case J_:
|
|
702
|
-
return os(+e, +t);
|
|
703
700
|
case z_:
|
|
704
|
-
return e.name == t.name && e.message == t.message;
|
|
705
701
|
case Q_:
|
|
706
|
-
|
|
707
|
-
return e == t + "";
|
|
702
|
+
return ns(+e, +t);
|
|
708
703
|
case q_:
|
|
709
|
-
|
|
704
|
+
return e.name == t.name && e.message == t.message;
|
|
710
705
|
case Z_:
|
|
711
|
-
|
|
712
|
-
|
|
706
|
+
case td:
|
|
707
|
+
return e == t + "";
|
|
708
|
+
case J_:
|
|
709
|
+
var l = $_;
|
|
710
|
+
case ed:
|
|
711
|
+
var c = o & j_;
|
|
712
|
+
if (l || (l = G_), e.size != t.size && !c)
|
|
713
713
|
return !1;
|
|
714
714
|
var _ = a.get(e);
|
|
715
715
|
if (_)
|
|
716
716
|
return _ == t;
|
|
717
|
-
o |=
|
|
717
|
+
o |= W_, a.set(e, t);
|
|
718
718
|
var h = Qa(l(e), l(t), o, i, s, a);
|
|
719
719
|
return a.delete(e), h;
|
|
720
|
-
case
|
|
720
|
+
case nd:
|
|
721
721
|
if (hi)
|
|
722
722
|
return hi.call(e) == hi.call(t);
|
|
723
723
|
}
|
|
724
724
|
return !1;
|
|
725
725
|
}
|
|
726
|
-
var
|
|
727
|
-
function
|
|
728
|
-
var a = n &
|
|
726
|
+
var ad = 1, rd = Object.prototype, ld = rd.hasOwnProperty;
|
|
727
|
+
function cd(e, t, n, o, i, s) {
|
|
728
|
+
var a = n & ad, l = xi(e), c = l.length, _ = xi(t), h = _.length;
|
|
729
729
|
if (c != h && !a)
|
|
730
730
|
return !1;
|
|
731
731
|
for (var d = c; d--; ) {
|
|
732
732
|
var g = l[d];
|
|
733
|
-
if (!(a ? g in t :
|
|
733
|
+
if (!(a ? g in t : ld.call(t, g)))
|
|
734
734
|
return !1;
|
|
735
735
|
}
|
|
736
736
|
var m = s.get(e), I = s.get(t);
|
|
@@ -742,8 +742,8 @@ function ld(e, t, n, o, i, s) {
|
|
|
742
742
|
g = l[d];
|
|
743
743
|
var D = e[g], X = t[g];
|
|
744
744
|
if (o)
|
|
745
|
-
var
|
|
746
|
-
if (!(
|
|
745
|
+
var te = a ? o(X, D, g, t, e, s) : o(D, X, g, e, t, s);
|
|
746
|
+
if (!(te === void 0 ? D === X || i(D, X, n, o, s) : te)) {
|
|
747
747
|
v = !1;
|
|
748
748
|
break;
|
|
749
749
|
}
|
|
@@ -755,10 +755,10 @@ function ld(e, t, n, o, i, s) {
|
|
|
755
755
|
}
|
|
756
756
|
return s.delete(e), s.delete(t), v;
|
|
757
757
|
}
|
|
758
|
-
var
|
|
759
|
-
function
|
|
760
|
-
var a = Un(e), l = Un(t), c = a ?
|
|
761
|
-
c = c ==
|
|
758
|
+
var ud = 1, Qs = "[object Arguments]", Zs = "[object Array]", so = "[object Object]", pd = Object.prototype, ea = pd.hasOwnProperty;
|
|
759
|
+
function _d(e, t, n, o, i, s) {
|
|
760
|
+
var a = Un(e), l = Un(t), c = a ? Zs : it(e), _ = l ? Zs : it(t);
|
|
761
|
+
c = c == Qs ? so : c, _ = _ == Qs ? so : _;
|
|
762
762
|
var h = c == so, d = _ == so, g = c == _;
|
|
763
763
|
if (g && Oo(e)) {
|
|
764
764
|
if (!Oo(t))
|
|
@@ -766,18 +766,18 @@ function pd(e, t, n, o, i, s) {
|
|
|
766
766
|
a = !0, h = !1;
|
|
767
767
|
}
|
|
768
768
|
if (g && !h)
|
|
769
|
-
return s || (s = new At()), a || Ga(e) ? Qa(e, t, n, o, i, s) :
|
|
770
|
-
if (!(n &
|
|
771
|
-
var m = h &&
|
|
769
|
+
return s || (s = new At()), a || Ga(e) ? Qa(e, t, n, o, i, s) : sd(e, t, c, n, o, i, s);
|
|
770
|
+
if (!(n & ud)) {
|
|
771
|
+
var m = h && ea.call(e, "__wrapped__"), I = d && ea.call(t, "__wrapped__");
|
|
772
772
|
if (m || I) {
|
|
773
773
|
var v = m ? e.value() : e, G = I ? t.value() : t;
|
|
774
774
|
return s || (s = new At()), i(v, G, n, o, s);
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
return g ? (s || (s = new At()),
|
|
777
|
+
return g ? (s || (s = new At()), cd(e, t, n, o, i, s)) : !1;
|
|
778
778
|
}
|
|
779
779
|
function Za(e, t, n, o, i) {
|
|
780
|
-
return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t :
|
|
780
|
+
return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : _d(e, t, n, o, Za, i);
|
|
781
781
|
}
|
|
782
782
|
function xe(e, t) {
|
|
783
783
|
return Za(e, t);
|
|
@@ -800,7 +800,7 @@ function fe(e) {
|
|
|
800
800
|
console.assert(!1, "invalid param type", e.type);
|
|
801
801
|
return L.xml.textToDom(t);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function ss(e, t, n, o) {
|
|
804
804
|
const i = `<xml><block type="parameter_v1"><mutation key="${t}" name="${n}" locale="${o ? "TRUE" : "FALSE"}"/></block></xml>`, s = L.xml.textToDom(i), a = Fl.domToWorkspace(s, e);
|
|
805
805
|
return e.getBlockById(a[0]);
|
|
806
806
|
}
|
|
@@ -818,7 +818,7 @@ function je(e, t) {
|
|
|
818
818
|
return;
|
|
819
819
|
c.dispose();
|
|
820
820
|
}
|
|
821
|
-
c =
|
|
821
|
+
c = ss(
|
|
822
822
|
e.workspace,
|
|
823
823
|
i,
|
|
824
824
|
s,
|
|
@@ -831,7 +831,7 @@ function je(e, t) {
|
|
|
831
831
|
}
|
|
832
832
|
function $n(e) {
|
|
833
833
|
const { version: t } = V.app.activeObject;
|
|
834
|
-
if (!
|
|
834
|
+
if (!ec[t])
|
|
835
835
|
return console.assert(!1, "invalid pkg version", t), [];
|
|
836
836
|
const o = [];
|
|
837
837
|
for (const i in Ye) {
|
|
@@ -860,7 +860,7 @@ function fi(e, t) {
|
|
|
860
860
|
if (n)
|
|
861
861
|
return n.events.find((o) => o.key === t);
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function dd(e) {
|
|
864
864
|
const t = [];
|
|
865
865
|
return Yi(e).forEach(({ key: o, name: i }) => {
|
|
866
866
|
t.push([T[i] ?? i, o]);
|
|
@@ -875,7 +875,7 @@ function gi(e, t) {
|
|
|
875
875
|
if (n)
|
|
876
876
|
return n.methods.find((o) => o.key === t);
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function hd(e) {
|
|
879
879
|
const t = [];
|
|
880
880
|
return Ki(e).forEach(({ key: o, name: i }) => {
|
|
881
881
|
t.push([T[i] ?? i, o]);
|
|
@@ -961,7 +961,7 @@ function mi(e, t) {
|
|
|
961
961
|
}
|
|
962
962
|
return o.events.find((i) => i.key === t);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function fd(e) {
|
|
965
965
|
const t = [];
|
|
966
966
|
return Hi(e).forEach(({ key: o, name: i }) => {
|
|
967
967
|
t.push([T[i] ?? i, o]);
|
|
@@ -985,7 +985,7 @@ function Ti(e, t) {
|
|
|
985
985
|
}
|
|
986
986
|
return o.methods.find((i) => i.key === t);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function gd(e) {
|
|
989
989
|
const t = [];
|
|
990
990
|
return $i(e).forEach(({ key: o, name: i }) => {
|
|
991
991
|
t.push([T[i] ?? i, o]);
|
|
@@ -1021,7 +1021,7 @@ function tr(e, t) {
|
|
|
1021
1021
|
}), o.push([a, s.keys]);
|
|
1022
1022
|
}), ge(o);
|
|
1023
1023
|
}
|
|
1024
|
-
const
|
|
1024
|
+
const md = {
|
|
1025
1025
|
init: function() {
|
|
1026
1026
|
this.node = {
|
|
1027
1027
|
id: "",
|
|
@@ -1070,7 +1070,7 @@ const gd = {
|
|
|
1070
1070
|
return Gn("method");
|
|
1071
1071
|
},
|
|
1072
1072
|
genMethodOpts_: function() {
|
|
1073
|
-
return
|
|
1073
|
+
return gd(this.node.id);
|
|
1074
1074
|
},
|
|
1075
1075
|
genElementOpts_: function() {
|
|
1076
1076
|
return fn();
|
|
@@ -1183,7 +1183,7 @@ const gd = {
|
|
|
1183
1183
|
this.setWarningText(null);
|
|
1184
1184
|
}
|
|
1185
1185
|
};
|
|
1186
|
-
U.call_node_method_v1 =
|
|
1186
|
+
U.call_node_method_v1 = md;
|
|
1187
1187
|
r.forBlock.call_node_method_v1 = function(e) {
|
|
1188
1188
|
const t = r.quote_, n = e;
|
|
1189
1189
|
let o = n.node.id;
|
|
@@ -1206,7 +1206,7 @@ ${s}}
|
|
|
1206
1206
|
`;
|
|
1207
1207
|
}
|
|
1208
1208
|
};
|
|
1209
|
-
const
|
|
1209
|
+
const Td = {
|
|
1210
1210
|
init: function() {
|
|
1211
1211
|
this.element = {
|
|
1212
1212
|
key: "",
|
|
@@ -1257,7 +1257,7 @@ const md = {
|
|
|
1257
1257
|
return fn("method");
|
|
1258
1258
|
},
|
|
1259
1259
|
genMethodOpts_: function() {
|
|
1260
|
-
return
|
|
1260
|
+
return hd(this.element.key);
|
|
1261
1261
|
},
|
|
1262
1262
|
onchange: function(e) {
|
|
1263
1263
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -1363,7 +1363,7 @@ const md = {
|
|
|
1363
1363
|
this.setWarningText(null);
|
|
1364
1364
|
}
|
|
1365
1365
|
};
|
|
1366
|
-
U.call_node_method_as_v1 =
|
|
1366
|
+
U.call_node_method_as_v1 = Td;
|
|
1367
1367
|
r.forBlock.call_node_method_as_v1 = function(e) {
|
|
1368
1368
|
const t = r.quote_, n = e, o = r.valueToCode(n, "NODE", p.NONE) || "";
|
|
1369
1369
|
if (!o)
|
|
@@ -1387,7 +1387,7 @@ ${s}}
|
|
|
1387
1387
|
`;
|
|
1388
1388
|
}
|
|
1389
1389
|
};
|
|
1390
|
-
function
|
|
1390
|
+
function Ed() {
|
|
1391
1391
|
return V.app.activeObject.type !== "comp" ? !1 : V.app.activeComp.meta.properties.length > 0 || V.app.activeComp.meta.methods.length > 0 || V.app.activeComp.meta.events.length > 0;
|
|
1392
1392
|
}
|
|
1393
1393
|
function Yn() {
|
|
@@ -1415,7 +1415,7 @@ function Ei(e, t) {
|
|
|
1415
1415
|
if (n)
|
|
1416
1416
|
return n.outputs.find((o) => o.id === t);
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Ad(e) {
|
|
1419
1419
|
const t = [];
|
|
1420
1420
|
return Gi(e).forEach((o) => {
|
|
1421
1421
|
t.push([o.name, o.id]);
|
|
@@ -1424,16 +1424,16 @@ function Ed(e) {
|
|
|
1424
1424
|
function or() {
|
|
1425
1425
|
return V.app.activeComp.meta.events;
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function ta(e) {
|
|
1428
1428
|
return V.app.activeComp.meta.events.find((t) => t.id === e);
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function vd() {
|
|
1431
1431
|
const e = [];
|
|
1432
1432
|
return or().forEach((n) => {
|
|
1433
1433
|
e.push([n.name, n.id]);
|
|
1434
1434
|
}), ge(e);
|
|
1435
1435
|
}
|
|
1436
|
-
const
|
|
1436
|
+
const Od = {
|
|
1437
1437
|
init: function() {
|
|
1438
1438
|
this.method = {
|
|
1439
1439
|
id: "",
|
|
@@ -1517,12 +1517,12 @@ const vd = {
|
|
|
1517
1517
|
this.setWarningText(null);
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
|
-
U.comp_method_impl_v1 =
|
|
1520
|
+
U.comp_method_impl_v1 = Od;
|
|
1521
1521
|
r.forBlock.comp_method_impl_v1 = function(e) {
|
|
1522
1522
|
const t = e;
|
|
1523
1523
|
return `{${r.statementToCode(t, "HANDLE")}}`;
|
|
1524
1524
|
};
|
|
1525
|
-
const
|
|
1525
|
+
const bd = {
|
|
1526
1526
|
init: function() {
|
|
1527
1527
|
this.node = {
|
|
1528
1528
|
id: "",
|
|
@@ -1586,12 +1586,12 @@ const Od = {
|
|
|
1586
1586
|
this.node.alias !== e.alias && (this.node.alias = e.alias), this.setWarningText(null);
|
|
1587
1587
|
}
|
|
1588
1588
|
};
|
|
1589
|
-
U.get_node_v1 =
|
|
1589
|
+
U.get_node_v1 = bd;
|
|
1590
1590
|
r.forBlock.get_node_v1 = function(e) {
|
|
1591
1591
|
const t = e;
|
|
1592
1592
|
return [r.quote_(t.node.id), p.ATOMIC];
|
|
1593
1593
|
};
|
|
1594
|
-
const
|
|
1594
|
+
const Id = {
|
|
1595
1595
|
init: function() {
|
|
1596
1596
|
this.node = {
|
|
1597
1597
|
id: "",
|
|
@@ -1685,12 +1685,12 @@ const bd = {
|
|
|
1685
1685
|
xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
1686
1686
|
}
|
|
1687
1687
|
};
|
|
1688
|
-
U.get_node_prop_v1 =
|
|
1688
|
+
U.get_node_prop_v1 = Id;
|
|
1689
1689
|
r.forBlock.get_node_prop_v1 = function(e) {
|
|
1690
1690
|
const t = e, n = r.quote_(t.node.id), o = r.quote_(t.prop.keys);
|
|
1691
1691
|
return [`__getNodePropV1__(${n}, ${o})`, p.ATOMIC];
|
|
1692
1692
|
};
|
|
1693
|
-
const
|
|
1693
|
+
const yd = {
|
|
1694
1694
|
init: function() {
|
|
1695
1695
|
this.element = {
|
|
1696
1696
|
key: "",
|
|
@@ -1782,29 +1782,29 @@ const Id = {
|
|
|
1782
1782
|
xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
1783
1783
|
}
|
|
1784
1784
|
};
|
|
1785
|
-
U.get_node_prop_as_v1 =
|
|
1785
|
+
U.get_node_prop_as_v1 = yd;
|
|
1786
1786
|
r.forBlock.get_node_prop_as_v1 = function(e) {
|
|
1787
1787
|
const t = e, n = r.valueToCode(t, "NODE", p.ATOMIC) || "null", o = r.quote_(t.prop.keys);
|
|
1788
1788
|
return [`__getNodePropV1__(${n}, ${o})`, p.ATOMIC];
|
|
1789
1789
|
};
|
|
1790
|
-
function
|
|
1790
|
+
function Cd() {
|
|
1791
1791
|
if (V.app.activeObject.type !== "page" || V.app.activePage.meta.arguments.length > 0) return !1;
|
|
1792
1792
|
}
|
|
1793
1793
|
function ir() {
|
|
1794
1794
|
return V.app.activePage.meta.arguments;
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function na(e) {
|
|
1797
1797
|
return V.app.activePage.meta.arguments.find(
|
|
1798
1798
|
(t) => t.id === e
|
|
1799
1799
|
);
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function Nd() {
|
|
1802
1802
|
const e = [];
|
|
1803
1803
|
return ir().forEach((n) => {
|
|
1804
1804
|
e.push([n.name, n.id]);
|
|
1805
1805
|
}), ge(e);
|
|
1806
1806
|
}
|
|
1807
|
-
const
|
|
1807
|
+
const kd = {
|
|
1808
1808
|
init: function() {
|
|
1809
1809
|
this.argument = {
|
|
1810
1810
|
id: "",
|
|
@@ -1827,7 +1827,7 @@ const Nd = {
|
|
|
1827
1827
|
}, 0);
|
|
1828
1828
|
},
|
|
1829
1829
|
genArgumentOpts_: function() {
|
|
1830
|
-
return
|
|
1830
|
+
return Nd();
|
|
1831
1831
|
},
|
|
1832
1832
|
onchange: function(e) {
|
|
1833
1833
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -1840,7 +1840,7 @@ const Nd = {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
},
|
|
1842
1842
|
onArgumentChange_: function(e) {
|
|
1843
|
-
const t =
|
|
1843
|
+
const t = na(e);
|
|
1844
1844
|
if (!t) {
|
|
1845
1845
|
console.assert(!1);
|
|
1846
1846
|
return;
|
|
@@ -1851,7 +1851,7 @@ const Nd = {
|
|
|
1851
1851
|
this.argument.type === "string" ? this.setOutput(!0, "String") : this.argument.type === "number" ? this.setOutput(!0, "Number") : this.argument.type === "boolean" ? this.setOutput(!0, "Boolean") : this.argument.type === "list" ? this.setOutput(!0, "Array") : this.argument.type === "object" ? this.setOutput(!0, "Object") : this.setOutput(!0, null);
|
|
1852
1852
|
},
|
|
1853
1853
|
checkWarning_: function() {
|
|
1854
|
-
const e =
|
|
1854
|
+
const e = na(this.argument.id);
|
|
1855
1855
|
if (!e) {
|
|
1856
1856
|
this.setWarningText(T.WARN_ARGUMENT_NOT_AVAILABLE);
|
|
1857
1857
|
return;
|
|
@@ -1863,20 +1863,20 @@ const Nd = {
|
|
|
1863
1863
|
this.setWarningText(null);
|
|
1864
1864
|
}
|
|
1865
1865
|
};
|
|
1866
|
-
U.get_page_argument_v1 =
|
|
1866
|
+
U.get_page_argument_v1 = kd;
|
|
1867
1867
|
r.forBlock.get_page_argument_v1 = function(e) {
|
|
1868
1868
|
const t = e;
|
|
1869
1869
|
return [`__getPageArgumentV1__(${r.quote_(t.argument.id)})`, p.FUNCTION_CALL];
|
|
1870
1870
|
};
|
|
1871
|
-
function
|
|
1871
|
+
function as() {
|
|
1872
1872
|
return V.app.appList;
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function oa(e) {
|
|
1875
1875
|
return V.app.appList.find((t) => t.id === e);
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function Ld() {
|
|
1878
1878
|
const e = [];
|
|
1879
|
-
return
|
|
1879
|
+
return as().forEach((n) => {
|
|
1880
1880
|
e.push([n.name, n.id]);
|
|
1881
1881
|
}), ge(e);
|
|
1882
1882
|
}
|
|
@@ -1889,13 +1889,13 @@ function Ai(e, t) {
|
|
|
1889
1889
|
if (n)
|
|
1890
1890
|
return n.pages.find((o) => o.id === t);
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function Sd(e) {
|
|
1893
1893
|
const t = [];
|
|
1894
1894
|
return ji(e).forEach((o) => {
|
|
1895
1895
|
t.push([o.name, o.id]);
|
|
1896
1896
|
}), ge(t);
|
|
1897
1897
|
}
|
|
1898
|
-
const
|
|
1898
|
+
const Bd = {
|
|
1899
1899
|
init: function() {
|
|
1900
1900
|
this.app = {
|
|
1901
1901
|
id: "",
|
|
@@ -1915,7 +1915,7 @@ const Sd = {
|
|
|
1915
1915
|
var i, s;
|
|
1916
1916
|
if (this.app.id)
|
|
1917
1917
|
return;
|
|
1918
|
-
const e = (i =
|
|
1918
|
+
const e = (i = as()) == null ? void 0 : i[0];
|
|
1919
1919
|
if (!e)
|
|
1920
1920
|
return;
|
|
1921
1921
|
this.app.id = e.id, this.app.name = e.name;
|
|
@@ -1941,10 +1941,10 @@ const Sd = {
|
|
|
1941
1941
|
}, 0);
|
|
1942
1942
|
},
|
|
1943
1943
|
genAppOpts_: function() {
|
|
1944
|
-
return
|
|
1944
|
+
return Ld();
|
|
1945
1945
|
},
|
|
1946
1946
|
genPageOpts_: function() {
|
|
1947
|
-
return
|
|
1947
|
+
return Sd(this.app.id);
|
|
1948
1948
|
},
|
|
1949
1949
|
onchange: function(e) {
|
|
1950
1950
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -1958,7 +1958,7 @@ const Sd = {
|
|
|
1958
1958
|
},
|
|
1959
1959
|
onAppChange_: function(e) {
|
|
1960
1960
|
var i;
|
|
1961
|
-
const t =
|
|
1961
|
+
const t = oa(e);
|
|
1962
1962
|
if (!t) {
|
|
1963
1963
|
console.assert(!1);
|
|
1964
1964
|
return;
|
|
@@ -1976,7 +1976,7 @@ const Sd = {
|
|
|
1976
1976
|
t ? (this.page.id = t.id, this.page.name = t.name) : (this.page.id = "", this.page.name = "");
|
|
1977
1977
|
},
|
|
1978
1978
|
checkWarning_: function() {
|
|
1979
|
-
const e =
|
|
1979
|
+
const e = oa(this.app.id);
|
|
1980
1980
|
if (!e) {
|
|
1981
1981
|
this.setWarningText(T.WARN_APP_NOT_AVAIALABLE);
|
|
1982
1982
|
return;
|
|
@@ -1990,13 +1990,13 @@ const Sd = {
|
|
|
1990
1990
|
t.name !== this.page.name && (this.page.name = t.name), this.setWarningText(null);
|
|
1991
1991
|
}
|
|
1992
1992
|
};
|
|
1993
|
-
U.navigate_to_v1 =
|
|
1993
|
+
U.navigate_to_v1 = Bd;
|
|
1994
1994
|
r.forBlock.navigate_to_v1 = function(e) {
|
|
1995
1995
|
const t = e, n = r.quote_(t.app.id), o = r.quote_(t.page.id), i = r.quote_(t.getFieldValue("MODE"));
|
|
1996
1996
|
return `__navigateToV1__(${n}, ${o}, ${i});
|
|
1997
1997
|
`;
|
|
1998
1998
|
};
|
|
1999
|
-
const
|
|
1999
|
+
const Rd = {
|
|
2000
2000
|
init: function() {
|
|
2001
2001
|
this.node = {
|
|
2002
2002
|
id: "",
|
|
@@ -2044,7 +2044,7 @@ const Bd = {
|
|
|
2044
2044
|
return Gn("event");
|
|
2045
2045
|
},
|
|
2046
2046
|
genEventOpts_: function() {
|
|
2047
|
-
return
|
|
2047
|
+
return fd(this.node.id);
|
|
2048
2048
|
},
|
|
2049
2049
|
onchange: function(e) {
|
|
2050
2050
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -2116,7 +2116,7 @@ const Bd = {
|
|
|
2116
2116
|
this.setWarningText(null);
|
|
2117
2117
|
}
|
|
2118
2118
|
};
|
|
2119
|
-
U.on_node_event_v1 =
|
|
2119
|
+
U.on_node_event_v1 = Rd;
|
|
2120
2120
|
r.forBlock.on_node_event_v1 = function(e) {
|
|
2121
2121
|
const t = e, n = r.quote_(t.node.id), o = r.quote_(t.event.key);
|
|
2122
2122
|
let i = "";
|
|
@@ -2128,7 +2128,7 @@ r.forBlock.on_node_event_v1 = function(e) {
|
|
|
2128
2128
|
${s}});
|
|
2129
2129
|
`;
|
|
2130
2130
|
};
|
|
2131
|
-
const
|
|
2131
|
+
const Dd = {
|
|
2132
2132
|
init: function() {
|
|
2133
2133
|
this.element = {
|
|
2134
2134
|
key: "",
|
|
@@ -2178,7 +2178,7 @@ const Rd = {
|
|
|
2178
2178
|
return fn("event");
|
|
2179
2179
|
},
|
|
2180
2180
|
genEventOpts_: function() {
|
|
2181
|
-
return
|
|
2181
|
+
return dd(this.element.key);
|
|
2182
2182
|
},
|
|
2183
2183
|
onchange: function(e) {
|
|
2184
2184
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -2246,7 +2246,7 @@ const Rd = {
|
|
|
2246
2246
|
this.setWarningText(null);
|
|
2247
2247
|
}
|
|
2248
2248
|
};
|
|
2249
|
-
U.on_node_event_as_v1 =
|
|
2249
|
+
U.on_node_event_as_v1 = Dd;
|
|
2250
2250
|
r.forBlock.on_node_event_as_v1 = function(e) {
|
|
2251
2251
|
const t = e, n = r.valueToCode(t, "NODE", p.NONE), o = r.quote_(t.event.key);
|
|
2252
2252
|
let i = "";
|
|
@@ -2258,7 +2258,7 @@ r.forBlock.on_node_event_as_v1 = function(e) {
|
|
|
2258
2258
|
${s}});
|
|
2259
2259
|
`;
|
|
2260
2260
|
};
|
|
2261
|
-
const
|
|
2261
|
+
const Md = {
|
|
2262
2262
|
init: function() {
|
|
2263
2263
|
this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_CONFIRM_DLG_HELPURL}");
|
|
2264
2264
|
},
|
|
@@ -2287,7 +2287,7 @@ const Dd = {
|
|
|
2287
2287
|
]);
|
|
2288
2288
|
}
|
|
2289
2289
|
};
|
|
2290
|
-
U.open_confirm_dlg_v1 =
|
|
2290
|
+
U.open_confirm_dlg_v1 = Md;
|
|
2291
2291
|
r.forBlock.open_confirm_dlg_v1 = function(e) {
|
|
2292
2292
|
const t = r.valueToCode(e, "TITLE", p.ATOMIC), n = r.valueToCode(e, "TEXT", p.ATOMIC), o = r.statementToCode(e, "HANDLE");
|
|
2293
2293
|
return `{
|
|
@@ -2295,7 +2295,7 @@ r.forBlock.open_confirm_dlg_v1 = function(e) {
|
|
|
2295
2295
|
${o}}
|
|
2296
2296
|
`;
|
|
2297
2297
|
};
|
|
2298
|
-
const
|
|
2298
|
+
const Pd = {
|
|
2299
2299
|
init: function() {
|
|
2300
2300
|
this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_PROMPT_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_PROMPT_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_PROMPT_DLG_HELPURL}");
|
|
2301
2301
|
},
|
|
@@ -2326,7 +2326,7 @@ const Md = {
|
|
|
2326
2326
|
]);
|
|
2327
2327
|
}
|
|
2328
2328
|
};
|
|
2329
|
-
U.open_prompt_dlg_v1 =
|
|
2329
|
+
U.open_prompt_dlg_v1 = Pd;
|
|
2330
2330
|
r.forBlock.open_prompt_dlg_v1 = function(e) {
|
|
2331
2331
|
const t = r.valueToCode(e, "TITLE", p.ATOMIC), n = r.valueToCode(e, "LABEL", p.ATOMIC), o = r.valueToCode(e, "VALUE", p.ATOMIC), i = r.statementToCode(e, "HANDLE");
|
|
2332
2332
|
return `{
|
|
@@ -2366,7 +2366,7 @@ r.forBlock.popup_message_v1 = function(e) {
|
|
|
2366
2366
|
return `__messageV1__(${t}, ${n});
|
|
2367
2367
|
`;
|
|
2368
2368
|
};
|
|
2369
|
-
const
|
|
2369
|
+
const Ud = {
|
|
2370
2370
|
init: function() {
|
|
2371
2371
|
this.method = {
|
|
2372
2372
|
id: "",
|
|
@@ -2415,7 +2415,7 @@ const Pd = {
|
|
|
2415
2415
|
return nr();
|
|
2416
2416
|
},
|
|
2417
2417
|
genOutputOpts_: function() {
|
|
2418
|
-
return
|
|
2418
|
+
return Ad(this.method.id);
|
|
2419
2419
|
},
|
|
2420
2420
|
onchange: function(e) {
|
|
2421
2421
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -2481,7 +2481,7 @@ const Pd = {
|
|
|
2481
2481
|
this.setWarningText(null);
|
|
2482
2482
|
}
|
|
2483
2483
|
};
|
|
2484
|
-
U.set_comp_method_output_v1 =
|
|
2484
|
+
U.set_comp_method_output_v1 = Ud;
|
|
2485
2485
|
r.forBlock.set_comp_method_output_v1 = function(e) {
|
|
2486
2486
|
const t = e;
|
|
2487
2487
|
let n = r.valueToCode(t, "VALUE", p.ATOMIC);
|
|
@@ -2508,7 +2508,7 @@ r.forBlock.set_comp_method_output_v1 = function(e) {
|
|
|
2508
2508
|
return `__setCompMethodOutputV1__(${n});
|
|
2509
2509
|
`;
|
|
2510
2510
|
};
|
|
2511
|
-
const
|
|
2511
|
+
const xd = {
|
|
2512
2512
|
init: function() {
|
|
2513
2513
|
this.node = {
|
|
2514
2514
|
id: "",
|
|
@@ -2600,13 +2600,13 @@ const Ud = {
|
|
|
2600
2600
|
xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
2601
2601
|
}
|
|
2602
2602
|
};
|
|
2603
|
-
U.set_node_prop_v1 =
|
|
2603
|
+
U.set_node_prop_v1 = xd;
|
|
2604
2604
|
r.forBlock.set_node_prop_v1 = function(e) {
|
|
2605
2605
|
const t = e, n = r.quote_(t.node.id), o = r.quote_(t.prop.keys), i = r.valueToCode(t, "VALUE", p.NONE);
|
|
2606
2606
|
return `__setNodePropV1__(${n}, ${o}, ${i});
|
|
2607
2607
|
`;
|
|
2608
2608
|
};
|
|
2609
|
-
const
|
|
2609
|
+
const wd = {
|
|
2610
2610
|
init: function() {
|
|
2611
2611
|
this.element = {
|
|
2612
2612
|
key: "",
|
|
@@ -2700,13 +2700,13 @@ const xd = {
|
|
|
2700
2700
|
xe(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
2701
2701
|
}
|
|
2702
2702
|
};
|
|
2703
|
-
U.set_node_prop_as_v1 =
|
|
2703
|
+
U.set_node_prop_as_v1 = wd;
|
|
2704
2704
|
r.forBlock.set_node_prop_as_v1 = function(e) {
|
|
2705
2705
|
const t = e, n = r.valueToCode(t, "NODE", p.NONE), o = r.quote_(t.prop.keys), i = r.valueToCode(t, "VALUE", p.NONE);
|
|
2706
2706
|
return `__setNodePropV1__(${n}, ${o}, ${i});
|
|
2707
2707
|
`;
|
|
2708
2708
|
};
|
|
2709
|
-
const
|
|
2709
|
+
const Vd = {
|
|
2710
2710
|
init: function() {
|
|
2711
2711
|
this.event = {
|
|
2712
2712
|
id: "",
|
|
@@ -2740,7 +2740,7 @@ const wd = {
|
|
|
2740
2740
|
}, 0);
|
|
2741
2741
|
},
|
|
2742
2742
|
genEventOpts_: function() {
|
|
2743
|
-
return
|
|
2743
|
+
return vd();
|
|
2744
2744
|
},
|
|
2745
2745
|
onchange: function(e) {
|
|
2746
2746
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -2753,7 +2753,7 @@ const wd = {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
},
|
|
2755
2755
|
onEventChange_: function(e) {
|
|
2756
|
-
const t =
|
|
2756
|
+
const t = ta(e);
|
|
2757
2757
|
t ? (this.event.id = t.id, this.event.name = t.name, this.event.params = t.params) : (this.event.id = "", this.event.name = "", this.event.params = []);
|
|
2758
2758
|
},
|
|
2759
2759
|
updateShape_: function() {
|
|
@@ -2783,7 +2783,7 @@ const wd = {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
},
|
|
2785
2785
|
checkWarning_: function() {
|
|
2786
|
-
const e =
|
|
2786
|
+
const e = ta(this.event.id);
|
|
2787
2787
|
if (!e) {
|
|
2788
2788
|
this.setWarningText(T.WARN_EVENT_NOT_AVAILABLE);
|
|
2789
2789
|
return;
|
|
@@ -2795,7 +2795,7 @@ const wd = {
|
|
|
2795
2795
|
this.setWarningText(null);
|
|
2796
2796
|
}
|
|
2797
2797
|
};
|
|
2798
|
-
U.trigger_comp_event_v1 =
|
|
2798
|
+
U.trigger_comp_event_v1 = Vd;
|
|
2799
2799
|
r.forBlock.trigger_comp_event_v1 = function() {
|
|
2800
2800
|
return "";
|
|
2801
2801
|
};
|
|
@@ -2941,7 +2941,7 @@ function ${r.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
|
|
|
2941
2941
|
`
|
|
2942
2942
|
)}(${t}, ${n}, ${o})`, p.FUNCTION_CALL];
|
|
2943
2943
|
};
|
|
2944
|
-
const
|
|
2944
|
+
const Fd = L.xml, Yd = [
|
|
2945
2945
|
{
|
|
2946
2946
|
type: "add_data_v1",
|
|
2947
2947
|
inputs: ["SUCCESS", "MESSAGE", "DATA"]
|
|
@@ -2999,17 +2999,17 @@ const Vd = L.xml, Fd = [
|
|
|
2999
2999
|
inputs: ["SUCCESS", "MESSAGE", "DATA"]
|
|
3000
3000
|
}
|
|
3001
3001
|
];
|
|
3002
|
-
function
|
|
3002
|
+
function Kd(e, t) {
|
|
3003
3003
|
var o, i;
|
|
3004
|
-
const n =
|
|
3004
|
+
const n = Yd.find((s) => s.type === e);
|
|
3005
3005
|
return n ? !!((o = n.prefixInputs) != null && o.some((s) => t.startsWith(s)) || (i = n.inputs) != null && i.some((s) => s === t)) : !1;
|
|
3006
3006
|
}
|
|
3007
|
-
const
|
|
3007
|
+
const Hd = {
|
|
3008
3008
|
init: function() {
|
|
3009
3009
|
this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
|
|
3010
3010
|
},
|
|
3011
3011
|
mutationToDom: function() {
|
|
3012
|
-
const e =
|
|
3012
|
+
const e = Fd.createElement("mutation");
|
|
3013
3013
|
return e.setAttribute("key", this.key), e.setAttribute("name", this.name), e.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), e;
|
|
3014
3014
|
},
|
|
3015
3015
|
domToMutation: function(e) {
|
|
@@ -3039,12 +3039,12 @@ const Kd = {
|
|
|
3039
3039
|
tryDuplicate_: function(e) {
|
|
3040
3040
|
var n;
|
|
3041
3041
|
const t = this.workspace.getBlockById(e.oldParentId);
|
|
3042
|
-
if (t &&
|
|
3042
|
+
if (t && Kd(t.type, e.oldInputName))
|
|
3043
3043
|
try {
|
|
3044
3044
|
w.disable();
|
|
3045
3045
|
const o = (n = t.getInput(e.oldInputName)) == null ? void 0 : n.connection;
|
|
3046
3046
|
if (o) {
|
|
3047
|
-
const i =
|
|
3047
|
+
const i = ss(
|
|
3048
3048
|
this.workspace,
|
|
3049
3049
|
this.key,
|
|
3050
3050
|
this.name,
|
|
@@ -3060,7 +3060,7 @@ const Kd = {
|
|
|
3060
3060
|
this.locale ? this.setFieldValue(T[this.name], "LABEL") : this.setFieldValue(this.name, "LABEL");
|
|
3061
3061
|
}
|
|
3062
3062
|
};
|
|
3063
|
-
U.parameter_v1 =
|
|
3063
|
+
U.parameter_v1 = Hd;
|
|
3064
3064
|
r.forBlock.parameter_v1 = function(e) {
|
|
3065
3065
|
return [e.key, p.ATOMIC];
|
|
3066
3066
|
};
|
|
@@ -3079,7 +3079,7 @@ function ar() {
|
|
|
3079
3079
|
e.push([n.name, n.id]);
|
|
3080
3080
|
}), ge(e);
|
|
3081
3081
|
}
|
|
3082
|
-
function
|
|
3082
|
+
function rs(e) {
|
|
3083
3083
|
const t = V.compute.spaces.find((n) => n.id === e);
|
|
3084
3084
|
return t ? t.funcs : [];
|
|
3085
3085
|
}
|
|
@@ -3090,24 +3090,24 @@ function rr(e, t) {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
function lr(e) {
|
|
3092
3092
|
const t = [];
|
|
3093
|
-
return
|
|
3093
|
+
return rs(e).forEach((o) => {
|
|
3094
3094
|
t.push([o.name, o.id]);
|
|
3095
3095
|
}), ge(t);
|
|
3096
3096
|
}
|
|
3097
3097
|
function Wi() {
|
|
3098
3098
|
return V.compute.activeFunc;
|
|
3099
3099
|
}
|
|
3100
|
-
function
|
|
3100
|
+
function ia(e) {
|
|
3101
3101
|
const { outputs: t } = V.compute.activeFunc;
|
|
3102
3102
|
return t.find((n) => n.id === e);
|
|
3103
3103
|
}
|
|
3104
|
-
function
|
|
3104
|
+
function $d() {
|
|
3105
3105
|
const e = [], { outputs: t } = V.compute.activeFunc;
|
|
3106
3106
|
return t.forEach(({ id: n, name: o }) => {
|
|
3107
3107
|
e.push([o, n]);
|
|
3108
3108
|
}), ge(e);
|
|
3109
3109
|
}
|
|
3110
|
-
const
|
|
3110
|
+
const Gd = {
|
|
3111
3111
|
init: function() {
|
|
3112
3112
|
this.space = {
|
|
3113
3113
|
id: "",
|
|
@@ -3132,7 +3132,7 @@ const $d = {
|
|
|
3132
3132
|
this.space.id = e.id, this.space.name = e.name;
|
|
3133
3133
|
const t = this.getField("SPACE");
|
|
3134
3134
|
t.getOptions(!1), t.setValue(this.space.id);
|
|
3135
|
-
const n = (s =
|
|
3135
|
+
const n = (s = rs(this.space.id)) == null ? void 0 : s[0];
|
|
3136
3136
|
if (!n)
|
|
3137
3137
|
return;
|
|
3138
3138
|
this.func.id = n.id, this.func.name = n.name;
|
|
@@ -3233,7 +3233,7 @@ const $d = {
|
|
|
3233
3233
|
this.setWarningText(null);
|
|
3234
3234
|
}
|
|
3235
3235
|
};
|
|
3236
|
-
U.call_func_v1 =
|
|
3236
|
+
U.call_func_v1 = Gd;
|
|
3237
3237
|
r.forBlock.call_func_v1 = function(e) {
|
|
3238
3238
|
const t = r.INDENT, n = r.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
|
|
3239
3239
|
for (let g = 0; g < o.func.inputs.length; g++)
|
|
@@ -3254,7 +3254,7 @@ r.forBlock.call_func_v1 = function(e) {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
`;
|
|
3256
3256
|
};
|
|
3257
|
-
const
|
|
3257
|
+
const jd = {
|
|
3258
3258
|
init: function() {
|
|
3259
3259
|
this.space = {
|
|
3260
3260
|
id: "",
|
|
@@ -3276,7 +3276,7 @@ const Gd = {
|
|
|
3276
3276
|
this.space.id = e.id, this.space.name = e.name;
|
|
3277
3277
|
const t = this.getField("SPACE");
|
|
3278
3278
|
t.getOptions(!1), t.setValue(this.space.id);
|
|
3279
|
-
const n = (s =
|
|
3279
|
+
const n = (s = rs(this.space.id)) == null ? void 0 : s[0];
|
|
3280
3280
|
if (!n)
|
|
3281
3281
|
return;
|
|
3282
3282
|
this.func.id = n.id, this.func.name = n.name;
|
|
@@ -3377,7 +3377,7 @@ const Gd = {
|
|
|
3377
3377
|
this.setWarningText(null);
|
|
3378
3378
|
}
|
|
3379
3379
|
};
|
|
3380
|
-
U.call_func_internal_v1 =
|
|
3380
|
+
U.call_func_internal_v1 = jd;
|
|
3381
3381
|
r.forBlock.call_func_internal_v1 = function(e) {
|
|
3382
3382
|
const t = r.INDENT, n = r.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
|
|
3383
3383
|
for (let g = 0; g < o.func.inputs.length; g++)
|
|
@@ -3426,7 +3426,7 @@ r.forBlock.compute_debug_trace_v1 = function(e) {
|
|
|
3426
3426
|
return `__debugTraceV1__(${r.valueToCode(e, "OBJECT", p.ATOMIC)});
|
|
3427
3427
|
`;
|
|
3428
3428
|
};
|
|
3429
|
-
const
|
|
3429
|
+
const Wd = {
|
|
3430
3430
|
init: function() {
|
|
3431
3431
|
this.func = {
|
|
3432
3432
|
id: "",
|
|
@@ -3483,7 +3483,7 @@ const jd = {
|
|
|
3483
3483
|
this.setWarningText(null);
|
|
3484
3484
|
}
|
|
3485
3485
|
};
|
|
3486
|
-
U.func_entry_v1 =
|
|
3486
|
+
U.func_entry_v1 = Wd;
|
|
3487
3487
|
r.forBlock.func_entry_v1 = function(e) {
|
|
3488
3488
|
const t = e, n = r.statementToCode(t, "HANDLE"), o = [];
|
|
3489
3489
|
for (let a = 0; a < t.func.inputs.length; a++) {
|
|
@@ -3493,16 +3493,16 @@ r.forBlock.func_entry_v1 = function(e) {
|
|
|
3493
3493
|
return `function __funcEntryV1__(${o.join(", ")}) {
|
|
3494
3494
|
${n}}`;
|
|
3495
3495
|
};
|
|
3496
|
-
const
|
|
3496
|
+
const Xd = {
|
|
3497
3497
|
init: function() {
|
|
3498
3498
|
}
|
|
3499
3499
|
};
|
|
3500
|
-
U.on_flow_state_event_v1 =
|
|
3500
|
+
U.on_flow_state_event_v1 = Xd;
|
|
3501
3501
|
r.forBlock.on_flow_state_event_v1 = function() {
|
|
3502
3502
|
return `__onFlowStateEventV1__();
|
|
3503
3503
|
`;
|
|
3504
3504
|
};
|
|
3505
|
-
const
|
|
3505
|
+
const zd = {
|
|
3506
3506
|
init: function() {
|
|
3507
3507
|
this.output = {
|
|
3508
3508
|
id: "",
|
|
@@ -3532,7 +3532,7 @@ const Xd = {
|
|
|
3532
3532
|
}, 0);
|
|
3533
3533
|
},
|
|
3534
3534
|
genOutputOpts_: function() {
|
|
3535
|
-
return
|
|
3535
|
+
return $d();
|
|
3536
3536
|
},
|
|
3537
3537
|
onchange: function(e) {
|
|
3538
3538
|
if (e.type === w.BLOCK_CHANGE) {
|
|
@@ -3546,7 +3546,7 @@ const Xd = {
|
|
|
3546
3546
|
}, 0);
|
|
3547
3547
|
},
|
|
3548
3548
|
onOutputChange_: function(e) {
|
|
3549
|
-
const t =
|
|
3549
|
+
const t = ia(e);
|
|
3550
3550
|
if (!t) {
|
|
3551
3551
|
console.assert(!1);
|
|
3552
3552
|
return;
|
|
@@ -3569,7 +3569,7 @@ const Xd = {
|
|
|
3569
3569
|
t === "string" ? e = fe({ type: "string", default: "" }) : t === "number" ? e = fe({ type: "number", default: 0 }) : t === "boolean" && (e = fe({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
|
|
3570
3570
|
},
|
|
3571
3571
|
checkWarning_: function() {
|
|
3572
|
-
const e =
|
|
3572
|
+
const e = ia(this.output.id);
|
|
3573
3573
|
if (!e) {
|
|
3574
3574
|
this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
|
|
3575
3575
|
return;
|
|
@@ -3581,7 +3581,7 @@ const Xd = {
|
|
|
3581
3581
|
this.setWarningText(null);
|
|
3582
3582
|
}
|
|
3583
3583
|
};
|
|
3584
|
-
U.set_func_output_v1 =
|
|
3584
|
+
U.set_func_output_v1 = zd;
|
|
3585
3585
|
r.forBlock.set_func_output_v1 = function(e) {
|
|
3586
3586
|
const t = r.quote_, n = e, { name: o, type: i } = n.output;
|
|
3587
3587
|
let s = r.valueToCode(n, "VALUE", p.ATOMIC);
|
|
@@ -3608,7 +3608,7 @@ r.forBlock.set_func_output_v1 = function(e) {
|
|
|
3608
3608
|
return `__setFuncOutputV1__(${t(o)}, ${s});
|
|
3609
3609
|
`;
|
|
3610
3610
|
};
|
|
3611
|
-
const
|
|
3611
|
+
const qd = {
|
|
3612
3612
|
init: function() {
|
|
3613
3613
|
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}");
|
|
3614
3614
|
},
|
|
@@ -3631,7 +3631,7 @@ const zd = {
|
|
|
3631
3631
|
]);
|
|
3632
3632
|
}
|
|
3633
3633
|
};
|
|
3634
|
-
U.add_data_v1 =
|
|
3634
|
+
U.add_data_v1 = qd;
|
|
3635
3635
|
r.forBlock.add_data_v1 = function(e) {
|
|
3636
3636
|
const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.statementToCode(e, "HANDLE");
|
|
3637
3637
|
return `{
|
|
@@ -3674,7 +3674,7 @@ function Wo(e) {
|
|
|
3674
3674
|
t.push([o.name, o.id]);
|
|
3675
3675
|
}), ge(t);
|
|
3676
3676
|
}
|
|
3677
|
-
const
|
|
3677
|
+
const Jd = {
|
|
3678
3678
|
init: function() {
|
|
3679
3679
|
this.space = {
|
|
3680
3680
|
id: "",
|
|
@@ -3819,7 +3819,7 @@ const qd = {
|
|
|
3819
3819
|
this.setWarningText(null);
|
|
3820
3820
|
}
|
|
3821
3821
|
};
|
|
3822
|
-
U.cond_atomic_v1 =
|
|
3822
|
+
U.cond_atomic_v1 = Jd;
|
|
3823
3823
|
r.forBlock.cond_atomic_v1 = function(e) {
|
|
3824
3824
|
const t = r.quote_, n = e.getFieldValue("COLUMN"), o = r.valueToCode(e, "VALUE", p.ATOMIC) || null, s = {
|
|
3825
3825
|
EQ: "=",
|
|
@@ -3831,19 +3831,19 @@ r.forBlock.cond_atomic_v1 = function(e) {
|
|
|
3831
3831
|
}[e.getFieldValue("OP")];
|
|
3832
3832
|
return [`{type:'ATOMIC',key:${t(n)},value:${o},operator:${t(s)}}`, p.ATOMIC];
|
|
3833
3833
|
};
|
|
3834
|
-
const
|
|
3834
|
+
const Qd = {
|
|
3835
3835
|
init: function() {
|
|
3836
3836
|
this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
3837
3837
|
}
|
|
3838
3838
|
};
|
|
3839
|
-
U.cond_logic_container_v1 =
|
|
3840
|
-
const
|
|
3839
|
+
U.cond_logic_container_v1 = Qd;
|
|
3840
|
+
const Zd = {
|
|
3841
3841
|
init: function() {
|
|
3842
3842
|
this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
3843
3843
|
}
|
|
3844
3844
|
};
|
|
3845
|
-
U.cond_logic_item_v1 =
|
|
3846
|
-
const
|
|
3845
|
+
U.cond_logic_item_v1 = Zd;
|
|
3846
|
+
const eh = {
|
|
3847
3847
|
init: function() {
|
|
3848
3848
|
this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
|
|
3849
3849
|
new $([
|
|
@@ -3919,7 +3919,7 @@ const Zd = {
|
|
|
3919
3919
|
this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setCheck("Condition");
|
|
3920
3920
|
}
|
|
3921
3921
|
};
|
|
3922
|
-
U.cond_logic_v1 =
|
|
3922
|
+
U.cond_logic_v1 = eh;
|
|
3923
3923
|
r.forBlock.cond_logic_v1 = function(e) {
|
|
3924
3924
|
const t = r.quote_, n = e, o = n.getFieldValue("TYPE"), i = [], s = r.valueToCode(n, "VALUE", p.ATOMIC) || null;
|
|
3925
3925
|
i.push(s);
|
|
@@ -3929,7 +3929,7 @@ r.forBlock.cond_logic_v1 = function(e) {
|
|
|
3929
3929
|
}
|
|
3930
3930
|
return [`{type:${t(o)},entries:[${i}]}`, p.ATOMIC];
|
|
3931
3931
|
};
|
|
3932
|
-
const
|
|
3932
|
+
const th = {
|
|
3933
3933
|
init: function() {
|
|
3934
3934
|
this.appendDummyInput().appendField("%{BKY_DATA_V1_DELETE_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_DELETE_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_DELETE_DATA_HELPURL}");
|
|
3935
3935
|
},
|
|
@@ -3951,7 +3951,7 @@ const eh = {
|
|
|
3951
3951
|
]);
|
|
3952
3952
|
}
|
|
3953
3953
|
};
|
|
3954
|
-
U.delete_data_v1 =
|
|
3954
|
+
U.delete_data_v1 = th;
|
|
3955
3955
|
r.forBlock.delete_data_v1 = function(e) {
|
|
3956
3956
|
const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null", i = r.statementToCode(e, "HANDLE");
|
|
3957
3957
|
return `{
|
|
@@ -3976,7 +3976,7 @@ C([
|
|
|
3976
3976
|
style: "procedure_blocks"
|
|
3977
3977
|
}
|
|
3978
3978
|
]);
|
|
3979
|
-
const
|
|
3979
|
+
const nh = {
|
|
3980
3980
|
init: function() {
|
|
3981
3981
|
this.appendDummyInput().appendField("%{BKY_DATA_V1_QUERY_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_QUERY_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_QUERY_DATA_HELPURL}");
|
|
3982
3982
|
},
|
|
@@ -4012,7 +4012,7 @@ const th = {
|
|
|
4012
4012
|
]);
|
|
4013
4013
|
}
|
|
4014
4014
|
};
|
|
4015
|
-
U.query_data_v1 =
|
|
4015
|
+
U.query_data_v1 = nh;
|
|
4016
4016
|
r.forBlock.query_data_v1 = function(e) {
|
|
4017
4017
|
const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null";
|
|
4018
4018
|
let i = "null";
|
|
@@ -4082,19 +4082,19 @@ r.forBlock.query_extra_sortby_v1 = function(e) {
|
|
|
4082
4082
|
const t = r.valueToCode(e, "COLUMN", p.ATOMIC) || "''", n = r.valueToCode(e, "DESC", p.ATOMIC) || !1;
|
|
4083
4083
|
return [`{type:'sortby',value:${t},value2:${n}}`, p.ATOMIC];
|
|
4084
4084
|
};
|
|
4085
|
-
const
|
|
4085
|
+
const oh = {
|
|
4086
4086
|
init: function() {
|
|
4087
4087
|
this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
4088
4088
|
}
|
|
4089
4089
|
};
|
|
4090
|
-
U.select_column_container_v1 =
|
|
4091
|
-
const
|
|
4090
|
+
U.select_column_container_v1 = oh;
|
|
4091
|
+
const ih = {
|
|
4092
4092
|
init: function() {
|
|
4093
4093
|
this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
4094
4094
|
}
|
|
4095
4095
|
};
|
|
4096
|
-
U.select_column_item_v1 =
|
|
4097
|
-
const
|
|
4096
|
+
U.select_column_item_v1 = ih;
|
|
4097
|
+
const sh = {
|
|
4098
4098
|
init: function() {
|
|
4099
4099
|
this.space = {
|
|
4100
4100
|
id: "",
|
|
@@ -4283,7 +4283,7 @@ const ih = {
|
|
|
4283
4283
|
this.setWarningText(null);
|
|
4284
4284
|
}
|
|
4285
4285
|
};
|
|
4286
|
-
U.select_column_v1 =
|
|
4286
|
+
U.select_column_v1 = sh;
|
|
4287
4287
|
r.forBlock.select_column_v1 = function(e) {
|
|
4288
4288
|
const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
|
|
4289
4289
|
for (let c = 0; c < n.itemCount_; c++) {
|
|
@@ -4293,7 +4293,7 @@ r.forBlock.select_column_v1 = function(e) {
|
|
|
4293
4293
|
const a = JSON.stringify(s);
|
|
4294
4294
|
return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
|
|
4295
4295
|
};
|
|
4296
|
-
const
|
|
4296
|
+
const ah = {
|
|
4297
4297
|
init: function() {
|
|
4298
4298
|
this.space = {
|
|
4299
4299
|
id: "",
|
|
@@ -4389,24 +4389,24 @@ const sh = {
|
|
|
4389
4389
|
t.name !== this.table.name && (this.table.name = t.name), this.setWarningText(null);
|
|
4390
4390
|
}
|
|
4391
4391
|
};
|
|
4392
|
-
U.select_table_v1 =
|
|
4392
|
+
U.select_table_v1 = ah;
|
|
4393
4393
|
r.forBlock.select_table_v1 = function(e) {
|
|
4394
4394
|
const t = r.quote_, n = e, o = n.space.id, i = n.table.id;
|
|
4395
4395
|
return [`{spaceid:${t(o)},tableid:${t(i)}}`, p.ATOMIC];
|
|
4396
4396
|
};
|
|
4397
|
-
const
|
|
4397
|
+
const rh = {
|
|
4398
4398
|
init: function() {
|
|
4399
4399
|
this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
4400
4400
|
}
|
|
4401
4401
|
};
|
|
4402
|
-
U.update_column_container_v1 =
|
|
4403
|
-
const
|
|
4402
|
+
U.update_column_container_v1 = rh;
|
|
4403
|
+
const lh = {
|
|
4404
4404
|
init: function() {
|
|
4405
4405
|
this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
4406
4406
|
}
|
|
4407
4407
|
};
|
|
4408
|
-
U.update_column_item_v1 =
|
|
4409
|
-
const
|
|
4408
|
+
U.update_column_item_v1 = lh;
|
|
4409
|
+
const ch = {
|
|
4410
4410
|
init: function() {
|
|
4411
4411
|
this.space = {
|
|
4412
4412
|
id: "",
|
|
@@ -4614,7 +4614,7 @@ const lh = {
|
|
|
4614
4614
|
this.setWarningText(null);
|
|
4615
4615
|
}
|
|
4616
4616
|
};
|
|
4617
|
-
U.update_column_v1 =
|
|
4617
|
+
U.update_column_v1 = ch;
|
|
4618
4618
|
r.forBlock.update_column_v1 = function(e) {
|
|
4619
4619
|
const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
|
|
4620
4620
|
for (let c = 0; c < n.itemCount_; c++) {
|
|
@@ -4624,7 +4624,7 @@ r.forBlock.update_column_v1 = function(e) {
|
|
|
4624
4624
|
const a = JSON.stringify(s);
|
|
4625
4625
|
return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
|
|
4626
4626
|
};
|
|
4627
|
-
const
|
|
4627
|
+
const uh = {
|
|
4628
4628
|
init: function() {
|
|
4629
4629
|
this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_UPDATE_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_UPDATE_DATA_HELPURL}");
|
|
4630
4630
|
},
|
|
@@ -4647,7 +4647,7 @@ const ch = {
|
|
|
4647
4647
|
]);
|
|
4648
4648
|
}
|
|
4649
4649
|
};
|
|
4650
|
-
U.update_data_v1 =
|
|
4650
|
+
U.update_data_v1 = uh;
|
|
4651
4651
|
r.forBlock.update_data_v1 = function(e) {
|
|
4652
4652
|
const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null", i = r.statementToCode(e, "HANDLE");
|
|
4653
4653
|
return `{
|
|
@@ -4659,19 +4659,19 @@ ${t}var __data__ = res.data;
|
|
|
4659
4659
|
${i}}
|
|
4660
4660
|
`;
|
|
4661
4661
|
};
|
|
4662
|
-
const
|
|
4662
|
+
const ph = L.xml, _h = {
|
|
4663
4663
|
init: function() {
|
|
4664
4664
|
this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
|
|
4665
4665
|
}
|
|
4666
4666
|
};
|
|
4667
|
-
U.list_create_container_v1 =
|
|
4668
|
-
const
|
|
4667
|
+
U.list_create_container_v1 = _h;
|
|
4668
|
+
const dh = {
|
|
4669
4669
|
init: function() {
|
|
4670
4670
|
this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("list_blocks"), this.contextMenu = !1;
|
|
4671
4671
|
}
|
|
4672
4672
|
};
|
|
4673
|
-
U.list_create_item_v1 =
|
|
4674
|
-
const
|
|
4673
|
+
U.list_create_item_v1 = dh;
|
|
4674
|
+
const hh = {
|
|
4675
4675
|
init: function() {
|
|
4676
4676
|
this.itemCount_ = 0, this.setMutator(
|
|
4677
4677
|
new Wt.MutatorIcon(
|
|
@@ -4681,7 +4681,7 @@ const dh = {
|
|
|
4681
4681
|
), this.setOutput(!0, "Array"), this.setStyle("list_blocks"), this.setTooltip("%{BKY_LIST_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_LIST_V1_CREATE_HELPURL}");
|
|
4682
4682
|
},
|
|
4683
4683
|
mutationToDom: function() {
|
|
4684
|
-
const e =
|
|
4684
|
+
const e = ph.createElement("mutation");
|
|
4685
4685
|
return e.setAttribute("items", String(this.itemCount_)), e;
|
|
4686
4686
|
},
|
|
4687
4687
|
domToMutation: function(e) {
|
|
@@ -4755,7 +4755,7 @@ const dh = {
|
|
|
4755
4755
|
this.removeInput("ADD" + e);
|
|
4756
4756
|
}
|
|
4757
4757
|
};
|
|
4758
|
-
U.list_create_v1 =
|
|
4758
|
+
U.list_create_v1 = hh;
|
|
4759
4759
|
r.forBlock.list_create_v1 = function(e) {
|
|
4760
4760
|
const t = e, n = new Array(t.itemCount_);
|
|
4761
4761
|
for (let i = 0; i < t.itemCount_; i++)
|
|
@@ -4971,7 +4971,7 @@ r.forBlock.list_set_v1 = function(e) {
|
|
|
4971
4971
|
return `${t}[${n}] = ${o};
|
|
4972
4972
|
`;
|
|
4973
4973
|
};
|
|
4974
|
-
const
|
|
4974
|
+
const fh = {
|
|
4975
4975
|
// logic_compare
|
|
4976
4976
|
EQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_EQ}",
|
|
4977
4977
|
NEQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_NEQ}",
|
|
@@ -4985,7 +4985,7 @@ const hh = {
|
|
|
4985
4985
|
};
|
|
4986
4986
|
be.register(
|
|
4987
4987
|
"logic_op_tooltip_v1",
|
|
4988
|
-
be.buildTooltipForDropdown("OP",
|
|
4988
|
+
be.buildTooltipForDropdown("OP", fh)
|
|
4989
4989
|
);
|
|
4990
4990
|
C([
|
|
4991
4991
|
{
|
|
@@ -5010,7 +5010,7 @@ C([
|
|
|
5010
5010
|
r.forBlock.logic_boolean_v1 = function(e) {
|
|
5011
5011
|
return [e.getFieldValue("BOOL") === "TRUE" ? "true" : "false", p.ATOMIC];
|
|
5012
5012
|
};
|
|
5013
|
-
const
|
|
5013
|
+
const gh = {
|
|
5014
5014
|
onchange: function(e) {
|
|
5015
5015
|
this.prevBlocks_ || (this.prevBlocks_ = [null, null]);
|
|
5016
5016
|
const t = this.getInputTargetBlock("A"), n = this.getInputTargetBlock("B");
|
|
@@ -5030,7 +5030,7 @@ const fh = {
|
|
|
5030
5030
|
be.register(
|
|
5031
5031
|
"logic_compare_v1",
|
|
5032
5032
|
function() {
|
|
5033
|
-
this.mixin(
|
|
5033
|
+
this.mixin(gh);
|
|
5034
5034
|
}
|
|
5035
5035
|
);
|
|
5036
5036
|
C([
|
|
@@ -5080,7 +5080,7 @@ r.forBlock.logic_compare_v1 = function(e) {
|
|
|
5080
5080
|
const i = r.valueToCode(e, "A", o) || "0", s = r.valueToCode(e, "B", o) || "0";
|
|
5081
5081
|
return [`${i} ${n} ${s}`, o];
|
|
5082
5082
|
};
|
|
5083
|
-
const
|
|
5083
|
+
const mh = {
|
|
5084
5084
|
elseIfCount_: 0,
|
|
5085
5085
|
hasElse_: !1,
|
|
5086
5086
|
mutationToDom: function() {
|
|
@@ -5208,7 +5208,7 @@ const gh = {
|
|
|
5208
5208
|
};
|
|
5209
5209
|
be.registerMutator(
|
|
5210
5210
|
"logic_if_v1_mutator",
|
|
5211
|
-
|
|
5211
|
+
mh,
|
|
5212
5212
|
void 0,
|
|
5213
5213
|
["logic_if_else_if_v1", "logic_if_else_v1"]
|
|
5214
5214
|
);
|
|
@@ -5354,7 +5354,7 @@ r.forBlock.logic_operation_v1 = function(e) {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
return [`${o} ${t} ${i}`, n];
|
|
5356
5356
|
};
|
|
5357
|
-
const
|
|
5357
|
+
const Th = {
|
|
5358
5358
|
prevParentConnection_: null,
|
|
5359
5359
|
onchange: function(e) {
|
|
5360
5360
|
const t = this.getInputTargetBlock("THEN"), n = this.getInputTargetBlock("ELSE"), o = this.outputConnection.targetConnection;
|
|
@@ -5369,7 +5369,7 @@ const mh = {
|
|
|
5369
5369
|
this.prevParentConnection_ = o;
|
|
5370
5370
|
}
|
|
5371
5371
|
};
|
|
5372
|
-
be.registerMixin("logic_ternary_v1",
|
|
5372
|
+
be.registerMixin("logic_ternary_v1", Th);
|
|
5373
5373
|
C([
|
|
5374
5374
|
{
|
|
5375
5375
|
type: "logic_ternary_v1",
|
|
@@ -5406,7 +5406,7 @@ r.forBlock.logic_ternary_v1 = function(e) {
|
|
|
5406
5406
|
const t = r.valueToCode(e, "IF", p.CONDITIONAL) || "false", n = r.valueToCode(e, "THEN", p.CONDITIONAL) || "null", o = r.valueToCode(e, "ELSE", p.CONDITIONAL) || "null";
|
|
5407
5407
|
return [t + " ? " + n + " : " + o, p.CONDITIONAL];
|
|
5408
5408
|
};
|
|
5409
|
-
const
|
|
5409
|
+
const Eh = {
|
|
5410
5410
|
customContextMenu: function(e) {
|
|
5411
5411
|
if (this.isInFlyout)
|
|
5412
5412
|
return;
|
|
@@ -5428,7 +5428,7 @@ const Th = {
|
|
|
5428
5428
|
};
|
|
5429
5429
|
be.registerMixin(
|
|
5430
5430
|
"contextMenu_newGetVariableBlock_v1",
|
|
5431
|
-
|
|
5431
|
+
Eh
|
|
5432
5432
|
);
|
|
5433
5433
|
be.register(
|
|
5434
5434
|
"flow_control_tooltip_v1",
|
|
@@ -5437,16 +5437,16 @@ be.register(
|
|
|
5437
5437
|
CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
|
|
5438
5438
|
})
|
|
5439
5439
|
);
|
|
5440
|
-
const
|
|
5440
|
+
const Ah = /* @__PURE__ */ new Set([
|
|
5441
5441
|
"repeat_v1",
|
|
5442
5442
|
"for_each_v1",
|
|
5443
5443
|
"for_v1",
|
|
5444
5444
|
"while_until_v1"
|
|
5445
|
-
]),
|
|
5445
|
+
]), vh = {
|
|
5446
5446
|
getSurroundLoop: function() {
|
|
5447
5447
|
let e = this;
|
|
5448
5448
|
do {
|
|
5449
|
-
if (
|
|
5449
|
+
if (Ah.has(e.type))
|
|
5450
5450
|
return !0;
|
|
5451
5451
|
e = e == null ? void 0 : e.getSurroundParent();
|
|
5452
5452
|
} while (e);
|
|
@@ -5469,7 +5469,7 @@ const Eh = /* @__PURE__ */ new Set([
|
|
|
5469
5469
|
};
|
|
5470
5470
|
be.registerMixin(
|
|
5471
5471
|
"flow_control_in_loop_check_v1",
|
|
5472
|
-
|
|
5472
|
+
vh
|
|
5473
5473
|
);
|
|
5474
5474
|
C([
|
|
5475
5475
|
{
|
|
@@ -5634,7 +5634,7 @@ ${o}
|
|
|
5634
5634
|
}
|
|
5635
5635
|
`;
|
|
5636
5636
|
};
|
|
5637
|
-
const
|
|
5637
|
+
const Oh = {
|
|
5638
5638
|
// math_arithmetic
|
|
5639
5639
|
ADD: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_ADD}",
|
|
5640
5640
|
SUBTRACT: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_SUBTRACT}",
|
|
@@ -5668,7 +5668,7 @@ const vh = {
|
|
|
5668
5668
|
};
|
|
5669
5669
|
be.register(
|
|
5670
5670
|
"math_op_tooltip_v1",
|
|
5671
|
-
be.buildTooltipForDropdown("OP",
|
|
5671
|
+
be.buildTooltipForDropdown("OP", Oh)
|
|
5672
5672
|
);
|
|
5673
5673
|
C([
|
|
5674
5674
|
{
|
|
@@ -6271,21 +6271,21 @@ r.forBlock.math_trig_v1 = function(e) {
|
|
|
6271
6271
|
}
|
|
6272
6272
|
return [o, p.DIVISION];
|
|
6273
6273
|
};
|
|
6274
|
-
const
|
|
6274
|
+
const bh = L.xml, Ih = {
|
|
6275
6275
|
init: function() {
|
|
6276
6276
|
this.appendDummyInput().appendField(
|
|
6277
6277
|
"%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"
|
|
6278
6278
|
), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
6279
6279
|
}
|
|
6280
6280
|
};
|
|
6281
|
-
U.object_create_container_v1 =
|
|
6282
|
-
const
|
|
6281
|
+
U.object_create_container_v1 = Ih;
|
|
6282
|
+
const yh = {
|
|
6283
6283
|
init: function() {
|
|
6284
6284
|
this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
|
|
6285
6285
|
}
|
|
6286
6286
|
};
|
|
6287
|
-
U.object_create_item_v1 =
|
|
6288
|
-
const
|
|
6287
|
+
U.object_create_item_v1 = yh;
|
|
6288
|
+
const Ch = {
|
|
6289
6289
|
init: function() {
|
|
6290
6290
|
this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
|
|
6291
6291
|
new Wt.MutatorIcon(
|
|
@@ -6295,7 +6295,7 @@ const yh = {
|
|
|
6295
6295
|
), this.setOutput(!0, "Object"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_OBJECT_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_OBJECT_V1_CREATE_HELPURL}");
|
|
6296
6296
|
},
|
|
6297
6297
|
mutationToDom: function() {
|
|
6298
|
-
const e =
|
|
6298
|
+
const e = bh.createElement("mutation");
|
|
6299
6299
|
return e.setAttribute("items", String(this.itemCount_)), e;
|
|
6300
6300
|
},
|
|
6301
6301
|
domToMutation: function(e) {
|
|
@@ -6361,7 +6361,7 @@ const yh = {
|
|
|
6361
6361
|
this.removeInput("ADD" + e);
|
|
6362
6362
|
}
|
|
6363
6363
|
};
|
|
6364
|
-
U.object_create_v1 =
|
|
6364
|
+
U.object_create_v1 = Ch;
|
|
6365
6365
|
r.forBlock.object_create_v1 = function(e) {
|
|
6366
6366
|
const t = e;
|
|
6367
6367
|
let n = "{";
|
|
@@ -6619,13 +6619,13 @@ C([
|
|
|
6619
6619
|
r.forBlock.object_to_json_v1 = function(e) {
|
|
6620
6620
|
return [`__jsonStringifyV1__(${r.valueToCode(e, "OBJECT", p.NONE) || "null"})`, p.FUNCTION_CALL];
|
|
6621
6621
|
};
|
|
6622
|
-
const
|
|
6622
|
+
const sa = L.xml, Nh = {
|
|
6623
6623
|
init: function() {
|
|
6624
6624
|
this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new Yl(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
|
|
6625
6625
|
}
|
|
6626
6626
|
};
|
|
6627
|
-
U.procedure_def_container_v1 =
|
|
6628
|
-
const
|
|
6627
|
+
U.procedure_def_container_v1 = Nh;
|
|
6628
|
+
const kh = {
|
|
6629
6629
|
init: function() {
|
|
6630
6630
|
const e = new wo(Pi.DEFAULT_ARG);
|
|
6631
6631
|
e.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(e, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
|
|
@@ -6647,8 +6647,8 @@ const Nh = {
|
|
|
6647
6647
|
return e;
|
|
6648
6648
|
}
|
|
6649
6649
|
};
|
|
6650
|
-
U.procedure_def_item_v1 =
|
|
6651
|
-
const
|
|
6650
|
+
U.procedure_def_item_v1 = kh;
|
|
6651
|
+
const Lh = {
|
|
6652
6652
|
init: function() {
|
|
6653
6653
|
this.withReturn = !1, this.args = [];
|
|
6654
6654
|
const e = new wo(
|
|
@@ -6662,9 +6662,9 @@ const kh = {
|
|
|
6662
6662
|
), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_DEF_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_DEF_HELPURL}");
|
|
6663
6663
|
},
|
|
6664
6664
|
mutationToDom: function() {
|
|
6665
|
-
const e =
|
|
6665
|
+
const e = sa.createElement("mutation");
|
|
6666
6666
|
return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), this.args.forEach((t) => {
|
|
6667
|
-
const n =
|
|
6667
|
+
const n = sa.createElement("arg");
|
|
6668
6668
|
n.setAttribute("name", t.name), n.setAttribute("id", t.id), e.appendChild(n);
|
|
6669
6669
|
}), e;
|
|
6670
6670
|
},
|
|
@@ -6741,7 +6741,7 @@ const kh = {
|
|
|
6741
6741
|
o.setKeyName(`__param@${t.id}__`, t.name, !1);
|
|
6742
6742
|
else
|
|
6743
6743
|
try {
|
|
6744
|
-
w.disable(), o =
|
|
6744
|
+
w.disable(), o = ss(
|
|
6745
6745
|
this.workspace,
|
|
6746
6746
|
`__param@${t.id}__`,
|
|
6747
6747
|
t.name,
|
|
@@ -6753,13 +6753,13 @@ const kh = {
|
|
|
6753
6753
|
}
|
|
6754
6754
|
}
|
|
6755
6755
|
};
|
|
6756
|
-
U.procedure_def_v1 =
|
|
6757
|
-
const
|
|
6756
|
+
U.procedure_def_v1 = Lh;
|
|
6757
|
+
const Sh = L.xml, Bh = {
|
|
6758
6758
|
init: function() {
|
|
6759
6759
|
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}");
|
|
6760
6760
|
},
|
|
6761
6761
|
mutationToDom: function() {
|
|
6762
|
-
const e =
|
|
6762
|
+
const e = Sh.createElement("mutation");
|
|
6763
6763
|
return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), e;
|
|
6764
6764
|
},
|
|
6765
6765
|
domToMutation: function(e) {
|
|
@@ -6810,7 +6810,7 @@ const Lh = L.xml, Sh = {
|
|
|
6810
6810
|
e.type === "procedure_def_v1" || e.type === "func_entry_v1" ? this.setWarningText(null) : this.setWarningText("the block can only be used in procedure block");
|
|
6811
6811
|
}
|
|
6812
6812
|
};
|
|
6813
|
-
U.procedure_return_v1 =
|
|
6813
|
+
U.procedure_return_v1 = Bh;
|
|
6814
6814
|
r.forBlock.procedure_return_v1 = function(e) {
|
|
6815
6815
|
const t = e;
|
|
6816
6816
|
return t.withReturn ? `return ${r.valueToCode(t, "VALUE", p.NONE) || "null"};
|
|
@@ -6838,9 +6838,9 @@ C([
|
|
|
6838
6838
|
r.forBlock.text_v1 = function(e) {
|
|
6839
6839
|
return [r.quote_(e.getFieldValue("TEXT")), p.ATOMIC];
|
|
6840
6840
|
};
|
|
6841
|
-
const
|
|
6841
|
+
const Rh = /^\s*'([^']|\\')*'\s*$/;
|
|
6842
6842
|
function fo(e) {
|
|
6843
|
-
return
|
|
6843
|
+
return Rh.test(e) ? [e, p.ATOMIC] : [`String(${e})`, p.FUNCTION_CALL];
|
|
6844
6844
|
}
|
|
6845
6845
|
be.register(
|
|
6846
6846
|
"text_append_tooltip_v1",
|
|
@@ -6874,7 +6874,7 @@ r.forBlock.text_append_v1 = function(e) {
|
|
|
6874
6874
|
var o;
|
|
6875
6875
|
const t = (o = r.nameDB_) == null ? void 0 : o.getName(
|
|
6876
6876
|
e.getFieldValue("VAR"),
|
|
6877
|
-
|
|
6877
|
+
ts.NameType.VARIABLE
|
|
6878
6878
|
), n = r.valueToCode(e, "TEXT", p.NONE) || "''";
|
|
6879
6879
|
return `${t} += ${fo(n)};
|
|
6880
6880
|
`;
|
|
@@ -7045,10 +7045,10 @@ C([
|
|
|
7045
7045
|
r.forBlock.text_is_empty_v1 = function(e) {
|
|
7046
7046
|
return [`!${r.valueToCode(e, "VALUE", p.MEMBER) || "''"}.length`, p.LOGICAL_NOT];
|
|
7047
7047
|
};
|
|
7048
|
-
const
|
|
7048
|
+
const Dh = L.xml, Mh = {
|
|
7049
7049
|
itemCount_: 0,
|
|
7050
7050
|
mutationToDom: function() {
|
|
7051
|
-
const e =
|
|
7051
|
+
const e = Dh.createElement("mutation");
|
|
7052
7052
|
return e.setAttribute("items", `${this.itemCount_}`), e;
|
|
7053
7053
|
},
|
|
7054
7054
|
domToMutation: function(e) {
|
|
@@ -7120,13 +7120,13 @@ const Rh = L.xml, Dh = {
|
|
|
7120
7120
|
for (let e = this.itemCount_; this.getInput("ADD" + e); e++)
|
|
7121
7121
|
this.removeInput("ADD" + e);
|
|
7122
7122
|
}
|
|
7123
|
-
},
|
|
7123
|
+
}, Ph = function() {
|
|
7124
7124
|
this.itemCount_ = 2, this.updateShape_(), this.setMutator(new Wt.MutatorIcon(["text_join_item_v1"], this));
|
|
7125
7125
|
};
|
|
7126
7126
|
be.registerMutator(
|
|
7127
7127
|
"text_join_mutator_v1",
|
|
7128
|
-
|
|
7129
|
-
|
|
7128
|
+
Mh,
|
|
7129
|
+
Ph
|
|
7130
7130
|
);
|
|
7131
7131
|
C([
|
|
7132
7132
|
{
|
|
@@ -7358,7 +7358,7 @@ r.forBlock.text_trim_v1 = function(e) {
|
|
|
7358
7358
|
}[e.getFieldValue("MODE")];
|
|
7359
7359
|
return [`__trimV1__(${t}, ${o})`, p.ATOMIC];
|
|
7360
7360
|
};
|
|
7361
|
-
const
|
|
7361
|
+
const Uh = {
|
|
7362
7362
|
init: function() {
|
|
7363
7363
|
this.appendDummyInput().appendField("%{BKY_TIME_V1_CREATE_TIMER_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("time_blocks"), this.setTooltip("%{BKY_TIME_V1_CREATE_TIMER_TOOLTIP}"), this.setHelpUrl("%{BKY_TIME_V1_CREATE_TIMER_HELPURL}");
|
|
7364
7364
|
},
|
|
@@ -7384,7 +7384,7 @@ const Ph = {
|
|
|
7384
7384
|
));
|
|
7385
7385
|
}
|
|
7386
7386
|
};
|
|
7387
|
-
U.create_timer_v1 =
|
|
7387
|
+
U.create_timer_v1 = Uh;
|
|
7388
7388
|
r.forBlock.create_timer_v1 = function(e) {
|
|
7389
7389
|
const t = r.valueToCode(e, "INTERVAL", p.ATOMIC) || "1000", n = r.valueToCode(e, "LOOP", p.ATOMIC) || "false", o = r.valueToCode(e, "COUNT", p.ATOMIC) || "1", i = r.valueToCode(e, "IMMEDIATE", p.ATOMIC) || "false", s = r.statementToCode(e, "CALLBACK");
|
|
7390
7390
|
return `__createTimerV1__(${t}, ${n}, ${o}, ${i}, function() {
|
|
@@ -7413,18 +7413,18 @@ r.forBlock.delay_v1 = function(e) {
|
|
|
7413
7413
|
return `__delayV1__(${r.valueToCode(e, "DURATION", p.ATOMIC) || "0"});
|
|
7414
7414
|
`;
|
|
7415
7415
|
};
|
|
7416
|
-
const
|
|
7416
|
+
const xh = {
|
|
7417
7417
|
customContextMenu: function(e) {
|
|
7418
7418
|
if (this.isInFlyout) {
|
|
7419
7419
|
if (this.type === "variables_get_v1" || this.type === "variables_get_v1_reporter") {
|
|
7420
7420
|
const t = {
|
|
7421
7421
|
text: T.RENAME_VARIABLE,
|
|
7422
7422
|
enabled: !0,
|
|
7423
|
-
callback:
|
|
7423
|
+
callback: wh(this)
|
|
7424
7424
|
}, n = this.getField("VAR").getText(), o = {
|
|
7425
7425
|
text: T.DELETE_VARIABLE.replace("%1", n),
|
|
7426
7426
|
enabled: !0,
|
|
7427
|
-
callback:
|
|
7427
|
+
callback: Vh(this)
|
|
7428
7428
|
};
|
|
7429
7429
|
e.unshift(t), e.unshift(o);
|
|
7430
7430
|
}
|
|
@@ -7442,12 +7442,12 @@ const Uh = {
|
|
|
7442
7442
|
});
|
|
7443
7443
|
}
|
|
7444
7444
|
}
|
|
7445
|
-
},
|
|
7445
|
+
}, wh = function(e) {
|
|
7446
7446
|
return function() {
|
|
7447
7447
|
const t = e.workspace, o = e.getField("VAR").getVariable();
|
|
7448
7448
|
po.renameVariable(t, o);
|
|
7449
7449
|
};
|
|
7450
|
-
},
|
|
7450
|
+
}, Vh = function(e) {
|
|
7451
7451
|
return function() {
|
|
7452
7452
|
const t = e.workspace, o = e.getField("VAR").getVariable();
|
|
7453
7453
|
t.deleteVariableById(o.getId()), t.refreshToolboxSelection();
|
|
@@ -7455,7 +7455,7 @@ const Uh = {
|
|
|
7455
7455
|
};
|
|
7456
7456
|
be.registerMixin(
|
|
7457
7457
|
"context_menu_variable_v1",
|
|
7458
|
-
|
|
7458
|
+
xh
|
|
7459
7459
|
);
|
|
7460
7460
|
C([
|
|
7461
7461
|
{
|
|
@@ -7477,7 +7477,7 @@ C([
|
|
|
7477
7477
|
r.forBlock.variable_get_v1 = function(e) {
|
|
7478
7478
|
return [r.nameDB_.getName(
|
|
7479
7479
|
e.getFieldValue("VAR"),
|
|
7480
|
-
|
|
7480
|
+
ts.NameType.VARIABLE
|
|
7481
7481
|
), p.ATOMIC];
|
|
7482
7482
|
};
|
|
7483
7483
|
C([
|
|
@@ -7506,13 +7506,13 @@ C([
|
|
|
7506
7506
|
r.forBlock.variable_set_v1 = function(e) {
|
|
7507
7507
|
const t = r.nameDB_.getName(
|
|
7508
7508
|
e.getFieldValue("VAR"),
|
|
7509
|
-
|
|
7509
|
+
ts.NameType.VARIABLE
|
|
7510
7510
|
), n = r.valueToCode(e, "VALUE", p.ASSIGNMENT) || "0";
|
|
7511
7511
|
return `${t} = ${n};
|
|
7512
7512
|
`;
|
|
7513
7513
|
};
|
|
7514
7514
|
const Q = L.xml;
|
|
7515
|
-
function
|
|
7515
|
+
function Fh() {
|
|
7516
7516
|
const e = [];
|
|
7517
7517
|
if (En().length > 0) {
|
|
7518
7518
|
{
|
|
@@ -7664,9 +7664,9 @@ function Vh() {
|
|
|
7664
7664
|
}
|
|
7665
7665
|
const Co = {
|
|
7666
7666
|
name: "DATA_CATEGORY",
|
|
7667
|
-
callback:
|
|
7667
|
+
callback: Fh
|
|
7668
7668
|
}, tn = L.xml;
|
|
7669
|
-
function
|
|
7669
|
+
function Yh(e) {
|
|
7670
7670
|
const t = [];
|
|
7671
7671
|
if (e === "flow") {
|
|
7672
7672
|
{
|
|
@@ -7703,9 +7703,9 @@ function Fh(e) {
|
|
|
7703
7703
|
}
|
|
7704
7704
|
const No = {
|
|
7705
7705
|
name: "FLOW_CATEGORY",
|
|
7706
|
-
callback:
|
|
7706
|
+
callback: Yh
|
|
7707
7707
|
}, Et = L.xml;
|
|
7708
|
-
function
|
|
7708
|
+
function Kh(e) {
|
|
7709
7709
|
const { activeFunc: t } = V.compute, n = [];
|
|
7710
7710
|
if (e === "func") {
|
|
7711
7711
|
{
|
|
@@ -7754,13 +7754,13 @@ function Yh(e) {
|
|
|
7754
7754
|
}
|
|
7755
7755
|
const ko = {
|
|
7756
7756
|
name: "FUNC_CATEGORY",
|
|
7757
|
-
callback:
|
|
7757
|
+
callback: Kh
|
|
7758
7758
|
};
|
|
7759
7759
|
L.xml;
|
|
7760
7760
|
const cr = {
|
|
7761
7761
|
name: "INTERFACE_CATEGORY"
|
|
7762
7762
|
}, In = L.xml;
|
|
7763
|
-
function
|
|
7763
|
+
function Hh() {
|
|
7764
7764
|
const e = [];
|
|
7765
7765
|
{
|
|
7766
7766
|
const t = In.createElement("label");
|
|
@@ -7787,11 +7787,11 @@ function Kh() {
|
|
|
7787
7787
|
}
|
|
7788
7788
|
const Bt = {
|
|
7789
7789
|
name: "PROCEDURE_CATEGORY",
|
|
7790
|
-
callback:
|
|
7790
|
+
callback: Hh
|
|
7791
7791
|
}, ve = L.xml;
|
|
7792
|
-
function
|
|
7792
|
+
function $h() {
|
|
7793
7793
|
const e = [];
|
|
7794
|
-
if (
|
|
7794
|
+
if (Cd()) {
|
|
7795
7795
|
{
|
|
7796
7796
|
const t = ve.createElement("label");
|
|
7797
7797
|
t.setAttribute("text", T.LABEL_PAGE), e.push(t);
|
|
@@ -7801,7 +7801,7 @@ function Hh() {
|
|
|
7801
7801
|
t.setAttribute("type", "get_page_argument_v1"), e.push(t);
|
|
7802
7802
|
}
|
|
7803
7803
|
}
|
|
7804
|
-
if (
|
|
7804
|
+
if (Ed()) {
|
|
7805
7805
|
{
|
|
7806
7806
|
const t = ve.createElement("label");
|
|
7807
7807
|
t.setAttribute("text", T.LABEL_COMP), e.push(t);
|
|
@@ -7877,7 +7877,7 @@ function Hh() {
|
|
|
7877
7877
|
const t = ve.createElement("block");
|
|
7878
7878
|
t.setAttribute("type", "app_env_v1"), e.push(t);
|
|
7879
7879
|
}
|
|
7880
|
-
if (
|
|
7880
|
+
if (as().length > 0) {
|
|
7881
7881
|
const t = ve.createElement("block");
|
|
7882
7882
|
t.setAttribute("type", "navigate_to_v1"), e.push(t);
|
|
7883
7883
|
}
|
|
@@ -7885,9 +7885,9 @@ function Hh() {
|
|
|
7885
7885
|
}
|
|
7886
7886
|
const Lo = {
|
|
7887
7887
|
name: "UI_CATEGORY",
|
|
7888
|
-
callback:
|
|
7888
|
+
callback: $h
|
|
7889
7889
|
}, ao = L.xml;
|
|
7890
|
-
function
|
|
7890
|
+
function Gh() {
|
|
7891
7891
|
const e = Pt(), t = [];
|
|
7892
7892
|
{
|
|
7893
7893
|
const o = ao.createElement("label");
|
|
@@ -7925,7 +7925,7 @@ function $h() {
|
|
|
7925
7925
|
}
|
|
7926
7926
|
const Rt = {
|
|
7927
7927
|
name: "VARIABLE_CATEGORY",
|
|
7928
|
-
callback:
|
|
7928
|
+
callback: Gh
|
|
7929
7929
|
};
|
|
7930
7930
|
Ra.setConfirm(async (e, t) => {
|
|
7931
7931
|
const n = await Jl({
|
|
@@ -7954,7 +7954,7 @@ const ur = (e, t, n) => {
|
|
|
7954
7954
|
);
|
|
7955
7955
|
});
|
|
7956
7956
|
};
|
|
7957
|
-
async function
|
|
7957
|
+
async function aa(e) {
|
|
7958
7958
|
const t = await ur(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-lczwbzqt.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-ex70e44o.js") }), `./msg/${e}.ts`, 3);
|
|
7959
7959
|
Hl(t.default);
|
|
7960
7960
|
}
|
|
@@ -7979,7 +7979,7 @@ function _r() {
|
|
|
7979
7979
|
const t = (n = e.getTopBlocks(!0)) == null ? void 0 : n[0];
|
|
7980
7980
|
t && pr(t.id);
|
|
7981
7981
|
}
|
|
7982
|
-
class
|
|
7982
|
+
class jh {
|
|
7983
7983
|
init({ contextMenu: t = !0, shortcut: n = !0 } = {
|
|
7984
7984
|
contextMenu: !0,
|
|
7985
7985
|
shortcut: !0
|
|
@@ -8032,7 +8032,7 @@ class Gh {
|
|
|
8032
8032
|
if (!o)
|
|
8033
8033
|
return;
|
|
8034
8034
|
const i = JSON.parse(o);
|
|
8035
|
-
i && n.workspace &&
|
|
8035
|
+
i && n.workspace && ks.paste(i, n.workspace);
|
|
8036
8036
|
},
|
|
8037
8037
|
scopeType: rn.ScopeType.WORKSPACE,
|
|
8038
8038
|
id: "blockPasteFromStorage",
|
|
@@ -8127,14 +8127,14 @@ class Gh {
|
|
|
8127
8127
|
if (!l)
|
|
8128
8128
|
return !1;
|
|
8129
8129
|
const c = JSON.parse(l);
|
|
8130
|
-
return c ? (
|
|
8130
|
+
return c ? (ks.paste(c, s), !0) : !1;
|
|
8131
8131
|
},
|
|
8132
8132
|
keyCodes: [t, n, o]
|
|
8133
8133
|
};
|
|
8134
8134
|
Fe.registry.register(i);
|
|
8135
8135
|
}
|
|
8136
8136
|
}
|
|
8137
|
-
class
|
|
8137
|
+
class Wh {
|
|
8138
8138
|
init() {
|
|
8139
8139
|
const t = rn.registry.getItem("cleanWorkspace");
|
|
8140
8140
|
t && (t.callback = function(n) {
|
|
@@ -8158,7 +8158,7 @@ function dr(e) {
|
|
|
8158
8158
|
const t = e.getParent();
|
|
8159
8159
|
return t && dr(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
|
|
8160
8160
|
}
|
|
8161
|
-
class
|
|
8161
|
+
class Xh {
|
|
8162
8162
|
init() {
|
|
8163
8163
|
const t = rn.registry.getItem("blockDisable");
|
|
8164
8164
|
t && (t.preconditionFn = function(n) {
|
|
@@ -9012,17 +9012,17 @@ Gl.register(`
|
|
|
9012
9012
|
position: relative;
|
|
9013
9013
|
}
|
|
9014
9014
|
`);
|
|
9015
|
-
function
|
|
9015
|
+
function zh() {
|
|
9016
9016
|
jl.register("field_colour", hr);
|
|
9017
9017
|
}
|
|
9018
9018
|
Fe.registry.unregister(_o.names.ESCAPE);
|
|
9019
|
-
const zh = new Gh();
|
|
9020
|
-
zh.init({ contextMenu: !0, shortcut: !0 });
|
|
9021
9019
|
const qh = new jh();
|
|
9022
|
-
qh.init();
|
|
9020
|
+
qh.init({ contextMenu: !0, shortcut: !0 });
|
|
9023
9021
|
const Jh = new Wh();
|
|
9024
9022
|
Jh.init();
|
|
9025
|
-
Xh();
|
|
9023
|
+
const Qh = new Xh();
|
|
9024
|
+
Qh.init();
|
|
9025
|
+
zh();
|
|
9026
9026
|
Vo.Classic.blockStyles = {
|
|
9027
9027
|
color_blocks: {
|
|
9028
9028
|
colourPrimary: "#a5745b",
|
|
@@ -9153,7 +9153,7 @@ Vo.Classic.categoryStyles = {
|
|
|
9153
9153
|
colour: "#a55b80"
|
|
9154
9154
|
}
|
|
9155
9155
|
};
|
|
9156
|
-
const
|
|
9156
|
+
const Zh = Da.defineTheme("light", {
|
|
9157
9157
|
name: "light",
|
|
9158
9158
|
base: Vo.Classic,
|
|
9159
9159
|
componentStyles: {
|
|
@@ -9169,7 +9169,7 @@ const Qh = Da.defineTheme("light", {
|
|
|
9169
9169
|
scrollbarOpacity: 0.4,
|
|
9170
9170
|
cursorColour: ""
|
|
9171
9171
|
}
|
|
9172
|
-
}),
|
|
9172
|
+
}), ef = Da.defineTheme("dark", {
|
|
9173
9173
|
name: "dark",
|
|
9174
9174
|
base: Vo.Classic,
|
|
9175
9175
|
componentStyles: {
|
|
@@ -9186,14 +9186,14 @@ const Qh = Da.defineTheme("light", {
|
|
|
9186
9186
|
cursorColour: ""
|
|
9187
9187
|
}
|
|
9188
9188
|
});
|
|
9189
|
-
function
|
|
9189
|
+
function tf(e) {
|
|
9190
9190
|
const t = Pt();
|
|
9191
9191
|
switch (e) {
|
|
9192
9192
|
case "light":
|
|
9193
|
-
t.setTheme(
|
|
9193
|
+
t.setTheme(Zh);
|
|
9194
9194
|
break;
|
|
9195
9195
|
case "dark":
|
|
9196
|
-
t.setTheme(
|
|
9196
|
+
t.setTheme(ef);
|
|
9197
9197
|
break;
|
|
9198
9198
|
}
|
|
9199
9199
|
}
|
|
@@ -9896,7 +9896,7 @@ const Xo = {
|
|
|
9896
9896
|
}
|
|
9897
9897
|
}
|
|
9898
9898
|
]
|
|
9899
|
-
},
|
|
9899
|
+
}, nf = {
|
|
9900
9900
|
kind: "categoryToolbox",
|
|
9901
9901
|
contents: [
|
|
9902
9902
|
{
|
|
@@ -9933,7 +9933,7 @@ const Xo = {
|
|
|
9933
9933
|
custom: cr.name
|
|
9934
9934
|
}
|
|
9935
9935
|
]
|
|
9936
|
-
},
|
|
9936
|
+
}, of = {
|
|
9937
9937
|
kind: "categoryToolbox",
|
|
9938
9938
|
contents: [
|
|
9939
9939
|
{
|
|
@@ -9974,7 +9974,7 @@ const Xo = {
|
|
|
9974
9974
|
custom: Bt.name
|
|
9975
9975
|
}
|
|
9976
9976
|
]
|
|
9977
|
-
},
|
|
9977
|
+
}, sf = {
|
|
9978
9978
|
kind: "categoryToolbox",
|
|
9979
9979
|
contents: [
|
|
9980
9980
|
{
|
|
@@ -10015,7 +10015,7 @@ const Xo = {
|
|
|
10015
10015
|
custom: Bt.name
|
|
10016
10016
|
}
|
|
10017
10017
|
]
|
|
10018
|
-
},
|
|
10018
|
+
}, af = {
|
|
10019
10019
|
kind: "categoryToolbox",
|
|
10020
10020
|
contents: [
|
|
10021
10021
|
{
|
|
@@ -10052,7 +10052,7 @@ const Xo = {
|
|
|
10052
10052
|
custom: cr.name
|
|
10053
10053
|
}
|
|
10054
10054
|
]
|
|
10055
|
-
},
|
|
10055
|
+
}, rf = /* @__PURE__ */ ft({
|
|
10056
10056
|
__name: "index",
|
|
10057
10057
|
props: {
|
|
10058
10058
|
lock: { type: Boolean }
|
|
@@ -10079,7 +10079,7 @@ const Xo = {
|
|
|
10079
10079
|
Oe(a, es(c, {
|
|
10080
10080
|
variant: "outlined",
|
|
10081
10081
|
density: "comfortable",
|
|
10082
|
-
icon: W(
|
|
10082
|
+
icon: W(nc),
|
|
10083
10083
|
onClick: s[0] || (s[0] = (_) => W(ut).emit("cleanWorkspace"))
|
|
10084
10084
|
}), null, 16, ["icon"])
|
|
10085
10085
|
]),
|
|
@@ -10087,7 +10087,7 @@ const Xo = {
|
|
|
10087
10087
|
}, 8, ["text"]);
|
|
10088
10088
|
};
|
|
10089
10089
|
}
|
|
10090
|
-
}),
|
|
10090
|
+
}), lf = /* @__PURE__ */ ft({
|
|
10091
10091
|
__name: "index",
|
|
10092
10092
|
props: {
|
|
10093
10093
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -10105,7 +10105,7 @@ const Xo = {
|
|
|
10105
10105
|
Oe(s, es(l, {
|
|
10106
10106
|
variant: "outlined",
|
|
10107
10107
|
density: "comfortable",
|
|
10108
|
-
icon: n.value ? W(
|
|
10108
|
+
icon: n.value ? W(sc) : W(ac),
|
|
10109
10109
|
onClick: i[0] || (i[0] = (c) => n.value = !n.value)
|
|
10110
10110
|
}), null, 16, ["icon"])
|
|
10111
10111
|
]),
|
|
@@ -10114,12 +10114,12 @@ const Xo = {
|
|
|
10114
10114
|
};
|
|
10115
10115
|
}
|
|
10116
10116
|
});
|
|
10117
|
-
var
|
|
10117
|
+
var cf = Object.defineProperty, So = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, ra = (e, t, n) => t in e ? cf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ln = (e, t) => {
|
|
10118
10118
|
for (var n in t || (t = {}))
|
|
10119
|
-
mr.call(t, n) &&
|
|
10119
|
+
mr.call(t, n) && ra(e, n, t[n]);
|
|
10120
10120
|
if (So)
|
|
10121
10121
|
for (var n of So(t))
|
|
10122
|
-
Tr.call(t, n) &&
|
|
10122
|
+
Tr.call(t, n) && ra(e, n, t[n]);
|
|
10123
10123
|
return e;
|
|
10124
10124
|
}, Er = (e, t) => {
|
|
10125
10125
|
var n = {};
|
|
@@ -10131,76 +10131,76 @@ var lf = Object.defineProperty, So = Object.getOwnPropertySymbols, mr = Object.p
|
|
|
10131
10131
|
return n;
|
|
10132
10132
|
};
|
|
10133
10133
|
const Ar = "[vue-draggable-plus]: ";
|
|
10134
|
-
function
|
|
10134
|
+
function uf(e) {
|
|
10135
10135
|
console.warn(Ar + e);
|
|
10136
10136
|
}
|
|
10137
|
-
function
|
|
10137
|
+
function pf(e) {
|
|
10138
10138
|
console.error(Ar + e);
|
|
10139
10139
|
}
|
|
10140
|
-
function
|
|
10140
|
+
function la(e, t, n) {
|
|
10141
10141
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
10142
10142
|
}
|
|
10143
|
-
function
|
|
10143
|
+
function _f(e) {
|
|
10144
10144
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
10145
10145
|
}
|
|
10146
|
-
function
|
|
10147
|
-
return Object.keys(e).reduce((t, n) => (typeof e[n] < "u" && (t[
|
|
10146
|
+
function df(e) {
|
|
10147
|
+
return Object.keys(e).reduce((t, n) => (typeof e[n] < "u" && (t[_f(n)] = e[n]), t), {});
|
|
10148
10148
|
}
|
|
10149
|
-
function
|
|
10149
|
+
function ca(e, t) {
|
|
10150
10150
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
10151
10151
|
}
|
|
10152
|
-
function
|
|
10152
|
+
function ua(e, t, n) {
|
|
10153
10153
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
10154
10154
|
}
|
|
10155
|
-
function
|
|
10155
|
+
function hf(e) {
|
|
10156
10156
|
return typeof e > "u";
|
|
10157
10157
|
}
|
|
10158
|
-
function
|
|
10158
|
+
function ff(e) {
|
|
10159
10159
|
return typeof e == "string";
|
|
10160
10160
|
}
|
|
10161
|
-
function
|
|
10161
|
+
function pa(e, t, n) {
|
|
10162
10162
|
const o = e.children[n];
|
|
10163
10163
|
e.insertBefore(t, o);
|
|
10164
10164
|
}
|
|
10165
10165
|
function vi(e) {
|
|
10166
10166
|
e.parentNode && e.parentNode.removeChild(e);
|
|
10167
10167
|
}
|
|
10168
|
-
function
|
|
10168
|
+
function gf(e, t = document) {
|
|
10169
10169
|
var n;
|
|
10170
10170
|
let o = null;
|
|
10171
|
-
return typeof (t == null ? void 0 : t.querySelector) == "function" ? o = (n = t == null ? void 0 : t.querySelector) == null ? void 0 : n.call(t, e) : o = document.querySelector(e), o ||
|
|
10171
|
+
return typeof (t == null ? void 0 : t.querySelector) == "function" ? o = (n = t == null ? void 0 : t.querySelector) == null ? void 0 : n.call(t, e) : o = document.querySelector(e), o || uf(`Element not found: ${e}`), o;
|
|
10172
10172
|
}
|
|
10173
|
-
function
|
|
10173
|
+
function mf(e, t, n = null) {
|
|
10174
10174
|
return function(...o) {
|
|
10175
10175
|
return e.apply(n, o), t.apply(n, o);
|
|
10176
10176
|
};
|
|
10177
10177
|
}
|
|
10178
|
-
function
|
|
10178
|
+
function Tf(e, t) {
|
|
10179
10179
|
const n = ln({}, e);
|
|
10180
10180
|
return Object.keys(t).forEach((o) => {
|
|
10181
|
-
n[o] ? n[o] =
|
|
10181
|
+
n[o] ? n[o] = mf(e[o], t[o]) : n[o] = t[o];
|
|
10182
10182
|
}), n;
|
|
10183
10183
|
}
|
|
10184
|
-
function
|
|
10184
|
+
function Ef(e) {
|
|
10185
10185
|
return e instanceof HTMLElement;
|
|
10186
10186
|
}
|
|
10187
|
-
function
|
|
10187
|
+
function _a(e, t) {
|
|
10188
10188
|
Object.keys(e).forEach((n) => {
|
|
10189
10189
|
t(n, e[n]);
|
|
10190
10190
|
});
|
|
10191
10191
|
}
|
|
10192
|
-
function
|
|
10192
|
+
function Af(e) {
|
|
10193
10193
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
10194
10194
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
10195
10195
|
}
|
|
10196
|
-
const
|
|
10196
|
+
const vf = Object.assign;
|
|
10197
10197
|
/**!
|
|
10198
10198
|
* Sortable 1.15.2
|
|
10199
10199
|
* @author RubaXa <trash@rubaxa.org>
|
|
10200
10200
|
* @author owenm <owen23355@gmail.com>
|
|
10201
10201
|
* @license MIT
|
|
10202
10202
|
*/
|
|
10203
|
-
function
|
|
10203
|
+
function da(e, t) {
|
|
10204
10204
|
var n = Object.keys(e);
|
|
10205
10205
|
if (Object.getOwnPropertySymbols) {
|
|
10206
10206
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -10213,9 +10213,9 @@ function ha(e, t) {
|
|
|
10213
10213
|
function ht(e) {
|
|
10214
10214
|
for (var t = 1; t < arguments.length; t++) {
|
|
10215
10215
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
10216
|
-
t % 2 ?
|
|
10217
|
-
|
|
10218
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
10216
|
+
t % 2 ? da(Object(n), !0).forEach(function(o) {
|
|
10217
|
+
Of(e, o, n[o]);
|
|
10218
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : da(Object(n)).forEach(function(o) {
|
|
10219
10219
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
10220
10220
|
});
|
|
10221
10221
|
}
|
|
@@ -10229,7 +10229,7 @@ function go(e) {
|
|
|
10229
10229
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
10230
10230
|
}, go(e);
|
|
10231
10231
|
}
|
|
10232
|
-
function
|
|
10232
|
+
function Of(e, t, n) {
|
|
10233
10233
|
return t in e ? Object.defineProperty(e, t, {
|
|
10234
10234
|
value: n,
|
|
10235
10235
|
enumerable: !0,
|
|
@@ -10247,7 +10247,7 @@ function bt() {
|
|
|
10247
10247
|
return e;
|
|
10248
10248
|
}, bt.apply(this, arguments);
|
|
10249
10249
|
}
|
|
10250
|
-
function
|
|
10250
|
+
function bf(e, t) {
|
|
10251
10251
|
if (e == null)
|
|
10252
10252
|
return {};
|
|
10253
10253
|
var n = {}, o = Object.keys(e), i, s;
|
|
@@ -10255,10 +10255,10 @@ function Of(e, t) {
|
|
|
10255
10255
|
i = o[s], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
10256
10256
|
return n;
|
|
10257
10257
|
}
|
|
10258
|
-
function
|
|
10258
|
+
function If(e, t) {
|
|
10259
10259
|
if (e == null)
|
|
10260
10260
|
return {};
|
|
10261
|
-
var n =
|
|
10261
|
+
var n = bf(e, t), o, i;
|
|
10262
10262
|
if (Object.getOwnPropertySymbols) {
|
|
10263
10263
|
var s = Object.getOwnPropertySymbols(e);
|
|
10264
10264
|
for (i = 0; i < s.length; i++)
|
|
@@ -10266,19 +10266,19 @@ function bf(e, t) {
|
|
|
10266
10266
|
}
|
|
10267
10267
|
return n;
|
|
10268
10268
|
}
|
|
10269
|
-
var
|
|
10269
|
+
var yf = "1.15.2";
|
|
10270
10270
|
function vt(e) {
|
|
10271
10271
|
if (typeof window < "u" && window.navigator)
|
|
10272
10272
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
10273
10273
|
}
|
|
10274
|
-
var yt = vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), jn = vt(/Edge/i),
|
|
10274
|
+
var yt = vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), jn = vt(/Edge/i), ha = vt(/firefox/i), Bn = vt(/safari/i) && !vt(/chrome/i) && !vt(/android/i), vr = vt(/iP(ad|od|hone)/i), Or = vt(/chrome/i) && vt(/android/i), br = {
|
|
10275
10275
|
capture: !1,
|
|
10276
10276
|
passive: !1
|
|
10277
10277
|
};
|
|
10278
|
-
function
|
|
10278
|
+
function ne(e, t, n) {
|
|
10279
10279
|
e.addEventListener(t, n, !yt && br);
|
|
10280
10280
|
}
|
|
10281
|
-
function
|
|
10281
|
+
function ee(e, t, n) {
|
|
10282
10282
|
e.removeEventListener(t, n, !yt && br);
|
|
10283
10283
|
}
|
|
10284
10284
|
function Bo(e, t) {
|
|
@@ -10297,7 +10297,7 @@ function Bo(e, t) {
|
|
|
10297
10297
|
return !1;
|
|
10298
10298
|
}
|
|
10299
10299
|
}
|
|
10300
|
-
function
|
|
10300
|
+
function Cf(e) {
|
|
10301
10301
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
10302
10302
|
}
|
|
10303
10303
|
function ot(e, t, n, o) {
|
|
@@ -10308,18 +10308,18 @@ function ot(e, t, n, o) {
|
|
|
10308
10308
|
return e;
|
|
10309
10309
|
if (e === n)
|
|
10310
10310
|
break;
|
|
10311
|
-
} while (e =
|
|
10311
|
+
} while (e = Cf(e));
|
|
10312
10312
|
}
|
|
10313
10313
|
return null;
|
|
10314
10314
|
}
|
|
10315
|
-
var
|
|
10315
|
+
var fa = /\s+/g;
|
|
10316
10316
|
function ze(e, t, n) {
|
|
10317
10317
|
if (e && t)
|
|
10318
10318
|
if (e.classList)
|
|
10319
10319
|
e.classList[n ? "add" : "remove"](t);
|
|
10320
10320
|
else {
|
|
10321
|
-
var o = (" " + e.className + " ").replace(
|
|
10322
|
-
e.className = (o + (n ? " " + t : "")).replace(
|
|
10321
|
+
var o = (" " + e.className + " ").replace(fa, " ").replace(" " + t + " ", " ");
|
|
10322
|
+
e.className = (o + (n ? " " + t : "")).replace(fa, " ");
|
|
10323
10323
|
}
|
|
10324
10324
|
}
|
|
10325
10325
|
function M(e, t, n) {
|
|
@@ -10381,7 +10381,7 @@ function Ce(e, t, n, o, i) {
|
|
|
10381
10381
|
};
|
|
10382
10382
|
}
|
|
10383
10383
|
}
|
|
10384
|
-
function
|
|
10384
|
+
function ga(e, t, n) {
|
|
10385
10385
|
for (var o = Dt(e, !0), i = Ce(e)[t]; o; ) {
|
|
10386
10386
|
var s = Ce(o)[n], a = void 0;
|
|
10387
10387
|
if (a = i >= s, !a)
|
|
@@ -10403,7 +10403,7 @@ function mn(e, t, n, o) {
|
|
|
10403
10403
|
}
|
|
10404
10404
|
return null;
|
|
10405
10405
|
}
|
|
10406
|
-
function
|
|
10406
|
+
function ls(e, t) {
|
|
10407
10407
|
for (var n = e.lastElementChild; n && (n === P.ghost || M(n, "display") === "none" || t && !Bo(n, t)); )
|
|
10408
10408
|
n = n.previousElementSibling;
|
|
10409
10409
|
return n || null;
|
|
@@ -10416,7 +10416,7 @@ function Qe(e, t) {
|
|
|
10416
10416
|
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== P.clone && (!t || Bo(e, t)) && n++;
|
|
10417
10417
|
return n;
|
|
10418
10418
|
}
|
|
10419
|
-
function
|
|
10419
|
+
function ma(e) {
|
|
10420
10420
|
var t = 0, n = 0, o = dt();
|
|
10421
10421
|
if (e)
|
|
10422
10422
|
do {
|
|
@@ -10425,7 +10425,7 @@ function Ta(e) {
|
|
|
10425
10425
|
} while (e !== o && (e = e.parentNode));
|
|
10426
10426
|
return [t, n];
|
|
10427
10427
|
}
|
|
10428
|
-
function
|
|
10428
|
+
function Nf(e, t) {
|
|
10429
10429
|
for (var n in e)
|
|
10430
10430
|
if (e.hasOwnProperty(n)) {
|
|
10431
10431
|
for (var o in t)
|
|
@@ -10452,7 +10452,7 @@ function Dt(e, t) {
|
|
|
10452
10452
|
while (n = n.parentNode);
|
|
10453
10453
|
return dt();
|
|
10454
10454
|
}
|
|
10455
|
-
function
|
|
10455
|
+
function kf(e, t) {
|
|
10456
10456
|
if (e && t)
|
|
10457
10457
|
for (var n in t)
|
|
10458
10458
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
@@ -10472,7 +10472,7 @@ function yr(e, t) {
|
|
|
10472
10472
|
}
|
|
10473
10473
|
};
|
|
10474
10474
|
}
|
|
10475
|
-
function
|
|
10475
|
+
function Lf() {
|
|
10476
10476
|
clearTimeout(Rn), Rn = void 0;
|
|
10477
10477
|
}
|
|
10478
10478
|
function Cr(e, t, n) {
|
|
@@ -10493,7 +10493,7 @@ function kr(e, t, n) {
|
|
|
10493
10493
|
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
10494
10494
|
}
|
|
10495
10495
|
var Je = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
10496
|
-
function
|
|
10496
|
+
function Sf() {
|
|
10497
10497
|
var e = [], t;
|
|
10498
10498
|
return {
|
|
10499
10499
|
captureAnimationState: function() {
|
|
@@ -10519,7 +10519,7 @@ function Lf() {
|
|
|
10519
10519
|
e.push(n);
|
|
10520
10520
|
},
|
|
10521
10521
|
removeAnimationState: function(n) {
|
|
10522
|
-
e.splice(
|
|
10522
|
+
e.splice(Nf(e, {
|
|
10523
10523
|
target: n
|
|
10524
10524
|
}), 1);
|
|
10525
10525
|
},
|
|
@@ -10533,7 +10533,7 @@ function Lf() {
|
|
|
10533
10533
|
e.forEach(function(a) {
|
|
10534
10534
|
var l = 0, c = a.target, _ = c.fromRect, h = Ce(c), d = c.prevFromRect, g = c.prevToRect, m = a.rect, I = _n(c, !0);
|
|
10535
10535
|
I && (h.top -= I.f, h.left -= I.e), c.toRect = h, c.thisAnimationDuration && Oi(d, h) && !Oi(_, h) && // Make sure animatingRect is on line between toRect & fromRect
|
|
10536
|
-
(m.top - h.top) / (m.left - h.left) === (_.top - h.top) / (_.left - h.left) && (l =
|
|
10536
|
+
(m.top - h.top) / (m.left - h.left) === (_.top - h.top) / (_.left - h.left) && (l = Rf(m, d, g, o.options)), Oi(h, _) || (c.prevFromRect = _, c.prevToRect = h, l || (l = o.options.animation), o.animate(c, m, h, l)), l && (i = !0, s = Math.max(s, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
10537
10537
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
10538
10538
|
}, l), c.thisAnimationDuration = l);
|
|
10539
10539
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -10544,17 +10544,17 @@ function Lf() {
|
|
|
10544
10544
|
if (s) {
|
|
10545
10545
|
M(n, "transition", ""), M(n, "transform", "");
|
|
10546
10546
|
var a = _n(this.el), l = a && a.a, c = a && a.d, _ = (o.left - i.left) / (l || 1), h = (o.top - i.top) / (c || 1);
|
|
10547
|
-
n.animatingX = !!_, n.animatingY = !!h, M(n, "transform", "translate3d(" + _ + "px," + h + "px,0)"), this.forRepaintDummy =
|
|
10547
|
+
n.animatingX = !!_, n.animatingY = !!h, M(n, "transform", "translate3d(" + _ + "px," + h + "px,0)"), this.forRepaintDummy = Bf(n), M(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), M(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
10548
10548
|
M(n, "transition", ""), M(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
10549
10549
|
}, s);
|
|
10550
10550
|
}
|
|
10551
10551
|
}
|
|
10552
10552
|
};
|
|
10553
10553
|
}
|
|
10554
|
-
function
|
|
10554
|
+
function Bf(e) {
|
|
10555
10555
|
return e.offsetWidth;
|
|
10556
10556
|
}
|
|
10557
|
-
function
|
|
10557
|
+
function Rf(e, t, n, o) {
|
|
10558
10558
|
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;
|
|
10559
10559
|
}
|
|
10560
10560
|
var nn = [], bi = {
|
|
@@ -10609,7 +10609,7 @@ var nn = [], bi = {
|
|
|
10609
10609
|
}), o;
|
|
10610
10610
|
}
|
|
10611
10611
|
};
|
|
10612
|
-
function
|
|
10612
|
+
function Df(e) {
|
|
10613
10613
|
var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, l = e.fromEl, c = e.oldIndex, _ = e.newIndex, h = e.oldDraggableIndex, d = e.newDraggableIndex, g = e.originalEvent, m = e.putSortable, I = e.extraEventProperties;
|
|
10614
10614
|
if (t = t || n && n[Je], !!t) {
|
|
10615
10615
|
var v, G = t.options, D = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
@@ -10618,13 +10618,13 @@ function Rf(e) {
|
|
|
10618
10618
|
cancelable: !0
|
|
10619
10619
|
}) : (v = document.createEvent("Event"), v.initEvent(o, !0, !0)), v.to = a || n, v.from = l || n, v.item = i || n, v.clone = s, v.oldIndex = c, v.newIndex = _, v.oldDraggableIndex = h, v.newDraggableIndex = d, v.originalEvent = g, v.pullMode = m ? m.lastPutMode : void 0;
|
|
10620
10620
|
var X = ht(ht({}, I), Wn.getEventProperties(o, t));
|
|
10621
|
-
for (var
|
|
10622
|
-
v[
|
|
10621
|
+
for (var te in X)
|
|
10622
|
+
v[te] = X[te];
|
|
10623
10623
|
n && n.dispatchEvent(v), G[D] && G[D].call(t, v);
|
|
10624
10624
|
}
|
|
10625
10625
|
}
|
|
10626
|
-
var
|
|
10627
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i =
|
|
10626
|
+
var Mf = ["evt"], Ge = function(e, t) {
|
|
10627
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = If(n, Mf);
|
|
10628
10628
|
Wn.pluginEvent.bind(P)(e, t, ht({
|
|
10629
10629
|
dragEl: A,
|
|
10630
10630
|
parentEl: he,
|
|
@@ -10660,7 +10660,7 @@ var Df = ["evt"], Ge = function(e, t) {
|
|
|
10660
10660
|
}, i));
|
|
10661
10661
|
};
|
|
10662
10662
|
function He(e) {
|
|
10663
|
-
|
|
10663
|
+
Df(ht({
|
|
10664
10664
|
putSortable: Pe,
|
|
10665
10665
|
cloneEl: de,
|
|
10666
10666
|
targetEl: A,
|
|
@@ -10671,7 +10671,7 @@ function He(e) {
|
|
|
10671
10671
|
newDraggableIndex: kt
|
|
10672
10672
|
}, e));
|
|
10673
10673
|
}
|
|
10674
|
-
var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Ro = !1, Do = [], Yt, nt, Ii, yi,
|
|
10674
|
+
var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Ro = !1, Do = [], Yt, nt, Ii, yi, Ta, Ea, yn, on, Mn, Pn = !1, lo = !1, To, Ve, Ci = [], Xi = !1, Mo = [], ti = typeof document < "u", co = vr, Aa = jn || yt ? "cssFloat" : "float", Pf = ti && !Or && !vr && "draggable" in document.createElement("div"), Lr = function() {
|
|
10675
10675
|
if (ti) {
|
|
10676
10676
|
if (yt)
|
|
10677
10677
|
return !1;
|
|
@@ -10688,15 +10688,15 @@ var A, he, K, pe, Ht, mo, de, St, cn, qe, Dn, kt, ro, Pe, an = !1, Ro = !1, Do =
|
|
|
10688
10688
|
var h = a.float === "left" ? "left" : "right";
|
|
10689
10689
|
return s && (l.clear === "both" || l.clear === h) ? "vertical" : "horizontal";
|
|
10690
10690
|
}
|
|
10691
|
-
return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= o && n[
|
|
10692
|
-
},
|
|
10691
|
+
return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= o && n[Aa] === "none" || s && n[Aa] === "none" && c + _ > o) ? "vertical" : "horizontal";
|
|
10692
|
+
}, Uf = function(e, t, n) {
|
|
10693
10693
|
var o = n ? e.left : e.top, i = n ? e.right : e.bottom, s = n ? e.width : e.height, a = n ? t.left : t.top, l = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
10694
10694
|
return o === a || i === l || o + s / 2 === a + c / 2;
|
|
10695
|
-
},
|
|
10695
|
+
}, xf = function(e, t) {
|
|
10696
10696
|
var n;
|
|
10697
10697
|
return Do.some(function(o) {
|
|
10698
10698
|
var i = o[Je].options.emptyInsertThreshold;
|
|
10699
|
-
if (!(!i ||
|
|
10699
|
+
if (!(!i || ls(o))) {
|
|
10700
10700
|
var s = Ce(o), a = e >= s.left - i && e <= s.right + i, l = t >= s.top - i && t <= s.bottom + i;
|
|
10701
10701
|
if (a && l)
|
|
10702
10702
|
return n = o;
|
|
@@ -10734,7 +10734,7 @@ ti && !Or && document.addEventListener("click", function(e) {
|
|
|
10734
10734
|
var Kt = function(e) {
|
|
10735
10735
|
if (A) {
|
|
10736
10736
|
e = e.touches ? e.touches[0] : e;
|
|
10737
|
-
var t =
|
|
10737
|
+
var t = xf(e.clientX, e.clientY);
|
|
10738
10738
|
if (t) {
|
|
10739
10739
|
var n = {};
|
|
10740
10740
|
for (var o in e)
|
|
@@ -10742,7 +10742,7 @@ var Kt = function(e) {
|
|
|
10742
10742
|
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Je]._onDragOver(n);
|
|
10743
10743
|
}
|
|
10744
10744
|
}
|
|
10745
|
-
},
|
|
10745
|
+
}, wf = function(e) {
|
|
10746
10746
|
A && A.parentNode[Je]._isOutsideThisEl(e.target);
|
|
10747
10747
|
};
|
|
10748
10748
|
function P(e, t) {
|
|
@@ -10800,7 +10800,7 @@ function P(e, t) {
|
|
|
10800
10800
|
Br(t);
|
|
10801
10801
|
for (var i in this)
|
|
10802
10802
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
10803
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
10803
|
+
this.nativeDraggable = t.forceFallback ? !1 : Pf, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? ne(e, "pointerdown", this._onTapStart) : (ne(e, "mousedown", this._onTapStart), ne(e, "touchstart", this._onTapStart)), this.nativeDraggable && (ne(e, "dragover", this), ne(e, "dragenter", this)), Do.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), bt(this, Sf());
|
|
10804
10804
|
}
|
|
10805
10805
|
P.prototype = /** @lends Sortable.prototype */
|
|
10806
10806
|
{
|
|
@@ -10814,7 +10814,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10814
10814
|
_onTapStart: function(e) {
|
|
10815
10815
|
if (e.cancelable) {
|
|
10816
10816
|
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, l = (a || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, _ = o.filter;
|
|
10817
|
-
if (
|
|
10817
|
+
if (jf(n), !A && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Bn && l && l.tagName.toUpperCase() === "SELECT") && (l = ot(l, o.draggable, n, !1), !(l && l.animated) && mo !== l)) {
|
|
10818
10818
|
if (cn = Qe(l), Dn = Qe(l, o.draggable), typeof _ == "function") {
|
|
10819
10819
|
if (_.call(this, e, l, this)) {
|
|
10820
10820
|
He({
|
|
@@ -10857,28 +10857,28 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10857
10857
|
target: A,
|
|
10858
10858
|
clientX: (t || e).clientX,
|
|
10859
10859
|
clientY: (t || e).clientY
|
|
10860
|
-
},
|
|
10860
|
+
}, Ta = Yt.clientX - c.left, Ea = Yt.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, A.style["will-change"] = "all", l = function() {
|
|
10861
10861
|
if (Ge("delayEnded", o, {
|
|
10862
10862
|
evt: e
|
|
10863
10863
|
}), P.eventCanceled) {
|
|
10864
10864
|
o._onDrop();
|
|
10865
10865
|
return;
|
|
10866
10866
|
}
|
|
10867
|
-
o._disableDelayedDragEvents(), !
|
|
10867
|
+
o._disableDelayedDragEvents(), !ha && o.nativeDraggable && (A.draggable = !0), o._triggerDragStart(e, t), He({
|
|
10868
10868
|
sortable: o,
|
|
10869
10869
|
name: "choose",
|
|
10870
10870
|
originalEvent: e
|
|
10871
10871
|
}), ze(A, s.chosenClass, !0);
|
|
10872
10872
|
}, s.ignore.split(",").forEach(function(_) {
|
|
10873
10873
|
Ir(A, _.trim(), Ni);
|
|
10874
|
-
}),
|
|
10874
|
+
}), ne(a, "dragover", Kt), ne(a, "mousemove", Kt), ne(a, "touchmove", Kt), ne(a, "mouseup", o._onDrop), ne(a, "touchend", o._onDrop), ne(a, "touchcancel", o._onDrop), ha && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), Ge("delayStart", this, {
|
|
10875
10875
|
evt: e
|
|
10876
10876
|
}), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(jn || yt))) {
|
|
10877
10877
|
if (P.eventCanceled) {
|
|
10878
10878
|
this._onDrop();
|
|
10879
10879
|
return;
|
|
10880
10880
|
}
|
|
10881
|
-
|
|
10881
|
+
ne(a, "mouseup", o._disableDelayedDrag), ne(a, "touchend", o._disableDelayedDrag), ne(a, "touchcancel", o._disableDelayedDrag), ne(a, "mousemove", o._delayedDragTouchMoveHandler), ne(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && ne(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
|
|
10882
10882
|
} else
|
|
10883
10883
|
l();
|
|
10884
10884
|
}
|
|
@@ -10892,10 +10892,10 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10892
10892
|
},
|
|
10893
10893
|
_disableDelayedDragEvents: function() {
|
|
10894
10894
|
var e = this.el.ownerDocument;
|
|
10895
|
-
|
|
10895
|
+
ee(e, "mouseup", this._disableDelayedDrag), ee(e, "touchend", this._disableDelayedDrag), ee(e, "touchcancel", this._disableDelayedDrag), ee(e, "mousemove", this._delayedDragTouchMoveHandler), ee(e, "touchmove", this._delayedDragTouchMoveHandler), ee(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
10896
10896
|
},
|
|
10897
10897
|
_triggerDragStart: function(e, t) {
|
|
10898
|
-
t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
10898
|
+
t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? ne(document, "pointermove", this._onTouchMove) : t ? ne(document, "touchmove", this._onTouchMove) : ne(document, "mousemove", this._onTouchMove) : (ne(A, "dragend", this), ne(pe, "dragstart", this._onDragStart));
|
|
10899
10899
|
try {
|
|
10900
10900
|
document.selection ? Eo(function() {
|
|
10901
10901
|
document.selection.empty();
|
|
@@ -10907,7 +10907,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10907
10907
|
if (an = !1, pe && A) {
|
|
10908
10908
|
Ge("dragStarted", this, {
|
|
10909
10909
|
evt: t
|
|
10910
|
-
}), this.nativeDraggable &&
|
|
10910
|
+
}), this.nativeDraggable && ne(document, "dragover", wf);
|
|
10911
10911
|
var n = this.options;
|
|
10912
10912
|
!e && ze(A, n.dragClass, !1), ze(A, n.ghostClass, !0), P.active = this, e && this._appendGhost(), He({
|
|
10913
10913
|
sortable: this,
|
|
@@ -10941,7 +10941,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10941
10941
|
},
|
|
10942
10942
|
_onTouchMove: function(e) {
|
|
10943
10943
|
if (Yt) {
|
|
10944
|
-
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = K && _n(K, !0), a = K && s && s.a, l = K && s && s.d, c = co && Ve &&
|
|
10944
|
+
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = K && _n(K, !0), a = K && s && s.a, l = K && s && s.d, c = co && Ve && ma(Ve), _ = (i.clientX - Yt.clientX + o.x) / (a || 1) + (c ? c[0] - Ci[0] : 0) / (a || 1), h = (i.clientY - Yt.clientY + o.y) / (l || 1) + (c ? c[1] - Ci[1] : 0) / (l || 1);
|
|
10945
10945
|
if (!P.active && !an) {
|
|
10946
10946
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
|
|
10947
10947
|
return;
|
|
@@ -10968,9 +10968,9 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10968
10968
|
if (co) {
|
|
10969
10969
|
for (Ve = e; M(Ve, "position") === "static" && M(Ve, "transform") === "none" && Ve !== document; )
|
|
10970
10970
|
Ve = Ve.parentNode;
|
|
10971
|
-
Ve !== document.body && Ve !== document.documentElement ? (Ve === document && (Ve = dt()), t.top += Ve.scrollTop, t.left += Ve.scrollLeft) : Ve = dt(), Ci =
|
|
10971
|
+
Ve !== document.body && Ve !== document.documentElement ? (Ve === document && (Ve = dt()), t.top += Ve.scrollTop, t.left += Ve.scrollLeft) : Ve = dt(), Ci = ma(Ve);
|
|
10972
10972
|
}
|
|
10973
|
-
K = A.cloneNode(!0), ze(K, n.ghostClass, !1), ze(K, n.fallbackClass, !0), ze(K, n.dragClass, !0), M(K, "transition", ""), M(K, "transform", ""), M(K, "box-sizing", "border-box"), M(K, "margin", 0), M(K, "top", t.top), M(K, "left", t.left), M(K, "width", t.width), M(K, "height", t.height), M(K, "opacity", "0.8"), M(K, "position", co ? "absolute" : "fixed"), M(K, "zIndex", "100000"), M(K, "pointerEvents", "none"), P.ghost = K, e.appendChild(K), M(K, "transform-origin",
|
|
10973
|
+
K = A.cloneNode(!0), ze(K, n.ghostClass, !1), ze(K, n.fallbackClass, !0), ze(K, n.dragClass, !0), M(K, "transition", ""), M(K, "transform", ""), M(K, "box-sizing", "border-box"), M(K, "margin", 0), M(K, "top", t.top), M(K, "left", t.left), M(K, "width", t.width), M(K, "height", t.height), M(K, "opacity", "0.8"), M(K, "position", co ? "absolute" : "fixed"), M(K, "zIndex", "100000"), M(K, "pointerEvents", "none"), P.ghost = K, e.appendChild(K), M(K, "transform-origin", Ta / parseInt(K.style.width) * 100 + "% " + Ea / parseInt(K.style.height) * 100 + "%");
|
|
10974
10974
|
}
|
|
10975
10975
|
},
|
|
10976
10976
|
_onDragStart: function(e, t) {
|
|
@@ -10986,7 +10986,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10986
10986
|
sortable: n,
|
|
10987
10987
|
name: "clone"
|
|
10988
10988
|
}));
|
|
10989
|
-
}), !t && ze(A, i.dragClass, !0), t ? (Ro = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (
|
|
10989
|
+
}), !t && ze(A, i.dragClass, !0), t ? (Ro = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (ee(document, "mouseup", n._onDrop), ee(document, "touchend", n._onDrop), ee(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), ne(document, "drop", n), M(A, "transform", "translateZ(0)")), an = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), ne(document, "selectstart", n), yn = !0, Bn && M(document.body, "user-select", "none");
|
|
10990
10990
|
},
|
|
10991
10991
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
10992
10992
|
_onDragOver: function(e) {
|
|
@@ -11040,13 +11040,13 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11040
11040
|
return I;
|
|
11041
11041
|
if (s)
|
|
11042
11042
|
return he = pe, G(), this._hideClone(), v("revert"), P.eventCanceled || (Ht ? pe.insertBefore(A, Ht) : pe.appendChild(A)), D(!0);
|
|
11043
|
-
var
|
|
11044
|
-
if (!
|
|
11045
|
-
if (
|
|
11043
|
+
var te = ls(t, a.draggable);
|
|
11044
|
+
if (!te || Kf(e, g, this) && !te.animated) {
|
|
11045
|
+
if (te === A)
|
|
11046
11046
|
return D(!1);
|
|
11047
|
-
if (
|
|
11048
|
-
return G(),
|
|
11049
|
-
} else if (
|
|
11047
|
+
if (te && t === e.target && (n = te), n && (i = Ce(n)), uo(pe, t, A, o, n, i, e, !!n) !== !1)
|
|
11048
|
+
return G(), te && te.nextSibling ? t.insertBefore(A, te.nextSibling) : t.appendChild(A), he = t, X(), D(!0);
|
|
11049
|
+
} else if (te && Yf(e, g, this)) {
|
|
11050
11050
|
var _e = mn(t, 0, a, !0);
|
|
11051
11051
|
if (_e === A)
|
|
11052
11052
|
return D(!1);
|
|
@@ -11054,23 +11054,23 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11054
11054
|
return G(), t.insertBefore(A, _e), he = t, X(), D(!0);
|
|
11055
11055
|
} else if (n.parentNode === t) {
|
|
11056
11056
|
i = Ce(n);
|
|
11057
|
-
var q = 0, ke, $e = A.parentNode !== t, R = !
|
|
11058
|
-
on !== n && (ke = i[F], Pn = !1, lo = !R && a.invertSwap || $e), q =
|
|
11059
|
-
var
|
|
11057
|
+
var q = 0, ke, $e = A.parentNode !== t, R = !Uf(A.animated && A.toRect || o, n.animated && n.toRect || i, g), F = g ? "top" : "left", se = ga(n, "top", "top") || ga(A, "top", "top"), me = se ? se.scrollTop : void 0;
|
|
11058
|
+
on !== n && (ke = i[F], Pn = !1, lo = !R && a.invertSwap || $e), q = Hf(e, n, i, g, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
|
|
11059
|
+
var N;
|
|
11060
11060
|
if (q !== 0) {
|
|
11061
11061
|
var J = Qe(A);
|
|
11062
11062
|
do
|
|
11063
|
-
J -= q,
|
|
11064
|
-
while (
|
|
11063
|
+
J -= q, N = he.children[J];
|
|
11064
|
+
while (N && (M(N, "display") === "none" || N === K));
|
|
11065
11065
|
}
|
|
11066
|
-
if (q === 0 ||
|
|
11066
|
+
if (q === 0 || N === n)
|
|
11067
11067
|
return D(!1);
|
|
11068
11068
|
on = n, Mn = q;
|
|
11069
|
-
var
|
|
11069
|
+
var Z = n.nextElementSibling, ie = !1;
|
|
11070
11070
|
ie = q === 1;
|
|
11071
11071
|
var Le = uo(pe, t, A, o, n, i, e, ie);
|
|
11072
11072
|
if (Le !== !1)
|
|
11073
|
-
return (Le === 1 || Le === -1) && (ie = Le === 1), Xi = !0, setTimeout(
|
|
11073
|
+
return (Le === 1 || Le === -1) && (ie = Le === 1), Xi = !0, setTimeout(Ff, 30), G(), ie && !Z ? t.appendChild(A) : n.parentNode.insertBefore(A, ie ? Z : n), se && Cr(se, 0, me - se.scrollTop), he = A.parentNode, ke !== void 0 && !lo && (To = Math.abs(ke - Ce(n)[F])), X(), D(!0);
|
|
11074
11074
|
}
|
|
11075
11075
|
if (t.contains(A))
|
|
11076
11076
|
return D(!1);
|
|
@@ -11079,11 +11079,11 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11079
11079
|
},
|
|
11080
11080
|
_ignoreWhileAnimating: null,
|
|
11081
11081
|
_offMoveEvents: function() {
|
|
11082
|
-
|
|
11082
|
+
ee(document, "mousemove", this._onTouchMove), ee(document, "touchmove", this._onTouchMove), ee(document, "pointermove", this._onTouchMove), ee(document, "dragover", Kt), ee(document, "mousemove", Kt), ee(document, "touchmove", Kt);
|
|
11083
11083
|
},
|
|
11084
11084
|
_offUpEvents: function() {
|
|
11085
11085
|
var e = this.el.ownerDocument;
|
|
11086
|
-
|
|
11086
|
+
ee(e, "mouseup", this._onDrop), ee(e, "touchend", this._onDrop), ee(e, "pointerup", this._onDrop), ee(e, "touchcancel", this._onDrop), ee(document, "selectstart", this);
|
|
11087
11087
|
},
|
|
11088
11088
|
_onDrop: function(e) {
|
|
11089
11089
|
var t = this.el, n = this.options;
|
|
@@ -11093,7 +11093,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11093
11093
|
this._nulling();
|
|
11094
11094
|
return;
|
|
11095
11095
|
}
|
|
11096
|
-
an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zi(this.cloneId), zi(this._dragStartId), this.nativeDraggable && (
|
|
11096
|
+
an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zi(this.cloneId), zi(this._dragStartId), this.nativeDraggable && (ee(document, "drop", this), ee(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Bn && M(document.body, "user-select", ""), M(A, "transform", ""), e && (yn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (pe === he || Pe && Pe.lastPutMode !== "clone") && de && de.parentNode && de.parentNode.removeChild(de), A && (this.nativeDraggable && ee(A, "dragend", this), Ni(A), A.style["will-change"] = "", yn && !an && ze(A, Pe ? Pe.options.ghostClass : this.options.ghostClass, !1), ze(A, this.options.chosenClass, !1), He({
|
|
11097
11097
|
sortable: this,
|
|
11098
11098
|
name: "unchoose",
|
|
11099
11099
|
toEl: he,
|
|
@@ -11152,7 +11152,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11152
11152
|
break;
|
|
11153
11153
|
case "dragenter":
|
|
11154
11154
|
case "dragover":
|
|
11155
|
-
A && (this._onDragOver(e),
|
|
11155
|
+
A && (this._onDragOver(e), Vf(e));
|
|
11156
11156
|
break;
|
|
11157
11157
|
case "selectstart":
|
|
11158
11158
|
e.preventDefault();
|
|
@@ -11165,7 +11165,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11165
11165
|
*/
|
|
11166
11166
|
toArray: function() {
|
|
11167
11167
|
for (var e = [], t, n = this.el.children, o = 0, i = n.length, s = this.options; o < i; o++)
|
|
11168
|
-
t = n[o], ot(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) ||
|
|
11168
|
+
t = n[o], ot(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || Gf(t));
|
|
11169
11169
|
return e;
|
|
11170
11170
|
},
|
|
11171
11171
|
/**
|
|
@@ -11216,7 +11216,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11216
11216
|
destroy: function() {
|
|
11217
11217
|
Ge("destroy", this);
|
|
11218
11218
|
var e = this.el;
|
|
11219
|
-
e[Je] = null,
|
|
11219
|
+
e[Je] = null, ee(e, "mousedown", this._onTapStart), ee(e, "touchstart", this._onTapStart), ee(e, "pointerdown", this._onTapStart), this.nativeDraggable && (ee(e, "dragover", this), ee(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
|
|
11220
11220
|
t.removeAttribute("draggable");
|
|
11221
11221
|
}), this._onDrop(), this._disableDelayedDragEvents(), Do.splice(Do.indexOf(this.el), 1), this.el = e = null;
|
|
11222
11222
|
},
|
|
@@ -11239,7 +11239,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11239
11239
|
}
|
|
11240
11240
|
}
|
|
11241
11241
|
};
|
|
11242
|
-
function
|
|
11242
|
+
function Vf(e) {
|
|
11243
11243
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
11244
11244
|
}
|
|
11245
11245
|
function uo(e, t, n, o, i, s, a, l) {
|
|
@@ -11252,18 +11252,18 @@ function uo(e, t, n, o, i, s, a, l) {
|
|
|
11252
11252
|
function Ni(e) {
|
|
11253
11253
|
e.draggable = !1;
|
|
11254
11254
|
}
|
|
11255
|
-
function
|
|
11255
|
+
function Ff() {
|
|
11256
11256
|
Xi = !1;
|
|
11257
11257
|
}
|
|
11258
|
-
function
|
|
11258
|
+
function Yf(e, t, n) {
|
|
11259
11259
|
var o = Ce(mn(n.el, 0, n.options, !0)), i = kr(n.el, n.options, K), s = 10;
|
|
11260
11260
|
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;
|
|
11261
11261
|
}
|
|
11262
|
-
function
|
|
11263
|
-
var o = Ce(
|
|
11262
|
+
function Kf(e, t, n) {
|
|
11263
|
+
var o = Ce(ls(n.el, n.options.draggable)), i = kr(n.el, n.options, K), s = 10;
|
|
11264
11264
|
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;
|
|
11265
11265
|
}
|
|
11266
|
-
function
|
|
11266
|
+
function Hf(e, t, n, o, i, s, a, l) {
|
|
11267
11267
|
var c = o ? e.clientY : e.clientX, _ = o ? n.height : n.width, h = o ? n.top : n.left, d = o ? n.bottom : n.right, g = !1;
|
|
11268
11268
|
if (!a) {
|
|
11269
11269
|
if (l && To < _ * i) {
|
|
@@ -11272,19 +11272,19 @@ function Kf(e, t, n, o, i, s, a, l) {
|
|
|
11272
11272
|
else if (Mn === 1 ? c < h + To : c > d - To)
|
|
11273
11273
|
return -Mn;
|
|
11274
11274
|
} else if (c > h + _ * (1 - i) / 2 && c < d - _ * (1 - i) / 2)
|
|
11275
|
-
return
|
|
11275
|
+
return $f(t);
|
|
11276
11276
|
}
|
|
11277
11277
|
return g = g || a, g && (c < h + _ * s / 2 || c > d - _ * s / 2) ? c > h + _ / 2 ? 1 : -1 : 0;
|
|
11278
11278
|
}
|
|
11279
|
-
function
|
|
11279
|
+
function $f(e) {
|
|
11280
11280
|
return Qe(A) < Qe(e) ? 1 : -1;
|
|
11281
11281
|
}
|
|
11282
|
-
function
|
|
11282
|
+
function Gf(e) {
|
|
11283
11283
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
11284
11284
|
o += t.charCodeAt(n);
|
|
11285
11285
|
return o.toString(36);
|
|
11286
11286
|
}
|
|
11287
|
-
function
|
|
11287
|
+
function jf(e) {
|
|
11288
11288
|
Mo.length = 0;
|
|
11289
11289
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
11290
11290
|
var o = t[n];
|
|
@@ -11297,18 +11297,18 @@ function Eo(e) {
|
|
|
11297
11297
|
function zi(e) {
|
|
11298
11298
|
return clearTimeout(e);
|
|
11299
11299
|
}
|
|
11300
|
-
ti &&
|
|
11300
|
+
ti && ne(document, "touchmove", function(e) {
|
|
11301
11301
|
(P.active || an) && e.cancelable && e.preventDefault();
|
|
11302
11302
|
});
|
|
11303
11303
|
P.utils = {
|
|
11304
|
-
on:
|
|
11305
|
-
off:
|
|
11304
|
+
on: ne,
|
|
11305
|
+
off: ee,
|
|
11306
11306
|
css: M,
|
|
11307
11307
|
find: Ir,
|
|
11308
11308
|
is: function(e, t) {
|
|
11309
11309
|
return !!ot(e, t, e, !1);
|
|
11310
11310
|
},
|
|
11311
|
-
extend:
|
|
11311
|
+
extend: kf,
|
|
11312
11312
|
throttle: yr,
|
|
11313
11313
|
closest: ot,
|
|
11314
11314
|
toggleClass: ze,
|
|
@@ -11334,9 +11334,9 @@ P.mount = function() {
|
|
|
11334
11334
|
P.create = function(e, t) {
|
|
11335
11335
|
return new P(e, t);
|
|
11336
11336
|
};
|
|
11337
|
-
P.version =
|
|
11337
|
+
P.version = yf;
|
|
11338
11338
|
var ye = [], Cn, qi, Ji = !1, ki, Li, Po, Nn;
|
|
11339
|
-
function
|
|
11339
|
+
function Wf() {
|
|
11340
11340
|
function e() {
|
|
11341
11341
|
this.defaults = {
|
|
11342
11342
|
scroll: !0,
|
|
@@ -11351,14 +11351,14 @@ function jf() {
|
|
|
11351
11351
|
return e.prototype = {
|
|
11352
11352
|
dragStarted: function(t) {
|
|
11353
11353
|
var n = t.originalEvent;
|
|
11354
|
-
this.sortable.nativeDraggable ?
|
|
11354
|
+
this.sortable.nativeDraggable ? ne(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? ne(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? ne(document, "touchmove", this._handleFallbackAutoScroll) : ne(document, "mousemove", this._handleFallbackAutoScroll);
|
|
11355
11355
|
},
|
|
11356
11356
|
dragOverCompleted: function(t) {
|
|
11357
11357
|
var n = t.originalEvent;
|
|
11358
11358
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
11359
11359
|
},
|
|
11360
11360
|
drop: function() {
|
|
11361
|
-
this.sortable.nativeDraggable ?
|
|
11361
|
+
this.sortable.nativeDraggable ? ee(document, "dragover", this._handleAutoScroll) : (ee(document, "pointermove", this._handleFallbackAutoScroll), ee(document, "touchmove", this._handleFallbackAutoScroll), ee(document, "mousemove", this._handleFallbackAutoScroll)), va(), Ao(), Lf();
|
|
11362
11362
|
},
|
|
11363
11363
|
nulling: function() {
|
|
11364
11364
|
Po = qi = Cn = Ji = Nn = ki = Li = null, ye.length = 0;
|
|
@@ -11371,7 +11371,7 @@ function jf() {
|
|
|
11371
11371
|
if (Po = t, n || this.options.forceAutoScrollFallback || jn || yt || Bn) {
|
|
11372
11372
|
Si(t, this.options, a, n);
|
|
11373
11373
|
var l = Dt(a, !0);
|
|
11374
|
-
Ji && (!Nn || i !== ki || s !== Li) && (Nn &&
|
|
11374
|
+
Ji && (!Nn || i !== ki || s !== Li) && (Nn && va(), Nn = setInterval(function() {
|
|
11375
11375
|
var c = Dt(document.elementFromPoint(i, s), !0);
|
|
11376
11376
|
c !== l && (l = c, Ao()), Si(t, o.options, c, n);
|
|
11377
11377
|
}, 10), ki = i, Li = s);
|
|
@@ -11393,7 +11393,7 @@ function Ao() {
|
|
|
11393
11393
|
clearInterval(e.pid);
|
|
11394
11394
|
}), ye = [];
|
|
11395
11395
|
}
|
|
11396
|
-
function
|
|
11396
|
+
function va() {
|
|
11397
11397
|
clearInterval(Nn);
|
|
11398
11398
|
}
|
|
11399
11399
|
var Si = yr(function(e, t, n, o) {
|
|
@@ -11402,13 +11402,13 @@ var Si = yr(function(e, t, n, o) {
|
|
|
11402
11402
|
qi !== n && (qi = n, Ao(), Cn = t.scroll, h = t.scrollFn, Cn === !0 && (Cn = Dt(n, !0)));
|
|
11403
11403
|
var d = 0, g = Cn;
|
|
11404
11404
|
do {
|
|
11405
|
-
var m = g, I = Ce(m), v = I.top, G = I.bottom, D = I.left, X = I.right,
|
|
11406
|
-
m === c ? (q =
|
|
11407
|
-
var
|
|
11405
|
+
var m = g, I = Ce(m), v = I.top, G = I.bottom, D = I.left, X = I.right, te = I.width, _e = I.height, q = void 0, ke = void 0, $e = m.scrollWidth, R = m.scrollHeight, F = M(m), se = m.scrollLeft, me = m.scrollTop;
|
|
11406
|
+
m === c ? (q = te < $e && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (q = te < $e && (F.overflowX === "auto" || F.overflowX === "scroll"), ke = _e < R && (F.overflowY === "auto" || F.overflowY === "scroll"));
|
|
11407
|
+
var N = q && (Math.abs(X - i) <= a && se + te < $e) - (Math.abs(D - i) <= a && !!se), J = ke && (Math.abs(G - s) <= a && me + _e < R) - (Math.abs(v - s) <= a && !!me);
|
|
11408
11408
|
if (!ye[d])
|
|
11409
|
-
for (var
|
|
11410
|
-
ye[
|
|
11411
|
-
(ye[d].vx !=
|
|
11409
|
+
for (var Z = 0; Z <= d; Z++)
|
|
11410
|
+
ye[Z] || (ye[Z] = {});
|
|
11411
|
+
(ye[d].vx != N || ye[d].vy != J || ye[d].el !== m) && (ye[d].el = m, ye[d].vx = N, ye[d].vy = J, clearInterval(ye[d].pid), (N != 0 || J != 0) && (_ = !0, ye[d].pid = setInterval((function() {
|
|
11412
11412
|
o && this.layer === 0 && P.active._onTouchMove(Po);
|
|
11413
11413
|
var ie = ye[this.layer].vy ? ye[this.layer].vy * l : 0, Le = ye[this.layer].vx ? ye[this.layer].vx * l : 0;
|
|
11414
11414
|
typeof h == "function" && h.call(P.dragged.parentNode[Je], Le, ie, e, Po, ye[this.layer].el) !== "continue" || Cr(ye[this.layer].el, Le, ie);
|
|
@@ -11430,9 +11430,9 @@ var Si = yr(function(e, t, n, o) {
|
|
|
11430
11430
|
}));
|
|
11431
11431
|
}
|
|
11432
11432
|
};
|
|
11433
|
-
function
|
|
11433
|
+
function cs() {
|
|
11434
11434
|
}
|
|
11435
|
-
|
|
11435
|
+
cs.prototype = {
|
|
11436
11436
|
startIndex: null,
|
|
11437
11437
|
dragStart: function(e) {
|
|
11438
11438
|
var t = e.oldDraggableIndex;
|
|
@@ -11446,44 +11446,44 @@ us.prototype = {
|
|
|
11446
11446
|
},
|
|
11447
11447
|
drop: Mr
|
|
11448
11448
|
};
|
|
11449
|
-
bt(
|
|
11449
|
+
bt(cs, {
|
|
11450
11450
|
pluginName: "revertOnSpill"
|
|
11451
11451
|
});
|
|
11452
|
-
function
|
|
11452
|
+
function us() {
|
|
11453
11453
|
}
|
|
11454
|
-
|
|
11454
|
+
us.prototype = {
|
|
11455
11455
|
onSpill: function(e) {
|
|
11456
11456
|
var t = e.dragEl, n = e.putSortable, o = n || this.sortable;
|
|
11457
11457
|
o.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), o.animateAll();
|
|
11458
11458
|
},
|
|
11459
11459
|
drop: Mr
|
|
11460
11460
|
};
|
|
11461
|
-
bt(
|
|
11461
|
+
bt(us, {
|
|
11462
11462
|
pluginName: "removeOnSpill"
|
|
11463
11463
|
});
|
|
11464
|
-
P.mount(new
|
|
11465
|
-
P.mount(
|
|
11466
|
-
function
|
|
11464
|
+
P.mount(new Wf());
|
|
11465
|
+
P.mount(us, cs);
|
|
11466
|
+
function Xf(e) {
|
|
11467
11467
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
11468
11468
|
}
|
|
11469
|
-
function
|
|
11469
|
+
function zf(e) {
|
|
11470
11470
|
Uo() && ka(e);
|
|
11471
11471
|
}
|
|
11472
|
-
function
|
|
11473
|
-
Uo() ? dn(e) :
|
|
11472
|
+
function qf(e) {
|
|
11473
|
+
Uo() ? dn(e) : Na(e);
|
|
11474
11474
|
}
|
|
11475
11475
|
let Pr = null, Ur = null;
|
|
11476
|
-
function
|
|
11476
|
+
function Oa(e = null, t = null) {
|
|
11477
11477
|
Pr = e, Ur = t;
|
|
11478
11478
|
}
|
|
11479
|
-
function
|
|
11479
|
+
function Jf() {
|
|
11480
11480
|
return {
|
|
11481
11481
|
data: Pr,
|
|
11482
11482
|
clonedData: Ur
|
|
11483
11483
|
};
|
|
11484
11484
|
}
|
|
11485
|
-
const
|
|
11486
|
-
function
|
|
11485
|
+
const ba = Symbol("cloneElement");
|
|
11486
|
+
function Qf(...e) {
|
|
11487
11487
|
var t, n;
|
|
11488
11488
|
const o = (t = Uo()) == null ? void 0 : t.proxy;
|
|
11489
11489
|
let i = null;
|
|
@@ -11493,69 +11493,69 @@ function Jf(...e) {
|
|
|
11493
11493
|
let c = null;
|
|
11494
11494
|
const {
|
|
11495
11495
|
immediate: _ = !0,
|
|
11496
|
-
clone: h =
|
|
11496
|
+
clone: h = Xf,
|
|
11497
11497
|
customUpdate: d
|
|
11498
11498
|
} = (n = W(l)) != null ? n : {};
|
|
11499
11499
|
function g(R) {
|
|
11500
11500
|
var F;
|
|
11501
|
-
const { from: se, oldIndex: me, item:
|
|
11501
|
+
const { from: se, oldIndex: me, item: N } = R;
|
|
11502
11502
|
i = Array.from(se.childNodes);
|
|
11503
|
-
const J = W((F = W(a)) == null ? void 0 : F[me]),
|
|
11504
|
-
|
|
11503
|
+
const J = W((F = W(a)) == null ? void 0 : F[me]), Z = h(J);
|
|
11504
|
+
Oa(J, Z), N[ba] = Z;
|
|
11505
11505
|
}
|
|
11506
11506
|
function m(R) {
|
|
11507
|
-
const F = R.item[
|
|
11508
|
-
if (!
|
|
11507
|
+
const F = R.item[ba];
|
|
11508
|
+
if (!hf(F)) {
|
|
11509
11509
|
if (vi(R.item), kn(a)) {
|
|
11510
11510
|
const se = [...W(a)];
|
|
11511
|
-
a.value =
|
|
11511
|
+
a.value = ua(se, R.newDraggableIndex, F);
|
|
11512
11512
|
return;
|
|
11513
11513
|
}
|
|
11514
|
-
|
|
11514
|
+
ua(W(a), R.newDraggableIndex, F);
|
|
11515
11515
|
}
|
|
11516
11516
|
}
|
|
11517
11517
|
function I(R) {
|
|
11518
|
-
const { from: F, item: se, oldIndex: me, oldDraggableIndex:
|
|
11519
|
-
if (
|
|
11520
|
-
vi(
|
|
11518
|
+
const { from: F, item: se, oldIndex: me, oldDraggableIndex: N, pullMode: J, clone: Z } = R;
|
|
11519
|
+
if (pa(F, se, me), J === "clone") {
|
|
11520
|
+
vi(Z);
|
|
11521
11521
|
return;
|
|
11522
11522
|
}
|
|
11523
11523
|
if (kn(a)) {
|
|
11524
11524
|
const ie = [...W(a)];
|
|
11525
|
-
a.value =
|
|
11525
|
+
a.value = ca(ie, N);
|
|
11526
11526
|
return;
|
|
11527
11527
|
}
|
|
11528
|
-
|
|
11528
|
+
ca(W(a), N);
|
|
11529
11529
|
}
|
|
11530
11530
|
function v(R) {
|
|
11531
11531
|
if (d) {
|
|
11532
11532
|
d(R);
|
|
11533
11533
|
return;
|
|
11534
11534
|
}
|
|
11535
|
-
const { from: F, item: se, oldIndex: me, oldDraggableIndex:
|
|
11536
|
-
if (vi(se),
|
|
11537
|
-
const
|
|
11538
|
-
a.value =
|
|
11539
|
-
|
|
11540
|
-
|
|
11535
|
+
const { from: F, item: se, oldIndex: me, oldDraggableIndex: N, newDraggableIndex: J } = R;
|
|
11536
|
+
if (vi(se), pa(F, se, me), kn(a)) {
|
|
11537
|
+
const Z = [...W(a)];
|
|
11538
|
+
a.value = la(
|
|
11539
|
+
Z,
|
|
11540
|
+
N,
|
|
11541
11541
|
J
|
|
11542
11542
|
);
|
|
11543
11543
|
return;
|
|
11544
11544
|
}
|
|
11545
|
-
|
|
11545
|
+
la(W(a), N, J);
|
|
11546
11546
|
}
|
|
11547
11547
|
function G(R) {
|
|
11548
|
-
const { newIndex: F, oldIndex: se, from: me, to:
|
|
11548
|
+
const { newIndex: F, oldIndex: se, from: me, to: N } = R;
|
|
11549
11549
|
let J = null;
|
|
11550
|
-
const
|
|
11550
|
+
const Z = F === se && me === N;
|
|
11551
11551
|
try {
|
|
11552
|
-
if (
|
|
11552
|
+
if (Z) {
|
|
11553
11553
|
let ie = null;
|
|
11554
11554
|
i == null || i.some((Le, We) => {
|
|
11555
|
-
if (ie && (i == null ? void 0 : i.length) !==
|
|
11555
|
+
if (ie && (i == null ? void 0 : i.length) !== N.childNodes.length)
|
|
11556
11556
|
return me.insertBefore(ie, Le.nextSibling), !0;
|
|
11557
|
-
const Te =
|
|
11558
|
-
ie =
|
|
11557
|
+
const Te = N.childNodes[We];
|
|
11558
|
+
ie = N == null ? void 0 : N.replaceChild(Le, Te);
|
|
11559
11559
|
});
|
|
11560
11560
|
}
|
|
11561
11561
|
} catch (ie) {
|
|
@@ -11563,8 +11563,8 @@ function Jf(...e) {
|
|
|
11563
11563
|
} finally {
|
|
11564
11564
|
i = null;
|
|
11565
11565
|
}
|
|
11566
|
-
|
|
11567
|
-
if (
|
|
11566
|
+
Na(() => {
|
|
11567
|
+
if (Oa(), J)
|
|
11568
11568
|
throw J;
|
|
11569
11569
|
});
|
|
11570
11570
|
}
|
|
@@ -11577,28 +11577,28 @@ function Jf(...e) {
|
|
|
11577
11577
|
};
|
|
11578
11578
|
function X(R) {
|
|
11579
11579
|
const F = W(s);
|
|
11580
|
-
return R || (R =
|
|
11580
|
+
return R || (R = ff(F) ? gf(F, o == null ? void 0 : o.$el) : F), R && !Ef(R) && (R = R.$el), R || pf("Root element not found"), R;
|
|
11581
11581
|
}
|
|
11582
|
-
function
|
|
11582
|
+
function te() {
|
|
11583
11583
|
var R;
|
|
11584
|
-
const F = (R = W(l)) != null ? R : {}, { immediate: se, clone: me } = F,
|
|
11585
|
-
return
|
|
11586
|
-
|
|
11587
|
-
const We =
|
|
11588
|
-
return
|
|
11584
|
+
const F = (R = W(l)) != null ? R : {}, { immediate: se, clone: me } = F, N = Er(F, ["immediate", "clone"]);
|
|
11585
|
+
return _a(N, (J, Z) => {
|
|
11586
|
+
Af(J) && (N[J] = (ie, ...Le) => {
|
|
11587
|
+
const We = Jf();
|
|
11588
|
+
return vf(ie, We), Z(ie, ...Le);
|
|
11589
11589
|
});
|
|
11590
|
-
}),
|
|
11590
|
+
}), Tf(
|
|
11591
11591
|
a === null ? {} : D,
|
|
11592
|
-
|
|
11592
|
+
N
|
|
11593
11593
|
);
|
|
11594
11594
|
}
|
|
11595
11595
|
const _e = (R) => {
|
|
11596
|
-
R = X(R), c && q.destroy(), c = new P(R,
|
|
11596
|
+
R = X(R), c && q.destroy(), c = new P(R, te());
|
|
11597
11597
|
};
|
|
11598
11598
|
Lt(
|
|
11599
11599
|
() => l,
|
|
11600
11600
|
() => {
|
|
11601
|
-
c &&
|
|
11601
|
+
c && _a(te(), (R, F) => {
|
|
11602
11602
|
c == null || c.option(R, F);
|
|
11603
11603
|
});
|
|
11604
11604
|
},
|
|
@@ -11613,9 +11613,9 @@ function Jf(...e) {
|
|
|
11613
11613
|
toArray: () => c == null ? void 0 : c.toArray(),
|
|
11614
11614
|
closest: (...R) => c == null ? void 0 : c.closest(...R)
|
|
11615
11615
|
}, ke = () => q == null ? void 0 : q.option("disabled", !0), $e = () => q == null ? void 0 : q.option("disabled", !1);
|
|
11616
|
-
return
|
|
11616
|
+
return qf(() => {
|
|
11617
11617
|
_ && _e();
|
|
11618
|
-
}),
|
|
11618
|
+
}), zf(q.destroy), ln({ start: _e, pause: ke, resume: $e }, q);
|
|
11619
11619
|
}
|
|
11620
11620
|
const Qi = [
|
|
11621
11621
|
"update",
|
|
@@ -11630,7 +11630,7 @@ const Qi = [
|
|
|
11630
11630
|
"clone",
|
|
11631
11631
|
"move",
|
|
11632
11632
|
"change"
|
|
11633
|
-
],
|
|
11633
|
+
], Zf = [
|
|
11634
11634
|
"clone",
|
|
11635
11635
|
"animation",
|
|
11636
11636
|
"ghostClass",
|
|
@@ -11675,13 +11675,13 @@ const Qi = [
|
|
|
11675
11675
|
"target",
|
|
11676
11676
|
"customUpdate",
|
|
11677
11677
|
...Qi.map((e) => `on${e.replace(/^\S/, (t) => t.toUpperCase())}`)
|
|
11678
|
-
],
|
|
11678
|
+
], eg = ft({
|
|
11679
11679
|
name: "VueDraggable",
|
|
11680
11680
|
model: {
|
|
11681
11681
|
prop: "modelValue",
|
|
11682
11682
|
event: "update:modelValue"
|
|
11683
11683
|
},
|
|
11684
|
-
props:
|
|
11684
|
+
props: Zf,
|
|
11685
11685
|
emits: ["update:modelValue", ...Qi],
|
|
11686
11686
|
setup(e, { slots: t, emit: n, expose: o, attrs: i }) {
|
|
11687
11687
|
const s = Qi.reduce((h, d) => {
|
|
@@ -11692,19 +11692,19 @@ const Qi = [
|
|
|
11692
11692
|
const D = W(G);
|
|
11693
11693
|
return D !== void 0 && (I[v] = D), I;
|
|
11694
11694
|
}, {});
|
|
11695
|
-
return ln(ln({}, s),
|
|
11695
|
+
return ln(ln({}, s), df(ln(ln({}, i), m)));
|
|
11696
11696
|
}), l = Be({
|
|
11697
11697
|
get: () => e.modelValue,
|
|
11698
11698
|
set: (h) => n("update:modelValue", h)
|
|
11699
11699
|
}), c = Mt(), _ = Ul(
|
|
11700
|
-
|
|
11700
|
+
Qf(e.target || c, l, a)
|
|
11701
11701
|
);
|
|
11702
11702
|
return o(_), () => {
|
|
11703
11703
|
var h;
|
|
11704
11704
|
return Mi(e.tag || "div", { ref: c }, (h = t == null ? void 0 : t.default) == null ? void 0 : h.call(t, _));
|
|
11705
11705
|
};
|
|
11706
11706
|
}
|
|
11707
|
-
}),
|
|
11707
|
+
}), tg = { class: "text-subtitle-1 ml-6" }, ng = /* @__PURE__ */ ft({
|
|
11708
11708
|
__name: "item",
|
|
11709
11709
|
props: {
|
|
11710
11710
|
id: {},
|
|
@@ -11738,11 +11738,11 @@ const Qi = [
|
|
|
11738
11738
|
onMouseover: d[2] || (d[2] = (v) => l.value = !0),
|
|
11739
11739
|
onMouseout: d[3] || (d[3] = (v) => l.value = !1)
|
|
11740
11740
|
}, [
|
|
11741
|
-
lt("span",
|
|
11741
|
+
lt("span", tg, xo(s.title), 1),
|
|
11742
11742
|
Oe(g),
|
|
11743
11743
|
Oe(m, {
|
|
11744
11744
|
class: "x-handle cursor-move mr-3",
|
|
11745
|
-
icon: W(
|
|
11745
|
+
icon: W(ic),
|
|
11746
11746
|
onMousedown: d[0] || (d[0] = Ln(() => {
|
|
11747
11747
|
}, ["stop"]))
|
|
11748
11748
|
}, null, 8, ["icon"]),
|
|
@@ -11754,10 +11754,10 @@ const Qi = [
|
|
|
11754
11754
|
]);
|
|
11755
11755
|
};
|
|
11756
11756
|
}
|
|
11757
|
-
}),
|
|
11757
|
+
}), og = {
|
|
11758
11758
|
key: 1,
|
|
11759
11759
|
class: "text-caption text-grey"
|
|
11760
|
-
},
|
|
11760
|
+
}, ig = /* @__PURE__ */ ft({
|
|
11761
11761
|
__name: "index",
|
|
11762
11762
|
props: {
|
|
11763
11763
|
lock: { type: Boolean }
|
|
@@ -11775,8 +11775,8 @@ const Qi = [
|
|
|
11775
11775
|
const v = I.id === ((D = sn()) == null ? void 0 : D.id);
|
|
11776
11776
|
let G = "<n/a>";
|
|
11777
11777
|
if (I.type.startsWith("on_node_event_v")) {
|
|
11778
|
-
const X = I,
|
|
11779
|
-
|
|
11778
|
+
const X = I, te = Ye[X.node.key];
|
|
11779
|
+
te && (G = t(te.name), X.node.alias && (G += " / " + X.node.alias), G += " - " + T[X.event.name]);
|
|
11780
11780
|
} else I.type.startsWith("func_entry_v") ? G = t("x-block-lib.funcEntry") : I.type.startsWith("procedure_def_v") ? (console.log(I), G = t("x-block-lib.procedure") + " - " + I.getFieldValue("NAME")) : G = t("x-block-lib.temporaryBlock");
|
|
11781
11781
|
g.push({
|
|
11782
11782
|
id: I.id,
|
|
@@ -11832,7 +11832,7 @@ const Qi = [
|
|
|
11832
11832
|
const m = g.getBlockById(d);
|
|
11833
11833
|
Wl.setSelected(m), pr(d), _.value = !1;
|
|
11834
11834
|
};
|
|
11835
|
-
return (d, g) => o.value.length > 0 ? (Ne(), pt(W(
|
|
11835
|
+
return (d, g) => o.value.length > 0 ? (Ne(), pt(W(eg), {
|
|
11836
11836
|
key: 0,
|
|
11837
11837
|
modelValue: o.value,
|
|
11838
11838
|
"onUpdate:modelValue": g[0] || (g[0] = (m) => o.value = m),
|
|
@@ -11844,7 +11844,7 @@ const Qi = [
|
|
|
11844
11844
|
onEnd: c
|
|
11845
11845
|
}, {
|
|
11846
11846
|
default: _t(() => [
|
|
11847
|
-
(Ne(!0), rt(La, null, Vl(o.value, (m) => (Ne(), pt(
|
|
11847
|
+
(Ne(!0), rt(La, null, Vl(o.value, (m) => (Ne(), pt(ng, {
|
|
11848
11848
|
id: m.id,
|
|
11849
11849
|
key: m.id,
|
|
11850
11850
|
title: m.name,
|
|
@@ -11853,25 +11853,25 @@ const Qi = [
|
|
|
11853
11853
|
}, null, 8, ["id", "title", "select"]))), 128))
|
|
11854
11854
|
]),
|
|
11855
11855
|
_: 1
|
|
11856
|
-
}, 8, ["modelValue"])) : (Ne(), rt("span",
|
|
11856
|
+
}, 8, ["modelValue"])) : (Ne(), rt("span", og, xo(W(t)("x-block-lib.noOption")), 1));
|
|
11857
11857
|
}
|
|
11858
11858
|
}), xr = (e, t) => {
|
|
11859
11859
|
const n = e.__vccOpts || e;
|
|
11860
11860
|
for (const [o, i] of t)
|
|
11861
11861
|
n[o] = i;
|
|
11862
11862
|
return n;
|
|
11863
|
-
},
|
|
11864
|
-
function
|
|
11863
|
+
}, sg = /* @__PURE__ */ xr(ig, [["__scopeId", "data-v-448cc5cd"]]), ag = {};
|
|
11864
|
+
function rg(e, t) {
|
|
11865
11865
|
return Ne(), rt("div", null, "blockTree");
|
|
11866
11866
|
}
|
|
11867
|
-
const
|
|
11867
|
+
const lg = /* @__PURE__ */ xr(ag, [["render", rg]]), cg = { class: "text-subtitle-1" }, ug = /* @__PURE__ */ ft({
|
|
11868
11868
|
__name: "index",
|
|
11869
11869
|
props: {
|
|
11870
11870
|
type: {},
|
|
11871
11871
|
lock: { type: Boolean }
|
|
11872
11872
|
},
|
|
11873
11873
|
setup(e) {
|
|
11874
|
-
const { t } = Kn(), n =
|
|
11874
|
+
const { t } = Kn(), n = tc(), { sysBarAvail: o } = Pa(), { backgroundColor1: i } = Fo(), s = e, a = Be(() => {
|
|
11875
11875
|
let h = "100%";
|
|
11876
11876
|
return n.mdAndUp.value && (h = "400px"), {
|
|
11877
11877
|
background: i.value,
|
|
@@ -11927,7 +11927,7 @@ const rg = /* @__PURE__ */ xr(sg, [["render", ag]]), lg = { class: "text-subtitl
|
|
|
11927
11927
|
icon: W(Ua),
|
|
11928
11928
|
onClick: d[0] || (d[0] = (D) => _.value = !1)
|
|
11929
11929
|
}, null, 8, ["icon"]),
|
|
11930
|
-
lt("span",
|
|
11930
|
+
lt("span", cg, xo(W(t)("x-block-lib.navigator")), 1),
|
|
11931
11931
|
Oe(I)
|
|
11932
11932
|
]),
|
|
11933
11933
|
_: 1
|
|
@@ -11936,10 +11936,10 @@ const rg = /* @__PURE__ */ xr(sg, [["render", ag]]), lg = { class: "text-subtitl
|
|
|
11936
11936
|
class: "overflow-y-auto",
|
|
11937
11937
|
style: ct(l.value)
|
|
11938
11938
|
}, [
|
|
11939
|
-
s.type === "list" ? (Ne(), pt(
|
|
11939
|
+
s.type === "list" ? (Ne(), pt(sg, {
|
|
11940
11940
|
key: 0,
|
|
11941
11941
|
lock: s.lock
|
|
11942
|
-
}, null, 8, ["lock"])) : s.type === "tree" ? (Ne(), pt(
|
|
11942
|
+
}, null, 8, ["lock"])) : s.type === "tree" ? (Ne(), pt(lg, { key: 1 })) : $t("", !0),
|
|
11943
11943
|
lt("div", {
|
|
11944
11944
|
style: ct(c.value)
|
|
11945
11945
|
}, null, 4)
|
|
@@ -11956,7 +11956,7 @@ const rg = /* @__PURE__ */ xr(sg, [["render", ag]]), lg = { class: "text-subtitl
|
|
|
11956
11956
|
Oe(m, es(D, {
|
|
11957
11957
|
variant: "outlined",
|
|
11958
11958
|
density: "comfortable",
|
|
11959
|
-
icon: W(
|
|
11959
|
+
icon: W(rc),
|
|
11960
11960
|
onClick: d[5] || (d[5] = (X) => _.value = !0)
|
|
11961
11961
|
}), null, 16, ["icon"])
|
|
11962
11962
|
]),
|
|
@@ -11991,22 +11991,22 @@ const rg = /* @__PURE__ */ xr(sg, [["render", ag]]), lg = { class: "text-subtitl
|
|
|
11991
11991
|
wheel: !0
|
|
11992
11992
|
}
|
|
11993
11993
|
};
|
|
11994
|
-
function
|
|
11995
|
-
Bi.theme = o ? "dark" : "light", Bi.toolbox =
|
|
11994
|
+
function pg(e, t, n, o) {
|
|
11995
|
+
Bi.theme = o ? "dark" : "light", Bi.toolbox = _g(t, n);
|
|
11996
11996
|
const i = Xl(e, Bi);
|
|
11997
|
-
return
|
|
11997
|
+
return dg(i, t, n), hg(i), i;
|
|
11998
11998
|
}
|
|
11999
|
-
function
|
|
11999
|
+
function _g(e, t) {
|
|
12000
12000
|
let n;
|
|
12001
|
-
return e === "page" ? t === "v1" && (n =
|
|
12001
|
+
return e === "page" ? t === "v1" && (n = af) : e === "comp" ? t === "v1" && (n = nf) : e === "func" ? t === "v1" && (n = sf) : e === "flow" && t === "v1" && (n = of), console.assert(!!n, "invalid toolbox"), n;
|
|
12002
12002
|
}
|
|
12003
|
-
function
|
|
12003
|
+
function dg(e, t, n) {
|
|
12004
12004
|
function o({ name: i, callback: s }) {
|
|
12005
12005
|
e.registerToolboxCategoryCallback(i, () => s(t));
|
|
12006
12006
|
}
|
|
12007
12007
|
t === "page" || t === "comp" ? n === "v1" && (o(Lo), o(Rt), o(Bt)) : t === "func" ? n === "v1" && (o(ko), o(No), o(Co), o(Rt), o(Bt)) : t === "flow" && n === "v1" && (o(No), o(ko), o(Co), o(Rt), o(Bt));
|
|
12008
12008
|
}
|
|
12009
|
-
function
|
|
12009
|
+
function hg(e) {
|
|
12010
12010
|
const { router: t } = V.base;
|
|
12011
12011
|
e.registerButtonCallback("NO_COMPUTE", () => {
|
|
12012
12012
|
const n = t.resolve({
|
|
@@ -12024,9 +12024,9 @@ function dg(e) {
|
|
|
12024
12024
|
}, 100);
|
|
12025
12025
|
});
|
|
12026
12026
|
}
|
|
12027
|
-
const
|
|
12027
|
+
const fg = { class: "position-relative w-100 h-100" }, gg = /* @__PURE__ */ ft({
|
|
12028
12028
|
__name: "index",
|
|
12029
|
-
props: /* @__PURE__ */
|
|
12029
|
+
props: /* @__PURE__ */ Ns({
|
|
12030
12030
|
type: {},
|
|
12031
12031
|
version: {},
|
|
12032
12032
|
locale: {},
|
|
@@ -12037,7 +12037,7 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
|
|
|
12037
12037
|
scale: { required: !0 },
|
|
12038
12038
|
scaleModifiers: {}
|
|
12039
12039
|
}),
|
|
12040
|
-
emits: /* @__PURE__ */
|
|
12040
|
+
emits: /* @__PURE__ */ Ns(["ready"], ["update:lock", "update:scale"]),
|
|
12041
12041
|
setup(e, { expose: t, emit: n }) {
|
|
12042
12042
|
const o = Di(e, "lock"), i = Di(e, "scale"), s = n, a = Mt();
|
|
12043
12043
|
let l;
|
|
@@ -12076,34 +12076,36 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
|
|
|
12076
12076
|
console.assert(!1);
|
|
12077
12077
|
return;
|
|
12078
12078
|
}
|
|
12079
|
-
await
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12079
|
+
await aa(e.locale), l = pg(a.value, e.type, e.version, e.dark), l.addChangeListener(w.disableOrphans), l.addChangeListener(G);
|
|
12080
|
+
let N;
|
|
12081
|
+
for (let Z = 0; Z < 100 && (await Zl(30), N = document.querySelector("#blocklyEditor .blocklyFlyout"), !N); Z++)
|
|
12082
|
+
;
|
|
12083
|
+
new MutationObserver((Z) => {
|
|
12084
|
+
Z.forEach((ie) => {
|
|
12083
12085
|
ie.type === "attributes" && ie.attributeName === "style" && (v.value = l.getFlyout().isVisible());
|
|
12084
12086
|
});
|
|
12085
|
-
}).observe(
|
|
12087
|
+
}).observe(N, { attributes: !0 }), v.value = l.getFlyout().isVisible(), _e(), q(), s("ready");
|
|
12086
12088
|
}), Zi(() => {
|
|
12087
12089
|
v.value = !1;
|
|
12088
|
-
}),
|
|
12090
|
+
}), dc(a, () => {
|
|
12089
12091
|
l && zl(l);
|
|
12090
12092
|
});
|
|
12091
|
-
async function G(
|
|
12092
|
-
if (
|
|
12093
|
+
async function G(N) {
|
|
12094
|
+
if (N.type === w.FINISHED_LOADING) {
|
|
12093
12095
|
_r(), ut.emit("codeUpdate"), c.value = !1;
|
|
12094
12096
|
return;
|
|
12095
12097
|
}
|
|
12096
12098
|
if (!c.value) {
|
|
12097
|
-
if (
|
|
12099
|
+
if (N.type === w.VIEWPORT_CHANGE) {
|
|
12098
12100
|
i.value = l.getScale();
|
|
12099
12101
|
return;
|
|
12100
12102
|
}
|
|
12101
|
-
|
|
12103
|
+
N.type === w.BLOCK_DRAG && (N.isStart ? _.value = !0 : _.value = !1), ut.emit("codeUpdate");
|
|
12102
12104
|
}
|
|
12103
12105
|
}
|
|
12104
|
-
const D = (
|
|
12105
|
-
c.value = !0,
|
|
12106
|
-
}, X = () =>
|
|
12106
|
+
const D = (N) => {
|
|
12107
|
+
c.value = !0, Ls.workspaces.load(N, l);
|
|
12108
|
+
}, X = () => Ls.workspaces.save(l), te = () => r.workspaceToCode(l), _e = () => {
|
|
12107
12109
|
l.options.readOnly = o.value, l.options.readOnly && (v.value = !1);
|
|
12108
12110
|
}, q = () => {
|
|
12109
12111
|
l.setScale(i.value);
|
|
@@ -12116,16 +12118,16 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
|
|
|
12116
12118
|
}
|
|
12117
12119
|
const $e = () => {
|
|
12118
12120
|
l.fireChangeListener(new ke());
|
|
12119
|
-
}, R = (
|
|
12120
|
-
if (
|
|
12121
|
+
}, R = (N) => {
|
|
12122
|
+
if (N.key === "q" && N.ctrlKey) {
|
|
12121
12123
|
F();
|
|
12122
12124
|
return;
|
|
12123
12125
|
}
|
|
12124
|
-
if (
|
|
12126
|
+
if (N.key === "w" && N.ctrlKey) {
|
|
12125
12127
|
se();
|
|
12126
12128
|
return;
|
|
12127
12129
|
}
|
|
12128
|
-
if (
|
|
12130
|
+
if (N.key === "e" && N.ctrlKey) {
|
|
12129
12131
|
me();
|
|
12130
12132
|
return;
|
|
12131
12133
|
}
|
|
@@ -12142,23 +12144,23 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
|
|
|
12142
12144
|
window.removeEventListener("keydown", R, !1);
|
|
12143
12145
|
}), Lt(
|
|
12144
12146
|
() => e.locale,
|
|
12145
|
-
(
|
|
12146
|
-
|
|
12147
|
+
(N) => {
|
|
12148
|
+
aa(N);
|
|
12147
12149
|
}
|
|
12148
12150
|
), Lt(
|
|
12149
12151
|
() => e.dark,
|
|
12150
|
-
(
|
|
12151
|
-
|
|
12152
|
+
(N) => {
|
|
12153
|
+
tf(N ? "dark" : "light");
|
|
12152
12154
|
}
|
|
12153
|
-
), Lt(v, (
|
|
12154
|
-
|
|
12155
|
+
), Lt(v, (N) => {
|
|
12156
|
+
N || l.hideChaff();
|
|
12155
12157
|
}), Lt(o, () => {
|
|
12156
12158
|
_e();
|
|
12157
12159
|
}), Lt(i, () => {
|
|
12158
12160
|
q();
|
|
12159
|
-
}), t({ loading: c, load: D, save: X, generateCode:
|
|
12160
|
-
const
|
|
12161
|
-
return Ne(), rt("div",
|
|
12161
|
+
}), t({ loading: c, load: D, save: X, generateCode: te, fireStateChange: $e }), (N, J) => {
|
|
12162
|
+
const Z = De("v-icon"), ie = De("x-loading");
|
|
12163
|
+
return Ne(), rt("div", fg, [
|
|
12162
12164
|
lt("div", {
|
|
12163
12165
|
id: "blocklyEditor",
|
|
12164
12166
|
ref_key: "blocklyDiv",
|
|
@@ -12170,9 +12172,9 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
|
|
|
12170
12172
|
class: "d-flex flex-column justify-center align-center",
|
|
12171
12173
|
style: ct(d.value)
|
|
12172
12174
|
}, [
|
|
12173
|
-
Oe(
|
|
12175
|
+
Oe(Z, {
|
|
12174
12176
|
size: "x-large",
|
|
12175
|
-
icon: W(
|
|
12177
|
+
icon: W(oc)
|
|
12176
12178
|
}, null, 8, ["icon"])
|
|
12177
12179
|
], 4)) : $t("", !0),
|
|
12178
12180
|
c.value ? $t("", !0) : (Ne(), rt("div", {
|
|
@@ -12180,12 +12182,12 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
|
|
|
12180
12182
|
class: "d-flex align-end ga-3 pt-3 pr-3",
|
|
12181
12183
|
style: ct(g.value)
|
|
12182
12184
|
}, [
|
|
12183
|
-
Oe(
|
|
12184
|
-
Oe(
|
|
12185
|
+
Oe(rf, { lock: o.value }, null, 8, ["lock"]),
|
|
12186
|
+
Oe(lf, {
|
|
12185
12187
|
modelValue: o.value,
|
|
12186
12188
|
"onUpdate:modelValue": J[0] || (J[0] = (Le) => o.value = Le)
|
|
12187
12189
|
}, null, 8, ["modelValue"]),
|
|
12188
|
-
Oe(
|
|
12190
|
+
Oe(ug, {
|
|
12189
12191
|
type: h.value,
|
|
12190
12192
|
lock: o.value
|
|
12191
12193
|
}, null, 8, ["type", "lock"])
|
|
@@ -12206,10 +12208,10 @@ const hg = { class: "position-relative w-100 h-100" }, fg = /* @__PURE__ */ ft({
|
|
|
12206
12208
|
};
|
|
12207
12209
|
}
|
|
12208
12210
|
});
|
|
12209
|
-
var Ri,
|
|
12210
|
-
function
|
|
12211
|
-
if (
|
|
12212
|
-
|
|
12211
|
+
var Ri, Ia;
|
|
12212
|
+
function mg() {
|
|
12213
|
+
if (Ia) return Ri;
|
|
12214
|
+
Ia = 1;
|
|
12213
12215
|
function e(u) {
|
|
12214
12216
|
return u instanceof Map ? u.clear = u.delete = u.set = function() {
|
|
12215
12217
|
throw new Error("map is read-only");
|
|
@@ -12423,7 +12425,7 @@ function gg() {
|
|
|
12423
12425
|
function X(u) {
|
|
12424
12426
|
return new RegExp(u.toString() + "|").exec("").length - 1;
|
|
12425
12427
|
}
|
|
12426
|
-
function
|
|
12428
|
+
function te(u, f) {
|
|
12427
12429
|
const O = u && u.exec(f);
|
|
12428
12430
|
return O && O.index === 0;
|
|
12429
12431
|
}
|
|
@@ -12433,19 +12435,19 @@ function gg() {
|
|
|
12433
12435
|
return u.map((Y) => {
|
|
12434
12436
|
O += 1;
|
|
12435
12437
|
const Ee = O;
|
|
12436
|
-
let Ae = d(Y),
|
|
12438
|
+
let Ae = d(Y), k = "";
|
|
12437
12439
|
for (; Ae.length > 0; ) {
|
|
12438
12440
|
const y = _e.exec(Ae);
|
|
12439
12441
|
if (!y) {
|
|
12440
|
-
|
|
12442
|
+
k += Ae;
|
|
12441
12443
|
break;
|
|
12442
12444
|
}
|
|
12443
|
-
|
|
12445
|
+
k += Ae.substring(0, y.index), Ae = Ae.substring(y.index + y[0].length), y[0][0] === "\\" && y[1] ? k += "\\" + String(Number(y[1]) + Ee) : (k += y[0], y[0] === "(" && O++);
|
|
12444
12446
|
}
|
|
12445
|
-
return
|
|
12447
|
+
return k;
|
|
12446
12448
|
}).map((Y) => `(${Y})`).join(f);
|
|
12447
12449
|
}
|
|
12448
|
-
const ke = /\b\B/, $e = "[a-zA-Z]\\w*", R = "[a-zA-Z_]\\w*", F = "\\b\\d+(\\.\\d+)?", se = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", me = "\\b(0b[01]+)",
|
|
12450
|
+
const ke = /\b\B/, $e = "[a-zA-Z]\\w*", R = "[a-zA-Z_]\\w*", F = "\\b\\d+(\\.\\d+)?", se = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", me = "\\b(0b[01]+)", N = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", J = (u = {}) => {
|
|
12449
12451
|
const f = /^#![ ]*\//;
|
|
12450
12452
|
return u.binary && (u.begin = v(
|
|
12451
12453
|
f,
|
|
@@ -12462,7 +12464,7 @@ function gg() {
|
|
|
12462
12464
|
O.index !== 0 && Y.ignoreMatch();
|
|
12463
12465
|
}
|
|
12464
12466
|
}, u);
|
|
12465
|
-
},
|
|
12467
|
+
}, Z = {
|
|
12466
12468
|
begin: "\\\\[\\s\\S]",
|
|
12467
12469
|
relevance: 0
|
|
12468
12470
|
}, ie = {
|
|
@@ -12470,13 +12472,13 @@ function gg() {
|
|
|
12470
12472
|
begin: "'",
|
|
12471
12473
|
end: "'",
|
|
12472
12474
|
illegal: "\\n",
|
|
12473
|
-
contains: [
|
|
12475
|
+
contains: [Z]
|
|
12474
12476
|
}, Le = {
|
|
12475
12477
|
scope: "string",
|
|
12476
12478
|
begin: '"',
|
|
12477
12479
|
end: '"',
|
|
12478
12480
|
illegal: "\\n",
|
|
12479
|
-
contains: [
|
|
12481
|
+
contains: [Z]
|
|
12480
12482
|
}, We = {
|
|
12481
12483
|
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/
|
|
12482
12484
|
}, Te = function(u, f, O = {}) {
|
|
@@ -12562,12 +12564,12 @@ function gg() {
|
|
|
12562
12564
|
begin: /\/(?=[^/\n]*\/)/,
|
|
12563
12565
|
end: /\/[gimuy]*/,
|
|
12564
12566
|
contains: [
|
|
12565
|
-
|
|
12567
|
+
Z,
|
|
12566
12568
|
{
|
|
12567
12569
|
begin: /\[/,
|
|
12568
12570
|
end: /\]/,
|
|
12569
12571
|
relevance: 0,
|
|
12570
|
-
contains: [
|
|
12572
|
+
contains: [Z]
|
|
12571
12573
|
}
|
|
12572
12574
|
]
|
|
12573
12575
|
}, Hr = {
|
|
@@ -12586,7 +12588,7 @@ function gg() {
|
|
|
12586
12588
|
var zn = /* @__PURE__ */ Object.freeze({
|
|
12587
12589
|
__proto__: null,
|
|
12588
12590
|
APOS_STRING_MODE: ie,
|
|
12589
|
-
BACKSLASH_ESCAPE:
|
|
12591
|
+
BACKSLASH_ESCAPE: Z,
|
|
12590
12592
|
BINARY_NUMBER_MODE: Yr,
|
|
12591
12593
|
BINARY_NUMBER_RE: me,
|
|
12592
12594
|
COMMENT: Te,
|
|
@@ -12618,7 +12620,7 @@ function gg() {
|
|
|
12618
12620
|
PHRASAL_WORDS_MODE: We,
|
|
12619
12621
|
QUOTE_STRING_MODE: Le,
|
|
12620
12622
|
REGEXP_MODE: Kr,
|
|
12621
|
-
RE_STARTERS_RE:
|
|
12623
|
+
RE_STARTERS_RE: N,
|
|
12622
12624
|
SHEBANG: J,
|
|
12623
12625
|
TITLE_MODE: Hr,
|
|
12624
12626
|
UNDERSCORE_IDENT_RE: R,
|
|
@@ -12673,16 +12675,16 @@ function gg() {
|
|
|
12673
12675
|
"value"
|
|
12674
12676
|
// common variable name
|
|
12675
12677
|
], el = "keyword";
|
|
12676
|
-
function
|
|
12678
|
+
function ps(u, f, O = el) {
|
|
12677
12679
|
const Y = /* @__PURE__ */ Object.create(null);
|
|
12678
12680
|
return typeof u == "string" ? Ee(O, u.split(" ")) : Array.isArray(u) ? Ee(O, u) : Object.keys(u).forEach(function(Ae) {
|
|
12679
12681
|
Object.assign(
|
|
12680
12682
|
Y,
|
|
12681
|
-
|
|
12683
|
+
ps(u[Ae], f, Ae)
|
|
12682
12684
|
);
|
|
12683
12685
|
}), Y;
|
|
12684
|
-
function Ee(Ae,
|
|
12685
|
-
f && (
|
|
12686
|
+
function Ee(Ae, k) {
|
|
12687
|
+
f && (k = k.map((y) => y.toLowerCase())), k.forEach(function(y) {
|
|
12686
12688
|
const x = y.split("|");
|
|
12687
12689
|
Y[x[0]] = [Ae, tl(x[0], x[1])];
|
|
12688
12690
|
});
|
|
@@ -12694,19 +12696,19 @@ function gg() {
|
|
|
12694
12696
|
function nl(u) {
|
|
12695
12697
|
return Zr.includes(u.toLowerCase());
|
|
12696
12698
|
}
|
|
12697
|
-
const
|
|
12699
|
+
const _s = {}, Vt = (u) => {
|
|
12698
12700
|
console.error(u);
|
|
12699
|
-
},
|
|
12701
|
+
}, ds = (u, ...f) => {
|
|
12700
12702
|
console.log(`WARN: ${u}`, ...f);
|
|
12701
12703
|
}, Qt = (u, f) => {
|
|
12702
|
-
|
|
12704
|
+
_s[`${u}/${f}`] || (console.log(`Deprecated as of ${u}. ${f}`), _s[`${u}/${f}`] = !0);
|
|
12703
12705
|
}, qn = new Error();
|
|
12704
|
-
function
|
|
12706
|
+
function hs(u, f, { key: O }) {
|
|
12705
12707
|
let Y = 0;
|
|
12706
|
-
const Ee = u[O], Ae = {},
|
|
12708
|
+
const Ee = u[O], Ae = {}, k = {};
|
|
12707
12709
|
for (let y = 1; y <= f.length; y++)
|
|
12708
|
-
|
|
12709
|
-
u[O] =
|
|
12710
|
+
k[y + Y] = Ee[y], Ae[y + Y] = !0, Y += X(f[y - 1]);
|
|
12711
|
+
u[O] = k, u[O]._emit = Ae, u[O]._multi = !0;
|
|
12710
12712
|
}
|
|
12711
12713
|
function ol(u) {
|
|
12712
12714
|
if (Array.isArray(u.begin)) {
|
|
@@ -12714,7 +12716,7 @@ function gg() {
|
|
|
12714
12716
|
throw Vt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), qn;
|
|
12715
12717
|
if (typeof u.beginScope != "object" || u.beginScope === null)
|
|
12716
12718
|
throw Vt("beginScope must be object"), qn;
|
|
12717
|
-
|
|
12719
|
+
hs(u, u.begin, { key: "beginScope" }), u.begin = q(u.begin, { joinWith: "" });
|
|
12718
12720
|
}
|
|
12719
12721
|
}
|
|
12720
12722
|
function il(u) {
|
|
@@ -12723,7 +12725,7 @@ function gg() {
|
|
|
12723
12725
|
throw Vt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), qn;
|
|
12724
12726
|
if (typeof u.endScope != "object" || u.endScope === null)
|
|
12725
12727
|
throw Vt("endScope must be object"), qn;
|
|
12726
|
-
|
|
12728
|
+
hs(u, u.end, { key: "endScope" }), u.end = q(u.end, { joinWith: "" });
|
|
12727
12729
|
}
|
|
12728
12730
|
}
|
|
12729
12731
|
function sl(u) {
|
|
@@ -12733,9 +12735,9 @@ function gg() {
|
|
|
12733
12735
|
sl(u), typeof u.beginScope == "string" && (u.beginScope = { _wrap: u.beginScope }), typeof u.endScope == "string" && (u.endScope = { _wrap: u.endScope }), ol(u), il(u);
|
|
12734
12736
|
}
|
|
12735
12737
|
function rl(u) {
|
|
12736
|
-
function f(
|
|
12738
|
+
function f(k, y) {
|
|
12737
12739
|
return new RegExp(
|
|
12738
|
-
d(
|
|
12740
|
+
d(k),
|
|
12739
12741
|
"m" + (u.case_insensitive ? "i" : "") + (u.unicodeRegex ? "u" : "") + (y ? "g" : "")
|
|
12740
12742
|
);
|
|
12741
12743
|
}
|
|
@@ -12794,16 +12796,16 @@ function gg() {
|
|
|
12794
12796
|
return Re && (this.regexIndex += Re.position + 1, this.regexIndex === this.count && this.considerAll()), Re;
|
|
12795
12797
|
}
|
|
12796
12798
|
}
|
|
12797
|
-
function Ee(
|
|
12799
|
+
function Ee(k) {
|
|
12798
12800
|
const y = new Y();
|
|
12799
|
-
return
|
|
12801
|
+
return k.contains.forEach((x) => y.addRule(x.begin, { rule: x, type: "begin" })), k.terminatorEnd && y.addRule(k.terminatorEnd, { type: "end" }), k.illegal && y.addRule(k.illegal, { type: "illegal" }), y;
|
|
12800
12802
|
}
|
|
12801
|
-
function Ae(
|
|
12803
|
+
function Ae(k, y) {
|
|
12802
12804
|
const x = (
|
|
12803
12805
|
/** @type CompiledMode */
|
|
12804
|
-
|
|
12806
|
+
k
|
|
12805
12807
|
);
|
|
12806
|
-
if (
|
|
12808
|
+
if (k.isCompiled) return x;
|
|
12807
12809
|
[
|
|
12808
12810
|
Wr,
|
|
12809
12811
|
// do this early so compiler extensions generally don't have to worry about
|
|
@@ -12811,27 +12813,27 @@ function gg() {
|
|
|
12811
12813
|
qr,
|
|
12812
12814
|
al,
|
|
12813
12815
|
Qr
|
|
12814
|
-
].forEach((Ie) => Ie(
|
|
12816
|
+
].forEach((Ie) => Ie(k, y)), u.compilerExtensions.forEach((Ie) => Ie(k, y)), k.__beforeBegin = null, [
|
|
12815
12817
|
Xr,
|
|
12816
12818
|
// do this later so compiler extensions that come earlier have access to the
|
|
12817
12819
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
12818
12820
|
zr,
|
|
12819
12821
|
// default to 1 relevance if not specified
|
|
12820
12822
|
Jr
|
|
12821
|
-
].forEach((Ie) => Ie(
|
|
12823
|
+
].forEach((Ie) => Ie(k, y)), k.isCompiled = !0;
|
|
12822
12824
|
let Re = null;
|
|
12823
|
-
return typeof
|
|
12825
|
+
return typeof k.keywords == "object" && k.keywords.$pattern && (k.keywords = Object.assign({}, k.keywords), Re = k.keywords.$pattern, delete k.keywords.$pattern), Re = Re || /\w+/, k.keywords && (k.keywords = ps(k.keywords, u.case_insensitive)), x.keywordPatternRe = f(Re, !0), y && (k.begin || (k.begin = /\B|\b/), x.beginRe = f(x.begin), !k.end && !k.endsWithParent && (k.end = /\B|\b/), k.end && (x.endRe = f(x.end)), x.terminatorEnd = d(x.end) || "", k.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (k.end ? "|" : "") + y.terminatorEnd)), k.illegal && (x.illegalRe = f(
|
|
12824
12826
|
/** @type {RegExp | string} */
|
|
12825
|
-
|
|
12826
|
-
)),
|
|
12827
|
-
return ll(Ie === "self" ?
|
|
12828
|
-
})),
|
|
12827
|
+
k.illegal
|
|
12828
|
+
)), k.contains || (k.contains = []), k.contains = [].concat(...k.contains.map(function(Ie) {
|
|
12829
|
+
return ll(Ie === "self" ? k : Ie);
|
|
12830
|
+
})), k.contains.forEach(function(Ie) {
|
|
12829
12831
|
Ae(
|
|
12830
12832
|
/** @type Mode */
|
|
12831
12833
|
Ie,
|
|
12832
12834
|
x
|
|
12833
12835
|
);
|
|
12834
|
-
}),
|
|
12836
|
+
}), k.starts && Ae(k.starts, y), x.matcher = Ee(x), x;
|
|
12835
12837
|
}
|
|
12836
12838
|
if (u.compilerExtensions || (u.compilerExtensions = []), u.contains && u.contains.includes("self"))
|
|
12837
12839
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
@@ -12840,13 +12842,13 @@ function gg() {
|
|
|
12840
12842
|
u
|
|
12841
12843
|
);
|
|
12842
12844
|
}
|
|
12843
|
-
function
|
|
12844
|
-
return u ? u.endsWithParent ||
|
|
12845
|
+
function fs(u) {
|
|
12846
|
+
return u ? u.endsWithParent || fs(u.starts) : !1;
|
|
12845
12847
|
}
|
|
12846
12848
|
function ll(u) {
|
|
12847
12849
|
return u.variants && !u.cachedVariants && (u.cachedVariants = u.variants.map(function(f) {
|
|
12848
12850
|
return o(u, { variants: null }, f);
|
|
12849
|
-
})), u.cachedVariants ? u.cachedVariants :
|
|
12851
|
+
})), u.cachedVariants ? u.cachedVariants : fs(u) ? o(u, { starts: u.starts ? o(u.starts) : null }) : Object.isFrozen(u) ? o(u) : u;
|
|
12850
12852
|
}
|
|
12851
12853
|
var cl = "11.11.1";
|
|
12852
12854
|
class ul extends Error {
|
|
@@ -12854,10 +12856,10 @@ function gg() {
|
|
|
12854
12856
|
super(f), this.name = "HTMLInjectionError", this.html = O;
|
|
12855
12857
|
}
|
|
12856
12858
|
}
|
|
12857
|
-
const ni = n,
|
|
12859
|
+
const ni = n, gs = o, ms = Symbol("nomatch"), pl = 7, Ts = function(u) {
|
|
12858
12860
|
const f = /* @__PURE__ */ Object.create(null), O = /* @__PURE__ */ Object.create(null), Y = [];
|
|
12859
12861
|
let Ee = !0;
|
|
12860
|
-
const Ae = "Could not find the language '{}', did you forget to load/include a language module?",
|
|
12862
|
+
const Ae = "Could not find the language '{}', did you forget to load/include a language module?", k = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
12861
12863
|
let y = {
|
|
12862
12864
|
ignoreUnescapedHTML: !1,
|
|
12863
12865
|
throwUnescapedHTML: !1,
|
|
@@ -12879,7 +12881,7 @@ function gg() {
|
|
|
12879
12881
|
const z = y.languageDetectRe.exec(B);
|
|
12880
12882
|
if (z) {
|
|
12881
12883
|
const ae = Ct(z[1]);
|
|
12882
|
-
return ae || (
|
|
12884
|
+
return ae || (ds(Ae.replace("{}", z[1])), ds("Falling back to no-highlight mode for this block.", E)), ae ? z[1] : "no-highlight";
|
|
12883
12885
|
}
|
|
12884
12886
|
return B.split(/\s+/).find((ae) => x(ae) || Ct(ae));
|
|
12885
12887
|
}
|
|
@@ -12933,7 +12935,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
12933
12935
|
Me.addText(re);
|
|
12934
12936
|
return;
|
|
12935
12937
|
}
|
|
12936
|
-
b = vn(H.subLanguage, re, !0,
|
|
12938
|
+
b = vn(H.subLanguage, re, !0, Cs[H.subLanguage]), Cs[H.subLanguage] = /** @type {CompiledMode} */
|
|
12937
12939
|
b._top;
|
|
12938
12940
|
} else
|
|
12939
12941
|
b = ii(re, H.subLanguage.length ? H.subLanguage : null);
|
|
@@ -12945,7 +12947,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
12945
12947
|
function st(b, S) {
|
|
12946
12948
|
b !== "" && (Me.startScope(S), Me.addText(b), Me.endScope());
|
|
12947
12949
|
}
|
|
12948
|
-
function
|
|
12950
|
+
function Os(b, S) {
|
|
12949
12951
|
let j = 1;
|
|
12950
12952
|
const oe = S.length - 1;
|
|
12951
12953
|
for (; j <= oe; ) {
|
|
@@ -12957,11 +12959,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
12957
12959
|
we ? st(Tt, we) : (re = Tt, Nt(), re = ""), j++;
|
|
12958
12960
|
}
|
|
12959
12961
|
}
|
|
12960
|
-
function
|
|
12961
|
-
return b.scope && typeof b.scope == "string" && Me.openNode(at.classNameAliases[b.scope] || b.scope), b.beginScope && (b.beginScope._wrap ? (st(re, at.classNameAliases[b.beginScope._wrap] || b.beginScope._wrap), re = "") : b.beginScope._multi && (
|
|
12962
|
+
function bs(b, S) {
|
|
12963
|
+
return b.scope && typeof b.scope == "string" && Me.openNode(at.classNameAliases[b.scope] || b.scope), b.beginScope && (b.beginScope._wrap ? (st(re, at.classNameAliases[b.beginScope._wrap] || b.beginScope._wrap), re = "") : b.beginScope._multi && (Os(b.beginScope, S), re = "")), H = Object.create(b, { parent: { value: H } }), H;
|
|
12962
12964
|
}
|
|
12963
|
-
function
|
|
12964
|
-
let oe =
|
|
12965
|
+
function Is(b, S, j) {
|
|
12966
|
+
let oe = te(b.endRe, j);
|
|
12965
12967
|
if (oe) {
|
|
12966
12968
|
if (b["on:end"]) {
|
|
12967
12969
|
const we = new t(b);
|
|
@@ -12974,7 +12976,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
12974
12976
|
}
|
|
12975
12977
|
}
|
|
12976
12978
|
if (b.endsWithParent)
|
|
12977
|
-
return
|
|
12979
|
+
return Is(b.parent, S, j);
|
|
12978
12980
|
}
|
|
12979
12981
|
function bl(b) {
|
|
12980
12982
|
return H.matcher.regexIndex === 0 ? (re += b[0], 1) : (li = !0, 0);
|
|
@@ -12984,18 +12986,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
12984
12986
|
for (const Tt of we)
|
|
12985
12987
|
if (Tt && (Tt(b, oe), oe.isMatchIgnored))
|
|
12986
12988
|
return bl(S);
|
|
12987
|
-
return j.skip ? re += S : (j.excludeBegin && (re += S), Xe(), !j.returnBegin && !j.excludeBegin && (re = S)),
|
|
12989
|
+
return j.skip ? re += S : (j.excludeBegin && (re += S), Xe(), !j.returnBegin && !j.excludeBegin && (re = S)), bs(j, b), j.returnBegin ? 0 : S.length;
|
|
12988
12990
|
}
|
|
12989
12991
|
function yl(b) {
|
|
12990
|
-
const S = b[0], j = B.substring(b.index), oe =
|
|
12992
|
+
const S = b[0], j = B.substring(b.index), oe = Is(H, b, j);
|
|
12991
12993
|
if (!oe)
|
|
12992
|
-
return
|
|
12994
|
+
return ms;
|
|
12993
12995
|
const we = H;
|
|
12994
|
-
H.endScope && H.endScope._wrap ? (Xe(), st(S, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (Xe(),
|
|
12996
|
+
H.endScope && H.endScope._wrap ? (Xe(), st(S, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (Xe(), Os(H.endScope, b)) : we.skip ? re += S : (we.returnEnd || we.excludeEnd || (re += S), Xe(), we.excludeEnd && (re = S));
|
|
12995
12997
|
do
|
|
12996
12998
|
H.scope && Me.closeNode(), !H.skip && !H.subLanguage && (to += H.relevance), H = H.parent;
|
|
12997
12999
|
while (H !== oe.parent);
|
|
12998
|
-
return oe.starts &&
|
|
13000
|
+
return oe.starts && bs(oe.starts, b), we.returnEnd ? 0 : S.length;
|
|
12999
13001
|
}
|
|
13000
13002
|
function Cl() {
|
|
13001
13003
|
const b = [];
|
|
@@ -13004,7 +13006,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13004
13006
|
b.forEach((S) => Me.openNode(S));
|
|
13005
13007
|
}
|
|
13006
13008
|
let eo = {};
|
|
13007
|
-
function
|
|
13009
|
+
function ys(b, S) {
|
|
13008
13010
|
const j = S && S[0];
|
|
13009
13011
|
if (re += b, j == null)
|
|
13010
13012
|
return Xe(), 0;
|
|
@@ -13022,7 +13024,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13022
13024
|
throw oe.mode = H, oe;
|
|
13023
13025
|
} else if (S.type === "end") {
|
|
13024
13026
|
const oe = yl(S);
|
|
13025
|
-
if (oe !==
|
|
13027
|
+
if (oe !== ms)
|
|
13026
13028
|
return oe;
|
|
13027
13029
|
}
|
|
13028
13030
|
if (S.type === "illegal" && j === "")
|
|
@@ -13037,7 +13039,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13037
13039
|
throw Vt(Ae.replace("{}", E)), new Error('Unknown language: "' + E + '"');
|
|
13038
13040
|
const Nl = rl(at);
|
|
13039
13041
|
let ai = "", H = ae || Nl;
|
|
13040
|
-
const
|
|
13042
|
+
const Cs = {}, Me = new y.__emitter(y);
|
|
13041
13043
|
Cl();
|
|
13042
13044
|
let re = "", to = 0, Ft = 0, ri = 0, li = !1;
|
|
13043
13045
|
try {
|
|
@@ -13048,10 +13050,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13048
13050
|
ri++, li ? li = !1 : H.matcher.considerAll(), H.matcher.lastIndex = Ft;
|
|
13049
13051
|
const b = H.matcher.exec(B);
|
|
13050
13052
|
if (!b) break;
|
|
13051
|
-
const S = B.substring(Ft, b.index), j =
|
|
13053
|
+
const S = B.substring(Ft, b.index), j = ys(S, b);
|
|
13052
13054
|
Ft = b.index + j;
|
|
13053
13055
|
}
|
|
13054
|
-
|
|
13056
|
+
ys(B.substring(Ft));
|
|
13055
13057
|
}
|
|
13056
13058
|
return Me.finalize(), ai = Me.toHTML(), {
|
|
13057
13059
|
language: E,
|
|
@@ -13095,14 +13097,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13095
13097
|
value: ni(E),
|
|
13096
13098
|
illegal: !1,
|
|
13097
13099
|
relevance: 0,
|
|
13098
|
-
_top:
|
|
13100
|
+
_top: k,
|
|
13099
13101
|
_emitter: new y.__emitter(y)
|
|
13100
13102
|
};
|
|
13101
13103
|
return B._emitter.addText(E), B;
|
|
13102
13104
|
}
|
|
13103
13105
|
function ii(E, B) {
|
|
13104
13106
|
B = B || y.languages || Object.keys(f);
|
|
13105
|
-
const z = oi(E), ae = B.filter(Ct).filter(
|
|
13107
|
+
const z = oi(E), ae = B.filter(Ct).filter(vs).map(
|
|
13106
13108
|
(Xe) => vn(Xe, E, !1)
|
|
13107
13109
|
);
|
|
13108
13110
|
ae.unshift(z);
|
|
@@ -13151,7 +13153,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13151
13153
|
}), Qn("after:highlightElement", { el: E, result: Se, text: ae });
|
|
13152
13154
|
}
|
|
13153
13155
|
function dl(E) {
|
|
13154
|
-
y =
|
|
13156
|
+
y = gs(y, E);
|
|
13155
13157
|
}
|
|
13156
13158
|
const hl = () => {
|
|
13157
13159
|
Jn(), Qt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
@@ -13159,13 +13161,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13159
13161
|
function fl() {
|
|
13160
13162
|
Jn(), Qt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
13161
13163
|
}
|
|
13162
|
-
let
|
|
13164
|
+
let Es = !1;
|
|
13163
13165
|
function Jn() {
|
|
13164
13166
|
function E() {
|
|
13165
13167
|
Jn();
|
|
13166
13168
|
}
|
|
13167
13169
|
if (document.readyState === "loading") {
|
|
13168
|
-
|
|
13170
|
+
Es || window.addEventListener("DOMContentLoaded", E, !1), Es = !0;
|
|
13169
13171
|
return;
|
|
13170
13172
|
}
|
|
13171
13173
|
document.querySelectorAll(y.cssSelector).forEach(si);
|
|
@@ -13179,9 +13181,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13179
13181
|
Vt(ae);
|
|
13180
13182
|
else
|
|
13181
13183
|
throw ae;
|
|
13182
|
-
z =
|
|
13184
|
+
z = k;
|
|
13183
13185
|
}
|
|
13184
|
-
z.name || (z.name = E), f[E] = z, z.rawDefinition = B.bind(null, u), z.aliases &&
|
|
13186
|
+
z.name || (z.name = E), f[E] = z, z.rawDefinition = B.bind(null, u), z.aliases && As(z.aliases, { languageName: E });
|
|
13185
13187
|
}
|
|
13186
13188
|
function ml(E) {
|
|
13187
13189
|
delete f[E];
|
|
@@ -13194,12 +13196,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13194
13196
|
function Ct(E) {
|
|
13195
13197
|
return E = (E || "").toLowerCase(), f[E] || f[O[E]];
|
|
13196
13198
|
}
|
|
13197
|
-
function
|
|
13199
|
+
function As(E, { languageName: B }) {
|
|
13198
13200
|
typeof E == "string" && (E = [E]), E.forEach((z) => {
|
|
13199
13201
|
O[z.toLowerCase()] = B;
|
|
13200
13202
|
});
|
|
13201
13203
|
}
|
|
13202
|
-
function
|
|
13204
|
+
function vs(E) {
|
|
13203
13205
|
const B = Ct(E);
|
|
13204
13206
|
return B && !B.disableAutodetect;
|
|
13205
13207
|
}
|
|
@@ -13244,9 +13246,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13244
13246
|
unregisterLanguage: ml,
|
|
13245
13247
|
listLanguages: Tl,
|
|
13246
13248
|
getLanguage: Ct,
|
|
13247
|
-
registerAliases:
|
|
13248
|
-
autoDetection:
|
|
13249
|
-
inherit:
|
|
13249
|
+
registerAliases: As,
|
|
13250
|
+
autoDetection: vs,
|
|
13251
|
+
inherit: gs,
|
|
13250
13252
|
addPlugin: Al,
|
|
13251
13253
|
removePlugin: vl
|
|
13252
13254
|
}), u.debugMode = function() {
|
|
@@ -13263,11 +13265,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, ae = B), z ==
|
|
|
13263
13265
|
for (const E in zn)
|
|
13264
13266
|
typeof zn[E] == "object" && e(zn[E]);
|
|
13265
13267
|
return Object.assign(u, zn), u;
|
|
13266
|
-
}, Zt =
|
|
13267
|
-
return Zt.newInstance = () =>
|
|
13268
|
+
}, Zt = Ts({});
|
|
13269
|
+
return Zt.newInstance = () => Ts({}), Ri = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Ri;
|
|
13268
13270
|
}
|
|
13269
|
-
var
|
|
13270
|
-
const vo = /* @__PURE__ */ ql(
|
|
13271
|
+
var Tg = /* @__PURE__ */ mg();
|
|
13272
|
+
const vo = /* @__PURE__ */ ql(Tg), ya = "[A-Za-z$_][0-9A-Za-z$_]*", Eg = [
|
|
13271
13273
|
"as",
|
|
13272
13274
|
// for exports
|
|
13273
13275
|
"in",
|
|
@@ -13312,7 +13314,7 @@ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
|
|
|
13312
13314
|
"extends",
|
|
13313
13315
|
// It's reached stage 3, which is "recommended for implementation":
|
|
13314
13316
|
"using"
|
|
13315
|
-
],
|
|
13317
|
+
], Ag = [
|
|
13316
13318
|
"true",
|
|
13317
13319
|
"false",
|
|
13318
13320
|
"null",
|
|
@@ -13396,7 +13398,7 @@ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
|
|
|
13396
13398
|
"encodeURIComponent",
|
|
13397
13399
|
"escape",
|
|
13398
13400
|
"unescape"
|
|
13399
|
-
],
|
|
13401
|
+
], vg = [
|
|
13400
13402
|
"arguments",
|
|
13401
13403
|
"this",
|
|
13402
13404
|
"super",
|
|
@@ -13408,16 +13410,16 @@ const vo = /* @__PURE__ */ ql(mg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Tg = [
|
|
|
13408
13410
|
"module",
|
|
13409
13411
|
"global"
|
|
13410
13412
|
// Node.js
|
|
13411
|
-
],
|
|
13413
|
+
], Og = [].concat(
|
|
13412
13414
|
Fr,
|
|
13413
13415
|
wr,
|
|
13414
13416
|
Vr
|
|
13415
13417
|
);
|
|
13416
|
-
function
|
|
13418
|
+
function bg(e) {
|
|
13417
13419
|
const t = e.regex, n = (Te, { after: Ze }) => {
|
|
13418
13420
|
const mt = "</" + Te[0].slice(1);
|
|
13419
13421
|
return Te.input.indexOf(mt, Ze) !== -1;
|
|
13420
|
-
}, o =
|
|
13422
|
+
}, o = ya, i = {
|
|
13421
13423
|
begin: "<>",
|
|
13422
13424
|
end: "</>"
|
|
13423
13425
|
}, s = /<[A-Za-z0-9\\._:-]+\s*\/>/, a = {
|
|
@@ -13453,11 +13455,11 @@ function Og(e) {
|
|
|
13453
13455
|
}
|
|
13454
13456
|
}
|
|
13455
13457
|
}, l = {
|
|
13456
|
-
$pattern:
|
|
13457
|
-
keyword:
|
|
13458
|
-
literal:
|
|
13459
|
-
built_in:
|
|
13460
|
-
"variable.language":
|
|
13458
|
+
$pattern: ya,
|
|
13459
|
+
keyword: Eg,
|
|
13460
|
+
literal: Ag,
|
|
13461
|
+
built_in: Og,
|
|
13462
|
+
"variable.language": vg
|
|
13461
13463
|
}, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`, h = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
|
|
13462
13464
|
className: "number",
|
|
13463
13465
|
variants: [
|
|
@@ -13571,7 +13573,7 @@ function Og(e) {
|
|
|
13571
13573
|
e.C_BLOCK_COMMENT_MODE,
|
|
13572
13574
|
e.C_LINE_COMMENT_MODE
|
|
13573
13575
|
]
|
|
13574
|
-
},
|
|
13576
|
+
}, te = [
|
|
13575
13577
|
e.APOS_STRING_MODE,
|
|
13576
13578
|
e.QUOTE_STRING_MODE,
|
|
13577
13579
|
m,
|
|
@@ -13585,7 +13587,7 @@ function Og(e) {
|
|
|
13585
13587
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
13586
13588
|
// hljs.REGEXP_MODE
|
|
13587
13589
|
];
|
|
13588
|
-
g.contains =
|
|
13590
|
+
g.contains = te.concat({
|
|
13589
13591
|
// we need to pair up {} inside our subst to prevent
|
|
13590
13592
|
// it from ending too early by matching another }
|
|
13591
13593
|
begin: /\{/,
|
|
@@ -13593,7 +13595,7 @@ function Og(e) {
|
|
|
13593
13595
|
keywords: l,
|
|
13594
13596
|
contains: [
|
|
13595
13597
|
"self"
|
|
13596
|
-
].concat(
|
|
13598
|
+
].concat(te)
|
|
13597
13599
|
});
|
|
13598
13600
|
const _e = [].concat(X, g.contains), q = _e.concat([
|
|
13599
13601
|
// eat recursive parens in sub expressions
|
|
@@ -13705,13 +13707,13 @@ function Og(e) {
|
|
|
13705
13707
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
13706
13708
|
className: "variable.constant"
|
|
13707
13709
|
};
|
|
13708
|
-
function
|
|
13710
|
+
function N(Te) {
|
|
13709
13711
|
return t.concat("(?!", Te.join("|"), ")");
|
|
13710
13712
|
}
|
|
13711
13713
|
const J = {
|
|
13712
13714
|
match: t.concat(
|
|
13713
13715
|
/\b/,
|
|
13714
|
-
|
|
13716
|
+
N([
|
|
13715
13717
|
...Fr,
|
|
13716
13718
|
"super",
|
|
13717
13719
|
"import"
|
|
@@ -13721,7 +13723,7 @@ function Og(e) {
|
|
|
13721
13723
|
),
|
|
13722
13724
|
className: "title.function",
|
|
13723
13725
|
relevance: 0
|
|
13724
|
-
},
|
|
13726
|
+
}, Z = {
|
|
13725
13727
|
begin: t.concat(/\./, t.lookahead(
|
|
13726
13728
|
t.concat(o, /(?![0-9A-Za-z$_(])/)
|
|
13727
13729
|
)),
|
|
@@ -13898,7 +13900,7 @@ function Og(e) {
|
|
|
13898
13900
|
match: /\.\.\./,
|
|
13899
13901
|
relevance: 0
|
|
13900
13902
|
},
|
|
13901
|
-
|
|
13903
|
+
Z,
|
|
13902
13904
|
// hack: prevents detection of keywords in some circumstances
|
|
13903
13905
|
// .keyword()
|
|
13904
13906
|
// $keyword = x
|
|
@@ -13922,7 +13924,7 @@ function Og(e) {
|
|
|
13922
13924
|
]
|
|
13923
13925
|
};
|
|
13924
13926
|
}
|
|
13925
|
-
var
|
|
13927
|
+
var Ig = ft({ props: { code: { type: String, required: !0 }, language: { type: String, default: "" }, autodetect: { type: Boolean, default: !0 }, ignoreIllegals: { type: Boolean, default: !0 } }, setup: function(e) {
|
|
13926
13928
|
var t = Mt(e.language);
|
|
13927
13929
|
Lt(function() {
|
|
13928
13930
|
return e.language;
|
|
@@ -13947,16 +13949,16 @@ var bg = ft({ props: { code: { type: String, required: !0 }, language: { type: S
|
|
|
13947
13949
|
}) };
|
|
13948
13950
|
}, render: function() {
|
|
13949
13951
|
return Mi("pre", {}, [Mi("code", { class: this.className, innerHTML: this.highlightedCode })]);
|
|
13950
|
-
} }),
|
|
13951
|
-
const
|
|
13952
|
+
} }), yg = { component: Ig };
|
|
13953
|
+
const Cg = /* @__PURE__ */ ft({
|
|
13952
13954
|
__name: "index",
|
|
13953
13955
|
props: {
|
|
13954
13956
|
code: {}
|
|
13955
13957
|
},
|
|
13956
13958
|
setup(e) {
|
|
13957
13959
|
const t = e;
|
|
13958
|
-
vo.registerLanguage("javascript",
|
|
13959
|
-
const n =
|
|
13960
|
+
vo.registerLanguage("javascript", bg);
|
|
13961
|
+
const n = yg.component, { backgroundColor2: o } = Fo();
|
|
13960
13962
|
return (i, s) => {
|
|
13961
13963
|
const a = De("v-sheet");
|
|
13962
13964
|
return Ne(), pt(a, {
|
|
@@ -13974,7 +13976,7 @@ const yg = /* @__PURE__ */ ft({
|
|
|
13974
13976
|
}, 8, ["color"]);
|
|
13975
13977
|
};
|
|
13976
13978
|
}
|
|
13977
|
-
}),
|
|
13979
|
+
}), Ng = { class: "text-subtitle-1 ml-3" }, kg = /* @__PURE__ */ ft({
|
|
13978
13980
|
__name: "index",
|
|
13979
13981
|
setup(e) {
|
|
13980
13982
|
const { t } = Kn(), { sysBarAvail: n } = Pa(), { backgroundColor0: o, backgroundColor2: i } = Fo(), s = Mt(""), a = Be(() => {
|
|
@@ -14020,7 +14022,7 @@ const yg = /* @__PURE__ */ ft({
|
|
|
14020
14022
|
icon: W(Ua),
|
|
14021
14023
|
onClick: h[0] || (h[0] = (v) => c.value = !1)
|
|
14022
14024
|
}, null, 8, ["icon"]),
|
|
14023
|
-
lt("span",
|
|
14025
|
+
lt("span", Ng, xo(W(t)("x-block-lib.dlg.source.title")), 1),
|
|
14024
14026
|
Oe(m)
|
|
14025
14027
|
]),
|
|
14026
14028
|
_: 1
|
|
@@ -14028,7 +14030,7 @@ const yg = /* @__PURE__ */ ft({
|
|
|
14028
14030
|
lt("div", {
|
|
14029
14031
|
style: ct(a.value)
|
|
14030
14032
|
}, [
|
|
14031
|
-
Oe(
|
|
14033
|
+
Oe(Cg, { code: s.value }, null, 8, ["code"])
|
|
14032
14034
|
], 4)
|
|
14033
14035
|
]),
|
|
14034
14036
|
_: 1
|
|
@@ -14038,16 +14040,16 @@ const yg = /* @__PURE__ */ ft({
|
|
|
14038
14040
|
}, 8, ["modelValue"]);
|
|
14039
14041
|
};
|
|
14040
14042
|
}
|
|
14041
|
-
}),
|
|
14042
|
-
e.component("XBlockly",
|
|
14043
|
+
}), Lg = (e) => {
|
|
14044
|
+
e.component("XBlockly", gg), e.component("XSourceDlg", kg);
|
|
14043
14045
|
};
|
|
14044
|
-
async function
|
|
14046
|
+
async function Vg(e) {
|
|
14045
14047
|
return (await ur(/* @__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;
|
|
14046
14048
|
}
|
|
14047
|
-
const
|
|
14049
|
+
const Fg = { install: Lg };
|
|
14048
14050
|
export {
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14051
|
+
gg as XBlockly,
|
|
14052
|
+
Fg as default,
|
|
14053
|
+
Lg as install,
|
|
14054
|
+
Vg as loadLocaleMessageBlock
|
|
14053
14055
|
};
|