deep-chat-dev 9.0.183 → 9.0.185
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/custom-elements.json +5046 -5083
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.js +254 -268
- package/dist/types/html.d.ts +1 -1
- package/dist/types/html.d.ts.map +1 -1
- package/dist/views/chat/messages/messagesBase.d.ts.map +1 -1
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/views/chat/messages/remarkable/remarkableUtils.d.ts +0 -4
- package/dist/views/chat/messages/remarkable/remarkableUtils.d.ts.map +0 -1
package/dist/deepChat.js
CHANGED
|
@@ -2874,7 +2874,7 @@ var Rt = /*#__PURE__*/function () {
|
|
|
2874
2874
|
// Enable HTML tags in source
|
|
2875
2875
|
xhtmlOut: !1,
|
|
2876
2876
|
// Use '/' to close single tags (<br />)
|
|
2877
|
-
breaks: !
|
|
2877
|
+
breaks: !0,
|
|
2878
2878
|
// Convert '\n' in paragraphs into <br>
|
|
2879
2879
|
langPrefix: "language-",
|
|
2880
2880
|
// CSS language prefix for fenced blocks
|
|
@@ -2883,8 +2883,9 @@ var Rt = /*#__PURE__*/function () {
|
|
|
2883
2883
|
typographer: !0
|
|
2884
2884
|
// Enable smartypants and other sweet transforms
|
|
2885
2885
|
}) : new Ce({
|
|
2886
|
-
linkTarget: "_blank"
|
|
2886
|
+
linkTarget: "_blank",
|
|
2887
2887
|
// set target to open in a new tab
|
|
2888
|
+
breaks: !0
|
|
2888
2889
|
});
|
|
2889
2890
|
}
|
|
2890
2891
|
}, {
|
|
@@ -2897,20 +2898,6 @@ var Rt = /*#__PURE__*/function () {
|
|
|
2897
2898
|
}
|
|
2898
2899
|
}]);
|
|
2899
2900
|
}();
|
|
2900
|
-
var no = /*#__PURE__*/function () {
|
|
2901
|
-
function no() {
|
|
2902
|
-
_classCallCheck(this, no);
|
|
2903
|
-
}
|
|
2904
|
-
return _createClass(no, null, [{
|
|
2905
|
-
key: "replaceNewlineWithDouble",
|
|
2906
|
-
value:
|
|
2907
|
-
// this is to allow remarkable to render \n as a new line:
|
|
2908
|
-
// it operates by replacing \n with \n\n
|
|
2909
|
-
function replaceNewlineWithDouble(e) {
|
|
2910
|
-
return e.replace(new RegExp("(?<!\\n)\\n(?!\\n)", "g"), "\n\n");
|
|
2911
|
-
}
|
|
2912
|
-
}]);
|
|
2913
|
-
}();
|
|
2914
2901
|
var Ee = /*#__PURE__*/function () {
|
|
2915
2902
|
function Ee() {
|
|
2916
2903
|
_classCallCheck(this, Ee);
|
|
@@ -3183,8 +3170,7 @@ var lt = /*#__PURE__*/function () {
|
|
|
3183
3170
|
}, {
|
|
3184
3171
|
key: "renderText",
|
|
3185
3172
|
value: function renderText(e, t) {
|
|
3186
|
-
|
|
3187
|
-
e.innerHTML = this._remarkable.render(i), e.innerText.trim().length === 0 && (e.innerText = i);
|
|
3173
|
+
e.innerHTML = this._remarkable.render(t), e.innerText.trim().length === 0 && (e.innerText = t);
|
|
3188
3174
|
}
|
|
3189
3175
|
// this is mostly used for enabling highlight.js to highlight code if it downloads later
|
|
3190
3176
|
}, {
|
|
@@ -3465,11 +3451,11 @@ var He = /*#__PURE__*/function () {
|
|
|
3465
3451
|
}();
|
|
3466
3452
|
He.CONTENT_TYPE = "Content-Type";
|
|
3467
3453
|
var v = He;
|
|
3468
|
-
function
|
|
3469
|
-
return
|
|
3454
|
+
function no(_x12, _x13) {
|
|
3455
|
+
return _no.apply(this, arguments);
|
|
3470
3456
|
}
|
|
3471
|
-
function
|
|
3472
|
-
|
|
3457
|
+
function _no() {
|
|
3458
|
+
_no = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee122(s, e) {
|
|
3473
3459
|
var t, i;
|
|
3474
3460
|
return _regeneratorRuntime().wrap(function _callee122$(_context122) {
|
|
3475
3461
|
while (1) switch (_context122.prev = _context122.next) {
|
|
@@ -3493,15 +3479,15 @@ function _so() {
|
|
|
3493
3479
|
}
|
|
3494
3480
|
}, _callee122);
|
|
3495
3481
|
}));
|
|
3496
|
-
return
|
|
3482
|
+
return _no.apply(this, arguments);
|
|
3497
3483
|
}
|
|
3498
|
-
function
|
|
3484
|
+
function so(s) {
|
|
3499
3485
|
var e,
|
|
3500
3486
|
t,
|
|
3501
3487
|
i,
|
|
3502
3488
|
n = !1;
|
|
3503
3489
|
return function (o) {
|
|
3504
|
-
e === void 0 ? (e = o, t = 0, i = -1) : e =
|
|
3490
|
+
e === void 0 ? (e = o, t = 0, i = -1) : e = oo(e, o);
|
|
3505
3491
|
var a = e.length;
|
|
3506
3492
|
var l = 0;
|
|
3507
3493
|
for (; t < a;) {
|
|
@@ -3523,7 +3509,7 @@ function ro(s) {
|
|
|
3523
3509
|
l === a ? e = void 0 : l !== 0 && (e = e.subarray(l), t -= l);
|
|
3524
3510
|
};
|
|
3525
3511
|
}
|
|
3526
|
-
function
|
|
3512
|
+
function ro(s, e, t) {
|
|
3527
3513
|
var i = Pn();
|
|
3528
3514
|
var n = new TextDecoder();
|
|
3529
3515
|
return function (o, a) {
|
|
@@ -3549,7 +3535,7 @@ function oo(s, e, t) {
|
|
|
3549
3535
|
}
|
|
3550
3536
|
};
|
|
3551
3537
|
}
|
|
3552
|
-
function
|
|
3538
|
+
function oo(s, e) {
|
|
3553
3539
|
var t = new Uint8Array(s.length + e.length);
|
|
3554
3540
|
return t.set(s), t.set(e, s.length), t;
|
|
3555
3541
|
}
|
|
@@ -3561,16 +3547,16 @@ function Pn() {
|
|
|
3561
3547
|
retry: void 0
|
|
3562
3548
|
};
|
|
3563
3549
|
}
|
|
3564
|
-
var
|
|
3550
|
+
var ao = function ao(s, e) {
|
|
3565
3551
|
var t = {};
|
|
3566
3552
|
for (var i in s) Object.prototype.hasOwnProperty.call(s, i) && e.indexOf(i) < 0 && (t[i] = s[i]);
|
|
3567
3553
|
if (s != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, i = Object.getOwnPropertySymbols(s); n < i.length; n++) e.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(s, i[n]) && (t[i[n]] = s[i[n]]);
|
|
3568
3554
|
return t;
|
|
3569
3555
|
};
|
|
3570
3556
|
var Xi = "text/event-stream",
|
|
3571
|
-
|
|
3557
|
+
lo = 1e3,
|
|
3572
3558
|
On = "last-event-id";
|
|
3573
|
-
function
|
|
3559
|
+
function co(s, e) {
|
|
3574
3560
|
var t = e.signal,
|
|
3575
3561
|
i = e.headers,
|
|
3576
3562
|
n = e.onopen,
|
|
@@ -3579,7 +3565,7 @@ function ho(s, e) {
|
|
|
3579
3565
|
a = e.onerror,
|
|
3580
3566
|
l = e.openWhenHidden,
|
|
3581
3567
|
c = e.fetch,
|
|
3582
|
-
d =
|
|
3568
|
+
d = ao(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
|
3583
3569
|
return new Promise(function (h, u) {
|
|
3584
3570
|
var f = Object.assign({}, i);
|
|
3585
3571
|
f.accept || (f.accept = Xi);
|
|
@@ -3588,7 +3574,7 @@ function ho(s, e) {
|
|
|
3588
3574
|
m.abort(), document.hidden || R();
|
|
3589
3575
|
}
|
|
3590
3576
|
l || document.addEventListener("visibilitychange", p);
|
|
3591
|
-
var y =
|
|
3577
|
+
var y = lo,
|
|
3592
3578
|
E = 0;
|
|
3593
3579
|
function j() {
|
|
3594
3580
|
document.removeEventListener("visibilitychange", p), window.clearTimeout(E), m.abort();
|
|
@@ -3597,7 +3583,7 @@ function ho(s, e) {
|
|
|
3597
3583
|
j(), h();
|
|
3598
3584
|
});
|
|
3599
3585
|
var V = c !== null && c !== void 0 ? c : window.fetch,
|
|
3600
|
-
Ae = n !== null && n !== void 0 ? n :
|
|
3586
|
+
Ae = n !== null && n !== void 0 ? n : ho;
|
|
3601
3587
|
function R() {
|
|
3602
3588
|
return _R.apply(this, arguments);
|
|
3603
3589
|
}
|
|
@@ -3620,7 +3606,7 @@ function ho(s, e) {
|
|
|
3620
3606
|
return Ae(Z);
|
|
3621
3607
|
case 7:
|
|
3622
3608
|
_context4.next = 9;
|
|
3623
|
-
return
|
|
3609
|
+
return no(Z.body, so(ro(function (D) {
|
|
3624
3610
|
D ? f[On] = D : delete f[On];
|
|
3625
3611
|
}, function (D) {
|
|
3626
3612
|
y = D;
|
|
@@ -3651,7 +3637,7 @@ function ho(s, e) {
|
|
|
3651
3637
|
R();
|
|
3652
3638
|
});
|
|
3653
3639
|
}
|
|
3654
|
-
function
|
|
3640
|
+
function ho(s) {
|
|
3655
3641
|
var e = s.headers.get("content-type");
|
|
3656
3642
|
if (!(e != null && e.startsWith(Xi))) throw new Error("Expected content-type to be ".concat(Xi, ", Actual: ").concat(e));
|
|
3657
3643
|
}
|
|
@@ -3723,7 +3709,7 @@ var C = /*#__PURE__*/function () {
|
|
|
3723
3709
|
return _context7.abrupt("return", ge.requestStream(i, e.streamHandlers));
|
|
3724
3710
|
case 19:
|
|
3725
3711
|
f = new me(i), m = v.fetch.bind(this, e, l, n);
|
|
3726
|
-
return _context7.abrupt("return", (
|
|
3712
|
+
return _context7.abrupt("return", (co(((j = e.connectSettings) == null ? void 0 : j.url) || e.url || "", {
|
|
3727
3713
|
method: ((V = e.connectSettings) == null ? void 0 : V.method) || "POST",
|
|
3728
3714
|
headers: l,
|
|
3729
3715
|
credentials: (Ae = e.connectSettings) == null ? void 0 : Ae.credentials,
|
|
@@ -5086,8 +5072,8 @@ var xe = /*#__PURE__*/function (_HTMLElement) {
|
|
|
5086
5072
|
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
5087
5073
|
xe._attributes_ = {}, xe._attributeToProperty_ = {};
|
|
5088
5074
|
var Zi = xe;
|
|
5089
|
-
var
|
|
5090
|
-
|
|
5075
|
+
var uo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path d=\"\n\t\t\tM669.727,273.516c-22.891-2.476-46.15-3.895-69.727-4.248c-103.025,0.457-209.823,25.517-310.913,73.536\n\t\t\tc-75.058,37.122-148.173,89.529-211.67,154.174C46.232,529.978,6.431,577.76,0,628.74c0.76,44.162,48.153,98.67,77.417,131.764\n\t\t\tc59.543,62.106,130.754,113.013,211.67,154.174c2.75,1.335,5.51,2.654,8.276,3.955l-75.072,131.102l102.005,60.286l551.416-960.033\n\t\t\tl-98.186-60.008L669.727,273.516z M902.563,338.995l-74.927,129.857c34.47,44.782,54.932,100.006,54.932,159.888\n\t\t\tc0,149.257-126.522,270.264-282.642,270.264c-6.749,0-13.29-0.728-19.922-1.172l-49.585,85.84c22.868,2.449,45.99,4.233,69.58,4.541\n\t\t\tc103.123-0.463,209.861-25.812,310.84-73.535c75.058-37.122,148.246-89.529,211.743-154.174\n\t\t\tc31.186-32.999,70.985-80.782,77.417-131.764c-0.76-44.161-48.153-98.669-77.417-131.763\n\t\t\tc-59.543-62.106-130.827-113.013-211.743-154.175C908.108,341.478,905.312,340.287,902.563,338.995L902.563,338.995z\n\t\t\tM599.927,358.478c6.846,0,13.638,0.274,20.361,0.732l-58.081,100.561c-81.514,16.526-142.676,85.88-142.676,168.897\n\t\t\tc0,20.854,3.841,40.819,10.913,59.325c0.008,0.021-0.008,0.053,0,0.074l-58.228,100.854\n\t\t\tc-34.551-44.823-54.932-100.229-54.932-160.182C317.285,479.484,443.808,358.477,599.927,358.478L599.927,358.478z M768.896,570.513\n\t\t\tL638.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\"\n\t\t\t/>\n</svg>\n",
|
|
5076
|
+
fo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path id=\"path6686\" inkscape:connector-curvature=\"0\" d=\"M779.843,599.925c0,95.331-80.664,172.612-180.169,172.612\n\t\t\tc-99.504,0-180.168-77.281-180.168-172.612c0-95.332,80.664-172.612,180.168-172.612\n\t\t\tC699.179,427.312,779.843,504.594,779.843,599.925z M600,240.521c-103.025,0.457-209.814,25.538-310.904,73.557\n\t\t\tc-75.058,37.122-148.206,89.496-211.702,154.141C46.208,501.218,6.431,549,0,599.981c0.76,44.161,48.13,98.669,77.394,131.763\n\t\t\tc59.543,62.106,130.786,113.018,211.702,154.179c94.271,45.751,198.616,72.092,310.904,73.557\n\t\t\tc103.123-0.464,209.888-25.834,310.866-73.557c75.058-37.122,148.243-89.534,211.74-154.179\n\t\t\tc31.185-32.999,70.962-80.782,77.394-131.763c-0.76-44.161-48.13-98.671-77.394-131.764\n\t\t\tc-59.543-62.106-130.824-112.979-211.74-154.141C816.644,268.36,712.042,242.2,600,240.521z M599.924,329.769\n\t\t\tc156.119,0,282.675,120.994,282.675,270.251c0,149.256-126.556,270.25-282.675,270.25S317.249,749.275,317.249,600.02\n\t\t\tC317.249,450.763,443.805,329.769,599.924,329.769L599.924,329.769z\"/>\n</svg>\n";
|
|
5091
5077
|
var te = /*#__PURE__*/function () {
|
|
5092
5078
|
function te() {
|
|
5093
5079
|
_classCallCheck(this, te);
|
|
@@ -5122,9 +5108,9 @@ var Le = /*#__PURE__*/function () {
|
|
|
5122
5108
|
value: function create(e) {
|
|
5123
5109
|
var t = document.createElement("div");
|
|
5124
5110
|
t.id = "visibility-icon-container";
|
|
5125
|
-
var i = Le.createIconElement(
|
|
5111
|
+
var i = Le.createIconElement(fo, Le.VISIBLE_ICON_ID);
|
|
5126
5112
|
i.style.display = "none", t.appendChild(i);
|
|
5127
|
-
var n = Le.createIconElement(
|
|
5113
|
+
var n = Le.createIconElement(uo, "not-visible-icon");
|
|
5128
5114
|
return t.appendChild(n), t.onclick = Le.changeVisibility.bind(this, e, i, n), t;
|
|
5129
5115
|
}
|
|
5130
5116
|
}]);
|
|
@@ -6120,19 +6106,19 @@ var Ft = /*#__PURE__*/function (_ke) {
|
|
|
6120
6106
|
}
|
|
6121
6107
|
}]);
|
|
6122
6108
|
}(ke);
|
|
6123
|
-
var
|
|
6109
|
+
var po = /*#__PURE__*/function (_Ft) {
|
|
6124
6110
|
// prettier-ignore
|
|
6125
|
-
function
|
|
6126
|
-
_classCallCheck(this,
|
|
6111
|
+
function po(e) {
|
|
6112
|
+
_classCallCheck(this, po);
|
|
6127
6113
|
var n, r, o;
|
|
6128
6114
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.audioClassification,
|
|
6129
6115
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6130
|
-
return _callSuper(this,
|
|
6116
|
+
return _callSuper(this, po, [e, "Attach an audio file", "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", t, i, {
|
|
6131
6117
|
audio: {}
|
|
6132
6118
|
}]);
|
|
6133
6119
|
}
|
|
6134
|
-
_inherits(
|
|
6135
|
-
return _createClass(
|
|
6120
|
+
_inherits(po, _Ft);
|
|
6121
|
+
return _createClass(po, [{
|
|
6136
6122
|
key: "extractPollResultData",
|
|
6137
6123
|
value: function () {
|
|
6138
6124
|
var _extractPollResultData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(e) {
|
|
@@ -6170,18 +6156,18 @@ var mo = /*#__PURE__*/function (_Ft) {
|
|
|
6170
6156
|
}()
|
|
6171
6157
|
}]);
|
|
6172
6158
|
}(Ft);
|
|
6173
|
-
var
|
|
6174
|
-
function
|
|
6175
|
-
_classCallCheck(this,
|
|
6159
|
+
var mo = /*#__PURE__*/function (_Ft2) {
|
|
6160
|
+
function mo(e) {
|
|
6161
|
+
_classCallCheck(this, mo);
|
|
6176
6162
|
var n, r, o;
|
|
6177
6163
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.imageClassification,
|
|
6178
6164
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6179
|
-
return _callSuper(this,
|
|
6165
|
+
return _callSuper(this, mo, [e, "Attach an image file", "google/vit-base-patch16-224", t, i, {
|
|
6180
6166
|
images: {}
|
|
6181
6167
|
}]);
|
|
6182
6168
|
}
|
|
6183
|
-
_inherits(
|
|
6184
|
-
return _createClass(
|
|
6169
|
+
_inherits(mo, _Ft2);
|
|
6170
|
+
return _createClass(mo, [{
|
|
6185
6171
|
key: "extractPollResultData",
|
|
6186
6172
|
value: function () {
|
|
6187
6173
|
var _extractPollResultData2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(e) {
|
|
@@ -6474,18 +6460,18 @@ var ri = /*#__PURE__*/function (_Si2) {
|
|
|
6474
6460
|
}
|
|
6475
6461
|
}]);
|
|
6476
6462
|
}(Si);
|
|
6477
|
-
var
|
|
6478
|
-
function
|
|
6479
|
-
_classCallCheck(this,
|
|
6463
|
+
var go = /*#__PURE__*/function (_Ft3) {
|
|
6464
|
+
function go(e) {
|
|
6465
|
+
_classCallCheck(this, go);
|
|
6480
6466
|
var n, r, o;
|
|
6481
6467
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.audioSpeechRecognition,
|
|
6482
6468
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6483
|
-
return _callSuper(this,
|
|
6469
|
+
return _callSuper(this, go, [e, "Attach an audio file", "facebook/wav2vec2-large-960h-lv60-self", t, i, {
|
|
6484
6470
|
audio: {}
|
|
6485
6471
|
}]);
|
|
6486
6472
|
}
|
|
6487
|
-
_inherits(
|
|
6488
|
-
return _createClass(
|
|
6473
|
+
_inherits(go, _Ft3);
|
|
6474
|
+
return _createClass(go, [{
|
|
6489
6475
|
key: "extractPollResultData",
|
|
6490
6476
|
value: function () {
|
|
6491
6477
|
var _extractPollResultData3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(e) {
|
|
@@ -6522,16 +6508,16 @@ var bo = /*#__PURE__*/function (_Ft3) {
|
|
|
6522
6508
|
}()
|
|
6523
6509
|
}]);
|
|
6524
6510
|
}(Ft);
|
|
6525
|
-
var
|
|
6526
|
-
function
|
|
6527
|
-
_classCallCheck(this,
|
|
6511
|
+
var bo = /*#__PURE__*/function (_ke2) {
|
|
6512
|
+
function bo(e) {
|
|
6513
|
+
_classCallCheck(this, bo);
|
|
6528
6514
|
var n, r, o;
|
|
6529
6515
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.textGeneration,
|
|
6530
6516
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6531
|
-
return _callSuper(this,
|
|
6517
|
+
return _callSuper(this, bo, [e, "Once upon a time", "gpt2", t, i]);
|
|
6532
6518
|
}
|
|
6533
|
-
_inherits(
|
|
6534
|
-
return _createClass(
|
|
6519
|
+
_inherits(bo, _ke2);
|
|
6520
|
+
return _createClass(bo, [{
|
|
6535
6521
|
key: "extractResultData",
|
|
6536
6522
|
value: function () {
|
|
6537
6523
|
var _extractResultData4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(e) {
|
|
@@ -6561,18 +6547,18 @@ var vo = /*#__PURE__*/function (_ke2) {
|
|
|
6561
6547
|
}()
|
|
6562
6548
|
}]);
|
|
6563
6549
|
}(ke);
|
|
6564
|
-
var
|
|
6565
|
-
function
|
|
6550
|
+
var vo = /*#__PURE__*/function (_ke3) {
|
|
6551
|
+
function vo(e) {
|
|
6566
6552
|
var _this21;
|
|
6567
|
-
_classCallCheck(this,
|
|
6553
|
+
_classCallCheck(this, vo);
|
|
6568
6554
|
var n, r, o;
|
|
6569
6555
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.questionAnswer,
|
|
6570
6556
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6571
|
-
_this21 = _callSuper(this,
|
|
6557
|
+
_this21 = _callSuper(this, vo, [e, "Ask a question", "bert-large-uncased-whole-word-masking-finetuned-squad", t, i]), _this21.permittedErrorPrefixes = ["Authorization header", "Error in"], _this21.context = t.context;
|
|
6572
6558
|
return _this21;
|
|
6573
6559
|
}
|
|
6574
|
-
_inherits(
|
|
6575
|
-
return _createClass(
|
|
6560
|
+
_inherits(vo, _ke3);
|
|
6561
|
+
return _createClass(vo, [{
|
|
6576
6562
|
key: "preprocessBody",
|
|
6577
6563
|
value: function preprocessBody(e, t) {
|
|
6578
6564
|
var i = t[t.length - 1].text;
|
|
@@ -6615,16 +6601,16 @@ var yo = /*#__PURE__*/function (_ke3) {
|
|
|
6615
6601
|
}()
|
|
6616
6602
|
}]);
|
|
6617
6603
|
}(ke);
|
|
6618
|
-
var
|
|
6619
|
-
function
|
|
6620
|
-
_classCallCheck(this,
|
|
6604
|
+
var yo = /*#__PURE__*/function (_ke4) {
|
|
6605
|
+
function yo(e) {
|
|
6606
|
+
_classCallCheck(this, yo);
|
|
6621
6607
|
var n, r, o;
|
|
6622
6608
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.summarization,
|
|
6623
6609
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6624
|
-
return _callSuper(this,
|
|
6610
|
+
return _callSuper(this, yo, [e, "Insert text to summarize", "facebook/bart-large-cnn", t, i]);
|
|
6625
6611
|
}
|
|
6626
|
-
_inherits(
|
|
6627
|
-
return _createClass(
|
|
6612
|
+
_inherits(yo, _ke4);
|
|
6613
|
+
return _createClass(yo, [{
|
|
6628
6614
|
key: "extractResultData",
|
|
6629
6615
|
value: function () {
|
|
6630
6616
|
var _extractResultData6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(e) {
|
|
@@ -6654,20 +6640,20 @@ var Eo = /*#__PURE__*/function (_ke4) {
|
|
|
6654
6640
|
}()
|
|
6655
6641
|
}]);
|
|
6656
6642
|
}(ke);
|
|
6657
|
-
var
|
|
6658
|
-
function
|
|
6643
|
+
var Eo = /*#__PURE__*/function (_ke5) {
|
|
6644
|
+
function Eo(e) {
|
|
6659
6645
|
var _this22$maxMessages;
|
|
6660
6646
|
var _this22;
|
|
6661
|
-
_classCallCheck(this,
|
|
6647
|
+
_classCallCheck(this, Eo);
|
|
6662
6648
|
var n, r, o;
|
|
6663
6649
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.conversation,
|
|
6664
6650
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6665
|
-
_this22 = _callSuper(this,
|
|
6651
|
+
_this22 = _callSuper(this, Eo, [e, "Ask me anything!", "facebook/blenderbot-400M-distill", t, i]), (_this22$maxMessages = _this22.maxMessages) !== null && _this22$maxMessages !== void 0 ? _this22$maxMessages : _this22.maxMessages = -1;
|
|
6666
6652
|
return _this22;
|
|
6667
6653
|
}
|
|
6668
6654
|
// prettier-ignore
|
|
6669
|
-
_inherits(
|
|
6670
|
-
return _createClass(
|
|
6655
|
+
_inherits(Eo, _ke5);
|
|
6656
|
+
return _createClass(Eo, [{
|
|
6671
6657
|
key: "processMessages",
|
|
6672
6658
|
value: function processMessages(e) {
|
|
6673
6659
|
var t = e.filter(function (a) {
|
|
@@ -6843,16 +6829,16 @@ var oi = /*#__PURE__*/function (_Si3) {
|
|
|
6843
6829
|
}
|
|
6844
6830
|
}]);
|
|
6845
6831
|
}(Si);
|
|
6846
|
-
var
|
|
6847
|
-
function
|
|
6848
|
-
_classCallCheck(this,
|
|
6832
|
+
var xo = /*#__PURE__*/function (_ke6) {
|
|
6833
|
+
function xo(e) {
|
|
6834
|
+
_classCallCheck(this, xo);
|
|
6849
6835
|
var n, r, o;
|
|
6850
6836
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.translation,
|
|
6851
6837
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6852
|
-
return _callSuper(this,
|
|
6838
|
+
return _callSuper(this, xo, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", t, i]);
|
|
6853
6839
|
}
|
|
6854
|
-
_inherits(
|
|
6855
|
-
return _createClass(
|
|
6840
|
+
_inherits(xo, _ke6);
|
|
6841
|
+
return _createClass(xo, [{
|
|
6856
6842
|
key: "extractResultData",
|
|
6857
6843
|
value: function () {
|
|
6858
6844
|
var _extractResultData9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(e) {
|
|
@@ -6975,18 +6961,18 @@ var ai = /*#__PURE__*/function (_Si4) {
|
|
|
6975
6961
|
}
|
|
6976
6962
|
}]);
|
|
6977
6963
|
}(Si);
|
|
6978
|
-
var
|
|
6979
|
-
function
|
|
6964
|
+
var _o = /*#__PURE__*/function (_ke7) {
|
|
6965
|
+
function _o(e) {
|
|
6980
6966
|
var _this25;
|
|
6981
|
-
_classCallCheck(this,
|
|
6967
|
+
_classCallCheck(this, _o);
|
|
6982
6968
|
var n, r, o;
|
|
6983
6969
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.fillMask,
|
|
6984
6970
|
i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
|
|
6985
|
-
_this25 = _callSuper(this,
|
|
6971
|
+
_this25 = _callSuper(this, _o, [e, "The goal of life is [MASK].", "bert-base-uncased", t, i]), _this25.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Hugging Face</b></div>\n <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>\n <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>", _this25.permittedErrorPrefixes = ["Authorization header", "No mask_token"];
|
|
6986
6972
|
return _this25;
|
|
6987
6973
|
}
|
|
6988
|
-
_inherits(
|
|
6989
|
-
return _createClass(
|
|
6974
|
+
_inherits(_o, _ke7);
|
|
6975
|
+
return _createClass(_o, [{
|
|
6990
6976
|
key: "extractResultData",
|
|
6991
6977
|
value: function () {
|
|
6992
6978
|
var _extractResultData11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(e) {
|
|
@@ -7060,16 +7046,16 @@ var fn = /*#__PURE__*/function (_z3) {
|
|
|
7060
7046
|
_inherits(fn, _z3);
|
|
7061
7047
|
return _createClass(fn);
|
|
7062
7048
|
}(z);
|
|
7063
|
-
var
|
|
7064
|
-
function
|
|
7065
|
-
_classCallCheck(this,
|
|
7049
|
+
var So = /*#__PURE__*/function (_fn) {
|
|
7050
|
+
function So(e) {
|
|
7051
|
+
_classCallCheck(this, So);
|
|
7066
7052
|
var n, r, o;
|
|
7067
7053
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.cohere) == null ? void 0 : r.textGeneration,
|
|
7068
7054
|
i = (o = e.directConnection) == null ? void 0 : o.cohere;
|
|
7069
|
-
return _callSuper(this,
|
|
7055
|
+
return _callSuper(this, So, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", t, i]);
|
|
7070
7056
|
}
|
|
7071
|
-
_inherits(
|
|
7072
|
-
return _createClass(
|
|
7057
|
+
_inherits(So, _fn);
|
|
7058
|
+
return _createClass(So, [{
|
|
7073
7059
|
key: "preprocessBody",
|
|
7074
7060
|
value: function preprocessBody(e, t) {
|
|
7075
7061
|
var i = JSON.parse(JSON.stringify(e)),
|
|
@@ -7135,16 +7121,16 @@ var wo = /*#__PURE__*/function (_fn) {
|
|
|
7135
7121
|
}()
|
|
7136
7122
|
}]);
|
|
7137
7123
|
}(fn);
|
|
7138
|
-
var
|
|
7139
|
-
function
|
|
7140
|
-
_classCallCheck(this,
|
|
7124
|
+
var wo = /*#__PURE__*/function (_fn2) {
|
|
7125
|
+
function wo(e) {
|
|
7126
|
+
_classCallCheck(this, wo);
|
|
7141
7127
|
var n, r, o;
|
|
7142
7128
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.cohere) == null ? void 0 : r.summarization,
|
|
7143
7129
|
i = (o = e.directConnection) == null ? void 0 : o.cohere;
|
|
7144
|
-
return _callSuper(this,
|
|
7130
|
+
return _callSuper(this, wo, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", t, i]);
|
|
7145
7131
|
}
|
|
7146
|
-
_inherits(
|
|
7147
|
-
return _createClass(
|
|
7132
|
+
_inherits(wo, _fn2);
|
|
7133
|
+
return _createClass(wo, [{
|
|
7148
7134
|
key: "preprocessBody",
|
|
7149
7135
|
value: function preprocessBody(e, t) {
|
|
7150
7136
|
var i = JSON.parse(JSON.stringify(e)),
|
|
@@ -7587,32 +7573,32 @@ var oe = /*#__PURE__*/function () {
|
|
|
7587
7573
|
}
|
|
7588
7574
|
}]);
|
|
7589
7575
|
}();
|
|
7590
|
-
var
|
|
7576
|
+
var To = /*#__PURE__*/function (_z6) {
|
|
7591
7577
|
// prettier-ignore
|
|
7592
|
-
function
|
|
7578
|
+
function To(e, t, i, n, r) {
|
|
7593
7579
|
var _this29;
|
|
7594
|
-
_classCallCheck(this,
|
|
7595
|
-
_this29 = _callSuper(this,
|
|
7580
|
+
_classCallCheck(this, To);
|
|
7581
|
+
_this29 = _callSuper(this, To, [e, oe.buildLanguageKeyVerificationDetails(i), t, n, r]), _this29.insertKeyPlaceholderText = "Azure Language Subscription Key", _this29.keyHelpUrl =
|
|
7596
7582
|
// eslint-disable-next-line max-len
|
|
7597
7583
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", _this29.permittedErrorPrefixes = ["Access"];
|
|
7598
7584
|
return _this29;
|
|
7599
7585
|
}
|
|
7600
|
-
_inherits(
|
|
7601
|
-
return _createClass(
|
|
7586
|
+
_inherits(To, _z6);
|
|
7587
|
+
return _createClass(To);
|
|
7602
7588
|
}(z);
|
|
7603
|
-
var
|
|
7604
|
-
function
|
|
7589
|
+
var Co = /*#__PURE__*/function (_To) {
|
|
7590
|
+
function Co(e) {
|
|
7605
7591
|
var _a$language;
|
|
7606
7592
|
var _this30;
|
|
7607
|
-
_classCallCheck(this,
|
|
7593
|
+
_classCallCheck(this, Co);
|
|
7608
7594
|
var n, r, o, a;
|
|
7609
7595
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.azure) == null ? void 0 : r.summarization,
|
|
7610
7596
|
i = (o = e.directConnection) == null ? void 0 : o.azure;
|
|
7611
|
-
_this30 = _callSuper(this,
|
|
7597
|
+
_this30 = _callSuper(this, Co, [e, oe.buildSummarizationHeader, t.endpoint, i]), _this30.url = "", _this30.textInputPlaceholderText = "Insert text to summarize", (_a$language = (a = _this30.rawBody).language) !== null && _a$language !== void 0 ? _a$language : a.language = "en", Object.assign(_this30.rawBody, t), _this30.url = "".concat(t.endpoint, "/language/analyze-text/jobs?api-version=2022-10-01-preview");
|
|
7612
7598
|
return _this30;
|
|
7613
7599
|
}
|
|
7614
|
-
_inherits(
|
|
7615
|
-
return _createClass(
|
|
7600
|
+
_inherits(Co, _To);
|
|
7601
|
+
return _createClass(Co, [{
|
|
7616
7602
|
key: "preprocessBody",
|
|
7617
7603
|
value: function preprocessBody(e, t) {
|
|
7618
7604
|
var i = t[t.length - 1].text;
|
|
@@ -7752,7 +7738,7 @@ var ko = /*#__PURE__*/function (_Co) {
|
|
|
7752
7738
|
return extractPollResultData;
|
|
7753
7739
|
}()
|
|
7754
7740
|
}]);
|
|
7755
|
-
}(
|
|
7741
|
+
}(To);
|
|
7756
7742
|
var Et = /*#__PURE__*/function () {
|
|
7757
7743
|
function Et() {
|
|
7758
7744
|
_classCallCheck(this, Et);
|
|
@@ -8126,21 +8112,21 @@ Ct.HELP_LINK =
|
|
|
8126
8112
|
// eslint-disable-next-line max-len
|
|
8127
8113
|
"https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest";
|
|
8128
8114
|
var nn = Ct;
|
|
8129
|
-
var
|
|
8115
|
+
var ko = /*#__PURE__*/function (_z9) {
|
|
8130
8116
|
// prettier-ignore
|
|
8131
|
-
function
|
|
8117
|
+
function ko(e) {
|
|
8132
8118
|
var _this35;
|
|
8133
|
-
_classCallCheck(this,
|
|
8119
|
+
_classCallCheck(this, ko);
|
|
8134
8120
|
var n, r, o;
|
|
8135
8121
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.azure) == null ? void 0 : r.translation,
|
|
8136
8122
|
i = (o = e.directConnection) == null ? void 0 : o.azure;
|
|
8137
|
-
_this35 = _callSuper(this,
|
|
8123
|
+
_this35 = _callSuper(this, ko, [e, oe.buildTranslationKeyVerificationDetails(t.region), oe.buildTranslationHeaders.bind({}, t == null ? void 0 : t.region), i]), _this35.insertKeyPlaceholderText = "Azure Translate Subscription Key", _this35.keyHelpUrl =
|
|
8138
8124
|
// eslint-disable-next-line max-len
|
|
8139
8125
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", _this35.url = "", _this35.url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(t.language || "es");
|
|
8140
8126
|
return _this35;
|
|
8141
8127
|
}
|
|
8142
|
-
_inherits(
|
|
8143
|
-
return _createClass(
|
|
8128
|
+
_inherits(ko, _z9);
|
|
8129
|
+
return _createClass(ko, [{
|
|
8144
8130
|
key: "preprocessBody",
|
|
8145
8131
|
value: function preprocessBody(e) {
|
|
8146
8132
|
var t = e[e.length - 1].text;
|
|
@@ -9596,20 +9582,20 @@ var xt = /*#__PURE__*/function (_z12) {
|
|
|
9596
9582
|
}
|
|
9597
9583
|
}]);
|
|
9598
9584
|
}(z);
|
|
9599
|
-
var
|
|
9600
|
-
function
|
|
9585
|
+
var Ao = /*#__PURE__*/function (_fn3) {
|
|
9586
|
+
function Ao(e) {
|
|
9601
9587
|
var _this42$maxMessages;
|
|
9602
9588
|
var _this42;
|
|
9603
|
-
_classCallCheck(this,
|
|
9589
|
+
_classCallCheck(this, Ao);
|
|
9604
9590
|
var r;
|
|
9605
9591
|
var t = JSON.parse(JSON.stringify(e.directConnection)),
|
|
9606
9592
|
i = (r = t.cohere) == null ? void 0 : r.chat,
|
|
9607
9593
|
n = t.cohere;
|
|
9608
|
-
_this42 = _callSuper(this,
|
|
9594
|
+
_this42 = _callSuper(this, Ao, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", i, n]), _typeof(i) == "object" && Object.assign(_this42.rawBody, i), (_this42$maxMessages = _this42.maxMessages) !== null && _this42$maxMessages !== void 0 ? _this42$maxMessages : _this42.maxMessages = -1;
|
|
9609
9595
|
return _this42;
|
|
9610
9596
|
}
|
|
9611
|
-
_inherits(
|
|
9612
|
-
return _createClass(
|
|
9597
|
+
_inherits(Ao, _fn3);
|
|
9598
|
+
return _createClass(Ao, [{
|
|
9613
9599
|
key: "preprocessBody",
|
|
9614
9600
|
value: function preprocessBody(e, t) {
|
|
9615
9601
|
var i = JSON.parse(JSON.stringify(e)),
|
|
@@ -9710,18 +9696,18 @@ var ci = /*#__PURE__*/function () {
|
|
|
9710
9696
|
}
|
|
9711
9697
|
}]);
|
|
9712
9698
|
}();
|
|
9713
|
-
var
|
|
9714
|
-
function
|
|
9699
|
+
var Mo = /*#__PURE__*/function (_z13) {
|
|
9700
|
+
function Mo(e) {
|
|
9715
9701
|
var _this43$maxMessages, _n$model;
|
|
9716
9702
|
var _this43;
|
|
9717
|
-
_classCallCheck(this,
|
|
9703
|
+
_classCallCheck(this, Mo);
|
|
9718
9704
|
var n;
|
|
9719
9705
|
var i = JSON.parse(JSON.stringify(e.directConnection)).mistral;
|
|
9720
|
-
_this43 = _callSuper(this,
|
|
9706
|
+
_this43 = _callSuper(this, Mo, [e, ci.buildKeyVerificationDetails(), ci.buildHeaders, i]), _this43.insertKeyPlaceholderText = "Mistral API Key", _this43.keyHelpUrl = "https://console.mistral.ai/api-keys/", _this43.url = "https://api.mistral.ai/v1/chat/completions", _this43.permittedErrorPrefixes = ["invalid"], i && (_this43.cleanConfig(i), Object.assign(_this43.rawBody, i)), (_this43$maxMessages = _this43.maxMessages) !== null && _this43$maxMessages !== void 0 ? _this43$maxMessages : _this43.maxMessages = -1, (_n$model = (n = _this43.rawBody).model) !== null && _n$model !== void 0 ? _n$model : n.model = "open-mistral-7b";
|
|
9721
9707
|
return _this43;
|
|
9722
9708
|
}
|
|
9723
|
-
_inherits(
|
|
9724
|
-
return _createClass(
|
|
9709
|
+
_inherits(Mo, _z13);
|
|
9710
|
+
return _createClass(Mo, [{
|
|
9725
9711
|
key: "cleanConfig",
|
|
9726
9712
|
value: function cleanConfig(e) {
|
|
9727
9713
|
delete e.key;
|
|
@@ -9797,11 +9783,11 @@ var Ro = /*#__PURE__*/function (_z13) {
|
|
|
9797
9783
|
}()
|
|
9798
9784
|
}]);
|
|
9799
9785
|
}(z);
|
|
9800
|
-
var
|
|
9801
|
-
function
|
|
9802
|
-
_classCallCheck(this,
|
|
9786
|
+
var Ro = /*#__PURE__*/function () {
|
|
9787
|
+
function Ro() {
|
|
9788
|
+
_classCallCheck(this, Ro);
|
|
9803
9789
|
}
|
|
9804
|
-
return _createClass(
|
|
9790
|
+
return _createClass(Ro, null, [{
|
|
9805
9791
|
key: "create",
|
|
9806
9792
|
value:
|
|
9807
9793
|
// this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
|
|
@@ -9814,16 +9800,16 @@ var Io = /*#__PURE__*/function () {
|
|
|
9814
9800
|
if (t) {
|
|
9815
9801
|
if (t.openAI) return t.openAI.images ? new rn(e) : t.openAI.speechToText ? new en(e) : t.openAI.textToSpeech ? new Qi(e) : t.openAI.assistant ? new sn(e) : new xt(e);
|
|
9816
9802
|
if (t.assemblyAI) return new pn(e);
|
|
9817
|
-
if (t.cohere) return t.cohere.textGeneration ? new
|
|
9818
|
-
if (t.huggingFace) return t.huggingFace.textGeneration ? new
|
|
9803
|
+
if (t.cohere) return t.cohere.textGeneration ? new So(e) : t.cohere.summarization ? new wo(e) : new Ao(e);
|
|
9804
|
+
if (t.huggingFace) return t.huggingFace.textGeneration ? new bo(e) : t.huggingFace.summarization ? new yo(e) : t.huggingFace.translation ? new xo(e) : t.huggingFace.fillMask ? new _o(e) : t.huggingFace.questionAnswer ? new vo(e) : t.huggingFace.audioSpeechRecognition ? new go(e) : t.huggingFace.audioClassification ? new po(e) : t.huggingFace.imageClassification ? new mo(e) : new Eo(e);
|
|
9819
9805
|
if (t.azure) {
|
|
9820
9806
|
if (t.azure.speechToText) return new nn(e);
|
|
9821
9807
|
if (t.azure.textToSpeech) return new tn(e);
|
|
9822
|
-
if (t.azure.summarization) return new
|
|
9823
|
-
if (t.azure.translation) return new
|
|
9808
|
+
if (t.azure.summarization) return new Co(e);
|
|
9809
|
+
if (t.azure.translation) return new ko(e);
|
|
9824
9810
|
}
|
|
9825
9811
|
if (t.stabilityAI) return t.stabilityAI.imageToImage ? new oi(e) : t.stabilityAI.imageToImageUpscale ? new si(e) : t.stabilityAI.imageToImageMasking ? new ri(e) : new ai(e);
|
|
9826
|
-
if (t.mistral) return new
|
|
9812
|
+
if (t.mistral) return new Mo(e);
|
|
9827
9813
|
}
|
|
9828
9814
|
return i && (!n || !i.stream) ? new Ke(e) : new Ke(e, void 0, n || !0);
|
|
9829
9815
|
}
|
|
@@ -9919,11 +9905,11 @@ var di = /*#__PURE__*/function () {
|
|
|
9919
9905
|
}
|
|
9920
9906
|
}]);
|
|
9921
9907
|
}();
|
|
9922
|
-
var
|
|
9923
|
-
function
|
|
9924
|
-
_classCallCheck(this,
|
|
9908
|
+
var Io = /*#__PURE__*/function () {
|
|
9909
|
+
function Io() {
|
|
9910
|
+
_classCallCheck(this, Io);
|
|
9925
9911
|
}
|
|
9926
|
-
return _createClass(
|
|
9912
|
+
return _createClass(Io, null, [{
|
|
9927
9913
|
key: "getText",
|
|
9928
9914
|
value: function getText(e, t) {
|
|
9929
9915
|
var i;
|
|
@@ -9937,7 +9923,7 @@ var Lo = /*#__PURE__*/function () {
|
|
|
9937
9923
|
}
|
|
9938
9924
|
}]);
|
|
9939
9925
|
}();
|
|
9940
|
-
var
|
|
9926
|
+
var Lo = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n\t viewBox=\"50 30 420 450\" xml:space=\"preserve\">\n<g filter=\"brightness(0) saturate(100%) invert(16%) sepia(0%) saturate(1942%) hue-rotate(215deg) brightness(99%) contrast(93%)\">\n\t<g>\n\t\t<path d=\"M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008\n\t\t\tC350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237\n\t\t\th333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931\n\t\t\tl50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278\n\t\t\tc-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239\n\t\t\th66.527V486.763z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256\n\t\t\tc6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z\"/>\n\t</g>\n</g>\n</svg>";
|
|
9941
9927
|
var Me = /*#__PURE__*/function () {
|
|
9942
9928
|
function Me() {
|
|
9943
9929
|
_classCallCheck(this, Me);
|
|
@@ -9990,7 +9976,7 @@ var Me = /*#__PURE__*/function () {
|
|
|
9990
9976
|
t.classList.add("any-file-message-contents");
|
|
9991
9977
|
var i = document.createElement("div");
|
|
9992
9978
|
i.classList.add("any-file-message-icon-container");
|
|
9993
|
-
var n = te.createSVGElement(
|
|
9979
|
+
var n = te.createSVGElement(Lo);
|
|
9994
9980
|
n.classList.add("any-file-message-icon"), i.appendChild(n);
|
|
9995
9981
|
var r = document.createElement("div");
|
|
9996
9982
|
return r.classList.add("any-file-message-text"), r.textContent = e.name || F.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(r), F.processContent("any", t, e.src, r.textContent);
|
|
@@ -10041,7 +10027,7 @@ var Re = /*#__PURE__*/function (_lt) {
|
|
|
10041
10027
|
}, {
|
|
10042
10028
|
key: "addSetupMessageIfNeeded",
|
|
10043
10029
|
value: function addSetupMessageIfNeeded(e, t) {
|
|
10044
|
-
var i =
|
|
10030
|
+
var i = Io.getText(e, t);
|
|
10045
10031
|
if (i) {
|
|
10046
10032
|
var n = this.createAndAppendNewMessageElement(i, b.AI_ROLE);
|
|
10047
10033
|
this.applyCustomStyles(n, b.AI_ROLE, !1);
|
|
@@ -10391,7 +10377,7 @@ var K = /*#__PURE__*/function () {
|
|
|
10391
10377
|
}
|
|
10392
10378
|
}]);
|
|
10393
10379
|
}();
|
|
10394
|
-
var
|
|
10380
|
+
var Po = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <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>\n</svg>";
|
|
10395
10381
|
var fe = /*#__PURE__*/function () {
|
|
10396
10382
|
function fe() {
|
|
10397
10383
|
_classCallCheck(this, fe);
|
|
@@ -10654,7 +10640,7 @@ var ct = /*#__PURE__*/function (_jt) {
|
|
|
10654
10640
|
}, {
|
|
10655
10641
|
key: "createSVGIconElement",
|
|
10656
10642
|
value: function createSVGIconElement() {
|
|
10657
|
-
return te.createSVGElement(
|
|
10643
|
+
return te.createSVGElement(Po);
|
|
10658
10644
|
}
|
|
10659
10645
|
}, {
|
|
10660
10646
|
key: "createButtonContainer",
|
|
@@ -10745,33 +10731,33 @@ var G = /*#__PURE__*/function () {
|
|
|
10745
10731
|
}
|
|
10746
10732
|
}]);
|
|
10747
10733
|
}();
|
|
10748
|
-
var
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10734
|
+
var Oo = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<title>file</title>\n<path d=\"M20 10.9696L11.9628 18.5497C10.9782 19.4783 9.64274 20 8.25028 20C6.85782 20 5.52239 19.4783 4.53777 18.5497C3.55315 17.6211 3 16.3616 3 15.0483C3 13.7351 3.55315 12.4756 4.53777 11.547L12.575 3.96687C13.2314 3.34779 14.1217 3 15.05 3C15.9783 3 16.8686 3.34779 17.525 3.96687C18.1814 4.58595 18.5502 5.4256 18.5502 6.30111C18.5502 7.17662 18.1814 8.01628 17.525 8.63535L9.47904 16.2154C9.15083 16.525 8.70569 16.6989 8.24154 16.6989C7.77738 16.6989 7.33224 16.525 7.00403 16.2154C6.67583 15.9059 6.49144 15.4861 6.49144 15.0483C6.49144 14.6106 6.67583 14.1907 7.00403 13.8812L14.429 6.88674\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>",
|
|
10735
|
+
No = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20,15.2928932 L20,5.5 C20,4.67157288 19.3284271,4 18.5,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,12.2928932 L7.14644661,9.14644661 C7.34170876,8.95118446 7.65829124,8.95118446 7.85355339,9.14644661 L13.5,14.7928932 L16.1464466,12.1464466 C16.3417088,11.9511845 16.6582912,11.9511845 16.8535534,12.1464466 L20,15.2928932 Z M20,16.7071068 L16.5,13.2071068 L13.8535534,15.8535534 C13.6582912,16.0488155 13.3417088,16.0488155 13.1464466,15.8535534 L7.5,10.2071068 L4,13.7071068 L4,18.5 C4,19.3284271 4.67157288,20 5.5,20 L18.5,20 C19.3284271,20 20,19.3284271 20,18.5 L20,16.7071068 Z M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L18.5,3 C19.8807119,3 21,4.11928813 21,5.5 L21,18.5 C21,19.8807119 19.8807119,21 18.5,21 L5.5,21 C4.11928813,21 3,19.8807119 3,18.5 L3,5.5 Z M15,6 L17,6 C17.5522847,6 18,6.44771525 18,7 L18,9 C18,9.55228475 17.5522847,10 17,10 L15,10 C14.4477153,10 14,9.55228475 14,9 L14,7 C14,6.44771525 14.4477153,6 15,6 Z M15,7 L15,9 L17,9 L17,7 L15,7 Z\"/>\n</svg>\n",
|
|
10736
|
+
Do = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"-49.49 -49.49 593.87 593.87\" stroke-width=\"3.95908\" transform=\"rotate(0)\">\n <g stroke-width=\"0\"></g>\n <g stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.98977\"></g>\n <g>\n <g>\n <g>\n <path d=\"M163.205,76.413v293.301c-3.434-3.058-7.241-5.867-11.486-8.339c-21.38-12.452-49.663-15.298-77.567-7.846 c-49.038,13.096-80.904,54.519-71.038,92.337c4.019,15.404,14.188,28.221,29.404,37.087c13.553,7.894,29.87,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.447-4.087c42.74-11.406,72.411-44.344,72.807-77.654h0.011v-0.162c0.002-0.166,0-0.331,0-0.496V187.072 l290.971-67.3v178.082c-3.433-3.055-7.238-5.863-11.481-8.334c-21.385-12.452-49.654-15.308-77.567-7.846 c-49.038,13.087-80.904,54.519-71.038,92.356c4.019,15.385,14.183,28.212,29.404,37.067c13.548,7.894,29.875,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.452-4.087c42.74-11.413,72.411-44.346,72.804-77.654h0.004v-0.065c0.003-0.236,0.001-0.469,0-0.704V0 L163.205,76.413z M104.999,471.779c-22.543,6.038-45.942,3.846-62.572-5.846c-10.587-6.163-17.591-14.817-20.255-25.038 c-7.144-27.375,18.452-58.029,57.062-68.346c8.409-2.25,16.938-3.346,25.188-3.346c13.87,0,26.962,3.115,37.389,9.192 c10.587,6.163,17.591,14.817,20.255,25.029c0.809,3.102,1.142,6.248,1.139,9.4v0.321h0.014 C162.99,437.714,139.082,462.678,104.999,471.779z M182.898,166.853V92.067l290.971-67.298v74.784L182.898,166.853z M415.677,399.923c-22.558,6.038-45.942,3.837-62.587-5.846c-10.587-6.163-17.587-14.817-20.25-25.019 c-7.144-27.385,18.452-58.058,57.058-68.365c8.414-2.25,16.942-3.346,25.192-3.346c13.875,0,26.962,3.115,37.385,9.192 c10.596,6.163,17.596,14.817,20.26,25.029v0.01c0.796,3.05,1.124,6.144,1.135,9.244v0.468h0.02 C473.668,365.851,449.763,390.814,415.677,399.923z\">\n </path>\n </g>\n </g>\n </g>\n</svg>",
|
|
10737
|
+
Fo = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 5.9266752 5.6408391\" height=\"21.31971\" width=\"22.4\">\n <g>\n <path d=\"m 5.2564627,1.548212 c -3.1136005,-0.4796804 -1.5568006,-0.2398402 0,0 z M 2.0001198,2.0922063 c 0.1556781,0 0.2657489,0.020893 0.3917849,0.080366 0.081154,0.038347 0.1153492,0.134065 0.076377,0.2138602 -0.038973,0.07979 -0.1363527,0.1134129 -0.2175069,0.075091 -0.078199,-0.036919 -0.1407455,-0.048792 -0.250655,-0.048792 -0.2260486,0 -0.3921482,0.2042182 -0.3921482,0.4801409 0,0.2761822 0.1663188,0.4810688 0.3921482,0.4810688 0.1117901,0 0.2064255,-0.046133 0.255659,-0.1284198 l 0.00162,-0.00389 V 3.0534032 l -0.098011,1.75e-4 c -0.081844,0 -0.1495979,-0.059305 -0.1612403,-0.1365887 l -0.00175,-0.023683 c 0,-0.08047 0.060311,-0.1470874 0.1389194,-0.1585331 l 0.024085,-0.00195 h 0.2612303 c 0.081842,0 0.149598,0.059305 0.1612404,0.1365891 l 0.00175,0.023683 -3.398e-4,0.3968809 v 0 l -0.00168,0.014211 v 0 l -0.00553,0.023034 v 0 l -0.00532,0.014145 c -0.098178,0.22826 -0.3236506,0.3528713 -0.5706303,0.3528713 -0.4240855,0 -0.7181621,-0.3622714 -0.7181621,-0.8016063 0,-0.4391857 0.2940275,-0.8006848 0.7181621,-0.8006848 z m 1.2034759,0.031275 c 0.081843,0 0.1495977,0.059305 0.1612403,0.1365891 l 0.00175,0.023683 v 1.2211775 c 0,0.088516 -0.07298,0.1602721 -0.1630073,0.1602721 -0.081841,0 -0.1495972,-0.059305 -0.1612397,-0.1365892 L 3.040589,3.5049308 V 2.2837527 c 0,-0.088516 0.07298,-0.1602721 0.1630067,-0.1602714 z m 0.7813442,0 0.5209469,0.00195 c 0.090025,3.048e-4 0.1627543,0.072306 0.1624458,0.1608234 -2.809e-4,0.08047 -0.06083,0.1468798 -0.1394772,0.158066 l -0.024092,0.00195 -0.3575326,-0.0013 v 0.4497782 l 0.2928918,2.27e-4 c 0.081842,0 0.1495979,0.059305 0.1612403,0.136589 l 0.00175,0.023683 c 0,0.080469 -0.06031,0.1470871 -0.1389193,0.1585393 l -0.024092,0.00195 -0.2928919,-2.336e-4 1.563e-4,0.2860316 c 0,0.080471 -0.06031,0.1470873 -0.1389193,0.1585395 l -0.024085,0.00195 c -0.081843,0 -0.1495979,-0.059305 -0.1612403,-0.1365826 l -0.00175,-0.023691 V 2.2841354 c 2.798e-4,-0.08047 0.060829,-0.1468797 0.1394758,-0.1580594 z\"/>\n <path d=\"m 5.0894191,1.0943261 c 0,-0.21918999 -0.177687,-0.39686999 -0.396876,-0.39686999 h -3.43959 c -0.2191879,0 -0.391262,0.1777519 -0.3968759,0.39686999 l -0.027082,3.4379266 c 0.040152,0.2939927 0.4235456,0.409415 0.4235456,0.409415 l 3.4785583,-0.00851 c 0,0 0.3008506,-0.1402998 0.3236271,-0.4201576 0.042911,-0.5272495 0.034693,-1.6106146 0.034693,-3.4186761 z m -4.49792494,0 c 0,-0.36530999 0.29614504,-0.66145999 0.66145894,-0.66145999 h 3.43959 c 0.365314,0 0.66146,0.29615 0.66146,0.66145999 v 3.43959 c 0,0.36532 -0.296146,0.66146 -0.66146,0.66146 h -3.43959 c -0.3653139,0 -0.66145894,-0.29614 -0.66145894,-0.66146 z\"/>\n </g>\n</svg>\n",
|
|
10738
|
+
Bo = {
|
|
10753
10739
|
images: {
|
|
10754
10740
|
id: "upload-images-icon",
|
|
10755
|
-
svgString:
|
|
10741
|
+
svgString: No,
|
|
10756
10742
|
dropupText: "Image"
|
|
10757
10743
|
},
|
|
10758
10744
|
gifs: {
|
|
10759
10745
|
id: "upload-gifs-icon",
|
|
10760
|
-
svgString:
|
|
10746
|
+
svgString: Fo,
|
|
10761
10747
|
dropupText: "GIF"
|
|
10762
10748
|
},
|
|
10763
10749
|
audio: {
|
|
10764
10750
|
id: "upload-audio-icon",
|
|
10765
|
-
svgString:
|
|
10751
|
+
svgString: Do,
|
|
10766
10752
|
dropupText: "Audio"
|
|
10767
10753
|
},
|
|
10768
10754
|
mixedFiles: {
|
|
10769
10755
|
id: "upload-mixed-files-icon",
|
|
10770
|
-
svgString:
|
|
10756
|
+
svgString: Oo,
|
|
10771
10757
|
dropupText: "File"
|
|
10772
10758
|
}
|
|
10773
10759
|
},
|
|
10774
|
-
|
|
10760
|
+
jo = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg height=\"1.4em\" width=\"1.4em\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n\t viewBox=\"0 0 490.9 490.9\" xml:space=\"preserve\">\n\t<g>\n\t\t<g>\n\t\t\t<path d=\"M245.5,322.9c53,0,96.2-43.2,96.2-96.2V96.2c0-53-43.2-96.2-96.2-96.2s-96.2,43.2-96.2,96.2v130.5\n\t\t\t\tC149.3,279.8,192.5,322.9,245.5,322.9z M173.8,96.2c0-39.5,32.2-71.7,71.7-71.7s71.7,32.2,71.7,71.7v130.5\n\t\t\t\tc0,39.5-32.2,71.7-71.7,71.7s-71.7-32.2-71.7-71.7V96.2z\"/>\n\t\t\t<path d=\"M94.4,214.5c-6.8,0-12.3,5.5-12.3,12.3c0,85.9,66.7,156.6,151.1,162.8v76.7h-63.9c-6.8,0-12.3,5.5-12.3,12.3\n\t\t\t\ts5.5,12.3,12.3,12.3h152.3c6.8,0,12.3-5.5,12.3-12.3s-5.5-12.3-12.3-12.3h-63.9v-76.7c84.4-6.3,151.1-76.9,151.1-162.8\n\t\t\t\tc0-6.8-5.5-12.3-12.3-12.3s-12.3,5.5-12.3,12.3c0,76.6-62.3,138.9-138.9,138.9s-138.9-62.3-138.9-138.9\n\t\t\t\tC106.6,220,101.2,214.5,94.4,214.5z\"/>\n\t\t</g>\n\t</g>\n</svg>\n";
|
|
10775
10761
|
var Pt = /*#__PURE__*/function (_jt2) {
|
|
10776
10762
|
function Pt(e) {
|
|
10777
10763
|
var _this50;
|
|
@@ -10842,7 +10828,7 @@ var Pt = /*#__PURE__*/function (_jt2) {
|
|
|
10842
10828
|
}, {
|
|
10843
10829
|
key: "createSVGIconElement",
|
|
10844
10830
|
value: function createSVGIconElement() {
|
|
10845
|
-
var e = te.createSVGElement(
|
|
10831
|
+
var e = te.createSVGElement(jo);
|
|
10846
10832
|
return e.id = "microphone-icon", e;
|
|
10847
10833
|
}
|
|
10848
10834
|
}]);
|
|
@@ -10893,31 +10879,31 @@ Object.defineProperty(Ut, "__esModule", {
|
|
|
10893
10879
|
value: !0
|
|
10894
10880
|
});
|
|
10895
10881
|
Ut.Translate = void 0;
|
|
10896
|
-
var
|
|
10897
|
-
var
|
|
10898
|
-
function
|
|
10899
|
-
_classCallCheck(this,
|
|
10882
|
+
var Uo = Ye;
|
|
10883
|
+
var Ho = /*#__PURE__*/function () {
|
|
10884
|
+
function Ho() {
|
|
10885
|
+
_classCallCheck(this, Ho);
|
|
10900
10886
|
}
|
|
10901
|
-
return _createClass(
|
|
10887
|
+
return _createClass(Ho, null, [{
|
|
10902
10888
|
key: "translate",
|
|
10903
10889
|
value: function translate(e, t) {
|
|
10904
|
-
var i =
|
|
10890
|
+
var i = Uo.Text.breakupIntoWordsArr(e);
|
|
10905
10891
|
for (var n = 0; n < i.length; n += 1) t[i[n]] && (i[n] = t[i[n]]);
|
|
10906
10892
|
return i.join("");
|
|
10907
10893
|
}
|
|
10908
10894
|
}]);
|
|
10909
10895
|
}();
|
|
10910
|
-
Ut.Translate =
|
|
10896
|
+
Ut.Translate = Ho;
|
|
10911
10897
|
Object.defineProperty(Ti, "__esModule", {
|
|
10912
10898
|
value: !0
|
|
10913
10899
|
});
|
|
10914
10900
|
Ti.WebSpeechTranscript = void 0;
|
|
10915
10901
|
var Fn = Ut;
|
|
10916
|
-
var
|
|
10917
|
-
function
|
|
10918
|
-
_classCallCheck(this,
|
|
10902
|
+
var qo = /*#__PURE__*/function () {
|
|
10903
|
+
function qo() {
|
|
10904
|
+
_classCallCheck(this, qo);
|
|
10919
10905
|
}
|
|
10920
|
-
return _createClass(
|
|
10906
|
+
return _createClass(qo, null, [{
|
|
10921
10907
|
key: "extract",
|
|
10922
10908
|
value: function extract(e, t, i) {
|
|
10923
10909
|
var n = "";
|
|
@@ -10948,7 +10934,7 @@ var zo = /*#__PURE__*/function () {
|
|
|
10948
10934
|
}
|
|
10949
10935
|
}]);
|
|
10950
10936
|
}();
|
|
10951
|
-
Ti.WebSpeechTranscript =
|
|
10937
|
+
Ti.WebSpeechTranscript = qo;
|
|
10952
10938
|
var mt = {};
|
|
10953
10939
|
Object.defineProperty(mt, "__esModule", {
|
|
10954
10940
|
value: !0
|
|
@@ -11016,11 +11002,11 @@ Object.defineProperty(ki, "__esModule", {
|
|
|
11016
11002
|
value: !0
|
|
11017
11003
|
});
|
|
11018
11004
|
ki.PreResultUtils = void 0;
|
|
11019
|
-
var
|
|
11020
|
-
function
|
|
11021
|
-
_classCallCheck(this,
|
|
11005
|
+
var zo = /*#__PURE__*/function () {
|
|
11006
|
+
function zo() {
|
|
11007
|
+
_classCallCheck(this, zo);
|
|
11022
11008
|
}
|
|
11023
|
-
return _createClass(
|
|
11009
|
+
return _createClass(zo, null, [{
|
|
11024
11010
|
key: "process",
|
|
11025
11011
|
value: function process(e, t, i, n, r) {
|
|
11026
11012
|
var o = n == null ? void 0 : n(t, i);
|
|
@@ -11030,7 +11016,7 @@ var Vo = /*#__PURE__*/function () {
|
|
|
11030
11016
|
}
|
|
11031
11017
|
}]);
|
|
11032
11018
|
}();
|
|
11033
|
-
ki.PreResultUtils =
|
|
11019
|
+
ki.PreResultUtils = zo;
|
|
11034
11020
|
var qt = {},
|
|
11035
11021
|
zt = {};
|
|
11036
11022
|
Object.defineProperty(zt, "__esModule", {
|
|
@@ -11078,11 +11064,11 @@ Object.defineProperty(Qe, "__esModule", {
|
|
|
11078
11064
|
value: !0
|
|
11079
11065
|
});
|
|
11080
11066
|
Qe.Elements = void 0;
|
|
11081
|
-
var
|
|
11082
|
-
function
|
|
11083
|
-
_classCallCheck(this,
|
|
11067
|
+
var Vo = /*#__PURE__*/function () {
|
|
11068
|
+
function Vo() {
|
|
11069
|
+
_classCallCheck(this, Vo);
|
|
11084
11070
|
}
|
|
11085
|
-
return _createClass(
|
|
11071
|
+
return _createClass(Vo, null, [{
|
|
11086
11072
|
key: "isPrimitiveElement",
|
|
11087
11073
|
value: function isPrimitiveElement(e) {
|
|
11088
11074
|
return e.tagName === "INPUT" || e.tagName === "TEXTAREA";
|
|
@@ -11124,7 +11110,7 @@ var Go = /*#__PURE__*/function () {
|
|
|
11124
11110
|
}
|
|
11125
11111
|
}]);
|
|
11126
11112
|
}();
|
|
11127
|
-
Qe.Elements =
|
|
11113
|
+
Qe.Elements = Vo;
|
|
11128
11114
|
var et = {};
|
|
11129
11115
|
Object.defineProperty(et, "__esModule", {
|
|
11130
11116
|
value: !0
|
|
@@ -11216,8 +11202,8 @@ Object.defineProperty(qt, "__esModule", {
|
|
|
11216
11202
|
});
|
|
11217
11203
|
qt.CommandUtils = void 0;
|
|
11218
11204
|
var Bn = zt,
|
|
11219
|
-
|
|
11220
|
-
|
|
11205
|
+
Go = Qe,
|
|
11206
|
+
Wo = mt,
|
|
11221
11207
|
jn = et,
|
|
11222
11208
|
Un = Ye;
|
|
11223
11209
|
var ne = /*#__PURE__*/function () {
|
|
@@ -11253,7 +11239,7 @@ var ne = /*#__PURE__*/function () {
|
|
|
11253
11239
|
}, {
|
|
11254
11240
|
key: "setText",
|
|
11255
11241
|
value: function setText(e, t, i, n) {
|
|
11256
|
-
ne.toggleCommandModeOff(e),
|
|
11242
|
+
ne.toggleCommandModeOff(e), Go.Elements.isPrimitiveElement(n) ? (n.value = i, e.isTargetInShadow || jn.Cursor.setOffsetForPrimitive(n, i.length, !0), Wo.Browser.IS_SAFARI() && e.autoScroll && Bn.AutoScroll.scrollSafariPrimitiveToEnd(n)) : (n.textContent = i, e.isTargetInShadow || jn.Cursor.focusEndOfGeneric(n), setTimeout(function () {
|
|
11257
11243
|
return Bn.AutoScroll.scrollGeneric(e, n);
|
|
11258
11244
|
})), e.resetRecording(t);
|
|
11259
11245
|
}
|
|
@@ -11320,7 +11306,7 @@ Object.defineProperty(Ai, "__esModule", {
|
|
|
11320
11306
|
value: !0
|
|
11321
11307
|
});
|
|
11322
11308
|
Ai.Highlight = void 0;
|
|
11323
|
-
var
|
|
11309
|
+
var $o = Qe,
|
|
11324
11310
|
bt = et;
|
|
11325
11311
|
var hi = /*#__PURE__*/function () {
|
|
11326
11312
|
function hi() {
|
|
@@ -11345,7 +11331,7 @@ var hi = /*#__PURE__*/function () {
|
|
|
11345
11331
|
}, {
|
|
11346
11332
|
key: "setState",
|
|
11347
11333
|
value: function setState(e, t) {
|
|
11348
|
-
document.activeElement === t && (
|
|
11334
|
+
document.activeElement === t && ($o.Elements.isPrimitiveElement(t) ? hi.setStateForPrimitive(e, t) : hi.setStateForGeneric(e, t));
|
|
11349
11335
|
}
|
|
11350
11336
|
}, {
|
|
11351
11337
|
key: "removeForGeneric",
|
|
@@ -11376,7 +11362,7 @@ Object.defineProperty(Mi, "__esModule", {
|
|
|
11376
11362
|
value: !0
|
|
11377
11363
|
});
|
|
11378
11364
|
Mi.Padding = void 0;
|
|
11379
|
-
var
|
|
11365
|
+
var Ko = Qe,
|
|
11380
11366
|
Hn = et,
|
|
11381
11367
|
it = Ye;
|
|
11382
11368
|
var ui = /*#__PURE__*/function () {
|
|
@@ -11418,7 +11404,7 @@ var ui = /*#__PURE__*/function () {
|
|
|
11418
11404
|
}, {
|
|
11419
11405
|
key: "setState",
|
|
11420
11406
|
value: function setState(e, t) {
|
|
11421
|
-
|
|
11407
|
+
Ko.Elements.isPrimitiveElement(t) ? ui.setStateForPrimitiveElement(e, t) : ui.setStateForGenericElement(e, t);
|
|
11422
11408
|
}
|
|
11423
11409
|
}, {
|
|
11424
11410
|
key: "adjustStateAfterRecodingPrimitiveElement",
|
|
@@ -11442,7 +11428,7 @@ Object.defineProperty(Ht, "__esModule", {
|
|
|
11442
11428
|
});
|
|
11443
11429
|
Ht.Speech = void 0;
|
|
11444
11430
|
var qn = Ci,
|
|
11445
|
-
|
|
11431
|
+
Jo = ki,
|
|
11446
11432
|
zn = qt,
|
|
11447
11433
|
Kt = zt,
|
|
11448
11434
|
Hi = Ai,
|
|
@@ -11451,12 +11437,12 @@ var qn = Ci,
|
|
|
11451
11437
|
Vn = mt,
|
|
11452
11438
|
Gn = et,
|
|
11453
11439
|
zi = Ye;
|
|
11454
|
-
var
|
|
11455
|
-
function
|
|
11456
|
-
_classCallCheck(this,
|
|
11440
|
+
var Xo = /*#__PURE__*/function () {
|
|
11441
|
+
function Xo() {
|
|
11442
|
+
_classCallCheck(this, Xo);
|
|
11457
11443
|
this.finalTranscript = "", this.interimSpan = pe.Elements.createInterimSpan(), this.finalSpan = pe.Elements.createGenericSpan(), this.scrollingSpan = pe.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();
|
|
11458
11444
|
}
|
|
11459
|
-
return _createClass(
|
|
11445
|
+
return _createClass(Xo, [{
|
|
11460
11446
|
key: "prepareBeforeStart",
|
|
11461
11447
|
value: function prepareBeforeStart(e) {
|
|
11462
11448
|
var t, i;
|
|
@@ -11489,7 +11475,7 @@ var Zo = /*#__PURE__*/function () {
|
|
|
11489
11475
|
var n;
|
|
11490
11476
|
var r = zi.Text.capitalize(t);
|
|
11491
11477
|
if (this.finalTranscript === r && e === "") return;
|
|
11492
|
-
|
|
11478
|
+
Jo.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
|
|
11493
11479
|
var o = this.commands && zn.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
|
|
11494
11480
|
if (o) {
|
|
11495
11481
|
if (o.doNotProcessTranscription) return;
|
|
@@ -11559,20 +11545,20 @@ var Zo = /*#__PURE__*/function () {
|
|
|
11559
11545
|
}
|
|
11560
11546
|
}]);
|
|
11561
11547
|
}();
|
|
11562
|
-
Ht.Speech =
|
|
11548
|
+
Ht.Speech = Xo;
|
|
11563
11549
|
Object.defineProperty(wi, "__esModule", {
|
|
11564
11550
|
value: !0
|
|
11565
11551
|
});
|
|
11566
11552
|
wi.WebSpeech = void 0;
|
|
11567
11553
|
var Wn = Ti,
|
|
11568
11554
|
$n = mt,
|
|
11569
|
-
|
|
11570
|
-
var fi = /*#__PURE__*/function (
|
|
11555
|
+
Zo = Ht;
|
|
11556
|
+
var fi = /*#__PURE__*/function (_Zo$Speech) {
|
|
11571
11557
|
function fi() {
|
|
11572
11558
|
_classCallCheck(this, fi);
|
|
11573
11559
|
return _callSuper(this, fi);
|
|
11574
11560
|
}
|
|
11575
|
-
_inherits(fi,
|
|
11561
|
+
_inherits(fi, _Zo$Speech);
|
|
11576
11562
|
return _createClass(fi, [{
|
|
11577
11563
|
key: "start",
|
|
11578
11564
|
value: function start(e) {
|
|
@@ -11630,7 +11616,7 @@ var fi = /*#__PURE__*/function (_Yo$Speech) {
|
|
|
11630
11616
|
return window.webkitSpeechRecognition || window.SpeechRecognition;
|
|
11631
11617
|
}
|
|
11632
11618
|
}]);
|
|
11633
|
-
}(
|
|
11619
|
+
}(Zo.Speech);
|
|
11634
11620
|
wi.WebSpeech = fi;
|
|
11635
11621
|
var Ri = {};
|
|
11636
11622
|
Object.defineProperty(Ri, "__esModule", {
|
|
@@ -11658,11 +11644,11 @@ Object.defineProperty(Li, "__esModule", {
|
|
|
11658
11644
|
value: !0
|
|
11659
11645
|
});
|
|
11660
11646
|
Li.PreventConnectionStop = void 0;
|
|
11661
|
-
var
|
|
11662
|
-
function
|
|
11663
|
-
_classCallCheck(this,
|
|
11647
|
+
var Yo = /*#__PURE__*/function () {
|
|
11648
|
+
function Yo() {
|
|
11649
|
+
_classCallCheck(this, Yo);
|
|
11664
11650
|
}
|
|
11665
|
-
return _createClass(
|
|
11651
|
+
return _createClass(Yo, null, [{
|
|
11666
11652
|
key: "applyPrevention",
|
|
11667
11653
|
value: function applyPrevention(e) {
|
|
11668
11654
|
clearTimeout(e._manualConnectionStopPrevention), e.cannotBeStopped = !0, e._manualConnectionStopPrevention = setTimeout(function () {
|
|
@@ -11676,7 +11662,7 @@ var Qo = /*#__PURE__*/function () {
|
|
|
11676
11662
|
}
|
|
11677
11663
|
}]);
|
|
11678
11664
|
}();
|
|
11679
|
-
Li.PreventConnectionStop =
|
|
11665
|
+
Li.PreventConnectionStop = Yo;
|
|
11680
11666
|
var Pi = {},
|
|
11681
11667
|
Oi = {};
|
|
11682
11668
|
Object.defineProperty(Oi, "__esModule", {
|
|
@@ -11787,17 +11773,17 @@ Object.defineProperty(Di, "__esModule", {
|
|
|
11787
11773
|
value: !0
|
|
11788
11774
|
});
|
|
11789
11775
|
Di.AzureTranscript = void 0;
|
|
11790
|
-
var
|
|
11791
|
-
var
|
|
11792
|
-
function
|
|
11793
|
-
_classCallCheck(this,
|
|
11776
|
+
var Qo = Ut;
|
|
11777
|
+
var ea = /*#__PURE__*/function () {
|
|
11778
|
+
function ea() {
|
|
11779
|
+
_classCallCheck(this, ea);
|
|
11794
11780
|
}
|
|
11795
|
-
return _createClass(
|
|
11781
|
+
return _createClass(ea, null, [{
|
|
11796
11782
|
key: "extract",
|
|
11797
11783
|
value:
|
|
11798
11784
|
// newText is used to only send new text in onResult as finalTranscript is continuously accumulated
|
|
11799
11785
|
function extract(e, t, i, n) {
|
|
11800
|
-
return n && (e =
|
|
11786
|
+
return n && (e = Qo.Translate.translate(e, n)), i ? {
|
|
11801
11787
|
interimTranscript: "",
|
|
11802
11788
|
finalTranscript: t + e,
|
|
11803
11789
|
newText: e
|
|
@@ -11809,7 +11795,7 @@ var ta = /*#__PURE__*/function () {
|
|
|
11809
11795
|
}
|
|
11810
11796
|
}]);
|
|
11811
11797
|
}();
|
|
11812
|
-
Di.AzureTranscript =
|
|
11798
|
+
Di.AzureTranscript = ea;
|
|
11813
11799
|
Object.defineProperty(Ii, "__esModule", {
|
|
11814
11800
|
value: !0
|
|
11815
11801
|
});
|
|
@@ -11818,15 +11804,15 @@ var Kn = Li,
|
|
|
11818
11804
|
Jn = Pi,
|
|
11819
11805
|
Gi = Ni,
|
|
11820
11806
|
Xn = Di,
|
|
11821
|
-
|
|
11822
|
-
var mi = /*#__PURE__*/function (
|
|
11807
|
+
ta = Ht;
|
|
11808
|
+
var mi = /*#__PURE__*/function (_ta$Speech) {
|
|
11823
11809
|
function mi() {
|
|
11824
11810
|
var _this53;
|
|
11825
11811
|
_classCallCheck(this, mi);
|
|
11826
11812
|
_this53 = _callSuper(this, mi, arguments), _this53._newTextPadding = "";
|
|
11827
11813
|
return _this53;
|
|
11828
11814
|
}
|
|
11829
|
-
_inherits(mi,
|
|
11815
|
+
_inherits(mi, _ta$Speech);
|
|
11830
11816
|
return _createClass(mi, [{
|
|
11831
11817
|
key: "start",
|
|
11832
11818
|
value: function start(e, t) {
|
|
@@ -11984,15 +11970,15 @@ var mi = /*#__PURE__*/function (_ia$Speech) {
|
|
|
11984
11970
|
return window.SpeechSDK;
|
|
11985
11971
|
}
|
|
11986
11972
|
}]);
|
|
11987
|
-
}(
|
|
11973
|
+
}(ta.Speech);
|
|
11988
11974
|
Ii.Azure = mi;
|
|
11989
11975
|
Object.defineProperty(ds, "__esModule", {
|
|
11990
11976
|
value: !0
|
|
11991
11977
|
});
|
|
11992
11978
|
var Zn = wi,
|
|
11993
|
-
|
|
11979
|
+
ia = qt,
|
|
11994
11980
|
le = Ri,
|
|
11995
|
-
|
|
11981
|
+
na = Ii;
|
|
11996
11982
|
var nt = /*#__PURE__*/function () {
|
|
11997
11983
|
function nt() {
|
|
11998
11984
|
_classCallCheck(this, nt);
|
|
@@ -12018,7 +12004,7 @@ var nt = /*#__PURE__*/function () {
|
|
|
12018
12004
|
key: "startAzure",
|
|
12019
12005
|
value: function startAzure(e) {
|
|
12020
12006
|
var t;
|
|
12021
|
-
nt.stop() || !((t = le.GlobalState.service) === null || t === void 0) && t.cannotBeStopped || (le.GlobalState.service = new
|
|
12007
|
+
nt.stop() || !((t = le.GlobalState.service) === null || t === void 0) && t.cannotBeStopped || (le.GlobalState.service = new na.Azure(), le.GlobalState.service.start(e));
|
|
12022
12008
|
}
|
|
12023
12009
|
}, {
|
|
12024
12010
|
key: "stop",
|
|
@@ -12029,17 +12015,17 @@ var nt = /*#__PURE__*/function () {
|
|
|
12029
12015
|
}, {
|
|
12030
12016
|
key: "endCommandMode",
|
|
12031
12017
|
value: function endCommandMode() {
|
|
12032
|
-
le.GlobalState.service &&
|
|
12018
|
+
le.GlobalState.service && ia.CommandUtils.toggleCommandModeOff(le.GlobalState.service);
|
|
12033
12019
|
}
|
|
12034
12020
|
}]);
|
|
12035
12021
|
}();
|
|
12036
12022
|
var Jt = ds["default"] = nt;
|
|
12037
|
-
var
|
|
12038
|
-
function
|
|
12039
|
-
_classCallCheck(this,
|
|
12023
|
+
var sa = /*#__PURE__*/function () {
|
|
12024
|
+
function sa(e, t) {
|
|
12025
|
+
_classCallCheck(this, sa);
|
|
12040
12026
|
this.silenceMS = 2e3, this.stop = !0, typeof t == "boolean" && t === !1 && (this.stop = !1), typeof e == "number" && (this.silenceMS = e);
|
|
12041
12027
|
}
|
|
12042
|
-
return _createClass(
|
|
12028
|
+
return _createClass(sa, [{
|
|
12043
12029
|
key: "setSilenceTimeout",
|
|
12044
12030
|
value: function setSilenceTimeout(e, t) {
|
|
12045
12031
|
var _this55 = this;
|
|
@@ -12109,7 +12095,7 @@ var kt = /*#__PURE__*/function (_Pt) {
|
|
|
12109
12095
|
restart: !0,
|
|
12110
12096
|
removeNewText: !0
|
|
12111
12097
|
}) : null;
|
|
12112
|
-
}), i.submitAfterSilence && (this._silenceSubmit = new
|
|
12098
|
+
}), i.submitAfterSilence && (this._silenceSubmit = new sa(i.submitAfterSilence, i.stopAfterSubmit)), {
|
|
12113
12099
|
serviceName: kt.getServiceName(i),
|
|
12114
12100
|
processedConfig: o
|
|
12115
12101
|
};
|
|
@@ -12312,7 +12298,7 @@ var Te = /*#__PURE__*/function () {
|
|
|
12312
12298
|
}
|
|
12313
12299
|
}]);
|
|
12314
12300
|
}();
|
|
12315
|
-
var
|
|
12301
|
+
var ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>play</title>\n <path d=\"M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z\"></path>\n</svg>",
|
|
12316
12302
|
Yn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n<title>stop</title>\n<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>\n</svg>",
|
|
12317
12303
|
_e = /*#__PURE__*/function (_Te) {
|
|
12318
12304
|
// prettier-ignore
|
|
@@ -12399,7 +12385,7 @@ var oa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
|
12399
12385
|
var i = e.parentElement ? q.cloneElement(e) : e,
|
|
12400
12386
|
n = document.createElement("audio");
|
|
12401
12387
|
n.src = t;
|
|
12402
|
-
var r = te.createSVGElement(
|
|
12388
|
+
var r = te.createSVGElement(ra);
|
|
12403
12389
|
r.classList.add("attachment-icon", "play-icon");
|
|
12404
12390
|
var o = te.createSVGElement(Yn);
|
|
12405
12391
|
o.classList.add("attachment-icon", "stop-icon"), i.replaceChildren(r), n.onplay = function () {
|
|
@@ -12428,11 +12414,11 @@ var oa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
|
12428
12414
|
}(Te);
|
|
12429
12415
|
_e.TIMER_LIMIT_S = 5999;
|
|
12430
12416
|
var Dt = _e;
|
|
12431
|
-
var
|
|
12432
|
-
function
|
|
12433
|
-
_classCallCheck(this,
|
|
12417
|
+
var oa = /*#__PURE__*/function () {
|
|
12418
|
+
function oa() {
|
|
12419
|
+
_classCallCheck(this, oa);
|
|
12434
12420
|
}
|
|
12435
|
-
return _createClass(
|
|
12421
|
+
return _createClass(oa, null, [{
|
|
12436
12422
|
key: "create",
|
|
12437
12423
|
value:
|
|
12438
12424
|
// prettier-ignore
|
|
@@ -12452,7 +12438,7 @@ var Vt = /*#__PURE__*/function () {
|
|
|
12452
12438
|
return _createClass(Vt, [{
|
|
12453
12439
|
key: "addType",
|
|
12454
12440
|
value: function addType(e, t, i) {
|
|
12455
|
-
var n =
|
|
12441
|
+
var n = oa.create(e, t, this.toggleContainerDisplay.bind(this), this.elementRef, i);
|
|
12456
12442
|
return this._fileAttachmentsTypes.push(n), n;
|
|
12457
12443
|
}
|
|
12458
12444
|
}, {
|
|
@@ -12886,16 +12872,16 @@ var hs = /*#__PURE__*/function () {
|
|
|
12886
12872
|
}
|
|
12887
12873
|
}]);
|
|
12888
12874
|
}();
|
|
12889
|
-
var
|
|
12890
|
-
function
|
|
12875
|
+
var aa = /*#__PURE__*/function (_Pt2) {
|
|
12876
|
+
function aa(e, t) {
|
|
12891
12877
|
var _this65;
|
|
12892
|
-
_classCallCheck(this,
|
|
12878
|
+
_classCallCheck(this, aa);
|
|
12893
12879
|
var i, n;
|
|
12894
|
-
_this65 = _callSuper(this,
|
|
12880
|
+
_this65 = _callSuper(this, aa, [t.button]), _this65._waitingForBrowserApproval = !1, _this65._audioType = e, _this65._extension = ((i = t.files) == null ? void 0 : i.format) || "mp3", _this65._maxDurationSeconds = (n = t.files) == null ? void 0 : n.maxDurationSeconds, _this65.elementRef.onclick = _this65.buttonClick.bind(_assertThisInitialized(_this65));
|
|
12895
12881
|
return _this65;
|
|
12896
12882
|
}
|
|
12897
|
-
_inherits(
|
|
12898
|
-
return _createClass(
|
|
12883
|
+
_inherits(aa, _Pt2);
|
|
12884
|
+
return _createClass(aa, [{
|
|
12899
12885
|
key: "buttonClick",
|
|
12900
12886
|
value: function buttonClick() {
|
|
12901
12887
|
this._waitingForBrowserApproval || (this.isActive ? this.stop() : (this._waitingForBrowserApproval = !0, this.record()));
|
|
@@ -12947,7 +12933,7 @@ var la = /*#__PURE__*/function (_Pt2) {
|
|
|
12947
12933
|
}
|
|
12948
12934
|
}]);
|
|
12949
12935
|
}(Pt);
|
|
12950
|
-
var
|
|
12936
|
+
var la = "<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" stroke=\"currentColor\" fill=\"none\" stroke-width=\"1\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"14\"></line>\n <polygon points=\"22 2 15 22 11 14 2 10 22 2\"></polygon>\n</svg>\n";
|
|
12951
12937
|
var $ = /*#__PURE__*/function () {
|
|
12952
12938
|
function $() {
|
|
12953
12939
|
_classCallCheck(this, $);
|
|
@@ -13303,7 +13289,7 @@ var k = /*#__PURE__*/function (_jt4) {
|
|
|
13303
13289
|
}, {
|
|
13304
13290
|
key: "createSubmitIconElement",
|
|
13305
13291
|
value: function createSubmitIconElement() {
|
|
13306
|
-
var e = te.createSVGElement(
|
|
13292
|
+
var e = te.createSVGElement(la);
|
|
13307
13293
|
return e.id = "submit-icon", e;
|
|
13308
13294
|
}
|
|
13309
13295
|
}, {
|
|
@@ -13322,10 +13308,10 @@ var k = /*#__PURE__*/function (_jt4) {
|
|
|
13322
13308
|
}(jt);
|
|
13323
13309
|
k.SUBMIT_CLASS = "submit-button", k.LOADING_CLASS = "loading-button", k.DISABLED_CLASS = "disabled-button";
|
|
13324
13310
|
var ln = k;
|
|
13325
|
-
var
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13311
|
+
var ca = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z\"/>\n</svg>\n",
|
|
13312
|
+
da = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>capture</title>\n <path d=\"M0 16q0 3.264 1.28 6.208t3.392 5.12 5.12 3.424 6.208 1.248 6.208-1.248 5.12-3.424 3.392-5.12 1.28-6.208-1.28-6.208-3.392-5.12-5.088-3.392-6.24-1.28q-3.264 0-6.208 1.28t-5.12 3.392-3.392 5.12-1.28 6.208zM4 16q0-3.264 1.6-6.016t4.384-4.352 6.016-1.632 6.016 1.632 4.384 4.352 1.6 6.016-1.6 6.048-4.384 4.352-6.016 1.6-6.016-1.6-4.384-4.352-1.6-6.048z\"></path>\n</svg>\n",
|
|
13313
|
+
ha = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z\"/>\n</svg>",
|
|
13314
|
+
ua = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.89163 13.2687L9.16582 17.5427L18.7085 8\" stroke=\"#000000\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
|
|
13329
13315
|
var vn = /*#__PURE__*/function (_Ve) {
|
|
13330
13316
|
// prettier-ignore
|
|
13331
13317
|
function vn(e, t, i, n) {
|
|
@@ -13335,18 +13321,18 @@ var vn = /*#__PURE__*/function (_Ve) {
|
|
|
13335
13321
|
var _this73$addButtonsAnd = _this73.addButtonsAndTheirEvents(t),
|
|
13336
13322
|
r = _this73$addButtonsAnd.captureButton,
|
|
13337
13323
|
o = _this73$addButtonsAnd.submitButton;
|
|
13338
|
-
_this73._captureButton = r, _this73._submitButton = o, _this73._captureIcon = _this73._captureButton.children[0], _this73._refreshIcon = te.createSVGElement(
|
|
13324
|
+
_this73._captureButton = r, _this73._submitButton = o, _this73._captureIcon = _this73._captureButton.children[0], _this73._refreshIcon = te.createSVGElement(ca), _this73._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (n == null ? void 0 : n.format) === "jpeg" && (_this73._format = "image/jpeg"), n != null && n.dimensions && (_this73._dimensions = n.dimensions), _this73._contentRef.appendChild(_this73._canvas), _this73.extensionCloseCallback = _this73.stop;
|
|
13339
13325
|
return _this73;
|
|
13340
13326
|
}
|
|
13341
13327
|
_inherits(vn, _Ve);
|
|
13342
13328
|
return _createClass(vn, [{
|
|
13343
13329
|
key: "addButtonsAndTheirEvents",
|
|
13344
13330
|
value: function addButtonsAndTheirEvents(e) {
|
|
13345
|
-
var t = Ve.createSVGButton(
|
|
13331
|
+
var t = Ve.createSVGButton(da);
|
|
13346
13332
|
t.classList.add("modal-svg-camera-button"), t.children[0].classList.add("modal-svg-camera-icon");
|
|
13347
|
-
var i = this.addCloseButton(
|
|
13333
|
+
var i = this.addCloseButton(ha, !0);
|
|
13348
13334
|
i.classList.add("modal-svg-close-button"), i.children[0].classList.add("modal-svg-close-icon");
|
|
13349
|
-
var n = Ve.createSVGButton(
|
|
13335
|
+
var n = Ve.createSVGButton(ua);
|
|
13350
13336
|
return n.classList.add("modal-svg-submit-button"), this.addButtons(t, n), this.addButtonEvents(t, i, n, e), {
|
|
13351
13337
|
captureButton: t,
|
|
13352
13338
|
submitButton: n
|
|
@@ -13439,7 +13425,7 @@ var vn = /*#__PURE__*/function (_Ve) {
|
|
|
13439
13425
|
}
|
|
13440
13426
|
}]);
|
|
13441
13427
|
}(Ve);
|
|
13442
|
-
var
|
|
13428
|
+
var fa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M29 7h-4.599l-2.401-4h-12l-2.4 4h-4.6c-1 0-3 1-3 2.969v16.031c0 1.657 1.5 3 2.792 3h26.271c1.313 0 2.938-1.406 2.938-2.968v-16.032c0-1-1-3-3-3zM30 26.032c0 0.395-0.639 0.947-0.937 0.969h-26.265c-0.232-0.019-0.797-0.47-0.797-1v-16.031c0-0.634 0.851-0.953 1-0.969h5.732l2.4-4h9.802l1.785 3.030 0.55 0.97h5.731c0.705 0 0.99 0.921 1 1v16.032zM16 10c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7zM16 22c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z\"></path>\n</svg>";
|
|
13443
13429
|
var gi = /*#__PURE__*/function (_jt5) {
|
|
13444
13430
|
function gi(e, t, i) {
|
|
13445
13431
|
var _this77;
|
|
@@ -13479,7 +13465,7 @@ var gi = /*#__PURE__*/function (_jt5) {
|
|
|
13479
13465
|
}, {
|
|
13480
13466
|
key: "createSVGIconElement",
|
|
13481
13467
|
value: function createSVGIconElement() {
|
|
13482
|
-
var e = te.createSVGElement(
|
|
13468
|
+
var e = te.createSVGElement(fa);
|
|
13483
13469
|
return e.id = "camera-icon", e;
|
|
13484
13470
|
}
|
|
13485
13471
|
}]);
|
|
@@ -13515,7 +13501,7 @@ var wt = /*#__PURE__*/function () {
|
|
|
13515
13501
|
if ((l = t.recordAudio) != null && l.files) {
|
|
13516
13502
|
var _d = ((c = n.audio) == null ? void 0 : c.fileType) || r.addType(e, t.recordAudio.files, "audio");
|
|
13517
13503
|
n.microphone = {
|
|
13518
|
-
button: new
|
|
13504
|
+
button: new aa(_d, t.recordAudio)
|
|
13519
13505
|
};
|
|
13520
13506
|
}
|
|
13521
13507
|
return Se.isEnabled(r, e.dragAndDrop) && Se.create(i, r, e.dragAndDrop), r;
|
|
@@ -13535,10 +13521,10 @@ var wt = /*#__PURE__*/function () {
|
|
|
13535
13521
|
l = t[a];
|
|
13536
13522
|
if (l.files) {
|
|
13537
13523
|
var c = i.addType(e, l.files, a),
|
|
13538
|
-
|
|
13539
|
-
d =
|
|
13540
|
-
h =
|
|
13541
|
-
u =
|
|
13524
|
+
_Bo$a = Bo[a],
|
|
13525
|
+
d = _Bo$a.id,
|
|
13526
|
+
h = _Bo$a.svgString,
|
|
13527
|
+
u = _Bo$a.dropupText,
|
|
13542
13528
|
f = new St(n, c, l, d, h, u);
|
|
13543
13529
|
r[a] = {
|
|
13544
13530
|
button: f,
|
|
@@ -13580,12 +13566,12 @@ var yn = /*#__PURE__*/function () {
|
|
|
13580
13566
|
}
|
|
13581
13567
|
}]);
|
|
13582
13568
|
}();
|
|
13583
|
-
var ma = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#large-loading-ring{display:inline-block;width:50px;height:50px}#large-loading-ring:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:large-loading-ring 1.4s linear infinite}@keyframes large-loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-ring{display:inline-block;width:16px;height:16px}#loading-ring:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-ring 1.2s linear infinite}@keyframes loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.75em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:\"\";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}";
|
|
13584
|
-
var
|
|
13585
|
-
|
|
13569
|
+
var pa = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#large-loading-ring{display:inline-block;width:50px;height:50px}#large-loading-ring:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:large-loading-ring 1.4s linear infinite}@keyframes large-loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-ring{display:inline-block;width:16px;height:16px}#loading-ring:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-ring 1.2s linear infinite}@keyframes loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.75em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:\"\";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}";
|
|
13570
|
+
var ma = Object.defineProperty,
|
|
13571
|
+
ga = Object.getOwnPropertyDescriptor,
|
|
13586
13572
|
S = function S(s, e, t, i) {
|
|
13587
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
13588
|
-
return i && n &&
|
|
13573
|
+
for (var n = i > 1 ? void 0 : i ? ga(e, t) : e, r = s.length - 1, o; r >= 0; r--) (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
13574
|
+
return i && n && ma(e, t, n), n;
|
|
13589
13575
|
};
|
|
13590
13576
|
var x = /*#__PURE__*/function (_Zi) {
|
|
13591
13577
|
function x() {
|
|
@@ -13601,7 +13587,7 @@ var x = /*#__PURE__*/function (_Zi) {
|
|
|
13601
13587
|
return Ei.focusFromParentElement(_this78._elementRef);
|
|
13602
13588
|
}, _this78.refreshMessages = function () {}, _this78.clearMessages = function () {}, _this78.scrollToBottom = function () {}, _this78.disableSubmitButton = function () {}, _this78.setPlaceholderText = function () {}, _this78._hasBeenRendered = !1, _this78._auxiliaryStyleApplied = !1, _this78._elementRef = document.createElement("div"), _this78._elementRef.id = "container", _this78.attachShadow({
|
|
13603
13589
|
mode: "open"
|
|
13604
|
-
}).appendChild(_this78._elementRef), yt.apply(
|
|
13590
|
+
}).appendChild(_this78._elementRef), yt.apply(pa, _this78.shadowRoot), setTimeout(function () {
|
|
13605
13591
|
_this78._hasBeenRendered || _this78.onRender();
|
|
13606
13592
|
}, 20);
|
|
13607
13593
|
return _this78;
|
|
@@ -13617,7 +13603,7 @@ var x = /*#__PURE__*/function (_Zi) {
|
|
|
13617
13603
|
key: "onRender",
|
|
13618
13604
|
value: function onRender() {
|
|
13619
13605
|
var _this$_childElement;
|
|
13620
|
-
Zt.attemptAppendStyleSheetToHead(this.style), ae.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService =
|
|
13606
|
+
Zt.attemptAppendStyleSheetToHead(this.style), ae.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Ro.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (yt.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), yt.applyDefaultStyleToComponent(this.style, this.chatStyle), ae.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? Xt.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof z) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], yn.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof z && U.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, ei.onRender(this);
|
|
13621
13607
|
}
|
|
13622
13608
|
}, {
|
|
13623
13609
|
key: "disconnectedCallback",
|