lr-chatbot 0.24.4 → 0.25.0
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/{chatbot-Bo5XYKzS.js → chatbot-Aqi3JULC.js} +19 -16
- package/chatbot-Aqi3JULC.js.map +1 -0
- package/index.js +444 -429
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/chatbot-Bo5XYKzS.js.map +0 -1
package/index.js
CHANGED
|
@@ -142,8 +142,8 @@ function m() {
|
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
function u(F, A, P, B) {
|
|
145
|
-
var W = A && A.prototype instanceof v ? A : v,
|
|
146
|
-
return i(
|
|
145
|
+
var W = A && A.prototype instanceof v ? A : v, H = Object.create(W.prototype), ie = new Y(B || []);
|
|
146
|
+
return i(H, "_invoke", { value: le(F, P, ie) }), H;
|
|
147
147
|
}
|
|
148
148
|
function d(F, A, P) {
|
|
149
149
|
try {
|
|
@@ -164,7 +164,7 @@ function m() {
|
|
|
164
164
|
c($, s, function() {
|
|
165
165
|
return this;
|
|
166
166
|
});
|
|
167
|
-
var R = Object.getPrototypeOf, U = R && R(R(
|
|
167
|
+
var R = Object.getPrototypeOf, U = R && R(R(je([])));
|
|
168
168
|
U && U !== e && n.call(U, s) && ($ = U);
|
|
169
169
|
var re = _.prototype = v.prototype = Object.create($);
|
|
170
170
|
function G(F) {
|
|
@@ -175,27 +175,27 @@ function m() {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
function he(F, A) {
|
|
178
|
-
function P(W,
|
|
179
|
-
var ve = d(F[W], F,
|
|
178
|
+
function P(W, H, ie, ue) {
|
|
179
|
+
var ve = d(F[W], F, H);
|
|
180
180
|
if (ve.type !== "throw") {
|
|
181
181
|
var Ye = ve.arg, Le = Ye.value;
|
|
182
|
-
return Le && z(Le) == "object" && n.call(Le, "__await") ? A.resolve(Le.__await).then(function(
|
|
183
|
-
P("next",
|
|
184
|
-
}, function(
|
|
185
|
-
P("throw",
|
|
186
|
-
}) : A.resolve(Le).then(function(
|
|
187
|
-
Ye.value =
|
|
188
|
-
}, function(
|
|
189
|
-
return P("throw",
|
|
182
|
+
return Le && z(Le) == "object" && n.call(Le, "__await") ? A.resolve(Le.__await).then(function(He) {
|
|
183
|
+
P("next", He, ie, ue);
|
|
184
|
+
}, function(He) {
|
|
185
|
+
P("throw", He, ie, ue);
|
|
186
|
+
}) : A.resolve(Le).then(function(He) {
|
|
187
|
+
Ye.value = He, ie(Ye);
|
|
188
|
+
}, function(He) {
|
|
189
|
+
return P("throw", He, ie, ue);
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
ue(ve.arg);
|
|
193
193
|
}
|
|
194
194
|
var B;
|
|
195
|
-
i(this, "_invoke", { value: function(
|
|
195
|
+
i(this, "_invoke", { value: function(H, ie) {
|
|
196
196
|
function ue() {
|
|
197
197
|
return new A(function(ve, Ye) {
|
|
198
|
-
P(
|
|
198
|
+
P(H, ie, ve, Ye);
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
return B = B ? B.then(ue, ue) : ue();
|
|
@@ -203,13 +203,13 @@ function m() {
|
|
|
203
203
|
}
|
|
204
204
|
function le(F, A, P) {
|
|
205
205
|
var B = h;
|
|
206
|
-
return function(W,
|
|
206
|
+
return function(W, H) {
|
|
207
207
|
if (B === f) throw Error("Generator is already running");
|
|
208
208
|
if (B === g) {
|
|
209
|
-
if (W === "throw") throw
|
|
209
|
+
if (W === "throw") throw H;
|
|
210
210
|
return { value: t, done: !0 };
|
|
211
211
|
}
|
|
212
|
-
for (P.method = W, P.arg =
|
|
212
|
+
for (P.method = W, P.arg = H; ; ) {
|
|
213
213
|
var ie = P.delegate;
|
|
214
214
|
if (ie) {
|
|
215
215
|
var ue = Ie(ie, P);
|
|
@@ -238,8 +238,8 @@ function m() {
|
|
|
238
238
|
if (B === t) return A.delegate = null, P === "throw" && F.iterator.return && (A.method = "return", A.arg = t, Ie(F, A), A.method === "throw") || P !== "return" && (A.method = "throw", A.arg = new TypeError("The iterator does not provide a '" + P + "' method")), y;
|
|
239
239
|
var W = d(B, F.iterator, A.arg);
|
|
240
240
|
if (W.type === "throw") return A.method = "throw", A.arg = W.arg, A.delegate = null, y;
|
|
241
|
-
var
|
|
242
|
-
return
|
|
241
|
+
var H = W.arg;
|
|
242
|
+
return H ? H.done ? (A[F.resultName] = H.value, A.next = F.nextLoc, A.method !== "return" && (A.method = "next", A.arg = t), A.delegate = null, y) : H : (A.method = "throw", A.arg = new TypeError("iterator result is not an object"), A.delegate = null, y);
|
|
243
243
|
}
|
|
244
244
|
function K(F) {
|
|
245
245
|
var A = { tryLoc: F[0] };
|
|
@@ -252,7 +252,7 @@ function m() {
|
|
|
252
252
|
function Y(F) {
|
|
253
253
|
this.tryEntries = [{ tryLoc: "root" }], F.forEach(K, this), this.reset(!0);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function je(F) {
|
|
256
256
|
if (F || F === "") {
|
|
257
257
|
var A = F[s];
|
|
258
258
|
if (A) return A.call(F);
|
|
@@ -278,9 +278,9 @@ function m() {
|
|
|
278
278
|
return this;
|
|
279
279
|
}), r.AsyncIterator = he, r.async = function(F, A, P, B, W) {
|
|
280
280
|
W === void 0 && (W = Promise);
|
|
281
|
-
var
|
|
282
|
-
return r.isGeneratorFunction(A) ?
|
|
283
|
-
return ie.done ? ie.value :
|
|
281
|
+
var H = new he(u(F, A, P, B), W);
|
|
282
|
+
return r.isGeneratorFunction(A) ? H : H.next().then(function(ie) {
|
|
283
|
+
return ie.done ? ie.value : H.next();
|
|
284
284
|
});
|
|
285
285
|
}, G(re), c(re, l, "Generator"), c(re, s, function() {
|
|
286
286
|
return this;
|
|
@@ -291,12 +291,12 @@ function m() {
|
|
|
291
291
|
for (var B in A) P.push(B);
|
|
292
292
|
return P.reverse(), function W() {
|
|
293
293
|
for (; P.length; ) {
|
|
294
|
-
var
|
|
295
|
-
if (
|
|
294
|
+
var H = P.pop();
|
|
295
|
+
if (H in A) return W.value = H, W.done = !1, W;
|
|
296
296
|
}
|
|
297
297
|
return W.done = !0, W;
|
|
298
298
|
};
|
|
299
|
-
}, r.values =
|
|
299
|
+
}, r.values = je, Y.prototype = { constructor: Y, reset: function(A) {
|
|
300
300
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(ge), !A) for (var P in this) P.charAt(0) === "t" && n.call(this, P) && !isNaN(+P.slice(1)) && (this[P] = t);
|
|
301
301
|
}, stop: function() {
|
|
302
302
|
this.done = !0;
|
|
@@ -310,18 +310,18 @@ function m() {
|
|
|
310
310
|
return ie.type = "throw", ie.arg = A, P.next = Ye, Le && (P.method = "next", P.arg = t), !!Le;
|
|
311
311
|
}
|
|
312
312
|
for (var W = this.tryEntries.length - 1; W >= 0; --W) {
|
|
313
|
-
var
|
|
314
|
-
if (
|
|
315
|
-
if (
|
|
316
|
-
var ue = n.call(
|
|
313
|
+
var H = this.tryEntries[W], ie = H.completion;
|
|
314
|
+
if (H.tryLoc === "root") return B("end");
|
|
315
|
+
if (H.tryLoc <= this.prev) {
|
|
316
|
+
var ue = n.call(H, "catchLoc"), ve = n.call(H, "finallyLoc");
|
|
317
317
|
if (ue && ve) {
|
|
318
|
-
if (this.prev <
|
|
319
|
-
if (this.prev <
|
|
318
|
+
if (this.prev < H.catchLoc) return B(H.catchLoc, !0);
|
|
319
|
+
if (this.prev < H.finallyLoc) return B(H.finallyLoc);
|
|
320
320
|
} else if (ue) {
|
|
321
|
-
if (this.prev <
|
|
321
|
+
if (this.prev < H.catchLoc) return B(H.catchLoc, !0);
|
|
322
322
|
} else {
|
|
323
323
|
if (!ve) throw Error("try statement without catch or finally");
|
|
324
|
-
if (this.prev <
|
|
324
|
+
if (this.prev < H.finallyLoc) return B(H.finallyLoc);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
@@ -329,13 +329,13 @@ function m() {
|
|
|
329
329
|
for (var B = this.tryEntries.length - 1; B >= 0; --B) {
|
|
330
330
|
var W = this.tryEntries[B];
|
|
331
331
|
if (W.tryLoc <= this.prev && n.call(W, "finallyLoc") && this.prev < W.finallyLoc) {
|
|
332
|
-
var
|
|
332
|
+
var H = W;
|
|
333
333
|
break;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
var ie =
|
|
338
|
-
return ie.type = A, ie.arg = P,
|
|
336
|
+
H && (A === "break" || A === "continue") && H.tryLoc <= P && P <= H.finallyLoc && (H = null);
|
|
337
|
+
var ie = H ? H.completion : {};
|
|
338
|
+
return ie.type = A, ie.arg = P, H ? (this.method = "next", this.next = H.finallyLoc, y) : this.complete(ie);
|
|
339
339
|
}, complete: function(A, P) {
|
|
340
340
|
if (A.type === "throw") throw A.arg;
|
|
341
341
|
return A.type === "break" || A.type === "continue" ? this.next = A.arg : A.type === "return" ? (this.rval = this.arg = A.arg, this.method = "return", this.next = "end") : A.type === "normal" && P && (this.next = P), y;
|
|
@@ -350,15 +350,15 @@ function m() {
|
|
|
350
350
|
if (B.tryLoc === A) {
|
|
351
351
|
var W = B.completion;
|
|
352
352
|
if (W.type === "throw") {
|
|
353
|
-
var
|
|
353
|
+
var H = W.arg;
|
|
354
354
|
ge(B);
|
|
355
355
|
}
|
|
356
|
-
return
|
|
356
|
+
return H;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
throw Error("illegal catch attempt");
|
|
360
360
|
}, delegateYield: function(A, P, B) {
|
|
361
|
-
return this.delegate = { iterator:
|
|
361
|
+
return this.delegate = { iterator: je(A), resultName: P, nextLoc: B }, this.method === "next" && (this.arg = t), y;
|
|
362
362
|
} }, r;
|
|
363
363
|
}
|
|
364
364
|
function go(t, r, e, n, i, a, s) {
|
|
@@ -608,7 +608,7 @@ Jc.DEFAULT_COMPONENT_STYLE = {
|
|
|
608
608
|
};
|
|
609
609
|
var la = Jc, ke = /* @__PURE__ */ function(t) {
|
|
610
610
|
return t.ESCAPE = "Escape", t.ENTER = "Enter", t.TAB = "Tab", t.ARROW_UP = "ArrowUp", t.ARROW_DOWN = "ArrowDown", t.ARROW_RIGHT = "ArrowRight", t.ARROW_LEFT = "ArrowLeft", t.BACKSPACE = "Backspace", t.DELETE = "Delete", t.META = "Meta", t.CONTROL = "Control", t;
|
|
611
|
-
}(ke || {}), Pr,
|
|
611
|
+
}(ke || {}), Pr, vn = (Pr = /* @__PURE__ */ k(function t() {
|
|
612
612
|
w(this, t);
|
|
613
613
|
}), Pr.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Pr.IS_CHROMIUM = window.chrome, Pr), Zc = /* @__PURE__ */ function() {
|
|
614
614
|
function t() {
|
|
@@ -674,7 +674,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
|
|
|
674
674
|
key: "createInputElement",
|
|
675
675
|
value: function(e) {
|
|
676
676
|
var n, i, a = document.createElement("div");
|
|
677
|
-
return a.id = t.TEXT_INPUT_ID, a.classList.add("text-input-styling", t.PLACEHOLDER_TEXT_CLASS),
|
|
677
|
+
return a.id = t.TEXT_INPUT_ID, a.classList.add("text-input-styling", t.PLACEHOLDER_TEXT_CLASS), vn.IS_CHROMIUM && t.preventAutomaticScrollUpOnNewLine(a), typeof (e == null ? void 0 : e.disabled) == "boolean" && e.disabled === !0 ? (a.contentEditable = "false", a.classList.add("text-input-disabled")) : (a.contentEditable = "true", this.addEventListeners(a, e)), Object.assign(a.style, (n = e == null ? void 0 : e.styles) == null ? void 0 : n.text), Object.assign(a.style, (i = e == null ? void 0 : e.placeholder) == null ? void 0 : i.style), a;
|
|
678
678
|
}
|
|
679
679
|
}, {
|
|
680
680
|
key: "removeTextIfPlaceholder",
|
|
@@ -692,7 +692,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
|
|
|
692
692
|
key: "onFocus",
|
|
693
693
|
value: function(e) {
|
|
694
694
|
var n = this;
|
|
695
|
-
|
|
695
|
+
vn.IS_SAFARI ? setTimeout(function() {
|
|
696
696
|
n.removeTextIfPlaceholder();
|
|
697
697
|
}) : this.removeTextIfPlaceholder(), Object.assign(this.elementRef.style, e);
|
|
698
698
|
}
|
|
@@ -740,7 +740,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
|
|
|
740
740
|
key: "clear",
|
|
741
741
|
value: function(e) {
|
|
742
742
|
var n = window.scrollY;
|
|
743
|
-
e.classList.contains("text-input-disabled") || (e.textContent = ""),
|
|
743
|
+
e.classList.contains("text-input-disabled") || (e.textContent = ""), vn.IS_CHROMIUM && window.scrollTo({
|
|
744
744
|
top: n
|
|
745
745
|
});
|
|
746
746
|
}
|
|
@@ -1248,7 +1248,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1248
1248
|
var o = i.getElementsByClassName(s);
|
|
1249
1249
|
Array.from(o || []).forEach(function(l) {
|
|
1250
1250
|
var c = t.getProcessedStyles(n, l, s);
|
|
1251
|
-
|
|
1251
|
+
yn.applyStylesToElement(l, c), t.applyEvents(l, s);
|
|
1252
1252
|
});
|
|
1253
1253
|
});
|
|
1254
1254
|
var a = i.getElementsByClassName(bh);
|
|
@@ -1257,7 +1257,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1257
1257
|
});
|
|
1258
1258
|
}
|
|
1259
1259
|
}]);
|
|
1260
|
-
}(),
|
|
1260
|
+
}(), yn = /* @__PURE__ */ function() {
|
|
1261
1261
|
function t() {
|
|
1262
1262
|
w(this, t);
|
|
1263
1263
|
}
|
|
@@ -1331,7 +1331,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1331
1331
|
key: "overwrite",
|
|
1332
1332
|
value: function(e, n, i, a) {
|
|
1333
1333
|
var s = e.messages, o = J.overwriteMessage(s, a, n, i, "html", "html-message");
|
|
1334
|
-
return o && (o.bubbleElement.innerHTML = n,
|
|
1334
|
+
return o && (o.bubbleElement.innerHTML = n, yn.apply(e, o.outerContainer), $e.flagHTMLUpdateClass(o.bubbleElement)), o;
|
|
1335
1335
|
}
|
|
1336
1336
|
// prettier-ignore
|
|
1337
1337
|
}, {
|
|
@@ -1344,7 +1344,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1344
1344
|
s.status = !1;
|
|
1345
1345
|
}
|
|
1346
1346
|
var u = t.createElements(e, n, i, o);
|
|
1347
|
-
return J.fillEmptyMessageElement(u.bubbleElement, n),
|
|
1347
|
+
return J.fillEmptyMessageElement(u.bubbleElement, n), yn.apply(e, u.outerContainer), $e.flagHTMLUpdateClass(u.bubbleElement), e.applyCustomStyles(u, i, !1, (l = e.messageStyles) == null ? void 0 : l.html), o || t.addElement(e, u.outerContainer), u;
|
|
1348
1348
|
}
|
|
1349
1349
|
}]);
|
|
1350
1350
|
}(), Fr;
|
|
@@ -1407,10 +1407,10 @@ N.blockquote_open = function() {
|
|
|
1407
1407
|
`;
|
|
1408
1408
|
};
|
|
1409
1409
|
N.blockquote_close = function(t, r) {
|
|
1410
|
-
return "</blockquote>" +
|
|
1410
|
+
return "</blockquote>" + Vt(t, r);
|
|
1411
1411
|
};
|
|
1412
1412
|
N.code = function(t, r) {
|
|
1413
|
-
return t[r].block ? "<pre><code>" + Pe(t[r].content) + "</code></pre>" +
|
|
1413
|
+
return t[r].block ? "<pre><code>" + Pe(t[r].content) + "</code></pre>" + Vt(t, r) : "<code>" + Pe(t[r].content) + "</code>";
|
|
1414
1414
|
};
|
|
1415
1415
|
N.fence = function(t, r, e, n, i) {
|
|
1416
1416
|
var a = t[r], s = "", o = e.langPrefix, l = "", c, u, d;
|
|
@@ -1418,7 +1418,7 @@ N.fence = function(t, r, e, n, i) {
|
|
|
1418
1418
|
if (c = a.params.split(/\s+/g), u = c.join(" "), kh(i.rules.fence_custom, c[0])) return i.rules.fence_custom[c[0]](t, r, e, n, i);
|
|
1419
1419
|
l = Pe(Bt(ar(u))), s = ' class="' + o + l + '"';
|
|
1420
1420
|
}
|
|
1421
|
-
return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || Pe(a.content) : d = Pe(a.content), "<pre><code" + s + ">" + d + "</code></pre>" +
|
|
1421
|
+
return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || Pe(a.content) : d = Pe(a.content), "<pre><code" + s + ">" + d + "</code></pre>" + Vt(t, r);
|
|
1422
1422
|
};
|
|
1423
1423
|
N.fence_custom = {};
|
|
1424
1424
|
N.heading_open = function(t, r) {
|
|
@@ -1429,14 +1429,14 @@ N.heading_close = function(t, r) {
|
|
|
1429
1429
|
`;
|
|
1430
1430
|
};
|
|
1431
1431
|
N.hr = function(t, r, e) {
|
|
1432
|
-
return (e.xhtmlOut ? "<hr />" : "<hr>") +
|
|
1432
|
+
return (e.xhtmlOut ? "<hr />" : "<hr>") + Vt(t, r);
|
|
1433
1433
|
};
|
|
1434
1434
|
N.bullet_list_open = function() {
|
|
1435
1435
|
return `<ul>
|
|
1436
1436
|
`;
|
|
1437
1437
|
};
|
|
1438
1438
|
N.bullet_list_close = function(t, r) {
|
|
1439
|
-
return "</ul>" +
|
|
1439
|
+
return "</ul>" + Vt(t, r);
|
|
1440
1440
|
};
|
|
1441
1441
|
N.list_item_open = function() {
|
|
1442
1442
|
return "<li>";
|
|
@@ -1451,14 +1451,14 @@ N.ordered_list_open = function(t, r) {
|
|
|
1451
1451
|
`;
|
|
1452
1452
|
};
|
|
1453
1453
|
N.ordered_list_close = function(t, r) {
|
|
1454
|
-
return "</ol>" +
|
|
1454
|
+
return "</ol>" + Vt(t, r);
|
|
1455
1455
|
};
|
|
1456
1456
|
N.paragraph_open = function(t, r) {
|
|
1457
1457
|
return t[r].tight ? "" : "<p>";
|
|
1458
1458
|
};
|
|
1459
1459
|
N.paragraph_close = function(t, r) {
|
|
1460
1460
|
var e = !(t[r].tight && r && t[r - 1].type === "inline" && !t[r - 1].content);
|
|
1461
|
-
return (t[r].tight ? "" : "</p>") + (e ?
|
|
1461
|
+
return (t[r].tight ? "" : "</p>") + (e ? Vt(t, r) : "");
|
|
1462
1462
|
};
|
|
1463
1463
|
N.link_open = function(t, r, e) {
|
|
1464
1464
|
var n = t[r].title ? ' title="' + Pe(Bt(t[r].title)) + '"' : "", i = e.linkTarget ? ' target="' + e.linkTarget + '"' : "";
|
|
@@ -1632,7 +1632,7 @@ N.dd_close = function() {
|
|
|
1632
1632
|
function su(t, r) {
|
|
1633
1633
|
return ++r >= t.length - 2 ? r : t[r].type === "paragraph_open" && t[r].tight && t[r + 1].type === "inline" && t[r + 1].content.length === 0 && t[r + 2].type === "paragraph_close" && t[r + 2].tight ? su(t, r + 2) : r;
|
|
1634
1634
|
}
|
|
1635
|
-
var
|
|
1635
|
+
var Vt = N.getBreak = function(t, r) {
|
|
1636
1636
|
return r = su(t, r), r < t.length && t[r].type === "list_item_close" ? "" : `
|
|
1637
1637
|
`;
|
|
1638
1638
|
};
|
|
@@ -1728,24 +1728,24 @@ function Oh(t) {
|
|
|
1728
1728
|
children: []
|
|
1729
1729
|
}) : t.block.parse(t.src, t.options, t.env, t.tokens);
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function Wt(t, r, e, n, i) {
|
|
1732
1732
|
this.src = t, this.env = n, this.options = e, this.parser = r, this.tokens = i, this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = [], this.isInLabel = !1, this.linkLevel = 0, this.linkContent = "", this.labelUnmatchedScopes = 0;
|
|
1733
1733
|
}
|
|
1734
|
-
|
|
1734
|
+
Wt.prototype.pushPending = function() {
|
|
1735
1735
|
this.tokens.push({
|
|
1736
1736
|
type: "text",
|
|
1737
1737
|
content: this.pending,
|
|
1738
1738
|
level: this.pendingLevel
|
|
1739
1739
|
}), this.pending = "";
|
|
1740
1740
|
};
|
|
1741
|
-
|
|
1741
|
+
Wt.prototype.push = function(t) {
|
|
1742
1742
|
this.pending && this.pushPending(), this.tokens.push(t), this.pendingLevel = this.level;
|
|
1743
1743
|
};
|
|
1744
|
-
|
|
1744
|
+
Wt.prototype.cacheSet = function(t, r) {
|
|
1745
1745
|
for (var e = this.cache.length; e <= t; e++) this.cache.push(0);
|
|
1746
1746
|
this.cache[t] = r;
|
|
1747
1747
|
};
|
|
1748
|
-
|
|
1748
|
+
Wt.prototype.cacheGet = function(t) {
|
|
1749
1749
|
return t < this.cache.length ? this.cache[t] : 0;
|
|
1750
1750
|
};
|
|
1751
1751
|
function sr(t, r) {
|
|
@@ -1764,7 +1764,7 @@ function sr(t, r) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
function Ih(t, r, e, n) {
|
|
1766
1766
|
var i, a, s, o, l, c;
|
|
1767
|
-
if (t.charCodeAt(0) !== 42 || t.charCodeAt(1) !== 91 || t.indexOf("]:") === -1 || (i = new
|
|
1767
|
+
if (t.charCodeAt(0) !== 42 || t.charCodeAt(1) !== 91 || t.indexOf("]:") === -1 || (i = new Wt(t, r, e, n, []), a = sr(i, 1), a < 0 || t.charCodeAt(a + 1) !== 58)) return -1;
|
|
1768
1768
|
for (o = i.posMax, s = a + 2; s < o && i.src.charCodeAt(s) !== 10; s++) ;
|
|
1769
1769
|
return l = t.slice(2, a), c = t.slice(a + 2, s).trim(), c.length === 0 ? -1 : (n.abbreviations || (n.abbreviations = {}), z(n.abbreviations[":" + l]) > "u" && (n.abbreviations[":" + l] = c), s);
|
|
1770
1770
|
}
|
|
@@ -1827,7 +1827,7 @@ function cu(t) {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
function Mh(t, r, e, n) {
|
|
1829
1829
|
var i, a, s, o, l, c, u, d, h;
|
|
1830
|
-
if (t.charCodeAt(0) !== 91 || t.indexOf("]:") === -1 || (i = new
|
|
1830
|
+
if (t.charCodeAt(0) !== 91 || t.indexOf("]:") === -1 || (i = new Wt(t, r, e, n, []), a = sr(i, 0), a < 0 || t.charCodeAt(a + 1) !== 58)) return -1;
|
|
1831
1831
|
for (o = i.posMax, s = a + 2; s < o && (l = i.src.charCodeAt(s), !(l !== 32 && l !== 10)); s++) ;
|
|
1832
1832
|
if (!ou(i, s)) return -1;
|
|
1833
1833
|
for (u = i.linkContent, s = i.pos, c = s, s = s + 1; s < o && (l = i.src.charCodeAt(s), !(l !== 32 && l !== 10)); s++) ;
|
|
@@ -1932,28 +1932,28 @@ function Nh(t) {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
|
-
var Dh = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Bh = /\((c|tm|r|p)\)/ig,
|
|
1935
|
+
var Dh = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Bh = /\((c|tm|r|p)\)/ig, jh = {
|
|
1936
1936
|
c: "©",
|
|
1937
1937
|
r: "®",
|
|
1938
1938
|
p: "§",
|
|
1939
1939
|
tm: "™"
|
|
1940
1940
|
};
|
|
1941
|
-
function
|
|
1941
|
+
function Hh(t) {
|
|
1942
1942
|
return t.indexOf("(") < 0 ? t : t.replace(Bh, function(r, e) {
|
|
1943
|
-
return
|
|
1943
|
+
return jh[e.toLowerCase()];
|
|
1944
1944
|
});
|
|
1945
1945
|
}
|
|
1946
1946
|
function Uh(t) {
|
|
1947
1947
|
var r, e, n, i, a;
|
|
1948
1948
|
if (t.options.typographer) {
|
|
1949
|
-
for (a = t.tokens.length - 1; a >= 0; a--) if (t.tokens[a].type === "inline") for (i = t.tokens[a].children, r = i.length - 1; r >= 0; r--) e = i[r], e.type === "text" && (n = e.content, n =
|
|
1949
|
+
for (a = t.tokens.length - 1; a >= 0; a--) if (t.tokens[a].type === "inline") for (i = t.tokens[a].children, r = i.length - 1; r >= 0; r--) e = i[r], e.type === "text" && (n = e.content, n = Hh(n), Dh.test(n) && (n = n.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---([^-]|$)/mg, "$1—$2").replace(/(^|\s)--(\s|$)/mg, "$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg, "$1–$2")), e.content = n);
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
var zh = /['"]/, xo = /['"]/g, qh = /[-\s()\[\]]/, Eo = "’";
|
|
1953
1953
|
function Ao(t, r) {
|
|
1954
1954
|
return r < 0 || r >= t.length ? !1 : !qh.test(t[r]);
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function en(t, r, e) {
|
|
1957
1957
|
return t.substr(0, r) + e + t.substr(r + 1);
|
|
1958
1958
|
}
|
|
1959
1959
|
function Vh(t) {
|
|
@@ -1965,12 +1965,12 @@ function Vh(t) {
|
|
|
1965
1965
|
v.length = p + 1, n = e.content, a = 0, s = n.length;
|
|
1966
1966
|
e: for (; a < s && (xo.lastIndex = a, i = xo.exec(n), !!i); ) {
|
|
1967
1967
|
if (l = !Ao(n, i.index - 1), a = i.index + 1, f = i[0] === "'", c = !Ao(n, a), !c && !l) {
|
|
1968
|
-
f && (e.content =
|
|
1968
|
+
f && (e.content = en(e.content, i.index, Eo));
|
|
1969
1969
|
continue;
|
|
1970
1970
|
}
|
|
1971
1971
|
if (d = !c, h = !l, h) {
|
|
1972
1972
|
for (p = v.length - 1; p >= 0 && (u = v[p], !(v[p].level < o)); p--) if (u.single === f && v[p].level === o) {
|
|
1973
|
-
u = v[p], f ? (y[u.token].content =
|
|
1973
|
+
u = v[p], f ? (y[u.token].content = en(y[u.token].content, u.pos, t.options.quotes[2]), e.content = en(e.content, i.index, t.options.quotes[3])) : (y[u.token].content = en(y[u.token].content, u.pos, t.options.quotes[0]), e.content = en(e.content, i.index, t.options.quotes[1])), v.length = p;
|
|
1974
1974
|
continue e;
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
@@ -1979,7 +1979,7 @@ function Vh(t) {
|
|
|
1979
1979
|
pos: i.index,
|
|
1980
1980
|
single: f,
|
|
1981
1981
|
level: o
|
|
1982
|
-
}) : h && f && (e.content =
|
|
1982
|
+
}) : h && f && (e.content = en(e.content, i.index, Eo));
|
|
1983
1983
|
}
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
@@ -1994,7 +1994,7 @@ uu.prototype.process = function(t) {
|
|
|
1994
1994
|
var r, e, n;
|
|
1995
1995
|
for (n = this.ruler.getRules(""), r = 0, e = n.length; r < e; r++) n[r](t);
|
|
1996
1996
|
};
|
|
1997
|
-
function
|
|
1997
|
+
function Gt(t, r, e, n, i) {
|
|
1998
1998
|
var a, s, o, l, c, u, d;
|
|
1999
1999
|
for (this.src = t, this.parser = r, this.options = e, this.env = n, this.tokens = i, this.bMarks = [], this.eMarks = [], this.tShift = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.parentType = "root", this.ddIndent = -1, this.level = 0, this.result = "", s = this.src, u = 0, d = !1, o = l = u = 0, c = s.length; l < c; l++) {
|
|
2000
2000
|
if (a = s.charCodeAt(l), !d) if (a === 32) {
|
|
@@ -2005,27 +2005,27 @@ function Wt(t, r, e, n, i) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
this.bMarks.push(s.length), this.eMarks.push(s.length), this.tShift.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2007
2007
|
}
|
|
2008
|
-
|
|
2008
|
+
Gt.prototype.isEmpty = function(t) {
|
|
2009
2009
|
return this.bMarks[t] + this.tShift[t] >= this.eMarks[t];
|
|
2010
2010
|
};
|
|
2011
|
-
|
|
2011
|
+
Gt.prototype.skipEmptyLines = function(t) {
|
|
2012
2012
|
for (var r = this.lineMax; t < r && !(this.bMarks[t] + this.tShift[t] < this.eMarks[t]); t++) ;
|
|
2013
2013
|
return t;
|
|
2014
2014
|
};
|
|
2015
|
-
|
|
2015
|
+
Gt.prototype.skipSpaces = function(t) {
|
|
2016
2016
|
for (var r = this.src.length; t < r && this.src.charCodeAt(t) === 32; t++) ;
|
|
2017
2017
|
return t;
|
|
2018
2018
|
};
|
|
2019
|
-
|
|
2019
|
+
Gt.prototype.skipChars = function(t, r) {
|
|
2020
2020
|
for (var e = this.src.length; t < e && this.src.charCodeAt(t) === r; t++) ;
|
|
2021
2021
|
return t;
|
|
2022
2022
|
};
|
|
2023
|
-
|
|
2023
|
+
Gt.prototype.skipCharsBack = function(t, r, e) {
|
|
2024
2024
|
if (t <= e) return t;
|
|
2025
2025
|
for (; t > e; ) if (r !== this.src.charCodeAt(--t)) return t + 1;
|
|
2026
2026
|
return t;
|
|
2027
2027
|
};
|
|
2028
|
-
|
|
2028
|
+
Gt.prototype.getLines = function(t, r, e, n) {
|
|
2029
2029
|
var i, a, s, o, l, c = t;
|
|
2030
2030
|
if (t >= r) return "";
|
|
2031
2031
|
if (c + 1 === r) return a = this.bMarks[c] + Math.min(this.tShift[c], e), s = n ? this.eMarks[c] + 1 : this.eMarks[c], this.src.slice(a, s);
|
|
@@ -2440,7 +2440,7 @@ xs.prototype.parse = function(t, r, e, n) {
|
|
|
2440
2440
|
`), t.indexOf(" ") >= 0 && (t = t.replace(cp, function(o, l) {
|
|
2441
2441
|
var c;
|
|
2442
2442
|
return t.charCodeAt(l) === 10 ? (a = l + 1, s = 0, o) : (c = " ".slice((l - a - s) % 4), s = l - a + 1, c);
|
|
2443
|
-
})), i = new
|
|
2443
|
+
})), i = new Gt(t, this, r, e, n), this.tokenize(i, i.line, i.lineMax);
|
|
2444
2444
|
};
|
|
2445
2445
|
function hp(t) {
|
|
2446
2446
|
switch (t) {
|
|
@@ -2773,7 +2773,7 @@ function Si(t, r) {
|
|
|
2773
2773
|
return n ? (i = i.source || i, t = t.replace(n, i), e) : new RegExp(t, r);
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
2776
|
-
var Lp = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, Mp = /[^"'=<>`\x00-\x20]+/, Pp = /'[^']*'/, Fp = /"[^"]*"/, $p = Si(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", Mp)("single_quoted", Pp)("double_quoted", Fp)(), Np = Si(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", Lp)("attr_value", $p)(), Dp = Si(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", Np)(), Bp = /<\/[A-Za-z][A-Za-z0-9]*\s*>/,
|
|
2776
|
+
var Lp = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, Mp = /[^"'=<>`\x00-\x20]+/, Pp = /'[^']*'/, Fp = /"[^"]*"/, $p = Si(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", Mp)("single_quoted", Pp)("double_quoted", Fp)(), Np = Si(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", Lp)("attr_value", $p)(), Dp = Si(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", Np)(), Bp = /<\/[A-Za-z][A-Za-z0-9]*\s*>/, jp = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/, Hp = /<[?].*?[?]>/, Up = /<![A-Z]+\s+[^>]*>/, zp = /<!\[CDATA\[[\s\S]*?\]\]>/, qp = Si(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", Dp)("close_tag", Bp)("comment", jp)("processing", Hp)("declaration", Up)("cdata", zp)();
|
|
2777
2777
|
function Vp(t) {
|
|
2778
2778
|
var r = t | 32;
|
|
2779
2779
|
return r >= 97 && r <= 122;
|
|
@@ -2830,7 +2830,7 @@ Ci.prototype.tokenize = function(t) {
|
|
|
2830
2830
|
t.pending && t.pushPending();
|
|
2831
2831
|
};
|
|
2832
2832
|
Ci.prototype.parse = function(t, r, e, n) {
|
|
2833
|
-
var i = new
|
|
2833
|
+
var i = new Wt(t, this, r, e, n);
|
|
2834
2834
|
this.tokenize(i);
|
|
2835
2835
|
};
|
|
2836
2836
|
function Zp(t) {
|
|
@@ -3412,7 +3412,7 @@ var Me = pu, ci = /* @__PURE__ */ function() {
|
|
|
3412
3412
|
var e, n, i = this._messages.textElementsToText;
|
|
3413
3413
|
if (!this._endStreamAfterOperation && !(this._fileAdded && !this._elements)) {
|
|
3414
3414
|
if (!this._elements) throw Error(fe.NO_VALID_STREAM_EVENTS_SENT);
|
|
3415
|
-
(e = this._elements.bubbleElement) != null && e.classList.contains(t.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && zr.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === t.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((n = this._elements.bubbleElement) == null ? void 0 : n.innerHTML) || ""), this._elements &&
|
|
3415
|
+
(e = this._elements.bubbleElement) != null && e.classList.contains(t.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && zr.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === t.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((n = this._elements.bubbleElement) == null ? void 0 : n.innerHTML) || ""), this._elements && yn.apply(this._messages, this._elements.outerContainer), this._message && (this._message.html = this._streamedContent)), this._message && this._messages.sendClientUpdate(fu.createMessageContent(this._message), !1), this._hasStreamEnded = !0);
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
}, {
|
|
@@ -3770,7 +3770,7 @@ var ye = /* @__PURE__ */ function() {
|
|
|
3770
3770
|
openWhenHidden: !0,
|
|
3771
3771
|
// keep stream open when browser tab not open
|
|
3772
3772
|
onopen: function(Y) {
|
|
3773
|
-
return S(/* @__PURE__ */ m().mark(function
|
|
3773
|
+
return S(/* @__PURE__ */ m().mark(function je() {
|
|
3774
3774
|
return m().wrap(function(A) {
|
|
3775
3775
|
for (; ; ) switch (A.prev = A.next) {
|
|
3776
3776
|
case 0:
|
|
@@ -3787,11 +3787,11 @@ var ye = /* @__PURE__ */ function() {
|
|
|
3787
3787
|
case "end":
|
|
3788
3788
|
return A.stop();
|
|
3789
3789
|
}
|
|
3790
|
-
},
|
|
3790
|
+
}, je);
|
|
3791
3791
|
}))();
|
|
3792
3792
|
},
|
|
3793
3793
|
onmessage: function(Y) {
|
|
3794
|
-
return S(/* @__PURE__ */ m().mark(function
|
|
3794
|
+
return S(/* @__PURE__ */ m().mark(function je() {
|
|
3795
3795
|
var F, A, P, B, W;
|
|
3796
3796
|
return m().wrap(function(ie) {
|
|
3797
3797
|
for (; ; ) switch (ie.prev = ie.next) {
|
|
@@ -3822,7 +3822,7 @@ var ye = /* @__PURE__ */ function() {
|
|
|
3822
3822
|
case "end":
|
|
3823
3823
|
return ie.stop();
|
|
3824
3824
|
}
|
|
3825
|
-
},
|
|
3825
|
+
}, je);
|
|
3826
3826
|
}))();
|
|
3827
3827
|
},
|
|
3828
3828
|
onerror: function(Y) {
|
|
@@ -3840,8 +3840,8 @@ var ye = /* @__PURE__ */ function() {
|
|
|
3840
3840
|
var Y;
|
|
3841
3841
|
s.isLastMessageError() || (Y = i.extractResultData) == null || Y.call(i, ge).then(function() {
|
|
3842
3842
|
X.displayError(s, ge);
|
|
3843
|
-
}).catch(function(
|
|
3844
|
-
X.displayError(s,
|
|
3843
|
+
}).catch(function(je) {
|
|
3844
|
+
X.displayError(s, je);
|
|
3845
3845
|
});
|
|
3846
3846
|
}), G));
|
|
3847
3847
|
case 21:
|
|
@@ -3870,7 +3870,7 @@ var ye = /* @__PURE__ */ function() {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
if (i.html) {
|
|
3872
3872
|
n.onOpen();
|
|
3873
|
-
var o =
|
|
3873
|
+
var o = yn.splitHTML(i.html);
|
|
3874
3874
|
t.populateMessages(o, new yt(e), a, "html");
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
@@ -5372,7 +5372,7 @@ var Fo = Wn, $o = {
|
|
|
5372
5372
|
}
|
|
5373
5373
|
],
|
|
5374
5374
|
use_web_worker: !0
|
|
5375
|
-
},
|
|
5375
|
+
}, hn = /* @__PURE__ */ function(t) {
|
|
5376
5376
|
function r(e) {
|
|
5377
5377
|
var n;
|
|
5378
5378
|
w(this, r);
|
|
@@ -5836,8 +5836,8 @@ var Fo = Wn, $o = {
|
|
|
5836
5836
|
}
|
|
5837
5837
|
}]);
|
|
5838
5838
|
}(ui);
|
|
5839
|
-
|
|
5840
|
-
var Rs =
|
|
5839
|
+
hn.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", hn.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", hn.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", hn.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", hn.MODULE_SEARCH_LIMIT_S = 5;
|
|
5840
|
+
var Rs = hn, No = /* @__PURE__ */ function() {
|
|
5841
5841
|
function t() {
|
|
5842
5842
|
w(this, t);
|
|
5843
5843
|
}
|
|
@@ -5911,7 +5911,7 @@ var Rs = dn, No = /* @__PURE__ */ function() {
|
|
|
5911
5911
|
}]);
|
|
5912
5912
|
}(Oe);
|
|
5913
5913
|
yu.URL_PREFIX = "https://api-inference.huggingface.co/models/";
|
|
5914
|
-
var
|
|
5914
|
+
var Kt = yu, Os = /* @__PURE__ */ function(t) {
|
|
5915
5915
|
function r(e, n, i, a, s, o) {
|
|
5916
5916
|
var l;
|
|
5917
5917
|
return w(this, r), l = q(this, r, [e, n, i, a, s, o]), l.isTextInputDisabled = !0, l.canSendMessage = r.canSendFile, l;
|
|
@@ -5959,7 +5959,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
5959
5959
|
return !!(i != null && i[0]);
|
|
5960
5960
|
}
|
|
5961
5961
|
}]);
|
|
5962
|
-
}(
|
|
5962
|
+
}(Kt), vf = /* @__PURE__ */ function(t) {
|
|
5963
5963
|
function r(e) {
|
|
5964
5964
|
w(this, r);
|
|
5965
5965
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.audioClassification, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6370,7 +6370,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
6370
6370
|
return n;
|
|
6371
6371
|
}()
|
|
6372
6372
|
}]);
|
|
6373
|
-
}(
|
|
6373
|
+
}(Kt), Sf = /* @__PURE__ */ function(t) {
|
|
6374
6374
|
function r(e) {
|
|
6375
6375
|
var n;
|
|
6376
6376
|
w(this, r);
|
|
@@ -6419,7 +6419,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
6419
6419
|
return n;
|
|
6420
6420
|
}()
|
|
6421
6421
|
}]);
|
|
6422
|
-
}(
|
|
6422
|
+
}(Kt), Cf = /* @__PURE__ */ function(t) {
|
|
6423
6423
|
function r(e) {
|
|
6424
6424
|
w(this, r);
|
|
6425
6425
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.summarization, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6454,7 +6454,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
6454
6454
|
return n;
|
|
6455
6455
|
}()
|
|
6456
6456
|
}]);
|
|
6457
|
-
}(
|
|
6457
|
+
}(Kt), xf = /* @__PURE__ */ function(t) {
|
|
6458
6458
|
function r(e) {
|
|
6459
6459
|
var n, i;
|
|
6460
6460
|
w(this, r);
|
|
@@ -6525,7 +6525,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
6525
6525
|
return n;
|
|
6526
6526
|
}()
|
|
6527
6527
|
}]);
|
|
6528
|
-
}(
|
|
6528
|
+
}(Kt), Ef = /* @__PURE__ */ function(t) {
|
|
6529
6529
|
function r(e) {
|
|
6530
6530
|
var n;
|
|
6531
6531
|
w(this, r);
|
|
@@ -6663,7 +6663,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
6663
6663
|
return n;
|
|
6664
6664
|
}()
|
|
6665
6665
|
}]);
|
|
6666
|
-
}(
|
|
6666
|
+
}(Kt), Tf = /* @__PURE__ */ function(t) {
|
|
6667
6667
|
function r(e) {
|
|
6668
6668
|
var n;
|
|
6669
6669
|
w(this, r);
|
|
@@ -6791,7 +6791,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
6791
6791
|
return n;
|
|
6792
6792
|
}()
|
|
6793
6793
|
}]);
|
|
6794
|
-
}(
|
|
6794
|
+
}(Kt), Do = /* @__PURE__ */ function() {
|
|
6795
6795
|
function t() {
|
|
6796
6796
|
w(this, t);
|
|
6797
6797
|
}
|
|
@@ -6967,7 +6967,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
6967
6967
|
return n;
|
|
6968
6968
|
}()
|
|
6969
6969
|
}]);
|
|
6970
|
-
}(Is),
|
|
6970
|
+
}(Is), Te = /* @__PURE__ */ function() {
|
|
6971
6971
|
function t() {
|
|
6972
6972
|
w(this, t);
|
|
6973
6973
|
}
|
|
@@ -7032,7 +7032,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
|
|
|
7032
7032
|
var n, i, a;
|
|
7033
7033
|
w(this, r);
|
|
7034
7034
|
var s, o, l, c = JSON.parse(JSON.stringify(e.directConnection)), u = c == null ? void 0 : c.openAI;
|
|
7035
|
-
a = q(this, r, [e,
|
|
7035
|
+
a = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, u]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "https://api.openai.com/v1/audio/speech", a.permittedErrorPrefixes = ["Invalid"], a.introPanelMarkUp = `
|
|
7036
7036
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Text To Speech</b></div>
|
|
7037
7037
|
<p>Generate an audio file based on your text input.</p>
|
|
7038
7038
|
<p>Click <a href="https://platform.openai.com/docs/guides/text-to-speech">here</a> for more information.</p>`;
|
|
@@ -7122,7 +7122,7 @@ var Lf = as, Wr = /* @__PURE__ */ function(t) {
|
|
|
7122
7122
|
var n, i;
|
|
7123
7123
|
w(this, r);
|
|
7124
7124
|
var a, s, o = JSON.parse(JSON.stringify(e.directConnection)), l = o == null ? void 0 : o.openAI;
|
|
7125
|
-
i = q(this, r, [e,
|
|
7125
|
+
i = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, l, {
|
|
7126
7126
|
audio: {}
|
|
7127
7127
|
}]), i.insertKeyPlaceholderText = "OpenAI API Key", i.keyHelpUrl = "https://platform.openai.com/account/api-keys", i.introPanelMarkUp = `
|
|
7128
7128
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Speech To Text</b></div>
|
|
@@ -7224,7 +7224,7 @@ var Lf = as, Wr = /* @__PURE__ */ function(t) {
|
|
|
7224
7224
|
}]);
|
|
7225
7225
|
}(Oe);
|
|
7226
7226
|
Wr.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", Wr.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", Wr.DEFAULT_MODEL = "whisper-1";
|
|
7227
|
-
var Mf = Wr,
|
|
7227
|
+
var Mf = Wr, jt = /* @__PURE__ */ function() {
|
|
7228
7228
|
function t() {
|
|
7229
7229
|
w(this, t);
|
|
7230
7230
|
}
|
|
@@ -7327,7 +7327,7 @@ var Mf = Wr, Ht = /* @__PURE__ */ function() {
|
|
|
7327
7327
|
}(), Pf = /* @__PURE__ */ function(t) {
|
|
7328
7328
|
function r(e, n, i, a, s) {
|
|
7329
7329
|
var o;
|
|
7330
|
-
return w(this, r), o = q(this, r, [e,
|
|
7330
|
+
return w(this, r), o = q(this, r, [e, jt.buildLanguageKeyVerificationDetails(i), n, a, s]), o.insertKeyPlaceholderText = "Azure Language Subscription Key", o.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7331
7331
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", o.permittedErrorPrefixes = ["Access"], o;
|
|
7332
7332
|
}
|
|
7333
7333
|
return V(r, t), k(r);
|
|
@@ -7336,7 +7336,7 @@ var Mf = Wr, Ht = /* @__PURE__ */ function() {
|
|
|
7336
7336
|
var n, i;
|
|
7337
7337
|
w(this, r);
|
|
7338
7338
|
var a, s, o, l, c = (s = (a = e.directConnection) == null ? void 0 : a.azure) == null ? void 0 : s.summarization, u = (o = e.directConnection) == null ? void 0 : o.azure;
|
|
7339
|
-
return i = q(this, r, [e,
|
|
7339
|
+
return i = q(this, r, [e, jt.buildSummarizationHeader, c.endpoint, u]), i.url = "", i.textInputPlaceholderText = "Insert text to summarize", (n = (l = i.rawBody).language) !== null && n !== void 0 || (l.language = "en"), Object.assign(i.rawBody, c), i.url = "".concat(c.endpoint, "/language/analyze-text/jobs?api-version=2022-10-01-preview"), i;
|
|
7340
7340
|
}
|
|
7341
7341
|
return V(r, t), k(r, [{
|
|
7342
7342
|
key: "preprocessBody",
|
|
@@ -7649,7 +7649,7 @@ var Mf = Wr, Ht = /* @__PURE__ */ function() {
|
|
|
7649
7649
|
}(Oe), bu = /* @__PURE__ */ function(t) {
|
|
7650
7650
|
function r(e, n, i, a, s) {
|
|
7651
7651
|
var o;
|
|
7652
|
-
return w(this, r), o = q(this, r, [e,
|
|
7652
|
+
return w(this, r), o = q(this, r, [e, jt.buildSpeechKeyVerificationDetails(i), n, a, s]), o.insertKeyPlaceholderText = "Azure Speech Subscription Key", o.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7653
7653
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", o;
|
|
7654
7654
|
}
|
|
7655
7655
|
return V(r, t), k(r);
|
|
@@ -7658,7 +7658,7 @@ var Mf = Wr, Ht = /* @__PURE__ */ function() {
|
|
|
7658
7658
|
var n, i, a, s;
|
|
7659
7659
|
w(this, r);
|
|
7660
7660
|
var o, l, c, u, d, h, p = (l = (o = e.directConnection) == null ? void 0 : o.azure) == null ? void 0 : l.textToSpeech, f = (c = e.directConnection) == null ? void 0 : c.azure;
|
|
7661
|
-
return s = q(this, r, [e,
|
|
7661
|
+
return s = q(this, r, [e, jt.buildTextToSpeechHeaders.bind({}, (p == null ? void 0 : p.outputFormat) || "audio-16khz-128kbitrate-mono-mp3"), p.region, f]), s.introPanelMarkUp = `
|
|
7662
7662
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Text To Speech</b></div>
|
|
7663
7663
|
<p>Insert text to synthesize it to audio.
|
|
7664
7664
|
<p>
|
|
@@ -7745,7 +7745,7 @@ var Nf = wu, ku = /* @__PURE__ */ function(t) {
|
|
|
7745
7745
|
}
|
|
7746
7746
|
}
|
|
7747
7747
|
};
|
|
7748
|
-
n = q(this, r, [e,
|
|
7748
|
+
n = q(this, r, [e, jt.buildSpeechToTextHeaders, o.region, l, c]), n.introPanelMarkUp = `
|
|
7749
7749
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Speech To Text</b></div>
|
|
7750
7750
|
<p><b>Upload a .wav or .ogg audio file</b> to transcribe it into text.
|
|
7751
7751
|
<p>
|
|
@@ -7827,7 +7827,7 @@ var Df = ku, Bf = /* @__PURE__ */ function(t) {
|
|
|
7827
7827
|
var n;
|
|
7828
7828
|
w(this, r);
|
|
7829
7829
|
var i, a, s, o = (a = (i = e.directConnection) == null ? void 0 : i.azure) == null ? void 0 : a.translation, l = (s = e.directConnection) == null ? void 0 : s.azure;
|
|
7830
|
-
return n = q(this, r, [e,
|
|
7830
|
+
return n = q(this, r, [e, jt.buildTranslationKeyVerificationDetails(o.region), jt.buildTranslationHeaders.bind({}, o == null ? void 0 : o.region), l]), n.insertKeyPlaceholderText = "Azure Translate Subscription Key", n.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7831
7831
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", n.url = "", n.url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(o.language || "es"), n;
|
|
7832
7832
|
}
|
|
7833
7833
|
return V(r, t), k(r, [{
|
|
@@ -7918,7 +7918,7 @@ var Df = ku, Bf = /* @__PURE__ */ function(t) {
|
|
|
7918
7918
|
for (; ; ) switch (b.prev = b.next) {
|
|
7919
7919
|
case 0:
|
|
7920
7920
|
return y = new FormData(), b.abrupt("return", (y.append("purpose", "assistants"), y.append("file", g), new Promise(function(_) {
|
|
7921
|
-
_(
|
|
7921
|
+
_(Te.directFetch(i, y, "POST", !1));
|
|
7922
7922
|
})));
|
|
7923
7923
|
case 2:
|
|
7924
7924
|
case "end":
|
|
@@ -7967,7 +7967,7 @@ var Df = ku, Bf = /* @__PURE__ */ function(t) {
|
|
|
7967
7967
|
return s = a.map(function(u) {
|
|
7968
7968
|
var d = u.fileId;
|
|
7969
7969
|
return i.url = "https://api.openai.com/v1/files/".concat(d, "/content"), new Promise(function(h) {
|
|
7970
|
-
h(
|
|
7970
|
+
h(Te.directFetch(i, void 0, "GET", !1));
|
|
7971
7971
|
});
|
|
7972
7972
|
}), c.next = 3, Promise.all(s);
|
|
7973
7973
|
case 3:
|
|
@@ -8192,7 +8192,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
|
|
|
8192
8192
|
var n, i, a;
|
|
8193
8193
|
w(this, r);
|
|
8194
8194
|
var s, o, l, c, u, d, h = JSON.parse(JSON.stringify(e.directConnection)), p = h.openAI;
|
|
8195
|
-
a = q(this, r, [e,
|
|
8195
|
+
a = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, p]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "", a.permittedErrorPrefixes = ["Incorrect", "Please send text"], a.searchedForThreadId = !1, a.config = {}, a.newAssistantDetails = {
|
|
8196
8196
|
model: "gpt-4"
|
|
8197
8197
|
}, a.shouldFetchHistory = !1, a.waitingForStreamResponse = !1, a.isSSEStream = !1;
|
|
8198
8198
|
var f = (s = h.openAI) == null ? void 0 : s.assistant;
|
|
@@ -8345,7 +8345,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
|
|
|
8345
8345
|
return m().wrap(function(o) {
|
|
8346
8346
|
for (; ; ) switch (o.prev = o.next) {
|
|
8347
8347
|
case 0:
|
|
8348
|
-
return o.prev = 0, this.url = r.NEW_ASSISTANT_URL, o.next = 4,
|
|
8348
|
+
return o.prev = 0, this.url = r.NEW_ASSISTANT_URL, o.next = 4, Te.directFetch(this, JSON.parse(JSON.stringify(this.newAssistantDetails)), "POST");
|
|
8349
8349
|
case 4:
|
|
8350
8350
|
return a = o.sent, o.abrupt("return", (this.config.assistant_id = a.id, this.config.assistant_id));
|
|
8351
8351
|
case 8:
|
|
@@ -8423,7 +8423,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
|
|
|
8423
8423
|
l.next = 8;
|
|
8424
8424
|
break;
|
|
8425
8425
|
}
|
|
8426
|
-
return this.url = "".concat(r.THREAD_PREFIX, "/").concat(this.sessionId, "/runs"), l.next = 4,
|
|
8426
|
+
return this.url = "".concat(r.THREAD_PREFIX, "/").concat(this.sessionId, "/runs"), l.next = 4, Te.directFetch(this, JSON.parse(JSON.stringify(this.rawBody)), "POST");
|
|
8427
8427
|
case 4:
|
|
8428
8428
|
s = l.sent, this.run_id = s.id, l.next = 9;
|
|
8429
8429
|
break;
|
|
@@ -8448,7 +8448,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
|
|
|
8448
8448
|
return m().wrap(function(h) {
|
|
8449
8449
|
for (; ; ) switch (h.prev = h.next) {
|
|
8450
8450
|
case 0:
|
|
8451
|
-
return s = u.length > 1 && u[1] !== void 0 ? u[1] : !1, this.url = "".concat(r.THREAD_PREFIX, "/").concat(a, "/messages?order=desc"), h.next = 4,
|
|
8451
|
+
return s = u.length > 1 && u[1] !== void 0 ? u[1] : !1, this.url = "".concat(r.THREAD_PREFIX, "/").concat(a, "/messages?order=desc"), h.next = 4, Te.directFetch(this, {}, "GET");
|
|
8452
8452
|
case 4:
|
|
8453
8453
|
if (c = h.sent, h.t0 = !s && this.deepChat.responseInterceptor, !h.t0) {
|
|
8454
8454
|
h.next = 10;
|
|
@@ -8574,7 +8574,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
|
|
|
8574
8574
|
d.next = 19;
|
|
8575
8575
|
break;
|
|
8576
8576
|
case 17:
|
|
8577
|
-
return d.next = 19,
|
|
8577
|
+
return d.next = 19, Te.directFetch(this, {
|
|
8578
8578
|
tool_outputs: c
|
|
8579
8579
|
}, "POST");
|
|
8580
8580
|
case 19:
|
|
@@ -8761,7 +8761,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
|
|
|
8761
8761
|
}]);
|
|
8762
8762
|
}(Oe);
|
|
8763
8763
|
Gr.THREAD_PREFIX = "https://api.openai.com/v1/threads", Gr.NEW_ASSISTANT_URL = "https://api.openai.com/v1/assistants", Gr.POLLING_TIMEOUT_MS = 800;
|
|
8764
|
-
var
|
|
8764
|
+
var jf = Gr, Kr = /* @__PURE__ */ function(t) {
|
|
8765
8765
|
function r(e) {
|
|
8766
8766
|
var n;
|
|
8767
8767
|
w(this, r);
|
|
@@ -8773,7 +8773,7 @@ var Hf = Gr, Kr = /* @__PURE__ */ function(t) {
|
|
|
8773
8773
|
}
|
|
8774
8774
|
}
|
|
8775
8775
|
};
|
|
8776
|
-
n = q(this, r, [e,
|
|
8776
|
+
n = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, s, o]), n.insertKeyPlaceholderText = "OpenAI API Key", n.keyHelpUrl = "https://platform.openai.com/account/api-keys", n.introPanelMarkUp = `
|
|
8777
8777
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI DALL·E</b></div>
|
|
8778
8778
|
<p><b>Insert text</b> to generate an image.</p>
|
|
8779
8779
|
<p><b>Upload 1</b> PNG image to generate its variation and optionally insert text to specify the change.</p>
|
|
@@ -8909,12 +8909,12 @@ var Hf = Gr, Kr = /* @__PURE__ */ function(t) {
|
|
|
8909
8909
|
}]);
|
|
8910
8910
|
}(Oe);
|
|
8911
8911
|
Kr.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", Kr.IMAGE_VARIATIONS_URL = "https://api.openai.com/v1/images/variations", Kr.IMAGE_EDIT_URL = "https://api.openai.com/v1/images/edits";
|
|
8912
|
-
var
|
|
8912
|
+
var Hf = Kr, Uf = /* @__PURE__ */ function(t) {
|
|
8913
8913
|
function r(e) {
|
|
8914
8914
|
var n, i, a;
|
|
8915
8915
|
w(this, r);
|
|
8916
8916
|
var s, o, l, c, u = JSON.parse(JSON.stringify(e.directConnection)), d = u.openAI;
|
|
8917
|
-
a = q(this, r, [e,
|
|
8917
|
+
a = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, d]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "https://api.openai.com/v1/chat/completions", a.permittedErrorPrefixes = ["Incorrect"], a.asyncCallInProgress = !1, a._systemMessage = r.generateSystemMessage("You are a helpful assistant.");
|
|
8918
8918
|
var h = (s = u.openAI) == null ? void 0 : s.chat;
|
|
8919
8919
|
if (z(h) == "object") {
|
|
8920
8920
|
h.system_prompt && (a._systemMessage = r.generateSystemMessage(h.system_prompt));
|
|
@@ -9351,7 +9351,7 @@ var jf = Kr, Uf = /* @__PURE__ */ function(t) {
|
|
|
9351
9351
|
var n = e.directConnection, i = e.connect, a = e.demo, s = e.webModel;
|
|
9352
9352
|
if (s) return new Rs(e);
|
|
9353
9353
|
if (n) {
|
|
9354
|
-
if (n.openAI) return n.openAI.images ? new
|
|
9354
|
+
if (n.openAI) return n.openAI.images ? new Hf(e) : n.openAI.speechToText ? new Mf(e) : n.openAI.textToSpeech ? new Lf(e) : n.openAI.assistant ? new jf(e) : new Uf(e);
|
|
9355
9355
|
if (n.assemblyAI) return new $f(e);
|
|
9356
9356
|
if (n.cohere) return n.cohere.textGeneration ? new Of(e) : n.cohere.summarization ? new If(e) : new zf(e);
|
|
9357
9357
|
if (n.huggingFace) return n.huggingFace.textGeneration ? new _f(e) : n.huggingFace.summarization ? new Cf(e) : n.huggingFace.translation ? new Af(e) : n.huggingFace.fillMask ? new Rf(e) : n.huggingFace.questionAnswer ? new Sf(e) : n.huggingFace.audioSpeechRecognition ? new kf(e) : n.huggingFace.audioClassification ? new vf(e) : n.huggingFace.imageClassification ? new yf(e) : new xf(e);
|
|
@@ -9670,7 +9670,7 @@ var Gf = /* @__PURE__ */ function() {
|
|
|
9670
9670
|
key: "createAudioElement",
|
|
9671
9671
|
value: function(e, n) {
|
|
9672
9672
|
var i = document.createElement("audio");
|
|
9673
|
-
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0,
|
|
9673
|
+
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, vn.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(n === J.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
|
|
9674
9674
|
}
|
|
9675
9675
|
}, {
|
|
9676
9676
|
key: "addNewAudioMessage",
|
|
@@ -9839,7 +9839,7 @@ var Gf = /* @__PURE__ */ function() {
|
|
|
9839
9839
|
}, {
|
|
9840
9840
|
key: "populateIntroPanel",
|
|
9841
9841
|
value: function(n, i, a) {
|
|
9842
|
-
(n || i) && (this._introPanel = new Kf(n, i, a), this._introPanel._elementRef && (
|
|
9842
|
+
(n || i) && (this._introPanel = new Kf(n, i, a), this._introPanel._elementRef && (yn.apply(this, this._introPanel._elementRef), this.elementRef.appendChild(this._introPanel._elementRef)));
|
|
9843
9843
|
}
|
|
9844
9844
|
}, {
|
|
9845
9845
|
key: "addMultipleFiles",
|
|
@@ -9978,7 +9978,7 @@ var em = Gn, di = /* @__PURE__ */ function() {
|
|
|
9978
9978
|
e[a].appendChild(n), a === 3 && n.classList.add("outside-right");
|
|
9979
9979
|
}
|
|
9980
9980
|
}]);
|
|
9981
|
-
}(),
|
|
9981
|
+
}(), jo = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"], Nt = /* @__PURE__ */ function() {
|
|
9982
9982
|
function t() {
|
|
9983
9983
|
w(this, t);
|
|
9984
9984
|
}
|
|
@@ -10104,7 +10104,7 @@ var em = Gn, di = /* @__PURE__ */ function() {
|
|
|
10104
10104
|
}
|
|
10105
10105
|
}
|
|
10106
10106
|
}]);
|
|
10107
|
-
}(),
|
|
10107
|
+
}(), Ho = /* @__PURE__ */ function() {
|
|
10108
10108
|
function t() {
|
|
10109
10109
|
w(this, t);
|
|
10110
10110
|
}
|
|
@@ -10217,7 +10217,7 @@ var em = Gn, di = /* @__PURE__ */ function() {
|
|
|
10217
10217
|
key: "windowKeyDown",
|
|
10218
10218
|
value: function(e, n) {
|
|
10219
10219
|
var i, a, s;
|
|
10220
|
-
!e.isConnected && this.keyDownEvent ? window.removeEventListener("keydown", this.keyDownEvent) : this._isOpen && (n.key === ke.ESCAPE ? (this.close(), (i = this.highlightedItem) == null || i.dispatchEvent(new MouseEvent("mouseleave"))) : n.key === ke.ENTER ? ((a = this.highlightedItem) == null || a.click(), (s = this.highlightedItem) == null || s.dispatchEvent(new MouseEvent("mouseleave"))) : n.key === ke.ARROW_DOWN ?
|
|
10220
|
+
!e.isConnected && this.keyDownEvent ? window.removeEventListener("keydown", this.keyDownEvent) : this._isOpen && (n.key === ke.ESCAPE ? (this.close(), (i = this.highlightedItem) == null || i.dispatchEvent(new MouseEvent("mouseleave"))) : n.key === ke.ENTER ? ((a = this.highlightedItem) == null || a.click(), (s = this.highlightedItem) == null || s.dispatchEvent(new MouseEvent("mouseleave"))) : n.key === ke.ARROW_DOWN ? Ho.focusSiblingItem(this.highlightedItem || this.elementRef.children[this.elementRef.children.length - 1], this.elementRef, !0) : n.key === ke.ARROW_UP && Ho.focusSiblingItem(this.highlightedItem || this.elementRef.children[0], this.elementRef, !1));
|
|
10221
10221
|
}
|
|
10222
10222
|
}], [{
|
|
10223
10223
|
key: "createElement",
|
|
@@ -10301,7 +10301,7 @@ var em = Gn, di = /* @__PURE__ */ function() {
|
|
|
10301
10301
|
// prettier-ignore
|
|
10302
10302
|
function(e, n, i, a) {
|
|
10303
10303
|
var s = new Uo(i, a);
|
|
10304
|
-
|
|
10304
|
+
jo.forEach(function(l) {
|
|
10305
10305
|
var c = n["dropup-menu"].findIndex(function(d) {
|
|
10306
10306
|
return d.buttonType === l;
|
|
10307
10307
|
}), u = n["dropup-menu"][c];
|
|
@@ -10350,7 +10350,7 @@ var em = Gn, di = /* @__PURE__ */ function() {
|
|
|
10350
10350
|
o && t.setPosition(e, a, n[o]);
|
|
10351
10351
|
}), n["inside-right"].length === 0 && e.submit && t.setPosition(e, "submit", n["inside-right"]), n["outside-right"].length === 0 && (e.submit ? t.setPosition(e, "submit", n["outside-right"]) : e.microphone ? t.setPosition(e, "microphone", n["outside-right"]) : e.camera && t.setPosition(e, "camera", n["outside-right"])), e.submit && t.setPosition(e, "submit", n["outside-left"].length === 0 ? n["outside-left"] : n["inside-right"]), e.microphone && t.setPosition(e, "microphone", n["outside-left"].length === 0 ? n["outside-left"] : n["inside-right"]);
|
|
10352
10352
|
var i = Object.keys(e);
|
|
10353
|
-
return i.length > 1 || n["dropup-menu"].length > 0 ?
|
|
10353
|
+
return i.length > 1 || n["dropup-menu"].length > 0 ? jo.forEach(function(a) {
|
|
10354
10354
|
e[a] && n["dropup-menu"].push(ne(ne({}, e[a]), {}, {
|
|
10355
10355
|
buttonType: a
|
|
10356
10356
|
}));
|
|
@@ -10497,11 +10497,11 @@ var em = Gn, di = /* @__PURE__ */ function() {
|
|
|
10497
10497
|
return n.id = "microphone-icon", n;
|
|
10498
10498
|
}
|
|
10499
10499
|
}]);
|
|
10500
|
-
}(br), Cu = {}, Ei = {}, Ai = {}, wr = {},
|
|
10501
|
-
Object.defineProperty(
|
|
10500
|
+
}(br), Cu = {}, Ei = {}, Ai = {}, wr = {}, Jt = {};
|
|
10501
|
+
Object.defineProperty(Jt, "__esModule", {
|
|
10502
10502
|
value: !0
|
|
10503
10503
|
});
|
|
10504
|
-
|
|
10504
|
+
Jt.Text = void 0;
|
|
10505
10505
|
var Ti = /* @__PURE__ */ function() {
|
|
10506
10506
|
function t() {
|
|
10507
10507
|
w(this, t);
|
|
@@ -10532,7 +10532,7 @@ var Ti = /* @__PURE__ */ function() {
|
|
|
10532
10532
|
}
|
|
10533
10533
|
}]);
|
|
10534
10534
|
}();
|
|
10535
|
-
|
|
10535
|
+
Jt.Text = Ti;
|
|
10536
10536
|
Ti.FIRST_CHAR_REGEX = /\S/;
|
|
10537
10537
|
Ti.DOUBLE_LINE = /\n\n/g;
|
|
10538
10538
|
Ti.ONE_LINE = /\n/g;
|
|
@@ -10540,7 +10540,7 @@ Object.defineProperty(wr, "__esModule", {
|
|
|
10540
10540
|
value: !0
|
|
10541
10541
|
});
|
|
10542
10542
|
wr.Translate = void 0;
|
|
10543
|
-
var dm =
|
|
10543
|
+
var dm = Jt, hm = /* @__PURE__ */ function() {
|
|
10544
10544
|
function t() {
|
|
10545
10545
|
w(this, t);
|
|
10546
10546
|
}
|
|
@@ -10712,11 +10712,11 @@ var mm = /* @__PURE__ */ function() {
|
|
|
10712
10712
|
}]);
|
|
10713
10713
|
}();
|
|
10714
10714
|
Sr.AutoScroll = mm;
|
|
10715
|
-
var
|
|
10716
|
-
Object.defineProperty(
|
|
10715
|
+
var Zt = {};
|
|
10716
|
+
Object.defineProperty(Zt, "__esModule", {
|
|
10717
10717
|
value: !0
|
|
10718
10718
|
});
|
|
10719
|
-
|
|
10719
|
+
Zt.Elements = void 0;
|
|
10720
10720
|
var gm = /* @__PURE__ */ function() {
|
|
10721
10721
|
function t() {
|
|
10722
10722
|
w(this, t);
|
|
@@ -10763,12 +10763,12 @@ var gm = /* @__PURE__ */ function() {
|
|
|
10763
10763
|
}
|
|
10764
10764
|
}]);
|
|
10765
10765
|
}();
|
|
10766
|
-
|
|
10767
|
-
var
|
|
10768
|
-
Object.defineProperty(
|
|
10766
|
+
Zt.Elements = gm;
|
|
10767
|
+
var Yt = {};
|
|
10768
|
+
Object.defineProperty(Yt, "__esModule", {
|
|
10769
10769
|
value: !0
|
|
10770
10770
|
});
|
|
10771
|
-
|
|
10771
|
+
Yt.Cursor = void 0;
|
|
10772
10772
|
var vm = /* @__PURE__ */ function() {
|
|
10773
10773
|
function t() {
|
|
10774
10774
|
w(this, t);
|
|
@@ -10847,12 +10847,12 @@ var vm = /* @__PURE__ */ function() {
|
|
|
10847
10847
|
}
|
|
10848
10848
|
}]);
|
|
10849
10849
|
}();
|
|
10850
|
-
|
|
10850
|
+
Yt.Cursor = vm;
|
|
10851
10851
|
Object.defineProperty(_r, "__esModule", {
|
|
10852
10852
|
value: !0
|
|
10853
10853
|
});
|
|
10854
10854
|
_r.CommandUtils = void 0;
|
|
10855
|
-
var qo = Sr, ym =
|
|
10855
|
+
var qo = Sr, ym = Zt, bm = An, Vo = Yt, Wo = Jt, wm = /* @__PURE__ */ function() {
|
|
10856
10856
|
function t() {
|
|
10857
10857
|
w(this, t);
|
|
10858
10858
|
}
|
|
@@ -10947,7 +10947,7 @@ Object.defineProperty(Ii, "__esModule", {
|
|
|
10947
10947
|
value: !0
|
|
10948
10948
|
});
|
|
10949
10949
|
Ii.Highlight = void 0;
|
|
10950
|
-
var km =
|
|
10950
|
+
var km = Zt, Ln = Yt, _m = /* @__PURE__ */ function() {
|
|
10951
10951
|
function t() {
|
|
10952
10952
|
w(this, t);
|
|
10953
10953
|
}
|
|
@@ -10998,7 +10998,7 @@ Object.defineProperty(Li, "__esModule", {
|
|
|
10998
10998
|
value: !0
|
|
10999
10999
|
});
|
|
11000
11000
|
Li.Padding = void 0;
|
|
11001
|
-
var Sm =
|
|
11001
|
+
var Sm = Zt, Go = Yt, tn = Jt, Cm = /* @__PURE__ */ function() {
|
|
11002
11002
|
function t() {
|
|
11003
11003
|
w(this, t);
|
|
11004
11004
|
}
|
|
@@ -11007,11 +11007,11 @@ var Sm = Jt, Go = Zt, en = Kt, Cm = /* @__PURE__ */ function() {
|
|
|
11007
11007
|
value: function(e, n) {
|
|
11008
11008
|
if (document.activeElement === n && n.selectionStart !== null) {
|
|
11009
11009
|
var i = n.selectionStart, a = n.value[i - 1], s = n.selectionEnd === null ? i : n.selectionEnd, o = n.value[s];
|
|
11010
|
-
|
|
11010
|
+
tn.Text.isCharDefined(a) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), tn.Text.isCharDefined(o) && (e.endPadding = " ", e.numberOfSpacesAfterNewText = 1), e.isCursorAtEnd = n.value.length === s;
|
|
11011
11011
|
return;
|
|
11012
11012
|
}
|
|
11013
11013
|
var l = n.value[n.value.length - 1];
|
|
11014
|
-
|
|
11014
|
+
tn.Text.isCharDefined(l) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), e.isCursorAtEnd = !0;
|
|
11015
11015
|
}
|
|
11016
11016
|
}, {
|
|
11017
11017
|
key: "setStateForGenericElement",
|
|
@@ -11021,12 +11021,12 @@ var Sm = Jt, Go = Zt, en = Kt, Cm = /* @__PURE__ */ function() {
|
|
|
11021
11021
|
var o = window.getSelection();
|
|
11022
11022
|
if (o != null && o.focusNode) {
|
|
11023
11023
|
var l = Go.Cursor.getGenericElementCursorOffset(n, o, !0), c = (i = n.textContent) === null || i === void 0 ? void 0 : i[l - 1], u = Go.Cursor.getGenericElementCursorOffset(n, o, !1), d = (a = n.textContent) === null || a === void 0 ? void 0 : a[u];
|
|
11024
|
-
|
|
11024
|
+
tn.Text.isCharDefined(c) && (e.startPadding = " "), tn.Text.isCharDefined(d) && (e.endPadding = " "), e.isCursorAtEnd = ((s = n.textContent) === null || s === void 0 ? void 0 : s.length) === u;
|
|
11025
11025
|
return;
|
|
11026
11026
|
}
|
|
11027
11027
|
}
|
|
11028
11028
|
var h = n.innerText.charAt(n.innerText.length - 1);
|
|
11029
|
-
|
|
11029
|
+
tn.Text.isCharDefined(h) && (e.startPadding = " "), e.isCursorAtEnd = !0;
|
|
11030
11030
|
}
|
|
11031
11031
|
}, {
|
|
11032
11032
|
key: "setState",
|
|
@@ -11054,7 +11054,7 @@ Object.defineProperty(kr, "__esModule", {
|
|
|
11054
11054
|
value: !0
|
|
11055
11055
|
});
|
|
11056
11056
|
kr.Speech = void 0;
|
|
11057
|
-
var Ko = Ri, xm = Oi, Jo = _r, Dr = Sr, fa = Ii, Xe =
|
|
11057
|
+
var Ko = Ri, xm = Oi, Jo = _r, Dr = Sr, fa = Ii, Xe = Zt, ma = Li, Zo = An, Yo = Yt, ga = Jt, Em = /* @__PURE__ */ function() {
|
|
11058
11058
|
function t() {
|
|
11059
11059
|
w(this, t), this.finalTranscript = "", this.interimSpan = Xe.Elements.createInterimSpan(), this.finalSpan = Xe.Elements.createGenericSpan(), this.scrollingSpan = Xe.Elements.createGenericSpan(), this.isCursorAtEnd = !1, this.spansPopulated = !1, this.startPadding = "", this.endPadding = "", this.numberOfSpacesBeforeNewText = 0, this.numberOfSpacesAfterNewText = 0, this.isHighlighted = !1, this.primitiveTextRecorded = !1, this.recognizing = !1, this._displayInterimResults = !0, this.insertInCursorLocation = !0, this.autoScroll = !0, this.isRestarting = !1, this.isPaused = !1, this.isWaitingForCommand = !1, this.isTargetInShadow = !1, this.cannotBeStopped = !1, this.resetState();
|
|
11060
11060
|
}
|
|
@@ -11836,7 +11836,7 @@ var Ls = Tu, Ms = /* @__PURE__ */ function() {
|
|
|
11836
11836
|
key: "createAnyFileAttachment",
|
|
11837
11837
|
value: function(e) {
|
|
11838
11838
|
var n = document.createElement("div");
|
|
11839
|
-
n.classList.add("border-bound-attachment"),
|
|
11839
|
+
n.classList.add("border-bound-attachment"), vn.IS_SAFARI && n.classList.add("border-bound-attachment-safari");
|
|
11840
11840
|
var i = document.createElement("div");
|
|
11841
11841
|
i.classList.add("any-file-attachment-text");
|
|
11842
11842
|
var a = document.createElement("div");
|
|
@@ -11926,7 +11926,7 @@ var Ls = Tu, Ms = /* @__PURE__ */ function() {
|
|
|
11926
11926
|
key: "createAudioContainer",
|
|
11927
11927
|
value: function() {
|
|
11928
11928
|
var n = document.createElement("div");
|
|
11929
|
-
return n.classList.add("border-bound-attachment", "audio-attachment-icon-container"),
|
|
11929
|
+
return n.classList.add("border-bound-attachment", "audio-attachment-icon-container"), vn.IS_SAFARI && n.classList.add("border-bound-attachment-safari"), n;
|
|
11930
11930
|
}
|
|
11931
11931
|
}, {
|
|
11932
11932
|
key: "addAudioElements",
|
|
@@ -11961,7 +11961,7 @@ var Ls = Tu, Ms = /* @__PURE__ */ function() {
|
|
|
11961
11961
|
}]);
|
|
11962
11962
|
}(Ms);
|
|
11963
11963
|
Ru.TIMER_LIMIT_S = 5999;
|
|
11964
|
-
var os = Ru,
|
|
11964
|
+
var os = Ru, jm = /* @__PURE__ */ function() {
|
|
11965
11965
|
function t() {
|
|
11966
11966
|
w(this, t);
|
|
11967
11967
|
}
|
|
@@ -11983,7 +11983,7 @@ var os = Ru, Hm = /* @__PURE__ */ function() {
|
|
|
11983
11983
|
return k(t, [{
|
|
11984
11984
|
key: "addType",
|
|
11985
11985
|
value: function(e, n, i) {
|
|
11986
|
-
var a =
|
|
11986
|
+
var a = jm.create(e, n, this.toggleContainerDisplay.bind(this), this.elementRef, i);
|
|
11987
11987
|
return this._fileAttachmentsTypes.push(a), a;
|
|
11988
11988
|
}
|
|
11989
11989
|
}, {
|
|
@@ -12175,7 +12175,7 @@ var os = Ru, Hm = /* @__PURE__ */ function() {
|
|
|
12175
12175
|
}]);
|
|
12176
12176
|
}();
|
|
12177
12177
|
Ou.MODAL_CLOSE_TIMEOUT_MS = 190;
|
|
12178
|
-
var Jn = Ou,
|
|
12178
|
+
var Jn = Ou, Hm = /* @__PURE__ */ function(t) {
|
|
12179
12179
|
function r(e, n, i, a, s, o) {
|
|
12180
12180
|
var l;
|
|
12181
12181
|
w(this, r);
|
|
@@ -12991,7 +12991,7 @@ var Vm = Zr, Wm = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12991
12991
|
Object.keys(n).forEach(function(o) {
|
|
12992
12992
|
var l = o, c = n[l];
|
|
12993
12993
|
if (c.files) {
|
|
12994
|
-
var u = i.addType(e, c.files, l), d = cm[l], h = d.id, p = d.svgString, f = d.dropupText, g = new
|
|
12994
|
+
var u = i.addType(e, c.files, l), d = cm[l], h = d.id, p = d.svgString, f = d.dropupText, g = new Hm(a, u, c, h, p, f);
|
|
12995
12995
|
s[l] = {
|
|
12996
12996
|
button: g,
|
|
12997
12997
|
fileType: u
|
|
@@ -13143,7 +13143,7 @@ let Lu = class {
|
|
|
13143
13143
|
return this.cssText;
|
|
13144
13144
|
}
|
|
13145
13145
|
};
|
|
13146
|
-
const x = (t) => new Lu(typeof t == "string" ? t : t + "", void 0, $s),
|
|
13146
|
+
const x = (t) => new Lu(typeof t == "string" ? t : t + "", void 0, $s), Re = (t, ...r) => {
|
|
13147
13147
|
const e = t.length === 1 ? t[0] : r.reduce((n, i, a) => n + ((s) => {
|
|
13148
13148
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
13149
13149
|
if (typeof s == "number") return s;
|
|
@@ -13194,9 +13194,9 @@ const { is: i0, defineProperty: a0, getOwnPropertyDescriptor: s0, getOwnProperty
|
|
|
13194
13194
|
}
|
|
13195
13195
|
}
|
|
13196
13196
|
return e;
|
|
13197
|
-
} },
|
|
13197
|
+
} }, ji = (t, r) => !i0(t, r), ul = { attribute: !0, type: String, converter: hi, reflect: !1, hasChanged: ji };
|
|
13198
13198
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), wt.litPropertyMetadata ?? (wt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
13199
|
-
let
|
|
13199
|
+
let pn = class extends HTMLElement {
|
|
13200
13200
|
static addInitializer(r) {
|
|
13201
13201
|
this._$Ei(), (this.l ?? (this.l = [])).push(r);
|
|
13202
13202
|
}
|
|
@@ -13321,7 +13321,7 @@ let hn = class extends HTMLElement {
|
|
|
13321
13321
|
}
|
|
13322
13322
|
requestUpdate(r, e, n) {
|
|
13323
13323
|
if (r !== void 0) {
|
|
13324
|
-
if (n ?? (n = this.constructor.getPropertyOptions(r)), !(n.hasChanged ??
|
|
13324
|
+
if (n ?? (n = this.constructor.getPropertyOptions(r)), !(n.hasChanged ?? ji)(this[r], e)) return;
|
|
13325
13325
|
this.P(r, e, n);
|
|
13326
13326
|
}
|
|
13327
13327
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -13394,15 +13394,15 @@ let hn = class extends HTMLElement {
|
|
|
13394
13394
|
firstUpdated(r) {
|
|
13395
13395
|
}
|
|
13396
13396
|
};
|
|
13397
|
-
|
|
13397
|
+
pn.elementStyles = [], pn.shadowRootOptions = { mode: "open" }, pn[Zn("elementProperties")] = /* @__PURE__ */ new Map(), pn[Zn("finalized")] = /* @__PURE__ */ new Map(), ba == null || ba({ ReactiveElement: pn }), (wt.reactiveElementVersions ?? (wt.reactiveElementVersions = [])).push("2.0.4");
|
|
13398
13398
|
/**
|
|
13399
13399
|
* @license
|
|
13400
13400
|
* Copyright 2017 Google LLC
|
|
13401
13401
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13402
13402
|
*/
|
|
13403
|
-
const Yn = globalThis, pi = Yn.trustedTypes, dl = pi ? pi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Mu = "$lit$", vt = `lit$${Math.random().toFixed(9).slice(2)}$`, Pu = "?" + vt, d0 = `<${Pu}>`,
|
|
13403
|
+
const Yn = globalThis, pi = Yn.trustedTypes, dl = pi ? pi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Mu = "$lit$", vt = `lit$${Math.random().toFixed(9).slice(2)}$`, Pu = "?" + vt, d0 = `<${Pu}>`, Ht = document, lr = () => Ht.createComment(""), cr = (t) => t === null || typeof t != "object" && typeof t != "function", Fu = Array.isArray, h0 = (t) => Fu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", wa = `[
|
|
13404
13404
|
\f\r]`, Mn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hl = /-->/g, pl = />/g, Ft = RegExp(`>|${wa}(?:([^\\s"'>=/]+)(${wa}*=${wa}*(?:[^
|
|
13405
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), fl = /'/g, ml = /"/g, $u = /^(?:script|style|textarea|title)$/i, Nu = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), be = Nu(1), st = Nu(2), St = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), gl = /* @__PURE__ */ new WeakMap(), $t =
|
|
13405
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), fl = /'/g, ml = /"/g, $u = /^(?:script|style|textarea|title)$/i, Nu = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), be = Nu(1), st = Nu(2), St = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), gl = /* @__PURE__ */ new WeakMap(), $t = Ht.createTreeWalker(Ht, 129);
|
|
13406
13406
|
function Du(t, r) {
|
|
13407
13407
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
13408
13408
|
return dl !== void 0 ? dl.createHTML(r) : r;
|
|
@@ -13433,7 +13433,7 @@ class ur {
|
|
|
13433
13433
|
if (i.nodeType === 1) {
|
|
13434
13434
|
if (i.hasAttributes()) for (const d of i.getAttributeNames()) if (d.endsWith(Mu)) {
|
|
13435
13435
|
const h = u[s++], p = i.getAttribute(d).split(vt), f = /([.?@])?(.*)/.exec(h);
|
|
13436
|
-
l.push({ type: 1, index: a, name: f[2], strings: p, ctor: f[1] === "." ? m0 : f[1] === "?" ? g0 : f[1] === "@" ? v0 :
|
|
13436
|
+
l.push({ type: 1, index: a, name: f[2], strings: p, ctor: f[1] === "." ? m0 : f[1] === "?" ? g0 : f[1] === "@" ? v0 : Hi }), i.removeAttribute(d);
|
|
13437
13437
|
} else d.startsWith(vt) && (l.push({ type: 6, index: a }), i.removeAttribute(d));
|
|
13438
13438
|
if ($u.test(i.tagName)) {
|
|
13439
13439
|
const d = i.textContent.split(vt), h = d.length - 1;
|
|
@@ -13452,16 +13452,16 @@ class ur {
|
|
|
13452
13452
|
}
|
|
13453
13453
|
}
|
|
13454
13454
|
static createElement(r, e) {
|
|
13455
|
-
const n =
|
|
13455
|
+
const n = Ht.createElement("template");
|
|
13456
13456
|
return n.innerHTML = r, n;
|
|
13457
13457
|
}
|
|
13458
13458
|
}
|
|
13459
|
-
function
|
|
13459
|
+
function bn(t, r, e = t, n) {
|
|
13460
13460
|
var s, o;
|
|
13461
13461
|
if (r === St) return r;
|
|
13462
13462
|
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
13463
13463
|
const a = cr(r) ? void 0 : r._$litDirective$;
|
|
13464
|
-
return (i == null ? void 0 : i.constructor) !== a && ((o = i == null ? void 0 : i._$AO) == null || o.call(i, !1), a === void 0 ? i = void 0 : (i = new a(t), i._$AT(t, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (r =
|
|
13464
|
+
return (i == null ? void 0 : i.constructor) !== a && ((o = i == null ? void 0 : i._$AO) == null || o.call(i, !1), a === void 0 ? i = void 0 : (i = new a(t), i._$AT(t, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (r = bn(t, i._$AS(t, r.values), i, n)), r;
|
|
13465
13465
|
}
|
|
13466
13466
|
class f0 {
|
|
13467
13467
|
constructor(r, e) {
|
|
@@ -13474,7 +13474,7 @@ class f0 {
|
|
|
13474
13474
|
return this._$AM._$AU;
|
|
13475
13475
|
}
|
|
13476
13476
|
u(r) {
|
|
13477
|
-
const { el: { content: e }, parts: n } = this._$AD, i = ((r == null ? void 0 : r.creationScope) ??
|
|
13477
|
+
const { el: { content: e }, parts: n } = this._$AD, i = ((r == null ? void 0 : r.creationScope) ?? Ht).importNode(e, !0);
|
|
13478
13478
|
$t.currentNode = i;
|
|
13479
13479
|
let a = $t.nextNode(), s = 0, o = 0, l = n[0];
|
|
13480
13480
|
for (; l !== void 0; ) {
|
|
@@ -13484,7 +13484,7 @@ class f0 {
|
|
|
13484
13484
|
}
|
|
13485
13485
|
s !== (l == null ? void 0 : l.index) && (a = $t.nextNode(), s++);
|
|
13486
13486
|
}
|
|
13487
|
-
return $t.currentNode =
|
|
13487
|
+
return $t.currentNode = Ht, i;
|
|
13488
13488
|
}
|
|
13489
13489
|
p(r) {
|
|
13490
13490
|
let e = 0;
|
|
@@ -13511,7 +13511,7 @@ class Cr {
|
|
|
13511
13511
|
return this._$AB;
|
|
13512
13512
|
}
|
|
13513
13513
|
_$AI(r, e = this) {
|
|
13514
|
-
r =
|
|
13514
|
+
r = bn(this, r, e), cr(r) ? r === oe || r == null || r === "" ? (this._$AH !== oe && this._$AR(), this._$AH = oe) : r !== this._$AH && r !== St && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : h0(r) ? this.k(r) : this._(r);
|
|
13515
13515
|
}
|
|
13516
13516
|
S(r) {
|
|
13517
13517
|
return this._$AA.parentNode.insertBefore(r, this._$AB);
|
|
@@ -13520,7 +13520,7 @@ class Cr {
|
|
|
13520
13520
|
this._$AH !== r && (this._$AR(), this._$AH = this.S(r));
|
|
13521
13521
|
}
|
|
13522
13522
|
_(r) {
|
|
13523
|
-
this._$AH !== oe && cr(this._$AH) ? this._$AA.nextSibling.data = r : this.T(
|
|
13523
|
+
this._$AH !== oe && cr(this._$AH) ? this._$AA.nextSibling.data = r : this.T(Ht.createTextNode(r)), this._$AH = r;
|
|
13524
13524
|
}
|
|
13525
13525
|
$(r) {
|
|
13526
13526
|
var a;
|
|
@@ -13554,7 +13554,7 @@ class Cr {
|
|
|
13554
13554
|
this._$AM === void 0 && (this._$Cv = r, (e = this._$AP) == null || e.call(this, r));
|
|
13555
13555
|
}
|
|
13556
13556
|
}
|
|
13557
|
-
class
|
|
13557
|
+
class Hi {
|
|
13558
13558
|
get tagName() {
|
|
13559
13559
|
return this.element.tagName;
|
|
13560
13560
|
}
|
|
@@ -13567,11 +13567,11 @@ class ji {
|
|
|
13567
13567
|
_$AI(r, e = this, n, i) {
|
|
13568
13568
|
const a = this.strings;
|
|
13569
13569
|
let s = !1;
|
|
13570
|
-
if (a === void 0) r =
|
|
13570
|
+
if (a === void 0) r = bn(this, r, e, 0), s = !cr(r) || r !== this._$AH && r !== St, s && (this._$AH = r);
|
|
13571
13571
|
else {
|
|
13572
13572
|
const o = r;
|
|
13573
13573
|
let l, c;
|
|
13574
|
-
for (r = a[0], l = 0; l < a.length - 1; l++) c =
|
|
13574
|
+
for (r = a[0], l = 0; l < a.length - 1; l++) c = bn(this, o[n + l], e, l), c === St && (c = this._$AH[l]), s || (s = !cr(c) || c !== this._$AH[l]), c === oe ? r = oe : r !== oe && (r += (c ?? "") + a[l + 1]), this._$AH[l] = c;
|
|
13575
13575
|
}
|
|
13576
13576
|
s && !i && this.j(r);
|
|
13577
13577
|
}
|
|
@@ -13579,7 +13579,7 @@ class ji {
|
|
|
13579
13579
|
r === oe ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
|
|
13580
13580
|
}
|
|
13581
13581
|
}
|
|
13582
|
-
class m0 extends
|
|
13582
|
+
class m0 extends Hi {
|
|
13583
13583
|
constructor() {
|
|
13584
13584
|
super(...arguments), this.type = 3;
|
|
13585
13585
|
}
|
|
@@ -13587,7 +13587,7 @@ class m0 extends ji {
|
|
|
13587
13587
|
this.element[this.name] = r === oe ? void 0 : r;
|
|
13588
13588
|
}
|
|
13589
13589
|
}
|
|
13590
|
-
class g0 extends
|
|
13590
|
+
class g0 extends Hi {
|
|
13591
13591
|
constructor() {
|
|
13592
13592
|
super(...arguments), this.type = 4;
|
|
13593
13593
|
}
|
|
@@ -13595,12 +13595,12 @@ class g0 extends ji {
|
|
|
13595
13595
|
this.element.toggleAttribute(this.name, !!r && r !== oe);
|
|
13596
13596
|
}
|
|
13597
13597
|
}
|
|
13598
|
-
class v0 extends
|
|
13598
|
+
class v0 extends Hi {
|
|
13599
13599
|
constructor(r, e, n, i, a) {
|
|
13600
13600
|
super(r, e, n, i, a), this.type = 5;
|
|
13601
13601
|
}
|
|
13602
13602
|
_$AI(r, e = this) {
|
|
13603
|
-
if ((r =
|
|
13603
|
+
if ((r = bn(this, r, e, 0) ?? oe) === St) return;
|
|
13604
13604
|
const n = this._$AH, i = r === oe && n !== oe || r.capture !== n.capture || r.once !== n.once || r.passive !== n.passive, a = r !== oe && (n === oe || i);
|
|
13605
13605
|
i && this.element.removeEventListener(this.name, this, n), a && this.element.addEventListener(this.name, this, r), this._$AH = r;
|
|
13606
13606
|
}
|
|
@@ -13617,7 +13617,7 @@ class y0 {
|
|
|
13617
13617
|
return this._$AM._$AU;
|
|
13618
13618
|
}
|
|
13619
13619
|
_$AI(r) {
|
|
13620
|
-
|
|
13620
|
+
bn(this, r);
|
|
13621
13621
|
}
|
|
13622
13622
|
}
|
|
13623
13623
|
const ka = Yn.litHtmlPolyfillSupport;
|
|
@@ -13636,7 +13636,7 @@ const b0 = (t, r, e) => {
|
|
|
13636
13636
|
* Copyright 2017 Google LLC
|
|
13637
13637
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13638
13638
|
*/
|
|
13639
|
-
let Xn = class extends
|
|
13639
|
+
let Xn = class extends pn {
|
|
13640
13640
|
constructor() {
|
|
13641
13641
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
13642
13642
|
}
|
|
@@ -13666,7 +13666,7 @@ Xn._$litElement$ = !0, Xn.finalized = !0, (qc = globalThis.litElementHydrateSupp
|
|
|
13666
13666
|
const _a = globalThis.litElementPolyfillSupport;
|
|
13667
13667
|
_a == null || _a({ LitElement: Xn });
|
|
13668
13668
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
|
|
13669
|
-
const w0 =
|
|
13669
|
+
const w0 = Re`
|
|
13670
13670
|
:host .button {
|
|
13671
13671
|
--font-family: var(--lr-poppins);
|
|
13672
13672
|
--font-size: var(--lr-text-14);
|
|
@@ -13758,7 +13758,7 @@ const w0 = Te`
|
|
|
13758
13758
|
:host([iconPosition='right']) .button {
|
|
13759
13759
|
flex-direction: row-reverse;
|
|
13760
13760
|
}
|
|
13761
|
-
`, k0 =
|
|
13761
|
+
`, k0 = Re`
|
|
13762
13762
|
:host([variant='primary']) .button::before {
|
|
13763
13763
|
position: absolute;
|
|
13764
13764
|
content: '';
|
|
@@ -13935,7 +13935,7 @@ const Be = (t) => (r, e) => {
|
|
|
13935
13935
|
* Copyright 2017 Google LLC
|
|
13936
13936
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13937
13937
|
*/
|
|
13938
|
-
const _0 = { attribute: !0, type: String, converter: hi, reflect: !1, hasChanged:
|
|
13938
|
+
const _0 = { attribute: !0, type: String, converter: hi, reflect: !1, hasChanged: ji }, S0 = (t = _0, r, e) => {
|
|
13939
13939
|
const { kind: n, metadata: i } = e;
|
|
13940
13940
|
let a = globalThis.litPropertyMetadata.get(i);
|
|
13941
13941
|
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), a.set(e.name, t), n === "accessor") {
|
|
@@ -13967,7 +13967,7 @@ function Z(t) {
|
|
|
13967
13967
|
* Copyright 2017 Google LLC
|
|
13968
13968
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13969
13969
|
*/
|
|
13970
|
-
function
|
|
13970
|
+
function Xt(t) {
|
|
13971
13971
|
return Z({ ...t, state: !0, attribute: !1 });
|
|
13972
13972
|
}
|
|
13973
13973
|
/**
|
|
@@ -13975,7 +13975,7 @@ function Yt(t) {
|
|
|
13975
13975
|
* Copyright 2018 Google LLC
|
|
13976
13976
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13977
13977
|
*/
|
|
13978
|
-
const
|
|
13978
|
+
const fn = (t) => t ?? oe;
|
|
13979
13979
|
/**
|
|
13980
13980
|
* @license
|
|
13981
13981
|
* Copyright 2017 Google LLC
|
|
@@ -14027,7 +14027,7 @@ const Bu = zi(class extends Ns {
|
|
|
14027
14027
|
return St;
|
|
14028
14028
|
}
|
|
14029
14029
|
});
|
|
14030
|
-
var
|
|
14030
|
+
var ju = typeof global == "object" && global && global.Object === Object && global, C0 = typeof self == "object" && self && self.Object === Object && self, Ze = ju || C0 || Function("return this")(), Ct = Ze.Symbol, Hu = Object.prototype, x0 = Hu.hasOwnProperty, E0 = Hu.toString, Pn = Ct ? Ct.toStringTag : void 0;
|
|
14031
14031
|
function A0(t) {
|
|
14032
14032
|
var r = x0.call(t, Pn), e = t[Pn];
|
|
14033
14033
|
try {
|
|
@@ -14083,7 +14083,7 @@ function We(t) {
|
|
|
14083
14083
|
var r = typeof t;
|
|
14084
14084
|
return t != null && (r == "object" || r == "function");
|
|
14085
14085
|
}
|
|
14086
|
-
var wl = NaN,
|
|
14086
|
+
var wl = NaN, j0 = /^[-+]0x[0-9a-f]+$/i, H0 = /^0b[01]+$/i, U0 = /^0o[0-7]+$/i, z0 = parseInt;
|
|
14087
14087
|
function q0(t) {
|
|
14088
14088
|
if (typeof t == "number")
|
|
14089
14089
|
return t;
|
|
@@ -14096,8 +14096,8 @@ function q0(t) {
|
|
|
14096
14096
|
if (typeof t != "string")
|
|
14097
14097
|
return t === 0 ? t : +t;
|
|
14098
14098
|
t = B0(t);
|
|
14099
|
-
var e =
|
|
14100
|
-
return e || U0.test(t) ? z0(t.slice(2), e ? 2 : 8) :
|
|
14099
|
+
var e = H0.test(t);
|
|
14100
|
+
return e || U0.test(t) ? z0(t.slice(2), e ? 2 : 8) : j0.test(t) ? wl : +t;
|
|
14101
14101
|
}
|
|
14102
14102
|
var kl = 1 / 0, V0 = 17976931348623157e292;
|
|
14103
14103
|
function W0(t) {
|
|
@@ -14209,7 +14209,7 @@ function dg(t, r, e) {
|
|
|
14209
14209
|
}
|
|
14210
14210
|
return a;
|
|
14211
14211
|
}
|
|
14212
|
-
function
|
|
14212
|
+
function js(t, r, e) {
|
|
14213
14213
|
switch (e.length) {
|
|
14214
14214
|
case 0:
|
|
14215
14215
|
return t.call(r);
|
|
@@ -14247,14 +14247,14 @@ function fg(t, r) {
|
|
|
14247
14247
|
t[e] === r && ++n;
|
|
14248
14248
|
return n;
|
|
14249
14249
|
}
|
|
14250
|
-
function
|
|
14250
|
+
function Hs() {
|
|
14251
14251
|
}
|
|
14252
14252
|
var mg = 4294967295;
|
|
14253
|
-
function
|
|
14253
|
+
function wn(t) {
|
|
14254
14254
|
this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = mg, this.__views__ = [];
|
|
14255
14255
|
}
|
|
14256
|
-
|
|
14257
|
-
|
|
14256
|
+
wn.prototype = Wi(Hs.prototype);
|
|
14257
|
+
wn.prototype.constructor = wn;
|
|
14258
14258
|
function gg() {
|
|
14259
14259
|
}
|
|
14260
14260
|
var Wu = fi ? function(t) {
|
|
@@ -14268,11 +14268,11 @@ function bg(t) {
|
|
|
14268
14268
|
}
|
|
14269
14269
|
return r;
|
|
14270
14270
|
}
|
|
14271
|
-
function
|
|
14271
|
+
function kn(t, r) {
|
|
14272
14272
|
this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!r, this.__index__ = 0, this.__values__ = void 0;
|
|
14273
14273
|
}
|
|
14274
|
-
|
|
14275
|
-
|
|
14274
|
+
kn.prototype = Wi(Hs.prototype);
|
|
14275
|
+
kn.prototype.constructor = kn;
|
|
14276
14276
|
function Us(t, r) {
|
|
14277
14277
|
var e = -1, n = t.length;
|
|
14278
14278
|
for (r || (r = Array(n)); ++e < n; )
|
|
@@ -14280,26 +14280,26 @@ function Us(t, r) {
|
|
|
14280
14280
|
return r;
|
|
14281
14281
|
}
|
|
14282
14282
|
function wg(t) {
|
|
14283
|
-
if (t instanceof
|
|
14283
|
+
if (t instanceof wn)
|
|
14284
14284
|
return t.clone();
|
|
14285
|
-
var r = new
|
|
14285
|
+
var r = new kn(t.__wrapped__, t.__chain__);
|
|
14286
14286
|
return r.__actions__ = Us(t.__actions__), r.__index__ = t.__index__, r.__values__ = t.__values__, r;
|
|
14287
14287
|
}
|
|
14288
14288
|
var kg = Object.prototype, _g = kg.hasOwnProperty;
|
|
14289
14289
|
function mi(t) {
|
|
14290
|
-
if (Rt(t) && !it(t) && !(t instanceof
|
|
14291
|
-
if (t instanceof
|
|
14290
|
+
if (Rt(t) && !it(t) && !(t instanceof wn)) {
|
|
14291
|
+
if (t instanceof kn)
|
|
14292
14292
|
return t;
|
|
14293
14293
|
if (_g.call(t, "__wrapped__"))
|
|
14294
14294
|
return wg(t);
|
|
14295
14295
|
}
|
|
14296
|
-
return new
|
|
14296
|
+
return new kn(t);
|
|
14297
14297
|
}
|
|
14298
|
-
mi.prototype =
|
|
14298
|
+
mi.prototype = Hs.prototype;
|
|
14299
14299
|
mi.prototype.constructor = mi;
|
|
14300
14300
|
function Sg(t) {
|
|
14301
14301
|
var r = bg(t), e = mi[r];
|
|
14302
|
-
if (typeof e != "function" || !(r in
|
|
14302
|
+
if (typeof e != "function" || !(r in wn.prototype))
|
|
14303
14303
|
return !1;
|
|
14304
14304
|
if (t === e)
|
|
14305
14305
|
return !0;
|
|
@@ -14380,10 +14380,10 @@ function Bg(t, r) {
|
|
|
14380
14380
|
var e = t == null ? 0 : t.length;
|
|
14381
14381
|
return !!e && Dg(t, r, 0) > -1;
|
|
14382
14382
|
}
|
|
14383
|
-
var
|
|
14383
|
+
var jg = 1, Hg = 2, Ug = 8, zg = 16, qg = 32, Vg = 64, Wg = 128, Gg = 256, Kg = 512, Jg = [
|
|
14384
14384
|
["ary", Wg],
|
|
14385
|
-
["bind",
|
|
14386
|
-
["bindKey",
|
|
14385
|
+
["bind", jg],
|
|
14386
|
+
["bindKey", Hg],
|
|
14387
14387
|
["curry", Ug],
|
|
14388
14388
|
["curryRight", zg],
|
|
14389
14389
|
["flip", Kg],
|
|
@@ -14492,7 +14492,7 @@ function dv(t, r, e) {
|
|
|
14492
14492
|
e - a
|
|
14493
14493
|
);
|
|
14494
14494
|
var u = this && this !== Ze && this instanceof i ? n : t;
|
|
14495
|
-
return
|
|
14495
|
+
return js(u, this, s);
|
|
14496
14496
|
}
|
|
14497
14497
|
return i;
|
|
14498
14498
|
}
|
|
@@ -14504,7 +14504,7 @@ function pv(t, r, e, n) {
|
|
|
14504
14504
|
d[c] = n[c];
|
|
14505
14505
|
for (; l--; )
|
|
14506
14506
|
d[c++] = arguments[++o];
|
|
14507
|
-
return
|
|
14507
|
+
return js(h, i ? e : this, d);
|
|
14508
14508
|
}
|
|
14509
14509
|
return s;
|
|
14510
14510
|
}
|
|
@@ -14582,7 +14582,7 @@ function Qu(t, r, e) {
|
|
|
14582
14582
|
i = -1;
|
|
14583
14583
|
for (var o = Array(r + 1); ++i < r; )
|
|
14584
14584
|
o[i] = n[i];
|
|
14585
|
-
return o[r] = e(s),
|
|
14585
|
+
return o[r] = e(s), js(t, this, o);
|
|
14586
14586
|
};
|
|
14587
14587
|
}
|
|
14588
14588
|
function Cv(t, r) {
|
|
@@ -14633,9 +14633,9 @@ var td = Object.prototype, Iv = td.hasOwnProperty, Lv = td.propertyIsEnumerable,
|
|
|
14633
14633
|
function Mv() {
|
|
14634
14634
|
return !1;
|
|
14635
14635
|
}
|
|
14636
|
-
var nd = typeof exports == "object" && exports && !exports.nodeType && exports, Dl = nd && typeof module == "object" && module && !module.nodeType && module, Pv = Dl && Dl.exports === nd, Bl = Pv ? Ze.Buffer : void 0, Fv = Bl ? Bl.isBuffer : void 0, rd = Fv || Mv, $v = "[object Arguments]", Nv = "[object Array]", Dv = "[object Boolean]", Bv = "[object Date]",
|
|
14636
|
+
var nd = typeof exports == "object" && exports && !exports.nodeType && exports, Dl = nd && typeof module == "object" && module && !module.nodeType && module, Pv = Dl && Dl.exports === nd, Bl = Pv ? Ze.Buffer : void 0, Fv = Bl ? Bl.isBuffer : void 0, rd = Fv || Mv, $v = "[object Arguments]", Nv = "[object Array]", Dv = "[object Boolean]", Bv = "[object Date]", jv = "[object Error]", Hv = "[object Function]", Uv = "[object Map]", zv = "[object Number]", qv = "[object Object]", Vv = "[object RegExp]", Wv = "[object Set]", Gv = "[object String]", Kv = "[object WeakMap]", Jv = "[object ArrayBuffer]", Zv = "[object DataView]", Yv = "[object Float32Array]", Xv = "[object Float64Array]", Qv = "[object Int8Array]", e1 = "[object Int16Array]", t1 = "[object Int32Array]", n1 = "[object Uint8Array]", r1 = "[object Uint8ClampedArray]", i1 = "[object Uint16Array]", a1 = "[object Uint32Array]", de = {};
|
|
14637
14637
|
de[Yv] = de[Xv] = de[Qv] = de[e1] = de[t1] = de[n1] = de[r1] = de[i1] = de[a1] = !0;
|
|
14638
|
-
de[$v] = de[Nv] = de[Jv] = de[Dv] = de[Zv] = de[Bv] = de[
|
|
14638
|
+
de[$v] = de[Nv] = de[Jv] = de[Dv] = de[Zv] = de[Bv] = de[jv] = de[Hv] = de[Uv] = de[zv] = de[qv] = de[Vv] = de[Wv] = de[Gv] = de[Kv] = !1;
|
|
14639
14639
|
function s1(t) {
|
|
14640
14640
|
return Rt(t) && Ws(t.length) && !!de[Tn(t)];
|
|
14641
14641
|
}
|
|
@@ -14644,13 +14644,13 @@ function o1(t) {
|
|
|
14644
14644
|
return t(r);
|
|
14645
14645
|
};
|
|
14646
14646
|
}
|
|
14647
|
-
var id = typeof exports == "object" && exports && !exports.nodeType && exports, Qn = id && typeof module == "object" && module && !module.nodeType && module, l1 = Qn && Qn.exports === id, Ta = l1 &&
|
|
14647
|
+
var id = typeof exports == "object" && exports && !exports.nodeType && exports, Qn = id && typeof module == "object" && module && !module.nodeType && module, l1 = Qn && Qn.exports === id, Ta = l1 && ju.process, jl = function() {
|
|
14648
14648
|
try {
|
|
14649
14649
|
var t = Qn && Qn.require && Qn.require("util").types;
|
|
14650
14650
|
return t || Ta && Ta.binding && Ta.binding("util");
|
|
14651
14651
|
} catch {
|
|
14652
14652
|
}
|
|
14653
|
-
}(),
|
|
14653
|
+
}(), Hl = jl && jl.isTypedArray, ad = Hl ? o1(Hl) : s1;
|
|
14654
14654
|
function c1(t, r) {
|
|
14655
14655
|
var e = it(t), n = !e && hr(t), i = !e && !n && rd(t), a = !e && !n && !i && ad(t), s = e || n || i || a, o = s ? Rv(t.length, String) : [], l = o.length;
|
|
14656
14656
|
for (var c in t)
|
|
@@ -14794,10 +14794,10 @@ function D1(t) {
|
|
|
14794
14794
|
function B1(t) {
|
|
14795
14795
|
return Ji(this, t).get(t);
|
|
14796
14796
|
}
|
|
14797
|
-
function
|
|
14797
|
+
function j1(t) {
|
|
14798
14798
|
return Ji(this, t).has(t);
|
|
14799
14799
|
}
|
|
14800
|
-
function
|
|
14800
|
+
function H1(t, r) {
|
|
14801
14801
|
var e = Ji(this, t), n = e.size;
|
|
14802
14802
|
return e.set(t, r), this.size += e.size == n ? 0 : 1, this;
|
|
14803
14803
|
}
|
|
@@ -14811,8 +14811,8 @@ function Ot(t) {
|
|
|
14811
14811
|
Ot.prototype.clear = $1;
|
|
14812
14812
|
Ot.prototype.delete = D1;
|
|
14813
14813
|
Ot.prototype.get = B1;
|
|
14814
|
-
Ot.prototype.has =
|
|
14815
|
-
Ot.prototype.set =
|
|
14814
|
+
Ot.prototype.has = j1;
|
|
14815
|
+
Ot.prototype.set = H1;
|
|
14816
14816
|
var U1 = "Expected a function";
|
|
14817
14817
|
function Ks(t, r) {
|
|
14818
14818
|
if (typeof t != "function" || r != null && typeof r != "function")
|
|
@@ -15256,7 +15256,7 @@ function D2(t) {
|
|
|
15256
15256
|
return Jl[r] ? `#${Jl[r]}` : t;
|
|
15257
15257
|
}
|
|
15258
15258
|
const Zl = (t) => t.length === 7 && t[1] === t[2] && t[3] === t[4] && t[5] === t[6] ? `#${t[1]}${t[3]}${t[5]}` : t;
|
|
15259
|
-
function
|
|
15259
|
+
function nn(t) {
|
|
15260
15260
|
const r = t.toString(16);
|
|
15261
15261
|
return r.length === 1 ? `0${r}` : r;
|
|
15262
15262
|
}
|
|
@@ -15272,7 +15272,7 @@ Er(function(t, r) {
|
|
|
15272
15272
|
};
|
|
15273
15273
|
return pe(i);
|
|
15274
15274
|
});
|
|
15275
|
-
const
|
|
15275
|
+
const j2 = Er(function(t, r, e) {
|
|
15276
15276
|
if (r === "transparent") return e;
|
|
15277
15277
|
if (e === "transparent") return r;
|
|
15278
15278
|
if (t === 0) return e;
|
|
@@ -15291,9 +15291,9 @@ const H2 = Er(function(t, r, e) {
|
|
|
15291
15291
|
return pe(p);
|
|
15292
15292
|
});
|
|
15293
15293
|
Er(function(t, r) {
|
|
15294
|
-
return r === "transparent" ? r :
|
|
15294
|
+
return r === "transparent" ? r : j2(parseFloat(t.toString()), "rgb(0, 0, 0)", r);
|
|
15295
15295
|
});
|
|
15296
|
-
const
|
|
15296
|
+
const H2 = /^#[a-fA-F0-9]{6}$/, U2 = /^#[a-fA-F0-9]{8}$/, z2 = /^#[a-fA-F0-9]{3}$/, q2 = /^#[a-fA-F0-9]{4}$/, Oa = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, V2 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, W2 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, G2 = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
15297
15297
|
function pe(t, r, e, n) {
|
|
15298
15298
|
if (typeof t == "string" && typeof r == "number") {
|
|
15299
15299
|
const i = yi(t);
|
|
@@ -15308,16 +15308,16 @@ function pe(t, r, e, n) {
|
|
|
15308
15308
|
}
|
|
15309
15309
|
function Yl(t, r, e) {
|
|
15310
15310
|
if (typeof t == "number" && typeof r == "number" && typeof e == "number")
|
|
15311
|
-
return Zl(`#${
|
|
15311
|
+
return Zl(`#${nn(t)}${nn(r)}${nn(e)}`);
|
|
15312
15312
|
if (typeof t == "object" && r === void 0 && e === void 0)
|
|
15313
|
-
return Zl(`#${
|
|
15313
|
+
return Zl(`#${nn(t.red)}${nn(t.green)}${nn(t.blue)}`);
|
|
15314
15314
|
throw new tt(6);
|
|
15315
15315
|
}
|
|
15316
15316
|
function yi(t) {
|
|
15317
15317
|
if (typeof t != "string")
|
|
15318
15318
|
throw new tt(3);
|
|
15319
15319
|
const r = D2(t);
|
|
15320
|
-
if (r.match(
|
|
15320
|
+
if (r.match(H2))
|
|
15321
15321
|
return {
|
|
15322
15322
|
red: parseInt(`${r[1]}${r[2]}`, 16),
|
|
15323
15323
|
green: parseInt(`${r[3]}${r[4]}`, 16),
|
|
@@ -16520,7 +16520,7 @@ const K2 = {
|
|
|
16520
16520
|
spacing: ey,
|
|
16521
16521
|
devices: X2,
|
|
16522
16522
|
...ny
|
|
16523
|
-
}, ry = (t = "&") =>
|
|
16523
|
+
}, ry = (t = "&") => Re`
|
|
16524
16524
|
&:focus {
|
|
16525
16525
|
${x(t)} {
|
|
16526
16526
|
outline-offset: 3px;
|
|
@@ -16532,7 +16532,7 @@ const K2 = {
|
|
|
16532
16532
|
}
|
|
16533
16533
|
}
|
|
16534
16534
|
}
|
|
16535
|
-
`, iy =
|
|
16535
|
+
`, iy = Re`
|
|
16536
16536
|
:host {
|
|
16537
16537
|
/* FONTS */
|
|
16538
16538
|
--lr-poppins: ${x(C.fontFamilies.poppins)};
|
|
@@ -17040,7 +17040,7 @@ function md(t, r, e) {
|
|
|
17040
17040
|
n !== "__proto__" && n !== "constructor" && (n in t ? typeof t[n] == "string" || t[n] instanceof String || typeof r[n] == "string" || r[n] instanceof String ? e && (t[n] = r[n]) : md(t[n], r[n], e) : t[n] = r[n]);
|
|
17041
17041
|
return t;
|
|
17042
17042
|
}
|
|
17043
|
-
function
|
|
17043
|
+
function rn(t) {
|
|
17044
17044
|
return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
17045
17045
|
}
|
|
17046
17046
|
var gy = {
|
|
@@ -17370,41 +17370,41 @@ var sc = {}, oc = function(t) {
|
|
|
17370
17370
|
var Ie = R === "[object Array]", K = Ie ? [] : {}, ge = Ie ? $ : _;
|
|
17371
17371
|
for (var Y in b)
|
|
17372
17372
|
if (Object.prototype.hasOwnProperty.call(b, Y)) {
|
|
17373
|
-
var
|
|
17374
|
-
K[Y] = this.translate(
|
|
17373
|
+
var je = "".concat(ge).concat(c).concat(Y);
|
|
17374
|
+
K[Y] = this.translate(je, xe(xe({}, a), {
|
|
17375
17375
|
joinArrays: !1,
|
|
17376
17376
|
ns: h
|
|
17377
|
-
})), K[Y] ===
|
|
17377
|
+
})), K[Y] === je && (K[Y] = b[Y]);
|
|
17378
17378
|
}
|
|
17379
17379
|
b = K;
|
|
17380
17380
|
}
|
|
17381
17381
|
} else if (G && typeof re == "string" && R === "[object Array]")
|
|
17382
17382
|
b = b.join(re), b && (b = this.extendTranslation(b, i, a, s));
|
|
17383
17383
|
else {
|
|
17384
|
-
var F = !1, A = !1, P = a.count !== void 0 && typeof a.count != "string", B = e.hasDefaultValue(a), W = P ? this.pluralResolver.getSuffix(f, a.count, a) : "",
|
|
17385
|
-
!this.isValidLookup(b) && B && (F = !0, b =
|
|
17386
|
-
var ie = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, ue = ie && A ? void 0 : b, ve = B &&
|
|
17384
|
+
var F = !1, A = !1, P = a.count !== void 0 && typeof a.count != "string", B = e.hasDefaultValue(a), W = P ? this.pluralResolver.getSuffix(f, a.count, a) : "", H = a["defaultValue".concat(W)] || a.defaultValue;
|
|
17385
|
+
!this.isValidLookup(b) && B && (F = !0, b = H), this.isValidLookup(b) || (A = !0, b = d);
|
|
17386
|
+
var ie = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, ue = ie && A ? void 0 : b, ve = B && H !== b && this.options.updateMissing;
|
|
17387
17387
|
if (A || F || ve) {
|
|
17388
|
-
if (this.logger.log(ve ? "updateKey" : "missingKey", f, p, d, ve ?
|
|
17388
|
+
if (this.logger.log(ve ? "updateKey" : "missingKey", f, p, d, ve ? H : b), c) {
|
|
17389
17389
|
var Ye = this.resolve(d, xe(xe({}, a), {}, {
|
|
17390
17390
|
keySeparator: !1
|
|
17391
17391
|
}));
|
|
17392
17392
|
Ye && Ye.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
17393
17393
|
}
|
|
17394
|
-
var Le = [],
|
|
17395
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
17396
|
-
for (var aa = 0; aa <
|
|
17397
|
-
Le.push(
|
|
17394
|
+
var Le = [], He = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
17395
|
+
if (this.options.saveMissingTo === "fallback" && He && He[0])
|
|
17396
|
+
for (var aa = 0; aa < He.length; aa++)
|
|
17397
|
+
Le.push(He[aa]);
|
|
17398
17398
|
else this.options.saveMissingTo === "all" ? Le = this.languageUtils.toResolveHierarchy(a.lng || this.language) : Le.push(a.lng || this.language);
|
|
17399
|
-
var po = function(
|
|
17399
|
+
var po = function(Qt, oa, fo) {
|
|
17400
17400
|
var mo = B && fo !== b ? fo : ue;
|
|
17401
|
-
o.options.missingKeyHandler ? o.options.missingKeyHandler(
|
|
17401
|
+
o.options.missingKeyHandler ? o.options.missingKeyHandler(Qt, p, oa, mo, ve, a) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(Qt, p, oa, mo, ve, a), o.emit("missingKey", Qt, p, oa, b);
|
|
17402
17402
|
};
|
|
17403
17403
|
this.options.saveMissing && (this.options.saveMissingPlurals && P ? Le.forEach(function(sa) {
|
|
17404
|
-
o.pluralResolver.getSuffixes(sa, a).forEach(function(
|
|
17405
|
-
po([sa], d +
|
|
17404
|
+
o.pluralResolver.getSuffixes(sa, a).forEach(function(Qt) {
|
|
17405
|
+
po([sa], d + Qt, a["defaultValue".concat(Qt)] || H);
|
|
17406
17406
|
});
|
|
17407
|
-
}) : po(Le, d,
|
|
17407
|
+
}) : po(Le, d, H));
|
|
17408
17408
|
}
|
|
17409
17409
|
b = this.extendTranslation(b, i, a, v, s), A && b === d && this.options.appendNamespaceToMissingKey && (b = "".concat(p, ":").concat(d)), (A || F) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? b = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(p, ":").concat(d) : d, F ? b : void 0) : b = this.options.parseMissingKeyHandler(b));
|
|
17410
17410
|
}
|
|
@@ -17877,7 +17877,7 @@ var Oy = function() {
|
|
|
17877
17877
|
escapeValue: !0
|
|
17878
17878
|
});
|
|
17879
17879
|
var n = e.interpolation;
|
|
17880
|
-
this.escape = n.escape !== void 0 ? n.escape : vy, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ?
|
|
17880
|
+
this.escape = n.escape !== void 0 ? n.escape : vy, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? rn(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? rn(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? rn(n.nestingPrefix) : n.nestingPrefixEscaped || rn("$t("), this.nestingSuffix = n.nestingSuffix ? rn(n.nestingSuffix) : n.nestingSuffixEscaped || rn(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
|
|
17881
17881
|
}
|
|
17882
17882
|
}, {
|
|
17883
17883
|
key: "reset",
|
|
@@ -18031,7 +18031,7 @@ function Iy(t) {
|
|
|
18031
18031
|
formatOptions: e
|
|
18032
18032
|
};
|
|
18033
18033
|
}
|
|
18034
|
-
function
|
|
18034
|
+
function an(t) {
|
|
18035
18035
|
var r = {};
|
|
18036
18036
|
return function(n, i, a) {
|
|
18037
18037
|
var s = i + JSON.stringify(a), o = r[s];
|
|
@@ -18042,13 +18042,13 @@ var Ly = function() {
|
|
|
18042
18042
|
function t() {
|
|
18043
18043
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
18044
18044
|
ot(this, t), this.logger = nt.create("formatter"), this.options = r, this.formats = {
|
|
18045
|
-
number:
|
|
18045
|
+
number: an(function(e, n) {
|
|
18046
18046
|
var i = new Intl.NumberFormat(e, dt({}, n));
|
|
18047
18047
|
return function(a) {
|
|
18048
18048
|
return i.format(a);
|
|
18049
18049
|
};
|
|
18050
18050
|
}),
|
|
18051
|
-
currency:
|
|
18051
|
+
currency: an(function(e, n) {
|
|
18052
18052
|
var i = new Intl.NumberFormat(e, dt(dt({}, n), {}, {
|
|
18053
18053
|
style: "currency"
|
|
18054
18054
|
}));
|
|
@@ -18056,19 +18056,19 @@ var Ly = function() {
|
|
|
18056
18056
|
return i.format(a);
|
|
18057
18057
|
};
|
|
18058
18058
|
}),
|
|
18059
|
-
datetime:
|
|
18059
|
+
datetime: an(function(e, n) {
|
|
18060
18060
|
var i = new Intl.DateTimeFormat(e, dt({}, n));
|
|
18061
18061
|
return function(a) {
|
|
18062
18062
|
return i.format(a);
|
|
18063
18063
|
};
|
|
18064
18064
|
}),
|
|
18065
|
-
relativetime:
|
|
18065
|
+
relativetime: an(function(e, n) {
|
|
18066
18066
|
var i = new Intl.RelativeTimeFormat(e, dt({}, n));
|
|
18067
18067
|
return function(a) {
|
|
18068
18068
|
return i.format(a, n.range || "day");
|
|
18069
18069
|
};
|
|
18070
18070
|
}),
|
|
18071
|
-
list:
|
|
18071
|
+
list: an(function(e, n) {
|
|
18072
18072
|
var i = new Intl.ListFormat(e, dt({}, n));
|
|
18073
18073
|
return function(a) {
|
|
18074
18074
|
return i.format(a);
|
|
@@ -18092,7 +18092,7 @@ var Ly = function() {
|
|
|
18092
18092
|
}, {
|
|
18093
18093
|
key: "addCached",
|
|
18094
18094
|
value: function(e, n) {
|
|
18095
|
-
this.formats[e.toLowerCase().trim()] =
|
|
18095
|
+
this.formats[e.toLowerCase().trim()] = an(n);
|
|
18096
18096
|
}
|
|
18097
18097
|
}, {
|
|
18098
18098
|
key: "format",
|
|
@@ -18425,7 +18425,7 @@ function Dy() {
|
|
|
18425
18425
|
return !1;
|
|
18426
18426
|
}
|
|
18427
18427
|
}
|
|
18428
|
-
function
|
|
18428
|
+
function jr() {
|
|
18429
18429
|
}
|
|
18430
18430
|
function By(t) {
|
|
18431
18431
|
var r = Object.getOwnPropertyNames(Object.getPrototypeOf(t));
|
|
@@ -18484,7 +18484,7 @@ var ki = function(t) {
|
|
|
18484
18484
|
v.init && v.init(i);
|
|
18485
18485
|
});
|
|
18486
18486
|
}
|
|
18487
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
|
18487
|
+
if (this.format = this.options.interpolation.format, s || (s = jr), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
18488
18488
|
var h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
18489
18489
|
h.length > 0 && h[0] !== "dev" && (this.options.lng = h[0]);
|
|
18490
18490
|
}
|
|
@@ -18515,7 +18515,7 @@ var ki = function(t) {
|
|
|
18515
18515
|
}, {
|
|
18516
18516
|
key: "loadResources",
|
|
18517
18517
|
value: function(i) {
|
|
18518
|
-
var a = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
18518
|
+
var a = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : jr, o = s, l = typeof i == "string" ? i : this.language;
|
|
18519
18519
|
if (typeof i == "function" && (o = i), !this.options.resources || this.options.partialBundledLanguages) {
|
|
18520
18520
|
if (l && l.toLowerCase() === "cimode") return o();
|
|
18521
18521
|
var c = [], u = function(p) {
|
|
@@ -18546,7 +18546,7 @@ var ki = function(t) {
|
|
|
18546
18546
|
key: "reloadResources",
|
|
18547
18547
|
value: function(i, a, s) {
|
|
18548
18548
|
var o = $n();
|
|
18549
|
-
return i || (i = this.languages), a || (a = this.options.ns), s || (s =
|
|
18549
|
+
return i || (i = this.languages), a || (a = this.options.ns), s || (s = jr), this.services.backendConnector.reload(i, a, function(l) {
|
|
18550
18550
|
o.resolve(), s(l);
|
|
18551
18551
|
}), o;
|
|
18552
18552
|
}
|
|
@@ -18681,7 +18681,7 @@ var ki = function(t) {
|
|
|
18681
18681
|
}, {
|
|
18682
18682
|
key: "cloneInstance",
|
|
18683
18683
|
value: function() {
|
|
18684
|
-
var i = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
18684
|
+
var i = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : jr, o = Qe(Qe(Qe({}, this.options), a), {
|
|
18685
18685
|
isClone: !0
|
|
18686
18686
|
}), l = new e(o);
|
|
18687
18687
|
(a.debug !== void 0 || a.prefix !== void 0) && (l.logger = l.logger.clone(a));
|
|
@@ -18725,13 +18725,13 @@ Se.reloadResources;
|
|
|
18725
18725
|
Se.use;
|
|
18726
18726
|
Se.changeLanguage;
|
|
18727
18727
|
Se.getFixedT;
|
|
18728
|
-
var
|
|
18728
|
+
var Ae = Se.t;
|
|
18729
18729
|
Se.exists;
|
|
18730
18730
|
Se.setDefaultNamespace;
|
|
18731
18731
|
Se.hasLoadedNamespace;
|
|
18732
18732
|
Se.loadNamespaces;
|
|
18733
18733
|
Se.loadLanguages;
|
|
18734
|
-
const
|
|
18734
|
+
const jy = {
|
|
18735
18735
|
fallbackLng: "fr",
|
|
18736
18736
|
postProcess: "displayKeys",
|
|
18737
18737
|
appendNamespaceToMissingKey: !0,
|
|
@@ -18751,7 +18751,7 @@ const Hy = {
|
|
|
18751
18751
|
* Copyright 2017 Google LLC
|
|
18752
18752
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18753
18753
|
*/
|
|
18754
|
-
const La = { INITIAL: 0, PENDING: 1, COMPLETE: 2, ERROR: 3 },
|
|
18754
|
+
const La = { INITIAL: 0, PENDING: 1, COMPLETE: 2, ERROR: 3 }, Hy = Symbol();
|
|
18755
18755
|
let vd = class {
|
|
18756
18756
|
get taskComplete() {
|
|
18757
18757
|
return this.t || (this.i === 1 ? this.t = new Promise((r, e) => {
|
|
@@ -18793,7 +18793,7 @@ let vd = class {
|
|
|
18793
18793
|
a = !0, n = d;
|
|
18794
18794
|
}
|
|
18795
18795
|
if (this.p === i) {
|
|
18796
|
-
if (e ===
|
|
18796
|
+
if (e === Hy) this.i = 0;
|
|
18797
18797
|
else {
|
|
18798
18798
|
if (a === !1) {
|
|
18799
18799
|
try {
|
|
@@ -18842,7 +18842,7 @@ let vd = class {
|
|
|
18842
18842
|
}
|
|
18843
18843
|
}
|
|
18844
18844
|
};
|
|
18845
|
-
const Uy = (t, r) => t === r || t.length === r.length && t.every((e, n) => !
|
|
18845
|
+
const Uy = (t, r) => t === r || t.length === r.length && t.every((e, n) => !ji(e, r[n]));
|
|
18846
18846
|
class zy extends vd {
|
|
18847
18847
|
constructor(r, e, n, i = !1) {
|
|
18848
18848
|
super(r, {
|
|
@@ -18865,7 +18865,7 @@ class zy extends vd {
|
|
|
18865
18865
|
}
|
|
18866
18866
|
async setI18nResources(r, e) {
|
|
18867
18867
|
await Se.init({
|
|
18868
|
-
...
|
|
18868
|
+
...jy,
|
|
18869
18869
|
lng: r,
|
|
18870
18870
|
resources: {
|
|
18871
18871
|
[r]: e
|
|
@@ -18932,7 +18932,7 @@ var Ys = {};
|
|
|
18932
18932
|
*/
|
|
18933
18933
|
Ys.parse = Jy;
|
|
18934
18934
|
Ys.serialize = Zy;
|
|
18935
|
-
var Ky = Object.prototype.toString,
|
|
18935
|
+
var Ky = Object.prototype.toString, Hr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
18936
18936
|
function Jy(t, r) {
|
|
18937
18937
|
if (typeof t != "string")
|
|
18938
18938
|
throw new TypeError("argument str must be a string");
|
|
@@ -18960,10 +18960,10 @@ function Zy(t, r, e) {
|
|
|
18960
18960
|
var n = e || {}, i = n.encode || Xy;
|
|
18961
18961
|
if (typeof i != "function")
|
|
18962
18962
|
throw new TypeError("option encode is invalid");
|
|
18963
|
-
if (!
|
|
18963
|
+
if (!Hr.test(t))
|
|
18964
18964
|
throw new TypeError("argument name is invalid");
|
|
18965
18965
|
var a = i(r);
|
|
18966
|
-
if (a && !
|
|
18966
|
+
if (a && !Hr.test(a))
|
|
18967
18967
|
throw new TypeError("argument val is invalid");
|
|
18968
18968
|
var s = t + "=" + a;
|
|
18969
18969
|
if (n.maxAge != null) {
|
|
@@ -18973,12 +18973,12 @@ function Zy(t, r, e) {
|
|
|
18973
18973
|
s += "; Max-Age=" + Math.floor(o);
|
|
18974
18974
|
}
|
|
18975
18975
|
if (n.domain) {
|
|
18976
|
-
if (!
|
|
18976
|
+
if (!Hr.test(n.domain))
|
|
18977
18977
|
throw new TypeError("option domain is invalid");
|
|
18978
18978
|
s += "; Domain=" + n.domain;
|
|
18979
18979
|
}
|
|
18980
18980
|
if (n.path) {
|
|
18981
|
-
if (!
|
|
18981
|
+
if (!Hr.test(n.path))
|
|
18982
18982
|
throw new TypeError("option path is invalid");
|
|
18983
18983
|
s += "; Path=" + n.path;
|
|
18984
18984
|
}
|
|
@@ -19364,7 +19364,7 @@ function wc(t, r, e) {
|
|
|
19364
19364
|
function Bb(t) {
|
|
19365
19365
|
return E.isArray(t) && !t.some(ps);
|
|
19366
19366
|
}
|
|
19367
|
-
const
|
|
19367
|
+
const jb = E.toFlatObject(E, {}, null, function(r) {
|
|
19368
19368
|
return /^is[A-Z]/.test(r);
|
|
19369
19369
|
});
|
|
19370
19370
|
function na(t, r, e) {
|
|
@@ -19404,7 +19404,7 @@ function na(t, r, e) {
|
|
|
19404
19404
|
}
|
|
19405
19405
|
return ps(f) ? !0 : (r.append(wc(y, g, a), c(f)), !1);
|
|
19406
19406
|
}
|
|
19407
|
-
const d = [], h = Object.assign(
|
|
19407
|
+
const d = [], h = Object.assign(jb, {
|
|
19408
19408
|
defaultVisitor: u,
|
|
19409
19409
|
convertValue: c,
|
|
19410
19410
|
isVisitable: ps
|
|
@@ -19457,13 +19457,13 @@ Od.toString = function(r) {
|
|
|
19457
19457
|
return e(i[0]) + "=" + e(i[1]);
|
|
19458
19458
|
}, "").join("&");
|
|
19459
19459
|
};
|
|
19460
|
-
function
|
|
19460
|
+
function Hb(t) {
|
|
19461
19461
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
19462
19462
|
}
|
|
19463
19463
|
function Id(t, r, e) {
|
|
19464
19464
|
if (!r)
|
|
19465
19465
|
return t;
|
|
19466
|
-
const n = e && e.encode ||
|
|
19466
|
+
const n = e && e.encode || Hb, i = e && e.serialize;
|
|
19467
19467
|
let a;
|
|
19468
19468
|
if (i ? a = i(r, e) : a = E.isURLSearchParams(r) ? r.toString() : new eo(r, e).toString(n), a) {
|
|
19469
19469
|
const s = t.indexOf("#");
|
|
@@ -20115,7 +20115,7 @@ function Ec(t) {
|
|
|
20115
20115
|
});
|
|
20116
20116
|
}
|
|
20117
20117
|
const Ac = (t) => t instanceof Ve ? { ...t } : t;
|
|
20118
|
-
function
|
|
20118
|
+
function _n(t, r) {
|
|
20119
20119
|
r = r || {};
|
|
20120
20120
|
const e = {};
|
|
20121
20121
|
function n(c, u, d) {
|
|
@@ -20255,7 +20255,7 @@ class Dt {
|
|
|
20255
20255
|
}
|
|
20256
20256
|
}
|
|
20257
20257
|
_request(r, e) {
|
|
20258
|
-
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e =
|
|
20258
|
+
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e = _n(this.defaults, e);
|
|
20259
20259
|
const { transitional: n, paramsSerializer: i, headers: a } = e;
|
|
20260
20260
|
n !== void 0 && ms.assertOptions(n, {
|
|
20261
20261
|
silentJSONParsing: gt.transitional(gt.boolean),
|
|
@@ -20314,14 +20314,14 @@ class Dt {
|
|
|
20314
20314
|
return u;
|
|
20315
20315
|
}
|
|
20316
20316
|
getUri(r) {
|
|
20317
|
-
r =
|
|
20317
|
+
r = _n(this.defaults, r);
|
|
20318
20318
|
const e = $d(r.baseURL, r.url);
|
|
20319
20319
|
return Id(e, r.params, r.paramsSerializer);
|
|
20320
20320
|
}
|
|
20321
20321
|
}
|
|
20322
20322
|
E.forEach(["delete", "get", "head", "options"], function(r) {
|
|
20323
20323
|
Dt.prototype[r] = function(e, n) {
|
|
20324
|
-
return this.request(
|
|
20324
|
+
return this.request(_n(n || {}, {
|
|
20325
20325
|
method: r,
|
|
20326
20326
|
url: e,
|
|
20327
20327
|
data: (n || {}).data
|
|
@@ -20331,7 +20331,7 @@ E.forEach(["delete", "get", "head", "options"], function(r) {
|
|
|
20331
20331
|
E.forEach(["post", "put", "patch"], function(r) {
|
|
20332
20332
|
function e(n) {
|
|
20333
20333
|
return function(a, s, o) {
|
|
20334
|
-
return this.request(
|
|
20334
|
+
return this.request(_n(o || {}, {
|
|
20335
20335
|
method: r,
|
|
20336
20336
|
headers: n ? {
|
|
20337
20337
|
"Content-Type": "multipart/form-data"
|
|
@@ -20489,29 +20489,29 @@ Object.entries(gs).forEach(([t, r]) => {
|
|
|
20489
20489
|
function Bd(t) {
|
|
20490
20490
|
const r = new Dt(t), e = bd(Dt.prototype.request, r);
|
|
20491
20491
|
return E.extend(e, Dt.prototype, r, { allOwnKeys: !0 }), E.extend(e, r, null, { allOwnKeys: !0 }), e.create = function(i) {
|
|
20492
|
-
return Bd(
|
|
20492
|
+
return Bd(_n(t, i));
|
|
20493
20493
|
}, e;
|
|
20494
20494
|
}
|
|
20495
|
-
const
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20495
|
+
const j = Bd(Rr);
|
|
20496
|
+
j.Axios = Dt;
|
|
20497
|
+
j.CanceledError = Or;
|
|
20498
|
+
j.CancelToken = no;
|
|
20499
|
+
j.isCancel = Fd;
|
|
20500
|
+
j.VERSION = Dd;
|
|
20501
|
+
j.toFormData = na;
|
|
20502
|
+
j.AxiosError = ae;
|
|
20503
|
+
j.Cancel = j.CanceledError;
|
|
20504
|
+
j.all = function(r) {
|
|
20505
20505
|
return Promise.all(r);
|
|
20506
20506
|
};
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20511
|
-
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
|
-
|
|
20507
|
+
j.spread = g3;
|
|
20508
|
+
j.isAxiosError = v3;
|
|
20509
|
+
j.mergeConfig = _n;
|
|
20510
|
+
j.AxiosHeaders = Ve;
|
|
20511
|
+
j.formToJSON = (t) => Pd(E.isHTMLForm(t) ? new FormData(t) : t);
|
|
20512
|
+
j.getAdapter = Nd.getAdapter;
|
|
20513
|
+
j.HttpStatusCode = gs;
|
|
20514
|
+
j.default = j;
|
|
20515
20515
|
class ro {
|
|
20516
20516
|
constructor({ format: r, successHandler: e, ...n } = {}) {
|
|
20517
20517
|
D(this, "instance");
|
|
@@ -20519,7 +20519,7 @@ class ro {
|
|
|
20519
20519
|
D(this, "successHandler");
|
|
20520
20520
|
D(this, "axiosErrorHandler", (r) => (e) => {
|
|
20521
20521
|
var n;
|
|
20522
|
-
|
|
20522
|
+
j.isAxiosError(e) ? (n = e.response) != null && n.data ? r({
|
|
20523
20523
|
error: e,
|
|
20524
20524
|
type: "axios-error"
|
|
20525
20525
|
}) : r({ error: e, type: "stock-error" }) : r({
|
|
@@ -20564,7 +20564,7 @@ class ro {
|
|
|
20564
20564
|
})
|
|
20565
20565
|
);
|
|
20566
20566
|
});
|
|
20567
|
-
this.instance =
|
|
20567
|
+
this.instance = j.create({ ...n }), this.format = r, this.successHandler = e;
|
|
20568
20568
|
}
|
|
20569
20569
|
createFormData(r) {
|
|
20570
20570
|
return Object.keys(r || {}).reduce((e, n) => {
|
|
@@ -20577,21 +20577,21 @@ class ro {
|
|
|
20577
20577
|
}
|
|
20578
20578
|
}
|
|
20579
20579
|
D(ro, "setDefaults", (r, e) => {
|
|
20580
|
-
|
|
20581
|
-
|
|
20580
|
+
j.defaults.baseURL = r, j.defaults.withCredentials = !0, e && Object.entries(e).forEach(([n, i]) => {
|
|
20581
|
+
j.defaults.headers.common[n] = i;
|
|
20582
20582
|
});
|
|
20583
20583
|
});
|
|
20584
20584
|
const se = (t, r) => {
|
|
20585
20585
|
var e;
|
|
20586
|
-
return
|
|
20586
|
+
return j.isAxiosError(t) && ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === r;
|
|
20587
20587
|
};
|
|
20588
|
-
var zn,
|
|
20588
|
+
var zn, on;
|
|
20589
20589
|
class vs {
|
|
20590
20590
|
}
|
|
20591
20591
|
D(vs, "ContentTranslationGet", (zn = class {
|
|
20592
|
-
}, D(zn, "isBadRequestProblemDetail", (r) =>
|
|
20593
|
-
}, D(
|
|
20594
|
-
const
|
|
20592
|
+
}, D(zn, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && se(r, 400)), D(zn, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && se(r, 401)), D(zn, "isProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), zn)), D(vs, "ContentReportPost", (on = class {
|
|
20593
|
+
}, D(on, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && se(r, 400)), D(on, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && se(r, 401)), D(on, "isValidationProblemDetails", (r) => j.isAxiosError(r) && se(r, 422)), D(on, "isProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), on));
|
|
20594
|
+
const gn = class gn extends ro {
|
|
20595
20595
|
constructor() {
|
|
20596
20596
|
super(...arguments);
|
|
20597
20597
|
/** ContentService API methods */
|
|
@@ -20603,7 +20603,7 @@ const mn = class mn extends ro {
|
|
|
20603
20603
|
* @request GET:/api/content/translation
|
|
20604
20604
|
*/
|
|
20605
20605
|
D(this, "contentTranslationGet", (e, n = {}) => this.request({
|
|
20606
|
-
path:
|
|
20606
|
+
path: gn.Endpoints.contentTranslationGet,
|
|
20607
20607
|
method: "GET",
|
|
20608
20608
|
query: e,
|
|
20609
20609
|
...n
|
|
@@ -20616,7 +20616,7 @@ const mn = class mn extends ro {
|
|
|
20616
20616
|
* @request POST:/api/content/report
|
|
20617
20617
|
*/
|
|
20618
20618
|
D(this, "contentReportPost", (e, n = {}) => this.request({
|
|
20619
|
-
path:
|
|
20619
|
+
path: gn.Endpoints.contentReportPost,
|
|
20620
20620
|
method: "POST",
|
|
20621
20621
|
body: e,
|
|
20622
20622
|
type: "multipart/form-data",
|
|
@@ -20625,12 +20625,12 @@ const mn = class mn extends ro {
|
|
|
20625
20625
|
}
|
|
20626
20626
|
};
|
|
20627
20627
|
/** ContentService API static endpoints */
|
|
20628
|
-
D(
|
|
20628
|
+
D(gn, "Endpoints", {
|
|
20629
20629
|
contentTranslationGet: "/api/content/translation",
|
|
20630
20630
|
contentReportPost: "/api/content/report"
|
|
20631
20631
|
}), /** ContentService API static errors typeguards */
|
|
20632
|
-
D(
|
|
20633
|
-
let ys =
|
|
20632
|
+
D(gn, "Errors", vs);
|
|
20633
|
+
let ys = gn;
|
|
20634
20634
|
class y3 {
|
|
20635
20635
|
constructor(r) {
|
|
20636
20636
|
this.config = r;
|
|
@@ -20701,7 +20701,7 @@ const b3 = "fr", w3 = (t) => {
|
|
|
20701
20701
|
}) : this.renderElement();
|
|
20702
20702
|
}
|
|
20703
20703
|
};
|
|
20704
|
-
co.styles =
|
|
20704
|
+
co.styles = Re`
|
|
20705
20705
|
${iy}
|
|
20706
20706
|
`;
|
|
20707
20707
|
let me = co;
|
|
@@ -20710,9 +20710,9 @@ let me = co;
|
|
|
20710
20710
|
* Copyright 2020 Google LLC
|
|
20711
20711
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20712
20712
|
*/
|
|
20713
|
-
const
|
|
20714
|
-
if ((t == null ? void 0 : t.r) ===
|
|
20715
|
-
}, Rc = (t) => ({ _$litStatic$: t, r:
|
|
20713
|
+
const jd = Symbol.for(""), _3 = (t) => {
|
|
20714
|
+
if ((t == null ? void 0 : t.r) === jd) return t == null ? void 0 : t._$litStatic$;
|
|
20715
|
+
}, Rc = (t) => ({ _$litStatic$: t, r: jd }), Oc = /* @__PURE__ */ new Map(), S3 = (t) => (r, ...e) => {
|
|
20716
20716
|
const n = e.length;
|
|
20717
20717
|
let i, a;
|
|
20718
20718
|
const s = [], o = [];
|
|
@@ -20726,7 +20726,7 @@ const Hd = Symbol.for(""), _3 = (t) => {
|
|
|
20726
20726
|
(r = Oc.get(d)) === void 0 && (s.raw = s, Oc.set(d, r = s)), e = o;
|
|
20727
20727
|
}
|
|
20728
20728
|
return t(r, ...e);
|
|
20729
|
-
},
|
|
20729
|
+
}, sn = S3(be);
|
|
20730
20730
|
function C3(t, r) {
|
|
20731
20731
|
return function(e, n) {
|
|
20732
20732
|
const i = new CustomEvent(r, {
|
|
@@ -20750,7 +20750,7 @@ function x3(t) {
|
|
|
20750
20750
|
});
|
|
20751
20751
|
};
|
|
20752
20752
|
}
|
|
20753
|
-
const E3 =
|
|
20753
|
+
const E3 = Re`
|
|
20754
20754
|
@keyframes rotate360 {
|
|
20755
20755
|
from {
|
|
20756
20756
|
transform: rotate(0deg);
|
|
@@ -20764,7 +20764,7 @@ const E3 = Te`
|
|
|
20764
20764
|
vertical-align: middle;
|
|
20765
20765
|
animation: rotate360 1s linear infinite;
|
|
20766
20766
|
}
|
|
20767
|
-
`, A3 =
|
|
20767
|
+
`, A3 = Re`
|
|
20768
20768
|
:host {
|
|
20769
20769
|
display: inline-block;
|
|
20770
20770
|
transition: fill 0.2s, stroke 0.2s;
|
|
@@ -20792,7 +20792,7 @@ const E3 = Te`
|
|
|
20792
20792
|
height: 100%;
|
|
20793
20793
|
}
|
|
20794
20794
|
`;
|
|
20795
|
-
var T3 = Object.defineProperty,
|
|
20795
|
+
var T3 = Object.defineProperty, Hd = (t, r, e, n) => {
|
|
20796
20796
|
for (var i = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
20797
20797
|
(s = t[a]) && (i = s(r, e, i) || i);
|
|
20798
20798
|
return i && T3(r, e, i), i;
|
|
@@ -20804,10 +20804,10 @@ const uo = class uo extends me {
|
|
|
20804
20804
|
};
|
|
20805
20805
|
uo.styles = [me.styles, A3];
|
|
20806
20806
|
let mr = uo;
|
|
20807
|
-
|
|
20807
|
+
Hd([
|
|
20808
20808
|
Z({ type: String, reflect: !0 })
|
|
20809
20809
|
], mr.prototype, "size");
|
|
20810
|
-
|
|
20810
|
+
Hd([
|
|
20811
20811
|
Z({ type: String })
|
|
20812
20812
|
], mr.prototype, "viewBox");
|
|
20813
20813
|
function ut(t, r) {
|
|
@@ -20843,7 +20843,7 @@ let gr = class extends me {
|
|
|
20843
20843
|
return be`<lr-icon-spinner
|
|
20844
20844
|
size=${this.size}
|
|
20845
20845
|
class="spinner"
|
|
20846
|
-
data-cerberus="${
|
|
20846
|
+
data-cerberus="${fn(this.dataCerberus)}"
|
|
20847
20847
|
></lr-icon-spinner> `;
|
|
20848
20848
|
}
|
|
20849
20849
|
};
|
|
@@ -20887,23 +20887,23 @@ const ho = class ho extends me {
|
|
|
20887
20887
|
const r = !!this.href, e = this.disabled, n = Bu({
|
|
20888
20888
|
button: this.type === "button",
|
|
20889
20889
|
"has-content": this._hasDefaultSlot
|
|
20890
|
-
}), i = this.loading && this.loadingText ? this.loadingText :
|
|
20890
|
+
}), i = this.loading && this.loadingText ? this.loadingText : sn`<slot></slot>`, a = this.icon ? sn`<${Rc(`lr-icon-${this.icon}`)} class="icon" size=${this.size}></${Rc(
|
|
20891
20891
|
`lr-icon-${this.icon}`
|
|
20892
|
-
)}>` : null, s =
|
|
20892
|
+
)}>` : null, s = sn`<lr-spinner class="loading-spinner" size="${this.size}"></lr-spinner>`, o = sn`<slot name="icon">${this.loading ? s : a ?? ""}</slot>
|
|
20893
20893
|
<span class="text">${i}</span>`;
|
|
20894
|
-
return r ?
|
|
20895
|
-
aria-label="${
|
|
20894
|
+
return r ? sn`<a
|
|
20895
|
+
aria-label="${fn(this.label ?? this.textContent)}"
|
|
20896
20896
|
aria-disabled=${e}
|
|
20897
20897
|
class=${n}
|
|
20898
|
-
href=${
|
|
20899
|
-
target=${
|
|
20898
|
+
href=${fn(this.href)}
|
|
20899
|
+
target=${fn(this.target)}
|
|
20900
20900
|
role="button"
|
|
20901
20901
|
part="base"
|
|
20902
20902
|
@click=${this.handleClick}
|
|
20903
20903
|
>${o}
|
|
20904
|
-
</a>` :
|
|
20905
|
-
aria-label="${
|
|
20906
|
-
aria-disabled=${
|
|
20904
|
+
</a>` : sn`<button
|
|
20905
|
+
aria-label="${fn(this.label ?? this.textContent)}"
|
|
20906
|
+
aria-disabled=${fn(e)}
|
|
20907
20907
|
?disabled=${e}
|
|
20908
20908
|
class=${n}
|
|
20909
20909
|
part="base"
|
|
@@ -20949,7 +20949,7 @@ Ce([
|
|
|
20949
20949
|
Z({ type: String })
|
|
20950
20950
|
], we.prototype, "loadingText", 2);
|
|
20951
20951
|
Ce([
|
|
20952
|
-
|
|
20952
|
+
Xt()
|
|
20953
20953
|
], we.prototype, "textContent", 2);
|
|
20954
20954
|
Ce([
|
|
20955
20955
|
x3("lr-click")
|
|
@@ -20972,7 +20972,7 @@ Ce([
|
|
|
20972
20972
|
Et = Ce([
|
|
20973
20973
|
Be("lr-button")
|
|
20974
20974
|
], Et);
|
|
20975
|
-
const M3 =
|
|
20975
|
+
const M3 = Re`
|
|
20976
20976
|
:host {
|
|
20977
20977
|
position: absolute;
|
|
20978
20978
|
display: none;
|
|
@@ -21020,7 +21020,7 @@ var P3 = Object.defineProperty, F3 = Object.getOwnPropertyDescriptor, ao = (t, r
|
|
|
21020
21020
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21021
21021
|
return n && i && P3(r, e, i), i;
|
|
21022
21022
|
};
|
|
21023
|
-
let
|
|
21023
|
+
let Sn = class extends me {
|
|
21024
21024
|
constructor() {
|
|
21025
21025
|
super(...arguments), this.active = !0, this.blurring = !1;
|
|
21026
21026
|
}
|
|
@@ -21032,22 +21032,22 @@ let _n = class extends me {
|
|
|
21032
21032
|
`;
|
|
21033
21033
|
}
|
|
21034
21034
|
};
|
|
21035
|
-
|
|
21035
|
+
Sn.styles = [me.styles, M3];
|
|
21036
21036
|
ao([
|
|
21037
21037
|
Z({ type: Boolean, reflect: !0 })
|
|
21038
|
-
],
|
|
21038
|
+
], Sn.prototype, "active", 2);
|
|
21039
21039
|
ao([
|
|
21040
21040
|
Z({ type: Boolean, reflect: !0 })
|
|
21041
|
-
],
|
|
21042
|
-
|
|
21041
|
+
], Sn.prototype, "blurring", 2);
|
|
21042
|
+
Sn = ao([
|
|
21043
21043
|
Be("lr-dimmer")
|
|
21044
|
-
],
|
|
21044
|
+
], Sn);
|
|
21045
21045
|
var $3 = Object.defineProperty, N3 = Object.getOwnPropertyDescriptor, D3 = (t, r, e, n) => {
|
|
21046
21046
|
for (var i = n > 1 ? void 0 : n ? N3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21047
21047
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21048
21048
|
return n && i && $3(r, e, i), i;
|
|
21049
21049
|
};
|
|
21050
|
-
let Ic = class extends
|
|
21050
|
+
let Ic = class extends Sn {
|
|
21051
21051
|
constructor() {
|
|
21052
21052
|
super(...arguments), this.active = !0;
|
|
21053
21053
|
}
|
|
@@ -21126,17 +21126,17 @@ const er = (t, r) => {
|
|
|
21126
21126
|
e.add(t), U3(r);
|
|
21127
21127
|
}
|
|
21128
21128
|
};
|
|
21129
|
-
function
|
|
21129
|
+
function j3(t) {
|
|
21130
21130
|
this._$AN !== void 0 ? (_i(this), this._$AM = t, Ud(this)) : this._$AM = t;
|
|
21131
21131
|
}
|
|
21132
|
-
function
|
|
21132
|
+
function H3(t, r = !1, e = 0) {
|
|
21133
21133
|
const n = this._$AH, i = this._$AN;
|
|
21134
21134
|
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(n)) for (let a = e; a < n.length; a++) er(n[a], !1), _i(n[a]);
|
|
21135
21135
|
else n != null && (er(n, !1), _i(n));
|
|
21136
21136
|
else er(this, t);
|
|
21137
21137
|
}
|
|
21138
21138
|
const U3 = (t) => {
|
|
21139
|
-
t.type == Ui.CHILD && (t._$AP ?? (t._$AP =
|
|
21139
|
+
t.type == Ui.CHILD && (t._$AP ?? (t._$AP = H3), t._$AQ ?? (t._$AQ = j3));
|
|
21140
21140
|
};
|
|
21141
21141
|
let zd = class extends Ns {
|
|
21142
21142
|
constructor() {
|
|
@@ -21187,7 +21187,7 @@ const Da = /* @__PURE__ */ new WeakMap(), z3 = zi(class extends zd {
|
|
|
21187
21187
|
reconnected() {
|
|
21188
21188
|
this.rt(this.ct);
|
|
21189
21189
|
}
|
|
21190
|
-
}), q3 =
|
|
21190
|
+
}), q3 = Re`
|
|
21191
21191
|
:host {
|
|
21192
21192
|
--chat-sticky-offset-right: 100px;
|
|
21193
21193
|
--chat-sticky-offset-bottom: 5%;
|
|
@@ -21483,8 +21483,9 @@ const Da = /* @__PURE__ */ new WeakMap(), z3 = zi(class extends zd {
|
|
|
21483
21483
|
position: "revert",
|
|
21484
21484
|
width: "auto",
|
|
21485
21485
|
height: "auto",
|
|
21486
|
-
|
|
21487
|
-
|
|
21486
|
+
cursor: "default",
|
|
21487
|
+
margin: "0",
|
|
21488
|
+
display: "flex"
|
|
21488
21489
|
},
|
|
21489
21490
|
hover: {
|
|
21490
21491
|
background: "none",
|
|
@@ -21525,7 +21526,9 @@ const Da = /* @__PURE__ */ new WeakMap(), z3 = zi(class extends zd {
|
|
|
21525
21526
|
padding: "0.5rem 0.75rem",
|
|
21526
21527
|
justifyContent: "space-between",
|
|
21527
21528
|
alignItems: "center",
|
|
21528
|
-
fontSize: "0.75rem"
|
|
21529
|
+
fontSize: "0.75rem",
|
|
21530
|
+
width: "calc(100% - 1.5rem)",
|
|
21531
|
+
margin: "0"
|
|
21529
21532
|
},
|
|
21530
21533
|
htmlClassUtilities: {
|
|
21531
21534
|
"button-container": {
|
|
@@ -21556,20 +21559,24 @@ const Da = /* @__PURE__ */ new WeakMap(), z3 = zi(class extends zd {
|
|
|
21556
21559
|
.outer-message-container:nth-child(2)
|
|
21557
21560
|
{
|
|
21558
21561
|
margin-block-start: auto !important;
|
|
21559
|
-
}
|
|
21562
|
+
}
|
|
21563
|
+
.text-input-container-right-adjustment{
|
|
21564
|
+
margin: 0 !important;
|
|
21565
|
+
}
|
|
21566
|
+
`
|
|
21560
21567
|
};
|
|
21561
|
-
var qn, Vn,
|
|
21568
|
+
var qn, Vn, ln, cn, un, dn, qa, Va;
|
|
21562
21569
|
class ht {
|
|
21563
21570
|
}
|
|
21564
21571
|
D(ht, "ChatbotConversationsGet", (qn = class {
|
|
21565
|
-
}, D(qn, "isNotFoundProblemDetails", (r) =>
|
|
21566
|
-
}, D(Vn, "isNotFoundProblemDetails", (r) =>
|
|
21567
|
-
}, D(
|
|
21568
|
-
}, D(
|
|
21569
|
-
}, D(
|
|
21570
|
-
}, D(
|
|
21571
|
-
}, D(qa, "isUnauthorizedProblemDetails", (r) =>
|
|
21572
|
-
}, D(Va, "isUnauthorizedProblemDetails", (r) =>
|
|
21572
|
+
}, D(qn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(qn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(qn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), qn)), D(ht, "ChatbotConversationsSummaryGet", (Vn = class {
|
|
21573
|
+
}, D(Vn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(Vn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(Vn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), Vn)), D(ht, "ChatbotConversationsPost", (ln = class {
|
|
21574
|
+
}, D(ln, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(ln, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(ln, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(ln, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), ln)), D(ht, "ChatbotConversationsRatePost", (cn = class {
|
|
21575
|
+
}, D(cn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(cn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(cn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(cn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), cn)), D(ht, "ChatbotConversationsMessagesRatePost", (un = class {
|
|
21576
|
+
}, D(un, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(un, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(un, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(un, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), un)), D(ht, "ChatbotConversationsInteractionsSummarizePost", (dn = class {
|
|
21577
|
+
}, D(dn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(dn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(dn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(dn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), dn)), D(ht, "ChatbotIntegrationsPost", (qa = class {
|
|
21578
|
+
}, D(qa, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && se(r, 401)), qa)), D(ht, "ChatbotIntegrationsGet", (Va = class {
|
|
21579
|
+
}, D(Va, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && se(r, 401)), Va));
|
|
21573
21580
|
const Ue = class Ue extends ro {
|
|
21574
21581
|
constructor() {
|
|
21575
21582
|
super(...arguments);
|
|
@@ -21700,7 +21707,7 @@ D(Ue, "Endpoints", {
|
|
|
21700
21707
|
chatbotIntegrationsGet: "/api/chatbot/integrations"
|
|
21701
21708
|
}), /** ChatbotService API static errors typeguards */
|
|
21702
21709
|
D(Ue, "Errors", ht);
|
|
21703
|
-
let
|
|
21710
|
+
let zt = Ue;
|
|
21704
21711
|
const V3 = /* @__PURE__ */ new WeakMap();
|
|
21705
21712
|
let Lc = 0;
|
|
21706
21713
|
const Ba = /* @__PURE__ */ new Map(), Mc = /* @__PURE__ */ new WeakSet(), Pc = () => new Promise((t) => requestAnimationFrame(t)), Fc = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], $c = [{ opacity: 0 }], Nc = [{ opacity: 0 }, { opacity: 1 }], Dc = (t, r) => {
|
|
@@ -21709,7 +21716,7 @@ const Ba = /* @__PURE__ */ new Map(), Mc = /* @__PURE__ */ new WeakSet(), Pc = (
|
|
|
21709
21716
|
}, Bc = (t, r) => {
|
|
21710
21717
|
const e = t / r;
|
|
21711
21718
|
return e === 1 ? void 0 : e;
|
|
21712
|
-
},
|
|
21719
|
+
}, ja = { left: (t, r) => {
|
|
21713
21720
|
const e = Dc(t, r);
|
|
21714
21721
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
21715
21722
|
}, top: (t, r) => {
|
|
@@ -21725,7 +21732,7 @@ const Ba = /* @__PURE__ */ new Map(), Mc = /* @__PURE__ */ new WeakSet(), Pc = (
|
|
|
21725
21732
|
r === 0 && (r = 1, e = { height: "1px" });
|
|
21726
21733
|
const n = Bc(t, r);
|
|
21727
21734
|
return { value: n, overrideFrom: e, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
|
21728
|
-
} }, W3 = { duration: 333, easing: "ease-in-out" }, G3 = ["left", "top", "width", "height", "opacity", "color", "background"],
|
|
21735
|
+
} }, W3 = { duration: 333, easing: "ease-in-out" }, G3 = ["left", "top", "width", "height", "opacity", "color", "background"], jc = /* @__PURE__ */ new WeakMap();
|
|
21729
21736
|
class K3 extends zd {
|
|
21730
21737
|
constructor(r) {
|
|
21731
21738
|
if (super(r), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, r.type === Ui.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
@@ -21754,7 +21761,7 @@ class K3 extends zd {
|
|
|
21754
21761
|
update(r, [e]) {
|
|
21755
21762
|
var i;
|
|
21756
21763
|
const n = this.u === void 0;
|
|
21757
|
-
return n && (this.u = (i = r.options) == null ? void 0 : i.host, this.u.addController(this), this.u.updateComplete.then((a) => this.t = !0), this.element = r.element,
|
|
21764
|
+
return n && (this.u = (i = r.options) == null ? void 0 : i.host, this.u.addController(this), this.u.updateComplete.then((a) => this.t = !0), this.element = r.element, jc.set(this.element, this)), this.optionsOrCallback = e, (n || typeof e != "function") && this.p(e), this.render(e);
|
|
21758
21765
|
}
|
|
21759
21766
|
p(r) {
|
|
21760
21767
|
r = r ?? {};
|
|
@@ -21764,7 +21771,7 @@ class K3 extends zd {
|
|
|
21764
21771
|
m() {
|
|
21765
21772
|
const r = {}, e = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
|
21766
21773
|
return this.options.properties.forEach((i) => {
|
|
21767
|
-
const a = e[i] ?? (
|
|
21774
|
+
const a = e[i] ?? (ja[i] ? void 0 : n[i]), s = Number(a);
|
|
21768
21775
|
r[i] = isNaN(s) ? a + "" : s;
|
|
21769
21776
|
}), r;
|
|
21770
21777
|
}
|
|
@@ -21836,7 +21843,7 @@ class K3 extends zd {
|
|
|
21836
21843
|
O() {
|
|
21837
21844
|
const r = [];
|
|
21838
21845
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
21839
|
-
const n =
|
|
21846
|
+
const n = jc.get(e);
|
|
21840
21847
|
n && !n.isDisabled() && n && r.push(n);
|
|
21841
21848
|
}
|
|
21842
21849
|
return r;
|
|
@@ -21865,8 +21872,8 @@ class K3 extends zd {
|
|
|
21865
21872
|
const o = {};
|
|
21866
21873
|
for (const l in e) {
|
|
21867
21874
|
const c = r[l], u = e[l];
|
|
21868
|
-
if (l in
|
|
21869
|
-
const d =
|
|
21875
|
+
if (l in ja) {
|
|
21876
|
+
const d = ja[l];
|
|
21870
21877
|
if (c === void 0 || u === void 0) continue;
|
|
21871
21878
|
const h = d(c, u);
|
|
21872
21879
|
h.transform !== void 0 && (o[l] = h.value, s = !0, i.transform = `${i.transform ?? ""} ${h.transform}`, h.overrideFrom !== void 0 && Object.assign(i, h.overrideFrom));
|
|
@@ -21910,7 +21917,7 @@ class J3 extends y3 {
|
|
|
21910
21917
|
getFallbackTranslationsMaps() {
|
|
21911
21918
|
return {
|
|
21912
21919
|
"fr-FR": async () => ({
|
|
21913
|
-
chatbot: (await import("./chatbot-
|
|
21920
|
+
chatbot: (await import("./chatbot-Aqi3JULC.js")).default
|
|
21914
21921
|
}),
|
|
21915
21922
|
"pt-PT": async () => {
|
|
21916
21923
|
throw Error("Not available yet");
|
|
@@ -21956,25 +21963,25 @@ function Z3() {
|
|
|
21956
21963
|
}
|
|
21957
21964
|
var qd = (t) => {
|
|
21958
21965
|
throw TypeError(t);
|
|
21959
|
-
}, Vd = (t, r, e) => r.has(t) || qd("Cannot " + e),
|
|
21966
|
+
}, Vd = (t, r, e) => r.has(t) || qd("Cannot " + e), Ha = (t, r, e) => (Vd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), Ua = (t, r, e) => r.has(t) ? qd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), za = (t, r, e, n) => (Vd(t, r, "write to private field"), r.set(t, e), e), ei, ti, ni;
|
|
21960
21967
|
class Wd {
|
|
21961
21968
|
constructor(r, e) {
|
|
21962
21969
|
Ua(this, ei, Z3()), Ua(this, ti, null), Ua(this, ni, null), this.enableSending = !0, this.host = r, this.host.addController(this), this.channel = new BroadcastChannel(e), this.registerOnMessageHandler();
|
|
21963
21970
|
}
|
|
21964
21971
|
get sourceId() {
|
|
21965
|
-
return
|
|
21972
|
+
return Ha(this, ei);
|
|
21966
21973
|
}
|
|
21967
21974
|
set sourceId(r) {
|
|
21968
21975
|
za(this, ei, r);
|
|
21969
21976
|
}
|
|
21970
21977
|
get onMessage() {
|
|
21971
|
-
return
|
|
21978
|
+
return Ha(this, ti);
|
|
21972
21979
|
}
|
|
21973
21980
|
set onMessage(r) {
|
|
21974
21981
|
za(this, ti, r);
|
|
21975
21982
|
}
|
|
21976
21983
|
get onError() {
|
|
21977
|
-
return
|
|
21984
|
+
return Ha(this, ni);
|
|
21978
21985
|
}
|
|
21979
21986
|
set onError(r) {
|
|
21980
21987
|
za(this, ni, r);
|
|
@@ -22006,7 +22013,7 @@ function Y3() {
|
|
|
22006
22013
|
function so(t) {
|
|
22007
22014
|
return new Promise((r) => setTimeout(r, t));
|
|
22008
22015
|
}
|
|
22009
|
-
const
|
|
22016
|
+
const Hc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), X3 = Re`
|
|
22010
22017
|
:host {
|
|
22011
22018
|
position: relative;
|
|
22012
22019
|
.button-container {
|
|
@@ -22202,7 +22209,7 @@ function oo({ context: t, subscribe: r }) {
|
|
|
22202
22209
|
});
|
|
22203
22210
|
};
|
|
22204
22211
|
}
|
|
22205
|
-
const rw =
|
|
22212
|
+
const rw = Re``, iw = Re`
|
|
22206
22213
|
:host {
|
|
22207
22214
|
--media-size: '${x(C.devices.mobile.max)}px';
|
|
22208
22215
|
--border-color: transparent;
|
|
@@ -22264,7 +22271,7 @@ let xn = class extends Cn {
|
|
|
22264
22271
|
super.connectedCallback();
|
|
22265
22272
|
}
|
|
22266
22273
|
getUrl(t) {
|
|
22267
|
-
return
|
|
22274
|
+
return Ae("chatbot:escalation.url", { context: this.channel, message: t });
|
|
22268
22275
|
}
|
|
22269
22276
|
async handleClick() {
|
|
22270
22277
|
super.handleClick(), await this.escalate();
|
|
@@ -22273,9 +22280,17 @@ let xn = class extends Cn {
|
|
|
22273
22280
|
var e;
|
|
22274
22281
|
let t = "";
|
|
22275
22282
|
if (this.shouldGetSummary && (e = this.messageContext) != null && e.conversationId) {
|
|
22283
|
+
const n = this.messageContext.conversationId;
|
|
22276
22284
|
this.loading = !0;
|
|
22277
22285
|
try {
|
|
22278
|
-
await
|
|
22286
|
+
await new zt({
|
|
22287
|
+
baseURL: this.messageContext.apiUrl,
|
|
22288
|
+
withCredentials: !0,
|
|
22289
|
+
method: "POST"
|
|
22290
|
+
}).chatbotConversationsSummaryGet(n), t = Ae("chatbot:escalation.message", {
|
|
22291
|
+
context: this.channel,
|
|
22292
|
+
conversationId: n
|
|
22293
|
+
}), await so(200);
|
|
22279
22294
|
} catch {
|
|
22280
22295
|
} finally {
|
|
22281
22296
|
this.loading = !1;
|
|
@@ -22298,7 +22313,7 @@ ia([
|
|
|
22298
22313
|
xn = ia([
|
|
22299
22314
|
Be("lr-chatbot-escalation-pill")
|
|
22300
22315
|
], xn);
|
|
22301
|
-
const cw =
|
|
22316
|
+
const cw = Re`
|
|
22302
22317
|
:host {
|
|
22303
22318
|
display: flex;
|
|
22304
22319
|
flex-direction: row;
|
|
@@ -22323,7 +22338,7 @@ ut(
|
|
|
22323
22338
|
<path xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" d="M18.614 7.461C17.6102 10.4284 15.9765 12.0067 14.4345 13.4963C14.2886 13.6372 14.1436 13.7773 14 13.9177V24.4999H24.7192L27.2192 14.5H18.5C18.0955 14.5 17.7309 14.2563 17.5761 13.8827C17.4213 13.509 17.5069 13.0789 17.7929 12.7929C17.944 12.6417 18.8204 11.5802 19.2535 10.3467C19.4663 9.74063 19.5429 9.17414 19.4456 8.69003C19.3629 8.27809 19.1413 7.85319 18.614 7.461ZM12 24.4999V14.5H5V24.4999H12ZM12.5885 12.5C12.7527 12.3387 12.9145 12.1816 13.0737 12.027C14.6038 10.5414 15.893 9.28958 16.732 6.78297C16.9137 6.23995 17.3109 5.79477 17.8159 5.56288C18.3387 5.32285 18.9977 5.30998 19.5733 5.69171C20.6253 6.38928 21.2061 7.2989 21.4064 8.29616C21.5995 9.25741 21.4217 10.2086 21.1405 11.0093C20.9517 11.5472 20.7031 12.0537 20.4453 12.5H27.2192C28.5204 12.5 29.4751 13.7227 29.1595 14.985L26.6595 24.985C26.4369 25.8753 25.637 26.4999 24.7192 26.4999H13H5C3.89543 26.4999 3 25.6045 3 24.4999V14.5C3 13.3954 3.89543 12.5 5 12.5H12.5885Z" fill="currentcolor"/>
|
|
22324
22339
|
`
|
|
22325
22340
|
);
|
|
22326
|
-
const uw =
|
|
22341
|
+
const uw = Re`
|
|
22327
22342
|
:host .button {
|
|
22328
22343
|
padding: 10px;
|
|
22329
22344
|
|
|
@@ -22352,7 +22367,7 @@ var fw = Object.defineProperty, mw = Object.getOwnPropertyDescriptor, Ir = (t, r
|
|
|
22352
22367
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22353
22368
|
return n && i && fw(r, e, i), i;
|
|
22354
22369
|
};
|
|
22355
|
-
let
|
|
22370
|
+
let qt = class extends me {
|
|
22356
22371
|
constructor() {
|
|
22357
22372
|
var t;
|
|
22358
22373
|
super(...arguments), this.upActive = !1, this.downActive = !1, this.score = (t = this.messageContext) == null ? void 0 : t.score;
|
|
@@ -22371,7 +22386,7 @@ let zt = class extends me {
|
|
|
22371
22386
|
var n, i, a;
|
|
22372
22387
|
if (!((n = this.messageContext) != null && n.apiUrl) || !((i = this.messageContext) != null && i.conversationId) || !((a = this.messageContext) != null && a.messageId))
|
|
22373
22388
|
throw Error("Missing information to call API on message rating");
|
|
22374
|
-
const r = new
|
|
22389
|
+
const r = new zt({
|
|
22375
22390
|
baseURL: this.messageContext.apiUrl,
|
|
22376
22391
|
withCredentials: !0,
|
|
22377
22392
|
method: "POST"
|
|
@@ -22406,23 +22421,23 @@ let zt = class extends me {
|
|
|
22406
22421
|
`;
|
|
22407
22422
|
}
|
|
22408
22423
|
};
|
|
22409
|
-
|
|
22424
|
+
qt.styles = [me.styles, cw];
|
|
22410
22425
|
Ir([
|
|
22411
22426
|
oo({ context: ra })
|
|
22412
|
-
],
|
|
22427
|
+
], qt.prototype, "messageContext", 2);
|
|
22413
22428
|
Ir([
|
|
22414
|
-
|
|
22415
|
-
],
|
|
22429
|
+
Xt()
|
|
22430
|
+
], qt.prototype, "upActive", 2);
|
|
22416
22431
|
Ir([
|
|
22417
|
-
|
|
22418
|
-
],
|
|
22432
|
+
Xt()
|
|
22433
|
+
], qt.prototype, "downActive", 2);
|
|
22419
22434
|
Ir([
|
|
22420
|
-
|
|
22421
|
-
],
|
|
22422
|
-
|
|
22435
|
+
Xt()
|
|
22436
|
+
], qt.prototype, "score", 2);
|
|
22437
|
+
qt = Ir([
|
|
22423
22438
|
Be("lr-chatbot-message-rating")
|
|
22424
|
-
],
|
|
22425
|
-
const gw =
|
|
22439
|
+
], qt);
|
|
22440
|
+
const gw = Re`
|
|
22426
22441
|
:host lr-rating-element {
|
|
22427
22442
|
margin-left: -2px;
|
|
22428
22443
|
}
|
|
@@ -22434,7 +22449,7 @@ ut(
|
|
|
22434
22449
|
<path xmlns="http://www.w3.org/2000/svg" d="M9.87758 19L10.8547 19.2127C10.9296 18.8686 10.818 18.5105 10.5609 18.2698L9.87758 19ZM4.00003 13.5L3.88079 12.5071C3.49477 12.5535 3.17061 12.8194 3.04966 13.1889C2.9287 13.5584 3.03288 13.9645 3.31677 14.2302L4.00003 13.5ZM12.3266 12.5L12.4458 13.4929C12.8079 13.4494 13.1176 13.2123 13.254 12.8741L12.3266 12.5ZM15.7551 4L16.6825 3.62592C16.53 3.24768 16.163 3 15.7551 3C15.3473 3 14.9803 3.24768 14.8277 3.62592L15.7551 4ZM19.1837 12.5L18.2563 12.8741C18.3936 13.2145 18.7063 13.4523 19.071 13.4936L19.1837 12.5ZM28 13.5L28.6537 14.2568C28.9543 13.9971 29.0727 13.5842 28.9554 13.2047C28.8382 12.8252 28.5074 12.5511 28.1127 12.5064L28 13.5ZM21.6327 19L20.979 18.2432C20.7017 18.4827 20.5776 18.8547 20.6556 19.2127L21.6327 19ZM23.5919 28L23.0939 28.8672C23.4368 29.0641 23.8635 29.0405 24.1826 28.8069C24.5016 28.5733 24.6531 28.1737 24.569 27.7873L23.5919 28ZM15.7551 23.5L16.2531 22.6328C15.9447 22.4557 15.5655 22.4557 15.2572 22.6328L15.7551 23.5ZM7.9184 28L6.94128 27.7873C6.85718 28.1737 7.00863 28.5733 7.32768 28.8069C7.64674 29.0405 8.07346 29.0641 8.41636 28.8672L7.9184 28ZM10.5609 18.2698L4.6833 12.7698L3.31677 14.2302L9.19432 19.7302L10.5609 18.2698ZM4.11927 14.4929L12.4458 13.4929L12.2073 11.5071L3.88079 12.5071L4.11927 14.4929ZM13.254 12.8741L16.6825 4.37408L14.8277 3.62592L11.3992 12.1259L13.254 12.8741ZM14.8277 4.37408L18.2563 12.8741L20.1111 12.1259L16.6825 3.62592L14.8277 4.37408ZM19.071 13.4936L27.8873 14.4936L28.1127 12.5064L19.2964 11.5064L19.071 13.4936ZM27.3463 12.7432L20.979 18.2432L22.2864 19.7568L28.6537 14.2568L27.3463 12.7432ZM20.6556 19.2127L22.6148 28.2127L24.569 27.7873L22.6098 18.7873L20.6556 19.2127ZM24.0898 27.1328L16.2531 22.6328L15.2572 24.3672L23.0939 28.8672L24.0898 27.1328ZM15.2572 22.6328L7.42044 27.1328L8.41636 28.8672L16.2531 24.3672L15.2572 22.6328ZM8.89552 28.2127L10.8547 19.2127L8.90047 18.7873L6.94128 27.7873L8.89552 28.2127Z" fill="currentcolor"/>
|
|
22435
22450
|
`
|
|
22436
22451
|
);
|
|
22437
|
-
const vw =
|
|
22452
|
+
const vw = Re`
|
|
22438
22453
|
:host lr-icon-star-filled {
|
|
22439
22454
|
display: inline-block;
|
|
22440
22455
|
cursor: default;
|
|
@@ -22544,7 +22559,7 @@ Lr([
|
|
|
22544
22559
|
Z({ type: Boolean })
|
|
22545
22560
|
], At.prototype, "submitOnChange", 2);
|
|
22546
22561
|
Lr([
|
|
22547
|
-
|
|
22562
|
+
Xt()
|
|
22548
22563
|
], At.prototype, "hoveredRating", 2);
|
|
22549
22564
|
At = Lr([
|
|
22550
22565
|
Be("lr-rating")
|
|
@@ -22562,7 +22577,7 @@ let En = class extends me {
|
|
|
22562
22577
|
), this.rating = 0;
|
|
22563
22578
|
}
|
|
22564
22579
|
getConversationId() {
|
|
22565
|
-
return localStorage.getItem(
|
|
22580
|
+
return localStorage.getItem(mn);
|
|
22566
22581
|
}
|
|
22567
22582
|
async handleSubmit(t) {
|
|
22568
22583
|
var r, e;
|
|
@@ -22572,7 +22587,7 @@ let En = class extends me {
|
|
|
22572
22587
|
try {
|
|
22573
22588
|
const n = t.target;
|
|
22574
22589
|
if (n) {
|
|
22575
|
-
const i = new FormData(n), a = new
|
|
22590
|
+
const i = new FormData(n), a = new zt({
|
|
22576
22591
|
baseURL: this.messageContext.apiUrl,
|
|
22577
22592
|
withCredentials: !0,
|
|
22578
22593
|
method: "POST"
|
|
@@ -22586,7 +22601,7 @@ let En = class extends me {
|
|
|
22586
22601
|
action: "addMessage",
|
|
22587
22602
|
payload: {
|
|
22588
22603
|
message: {
|
|
22589
|
-
html:
|
|
22604
|
+
html: Ae("chatbot:otherQuestionOnConversation")
|
|
22590
22605
|
}
|
|
22591
22606
|
}
|
|
22592
22607
|
});
|
|
@@ -22608,13 +22623,13 @@ Mr([
|
|
|
22608
22623
|
oo({ context: ra })
|
|
22609
22624
|
], En.prototype, "messageContext", 2);
|
|
22610
22625
|
Mr([
|
|
22611
|
-
|
|
22626
|
+
Xt()
|
|
22612
22627
|
], En.prototype, "score", 2);
|
|
22613
22628
|
Mr([
|
|
22614
22629
|
Z({ type: String })
|
|
22615
22630
|
], En.prototype, "label", 2);
|
|
22616
22631
|
Mr([
|
|
22617
|
-
|
|
22632
|
+
Xt()
|
|
22618
22633
|
], En.prototype, "rating", 2);
|
|
22619
22634
|
En = Mr([
|
|
22620
22635
|
Be("lr-chatbot-conversation-rating")
|
|
@@ -22645,7 +22660,7 @@ let Je = class extends me {
|
|
|
22645
22660
|
|
|
22646
22661
|
${this.showEscalation ? be`<div class="button-container">
|
|
22647
22662
|
${Q3(
|
|
22648
|
-
|
|
22663
|
+
Ae("chatbot:escalation.suggestions", {
|
|
22649
22664
|
context: Y3() ? "mobile" : ""
|
|
22650
22665
|
})
|
|
22651
22666
|
)}
|
|
@@ -22702,14 +22717,14 @@ var Aw = Object.defineProperty, Tw = Object.getOwnPropertyDescriptor, Jd = (t) =
|
|
|
22702
22717
|
for (var i = n > 1 ? void 0 : n ? Tw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22703
22718
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22704
22719
|
return n && i && Aw(r, e, i), i;
|
|
22705
|
-
}, Zd = (t, r, e) => r.has(t) || Jd("Cannot " + e), Bn = (t, r, e) => (Zd(t, r, "read from private field"), e ? e.call(t) : r.get(t)),
|
|
22706
|
-
const Yd = "lr.chatbot.broadcast_channel." + document.location.hostname,
|
|
22720
|
+
}, Zd = (t, r, e) => r.has(t) || Jd("Cannot " + e), Bn = (t, r, e) => (Zd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), jn = (t, r, e) => r.has(t) ? Jd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), Hn = (t, r, e, n) => (Zd(t, r, "write to private field"), r.set(t, e), e), ri, ii, ai, si, oi;
|
|
22721
|
+
const Yd = "lr.chatbot.broadcast_channel." + document.location.hostname, mn = "lr.chatbot.conversation_id", Un = "lr.chatbot.conversation_state";
|
|
22707
22722
|
let Tt = class extends me {
|
|
22708
22723
|
constructor() {
|
|
22709
22724
|
super({
|
|
22710
22725
|
translationsLoaderGetter: () => new J3(this.apiUrl, this.country, this.language),
|
|
22711
22726
|
fetchAsyncServerTranslations: !0
|
|
22712
|
-
}),
|
|
22727
|
+
}), jn(this, ri, "/bff"), jn(this, ii, !1), jn(this, ai, !1), jn(this, si, !1), jn(this, oi, !1), this._closeClickCount = 0, this._isConversationDone = !1, this._shouldEndConversation = !1, this._broadcastController = new Wd(
|
|
22713
22728
|
this,
|
|
22714
22729
|
Yd
|
|
22715
22730
|
), this._conversationHistoryTask = this.createConversationHistoryTask(), this.registerBroadcastMessages();
|
|
@@ -22718,34 +22733,34 @@ let Tt = class extends me {
|
|
|
22718
22733
|
return Bn(this, ri);
|
|
22719
22734
|
}
|
|
22720
22735
|
set apiUrl(t) {
|
|
22721
|
-
|
|
22736
|
+
Hn(this, ri, t);
|
|
22722
22737
|
}
|
|
22723
22738
|
get opened() {
|
|
22724
22739
|
return Bn(this, ii);
|
|
22725
22740
|
}
|
|
22726
22741
|
set opened(t) {
|
|
22727
|
-
|
|
22742
|
+
Hn(this, ii, t);
|
|
22728
22743
|
}
|
|
22729
22744
|
get minimized() {
|
|
22730
22745
|
return Bn(this, ai);
|
|
22731
22746
|
}
|
|
22732
22747
|
set minimized(t) {
|
|
22733
|
-
|
|
22748
|
+
Hn(this, ai, t);
|
|
22734
22749
|
}
|
|
22735
22750
|
get sticky() {
|
|
22736
22751
|
return Bn(this, si);
|
|
22737
22752
|
}
|
|
22738
22753
|
set sticky(t) {
|
|
22739
|
-
|
|
22754
|
+
Hn(this, si, t);
|
|
22740
22755
|
}
|
|
22741
22756
|
get exitOverlay() {
|
|
22742
22757
|
return Bn(this, oi);
|
|
22743
22758
|
}
|
|
22744
22759
|
set exitOverlay(t) {
|
|
22745
|
-
|
|
22760
|
+
Hn(this, oi, t);
|
|
22746
22761
|
}
|
|
22747
22762
|
getVersion() {
|
|
22748
|
-
return "LR Chatbot - 0.
|
|
22763
|
+
return "LR Chatbot - 0.25.0";
|
|
22749
22764
|
}
|
|
22750
22765
|
async connectedCallback() {
|
|
22751
22766
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -22788,7 +22803,7 @@ let Tt = class extends me {
|
|
|
22788
22803
|
this.deepChat = t, this.deepChat && (this.setDeepChatStyle(), this.setDeepChatTranslations(), this.setChatConnection(), await this.setDeepChatHistory());
|
|
22789
22804
|
}
|
|
22790
22805
|
getCurrentConversationId() {
|
|
22791
|
-
return localStorage.getItem(
|
|
22806
|
+
return localStorage.getItem(mn);
|
|
22792
22807
|
}
|
|
22793
22808
|
createConversationHistoryTask() {
|
|
22794
22809
|
return new vd(this, {
|
|
@@ -22803,13 +22818,13 @@ let Tt = class extends me {
|
|
|
22803
22818
|
const t = this.getCurrentConversationId();
|
|
22804
22819
|
if (t)
|
|
22805
22820
|
try {
|
|
22806
|
-
return await new
|
|
22821
|
+
return await new zt({
|
|
22807
22822
|
baseURL: this.apiUrl,
|
|
22808
22823
|
withCredentials: !0,
|
|
22809
22824
|
method: "GET"
|
|
22810
22825
|
}).chatbotConversationsGet(t);
|
|
22811
22826
|
} catch {
|
|
22812
|
-
console.error("Error while fetching chatbot conversation history"), localStorage.removeItem(
|
|
22827
|
+
console.error("Error while fetching chatbot conversation history"), localStorage.removeItem(mn);
|
|
22813
22828
|
}
|
|
22814
22829
|
}
|
|
22815
22830
|
setInitialMessages() {
|
|
@@ -22818,11 +22833,11 @@ let Tt = class extends me {
|
|
|
22818
22833
|
this.deepChat.history = [
|
|
22819
22834
|
{
|
|
22820
22835
|
role: "lr",
|
|
22821
|
-
html:
|
|
22836
|
+
html: Ae("chatbot:legalInformation")
|
|
22822
22837
|
},
|
|
22823
22838
|
{
|
|
22824
22839
|
role: "ai",
|
|
22825
|
-
html: Dn({ slot:
|
|
22840
|
+
html: Dn({ slot: Ae("chatbot:introMessage") })
|
|
22826
22841
|
}
|
|
22827
22842
|
];
|
|
22828
22843
|
}
|
|
@@ -22851,7 +22866,7 @@ let Tt = class extends me {
|
|
|
22851
22866
|
throw Error("Deep Chat should be initialized at this point");
|
|
22852
22867
|
this.deepChat.textInput = {
|
|
22853
22868
|
...this.deepChat.textInput,
|
|
22854
|
-
placeholder: { text:
|
|
22869
|
+
placeholder: { text: Ae("chatbot:inputPlaceholder") }
|
|
22855
22870
|
};
|
|
22856
22871
|
}
|
|
22857
22872
|
setDeepChatStyle() {
|
|
@@ -22870,7 +22885,7 @@ let Tt = class extends me {
|
|
|
22870
22885
|
}, this.deepChat.auxiliaryStyle = et.auxiliaryStyle;
|
|
22871
22886
|
}
|
|
22872
22887
|
setConversationTimeout() {
|
|
22873
|
-
const t = Number(
|
|
22888
|
+
const t = Number(Ae("chatbot:evaluationTimeout"));
|
|
22874
22889
|
this.conversationTimeout && clearTimeout(this.conversationTimeout), this.conversationTimeout = setTimeout(() => {
|
|
22875
22890
|
if (!this._shouldEndConversation) {
|
|
22876
22891
|
const r = this.getCurrentConversationId();
|
|
@@ -22884,7 +22899,7 @@ let Tt = class extends me {
|
|
|
22884
22899
|
this.deepChat.connect = {
|
|
22885
22900
|
handler: async (t, r) => {
|
|
22886
22901
|
try {
|
|
22887
|
-
const e = t.messages[0].text, n = new
|
|
22902
|
+
const e = t.messages[0].text, n = new zt({
|
|
22888
22903
|
baseURL: this.apiUrl,
|
|
22889
22904
|
withCredentials: !0,
|
|
22890
22905
|
method: "POST"
|
|
@@ -22903,7 +22918,7 @@ let Tt = class extends me {
|
|
|
22903
22918
|
const s = await n.chatbotConversationsPost(i);
|
|
22904
22919
|
if (!s.message)
|
|
22905
22920
|
throw Error();
|
|
22906
|
-
s.conversation_id && a === null && localStorage.setItem(
|
|
22921
|
+
s.conversation_id && a === null && localStorage.setItem(mn, s.conversation_id);
|
|
22907
22922
|
const o = Dn({
|
|
22908
22923
|
apiUrl: this.apiUrl,
|
|
22909
22924
|
conversationId: s.conversation_id ?? void 0,
|
|
@@ -22915,7 +22930,7 @@ let Tt = class extends me {
|
|
|
22915
22930
|
this._shouldEndConversation = s.message_status === "end_conversation", this.setConversationTimeout(), this.observeInputChanges(), r.onResponse({ html: o, role: "ai" });
|
|
22916
22931
|
} catch {
|
|
22917
22932
|
const n = Dn({
|
|
22918
|
-
slot:
|
|
22933
|
+
slot: Ae("chatbot:errorMessage")
|
|
22919
22934
|
});
|
|
22920
22935
|
r.onResponse({
|
|
22921
22936
|
html: n
|
|
@@ -22944,11 +22959,11 @@ let Tt = class extends me {
|
|
|
22944
22959
|
conversationId: t ?? void 0,
|
|
22945
22960
|
apiUrl: this.apiUrl,
|
|
22946
22961
|
showConversationRating: !0,
|
|
22947
|
-
slot:
|
|
22962
|
+
slot: Ae("chatbot:ratingConversation")
|
|
22948
22963
|
})
|
|
22949
22964
|
}), this.conversationTimeout && (clearTimeout(this.conversationTimeout), this.conversationTimeout = void 0);
|
|
22950
22965
|
const e = this.getCurrentConversationId();
|
|
22951
|
-
e && (localStorage.removeItem(
|
|
22966
|
+
e && (localStorage.removeItem(mn), localStorage.removeItem(Un), this._broadcastController.send({
|
|
22952
22967
|
action: "end-conversation",
|
|
22953
22968
|
payload: { conversationId: e }
|
|
22954
22969
|
}));
|
|
@@ -22957,13 +22972,13 @@ let Tt = class extends me {
|
|
|
22957
22972
|
}
|
|
22958
22973
|
disableDeepChatTextInput() {
|
|
22959
22974
|
var t, r, e, n;
|
|
22960
|
-
(t = this.deepChat) != null && t.inputAreaStyle && ((e = (r = this.deepChat.shadowRoot) == null ? void 0 : r.querySelector("#input")) == null || e.setAttribute("style",
|
|
22975
|
+
(t = this.deepChat) != null && t.inputAreaStyle && ((e = (r = this.deepChat.shadowRoot) == null ? void 0 : r.querySelector("#input")) == null || e.setAttribute("style", Hc({ ...et.inputAreaStyle, visibility: "hidden" }))), (n = this.deepChat) == null || n.disableSubmitButton();
|
|
22961
22976
|
}
|
|
22962
22977
|
enableDeepChatTextInput() {
|
|
22963
22978
|
var t, r, e, n, i;
|
|
22964
22979
|
(t = this.deepChat) != null && t.inputAreaStyle && (r = this.deepChat) != null && r.inputAreaStyle && ((n = (e = this.deepChat.shadowRoot) == null ? void 0 : e.querySelector("#input")) == null || n.setAttribute(
|
|
22965
22980
|
"style",
|
|
22966
|
-
|
|
22981
|
+
Hc({ ...et.inputAreaStyle, visibility: "visible" })
|
|
22967
22982
|
)), (i = this.deepChat) == null || i.disableSubmitButton(!1);
|
|
22968
22983
|
}
|
|
22969
22984
|
handleClosure() {
|
|
@@ -22987,7 +23002,7 @@ let Tt = class extends me {
|
|
|
22987
23002
|
}
|
|
22988
23003
|
}
|
|
22989
23004
|
close() {
|
|
22990
|
-
(this.opened || this.minimized) && (localStorage.removeItem(
|
|
23005
|
+
(this.opened || this.minimized) && (localStorage.removeItem(mn), localStorage.removeItem(Un), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this.clearConversation(), this._broadcastController.send({ action: "close" }));
|
|
22991
23006
|
}
|
|
22992
23007
|
renderExitOverlay() {
|
|
22993
23008
|
return be`
|
|
@@ -22999,12 +23014,12 @@ let Tt = class extends me {
|
|
|
22999
23014
|
id="exit-overlay"
|
|
23000
23015
|
aria-hidden=${!this.exitOverlay}
|
|
23001
23016
|
>
|
|
23002
|
-
<p>${
|
|
23017
|
+
<p>${Ae("chatbot:exit.text")}</p>
|
|
23003
23018
|
<div>
|
|
23004
23019
|
<lr-button @click=${this.handleReturnConversation} variant="secondary" size="small"
|
|
23005
|
-
>${
|
|
23020
|
+
>${Ae("chatbot:returnToConversation")}</lr-button
|
|
23006
23021
|
>
|
|
23007
|
-
<lr-button size="small" @click=${this.close}>${
|
|
23022
|
+
<lr-button size="small" @click=${this.close}>${Ae("chatbot:exit.button")}</lr-button>
|
|
23008
23023
|
</div>
|
|
23009
23024
|
</div>
|
|
23010
23025
|
`;
|
|
@@ -23022,7 +23037,7 @@ let Tt = class extends me {
|
|
|
23022
23037
|
${Ur()}
|
|
23023
23038
|
>
|
|
23024
23039
|
<div id="chat-wrapper-menu" part="menu">
|
|
23025
|
-
<span id="chat-wrapper-menu-title">${
|
|
23040
|
+
<span id="chat-wrapper-menu-title">${Ae("chatbot:title")}</span>
|
|
23026
23041
|
<div id="chat-wrapper-menu-button-container">
|
|
23027
23042
|
<lr-icon-button
|
|
23028
23043
|
size="small"
|
|
@@ -23066,7 +23081,7 @@ let Tt = class extends me {
|
|
|
23066
23081
|
id="chat-minimized"
|
|
23067
23082
|
@click=${this.open}
|
|
23068
23083
|
aria-hidden=${!this.minimized}
|
|
23069
|
-
aria-label="${
|
|
23084
|
+
aria-label="${Ae("chatbot:minimized.ariaLabel")}"
|
|
23070
23085
|
aria-expanded=${!this.minimized}
|
|
23071
23086
|
part="wrapper-minimized"
|
|
23072
23087
|
${Ur({
|
|
@@ -23075,7 +23090,7 @@ let Tt = class extends me {
|
|
|
23075
23090
|
})}
|
|
23076
23091
|
>
|
|
23077
23092
|
<lr-icon-chat size="medium"></lr-icon-chat>
|
|
23078
|
-
<p id="chat-minimized-text">${
|
|
23093
|
+
<p id="chat-minimized-text">${Ae("chatbot:minimized.label")}</p>
|
|
23079
23094
|
</div>
|
|
23080
23095
|
`;
|
|
23081
23096
|
}
|
|
@@ -23110,6 +23125,6 @@ Tt = In([
|
|
|
23110
23125
|
export {
|
|
23111
23126
|
Tt as Chatbot,
|
|
23112
23127
|
Yd as LR_CHATBOT_BROADCAST_CHANNEL_ID,
|
|
23113
|
-
|
|
23128
|
+
mn as LR_CHATBOT_LOCALSTORAGE_CONVERSATION_ID
|
|
23114
23129
|
};
|
|
23115
23130
|
//# sourceMappingURL=index.js.map
|