x-block-lib 0.6.8 → 0.6.9
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/{blockly-o2yt2sz2.js → blockly-djhb27mv.js} +996 -998
- package/dist/index.js +99 -102
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var Ll = Object.defineProperty;
|
|
|
11
11
|
var Sl = (e, t, n) => t in e ? Ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
12
12
|
var nt = (e, t, n) => Sl(e, typeof t != "symbol" ? t + "" : t, n);
|
|
13
13
|
import { getCurrentScope as Bl, onScopeDispose as Rl, computed as Be, toValue as Na, watch as Lt, shallowRef as Dl, getCurrentInstance as xo, onMounted as dn, defineComponent as gt, onBeforeUnmount as Oo, resolveComponent as Re, createBlock as dt, openBlock as ke, unref as X, withCtx as at, createVNode as Te, mergeProps as Zi, useModel as Di, toRefs as Ml, ref as Mt, reactive as Pl, h as Mi, nextTick as es, onUnmounted as Ul, isRef as kn, resolveDirective as xl, withDirectives as wl, createElementBlock as ct, normalizeStyle as pt, createElementVNode as ut, toDisplayString as wo, withModifiers as Ln, Fragment as ka, renderList as Vl, withKeys as La, createCommentVNode as $t, mergeModels as Ns } from "vue";
|
|
14
|
-
import { d as C, j as r, O as p, E as w, u as k, X as Fl, M as T, B as U, i as pe, F as $, a as
|
|
14
|
+
import { d as C, j as r, O as p, E as w, u as k, X as Fl, M as T, B as U, i as pe, F as $, a as Wt, b as Vo, c as Ie, C as Sa, e as Yl, P as Pi, N as ts, V as po, g as Pt, f as Kl, h as Ba, s as Hl, S as Ye, k as _o, l as rn, m as sn, n as no, o as ui, p as On, q as ks, G as pi, r as $l, t as Gl, v as _i, U as oo, D as io, w as en, x as jl, T as Fo, y as Ra, z as Wl, A as Xl, H as Ls, I as zl, J as ql } from "./blockly-djhb27mv.js";
|
|
15
15
|
import { openConfirmDlg as Jl, openPromptDlg as Ql, eventBus as _t, messageWarning as Da, useColor as Yo, useViewStack as Ko, useSystem as Ma, injectDark as Zl, injectLocale as ec } from "x-essential-lib";
|
|
16
16
|
import { pkgs as tc, elements as Ke, getPropTag as Ho } from "x-runtime-lib";
|
|
17
17
|
import { globalState as V } from "x-state-lib";
|
|
@@ -128,7 +128,7 @@ var Oc = "[object Null]", bc = "[object Undefined]", Bs = Ut ? Ut.toStringTag :
|
|
|
128
128
|
function Hn(e) {
|
|
129
129
|
return e == null ? e === void 0 ? bc : Oc : Bs && Bs in Object(e) ? Tc(e) : vc(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Gt(e) {
|
|
132
132
|
return e != null && typeof e == "object";
|
|
133
133
|
}
|
|
134
134
|
var Un = Array.isArray;
|
|
@@ -151,7 +151,7 @@ function kc(e) {
|
|
|
151
151
|
return !!Rs && Rs in e;
|
|
152
152
|
}
|
|
153
153
|
var Lc = Function.prototype, Sc = Lc.toString;
|
|
154
|
-
function
|
|
154
|
+
function Xt(e) {
|
|
155
155
|
if (e != null) {
|
|
156
156
|
try {
|
|
157
157
|
return Sc.call(e);
|
|
@@ -171,16 +171,16 @@ function wc(e) {
|
|
|
171
171
|
if (!$o(e) || kc(e))
|
|
172
172
|
return !1;
|
|
173
173
|
var t = wa(e) ? xc : Rc;
|
|
174
|
-
return t.test(
|
|
174
|
+
return t.test(Xt(e));
|
|
175
175
|
}
|
|
176
176
|
function Vc(e, t) {
|
|
177
177
|
return e == null ? void 0 : e[t];
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function zt(e, t) {
|
|
180
180
|
var n = Vc(e, t);
|
|
181
181
|
return wc(n) ? n : void 0;
|
|
182
182
|
}
|
|
183
|
-
var Ui =
|
|
183
|
+
var Ui = zt(mt, "WeakMap"), Ds = Object.create, Fc = /* @__PURE__ */ function() {
|
|
184
184
|
function e() {
|
|
185
185
|
}
|
|
186
186
|
return function(t) {
|
|
@@ -194,7 +194,7 @@ var Ui = qt(mt, "WeakMap"), Ds = Object.create, Fc = /* @__PURE__ */ function()
|
|
|
194
194
|
};
|
|
195
195
|
}(), Ms = function() {
|
|
196
196
|
try {
|
|
197
|
-
var e =
|
|
197
|
+
var e = zt(Object, "defineProperty");
|
|
198
198
|
return e({}, "", {}), e;
|
|
199
199
|
} catch {
|
|
200
200
|
}
|
|
@@ -244,12 +244,12 @@ function Qc(e, t) {
|
|
|
244
244
|
}
|
|
245
245
|
var Zc = "[object Arguments]";
|
|
246
246
|
function Ps(e) {
|
|
247
|
-
return
|
|
247
|
+
return Gt(e) && Hn(e) == Zc;
|
|
248
248
|
}
|
|
249
249
|
var Ya = Object.prototype, eu = Ya.hasOwnProperty, tu = Ya.propertyIsEnumerable, nu = Ps(/* @__PURE__ */ function() {
|
|
250
250
|
return arguments;
|
|
251
251
|
}()) ? Ps : function(e) {
|
|
252
|
-
return
|
|
252
|
+
return Gt(e) && eu.call(e, "callee") && !tu.call(e, "callee");
|
|
253
253
|
};
|
|
254
254
|
function ou() {
|
|
255
255
|
return !1;
|
|
@@ -258,7 +258,7 @@ var Ka = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
258
258
|
_e[vu] = _e[Ou] = _e[bu] = _e[Iu] = _e[yu] = _e[Cu] = _e[Nu] = _e[ku] = _e[Lu] = !0;
|
|
259
259
|
_e[au] = _e[ru] = _e[Eu] = _e[lu] = _e[Au] = _e[cu] = _e[uu] = _e[pu] = _e[_u] = _e[du] = _e[hu] = _e[fu] = _e[gu] = _e[mu] = _e[Tu] = !1;
|
|
260
260
|
function Su(e) {
|
|
261
|
-
return
|
|
261
|
+
return Gt(e) && Va(e.length) && !!_e[Hn(e)];
|
|
262
262
|
}
|
|
263
263
|
function os(e) {
|
|
264
264
|
return function(t) {
|
|
@@ -299,7 +299,7 @@ function wu(e) {
|
|
|
299
299
|
function Vu(e) {
|
|
300
300
|
return qc(e) ? Mu(e) : wu(e);
|
|
301
301
|
}
|
|
302
|
-
var xn =
|
|
302
|
+
var xn = zt(Object, "create");
|
|
303
303
|
function Fu() {
|
|
304
304
|
this.__data__ = xn ? xn(null) : {}, this.size = 0;
|
|
305
305
|
}
|
|
@@ -326,18 +326,18 @@ function qu(e, t) {
|
|
|
326
326
|
var n = this.__data__;
|
|
327
327
|
return this.size += this.has(e) ? 0 : 1, n[e] = xn && t === void 0 ? zu : t, this;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function jt(e) {
|
|
330
330
|
var t = -1, n = e == null ? 0 : e.length;
|
|
331
331
|
for (this.clear(); ++t < n; ) {
|
|
332
332
|
var o = e[t];
|
|
333
333
|
this.set(o[0], o[1]);
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
336
|
+
jt.prototype.clear = Fu;
|
|
337
|
+
jt.prototype.delete = Yu;
|
|
338
|
+
jt.prototype.get = Gu;
|
|
339
|
+
jt.prototype.has = Xu;
|
|
340
|
+
jt.prototype.set = qu;
|
|
341
341
|
function Ju() {
|
|
342
342
|
this.__data__ = [], this.size = 0;
|
|
343
343
|
}
|
|
@@ -378,12 +378,12 @@ It.prototype.delete = ep;
|
|
|
378
378
|
It.prototype.get = tp;
|
|
379
379
|
It.prototype.has = np;
|
|
380
380
|
It.prototype.set = op;
|
|
381
|
-
var wn =
|
|
381
|
+
var wn = zt(mt, "Map");
|
|
382
382
|
function ip() {
|
|
383
383
|
this.size = 0, this.__data__ = {
|
|
384
|
-
hash: new
|
|
384
|
+
hash: new jt(),
|
|
385
385
|
map: new (wn || It)(),
|
|
386
|
-
string: new
|
|
386
|
+
string: new jt()
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
function sp(e) {
|
|
@@ -408,18 +408,18 @@ function cp(e, t) {
|
|
|
408
408
|
var n = jo(this, e), o = n.size;
|
|
409
409
|
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function qt(e) {
|
|
412
412
|
var t = -1, n = e == null ? 0 : e.length;
|
|
413
413
|
for (this.clear(); ++t < n; ) {
|
|
414
414
|
var o = e[t];
|
|
415
415
|
this.set(o[0], o[1]);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
418
|
+
qt.prototype.clear = ip;
|
|
419
|
+
qt.prototype.delete = ap;
|
|
420
|
+
qt.prototype.get = rp;
|
|
421
|
+
qt.prototype.has = lp;
|
|
422
|
+
qt.prototype.set = cp;
|
|
423
423
|
function up(e, t) {
|
|
424
424
|
for (var n = -1, o = t.length, i = e.length; ++n < o; )
|
|
425
425
|
e[i + n] = t[n];
|
|
@@ -446,7 +446,7 @@ function mp(e, t) {
|
|
|
446
446
|
var o = n.__data__;
|
|
447
447
|
if (!wn || o.length < gp - 1)
|
|
448
448
|
return o.push([e, t]), this.size = ++n.size, this;
|
|
449
|
-
n = this.__data__ = new
|
|
449
|
+
n = this.__data__ = new qt(o);
|
|
450
450
|
}
|
|
451
451
|
return n.set(e, t), this.size = n.size, this;
|
|
452
452
|
}
|
|
@@ -486,9 +486,9 @@ function yp(e, t, n) {
|
|
|
486
486
|
function xi(e) {
|
|
487
487
|
return yp(e, Vu, Ip);
|
|
488
488
|
}
|
|
489
|
-
var wi =
|
|
489
|
+
var wi = zt(mt, "DataView"), Vi = zt(mt, "Promise"), Fi = zt(mt, "Set"), Ks = "[object Map]", Cp = "[object Object]", Hs = "[object Promise]", $s = "[object Set]", Gs = "[object WeakMap]", js = "[object DataView]", Np = Xt(wi), kp = Xt(wn), Lp = Xt(Vi), Sp = Xt(Fi), Bp = Xt(Ui), st = Hn;
|
|
490
490
|
(wi && st(new wi(new ArrayBuffer(1))) != js || wn && st(new wn()) != Ks || Vi && st(Vi.resolve()) != Hs || Fi && st(new Fi()) != $s || Ui && st(new Ui()) != Gs) && (st = function(e) {
|
|
491
|
-
var t = Hn(e), n = t == Cp ? e.constructor : void 0, o = n ?
|
|
491
|
+
var t = Hn(e), n = t == Cp ? e.constructor : void 0, o = n ? Xt(n) : "";
|
|
492
492
|
if (o)
|
|
493
493
|
switch (o) {
|
|
494
494
|
case Np:
|
|
@@ -570,11 +570,11 @@ function a_(e) {
|
|
|
570
570
|
}
|
|
571
571
|
var r_ = "[object Map]";
|
|
572
572
|
function l_(e) {
|
|
573
|
-
return
|
|
573
|
+
return Gt(e) && st(e) == r_;
|
|
574
574
|
}
|
|
575
575
|
var zs = hn && hn.isMap, c_ = zs ? os(zs) : l_, u_ = "[object Set]";
|
|
576
576
|
function p_(e) {
|
|
577
|
-
return
|
|
577
|
+
return Gt(e) && st(e) == u_;
|
|
578
578
|
}
|
|
579
579
|
var qs = hn && hn.isSet, __ = qs ? os(qs) : p_, Wa = "[object Arguments]", d_ = "[object Array]", h_ = "[object Boolean]", f_ = "[object Date]", g_ = "[object Error]", Xa = "[object Function]", m_ = "[object GeneratorFunction]", T_ = "[object Map]", E_ = "[object Number]", za = "[object Object]", A_ = "[object RegExp]", v_ = "[object Set]", O_ = "[object String]", b_ = "[object Symbol]", I_ = "[object WeakMap]", y_ = "[object ArrayBuffer]", C_ = "[object DataView]", N_ = "[object Float32Array]", k_ = "[object Float64Array]", L_ = "[object Int8Array]", S_ = "[object Int16Array]", B_ = "[object Int32Array]", R_ = "[object Uint8Array]", D_ = "[object Uint8ClampedArray]", M_ = "[object Uint16Array]", P_ = "[object Uint32Array]", ue = {};
|
|
580
580
|
ue[Wa] = ue[d_] = ue[y_] = ue[C_] = ue[h_] = ue[f_] = ue[N_] = ue[k_] = ue[L_] = ue[S_] = ue[B_] = ue[T_] = ue[E_] = ue[za] = ue[A_] = ue[v_] = ue[O_] = ue[b_] = ue[R_] = ue[D_] = ue[M_] = ue[P_] = !0;
|
|
@@ -627,7 +627,7 @@ function F_(e) {
|
|
|
627
627
|
}
|
|
628
628
|
function yo(e) {
|
|
629
629
|
var t = -1, n = e == null ? 0 : e.length;
|
|
630
|
-
for (this.__data__ = new
|
|
630
|
+
for (this.__data__ = new qt(); ++t < n; )
|
|
631
631
|
this.add(e[t]);
|
|
632
632
|
}
|
|
633
633
|
yo.prototype.add = yo.prototype.push = V_;
|
|
@@ -777,7 +777,7 @@ function dd(e, t, n, o, i, s) {
|
|
|
777
777
|
return g ? (s || (s = new At()), ud(e, t, n, o, i, s)) : !1;
|
|
778
778
|
}
|
|
779
779
|
function Qa(e, t, n, o, i) {
|
|
780
|
-
return e === t ? !0 : e == null || t == null || !
|
|
780
|
+
return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : dd(e, t, n, o, Qa, i);
|
|
781
781
|
}
|
|
782
782
|
function we(e, t) {
|
|
783
783
|
return Qa(e, t);
|
|
@@ -3583,7 +3583,7 @@ const qd = {
|
|
|
3583
3583
|
};
|
|
3584
3584
|
U.set_func_output_v1 = qd;
|
|
3585
3585
|
r.forBlock.set_func_output_v1 = function(e) {
|
|
3586
|
-
const t = r.quote_, n = e, {
|
|
3586
|
+
const t = r.quote_, n = e, { name: o, type: i } = n.output;
|
|
3587
3587
|
let s = r.valueToCode(n, "VALUE", p.ATOMIC);
|
|
3588
3588
|
if (s === void 0)
|
|
3589
3589
|
switch (i) {
|
|
@@ -3852,7 +3852,7 @@ const th = {
|
|
|
3852
3852
|
]),
|
|
3853
3853
|
"TYPE"
|
|
3854
3854
|
), this.setMutator(
|
|
3855
|
-
new
|
|
3855
|
+
new Wt.MutatorIcon(
|
|
3856
3856
|
["cond_logic_item_v1"],
|
|
3857
3857
|
this
|
|
3858
3858
|
)
|
|
@@ -4109,7 +4109,7 @@ const ah = {
|
|
|
4109
4109
|
new $(() => this.genTableOpts_()),
|
|
4110
4110
|
"TABLE"
|
|
4111
4111
|
), this.setMutator(
|
|
4112
|
-
new
|
|
4112
|
+
new Wt.MutatorIcon(
|
|
4113
4113
|
["select_column_item_v1"],
|
|
4114
4114
|
this
|
|
4115
4115
|
)
|
|
@@ -4421,7 +4421,7 @@ const uh = {
|
|
|
4421
4421
|
new $(() => this.genTableOpts_()),
|
|
4422
4422
|
"TABLE"
|
|
4423
4423
|
), this.setMutator(
|
|
4424
|
-
new
|
|
4424
|
+
new Wt.MutatorIcon(
|
|
4425
4425
|
["update_column_item_v1"],
|
|
4426
4426
|
this
|
|
4427
4427
|
)
|
|
@@ -4466,7 +4466,7 @@ const uh = {
|
|
|
4466
4466
|
genColumnOpts_: function() {
|
|
4467
4467
|
const e = [], t = xe(this.space.id, this.table.id);
|
|
4468
4468
|
return t == null || t.columns.forEach((n) => {
|
|
4469
|
-
e.push([n.name, n.name]);
|
|
4469
|
+
n.name !== "rowid" && e.push([n.name, n.name]);
|
|
4470
4470
|
}), Ae(e);
|
|
4471
4471
|
},
|
|
4472
4472
|
onchange: function(e) {
|
|
@@ -4674,7 +4674,7 @@ U.list_create_item_v1 = hh;
|
|
|
4674
4674
|
const fh = {
|
|
4675
4675
|
init: function() {
|
|
4676
4676
|
this.itemCount_ = 0, this.setMutator(
|
|
4677
|
-
new
|
|
4677
|
+
new Wt.MutatorIcon(
|
|
4678
4678
|
["list_create_item_v1"],
|
|
4679
4679
|
this
|
|
4680
4680
|
)
|
|
@@ -6288,7 +6288,7 @@ U.object_create_item_v1 = Ch;
|
|
|
6288
6288
|
const Nh = {
|
|
6289
6289
|
init: function() {
|
|
6290
6290
|
this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
|
|
6291
|
-
new
|
|
6291
|
+
new Wt.MutatorIcon(
|
|
6292
6292
|
["object_create_item_v1"],
|
|
6293
6293
|
this
|
|
6294
6294
|
)
|
|
@@ -6655,7 +6655,7 @@ const Sh = {
|
|
|
6655
6655
|
Pi.findLegalName("", this)
|
|
6656
6656
|
);
|
|
6657
6657
|
e.setValidator(Pi.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
|
|
6658
|
-
new
|
|
6658
|
+
new Wt.MutatorIcon(
|
|
6659
6659
|
["procedure_def_item_v1"],
|
|
6660
6660
|
this
|
|
6661
6661
|
)
|
|
@@ -7121,7 +7121,7 @@ const Mh = k.xml, Ph = {
|
|
|
7121
7121
|
this.removeInput("ADD" + e);
|
|
7122
7122
|
}
|
|
7123
7123
|
}, Uh = function() {
|
|
7124
|
-
this.itemCount_ = 2, this.updateShape_(), this.setMutator(new
|
|
7124
|
+
this.itemCount_ = 2, this.updateShape_(), this.setMutator(new Wt.MutatorIcon(["text_join_item_v1"], this));
|
|
7125
7125
|
};
|
|
7126
7126
|
Ie.registerMutator(
|
|
7127
7127
|
"text_join_mutator_v1",
|
|
@@ -7665,25 +7665,25 @@ function Yh() {
|
|
|
7665
7665
|
const No = {
|
|
7666
7666
|
name: "DATA_CATEGORY",
|
|
7667
7667
|
callback: Yh
|
|
7668
|
-
},
|
|
7668
|
+
}, tn = k.xml;
|
|
7669
7669
|
function Kh(e) {
|
|
7670
7670
|
const t = [];
|
|
7671
7671
|
if (e === "flow") {
|
|
7672
7672
|
{
|
|
7673
|
-
const n =
|
|
7673
|
+
const n = tn.createElement("block");
|
|
7674
7674
|
n.setAttribute("type", "on_flow_state_event_v1"), t.push(n);
|
|
7675
7675
|
}
|
|
7676
7676
|
{
|
|
7677
|
-
const n =
|
|
7677
|
+
const n = tn.createElement("block");
|
|
7678
7678
|
n.setAttribute("type", "compute_debug_trace_v1");
|
|
7679
7679
|
{
|
|
7680
|
-
const o =
|
|
7680
|
+
const o = tn.createElement("value");
|
|
7681
7681
|
o.setAttribute("name", "OBJECT");
|
|
7682
7682
|
{
|
|
7683
|
-
const i =
|
|
7683
|
+
const i = tn.createElement("shadow");
|
|
7684
7684
|
i.setAttribute("type", "text_v1");
|
|
7685
7685
|
{
|
|
7686
|
-
const s =
|
|
7686
|
+
const s = tn.createElement("field");
|
|
7687
7687
|
s.setAttribute("name", "TEXT"), i.appendChild(s);
|
|
7688
7688
|
}
|
|
7689
7689
|
o.appendChild(i);
|
|
@@ -7694,7 +7694,7 @@ function Kh(e) {
|
|
|
7694
7694
|
}
|
|
7695
7695
|
} else if (e === "func") {
|
|
7696
7696
|
if (gn("func").length > 0) {
|
|
7697
|
-
const n =
|
|
7697
|
+
const n = tn.createElement("block");
|
|
7698
7698
|
n.setAttribute("type", "call_func_internal_v1"), t.push(n);
|
|
7699
7699
|
}
|
|
7700
7700
|
} else
|
|
@@ -7998,7 +7998,7 @@ class Wh {
|
|
|
7998
7998
|
return T.CROSS_TAB_COPY ? T.CROSS_TAB_COPY : "Copy";
|
|
7999
7999
|
},
|
|
8000
8000
|
preconditionFn: function() {
|
|
8001
|
-
const n =
|
|
8001
|
+
const n = sn();
|
|
8002
8002
|
return !n || !no(n) || !n.isDeletable() || !ui(n) || !n.isMovable() || !On(n) ? "disabled" : "enabled";
|
|
8003
8003
|
},
|
|
8004
8004
|
callback: function(n) {
|
|
@@ -8008,11 +8008,11 @@ class Wh {
|
|
|
8008
8008
|
JSON.stringify((o = n.block) == null ? void 0 : o.toCopyData())
|
|
8009
8009
|
);
|
|
8010
8010
|
},
|
|
8011
|
-
scopeType:
|
|
8011
|
+
scopeType: rn.ScopeType.BLOCK,
|
|
8012
8012
|
id: "blockCopyToStorage",
|
|
8013
8013
|
weight: 0
|
|
8014
8014
|
};
|
|
8015
|
-
|
|
8015
|
+
rn.registry.register(t);
|
|
8016
8016
|
}
|
|
8017
8017
|
blockPasteFromStorageContextMenu() {
|
|
8018
8018
|
const t = {
|
|
@@ -8034,11 +8034,11 @@ class Wh {
|
|
|
8034
8034
|
const i = JSON.parse(o);
|
|
8035
8035
|
i && n.workspace && ks.paste(i, n.workspace);
|
|
8036
8036
|
},
|
|
8037
|
-
scopeType:
|
|
8037
|
+
scopeType: rn.ScopeType.WORKSPACE,
|
|
8038
8038
|
id: "blockPasteFromStorage",
|
|
8039
8039
|
weight: 0
|
|
8040
8040
|
};
|
|
8041
|
-
|
|
8041
|
+
rn.registry.register(t);
|
|
8042
8042
|
}
|
|
8043
8043
|
blockCopyToStorageShortcut() {
|
|
8044
8044
|
const t = Ye.registry.createSerializedKey(
|
|
@@ -8055,12 +8055,12 @@ class Wh {
|
|
|
8055
8055
|
preconditionFn: function(s) {
|
|
8056
8056
|
if (s.options.readOnly || pi.inProgress())
|
|
8057
8057
|
return !1;
|
|
8058
|
-
const a =
|
|
8058
|
+
const a = sn();
|
|
8059
8059
|
return !(!a || !no(a) || !a.isDeletable() || !ui(a) || !a.isMovable() || !On(a));
|
|
8060
8060
|
},
|
|
8061
8061
|
callback: function(s, a) {
|
|
8062
8062
|
a.preventDefault();
|
|
8063
|
-
const l =
|
|
8063
|
+
const l = sn();
|
|
8064
8064
|
if (!l || !On(l))
|
|
8065
8065
|
return !1;
|
|
8066
8066
|
const c = l.toCopyData();
|
|
@@ -8085,12 +8085,12 @@ class Wh {
|
|
|
8085
8085
|
preconditionFn: function(s) {
|
|
8086
8086
|
if (s.options.readOnly || pi.inProgress())
|
|
8087
8087
|
return !1;
|
|
8088
|
-
const a =
|
|
8088
|
+
const a = sn();
|
|
8089
8089
|
return !(!a || !no(a) || !a.isDeletable() || !ui(a) || !a.isMovable() || !On(a) || a.workspace.isFlyout);
|
|
8090
8090
|
},
|
|
8091
8091
|
callback: function(s, a) {
|
|
8092
8092
|
a.preventDefault();
|
|
8093
|
-
const l =
|
|
8093
|
+
const l = sn();
|
|
8094
8094
|
if (!l || !no(l) || !l.isDeletable() || !On(l))
|
|
8095
8095
|
return !1;
|
|
8096
8096
|
const c = l.toCopyData();
|
|
@@ -8136,7 +8136,7 @@ class Wh {
|
|
|
8136
8136
|
}
|
|
8137
8137
|
class Xh {
|
|
8138
8138
|
init() {
|
|
8139
|
-
const t =
|
|
8139
|
+
const t = rn.registry.getItem("cleanWorkspace");
|
|
8140
8140
|
t && (t.callback = function(n) {
|
|
8141
8141
|
const o = n.workspace;
|
|
8142
8142
|
if (!o)
|
|
@@ -8160,7 +8160,7 @@ function _r(e) {
|
|
|
8160
8160
|
}
|
|
8161
8161
|
class zh {
|
|
8162
8162
|
init() {
|
|
8163
|
-
const t =
|
|
8163
|
+
const t = rn.registry.getItem("blockDisable");
|
|
8164
8164
|
t && (t.preconditionFn = function(n) {
|
|
8165
8165
|
const o = n.block;
|
|
8166
8166
|
return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || _r(o) ? "disabled" : "enabled" : "hidden";
|
|
@@ -8933,7 +8933,7 @@ class dr extends _i {
|
|
|
8933
8933
|
), c.style.backgroundColor = o[l], o[l] === i && (c.className = "blocklyColourSelected", this.highlightedIndex = l);
|
|
8934
8934
|
}
|
|
8935
8935
|
this.boundEvents.push(
|
|
8936
|
-
|
|
8936
|
+
en.conditionalBind(
|
|
8937
8937
|
s,
|
|
8938
8938
|
"pointerdown",
|
|
8939
8939
|
this,
|
|
@@ -8941,7 +8941,7 @@ class dr extends _i {
|
|
|
8941
8941
|
!0
|
|
8942
8942
|
)
|
|
8943
8943
|
), this.boundEvents.push(
|
|
8944
|
-
|
|
8944
|
+
en.conditionalBind(
|
|
8945
8945
|
s,
|
|
8946
8946
|
"pointermove",
|
|
8947
8947
|
this,
|
|
@@ -8949,7 +8949,7 @@ class dr extends _i {
|
|
|
8949
8949
|
!0
|
|
8950
8950
|
)
|
|
8951
8951
|
), this.boundEvents.push(
|
|
8952
|
-
|
|
8952
|
+
en.conditionalBind(
|
|
8953
8953
|
s,
|
|
8954
8954
|
"pointerenter",
|
|
8955
8955
|
this,
|
|
@@ -8957,7 +8957,7 @@ class dr extends _i {
|
|
|
8957
8957
|
!0
|
|
8958
8958
|
)
|
|
8959
8959
|
), this.boundEvents.push(
|
|
8960
|
-
|
|
8960
|
+
en.conditionalBind(
|
|
8961
8961
|
s,
|
|
8962
8962
|
"pointerleave",
|
|
8963
8963
|
this,
|
|
@@ -8965,7 +8965,7 @@ class dr extends _i {
|
|
|
8965
8965
|
!0
|
|
8966
8966
|
)
|
|
8967
8967
|
), this.boundEvents.push(
|
|
8968
|
-
|
|
8968
|
+
en.conditionalBind(
|
|
8969
8969
|
s,
|
|
8970
8970
|
"keydown",
|
|
8971
8971
|
this,
|
|
@@ -8977,7 +8977,7 @@ class dr extends _i {
|
|
|
8977
8977
|
/** Disposes of events and DOM-references belonging to the colour editor. */
|
|
8978
8978
|
dropdownDispose() {
|
|
8979
8979
|
for (const n of this.boundEvents)
|
|
8980
|
-
|
|
8980
|
+
en.unbind(n);
|
|
8981
8981
|
this.boundEvents.length = 0, this.picker = null, this.highlightedIndex = null;
|
|
8982
8982
|
}
|
|
8983
8983
|
static fromJson(n) {
|
|
@@ -10064,10 +10064,7 @@ const zo = {
|
|
|
10064
10064
|
return;
|
|
10065
10065
|
}
|
|
10066
10066
|
const i = Pt();
|
|
10067
|
-
|
|
10068
|
-
return;
|
|
10069
|
-
const s = Gt.registry.getItem("cleanWorkspace");
|
|
10070
|
-
s && s.callback({ workspace: i }, new PointerEvent("dummy"));
|
|
10067
|
+
i && i.cleanUp();
|
|
10071
10068
|
};
|
|
10072
10069
|
return dn(() => {
|
|
10073
10070
|
_t.on("cleanWorkspace", o);
|
|
@@ -10560,16 +10557,16 @@ function Rf(e) {
|
|
|
10560
10557
|
function Df(e, t, n, o) {
|
|
10561
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;
|
|
10562
10559
|
}
|
|
10563
|
-
var
|
|
10560
|
+
var nn = [], Ii = {
|
|
10564
10561
|
initializeByDefault: !0
|
|
10565
10562
|
}, Wn = {
|
|
10566
10563
|
mount: function(e) {
|
|
10567
10564
|
for (var t in Ii)
|
|
10568
10565
|
Ii.hasOwnProperty(t) && !(t in e) && (e[t] = Ii[t]);
|
|
10569
|
-
|
|
10566
|
+
nn.forEach(function(n) {
|
|
10570
10567
|
if (n.pluginName === e.pluginName)
|
|
10571
10568
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
10572
|
-
}),
|
|
10569
|
+
}), nn.push(e);
|
|
10573
10570
|
},
|
|
10574
10571
|
pluginEvent: function(e, t, n) {
|
|
10575
10572
|
var o = this;
|
|
@@ -10577,7 +10574,7 @@ var on = [], Ii = {
|
|
|
10577
10574
|
o.eventCanceled = !0;
|
|
10578
10575
|
};
|
|
10579
10576
|
var i = e + "Global";
|
|
10580
|
-
|
|
10577
|
+
nn.forEach(function(s) {
|
|
10581
10578
|
t[s.pluginName] && (t[s.pluginName][i] && t[s.pluginName][i](ft({
|
|
10582
10579
|
sortable: t
|
|
10583
10580
|
}, n)), t.options[s.pluginName] && t[s.pluginName][e] && t[s.pluginName][e](ft({
|
|
@@ -10586,7 +10583,7 @@ var on = [], Ii = {
|
|
|
10586
10583
|
});
|
|
10587
10584
|
},
|
|
10588
10585
|
initializePlugins: function(e, t, n, o) {
|
|
10589
|
-
|
|
10586
|
+
nn.forEach(function(a) {
|
|
10590
10587
|
var l = a.pluginName;
|
|
10591
10588
|
if (!(!e.options[l] && !a.initializeByDefault)) {
|
|
10592
10589
|
var c = new a(e, t, e.options);
|
|
@@ -10601,13 +10598,13 @@ var on = [], Ii = {
|
|
|
10601
10598
|
},
|
|
10602
10599
|
getEventProperties: function(e, t) {
|
|
10603
10600
|
var n = {};
|
|
10604
|
-
return
|
|
10601
|
+
return nn.forEach(function(o) {
|
|
10605
10602
|
typeof o.eventProperties == "function" && bt(n, o.eventProperties.call(t[o.pluginName], e));
|
|
10606
10603
|
}), n;
|
|
10607
10604
|
},
|
|
10608
10605
|
modifyOption: function(e, t, n) {
|
|
10609
10606
|
var o;
|
|
10610
|
-
return
|
|
10607
|
+
return nn.forEach(function(i) {
|
|
10611
10608
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (o = i.optionListeners[t].call(e[i.pluginName], n));
|
|
10612
10609
|
}), o;
|
|
10613
10610
|
}
|
|
@@ -10674,7 +10671,7 @@ function Ge(e) {
|
|
|
10674
10671
|
newDraggableIndex: kt
|
|
10675
10672
|
}, e));
|
|
10676
10673
|
}
|
|
10677
|
-
var A, me, K, de, Ht, mo, he, St, cn, Je, Dn, kt, ro, Ue,
|
|
10674
|
+
var A, me, K, de, Ht, mo, he, St, cn, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo = [], Yt, ot, yi, Ci, Ta, Ea, yn, on, Mn, Pn = !1, lo = !1, To, Fe, Ni = [], Xi = !1, Po = [], ni = typeof document < "u", co = Ar, Aa = jn || yt ? "cssFloat" : "float", Uf = ni && !vr && !Ar && "draggable" in document.createElement("div"), kr = function() {
|
|
10678
10675
|
if (ni) {
|
|
10679
10676
|
if (yt)
|
|
10680
10677
|
return !1;
|
|
@@ -10809,7 +10806,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10809
10806
|
{
|
|
10810
10807
|
constructor: P,
|
|
10811
10808
|
_isOutsideThisEl: function(e) {
|
|
10812
|
-
!this.el.contains(e) && e !== this.el && (
|
|
10809
|
+
!this.el.contains(e) && e !== this.el && (on = null);
|
|
10813
10810
|
},
|
|
10814
10811
|
_getDirection: function(e, t) {
|
|
10815
10812
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, A) : this.options.direction;
|
|
@@ -10907,7 +10904,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10907
10904
|
}
|
|
10908
10905
|
},
|
|
10909
10906
|
_dragStarted: function(e, t) {
|
|
10910
|
-
if (
|
|
10907
|
+
if (an = !1, de && A) {
|
|
10911
10908
|
je("dragStarted", this, {
|
|
10912
10909
|
evt: t
|
|
10913
10910
|
}), this.nativeDraggable && te(document, "dragover", Vf);
|
|
@@ -10945,7 +10942,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10945
10942
|
_onTouchMove: function(e) {
|
|
10946
10943
|
if (Yt) {
|
|
10947
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 && Fe && ma(Fe), _ = (i.clientX - Yt.clientX + o.x) / (a || 1) + (c ? c[0] - Ni[0] : 0) / (a || 1), h = (i.clientY - Yt.clientY + o.y) / (l || 1) + (c ? c[1] - Ni[1] : 0) / (l || 1);
|
|
10948
|
-
if (!P.active && !
|
|
10945
|
+
if (!P.active && !an) {
|
|
10949
10946
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
|
|
10950
10947
|
return;
|
|
10951
10948
|
this._onDragStart(e, !0);
|
|
@@ -10989,7 +10986,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
10989
10986
|
sortable: n,
|
|
10990
10987
|
name: "clone"
|
|
10991
10988
|
}));
|
|
10992
|
-
}), !t && qe(A, i.dragClass, !0), t ? (Do = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Z(document, "mouseup", n._onDrop), Z(document, "touchend", n._onDrop), Z(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), te(document, "drop", n), M(A, "transform", "translateZ(0)")),
|
|
10989
|
+
}), !t && qe(A, i.dragClass, !0), t ? (Do = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Z(document, "mouseup", n._onDrop), Z(document, "touchend", n._onDrop), Z(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), te(document, "drop", n), M(A, "transform", "translateZ(0)")), an = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), te(document, "selectstart", n), yn = !0, Bn && M(document.body, "user-select", "none");
|
|
10993
10990
|
},
|
|
10994
10991
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
10995
10992
|
_onDragOver: function(e) {
|
|
@@ -11022,7 +11019,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11022
11019
|
insertion: Me
|
|
11023
11020
|
}), Me && (_ ? c._hideClone() : c._showClone(m), m !== d && (qe(A, Ue ? Ue.options.ghostClass : c.options.ghostClass, !1), qe(A, a.ghostClass, !0)), Ue !== m && m !== P.active ? Ue = m : m === P.active && Ue && (Ue = null), d === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
|
|
11024
11021
|
O("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
|
|
11025
|
-
}), m !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === A && !A.animated || n === t && !n.animated) && (
|
|
11022
|
+
}), m !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === A && !A.animated || n === t && !n.animated) && (on = null), !a.dragoverBubble && !e.rootEl && n !== document && (A.parentNode[Qe]._isOutsideThisEl(e.target), !Me && Kt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), I = !0;
|
|
11026
11023
|
}
|
|
11027
11024
|
function j() {
|
|
11028
11025
|
Je = Ze(A), kt = Ze(A, a.draggable), Ge({
|
|
@@ -11058,7 +11055,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11058
11055
|
} else if (n.parentNode === t) {
|
|
11059
11056
|
i = Ne(n);
|
|
11060
11057
|
var J = 0, Le, $e = A.parentNode !== t, B = !xf(A.animated && A.toRect || o, n.animated && n.toRect || i, g), F = g ? "top" : "left", ie = ga(n, "top", "top") || ga(A, "top", "top"), ge = ie ? ie.scrollTop : void 0;
|
|
11061
|
-
|
|
11058
|
+
on !== n && (Le = i[F], Pn = !1, lo = !B && a.invertSwap || $e), J = $f(e, n, i, g, B ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
|
|
11062
11059
|
var Q;
|
|
11063
11060
|
if (J !== 0) {
|
|
11064
11061
|
var se = Ze(A);
|
|
@@ -11068,7 +11065,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11068
11065
|
}
|
|
11069
11066
|
if (J === 0 || Q === n)
|
|
11070
11067
|
return D(!1);
|
|
11071
|
-
|
|
11068
|
+
on = n, Mn = J;
|
|
11072
11069
|
var oe = n.nextElementSibling, R = !1;
|
|
11073
11070
|
R = J === 1;
|
|
11074
11071
|
var ae = uo(de, t, A, o, n, i, e, R);
|
|
@@ -11096,7 +11093,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11096
11093
|
this._nulling();
|
|
11097
11094
|
return;
|
|
11098
11095
|
}
|
|
11099
|
-
|
|
11096
|
+
an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zi(this.cloneId), zi(this._dragStartId), this.nativeDraggable && (Z(document, "drop", this), Z(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), (de === me || Ue && Ue.lastPutMode !== "clone") && he && he.parentNode && he.parentNode.removeChild(he), A && (this.nativeDraggable && Z(A, "dragend", this), ki(A), A.style["will-change"] = "", yn && !an && qe(A, Ue ? Ue.options.ghostClass : this.options.ghostClass, !1), qe(A, this.options.chosenClass, !1), Ge({
|
|
11100
11097
|
sortable: this,
|
|
11101
11098
|
name: "unchoose",
|
|
11102
11099
|
toEl: me,
|
|
@@ -11143,7 +11140,7 @@ P.prototype = /** @lends Sortable.prototype */
|
|
|
11143
11140
|
}), this.save()))), this._nulling();
|
|
11144
11141
|
},
|
|
11145
11142
|
_nulling: function() {
|
|
11146
|
-
je("nulling", this), de = A = me = K = Ht = he = mo = St = Yt = ot = yn = Je = kt = cn = Dn =
|
|
11143
|
+
je("nulling", this), de = A = me = K = Ht = he = mo = St = Yt = ot = yn = Je = kt = cn = Dn = on = Mn = Ue = ro = P.dragged = P.ghost = P.clone = P.active = null, Po.forEach(function(e) {
|
|
11147
11144
|
e.checked = !0;
|
|
11148
11145
|
}), Po.length = yi = Ci = 0;
|
|
11149
11146
|
},
|
|
@@ -11301,7 +11298,7 @@ function zi(e) {
|
|
|
11301
11298
|
return clearTimeout(e);
|
|
11302
11299
|
}
|
|
11303
11300
|
ni && te(document, "touchmove", function(e) {
|
|
11304
|
-
(P.active ||
|
|
11301
|
+
(P.active || an) && e.cancelable && e.preventDefault();
|
|
11305
11302
|
});
|
|
11306
11303
|
P.utils = {
|
|
11307
11304
|
on: te,
|
|
@@ -11775,7 +11772,7 @@ const Qi = [
|
|
|
11775
11772
|
const g = [];
|
|
11776
11773
|
d.getTopBlocks(!0).forEach((I) => {
|
|
11777
11774
|
var D;
|
|
11778
|
-
const O = I.id === ((D =
|
|
11775
|
+
const O = I.id === ((D = sn()) == null ? void 0 : D.id);
|
|
11779
11776
|
let G = "<n/a>";
|
|
11780
11777
|
if (I.type.startsWith("on_node_event_v")) {
|
|
11781
11778
|
const j = I, ee = Ke[j.node.key];
|
|
@@ -12545,7 +12542,7 @@ function Tg() {
|
|
|
12545
12542
|
// look for 3 words in a row
|
|
12546
12543
|
}
|
|
12547
12544
|
), Y;
|
|
12548
|
-
}, Xe = re("//", "$"), et = re("/\\*", "\\*/"),
|
|
12545
|
+
}, Xe = re("//", "$"), et = re("/\\*", "\\*/"), Jt = re("#", "$"), An = {
|
|
12549
12546
|
scope: "number",
|
|
12550
12547
|
begin: F,
|
|
12551
12548
|
relevance: 0
|
|
@@ -12609,7 +12606,7 @@ function Tg() {
|
|
|
12609
12606
|
}
|
|
12610
12607
|
);
|
|
12611
12608
|
},
|
|
12612
|
-
HASH_COMMENT_MODE:
|
|
12609
|
+
HASH_COMMENT_MODE: Jt,
|
|
12613
12610
|
IDENT_RE: $e,
|
|
12614
12611
|
MATCH_NOTHING_RE: Le,
|
|
12615
12612
|
METHOD_GUARD: $r,
|
|
@@ -12698,7 +12695,7 @@ function Tg() {
|
|
|
12698
12695
|
console.error(u);
|
|
12699
12696
|
}, ds = (u, ...f) => {
|
|
12700
12697
|
console.log(`WARN: ${u}`, ...f);
|
|
12701
|
-
},
|
|
12698
|
+
}, Qt = (u, f) => {
|
|
12702
12699
|
_s[`${u}/${f}`] || (console.log(`Deprecated as of ${u}. ${f}`), _s[`${u}/${f}`] = !0);
|
|
12703
12700
|
}, qn = new Error();
|
|
12704
12701
|
function hs(u, f, { key: v }) {
|
|
@@ -12885,7 +12882,7 @@ function Tg() {
|
|
|
12885
12882
|
}
|
|
12886
12883
|
function ye(E, S, z) {
|
|
12887
12884
|
let le = "", Se = "";
|
|
12888
|
-
typeof S == "object" ? (le = E, z = S.ignoreIllegals, Se = S.language) : (
|
|
12885
|
+
typeof S == "object" ? (le = E, z = S.ignoreIllegals, Se = S.language) : (Qt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qt("10.7.0", `Please use highlight(code, options) instead.
|
|
12889
12886
|
https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, le = S), z === void 0 && (z = !0);
|
|
12890
12887
|
const tt = {
|
|
12891
12888
|
code: le,
|
|
@@ -13154,10 +13151,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, le = S), z ==
|
|
|
13154
13151
|
y = gs(y, E);
|
|
13155
13152
|
}
|
|
13156
13153
|
const dl = () => {
|
|
13157
|
-
Jn(),
|
|
13154
|
+
Jn(), Qt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
13158
13155
|
};
|
|
13159
13156
|
function hl() {
|
|
13160
|
-
Jn(),
|
|
13157
|
+
Jn(), Qt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
13161
13158
|
}
|
|
13162
13159
|
let Es = !1;
|
|
13163
13160
|
function Jn() {
|
|
@@ -13228,7 +13225,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, le = S), z ==
|
|
|
13228
13225
|
});
|
|
13229
13226
|
}
|
|
13230
13227
|
function vl(E) {
|
|
13231
|
-
return
|
|
13228
|
+
return Qt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Qt("10.7.0", "Please use highlightElement now."), ai(E);
|
|
13232
13229
|
}
|
|
13233
13230
|
Object.assign(u, {
|
|
13234
13231
|
highlight: ye,
|
|
@@ -13263,8 +13260,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, le = S), z ==
|
|
|
13263
13260
|
for (const E in zn)
|
|
13264
13261
|
typeof zn[E] == "object" && e(zn[E]);
|
|
13265
13262
|
return Object.assign(u, zn), u;
|
|
13266
|
-
},
|
|
13267
|
-
return
|
|
13263
|
+
}, Zt = Ts({});
|
|
13264
|
+
return Zt.newInstance = () => Ts({}), Ri = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Ri;
|
|
13268
13265
|
}
|
|
13269
13266
|
var Eg = /* @__PURE__ */ Tg();
|
|
13270
13267
|
const vo = /* @__PURE__ */ ql(Eg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Ag = [
|
|
@@ -13428,19 +13425,19 @@ function Ig(e) {
|
|
|
13428
13425
|
* @param {CallbackResponse} response
|
|
13429
13426
|
*/
|
|
13430
13427
|
isTrulyOpeningTag: (re, Xe) => {
|
|
13431
|
-
const et = re[0].length + re.index,
|
|
13428
|
+
const et = re[0].length + re.index, Jt = re.input[et];
|
|
13432
13429
|
if (
|
|
13433
13430
|
// HTML should not include another raw `<` inside a tag
|
|
13434
13431
|
// nested type?
|
|
13435
13432
|
// `<Array<Array<number>>`, etc.
|
|
13436
|
-
|
|
13433
|
+
Jt === "<" || // the , gives away that this is not HTML
|
|
13437
13434
|
// `<T, A extends keyof T, V>`
|
|
13438
|
-
|
|
13435
|
+
Jt === ","
|
|
13439
13436
|
) {
|
|
13440
13437
|
Xe.ignoreMatch();
|
|
13441
13438
|
return;
|
|
13442
13439
|
}
|
|
13443
|
-
|
|
13440
|
+
Jt === ">" && (n(re, { after: et }) || Xe.ignoreMatch());
|
|
13444
13441
|
let An;
|
|
13445
13442
|
const Xn = re.input.substring(et);
|
|
13446
13443
|
if (An = Xn.match(/^\s*=/)) {
|