lr-chatbot 0.13.9 → 0.13.11
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-p1zG6jXq.js → chatbot-C-z9vrZB.js} +2 -2
- package/chatbot-C-z9vrZB.js.map +1 -0
- package/index.js +876 -845
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/chatbot-p1zG6jXq.js.map +0 -1
package/index.js
CHANGED
|
@@ -134,11 +134,11 @@ function m() {
|
|
|
134
134
|
m = function() {
|
|
135
135
|
return r;
|
|
136
136
|
};
|
|
137
|
-
var n, r = {}, e = Object.prototype, t = e.hasOwnProperty, i = Object.defineProperty || function(F,
|
|
138
|
-
F[
|
|
137
|
+
var n, r = {}, e = Object.prototype, t = e.hasOwnProperty, i = Object.defineProperty || function(F, A, P) {
|
|
138
|
+
F[A] = P.value;
|
|
139
139
|
}, a = typeof Symbol == "function" ? Symbol : {}, o = a.iterator || "@@iterator", s = a.asyncIterator || "@@asyncIterator", l = a.toStringTag || "@@toStringTag";
|
|
140
|
-
function c(F,
|
|
141
|
-
return Object.defineProperty(F,
|
|
140
|
+
function c(F, A, P) {
|
|
141
|
+
return Object.defineProperty(F, A, { value: P, enumerable: !0, configurable: !0, writable: !0 }), F[A];
|
|
142
142
|
}
|
|
143
143
|
try {
|
|
144
144
|
c({}, "");
|
|
@@ -147,13 +147,13 @@ function m() {
|
|
|
147
147
|
return P[$] = W;
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
function u(F,
|
|
151
|
-
var W =
|
|
150
|
+
function u(F, A, P, $) {
|
|
151
|
+
var W = A && A.prototype instanceof v ? A : v, B = Object.create(W.prototype), ne = new Z($ || []);
|
|
152
152
|
return i(B, "_invoke", { value: ae(F, P, ne) }), B;
|
|
153
153
|
}
|
|
154
|
-
function d(F,
|
|
154
|
+
function d(F, A, P) {
|
|
155
155
|
try {
|
|
156
|
-
return { type: "normal", arg: F.call(
|
|
156
|
+
return { type: "normal", arg: F.call(A, P) };
|
|
157
157
|
} catch ($) {
|
|
158
158
|
return { type: "throw", arg: $ };
|
|
159
159
|
}
|
|
@@ -174,22 +174,22 @@ function m() {
|
|
|
174
174
|
j && j !== e && t.call(j, o) && (N = j);
|
|
175
175
|
var te = S.prototype = v.prototype = Object.create(N);
|
|
176
176
|
function q(F) {
|
|
177
|
-
["next", "throw", "return"].forEach(function(
|
|
178
|
-
c(F,
|
|
179
|
-
return this._invoke(
|
|
177
|
+
["next", "throw", "return"].forEach(function(A) {
|
|
178
|
+
c(F, A, function(P) {
|
|
179
|
+
return this._invoke(A, P);
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
function ue(F,
|
|
183
|
+
function ue(F, A) {
|
|
184
184
|
function P(W, B, ne, se) {
|
|
185
185
|
var me = d(F[W], F, B);
|
|
186
186
|
if (me.type !== "throw") {
|
|
187
|
-
var Ue = me.arg,
|
|
188
|
-
return
|
|
187
|
+
var Ue = me.arg, xe = Ue.value;
|
|
188
|
+
return xe && H(xe) == "object" && t.call(xe, "__await") ? A.resolve(xe.__await).then(function(Me) {
|
|
189
189
|
P("next", Me, ne, se);
|
|
190
190
|
}, function(Me) {
|
|
191
191
|
P("throw", Me, ne, se);
|
|
192
|
-
}) :
|
|
192
|
+
}) : A.resolve(xe).then(function(Me) {
|
|
193
193
|
Ue.value = Me, ne(Ue);
|
|
194
194
|
}, function(Me) {
|
|
195
195
|
return P("throw", Me, ne, se);
|
|
@@ -200,14 +200,14 @@ function m() {
|
|
|
200
200
|
var $;
|
|
201
201
|
i(this, "_invoke", { value: function(B, ne) {
|
|
202
202
|
function se() {
|
|
203
|
-
return new
|
|
203
|
+
return new A(function(me, Ue) {
|
|
204
204
|
P(B, ne, me, Ue);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
return $ = $ ? $.then(se, se) : se();
|
|
208
208
|
} });
|
|
209
209
|
}
|
|
210
|
-
function ae(F,
|
|
210
|
+
function ae(F, A, P) {
|
|
211
211
|
var $ = p;
|
|
212
212
|
return function(W, B) {
|
|
213
213
|
if ($ === f) throw Error("Generator is already running");
|
|
@@ -230,7 +230,7 @@ function m() {
|
|
|
230
230
|
P.dispatchException(P.arg);
|
|
231
231
|
} else P.method === "return" && P.abrupt("return", P.arg);
|
|
232
232
|
$ = f;
|
|
233
|
-
var me = d(F,
|
|
233
|
+
var me = d(F, A, P);
|
|
234
234
|
if (me.type === "normal") {
|
|
235
235
|
if ($ = P.done ? g : h, me.arg === y) continue;
|
|
236
236
|
return { value: me.arg, done: P.done };
|
|
@@ -239,29 +239,29 @@ function m() {
|
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function Ce(F,
|
|
243
|
-
var P =
|
|
244
|
-
if ($ === n) return
|
|
245
|
-
var W = d($, F.iterator,
|
|
246
|
-
if (W.type === "throw") return
|
|
242
|
+
function Ce(F, A) {
|
|
243
|
+
var P = A.method, $ = F.iterator[P];
|
|
244
|
+
if ($ === n) return A.delegate = null, P === "throw" && F.iterator.return && (A.method = "return", A.arg = n, Ce(F, A), A.method === "throw") || P !== "return" && (A.method = "throw", A.arg = new TypeError("The iterator does not provide a '" + P + "' method")), y;
|
|
245
|
+
var W = d($, F.iterator, A.arg);
|
|
246
|
+
if (W.type === "throw") return A.method = "throw", A.arg = W.arg, A.delegate = null, y;
|
|
247
247
|
var B = W.arg;
|
|
248
|
-
return B ? B.done ? (
|
|
248
|
+
return B ? B.done ? (A[F.resultName] = B.value, A.next = F.nextLoc, A.method !== "return" && (A.method = "next", A.arg = n), A.delegate = null, y) : B : (A.method = "throw", A.arg = new TypeError("iterator result is not an object"), A.delegate = null, y);
|
|
249
249
|
}
|
|
250
250
|
function G(F) {
|
|
251
|
-
var
|
|
252
|
-
1 in F && (
|
|
251
|
+
var A = { tryLoc: F[0] };
|
|
252
|
+
1 in F && (A.catchLoc = F[1]), 2 in F && (A.finallyLoc = F[2], A.afterLoc = F[3]), this.tryEntries.push(A);
|
|
253
253
|
}
|
|
254
254
|
function fe(F) {
|
|
255
|
-
var
|
|
256
|
-
|
|
255
|
+
var A = F.completion || {};
|
|
256
|
+
A.type = "normal", delete A.arg, F.completion = A;
|
|
257
257
|
}
|
|
258
258
|
function Z(F) {
|
|
259
259
|
this.tryEntries = [{ tryLoc: "root" }], F.forEach(G, this), this.reset(!0);
|
|
260
260
|
}
|
|
261
261
|
function Ie(F) {
|
|
262
262
|
if (F || F === "") {
|
|
263
|
-
var
|
|
264
|
-
if (
|
|
263
|
+
var A = F[o];
|
|
264
|
+
if (A) return A.call(F);
|
|
265
265
|
if (typeof F.next == "function") return F;
|
|
266
266
|
if (!isNaN(F.length)) {
|
|
267
267
|
var P = -1, $ = function W() {
|
|
@@ -274,18 +274,18 @@ function m() {
|
|
|
274
274
|
throw new TypeError(H(F) + " is not iterable");
|
|
275
275
|
}
|
|
276
276
|
return b.prototype = S, i(te, "constructor", { value: S, configurable: !0 }), i(S, "constructor", { value: b, configurable: !0 }), b.displayName = c(S, l, "GeneratorFunction"), r.isGeneratorFunction = function(F) {
|
|
277
|
-
var
|
|
278
|
-
return !!
|
|
277
|
+
var A = typeof F == "function" && F.constructor;
|
|
278
|
+
return !!A && (A === b || (A.displayName || A.name) === "GeneratorFunction");
|
|
279
279
|
}, r.mark = function(F) {
|
|
280
280
|
return Object.setPrototypeOf ? Object.setPrototypeOf(F, S) : (F.__proto__ = S, c(F, l, "GeneratorFunction")), F.prototype = Object.create(te), F;
|
|
281
281
|
}, r.awrap = function(F) {
|
|
282
282
|
return { __await: F };
|
|
283
283
|
}, q(ue.prototype), c(ue.prototype, s, function() {
|
|
284
284
|
return this;
|
|
285
|
-
}), r.AsyncIterator = ue, r.async = function(F,
|
|
285
|
+
}), r.AsyncIterator = ue, r.async = function(F, A, P, $, W) {
|
|
286
286
|
W === void 0 && (W = Promise);
|
|
287
|
-
var B = new ue(u(F,
|
|
288
|
-
return r.isGeneratorFunction(
|
|
287
|
+
var B = new ue(u(F, A, P, $), W);
|
|
288
|
+
return r.isGeneratorFunction(A) ? B : B.next().then(function(ne) {
|
|
289
289
|
return ne.done ? ne.value : B.next();
|
|
290
290
|
});
|
|
291
291
|
}, q(te), c(te, l, "Generator"), c(te, o, function() {
|
|
@@ -293,27 +293,27 @@ function m() {
|
|
|
293
293
|
}), c(te, "toString", function() {
|
|
294
294
|
return "[object Generator]";
|
|
295
295
|
}), r.keys = function(F) {
|
|
296
|
-
var
|
|
297
|
-
for (var $ in
|
|
296
|
+
var A = Object(F), P = [];
|
|
297
|
+
for (var $ in A) P.push($);
|
|
298
298
|
return P.reverse(), function W() {
|
|
299
299
|
for (; P.length; ) {
|
|
300
300
|
var B = P.pop();
|
|
301
|
-
if (B in
|
|
301
|
+
if (B in A) return W.value = B, W.done = !1, W;
|
|
302
302
|
}
|
|
303
303
|
return W.done = !0, W;
|
|
304
304
|
};
|
|
305
|
-
}, r.values = Ie, Z.prototype = { constructor: Z, reset: function(
|
|
306
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(fe), !
|
|
305
|
+
}, r.values = Ie, Z.prototype = { constructor: Z, reset: function(A) {
|
|
306
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(fe), !A) for (var P in this) P.charAt(0) === "t" && t.call(this, P) && !isNaN(+P.slice(1)) && (this[P] = n);
|
|
307
307
|
}, stop: function() {
|
|
308
308
|
this.done = !0;
|
|
309
|
-
var
|
|
310
|
-
if (
|
|
309
|
+
var A = this.tryEntries[0].completion;
|
|
310
|
+
if (A.type === "throw") throw A.arg;
|
|
311
311
|
return this.rval;
|
|
312
|
-
}, dispatchException: function(
|
|
313
|
-
if (this.done) throw
|
|
312
|
+
}, dispatchException: function(A) {
|
|
313
|
+
if (this.done) throw A;
|
|
314
314
|
var P = this;
|
|
315
|
-
function $(Ue,
|
|
316
|
-
return ne.type = "throw", ne.arg =
|
|
315
|
+
function $(Ue, xe) {
|
|
316
|
+
return ne.type = "throw", ne.arg = A, P.next = Ue, xe && (P.method = "next", P.arg = n), !!xe;
|
|
317
317
|
}
|
|
318
318
|
for (var W = this.tryEntries.length - 1; W >= 0; --W) {
|
|
319
319
|
var B = this.tryEntries[W], ne = B.completion;
|
|
@@ -331,7 +331,7 @@ function m() {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
}, abrupt: function(
|
|
334
|
+
}, abrupt: function(A, P) {
|
|
335
335
|
for (var $ = this.tryEntries.length - 1; $ >= 0; --$) {
|
|
336
336
|
var W = this.tryEntries[$];
|
|
337
337
|
if (W.tryLoc <= this.prev && t.call(W, "finallyLoc") && this.prev < W.finallyLoc) {
|
|
@@ -339,21 +339,21 @@ function m() {
|
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
B && (
|
|
342
|
+
B && (A === "break" || A === "continue") && B.tryLoc <= P && P <= B.finallyLoc && (B = null);
|
|
343
343
|
var ne = B ? B.completion : {};
|
|
344
|
-
return ne.type =
|
|
345
|
-
}, complete: function(
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
348
|
-
}, finish: function(
|
|
344
|
+
return ne.type = A, ne.arg = P, B ? (this.method = "next", this.next = B.finallyLoc, y) : this.complete(ne);
|
|
345
|
+
}, complete: function(A, P) {
|
|
346
|
+
if (A.type === "throw") throw A.arg;
|
|
347
|
+
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;
|
|
348
|
+
}, finish: function(A) {
|
|
349
349
|
for (var P = this.tryEntries.length - 1; P >= 0; --P) {
|
|
350
350
|
var $ = this.tryEntries[P];
|
|
351
|
-
if ($.finallyLoc ===
|
|
351
|
+
if ($.finallyLoc === A) return this.complete($.completion, $.afterLoc), fe($), y;
|
|
352
352
|
}
|
|
353
|
-
}, catch: function(
|
|
353
|
+
}, catch: function(A) {
|
|
354
354
|
for (var P = this.tryEntries.length - 1; P >= 0; --P) {
|
|
355
355
|
var $ = this.tryEntries[P];
|
|
356
|
-
if ($.tryLoc ===
|
|
356
|
+
if ($.tryLoc === A) {
|
|
357
357
|
var W = $.completion;
|
|
358
358
|
if (W.type === "throw") {
|
|
359
359
|
var B = W.arg;
|
|
@@ -363,8 +363,8 @@ function m() {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
throw Error("illegal catch attempt");
|
|
366
|
-
}, delegateYield: function(
|
|
367
|
-
return this.delegate = { iterator: Ie(
|
|
366
|
+
}, delegateYield: function(A, P, $) {
|
|
367
|
+
return this.delegate = { iterator: Ie(A), resultName: P, nextLoc: $ }, this.method === "next" && (this.arg = n), y;
|
|
368
368
|
} }, r;
|
|
369
369
|
}
|
|
370
370
|
function no(n, r, e, t, i, a, o) {
|
|
@@ -423,7 +423,7 @@ function H(n) {
|
|
|
423
423
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
424
424
|
}, H(n);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function w(n, r) {
|
|
427
427
|
if (!(n instanceof r))
|
|
428
428
|
throw new TypeError("Cannot call a class as a function");
|
|
429
429
|
}
|
|
@@ -433,7 +433,7 @@ function io(n, r) {
|
|
|
433
433
|
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(n, yl(t.key), t);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function k(n, r, e) {
|
|
437
437
|
return r && io(n.prototype, r), e && io(n, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
438
438
|
}
|
|
439
439
|
function yl(n) {
|
|
@@ -452,9 +452,9 @@ function fu(n, r) {
|
|
|
452
452
|
}
|
|
453
453
|
var mu = /* @__PURE__ */ function() {
|
|
454
454
|
function n() {
|
|
455
|
-
|
|
455
|
+
w(this, n);
|
|
456
456
|
}
|
|
457
|
-
return
|
|
457
|
+
return k(n, null, [{
|
|
458
458
|
key: "render",
|
|
459
459
|
value: function(e, t) {
|
|
460
460
|
var i = document.createElement("div");
|
|
@@ -463,9 +463,9 @@ var mu = /* @__PURE__ */ function() {
|
|
|
463
463
|
}]);
|
|
464
464
|
}(), gu = /* @__PURE__ */ function() {
|
|
465
465
|
function n() {
|
|
466
|
-
|
|
466
|
+
w(this, n);
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return k(n, null, [{
|
|
469
469
|
key: "onLoad",
|
|
470
470
|
value: function(e) {
|
|
471
471
|
e.innerHTML = '<div id="large-loading-ring"></div>';
|
|
@@ -489,9 +489,9 @@ var mu = /* @__PURE__ */ function() {
|
|
|
489
489
|
}]);
|
|
490
490
|
}(), ye = /* @__PURE__ */ function() {
|
|
491
491
|
function n() {
|
|
492
|
-
|
|
492
|
+
w(this, n);
|
|
493
493
|
}
|
|
494
|
-
return
|
|
494
|
+
return k(n, null, [{
|
|
495
495
|
key: "unsetStyle",
|
|
496
496
|
value: function(e, t) {
|
|
497
497
|
var i = Object.keys(t).reduce(function(a, o) {
|
|
@@ -550,9 +550,9 @@ var mu = /* @__PURE__ */ function() {
|
|
|
550
550
|
}]);
|
|
551
551
|
}(), na = /* @__PURE__ */ function() {
|
|
552
552
|
function n() {
|
|
553
|
-
|
|
553
|
+
w(this, n);
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return k(n, null, [{
|
|
556
556
|
key: "attemptAppendStyleSheetToHead",
|
|
557
557
|
value: function(e) {
|
|
558
558
|
if (!(e.fontFamily && e.fontFamily !== n.DEFAULT_FONT_FAMILY)) {
|
|
@@ -568,11 +568,11 @@ var mu = /* @__PURE__ */ function() {
|
|
|
568
568
|
}]);
|
|
569
569
|
}();
|
|
570
570
|
na.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", na.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
|
|
571
|
-
var bl = na,
|
|
571
|
+
var bl = na, wl = /* @__PURE__ */ function() {
|
|
572
572
|
function n() {
|
|
573
|
-
|
|
573
|
+
w(this, n);
|
|
574
574
|
}
|
|
575
|
-
return
|
|
575
|
+
return k(n, null, [{
|
|
576
576
|
key: "apply",
|
|
577
577
|
value: function(e, t) {
|
|
578
578
|
if (t) try {
|
|
@@ -600,7 +600,7 @@ var bl = na, kl = /* @__PURE__ */ function() {
|
|
|
600
600
|
}
|
|
601
601
|
}]);
|
|
602
602
|
}();
|
|
603
|
-
|
|
603
|
+
wl.DEFAULT_COMPONENT_STYLE = {
|
|
604
604
|
height: "350px",
|
|
605
605
|
width: "320px",
|
|
606
606
|
border: "1px solid #cacaca",
|
|
@@ -614,15 +614,15 @@ kl.DEFAULT_COMPONENT_STYLE = {
|
|
|
614
614
|
// this is also causing the chat to squeeze when there is no space
|
|
615
615
|
overflow: "hidden"
|
|
616
616
|
};
|
|
617
|
-
var yi =
|
|
617
|
+
var yi = wl, ve = /* @__PURE__ */ function(n) {
|
|
618
618
|
return n.ESCAPE = "Escape", n.ENTER = "Enter", n.TAB = "Tab", n.ARROW_UP = "ArrowUp", n.ARROW_DOWN = "ArrowDown", n.ARROW_RIGHT = "ArrowRight", n.ARROW_LEFT = "ArrowLeft", n.BACKSPACE = "Backspace", n.DELETE = "Delete", n.META = "Meta", n.CONTROL = "Control", n;
|
|
619
|
-
}(ve || {}), Xn, Jt = (Xn = /* @__PURE__ */
|
|
620
|
-
|
|
621
|
-
}), Xn.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Xn.IS_CHROMIUM = window.chrome, Xn),
|
|
619
|
+
}(ve || {}), Xn, Jt = (Xn = /* @__PURE__ */ k(function n() {
|
|
620
|
+
w(this, n);
|
|
621
|
+
}), Xn.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Xn.IS_CHROMIUM = window.chrome, Xn), kl = /* @__PURE__ */ function() {
|
|
622
622
|
function n() {
|
|
623
|
-
|
|
623
|
+
w(this, n);
|
|
624
624
|
}
|
|
625
|
-
return
|
|
625
|
+
return k(n, null, [{
|
|
626
626
|
key: "add",
|
|
627
627
|
value: (
|
|
628
628
|
// prettier-ignore
|
|
@@ -654,12 +654,12 @@ var yi = kl, ve = /* @__PURE__ */ function(n) {
|
|
|
654
654
|
}
|
|
655
655
|
}]);
|
|
656
656
|
}();
|
|
657
|
-
|
|
658
|
-
var vu =
|
|
657
|
+
kl.PERMITTED_KEYS = /* @__PURE__ */ new Set([ve.BACKSPACE, ve.DELETE, ve.ARROW_RIGHT, ve.ARROW_LEFT, ve.ARROW_DOWN, ve.ARROW_UP, ve.META, ve.CONTROL, ve.ENTER]);
|
|
658
|
+
var vu = kl, yu = /* @__PURE__ */ function() {
|
|
659
659
|
function n() {
|
|
660
|
-
|
|
660
|
+
w(this, n);
|
|
661
661
|
}
|
|
662
|
-
return
|
|
662
|
+
return k(n, null, [{
|
|
663
663
|
key: "sanitizePastedTextContent",
|
|
664
664
|
value: function(e) {
|
|
665
665
|
var t, i;
|
|
@@ -671,14 +671,14 @@ var vu = wl, yu = /* @__PURE__ */ function() {
|
|
|
671
671
|
}(), ra = /* @__PURE__ */ function() {
|
|
672
672
|
function n(r, e, t) {
|
|
673
673
|
var i = this;
|
|
674
|
-
|
|
674
|
+
w(this, n);
|
|
675
675
|
var a, o, s, l = n.processConfig(e, r.textInput);
|
|
676
676
|
this.elementRef = n.createContainerElement((a = l == null ? void 0 : l.styles) == null ? void 0 : a.container), this.inputElementRef = this.createInputElement(l), this._config = l, this.elementRef.appendChild(this.inputElementRef), r.setPlaceholderText = this.setPlaceholderText.bind(this, r), r.setPlaceholderText(((s = (o = r.textInput) == null ? void 0 : o.placeholder) == null ? void 0 : s.text) || "Ask me anything!"), setTimeout(function() {
|
|
677
677
|
var c;
|
|
678
678
|
vu.add(i.inputElementRef, t, (c = r.textInput) == null ? void 0 : c.characterLimit, r._validationHandler);
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
|
-
return
|
|
681
|
+
return k(n, [{
|
|
682
682
|
key: "createInputElement",
|
|
683
683
|
value: function(e) {
|
|
684
684
|
var t, i, a = document.createElement("div");
|
|
@@ -768,9 +768,9 @@ var vu = wl, yu = /* @__PURE__ */ function() {
|
|
|
768
768
|
ra.TEXT_INPUT_ID = "text-input", ra.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
|
|
769
769
|
var Ln = ra, Sl = /* @__PURE__ */ function() {
|
|
770
770
|
function n() {
|
|
771
|
-
|
|
771
|
+
w(this, n);
|
|
772
772
|
}
|
|
773
|
-
return
|
|
773
|
+
return k(n, null, [{
|
|
774
774
|
key: "focusEndOfInput",
|
|
775
775
|
value: function(e) {
|
|
776
776
|
var t = document.createRange();
|
|
@@ -799,11 +799,11 @@ function Ca(n, r, e, t) {
|
|
|
799
799
|
`) : "";
|
|
800
800
|
return i + a;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function wu(n, r, e, t) {
|
|
803
803
|
return "".concat(Ca(n, r, e, t), "Make sure the ").concat(r, ` message is using the Response format: https://deepchat.dev/docs/connect/#Response
|
|
804
804
|
You can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`);
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function ku(n, r, e) {
|
|
807
807
|
var t = "response";
|
|
808
808
|
return "".concat(Ca(n, t, r, e), "Make sure the ").concat(t, ' message is using the {text: string} format, e.g: {text: "Model Response"}');
|
|
809
809
|
}
|
|
@@ -815,18 +815,18 @@ var oo = `Make sure the events are using {text: string} or {html: string} format
|
|
|
815
815
|
You can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`, pe = {
|
|
816
816
|
INVALID_KEY: "Invalid API Key",
|
|
817
817
|
CONNECTION_FAILED: "Failed to connect",
|
|
818
|
-
INVALID_RESPONSE:
|
|
818
|
+
INVALID_RESPONSE: wu,
|
|
819
819
|
INVALID_MODEL_REQUEST: Su,
|
|
820
|
-
INVALID_MODEL_RESPONSE:
|
|
820
|
+
INVALID_MODEL_RESPONSE: ku,
|
|
821
821
|
INVALID_STREAM_EVENT: oo,
|
|
822
822
|
INVALID_STREAM_EVENT_MIX: "Cannot mix {text: string} and {html: string} responses.",
|
|
823
823
|
NO_VALID_STREAM_EVENTS_SENT: `No valid stream events were sent.
|
|
824
824
|
`.concat(oo)
|
|
825
825
|
}, _l = /* @__PURE__ */ function() {
|
|
826
826
|
function n() {
|
|
827
|
-
|
|
827
|
+
w(this, n);
|
|
828
828
|
}
|
|
829
|
-
return
|
|
829
|
+
return k(n, null, [{
|
|
830
830
|
key: "addElements",
|
|
831
831
|
value: function(e) {
|
|
832
832
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
@@ -862,9 +862,9 @@ You can also augment them using the responseInterceptor property: https://deepch
|
|
|
862
862
|
_l.CODE_SNIPPET_GENERATION_JUMP = 0.5;
|
|
863
863
|
var Re = _l, Cl = /* @__PURE__ */ function() {
|
|
864
864
|
function n() {
|
|
865
|
-
|
|
865
|
+
w(this, n);
|
|
866
866
|
}
|
|
867
|
-
return
|
|
867
|
+
return k(n, null, [{
|
|
868
868
|
key: "speak",
|
|
869
869
|
value: function(e, t) {
|
|
870
870
|
if (window.SpeechSynthesisUtterance) {
|
|
@@ -892,9 +892,9 @@ var Re = _l, Cl = /* @__PURE__ */ function() {
|
|
|
892
892
|
Cl.LOAD_VOICES_MS = 200;
|
|
893
893
|
var lr = Cl, De = /* @__PURE__ */ function() {
|
|
894
894
|
function n() {
|
|
895
|
-
|
|
895
|
+
w(this, n);
|
|
896
896
|
}
|
|
897
|
-
return
|
|
897
|
+
return k(n, null, [{
|
|
898
898
|
key: "checkForContainerStyles",
|
|
899
899
|
value: function(e, t) {
|
|
900
900
|
var i = e.containerStyle;
|
|
@@ -964,11 +964,11 @@ var lr = Cl, De = /* @__PURE__ */ function() {
|
|
|
964
964
|
t.request && (console.error("The request property in file configuration is deprecated since version 2.0.0."), console.error("Please use the connect property instead: https://deepchat.dev/docs/files"), t.connect || (t.connect = t.request));
|
|
965
965
|
}
|
|
966
966
|
}]);
|
|
967
|
-
}(), _u = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2032%2032'%20xml:space='preserve'%3e%3cpath%20d='M23,30.36H9c-2.404,0-4.36-1.956-4.36-4.36V15c0-2.404,1.956-4.36,4.36-4.36h3.659%20c0.167-1.566,1.415-2.813,2.981-2.981V5.333c-1.131-0.174-2-1.154-2-2.333c0-1.301,1.059-2.36,2.36-2.36%20c1.302,0,2.36,1.059,2.36,2.36c0,1.179-0.869,2.159-2,2.333V7.66c1.566,0.167,2.814,1.415,2.981,2.981H23%20c2.404,0,4.36,1.956,4.36,4.36v11C27.36,28.404,25.404,30.36,23,30.36z%20M9,11.36c-2.007,0-3.64,1.633-3.64,3.64v11%20c0,2.007,1.633,3.64,3.64,3.64h14c2.007,0,3.64-1.633,3.64-3.64V15c0-2.007-1.633-3.64-3.64-3.64H9z%20M13.384,10.64h5.231%20C18.439,9.354,17.334,8.36,16,8.36C14.667,8.36,13.561,9.354,13.384,10.64z%20M16,1.36c-0.904,0-1.64,0.736-1.64,1.64%20S15.096,4.64,16,4.64c0.904,0,1.64-0.736,1.64-1.64S16.904,1.36,16,1.36z%20M20,27.36h-8c-1.301,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36h8c1.302,0,2.36,1.059,2.36,2.36S21.302,27.36,20,27.36z%20M12,23.36c-0.904,0-1.64,0.735-1.64,1.64%20s0.736,1.64,1.64,1.64h8c0.904,0,1.64-0.735,1.64-1.64s-0.735-1.64-1.64-1.64H12z%20M31,23.86h-2c-0.199,0-0.36-0.161-0.36-0.36V15%20c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5C31.36,23.699,31.199,23.86,31,23.86z%20M29.36,23.14h1.279v-7.78%20H29.36V23.14z%20M3,23.86H1c-0.199,0-0.36-0.161-0.36-0.36V15c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5%20C3.36,23.699,3.199,23.86,3,23.86z%20M1.36,23.14h1.28v-7.78H1.36V23.14z%20M20,20.36c-1.302,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36s2.36,1.059,2.36,2.36C22.36,19.302,21.302,20.36,20,20.36z%20M20,16.36c-0.904,0-1.64,0.736-1.64,1.64%20s0.735,1.64,1.64,1.64s1.64-0.735,1.64-1.64S20.904,16.36,20,16.36z%20M12,20.36c-1.301,0-2.36-1.059-2.36-2.36s1.059-2.36,2.36-2.36%20s2.36,1.059,2.36,2.36C14.36,19.302,13.301,20.36,12,20.36z%20M12,16.36c-0.904,0-1.64,0.736-1.64,1.64s0.736,1.64,1.64,1.64%20s1.64-0.735,1.64-1.64S12.904,16.36,12,16.36z'/%3e%3crect%20style='fill:none;'%20width='32'%20height='32'/%3e%3c/svg%3e", Cu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////9vX18vLy/Pz86enp4+Li2tnZ1tbWzczM+fn57Ozs4N/f09LS0M/P5uXl7+/v3dzcwtncCAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAZNSURBVHja7d3bdtsqEABQYABZSLH9/3+ZpnUsIcF5iOM6PfElNoMHMfPQdq3GmL0GkLhEUqLaUExnOtOZznSmM53pTGc605nOdKYznelMZzrTmV4LXSqllKyJDkob26xWq8Zae/iH0QoWTm9d1xur4WuypQJtTd+5dqn0VjcxzNO5/57mEBvdLo8Oron6aseWOjYOFkVvjQs3DmgyONMuht52EfztP+4hdu0i6LCO808/M8c1lE/fuPGej41uUzgdtoO/75N+2ELJ9I3b3//hPXbiMenm3pR/Jt4USgcLBIp4Bh10gqKVhvLo0klCxeSky96nKcj3siw6pJIL4XsoiQ7apyvMY/V3HHrSRioLopvEhSpTCn2TPEuwKYMOIX0tAxRBf/Hpa+lfSqBv9gi1FPsNfTrMAiVmIE/vJhz61FGnQxRIEYE4vfNYdN8Rp6MlHaHotHTn8ejekaZPAjEmyvQWdZFTtYTpXqCGJ0zvcek9Yfoel76nS0ffv1NMp1ca+pkgyfRCGind4L7OWWc605l+cxjsyhqy9AGbPpClc1/nvl5VX0c/3Alk6RU3+Am7shNZ+h6bvidLr7jBB+zKBrL0irOOudmIUDzTmf5gIP+iEuXtRuTVaEmY/oZLfyNMrzjryPc0gerMTdpVg0tvjJUU6bLPcGOoUv46SLL6Wi8yhLf06C7TUyekI0efRaaYqdFltkeNpPumRPSMDxgBYvSM035FrKAmH72hRW99PrpvSdEHkTEGUvSsK3yKVDkuJ92RohcZaehzzirPpOg+J92Tolfc4Cumx5xVXpGiZ34+ICX6W84qv5GiR5NPbiIpOv6BCoSvSkTX+eiaGP092zINvBOj4x8mSf9FqejvNo/cvpOji19ZbmviL0GPLsYMFzgzCor0+Bv/ePDvSJKOb9dJ5UlnbnEHiHgzv6cdTpJOWuc/u3FEucLDOL75xGtBiefrcwgoC9NDSH/jkH6pAuXmBqPQ9HSUPVdZBH1GGOrMXAQdYxcKZfxAoK+KKBKFLosoEoX+u4giUehz8jlcnAuhp78I46yDYNAd+QLR6K+pr+yvxdBTHyVDubQh0UfSxaHSd0lbvNkVRE87JGOtc+PQd2QLQ6fHhJkKsSh6yg13tO08JPprsgrrXWH0dJd2vH1MLPprot4eXoujpzrdhngiD40ek2y92lggPcnWa8qN1Yz0BFuvZhRl0uOfR0v4Ewuli/Bg4Qr3lArqGdndQ3UPO1EunXYwnelMZzrTmc50pjOd6UxnOtOZznSmM53pTGf6kuj6oedFKV0s3fX6sX1S3bsi6a4PD7+/YAqYeBw6pIB/4qEgOqxdSPbGiim4NRRCbzs3Jj0L4UfXtQXQVRfn5IdA/Bw7RZzurEV6EtdsLeGXkIPuA+K1UoVeA0l62zmN/LqfSSft9KkepmoRuvi3nd5uKNFB9zbbXEANqdr941XO0NJx2v2jdJenpf+/3bvn0ts16ph+sd6hX7dPo2+2cZzE02Ia43bzDHqr+2Evnhz74ZHU30ffbKOeng1/NPV30Ns1gYQnSP2P6e65Pfxc6h02XZqXQCjhJ6kPL6bFo4NrGvAU4UII4SE2P1vQuZkuOxckVfehisF1MjUddN/MZBN+kvq5uf0O/xa66gyNS9ktMWlz44rO1Z8C19i5FPdHzPamXn+F3hryPfxMr78+4F+kq22kO6Rf6fUQt+puuustyWv4rbG3l/duztFB96GYoe1cTBdXMr+nw9qVM6ZfxOvzezff0nXi/ZOndvrR6Zvpm0c3h6nhdb+5iS7tsIim/qXZD9+97/Jf+rpZ5BET1ayv0GUzLhEuhBBjIy/RdVPgndutIRt9nt7p5cKFEEJ3Z+jQFDZL+XnMDXxHB73gxn5s9Kc3d3/pFciFkN/QTSXHJpX5l66gDrkQoP6hL3xsPw39la4qOiV8tH78XeSbue6N9mvWa6J/ybpc1CT1Wnh5Qq9meP8IOKH3ddH7E/ri1iYux/SXDrXR4UiPdck/wUpU+FtPf6/orja6O9KL3l56LOvVxe5Ib2qjN0d6Vbex4ghWlU3bPqI90If66MNng680FNpbJijH6kCvaF3uMzQ3+IrpFerV4Y9dffQdN3im10ivbuImhD3Qq5u4HdZkua8znelMZ/pS4z9CPVKkxowNxgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMy0yN1QxNTo0NToxNSswMDowMN1xSg4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDMtMjdUMTU6NDU6MTUrMDA6MDCsLPKyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==",
|
|
967
|
+
}(), _u = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2032%2032'%20xml:space='preserve'%3e%3cpath%20d='M23,30.36H9c-2.404,0-4.36-1.956-4.36-4.36V15c0-2.404,1.956-4.36,4.36-4.36h3.659%20c0.167-1.566,1.415-2.813,2.981-2.981V5.333c-1.131-0.174-2-1.154-2-2.333c0-1.301,1.059-2.36,2.36-2.36%20c1.302,0,2.36,1.059,2.36,2.36c0,1.179-0.869,2.159-2,2.333V7.66c1.566,0.167,2.814,1.415,2.981,2.981H23%20c2.404,0,4.36,1.956,4.36,4.36v11C27.36,28.404,25.404,30.36,23,30.36z%20M9,11.36c-2.007,0-3.64,1.633-3.64,3.64v11%20c0,2.007,1.633,3.64,3.64,3.64h14c2.007,0,3.64-1.633,3.64-3.64V15c0-2.007-1.633-3.64-3.64-3.64H9z%20M13.384,10.64h5.231%20C18.439,9.354,17.334,8.36,16,8.36C14.667,8.36,13.561,9.354,13.384,10.64z%20M16,1.36c-0.904,0-1.64,0.736-1.64,1.64%20S15.096,4.64,16,4.64c0.904,0,1.64-0.736,1.64-1.64S16.904,1.36,16,1.36z%20M20,27.36h-8c-1.301,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36h8c1.302,0,2.36,1.059,2.36,2.36S21.302,27.36,20,27.36z%20M12,23.36c-0.904,0-1.64,0.735-1.64,1.64%20s0.736,1.64,1.64,1.64h8c0.904,0,1.64-0.735,1.64-1.64s-0.735-1.64-1.64-1.64H12z%20M31,23.86h-2c-0.199,0-0.36-0.161-0.36-0.36V15%20c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5C31.36,23.699,31.199,23.86,31,23.86z%20M29.36,23.14h1.279v-7.78%20H29.36V23.14z%20M3,23.86H1c-0.199,0-0.36-0.161-0.36-0.36V15c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5%20C3.36,23.699,3.199,23.86,3,23.86z%20M1.36,23.14h1.28v-7.78H1.36V23.14z%20M20,20.36c-1.302,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36s2.36,1.059,2.36,2.36C22.36,19.302,21.302,20.36,20,20.36z%20M20,16.36c-0.904,0-1.64,0.736-1.64,1.64%20s0.735,1.64,1.64,1.64s1.64-0.735,1.64-1.64S20.904,16.36,20,16.36z%20M12,20.36c-1.301,0-2.36-1.059-2.36-2.36s1.059-2.36,2.36-2.36%20s2.36,1.059,2.36,2.36C14.36,19.302,13.301,20.36,12,20.36z%20M12,16.36c-0.904,0-1.64,0.736-1.64,1.64s0.736,1.64,1.64,1.64%20s1.64-0.735,1.64-1.64S12.904,16.36,12,16.36z'/%3e%3crect%20style='fill:none;'%20width='32'%20height='32'/%3e%3c/svg%3e", Cu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////9vX18vLy/Pz86enp4+Li2tnZ1tbWzczM+fn57Ozs4N/f09LS0M/P5uXl7+/v3dzcwtncCAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAZNSURBVHja7d3bdtsqEABQYABZSLH9/3+ZpnUsIcF5iOM6PfElNoMHMfPQdq3GmL0GkLhEUqLaUExnOtOZznSmM53pTGc605nOdKYznelMZzrTmV4LXSqllKyJDkob26xWq8Zae/iH0QoWTm9d1xur4WuypQJtTd+5dqn0VjcxzNO5/57mEBvdLo8Oron6aseWOjYOFkVvjQs3DmgyONMuht52EfztP+4hdu0i6LCO808/M8c1lE/fuPGej41uUzgdtoO/75N+2ELJ9I3b3//hPXbiMenm3pR/Jt4USgcLBIp4Bh10gqKVhvLo0klCxeSky96nKcj3siw6pJIL4XsoiQ7apyvMY/V3HHrSRioLopvEhSpTCn2TPEuwKYMOIX0tAxRBf/Hpa+lfSqBv9gi1FPsNfTrMAiVmIE/vJhz61FGnQxRIEYE4vfNYdN8Rp6MlHaHotHTn8ejekaZPAjEmyvQWdZFTtYTpXqCGJ0zvcek9Yfoel76nS0ffv1NMp1ca+pkgyfRCGind4L7OWWc605l+cxjsyhqy9AGbPpClc1/nvl5VX0c/3Alk6RU3+Am7shNZ+h6bvidLr7jBB+zKBrL0irOOudmIUDzTmf5gIP+iEuXtRuTVaEmY/oZLfyNMrzjryPc0gerMTdpVg0tvjJUU6bLPcGOoUv46SLL6Wi8yhLf06C7TUyekI0efRaaYqdFltkeNpPumRPSMDxgBYvSM035FrKAmH72hRW99PrpvSdEHkTEGUvSsK3yKVDkuJ92RohcZaehzzirPpOg+J92Tolfc4Cumx5xVXpGiZ34+ICX6W84qv5GiR5NPbiIpOv6BCoSvSkTX+eiaGP092zINvBOj4x8mSf9FqejvNo/cvpOji19ZbmviL0GPLsYMFzgzCor0+Bv/ePDvSJKOb9dJ5UlnbnEHiHgzv6cdTpJOWuc/u3FEucLDOL75xGtBiefrcwgoC9NDSH/jkH6pAuXmBqPQ9HSUPVdZBH1GGOrMXAQdYxcKZfxAoK+KKBKFLosoEoX+u4giUehz8jlcnAuhp78I46yDYNAd+QLR6K+pr+yvxdBTHyVDubQh0UfSxaHSd0lbvNkVRE87JGOtc+PQd2QLQ6fHhJkKsSh6yg13tO08JPprsgrrXWH0dJd2vH1MLPprot4eXoujpzrdhngiD40ek2y92lggPcnWa8qN1Yz0BFuvZhRl0uOfR0v4Ewuli/Bg4Qr3lArqGdndQ3UPO1EunXYwnelMZzrTmc50pjOd6UxnOtOZznSmM53pTGf6kuj6oedFKV0s3fX6sX1S3bsi6a4PD7+/YAqYeBw6pIB/4qEgOqxdSPbGiim4NRRCbzs3Jj0L4UfXtQXQVRfn5IdA/Bw7RZzurEV6EtdsLeGXkIPuA+K1UoVeA0l62zmN/LqfSSft9KkepmoRuvi3nd5uKNFB9zbbXEANqdr941XO0NJx2v2jdJenpf+/3bvn0ts16ph+sd6hX7dPo2+2cZzE02Ia43bzDHqr+2Evnhz74ZHU30ffbKOeng1/NPV30Ns1gYQnSP2P6e65Pfxc6h02XZqXQCjhJ6kPL6bFo4NrGvAU4UII4SE2P1vQuZkuOxckVfehisF1MjUddN/MZBN+kvq5uf0O/xa66gyNS9ktMWlz44rO1Z8C19i5FPdHzPamXn+F3hryPfxMr78+4F+kq22kO6Rf6fUQt+puuustyWv4rbG3l/duztFB96GYoe1cTBdXMr+nw9qVM6ZfxOvzezff0nXi/ZOndvrR6Zvpm0c3h6nhdb+5iS7tsIim/qXZD9+97/Jf+rpZ5BET1ayv0GUzLhEuhBBjIy/RdVPgndutIRt9nt7p5cKFEEJ3Z+jQFDZL+XnMDXxHB73gxn5s9Kc3d3/pFciFkN/QTSXHJpX5l66gDrkQoP6hL3xsPw39la4qOiV8tH78XeSbue6N9mvWa6J/ybpc1CT1Wnh5Qq9meP8IOKH3ddH7E/ri1iYux/SXDrXR4UiPdck/wUpU+FtPf6/orja6O9KL3l56LOvVxe5Ib2qjN0d6Vbex4ghWlU3bPqI90If66MNng680FNpbJijH6kCvaF3uMzQ3+IrpFerV4Y9dffQdN3im10ivbuImhD3Qq5u4HdZkua8znelMZ/pS4z9CPVKkxowNxgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMy0yN1QxNTo0NToxNSswMDowMN1xSg4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDMtMjdUMTU6NDU6MTUrMDA6MDCsLPKyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==", xl = /* @__PURE__ */ function() {
|
|
968
968
|
function n() {
|
|
969
|
-
|
|
969
|
+
w(this, n);
|
|
970
970
|
}
|
|
971
|
-
return
|
|
971
|
+
return k(n, null, [{
|
|
972
972
|
key: "hide",
|
|
973
973
|
value: function(e) {
|
|
974
974
|
var t;
|
|
@@ -1012,12 +1012,12 @@ var lr = Cl, De = /* @__PURE__ */ function() {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
}]);
|
|
1014
1014
|
}();
|
|
1015
|
-
|
|
1016
|
-
var so =
|
|
1015
|
+
xl.CONTAINER_CLASS = "avatar-container";
|
|
1016
|
+
var so = xl, El = /* @__PURE__ */ function() {
|
|
1017
1017
|
function n() {
|
|
1018
|
-
|
|
1018
|
+
w(this, n);
|
|
1019
1019
|
}
|
|
1020
|
-
return
|
|
1020
|
+
return k(n, null, [{
|
|
1021
1021
|
key: "hide",
|
|
1022
1022
|
value: function(e) {
|
|
1023
1023
|
var t;
|
|
@@ -1055,12 +1055,12 @@ var so = El, xl = /* @__PURE__ */ function() {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
}]);
|
|
1057
1057
|
}();
|
|
1058
|
-
|
|
1059
|
-
var lo =
|
|
1058
|
+
El.NAME_CLASS = "name";
|
|
1059
|
+
var lo = El, cr = /* @__PURE__ */ function() {
|
|
1060
1060
|
function n() {
|
|
1061
|
-
|
|
1061
|
+
w(this, n);
|
|
1062
1062
|
}
|
|
1063
|
-
return
|
|
1063
|
+
return k(n, null, [{
|
|
1064
1064
|
key: "getLastElementsByClass",
|
|
1065
1065
|
value: function(e, t, i) {
|
|
1066
1066
|
for (var a = function() {
|
|
@@ -1145,9 +1145,9 @@ var lo = xl, cr = /* @__PURE__ */ function() {
|
|
|
1145
1145
|
cr.AI_ROLE = "ai", cr.USER_ROLE = "user", cr.EMPTY_MESSAGE_CLASS = "empty-message";
|
|
1146
1146
|
var J = cr, Al = /* @__PURE__ */ function() {
|
|
1147
1147
|
function n() {
|
|
1148
|
-
|
|
1148
|
+
w(this, n);
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1150
|
+
return k(n, null, [{
|
|
1151
1151
|
key: "mouseUp",
|
|
1152
1152
|
value: function(e, t) {
|
|
1153
1153
|
ye.unsetAllCSSMouseStates(e, t), Object.assign(e.style, t.default), Object.assign(e.style, t.hover);
|
|
@@ -1173,7 +1173,7 @@ var J = cr, Al = /* @__PURE__ */ function() {
|
|
|
1173
1173
|
e.addEventListener("mouseenter", n.mouseEnter.bind(this, e, t)), e.addEventListener("mouseleave", n.mouseLeave.bind(this, e, t)), e.addEventListener("mousedown", n.mouseDown.bind(this, e, t)), e.addEventListener("mouseup", n.mouseUp.bind(this, e, t));
|
|
1174
1174
|
}
|
|
1175
1175
|
}]);
|
|
1176
|
-
}(),
|
|
1176
|
+
}(), xu = "deep-chat-temporary-message", Eu = "deep-chat-suggestion-button", ia = {
|
|
1177
1177
|
"deep-chat-button": {
|
|
1178
1178
|
styles: {
|
|
1179
1179
|
default: {
|
|
@@ -1195,9 +1195,9 @@ var J = cr, Al = /* @__PURE__ */ function() {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
}, co = Object.keys(ia), Ar = /* @__PURE__ */ function() {
|
|
1197
1197
|
function n() {
|
|
1198
|
-
|
|
1198
|
+
w(this, n);
|
|
1199
1199
|
}
|
|
1200
|
-
return
|
|
1200
|
+
return k(n, null, [{
|
|
1201
1201
|
key: "applySuggestionEvent",
|
|
1202
1202
|
value: function(e, t) {
|
|
1203
1203
|
setTimeout(function() {
|
|
@@ -1213,7 +1213,7 @@ var J = cr, Al = /* @__PURE__ */ function() {
|
|
|
1213
1213
|
key: "isElementTemporary",
|
|
1214
1214
|
value: function(e) {
|
|
1215
1215
|
var t;
|
|
1216
|
-
return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains(
|
|
1216
|
+
return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains(xu) : !1;
|
|
1217
1217
|
}
|
|
1218
1218
|
}, {
|
|
1219
1219
|
key: "doesElementContainDeepChatClass",
|
|
@@ -1254,7 +1254,7 @@ var J = cr, Al = /* @__PURE__ */ function() {
|
|
|
1254
1254
|
Zt.applyStylesToElement(l, c), n.applyEvents(l, o);
|
|
1255
1255
|
});
|
|
1256
1256
|
});
|
|
1257
|
-
var a = i.getElementsByClassName(
|
|
1257
|
+
var a = i.getElementsByClassName(Eu);
|
|
1258
1258
|
Array.from(a).forEach(function(o) {
|
|
1259
1259
|
return n.applySuggestionEvent(e, o);
|
|
1260
1260
|
});
|
|
@@ -1262,9 +1262,9 @@ var J = cr, Al = /* @__PURE__ */ function() {
|
|
|
1262
1262
|
}]);
|
|
1263
1263
|
}(), Zt = /* @__PURE__ */ function() {
|
|
1264
1264
|
function n() {
|
|
1265
|
-
|
|
1265
|
+
w(this, n);
|
|
1266
1266
|
}
|
|
1267
|
-
return
|
|
1267
|
+
return k(n, null, [{
|
|
1268
1268
|
key: "applyStylesToElement",
|
|
1269
1269
|
value: function(e, t) {
|
|
1270
1270
|
var i = ye.processStateful(t, {}, {});
|
|
@@ -1317,9 +1317,9 @@ var J = cr, Al = /* @__PURE__ */ function() {
|
|
|
1317
1317
|
}]);
|
|
1318
1318
|
}(), aa = /* @__PURE__ */ function() {
|
|
1319
1319
|
function n() {
|
|
1320
|
-
|
|
1320
|
+
w(this, n);
|
|
1321
1321
|
}
|
|
1322
|
-
return
|
|
1322
|
+
return k(n, null, [{
|
|
1323
1323
|
key: "addElement",
|
|
1324
1324
|
value: function(e, t) {
|
|
1325
1325
|
e.elementRef.appendChild(t), e.elementRef.scrollTop = e.elementRef.scrollHeight;
|
|
@@ -1389,7 +1389,7 @@ function Iu(n, r) {
|
|
|
1389
1389
|
var e = 0, t = Tl(r);
|
|
1390
1390
|
return r !== t ? t : r.charCodeAt(0) === 35 && Ou.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), Ll(e)) ? oa(e) : n;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function xt(n) {
|
|
1393
1393
|
return n.indexOf("&") < 0 ? n : n.replace(Lu, Iu);
|
|
1394
1394
|
}
|
|
1395
1395
|
var Mu = /[&<>"]/, Pu = /[&<>"]/g, Fu = {
|
|
@@ -1419,7 +1419,7 @@ D.fence = function(n, r, e, t, i) {
|
|
|
1419
1419
|
var a = n[r], o = "", s = e.langPrefix, l = "", c, u, d;
|
|
1420
1420
|
if (a.params) {
|
|
1421
1421
|
if (c = a.params.split(/\s+/g), u = c.join(" "), Tu(i.rules.fence_custom, c[0])) return i.rules.fence_custom[c[0]](n, r, e, t, i);
|
|
1422
|
-
l = Ae(
|
|
1422
|
+
l = Ae(xt(On(u))), o = ' class="' + s + l + '"';
|
|
1423
1423
|
}
|
|
1424
1424
|
return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || Ae(a.content) : d = Ae(a.content), "<pre><code" + o + ">" + d + "</code></pre>" + Rt(n, r);
|
|
1425
1425
|
};
|
|
@@ -1464,14 +1464,14 @@ D.paragraph_close = function(n, r) {
|
|
|
1464
1464
|
return (n[r].tight ? "" : "</p>") + (e ? Rt(n, r) : "");
|
|
1465
1465
|
};
|
|
1466
1466
|
D.link_open = function(n, r, e) {
|
|
1467
|
-
var t = n[r].title ? ' title="' + Ae(
|
|
1467
|
+
var t = n[r].title ? ' title="' + Ae(xt(n[r].title)) + '"' : "", i = e.linkTarget ? ' target="' + e.linkTarget + '"' : "";
|
|
1468
1468
|
return '<a href="' + Ae(n[r].href) + '"' + t + i + ">";
|
|
1469
1469
|
};
|
|
1470
1470
|
D.link_close = function() {
|
|
1471
1471
|
return "</a>";
|
|
1472
1472
|
};
|
|
1473
1473
|
D.image = function(n, r, e) {
|
|
1474
|
-
var t = ' src="' + Ae(n[r].src) + '"', i = n[r].title ? ' title="' + Ae(
|
|
1474
|
+
var t = ' src="' + Ae(n[r].src) + '"', i = n[r].title ? ' title="' + Ae(xt(n[r].title)) + '"' : "", a = ' alt="' + (n[r].alt ? Ae(xt(On(n[r].alt))) : "") + '"', o = e.xhtmlOut ? " /" : "";
|
|
1475
1475
|
return "<img" + t + a + i + o + ">";
|
|
1476
1476
|
};
|
|
1477
1477
|
D.table_open = function() {
|
|
@@ -1576,7 +1576,7 @@ D.htmltag = function(n, r) {
|
|
|
1576
1576
|
return n[r].content;
|
|
1577
1577
|
};
|
|
1578
1578
|
D.abbr_open = function(n, r) {
|
|
1579
|
-
return '<abbr title="' + Ae(
|
|
1579
|
+
return '<abbr title="' + Ae(xt(n[r].title)) + '">';
|
|
1580
1580
|
};
|
|
1581
1581
|
D.abbr_close = function() {
|
|
1582
1582
|
return "</abbr>";
|
|
@@ -1639,14 +1639,14 @@ var Rt = D.getBreak = function(n, r) {
|
|
|
1639
1639
|
return r = Ol(n, r), r < n.length && n[r].type === "list_item_close" ? "" : `
|
|
1640
1640
|
`;
|
|
1641
1641
|
};
|
|
1642
|
-
function
|
|
1642
|
+
function xa() {
|
|
1643
1643
|
this.rules = Rl({}, D), this.getBreak = D.getBreak;
|
|
1644
1644
|
}
|
|
1645
|
-
|
|
1645
|
+
xa.prototype.renderInline = function(n, r, e) {
|
|
1646
1646
|
for (var t = this.rules, i = n.length, a = 0, o = ""; i--; ) o += t[n[a].type](n, a++, r, e, this);
|
|
1647
1647
|
return o;
|
|
1648
1648
|
};
|
|
1649
|
-
|
|
1649
|
+
xa.prototype.render = function(n, r, e) {
|
|
1650
1650
|
for (var t = this.rules, i = n.length, a = -1, o = ""; ++a < i; ) n[a].type === "inline" ? o += this.renderInline(n[a].children, r, e) : o += t[n[a].type](n, a, r, e, this);
|
|
1651
1651
|
return o;
|
|
1652
1652
|
};
|
|
@@ -1781,7 +1781,7 @@ function Bu(n) {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
function sa(n) {
|
|
1784
|
-
var r =
|
|
1784
|
+
var r = xt(n);
|
|
1785
1785
|
try {
|
|
1786
1786
|
r = decodeURI(r);
|
|
1787
1787
|
} catch {
|
|
@@ -1988,10 +1988,10 @@ function Xu(n) {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
|
-
var
|
|
1991
|
+
var wi = [["block", Du], ["abbr", Bu], ["references", Hu], ["inline", Uu], ["footnote_tail", zu], ["abbr2", Wu], ["replacements", Ju], ["smartquotes", Xu]];
|
|
1992
1992
|
function Fl() {
|
|
1993
1993
|
this.options = {}, this.ruler = new Oe();
|
|
1994
|
-
for (var n = 0; n <
|
|
1994
|
+
for (var n = 0; n < wi.length; n++) this.ruler.push(wi[n][0], wi[n][1]);
|
|
1995
1995
|
}
|
|
1996
1996
|
Fl.prototype.process = function(n) {
|
|
1997
1997
|
var r, e, t;
|
|
@@ -2257,13 +2257,13 @@ function dd(n, r, e, t) {
|
|
|
2257
2257
|
content: n.getLines(r, o, 0, !0)
|
|
2258
2258
|
}), !0;
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function ki(n, r) {
|
|
2261
2261
|
var e = n.bMarks[r] + n.blkIndent, t = n.eMarks[r];
|
|
2262
2262
|
return n.src.substr(e, t - e);
|
|
2263
2263
|
}
|
|
2264
2264
|
function pd(n, r, e, t) {
|
|
2265
2265
|
var i, a, o, s, l, c, u, d, p, h, f;
|
|
2266
|
-
if (r + 2 > e || (l = r + 1, n.tShift[l] < n.blkIndent) || (o = n.bMarks[l] + n.tShift[l], o >= n.eMarks[l]) || (i = n.src.charCodeAt(o), i !== 124 && i !== 45 && i !== 58) || (a =
|
|
2266
|
+
if (r + 2 > e || (l = r + 1, n.tShift[l] < n.blkIndent) || (o = n.bMarks[l] + n.tShift[l], o >= n.eMarks[l]) || (i = n.src.charCodeAt(o), i !== 124 && i !== 45 && i !== 58) || (a = ki(n, r + 1), !/^[-:| ]+$/.test(a)) || (c = a.split("|"), c <= 2)) return !1;
|
|
2267
2267
|
for (d = [], s = 0; s < c.length; s++) {
|
|
2268
2268
|
if (p = c[s].trim(), !p) {
|
|
2269
2269
|
if (s === 0 || s === c.length - 1) continue;
|
|
@@ -2272,7 +2272,7 @@ function pd(n, r, e, t) {
|
|
|
2272
2272
|
if (!/^:?-+:?$/.test(p)) return !1;
|
|
2273
2273
|
p.charCodeAt(p.length - 1) === 58 ? d.push(p.charCodeAt(0) === 58 ? "center" : "right") : p.charCodeAt(0) === 58 ? d.push("left") : d.push("");
|
|
2274
2274
|
}
|
|
2275
|
-
if (a =
|
|
2275
|
+
if (a = ki(n, r).trim(), a.indexOf("|") === -1 || (c = a.replace(/^\||\|$/g, "").split("|"), d.length !== c.length)) return !1;
|
|
2276
2276
|
if (t) return !0;
|
|
2277
2277
|
for (n.tokens.push({
|
|
2278
2278
|
type: "table_open",
|
|
@@ -2311,7 +2311,7 @@ function pd(n, r, e, t) {
|
|
|
2311
2311
|
type: "tbody_open",
|
|
2312
2312
|
lines: f = [r + 2, 0],
|
|
2313
2313
|
level: n.level++
|
|
2314
|
-
}), l = r + 2; l < e && !(n.tShift[l] < n.blkIndent || (a =
|
|
2314
|
+
}), l = r + 2; l < e && !(n.tShift[l] < n.blkIndent || (a = ki(n, l).trim(), a.indexOf("|") === -1)); l++) {
|
|
2315
2315
|
for (c = a.replace(/^\||\|$/g, "").split("|"), n.tokens.push({
|
|
2316
2316
|
type: "tr_open",
|
|
2317
2317
|
level: n.level++
|
|
@@ -2420,13 +2420,13 @@ function md(n, r) {
|
|
|
2420
2420
|
})), !0;
|
|
2421
2421
|
}
|
|
2422
2422
|
var tr = [["code", Qu], ["fences", ed, ["paragraph", "blockquote", "list"]], ["blockquote", td, ["paragraph", "blockquote", "list"]], ["hr", nd, ["paragraph", "blockquote", "list"]], ["list", id, ["paragraph", "blockquote"]], ["footnote", ad, ["paragraph"]], ["heading", od, ["paragraph", "blockquote"]], ["lheading", sd], ["htmlblock", dd, ["paragraph", "blockquote"]], ["table", pd, ["paragraph"]], ["deflist", fd, ["paragraph"]], ["paragraph", md]];
|
|
2423
|
-
function
|
|
2423
|
+
function Ea() {
|
|
2424
2424
|
this.ruler = new Oe();
|
|
2425
2425
|
for (var n = 0; n < tr.length; n++) this.ruler.push(tr[n][0], tr[n][1], {
|
|
2426
2426
|
alt: (tr[n][2] || []).slice()
|
|
2427
2427
|
});
|
|
2428
2428
|
}
|
|
2429
|
-
|
|
2429
|
+
Ea.prototype.tokenize = function(n, r, e) {
|
|
2430
2430
|
for (var t = this.ruler.getRules(""), i = t.length, a = r, o = !1, s, l; a < e && (n.line = a = n.skipEmptyLines(a), !(a >= e || n.tShift[a] < n.blkIndent)); ) {
|
|
2431
2431
|
for (l = 0; l < i && (s = t[l](n, a, e, !1), !s); l++) ;
|
|
2432
2432
|
if (n.tight = !o, n.isEmpty(n.line - 1) && (o = !0), a = n.line, a < e && n.isEmpty(a)) {
|
|
@@ -2436,7 +2436,7 @@ xa.prototype.tokenize = function(n, r, e) {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
};
|
|
2438
2438
|
var gd = /[\n\t]/g, vd = /\r[\n\u0085]|[\u2424\u2028\u0085]/g, yd = /\u00a0/g;
|
|
2439
|
-
|
|
2439
|
+
Ea.prototype.parse = function(n, r, e, t) {
|
|
2440
2440
|
var i, a = 0, o = 0;
|
|
2441
2441
|
if (!n) return [];
|
|
2442
2442
|
n = n.replace(yd, " "), n = n.replace(vd, `
|
|
@@ -2473,11 +2473,11 @@ function bd(n) {
|
|
|
2473
2473
|
return !1;
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function wd(n, r) {
|
|
2477
2477
|
for (var e = n.pos; e < n.posMax && !bd(n.src.charCodeAt(e)); ) e++;
|
|
2478
2478
|
return e === n.pos ? !1 : (r || (n.pending += n.src.slice(n.pos, e)), n.pos = e, !0);
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function kd(n, r) {
|
|
2481
2481
|
var e, t, i = n.pos;
|
|
2482
2482
|
if (n.src.charCodeAt(i) !== 10) return !1;
|
|
2483
2483
|
if (e = n.pending.length - 1, t = n.posMax, !r) if (e >= 0 && n.pending.charCodeAt(e) === 32)
|
|
@@ -2556,7 +2556,7 @@ function Cd(n, r) {
|
|
|
2556
2556
|
level: --n.level
|
|
2557
2557
|
})), n.pos = n.posMax + 2, n.posMax = a, !0) : (n.pos = o, !1);
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function xd(n, r) {
|
|
2560
2560
|
var e, t, i, a = n.posMax, o = n.pos, s, l;
|
|
2561
2561
|
if (n.src.charCodeAt(o) !== 43 || r || o + 4 >= a || n.src.charCodeAt(o + 1) !== 43 || n.level >= n.options.maxNesting || (s = o > 0 ? n.src.charCodeAt(o - 1) : -1, l = n.src.charCodeAt(o + 2), s === 43) || l === 43 || l === 32 || l === 10) return !1;
|
|
2562
2562
|
for (t = o + 2; t < a && n.src.charCodeAt(t) === 43; ) t++;
|
|
@@ -2576,7 +2576,7 @@ function Ed(n, r) {
|
|
|
2576
2576
|
level: --n.level
|
|
2577
2577
|
})), n.pos = n.posMax + 2, n.posMax = a, !0) : (n.pos = o, !1);
|
|
2578
2578
|
}
|
|
2579
|
-
function
|
|
2579
|
+
function Ed(n, r) {
|
|
2580
2580
|
var e, t, i, a = n.posMax, o = n.pos, s, l;
|
|
2581
2581
|
if (n.src.charCodeAt(o) !== 61 || r || o + 4 >= a || n.src.charCodeAt(o + 1) !== 61 || n.level >= n.options.maxNesting || (s = o > 0 ? n.src.charCodeAt(o - 1) : -1, l = n.src.charCodeAt(o + 2), s === 61) || l === 61 || l === 32 || l === 10) return !1;
|
|
2582
2582
|
for (t = o + 2; t < a && n.src.charCodeAt(t) === 61; ) t++;
|
|
@@ -2803,7 +2803,7 @@ function np(n, r) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
return r || (n.pending += "&"), n.pos++, !0;
|
|
2805
2805
|
}
|
|
2806
|
-
var Si = [["text",
|
|
2806
|
+
var Si = [["text", wd], ["newline", kd], ["escape", Sd], ["backticks", _d], ["del", Cd], ["ins", xd], ["mark", Ed], ["emphasis", Ad], ["sub", Rd], ["sup", Od], ["links", Id], ["footnote_inline", Md], ["footnote_ref", Pd], ["autolink", $d], ["htmltag", Qd], ["entity", np]];
|
|
2807
2807
|
function qr() {
|
|
2808
2808
|
this.ruler = new Oe();
|
|
2809
2809
|
for (var n = 0; n < Si.length; n++) this.ruler.push(Si[n][0], Si[n][1]);
|
|
@@ -2838,7 +2838,7 @@ qr.prototype.parse = function(n, r, e, t) {
|
|
|
2838
2838
|
};
|
|
2839
2839
|
function rp(n) {
|
|
2840
2840
|
var r = ["vbscript", "javascript", "file", "data"], e = n.trim().toLowerCase();
|
|
2841
|
-
return e =
|
|
2841
|
+
return e = xt(e), !(e.indexOf(":") !== -1 && r.indexOf(e.split(":")[0]) !== -1);
|
|
2842
2842
|
}
|
|
2843
2843
|
var ip = {
|
|
2844
2844
|
options: {
|
|
@@ -2960,7 +2960,7 @@ function tt(n, r) {
|
|
|
2960
2960
|
import Remarkable from 'remarkable';
|
|
2961
2961
|
import linkify from 'remarkable/linkify';
|
|
2962
2962
|
new Remarkable().use(linkify)
|
|
2963
|
-
`), this.inline = new qr(), this.block = new
|
|
2963
|
+
`), this.inline = new qr(), this.block = new Ea(), this.core = new Fl(), this.renderer = new xa(), this.ruler = new Oe(), this.options = {}, this.configure(sp[n]), this.set(r || {});
|
|
2964
2964
|
}
|
|
2965
2965
|
tt.prototype.set = function(n) {
|
|
2966
2966
|
Rl(this.options, n);
|
|
@@ -2991,9 +2991,9 @@ tt.prototype.renderInline = function(n, r) {
|
|
|
2991
2991
|
};
|
|
2992
2992
|
var la = /* @__PURE__ */ function() {
|
|
2993
2993
|
function n() {
|
|
2994
|
-
|
|
2994
|
+
w(this, n);
|
|
2995
2995
|
}
|
|
2996
|
-
return
|
|
2996
|
+
return k(n, null, [{
|
|
2997
2997
|
key: "instantiate",
|
|
2998
2998
|
value: function() {
|
|
2999
2999
|
var e = window.hljs;
|
|
@@ -3040,9 +3040,9 @@ var la = /* @__PURE__ */ function() {
|
|
|
3040
3040
|
}]);
|
|
3041
3041
|
}(), $l = /* @__PURE__ */ function() {
|
|
3042
3042
|
function n() {
|
|
3043
|
-
|
|
3043
|
+
w(this, n);
|
|
3044
3044
|
}
|
|
3045
|
-
return
|
|
3045
|
+
return k(n, null, [{
|
|
3046
3046
|
key: "addMessage",
|
|
3047
3047
|
value: function(e, t, i, a) {
|
|
3048
3048
|
var o;
|
|
@@ -3125,11 +3125,11 @@ var la = /* @__PURE__ */ function() {
|
|
|
3125
3125
|
}]);
|
|
3126
3126
|
}();
|
|
3127
3127
|
$l.DEFAULT_FILE_NAME = "file";
|
|
3128
|
-
var
|
|
3128
|
+
var Ee = $l, Tr = /* @__PURE__ */ function() {
|
|
3129
3129
|
function n() {
|
|
3130
|
-
|
|
3130
|
+
w(this, n);
|
|
3131
3131
|
}
|
|
3132
|
-
return
|
|
3132
|
+
return k(n, null, [{
|
|
3133
3133
|
key: "onMessage",
|
|
3134
3134
|
value: function(e, t, i) {
|
|
3135
3135
|
var a, o = JSON.parse(JSON.stringify({
|
|
@@ -3137,7 +3137,7 @@ var xe = $l, Tr = /* @__PURE__ */ function() {
|
|
|
3137
3137
|
isHistory: i,
|
|
3138
3138
|
isInitial: i
|
|
3139
3139
|
}));
|
|
3140
|
-
|
|
3140
|
+
Ee.reAddFileRefToObject(t, o), (a = e.onMessage) == null || a.call(e, o), e.dispatchEvent(new CustomEvent("message", {
|
|
3141
3141
|
detail: o
|
|
3142
3142
|
})), De.fireOnNewMessage(e, o);
|
|
3143
3143
|
}
|
|
@@ -3166,9 +3166,9 @@ var xe = $l, Tr = /* @__PURE__ */ function() {
|
|
|
3166
3166
|
}]);
|
|
3167
3167
|
}(), ur = /* @__PURE__ */ function() {
|
|
3168
3168
|
function n() {
|
|
3169
|
-
|
|
3169
|
+
w(this, n);
|
|
3170
3170
|
}
|
|
3171
|
-
return
|
|
3171
|
+
return k(n, null, [{
|
|
3172
3172
|
key: "applyCustomStylesToElements",
|
|
3173
3173
|
value: function(e, t, i) {
|
|
3174
3174
|
if (i && (Object.assign(e.outerContainer.style, i.outerContainer), Object.assign(e.innerContainer.style, i.innerContainer), Object.assign(e.bubbleElement.style, i.bubble), t)) {
|
|
@@ -3214,11 +3214,11 @@ var xe = $l, Tr = /* @__PURE__ */ function() {
|
|
|
3214
3214
|
}(), Bl = /* @__PURE__ */ function() {
|
|
3215
3215
|
function n(r) {
|
|
3216
3216
|
var e = this;
|
|
3217
|
-
|
|
3217
|
+
w(this, n), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = n.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable = la.createNew(), this._avatars = r.avatars, this._names = r.names, this._onMessage = Tr.onMessage.bind(this, r), r.htmlClassUtilities && (this.htmlClassUtilities = r.htmlClassUtilities), setTimeout(function() {
|
|
3218
3218
|
e.submitUserMessage = r.submitUserMessage;
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
3221
|
-
return
|
|
3221
|
+
return k(n, [{
|
|
3222
3222
|
key: "addNewTextMessage",
|
|
3223
3223
|
value: function(e, t, i) {
|
|
3224
3224
|
if (i != null && i.status) {
|
|
@@ -3344,9 +3344,9 @@ var xe = $l, Tr = /* @__PURE__ */ function() {
|
|
|
3344
3344
|
}]);
|
|
3345
3345
|
}(), ca = /* @__PURE__ */ function() {
|
|
3346
3346
|
function n(r) {
|
|
3347
|
-
|
|
3347
|
+
w(this, n), this._fileAdded = !1, this._streamedContent = "", this._streamType = "", this._hasStreamEnded = !1, this._messages = r;
|
|
3348
3348
|
}
|
|
3349
|
-
return
|
|
3349
|
+
return k(n, [{
|
|
3350
3350
|
key: "upsertStreamedMessage",
|
|
3351
3351
|
value: function(e) {
|
|
3352
3352
|
var t;
|
|
@@ -3438,9 +3438,9 @@ var xe = $l, Tr = /* @__PURE__ */ function() {
|
|
|
3438
3438
|
ca.MESSAGE_CLASS = "streamed-message", ca.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
|
|
3439
3439
|
var ot = ca, jl = /* @__PURE__ */ function() {
|
|
3440
3440
|
function n() {
|
|
3441
|
-
|
|
3441
|
+
w(this, n);
|
|
3442
3442
|
}
|
|
3443
|
-
return
|
|
3443
|
+
return k(n, null, [{
|
|
3444
3444
|
key: "tempRemoveContentHeader",
|
|
3445
3445
|
value: (
|
|
3446
3446
|
// need to pass stringifyBody boolean separately as binding is throwing an error for some reason
|
|
@@ -3604,9 +3604,9 @@ function cp(n) {
|
|
|
3604
3604
|
};
|
|
3605
3605
|
}
|
|
3606
3606
|
function up(n, r, e) {
|
|
3607
|
-
var t =
|
|
3607
|
+
var t = wo(), i = new TextDecoder();
|
|
3608
3608
|
return function(a, o) {
|
|
3609
|
-
if (a.length === 0) e == null || e(t), t =
|
|
3609
|
+
if (a.length === 0) e == null || e(t), t = wo();
|
|
3610
3610
|
else if (o > 0) {
|
|
3611
3611
|
var s = i.decode(a.subarray(0, o)), l = o + (a[o + 1] === 32 ? 2 : 1), c = i.decode(a.subarray(l));
|
|
3612
3612
|
switch (s) {
|
|
@@ -3632,7 +3632,7 @@ function dp(n, r) {
|
|
|
3632
3632
|
var e = new Uint8Array(n.length + r.length);
|
|
3633
3633
|
return e.set(n), e.set(r, n.length), e;
|
|
3634
3634
|
}
|
|
3635
|
-
function
|
|
3635
|
+
function wo() {
|
|
3636
3636
|
return {
|
|
3637
3637
|
data: "",
|
|
3638
3638
|
event: "",
|
|
@@ -3645,7 +3645,7 @@ var pp = function(r, e) {
|
|
|
3645
3645
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && e.indexOf(i) < 0 && (t[i] = r[i]);
|
|
3646
3646
|
if (r != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, i = Object.getOwnPropertySymbols(r); a < i.length; a++) e.indexOf(i[a]) < 0 && Object.prototype.propertyIsEnumerable.call(r, i[a]) && (t[i[a]] = r[i[a]]);
|
|
3647
3647
|
return t;
|
|
3648
|
-
}, da = "text/event-stream", hp = 1e3,
|
|
3648
|
+
}, da = "text/event-stream", hp = 1e3, ko = "last-event-id";
|
|
3649
3649
|
function fp(n, r) {
|
|
3650
3650
|
var e = r.signal, t = r.headers, i = r.onopen, a = r.onmessage, o = r.onclose, s = r.onerror, l = r.openWhenHidden, c = r.fetch, u = pp(r, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
|
3651
3651
|
return new Promise(function(d, p) {
|
|
@@ -3681,7 +3681,7 @@ function fp(n, r) {
|
|
|
3681
3681
|
return ue = G.sent, G.next = 7, N(ue);
|
|
3682
3682
|
case 7:
|
|
3683
3683
|
return G.next = 9, lp(ue.body, cp(up(function(fe) {
|
|
3684
|
-
fe ? h[
|
|
3684
|
+
fe ? h[ko] = fe : delete h[ko];
|
|
3685
3685
|
}, function(fe) {
|
|
3686
3686
|
y = fe;
|
|
3687
3687
|
}, a)));
|
|
@@ -3710,9 +3710,9 @@ function mp(n) {
|
|
|
3710
3710
|
}
|
|
3711
3711
|
var ge = /* @__PURE__ */ function() {
|
|
3712
3712
|
function n() {
|
|
3713
|
-
|
|
3713
|
+
w(this, n);
|
|
3714
3714
|
}
|
|
3715
|
-
return
|
|
3715
|
+
return k(n, null, [{
|
|
3716
3716
|
key: "request",
|
|
3717
3717
|
value: (
|
|
3718
3718
|
// prettier-ignore
|
|
@@ -3754,28 +3754,28 @@ var ge = /* @__PURE__ */ function() {
|
|
|
3754
3754
|
// keep stream open when browser tab not open
|
|
3755
3755
|
onopen: function(Z) {
|
|
3756
3756
|
return _(/* @__PURE__ */ m().mark(function Ie() {
|
|
3757
|
-
return m().wrap(function(
|
|
3758
|
-
for (; ; ) switch (
|
|
3757
|
+
return m().wrap(function(A) {
|
|
3758
|
+
for (; ; ) switch (A.prev = A.next) {
|
|
3759
3759
|
case 0:
|
|
3760
3760
|
if (!Z.ok) {
|
|
3761
|
-
|
|
3761
|
+
A.next = 2;
|
|
3762
3762
|
break;
|
|
3763
3763
|
}
|
|
3764
|
-
return
|
|
3764
|
+
return A.abrupt("return", R());
|
|
3765
3765
|
case 2:
|
|
3766
|
-
return
|
|
3766
|
+
return A.next = 4, Y.processResponseByType(Z);
|
|
3767
3767
|
case 4:
|
|
3768
|
-
throw
|
|
3768
|
+
throw A.sent;
|
|
3769
3769
|
case 5:
|
|
3770
3770
|
case "end":
|
|
3771
|
-
return
|
|
3771
|
+
return A.stop();
|
|
3772
3772
|
}
|
|
3773
3773
|
}, Ie);
|
|
3774
3774
|
}))();
|
|
3775
3775
|
},
|
|
3776
3776
|
onmessage: function(Z) {
|
|
3777
3777
|
return _(/* @__PURE__ */ m().mark(function Ie() {
|
|
3778
|
-
var F,
|
|
3778
|
+
var F, A, P, $, W;
|
|
3779
3779
|
return m().wrap(function(ne) {
|
|
3780
3780
|
for (; ; ) switch (ne.prev = ne.next) {
|
|
3781
3781
|
case 0:
|
|
@@ -3788,7 +3788,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
3788
3788
|
} catch {
|
|
3789
3789
|
$ = {};
|
|
3790
3790
|
}
|
|
3791
|
-
return ne.next = 4, (
|
|
3791
|
+
return ne.next = 4, (A = (F = i.deepChat).responseInterceptor) == null ? void 0 : A.call(F, $);
|
|
3792
3792
|
case 4:
|
|
3793
3793
|
if (ne.t0 = ne.sent, ne.t0) {
|
|
3794
3794
|
ne.next = 7;
|
|
@@ -3901,9 +3901,9 @@ var ge = /* @__PURE__ */ function() {
|
|
|
3901
3901
|
}]);
|
|
3902
3902
|
}(), Hl = /* @__PURE__ */ function() {
|
|
3903
3903
|
function n() {
|
|
3904
|
-
|
|
3904
|
+
w(this, n);
|
|
3905
3905
|
}
|
|
3906
|
-
return
|
|
3906
|
+
return k(n, null, [{
|
|
3907
3907
|
key: "generateResponse",
|
|
3908
3908
|
value: function(e) {
|
|
3909
3909
|
var t = e.messages[e.messages.length - 1];
|
|
@@ -3970,9 +3970,9 @@ var ge = /* @__PURE__ */ function() {
|
|
|
3970
3970
|
Hl.URL = "deep-chat-demo";
|
|
3971
3971
|
var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
3972
3972
|
function n() {
|
|
3973
|
-
|
|
3973
|
+
w(this, n);
|
|
3974
3974
|
}
|
|
3975
|
-
return
|
|
3975
|
+
return k(n, null, [{
|
|
3976
3976
|
key: "setup",
|
|
3977
3977
|
value: function(e) {
|
|
3978
3978
|
e.connectSettings.url !== st.URL && (e.permittedErrorPrefixes = ["Connection error", "Error in server message"], e.websocket = "pending");
|
|
@@ -4134,9 +4134,9 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4134
4134
|
}]);
|
|
4135
4135
|
}(), Ta = /* @__PURE__ */ function() {
|
|
4136
4136
|
function n() {
|
|
4137
|
-
|
|
4137
|
+
w(this, n);
|
|
4138
4138
|
}
|
|
4139
|
-
return
|
|
4139
|
+
return k(n, null, [{
|
|
4140
4140
|
key: "request",
|
|
4141
4141
|
value: function() {
|
|
4142
4142
|
var r = _(/* @__PURE__ */ m().mark(function t(i, a, o) {
|
|
@@ -4323,9 +4323,9 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4323
4323
|
}]);
|
|
4324
4324
|
}(), oe = /* @__PURE__ */ function() {
|
|
4325
4325
|
function n() {
|
|
4326
|
-
|
|
4326
|
+
w(this, n);
|
|
4327
4327
|
}
|
|
4328
|
-
return
|
|
4328
|
+
return k(n, null, [{
|
|
4329
4329
|
key: "request",
|
|
4330
4330
|
value: (
|
|
4331
4331
|
// prettier-ignore
|
|
@@ -4521,9 +4521,9 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4521
4521
|
}]);
|
|
4522
4522
|
}(), Ra = /* @__PURE__ */ function() {
|
|
4523
4523
|
function n() {
|
|
4524
|
-
|
|
4524
|
+
w(this, n);
|
|
4525
4525
|
}
|
|
4526
|
-
return
|
|
4526
|
+
return k(n, null, [{
|
|
4527
4527
|
key: "getCharacterLimitMessages",
|
|
4528
4528
|
value: function(e, t) {
|
|
4529
4529
|
var i;
|
|
@@ -4555,9 +4555,9 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4555
4555
|
}]);
|
|
4556
4556
|
}(), gp = /* @__PURE__ */ function() {
|
|
4557
4557
|
function n() {
|
|
4558
|
-
|
|
4558
|
+
w(this, n);
|
|
4559
4559
|
}
|
|
4560
|
-
return
|
|
4560
|
+
return k(n, null, [{
|
|
4561
4561
|
key: "parseConfig",
|
|
4562
4562
|
value: (
|
|
4563
4563
|
// prettier-ignore
|
|
@@ -4659,11 +4659,11 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4659
4659
|
}(), Rr = /* @__PURE__ */ function() {
|
|
4660
4660
|
function n(r, e, t) {
|
|
4661
4661
|
var i;
|
|
4662
|
-
|
|
4662
|
+
w(this, n);
|
|
4663
4663
|
var a, o, s, l, c;
|
|
4664
4664
|
this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = n.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = r, this.demo = t, Object.assign(this.rawBody, (a = r.connect) == null ? void 0 : a.additionalBodyProps), this.totalMessagesMaxCharLength = (o = r == null ? void 0 : r.requestBodyLimits) == null ? void 0 : o.totalMessagesMaxCharLength, this.maxMessages = (s = r == null ? void 0 : r.requestBodyLimits) == null ? void 0 : s.maxMessages, gp.set(r, this, e), r.connect && (this.connectSettings = r.connect), this.demo && ((i = (l = this.connectSettings).url) !== null && i !== void 0 || (l.url = st.URL)), this.connectSettings.websocket && Mn.setup(this), this.stream = ((c = this.deepChat.connect) == null ? void 0 : c.stream) || De.checkForStream(this.deepChat);
|
|
4665
4665
|
}
|
|
4666
|
-
return
|
|
4666
|
+
return k(n, [{
|
|
4667
4667
|
key: "verifyKey",
|
|
4668
4668
|
value: function(e, t) {
|
|
4669
4669
|
}
|
|
@@ -4862,11 +4862,11 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4862
4862
|
}(), _e = /* @__PURE__ */ function(n) {
|
|
4863
4863
|
function r(e, t, i, a, o) {
|
|
4864
4864
|
var s;
|
|
4865
|
-
|
|
4865
|
+
w(this, r);
|
|
4866
4866
|
var l;
|
|
4867
4867
|
return s = U(this, r, [e, o]), s.insertKeyPlaceholderText = "API Key", s.keyHelpUrl = "", Object.assign(s.rawBody, (l = e.connect) == null ? void 0 : l.additionalBodyProps), s.keyVerificationDetails = t, s.buildHeadersFunc = i, a && s.setApiKeyProperties(a), s.connectSettings = s.buildConnectSettings(s.key || "", e.connect), s;
|
|
4868
4868
|
}
|
|
4869
|
-
return z(r, n),
|
|
4869
|
+
return z(r, n), k(r, [{
|
|
4870
4870
|
key: "setApiKeyProperties",
|
|
4871
4871
|
value: function(t) {
|
|
4872
4872
|
this.key = t.key, t.validateKeyProperty && (this.validateKeyProperty = t.validateKeyProperty);
|
|
@@ -4897,9 +4897,9 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4897
4897
|
}]);
|
|
4898
4898
|
}(Rr), vp = /* @__PURE__ */ function() {
|
|
4899
4899
|
function n() {
|
|
4900
|
-
|
|
4900
|
+
w(this, n);
|
|
4901
4901
|
}
|
|
4902
|
-
return
|
|
4902
|
+
return k(n, null, [{
|
|
4903
4903
|
key: "waitForPropertiesToBeUpdatedBeforeRender",
|
|
4904
4904
|
value: function(e) {
|
|
4905
4905
|
e._propUpdated_ = !1, setTimeout(function() {
|
|
@@ -4915,12 +4915,12 @@ var st = Hl, Mn = /* @__PURE__ */ function() {
|
|
|
4915
4915
|
}(), pa = /* @__PURE__ */ function(n) {
|
|
4916
4916
|
function r() {
|
|
4917
4917
|
var e;
|
|
4918
|
-
return
|
|
4918
|
+
return w(this, r), e = U(this, r), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(r._attributeToProperty_).forEach(function(t) {
|
|
4919
4919
|
var i = r._attributeToProperty_[t];
|
|
4920
4920
|
e.constructPropertyAccessors(i), e.hasOwnProperty(t) || e.constructPropertyAccessors(i, t);
|
|
4921
4921
|
}), e;
|
|
4922
4922
|
}
|
|
4923
|
-
return z(r, n),
|
|
4923
|
+
return z(r, n), k(r, [{
|
|
4924
4924
|
key: "constructPropertyAccessors",
|
|
4925
4925
|
value: (
|
|
4926
4926
|
// need to be called here as accessors need to be set for the class instance
|
|
@@ -4976,7 +4976,7 @@ var yp = pa, bp = `<?xml version="1.0" standalone="no"?>
|
|
|
4976
4976
|
L638.013,797.271c81.076-16.837,141.797-85.875,141.797-168.603C779.81,608.194,775.724,588.729,768.896,570.513L768.896,570.513z"
|
|
4977
4977
|
/>
|
|
4978
4978
|
</svg>
|
|
4979
|
-
`,
|
|
4979
|
+
`, wp = `<?xml version="1.0" standalone="no"?>
|
|
4980
4980
|
<svg version="1.1"
|
|
4981
4981
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
4982
4982
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0.9em" height="0.9em"
|
|
@@ -4994,9 +4994,9 @@ var yp = pa, bp = `<?xml version="1.0" standalone="no"?>
|
|
|
4994
4994
|
</svg>
|
|
4995
4995
|
`, Le = /* @__PURE__ */ function() {
|
|
4996
4996
|
function n() {
|
|
4997
|
-
|
|
4997
|
+
w(this, n);
|
|
4998
4998
|
}
|
|
4999
|
-
return
|
|
4999
|
+
return k(n, null, [{
|
|
5000
5000
|
key: "createSVGElement",
|
|
5001
5001
|
value: function(e) {
|
|
5002
5002
|
return new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
|
@@ -5004,9 +5004,9 @@ var yp = pa, bp = `<?xml version="1.0" standalone="no"?>
|
|
|
5004
5004
|
}]);
|
|
5005
5005
|
}(), Ul = /* @__PURE__ */ function() {
|
|
5006
5006
|
function n() {
|
|
5007
|
-
|
|
5007
|
+
w(this, n);
|
|
5008
5008
|
}
|
|
5009
|
-
return
|
|
5009
|
+
return k(n, null, [{
|
|
5010
5010
|
key: "changeVisibility",
|
|
5011
5011
|
value: (
|
|
5012
5012
|
// prettier-ignore
|
|
@@ -5026,7 +5026,7 @@ var yp = pa, bp = `<?xml version="1.0" standalone="no"?>
|
|
|
5026
5026
|
value: function(e) {
|
|
5027
5027
|
var t = document.createElement("div");
|
|
5028
5028
|
t.id = "visibility-icon-container";
|
|
5029
|
-
var i = n.createIconElement(
|
|
5029
|
+
var i = n.createIconElement(wp, n.VISIBLE_ICON_ID);
|
|
5030
5030
|
i.style.display = "none", t.appendChild(i);
|
|
5031
5031
|
var a = n.createIconElement(bp, "not-visible-icon");
|
|
5032
5032
|
return t.appendChild(a), t.onclick = n.changeVisibility.bind(this, e, i, a), t;
|
|
@@ -5034,11 +5034,11 @@ var yp = pa, bp = `<?xml version="1.0" standalone="no"?>
|
|
|
5034
5034
|
}]);
|
|
5035
5035
|
}();
|
|
5036
5036
|
Ul.VISIBLE_ICON_ID = "visible-icon";
|
|
5037
|
-
var
|
|
5037
|
+
var kp = Ul, Sp = /* @__PURE__ */ function() {
|
|
5038
5038
|
function n() {
|
|
5039
|
-
|
|
5039
|
+
w(this, n);
|
|
5040
5040
|
}
|
|
5041
|
-
return
|
|
5041
|
+
return k(n, null, [{
|
|
5042
5042
|
key: "createCautionText",
|
|
5043
5043
|
value: function() {
|
|
5044
5044
|
var e = document.createElement("a");
|
|
@@ -5132,7 +5132,7 @@ var wp = Ul, Sp = /* @__PURE__ */ function() {
|
|
|
5132
5132
|
value: function(e, t) {
|
|
5133
5133
|
var i, a = document.createElement("div");
|
|
5134
5134
|
a.id = "insert-key-contents";
|
|
5135
|
-
var o = n.createInput(t.insertKeyPlaceholderText), s = o.children[0], l =
|
|
5135
|
+
var o = n.createInput(t.insertKeyPlaceholderText), s = o.children[0], l = kp.create(s);
|
|
5136
5136
|
o.appendChild(l), a.appendChild(o);
|
|
5137
5137
|
var c = n.createStartButton(), u = n.createHelpTextContainer(t.keyHelpUrl, (i = t.deepChat._insertKeyViewStyles) == null ? void 0 : i.displayCautionText), d = u.helpTextContainerElement, p = u.failTextElement;
|
|
5138
5138
|
return a.appendChild(c), a.appendChild(d), n.addVerificationEvents(s, c, p, e, t), a;
|
|
@@ -5154,9 +5154,9 @@ var wp = Ul, Sp = /* @__PURE__ */ function() {
|
|
|
5154
5154
|
}]);
|
|
5155
5155
|
}(), bn = /* @__PURE__ */ function() {
|
|
5156
5156
|
function n() {
|
|
5157
|
-
|
|
5157
|
+
w(this, n);
|
|
5158
5158
|
}
|
|
5159
|
-
return
|
|
5159
|
+
return k(n, null, [{
|
|
5160
5160
|
key: "enableButtons",
|
|
5161
5161
|
value: function(e, t) {
|
|
5162
5162
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
@@ -5358,11 +5358,11 @@ var So = bn, _o = {
|
|
|
5358
5358
|
}, Gt = /* @__PURE__ */ function(n) {
|
|
5359
5359
|
function r(e) {
|
|
5360
5360
|
var t;
|
|
5361
|
-
|
|
5361
|
+
w(this, r);
|
|
5362
5362
|
var i, a;
|
|
5363
5363
|
return t = U(this, r, [e]), t._isModelLoaded = !1, t._isModelLoading = !1, t._loadOnFirstMessage = !1, t._webModel = {}, t.permittedErrorPrefixes = [r.MULTIPLE_MODELS_ERROR, r.WEB_LLM_NOT_FOUND_ERROR, r.GENERIC_ERROR], t._conversationHistory = [], H(e.webModel) == "object" && (t._webModel = e.webModel), (i = t._webModel.load) != null && i.clearCache && r.clearAllCache(), t.findModelInWindow(e), t.canSendMessage = t.canSubmit.bind(An(t)), t._chatEl = (a = e.shadowRoot) == null ? void 0 : a.children[0], e.history && r.setUpHistory(t._conversationHistory, e.history), t;
|
|
5364
5364
|
}
|
|
5365
|
-
return z(r, n),
|
|
5365
|
+
return z(r, n), k(r, [{
|
|
5366
5366
|
key: "setUpMessages",
|
|
5367
5367
|
value: function(t) {
|
|
5368
5368
|
var i = this;
|
|
@@ -5822,9 +5822,9 @@ var So = bn, _o = {
|
|
|
5822
5822
|
Gt.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", Gt.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", Gt.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", Gt.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", Gt.MODULE_SEARCH_LIMIT_S = 5;
|
|
5823
5823
|
var La = Gt, Co = /* @__PURE__ */ function() {
|
|
5824
5824
|
function n() {
|
|
5825
|
-
|
|
5825
|
+
w(this, n);
|
|
5826
5826
|
}
|
|
5827
|
-
return
|
|
5827
|
+
return k(n, null, [{
|
|
5828
5828
|
key: "buildHeaders",
|
|
5829
5829
|
value: function(e) {
|
|
5830
5830
|
return {
|
|
@@ -5853,11 +5853,11 @@ var La = Gt, Co = /* @__PURE__ */ function() {
|
|
|
5853
5853
|
}(), zl = /* @__PURE__ */ function(n) {
|
|
5854
5854
|
function r(e, t, i, a, o, s) {
|
|
5855
5855
|
var l;
|
|
5856
|
-
return
|
|
5856
|
+
return w(this, r), l = U(this, r, [e, Co.buildKeyVerificationDetails(), Co.buildHeaders, o, s]), l.insertKeyPlaceholderText = "Hugging Face Token", l.keyHelpUrl = "https://huggingface.co/settings/tokens", l.introPanelMarkUp = `
|
|
5857
5857
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Hugging Face</b></div>
|
|
5858
5858
|
<p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>`, l.permittedErrorPrefixes = ["Authorization header"], l.url = "".concat(r.URL_PREFIX).concat(i), l.textInputPlaceholderText = t, H(a) == "object" && (a.model && (l.url = "".concat(r.URL_PREFIX).concat(a.model)), a.options && (l.rawBody.options = a.options), a.parameters && (l.rawBody.parameters = a.parameters)), l;
|
|
5859
5859
|
}
|
|
5860
|
-
return z(r, n),
|
|
5860
|
+
return z(r, n), k(r, [{
|
|
5861
5861
|
key: "preprocessBody",
|
|
5862
5862
|
value: function(t, i, a) {
|
|
5863
5863
|
var o, s = JSON.parse(JSON.stringify(t)), l = i[i.length - 1].text;
|
|
@@ -5897,9 +5897,9 @@ zl.URL_PREFIX = "https://api-inference.huggingface.co/models/";
|
|
|
5897
5897
|
var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
5898
5898
|
function r(e, t, i, a, o, s) {
|
|
5899
5899
|
var l;
|
|
5900
|
-
return
|
|
5900
|
+
return w(this, r), l = U(this, r, [e, t, i, a, o, s]), l.isTextInputDisabled = !0, l.canSendMessage = r.canSendFile, l;
|
|
5901
5901
|
}
|
|
5902
|
-
return z(r, n),
|
|
5902
|
+
return z(r, n), k(r, [{
|
|
5903
5903
|
key: "preprocessBody",
|
|
5904
5904
|
value: function(t, i, a) {
|
|
5905
5905
|
return a[0];
|
|
@@ -5944,13 +5944,13 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
5944
5944
|
}]);
|
|
5945
5945
|
}(It), _p = /* @__PURE__ */ function(n) {
|
|
5946
5946
|
function r(e) {
|
|
5947
|
-
|
|
5947
|
+
w(this, r);
|
|
5948
5948
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.audioClassification, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
5949
5949
|
return U(this, r, [e, "Attach an audio file", "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", o, s, {
|
|
5950
5950
|
audio: {}
|
|
5951
5951
|
}]);
|
|
5952
5952
|
}
|
|
5953
|
-
return z(r, n),
|
|
5953
|
+
return z(r, n), k(r, [{
|
|
5954
5954
|
key: "extractPollResultData",
|
|
5955
5955
|
value: function() {
|
|
5956
5956
|
var e = _(/* @__PURE__ */ m().mark(function i(a) {
|
|
@@ -5989,13 +5989,13 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
5989
5989
|
}]);
|
|
5990
5990
|
}(Oa), Cp = /* @__PURE__ */ function(n) {
|
|
5991
5991
|
function r(e) {
|
|
5992
|
-
|
|
5992
|
+
w(this, r);
|
|
5993
5993
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.imageClassification, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
5994
5994
|
return U(this, r, [e, "Attach an image file", "google/vit-base-patch16-224", o, s, {
|
|
5995
5995
|
images: {}
|
|
5996
5996
|
}]);
|
|
5997
5997
|
}
|
|
5998
|
-
return z(r, n),
|
|
5998
|
+
return z(r, n), k(r, [{
|
|
5999
5999
|
key: "extractPollResultData",
|
|
6000
6000
|
value: function() {
|
|
6001
6001
|
var e = _(/* @__PURE__ */ m().mark(function i(a) {
|
|
@@ -6034,9 +6034,9 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6034
6034
|
}]);
|
|
6035
6035
|
}(Oa), jn = "data:image/png;base64,", ut = /* @__PURE__ */ function() {
|
|
6036
6036
|
function n() {
|
|
6037
|
-
|
|
6037
|
+
w(this, n);
|
|
6038
6038
|
}
|
|
6039
|
-
return
|
|
6039
|
+
return k(n, null, [{
|
|
6040
6040
|
key: "buildHeaders",
|
|
6041
6041
|
value: function(e) {
|
|
6042
6042
|
return {
|
|
@@ -6063,13 +6063,13 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6063
6063
|
}(), Vr = /* @__PURE__ */ function(n) {
|
|
6064
6064
|
function r(e, t, i, a, o) {
|
|
6065
6065
|
var s;
|
|
6066
|
-
return
|
|
6066
|
+
return w(this, r), s = U(this, r, [e, t, i, a, o]), s.insertKeyPlaceholderText = "Stability AI API Key", s.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", s.permittedErrorPrefixes = ["Incorrect", "invalid_"], s;
|
|
6067
6067
|
}
|
|
6068
|
-
return z(r, n),
|
|
6069
|
-
}(_e),
|
|
6068
|
+
return z(r, n), k(r);
|
|
6069
|
+
}(_e), xp = /* @__PURE__ */ function(n) {
|
|
6070
6070
|
function r(e) {
|
|
6071
6071
|
var t;
|
|
6072
|
-
|
|
6072
|
+
w(this, r);
|
|
6073
6073
|
var i, a = JSON.parse(JSON.stringify(e.directConnection)), o = a == null ? void 0 : a.stabilityAI, s = {
|
|
6074
6074
|
images: {
|
|
6075
6075
|
files: {
|
|
@@ -6086,7 +6086,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6086
6086
|
var l = (i = a == null ? void 0 : a.stabilityAI) == null ? void 0 : i.imageToImageUpscale;
|
|
6087
6087
|
return H(l) == "object" && (l.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(l.engine_id, "/image-to-image/upscale")), r.cleanConfig(l), Object.assign(t.rawBody, l)), t.canSendMessage = r.canSendFileMessage, t;
|
|
6088
6088
|
}
|
|
6089
|
-
return z(r, n),
|
|
6089
|
+
return z(r, n), k(r, [{
|
|
6090
6090
|
key: "createFormDataBody",
|
|
6091
6091
|
value: function(t, i) {
|
|
6092
6092
|
var a = new FormData();
|
|
@@ -6170,10 +6170,10 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6170
6170
|
return !!(i != null && i[0]);
|
|
6171
6171
|
}
|
|
6172
6172
|
}]);
|
|
6173
|
-
}(Vr),
|
|
6173
|
+
}(Vr), Ep = /* @__PURE__ */ function(n) {
|
|
6174
6174
|
function r(e) {
|
|
6175
6175
|
var t;
|
|
6176
|
-
|
|
6176
|
+
w(this, r);
|
|
6177
6177
|
var i, a = JSON.parse(JSON.stringify(e.directConnection)), o = a == null ? void 0 : a.stabilityAI, s = {
|
|
6178
6178
|
images: {
|
|
6179
6179
|
files: {
|
|
@@ -6190,7 +6190,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6190
6190
|
var l = (i = a == null ? void 0 : a.stabilityAI) == null ? void 0 : i.imageToImageMasking;
|
|
6191
6191
|
return H(l) == "object" && (l.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(l.engine_id, "/image-to-image/masking")), l.weight !== void 0 && l.weight !== null && (t._imageWeight = l.weight), l.mask_source !== void 0 && l.mask_source !== null && (t._maskSource = l.mask_source), r.cleanConfig(l), Object.assign(t.rawBody, l)), t.canSendMessage = r.canSendFileTextMessage, t;
|
|
6192
6192
|
}
|
|
6193
|
-
return z(r, n),
|
|
6193
|
+
return z(r, n), k(r, [{
|
|
6194
6194
|
key: "createFormDataBody",
|
|
6195
6195
|
value: function(t, i, a, o) {
|
|
6196
6196
|
var s = new FormData();
|
|
@@ -6276,13 +6276,13 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6276
6276
|
}]);
|
|
6277
6277
|
}(Vr), Ap = /* @__PURE__ */ function(n) {
|
|
6278
6278
|
function r(e) {
|
|
6279
|
-
|
|
6279
|
+
w(this, r);
|
|
6280
6280
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.audioSpeechRecognition, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
6281
6281
|
return U(this, r, [e, "Attach an audio file", "facebook/wav2vec2-large-960h-lv60-self", o, s, {
|
|
6282
6282
|
audio: {}
|
|
6283
6283
|
}]);
|
|
6284
6284
|
}
|
|
6285
|
-
return z(r, n),
|
|
6285
|
+
return z(r, n), k(r, [{
|
|
6286
6286
|
key: "extractPollResultData",
|
|
6287
6287
|
value: function() {
|
|
6288
6288
|
var e = _(/* @__PURE__ */ m().mark(function i(a) {
|
|
@@ -6320,11 +6320,11 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6320
6320
|
}]);
|
|
6321
6321
|
}(Oa), Tp = /* @__PURE__ */ function(n) {
|
|
6322
6322
|
function r(e) {
|
|
6323
|
-
|
|
6323
|
+
w(this, r);
|
|
6324
6324
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.textGeneration, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
6325
6325
|
return U(this, r, [e, "Once upon a time", "gpt2", o, s]);
|
|
6326
6326
|
}
|
|
6327
|
-
return z(r, n),
|
|
6327
|
+
return z(r, n), k(r, [{
|
|
6328
6328
|
key: "extractResultData",
|
|
6329
6329
|
value: function() {
|
|
6330
6330
|
var e = _(/* @__PURE__ */ m().mark(function i(a) {
|
|
@@ -6356,11 +6356,11 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6356
6356
|
}(It), Rp = /* @__PURE__ */ function(n) {
|
|
6357
6357
|
function r(e) {
|
|
6358
6358
|
var t;
|
|
6359
|
-
|
|
6359
|
+
w(this, r);
|
|
6360
6360
|
var i, a, o, s = (a = (i = e.directConnection) == null ? void 0 : i.huggingFace) == null ? void 0 : a.questionAnswer, l = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6361
6361
|
return t = U(this, r, [e, "Ask a question", "bert-large-uncased-whole-word-masking-finetuned-squad", s, l]), t.permittedErrorPrefixes = ["Authorization header", "Error in"], t.context = s.context, t;
|
|
6362
6362
|
}
|
|
6363
|
-
return z(r, n),
|
|
6363
|
+
return z(r, n), k(r, [{
|
|
6364
6364
|
key: "preprocessBody",
|
|
6365
6365
|
value: function(t, i) {
|
|
6366
6366
|
var a = i[i.length - 1].text;
|
|
@@ -6404,11 +6404,11 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6404
6404
|
}]);
|
|
6405
6405
|
}(It), Lp = /* @__PURE__ */ function(n) {
|
|
6406
6406
|
function r(e) {
|
|
6407
|
-
|
|
6407
|
+
w(this, r);
|
|
6408
6408
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.summarization, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
6409
6409
|
return U(this, r, [e, "Insert text to summarize", "facebook/bart-large-cnn", o, s]);
|
|
6410
6410
|
}
|
|
6411
|
-
return z(r, n),
|
|
6411
|
+
return z(r, n), k(r, [{
|
|
6412
6412
|
key: "extractResultData",
|
|
6413
6413
|
value: function() {
|
|
6414
6414
|
var e = _(/* @__PURE__ */ m().mark(function i(a) {
|
|
@@ -6440,11 +6440,11 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6440
6440
|
}(It), Op = /* @__PURE__ */ function(n) {
|
|
6441
6441
|
function r(e) {
|
|
6442
6442
|
var t, i;
|
|
6443
|
-
|
|
6443
|
+
w(this, r);
|
|
6444
6444
|
var a, o, s, l = (o = (a = e.directConnection) == null ? void 0 : a.huggingFace) == null ? void 0 : o.conversation, c = (s = e.directConnection) == null ? void 0 : s.huggingFace;
|
|
6445
6445
|
return i = U(this, r, [e, "Ask me anything!", "facebook/blenderbot-400M-distill", l, c]), (t = i.maxMessages) !== null && t !== void 0 || (i.maxMessages = -1), i;
|
|
6446
6446
|
}
|
|
6447
|
-
return z(r, n),
|
|
6447
|
+
return z(r, n), k(r, [{
|
|
6448
6448
|
key: "processMessages",
|
|
6449
6449
|
value: function(t) {
|
|
6450
6450
|
var i = t.filter(function(c) {
|
|
@@ -6511,7 +6511,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6511
6511
|
}(It), Ip = /* @__PURE__ */ function(n) {
|
|
6512
6512
|
function r(e) {
|
|
6513
6513
|
var t;
|
|
6514
|
-
|
|
6514
|
+
w(this, r);
|
|
6515
6515
|
var i, a = JSON.parse(JSON.stringify(e.directConnection)), o = a.stabilityAI, s = {
|
|
6516
6516
|
images: {
|
|
6517
6517
|
files: {
|
|
@@ -6527,7 +6527,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6527
6527
|
var l = (i = a.stabilityAI) == null ? void 0 : i.imageToImage;
|
|
6528
6528
|
return H(l) == "object" && (l.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(l.engine_id, "/text-to-image")), l.weight !== void 0 && l.weight !== null && (t._imageWeight = l.weight), r.cleanConfig(l), Object.assign(t.rawBody, l)), t.canSendMessage = r.canSendFileTextMessage, t;
|
|
6529
6529
|
}
|
|
6530
|
-
return z(r, n),
|
|
6530
|
+
return z(r, n), k(r, [{
|
|
6531
6531
|
key: "createFormDataBody",
|
|
6532
6532
|
value: function(t, i, a) {
|
|
6533
6533
|
var o = new FormData();
|
|
@@ -6613,11 +6613,11 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6613
6613
|
}]);
|
|
6614
6614
|
}(Vr), Mp = /* @__PURE__ */ function(n) {
|
|
6615
6615
|
function r(e) {
|
|
6616
|
-
|
|
6616
|
+
w(this, r);
|
|
6617
6617
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.translation, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
6618
6618
|
return U(this, r, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", o, s]);
|
|
6619
6619
|
}
|
|
6620
|
-
return z(r, n),
|
|
6620
|
+
return z(r, n), k(r, [{
|
|
6621
6621
|
key: "extractResultData",
|
|
6622
6622
|
value: function() {
|
|
6623
6623
|
var e = _(/* @__PURE__ */ m().mark(function i(a) {
|
|
@@ -6649,7 +6649,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6649
6649
|
}(It), Pp = /* @__PURE__ */ function(n) {
|
|
6650
6650
|
function r(e) {
|
|
6651
6651
|
var t;
|
|
6652
|
-
|
|
6652
|
+
w(this, r);
|
|
6653
6653
|
var i, a = JSON.parse(JSON.stringify(e.directConnection)), o = a.stabilityAI;
|
|
6654
6654
|
t = U(this, r, [e, ut.buildKeyVerificationDetails(), ut.buildHeaders, o]), t.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image", t.textInputPlaceholderText = "Describe an image", t.introPanelMarkUp = `
|
|
6655
6655
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Stability AI: Text to Image</b></div>
|
|
@@ -6658,7 +6658,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6658
6658
|
var s = (i = a.stabilityAI) == null ? void 0 : i.textToImage;
|
|
6659
6659
|
return H(s) == "object" && (s.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(s.engine_id, "/text-to-image")), s.weight !== void 0 && s.weight !== null && (t._imageWeight = s.weight), r.cleanConfig(s), Object.assign(t.rawBody, s)), t.canSendMessage = r.canSendTextMessage, t;
|
|
6660
6660
|
}
|
|
6661
|
-
return z(r, n),
|
|
6661
|
+
return z(r, n), k(r, [{
|
|
6662
6662
|
key: "preprocessBody",
|
|
6663
6663
|
value: function(t, i) {
|
|
6664
6664
|
var a = JSON.parse(JSON.stringify(t)), o = {
|
|
@@ -6738,14 +6738,14 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6738
6738
|
}(Vr), Fp = /* @__PURE__ */ function(n) {
|
|
6739
6739
|
function r(e) {
|
|
6740
6740
|
var t;
|
|
6741
|
-
|
|
6741
|
+
w(this, r);
|
|
6742
6742
|
var i, a, o, s = (a = (i = e.directConnection) == null ? void 0 : i.huggingFace) == null ? void 0 : a.fillMask, l = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6743
6743
|
return t = U(this, r, [e, "The goal of life is [MASK].", "bert-base-uncased", s, l]), t.introPanelMarkUp = `
|
|
6744
6744
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Hugging Face</b></div>
|
|
6745
6745
|
<p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>
|
|
6746
6746
|
<p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>`, t.permittedErrorPrefixes = ["Authorization header", "No mask_token"], t;
|
|
6747
6747
|
}
|
|
6748
|
-
return z(r, n),
|
|
6748
|
+
return z(r, n), k(r, [{
|
|
6749
6749
|
key: "extractResultData",
|
|
6750
6750
|
value: function() {
|
|
6751
6751
|
var e = _(/* @__PURE__ */ m().mark(function i(a) {
|
|
@@ -6774,11 +6774,11 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6774
6774
|
return t;
|
|
6775
6775
|
}()
|
|
6776
6776
|
}]);
|
|
6777
|
-
}(It),
|
|
6777
|
+
}(It), xo = /* @__PURE__ */ function() {
|
|
6778
6778
|
function n() {
|
|
6779
|
-
|
|
6779
|
+
w(this, n);
|
|
6780
6780
|
}
|
|
6781
|
-
return
|
|
6781
|
+
return k(n, null, [{
|
|
6782
6782
|
key: "buildHeaders",
|
|
6783
6783
|
value: function(e) {
|
|
6784
6784
|
return {
|
|
@@ -6810,16 +6810,16 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6810
6810
|
}(), Ia = /* @__PURE__ */ function(n) {
|
|
6811
6811
|
function r(e, t, i, a, o) {
|
|
6812
6812
|
var s;
|
|
6813
|
-
return
|
|
6813
|
+
return w(this, r), s = U(this, r, [e, xo.buildKeyVerificationDetails(), xo.buildHeaders, o]), s.insertKeyPlaceholderText = "Cohere API Key", s.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", s.permittedErrorPrefixes = ["invalid"], s.url = t, s.textInputPlaceholderText = i, a && H(a) == "object" && Object.assign(s.rawBody, a), s;
|
|
6814
6814
|
}
|
|
6815
|
-
return z(r, n),
|
|
6815
|
+
return z(r, n), k(r);
|
|
6816
6816
|
}(_e), Np = /* @__PURE__ */ function(n) {
|
|
6817
6817
|
function r(e) {
|
|
6818
|
-
|
|
6818
|
+
w(this, r);
|
|
6819
6819
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.cohere) == null ? void 0 : i.textGeneration, s = (a = e.directConnection) == null ? void 0 : a.cohere;
|
|
6820
6820
|
return U(this, r, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", o, s]);
|
|
6821
6821
|
}
|
|
6822
|
-
return z(r, n),
|
|
6822
|
+
return z(r, n), k(r, [{
|
|
6823
6823
|
key: "preprocessBody",
|
|
6824
6824
|
value: function(t, i) {
|
|
6825
6825
|
var a = JSON.parse(JSON.stringify(t)), o = i[i.length - 1].text;
|
|
@@ -6884,11 +6884,11 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6884
6884
|
}]);
|
|
6885
6885
|
}(Ia), Dp = /* @__PURE__ */ function(n) {
|
|
6886
6886
|
function r(e) {
|
|
6887
|
-
|
|
6887
|
+
w(this, r);
|
|
6888
6888
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.cohere) == null ? void 0 : i.summarization, s = (a = e.directConnection) == null ? void 0 : a.cohere;
|
|
6889
6889
|
return U(this, r, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", o, s]);
|
|
6890
6890
|
}
|
|
6891
|
-
return z(r, n),
|
|
6891
|
+
return z(r, n), k(r, [{
|
|
6892
6892
|
key: "preprocessBody",
|
|
6893
6893
|
value: function(t, i) {
|
|
6894
6894
|
var a = JSON.parse(JSON.stringify(t)), o = i[i.length - 1].text;
|
|
@@ -6952,9 +6952,9 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
6952
6952
|
}]);
|
|
6953
6953
|
}(Ia), Se = /* @__PURE__ */ function() {
|
|
6954
6954
|
function n() {
|
|
6955
|
-
|
|
6955
|
+
w(this, n);
|
|
6956
6956
|
}
|
|
6957
|
-
return
|
|
6957
|
+
return k(n, null, [{
|
|
6958
6958
|
key: "buildHeaders",
|
|
6959
6959
|
value: function(e) {
|
|
6960
6960
|
return {
|
|
@@ -7013,7 +7013,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
7013
7013
|
}(), ha = /* @__PURE__ */ function(n) {
|
|
7014
7014
|
function r(e) {
|
|
7015
7015
|
var t, i, a;
|
|
7016
|
-
|
|
7016
|
+
w(this, r);
|
|
7017
7017
|
var o, s, l, c = JSON.parse(JSON.stringify(e.directConnection)), u = c == null ? void 0 : c.openAI;
|
|
7018
7018
|
a = U(this, r, [e, Se.buildKeyVerificationDetails(), Se.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 = `
|
|
7019
7019
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Text To Speech</b></div>
|
|
@@ -7022,7 +7022,7 @@ var It = zl, Oa = /* @__PURE__ */ function(n) {
|
|
|
7022
7022
|
var d = (o = c == null ? void 0 : c.openAI) == null ? void 0 : o.textToSpeech;
|
|
7023
7023
|
return H(d) == "object" && Object.assign(a.rawBody, d), (t = (s = a.rawBody).model) !== null && t !== void 0 || (s.model = r.DEFAULT_MODEL), (i = (l = a.rawBody).voice) !== null && i !== void 0 || (l.voice = r.DEFAULT_VOIDE), a.textInputPlaceholderText = "Insert text to generate audio", a.rawBody.response_format = "mp3", a;
|
|
7024
7024
|
}
|
|
7025
|
-
return z(r, n),
|
|
7025
|
+
return z(r, n), k(r, [{
|
|
7026
7026
|
key: "preprocessBody",
|
|
7027
7027
|
value: function(t, i) {
|
|
7028
7028
|
var a, o, s = JSON.parse(JSON.stringify(t)), l = (o = (a = i[i.length - 1]) == null ? void 0 : a.text) == null ? void 0 : o.trim();
|
|
@@ -7103,7 +7103,7 @@ ha.DEFAULT_MODEL = "tts-1", ha.DEFAULT_VOIDE = "alloy";
|
|
|
7103
7103
|
var $p = ha, dr = /* @__PURE__ */ function(n) {
|
|
7104
7104
|
function r(e) {
|
|
7105
7105
|
var t, i;
|
|
7106
|
-
|
|
7106
|
+
w(this, r);
|
|
7107
7107
|
var a, o, s = JSON.parse(JSON.stringify(e.directConnection)), l = s == null ? void 0 : s.openAI;
|
|
7108
7108
|
i = U(this, r, [e, Se.buildKeyVerificationDetails(), Se.buildHeaders, l, {
|
|
7109
7109
|
audio: {}
|
|
@@ -7115,7 +7115,7 @@ var $p = ha, dr = /* @__PURE__ */ function(n) {
|
|
|
7115
7115
|
var c = (a = s == null ? void 0 : s.openAI) == null ? void 0 : a.audio;
|
|
7116
7116
|
return H(c) == "object" && (i.processConfig(c), r.cleanConfig(c), Object.assign(i.rawBody, c)), (t = (o = i.rawBody).model) !== null && t !== void 0 || (o.model = r.DEFAULT_MODEL), i.rawBody.response_format = "json", i.canSendMessage = r.canSendFileMessage, i;
|
|
7117
7117
|
}
|
|
7118
|
-
return z(r, n),
|
|
7118
|
+
return z(r, n), k(r, [{
|
|
7119
7119
|
key: "processConfig",
|
|
7120
7120
|
value: function(t) {
|
|
7121
7121
|
t != null && t.type && t.type === "translation" && (this._service_url = r.AUDIO_TRANSLATIONS_URL, delete t.language);
|
|
@@ -7207,11 +7207,11 @@ var $p = ha, dr = /* @__PURE__ */ function(n) {
|
|
|
7207
7207
|
}]);
|
|
7208
7208
|
}(_e);
|
|
7209
7209
|
dr.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", dr.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", dr.DEFAULT_MODEL = "whisper-1";
|
|
7210
|
-
var Bp = dr,
|
|
7210
|
+
var Bp = dr, Et = /* @__PURE__ */ function() {
|
|
7211
7211
|
function n() {
|
|
7212
|
-
|
|
7212
|
+
w(this, n);
|
|
7213
7213
|
}
|
|
7214
|
-
return
|
|
7214
|
+
return k(n, null, [{
|
|
7215
7215
|
key: "buildTextToSpeechHeaders",
|
|
7216
7216
|
value: function(e, t) {
|
|
7217
7217
|
return {
|
|
@@ -7310,18 +7310,18 @@ var Bp = dr, xt = /* @__PURE__ */ function() {
|
|
|
7310
7310
|
}(), jp = /* @__PURE__ */ function(n) {
|
|
7311
7311
|
function r(e, t, i, a, o) {
|
|
7312
7312
|
var s;
|
|
7313
|
-
return
|
|
7313
|
+
return w(this, r), s = U(this, r, [e, Et.buildLanguageKeyVerificationDetails(i), t, a, o]), s.insertKeyPlaceholderText = "Azure Language Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7314
7314
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", s.permittedErrorPrefixes = ["Access"], s;
|
|
7315
7315
|
}
|
|
7316
|
-
return z(r, n),
|
|
7316
|
+
return z(r, n), k(r);
|
|
7317
7317
|
}(_e), Hp = /* @__PURE__ */ function(n) {
|
|
7318
7318
|
function r(e) {
|
|
7319
7319
|
var t, i;
|
|
7320
|
-
|
|
7320
|
+
w(this, r);
|
|
7321
7321
|
var a, o, s, l, c = (o = (a = e.directConnection) == null ? void 0 : a.azure) == null ? void 0 : o.summarization, u = (s = e.directConnection) == null ? void 0 : s.azure;
|
|
7322
|
-
return i = U(this, r, [e,
|
|
7322
|
+
return i = U(this, r, [e, Et.buildSummarizationHeader, c.endpoint, u]), i.url = "", i.textInputPlaceholderText = "Insert text to summarize", (t = (l = i.rawBody).language) !== null && t !== 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;
|
|
7323
7323
|
}
|
|
7324
|
-
return z(r, n),
|
|
7324
|
+
return z(r, n), k(r, [{
|
|
7325
7325
|
key: "preprocessBody",
|
|
7326
7326
|
value: function(t, i) {
|
|
7327
7327
|
var a = i[i.length - 1].text;
|
|
@@ -7455,9 +7455,9 @@ var Bp = dr, xt = /* @__PURE__ */ function() {
|
|
|
7455
7455
|
}]);
|
|
7456
7456
|
}(jp), _i = /* @__PURE__ */ function() {
|
|
7457
7457
|
function n() {
|
|
7458
|
-
|
|
7458
|
+
w(this, n);
|
|
7459
7459
|
}
|
|
7460
|
-
return
|
|
7460
|
+
return k(n, null, [{
|
|
7461
7461
|
key: "poll",
|
|
7462
7462
|
value: function() {
|
|
7463
7463
|
var r = _(/* @__PURE__ */ m().mark(function t(i, a) {
|
|
@@ -7550,7 +7550,7 @@ var Bp = dr, xt = /* @__PURE__ */ function() {
|
|
|
7550
7550
|
}(), Up = /* @__PURE__ */ function(n) {
|
|
7551
7551
|
function r(e) {
|
|
7552
7552
|
var t;
|
|
7553
|
-
|
|
7553
|
+
w(this, r);
|
|
7554
7554
|
var i, a = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
|
|
7555
7555
|
return t = U(this, r, [e, _i.buildKeyVerificationDetails(), _i.buildHeaders, a, {
|
|
7556
7556
|
audio: {}
|
|
@@ -7561,7 +7561,7 @@ var Bp = dr, xt = /* @__PURE__ */ function() {
|
|
|
7561
7561
|
Click <a href="https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started">here</a> for more info.
|
|
7562
7562
|
</p>`, t.url = "https://api.assemblyai.com/v2/upload", t.isTextInputDisabled = !0, t.textInputPlaceholderText = "Upload an audio file", t.permittedErrorPrefixes = ["Authentication", "Invalid"], t.canSendMessage = r.canFileSendMessage, t;
|
|
7563
7563
|
}
|
|
7564
|
-
return z(r, n),
|
|
7564
|
+
return z(r, n), k(r, [{
|
|
7565
7565
|
key: "callServiceAPI",
|
|
7566
7566
|
value: function() {
|
|
7567
7567
|
var e = _(/* @__PURE__ */ m().mark(function i(a, o, s) {
|
|
@@ -7632,23 +7632,23 @@ var Bp = dr, xt = /* @__PURE__ */ function() {
|
|
|
7632
7632
|
}(_e), Wl = /* @__PURE__ */ function(n) {
|
|
7633
7633
|
function r(e, t, i, a, o) {
|
|
7634
7634
|
var s;
|
|
7635
|
-
return
|
|
7635
|
+
return w(this, r), s = U(this, r, [e, Et.buildSpeechKeyVerificationDetails(i), t, a, o]), s.insertKeyPlaceholderText = "Azure Speech Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7636
7636
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", s;
|
|
7637
7637
|
}
|
|
7638
|
-
return z(r, n),
|
|
7638
|
+
return z(r, n), k(r);
|
|
7639
7639
|
}(_e), ql = /* @__PURE__ */ function(n) {
|
|
7640
7640
|
function r(e) {
|
|
7641
7641
|
var t, i, a, o;
|
|
7642
|
-
|
|
7642
|
+
w(this, r);
|
|
7643
7643
|
var s, l, c, u, d, p, h = (l = (s = e.directConnection) == null ? void 0 : s.azure) == null ? void 0 : l.textToSpeech, f = (c = e.directConnection) == null ? void 0 : c.azure;
|
|
7644
|
-
return o = U(this, r, [e,
|
|
7644
|
+
return o = U(this, r, [e, Et.buildTextToSpeechHeaders.bind({}, (h == null ? void 0 : h.outputFormat) || "audio-16khz-128kbitrate-mono-mp3"), h.region, f]), o.introPanelMarkUp = `
|
|
7645
7645
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Text To Speech</b></div>
|
|
7646
7646
|
<p>Insert text to synthesize it to audio.
|
|
7647
7647
|
<p>
|
|
7648
7648
|
Click <a href="`.concat(r.HELP_LINK, `">here</a> for more info.
|
|
7649
7649
|
</p>`), o.url = "", Object.assign(o.rawBody, h), (t = (u = o.rawBody).lang) !== null && t !== void 0 || (u.lang = "en-US"), (i = (d = o.rawBody).name) !== null && i !== void 0 || (d.name = "en-US-JennyNeural"), (a = (p = o.rawBody).gender) !== null && a !== void 0 || (p.gender = "Female"), o.url = "https://".concat(h.region, ".tts.speech.microsoft.com/cognitiveservices/v1"), o;
|
|
7650
7650
|
}
|
|
7651
|
-
return z(r, n),
|
|
7651
|
+
return z(r, n), k(r, [{
|
|
7652
7652
|
key: "preprocessBody",
|
|
7653
7653
|
value: function(t, i) {
|
|
7654
7654
|
var a = i[i.length - 1].text;
|
|
@@ -7720,7 +7720,7 @@ ql.HELP_LINK = // eslint-disable-next-line max-len
|
|
|
7720
7720
|
var zp = ql, Vl = /* @__PURE__ */ function(n) {
|
|
7721
7721
|
function r(e) {
|
|
7722
7722
|
var t;
|
|
7723
|
-
|
|
7723
|
+
w(this, r);
|
|
7724
7724
|
var i, a, o, s = (a = (i = e.directConnection) == null ? void 0 : i.azure) == null ? void 0 : a.speechToText, l = (o = e.directConnection) == null ? void 0 : o.azure, c = {
|
|
7725
7725
|
audio: {
|
|
7726
7726
|
files: {
|
|
@@ -7728,7 +7728,7 @@ var zp = ql, Vl = /* @__PURE__ */ function(n) {
|
|
|
7728
7728
|
}
|
|
7729
7729
|
}
|
|
7730
7730
|
};
|
|
7731
|
-
t = U(this, r, [e,
|
|
7731
|
+
t = U(this, r, [e, Et.buildSpeechToTextHeaders, s.region, l, c]), t.introPanelMarkUp = `
|
|
7732
7732
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Speech To Text</b></div>
|
|
7733
7733
|
<p><b>Upload a .wav or .ogg audio file</b> to transcribe it into text.
|
|
7734
7734
|
<p>
|
|
@@ -7737,7 +7737,7 @@ var zp = ql, Vl = /* @__PURE__ */ function(n) {
|
|
|
7737
7737
|
var u = s.lang || "en-US";
|
|
7738
7738
|
return t.url = "https://".concat(s.region, ".stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=").concat(u, "&format=detailed"), t.recordAudio = void 0, t;
|
|
7739
7739
|
}
|
|
7740
|
-
return z(r, n),
|
|
7740
|
+
return z(r, n), k(r, [{
|
|
7741
7741
|
key: "callServiceAPI",
|
|
7742
7742
|
value: function() {
|
|
7743
7743
|
var e = _(/* @__PURE__ */ m().mark(function i(a, o, s) {
|
|
@@ -7808,12 +7808,12 @@ Vl.HELP_LINK = // eslint-disable-next-line max-len
|
|
|
7808
7808
|
var Wp = Vl, qp = /* @__PURE__ */ function(n) {
|
|
7809
7809
|
function r(e) {
|
|
7810
7810
|
var t;
|
|
7811
|
-
|
|
7811
|
+
w(this, r);
|
|
7812
7812
|
var i, a, o, s = (a = (i = e.directConnection) == null ? void 0 : i.azure) == null ? void 0 : a.translation, l = (o = e.directConnection) == null ? void 0 : o.azure;
|
|
7813
|
-
return t = U(this, r, [e,
|
|
7813
|
+
return t = U(this, r, [e, Et.buildTranslationKeyVerificationDetails(s.region), Et.buildTranslationHeaders.bind({}, s == null ? void 0 : s.region), l]), t.insertKeyPlaceholderText = "Azure Translate Subscription Key", t.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7814
7814
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", t.url = "", t.url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(s.language || "es"), t;
|
|
7815
7815
|
}
|
|
7816
|
-
return z(r, n),
|
|
7816
|
+
return z(r, n), k(r, [{
|
|
7817
7817
|
key: "preprocessBody",
|
|
7818
7818
|
value: function(t) {
|
|
7819
7819
|
var i = t[t.length - 1].text;
|
|
@@ -7878,9 +7878,9 @@ var Wp = Vl, qp = /* @__PURE__ */ function(n) {
|
|
|
7878
7878
|
}]);
|
|
7879
7879
|
}(_e), fa = /* @__PURE__ */ function() {
|
|
7880
7880
|
function n() {
|
|
7881
|
-
|
|
7881
|
+
w(this, n);
|
|
7882
7882
|
}
|
|
7883
|
-
return
|
|
7883
|
+
return k(n, null, [{
|
|
7884
7884
|
key: "storeFiles",
|
|
7885
7885
|
value: function() {
|
|
7886
7886
|
var r = _(/* @__PURE__ */ m().mark(function t(i, a, o) {
|
|
@@ -8173,7 +8173,7 @@ fa.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", f
|
|
|
8173
8173
|
var gt = fa, pr = /* @__PURE__ */ function(n) {
|
|
8174
8174
|
function r(e) {
|
|
8175
8175
|
var t, i, a;
|
|
8176
|
-
|
|
8176
|
+
w(this, r);
|
|
8177
8177
|
var o, s, l, c, u, d, p = JSON.parse(JSON.stringify(e.directConnection)), h = p.openAI;
|
|
8178
8178
|
a = U(this, r, [e, Se.buildKeyVerificationDetails(), Se.buildHeaders, h]), 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 = {
|
|
8179
8179
|
model: "gpt-4"
|
|
@@ -8188,7 +8188,7 @@ var gt = fa, pr = /* @__PURE__ */ function(n) {
|
|
|
8188
8188
|
} else (c = p.openAI) != null && c.assistant && (p.openAI.assistant = f);
|
|
8189
8189
|
return (t = (u = a.connectSettings).headers) !== null && t !== void 0 || (u.headers = {}), (i = (d = a.connectSettings.headers)["OpenAI-Beta"]) !== null && i !== void 0 || (d["OpenAI-Beta"] = "assistants=v2"), a.maxMessages = 1, a.isSSEStream = !!(a.stream && (H(a.stream) != "object" || !a.stream.simulation)), a.shouldFetchHistory && a.sessionId && (a.fetchHistory = a.fetchHistoryFunc.bind(a)), a;
|
|
8190
8190
|
}
|
|
8191
|
-
return z(r, n),
|
|
8191
|
+
return z(r, n), k(r, [{
|
|
8192
8192
|
key: "fetchHistoryFunc",
|
|
8193
8193
|
value: function() {
|
|
8194
8194
|
var e = _(/* @__PURE__ */ m().mark(function i() {
|
|
@@ -8233,7 +8233,7 @@ var gt = fa, pr = /* @__PURE__ */ function(n) {
|
|
|
8233
8233
|
if (s === "code_interpreter") return r.processAttachmentsMessage(o, i, "code_interpreter");
|
|
8234
8234
|
if (i.find(function(u) {
|
|
8235
8235
|
var d = u.name;
|
|
8236
|
-
return !
|
|
8236
|
+
return !Ee.isImageFileExtension(d);
|
|
8237
8237
|
})) console.error("The uploaded files contained a non-image file"), console.error('Make sure only images can be uploaded or define a "code_interpreter" or "file_search" value in the "files_tool_type" property'), console.warn('Make sure your existing assistant supports these "tools" or specify them in the "new_assistant" property');
|
|
8238
8238
|
else {
|
|
8239
8239
|
var c = r.processImageMessage(o, i);
|
|
@@ -8705,7 +8705,7 @@ var gt = fa, pr = /* @__PURE__ */ function(n) {
|
|
|
8705
8705
|
key: "processImageMessage",
|
|
8706
8706
|
value: function(t, i) {
|
|
8707
8707
|
var a = i == null ? void 0 : i.filter(function(o) {
|
|
8708
|
-
return
|
|
8708
|
+
return Ee.isImageFileExtension(o.name);
|
|
8709
8709
|
}).map(function(o) {
|
|
8710
8710
|
return {
|
|
8711
8711
|
type: "image_file",
|
|
@@ -8747,7 +8747,7 @@ pr.THREAD_PREFIX = "https://api.openai.com/v1/threads", pr.NEW_ASSISTANT_URL = "
|
|
|
8747
8747
|
var Vp = pr, hr = /* @__PURE__ */ function(n) {
|
|
8748
8748
|
function r(e) {
|
|
8749
8749
|
var t;
|
|
8750
|
-
|
|
8750
|
+
w(this, r);
|
|
8751
8751
|
var i, a = e.directConnection, o = a == null ? void 0 : a.openAI, s = {
|
|
8752
8752
|
images: {
|
|
8753
8753
|
files: {
|
|
@@ -8775,7 +8775,7 @@ var Vp = pr, hr = /* @__PURE__ */ function(n) {
|
|
|
8775
8775
|
}
|
|
8776
8776
|
return H(l) == "object" && Object.assign(t.rawBody, l), t.canSendMessage = r.canFileSendMessage, t;
|
|
8777
8777
|
}
|
|
8778
|
-
return z(r, n),
|
|
8778
|
+
return z(r, n), k(r, [{
|
|
8779
8779
|
key: "preprocessBody",
|
|
8780
8780
|
value: function(t, i) {
|
|
8781
8781
|
var a = JSON.parse(JSON.stringify(t));
|
|
@@ -8895,7 +8895,7 @@ hr.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", hr.IMA
|
|
|
8895
8895
|
var Gp = hr, Kp = /* @__PURE__ */ function(n) {
|
|
8896
8896
|
function r(e) {
|
|
8897
8897
|
var t, i, a;
|
|
8898
|
-
|
|
8898
|
+
w(this, r);
|
|
8899
8899
|
var o, s, l, c, u = JSON.parse(JSON.stringify(e.directConnection)), d = u.openAI;
|
|
8900
8900
|
a = U(this, r, [e, Se.buildKeyVerificationDetails(), Se.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.");
|
|
8901
8901
|
var p = (o = u.openAI) == null ? void 0 : o.chat;
|
|
@@ -8906,7 +8906,7 @@ var Gp = hr, Kp = /* @__PURE__ */ function(n) {
|
|
|
8906
8906
|
}
|
|
8907
8907
|
return (t = a.maxMessages) !== null && t !== void 0 || (a.maxMessages = -1), (i = (c = a.rawBody).model) !== null && i !== void 0 || (c.model = "gpt-4o"), a;
|
|
8908
8908
|
}
|
|
8909
|
-
return z(r, n),
|
|
8909
|
+
return z(r, n), k(r, [{
|
|
8910
8910
|
key: "cleanConfig",
|
|
8911
8911
|
value: function(t) {
|
|
8912
8912
|
delete t.system_prompt, delete t.function_handler;
|
|
@@ -9141,11 +9141,11 @@ var Gp = hr, Kp = /* @__PURE__ */ function(n) {
|
|
|
9141
9141
|
}(_e), Jp = /* @__PURE__ */ function(n) {
|
|
9142
9142
|
function r(e) {
|
|
9143
9143
|
var t, i;
|
|
9144
|
-
|
|
9144
|
+
w(this, r);
|
|
9145
9145
|
var a, o = JSON.parse(JSON.stringify(e.directConnection)), s = (a = o.cohere) == null ? void 0 : a.chat, l = o.cohere;
|
|
9146
9146
|
return i = U(this, r, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", s, l]), H(s) == "object" && Object.assign(i.rawBody, s), (t = i.maxMessages) !== null && t !== void 0 || (i.maxMessages = -1), i;
|
|
9147
9147
|
}
|
|
9148
|
-
return z(r, n),
|
|
9148
|
+
return z(r, n), k(r, [{
|
|
9149
9149
|
key: "preprocessBody",
|
|
9150
9150
|
value: function(t, i) {
|
|
9151
9151
|
var a = JSON.parse(JSON.stringify(t)), o = i.filter(function(s) {
|
|
@@ -9212,11 +9212,11 @@ var Gp = hr, Kp = /* @__PURE__ */ function(n) {
|
|
|
9212
9212
|
return t;
|
|
9213
9213
|
}()
|
|
9214
9214
|
}]);
|
|
9215
|
-
}(Ia),
|
|
9215
|
+
}(Ia), Eo = /* @__PURE__ */ function() {
|
|
9216
9216
|
function n() {
|
|
9217
|
-
|
|
9217
|
+
w(this, n);
|
|
9218
9218
|
}
|
|
9219
|
-
return
|
|
9219
|
+
return k(n, null, [{
|
|
9220
9220
|
key: "buildHeaders",
|
|
9221
9221
|
value: function(e) {
|
|
9222
9222
|
return {
|
|
@@ -9245,11 +9245,11 @@ var Gp = hr, Kp = /* @__PURE__ */ function(n) {
|
|
|
9245
9245
|
}(), Zp = /* @__PURE__ */ function(n) {
|
|
9246
9246
|
function r(e) {
|
|
9247
9247
|
var t, i, a;
|
|
9248
|
-
|
|
9248
|
+
w(this, r);
|
|
9249
9249
|
var o, s = JSON.parse(JSON.stringify(e.directConnection)).mistral;
|
|
9250
|
-
return a = U(this, r, [e,
|
|
9250
|
+
return a = U(this, r, [e, Eo.buildKeyVerificationDetails(), Eo.buildHeaders, s]), a.insertKeyPlaceholderText = "Mistral API Key", a.keyHelpUrl = "https://console.mistral.ai/api-keys/", a.url = "https://api.mistral.ai/v1/chat/completions", a.permittedErrorPrefixes = ["invalid"], s && (a.cleanConfig(s), Object.assign(a.rawBody, s)), (t = a.maxMessages) !== null && t !== void 0 || (a.maxMessages = -1), (i = (o = a.rawBody).model) !== null && i !== void 0 || (o.model = "open-mistral-7b"), a;
|
|
9251
9251
|
}
|
|
9252
|
-
return z(r, n),
|
|
9252
|
+
return z(r, n), k(r, [{
|
|
9253
9253
|
key: "cleanConfig",
|
|
9254
9254
|
value: function(t) {
|
|
9255
9255
|
delete t.key;
|
|
@@ -9324,9 +9324,9 @@ var Gp = hr, Kp = /* @__PURE__ */ function(n) {
|
|
|
9324
9324
|
}]);
|
|
9325
9325
|
}(_e), Yp = /* @__PURE__ */ function() {
|
|
9326
9326
|
function n() {
|
|
9327
|
-
|
|
9327
|
+
w(this, n);
|
|
9328
9328
|
}
|
|
9329
|
-
return
|
|
9329
|
+
return k(n, null, [{
|
|
9330
9330
|
key: "create",
|
|
9331
9331
|
value: (
|
|
9332
9332
|
// this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
|
|
@@ -9344,15 +9344,15 @@ var Gp = hr, Kp = /* @__PURE__ */ function(n) {
|
|
|
9344
9344
|
if (t.azure.summarization) return new Hp(e);
|
|
9345
9345
|
if (t.azure.translation) return new qp(e);
|
|
9346
9346
|
}
|
|
9347
|
-
if (t.stabilityAI) return t.stabilityAI.imageToImage ? new Ip(e) : t.stabilityAI.imageToImageUpscale ? new
|
|
9347
|
+
if (t.stabilityAI) return t.stabilityAI.imageToImage ? new Ip(e) : t.stabilityAI.imageToImageUpscale ? new xp(e) : t.stabilityAI.imageToImageMasking ? new Ep(e) : new Pp(e);
|
|
9348
9348
|
if (t.mistral) return new Zp(e);
|
|
9349
9349
|
}
|
|
9350
9350
|
return i && (!a || !i.stream) ? new Rr(e) : new Rr(e, void 0, a || !0);
|
|
9351
9351
|
}
|
|
9352
9352
|
)
|
|
9353
9353
|
}]);
|
|
9354
|
-
}(), Gl = /* @__PURE__ */
|
|
9355
|
-
|
|
9354
|
+
}(), Gl = /* @__PURE__ */ k(function n() {
|
|
9355
|
+
w(this, n);
|
|
9356
9356
|
});
|
|
9357
9357
|
Gl.attibutes = {
|
|
9358
9358
|
string: function(r) {
|
|
@@ -9384,9 +9384,9 @@ function Q(n) {
|
|
|
9384
9384
|
}
|
|
9385
9385
|
var Qp = /* @__PURE__ */ function() {
|
|
9386
9386
|
function n() {
|
|
9387
|
-
|
|
9387
|
+
w(this, n);
|
|
9388
9388
|
}
|
|
9389
|
-
return
|
|
9389
|
+
return k(n, null, [{
|
|
9390
9390
|
key: "colorToHex",
|
|
9391
9391
|
value: function(e) {
|
|
9392
9392
|
var t = document.createElement("div");
|
|
@@ -9406,9 +9406,9 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9406
9406
|
}]);
|
|
9407
9407
|
}(), eh = /* @__PURE__ */ function() {
|
|
9408
9408
|
function n(r, e, t) {
|
|
9409
|
-
|
|
9409
|
+
w(this, n), this._isDisplayed = !1, r ? (this._elementRef = this.createIntroPanelWithChild(r, t), this._isDisplayed = !0) : e && (this._elementRef = this.createInternalIntroPanel(e, t), this._isDisplayed = !0);
|
|
9410
9410
|
}
|
|
9411
|
-
return
|
|
9411
|
+
return k(n, [{
|
|
9412
9412
|
key: "createIntroPanelWithChild",
|
|
9413
9413
|
value: function(e, t) {
|
|
9414
9414
|
var i = n.createIntroPanel(t);
|
|
@@ -9439,9 +9439,9 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9439
9439
|
}]);
|
|
9440
9440
|
}(), th = /* @__PURE__ */ function() {
|
|
9441
9441
|
function n() {
|
|
9442
|
-
|
|
9442
|
+
w(this, n);
|
|
9443
9443
|
}
|
|
9444
|
-
return
|
|
9444
|
+
return k(n, null, [{
|
|
9445
9445
|
key: "getText",
|
|
9446
9446
|
value: function(e, t) {
|
|
9447
9447
|
var i;
|
|
@@ -9497,13 +9497,13 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9497
9497
|
</g>
|
|
9498
9498
|
</svg>`, rh = /* @__PURE__ */ function() {
|
|
9499
9499
|
function n() {
|
|
9500
|
-
|
|
9500
|
+
w(this, n);
|
|
9501
9501
|
}
|
|
9502
|
-
return
|
|
9502
|
+
return k(n, null, [{
|
|
9503
9503
|
key: "createImage",
|
|
9504
9504
|
value: function(e, t) {
|
|
9505
9505
|
var i = new Image();
|
|
9506
|
-
return i.src = e.src,
|
|
9506
|
+
return i.src = e.src, Ee.scrollDownOnImageLoad(i.src, t), Ee.processContent("image", i, i.src, e.name);
|
|
9507
9507
|
}
|
|
9508
9508
|
// WORK - image still does not scroll down when loaded
|
|
9509
9509
|
}, {
|
|
@@ -9514,7 +9514,7 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9514
9514
|
return m().wrap(function(u) {
|
|
9515
9515
|
for (; ; ) switch (u.prev = u.next) {
|
|
9516
9516
|
case 0:
|
|
9517
|
-
s = n.createImage(a, i.elementRef), l = i.createNewMessageElement("", o), l.bubbleElement.appendChild(s), l.bubbleElement.classList.add("image-message"),
|
|
9517
|
+
s = n.createImage(a, i.elementRef), l = i.createNewMessageElement("", o), l.bubbleElement.appendChild(s), l.bubbleElement.classList.add("image-message"), Ee.addMessage(i, l, "image", o);
|
|
9518
9518
|
case 2:
|
|
9519
9519
|
case "end":
|
|
9520
9520
|
return u.stop();
|
|
@@ -9536,7 +9536,7 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9536
9536
|
key: "addNewAudioMessage",
|
|
9537
9537
|
value: function(e, t, i) {
|
|
9538
9538
|
var a = n.createAudioElement(t, i), o = e.createNewMessageElement("", i);
|
|
9539
|
-
o.bubbleElement.appendChild(a), o.bubbleElement.classList.add("audio-message"),
|
|
9539
|
+
o.bubbleElement.appendChild(a), o.bubbleElement.classList.add("audio-message"), Ee.addMessage(e, o, "audio", i);
|
|
9540
9540
|
}
|
|
9541
9541
|
}, {
|
|
9542
9542
|
key: "createAnyFile",
|
|
@@ -9548,27 +9548,27 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9548
9548
|
var a = Le.createSVGElement(nh);
|
|
9549
9549
|
a.classList.add("any-file-message-icon"), i.appendChild(a);
|
|
9550
9550
|
var o = document.createElement("div");
|
|
9551
|
-
return o.classList.add("any-file-message-text"), o.textContent = e.name ||
|
|
9551
|
+
return o.classList.add("any-file-message-text"), o.textContent = e.name || Ee.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(o), Ee.processContent("any", t, e.src, o.textContent);
|
|
9552
9552
|
}
|
|
9553
9553
|
}, {
|
|
9554
9554
|
key: "addNewAnyFileMessage",
|
|
9555
9555
|
value: function(e, t, i) {
|
|
9556
9556
|
var a = e.createNewMessageElement("", i), o = n.createAnyFile(t);
|
|
9557
|
-
a.bubbleElement.classList.add("any-file-message-bubble"), a.bubbleElement.appendChild(o),
|
|
9557
|
+
a.bubbleElement.classList.add("any-file-message-bubble"), a.bubbleElement.appendChild(o), Ee.addMessage(e, a, "file", i);
|
|
9558
9558
|
}
|
|
9559
9559
|
// no overwrite previous message logic as it is complex to track which files are to be overwritten
|
|
9560
9560
|
}, {
|
|
9561
9561
|
key: "addMessages",
|
|
9562
9562
|
value: function(e, t, i) {
|
|
9563
9563
|
t.forEach(function(a) {
|
|
9564
|
-
a.ref && (a =
|
|
9564
|
+
a.ref && (a = Ee.removeFileRef(a)), Ee.isAudioFile(a) ? n.addNewAudioMessage(e, a, i) : Ee.isImageFile(a) ? n.addNewImageMessage(e, a, i) : n.addNewAnyFileMessage(e, a, i);
|
|
9565
9565
|
});
|
|
9566
9566
|
}
|
|
9567
9567
|
}]);
|
|
9568
9568
|
}(), ih = /* @__PURE__ */ function(n) {
|
|
9569
9569
|
function r(e, t, i) {
|
|
9570
9570
|
var a;
|
|
9571
|
-
|
|
9571
|
+
w(this, r);
|
|
9572
9572
|
var o, s;
|
|
9573
9573
|
a = U(this, r, [e]);
|
|
9574
9574
|
var l = t.permittedErrorPrefixes, c = t.introPanelMarkUp, u = t.demo;
|
|
@@ -9582,7 +9582,7 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9582
9582
|
a.textToSpeech = d;
|
|
9583
9583
|
}), t.fetchHistory && a.fetchHistory(t.fetchHistory), a;
|
|
9584
9584
|
}
|
|
9585
|
-
return z(r, n),
|
|
9585
|
+
return z(r, n), k(r, [{
|
|
9586
9586
|
key: "prepareDemo",
|
|
9587
9587
|
value: function(t) {
|
|
9588
9588
|
H(t) == "object" && (t.response && (this.customDemoResponse = t.response), t.displayErrors && (t.displayErrors.default && this.addNewErrorMessage("", ""), t.displayErrors.service && this.addNewErrorMessage("service", ""), t.displayErrors.speechToText && this.addNewErrorMessage("speechToText", "")), t.displayLoadingBubble && this.addLoadingMessage());
|
|
@@ -9747,7 +9747,7 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9747
9747
|
return s.abrupt("return", Promise.all((a || []).map(function(l) {
|
|
9748
9748
|
return new Promise(function(c) {
|
|
9749
9749
|
if (!l.type || l.type === "any") {
|
|
9750
|
-
var u = l.file.name ||
|
|
9750
|
+
var u = l.file.name || Ee.DEFAULT_FILE_NAME;
|
|
9751
9751
|
c({
|
|
9752
9752
|
name: u,
|
|
9753
9753
|
type: "any",
|
|
@@ -9806,11 +9806,11 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9806
9806
|
return Array.isArray(t) ? t : t instanceof Error ? [t.message] : typeof t == "string" ? [t] : H(t) == "object" && t.error ? [t.error] : [];
|
|
9807
9807
|
}
|
|
9808
9808
|
}]);
|
|
9809
|
-
}(Bl),
|
|
9809
|
+
}(Bl), wn = /* @__PURE__ */ function() {
|
|
9810
9810
|
function n() {
|
|
9811
|
-
|
|
9811
|
+
w(this, n);
|
|
9812
9812
|
}
|
|
9813
|
-
return
|
|
9813
|
+
return k(n, null, [{
|
|
9814
9814
|
key: "adjustInputPadding",
|
|
9815
9815
|
value: function(e, t) {
|
|
9816
9816
|
t["inside-left"].length > 0 && e.classList.add("text-input-inner-left-adjustment"), t["inside-right"].length > 0 && e.classList.add("text-input-inner-right-adjustment");
|
|
@@ -9841,12 +9841,12 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
9841
9841
|
}
|
|
9842
9842
|
}]);
|
|
9843
9843
|
}();
|
|
9844
|
-
|
|
9845
|
-
var ah =
|
|
9844
|
+
wn.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment", wn.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment", wn.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS = "text-input-container-left-small-adjustment", wn.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS = "text-input-container-right-small-adjustment";
|
|
9845
|
+
var ah = wn, Lr = /* @__PURE__ */ function() {
|
|
9846
9846
|
function n() {
|
|
9847
|
-
|
|
9847
|
+
w(this, n);
|
|
9848
9848
|
}
|
|
9849
|
-
return
|
|
9849
|
+
return k(n, null, [{
|
|
9850
9850
|
key: "create",
|
|
9851
9851
|
value: function() {
|
|
9852
9852
|
return Array.from({
|
|
@@ -9876,9 +9876,9 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
9876
9876
|
}]);
|
|
9877
9877
|
}(), Ao = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"], _t = /* @__PURE__ */ function() {
|
|
9878
9878
|
function n() {
|
|
9879
|
-
|
|
9879
|
+
w(this, n);
|
|
9880
9880
|
}
|
|
9881
|
-
return
|
|
9881
|
+
return k(n, null, [{
|
|
9882
9882
|
key: "createTextElement",
|
|
9883
9883
|
value: function(e) {
|
|
9884
9884
|
var t = document.createElement("div");
|
|
@@ -9924,9 +9924,9 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
9924
9924
|
<path d="M16 0c-8.836 0-16 7.163-16 16s7.163 16 16 16c8.837 0 16-7.163 16-16s-7.163-16-16-16zM16 30.032c-7.72 0-14-6.312-14-14.032s6.28-14 14-14 14 6.28 14 14-6.28 14.032-14 14.032zM23 15h-6v-6c0-0.552-0.448-1-1-1s-1 0.448-1 1v6h-6c-0.552 0-1 0.448-1 1s0.448 1 1 1h6v6c0 0.552 0.448 1 1 1s1-0.448 1-1v-6h6c0.552 0 1-0.448 1-1s-0.448-1-1-1z"></path>
|
|
9925
9925
|
</svg>`, vt = /* @__PURE__ */ function() {
|
|
9926
9926
|
function n() {
|
|
9927
|
-
|
|
9927
|
+
w(this, n);
|
|
9928
9928
|
}
|
|
9929
|
-
return
|
|
9929
|
+
return k(n, null, [{
|
|
9930
9930
|
key: "unsetAllCSS",
|
|
9931
9931
|
value: function(e, t) {
|
|
9932
9932
|
var i, a;
|
|
@@ -9952,11 +9952,11 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
9952
9952
|
}]);
|
|
9953
9953
|
}(), Hn = /* @__PURE__ */ function() {
|
|
9954
9954
|
function n(r, e, t, i) {
|
|
9955
|
-
|
|
9955
|
+
w(this, n), this._mouseState = {
|
|
9956
9956
|
state: "default"
|
|
9957
9957
|
}, this.elementRef = r, this._customStyles = t, this.position = e, this.dropupText = i;
|
|
9958
9958
|
}
|
|
9959
|
-
return
|
|
9959
|
+
return k(n, [{
|
|
9960
9960
|
key: "buttonMouseLeave",
|
|
9961
9961
|
value: function(e) {
|
|
9962
9962
|
this._mouseState.state = "default", e && (vt.unsetAllCSS(this.elementRef, e), vt.setElementsCSS(this.elementRef, e, "default"));
|
|
@@ -10002,9 +10002,9 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
10002
10002
|
}]);
|
|
10003
10003
|
}(), To = /* @__PURE__ */ function() {
|
|
10004
10004
|
function n() {
|
|
10005
|
-
|
|
10005
|
+
w(this, n);
|
|
10006
10006
|
}
|
|
10007
|
-
return
|
|
10007
|
+
return k(n, null, [{
|
|
10008
10008
|
key: "focusItemWhenOnEdge",
|
|
10009
10009
|
value: function(e, t) {
|
|
10010
10010
|
var i = t ? e.children[0] : e.children[e.children.length - 1];
|
|
@@ -10021,9 +10021,9 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
10021
10021
|
}]);
|
|
10022
10022
|
}(), sh = /* @__PURE__ */ function() {
|
|
10023
10023
|
function n() {
|
|
10024
|
-
|
|
10024
|
+
w(this, n);
|
|
10025
10025
|
}
|
|
10026
|
-
return
|
|
10026
|
+
return k(n, null, [{
|
|
10027
10027
|
key: "addItemEvents",
|
|
10028
10028
|
value: function(e, t, i, a) {
|
|
10029
10029
|
Al.add(t, a), t.addEventListener("click", function() {
|
|
@@ -10069,13 +10069,13 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
10069
10069
|
}(), lh = /* @__PURE__ */ function() {
|
|
10070
10070
|
function n(r, e) {
|
|
10071
10071
|
var t = this;
|
|
10072
|
-
|
|
10072
|
+
w(this, n);
|
|
10073
10073
|
var i;
|
|
10074
10074
|
this._isOpen = !0, this._styles = e, this.elementRef = n.createElement((i = this._styles) == null ? void 0 : i.container), this.close(), setTimeout(function() {
|
|
10075
10075
|
return t.addWindowEvents(r);
|
|
10076
10076
|
});
|
|
10077
10077
|
}
|
|
10078
|
-
return
|
|
10078
|
+
return k(n, [{
|
|
10079
10079
|
key: "open",
|
|
10080
10080
|
value: function() {
|
|
10081
10081
|
this.elementRef.style.display = "block", this._isOpen = !0;
|
|
@@ -10125,7 +10125,7 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
10125
10125
|
}(), Ro = /* @__PURE__ */ function(n) {
|
|
10126
10126
|
function r(e, t) {
|
|
10127
10127
|
var i;
|
|
10128
|
-
|
|
10128
|
+
w(this, r);
|
|
10129
10129
|
var a;
|
|
10130
10130
|
i = U(this, r, [r.createButtonElement(), void 0, {
|
|
10131
10131
|
styles: (a = t == null ? void 0 : t.button) == null ? void 0 : a.styles
|
|
@@ -10133,7 +10133,7 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
10133
10133
|
var o = i.createInnerElements(i._customStyles);
|
|
10134
10134
|
return i._menu = new lh(e, t == null ? void 0 : t.menu), i.addClickEvent(), i.buttonContainer = r.createButtonContainer(), i.elementRef.appendChild(o.styles), i.buttonContainer.appendChild(i.elementRef), i.elementRef.classList.add("dropup-icon", "upload-file-button"), i.elementRef.children[0].id = "dropup-icon", i.buttonContainer.appendChild(i._menu.elementRef), i.reapplyStateStyle("styles"), i.addContainerEvents(e), i;
|
|
10135
10135
|
}
|
|
10136
|
-
return z(r, n),
|
|
10136
|
+
return z(r, n), k(r, [{
|
|
10137
10137
|
key: "createInnerElements",
|
|
10138
10138
|
value: function(t) {
|
|
10139
10139
|
return {
|
|
@@ -10189,9 +10189,9 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
10189
10189
|
}]);
|
|
10190
10190
|
}(Hn), ch = /* @__PURE__ */ function() {
|
|
10191
10191
|
function n() {
|
|
10192
|
-
|
|
10192
|
+
w(this, n);
|
|
10193
10193
|
}
|
|
10194
|
-
return
|
|
10194
|
+
return k(n, null, [{
|
|
10195
10195
|
key: "addToDropup",
|
|
10196
10196
|
value: (
|
|
10197
10197
|
// prettier-ignore
|
|
@@ -10325,9 +10325,9 @@ var ah = kn, Lr = /* @__PURE__ */ function() {
|
|
|
10325
10325
|
`, Kl = /* @__PURE__ */ function(n) {
|
|
10326
10326
|
function r(e) {
|
|
10327
10327
|
var t;
|
|
10328
|
-
return
|
|
10328
|
+
return w(this, r), (e == null ? void 0 : e.position) === "dropup-menu" && (e.position = "outside-right"), t = U(this, r, [r.createMicrophoneElement(), e == null ? void 0 : e.position, e]), t.isActive = !1, t._innerElements = t.createInnerElements(t._customStyles), t.changeToDefault(), t;
|
|
10329
10329
|
}
|
|
10330
|
-
return z(r, n),
|
|
10330
|
+
return z(r, n), k(r, [{
|
|
10331
10331
|
key: "createInnerElements",
|
|
10332
10332
|
value: function(t) {
|
|
10333
10333
|
var i = r.createSVGIconElement();
|
|
@@ -10400,9 +10400,9 @@ Object.defineProperty(Mt, "__esModule", {
|
|
|
10400
10400
|
Mt.Text = void 0;
|
|
10401
10401
|
var Jr = /* @__PURE__ */ function() {
|
|
10402
10402
|
function n() {
|
|
10403
|
-
|
|
10403
|
+
w(this, n);
|
|
10404
10404
|
}
|
|
10405
|
-
return
|
|
10405
|
+
return k(n, null, [{
|
|
10406
10406
|
key: "capitalize",
|
|
10407
10407
|
value: function(e) {
|
|
10408
10408
|
return e.replace(n.FIRST_CHAR_REGEX, function(t) {
|
|
@@ -10438,9 +10438,9 @@ Object.defineProperty(Un, "__esModule", {
|
|
|
10438
10438
|
Un.Translate = void 0;
|
|
10439
10439
|
var gh = Mt, vh = /* @__PURE__ */ function() {
|
|
10440
10440
|
function n() {
|
|
10441
|
-
|
|
10441
|
+
w(this, n);
|
|
10442
10442
|
}
|
|
10443
|
-
return
|
|
10443
|
+
return k(n, null, [{
|
|
10444
10444
|
key: "translate",
|
|
10445
10445
|
value: function(e, t) {
|
|
10446
10446
|
for (var i = gh.Text.breakupIntoWordsArr(e), a = 0; a < i.length; a += 1) t[i[a]] && (i[a] = t[i[a]]);
|
|
@@ -10455,9 +10455,9 @@ Object.defineProperty(Kr, "__esModule", {
|
|
|
10455
10455
|
Kr.WebSpeechTranscript = void 0;
|
|
10456
10456
|
var Lo = Un, yh = /* @__PURE__ */ function() {
|
|
10457
10457
|
function n() {
|
|
10458
|
-
|
|
10458
|
+
w(this, n);
|
|
10459
10459
|
}
|
|
10460
|
-
return
|
|
10460
|
+
return k(n, null, [{
|
|
10461
10461
|
key: "extract",
|
|
10462
10462
|
value: function(e, t, i) {
|
|
10463
10463
|
for (var a = "", o = e.resultIndex; o < e.results.length; ++o) {
|
|
@@ -10491,12 +10491,12 @@ Object.defineProperty(rn, "__esModule", {
|
|
|
10491
10491
|
value: !0
|
|
10492
10492
|
});
|
|
10493
10493
|
rn.Browser = void 0;
|
|
10494
|
-
var
|
|
10495
|
-
|
|
10494
|
+
var kn = /* @__PURE__ */ k(function n() {
|
|
10495
|
+
w(this, n);
|
|
10496
10496
|
});
|
|
10497
|
-
rn.Browser =
|
|
10498
|
-
|
|
10499
|
-
return
|
|
10497
|
+
rn.Browser = kn;
|
|
10498
|
+
kn.IS_SAFARI = function() {
|
|
10499
|
+
return kn._IS_SAFARI === void 0 && (kn._IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), kn._IS_SAFARI;
|
|
10500
10500
|
};
|
|
10501
10501
|
var zn = {}, Zr = {};
|
|
10502
10502
|
Object.defineProperty(Zr, "__esModule", {
|
|
@@ -10505,9 +10505,9 @@ Object.defineProperty(Zr, "__esModule", {
|
|
|
10505
10505
|
Zr.EventListeners = void 0;
|
|
10506
10506
|
var Zl = /* @__PURE__ */ function() {
|
|
10507
10507
|
function n() {
|
|
10508
|
-
|
|
10508
|
+
w(this, n);
|
|
10509
10509
|
}
|
|
10510
|
-
return
|
|
10510
|
+
return k(n, null, [{
|
|
10511
10511
|
key: "getElementIfFocusedOnAvailable",
|
|
10512
10512
|
value: function(e, t) {
|
|
10513
10513
|
return Array.isArray(e) ? e.find(function(i) {
|
|
@@ -10554,9 +10554,9 @@ Object.defineProperty(Yr, "__esModule", {
|
|
|
10554
10554
|
Yr.PreResultUtils = void 0;
|
|
10555
10555
|
var bh = /* @__PURE__ */ function() {
|
|
10556
10556
|
function n() {
|
|
10557
|
-
|
|
10557
|
+
w(this, n);
|
|
10558
10558
|
}
|
|
10559
|
-
return
|
|
10559
|
+
return k(n, null, [{
|
|
10560
10560
|
key: "process",
|
|
10561
10561
|
value: function(e, t, i, a, o) {
|
|
10562
10562
|
var s = a == null ? void 0 : a(t, i);
|
|
@@ -10572,11 +10572,11 @@ Object.defineProperty(qn, "__esModule", {
|
|
|
10572
10572
|
value: !0
|
|
10573
10573
|
});
|
|
10574
10574
|
qn.AutoScroll = void 0;
|
|
10575
|
-
var
|
|
10575
|
+
var wh = /* @__PURE__ */ function() {
|
|
10576
10576
|
function n() {
|
|
10577
|
-
|
|
10577
|
+
w(this, n);
|
|
10578
10578
|
}
|
|
10579
|
-
return
|
|
10579
|
+
return k(n, null, [{
|
|
10580
10580
|
key: "changeStateIfNeeded",
|
|
10581
10581
|
value: function(e, t) {
|
|
10582
10582
|
t && !e.isCursorAtEnd && (e.endPadding = "", e.scrollingSpan.innerHTML = " ");
|
|
@@ -10607,17 +10607,17 @@ var kh = /* @__PURE__ */ function() {
|
|
|
10607
10607
|
}
|
|
10608
10608
|
}]);
|
|
10609
10609
|
}();
|
|
10610
|
-
qn.AutoScroll =
|
|
10610
|
+
qn.AutoScroll = wh;
|
|
10611
10611
|
var Pt = {};
|
|
10612
10612
|
Object.defineProperty(Pt, "__esModule", {
|
|
10613
10613
|
value: !0
|
|
10614
10614
|
});
|
|
10615
10615
|
Pt.Elements = void 0;
|
|
10616
|
-
var
|
|
10616
|
+
var kh = /* @__PURE__ */ function() {
|
|
10617
10617
|
function n() {
|
|
10618
|
-
|
|
10618
|
+
w(this, n);
|
|
10619
10619
|
}
|
|
10620
|
-
return
|
|
10620
|
+
return k(n, null, [{
|
|
10621
10621
|
key: "isPrimitiveElement",
|
|
10622
10622
|
value: function(e) {
|
|
10623
10623
|
return e.tagName === "INPUT" || e.tagName === "TEXTAREA";
|
|
@@ -10659,7 +10659,7 @@ var wh = /* @__PURE__ */ function() {
|
|
|
10659
10659
|
}
|
|
10660
10660
|
}]);
|
|
10661
10661
|
}();
|
|
10662
|
-
Pt.Elements =
|
|
10662
|
+
Pt.Elements = kh;
|
|
10663
10663
|
var Ft = {};
|
|
10664
10664
|
Object.defineProperty(Ft, "__esModule", {
|
|
10665
10665
|
value: !0
|
|
@@ -10667,9 +10667,9 @@ Object.defineProperty(Ft, "__esModule", {
|
|
|
10667
10667
|
Ft.Cursor = void 0;
|
|
10668
10668
|
var Sh = /* @__PURE__ */ function() {
|
|
10669
10669
|
function n() {
|
|
10670
|
-
|
|
10670
|
+
w(this, n);
|
|
10671
10671
|
}
|
|
10672
|
-
return
|
|
10672
|
+
return k(n, null, [{
|
|
10673
10673
|
key: "setOffsetForGeneric",
|
|
10674
10674
|
value: function(e, t) {
|
|
10675
10675
|
for (var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = 0, o = 0; o < e.childNodes.length; o += 1) {
|
|
@@ -10748,11 +10748,11 @@ Object.defineProperty(Wn, "__esModule", {
|
|
|
10748
10748
|
value: !0
|
|
10749
10749
|
});
|
|
10750
10750
|
Wn.CommandUtils = void 0;
|
|
10751
|
-
var Oo = qn, _h = Pt, Ch = rn, Io = Ft, Mo = Mt,
|
|
10751
|
+
var Oo = qn, _h = Pt, Ch = rn, Io = Ft, Mo = Mt, xh = /* @__PURE__ */ function() {
|
|
10752
10752
|
function n() {
|
|
10753
|
-
|
|
10753
|
+
w(this, n);
|
|
10754
10754
|
}
|
|
10755
|
-
return
|
|
10755
|
+
return k(n, null, [{
|
|
10756
10756
|
key: "processCommand",
|
|
10757
10757
|
value: function(e, t) {
|
|
10758
10758
|
return (!t || !t.caseSensitive) && (e = e.toLowerCase()), (t == null ? void 0 : t.substrings) === !1 ? Mo.Text.breakupIntoWordsArr(e) : e;
|
|
@@ -10837,17 +10837,17 @@ var Oo = qn, _h = Pt, Ch = rn, Io = Ft, Mo = Mt, Eh = /* @__PURE__ */ function()
|
|
|
10837
10837
|
}
|
|
10838
10838
|
}]);
|
|
10839
10839
|
}();
|
|
10840
|
-
Wn.CommandUtils =
|
|
10840
|
+
Wn.CommandUtils = xh;
|
|
10841
10841
|
var Xr = {};
|
|
10842
10842
|
Object.defineProperty(Xr, "__esModule", {
|
|
10843
10843
|
value: !0
|
|
10844
10844
|
});
|
|
10845
10845
|
Xr.Highlight = void 0;
|
|
10846
|
-
var
|
|
10846
|
+
var Eh = Pt, sn = Ft, Ah = /* @__PURE__ */ function() {
|
|
10847
10847
|
function n() {
|
|
10848
|
-
|
|
10848
|
+
w(this, n);
|
|
10849
10849
|
}
|
|
10850
|
-
return
|
|
10850
|
+
return k(n, null, [{
|
|
10851
10851
|
key: "setStateForPrimitive",
|
|
10852
10852
|
value: function(e, t) {
|
|
10853
10853
|
var i, a;
|
|
@@ -10865,7 +10865,7 @@ var xh = Pt, sn = Ft, Ah = /* @__PURE__ */ function() {
|
|
|
10865
10865
|
}, {
|
|
10866
10866
|
key: "setState",
|
|
10867
10867
|
value: function(e, t) {
|
|
10868
|
-
document.activeElement === t && (
|
|
10868
|
+
document.activeElement === t && (Eh.Elements.isPrimitiveElement(t) ? n.setStateForPrimitive(e, t) : n.setStateForGeneric(e, t));
|
|
10869
10869
|
}
|
|
10870
10870
|
}, {
|
|
10871
10871
|
key: "removeForGeneric",
|
|
@@ -10896,9 +10896,9 @@ Object.defineProperty(Qr, "__esModule", {
|
|
|
10896
10896
|
Qr.Padding = void 0;
|
|
10897
10897
|
var Th = Pt, Po = Ft, jt = Mt, Rh = /* @__PURE__ */ function() {
|
|
10898
10898
|
function n() {
|
|
10899
|
-
|
|
10899
|
+
w(this, n);
|
|
10900
10900
|
}
|
|
10901
|
-
return
|
|
10901
|
+
return k(n, null, [{
|
|
10902
10902
|
key: "setStateForPrimitiveElement",
|
|
10903
10903
|
value: function(e, t) {
|
|
10904
10904
|
if (document.activeElement === t && t.selectionStart !== null) {
|
|
@@ -10950,11 +10950,11 @@ Object.defineProperty(zn, "__esModule", {
|
|
|
10950
10950
|
value: !0
|
|
10951
10951
|
});
|
|
10952
10952
|
zn.Speech = void 0;
|
|
10953
|
-
var Fo = Zr, Lh = Yr, No = Wn, nr = qn, Ci = Xr, ze = Pt,
|
|
10953
|
+
var Fo = Zr, Lh = Yr, No = Wn, nr = qn, Ci = Xr, ze = Pt, xi = Qr, Do = rn, $o = Ft, Ei = Mt, Oh = /* @__PURE__ */ function() {
|
|
10954
10954
|
function n() {
|
|
10955
|
-
|
|
10955
|
+
w(this, n), this.finalTranscript = "", this.interimSpan = ze.Elements.createInterimSpan(), this.finalSpan = ze.Elements.createGenericSpan(), this.scrollingSpan = ze.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();
|
|
10956
10956
|
}
|
|
10957
|
-
return
|
|
10957
|
+
return k(n, [{
|
|
10958
10958
|
key: "prepareBeforeStart",
|
|
10959
10959
|
value: function(e) {
|
|
10960
10960
|
var t, i;
|
|
@@ -10970,7 +10970,7 @@ var Fo = Zr, Lh = Yr, No = Wn, nr = qn, Ci = Xr, ze = Pt, Ei = Qr, Do = rn, $o =
|
|
|
10970
10970
|
}, {
|
|
10971
10971
|
key: "prepare",
|
|
10972
10972
|
value: function(e) {
|
|
10973
|
-
|
|
10973
|
+
xi.Padding.setState(this, e), Ci.Highlight.setState(this, e), this.isTargetInShadow = ze.Elements.isInsideShadowDOM(e), ze.Elements.isPrimitiveElement(e) ? (this._primitiveElement = e, this._originalText = this._primitiveElement.value) : (this._genericElement = e, this._originalText = this._genericElement.textContent);
|
|
10974
10974
|
}
|
|
10975
10975
|
// there was an attempt to optimize this by not having to restart the service and just reset state:
|
|
10976
10976
|
// unfortunately it did not work because the service would still continue firing the intermediate and final results
|
|
@@ -10984,7 +10984,7 @@ var Fo = Zr, Lh = Yr, No = Wn, nr = qn, Ci = Xr, ze = Pt, Ei = Qr, Do = rn, $o =
|
|
|
10984
10984
|
}, {
|
|
10985
10985
|
key: "updateElements",
|
|
10986
10986
|
value: function(e, t, i) {
|
|
10987
|
-
var a, o =
|
|
10987
|
+
var a, o = Ei.Text.capitalize(t);
|
|
10988
10988
|
if (!(this.finalTranscript === o && e === "")) {
|
|
10989
10989
|
Lh.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
|
|
10990
10990
|
var s = this.commands && No.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
|
|
@@ -11004,7 +11004,7 @@ var Fo = Zr, Lh = Yr, No = Wn, nr = qn, Ci = Xr, ze = Pt, Ei = Qr, Do = rn, $o =
|
|
|
11004
11004
|
}, {
|
|
11005
11005
|
key: "updatePrimitiveElement",
|
|
11006
11006
|
value: function(e, t, i) {
|
|
11007
|
-
this.isHighlighted && Ci.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded ||
|
|
11007
|
+
this.isHighlighted && Ci.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || xi.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && xi.Padding.adjustSateForNoTextPrimitiveElement(this);
|
|
11008
11008
|
var a = this.startPadding + this.finalTranscript + t;
|
|
11009
11009
|
if (e.value = a + this.endPadding, !this.isTargetInShadow) {
|
|
11010
11010
|
var o = a.length + this.numberOfSpacesAfterNewText;
|
|
@@ -11016,11 +11016,11 @@ var Fo = Zr, Lh = Yr, No = Wn, nr = qn, Ci = Xr, ze = Pt, Ei = Qr, Do = rn, $o =
|
|
|
11016
11016
|
key: "updateGenericElement",
|
|
11017
11017
|
value: function(e, t, i) {
|
|
11018
11018
|
this.isHighlighted && Ci.Highlight.removeForGeneric(this, e), this.spansPopulated || ze.Elements.appendSpans(this, e);
|
|
11019
|
-
var a = (i ? "" : this.startPadding) +
|
|
11019
|
+
var a = (i ? "" : this.startPadding) + Ei.Text.lineBreak(this.finalTranscript);
|
|
11020
11020
|
this.finalSpan.innerHTML = a;
|
|
11021
11021
|
var o = nr.AutoScroll.isRequired(this.autoScroll, e);
|
|
11022
11022
|
nr.AutoScroll.changeStateIfNeeded(this, o);
|
|
11023
|
-
var s =
|
|
11023
|
+
var s = Ei.Text.lineBreak(t) + (i ? "" : this.endPadding);
|
|
11024
11024
|
this.interimSpan.innerHTML = s, Do.Browser.IS_SAFARI() && this.insertInCursorLocation && $o.Cursor.setOffsetForSafariGeneric(e, a.length + s.length), o && nr.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
|
|
11025
11025
|
}
|
|
11026
11026
|
}, {
|
|
@@ -11065,9 +11065,9 @@ Object.defineProperty(Gr, "__esModule", {
|
|
|
11065
11065
|
Gr.WebSpeech = void 0;
|
|
11066
11066
|
var Bo = Kr, jo = rn, Ih = zn, Mh = /* @__PURE__ */ function(n) {
|
|
11067
11067
|
function r() {
|
|
11068
|
-
return
|
|
11068
|
+
return w(this, r), U(this, r);
|
|
11069
11069
|
}
|
|
11070
|
-
return z(r, n),
|
|
11070
|
+
return z(r, n), k(r, [{
|
|
11071
11071
|
key: "start",
|
|
11072
11072
|
value: function(t) {
|
|
11073
11073
|
var i;
|
|
@@ -11130,9 +11130,9 @@ Object.defineProperty(ei, "__esModule", {
|
|
|
11130
11130
|
ei.GlobalState = void 0;
|
|
11131
11131
|
var Yl = /* @__PURE__ */ function() {
|
|
11132
11132
|
function n() {
|
|
11133
|
-
|
|
11133
|
+
w(this, n);
|
|
11134
11134
|
}
|
|
11135
|
-
return
|
|
11135
|
+
return k(n, null, [{
|
|
11136
11136
|
key: "doubleClickDetector",
|
|
11137
11137
|
value: function() {
|
|
11138
11138
|
return n.doubleClickPending ? !0 : (n.doubleClickPending = !0, setTimeout(function() {
|
|
@@ -11150,9 +11150,9 @@ Object.defineProperty(ni, "__esModule", {
|
|
|
11150
11150
|
ni.PreventConnectionStop = void 0;
|
|
11151
11151
|
var Ph = /* @__PURE__ */ function() {
|
|
11152
11152
|
function n() {
|
|
11153
|
-
|
|
11153
|
+
w(this, n);
|
|
11154
11154
|
}
|
|
11155
|
-
return
|
|
11155
|
+
return k(n, null, [{
|
|
11156
11156
|
key: "applyPrevention",
|
|
11157
11157
|
value: function(e) {
|
|
11158
11158
|
clearTimeout(e._manualConnectionStopPrevention), e.cannotBeStopped = !0, e._manualConnectionStopPrevention = setTimeout(function() {
|
|
@@ -11179,9 +11179,9 @@ Object.defineProperty(ri, "__esModule", {
|
|
|
11179
11179
|
ri.AzureSpeechConfig = void 0;
|
|
11180
11180
|
var Ai = ii, Fh = /* @__PURE__ */ function() {
|
|
11181
11181
|
function n() {
|
|
11182
|
-
|
|
11182
|
+
w(this, n);
|
|
11183
11183
|
}
|
|
11184
|
-
return
|
|
11184
|
+
return k(n, null, [{
|
|
11185
11185
|
key: "validateOptions",
|
|
11186
11186
|
value: function(e, t) {
|
|
11187
11187
|
return t ? !t.subscriptionKey && !t.token && !t.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(Ai.README_URL)), !1) : t.region ? !0 : (e("Please define a 'region' property - more info: ".concat(Ai.README_URL)), !1) : (e("Please provide subscription details - more info: ".concat(Ai.README_URL)), !1);
|
|
@@ -11250,9 +11250,9 @@ Object.defineProperty(ai, "__esModule", {
|
|
|
11250
11250
|
ai.StopTimeout = void 0;
|
|
11251
11251
|
var Xl = /* @__PURE__ */ function() {
|
|
11252
11252
|
function n() {
|
|
11253
|
-
|
|
11253
|
+
w(this, n);
|
|
11254
11254
|
}
|
|
11255
|
-
return
|
|
11255
|
+
return k(n, null, [{
|
|
11256
11256
|
key: "set",
|
|
11257
11257
|
value: function(e) {
|
|
11258
11258
|
e.stopTimeout = setTimeout(function() {
|
|
@@ -11275,9 +11275,9 @@ Object.defineProperty(oi, "__esModule", {
|
|
|
11275
11275
|
oi.AzureTranscript = void 0;
|
|
11276
11276
|
var Nh = Un, Dh = /* @__PURE__ */ function() {
|
|
11277
11277
|
function n() {
|
|
11278
|
-
|
|
11278
|
+
w(this, n);
|
|
11279
11279
|
}
|
|
11280
|
-
return
|
|
11280
|
+
return k(n, null, [{
|
|
11281
11281
|
key: "extract",
|
|
11282
11282
|
value: (
|
|
11283
11283
|
// newText is used to only send new text in onResult as finalTranscript is continuously accumulated
|
|
@@ -11303,9 +11303,9 @@ ti.Azure = void 0;
|
|
|
11303
11303
|
var Ho = ni, Uo = ri, Ti = ai, zo = oi, $h = zn, Bh = /* @__PURE__ */ function(n) {
|
|
11304
11304
|
function r() {
|
|
11305
11305
|
var e;
|
|
11306
|
-
return
|
|
11306
|
+
return w(this, r), e = U(this, r, arguments), e._newTextPadding = "", e;
|
|
11307
11307
|
}
|
|
11308
|
-
return z(r, n),
|
|
11308
|
+
return z(r, n), k(r, [{
|
|
11309
11309
|
key: "start",
|
|
11310
11310
|
value: function(t, i) {
|
|
11311
11311
|
this._newTextPadding = "", this.stopTimeout === void 0 && Ti.StopTimeout.reset(this, t == null ? void 0 : t.stopAfterSilenceMs), this.prepareBeforeStart(t), this.startAsync(t), i || Ho.PreventConnectionStop.applyPrevention(this);
|
|
@@ -11455,9 +11455,9 @@ Object.defineProperty(Jl, "__esModule", {
|
|
|
11455
11455
|
});
|
|
11456
11456
|
var Wo = Gr, jh = Wn, Be = ei, Hh = ti, Uh = /* @__PURE__ */ function() {
|
|
11457
11457
|
function n() {
|
|
11458
|
-
|
|
11458
|
+
w(this, n);
|
|
11459
11459
|
}
|
|
11460
|
-
return
|
|
11460
|
+
return k(n, null, [{
|
|
11461
11461
|
key: "toggle",
|
|
11462
11462
|
value: function(e, t) {
|
|
11463
11463
|
var i, a, o = e.toLocaleLowerCase().trim();
|
|
@@ -11493,9 +11493,9 @@ var Wo = Gr, jh = Wn, Be = ei, Hh = ti, Uh = /* @__PURE__ */ function() {
|
|
|
11493
11493
|
}]);
|
|
11494
11494
|
}(), fr = Jl.default = Uh, zh = /* @__PURE__ */ function() {
|
|
11495
11495
|
function n(r, e) {
|
|
11496
|
-
|
|
11496
|
+
w(this, n), this.silenceMS = 2e3, this.stop = !0, typeof e == "boolean" && e === !1 && (this.stop = !1), typeof r == "number" && (this.silenceMS = r);
|
|
11497
11497
|
}
|
|
11498
|
-
return
|
|
11498
|
+
return k(n, [{
|
|
11499
11499
|
key: "setSilenceTimeout",
|
|
11500
11500
|
value: function(e, t) {
|
|
11501
11501
|
var i = this;
|
|
@@ -11523,7 +11523,7 @@ var Wo = Gr, jh = Wn, Be = ei, Hh = ti, Uh = /* @__PURE__ */ function() {
|
|
|
11523
11523
|
}(), Ql = /* @__PURE__ */ function(n) {
|
|
11524
11524
|
function r(e, t, i) {
|
|
11525
11525
|
var a;
|
|
11526
|
-
|
|
11526
|
+
w(this, r);
|
|
11527
11527
|
var o = H(e.speechToText) == "object" ? e.speechToText : {};
|
|
11528
11528
|
a = U(this, r, [o == null ? void 0 : o.button]);
|
|
11529
11529
|
var s = a.processConfiguration(t, e.speechToText), l = s.serviceName, c = s.processedConfig;
|
|
@@ -11536,7 +11536,7 @@ var Wo = Gr, jh = Wn, Be = ei, Hh = ti, Uh = /* @__PURE__ */ function() {
|
|
|
11536
11536
|
a._validationHandler = e._validationHandler;
|
|
11537
11537
|
}), a;
|
|
11538
11538
|
}
|
|
11539
|
-
return z(r, n),
|
|
11539
|
+
return z(r, n), k(r, [{
|
|
11540
11540
|
key: "processConfiguration",
|
|
11541
11541
|
value: function(t, i) {
|
|
11542
11542
|
var a, o, s, l, c, u, d = H(i) == "object" ? i : {}, p = H(d.webSpeech) == "object" ? d.webSpeech : {}, h = d.azure || {}, f = ie(ie({
|
|
@@ -11625,11 +11625,11 @@ Ql.MICROPHONE_RESET_TIMEOUT_MS = 300;
|
|
|
11625
11625
|
var Ma = Ql, Pa = /* @__PURE__ */ function() {
|
|
11626
11626
|
function n(r, e, t, i) {
|
|
11627
11627
|
var a = this;
|
|
11628
|
-
|
|
11628
|
+
w(this, n), this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", e.maxNumberOfFiles && (this._fileCountLimit = e.maxNumberOfFiles), this._toggleContainerDisplay = t, this._fileAttachmentsContainerRef = i, e.acceptedFormats && (this._acceptedFormat = e.acceptedFormats), setTimeout(function() {
|
|
11629
11629
|
a._validationHandler = r._validationHandler;
|
|
11630
11630
|
});
|
|
11631
11631
|
}
|
|
11632
|
-
return
|
|
11632
|
+
return k(n, [{
|
|
11633
11633
|
key: "attemptAddFile",
|
|
11634
11634
|
value: function(e, t) {
|
|
11635
11635
|
return n.isFileTypeValid(e, this._acceptedFormat) ? (this.addAttachmentBasedOnType(e, t, !0), !0) : !1;
|
|
@@ -11755,9 +11755,9 @@ var Ma = Ql, Pa = /* @__PURE__ */ function() {
|
|
|
11755
11755
|
<path d="M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z"></path>
|
|
11756
11756
|
</svg>`, ec = /* @__PURE__ */ function(n) {
|
|
11757
11757
|
function r(e, t, i, a) {
|
|
11758
|
-
return
|
|
11758
|
+
return w(this, r), U(this, r, [e, t, i, a]);
|
|
11759
11759
|
}
|
|
11760
|
-
return z(r, n),
|
|
11760
|
+
return z(r, n), k(r, [{
|
|
11761
11761
|
key: "createTimer",
|
|
11762
11762
|
value: function(t, i) {
|
|
11763
11763
|
var a = this, o = 0, s = i !== void 0 && i < r.TIMER_LIMIT_S ? i : r.TIMER_LIMIT_S;
|
|
@@ -11859,9 +11859,9 @@ var Ma = Ql, Pa = /* @__PURE__ */ function() {
|
|
|
11859
11859
|
ec.TIMER_LIMIT_S = 5999;
|
|
11860
11860
|
var ma = ec, qh = /* @__PURE__ */ function() {
|
|
11861
11861
|
function n() {
|
|
11862
|
-
|
|
11862
|
+
w(this, n);
|
|
11863
11863
|
}
|
|
11864
|
-
return
|
|
11864
|
+
return k(n, null, [{
|
|
11865
11865
|
key: "create",
|
|
11866
11866
|
value: (
|
|
11867
11867
|
// prettier-ignore
|
|
@@ -11872,11 +11872,11 @@ var ma = ec, qh = /* @__PURE__ */ function() {
|
|
|
11872
11872
|
}]);
|
|
11873
11873
|
}(), Fa = /* @__PURE__ */ function() {
|
|
11874
11874
|
function n(r, e, t) {
|
|
11875
|
-
|
|
11875
|
+
w(this, n), this._fileAttachmentsTypes = [], this.elementRef = this.createAttachmentContainer();
|
|
11876
11876
|
var i = H(t) == "object" && !!t.displayFileAttachmentContainer;
|
|
11877
11877
|
this.toggleContainerDisplay(i), r.appendChild(this.elementRef), e && Object.assign(this.elementRef.style, e);
|
|
11878
11878
|
}
|
|
11879
|
-
return
|
|
11879
|
+
return k(n, [{
|
|
11880
11880
|
key: "addType",
|
|
11881
11881
|
value: function(e, t, i) {
|
|
11882
11882
|
var a = qh.create(e, t, this.toggleContainerDisplay.bind(this), this.elementRef, i);
|
|
@@ -11966,9 +11966,9 @@ var ma = ec, qh = /* @__PURE__ */ function() {
|
|
|
11966
11966
|
}]);
|
|
11967
11967
|
}(), tc = /* @__PURE__ */ function() {
|
|
11968
11968
|
function n(r, e, t) {
|
|
11969
|
-
|
|
11969
|
+
w(this, n), this._isOpen = !1, this._contentRef = n.createModalContent(e, t == null ? void 0 : t.backgroundColor), this._buttonPanel = n.createButtonPanel(t == null ? void 0 : t.backgroundColor), this._elementRef = n.createContainer(this._contentRef, t), this._elementRef.appendChild(this._buttonPanel), r.appendChild(this._elementRef), this._backgroundPanelRef = n.createDarkBackgroundPanel(), r.appendChild(this._backgroundPanelRef), this.addWindowEvents(r);
|
|
11970
11970
|
}
|
|
11971
|
-
return
|
|
11971
|
+
return k(n, [{
|
|
11972
11972
|
key: "isOpen",
|
|
11973
11973
|
value: function() {
|
|
11974
11974
|
return this._isOpen;
|
|
@@ -12074,13 +12074,13 @@ tc.MODAL_CLOSE_TIMEOUT_MS = 190;
|
|
|
12074
12074
|
var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
12075
12075
|
function r(e, t, i, a, o, s) {
|
|
12076
12076
|
var l;
|
|
12077
|
-
|
|
12077
|
+
w(this, r);
|
|
12078
12078
|
var c, u, d, p, h, f, g, y, v, b = (c = i == null ? void 0 : i.button) == null ? void 0 : c.position, S = ((p = (d = (u = i == null ? void 0 : i.button) == null ? void 0 : u.styles) == null ? void 0 : d.text) == null ? void 0 : p.content) || s;
|
|
12079
12079
|
l = U(this, r, [r.createButtonElement(), b, i.button, S]);
|
|
12080
12080
|
var N = b === "dropup-menu", R = l.createInnerElements(a, o, l._customStyles, N);
|
|
12081
12081
|
return l._inputElement = r.createInputElement((h = i == null ? void 0 : i.files) == null ? void 0 : h.acceptedFormats), l.addClickEvent(e, i), l.elementRef.replaceChildren(R.styles), l.reapplyStateStyle("styles"), l._fileAttachmentsType = t, l._openModalOnce = ((g = (f = i.files) == null ? void 0 : f.infoModal) == null ? void 0 : g.openModalOnce) === !1 || (v = (y = i.files) == null ? void 0 : y.infoModal) == null ? void 0 : v.openModalOnce, l;
|
|
12082
12082
|
}
|
|
12083
|
-
return z(r, n),
|
|
12083
|
+
return z(r, n), k(r, [{
|
|
12084
12084
|
key: "createInnerElements",
|
|
12085
12085
|
value: function(t, i, a) {
|
|
12086
12086
|
var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, s = r.createSVGIconElement(t, i);
|
|
@@ -12130,9 +12130,9 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12130
12130
|
}]);
|
|
12131
12131
|
}(Hn), Vo = /* @__PURE__ */ function() {
|
|
12132
12132
|
function n() {
|
|
12133
|
-
|
|
12133
|
+
w(this, n);
|
|
12134
12134
|
}
|
|
12135
|
-
return
|
|
12135
|
+
return k(n, null, [{
|
|
12136
12136
|
key: "create",
|
|
12137
12137
|
value: function(e, t, i) {
|
|
12138
12138
|
var a = n.createElement(i);
|
|
@@ -12181,9 +12181,9 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12181
12181
|
}]);
|
|
12182
12182
|
}(), Gh = /* @__PURE__ */ function() {
|
|
12183
12183
|
function n() {
|
|
12184
|
-
|
|
12184
|
+
w(this, n);
|
|
12185
12185
|
}
|
|
12186
|
-
return
|
|
12186
|
+
return k(n, null, [{
|
|
12187
12187
|
key: "validate",
|
|
12188
12188
|
value: (
|
|
12189
12189
|
// prettier-ignore
|
|
@@ -12277,9 +12277,9 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12277
12277
|
}]);
|
|
12278
12278
|
}(), nc = /* @__PURE__ */ function() {
|
|
12279
12279
|
function n() {
|
|
12280
|
-
|
|
12280
|
+
w(this, n);
|
|
12281
12281
|
}
|
|
12282
|
-
return
|
|
12282
|
+
return k(n, null, [{
|
|
12283
12283
|
key: "getFileName",
|
|
12284
12284
|
value: function(e, t) {
|
|
12285
12285
|
var i = /* @__PURE__ */ new Date(), a = String(i.getHours()).padStart(2, "0"), o = String(i.getMinutes()).padStart(2, "0"), s = String(i.getSeconds()).padStart(2, "0");
|
|
@@ -12289,11 +12289,11 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12289
12289
|
}(), Kh = /* @__PURE__ */ function(n) {
|
|
12290
12290
|
function r(e, t) {
|
|
12291
12291
|
var i;
|
|
12292
|
-
|
|
12292
|
+
w(this, r);
|
|
12293
12293
|
var a, o;
|
|
12294
12294
|
return i = U(this, r, [t.button]), i._waitingForBrowserApproval = !1, i._audioType = e, i._extension = ((a = t.files) == null ? void 0 : a.format) || "mp3", i._maxDurationSeconds = (o = t.files) == null ? void 0 : o.maxDurationSeconds, i.elementRef.onclick = i.buttonClick.bind(An(i)), i;
|
|
12295
12295
|
}
|
|
12296
|
-
return z(r, n),
|
|
12296
|
+
return z(r, n), k(r, [{
|
|
12297
12297
|
key: "buttonClick",
|
|
12298
12298
|
value: function() {
|
|
12299
12299
|
this._waitingForBrowserApproval || (this.isActive ? this.stop() : (this._waitingForBrowserApproval = !0, this.record()));
|
|
@@ -12348,9 +12348,9 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12348
12348
|
</svg>
|
|
12349
12349
|
`, yt = /* @__PURE__ */ function() {
|
|
12350
12350
|
function n() {
|
|
12351
|
-
|
|
12351
|
+
w(this, n);
|
|
12352
12352
|
}
|
|
12353
|
-
return
|
|
12353
|
+
return k(n, null, [{
|
|
12354
12354
|
key: "setPropertyValueIfDoesNotExist",
|
|
12355
12355
|
value: function(e, t, i) {
|
|
12356
12356
|
var a, o, s = t[0];
|
|
@@ -12380,9 +12380,9 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12380
12380
|
}]);
|
|
12381
12381
|
}(), Go = /* @__PURE__ */ function() {
|
|
12382
12382
|
function n() {
|
|
12383
|
-
|
|
12383
|
+
w(this, n);
|
|
12384
12384
|
}
|
|
12385
|
-
return
|
|
12385
|
+
return k(n, null, [{
|
|
12386
12386
|
key: "resetSubmit",
|
|
12387
12387
|
value: function(e, t) {
|
|
12388
12388
|
t ? e.unsetCustomStateStyles(["loading", "submit"]) : e.unsetCustomStateStyles(["stop", "loading", "submit"]), e.reapplyStateStyle("submit");
|
|
@@ -12411,7 +12411,7 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12411
12411
|
}(), mr = /* @__PURE__ */ function(n) {
|
|
12412
12412
|
function r(e, t, i, a, o, s) {
|
|
12413
12413
|
var l;
|
|
12414
|
-
|
|
12414
|
+
w(this, r);
|
|
12415
12415
|
var c = Go.process(e.submitButtonStyles);
|
|
12416
12416
|
return l = U(this, r, [r.createButtonContainerElement(), c == null ? void 0 : c.position, c]), l._isSVGLoadingIconOverriden = !1, l.status = {
|
|
12417
12417
|
requestInProgress: !1,
|
|
@@ -12424,7 +12424,7 @@ var Sn = tc, Vh = /* @__PURE__ */ function(n) {
|
|
|
12424
12424
|
l._validationHandler = e._validationHandler, l.assignHandlers(l._validationHandler), (u = l._validationHandler) == null || u.call(An(l));
|
|
12425
12425
|
}), l;
|
|
12426
12426
|
}
|
|
12427
|
-
return z(r, n),
|
|
12427
|
+
return z(r, n), k(r, [{
|
|
12428
12428
|
key: "createInnerElements",
|
|
12429
12429
|
value: function() {
|
|
12430
12430
|
var t = this.createCustomElements(), i = t.submit, a = t.loading, o = t.stop, s = i || r.createSubmitIconElement();
|
|
@@ -12701,11 +12701,11 @@ var Zh = mr, Yh = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12701
12701
|
</svg>`, tf = /* @__PURE__ */ function(n) {
|
|
12702
12702
|
function r(e, t, i, a) {
|
|
12703
12703
|
var o;
|
|
12704
|
-
|
|
12704
|
+
w(this, r), o = U(this, r, [e, ["modal-content", "modal-camera-content"], i]), o._stopped = !1, o._format = "image/png", o._canvas = document.createElement("canvas"), o._canvas.classList.add("camera-modal-canvas");
|
|
12705
12705
|
var s = o.addButtonsAndTheirEvents(t), l = s.captureButton, c = s.submitButton;
|
|
12706
12706
|
return o._captureButton = l, o._submitButton = c, o._captureIcon = o._captureButton.children[0], o._refreshIcon = Le.createSVGElement(Yh), o._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (a == null ? void 0 : a.format) === "jpeg" && (o._format = "image/jpeg"), a != null && a.dimensions && (o._dimensions = a.dimensions), o._contentRef.appendChild(o._canvas), o.extensionCloseCallback = o.stop, o;
|
|
12707
12707
|
}
|
|
12708
|
-
return z(r, n),
|
|
12708
|
+
return z(r, n), k(r, [{
|
|
12709
12709
|
key: "addButtonsAndTheirEvents",
|
|
12710
12710
|
value: function(t) {
|
|
12711
12711
|
var i = Sn.createSVGButton(Xh);
|
|
@@ -12805,13 +12805,13 @@ var Zh = mr, Yh = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12805
12805
|
</svg>`, rf = /* @__PURE__ */ function(n) {
|
|
12806
12806
|
function r(e, t, i) {
|
|
12807
12807
|
var a;
|
|
12808
|
-
|
|
12808
|
+
w(this, r);
|
|
12809
12809
|
var o, s, l, c, u = (o = i == null ? void 0 : i.button) == null ? void 0 : o.position, d = ((c = (l = (s = i == null ? void 0 : i.button) == null ? void 0 : s.styles) == null ? void 0 : l.text) == null ? void 0 : c.content) || "Photo";
|
|
12810
12810
|
a = U(this, r, [r.createButtonElement(), u, (i == null ? void 0 : i.button) || {}, d]);
|
|
12811
12811
|
var p = a.createInnerElements(a._customStyles, u === "dropup-menu");
|
|
12812
12812
|
return i && a.addClickEvent(e, t, i.modalContainerStyle, i.files), a.elementRef.classList.add("upload-file-button"), a.elementRef.appendChild(p.styles), a.reapplyStateStyle("styles"), a;
|
|
12813
12813
|
}
|
|
12814
|
-
return z(r, n),
|
|
12814
|
+
return z(r, n), k(r, [{
|
|
12815
12815
|
key: "createInnerElements",
|
|
12816
12816
|
value: function(t) {
|
|
12817
12817
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
@@ -12843,7 +12843,7 @@ var Zh = mr, Yh = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12843
12843
|
}]);
|
|
12844
12844
|
}(Hn), af = /* @__PURE__ */ function() {
|
|
12845
12845
|
function n(r, e, t, i) {
|
|
12846
|
-
|
|
12846
|
+
w(this, n), this.elementRef = n.createPanelElement(r.inputAreaStyle);
|
|
12847
12847
|
var a = {}, o = this.createFileUploadComponents(r, t, i, a), s = new Ln(r, t, o);
|
|
12848
12848
|
r.speechToText && !a.microphone && (a.microphone = {
|
|
12849
12849
|
button: new Ma(r, s, e.addNewErrorMessage.bind(e))
|
|
@@ -12853,7 +12853,7 @@ var Zh = mr, Yh = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12853
12853
|
button: l
|
|
12854
12854
|
}, n.addElements(this.elementRef, s, a, i, o, r.dropupStyles);
|
|
12855
12855
|
}
|
|
12856
|
-
return
|
|
12856
|
+
return k(n, [{
|
|
12857
12857
|
key: "createFileUploadComponents",
|
|
12858
12858
|
value: (
|
|
12859
12859
|
// prettier-ignore
|
|
@@ -12906,9 +12906,9 @@ var Zh = mr, Yh = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12906
12906
|
}]);
|
|
12907
12907
|
}(), of = /* @__PURE__ */ function() {
|
|
12908
12908
|
function n() {
|
|
12909
|
-
|
|
12909
|
+
w(this, n);
|
|
12910
12910
|
}
|
|
12911
|
-
return
|
|
12911
|
+
return k(n, null, [{
|
|
12912
12912
|
key: "createElements",
|
|
12913
12913
|
value: function(e, t, i) {
|
|
12914
12914
|
var a = document.createElement("div");
|
|
@@ -12937,7 +12937,7 @@ var Zh = mr, Yh = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12937
12937
|
}, X = /* @__PURE__ */ function(n) {
|
|
12938
12938
|
function r() {
|
|
12939
12939
|
var e;
|
|
12940
|
-
return
|
|
12940
|
+
return w(this, r), e = U(this, r), e.getMessages = function() {
|
|
12941
12941
|
return [];
|
|
12942
12942
|
}, e.submitUserMessage = function() {
|
|
12943
12943
|
return console.warn("submitUserMessage failed - please wait for chat view to render before calling this property.");
|
|
@@ -12956,7 +12956,7 @@ var Zh = mr, Yh = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12956
12956
|
e._hasBeenRendered || e.onRender();
|
|
12957
12957
|
}, 20), e;
|
|
12958
12958
|
}
|
|
12959
|
-
return z(r, n),
|
|
12959
|
+
return z(r, n), k(r, [{
|
|
12960
12960
|
key: "changeToChatView",
|
|
12961
12961
|
value: function() {
|
|
12962
12962
|
this._activeService && (this._activeService.validateKeyProperty = !1), this.onRender();
|
|
@@ -13038,7 +13038,7 @@ let rc = class {
|
|
|
13038
13038
|
return this.cssText;
|
|
13039
13039
|
}
|
|
13040
13040
|
};
|
|
13041
|
-
const
|
|
13041
|
+
const E = (n) => new rc(typeof n == "string" ? n : n + "", void 0, Da), ht = (n, ...r) => {
|
|
13042
13042
|
const e = n.length === 1 ? n[0] : r.reduce((t, i, a) => t + ((o) => {
|
|
13043
13043
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
13044
13044
|
if (typeof o == "number") return o;
|
|
@@ -13054,7 +13054,7 @@ const A = (n) => new rc(typeof n == "string" ? n : n + "", void 0, Da), ht = (n,
|
|
|
13054
13054
|
}, Jo = Na ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((r) => {
|
|
13055
13055
|
let e = "";
|
|
13056
13056
|
for (const t of r.cssRules) e += t.cssText;
|
|
13057
|
-
return
|
|
13057
|
+
return E(e);
|
|
13058
13058
|
})(n) : n;
|
|
13059
13059
|
/**
|
|
13060
13060
|
* @license
|
|
@@ -13302,7 +13302,7 @@ function lc(n, r) {
|
|
|
13302
13302
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
13303
13303
|
return Xo !== void 0 ? Xo.createHTML(r) : r;
|
|
13304
13304
|
}
|
|
13305
|
-
const
|
|
13305
|
+
const wf = (n, r) => {
|
|
13306
13306
|
const e = n.length - 1, t = [];
|
|
13307
13307
|
let i, a = r === 2 ? "<svg>" : "", o = ln;
|
|
13308
13308
|
for (let s = 0; s < e; s++) {
|
|
@@ -13319,7 +13319,7 @@ class Nn {
|
|
|
13319
13319
|
let i;
|
|
13320
13320
|
this.parts = [];
|
|
13321
13321
|
let a = 0, o = 0;
|
|
13322
|
-
const s = r.length - 1, l = this.parts, [c, u] =
|
|
13322
|
+
const s = r.length - 1, l = this.parts, [c, u] = wf(r, e);
|
|
13323
13323
|
if (this.el = Nn.createElement(c, t), St.currentNode = this.el.content, e === 2) {
|
|
13324
13324
|
const d = this.el.content.firstChild;
|
|
13325
13325
|
d.replaceWith(...d.childNodes);
|
|
@@ -13358,7 +13358,7 @@ function Yt(n, r, e = n, t) {
|
|
|
13358
13358
|
const a = Fn(r) ? void 0 : r._$litDirective$;
|
|
13359
13359
|
return (i == null ? void 0 : i.constructor) !== a && ((s = i == null ? void 0 : i._$AO) == null || s.call(i, !1), a === void 0 ? i = void 0 : (i = new a(n), i._$AT(n, e, t)), t !== void 0 ? (e._$Co ?? (e._$Co = []))[t] = i : e._$Cl = i), i !== void 0 && (r = Yt(n, i._$AS(n, r.values), i, t)), r;
|
|
13360
13360
|
}
|
|
13361
|
-
class
|
|
13361
|
+
class kf {
|
|
13362
13362
|
constructor(r, e) {
|
|
13363
13363
|
this._$AV = [], this._$AN = void 0, this._$AD = r, this._$AM = e;
|
|
13364
13364
|
}
|
|
@@ -13375,7 +13375,7 @@ class wf {
|
|
|
13375
13375
|
for (; l !== void 0; ) {
|
|
13376
13376
|
if (o === l.index) {
|
|
13377
13377
|
let c;
|
|
13378
|
-
l.type === 2 ? c = new Vn(a, a.nextSibling, this, r) : l.type === 1 ? c = new l.ctor(a, l.name, l.strings, this, r) : l.type === 6 && (c = new
|
|
13378
|
+
l.type === 2 ? c = new Vn(a, a.nextSibling, this, r) : l.type === 1 ? c = new l.ctor(a, l.name, l.strings, this, r) : l.type === 6 && (c = new xf(a, this, r)), this._$AV.push(c), l = t[++s];
|
|
13379
13379
|
}
|
|
13380
13380
|
o !== (l == null ? void 0 : l.index) && (a = St.nextNode(), o++);
|
|
13381
13381
|
}
|
|
@@ -13422,7 +13422,7 @@ class Vn {
|
|
|
13422
13422
|
const { values: e, _$litType$: t } = r, i = typeof t == "number" ? this._$AC(r) : (t.el === void 0 && (t.el = Nn.createElement(lc(t.h, t.h[0]), this.options)), t);
|
|
13423
13423
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === i) this._$AH.p(e);
|
|
13424
13424
|
else {
|
|
13425
|
-
const o = new
|
|
13425
|
+
const o = new kf(i, this), s = o.u(this.options);
|
|
13426
13426
|
o.p(e), this.T(s), this._$AH = o;
|
|
13427
13427
|
}
|
|
13428
13428
|
}
|
|
@@ -13504,7 +13504,7 @@ class Cf extends li {
|
|
|
13504
13504
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, r) : this._$AH.handleEvent(r);
|
|
13505
13505
|
}
|
|
13506
13506
|
}
|
|
13507
|
-
class
|
|
13507
|
+
class xf {
|
|
13508
13508
|
constructor(r, e, t) {
|
|
13509
13509
|
this.element = r, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = t;
|
|
13510
13510
|
}
|
|
@@ -13517,7 +13517,7 @@ class Ef {
|
|
|
13517
13517
|
}
|
|
13518
13518
|
const Oi = Cn.litHtmlPolyfillSupport;
|
|
13519
13519
|
Oi == null || Oi(Nn, Vn), (Cn.litHtmlVersions ?? (Cn.litHtmlVersions = [])).push("3.1.4");
|
|
13520
|
-
const
|
|
13520
|
+
const Ef = (n, r, e) => {
|
|
13521
13521
|
const t = (e == null ? void 0 : e.renderBefore) ?? r;
|
|
13522
13522
|
let i = t._$litPart$;
|
|
13523
13523
|
if (i === void 0) {
|
|
@@ -13531,7 +13531,7 @@ const xf = (n, r, e) => {
|
|
|
13531
13531
|
* Copyright 2017 Google LLC
|
|
13532
13532
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13533
13533
|
*/
|
|
13534
|
-
let
|
|
13534
|
+
let xn = class extends Kt {
|
|
13535
13535
|
constructor() {
|
|
13536
13536
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
13537
13537
|
}
|
|
@@ -13542,7 +13542,7 @@ let En = class extends Kt {
|
|
|
13542
13542
|
}
|
|
13543
13543
|
update(r) {
|
|
13544
13544
|
const e = this.render();
|
|
13545
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(r), this._$Do =
|
|
13545
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(r), this._$Do = Ef(e, this.renderRoot, this.renderOptions);
|
|
13546
13546
|
}
|
|
13547
13547
|
connectedCallback() {
|
|
13548
13548
|
var r;
|
|
@@ -13557,9 +13557,9 @@ let En = class extends Kt {
|
|
|
13557
13557
|
}
|
|
13558
13558
|
};
|
|
13559
13559
|
var ml;
|
|
13560
|
-
|
|
13560
|
+
xn._$litElement$ = !0, xn.finalized = !0, (ml = globalThis.litElementHydrateSupport) == null || ml.call(globalThis, { LitElement: xn });
|
|
13561
13561
|
const Ii = globalThis.litElementPolyfillSupport;
|
|
13562
|
-
Ii == null || Ii({ LitElement:
|
|
13562
|
+
Ii == null || Ii({ LitElement: xn });
|
|
13563
13563
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
|
|
13564
13564
|
/**
|
|
13565
13565
|
* @license
|
|
@@ -13800,9 +13800,9 @@ function mc(n, r, e, t) {
|
|
|
13800
13800
|
u[s++] = n[i++];
|
|
13801
13801
|
return u;
|
|
13802
13802
|
}
|
|
13803
|
-
var
|
|
13803
|
+
var w0 = Math.max;
|
|
13804
13804
|
function gc(n, r, e, t) {
|
|
13805
|
-
for (var i = -1, a = n.length, o = -1, s = e.length, l = -1, c = r.length, u =
|
|
13805
|
+
for (var i = -1, a = n.length, o = -1, s = e.length, l = -1, c = r.length, u = w0(a - s, 0), d = Array(u + c), p = !t; ++i < u; )
|
|
13806
13806
|
d[i] = n[i];
|
|
13807
13807
|
for (var h = i; ++l < c; )
|
|
13808
13808
|
d[h + l] = r[l];
|
|
@@ -13810,7 +13810,7 @@ function gc(n, r, e, t) {
|
|
|
13810
13810
|
(p || i < a) && (d[h + e[o]] = n[i++]);
|
|
13811
13811
|
return d;
|
|
13812
13812
|
}
|
|
13813
|
-
function
|
|
13813
|
+
function k0(n, r) {
|
|
13814
13814
|
for (var e = n.length, t = 0; e--; )
|
|
13815
13815
|
n[e] === r && ++t;
|
|
13816
13816
|
return t;
|
|
@@ -13827,9 +13827,9 @@ function _0() {
|
|
|
13827
13827
|
}
|
|
13828
13828
|
var vc = Pr ? function(n) {
|
|
13829
13829
|
return Pr.get(n);
|
|
13830
|
-
} : _0, ds = {}, C0 = Object.prototype,
|
|
13831
|
-
function
|
|
13832
|
-
for (var r = n.name + "", e = ds[r], t =
|
|
13830
|
+
} : _0, ds = {}, C0 = Object.prototype, x0 = C0.hasOwnProperty;
|
|
13831
|
+
function E0(n) {
|
|
13832
|
+
for (var r = n.name + "", e = ds[r], t = x0.call(ds, r) ? e.length : 0; t--; ) {
|
|
13833
13833
|
var i = e[t], a = i.func;
|
|
13834
13834
|
if (a == null || a == n)
|
|
13835
13835
|
return i.name;
|
|
@@ -13866,7 +13866,7 @@ function Fr(n) {
|
|
|
13866
13866
|
Fr.prototype = Ha.prototype;
|
|
13867
13867
|
Fr.prototype.constructor = Fr;
|
|
13868
13868
|
function L0(n) {
|
|
13869
|
-
var r =
|
|
13869
|
+
var r = E0(n), e = Fr[r];
|
|
13870
13870
|
if (typeof e != "function" || !(r in Qt.prototype))
|
|
13871
13871
|
return !1;
|
|
13872
13872
|
if (n === e)
|
|
@@ -13887,7 +13887,7 @@ function bc(n) {
|
|
|
13887
13887
|
return n.apply(void 0, arguments);
|
|
13888
13888
|
};
|
|
13889
13889
|
}
|
|
13890
|
-
var
|
|
13890
|
+
var wc = bc(hc), P0 = /\{\n\/\* \[wrapped with (.+)\] \*/, F0 = /,? & /;
|
|
13891
13891
|
function N0(n) {
|
|
13892
13892
|
var r = n.match(P0);
|
|
13893
13893
|
return r ? r[1].split(F0) : [];
|
|
@@ -13965,7 +13965,7 @@ function im(n, r) {
|
|
|
13965
13965
|
r & e[1] && !G0(n, t) && n.push(t);
|
|
13966
13966
|
}), n.sort();
|
|
13967
13967
|
}
|
|
13968
|
-
function
|
|
13968
|
+
function kc(n, r, e) {
|
|
13969
13969
|
var t = r + "";
|
|
13970
13970
|
return H0(n, $0(t, im(N0(t), e)));
|
|
13971
13971
|
}
|
|
@@ -13985,7 +13985,7 @@ function Sc(n, r, e, t, i, a, o, s, l, c) {
|
|
|
13985
13985
|
l,
|
|
13986
13986
|
c
|
|
13987
13987
|
], y = e.apply(void 0, g);
|
|
13988
|
-
return L0(n) &&
|
|
13988
|
+
return L0(n) && wc(y, g), y.placeholder = t, kc(y, n, r);
|
|
13989
13989
|
}
|
|
13990
13990
|
function _c(n) {
|
|
13991
13991
|
var r = n;
|
|
@@ -14019,7 +14019,7 @@ function Ua(n, r, e, t, i, a, o, s, l, c) {
|
|
|
14019
14019
|
for (var v = arguments.length, b = Array(v), S = v; S--; )
|
|
14020
14020
|
b[S] = arguments[S];
|
|
14021
14021
|
if (h)
|
|
14022
|
-
var N = _c(y), R =
|
|
14022
|
+
var N = _c(y), R = k0(b, N);
|
|
14023
14023
|
if (t && (b = mc(b, t, i, h)), a && (b = gc(b, a, o, h)), v -= R, h && v < c) {
|
|
14024
14024
|
var j = Nr(b, N);
|
|
14025
14025
|
return Sc(
|
|
@@ -14040,7 +14040,7 @@ function Ua(n, r, e, t, i, a, o, s, l, c) {
|
|
|
14040
14040
|
}
|
|
14041
14041
|
return y;
|
|
14042
14042
|
}
|
|
14043
|
-
function
|
|
14043
|
+
function wm(n, r, e) {
|
|
14044
14044
|
var t = Dn(n);
|
|
14045
14045
|
function i() {
|
|
14046
14046
|
for (var a = arguments.length, o = Array(a), s = a, l = _c(i); s--; )
|
|
@@ -14064,9 +14064,9 @@ function km(n, r, e) {
|
|
|
14064
14064
|
}
|
|
14065
14065
|
return i;
|
|
14066
14066
|
}
|
|
14067
|
-
var
|
|
14067
|
+
var km = 1;
|
|
14068
14068
|
function Sm(n, r, e, t) {
|
|
14069
|
-
var i = r &
|
|
14069
|
+
var i = r & km, a = Dn(n);
|
|
14070
14070
|
function o() {
|
|
14071
14071
|
for (var s = -1, l = arguments.length, c = -1, u = t.length, d = Array(u + l), p = this && this !== Nt && this instanceof o ? a : n; ++c < u; )
|
|
14072
14072
|
d[c] = t[c];
|
|
@@ -14076,8 +14076,8 @@ function Sm(n, r, e, t) {
|
|
|
14076
14076
|
}
|
|
14077
14077
|
return o;
|
|
14078
14078
|
}
|
|
14079
|
-
var gs = "__lodash_placeholder__", Pi = 1, _m = 2, Cm = 4, vs = 8, un = 128, ys = 256,
|
|
14080
|
-
function
|
|
14079
|
+
var gs = "__lodash_placeholder__", Pi = 1, _m = 2, Cm = 4, vs = 8, un = 128, ys = 256, xm = Math.min;
|
|
14080
|
+
function Em(n, r) {
|
|
14081
14081
|
var e = n[1], t = r[1], i = e | t, a = i < (Pi | _m | un), o = t == un && e == vs || t == un && e == ys && n[7].length <= r[8] || t == (un | ys) && r[7].length <= r[8] && e == vs;
|
|
14082
14082
|
if (!(a || o))
|
|
14083
14083
|
return n;
|
|
@@ -14087,15 +14087,15 @@ function xm(n, r) {
|
|
|
14087
14087
|
var l = n[3];
|
|
14088
14088
|
n[3] = l ? mc(l, s, r[4]) : s, n[4] = l ? Nr(n[3], gs) : r[4];
|
|
14089
14089
|
}
|
|
14090
|
-
return s = r[5], s && (l = n[5], n[5] = l ? gc(l, s, r[6]) : s, n[6] = l ? Nr(n[5], gs) : r[6]), s = r[7], s && (n[7] = s), t & un && (n[8] = n[8] == null ? r[8] :
|
|
14090
|
+
return s = r[5], s && (l = n[5], n[5] = l ? gc(l, s, r[6]) : s, n[6] = l ? Nr(n[5], gs) : r[6]), s = r[7], s && (n[7] = s), t & un && (n[8] = n[8] == null ? r[8] : xm(n[8], r[8])), n[9] == null && (n[9] = r[9]), n[0] = r[0], n[1] = i, n;
|
|
14091
14091
|
}
|
|
14092
|
-
var Am = "Expected a function", bs = 1, Tm = 2, Fi = 8, Ni = 16, Di = 32,
|
|
14092
|
+
var Am = "Expected a function", bs = 1, Tm = 2, Fi = 8, Ni = 16, Di = 32, ws = 64, ks = Math.max;
|
|
14093
14093
|
function Rm(n, r, e, t, i, a, o, s) {
|
|
14094
14094
|
var l = r & Tm;
|
|
14095
14095
|
if (!l && typeof n != "function")
|
|
14096
14096
|
throw new TypeError(Am);
|
|
14097
14097
|
var c = t ? t.length : 0;
|
|
14098
|
-
if (c || (r &= ~(Di |
|
|
14098
|
+
if (c || (r &= ~(Di | ws), t = i = void 0), o = o === void 0 ? o : ks(ss(o), 0), s = s === void 0 ? s : ss(s), c -= i ? i.length : 0, r & ws) {
|
|
14099
14099
|
var u = t, d = i;
|
|
14100
14100
|
t = i = void 0;
|
|
14101
14101
|
}
|
|
@@ -14111,11 +14111,11 @@ function Rm(n, r, e, t, i, a, o, s) {
|
|
|
14111
14111
|
o,
|
|
14112
14112
|
s
|
|
14113
14113
|
];
|
|
14114
|
-
if (p &&
|
|
14114
|
+
if (p && Em(h, p), n = h[0], r = h[1], e = h[2], t = h[3], i = h[4], s = h[9] = h[9] === void 0 ? l ? 0 : n.length : ks(h[9] - c, 0), !s && r & (Fi | Ni) && (r &= ~(Fi | Ni)), !r || r == bs)
|
|
14115
14115
|
var f = y0(n, r, e);
|
|
14116
|
-
else r == Fi || r == Ni ? f =
|
|
14117
|
-
var g = p ? hc :
|
|
14118
|
-
return
|
|
14116
|
+
else r == Fi || r == Ni ? f = wm(n, r, s) : (r == Di || r == (bs | Di)) && !i.length ? f = Sm(n, r, e, t) : f = Ua.apply(void 0, h);
|
|
14117
|
+
var g = p ? hc : wc;
|
|
14118
|
+
return kc(g(f, h), n, r);
|
|
14119
14119
|
}
|
|
14120
14120
|
var Lm = 8;
|
|
14121
14121
|
function Gn(n, r, e) {
|
|
@@ -14175,7 +14175,7 @@ function Cs(n, r, e, t = Fm) {
|
|
|
14175
14175
|
const u = e - a / 2, d = s + u, p = l + u, h = c + u;
|
|
14176
14176
|
return t(d, p, h);
|
|
14177
14177
|
}
|
|
14178
|
-
const
|
|
14178
|
+
const xs = {
|
|
14179
14179
|
aliceblue: "f0f8ff",
|
|
14180
14180
|
antiquewhite: "faebd7",
|
|
14181
14181
|
aqua: "00ffff",
|
|
@@ -14328,9 +14328,9 @@ const Es = {
|
|
|
14328
14328
|
function Nm(n) {
|
|
14329
14329
|
if (typeof n != "string") return n;
|
|
14330
14330
|
const r = n.toLowerCase();
|
|
14331
|
-
return
|
|
14331
|
+
return xs[r] ? `#${xs[r]}` : n;
|
|
14332
14332
|
}
|
|
14333
|
-
const
|
|
14333
|
+
const Es = (n) => n.length === 7 && n[1] === n[2] && n[3] === n[4] && n[5] === n[6] ? `#${n[1]}${n[3]}${n[5]}` : n;
|
|
14334
14334
|
function Ht(n) {
|
|
14335
14335
|
const r = n.toString(16);
|
|
14336
14336
|
return r.length === 1 ? `0${r}` : r;
|
|
@@ -14383,9 +14383,9 @@ function de(n, r, e, t) {
|
|
|
14383
14383
|
}
|
|
14384
14384
|
function As(n, r, e) {
|
|
14385
14385
|
if (typeof n == "number" && typeof r == "number" && typeof e == "number")
|
|
14386
|
-
return
|
|
14386
|
+
return Es(`#${Ht(n)}${Ht(r)}${Ht(e)}`);
|
|
14387
14387
|
if (typeof n == "object" && r === void 0 && e === void 0)
|
|
14388
|
-
return
|
|
14388
|
+
return Es(`#${Ht(n.red)}${Ht(n.green)}${Ht(n.blue)}`);
|
|
14389
14389
|
throw new Ve(6);
|
|
14390
14390
|
}
|
|
14391
14391
|
function Dr(n) {
|
|
@@ -14792,7 +14792,7 @@ const Vm = {
|
|
|
14792
14792
|
}, Ym = 8, Xm = (n) => Cc(`${n * Ym}px`), L = {
|
|
14793
14793
|
regular: 400,
|
|
14794
14794
|
bolder: 600
|
|
14795
|
-
},
|
|
14795
|
+
}, ke = {
|
|
14796
14796
|
none: "0px",
|
|
14797
14797
|
lg: "0.04em",
|
|
14798
14798
|
md: "0.02em",
|
|
@@ -15376,7 +15376,7 @@ const Vm = {
|
|
|
15376
15376
|
fontWeight: L.bolder,
|
|
15377
15377
|
fontSize: O.desktop.title.spe.md,
|
|
15378
15378
|
lineHeight: M.desktop.title.md,
|
|
15379
|
-
letterSpacing:
|
|
15379
|
+
letterSpacing: ke.md,
|
|
15380
15380
|
textTransform: "uppercase"
|
|
15381
15381
|
},
|
|
15382
15382
|
tablet: {
|
|
@@ -15384,7 +15384,7 @@ const Vm = {
|
|
|
15384
15384
|
fontWeight: L.bolder,
|
|
15385
15385
|
fontSize: O.tablet.title.spe.md,
|
|
15386
15386
|
lineHeight: M.tablet.title.md,
|
|
15387
|
-
letterSpacing:
|
|
15387
|
+
letterSpacing: ke.md,
|
|
15388
15388
|
textTransform: "uppercase"
|
|
15389
15389
|
},
|
|
15390
15390
|
mobile: {
|
|
@@ -15392,7 +15392,7 @@ const Vm = {
|
|
|
15392
15392
|
fontWeight: L.bolder,
|
|
15393
15393
|
fontSize: O.mobile.title.spe.md,
|
|
15394
15394
|
lineHeight: M.mobile.title.md,
|
|
15395
|
-
letterSpacing:
|
|
15395
|
+
letterSpacing: ke.md,
|
|
15396
15396
|
textTransform: "uppercase"
|
|
15397
15397
|
}
|
|
15398
15398
|
},
|
|
@@ -15422,7 +15422,7 @@ const Vm = {
|
|
|
15422
15422
|
fontWeight: L.bolder,
|
|
15423
15423
|
fontSize: O.desktop.title.spe.xs,
|
|
15424
15424
|
lineHeight: M.desktop.title.xs,
|
|
15425
|
-
letterSpacing:
|
|
15425
|
+
letterSpacing: ke.md,
|
|
15426
15426
|
textTransform: "uppercase"
|
|
15427
15427
|
},
|
|
15428
15428
|
tablet: {
|
|
@@ -15430,7 +15430,7 @@ const Vm = {
|
|
|
15430
15430
|
fontWeight: L.bolder,
|
|
15431
15431
|
fontSize: O.tablet.title.spe.xs,
|
|
15432
15432
|
lineHeight: M.tablet.title.xs,
|
|
15433
|
-
letterSpacing:
|
|
15433
|
+
letterSpacing: ke.md,
|
|
15434
15434
|
textTransform: "uppercase"
|
|
15435
15435
|
},
|
|
15436
15436
|
mobile: {
|
|
@@ -15438,7 +15438,7 @@ const Vm = {
|
|
|
15438
15438
|
fontWeight: L.bolder,
|
|
15439
15439
|
fontSize: O.mobile.title.spe.xs,
|
|
15440
15440
|
lineHeight: M.mobile.title.xs,
|
|
15441
|
-
letterSpacing:
|
|
15441
|
+
letterSpacing: ke.md,
|
|
15442
15442
|
textTransform: "uppercase"
|
|
15443
15443
|
}
|
|
15444
15444
|
},
|
|
@@ -15468,7 +15468,7 @@ const Vm = {
|
|
|
15468
15468
|
fontWeight: L.bolder,
|
|
15469
15469
|
fontSize: O.desktop.title.spe.xl,
|
|
15470
15470
|
lineHeight: M.desktop.title.xl,
|
|
15471
|
-
letterSpacing:
|
|
15471
|
+
letterSpacing: ke.md,
|
|
15472
15472
|
textTransform: "uppercase"
|
|
15473
15473
|
},
|
|
15474
15474
|
tablet: {
|
|
@@ -15476,7 +15476,7 @@ const Vm = {
|
|
|
15476
15476
|
fontWeight: L.bolder,
|
|
15477
15477
|
fontSize: O.tablet.title.spe.xl,
|
|
15478
15478
|
lineHeight: M.tablet.title.xl,
|
|
15479
|
-
letterSpacing:
|
|
15479
|
+
letterSpacing: ke.md,
|
|
15480
15480
|
textTransform: "uppercase"
|
|
15481
15481
|
},
|
|
15482
15482
|
mobile: {
|
|
@@ -15484,7 +15484,7 @@ const Vm = {
|
|
|
15484
15484
|
fontWeight: L.bolder,
|
|
15485
15485
|
fontSize: O.mobile.title.spe.xl,
|
|
15486
15486
|
lineHeight: M.mobile.title.xl,
|
|
15487
|
-
letterSpacing:
|
|
15487
|
+
letterSpacing: ke.md,
|
|
15488
15488
|
textTransform: "uppercase"
|
|
15489
15489
|
}
|
|
15490
15490
|
},
|
|
@@ -15514,7 +15514,7 @@ const Vm = {
|
|
|
15514
15514
|
fontWeight: L.bolder,
|
|
15515
15515
|
fontSize: O.desktop.title.spe.lg,
|
|
15516
15516
|
lineHeight: M.desktop.title.lg,
|
|
15517
|
-
letterSpacing:
|
|
15517
|
+
letterSpacing: ke.md,
|
|
15518
15518
|
textTransform: "uppercase"
|
|
15519
15519
|
},
|
|
15520
15520
|
tablet: {
|
|
@@ -15522,7 +15522,7 @@ const Vm = {
|
|
|
15522
15522
|
fontWeight: L.bolder,
|
|
15523
15523
|
fontSize: O.tablet.title.spe.lg,
|
|
15524
15524
|
lineHeight: M.tablet.title.lg,
|
|
15525
|
-
letterSpacing:
|
|
15525
|
+
letterSpacing: ke.md,
|
|
15526
15526
|
textTransform: "uppercase"
|
|
15527
15527
|
},
|
|
15528
15528
|
mobile: {
|
|
@@ -15530,7 +15530,7 @@ const Vm = {
|
|
|
15530
15530
|
fontWeight: L.bolder,
|
|
15531
15531
|
fontSize: O.mobile.title.spe.lg,
|
|
15532
15532
|
lineHeight: M.mobile.title.lg,
|
|
15533
|
-
letterSpacing:
|
|
15533
|
+
letterSpacing: ke.md,
|
|
15534
15534
|
textTransform: "uppercase"
|
|
15535
15535
|
}
|
|
15536
15536
|
},
|
|
@@ -15560,7 +15560,7 @@ const Vm = {
|
|
|
15560
15560
|
fontWeight: L.bolder,
|
|
15561
15561
|
fontSize: O.desktop.title.spe.sm,
|
|
15562
15562
|
lineHeight: M.desktop.title.sm,
|
|
15563
|
-
letterSpacing:
|
|
15563
|
+
letterSpacing: ke.md,
|
|
15564
15564
|
textTransform: "uppercase"
|
|
15565
15565
|
},
|
|
15566
15566
|
tablet: {
|
|
@@ -15568,7 +15568,7 @@ const Vm = {
|
|
|
15568
15568
|
fontWeight: L.bolder,
|
|
15569
15569
|
fontSize: O.tablet.title.spe.sm,
|
|
15570
15570
|
lineHeight: M.tablet.title.sm,
|
|
15571
|
-
letterSpacing:
|
|
15571
|
+
letterSpacing: ke.md,
|
|
15572
15572
|
textTransform: "uppercase"
|
|
15573
15573
|
},
|
|
15574
15574
|
mobile: {
|
|
@@ -15576,7 +15576,7 @@ const Vm = {
|
|
|
15576
15576
|
fontWeight: L.bolder,
|
|
15577
15577
|
fontSize: O.mobile.title.spe.sm,
|
|
15578
15578
|
lineHeight: M.mobile.title.sm,
|
|
15579
|
-
letterSpacing:
|
|
15579
|
+
letterSpacing: ke.md,
|
|
15580
15580
|
textTransform: "uppercase"
|
|
15581
15581
|
}
|
|
15582
15582
|
}
|
|
@@ -15585,7 +15585,7 @@ const Vm = {
|
|
|
15585
15585
|
fontFamilies: I,
|
|
15586
15586
|
fontSizes: O,
|
|
15587
15587
|
fontWeights: L,
|
|
15588
|
-
letterSpacings:
|
|
15588
|
+
letterSpacings: ke,
|
|
15589
15589
|
lineHeights: M,
|
|
15590
15590
|
textStyles: Qm
|
|
15591
15591
|
}, Symbol.toStringTag, { value: "Module" })), tg = {
|
|
@@ -15598,155 +15598,155 @@ const Vm = {
|
|
|
15598
15598
|
}, C = tg, ng = ht`
|
|
15599
15599
|
:host {
|
|
15600
15600
|
/* FONTS */
|
|
15601
|
-
--lr-poppins: ${
|
|
15601
|
+
--lr-poppins: ${E(C.fontFamilies.poppins)};
|
|
15602
15602
|
/* PRIMARY COLORS */
|
|
15603
|
-
--lr-background-primary: ${
|
|
15604
|
-
--lr-background-primary-hover: ${
|
|
15605
|
-
--lr-background-primary-active: ${
|
|
15606
|
-
--lr-background-primary-disabled: ${
|
|
15607
|
-
--lr-background-primary-reversed: ${
|
|
15603
|
+
--lr-background-primary: ${E(C.colors.semantic.action.background.primary.default)};
|
|
15604
|
+
--lr-background-primary-hover: ${E(C.colors.semantic.action.background.primary.hover)};
|
|
15605
|
+
--lr-background-primary-active: ${E(C.colors.semantic.action.background.primary.active)};
|
|
15606
|
+
--lr-background-primary-disabled: ${E(C.colors.semantic.action.background.primary.disabled)};
|
|
15607
|
+
--lr-background-primary-reversed: ${E(
|
|
15608
15608
|
C.colors.semantic.action.background.primary.reversed.default
|
|
15609
15609
|
)};
|
|
15610
|
-
--lr-background-primary-reversed-hover: ${
|
|
15610
|
+
--lr-background-primary-reversed-hover: ${E(
|
|
15611
15611
|
C.colors.semantic.action.background.primary.reversed.hover
|
|
15612
15612
|
)};
|
|
15613
|
-
--lr-background-primary-reversed-active: ${
|
|
15613
|
+
--lr-background-primary-reversed-active: ${E(
|
|
15614
15614
|
C.colors.semantic.action.background.primary.reversed.active
|
|
15615
15615
|
)};
|
|
15616
|
-
--lr-background-primary-reversed-disabled: ${
|
|
15616
|
+
--lr-background-primary-reversed-disabled: ${E(
|
|
15617
15617
|
C.colors.semantic.action.background.primary.reversed.disabled
|
|
15618
15618
|
)};
|
|
15619
|
-
--lr-color-primary: ${
|
|
15620
|
-
--lr-color-primary-hover: ${
|
|
15621
|
-
--lr-color-primary-active: ${
|
|
15622
|
-
--lr-color-primary-disabled: ${
|
|
15623
|
-
--lr-color-primary-reversed: ${
|
|
15624
|
-
--lr-color-primary-reversed-hover: ${
|
|
15625
|
-
--lr-color-primary-reversed-active: ${
|
|
15626
|
-
--lr-color-primary-reversed-disabled: ${
|
|
15619
|
+
--lr-color-primary: ${E(C.colors.semantic.action.content.primary.default)};
|
|
15620
|
+
--lr-color-primary-hover: ${E(C.colors.semantic.action.content.primary.hover)};
|
|
15621
|
+
--lr-color-primary-active: ${E(C.colors.semantic.action.content.primary.active)};
|
|
15622
|
+
--lr-color-primary-disabled: ${E(C.colors.semantic.action.content.primary.disabled)};
|
|
15623
|
+
--lr-color-primary-reversed: ${E(C.colors.semantic.action.content.primary.reversed.default)};
|
|
15624
|
+
--lr-color-primary-reversed-hover: ${E(C.colors.semantic.action.content.primary.reversed.hover)};
|
|
15625
|
+
--lr-color-primary-reversed-active: ${E(C.colors.semantic.action.content.primary.reversed.active)};
|
|
15626
|
+
--lr-color-primary-reversed-disabled: ${E(
|
|
15627
15627
|
C.colors.semantic.action.content.primary.reversed.disabled
|
|
15628
15628
|
)};
|
|
15629
15629
|
/* SECONDARY COLORS */
|
|
15630
|
-
--lr-background-secondary: ${
|
|
15631
|
-
--lr-background-secondary-hover: ${
|
|
15632
|
-
--lr-background-secondary-active: ${
|
|
15633
|
-
--lr-background-secondary-disabled: ${
|
|
15634
|
-
--lr-background-secondary-reversed: ${
|
|
15630
|
+
--lr-background-secondary: ${E(C.colors.semantic.action.background.secondary.default)};
|
|
15631
|
+
--lr-background-secondary-hover: ${E(C.colors.semantic.action.background.secondary.hover)};
|
|
15632
|
+
--lr-background-secondary-active: ${E(C.colors.semantic.action.background.secondary.active)};
|
|
15633
|
+
--lr-background-secondary-disabled: ${E(C.colors.semantic.action.background.secondary.disabled)};
|
|
15634
|
+
--lr-background-secondary-reversed: ${E(
|
|
15635
15635
|
C.colors.semantic.action.background.secondary.reversed.default
|
|
15636
15636
|
)};
|
|
15637
|
-
--lr-background-secondary-reversed-hover: ${
|
|
15637
|
+
--lr-background-secondary-reversed-hover: ${E(
|
|
15638
15638
|
C.colors.semantic.action.background.secondary.reversed.hover
|
|
15639
15639
|
)};
|
|
15640
|
-
--lr-background-secondary-reversed-active: ${
|
|
15640
|
+
--lr-background-secondary-reversed-active: ${E(
|
|
15641
15641
|
C.colors.semantic.action.background.secondary.reversed.active
|
|
15642
15642
|
)};
|
|
15643
|
-
--lr-background-secondary-reversed-disabled: ${
|
|
15643
|
+
--lr-background-secondary-reversed-disabled: ${E(
|
|
15644
15644
|
C.colors.semantic.action.background.secondary.reversed.disabled
|
|
15645
15645
|
)};
|
|
15646
|
-
--lr-color-secondary: ${
|
|
15647
|
-
--lr-color-secondary-hover: ${
|
|
15648
|
-
--lr-color-secondary-active: ${
|
|
15649
|
-
--lr-color-secondary-disabled: ${
|
|
15650
|
-
--lr-color-secondary-reversed: ${
|
|
15651
|
-
--lr-color-secondary-reversed-hover: ${
|
|
15646
|
+
--lr-color-secondary: ${E(C.colors.semantic.action.content.secondary.default)};
|
|
15647
|
+
--lr-color-secondary-hover: ${E(C.colors.semantic.action.content.secondary.hover)};
|
|
15648
|
+
--lr-color-secondary-active: ${E(C.colors.semantic.action.content.secondary.active)};
|
|
15649
|
+
--lr-color-secondary-disabled: ${E(C.colors.semantic.action.content.secondary.disabled)};
|
|
15650
|
+
--lr-color-secondary-reversed: ${E(C.colors.semantic.action.content.secondary.reversed.default)};
|
|
15651
|
+
--lr-color-secondary-reversed-hover: ${E(
|
|
15652
15652
|
C.colors.semantic.action.content.secondary.reversed.hover
|
|
15653
15653
|
)};
|
|
15654
|
-
--lr-color-secondary-reversed-active: ${
|
|
15654
|
+
--lr-color-secondary-reversed-active: ${E(
|
|
15655
15655
|
C.colors.semantic.action.content.secondary.reversed.active
|
|
15656
15656
|
)};
|
|
15657
|
-
--lr-color-secondary-reversed-disabled: ${
|
|
15657
|
+
--lr-color-secondary-reversed-disabled: ${E(
|
|
15658
15658
|
C.colors.semantic.action.content.secondary.reversed.disabled
|
|
15659
15659
|
)};
|
|
15660
15660
|
/* TERTIARY COLORS */
|
|
15661
|
-
--lr-background-tertiary: ${
|
|
15662
|
-
--lr-background-tertiary-hover: ${
|
|
15663
|
-
--lr-background-tertiary-active: ${
|
|
15664
|
-
--lr-background-tertiary-disabled: ${
|
|
15665
|
-
--lr-background-tertiary-reversed: ${
|
|
15661
|
+
--lr-background-tertiary: ${E(C.colors.semantic.action.background.tertiary.default)};
|
|
15662
|
+
--lr-background-tertiary-hover: ${E(C.colors.semantic.action.background.tertiary.hover)};
|
|
15663
|
+
--lr-background-tertiary-active: ${E(C.colors.semantic.action.background.tertiary.active)};
|
|
15664
|
+
--lr-background-tertiary-disabled: ${E(C.colors.semantic.action.background.tertiary.disabled)};
|
|
15665
|
+
--lr-background-tertiary-reversed: ${E(
|
|
15666
15666
|
C.colors.semantic.action.background.tertiary.reversed.default
|
|
15667
15667
|
)};
|
|
15668
|
-
--lr-background-tertiary-reversed-hover: ${
|
|
15668
|
+
--lr-background-tertiary-reversed-hover: ${E(
|
|
15669
15669
|
C.colors.semantic.action.background.tertiary.reversed.hover
|
|
15670
15670
|
)};
|
|
15671
|
-
--lr-background-tertiary-reversed-active: ${
|
|
15671
|
+
--lr-background-tertiary-reversed-active: ${E(
|
|
15672
15672
|
C.colors.semantic.action.background.tertiary.reversed.active
|
|
15673
15673
|
)};
|
|
15674
|
-
--lr-background-tertiary-reversed-disabled: ${
|
|
15674
|
+
--lr-background-tertiary-reversed-disabled: ${E(
|
|
15675
15675
|
C.colors.semantic.action.background.tertiary.reversed.disabled
|
|
15676
15676
|
)};
|
|
15677
|
-
--lr-color-tertiary: ${
|
|
15678
|
-
--lr-color-tertiary-hover: ${
|
|
15679
|
-
--lr-color-tertiary-active: ${
|
|
15680
|
-
--lr-color-tertiary-disabled: ${
|
|
15681
|
-
--lr-color-tertiary-reversed: ${
|
|
15682
|
-
--lr-color-tertiary-reversed-hover: ${
|
|
15683
|
-
--lr-color-tertiary-reversed-active: ${
|
|
15677
|
+
--lr-color-tertiary: ${E(C.colors.semantic.action.content.tertiary.default)};
|
|
15678
|
+
--lr-color-tertiary-hover: ${E(C.colors.semantic.action.content.tertiary.hover)};
|
|
15679
|
+
--lr-color-tertiary-active: ${E(C.colors.semantic.action.content.tertiary.active)};
|
|
15680
|
+
--lr-color-tertiary-disabled: ${E(C.colors.semantic.action.content.tertiary.disabled)};
|
|
15681
|
+
--lr-color-tertiary-reversed: ${E(C.colors.semantic.action.content.tertiary.reversed.default)};
|
|
15682
|
+
--lr-color-tertiary-reversed-hover: ${E(C.colors.semantic.action.content.tertiary.reversed.hover)};
|
|
15683
|
+
--lr-color-tertiary-reversed-active: ${E(
|
|
15684
15684
|
C.colors.semantic.action.content.tertiary.reversed.active
|
|
15685
15685
|
)};
|
|
15686
|
-
--lr-color-tertiary-reversed-disabled: ${
|
|
15686
|
+
--lr-color-tertiary-reversed-disabled: ${E(
|
|
15687
15687
|
C.colors.semantic.action.content.tertiary.reversed.disabled
|
|
15688
15688
|
)};
|
|
15689
15689
|
/* LINK COLOR */
|
|
15690
|
-
--lr-color-link: ${
|
|
15691
|
-
--lr-color-link-hover: ${
|
|
15692
|
-
--lr-color-link-active: ${
|
|
15693
|
-
--lr-color-link-disabled: ${
|
|
15694
|
-
--lr-color-link-reversed: ${
|
|
15695
|
-
--lr-color-link-reversed-hover: ${
|
|
15696
|
-
--lr-color-link-reversed-active: ${
|
|
15697
|
-
--lr-color-link-reversed-disabled: ${
|
|
15690
|
+
--lr-color-link: ${E(C.colors.semantic.action.content.link.default)};
|
|
15691
|
+
--lr-color-link-hover: ${E(C.colors.semantic.action.content.link.hover)};
|
|
15692
|
+
--lr-color-link-active: ${E(C.colors.semantic.action.content.link.active)};
|
|
15693
|
+
--lr-color-link-disabled: ${E(C.colors.semantic.action.content.link.disabled)};
|
|
15694
|
+
--lr-color-link-reversed: ${E(C.colors.semantic.action.content.link.reversed.default)};
|
|
15695
|
+
--lr-color-link-reversed-hover: ${E(C.colors.semantic.action.content.link.reversed.hover)};
|
|
15696
|
+
--lr-color-link-reversed-active: ${E(C.colors.semantic.action.content.link.reversed.active)};
|
|
15697
|
+
--lr-color-link-reversed-disabled: ${E(C.colors.semantic.action.content.link.reversed.disabled)};
|
|
15698
15698
|
/* SECONDARY BORDER */
|
|
15699
|
-
--lr-border-secondary-color: ${
|
|
15700
|
-
--lr-border-secondary-color-hover: ${
|
|
15701
|
-
--lr-border-secondary-color-active: ${
|
|
15702
|
-
--lr-border-secondary-color-disabled: ${
|
|
15703
|
-
--lr-border-secondary-color-reversed: ${
|
|
15699
|
+
--lr-border-secondary-color: ${E(C.colors.semantic.action.border.secondary.default)};
|
|
15700
|
+
--lr-border-secondary-color-hover: ${E(C.colors.semantic.action.border.secondary.hover)};
|
|
15701
|
+
--lr-border-secondary-color-active: ${E(C.colors.semantic.action.border.secondary.active)};
|
|
15702
|
+
--lr-border-secondary-color-disabled: ${E(C.colors.semantic.action.border.secondary.disabled)};
|
|
15703
|
+
--lr-border-secondary-color-reversed: ${E(
|
|
15704
15704
|
C.colors.semantic.action.border.secondary.reversed.default
|
|
15705
15705
|
)};
|
|
15706
|
-
--lr-border-secondary-color-reversed-hover: ${
|
|
15706
|
+
--lr-border-secondary-color-reversed-hover: ${E(
|
|
15707
15707
|
C.colors.semantic.action.border.secondary.reversed.hover
|
|
15708
15708
|
)};
|
|
15709
|
-
--lr-border-secondary-color-reversed-active: ${
|
|
15709
|
+
--lr-border-secondary-color-reversed-active: ${E(
|
|
15710
15710
|
C.colors.semantic.action.border.secondary.reversed.active
|
|
15711
15711
|
)};
|
|
15712
|
-
--lr-border-secondary-color-reversed-disabled: ${
|
|
15712
|
+
--lr-border-secondary-color-reversed-disabled: ${E(
|
|
15713
15713
|
C.colors.semantic.action.border.secondary.reversed.disabled
|
|
15714
15714
|
)};
|
|
15715
15715
|
/* GREYS COLORS */
|
|
15716
|
-
--lr-greys-000: ${
|
|
15717
|
-
--lr-greys-100: ${
|
|
15718
|
-
--lr-greys-200: ${
|
|
15719
|
-
--lr-greys-300: ${
|
|
15720
|
-
--lr-greys-400: ${
|
|
15721
|
-
--lr-greys-500: ${
|
|
15722
|
-
--lr-greys-600: ${
|
|
15723
|
-
--lr-greys-700: ${
|
|
15724
|
-
--lr-greys-800: ${
|
|
15725
|
-
--lr-greys-900: ${
|
|
15716
|
+
--lr-greys-000: ${E(C.colors.base.greys.tone000)};
|
|
15717
|
+
--lr-greys-100: ${E(C.colors.base.greys.tone100)};
|
|
15718
|
+
--lr-greys-200: ${E(C.colors.base.greys.tone200)};
|
|
15719
|
+
--lr-greys-300: ${E(C.colors.base.greys.tone300)};
|
|
15720
|
+
--lr-greys-400: ${E(C.colors.base.greys.tone400)};
|
|
15721
|
+
--lr-greys-500: ${E(C.colors.base.greys.tone500)};
|
|
15722
|
+
--lr-greys-600: ${E(C.colors.base.greys.tone600)};
|
|
15723
|
+
--lr-greys-700: ${E(C.colors.base.greys.tone700)};
|
|
15724
|
+
--lr-greys-800: ${E(C.colors.base.greys.tone800)};
|
|
15725
|
+
--lr-greys-900: ${E(C.colors.base.greys.tone900)};
|
|
15726
15726
|
/* PADDINGS SIZES VERTICAL */
|
|
15727
|
-
--lr-px-12: ${
|
|
15728
|
-
--lr-px-14: ${
|
|
15729
|
-
--lr-px-16: ${
|
|
15730
|
-
--lr-px-18: ${
|
|
15731
|
-
--lr-px-20: ${
|
|
15732
|
-
--lr-px-26: ${
|
|
15733
|
-
--lr-px-32: ${
|
|
15727
|
+
--lr-px-12: ${E(C.spacing(1.5))}; /* 0.75rem 12px */
|
|
15728
|
+
--lr-px-14: ${E(C.spacing(1.75))}; /* 0.875rem 14px */
|
|
15729
|
+
--lr-px-16: ${E(C.spacing(2))}; /* 1rem 16px */
|
|
15730
|
+
--lr-px-18: ${E(C.spacing(2.25))}; /* 1.125rem 18px */
|
|
15731
|
+
--lr-px-20: ${E(C.spacing(2.5))}; /* 1.25rem 20px */
|
|
15732
|
+
--lr-px-26: ${E(C.spacing(3.25))}; /* 1.625rem 16px */
|
|
15733
|
+
--lr-px-32: ${E(C.spacing(4))}; /* 2rem 16px */
|
|
15734
15734
|
/* PADDINGS SIZES HORIZONTAL */
|
|
15735
|
-
--lr-py-8: ${
|
|
15736
|
-
--lr-py-10: ${
|
|
15737
|
-
--lr-py-12: ${
|
|
15738
|
-
--lr-py-14: ${
|
|
15739
|
-
--lr-py-16: ${
|
|
15740
|
-
--lr-py-18: ${
|
|
15741
|
-
--lr-py-20: ${
|
|
15735
|
+
--lr-py-8: ${E(C.spacing(1))}; /* 0.5rem 8px */
|
|
15736
|
+
--lr-py-10: ${E(C.spacing(1.25))}; /* 0.625rem 10px */
|
|
15737
|
+
--lr-py-12: ${E(C.spacing(1.5))}; /* 0.75rem 12px */
|
|
15738
|
+
--lr-py-14: ${E(C.spacing(1.75))}; /* 0.875rem 14px */
|
|
15739
|
+
--lr-py-16: ${E(C.spacing(2))}; /* 1rem 16px */
|
|
15740
|
+
--lr-py-18: ${E(C.spacing(2.25))}; /* 1.125rem 18px */
|
|
15741
|
+
--lr-py-20: ${E(C.spacing(2.5))}; /* 1.25rem 20px */
|
|
15742
15742
|
--lr-padding-small: var(--lr-py-12) var(--lr-px-20);
|
|
15743
15743
|
--lr-padding-medium: var(--lr-py-14) var(--lr-px-26);
|
|
15744
15744
|
--lr-padding-big: var(--lr-py-14) var(--lr-px-32);
|
|
15745
15745
|
/* FONTS SIZES */
|
|
15746
|
-
--lr-text-12: ${
|
|
15747
|
-
--lr-text-14: ${
|
|
15748
|
-
--lr-text-16: ${
|
|
15749
|
-
--lr-text-18: ${
|
|
15746
|
+
--lr-text-12: ${E(C.spacing(1.5))}; /* 0.75rem 12px */
|
|
15747
|
+
--lr-text-14: ${E(C.spacing(1.75))}; /* 0.875rem 14px */
|
|
15748
|
+
--lr-text-16: ${E(C.spacing(2))}; /* 1rem 16px */
|
|
15749
|
+
--lr-text-18: ${E(C.spacing(2.25))}; /* 1.125rem 18px */
|
|
15750
15750
|
/* FONTS WEIGHT */
|
|
15751
15751
|
--lr-font-100: 100;
|
|
15752
15752
|
--lr-font-200: 200;
|
|
@@ -15758,7 +15758,7 @@ const Vm = {
|
|
|
15758
15758
|
--lr-font-800: 800;
|
|
15759
15759
|
--lr-font-900: 900;
|
|
15760
15760
|
/* BORDERS RADIUS */
|
|
15761
|
-
--lr-border-radius: ${
|
|
15761
|
+
--lr-border-radius: ${E(C.defaults.radius)};
|
|
15762
15762
|
}
|
|
15763
15763
|
`;
|
|
15764
15764
|
function Pe(n) {
|
|
@@ -15783,14 +15783,14 @@ function rg(n, r) {
|
|
|
15783
15783
|
}
|
|
15784
15784
|
return (r === "string" ? String : Number)(n);
|
|
15785
15785
|
}
|
|
15786
|
-
function
|
|
15786
|
+
function xc(n) {
|
|
15787
15787
|
var r = rg(n, "string");
|
|
15788
15788
|
return Pe(r) === "symbol" ? r : String(r);
|
|
15789
15789
|
}
|
|
15790
15790
|
function Ts(n, r) {
|
|
15791
15791
|
for (var e = 0; e < r.length; e++) {
|
|
15792
15792
|
var t = r[e];
|
|
15793
|
-
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(n,
|
|
15793
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(n, xc(t.key), t);
|
|
15794
15794
|
}
|
|
15795
15795
|
}
|
|
15796
15796
|
function Ye(n, r, e) {
|
|
@@ -15834,7 +15834,7 @@ function Je(n) {
|
|
|
15834
15834
|
}, Je(n);
|
|
15835
15835
|
}
|
|
15836
15836
|
function mt(n, r, e) {
|
|
15837
|
-
return r =
|
|
15837
|
+
return r = xc(r), r in n ? Object.defineProperty(n, r, {
|
|
15838
15838
|
value: e,
|
|
15839
15839
|
enumerable: !0,
|
|
15840
15840
|
configurable: !0,
|
|
@@ -16057,9 +16057,9 @@ function hg(n, r, e) {
|
|
|
16057
16057
|
var t = $r(n, e);
|
|
16058
16058
|
return t !== void 0 ? t : $r(r, e);
|
|
16059
16059
|
}
|
|
16060
|
-
function
|
|
16060
|
+
function Ec(n, r, e) {
|
|
16061
16061
|
for (var t in r)
|
|
16062
|
-
t !== "__proto__" && t !== "constructor" && (t in n ? typeof n[t] == "string" || n[t] instanceof String || typeof r[t] == "string" || r[t] instanceof String ? e && (n[t] = r[t]) :
|
|
16062
|
+
t !== "__proto__" && t !== "constructor" && (t in n ? typeof n[t] == "string" || n[t] instanceof String || typeof r[t] == "string" || r[t] instanceof String ? e && (n[t] = r[t]) : Ec(n[t], r[t], e) : n[t] = r[t]);
|
|
16063
16063
|
return n;
|
|
16064
16064
|
}
|
|
16065
16065
|
function Ut(n) {
|
|
@@ -16161,7 +16161,7 @@ function bg() {
|
|
|
16161
16161
|
return !1;
|
|
16162
16162
|
}
|
|
16163
16163
|
}
|
|
16164
|
-
var
|
|
16164
|
+
var wg = function(n) {
|
|
16165
16165
|
ci(e, n);
|
|
16166
16166
|
var r = yg(e);
|
|
16167
16167
|
function e(t) {
|
|
@@ -16218,7 +16218,7 @@ var kg = function(n) {
|
|
|
16218
16218
|
}, u = [i, a];
|
|
16219
16219
|
i.indexOf(".") > -1 && (u = i.split("."), s = o, o = a, a = u[1]), this.addNamespaces(a);
|
|
16220
16220
|
var d = $r(this.data, u) || {};
|
|
16221
|
-
s ?
|
|
16221
|
+
s ? Ec(d, o, l) : d = rr(rr({}, d), o), Ms(this.data, u, d), c.silent || this.emit("added", i, a, o);
|
|
16222
16222
|
}
|
|
16223
16223
|
}, {
|
|
16224
16224
|
key: "removeResourceBundle",
|
|
@@ -16276,7 +16276,7 @@ function Fs(n, r) {
|
|
|
16276
16276
|
}
|
|
16277
16277
|
return e;
|
|
16278
16278
|
}
|
|
16279
|
-
function
|
|
16279
|
+
function we(n) {
|
|
16280
16280
|
for (var r = 1; r < arguments.length; r++) {
|
|
16281
16281
|
var e = arguments[r] != null ? arguments[r] : {};
|
|
16282
16282
|
r % 2 ? Fs(Object(e), !0).forEach(function(t) {
|
|
@@ -16287,7 +16287,7 @@ function ke(n) {
|
|
|
16287
16287
|
}
|
|
16288
16288
|
return n;
|
|
16289
16289
|
}
|
|
16290
|
-
function
|
|
16290
|
+
function kg(n) {
|
|
16291
16291
|
var r = Sg();
|
|
16292
16292
|
return function() {
|
|
16293
16293
|
var t = Je(n), i;
|
|
@@ -16311,7 +16311,7 @@ function Sg() {
|
|
|
16311
16311
|
}
|
|
16312
16312
|
var Ns = {}, Ds = function(n) {
|
|
16313
16313
|
ci(e, n);
|
|
16314
|
-
var r =
|
|
16314
|
+
var r = kg(e);
|
|
16315
16315
|
function e(t) {
|
|
16316
16316
|
var i, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16317
16317
|
return Ze(this, e), i = r.call(this), ui && dt.call(ct(i)), dg(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, ct(i)), i.options = a, i.options.keySeparator === void 0 && (i.options.keySeparator = "."), i.logger = Ge.create("translator"), i;
|
|
@@ -16357,7 +16357,7 @@ var Ns = {}, Ds = function(n) {
|
|
|
16357
16357
|
key: "translate",
|
|
16358
16358
|
value: function(i, a, o) {
|
|
16359
16359
|
var s = this;
|
|
16360
|
-
if (Pe(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), Pe(a) === "object" && (a =
|
|
16360
|
+
if (Pe(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), Pe(a) === "object" && (a = we({}, a)), a || (a = {}), i == null) return "";
|
|
16361
16361
|
Array.isArray(i) || (i = [String(i)]);
|
|
16362
16362
|
var l = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = this.extractFromKey(i[i.length - 1], a), d = u.key, p = u.namespaces, h = p[p.length - 1], f = a.lng || this.language, g = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
16363
16363
|
if (f && f.toLowerCase() === "cimode") {
|
|
@@ -16383,7 +16383,7 @@ var Ns = {}, Ds = function(n) {
|
|
|
16383
16383
|
if (q && b && ue && j.indexOf(R) < 0 && !(typeof te == "string" && R === "[object Array]")) {
|
|
16384
16384
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
16385
16385
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
16386
|
-
var ae = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, b,
|
|
16386
|
+
var ae = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, b, we(we({}, a), {}, {
|
|
16387
16387
|
ns: p
|
|
16388
16388
|
})) : "key '".concat(d, " (").concat(this.language, ")' returned an object instead of string.");
|
|
16389
16389
|
return l ? (v.res = ae, v) : ae;
|
|
@@ -16393,7 +16393,7 @@ var Ns = {}, Ds = function(n) {
|
|
|
16393
16393
|
for (var Z in b)
|
|
16394
16394
|
if (Object.prototype.hasOwnProperty.call(b, Z)) {
|
|
16395
16395
|
var Ie = "".concat(fe).concat(c).concat(Z);
|
|
16396
|
-
G[Z] = this.translate(Ie,
|
|
16396
|
+
G[Z] = this.translate(Ie, we(we({}, a), {
|
|
16397
16397
|
joinArrays: !1,
|
|
16398
16398
|
ns: p
|
|
16399
16399
|
})), G[Z] === Ie && (G[Z] = b[Z]);
|
|
@@ -16403,32 +16403,32 @@ var Ns = {}, Ds = function(n) {
|
|
|
16403
16403
|
} else if (q && typeof te == "string" && R === "[object Array]")
|
|
16404
16404
|
b = b.join(te), b && (b = this.extendTranslation(b, i, a, o));
|
|
16405
16405
|
else {
|
|
16406
|
-
var F = !1,
|
|
16407
|
-
!this.isValidLookup(b) && $ && (F = !0, b = B), this.isValidLookup(b) || (
|
|
16408
|
-
var ne = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, se = ne &&
|
|
16409
|
-
if (
|
|
16406
|
+
var F = !1, A = !1, P = a.count !== void 0 && typeof a.count != "string", $ = e.hasDefaultValue(a), W = P ? this.pluralResolver.getSuffix(f, a.count, a) : "", B = a["defaultValue".concat(W)] || a.defaultValue;
|
|
16407
|
+
!this.isValidLookup(b) && $ && (F = !0, b = B), this.isValidLookup(b) || (A = !0, b = d);
|
|
16408
|
+
var ne = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, se = ne && A ? void 0 : b, me = $ && B !== b && this.options.updateMissing;
|
|
16409
|
+
if (A || F || me) {
|
|
16410
16410
|
if (this.logger.log(me ? "updateKey" : "missingKey", f, h, d, me ? B : b), c) {
|
|
16411
|
-
var Ue = this.resolve(d,
|
|
16411
|
+
var Ue = this.resolve(d, we(we({}, a), {}, {
|
|
16412
16412
|
keySeparator: !1
|
|
16413
16413
|
}));
|
|
16414
16414
|
Ue && Ue.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.");
|
|
16415
16415
|
}
|
|
16416
|
-
var
|
|
16416
|
+
var xe = [], Me = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
16417
16417
|
if (this.options.saveMissingTo === "fallback" && Me && Me[0])
|
|
16418
16418
|
for (var mi = 0; mi < Me.length; mi++)
|
|
16419
|
-
|
|
16420
|
-
else this.options.saveMissingTo === "all" ?
|
|
16419
|
+
xe.push(Me[mi]);
|
|
16420
|
+
else this.options.saveMissingTo === "all" ? xe = this.languageUtils.toResolveHierarchy(a.lng || this.language) : xe.push(a.lng || this.language);
|
|
16421
16421
|
var Qa = function($t, vi, eo) {
|
|
16422
16422
|
var to = $ && eo !== b ? eo : se;
|
|
16423
16423
|
s.options.missingKeyHandler ? s.options.missingKeyHandler($t, h, vi, to, me, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing($t, h, vi, to, me, a), s.emit("missingKey", $t, h, vi, b);
|
|
16424
16424
|
};
|
|
16425
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && P ?
|
|
16425
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && P ? xe.forEach(function(gi) {
|
|
16426
16426
|
s.pluralResolver.getSuffixes(gi, a).forEach(function($t) {
|
|
16427
16427
|
Qa([gi], d + $t, a["defaultValue".concat($t)] || B);
|
|
16428
16428
|
});
|
|
16429
|
-
}) : Qa(
|
|
16429
|
+
}) : Qa(xe, d, B));
|
|
16430
16430
|
}
|
|
16431
|
-
b = this.extendTranslation(b, i, a, v, o),
|
|
16431
|
+
b = this.extendTranslation(b, i, a, v, o), A && b === d && this.options.appendNamespaceToMissingKey && (b = "".concat(h, ":").concat(d)), (A || F) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? b = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(h, ":").concat(d) : d, F ? b : void 0) : b = this.options.parseMissingKeyHandler(b));
|
|
16432
16432
|
}
|
|
16433
16433
|
return l ? (v.res = b, v) : b;
|
|
16434
16434
|
}
|
|
@@ -16437,12 +16437,12 @@ var Ns = {}, Ds = function(n) {
|
|
|
16437
16437
|
value: function(i, a, o, s, l) {
|
|
16438
16438
|
var c = this;
|
|
16439
16439
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
16440
|
-
i = this.i18nFormat.parse(i,
|
|
16440
|
+
i = this.i18nFormat.parse(i, we(we({}, this.options.interpolation.defaultVariables), o), s.usedLng, s.usedNS, s.usedKey, {
|
|
16441
16441
|
resolved: s
|
|
16442
16442
|
});
|
|
16443
16443
|
else if (!o.skipInterpolation) {
|
|
16444
|
-
o.interpolation && this.interpolator.init(
|
|
16445
|
-
interpolation:
|
|
16444
|
+
o.interpolation && this.interpolator.init(we(we({}, o), {
|
|
16445
|
+
interpolation: we(we({}, this.options.interpolation), o.interpolation)
|
|
16446
16446
|
}));
|
|
16447
16447
|
var u = typeof i == "string" && (o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables), d;
|
|
16448
16448
|
if (u) {
|
|
@@ -16450,7 +16450,7 @@ var Ns = {}, Ds = function(n) {
|
|
|
16450
16450
|
d = p && p.length;
|
|
16451
16451
|
}
|
|
16452
16452
|
var h = o.replace && typeof o.replace != "string" ? o.replace : o;
|
|
16453
|
-
if (this.options.interpolation.defaultVariables && (h =
|
|
16453
|
+
if (this.options.interpolation.defaultVariables && (h = we(we({}, this.options.interpolation.defaultVariables), h)), i = this.interpolator.interpolate(i, h, o.lng || this.language, o), u) {
|
|
16454
16454
|
var f = i.match(this.interpolator.nestingRegexp), g = f && f.length;
|
|
16455
16455
|
d < g && (o.nest = !1);
|
|
16456
16456
|
}
|
|
@@ -16461,7 +16461,7 @@ var Ns = {}, Ds = function(n) {
|
|
|
16461
16461
|
}, o)), o.interpolation && this.interpolator.reset();
|
|
16462
16462
|
}
|
|
16463
16463
|
var y = o.postProcess || this.options.postProcess, v = typeof y == "string" ? [y] : y;
|
|
16464
|
-
return i != null && v && v.length && o.applyPostProcessor !== !1 && (i = Ac.handle(v, i, a, this.options && this.options.postProcessPassResolved ?
|
|
16464
|
+
return i != null && v && v.length && o.applyPostProcessor !== !1 && (i = Ac.handle(v, i, a, this.options && this.options.postProcessPassResolved ? we({
|
|
16465
16465
|
i18nResolved: s
|
|
16466
16466
|
}, o) : o, this)), i;
|
|
16467
16467
|
}
|
|
@@ -16767,7 +16767,7 @@ var $s = function() {
|
|
|
16767
16767
|
22: function(r) {
|
|
16768
16768
|
return r == 1 ? 0 : r == 2 ? 1 : (r < 0 || r > 10) && r % 10 == 0 ? 2 : 3;
|
|
16769
16769
|
}
|
|
16770
|
-
},
|
|
16770
|
+
}, xg = ["v1", "v2", "v3"], Bs = {
|
|
16771
16771
|
zero: 0,
|
|
16772
16772
|
one: 1,
|
|
16773
16773
|
two: 2,
|
|
@@ -16775,7 +16775,7 @@ var $s = function() {
|
|
|
16775
16775
|
many: 4,
|
|
16776
16776
|
other: 5
|
|
16777
16777
|
};
|
|
16778
|
-
function
|
|
16778
|
+
function Eg() {
|
|
16779
16779
|
var n = {};
|
|
16780
16780
|
return _g.forEach(function(r) {
|
|
16781
16781
|
r.lngs.forEach(function(e) {
|
|
@@ -16789,7 +16789,7 @@ function xg() {
|
|
|
16789
16789
|
var Ag = function() {
|
|
16790
16790
|
function n(r) {
|
|
16791
16791
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16792
|
-
Ze(this, n), this.languageUtils = r, this.options = e, this.logger = Ge.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules =
|
|
16792
|
+
Ze(this, n), this.languageUtils = r, this.options = e, this.logger = Ge.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Eg();
|
|
16793
16793
|
}
|
|
16794
16794
|
return Ye(n, [{
|
|
16795
16795
|
key: "addRule",
|
|
@@ -16855,7 +16855,7 @@ var Ag = function() {
|
|
|
16855
16855
|
}, {
|
|
16856
16856
|
key: "shouldUseIntlApi",
|
|
16857
16857
|
value: function() {
|
|
16858
|
-
return !
|
|
16858
|
+
return !xg.includes(this.options.compatibilityJSON);
|
|
16859
16859
|
}
|
|
16860
16860
|
}]), n;
|
|
16861
16861
|
}();
|
|
@@ -17486,7 +17486,7 @@ var jr = function(n) {
|
|
|
17486
17486
|
var c;
|
|
17487
17487
|
this.modules.formatter ? c = this.modules.formatter : typeof Intl < "u" && (c = Lg);
|
|
17488
17488
|
var u = new $s(this.options);
|
|
17489
|
-
this.store = new
|
|
17489
|
+
this.store = new wg(this.options.resources, this.options);
|
|
17490
17490
|
var d = this.services;
|
|
17491
17491
|
d.logger = Ge, d.resourceStore = this.store, d.languageUtils = u, d.pluralResolver = new Ag(u, {
|
|
17492
17492
|
prepend: this.options.pluralSeparator,
|
|
@@ -18097,7 +18097,7 @@ var iv = Object.defineProperty, av = Object.getOwnPropertyDescriptor, ov = (n, r
|
|
|
18097
18097
|
(o = n[a]) && (i = (t ? o(r, e, i) : o(i)) || i);
|
|
18098
18098
|
return t && i && iv(r, e, i), i;
|
|
18099
18099
|
};
|
|
18100
|
-
let Te = class extends
|
|
18100
|
+
let Te = class extends xn {
|
|
18101
18101
|
constructor(n) {
|
|
18102
18102
|
super(), this.country = typeof window < "u" ? nv(window.location.hostname) : "fr", this.language = typeof window < "u" ? ev({ country: this.country, cookies: document.cookie }) : "fr-FR", n && (this._translationsTask = new Hg(this, n, {
|
|
18103
18103
|
args: () => [this.language]
|
|
@@ -18185,7 +18185,7 @@ const uv = ht`
|
|
|
18185
18185
|
width: 100%;
|
|
18186
18186
|
height: 100%;
|
|
18187
18187
|
vertical-align: middle;
|
|
18188
|
-
padding: ${
|
|
18188
|
+
padding: ${E(C.spacing(2))};
|
|
18189
18189
|
background-color: rgba(255, 255, 255, 0.8);
|
|
18190
18190
|
user-select: none;
|
|
18191
18191
|
will-change: opacity;
|
|
@@ -18283,46 +18283,45 @@ const gv = ht`
|
|
|
18283
18283
|
--background-color: var(--lr-greys-900);
|
|
18284
18284
|
--color: var(--lr-greys-000);
|
|
18285
18285
|
--padding: var(--lr-py-10) var(--lr-px-16);
|
|
18286
|
-
--media-size: '${
|
|
18286
|
+
--media-size: '${E(C.devices.mobile.max)} px';
|
|
18287
18287
|
--border-color: transparent;
|
|
18288
18288
|
--border-size: 1px;
|
|
18289
18289
|
font-family: var(--font-family);
|
|
18290
18290
|
font-size: var(--font-size);
|
|
18291
18291
|
font-weight: var(--font-weight);
|
|
18292
|
-
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
18297
|
-
|
|
18298
|
-
|
|
18299
|
-
|
|
18300
|
-
|
|
18301
|
-
|
|
18302
|
-
|
|
18303
|
-
|
|
18304
|
-
}
|
|
18305
|
-
&[checked] {
|
|
18306
|
-
color: 'white';
|
|
18307
|
-
}
|
|
18308
|
-
@media (min-width: var(--media-size)) {
|
|
18309
|
-
padding: var(--lr-pill-padding-mobile);
|
|
18310
|
-
}
|
|
18292
|
+
}
|
|
18293
|
+
:host label {
|
|
18294
|
+
background-color: var(--background-color);
|
|
18295
|
+
display: inline-block;
|
|
18296
|
+
padding: var(--padding);
|
|
18297
|
+
border: var(--border-size) solid var(--border-color);
|
|
18298
|
+
border-radius: 20px;
|
|
18299
|
+
transition: all 0.4s ease;
|
|
18300
|
+
display: inline-flex;
|
|
18301
|
+
cursor: pointer;
|
|
18302
|
+
&[disabled] {
|
|
18303
|
+
cursor: not-allowed;
|
|
18311
18304
|
}
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18315
|
-
|
|
18316
|
-
|
|
18317
|
-
color: var(--color);
|
|
18318
|
-
&:hover {
|
|
18319
|
-
background: var(--lr-pill-background-hover);
|
|
18320
|
-
}
|
|
18305
|
+
&[checked] {
|
|
18306
|
+
color: 'white';
|
|
18307
|
+
}
|
|
18308
|
+
@media (min-width: var(--media-size)) {
|
|
18309
|
+
padding: var(--lr-pill-padding-mobile);
|
|
18321
18310
|
}
|
|
18322
|
-
|
|
18323
|
-
|
|
18311
|
+
}
|
|
18312
|
+
|
|
18313
|
+
:host label span {
|
|
18314
|
+
padding: var(--lr-pill-label-padding);
|
|
18315
|
+
background: var(--lr-button-primary-background);
|
|
18316
|
+
border-radius: 20px;
|
|
18317
|
+
color: var(--color);
|
|
18318
|
+
&:hover {
|
|
18319
|
+
background: var(--lr-pill-background-hover);
|
|
18324
18320
|
}
|
|
18325
18321
|
}
|
|
18322
|
+
:host ::slotted(img) {
|
|
18323
|
+
width: 1rem;
|
|
18324
|
+
}
|
|
18326
18325
|
|
|
18327
18326
|
:host::part(label-text) {
|
|
18328
18327
|
display: inline-flex;
|
|
@@ -18336,20 +18335,20 @@ const gv = ht`
|
|
|
18336
18335
|
--font-size: var(--lr-text-12);
|
|
18337
18336
|
--padding: var(--lr-py-8) var(--lr-px-12);
|
|
18338
18337
|
--color: var(--lr-greys-000);
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
--color: var(--lr-greys-000);
|
|
18346
|
-
}
|
|
18347
|
-
}
|
|
18338
|
+
}
|
|
18339
|
+
:host label {
|
|
18340
|
+
--background-color: var(--lr-greys-000);
|
|
18341
|
+
&[checked] {
|
|
18342
|
+
--border-size: 0;
|
|
18343
|
+
--background-color: var(--lr-greys-900);
|
|
18348
18344
|
span {
|
|
18349
|
-
--color: var(--lr-greys-
|
|
18345
|
+
--color: var(--lr-greys-000);
|
|
18350
18346
|
}
|
|
18351
18347
|
}
|
|
18352
18348
|
}
|
|
18349
|
+
:host label span {
|
|
18350
|
+
--color: var(--lr-greys-900);
|
|
18351
|
+
}
|
|
18353
18352
|
|
|
18354
18353
|
:host([iconPosition='right'])::part(label-text) {
|
|
18355
18354
|
display: inline-flex;
|
|
@@ -18417,10 +18416,10 @@ const bv = ht`
|
|
|
18417
18416
|
}
|
|
18418
18417
|
}
|
|
18419
18418
|
`;
|
|
18420
|
-
var
|
|
18421
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
18419
|
+
var wv = Object.defineProperty, kv = Object.getOwnPropertyDescriptor, Rc = (n, r, e, t) => {
|
|
18420
|
+
for (var i = t > 1 ? void 0 : t ? kv(r, e) : r, a = n.length - 1, o; a >= 0; a--)
|
|
18422
18421
|
(o = n[a]) && (i = (t ? o(r, e, i) : o(i)) || i);
|
|
18423
|
-
return t && i &&
|
|
18422
|
+
return t && i && wv(r, e, i), i;
|
|
18424
18423
|
};
|
|
18425
18424
|
let Hr = class extends Te {
|
|
18426
18425
|
constructor() {
|
|
@@ -18727,10 +18726,10 @@ const Cv = Ka(class extends Lc {
|
|
|
18727
18726
|
return Tt;
|
|
18728
18727
|
}
|
|
18729
18728
|
});
|
|
18730
|
-
var
|
|
18731
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
18729
|
+
var xv = Object.defineProperty, Ev = Object.getOwnPropertyDescriptor, Xe = (n, r, e, t) => {
|
|
18730
|
+
for (var i = t > 1 ? void 0 : t ? Ev(r, e) : r, a = n.length - 1, o; a >= 0; a--)
|
|
18732
18731
|
(o = n[a]) && (i = (t ? o(r, e, i) : o(i)) || i);
|
|
18733
|
-
return t && i &&
|
|
18732
|
+
return t && i && xv(r, e, i), i;
|
|
18734
18733
|
};
|
|
18735
18734
|
let $e = class extends Te {
|
|
18736
18735
|
constructor() {
|
|
@@ -18797,11 +18796,11 @@ const Av = (n) => n.strings === void 0;
|
|
|
18797
18796
|
* Copyright 2017 Google LLC
|
|
18798
18797
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18799
18798
|
*/
|
|
18800
|
-
const
|
|
18799
|
+
const En = (n, r) => {
|
|
18801
18800
|
var t;
|
|
18802
18801
|
const e = n._$AN;
|
|
18803
18802
|
if (e === void 0) return !1;
|
|
18804
|
-
for (const i of e) (t = i._$AO) == null || t.call(i, r, !1),
|
|
18803
|
+
for (const i of e) (t = i._$AO) == null || t.call(i, r, !1), En(i, r);
|
|
18805
18804
|
return !0;
|
|
18806
18805
|
}, Ur = (n) => {
|
|
18807
18806
|
let r, e;
|
|
@@ -18822,9 +18821,9 @@ function Tv(n) {
|
|
|
18822
18821
|
}
|
|
18823
18822
|
function Rv(n, r = !1, e = 0) {
|
|
18824
18823
|
const t = this._$AH, i = this._$AN;
|
|
18825
|
-
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(t)) for (let a = e; a < t.length; a++)
|
|
18826
|
-
else t != null && (
|
|
18827
|
-
else
|
|
18824
|
+
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(t)) for (let a = e; a < t.length; a++) En(t[a], !1), Ur(t[a]);
|
|
18825
|
+
else t != null && (En(t, !1), Ur(t));
|
|
18826
|
+
else En(this, n);
|
|
18828
18827
|
}
|
|
18829
18828
|
const Lv = (n) => {
|
|
18830
18829
|
n.type == Ga.CHILD && (n._$AP ?? (n._$AP = Rv), n._$AQ ?? (n._$AQ = Tv));
|
|
@@ -18838,7 +18837,7 @@ let Ic = class extends Lc {
|
|
|
18838
18837
|
}
|
|
18839
18838
|
_$AO(r, e = !0) {
|
|
18840
18839
|
var t, i;
|
|
18841
|
-
r !== this.isConnected && (this.isConnected = r, r ? (t = this.reconnected) == null || t.call(this) : (i = this.disconnected) == null || i.call(this)), e && (
|
|
18840
|
+
r !== this.isConnected && (this.isConnected = r, r ? (t = this.reconnected) == null || t.call(this) : (i = this.disconnected) == null || i.call(this)), e && (En(this, r), Ur(this));
|
|
18842
18841
|
}
|
|
18843
18842
|
setValue(r) {
|
|
18844
18843
|
if (Av(this._$Ct)) this._$Ct._$AI(r, this);
|
|
@@ -18881,7 +18880,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18881
18880
|
}), Iv = ht`
|
|
18882
18881
|
:host {
|
|
18883
18882
|
--chat-sticky-offset-right: 100px;
|
|
18884
|
-
--chat-sticky-width:
|
|
18883
|
+
--chat-sticky-width: 100%;
|
|
18885
18884
|
--chat-sticky-minimized-size: 40px;
|
|
18886
18885
|
--chat-menu-height: 50px;
|
|
18887
18886
|
--font-family: var(--lr-poppins);
|
|
@@ -18891,13 +18890,20 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18891
18890
|
position: relative;
|
|
18892
18891
|
}
|
|
18893
18892
|
:host #chat-element {
|
|
18894
|
-
height:
|
|
18895
|
-
width:
|
|
18896
|
-
max-width:
|
|
18897
|
-
@media (min-width: ${
|
|
18898
|
-
|
|
18893
|
+
height: 100% !important;
|
|
18894
|
+
width: var(--chat-sticky-width) !important;
|
|
18895
|
+
max-width: var(--chat-sticky-width) !important;
|
|
18896
|
+
@media (min-width: ${E(C.devices.mobile.max)}px) {
|
|
18897
|
+
--chat-sticky-width: 45vw !important;
|
|
18898
|
+
}
|
|
18899
|
+
@media (min-width: ${E(C.devices.tablet.max)}px) {
|
|
18900
|
+
--chat-sticky-width: 35vw !important;
|
|
18901
|
+
}
|
|
18902
|
+
@media (min-width: ${E(C.devices.laptop.max)}px) {
|
|
18903
|
+
--chat-sticky-width: 25vw !important;
|
|
18899
18904
|
}
|
|
18900
18905
|
}
|
|
18906
|
+
|
|
18901
18907
|
#chat-wrapper[data-opened='true'] {
|
|
18902
18908
|
display: block;
|
|
18903
18909
|
font-family: var(--font-poppins);
|
|
@@ -18906,22 +18912,30 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18906
18912
|
position: fixed;
|
|
18907
18913
|
bottom: 0;
|
|
18908
18914
|
right: 0;
|
|
18909
|
-
width: 100;
|
|
18910
18915
|
z-index: 10001;
|
|
18916
|
+
width: var(--chat-sticky-width);
|
|
18911
18917
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.16), 0px 4px 8px 2px rgba(0, 0, 0, 0.08);
|
|
18912
|
-
@media (min-width: ${
|
|
18913
|
-
|
|
18918
|
+
@media (min-width: ${E(C.devices.mobile.max)}px) {
|
|
18919
|
+
--chat-sticky-width: 45vw;
|
|
18920
|
+
right: var(--chat-sticky-offset-right);
|
|
18921
|
+
}
|
|
18922
|
+
@media (min-width: ${E(C.devices.tablet.max)}px) {
|
|
18923
|
+
--chat-sticky-width: 35vw;
|
|
18924
|
+
right: var(--chat-sticky-offset-right);
|
|
18925
|
+
}
|
|
18926
|
+
@media (min-width: ${E(C.devices.laptop.max)}px) {
|
|
18927
|
+
--chat-sticky-width: 25vw;
|
|
18914
18928
|
right: var(--chat-sticky-offset-right);
|
|
18915
18929
|
}
|
|
18916
18930
|
}
|
|
18917
18931
|
#chat-wrapper-menu {
|
|
18918
|
-
background-color: ${
|
|
18932
|
+
background-color: ${E(C.colors.base.coral.tone300)};
|
|
18919
18933
|
color: white;
|
|
18920
18934
|
height: var(--chat-menu-height);
|
|
18921
18935
|
display: flex;
|
|
18922
18936
|
align-items: center;
|
|
18923
18937
|
justify-content: space-between;
|
|
18924
|
-
@media (min-width: ${
|
|
18938
|
+
@media (min-width: ${E(C.devices.mobile.max)}px) {
|
|
18925
18939
|
border-top-left-radius: 4px;
|
|
18926
18940
|
border-top-right-radius: 4px;
|
|
18927
18941
|
}
|
|
@@ -18936,7 +18950,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18936
18950
|
font-size: 1.25rem;
|
|
18937
18951
|
font-weight: 600;
|
|
18938
18952
|
margin-left: 1rem;
|
|
18939
|
-
color: ${
|
|
18953
|
+
color: ${E(C.colors.base.coral.tone900)};
|
|
18940
18954
|
}
|
|
18941
18955
|
.chat-wrapper-menu-button {
|
|
18942
18956
|
border: none;
|
|
@@ -18944,14 +18958,13 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18944
18958
|
cursor: pointer;
|
|
18945
18959
|
display: contents;
|
|
18946
18960
|
}
|
|
18947
|
-
#chat-minimized {
|
|
18961
|
+
:host #chat-minimized {
|
|
18948
18962
|
position: fixed;
|
|
18949
18963
|
width: var(--chat-sticky-minimized-size);
|
|
18950
18964
|
height: var(--chat-sticky-minimized-size);
|
|
18951
18965
|
bottom: 5%;
|
|
18952
|
-
right: calc(var(--chat-sticky-offset-right) + var(--chat-sticky-width) / 2 - var(--chat-sticky-minimized-size));
|
|
18953
18966
|
z-index: 10001;
|
|
18954
|
-
background-color: ${
|
|
18967
|
+
background-color: ${E(C.colors.base.coral.tone300)};
|
|
18955
18968
|
border-radius: 16px;
|
|
18956
18969
|
color: white;
|
|
18957
18970
|
padding: 1rem;
|
|
@@ -18961,13 +18974,31 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18961
18974
|
justify-content: center;
|
|
18962
18975
|
cursor: pointer;
|
|
18963
18976
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.16), 0px 4px 8px 2px rgba(0, 0, 0, 0.08);
|
|
18977
|
+
@media (min-width: ${E(C.devices.mobile.max)}px) {
|
|
18978
|
+
--chat-sticky-width: 45vw;
|
|
18979
|
+
right: calc(
|
|
18980
|
+
var(--chat-sticky-offset-right) + ((var(--chat-sticky-width) / 2) - var(--chat-sticky-minimized-size))
|
|
18981
|
+
);
|
|
18982
|
+
}
|
|
18983
|
+
@media (min-width: ${E(C.devices.tablet.max)}px) {
|
|
18984
|
+
--chat-sticky-width: 35vw;
|
|
18985
|
+
right: calc(
|
|
18986
|
+
var(--chat-sticky-offset-right) + ((var(--chat-sticky-width) / 2) - var(--chat-sticky-minimized-size))
|
|
18987
|
+
);
|
|
18988
|
+
}
|
|
18989
|
+
@media (min-width: ${E(C.devices.laptop.max)}px) {
|
|
18990
|
+
--chat-sticky-width: 25vw;
|
|
18991
|
+
right: calc(
|
|
18992
|
+
var(--chat-sticky-offset-right) + ((var(--chat-sticky-width) / 2) - var(--chat-sticky-minimized-size))
|
|
18993
|
+
);
|
|
18994
|
+
}
|
|
18964
18995
|
}
|
|
18965
18996
|
|
|
18966
18997
|
#chat-minimized-icon {
|
|
18967
18998
|
transform: scale(1.5);
|
|
18968
18999
|
}
|
|
18969
19000
|
#chat-minimized-text {
|
|
18970
|
-
color: ${
|
|
19001
|
+
color: ${E(C.colors.base.coral.tone900)};
|
|
18971
19002
|
font-family: var(--font-poppins);
|
|
18972
19003
|
}
|
|
18973
19004
|
p {
|
|
@@ -18979,7 +19010,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18979
19010
|
#chat-wrapper-content {
|
|
18980
19011
|
position: relative;
|
|
18981
19012
|
overflow: hidden;
|
|
18982
|
-
background-color: ${
|
|
19013
|
+
background-color: ${E(C.colors.base.white)};
|
|
18983
19014
|
}
|
|
18984
19015
|
|
|
18985
19016
|
#exit-overlay {
|
|
@@ -19007,7 +19038,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
19007
19038
|
}
|
|
19008
19039
|
}
|
|
19009
19040
|
}
|
|
19010
|
-
`,
|
|
19041
|
+
`, wt = {
|
|
19011
19042
|
avatars: {
|
|
19012
19043
|
ai: {
|
|
19013
19044
|
src: new URL("data:image/svg+xml,%3csvg%20width='272'%20height='277'%20viewBox='0%200%20272%20277'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_16_3)'%3e%3cpath%20d='M271.973%2097.8844V227.773C271.973%20241.967%20260.228%20253.476%20245.954%20253.078C232.176%20252.689%20221.389%20241%20221.389%20227.203V97.8844C221.389%2095.814%20223.069%2094.1234%20225.147%2094.1234H235.42C237.497%2094.1234%20239.178%2095.805%20239.178%2097.8844V227.475C239.178%20231.362%20242.331%20235.033%20246.216%20235.277C250.579%20235.548%20254.211%20232.076%20254.211%20227.773V97.8844C254.211%2095.814%20255.892%2094.1234%20257.97%2094.1234H268.242C270.32%2094.1234%20272%2095.805%20272%2097.8844H271.973ZM44.7024%20189.042H3.75833C1.68041%20189.042%200%20190.724%200%20192.803V203.164C0%20205.234%201.68041%20206.916%203.75833%20206.916H15.5212V273.239C15.5212%20275.318%2017.2016%20277%2019.2795%20277H29.1993C31.2682%20277%2032.9576%20275.318%2032.9576%20273.239V206.916H44.7205C46.7894%20206.916%2048.4788%20205.234%2048.4788%20203.155V192.794C48.4788%20190.715%2046.7984%20189.033%2044.7205%20189.033L44.7024%20189.042ZM216.601%20138.468C216.601%20163.484%20196.264%20183.826%20171.275%20183.826H170.679C145.689%20183.826%20125.353%20163.475%20125.353%20138.468C125.353%20113.462%20145.689%2093.1108%20170.679%2093.1108H171.275C196.273%2093.1108%20216.601%20113.462%20216.601%20138.468ZM199.146%20138.468C199.146%20123.099%20186.643%20110.578%20171.275%20110.578H170.661C155.302%20110.578%20142.798%20123.09%20142.798%20138.468C142.798%20153.847%20155.293%20166.35%20170.661%20166.35H171.275C186.634%20166.35%20199.146%20153.847%20199.146%20138.468ZM268.215%20259.199H225.138C223.06%20259.199%20221.38%20260.88%20221.38%20262.96V273.239C221.38%20275.318%20223.06%20277%20225.138%20277H268.215C270.292%20277%20271.973%20275.318%20271.973%20273.239V262.96C271.973%20260.88%20270.292%20259.199%20268.215%20259.199ZM3.75833%2087.9034H24.2123C26.2812%2087.9034%2027.9706%2086.2218%2027.9706%2084.1424V73.863C27.9706%2071.7927%2026.2902%2070.1021%2024.2123%2070.1021H17.7798V3.76096C17.7798%201.68158%2016.0994%200%2014.0215%200H3.75833C1.68041%200%200%201.68158%200%203.76096V84.1514C0%2086.2218%201.68041%2087.9124%203.75833%2087.9124V87.9034ZM239.16%2017.7922H268.215C270.292%2017.7922%20271.973%2016.1106%20271.973%2014.0313V3.76096C271.973%201.68158%20270.292%200%20268.215%200H225.138C223.06%200%20221.38%201.68158%20221.38%203.76096V84.1514C221.38%2086.2218%20223.06%2087.9124%20225.138%2087.9124H268.215C270.292%2087.9124%20271.973%2086.2308%20271.973%2084.1514V73.8721C271.973%2071.8018%20270.292%2070.1111%20268.215%2070.1111H239.16V52.8704H266.823C268.901%2052.8704%20270.582%2051.1888%20270.582%2049.1094V38.8301C270.582%2036.7598%20268.901%2035.0691%20266.823%2035.0691H239.16V17.7922ZM32.9667%2083.1208L57.2874%202.72127C57.7753%201.10297%2059.2659%200%2060.9554%200H73.8837C75.4918%200%2076.9102%201.01257%2077.4342%202.53141L105.206%2082.8857C106.064%2085.3719%20104.221%2087.9666%20101.583%2087.9666H90.8233C89.2242%2087.9666%2087.7967%2086.9541%2087.2727%2085.4352L83.5234%2074.5863C82.9904%2073.0403%2081.5359%2072.0097%2079.9006%2072.0097H57.7301C56.0407%2072.0097%2054.55%2073.1127%2054.0621%2074.731L50.8639%2085.2906C50.3851%2086.8727%2048.9215%2087.9576%2047.2682%2087.9576H36.5353C34.0147%2087.9576%2032.2078%2085.5256%2032.9396%2083.1117L32.9667%2083.1208ZM60.2868%2054.2265H76.4946L68.9238%2032.3207C68.5895%2031.3443%2067.1982%2031.3715%2066.9001%2032.3569L60.2868%2054.2175V54.2265ZM110.681%2084.1514V3.83328C110.681%201.76295%20112.361%200.0723261%20114.439%200.0723261H183.598C200.727%200.0723261%20215.481%2014.0855%20215.58%2031.2178C215.643%2043.034%20209.129%2053.3586%20199.499%2058.7469L214.541%2082.0992C216.149%2084.5944%20214.36%2087.8943%20211.388%2087.8943H199.173C197.899%2087.8943%20196.707%2087.2434%20196.02%2086.1766L180.915%2062.7339H132.219C130.15%2062.7339%20128.461%2064.4155%20128.461%2066.4948V84.1514C128.461%2086.2218%20126.78%2087.9124%20124.702%2087.9124H114.43C112.361%2087.9124%20110.672%2086.2308%20110.672%2084.1514H110.681ZM128.461%2044.9507H184.276C192.388%2044.9507%20198.866%2037.7542%20197.665%2029.4096C196.698%2022.6833%20190.6%2017.8736%20183.797%2017.8736H128.461V44.9507ZM0%20179.061V97.8934C0%2095.814%201.68041%2094.1324%203.75833%2094.1324H76.3591C101.24%2094.1324%20121.396%20114.754%20120.646%20139.815C119.932%20163.936%2099.5234%20182.813%2075.4105%20182.813H3.75833C1.68041%20182.813%200%20181.132%200%20179.052V179.061ZM17.4274%20165.374H75.6996C90.2541%20165.374%20102.667%20154.073%20103.219%20139.508C103.797%20124.202%2091.5279%20111.572%2076.3591%20111.572H17.4274V165.374ZM72.0316%20206.88H211.749C213.827%20206.88%20215.508%20205.198%20215.508%20203.119V192.84C215.508%20190.76%20213.827%20189.079%20211.749%20189.079H58.0192C55.9503%20189.079%2054.2609%20190.76%2054.2609%20192.84V273.23C54.2609%20275.309%2055.9413%20276.991%2058.0192%20276.991H211.749C213.827%20276.991%20215.508%20275.309%20215.508%20273.23V262.951C215.508%20260.871%20213.827%20259.19%20211.749%20259.19H72.0406V241.949H210.412C212.49%20241.949%20214.171%20240.267%20214.171%20238.188V227.909C214.171%20225.829%20212.49%20224.148%20210.412%20224.148H72.0406V206.853L72.0316%20206.88Z'%20fill='%23FF3F52'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_16_3'%3e%3crect%20width='272'%20height='277'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href
|
|
@@ -19023,7 +19054,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
19023
19054
|
},
|
|
19024
19055
|
container: {
|
|
19025
19056
|
display: "none",
|
|
19026
|
-
|
|
19057
|
+
marginBottom: "0"
|
|
19027
19058
|
}
|
|
19028
19059
|
}
|
|
19029
19060
|
},
|
|
@@ -19069,7 +19100,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
19069
19100
|
alignItems: "center"
|
|
19070
19101
|
},
|
|
19071
19102
|
outerContainer: {
|
|
19072
|
-
margin:
|
|
19103
|
+
margin: "0.5rem 0"
|
|
19073
19104
|
}
|
|
19074
19105
|
},
|
|
19075
19106
|
lr: {
|
|
@@ -19090,7 +19121,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
19090
19121
|
margin: "0"
|
|
19091
19122
|
},
|
|
19092
19123
|
innerContainer: {
|
|
19093
|
-
|
|
19124
|
+
marginBottom: "1rem",
|
|
19094
19125
|
width: "100%"
|
|
19095
19126
|
}
|
|
19096
19127
|
}
|
|
@@ -19360,7 +19391,7 @@ const u1 = (n) => {
|
|
|
19360
19391
|
return t;
|
|
19361
19392
|
};
|
|
19362
19393
|
return e(n, 0);
|
|
19363
|
-
}, d1 = Qe("AsyncFunction"), p1 = (n) => n && (hi(n) || Fe(n)) && Fe(n.then) && Fe(n.catch),
|
|
19394
|
+
}, d1 = Qe("AsyncFunction"), p1 = (n) => n && (hi(n) || Fe(n)) && Fe(n.then) && Fe(n.catch), x = {
|
|
19364
19395
|
isArray: an,
|
|
19365
19396
|
isArrayBuffer: Pc,
|
|
19366
19397
|
isBuffer: Pv,
|
|
@@ -19417,7 +19448,7 @@ const u1 = (n) => {
|
|
|
19417
19448
|
function re(n, r, e, t, i) {
|
|
19418
19449
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = n, this.name = "AxiosError", r && (this.code = r), e && (this.config = e), t && (this.request = t), i && (this.response = i);
|
|
19419
19450
|
}
|
|
19420
|
-
|
|
19451
|
+
x.inherits(re, Error, {
|
|
19421
19452
|
toJSON: function() {
|
|
19422
19453
|
return {
|
|
19423
19454
|
// Standard
|
|
@@ -19432,7 +19463,7 @@ E.inherits(re, Error, {
|
|
|
19432
19463
|
columnNumber: this.columnNumber,
|
|
19433
19464
|
stack: this.stack,
|
|
19434
19465
|
// Axios
|
|
19435
|
-
config:
|
|
19466
|
+
config: x.toJSONObject(this.config),
|
|
19436
19467
|
code: this.code,
|
|
19437
19468
|
status: this.response && this.response.status ? this.response.status : null
|
|
19438
19469
|
};
|
|
@@ -19460,16 +19491,16 @@ Object.defineProperties(re, Uc);
|
|
|
19460
19491
|
Object.defineProperty(Hc, "isAxiosError", { value: !0 });
|
|
19461
19492
|
re.from = (n, r, e, t, i, a) => {
|
|
19462
19493
|
const o = Object.create(Hc);
|
|
19463
|
-
return
|
|
19494
|
+
return x.toFlatObject(n, o, function(l) {
|
|
19464
19495
|
return l !== Error.prototype;
|
|
19465
19496
|
}, (s) => s !== "isAxiosError"), re.call(o, n.message, r, e, t, i), o.cause = n, o.name = n.name, a && Object.assign(o, a), o;
|
|
19466
19497
|
};
|
|
19467
19498
|
const h1 = null;
|
|
19468
19499
|
function ya(n) {
|
|
19469
|
-
return
|
|
19500
|
+
return x.isPlainObject(n) || x.isArray(n);
|
|
19470
19501
|
}
|
|
19471
19502
|
function zc(n) {
|
|
19472
|
-
return
|
|
19503
|
+
return x.endsWith(n, "[]") ? n.slice(0, -2) : n;
|
|
19473
19504
|
}
|
|
19474
19505
|
function Xs(n, r, e) {
|
|
19475
19506
|
return n ? n.concat(r).map(function(i, a) {
|
|
@@ -19477,40 +19508,40 @@ function Xs(n, r, e) {
|
|
|
19477
19508
|
}).join(e ? "." : "") : r;
|
|
19478
19509
|
}
|
|
19479
19510
|
function f1(n) {
|
|
19480
|
-
return
|
|
19511
|
+
return x.isArray(n) && !n.some(ya);
|
|
19481
19512
|
}
|
|
19482
|
-
const m1 =
|
|
19513
|
+
const m1 = x.toFlatObject(x, {}, null, function(r) {
|
|
19483
19514
|
return /^is[A-Z]/.test(r);
|
|
19484
19515
|
});
|
|
19485
19516
|
function fi(n, r, e) {
|
|
19486
|
-
if (!
|
|
19517
|
+
if (!x.isObject(n))
|
|
19487
19518
|
throw new TypeError("target must be an object");
|
|
19488
|
-
r = r || new FormData(), e =
|
|
19519
|
+
r = r || new FormData(), e = x.toFlatObject(e, {
|
|
19489
19520
|
metaTokens: !0,
|
|
19490
19521
|
dots: !1,
|
|
19491
19522
|
indexes: !1
|
|
19492
19523
|
}, !1, function(g, y) {
|
|
19493
|
-
return !
|
|
19524
|
+
return !x.isUndefined(y[g]);
|
|
19494
19525
|
});
|
|
19495
|
-
const t = e.metaTokens, i = e.visitor || u, a = e.dots, o = e.indexes, l = (e.Blob || typeof Blob < "u" && Blob) &&
|
|
19496
|
-
if (!
|
|
19526
|
+
const t = e.metaTokens, i = e.visitor || u, a = e.dots, o = e.indexes, l = (e.Blob || typeof Blob < "u" && Blob) && x.isSpecCompliantForm(r);
|
|
19527
|
+
if (!x.isFunction(i))
|
|
19497
19528
|
throw new TypeError("visitor must be a function");
|
|
19498
19529
|
function c(f) {
|
|
19499
19530
|
if (f === null) return "";
|
|
19500
|
-
if (
|
|
19531
|
+
if (x.isDate(f))
|
|
19501
19532
|
return f.toISOString();
|
|
19502
|
-
if (!l &&
|
|
19533
|
+
if (!l && x.isBlob(f))
|
|
19503
19534
|
throw new re("Blob is not supported. Use a Buffer instead.");
|
|
19504
|
-
return
|
|
19535
|
+
return x.isArrayBuffer(f) || x.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
19505
19536
|
}
|
|
19506
19537
|
function u(f, g, y) {
|
|
19507
19538
|
let v = f;
|
|
19508
19539
|
if (f && !y && typeof f == "object") {
|
|
19509
|
-
if (
|
|
19540
|
+
if (x.endsWith(g, "{}"))
|
|
19510
19541
|
g = t ? g : g.slice(0, -2), f = JSON.stringify(f);
|
|
19511
|
-
else if (
|
|
19542
|
+
else if (x.isArray(f) && f1(f) || (x.isFileList(f) || x.endsWith(g, "[]")) && (v = x.toArray(f)))
|
|
19512
19543
|
return g = zc(g), v.forEach(function(S, N) {
|
|
19513
|
-
!(
|
|
19544
|
+
!(x.isUndefined(S) || S === null) && r.append(
|
|
19514
19545
|
// eslint-disable-next-line no-nested-ternary
|
|
19515
19546
|
o === !0 ? Xs([g], N, a) : o === null ? g : g + "[]",
|
|
19516
19547
|
c(S)
|
|
@@ -19525,21 +19556,21 @@ function fi(n, r, e) {
|
|
|
19525
19556
|
isVisitable: ya
|
|
19526
19557
|
});
|
|
19527
19558
|
function h(f, g) {
|
|
19528
|
-
if (!
|
|
19559
|
+
if (!x.isUndefined(f)) {
|
|
19529
19560
|
if (d.indexOf(f) !== -1)
|
|
19530
19561
|
throw Error("Circular reference detected in " + g.join("."));
|
|
19531
|
-
d.push(f),
|
|
19532
|
-
(!(
|
|
19562
|
+
d.push(f), x.forEach(f, function(v, b) {
|
|
19563
|
+
(!(x.isUndefined(v) || v === null) && i.call(
|
|
19533
19564
|
r,
|
|
19534
19565
|
v,
|
|
19535
|
-
|
|
19566
|
+
x.isString(b) ? b.trim() : b,
|
|
19536
19567
|
g,
|
|
19537
19568
|
p
|
|
19538
19569
|
)) === !0 && h(v, g ? g.concat(b) : [b]);
|
|
19539
19570
|
}), d.pop();
|
|
19540
19571
|
}
|
|
19541
19572
|
}
|
|
19542
|
-
if (!
|
|
19573
|
+
if (!x.isObject(n))
|
|
19543
19574
|
throw new TypeError("data must be an object");
|
|
19544
19575
|
return h(n), r;
|
|
19545
19576
|
}
|
|
@@ -19580,7 +19611,7 @@ function qc(n, r, e) {
|
|
|
19580
19611
|
return n;
|
|
19581
19612
|
const t = e && e.encode || g1, i = e && e.serialize;
|
|
19582
19613
|
let a;
|
|
19583
|
-
if (i ? a = i(r, e) : a =
|
|
19614
|
+
if (i ? a = i(r, e) : a = x.isURLSearchParams(r) ? r.toString() : new Za(r, e).toString(t), a) {
|
|
19584
19615
|
const o = n.indexOf("#");
|
|
19585
19616
|
o !== -1 && (n = n.slice(0, o)), n += (n.indexOf("?") === -1 ? "?" : "&") + a;
|
|
19586
19617
|
}
|
|
@@ -19635,7 +19666,7 @@ class el {
|
|
|
19635
19666
|
* @returns {void}
|
|
19636
19667
|
*/
|
|
19637
19668
|
forEach(r) {
|
|
19638
|
-
|
|
19669
|
+
x.forEach(this.handlers, function(t) {
|
|
19639
19670
|
t !== null && r(t);
|
|
19640
19671
|
});
|
|
19641
19672
|
}
|
|
@@ -19644,7 +19675,7 @@ const Vc = {
|
|
|
19644
19675
|
silentJSONParsing: !0,
|
|
19645
19676
|
forcedJSONParsing: !0,
|
|
19646
19677
|
clarifyTimeoutError: !1
|
|
19647
|
-
}, v1 = typeof URLSearchParams < "u" ? URLSearchParams : Za, y1 = typeof FormData < "u" ? FormData : null, b1 = typeof Blob < "u" ? Blob : null,
|
|
19678
|
+
}, v1 = typeof URLSearchParams < "u" ? URLSearchParams : Za, y1 = typeof FormData < "u" ? FormData : null, b1 = typeof Blob < "u" ? Blob : null, w1 = {
|
|
19648
19679
|
isBrowser: !0,
|
|
19649
19680
|
classes: {
|
|
19650
19681
|
URLSearchParams: v1,
|
|
@@ -19652,27 +19683,27 @@ const Vc = {
|
|
|
19652
19683
|
Blob: b1
|
|
19653
19684
|
},
|
|
19654
19685
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
19655
|
-
}, Gc = typeof window < "u" && typeof document < "u",
|
|
19686
|
+
}, Gc = typeof window < "u" && typeof document < "u", k1 = ((n) => Gc && ["ReactNative", "NativeScript", "NS"].indexOf(n) < 0)(typeof navigator < "u" && navigator.product), S1 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
19656
19687
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", _1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19657
19688
|
__proto__: null,
|
|
19658
19689
|
hasBrowserEnv: Gc,
|
|
19659
|
-
hasStandardBrowserEnv:
|
|
19690
|
+
hasStandardBrowserEnv: k1,
|
|
19660
19691
|
hasStandardBrowserWebWorkerEnv: S1
|
|
19661
19692
|
}, Symbol.toStringTag, { value: "Module" })), Ke = {
|
|
19662
19693
|
..._1,
|
|
19663
|
-
...
|
|
19694
|
+
...w1
|
|
19664
19695
|
};
|
|
19665
19696
|
function C1(n, r) {
|
|
19666
19697
|
return fi(n, new Ke.classes.URLSearchParams(), Object.assign({
|
|
19667
19698
|
visitor: function(e, t, i, a) {
|
|
19668
|
-
return Ke.isNode &&
|
|
19699
|
+
return Ke.isNode && x.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
19669
19700
|
}
|
|
19670
19701
|
}, r));
|
|
19671
19702
|
}
|
|
19672
|
-
function E1(n) {
|
|
19673
|
-
return E.matchAll(/\w+|\[(\w*)]/g, n).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
|
|
19674
|
-
}
|
|
19675
19703
|
function x1(n) {
|
|
19704
|
+
return x.matchAll(/\w+|\[(\w*)]/g, n).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
|
|
19705
|
+
}
|
|
19706
|
+
function E1(n) {
|
|
19676
19707
|
const r = {}, e = Object.keys(n);
|
|
19677
19708
|
let t;
|
|
19678
19709
|
const i = e.length;
|
|
@@ -19686,20 +19717,20 @@ function Kc(n) {
|
|
|
19686
19717
|
let o = e[a++];
|
|
19687
19718
|
if (o === "__proto__") return !0;
|
|
19688
19719
|
const s = Number.isFinite(+o), l = a >= e.length;
|
|
19689
|
-
return o = !o &&
|
|
19720
|
+
return o = !o && x.isArray(i) ? i.length : o, l ? (x.hasOwnProp(i, o) ? i[o] = [i[o], t] : i[o] = t, !s) : ((!i[o] || !x.isObject(i[o])) && (i[o] = []), r(e, t, i[o], a) && x.isArray(i[o]) && (i[o] = E1(i[o])), !s);
|
|
19690
19721
|
}
|
|
19691
|
-
if (
|
|
19722
|
+
if (x.isFormData(n) && x.isFunction(n.entries)) {
|
|
19692
19723
|
const e = {};
|
|
19693
|
-
return
|
|
19694
|
-
r(
|
|
19724
|
+
return x.forEachEntry(n, (t, i) => {
|
|
19725
|
+
r(x1(t), i, e, 0);
|
|
19695
19726
|
}), e;
|
|
19696
19727
|
}
|
|
19697
19728
|
return null;
|
|
19698
19729
|
}
|
|
19699
19730
|
function A1(n, r, e) {
|
|
19700
|
-
if (
|
|
19731
|
+
if (x.isString(n))
|
|
19701
19732
|
try {
|
|
19702
|
-
return (r || JSON.parse)(n),
|
|
19733
|
+
return (r || JSON.parse)(n), x.trim(n);
|
|
19703
19734
|
} catch (t) {
|
|
19704
19735
|
if (t.name !== "SyntaxError")
|
|
19705
19736
|
throw t;
|
|
@@ -19710,20 +19741,20 @@ const Zn = {
|
|
|
19710
19741
|
transitional: Vc,
|
|
19711
19742
|
adapter: ["xhr", "http"],
|
|
19712
19743
|
transformRequest: [function(r, e) {
|
|
19713
|
-
const t = e.getContentType() || "", i = t.indexOf("application/json") > -1, a =
|
|
19714
|
-
if (a &&
|
|
19744
|
+
const t = e.getContentType() || "", i = t.indexOf("application/json") > -1, a = x.isObject(r);
|
|
19745
|
+
if (a && x.isHTMLForm(r) && (r = new FormData(r)), x.isFormData(r))
|
|
19715
19746
|
return i ? JSON.stringify(Kc(r)) : r;
|
|
19716
|
-
if (
|
|
19747
|
+
if (x.isArrayBuffer(r) || x.isBuffer(r) || x.isStream(r) || x.isFile(r) || x.isBlob(r))
|
|
19717
19748
|
return r;
|
|
19718
|
-
if (
|
|
19749
|
+
if (x.isArrayBufferView(r))
|
|
19719
19750
|
return r.buffer;
|
|
19720
|
-
if (
|
|
19751
|
+
if (x.isURLSearchParams(r))
|
|
19721
19752
|
return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), r.toString();
|
|
19722
19753
|
let s;
|
|
19723
19754
|
if (a) {
|
|
19724
19755
|
if (t.indexOf("application/x-www-form-urlencoded") > -1)
|
|
19725
19756
|
return C1(r, this.formSerializer).toString();
|
|
19726
|
-
if ((s =
|
|
19757
|
+
if ((s = x.isFileList(r)) || t.indexOf("multipart/form-data") > -1) {
|
|
19727
19758
|
const l = this.env && this.env.FormData;
|
|
19728
19759
|
return fi(
|
|
19729
19760
|
s ? { "files[]": r } : r,
|
|
@@ -19736,7 +19767,7 @@ const Zn = {
|
|
|
19736
19767
|
}],
|
|
19737
19768
|
transformResponse: [function(r) {
|
|
19738
19769
|
const e = this.transitional || Zn.transitional, t = e && e.forcedJSONParsing, i = this.responseType === "json";
|
|
19739
|
-
if (r &&
|
|
19770
|
+
if (r && x.isString(r) && (t && !this.responseType || i)) {
|
|
19740
19771
|
const o = !(e && e.silentJSONParsing) && i;
|
|
19741
19772
|
try {
|
|
19742
19773
|
return JSON.parse(r);
|
|
@@ -19770,10 +19801,10 @@ const Zn = {
|
|
|
19770
19801
|
}
|
|
19771
19802
|
}
|
|
19772
19803
|
};
|
|
19773
|
-
|
|
19804
|
+
x.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
|
|
19774
19805
|
Zn.headers[n] = {};
|
|
19775
19806
|
});
|
|
19776
|
-
const T1 =
|
|
19807
|
+
const T1 = x.toObjectSet([
|
|
19777
19808
|
"age",
|
|
19778
19809
|
"authorization",
|
|
19779
19810
|
"content-length",
|
|
@@ -19803,7 +19834,7 @@ function pn(n) {
|
|
|
19803
19834
|
return n && String(n).trim().toLowerCase();
|
|
19804
19835
|
}
|
|
19805
19836
|
function yr(n) {
|
|
19806
|
-
return n === !1 || n == null ? n :
|
|
19837
|
+
return n === !1 || n == null ? n : x.isArray(n) ? n.map(yr) : String(n);
|
|
19807
19838
|
}
|
|
19808
19839
|
function L1(n) {
|
|
19809
19840
|
const r = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -19814,12 +19845,12 @@ function L1(n) {
|
|
|
19814
19845
|
}
|
|
19815
19846
|
const O1 = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
|
|
19816
19847
|
function qi(n, r, e, t, i) {
|
|
19817
|
-
if (
|
|
19848
|
+
if (x.isFunction(t))
|
|
19818
19849
|
return t.call(this, r, e);
|
|
19819
|
-
if (i && (r = e), !!
|
|
19820
|
-
if (
|
|
19850
|
+
if (i && (r = e), !!x.isString(r)) {
|
|
19851
|
+
if (x.isString(t))
|
|
19821
19852
|
return r.indexOf(t) !== -1;
|
|
19822
|
-
if (
|
|
19853
|
+
if (x.isRegExp(t))
|
|
19823
19854
|
return t.test(r);
|
|
19824
19855
|
}
|
|
19825
19856
|
}
|
|
@@ -19827,7 +19858,7 @@ function I1(n) {
|
|
|
19827
19858
|
return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (r, e, t) => e.toUpperCase() + t);
|
|
19828
19859
|
}
|
|
19829
19860
|
function M1(n, r) {
|
|
19830
|
-
const e =
|
|
19861
|
+
const e = x.toCamelCase(" " + r);
|
|
19831
19862
|
["get", "set", "has"].forEach((t) => {
|
|
19832
19863
|
Object.defineProperty(n, t + e, {
|
|
19833
19864
|
value: function(i, a, o) {
|
|
@@ -19847,24 +19878,24 @@ class Ne {
|
|
|
19847
19878
|
const u = pn(l);
|
|
19848
19879
|
if (!u)
|
|
19849
19880
|
throw new Error("header name must be a non-empty string");
|
|
19850
|
-
const d =
|
|
19881
|
+
const d = x.findKey(i, u);
|
|
19851
19882
|
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || l] = yr(s));
|
|
19852
19883
|
}
|
|
19853
|
-
const o = (s, l) =>
|
|
19854
|
-
return
|
|
19884
|
+
const o = (s, l) => x.forEach(s, (c, u) => a(c, u, l));
|
|
19885
|
+
return x.isPlainObject(r) || r instanceof this.constructor ? o(r, e) : x.isString(r) && (r = r.trim()) && !O1(r) ? o(R1(r), e) : r != null && a(e, r, t), this;
|
|
19855
19886
|
}
|
|
19856
19887
|
get(r, e) {
|
|
19857
19888
|
if (r = pn(r), r) {
|
|
19858
|
-
const t =
|
|
19889
|
+
const t = x.findKey(this, r);
|
|
19859
19890
|
if (t) {
|
|
19860
19891
|
const i = this[t];
|
|
19861
19892
|
if (!e)
|
|
19862
19893
|
return i;
|
|
19863
19894
|
if (e === !0)
|
|
19864
19895
|
return L1(i);
|
|
19865
|
-
if (
|
|
19896
|
+
if (x.isFunction(e))
|
|
19866
19897
|
return e.call(this, i, t);
|
|
19867
|
-
if (
|
|
19898
|
+
if (x.isRegExp(e))
|
|
19868
19899
|
return e.exec(i);
|
|
19869
19900
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
19870
19901
|
}
|
|
@@ -19872,7 +19903,7 @@ class Ne {
|
|
|
19872
19903
|
}
|
|
19873
19904
|
has(r, e) {
|
|
19874
19905
|
if (r = pn(r), r) {
|
|
19875
|
-
const t =
|
|
19906
|
+
const t = x.findKey(this, r);
|
|
19876
19907
|
return !!(t && this[t] !== void 0 && (!e || qi(this, this[t], t, e)));
|
|
19877
19908
|
}
|
|
19878
19909
|
return !1;
|
|
@@ -19882,11 +19913,11 @@ class Ne {
|
|
|
19882
19913
|
let i = !1;
|
|
19883
19914
|
function a(o) {
|
|
19884
19915
|
if (o = pn(o), o) {
|
|
19885
|
-
const s =
|
|
19916
|
+
const s = x.findKey(t, o);
|
|
19886
19917
|
s && (!e || qi(t, t[s], s, e)) && (delete t[s], i = !0);
|
|
19887
19918
|
}
|
|
19888
19919
|
}
|
|
19889
|
-
return
|
|
19920
|
+
return x.isArray(r) ? r.forEach(a) : a(r), i;
|
|
19890
19921
|
}
|
|
19891
19922
|
clear(r) {
|
|
19892
19923
|
const e = Object.keys(this);
|
|
@@ -19899,8 +19930,8 @@ class Ne {
|
|
|
19899
19930
|
}
|
|
19900
19931
|
normalize(r) {
|
|
19901
19932
|
const e = this, t = {};
|
|
19902
|
-
return
|
|
19903
|
-
const o =
|
|
19933
|
+
return x.forEach(this, (i, a) => {
|
|
19934
|
+
const o = x.findKey(t, a);
|
|
19904
19935
|
if (o) {
|
|
19905
19936
|
e[o] = yr(i), delete e[a];
|
|
19906
19937
|
return;
|
|
@@ -19914,8 +19945,8 @@ class Ne {
|
|
|
19914
19945
|
}
|
|
19915
19946
|
toJSON(r) {
|
|
19916
19947
|
const e = /* @__PURE__ */ Object.create(null);
|
|
19917
|
-
return
|
|
19918
|
-
t != null && t !== !1 && (e[i] = r &&
|
|
19948
|
+
return x.forEach(this, (t, i) => {
|
|
19949
|
+
t != null && t !== !1 && (e[i] = r && x.isArray(t) ? t.join(", ") : t);
|
|
19919
19950
|
}), e;
|
|
19920
19951
|
}
|
|
19921
19952
|
[Symbol.iterator]() {
|
|
@@ -19943,11 +19974,11 @@ class Ne {
|
|
|
19943
19974
|
const s = pn(o);
|
|
19944
19975
|
t[s] || (M1(i, o), t[s] = !0);
|
|
19945
19976
|
}
|
|
19946
|
-
return
|
|
19977
|
+
return x.isArray(r) ? r.forEach(a) : a(r), this;
|
|
19947
19978
|
}
|
|
19948
19979
|
}
|
|
19949
19980
|
Ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
19950
|
-
|
|
19981
|
+
x.reduceDescriptors(Ne.prototype, ({ value: n }, r) => {
|
|
19951
19982
|
let e = r[0].toUpperCase() + r.slice(1);
|
|
19952
19983
|
return {
|
|
19953
19984
|
get: () => n,
|
|
@@ -19956,11 +19987,11 @@ E.reduceDescriptors(Ne.prototype, ({ value: n }, r) => {
|
|
|
19956
19987
|
}
|
|
19957
19988
|
};
|
|
19958
19989
|
});
|
|
19959
|
-
|
|
19990
|
+
x.freezeMethods(Ne);
|
|
19960
19991
|
function Vi(n, r) {
|
|
19961
19992
|
const e = this || Zn, t = r || e, i = Ne.from(t.headers);
|
|
19962
19993
|
let a = t.data;
|
|
19963
|
-
return
|
|
19994
|
+
return x.forEach(n, function(s) {
|
|
19964
19995
|
a = s.call(e, a, i.normalize(), r ? r.status : void 0);
|
|
19965
19996
|
}), i.normalize(), a;
|
|
19966
19997
|
}
|
|
@@ -19970,7 +20001,7 @@ function Jc(n) {
|
|
|
19970
20001
|
function Yn(n, r, e) {
|
|
19971
20002
|
re.call(this, n ?? "canceled", re.ERR_CANCELED, r, e), this.name = "CanceledError";
|
|
19972
20003
|
}
|
|
19973
|
-
|
|
20004
|
+
x.inherits(Yn, re, {
|
|
19974
20005
|
__CANCEL__: !0
|
|
19975
20006
|
});
|
|
19976
20007
|
function P1(n, r, e) {
|
|
@@ -19988,7 +20019,7 @@ const F1 = Ke.hasStandardBrowserEnv ? (
|
|
|
19988
20019
|
{
|
|
19989
20020
|
write(n, r, e, t, i, a) {
|
|
19990
20021
|
const o = [n + "=" + encodeURIComponent(r)];
|
|
19991
|
-
|
|
20022
|
+
x.isNumber(e) && o.push("expires=" + new Date(e).toGMTString()), x.isString(t) && o.push("path=" + t), x.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
19992
20023
|
},
|
|
19993
20024
|
read(n) {
|
|
19994
20025
|
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
@@ -20039,7 +20070,7 @@ const $1 = Ke.hasStandardBrowserEnv ? (
|
|
|
20039
20070
|
};
|
|
20040
20071
|
}
|
|
20041
20072
|
return t = i(window.location.href), function(o) {
|
|
20042
|
-
const s =
|
|
20073
|
+
const s = x.isString(o) ? i(o) : o;
|
|
20043
20074
|
return s.protocol === t.protocol && s.host === t.host;
|
|
20044
20075
|
};
|
|
20045
20076
|
}()
|
|
@@ -20098,7 +20129,7 @@ const H1 = typeof XMLHttpRequest < "u", U1 = H1 && function(n) {
|
|
|
20098
20129
|
n.cancelToken && n.cancelToken.unsubscribe(l), n.signal && n.signal.removeEventListener("abort", l);
|
|
20099
20130
|
}
|
|
20100
20131
|
let u;
|
|
20101
|
-
if (
|
|
20132
|
+
if (x.isFormData(i)) {
|
|
20102
20133
|
if (Ke.hasStandardBrowserEnv || Ke.hasStandardBrowserWebWorkerEnv)
|
|
20103
20134
|
a.setContentType(!1);
|
|
20104
20135
|
else if ((u = a.getContentType()) !== !1) {
|
|
@@ -20147,13 +20178,13 @@ const H1 = typeof XMLHttpRequest < "u", U1 = H1 && function(n) {
|
|
|
20147
20178
|
n,
|
|
20148
20179
|
d
|
|
20149
20180
|
)), d = null;
|
|
20150
|
-
}, Ke.hasStandardBrowserEnv && (s &&
|
|
20181
|
+
}, Ke.hasStandardBrowserEnv && (s && x.isFunction(s) && (s = s(n)), s || s !== !1 && $1(p))) {
|
|
20151
20182
|
const g = n.xsrfHeaderName && n.xsrfCookieName && F1.read(n.xsrfCookieName);
|
|
20152
20183
|
g && a.set(n.xsrfHeaderName, g);
|
|
20153
20184
|
}
|
|
20154
|
-
i === void 0 && a.setContentType(null), "setRequestHeader" in d &&
|
|
20185
|
+
i === void 0 && a.setContentType(null), "setRequestHeader" in d && x.forEach(a.toJSON(), function(y, v) {
|
|
20155
20186
|
d.setRequestHeader(v, y);
|
|
20156
|
-
}),
|
|
20187
|
+
}), x.isUndefined(n.withCredentials) || (d.withCredentials = !!n.withCredentials), o && o !== "json" && (d.responseType = n.responseType), typeof n.onDownloadProgress == "function" && d.addEventListener("progress", nl(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", nl(n.onUploadProgress)), (n.cancelToken || n.signal) && (l = (g) => {
|
|
20157
20188
|
d && (t(!g || g.type ? new Yn(null, n, d) : g), d.abort(), d = null);
|
|
20158
20189
|
}, n.cancelToken && n.cancelToken.subscribe(l), n.signal && (n.signal.aborted ? l() : n.signal.addEventListener("abort", l)));
|
|
20159
20190
|
const f = B1(p);
|
|
@@ -20167,7 +20198,7 @@ const H1 = typeof XMLHttpRequest < "u", U1 = H1 && function(n) {
|
|
|
20167
20198
|
http: h1,
|
|
20168
20199
|
xhr: U1
|
|
20169
20200
|
};
|
|
20170
|
-
|
|
20201
|
+
x.forEach(ba, (n, r) => {
|
|
20171
20202
|
if (n) {
|
|
20172
20203
|
try {
|
|
20173
20204
|
Object.defineProperty(n, "name", { value: r });
|
|
@@ -20176,9 +20207,9 @@ E.forEach(ba, (n, r) => {
|
|
|
20176
20207
|
Object.defineProperty(n, "adapterName", { value: r });
|
|
20177
20208
|
}
|
|
20178
20209
|
});
|
|
20179
|
-
const rl = (n) => `- ${n}`, z1 = (n) =>
|
|
20210
|
+
const rl = (n) => `- ${n}`, z1 = (n) => x.isFunction(n) || n === null || n === !1, Yc = {
|
|
20180
20211
|
getAdapter: (n) => {
|
|
20181
|
-
n =
|
|
20212
|
+
n = x.isArray(n) ? n : [n];
|
|
20182
20213
|
const { length: r } = n;
|
|
20183
20214
|
let e, t;
|
|
20184
20215
|
const i = {};
|
|
@@ -20234,21 +20265,21 @@ function nn(n, r) {
|
|
|
20234
20265
|
r = r || {};
|
|
20235
20266
|
const e = {};
|
|
20236
20267
|
function t(c, u, d) {
|
|
20237
|
-
return
|
|
20268
|
+
return x.isPlainObject(c) && x.isPlainObject(u) ? x.merge.call({ caseless: d }, c, u) : x.isPlainObject(u) ? x.merge({}, u) : x.isArray(u) ? u.slice() : u;
|
|
20238
20269
|
}
|
|
20239
20270
|
function i(c, u, d) {
|
|
20240
|
-
if (
|
|
20241
|
-
if (!
|
|
20271
|
+
if (x.isUndefined(u)) {
|
|
20272
|
+
if (!x.isUndefined(c))
|
|
20242
20273
|
return t(void 0, c, d);
|
|
20243
20274
|
} else return t(c, u, d);
|
|
20244
20275
|
}
|
|
20245
20276
|
function a(c, u) {
|
|
20246
|
-
if (!
|
|
20277
|
+
if (!x.isUndefined(u))
|
|
20247
20278
|
return t(void 0, u);
|
|
20248
20279
|
}
|
|
20249
20280
|
function o(c, u) {
|
|
20250
|
-
if (
|
|
20251
|
-
if (!
|
|
20281
|
+
if (x.isUndefined(u)) {
|
|
20282
|
+
if (!x.isUndefined(c))
|
|
20252
20283
|
return t(void 0, c);
|
|
20253
20284
|
} else return t(void 0, u);
|
|
20254
20285
|
}
|
|
@@ -20289,9 +20320,9 @@ function nn(n, r) {
|
|
|
20289
20320
|
validateStatus: s,
|
|
20290
20321
|
headers: (c, u) => i(al(c), al(u), !0)
|
|
20291
20322
|
};
|
|
20292
|
-
return
|
|
20323
|
+
return x.forEach(Object.keys(Object.assign({}, n, r)), function(u) {
|
|
20293
20324
|
const d = l[u] || i, p = d(n[u], r[u], u);
|
|
20294
|
-
|
|
20325
|
+
x.isUndefined(p) && d !== s || (e[u] = p);
|
|
20295
20326
|
}), e;
|
|
20296
20327
|
}
|
|
20297
20328
|
const Xc = "1.6.8", Ya = {};
|
|
@@ -20336,10 +20367,10 @@ function W1(n, r, e) {
|
|
|
20336
20367
|
throw new re("Unknown option " + a, re.ERR_BAD_OPTION);
|
|
20337
20368
|
}
|
|
20338
20369
|
}
|
|
20339
|
-
const
|
|
20370
|
+
const wa = {
|
|
20340
20371
|
assertOptions: W1,
|
|
20341
20372
|
validators: Ya
|
|
20342
|
-
}, it =
|
|
20373
|
+
}, it = wa.validators;
|
|
20343
20374
|
class Ct {
|
|
20344
20375
|
constructor(r) {
|
|
20345
20376
|
this.defaults = r, this.interceptors = {
|
|
@@ -20372,21 +20403,21 @@ class Ct {
|
|
|
20372
20403
|
_request(r, e) {
|
|
20373
20404
|
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e = nn(this.defaults, e);
|
|
20374
20405
|
const { transitional: t, paramsSerializer: i, headers: a } = e;
|
|
20375
|
-
t !== void 0 &&
|
|
20406
|
+
t !== void 0 && wa.assertOptions(t, {
|
|
20376
20407
|
silentJSONParsing: it.transitional(it.boolean),
|
|
20377
20408
|
forcedJSONParsing: it.transitional(it.boolean),
|
|
20378
20409
|
clarifyTimeoutError: it.transitional(it.boolean)
|
|
20379
|
-
}, !1), i != null && (
|
|
20410
|
+
}, !1), i != null && (x.isFunction(i) ? e.paramsSerializer = {
|
|
20380
20411
|
serialize: i
|
|
20381
|
-
} :
|
|
20412
|
+
} : wa.assertOptions(i, {
|
|
20382
20413
|
encode: it.function,
|
|
20383
20414
|
serialize: it.function
|
|
20384
20415
|
}, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
|
|
20385
|
-
let o = a &&
|
|
20416
|
+
let o = a && x.merge(
|
|
20386
20417
|
a.common,
|
|
20387
20418
|
a[e.method]
|
|
20388
20419
|
);
|
|
20389
|
-
a &&
|
|
20420
|
+
a && x.forEach(
|
|
20390
20421
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
20391
20422
|
(f) => {
|
|
20392
20423
|
delete a[f];
|
|
@@ -20434,7 +20465,7 @@ class Ct {
|
|
|
20434
20465
|
return qc(e, r.params, r.paramsSerializer);
|
|
20435
20466
|
}
|
|
20436
20467
|
}
|
|
20437
|
-
|
|
20468
|
+
x.forEach(["delete", "get", "head", "options"], function(r) {
|
|
20438
20469
|
Ct.prototype[r] = function(e, t) {
|
|
20439
20470
|
return this.request(nn(t || {}, {
|
|
20440
20471
|
method: r,
|
|
@@ -20443,7 +20474,7 @@ E.forEach(["delete", "get", "head", "options"], function(r) {
|
|
|
20443
20474
|
}));
|
|
20444
20475
|
};
|
|
20445
20476
|
});
|
|
20446
|
-
|
|
20477
|
+
x.forEach(["post", "put", "patch"], function(r) {
|
|
20447
20478
|
function e(t) {
|
|
20448
20479
|
return function(a, o, s) {
|
|
20449
20480
|
return this.request(nn(s || {}, {
|
|
@@ -20531,9 +20562,9 @@ function q1(n) {
|
|
|
20531
20562
|
};
|
|
20532
20563
|
}
|
|
20533
20564
|
function V1(n) {
|
|
20534
|
-
return
|
|
20565
|
+
return x.isObject(n) && n.isAxiosError === !0;
|
|
20535
20566
|
}
|
|
20536
|
-
const
|
|
20567
|
+
const ka = {
|
|
20537
20568
|
Continue: 100,
|
|
20538
20569
|
SwitchingProtocols: 101,
|
|
20539
20570
|
Processing: 102,
|
|
@@ -20598,12 +20629,12 @@ const wa = {
|
|
|
20598
20629
|
NotExtended: 510,
|
|
20599
20630
|
NetworkAuthenticationRequired: 511
|
|
20600
20631
|
};
|
|
20601
|
-
Object.entries(
|
|
20602
|
-
|
|
20632
|
+
Object.entries(ka).forEach(([n, r]) => {
|
|
20633
|
+
ka[r] = n;
|
|
20603
20634
|
});
|
|
20604
20635
|
function Qc(n) {
|
|
20605
20636
|
const r = new Ct(n), e = Mc(Ct.prototype.request, r);
|
|
20606
|
-
return
|
|
20637
|
+
return x.extend(e, Ct.prototype, r, { allOwnKeys: !0 }), x.extend(e, r, null, { allOwnKeys: !0 }), e.create = function(i) {
|
|
20607
20638
|
return Qc(nn(n, i));
|
|
20608
20639
|
}, e;
|
|
20609
20640
|
}
|
|
@@ -20623,9 +20654,9 @@ V.spread = q1;
|
|
|
20623
20654
|
V.isAxiosError = V1;
|
|
20624
20655
|
V.mergeConfig = nn;
|
|
20625
20656
|
V.AxiosHeaders = Ne;
|
|
20626
|
-
V.formToJSON = (n) => Kc(
|
|
20657
|
+
V.formToJSON = (n) => Kc(x.isHTMLForm(n) ? new FormData(n) : n);
|
|
20627
20658
|
V.getAdapter = Yc.getAdapter;
|
|
20628
|
-
V.HttpStatusCode =
|
|
20659
|
+
V.HttpStatusCode = ka;
|
|
20629
20660
|
V.default = V;
|
|
20630
20661
|
class eu {
|
|
20631
20662
|
constructor({ format: r, successHandler: e, ...t } = {}) {
|
|
@@ -20701,14 +20732,14 @@ const he = (n, r) => {
|
|
|
20701
20732
|
return V.isAxiosError(n) && ((e = n == null ? void 0 : n.response) == null ? void 0 : e.status) === r;
|
|
20702
20733
|
};
|
|
20703
20734
|
var gn, vn, Wt, qt, Vt, yn;
|
|
20704
|
-
class
|
|
20705
|
-
}
|
|
20706
|
-
K(
|
|
20707
|
-
}, K(gn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(gn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(gn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), gn)), K(
|
|
20708
|
-
}, K(vn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(vn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(vn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), vn)), K(
|
|
20709
|
-
}, K(Wt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(Wt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(Wt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(Wt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), Wt)), K(
|
|
20710
|
-
}, K(qt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(qt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(qt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(qt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), qt)), K(
|
|
20711
|
-
}, K(Vt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(Vt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(Vt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(Vt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), Vt)), K(
|
|
20735
|
+
class kt {
|
|
20736
|
+
}
|
|
20737
|
+
K(kt, "ChatbotConversationsGet", (gn = class {
|
|
20738
|
+
}, K(gn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(gn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(gn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), gn)), K(kt, "ChatbotConversationsSummaryGet", (vn = class {
|
|
20739
|
+
}, K(vn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(vn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(vn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), vn)), K(kt, "ChatbotConversationsPost", (Wt = class {
|
|
20740
|
+
}, K(Wt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(Wt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(Wt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(Wt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), Wt)), K(kt, "ChatbotConversationsRatePost", (qt = class {
|
|
20741
|
+
}, K(qt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(qt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(qt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(qt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), qt)), K(kt, "ChatbotConversationsMessagesRatePost", (Vt = class {
|
|
20742
|
+
}, K(Vt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(Vt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(Vt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(Vt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), Vt)), K(kt, "ChatbotIntegrationsPost", (yn = class {
|
|
20712
20743
|
}, K(yn, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(yn, "isUnauthorizedProblemDetails", (r) => V.isAxiosError(r) && he(r, 401)), K(yn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), yn));
|
|
20713
20744
|
const qe = class qe extends eu {
|
|
20714
20745
|
constructor() {
|
|
@@ -20809,7 +20840,7 @@ K(qe, "Endpoints", {
|
|
|
20809
20840
|
chatbotConversationsMessagesRatePost: ({ id: e, messageId: t }) => `/api/chatbot/conversations/${e}/messages/${t}/rate`,
|
|
20810
20841
|
chatbotIntegrationsPost: "/api/chatbot/integrations"
|
|
20811
20842
|
}), /** ChatbotService API static errors typeguards */
|
|
20812
|
-
K(qe, "Errors",
|
|
20843
|
+
K(qe, "Errors", kt);
|
|
20813
20844
|
let zr = qe;
|
|
20814
20845
|
const G1 = /* @__PURE__ */ new WeakMap();
|
|
20815
20846
|
let sl = 0;
|
|
@@ -21012,7 +21043,7 @@ class Y1 extends zg {
|
|
|
21012
21043
|
getTranslationsMaps() {
|
|
21013
21044
|
return {
|
|
21014
21045
|
"fr-FR": async () => ({
|
|
21015
|
-
chatbot: (await import("./chatbot-
|
|
21046
|
+
chatbot: (await import("./chatbot-C-z9vrZB.js")).default
|
|
21016
21047
|
}),
|
|
21017
21048
|
"pt-PT": async () => {
|
|
21018
21049
|
throw Error("Not available yet");
|
|
@@ -21058,10 +21089,10 @@ function X1() {
|
|
|
21058
21089
|
}
|
|
21059
21090
|
var tu = (n) => {
|
|
21060
21091
|
throw TypeError(n);
|
|
21061
|
-
}, nu = (n, r, e) => r.has(n) || tu("Cannot " + e), Zi = (n, r, e) => (nu(n, r, "read from private field"), e ? e.call(n) : r.get(n)), Yi = (n, r, e) => r.has(n) ? tu("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), Xi = (n, r, e, t) => (nu(n, r, "write to private field"), r.set(n, e), e), br,
|
|
21092
|
+
}, nu = (n, r, e) => r.has(n) || tu("Cannot " + e), Zi = (n, r, e) => (nu(n, r, "read from private field"), e ? e.call(n) : r.get(n)), Yi = (n, r, e) => r.has(n) ? tu("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), Xi = (n, r, e, t) => (nu(n, r, "write to private field"), r.set(n, e), e), br, wr, kr;
|
|
21062
21093
|
class Q1 {
|
|
21063
21094
|
constructor(r, e) {
|
|
21064
|
-
Yi(this, br, X1()), Yi(this,
|
|
21095
|
+
Yi(this, br, X1()), Yi(this, wr, null), Yi(this, kr, null), this.enableSending = !0, this.host = r, this.host.addController(this), this.channel = new BroadcastChannel(e), this.registerOnMessageHandler();
|
|
21065
21096
|
}
|
|
21066
21097
|
get sourceId() {
|
|
21067
21098
|
return Zi(this, br);
|
|
@@ -21070,16 +21101,16 @@ class Q1 {
|
|
|
21070
21101
|
Xi(this, br, r);
|
|
21071
21102
|
}
|
|
21072
21103
|
get onMessage() {
|
|
21073
|
-
return Zi(this,
|
|
21104
|
+
return Zi(this, wr);
|
|
21074
21105
|
}
|
|
21075
21106
|
set onMessage(r) {
|
|
21076
|
-
Xi(this,
|
|
21107
|
+
Xi(this, wr, r);
|
|
21077
21108
|
}
|
|
21078
21109
|
get onError() {
|
|
21079
|
-
return Zi(this,
|
|
21110
|
+
return Zi(this, kr);
|
|
21080
21111
|
}
|
|
21081
21112
|
set onError(r) {
|
|
21082
|
-
Xi(this,
|
|
21113
|
+
Xi(this, kr, r);
|
|
21083
21114
|
}
|
|
21084
21115
|
registerOnMessageHandler() {
|
|
21085
21116
|
this.channel && (this.channel.onmessageerror = (r) => {
|
|
@@ -21100,19 +21131,19 @@ class Q1 {
|
|
|
21100
21131
|
}
|
|
21101
21132
|
}
|
|
21102
21133
|
br = /* @__PURE__ */ new WeakMap();
|
|
21103
|
-
kr = /* @__PURE__ */ new WeakMap();
|
|
21104
21134
|
wr = /* @__PURE__ */ new WeakMap();
|
|
21135
|
+
kr = /* @__PURE__ */ new WeakMap();
|
|
21105
21136
|
var e2 = Object.defineProperty, t2 = Object.getOwnPropertyDescriptor, ru = (n) => {
|
|
21106
21137
|
throw TypeError(n);
|
|
21107
21138
|
}, on = (n, r, e, t) => {
|
|
21108
21139
|
for (var i = t > 1 ? void 0 : t ? t2(r, e) : r, a = n.length - 1, o; a >= 0; a--)
|
|
21109
21140
|
(o = n[a]) && (i = (t ? o(r, e, i) : o(i)) || i);
|
|
21110
21141
|
return t && i && e2(r, e, i), i;
|
|
21111
|
-
}, iu = (n, r, e) => r.has(n) || ru("Cannot " + e), hn = (n, r, e) => (iu(n, r, "read from private field"), e ? e.call(n) : r.get(n)), fn = (n, r, e) => r.has(n) ? ru("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), mn = (n, r, e, t) => (iu(n, r, "write to private field"), r.set(n, e), e), Sr, _r, Cr,
|
|
21142
|
+
}, iu = (n, r, e) => r.has(n) || ru("Cannot " + e), hn = (n, r, e) => (iu(n, r, "read from private field"), e ? e.call(n) : r.get(n)), fn = (n, r, e) => r.has(n) ? ru("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), mn = (n, r, e, t) => (iu(n, r, "write to private field"), r.set(n, e), e), Sr, _r, Cr, xr, Er;
|
|
21112
21143
|
const n2 = "lr.chatbot.broadcast_channel." + document.location.hostname, Qi = "lr.chatbot.conversation_id";
|
|
21113
21144
|
let pt = class extends Te {
|
|
21114
21145
|
constructor() {
|
|
21115
|
-
super(new Y1()), fn(this, Sr, "/bff"), fn(this, _r, !1), fn(this, Cr, !1), fn(this,
|
|
21146
|
+
super(new Y1()), fn(this, Sr, "/bff"), fn(this, _r, !1), fn(this, Cr, !1), fn(this, xr, !1), fn(this, Er, !1), this._closeClickCount = 0, this._broadcastController = new Q1(
|
|
21116
21147
|
this,
|
|
21117
21148
|
n2
|
|
21118
21149
|
), this._conversationHistoryTask = this.createConversationHistoryTask(), this.registerBroadcastMessages();
|
|
@@ -21136,19 +21167,19 @@ let pt = class extends Te {
|
|
|
21136
21167
|
mn(this, Cr, n);
|
|
21137
21168
|
}
|
|
21138
21169
|
get sticky() {
|
|
21139
|
-
return hn(this,
|
|
21170
|
+
return hn(this, xr);
|
|
21140
21171
|
}
|
|
21141
21172
|
set sticky(n) {
|
|
21142
|
-
mn(this,
|
|
21173
|
+
mn(this, xr, n);
|
|
21143
21174
|
}
|
|
21144
21175
|
get exitOverlay() {
|
|
21145
|
-
return hn(this,
|
|
21176
|
+
return hn(this, Er);
|
|
21146
21177
|
}
|
|
21147
21178
|
set exitOverlay(n) {
|
|
21148
|
-
mn(this,
|
|
21179
|
+
mn(this, Er, n);
|
|
21149
21180
|
}
|
|
21150
21181
|
getVersion() {
|
|
21151
|
-
return "LR Chatbot - 0.13.
|
|
21182
|
+
return "LR Chatbot - 0.13.11";
|
|
21152
21183
|
}
|
|
21153
21184
|
async connectedCallback() {
|
|
21154
21185
|
super.connectedCallback(), await this._conversationHistoryTask.run(), await this._conversationHistoryTask.taskComplete && ((() => {
|
|
@@ -21236,8 +21267,8 @@ let pt = class extends Te {
|
|
|
21236
21267
|
setDeepChatStyle() {
|
|
21237
21268
|
if (!this.deepChat)
|
|
21238
21269
|
throw Error("Deep Chat should be initialized at this point");
|
|
21239
|
-
this.deepChat.avatars =
|
|
21240
|
-
...
|
|
21270
|
+
this.deepChat.avatars = wt.avatars, this.deepChat.chatStyle = wt.chatStyle, this.deepChat.messageStyles = wt.messageStyles, this.deepChat.textInput = wt.textInput, this.deepChat.submitButtonStyles = wt.submitButtonStyles, this.deepChat.inputAreaStyle = wt.inputAreaStyle, this.deepChat.htmlClassUtilities = {
|
|
21271
|
+
...wt.htmlClassUtilities,
|
|
21241
21272
|
suggestion: {
|
|
21242
21273
|
events: {
|
|
21243
21274
|
click: (n) => {
|
|
@@ -21246,7 +21277,7 @@ let pt = class extends Te {
|
|
|
21246
21277
|
}
|
|
21247
21278
|
}
|
|
21248
21279
|
}
|
|
21249
|
-
};
|
|
21280
|
+
}, this.deepChat.auxiliaryStyle = "#messages{height: calc(100dvh - 6rem); display: flex; flex-direction: column; @media (min-width: 768px){height: 60dvh}} .outer-message-container:last-child{margin-bottom: 1rem} .outer-message-container:nth-child(2){margin-block-start: auto !important}";
|
|
21250
21281
|
}
|
|
21251
21282
|
setChatConnection() {
|
|
21252
21283
|
if (!this.deepChat)
|
|
@@ -21479,8 +21510,8 @@ let pt = class extends Te {
|
|
|
21479
21510
|
Sr = /* @__PURE__ */ new WeakMap();
|
|
21480
21511
|
_r = /* @__PURE__ */ new WeakMap();
|
|
21481
21512
|
Cr = /* @__PURE__ */ new WeakMap();
|
|
21482
|
-
Er = /* @__PURE__ */ new WeakMap();
|
|
21483
21513
|
xr = /* @__PURE__ */ new WeakMap();
|
|
21514
|
+
Er = /* @__PURE__ */ new WeakMap();
|
|
21484
21515
|
pt.styles = [Te.styles, Iv];
|
|
21485
21516
|
on([
|
|
21486
21517
|
ce({ type: String })
|