@digipair/skill-web-editor 0.42.0 → 0.43.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.cjs2.js +120 -120
  2. package/index.esm2.js +120 -120
  3. package/package.json +1 -1
package/index.cjs2.js CHANGED
@@ -55,11 +55,11 @@ function _instanceof(left, right) {
55
55
  return left instanceof right;
56
56
  }
57
57
  }
58
- var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = new WeakMap;
58
+ var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
59
59
  var n$3 = /*#__PURE__*/ function() {
60
60
  function n(t, e, o) {
61
61
  _class_call_check$3(this, n);
62
- if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
62
+ if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
63
63
  this.cssText = t, this.t = e;
64
64
  }
65
65
  _create_class$3(n, [
@@ -85,7 +85,7 @@ var n$3 = /*#__PURE__*/ function() {
85
85
  return n;
86
86
  }();
87
87
  var r$4 = function(t) {
88
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
88
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
89
89
  }, S$1 = function(s, o) {
90
90
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
91
91
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
@@ -458,7 +458,7 @@ var _Symbol, _a, _a1;
458
458
  * @license
459
459
  * Copyright 2017 Google LLC
460
460
  * SPDX-License-Identifier: BSD-3-Clause
461
- */ var i$1 = Object.is, e$1 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
461
+ */ var i$2 = Object.is, e$1 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
462
462
  return t;
463
463
  }, u$1 = {
464
464
  toAttribute: function toAttribute(t, s) {
@@ -492,7 +492,7 @@ var _Symbol, _a, _a1;
492
492
  return i;
493
493
  }
494
494
  }, f$1 = function(t, s) {
495
- return !i$1(t, s);
495
+ return !i$2(t, s);
496
496
  }, y$1 = {
497
497
  attribute: !0,
498
498
  type: String,
@@ -1167,7 +1167,7 @@ function _create_super$1(Derived) {
1167
1167
  };
1168
1168
  }
1169
1169
  var _t;
1170
- var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html", {
1170
+ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
1171
1171
  createHTML: function(t) {
1172
1172
  return t;
1173
1173
  }
@@ -1188,14 +1188,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
1188
1188
  values: s
1189
1189
  };
1190
1190
  };
1191
- }, x = y(1), w = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), A = new WeakMap, E = r$2.createTreeWalker(r$2, 129);
1192
- function C(t, i) {
1193
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1194
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1191
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
1192
+ function P(t, i) {
1193
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1194
+ return void 0 !== s ? s.createHTML(i) : i;
1195
1195
  }
1196
- var P = function(t, i) {
1196
+ var V = function(t, i) {
1197
1197
  var s = t.length - 1, o = [];
1198
- var r, l = 2 === i ? "<svg>" : "", c = f;
1198
+ var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1199
1199
  for(var _$i = 0; _$i < s; _$i++){
1200
1200
  var s1 = t[_$i];
1201
1201
  var a = void 0, u = void 0, d = -1, y = 0;
@@ -1204,24 +1204,24 @@ var P = function(t, i) {
1204
1204
  l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1205
1205
  }
1206
1206
  return [
1207
- C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")),
1207
+ P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1208
1208
  o
1209
1209
  ];
1210
1210
  };
1211
- var V = /*#__PURE__*/ function() {
1212
- function V(param, n) {
1211
+ var N = /*#__PURE__*/ function() {
1212
+ function N(param, n) {
1213
1213
  var t = param.strings, s = param._$litType$;
1214
- _class_call_check$1(this, V);
1214
+ _class_call_check$1(this, N);
1215
1215
  var r;
1216
1216
  this.parts = [];
1217
1217
  var c = 0, a = 0;
1218
- var u = t.length - 1, d = this.parts, _P = _sliced_to_array(P(t, s), 2), f = _P[0], v = _P[1];
1219
- if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
1218
+ var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
1219
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1220
1220
  var _t;
1221
1221
  var t1 = this.el.content.firstChild;
1222
1222
  (_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
1223
1223
  }
1224
- for(; null !== (r = E.nextNode()) && d.length < u;){
1224
+ for(; null !== (r = C.nextNode()) && d.length < u;){
1225
1225
  if (1 === r.nodeType) {
1226
1226
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1227
1227
  if (r.hasAttributes()) try {
@@ -1234,7 +1234,7 @@ var V = /*#__PURE__*/ function() {
1234
1234
  index: c,
1235
1235
  name: e1[2],
1236
1236
  strings: s1,
1237
- ctor: "." === e1[1] ? k : "?" === e1[1] ? H : "@" === e1[1] ? I : R
1237
+ ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1238
1238
  }), r.removeAttribute(t2);
1239
1239
  } else t2.startsWith(h) && (d.push({
1240
1240
  type: 6,
@@ -1258,8 +1258,8 @@ var V = /*#__PURE__*/ function() {
1258
1258
  if ($.test(r.tagName)) {
1259
1259
  var t3 = r.textContent.split(h), s2 = t3.length - 1;
1260
1260
  if (s2 > 0) {
1261
- r.textContent = i ? i.emptyScript : "";
1262
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), E.nextNode(), d.push({
1261
+ r.textContent = i$1 ? i$1.emptyScript : "";
1262
+ for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1263
1263
  type: 2,
1264
1264
  index: ++c
1265
1265
  });
@@ -1280,7 +1280,7 @@ var V = /*#__PURE__*/ function() {
1280
1280
  c++;
1281
1281
  }
1282
1282
  }
1283
- _create_class$1(V, null, [
1283
+ _create_class$1(N, null, [
1284
1284
  {
1285
1285
  key: "createElement",
1286
1286
  value: function createElement(t, i) {
@@ -1289,24 +1289,24 @@ var V = /*#__PURE__*/ function() {
1289
1289
  }
1290
1290
  }
1291
1291
  ]);
1292
- return V;
1292
+ return N;
1293
1293
  }();
1294
- function N(t, i) {
1294
+ function S(t, i) {
1295
1295
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1296
1296
  var _s__$Co, _h__$AO;
1297
1297
  var _s;
1298
- if (i === w) return i;
1298
+ if (i === T) return i;
1299
1299
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1300
1300
  var o = c(i) ? void 0 : i._$litDirective$;
1301
1301
  var __$Co;
1302
- return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = N(t, h._$AS(t, i.values), h, e)), i;
1302
+ return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1303
1303
  }
1304
- var S = /*#__PURE__*/ function() {
1305
- function S(t, i) {
1306
- _class_call_check$1(this, S);
1304
+ var M = /*#__PURE__*/ function() {
1305
+ function M(t, i) {
1306
+ _class_call_check$1(this, M);
1307
1307
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1308
1308
  }
1309
- _create_class$1(S, [
1309
+ _create_class$1(M, [
1310
1310
  {
1311
1311
  key: "parentNode",
1312
1312
  get: function get() {
@@ -1324,16 +1324,16 @@ var S = /*#__PURE__*/ function() {
1324
1324
  value: function u(t) {
1325
1325
  var _t_creationScope;
1326
1326
  var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
1327
- E.currentNode = e;
1328
- var h = E.nextNode(), o = 0, n = 0, l = s[0];
1327
+ C.currentNode = e;
1328
+ var h = C.nextNode(), o = 0, n = 0, l = s[0];
1329
1329
  for(; void 0 !== l;){
1330
1330
  if (o === l.index) {
1331
1331
  var i1 = void 0;
1332
- 2 === l.type ? i1 = new M(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new L(h, this, t)), this._$AV.push(i1), l = s[++n];
1332
+ 2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
1333
1333
  }
1334
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = E.nextNode(), o++);
1334
+ o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1335
1335
  }
1336
- return E.currentNode = r$2, e;
1336
+ return C.currentNode = r$2, e;
1337
1337
  }
1338
1338
  },
1339
1339
  {
@@ -1363,15 +1363,15 @@ var S = /*#__PURE__*/ function() {
1363
1363
  }
1364
1364
  }
1365
1365
  ]);
1366
- return S;
1366
+ return M;
1367
1367
  }();
1368
- var M = /*#__PURE__*/ function() {
1369
- function M(t, i, s, e) {
1370
- _class_call_check$1(this, M);
1368
+ var R = /*#__PURE__*/ function() {
1369
+ function R(t, i, s, e) {
1370
+ _class_call_check$1(this, R);
1371
1371
  var _e_isConnected;
1372
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1372
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1373
1373
  }
1374
- _create_class$1(M, [
1374
+ _create_class$1(R, [
1375
1375
  {
1376
1376
  key: "_$AU",
1377
1377
  get: function get() {
@@ -1404,35 +1404,35 @@ var M = /*#__PURE__*/ function() {
1404
1404
  key: "_$AI",
1405
1405
  value: function _$AI(t) {
1406
1406
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1407
- t = N(this, t, i), c(t) ? t === T || null == t || "" === t ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== w && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1407
+ t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1408
1408
  }
1409
1409
  },
1410
1410
  {
1411
- key: "S",
1412
- value: function S(t) {
1411
+ key: "O",
1412
+ value: function O(t) {
1413
1413
  return this._$AA.parentNode.insertBefore(t, this._$AB);
1414
1414
  }
1415
1415
  },
1416
1416
  {
1417
1417
  key: "T",
1418
1418
  value: function T(t) {
1419
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
1419
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1420
1420
  }
1421
1421
  },
1422
1422
  {
1423
1423
  key: "_",
1424
1424
  value: function _(t) {
1425
- this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1425
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1426
1426
  }
1427
1427
  },
1428
1428
  {
1429
1429
  key: "$",
1430
1430
  value: function $(t) {
1431
1431
  var _this__$AH;
1432
- var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = V.createElement(C(s.h, s.h[0]), this.options)), s);
1432
+ var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
1433
1433
  if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1434
1434
  else {
1435
- var _$t = new S(e, this), s1 = _$t.u(this.options);
1435
+ var _$t = new M(e, this), s1 = _$t.u(this.options);
1436
1436
  _$t.p(i), this.T(s1), this._$AH = _$t;
1437
1437
  }
1438
1438
  }
@@ -1441,7 +1441,7 @@ var M = /*#__PURE__*/ function() {
1441
1441
  key: "_$AC",
1442
1442
  value: function _$AC(t) {
1443
1443
  var i = A.get(t.strings);
1444
- return void 0 === i && A.set(t.strings, i = new V(t)), i;
1444
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
1445
1445
  }
1446
1446
  },
1447
1447
  {
@@ -1454,7 +1454,7 @@ var M = /*#__PURE__*/ function() {
1454
1454
  try {
1455
1455
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1456
1456
  var h = _step.value;
1457
- e === i.length ? i.push(s = new M(this.S(l()), this.S(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1457
+ e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1458
1458
  }
1459
1459
  } catch (err) {
1460
1460
  _didIteratorError = true;
@@ -1492,14 +1492,14 @@ var M = /*#__PURE__*/ function() {
1492
1492
  }
1493
1493
  }
1494
1494
  ]);
1495
- return M;
1495
+ return R;
1496
1496
  }();
1497
- var R = /*#__PURE__*/ function() {
1498
- function R(t, i, s, e, h) {
1499
- _class_call_check$1(this, R);
1500
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = T;
1497
+ var k = /*#__PURE__*/ function() {
1498
+ function k(t, i, s, e, h) {
1499
+ _class_call_check$1(this, k);
1500
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
1501
1501
  }
1502
- _create_class$1(R, [
1502
+ _create_class$1(k, [
1503
1503
  {
1504
1504
  key: "tagName",
1505
1505
  get: function get() {
@@ -1518,11 +1518,11 @@ var R = /*#__PURE__*/ function() {
1518
1518
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
1519
1519
  var h = this.strings;
1520
1520
  var o = !1;
1521
- if (void 0 === h) t = N(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
1521
+ if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1522
1522
  else {
1523
1523
  var e1 = t;
1524
1524
  var n, r;
1525
- for(t = h[0], n = 0; n < h.length - 1; n++)r = N(this, e1[s + n], i, n), r === w && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === T ? t = T : t !== T && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1525
+ for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1526
1526
  }
1527
1527
  o && !e && this.j(t);
1528
1528
  }
@@ -1530,71 +1530,71 @@ var R = /*#__PURE__*/ function() {
1530
1530
  {
1531
1531
  key: "j",
1532
1532
  value: function j(t) {
1533
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1533
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1534
1534
  }
1535
1535
  }
1536
1536
  ]);
1537
- return R;
1537
+ return k;
1538
1538
  }();
1539
- var k = /*#__PURE__*/ function(R) {
1540
- _inherits$1(k, R);
1541
- var _super = _create_super$1(k);
1542
- function k() {
1543
- _class_call_check$1(this, k);
1539
+ var H = /*#__PURE__*/ function(k) {
1540
+ _inherits$1(H, k);
1541
+ var _super = _create_super$1(H);
1542
+ function H() {
1543
+ _class_call_check$1(this, H);
1544
1544
  var _this;
1545
1545
  _this = _super.call.apply(_super, [
1546
1546
  this
1547
1547
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1548
1548
  return _possible_constructor_return$1(_this);
1549
1549
  }
1550
- _create_class$1(k, [
1550
+ _create_class$1(H, [
1551
1551
  {
1552
1552
  key: "j",
1553
1553
  value: function j(t) {
1554
- this.element[this.name] = t === T ? void 0 : t;
1554
+ this.element[this.name] = t === E ? void 0 : t;
1555
1555
  }
1556
1556
  }
1557
1557
  ]);
1558
- return k;
1559
- }(R);
1560
- var H = /*#__PURE__*/ function(R) {
1561
- _inherits$1(H, R);
1562
- var _super = _create_super$1(H);
1563
- function H() {
1564
- _class_call_check$1(this, H);
1558
+ return H;
1559
+ }(k);
1560
+ var I = /*#__PURE__*/ function(k) {
1561
+ _inherits$1(I, k);
1562
+ var _super = _create_super$1(I);
1563
+ function I() {
1564
+ _class_call_check$1(this, I);
1565
1565
  var _this;
1566
1566
  _this = _super.call.apply(_super, [
1567
1567
  this
1568
1568
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1569
1569
  return _possible_constructor_return$1(_this);
1570
1570
  }
1571
- _create_class$1(H, [
1571
+ _create_class$1(I, [
1572
1572
  {
1573
1573
  key: "j",
1574
1574
  value: function j(t) {
1575
- this.element.toggleAttribute(this.name, !!t && t !== T);
1575
+ this.element.toggleAttribute(this.name, !!t && t !== E);
1576
1576
  }
1577
1577
  }
1578
1578
  ]);
1579
- return H;
1580
- }(R);
1581
- var I = /*#__PURE__*/ function(R) {
1582
- _inherits$1(I, R);
1583
- var _super = _create_super$1(I);
1584
- function I(t, i, s, e, h) {
1585
- _class_call_check$1(this, I);
1579
+ return I;
1580
+ }(k);
1581
+ var L = /*#__PURE__*/ function(k) {
1582
+ _inherits$1(L, k);
1583
+ var _super = _create_super$1(L);
1584
+ function L(t, i, s, e, h) {
1585
+ _class_call_check$1(this, L);
1586
1586
  var _this;
1587
1587
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1588
1588
  return _possible_constructor_return$1(_this);
1589
1589
  }
1590
- _create_class$1(I, [
1590
+ _create_class$1(L, [
1591
1591
  {
1592
1592
  key: "_$AI",
1593
1593
  value: function _$AI(t) {
1594
1594
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1595
- var _N;
1596
- if ((t = (_N = N(this, t, i, 0)) !== null && _N !== void 0 ? _N : T) === w) return;
1597
- var s = this._$AH, e = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== T && (s === T || e);
1595
+ var _S;
1596
+ if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1597
+ var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
1598
1598
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1599
1599
  }
1600
1600
  },
@@ -1607,14 +1607,14 @@ var I = /*#__PURE__*/ function(R) {
1607
1607
  }
1608
1608
  }
1609
1609
  ]);
1610
- return I;
1611
- }(R);
1612
- var L = /*#__PURE__*/ function() {
1613
- function L(t, i, s) {
1614
- _class_call_check$1(this, L);
1610
+ return L;
1611
+ }(k);
1612
+ var z = /*#__PURE__*/ function() {
1613
+ function z(t, i, s) {
1614
+ _class_call_check$1(this, z);
1615
1615
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1616
1616
  }
1617
- _create_class$1(L, [
1617
+ _create_class$1(z, [
1618
1618
  {
1619
1619
  key: "_$AU",
1620
1620
  get: function get() {
@@ -1624,23 +1624,23 @@ var L = /*#__PURE__*/ function() {
1624
1624
  {
1625
1625
  key: "_$AI",
1626
1626
  value: function _$AI(t) {
1627
- N(this, t);
1627
+ S(this, t);
1628
1628
  }
1629
1629
  }
1630
1630
  ]);
1631
- return L;
1631
+ return z;
1632
1632
  }();
1633
- var Z = t$1.litHtmlPolyfillSupport;
1633
+ var j = t$1.litHtmlPolyfillSupport;
1634
1634
  var _litHtmlVersions;
1635
- Z === null || Z === void 0 ? void 0 : Z(V, M), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.1.4");
1636
- var j = function(t, i, s) {
1635
+ j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
1636
+ var B = function(t, i, s) {
1637
1637
  var _s_renderBefore;
1638
1638
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1639
1639
  var h = e._$litPart$;
1640
1640
  if (void 0 === h) {
1641
1641
  var _s_renderBefore1;
1642
1642
  var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1643
- e._$litPart$ = h = new M(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1643
+ e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1644
1644
  }
1645
1645
  return h._$AI(t), h;
1646
1646
  };
@@ -1759,11 +1759,11 @@ var _globalThis1;
1759
1759
  * @license
1760
1760
  * Copyright 2017 Google LLC
1761
1761
  * SPDX-License-Identifier: BSD-3-Clause
1762
- */ var s = /*#__PURE__*/ function(t) {
1763
- _inherits(s, t);
1764
- var _super = _create_super(s);
1765
- function s() {
1766
- _class_call_check(this, s);
1762
+ */ var r$1 = /*#__PURE__*/ function(t) {
1763
+ _inherits(r, t);
1764
+ var _super = _create_super(r);
1765
+ function r() {
1766
+ _class_call_check(this, r);
1767
1767
  var _this;
1768
1768
  _this = _super.call.apply(_super, [
1769
1769
  this
@@ -1772,12 +1772,12 @@ var _globalThis1;
1772
1772
  }, _this._$Do = void 0;
1773
1773
  return _possible_constructor_return(_this);
1774
1774
  }
1775
- _create_class(s, [
1775
+ _create_class(r, [
1776
1776
  {
1777
1777
  key: "createRenderRoot",
1778
1778
  value: function createRenderRoot() {
1779
1779
  var _this_renderOptions;
1780
- var _$t = _get(_get_prototype_of(s.prototype), "createRenderRoot", this).call(this);
1780
+ var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
1781
1781
  var _renderBefore;
1782
1782
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1783
1783
  }
@@ -1785,42 +1785,42 @@ var _globalThis1;
1785
1785
  {
1786
1786
  key: "update",
1787
1787
  value: function update(t) {
1788
- var i = this.render();
1789
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(s.prototype), "update", this).call(this, t), this._$Do = j(i, this.renderRoot, this.renderOptions);
1788
+ var s = this.render();
1789
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
1790
1790
  }
1791
1791
  },
1792
1792
  {
1793
1793
  key: "connectedCallback",
1794
1794
  value: function connectedCallback() {
1795
1795
  var _this__$Do;
1796
- _get(_get_prototype_of(s.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1796
+ _get(_get_prototype_of(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1797
1797
  }
1798
1798
  },
1799
1799
  {
1800
1800
  key: "disconnectedCallback",
1801
1801
  value: function disconnectedCallback() {
1802
1802
  var _this__$Do;
1803
- _get(_get_prototype_of(s.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1803
+ _get(_get_prototype_of(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1804
1804
  }
1805
1805
  },
1806
1806
  {
1807
1807
  key: "render",
1808
1808
  value: function render() {
1809
- return w;
1809
+ return T;
1810
1810
  }
1811
1811
  }
1812
1812
  ]);
1813
- return s;
1813
+ return r;
1814
1814
  }(b);
1815
- s._$litElement$ = !0, s["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1816
- LitElement: s
1815
+ r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1816
+ LitElement: r$1
1817
1817
  });
1818
- var r$1 = globalThis.litElementPolyfillSupport;
1819
- r$1 === null || r$1 === void 0 ? void 0 : r$1({
1820
- LitElement: s
1818
+ var i = globalThis.litElementPolyfillSupport;
1819
+ i === null || i === void 0 ? void 0 : i({
1820
+ LitElement: r$1
1821
1821
  });
1822
1822
  var _litElementVersions;
1823
- ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.0.6");
1823
+ ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
1824
1824
 
1825
1825
  /**
1826
1826
  * @license
@@ -2881,7 +2881,7 @@ const schemas = {
2881
2881
  const BASE_URL = 'https://cdn.jsdelivr.net/npm';
2882
2882
  const BLOCKLY_VERSION = '10.4.3';
2883
2883
  let jsonGenerator, generateBlocklyBlockFromLibraries, generateToolboxFromLibraries, initializeMutator;
2884
- class EditorElement extends s {
2884
+ class EditorElement extends r$1 {
2885
2885
  createRenderRoot() {
2886
2886
  return this;
2887
2887
  }
package/index.esm2.js CHANGED
@@ -53,11 +53,11 @@ function _instanceof(left, right) {
53
53
  return left instanceof right;
54
54
  }
55
55
  }
56
- var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = new WeakMap;
56
+ var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
57
57
  var n$3 = /*#__PURE__*/ function() {
58
58
  function n(t, e, o) {
59
59
  _class_call_check$3(this, n);
60
- if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
60
+ if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
61
61
  this.cssText = t, this.t = e;
62
62
  }
63
63
  _create_class$3(n, [
@@ -83,7 +83,7 @@ var n$3 = /*#__PURE__*/ function() {
83
83
  return n;
84
84
  }();
85
85
  var r$4 = function(t) {
86
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
86
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
87
87
  }, S$1 = function(s, o) {
88
88
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
89
89
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
@@ -456,7 +456,7 @@ var _Symbol, _a, _a1;
456
456
  * @license
457
457
  * Copyright 2017 Google LLC
458
458
  * SPDX-License-Identifier: BSD-3-Clause
459
- */ var i$1 = Object.is, e$1 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
459
+ */ var i$2 = Object.is, e$1 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
460
460
  return t;
461
461
  }, u$1 = {
462
462
  toAttribute: function toAttribute(t, s) {
@@ -490,7 +490,7 @@ var _Symbol, _a, _a1;
490
490
  return i;
491
491
  }
492
492
  }, f$1 = function(t, s) {
493
- return !i$1(t, s);
493
+ return !i$2(t, s);
494
494
  }, y$1 = {
495
495
  attribute: !0,
496
496
  type: String,
@@ -1165,7 +1165,7 @@ function _create_super$1(Derived) {
1165
1165
  };
1166
1166
  }
1167
1167
  var _t;
1168
- var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html", {
1168
+ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
1169
1169
  createHTML: function(t) {
1170
1170
  return t;
1171
1171
  }
@@ -1186,14 +1186,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
1186
1186
  values: s
1187
1187
  };
1188
1188
  };
1189
- }, x = y(1), w = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), A = new WeakMap, E = r$2.createTreeWalker(r$2, 129);
1190
- function C(t, i) {
1191
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1192
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1189
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
1190
+ function P(t, i) {
1191
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1192
+ return void 0 !== s ? s.createHTML(i) : i;
1193
1193
  }
1194
- var P = function(t, i) {
1194
+ var V = function(t, i) {
1195
1195
  var s = t.length - 1, o = [];
1196
- var r, l = 2 === i ? "<svg>" : "", c = f;
1196
+ var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1197
1197
  for(var _$i = 0; _$i < s; _$i++){
1198
1198
  var s1 = t[_$i];
1199
1199
  var a = void 0, u = void 0, d = -1, y = 0;
@@ -1202,24 +1202,24 @@ var P = function(t, i) {
1202
1202
  l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1203
1203
  }
1204
1204
  return [
1205
- C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")),
1205
+ P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1206
1206
  o
1207
1207
  ];
1208
1208
  };
1209
- var V = /*#__PURE__*/ function() {
1210
- function V(param, n) {
1209
+ var N = /*#__PURE__*/ function() {
1210
+ function N(param, n) {
1211
1211
  var t = param.strings, s = param._$litType$;
1212
- _class_call_check$1(this, V);
1212
+ _class_call_check$1(this, N);
1213
1213
  var r;
1214
1214
  this.parts = [];
1215
1215
  var c = 0, a = 0;
1216
- var u = t.length - 1, d = this.parts, _P = _sliced_to_array(P(t, s), 2), f = _P[0], v = _P[1];
1217
- if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
1216
+ var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
1217
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1218
1218
  var _t;
1219
1219
  var t1 = this.el.content.firstChild;
1220
1220
  (_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
1221
1221
  }
1222
- for(; null !== (r = E.nextNode()) && d.length < u;){
1222
+ for(; null !== (r = C.nextNode()) && d.length < u;){
1223
1223
  if (1 === r.nodeType) {
1224
1224
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1225
1225
  if (r.hasAttributes()) try {
@@ -1232,7 +1232,7 @@ var V = /*#__PURE__*/ function() {
1232
1232
  index: c,
1233
1233
  name: e1[2],
1234
1234
  strings: s1,
1235
- ctor: "." === e1[1] ? k : "?" === e1[1] ? H : "@" === e1[1] ? I : R
1235
+ ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1236
1236
  }), r.removeAttribute(t2);
1237
1237
  } else t2.startsWith(h) && (d.push({
1238
1238
  type: 6,
@@ -1256,8 +1256,8 @@ var V = /*#__PURE__*/ function() {
1256
1256
  if ($.test(r.tagName)) {
1257
1257
  var t3 = r.textContent.split(h), s2 = t3.length - 1;
1258
1258
  if (s2 > 0) {
1259
- r.textContent = i ? i.emptyScript : "";
1260
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), E.nextNode(), d.push({
1259
+ r.textContent = i$1 ? i$1.emptyScript : "";
1260
+ for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1261
1261
  type: 2,
1262
1262
  index: ++c
1263
1263
  });
@@ -1278,7 +1278,7 @@ var V = /*#__PURE__*/ function() {
1278
1278
  c++;
1279
1279
  }
1280
1280
  }
1281
- _create_class$1(V, null, [
1281
+ _create_class$1(N, null, [
1282
1282
  {
1283
1283
  key: "createElement",
1284
1284
  value: function createElement(t, i) {
@@ -1287,24 +1287,24 @@ var V = /*#__PURE__*/ function() {
1287
1287
  }
1288
1288
  }
1289
1289
  ]);
1290
- return V;
1290
+ return N;
1291
1291
  }();
1292
- function N(t, i) {
1292
+ function S(t, i) {
1293
1293
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1294
1294
  var _s__$Co, _h__$AO;
1295
1295
  var _s;
1296
- if (i === w) return i;
1296
+ if (i === T) return i;
1297
1297
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1298
1298
  var o = c(i) ? void 0 : i._$litDirective$;
1299
1299
  var __$Co;
1300
- return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = N(t, h._$AS(t, i.values), h, e)), i;
1300
+ return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1301
1301
  }
1302
- var S = /*#__PURE__*/ function() {
1303
- function S(t, i) {
1304
- _class_call_check$1(this, S);
1302
+ var M = /*#__PURE__*/ function() {
1303
+ function M(t, i) {
1304
+ _class_call_check$1(this, M);
1305
1305
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1306
1306
  }
1307
- _create_class$1(S, [
1307
+ _create_class$1(M, [
1308
1308
  {
1309
1309
  key: "parentNode",
1310
1310
  get: function get() {
@@ -1322,16 +1322,16 @@ var S = /*#__PURE__*/ function() {
1322
1322
  value: function u(t) {
1323
1323
  var _t_creationScope;
1324
1324
  var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
1325
- E.currentNode = e;
1326
- var h = E.nextNode(), o = 0, n = 0, l = s[0];
1325
+ C.currentNode = e;
1326
+ var h = C.nextNode(), o = 0, n = 0, l = s[0];
1327
1327
  for(; void 0 !== l;){
1328
1328
  if (o === l.index) {
1329
1329
  var i1 = void 0;
1330
- 2 === l.type ? i1 = new M(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new L(h, this, t)), this._$AV.push(i1), l = s[++n];
1330
+ 2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
1331
1331
  }
1332
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = E.nextNode(), o++);
1332
+ o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1333
1333
  }
1334
- return E.currentNode = r$2, e;
1334
+ return C.currentNode = r$2, e;
1335
1335
  }
1336
1336
  },
1337
1337
  {
@@ -1361,15 +1361,15 @@ var S = /*#__PURE__*/ function() {
1361
1361
  }
1362
1362
  }
1363
1363
  ]);
1364
- return S;
1364
+ return M;
1365
1365
  }();
1366
- var M = /*#__PURE__*/ function() {
1367
- function M(t, i, s, e) {
1368
- _class_call_check$1(this, M);
1366
+ var R = /*#__PURE__*/ function() {
1367
+ function R(t, i, s, e) {
1368
+ _class_call_check$1(this, R);
1369
1369
  var _e_isConnected;
1370
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1370
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1371
1371
  }
1372
- _create_class$1(M, [
1372
+ _create_class$1(R, [
1373
1373
  {
1374
1374
  key: "_$AU",
1375
1375
  get: function get() {
@@ -1402,35 +1402,35 @@ var M = /*#__PURE__*/ function() {
1402
1402
  key: "_$AI",
1403
1403
  value: function _$AI(t) {
1404
1404
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1405
- t = N(this, t, i), c(t) ? t === T || null == t || "" === t ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== w && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1405
+ t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1406
1406
  }
1407
1407
  },
1408
1408
  {
1409
- key: "S",
1410
- value: function S(t) {
1409
+ key: "O",
1410
+ value: function O(t) {
1411
1411
  return this._$AA.parentNode.insertBefore(t, this._$AB);
1412
1412
  }
1413
1413
  },
1414
1414
  {
1415
1415
  key: "T",
1416
1416
  value: function T(t) {
1417
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
1417
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1418
1418
  }
1419
1419
  },
1420
1420
  {
1421
1421
  key: "_",
1422
1422
  value: function _(t) {
1423
- this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1423
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1424
1424
  }
1425
1425
  },
1426
1426
  {
1427
1427
  key: "$",
1428
1428
  value: function $(t) {
1429
1429
  var _this__$AH;
1430
- var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = V.createElement(C(s.h, s.h[0]), this.options)), s);
1430
+ var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
1431
1431
  if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1432
1432
  else {
1433
- var _$t = new S(e, this), s1 = _$t.u(this.options);
1433
+ var _$t = new M(e, this), s1 = _$t.u(this.options);
1434
1434
  _$t.p(i), this.T(s1), this._$AH = _$t;
1435
1435
  }
1436
1436
  }
@@ -1439,7 +1439,7 @@ var M = /*#__PURE__*/ function() {
1439
1439
  key: "_$AC",
1440
1440
  value: function _$AC(t) {
1441
1441
  var i = A.get(t.strings);
1442
- return void 0 === i && A.set(t.strings, i = new V(t)), i;
1442
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
1443
1443
  }
1444
1444
  },
1445
1445
  {
@@ -1452,7 +1452,7 @@ var M = /*#__PURE__*/ function() {
1452
1452
  try {
1453
1453
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1454
1454
  var h = _step.value;
1455
- e === i.length ? i.push(s = new M(this.S(l()), this.S(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1455
+ e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1456
1456
  }
1457
1457
  } catch (err) {
1458
1458
  _didIteratorError = true;
@@ -1490,14 +1490,14 @@ var M = /*#__PURE__*/ function() {
1490
1490
  }
1491
1491
  }
1492
1492
  ]);
1493
- return M;
1493
+ return R;
1494
1494
  }();
1495
- var R = /*#__PURE__*/ function() {
1496
- function R(t, i, s, e, h) {
1497
- _class_call_check$1(this, R);
1498
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = T;
1495
+ var k = /*#__PURE__*/ function() {
1496
+ function k(t, i, s, e, h) {
1497
+ _class_call_check$1(this, k);
1498
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
1499
1499
  }
1500
- _create_class$1(R, [
1500
+ _create_class$1(k, [
1501
1501
  {
1502
1502
  key: "tagName",
1503
1503
  get: function get() {
@@ -1516,11 +1516,11 @@ var R = /*#__PURE__*/ function() {
1516
1516
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
1517
1517
  var h = this.strings;
1518
1518
  var o = !1;
1519
- if (void 0 === h) t = N(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
1519
+ if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1520
1520
  else {
1521
1521
  var e1 = t;
1522
1522
  var n, r;
1523
- for(t = h[0], n = 0; n < h.length - 1; n++)r = N(this, e1[s + n], i, n), r === w && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === T ? t = T : t !== T && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1523
+ for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1524
1524
  }
1525
1525
  o && !e && this.j(t);
1526
1526
  }
@@ -1528,71 +1528,71 @@ var R = /*#__PURE__*/ function() {
1528
1528
  {
1529
1529
  key: "j",
1530
1530
  value: function j(t) {
1531
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1531
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1532
1532
  }
1533
1533
  }
1534
1534
  ]);
1535
- return R;
1535
+ return k;
1536
1536
  }();
1537
- var k = /*#__PURE__*/ function(R) {
1538
- _inherits$1(k, R);
1539
- var _super = _create_super$1(k);
1540
- function k() {
1541
- _class_call_check$1(this, k);
1537
+ var H = /*#__PURE__*/ function(k) {
1538
+ _inherits$1(H, k);
1539
+ var _super = _create_super$1(H);
1540
+ function H() {
1541
+ _class_call_check$1(this, H);
1542
1542
  var _this;
1543
1543
  _this = _super.call.apply(_super, [
1544
1544
  this
1545
1545
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1546
1546
  return _possible_constructor_return$1(_this);
1547
1547
  }
1548
- _create_class$1(k, [
1548
+ _create_class$1(H, [
1549
1549
  {
1550
1550
  key: "j",
1551
1551
  value: function j(t) {
1552
- this.element[this.name] = t === T ? void 0 : t;
1552
+ this.element[this.name] = t === E ? void 0 : t;
1553
1553
  }
1554
1554
  }
1555
1555
  ]);
1556
- return k;
1557
- }(R);
1558
- var H = /*#__PURE__*/ function(R) {
1559
- _inherits$1(H, R);
1560
- var _super = _create_super$1(H);
1561
- function H() {
1562
- _class_call_check$1(this, H);
1556
+ return H;
1557
+ }(k);
1558
+ var I = /*#__PURE__*/ function(k) {
1559
+ _inherits$1(I, k);
1560
+ var _super = _create_super$1(I);
1561
+ function I() {
1562
+ _class_call_check$1(this, I);
1563
1563
  var _this;
1564
1564
  _this = _super.call.apply(_super, [
1565
1565
  this
1566
1566
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1567
1567
  return _possible_constructor_return$1(_this);
1568
1568
  }
1569
- _create_class$1(H, [
1569
+ _create_class$1(I, [
1570
1570
  {
1571
1571
  key: "j",
1572
1572
  value: function j(t) {
1573
- this.element.toggleAttribute(this.name, !!t && t !== T);
1573
+ this.element.toggleAttribute(this.name, !!t && t !== E);
1574
1574
  }
1575
1575
  }
1576
1576
  ]);
1577
- return H;
1578
- }(R);
1579
- var I = /*#__PURE__*/ function(R) {
1580
- _inherits$1(I, R);
1581
- var _super = _create_super$1(I);
1582
- function I(t, i, s, e, h) {
1583
- _class_call_check$1(this, I);
1577
+ return I;
1578
+ }(k);
1579
+ var L = /*#__PURE__*/ function(k) {
1580
+ _inherits$1(L, k);
1581
+ var _super = _create_super$1(L);
1582
+ function L(t, i, s, e, h) {
1583
+ _class_call_check$1(this, L);
1584
1584
  var _this;
1585
1585
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1586
1586
  return _possible_constructor_return$1(_this);
1587
1587
  }
1588
- _create_class$1(I, [
1588
+ _create_class$1(L, [
1589
1589
  {
1590
1590
  key: "_$AI",
1591
1591
  value: function _$AI(t) {
1592
1592
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1593
- var _N;
1594
- if ((t = (_N = N(this, t, i, 0)) !== null && _N !== void 0 ? _N : T) === w) return;
1595
- var s = this._$AH, e = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== T && (s === T || e);
1593
+ var _S;
1594
+ if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1595
+ var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
1596
1596
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1597
1597
  }
1598
1598
  },
@@ -1605,14 +1605,14 @@ var I = /*#__PURE__*/ function(R) {
1605
1605
  }
1606
1606
  }
1607
1607
  ]);
1608
- return I;
1609
- }(R);
1610
- var L = /*#__PURE__*/ function() {
1611
- function L(t, i, s) {
1612
- _class_call_check$1(this, L);
1608
+ return L;
1609
+ }(k);
1610
+ var z = /*#__PURE__*/ function() {
1611
+ function z(t, i, s) {
1612
+ _class_call_check$1(this, z);
1613
1613
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1614
1614
  }
1615
- _create_class$1(L, [
1615
+ _create_class$1(z, [
1616
1616
  {
1617
1617
  key: "_$AU",
1618
1618
  get: function get() {
@@ -1622,23 +1622,23 @@ var L = /*#__PURE__*/ function() {
1622
1622
  {
1623
1623
  key: "_$AI",
1624
1624
  value: function _$AI(t) {
1625
- N(this, t);
1625
+ S(this, t);
1626
1626
  }
1627
1627
  }
1628
1628
  ]);
1629
- return L;
1629
+ return z;
1630
1630
  }();
1631
- var Z = t$1.litHtmlPolyfillSupport;
1631
+ var j = t$1.litHtmlPolyfillSupport;
1632
1632
  var _litHtmlVersions;
1633
- Z === null || Z === void 0 ? void 0 : Z(V, M), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.1.4");
1634
- var j = function(t, i, s) {
1633
+ j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
1634
+ var B = function(t, i, s) {
1635
1635
  var _s_renderBefore;
1636
1636
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1637
1637
  var h = e._$litPart$;
1638
1638
  if (void 0 === h) {
1639
1639
  var _s_renderBefore1;
1640
1640
  var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1641
- e._$litPart$ = h = new M(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1641
+ e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1642
1642
  }
1643
1643
  return h._$AI(t), h;
1644
1644
  };
@@ -1757,11 +1757,11 @@ var _globalThis1;
1757
1757
  * @license
1758
1758
  * Copyright 2017 Google LLC
1759
1759
  * SPDX-License-Identifier: BSD-3-Clause
1760
- */ var s = /*#__PURE__*/ function(t) {
1761
- _inherits(s, t);
1762
- var _super = _create_super(s);
1763
- function s() {
1764
- _class_call_check(this, s);
1760
+ */ var r$1 = /*#__PURE__*/ function(t) {
1761
+ _inherits(r, t);
1762
+ var _super = _create_super(r);
1763
+ function r() {
1764
+ _class_call_check(this, r);
1765
1765
  var _this;
1766
1766
  _this = _super.call.apply(_super, [
1767
1767
  this
@@ -1770,12 +1770,12 @@ var _globalThis1;
1770
1770
  }, _this._$Do = void 0;
1771
1771
  return _possible_constructor_return(_this);
1772
1772
  }
1773
- _create_class(s, [
1773
+ _create_class(r, [
1774
1774
  {
1775
1775
  key: "createRenderRoot",
1776
1776
  value: function createRenderRoot() {
1777
1777
  var _this_renderOptions;
1778
- var _$t = _get(_get_prototype_of(s.prototype), "createRenderRoot", this).call(this);
1778
+ var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
1779
1779
  var _renderBefore;
1780
1780
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1781
1781
  }
@@ -1783,42 +1783,42 @@ var _globalThis1;
1783
1783
  {
1784
1784
  key: "update",
1785
1785
  value: function update(t) {
1786
- var i = this.render();
1787
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(s.prototype), "update", this).call(this, t), this._$Do = j(i, this.renderRoot, this.renderOptions);
1786
+ var s = this.render();
1787
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
1788
1788
  }
1789
1789
  },
1790
1790
  {
1791
1791
  key: "connectedCallback",
1792
1792
  value: function connectedCallback() {
1793
1793
  var _this__$Do;
1794
- _get(_get_prototype_of(s.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1794
+ _get(_get_prototype_of(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1795
1795
  }
1796
1796
  },
1797
1797
  {
1798
1798
  key: "disconnectedCallback",
1799
1799
  value: function disconnectedCallback() {
1800
1800
  var _this__$Do;
1801
- _get(_get_prototype_of(s.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1801
+ _get(_get_prototype_of(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1802
1802
  }
1803
1803
  },
1804
1804
  {
1805
1805
  key: "render",
1806
1806
  value: function render() {
1807
- return w;
1807
+ return T;
1808
1808
  }
1809
1809
  }
1810
1810
  ]);
1811
- return s;
1811
+ return r;
1812
1812
  }(b);
1813
- s._$litElement$ = !0, s["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1814
- LitElement: s
1813
+ r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1814
+ LitElement: r$1
1815
1815
  });
1816
- var r$1 = globalThis.litElementPolyfillSupport;
1817
- r$1 === null || r$1 === void 0 ? void 0 : r$1({
1818
- LitElement: s
1816
+ var i = globalThis.litElementPolyfillSupport;
1817
+ i === null || i === void 0 ? void 0 : i({
1818
+ LitElement: r$1
1819
1819
  });
1820
1820
  var _litElementVersions;
1821
- ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.0.6");
1821
+ ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
1822
1822
 
1823
1823
  /**
1824
1824
  * @license
@@ -2879,7 +2879,7 @@ const schemas = {
2879
2879
  const BASE_URL = 'https://cdn.jsdelivr.net/npm';
2880
2880
  const BLOCKLY_VERSION = '10.4.3';
2881
2881
  let jsonGenerator, generateBlocklyBlockFromLibraries, generateToolboxFromLibraries, initializeMutator;
2882
- class EditorElement extends s {
2882
+ class EditorElement extends r$1 {
2883
2883
  createRenderRoot() {
2884
2884
  return this;
2885
2885
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.42.0",
3
+ "version": "0.43.2",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"