@digipair/skill-web-heygen 0.136.1 → 0.136.3
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.esm.js
CHANGED
|
@@ -479,7 +479,7 @@ var _Symbol, _a, _a1;
|
|
|
479
479
|
}
|
|
480
480
|
}, f$1 = function(t, s) {
|
|
481
481
|
return !i$2(t, s);
|
|
482
|
-
}, b = {
|
|
482
|
+
}, b$1 = {
|
|
483
483
|
attribute: true,
|
|
484
484
|
type: String,
|
|
485
485
|
converter: u$1,
|
|
@@ -622,11 +622,12 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
622
622
|
{
|
|
623
623
|
key: "requestUpdate",
|
|
624
624
|
value: function requestUpdate(t, s, i) {
|
|
625
|
+
var e = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, h = arguments.length > 4 ? arguments[4] : void 0;
|
|
625
626
|
if (void 0 !== t) {
|
|
626
627
|
var _this__$Ej;
|
|
627
|
-
var
|
|
628
|
+
var r = this.constructor;
|
|
628
629
|
var _i_hasChanged;
|
|
629
|
-
if (i !== null && i !== void 0 ? i : i =
|
|
630
|
+
if (false === e && (h = this[t]), i !== null && i !== void 0 ? i : i = r.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(r._$Eu(t, i)))) return;
|
|
630
631
|
this.C(t, s, i);
|
|
631
632
|
}
|
|
632
633
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -843,7 +844,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
843
844
|
{
|
|
844
845
|
key: "createProperty",
|
|
845
846
|
value: function createProperty(t) {
|
|
846
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
|
|
847
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b$1;
|
|
847
848
|
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
848
849
|
var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
|
|
849
850
|
void 0 !== h && e$3(this.prototype, t, h);
|
|
@@ -877,7 +878,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
877
878
|
key: "getPropertyOptions",
|
|
878
879
|
value: function getPropertyOptions(t) {
|
|
879
880
|
var _this_elementProperties_get;
|
|
880
|
-
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
|
|
881
|
+
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b$1;
|
|
881
882
|
}
|
|
882
883
|
},
|
|
883
884
|
{
|
|
@@ -1009,7 +1010,7 @@ y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
|
1009
1010
|
mode: "open"
|
|
1010
1011
|
}, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
|
|
1011
1012
|
ReactiveElement: y$1
|
|
1012
|
-
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.
|
|
1013
|
+
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.2");
|
|
1013
1014
|
|
|
1014
1015
|
/**
|
|
1015
1016
|
* @license
|
|
@@ -1159,17 +1160,19 @@ function _create_super$1(Derived) {
|
|
|
1159
1160
|
};
|
|
1160
1161
|
}
|
|
1161
1162
|
var _t;
|
|
1162
|
-
var t$1 = globalThis, i$1 = t
|
|
1163
|
+
var t$1 = globalThis, i$1 = function(t) {
|
|
1164
|
+
return t;
|
|
1165
|
+
}, s$1 = t$1.trustedTypes, e$2 = s$1 ? s$1.createPolicy("lit-html", {
|
|
1163
1166
|
createHTML: function(t) {
|
|
1164
1167
|
return t;
|
|
1165
1168
|
}
|
|
1166
|
-
}) : void 0,
|
|
1167
|
-
return
|
|
1168
|
-
},
|
|
1169
|
+
}) : void 0, h = "$lit$", o$2 = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), n$1 = "?" + o$2, r$1 = "<".concat(n$1, ">"), l = document, c = function() {
|
|
1170
|
+
return l.createComment("");
|
|
1171
|
+
}, a = function(t) {
|
|
1169
1172
|
return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$3(t)) && "function" != typeof t;
|
|
1170
|
-
},
|
|
1171
|
-
return
|
|
1172
|
-
},
|
|
1173
|
+
}, u = Array.isArray, d = function(t) {
|
|
1174
|
+
return u(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
|
|
1175
|
+
}, f = "[ \t\n\f\r]", v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m = />/g, p = RegExp(">|".concat(f, "(?:([^\\s\"'>=/]+)(").concat(f, "*=").concat(f, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, x = function(t) {
|
|
1173
1176
|
return function(i) {
|
|
1174
1177
|
for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
1175
1178
|
s[_key - 1] = arguments[_key];
|
|
@@ -1180,57 +1183,57 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-
|
|
|
1180
1183
|
values: s
|
|
1181
1184
|
};
|
|
1182
1185
|
};
|
|
1183
|
-
},
|
|
1184
|
-
function
|
|
1185
|
-
if (!
|
|
1186
|
-
return void 0 !==
|
|
1187
|
-
}
|
|
1188
|
-
var
|
|
1189
|
-
var s = t.length - 1,
|
|
1190
|
-
var
|
|
1186
|
+
}, b = x(1), E = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), C = new WeakMap, P = l.createTreeWalker(l, 129);
|
|
1187
|
+
function V(t, i) {
|
|
1188
|
+
if (!u(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1189
|
+
return void 0 !== e$2 ? e$2.createHTML(i) : i;
|
|
1190
|
+
}
|
|
1191
|
+
var N = function(t, i) {
|
|
1192
|
+
var s = t.length - 1, e = [];
|
|
1193
|
+
var n, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = v;
|
|
1191
1194
|
for(var _$i = 0; _$i < s; _$i++){
|
|
1192
1195
|
var s1 = t[_$i];
|
|
1193
|
-
var a = void 0, u = void 0, d = -1,
|
|
1194
|
-
for(;
|
|
1195
|
-
var x = c ===
|
|
1196
|
-
l += c ===
|
|
1196
|
+
var a = void 0, u = void 0, d = -1, f = 0;
|
|
1197
|
+
for(; f < s1.length && (c.lastIndex = f, u = c.exec(s1), null !== u);)f = c.lastIndex, c === v ? "!--" === u[1] ? c = _ : void 0 !== u[1] ? c = m : void 0 !== u[2] ? (y.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n !== null && n !== void 0 ? n : v, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : '"' === u[3] ? $ : g) : c === $ || c === g ? c = p : c === _ || c === m ? c = v : (c = p, n = void 0);
|
|
1198
|
+
var x = c === p && t[_$i + 1].startsWith("/>") ? " " : "";
|
|
1199
|
+
l += c === v ? s1 + r$1 : d >= 0 ? (e.push(a), s1.slice(0, d) + h + s1.slice(d) + o$2 + x) : s1 + o$2 + (-2 === d ? _$i : x);
|
|
1197
1200
|
}
|
|
1198
1201
|
return [
|
|
1199
|
-
|
|
1200
|
-
|
|
1202
|
+
V(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
|
|
1203
|
+
e
|
|
1201
1204
|
];
|
|
1202
1205
|
};
|
|
1203
|
-
var
|
|
1204
|
-
function
|
|
1205
|
-
var t = param.strings,
|
|
1206
|
-
_class_call_check$1(this,
|
|
1206
|
+
var S = /*#__PURE__*/ function() {
|
|
1207
|
+
function S(param, e) {
|
|
1208
|
+
var t = param.strings, i = param._$litType$;
|
|
1209
|
+
_class_call_check$1(this, S);
|
|
1207
1210
|
var r;
|
|
1208
1211
|
this.parts = [];
|
|
1209
|
-
var
|
|
1210
|
-
var u = t.length - 1, d = this.parts,
|
|
1211
|
-
if (this.el =
|
|
1212
|
+
var l = 0, a = 0;
|
|
1213
|
+
var u = t.length - 1, d = this.parts, _N = _sliced_to_array(N(t, i), 2), f = _N[0], v = _N[1];
|
|
1214
|
+
if (this.el = S.createElement(f, e), P.currentNode = this.el.content, 2 === i || 3 === i) {
|
|
1212
1215
|
var _t;
|
|
1213
1216
|
var t1 = this.el.content.firstChild;
|
|
1214
1217
|
(_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
|
|
1215
1218
|
}
|
|
1216
|
-
for(; null !== (r =
|
|
1219
|
+
for(; null !== (r = P.nextNode()) && d.length < u;){
|
|
1217
1220
|
if (1 === r.nodeType) {
|
|
1218
1221
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1219
1222
|
if (r.hasAttributes()) try {
|
|
1220
1223
|
for(var _iterator = r.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1221
1224
|
var t2 = _step.value;
|
|
1222
|
-
if (t2.endsWith(
|
|
1223
|
-
var i1 = v[a++], s1 = r.getAttribute(t2).split(
|
|
1225
|
+
if (t2.endsWith(h)) {
|
|
1226
|
+
var i1 = v[a++], s1 = r.getAttribute(t2).split(o$2), _$e = /([.?@])?(.*)/.exec(i1);
|
|
1224
1227
|
d.push({
|
|
1225
1228
|
type: 1,
|
|
1226
|
-
index:
|
|
1227
|
-
name:
|
|
1229
|
+
index: l,
|
|
1230
|
+
name: _$e[2],
|
|
1228
1231
|
strings: s1,
|
|
1229
|
-
ctor: "." ===
|
|
1232
|
+
ctor: "." === _$e[1] ? I : "?" === _$e[1] ? L : "@" === _$e[1] ? z : H
|
|
1230
1233
|
}), r.removeAttribute(t2);
|
|
1231
|
-
} else t2.startsWith(
|
|
1234
|
+
} else t2.startsWith(o$2) && (d.push({
|
|
1232
1235
|
type: 6,
|
|
1233
|
-
index:
|
|
1236
|
+
index: l
|
|
1234
1237
|
}), r.removeAttribute(t2));
|
|
1235
1238
|
}
|
|
1236
1239
|
} catch (err) {
|
|
@@ -1247,58 +1250,58 @@ var N = /*#__PURE__*/ function() {
|
|
|
1247
1250
|
}
|
|
1248
1251
|
}
|
|
1249
1252
|
}
|
|
1250
|
-
if (
|
|
1251
|
-
var t3 = r.textContent.split(
|
|
1252
|
-
if (
|
|
1253
|
-
r.textContent =
|
|
1254
|
-
for(var
|
|
1253
|
+
if (y.test(r.tagName)) {
|
|
1254
|
+
var t3 = r.textContent.split(o$2), i2 = t3.length - 1;
|
|
1255
|
+
if (i2 > 0) {
|
|
1256
|
+
r.textContent = s$1 ? s$1.emptyScript : "";
|
|
1257
|
+
for(var s2 = 0; s2 < i2; s2++)r.append(t3[s2], c()), P.nextNode(), d.push({
|
|
1255
1258
|
type: 2,
|
|
1256
|
-
index: ++
|
|
1259
|
+
index: ++l
|
|
1257
1260
|
});
|
|
1258
|
-
r.append(t3[
|
|
1261
|
+
r.append(t3[i2], c());
|
|
1259
1262
|
}
|
|
1260
1263
|
}
|
|
1261
|
-
} else if (8 === r.nodeType) if (r.data ===
|
|
1264
|
+
} else if (8 === r.nodeType) if (r.data === n$1) d.push({
|
|
1262
1265
|
type: 2,
|
|
1263
|
-
index:
|
|
1266
|
+
index: l
|
|
1264
1267
|
});
|
|
1265
1268
|
else {
|
|
1266
1269
|
var t4 = -1;
|
|
1267
|
-
for(; -1 !== (t4 = r.data.indexOf(
|
|
1270
|
+
for(; -1 !== (t4 = r.data.indexOf(o$2, t4 + 1));)d.push({
|
|
1268
1271
|
type: 7,
|
|
1269
|
-
index:
|
|
1270
|
-
}), t4 +=
|
|
1272
|
+
index: l
|
|
1273
|
+
}), t4 += o$2.length - 1;
|
|
1271
1274
|
}
|
|
1272
|
-
|
|
1275
|
+
l++;
|
|
1273
1276
|
}
|
|
1274
1277
|
}
|
|
1275
|
-
_create_class$1(
|
|
1278
|
+
_create_class$1(S, null, [
|
|
1276
1279
|
{
|
|
1277
1280
|
key: "createElement",
|
|
1278
1281
|
value: function createElement(t, i) {
|
|
1279
|
-
var s =
|
|
1282
|
+
var s = l.createElement("template");
|
|
1280
1283
|
return s.innerHTML = t, s;
|
|
1281
1284
|
}
|
|
1282
1285
|
}
|
|
1283
1286
|
]);
|
|
1284
|
-
return
|
|
1287
|
+
return S;
|
|
1285
1288
|
}();
|
|
1286
|
-
function
|
|
1289
|
+
function M(t, i) {
|
|
1287
1290
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
1288
1291
|
var _s__$Co, _h__$AO;
|
|
1289
1292
|
var _s;
|
|
1290
|
-
if (i ===
|
|
1293
|
+
if (i === E) return i;
|
|
1291
1294
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
1292
|
-
var o =
|
|
1295
|
+
var o = a(i) ? void 0 : i._$litDirective$;
|
|
1293
1296
|
var __$Co;
|
|
1294
|
-
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, false), 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 =
|
|
1297
|
+
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, false), 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 = M(t, h._$AS(t, i.values), h, e)), i;
|
|
1295
1298
|
}
|
|
1296
|
-
var
|
|
1297
|
-
function
|
|
1298
|
-
_class_call_check$1(this,
|
|
1299
|
+
var R = /*#__PURE__*/ function() {
|
|
1300
|
+
function R(t, i) {
|
|
1301
|
+
_class_call_check$1(this, R);
|
|
1299
1302
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
1300
1303
|
}
|
|
1301
|
-
_create_class$1(
|
|
1304
|
+
_create_class$1(R, [
|
|
1302
1305
|
{
|
|
1303
1306
|
key: "parentNode",
|
|
1304
1307
|
get: function get() {
|
|
@@ -1315,17 +1318,17 @@ var M = /*#__PURE__*/ function() {
|
|
|
1315
1318
|
key: "u",
|
|
1316
1319
|
value: function u(t) {
|
|
1317
1320
|
var _t_creationScope;
|
|
1318
|
-
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 :
|
|
1319
|
-
|
|
1320
|
-
var h =
|
|
1321
|
-
for(; void 0 !==
|
|
1322
|
-
if (o ===
|
|
1321
|
+
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 : l).importNode(i, true);
|
|
1322
|
+
P.currentNode = e;
|
|
1323
|
+
var h = P.nextNode(), o = 0, n = 0, r = s[0];
|
|
1324
|
+
for(; void 0 !== r;){
|
|
1325
|
+
if (o === r.index) {
|
|
1323
1326
|
var i1 = void 0;
|
|
1324
|
-
2 ===
|
|
1327
|
+
2 === r.type ? i1 = new k(h, h.nextSibling, this, t) : 1 === r.type ? i1 = new r.ctor(h, r.name, r.strings, this, t) : 6 === r.type && (i1 = new Z(h, this, t)), this._$AV.push(i1), r = s[++n];
|
|
1325
1328
|
}
|
|
1326
|
-
o !== (
|
|
1329
|
+
o !== (r === null || r === void 0 ? void 0 : r.index) && (h = P.nextNode(), o++);
|
|
1327
1330
|
}
|
|
1328
|
-
return
|
|
1331
|
+
return P.currentNode = l, e;
|
|
1329
1332
|
}
|
|
1330
1333
|
},
|
|
1331
1334
|
{
|
|
@@ -1355,15 +1358,15 @@ var M = /*#__PURE__*/ function() {
|
|
|
1355
1358
|
}
|
|
1356
1359
|
}
|
|
1357
1360
|
]);
|
|
1358
|
-
return
|
|
1361
|
+
return R;
|
|
1359
1362
|
}();
|
|
1360
|
-
var
|
|
1361
|
-
function
|
|
1362
|
-
_class_call_check$1(this,
|
|
1363
|
+
var k = /*#__PURE__*/ function() {
|
|
1364
|
+
function k(t, i, s, e) {
|
|
1365
|
+
_class_call_check$1(this, k);
|
|
1363
1366
|
var _e_isConnected;
|
|
1364
|
-
this.type = 2, this._$AH =
|
|
1367
|
+
this.type = 2, this._$AH = A, 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 : true;
|
|
1365
1368
|
}
|
|
1366
|
-
_create_class$1(
|
|
1369
|
+
_create_class$1(k, [
|
|
1367
1370
|
{
|
|
1368
1371
|
key: "_$AU",
|
|
1369
1372
|
get: function get() {
|
|
@@ -1396,7 +1399,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1396
1399
|
key: "_$AI",
|
|
1397
1400
|
value: function _$AI(t) {
|
|
1398
1401
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
1399
|
-
t =
|
|
1402
|
+
t = M(this, t, i), a(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== E && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d(t) ? this.k(t) : this._(t);
|
|
1400
1403
|
}
|
|
1401
1404
|
},
|
|
1402
1405
|
{
|
|
@@ -1414,17 +1417,17 @@ var R = /*#__PURE__*/ function() {
|
|
|
1414
1417
|
{
|
|
1415
1418
|
key: "_",
|
|
1416
1419
|
value: function _(t) {
|
|
1417
|
-
this._$AH !==
|
|
1420
|
+
this._$AH !== A && a(this._$AH) ? this._$AA.nextSibling.data = t : this.T(l.createTextNode(t)), this._$AH = t;
|
|
1418
1421
|
}
|
|
1419
1422
|
},
|
|
1420
1423
|
{
|
|
1421
1424
|
key: "$",
|
|
1422
1425
|
value: function $(t) {
|
|
1423
1426
|
var _this__$AH;
|
|
1424
|
-
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el =
|
|
1427
|
+
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = S.createElement(V(s.h, s.h[0]), this.options)), s);
|
|
1425
1428
|
if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
|
|
1426
1429
|
else {
|
|
1427
|
-
var _$t = new
|
|
1430
|
+
var _$t = new R(e, this), s1 = _$t.u(this.options);
|
|
1428
1431
|
_$t.p(i), this.T(s1), this._$AH = _$t;
|
|
1429
1432
|
}
|
|
1430
1433
|
}
|
|
@@ -1432,21 +1435,21 @@ var R = /*#__PURE__*/ function() {
|
|
|
1432
1435
|
{
|
|
1433
1436
|
key: "_$AC",
|
|
1434
1437
|
value: function _$AC(t) {
|
|
1435
|
-
var i =
|
|
1436
|
-
return void 0 === i &&
|
|
1438
|
+
var i = C.get(t.strings);
|
|
1439
|
+
return void 0 === i && C.set(t.strings, i = new S(t)), i;
|
|
1437
1440
|
}
|
|
1438
1441
|
},
|
|
1439
1442
|
{
|
|
1440
1443
|
key: "k",
|
|
1441
|
-
value: function
|
|
1442
|
-
|
|
1444
|
+
value: function k1(t) {
|
|
1445
|
+
u(this._$AH) || (this._$AH = [], this._$AR());
|
|
1443
1446
|
var i = this._$AH;
|
|
1444
1447
|
var s, e = 0;
|
|
1445
1448
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1446
1449
|
try {
|
|
1447
1450
|
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1448
1451
|
var h = _step.value;
|
|
1449
|
-
e === i.length ? i.push(s = new
|
|
1452
|
+
e === i.length ? i.push(s = new k(this.O(c()), this.O(c()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
1450
1453
|
}
|
|
1451
1454
|
} catch (err) {
|
|
1452
1455
|
_didIteratorError = true;
|
|
@@ -1468,11 +1471,11 @@ var R = /*#__PURE__*/ function() {
|
|
|
1468
1471
|
{
|
|
1469
1472
|
key: "_$AR",
|
|
1470
1473
|
value: function _$AR() {
|
|
1471
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling,
|
|
1474
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
1472
1475
|
var _this__$AP, _this;
|
|
1473
|
-
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true,
|
|
1474
|
-
var
|
|
1475
|
-
t.remove(), t =
|
|
1476
|
+
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, s); t !== this._$AB;){
|
|
1477
|
+
var s1 = i$1(t).nextSibling;
|
|
1478
|
+
i$1(t).remove(), t = s1;
|
|
1476
1479
|
}
|
|
1477
1480
|
}
|
|
1478
1481
|
},
|
|
@@ -1484,14 +1487,14 @@ var R = /*#__PURE__*/ function() {
|
|
|
1484
1487
|
}
|
|
1485
1488
|
}
|
|
1486
1489
|
]);
|
|
1487
|
-
return
|
|
1490
|
+
return k;
|
|
1488
1491
|
}();
|
|
1489
|
-
var
|
|
1490
|
-
function
|
|
1491
|
-
_class_call_check$1(this,
|
|
1492
|
-
this.type = 1, this._$AH =
|
|
1492
|
+
var H = /*#__PURE__*/ function() {
|
|
1493
|
+
function H(t, i, s, e, h) {
|
|
1494
|
+
_class_call_check$1(this, H);
|
|
1495
|
+
this.type = 1, this._$AH = A, 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 = A;
|
|
1493
1496
|
}
|
|
1494
|
-
_create_class$1(
|
|
1497
|
+
_create_class$1(H, [
|
|
1495
1498
|
{
|
|
1496
1499
|
key: "tagName",
|
|
1497
1500
|
get: function get() {
|
|
@@ -1510,11 +1513,11 @@ var k = /*#__PURE__*/ function() {
|
|
|
1510
1513
|
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;
|
|
1511
1514
|
var h = this.strings;
|
|
1512
1515
|
var o = false;
|
|
1513
|
-
if (void 0 === h) t =
|
|
1516
|
+
if (void 0 === h) t = M(this, t, i, 0), o = !a(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
|
1514
1517
|
else {
|
|
1515
1518
|
var e1 = t;
|
|
1516
1519
|
var n, r;
|
|
1517
|
-
for(t = h[0], n = 0; n < h.length - 1; n++)r =
|
|
1520
|
+
for(t = h[0], n = 0; n < h.length - 1; n++)r = M(this, e1[s + n], i, n), r === E && (r = this._$AH[n]), o || (o = !a(r) || r !== this._$AH[n]), r === A ? t = A : t !== A && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
|
|
1518
1521
|
}
|
|
1519
1522
|
o && !e && this.j(t);
|
|
1520
1523
|
}
|
|
@@ -1522,71 +1525,71 @@ var k = /*#__PURE__*/ function() {
|
|
|
1522
1525
|
{
|
|
1523
1526
|
key: "j",
|
|
1524
1527
|
value: function j(t) {
|
|
1525
|
-
t ===
|
|
1528
|
+
t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
|
|
1526
1529
|
}
|
|
1527
1530
|
}
|
|
1528
1531
|
]);
|
|
1529
|
-
return
|
|
1532
|
+
return H;
|
|
1530
1533
|
}();
|
|
1531
|
-
var
|
|
1532
|
-
_inherits$1(
|
|
1533
|
-
var _super = _create_super$1(
|
|
1534
|
-
function
|
|
1535
|
-
_class_call_check$1(this,
|
|
1534
|
+
var I = /*#__PURE__*/ function(H) {
|
|
1535
|
+
_inherits$1(I, H);
|
|
1536
|
+
var _super = _create_super$1(I);
|
|
1537
|
+
function I() {
|
|
1538
|
+
_class_call_check$1(this, I);
|
|
1536
1539
|
var _this;
|
|
1537
1540
|
_this = _super.call.apply(_super, [
|
|
1538
1541
|
this
|
|
1539
1542
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
|
|
1540
1543
|
return _possible_constructor_return$1(_this);
|
|
1541
1544
|
}
|
|
1542
|
-
_create_class$1(
|
|
1545
|
+
_create_class$1(I, [
|
|
1543
1546
|
{
|
|
1544
1547
|
key: "j",
|
|
1545
1548
|
value: function j(t) {
|
|
1546
|
-
this.element[this.name] = t ===
|
|
1549
|
+
this.element[this.name] = t === A ? void 0 : t;
|
|
1547
1550
|
}
|
|
1548
1551
|
}
|
|
1549
1552
|
]);
|
|
1550
|
-
return
|
|
1551
|
-
}(
|
|
1552
|
-
var
|
|
1553
|
-
_inherits$1(
|
|
1554
|
-
var _super = _create_super$1(
|
|
1555
|
-
function
|
|
1556
|
-
_class_call_check$1(this,
|
|
1553
|
+
return I;
|
|
1554
|
+
}(H);
|
|
1555
|
+
var L = /*#__PURE__*/ function(H) {
|
|
1556
|
+
_inherits$1(L, H);
|
|
1557
|
+
var _super = _create_super$1(L);
|
|
1558
|
+
function L() {
|
|
1559
|
+
_class_call_check$1(this, L);
|
|
1557
1560
|
var _this;
|
|
1558
1561
|
_this = _super.call.apply(_super, [
|
|
1559
1562
|
this
|
|
1560
1563
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
|
|
1561
1564
|
return _possible_constructor_return$1(_this);
|
|
1562
1565
|
}
|
|
1563
|
-
_create_class$1(
|
|
1566
|
+
_create_class$1(L, [
|
|
1564
1567
|
{
|
|
1565
1568
|
key: "j",
|
|
1566
1569
|
value: function j(t) {
|
|
1567
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
1570
|
+
this.element.toggleAttribute(this.name, !!t && t !== A);
|
|
1568
1571
|
}
|
|
1569
1572
|
}
|
|
1570
1573
|
]);
|
|
1571
|
-
return
|
|
1572
|
-
}(
|
|
1573
|
-
var
|
|
1574
|
-
_inherits$1(
|
|
1575
|
-
var _super = _create_super$1(
|
|
1576
|
-
function
|
|
1577
|
-
_class_call_check$1(this,
|
|
1574
|
+
return L;
|
|
1575
|
+
}(H);
|
|
1576
|
+
var z = /*#__PURE__*/ function(H) {
|
|
1577
|
+
_inherits$1(z, H);
|
|
1578
|
+
var _super = _create_super$1(z);
|
|
1579
|
+
function z(t, i, s, e, h) {
|
|
1580
|
+
_class_call_check$1(this, z);
|
|
1578
1581
|
var _this;
|
|
1579
1582
|
_this = _super.call(this, t, i, s, e, h), _this.type = 5;
|
|
1580
1583
|
return _possible_constructor_return$1(_this);
|
|
1581
1584
|
}
|
|
1582
|
-
_create_class$1(
|
|
1585
|
+
_create_class$1(z, [
|
|
1583
1586
|
{
|
|
1584
1587
|
key: "_$AI",
|
|
1585
1588
|
value: function _$AI(t) {
|
|
1586
1589
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
1587
|
-
var
|
|
1588
|
-
if ((t = (
|
|
1589
|
-
var s = this._$AH, e = t ===
|
|
1590
|
+
var _M;
|
|
1591
|
+
if ((t = (_M = M(this, t, i, 0)) !== null && _M !== void 0 ? _M : A) === E) return;
|
|
1592
|
+
var s = this._$AH, e = t === A && s !== A || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== A && (s === A || e);
|
|
1590
1593
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1591
1594
|
}
|
|
1592
1595
|
},
|
|
@@ -1599,14 +1602,14 @@ var L = /*#__PURE__*/ function(k) {
|
|
|
1599
1602
|
}
|
|
1600
1603
|
}
|
|
1601
1604
|
]);
|
|
1602
|
-
return
|
|
1603
|
-
}(
|
|
1604
|
-
var
|
|
1605
|
-
function
|
|
1606
|
-
_class_call_check$1(this,
|
|
1605
|
+
return z;
|
|
1606
|
+
}(H);
|
|
1607
|
+
var Z = /*#__PURE__*/ function() {
|
|
1608
|
+
function Z(t, i, s) {
|
|
1609
|
+
_class_call_check$1(this, Z);
|
|
1607
1610
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
1608
1611
|
}
|
|
1609
|
-
_create_class$1(
|
|
1612
|
+
_create_class$1(Z, [
|
|
1610
1613
|
{
|
|
1611
1614
|
key: "_$AU",
|
|
1612
1615
|
get: function get() {
|
|
@@ -1616,23 +1619,23 @@ var z = /*#__PURE__*/ function() {
|
|
|
1616
1619
|
{
|
|
1617
1620
|
key: "_$AI",
|
|
1618
1621
|
value: function _$AI(t) {
|
|
1619
|
-
|
|
1622
|
+
M(this, t);
|
|
1620
1623
|
}
|
|
1621
1624
|
}
|
|
1622
1625
|
]);
|
|
1623
|
-
return
|
|
1626
|
+
return Z;
|
|
1624
1627
|
}();
|
|
1625
|
-
var
|
|
1628
|
+
var B = t$1.litHtmlPolyfillSupport;
|
|
1626
1629
|
var _litHtmlVersions;
|
|
1627
|
-
|
|
1628
|
-
var
|
|
1630
|
+
B === null || B === void 0 ? void 0 : B(S, k), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.3");
|
|
1631
|
+
var D = function(t, i, s) {
|
|
1629
1632
|
var _s_renderBefore;
|
|
1630
1633
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
|
1631
1634
|
var h = e._$litPart$;
|
|
1632
1635
|
if (void 0 === h) {
|
|
1633
1636
|
var _s_renderBefore1;
|
|
1634
1637
|
var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
|
|
1635
|
-
e._$litPart$ = h = new
|
|
1638
|
+
e._$litPart$ = h = new k(i.insertBefore(c(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
|
|
1636
1639
|
}
|
|
1637
1640
|
return h._$AI(t), h;
|
|
1638
1641
|
};
|
|
@@ -1778,7 +1781,7 @@ var i = /*#__PURE__*/ function(t) {
|
|
|
1778
1781
|
key: "update",
|
|
1779
1782
|
value: function update(t) {
|
|
1780
1783
|
var r = this.render();
|
|
1781
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do =
|
|
1784
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = D(r, this.renderRoot, this.renderOptions);
|
|
1782
1785
|
}
|
|
1783
1786
|
},
|
|
1784
1787
|
{
|
|
@@ -1798,7 +1801,7 @@ var i = /*#__PURE__*/ function(t) {
|
|
|
1798
1801
|
{
|
|
1799
1802
|
key: "render",
|
|
1800
1803
|
value: function render() {
|
|
1801
|
-
return
|
|
1804
|
+
return E;
|
|
1802
1805
|
}
|
|
1803
1806
|
}
|
|
1804
1807
|
]);
|
|
@@ -1812,7 +1815,7 @@ o$1 === null || o$1 === void 0 ? void 0 : o$1({
|
|
|
1812
1815
|
LitElement: i
|
|
1813
1816
|
});
|
|
1814
1817
|
var _litElementVersions;
|
|
1815
|
-
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.
|
|
1818
|
+
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.2");
|
|
1816
1819
|
|
|
1817
1820
|
/**
|
|
1818
1821
|
* @license
|
|
@@ -1849,7 +1852,7 @@ function _type_of$1(obj) {
|
|
|
1849
1852
|
return {
|
|
1850
1853
|
set: function set(r) {
|
|
1851
1854
|
var n = _$e.get.call(this);
|
|
1852
|
-
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
|
|
1855
|
+
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t, true, r);
|
|
1853
1856
|
},
|
|
1854
1857
|
init: function init(e) {
|
|
1855
1858
|
return void 0 !== e && this.C(o1, void 0, _$t, e), e;
|
|
@@ -1860,7 +1863,7 @@ function _type_of$1(obj) {
|
|
|
1860
1863
|
var o2 = r.name;
|
|
1861
1864
|
return function r(r) {
|
|
1862
1865
|
var n = this[o2];
|
|
1863
|
-
_$e.call(this, r), this.requestUpdate(o2, n, _$t);
|
|
1866
|
+
_$e.call(this, r), this.requestUpdate(o2, n, _$t, true, r);
|
|
1864
1867
|
};
|
|
1865
1868
|
}
|
|
1866
1869
|
throw Error("Unsupported decorator location: " + n);
|
|
@@ -1977,7 +1980,7 @@ class HeygenElement extends i {
|
|
|
1977
1980
|
this.updateStatus('SESSION_STOPPED');
|
|
1978
1981
|
}
|
|
1979
1982
|
render() {
|
|
1980
|
-
return
|
|
1983
|
+
return b` <video style=${this.videoStyle} autoplay></video> `;
|
|
1981
1984
|
}
|
|
1982
1985
|
constructor(...args){
|
|
1983
1986
|
super(...args);
|
package/package.json
CHANGED
package/dist/src/index.d.ts
DELETED
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class HeygenElement extends LitElement {
|
|
3
|
-
videoStyle: string;
|
|
4
|
-
mediaElement: HTMLVideoElement;
|
|
5
|
-
private peerConnection;
|
|
6
|
-
private updateStatus;
|
|
7
|
-
start(sessionInfo: any): Promise<{
|
|
8
|
-
sessionId: any;
|
|
9
|
-
sdp: RTCSessionDescriptionInit;
|
|
10
|
-
}>;
|
|
11
|
-
stop(): Promise<void>;
|
|
12
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=skill-web-heygen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skill-web-heygen.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-web-heygen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,qBACa,aAAc,SAAQ,UAAU;IAE3C,UAAU,SAAM;IAEA,YAAY,EAAG,gBAAgB,CAAC;IAEhD,OAAO,CAAC,cAAc,CAAqB;IAE3C,OAAO,CAAC,YAAY;IAId,KAAK,CAAC,WAAW,EAAE,GAAG;;;;IA8DtB,IAAI;IAKD,MAAM;CAGhB"}
|