@websolutespa/bom-llm 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/umd/index.css +16 -26
- package/dist/umd/index.js +340 -354
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.js
CHANGED
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
*/
|
|
28
28
|
var l$2 = Symbol.for("react.element"),
|
|
29
29
|
n$3 = Symbol.for("react.portal"),
|
|
30
|
-
p$
|
|
30
|
+
p$5 = Symbol.for("react.fragment"),
|
|
31
31
|
q$3 = Symbol.for("react.strict_mode"),
|
|
32
32
|
r$3 = Symbol.for("react.profiler"),
|
|
33
33
|
t$3 = Symbol.for("react.provider"),
|
|
34
34
|
u$2 = Symbol.for("react.context"),
|
|
35
|
-
v$
|
|
35
|
+
v$2 = Symbol.for("react.forward_ref"),
|
|
36
36
|
w$1 = Symbol.for("react.suspense"),
|
|
37
37
|
x = Symbol.for("react.memo"),
|
|
38
|
-
y
|
|
38
|
+
y = Symbol.for("react.lazy"),
|
|
39
39
|
z$1 = Symbol.iterator;
|
|
40
40
|
function A$1(a) {
|
|
41
41
|
if (null === a || "object" !== typeof a) return null;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
react_production_min.Component = E$1;
|
|
229
|
-
react_production_min.Fragment = p$
|
|
229
|
+
react_production_min.Fragment = p$5;
|
|
230
230
|
react_production_min.Profiler = r$3;
|
|
231
231
|
react_production_min.PureComponent = G$1;
|
|
232
232
|
react_production_min.StrictMode = q$3;
|
|
@@ -290,14 +290,14 @@
|
|
|
290
290
|
};
|
|
291
291
|
react_production_min.forwardRef = function (a) {
|
|
292
292
|
return {
|
|
293
|
-
$$typeof: v$
|
|
293
|
+
$$typeof: v$2,
|
|
294
294
|
render: a
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
297
|
react_production_min.isValidElement = O$1;
|
|
298
298
|
react_production_min.lazy = function (a) {
|
|
299
299
|
return {
|
|
300
|
-
$$typeof: y
|
|
300
|
+
$$typeof: y,
|
|
301
301
|
_payload: {
|
|
302
302
|
_status: -1,
|
|
303
303
|
_result: a
|
|
@@ -382,12 +382,12 @@
|
|
|
382
382
|
* This source code is licensed under the MIT license found in the
|
|
383
383
|
* LICENSE file in the root directory of this source tree.
|
|
384
384
|
*/
|
|
385
|
-
var f
|
|
385
|
+
var f = reactExports,
|
|
386
386
|
k$1 = Symbol.for("react.element"),
|
|
387
387
|
l$1 = Symbol.for("react.fragment"),
|
|
388
|
-
m$
|
|
389
|
-
n$2 = f
|
|
390
|
-
p$
|
|
388
|
+
m$3 = Object.prototype.hasOwnProperty,
|
|
389
|
+
n$2 = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
390
|
+
p$4 = {
|
|
391
391
|
key: !0,
|
|
392
392
|
ref: !0,
|
|
393
393
|
__self: !0,
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
void 0 !== g && (e = "" + g);
|
|
402
402
|
void 0 !== a.key && (e = "" + a.key);
|
|
403
403
|
void 0 !== a.ref && (h = a.ref);
|
|
404
|
-
for (b in a) m$
|
|
404
|
+
for (b in a) m$3.call(a, b) && !p$4.hasOwnProperty(b) && (d[b] = a[b]);
|
|
405
405
|
if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
|
|
406
406
|
return {
|
|
407
407
|
$$typeof: k$1,
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
*/
|
|
706
706
|
var aa = reactExports,
|
|
707
707
|
ca = schedulerExports;
|
|
708
|
-
function p$
|
|
708
|
+
function p$3(a) {
|
|
709
709
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
710
710
|
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
711
711
|
}
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
}
|
|
762
762
|
return !1;
|
|
763
763
|
}
|
|
764
|
-
function v$
|
|
764
|
+
function v$1(a, b, c, d, e, f, g) {
|
|
765
765
|
this.acceptsBooleans = 2 === b || 3 === b || 4 === b;
|
|
766
766
|
this.attributeName = d;
|
|
767
767
|
this.attributeNamespace = e;
|
|
@@ -773,32 +773,32 @@
|
|
|
773
773
|
}
|
|
774
774
|
var z = {};
|
|
775
775
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a) {
|
|
776
|
-
z[a] = new v$
|
|
776
|
+
z[a] = new v$1(a, 0, !1, a, null, !1, !1);
|
|
777
777
|
});
|
|
778
778
|
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a) {
|
|
779
779
|
var b = a[0];
|
|
780
|
-
z[b] = new v$
|
|
780
|
+
z[b] = new v$1(b, 1, !1, a[1], null, !1, !1);
|
|
781
781
|
});
|
|
782
782
|
["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) {
|
|
783
|
-
z[a] = new v$
|
|
783
|
+
z[a] = new v$1(a, 2, !1, a.toLowerCase(), null, !1, !1);
|
|
784
784
|
});
|
|
785
785
|
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) {
|
|
786
|
-
z[a] = new v$
|
|
786
|
+
z[a] = new v$1(a, 2, !1, a, null, !1, !1);
|
|
787
787
|
});
|
|
788
788
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a) {
|
|
789
|
-
z[a] = new v$
|
|
789
|
+
z[a] = new v$1(a, 3, !1, a.toLowerCase(), null, !1, !1);
|
|
790
790
|
});
|
|
791
791
|
["checked", "multiple", "muted", "selected"].forEach(function (a) {
|
|
792
|
-
z[a] = new v$
|
|
792
|
+
z[a] = new v$1(a, 3, !0, a, null, !1, !1);
|
|
793
793
|
});
|
|
794
794
|
["capture", "download"].forEach(function (a) {
|
|
795
|
-
z[a] = new v$
|
|
795
|
+
z[a] = new v$1(a, 4, !1, a, null, !1, !1);
|
|
796
796
|
});
|
|
797
797
|
["cols", "rows", "size", "span"].forEach(function (a) {
|
|
798
|
-
z[a] = new v$
|
|
798
|
+
z[a] = new v$1(a, 6, !1, a, null, !1, !1);
|
|
799
799
|
});
|
|
800
800
|
["rowSpan", "start"].forEach(function (a) {
|
|
801
|
-
z[a] = new v$
|
|
801
|
+
z[a] = new v$1(a, 5, !1, a.toLowerCase(), null, !1, !1);
|
|
802
802
|
});
|
|
803
803
|
var ra = /[\-:]([a-z])/g;
|
|
804
804
|
function sa(a) {
|
|
@@ -806,22 +806,22 @@
|
|
|
806
806
|
}
|
|
807
807
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a) {
|
|
808
808
|
var b = a.replace(ra, sa);
|
|
809
|
-
z[b] = new v$
|
|
809
|
+
z[b] = new v$1(b, 1, !1, a, null, !1, !1);
|
|
810
810
|
});
|
|
811
811
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) {
|
|
812
812
|
var b = a.replace(ra, sa);
|
|
813
|
-
z[b] = new v$
|
|
813
|
+
z[b] = new v$1(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1);
|
|
814
814
|
});
|
|
815
815
|
["xml:base", "xml:lang", "xml:space"].forEach(function (a) {
|
|
816
816
|
var b = a.replace(ra, sa);
|
|
817
|
-
z[b] = new v$
|
|
817
|
+
z[b] = new v$1(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
818
818
|
});
|
|
819
819
|
["tabIndex", "crossOrigin"].forEach(function (a) {
|
|
820
|
-
z[a] = new v$
|
|
820
|
+
z[a] = new v$1(a, 1, !1, a.toLowerCase(), null, !1, !1);
|
|
821
821
|
});
|
|
822
|
-
z.xlinkHref = new v$
|
|
822
|
+
z.xlinkHref = new v$1("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
|
|
823
823
|
["src", "href", "action", "formAction"].forEach(function (a) {
|
|
824
|
-
z[a] = new v$
|
|
824
|
+
z[a] = new v$1(a, 1, !1, a.toLowerCase(), null, !0, !0);
|
|
825
825
|
});
|
|
826
826
|
function ta(a, b, c, d) {
|
|
827
827
|
var e = z.hasOwnProperty(b) ? z[b] : null;
|
|
@@ -1174,7 +1174,7 @@
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
function gb(a, b) {
|
|
1177
|
-
if (null != b.dangerouslySetInnerHTML) throw Error(p$
|
|
1177
|
+
if (null != b.dangerouslySetInnerHTML) throw Error(p$3(91));
|
|
1178
1178
|
return A({}, b, {
|
|
1179
1179
|
value: void 0,
|
|
1180
1180
|
defaultValue: void 0,
|
|
@@ -1187,9 +1187,9 @@
|
|
|
1187
1187
|
c = b.children;
|
|
1188
1188
|
b = b.defaultValue;
|
|
1189
1189
|
if (null != c) {
|
|
1190
|
-
if (null != b) throw Error(p$
|
|
1190
|
+
if (null != b) throw Error(p$3(92));
|
|
1191
1191
|
if (eb(c)) {
|
|
1192
|
-
if (1 < c.length) throw Error(p$
|
|
1192
|
+
if (1 < c.length) throw Error(p$3(93));
|
|
1193
1193
|
c = c[0];
|
|
1194
1194
|
}
|
|
1195
1195
|
b = c;
|
|
@@ -1334,12 +1334,12 @@
|
|
|
1334
1334
|
});
|
|
1335
1335
|
function ub(a, b) {
|
|
1336
1336
|
if (b) {
|
|
1337
|
-
if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p$
|
|
1337
|
+
if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p$3(137, a));
|
|
1338
1338
|
if (null != b.dangerouslySetInnerHTML) {
|
|
1339
|
-
if (null != b.children) throw Error(p$
|
|
1340
|
-
if ("object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p$
|
|
1339
|
+
if (null != b.children) throw Error(p$3(60));
|
|
1340
|
+
if ("object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p$3(61));
|
|
1341
1341
|
}
|
|
1342
|
-
if (null != b.style && "object" !== typeof b.style) throw Error(p$
|
|
1342
|
+
if (null != b.style && "object" !== typeof b.style) throw Error(p$3(62));
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
function vb(a, b) {
|
|
@@ -1369,7 +1369,7 @@
|
|
|
1369
1369
|
Ab = null;
|
|
1370
1370
|
function Bb(a) {
|
|
1371
1371
|
if (a = Cb(a)) {
|
|
1372
|
-
if ("function" !== typeof yb) throw Error(p$
|
|
1372
|
+
if ("function" !== typeof yb) throw Error(p$3(280));
|
|
1373
1373
|
var b = a.stateNode;
|
|
1374
1374
|
b && (b = Db(b), yb(a.stateNode, a.type, b));
|
|
1375
1375
|
}
|
|
@@ -1425,7 +1425,7 @@
|
|
|
1425
1425
|
a = !1;
|
|
1426
1426
|
}
|
|
1427
1427
|
if (a) return null;
|
|
1428
|
-
if (c && "function" !== typeof c) throw Error(p$
|
|
1428
|
+
if (c && "function" !== typeof c) throw Error(p$3(231, b, typeof c));
|
|
1429
1429
|
return c;
|
|
1430
1430
|
}
|
|
1431
1431
|
var Lb = !1;
|
|
@@ -1471,7 +1471,7 @@
|
|
|
1471
1471
|
var l = Pb;
|
|
1472
1472
|
Ob = !1;
|
|
1473
1473
|
Pb = null;
|
|
1474
|
-
} else throw Error(p$
|
|
1474
|
+
} else throw Error(p$3(198));
|
|
1475
1475
|
Qb || (Qb = !0, Rb = l);
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
@@ -1493,13 +1493,13 @@
|
|
|
1493
1493
|
return null;
|
|
1494
1494
|
}
|
|
1495
1495
|
function Xb(a) {
|
|
1496
|
-
if (Vb(a) !== a) throw Error(p$
|
|
1496
|
+
if (Vb(a) !== a) throw Error(p$3(188));
|
|
1497
1497
|
}
|
|
1498
1498
|
function Yb(a) {
|
|
1499
1499
|
var b = a.alternate;
|
|
1500
1500
|
if (!b) {
|
|
1501
1501
|
b = Vb(a);
|
|
1502
|
-
if (null === b) throw Error(p$
|
|
1502
|
+
if (null === b) throw Error(p$3(188));
|
|
1503
1503
|
return b !== a ? null : a;
|
|
1504
1504
|
}
|
|
1505
1505
|
for (var c = a, d = b;;) {
|
|
@@ -1520,7 +1520,7 @@
|
|
|
1520
1520
|
if (f === d) return Xb(e), b;
|
|
1521
1521
|
f = f.sibling;
|
|
1522
1522
|
}
|
|
1523
|
-
throw Error(p$
|
|
1523
|
+
throw Error(p$3(188));
|
|
1524
1524
|
}
|
|
1525
1525
|
if (c.return !== d.return) c = e, d = f;else {
|
|
1526
1526
|
for (var g = !1, h = e.child; h;) {
|
|
@@ -1554,12 +1554,12 @@
|
|
|
1554
1554
|
}
|
|
1555
1555
|
h = h.sibling;
|
|
1556
1556
|
}
|
|
1557
|
-
if (!g) throw Error(p$
|
|
1557
|
+
if (!g) throw Error(p$3(189));
|
|
1558
1558
|
}
|
|
1559
1559
|
}
|
|
1560
|
-
if (c.alternate !== d) throw Error(p$
|
|
1560
|
+
if (c.alternate !== d) throw Error(p$3(190));
|
|
1561
1561
|
}
|
|
1562
|
-
if (3 !== c.tag) throw Error(p$
|
|
1562
|
+
if (3 !== c.tag) throw Error(p$3(188));
|
|
1563
1563
|
return c.stateNode.current === c ? a : b;
|
|
1564
1564
|
}
|
|
1565
1565
|
function Zb(a) {
|
|
@@ -2977,7 +2977,7 @@
|
|
|
2977
2977
|
}
|
|
2978
2978
|
function Af(a, b, c) {
|
|
2979
2979
|
b = zf(b);
|
|
2980
|
-
if (zf(a) !== b && c) throw Error(p$
|
|
2980
|
+
if (zf(a) !== b && c) throw Error(p$3(425));
|
|
2981
2981
|
}
|
|
2982
2982
|
function Bf() {}
|
|
2983
2983
|
var Cf = null,
|
|
@@ -3070,7 +3070,7 @@
|
|
|
3070
3070
|
}
|
|
3071
3071
|
function ue(a) {
|
|
3072
3072
|
if (5 === a.tag || 6 === a.tag) return a.stateNode;
|
|
3073
|
-
throw Error(p$
|
|
3073
|
+
throw Error(p$3(33));
|
|
3074
3074
|
}
|
|
3075
3075
|
function Db(a) {
|
|
3076
3076
|
return a[Pf] || null;
|
|
@@ -3114,7 +3114,7 @@
|
|
|
3114
3114
|
E(H);
|
|
3115
3115
|
}
|
|
3116
3116
|
function ag(a, b, c) {
|
|
3117
|
-
if (H.current !== Vf) throw Error(p$
|
|
3117
|
+
if (H.current !== Vf) throw Error(p$3(168));
|
|
3118
3118
|
G(H, b);
|
|
3119
3119
|
G(Wf, c);
|
|
3120
3120
|
}
|
|
@@ -3123,7 +3123,7 @@
|
|
|
3123
3123
|
b = b.childContextTypes;
|
|
3124
3124
|
if ("function" !== typeof d.getChildContext) return c;
|
|
3125
3125
|
d = d.getChildContext();
|
|
3126
|
-
for (var e in d) if (!(e in b)) throw Error(p$
|
|
3126
|
+
for (var e in d) if (!(e in b)) throw Error(p$3(108, Ra(a) || "Unknown", e));
|
|
3127
3127
|
return A({}, c, d);
|
|
3128
3128
|
}
|
|
3129
3129
|
function cg(a) {
|
|
@@ -3135,7 +3135,7 @@
|
|
|
3135
3135
|
}
|
|
3136
3136
|
function dg(a, b, c) {
|
|
3137
3137
|
var d = a.stateNode;
|
|
3138
|
-
if (!d) throw Error(p$
|
|
3138
|
+
if (!d) throw Error(p$3(169));
|
|
3139
3139
|
c ? (a = bg(a, b, Xf), d.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf);
|
|
3140
3140
|
G(Wf, c);
|
|
3141
3141
|
}
|
|
@@ -3254,13 +3254,13 @@
|
|
|
3254
3254
|
if (b) {
|
|
3255
3255
|
var c = b;
|
|
3256
3256
|
if (!Cg(a, b)) {
|
|
3257
|
-
if (Dg(a)) throw Error(p$
|
|
3257
|
+
if (Dg(a)) throw Error(p$3(418));
|
|
3258
3258
|
b = Lf(c.nextSibling);
|
|
3259
3259
|
var d = xg;
|
|
3260
3260
|
b && Cg(a, b) ? Ag(d, c) : (a.flags = a.flags & -4097 | 2, I = !1, xg = a);
|
|
3261
3261
|
}
|
|
3262
3262
|
} else {
|
|
3263
|
-
if (Dg(a)) throw Error(p$
|
|
3263
|
+
if (Dg(a)) throw Error(p$3(418));
|
|
3264
3264
|
a.flags = a.flags & -4097 | 2;
|
|
3265
3265
|
I = !1;
|
|
3266
3266
|
xg = a;
|
|
@@ -3277,14 +3277,14 @@
|
|
|
3277
3277
|
var b;
|
|
3278
3278
|
(b = 3 !== a.tag) && !(b = 5 !== a.tag) && (b = a.type, b = "head" !== b && "body" !== b && !Ef(a.type, a.memoizedProps));
|
|
3279
3279
|
if (b && (b = yg)) {
|
|
3280
|
-
if (Dg(a)) throw Hg(), Error(p$
|
|
3280
|
+
if (Dg(a)) throw Hg(), Error(p$3(418));
|
|
3281
3281
|
for (; b;) Ag(a, b), b = Lf(b.nextSibling);
|
|
3282
3282
|
}
|
|
3283
3283
|
Fg(a);
|
|
3284
3284
|
if (13 === a.tag) {
|
|
3285
3285
|
a = a.memoizedState;
|
|
3286
3286
|
a = null !== a ? a.dehydrated : null;
|
|
3287
|
-
if (!a) throw Error(p$
|
|
3287
|
+
if (!a) throw Error(p$3(317));
|
|
3288
3288
|
a: {
|
|
3289
3289
|
a = a.nextSibling;
|
|
3290
3290
|
for (b = 0; a;) {
|
|
@@ -3322,10 +3322,10 @@
|
|
|
3322
3322
|
if (c._owner) {
|
|
3323
3323
|
c = c._owner;
|
|
3324
3324
|
if (c) {
|
|
3325
|
-
if (1 !== c.tag) throw Error(p$
|
|
3325
|
+
if (1 !== c.tag) throw Error(p$3(309));
|
|
3326
3326
|
var d = c.stateNode;
|
|
3327
3327
|
}
|
|
3328
|
-
if (!d) throw Error(p$
|
|
3328
|
+
if (!d) throw Error(p$3(147, a));
|
|
3329
3329
|
var e = d,
|
|
3330
3330
|
f = "" + a;
|
|
3331
3331
|
if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f) return b.ref;
|
|
@@ -3336,14 +3336,14 @@
|
|
|
3336
3336
|
b._stringRef = f;
|
|
3337
3337
|
return b;
|
|
3338
3338
|
}
|
|
3339
|
-
if ("string" !== typeof a) throw Error(p$
|
|
3340
|
-
if (!c._owner) throw Error(p$
|
|
3339
|
+
if ("string" !== typeof a) throw Error(p$3(284));
|
|
3340
|
+
if (!c._owner) throw Error(p$3(290, a));
|
|
3341
3341
|
}
|
|
3342
3342
|
return a;
|
|
3343
3343
|
}
|
|
3344
3344
|
function Mg(a, b) {
|
|
3345
3345
|
a = Object.prototype.toString.call(b);
|
|
3346
|
-
throw Error(p$
|
|
3346
|
+
throw Error(p$3(31, "[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a));
|
|
3347
3347
|
}
|
|
3348
3348
|
function Ng(a) {
|
|
3349
3349
|
var b = a._init;
|
|
@@ -3490,9 +3490,9 @@
|
|
|
3490
3490
|
}
|
|
3491
3491
|
function t(e, g, h, k) {
|
|
3492
3492
|
var l = Ka(h);
|
|
3493
|
-
if ("function" !== typeof l) throw Error(p$
|
|
3493
|
+
if ("function" !== typeof l) throw Error(p$3(150));
|
|
3494
3494
|
h = l.call(h);
|
|
3495
|
-
if (null == h) throw Error(p$
|
|
3495
|
+
if (null == h) throw Error(p$3(151));
|
|
3496
3496
|
for (var u = l = null, m = g, w = g = 0, x = null, n = h.next(); null !== m && !n.done; w++, n = h.next()) {
|
|
3497
3497
|
m.index > w ? (x = m, m = null) : x = m.sibling;
|
|
3498
3498
|
var t = r(e, m, n.value, k);
|
|
@@ -3620,7 +3620,7 @@
|
|
|
3620
3620
|
memoizedValue: b,
|
|
3621
3621
|
next: null
|
|
3622
3622
|
}, null === Yg) {
|
|
3623
|
-
if (null === Xg) throw Error(p$
|
|
3623
|
+
if (null === Xg) throw Error(p$3(308));
|
|
3624
3624
|
Yg = a;
|
|
3625
3625
|
Xg.dependencies = {
|
|
3626
3626
|
lanes: 0,
|
|
@@ -3836,7 +3836,7 @@
|
|
|
3836
3836
|
if (null !== e) {
|
|
3837
3837
|
d.callback = null;
|
|
3838
3838
|
d = c;
|
|
3839
|
-
if ("function" !== typeof e) throw Error(p$
|
|
3839
|
+
if ("function" !== typeof e) throw Error(p$3(191, e));
|
|
3840
3840
|
e.call(d);
|
|
3841
3841
|
}
|
|
3842
3842
|
}
|
|
@@ -3846,7 +3846,7 @@
|
|
|
3846
3846
|
vh$1 = Uf(th),
|
|
3847
3847
|
wh = Uf(th);
|
|
3848
3848
|
function xh(a) {
|
|
3849
|
-
if (a === th) throw Error(p$
|
|
3849
|
+
if (a === th) throw Error(p$3(174));
|
|
3850
3850
|
return a;
|
|
3851
3851
|
}
|
|
3852
3852
|
function yh(a, b) {
|
|
@@ -3918,7 +3918,7 @@
|
|
|
3918
3918
|
Kh = 0,
|
|
3919
3919
|
Lh = 0;
|
|
3920
3920
|
function P() {
|
|
3921
|
-
throw Error(p$
|
|
3921
|
+
throw Error(p$3(321));
|
|
3922
3922
|
}
|
|
3923
3923
|
function Mh(a, b) {
|
|
3924
3924
|
if (null === b) return !1;
|
|
@@ -3938,7 +3938,7 @@
|
|
|
3938
3938
|
do {
|
|
3939
3939
|
Jh = !1;
|
|
3940
3940
|
Kh = 0;
|
|
3941
|
-
if (25 <= f) throw Error(p$
|
|
3941
|
+
if (25 <= f) throw Error(p$3(301));
|
|
3942
3942
|
f += 1;
|
|
3943
3943
|
O = N = null;
|
|
3944
3944
|
b.updateQueue = null;
|
|
@@ -3951,7 +3951,7 @@
|
|
|
3951
3951
|
Hh = 0;
|
|
3952
3952
|
O = N = M = null;
|
|
3953
3953
|
Ih = !1;
|
|
3954
|
-
if (b) throw Error(p$
|
|
3954
|
+
if (b) throw Error(p$3(300));
|
|
3955
3955
|
return a;
|
|
3956
3956
|
}
|
|
3957
3957
|
function Sh() {
|
|
@@ -3977,7 +3977,7 @@
|
|
|
3977
3977
|
} else a = N.next;
|
|
3978
3978
|
var b = null === O ? M.memoizedState : O.next;
|
|
3979
3979
|
if (null !== b) O = b, N = a;else {
|
|
3980
|
-
if (null === a) throw Error(p$
|
|
3980
|
+
if (null === a) throw Error(p$3(310));
|
|
3981
3981
|
N = a;
|
|
3982
3982
|
a = {
|
|
3983
3983
|
memoizedState: N.memoizedState,
|
|
@@ -3996,7 +3996,7 @@
|
|
|
3996
3996
|
function Wh(a) {
|
|
3997
3997
|
var b = Uh(),
|
|
3998
3998
|
c = b.queue;
|
|
3999
|
-
if (null === c) throw Error(p$
|
|
3999
|
+
if (null === c) throw Error(p$3(311));
|
|
4000
4000
|
c.lastRenderedReducer = a;
|
|
4001
4001
|
var d = N,
|
|
4002
4002
|
e = d.baseQueue,
|
|
@@ -4055,7 +4055,7 @@
|
|
|
4055
4055
|
function Xh(a) {
|
|
4056
4056
|
var b = Uh(),
|
|
4057
4057
|
c = b.queue;
|
|
4058
|
-
if (null === c) throw Error(p$
|
|
4058
|
+
if (null === c) throw Error(p$3(311));
|
|
4059
4059
|
c.lastRenderedReducer = a;
|
|
4060
4060
|
var d = c.dispatch,
|
|
4061
4061
|
e = c.pending,
|
|
@@ -4083,7 +4083,7 @@
|
|
|
4083
4083
|
if (d.getSnapshot !== b || f || null !== O && O.memoizedState.tag & 1) {
|
|
4084
4084
|
c.flags |= 2048;
|
|
4085
4085
|
bi(9, ci.bind(null, c, d, e, b), void 0, null);
|
|
4086
|
-
if (null === Q) throw Error(p$
|
|
4086
|
+
if (null === Q) throw Error(p$3(349));
|
|
4087
4087
|
0 !== (Hh & 30) || di(c, b, e);
|
|
4088
4088
|
}
|
|
4089
4089
|
return e;
|
|
@@ -4386,11 +4386,11 @@
|
|
|
4386
4386
|
var d = M,
|
|
4387
4387
|
e = Th();
|
|
4388
4388
|
if (I) {
|
|
4389
|
-
if (void 0 === c) throw Error(p$
|
|
4389
|
+
if (void 0 === c) throw Error(p$3(407));
|
|
4390
4390
|
c = c();
|
|
4391
4391
|
} else {
|
|
4392
4392
|
c = b();
|
|
4393
|
-
if (null === Q) throw Error(p$
|
|
4393
|
+
if (null === Q) throw Error(p$3(349));
|
|
4394
4394
|
0 !== (Hh & 30) || di(d, b, c);
|
|
4395
4395
|
}
|
|
4396
4396
|
e.memoizedState = c;
|
|
@@ -4914,7 +4914,7 @@
|
|
|
4914
4914
|
}
|
|
4915
4915
|
function rj(a, b, c, d, e, f, g) {
|
|
4916
4916
|
if (c) {
|
|
4917
|
-
if (b.flags & 256) return b.flags &= -257, d = Ki(Error(p$
|
|
4917
|
+
if (b.flags & 256) return b.flags &= -257, d = Ki(Error(p$3(422))), sj(a, b, g, d);
|
|
4918
4918
|
if (null !== b.memoizedState) return b.child = a.child, b.flags |= 128, null;
|
|
4919
4919
|
f = d.fallback;
|
|
4920
4920
|
e = b.mode;
|
|
@@ -4938,7 +4938,7 @@
|
|
|
4938
4938
|
d = e.nextSibling && e.nextSibling.dataset;
|
|
4939
4939
|
if (d) var h = d.dgst;
|
|
4940
4940
|
d = h;
|
|
4941
|
-
f = Error(p$
|
|
4941
|
+
f = Error(p$3(419));
|
|
4942
4942
|
d = Ki(f, d, void 0);
|
|
4943
4943
|
return sj(a, b, g, d);
|
|
4944
4944
|
}
|
|
@@ -4986,7 +4986,7 @@
|
|
|
4986
4986
|
0 !== e && e !== f.retryLane && (f.retryLane = e, ih(a, e), gi(d, a, e, -1));
|
|
4987
4987
|
}
|
|
4988
4988
|
tj();
|
|
4989
|
-
d = Ki(Error(p$
|
|
4989
|
+
d = Ki(Error(p$3(421)));
|
|
4990
4990
|
return sj(a, b, g, d);
|
|
4991
4991
|
}
|
|
4992
4992
|
if ("$?" === e.data) return b.flags |= 128, b.child = a.child, b = uj.bind(null, a), e._reactRetry = b, null;
|
|
@@ -5080,7 +5080,7 @@
|
|
|
5080
5080
|
null !== a && (b.dependencies = a.dependencies);
|
|
5081
5081
|
rh |= b.lanes;
|
|
5082
5082
|
if (0 === (c & b.childLanes)) return null;
|
|
5083
|
-
if (null !== a && b.child !== a.child) throw Error(p$
|
|
5083
|
+
if (null !== a && b.child !== a.child) throw Error(p$3(153));
|
|
5084
5084
|
if (null !== b.child) {
|
|
5085
5085
|
a = b.child;
|
|
5086
5086
|
c = Pg(a, a.pendingProps);
|
|
@@ -5266,7 +5266,7 @@
|
|
|
5266
5266
|
c = b.type;
|
|
5267
5267
|
if (null !== a && null != b.stateNode) Bj(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152);else {
|
|
5268
5268
|
if (!d) {
|
|
5269
|
-
if (null === b.stateNode) throw Error(p$
|
|
5269
|
+
if (null === b.stateNode) throw Error(p$3(166));
|
|
5270
5270
|
S(b);
|
|
5271
5271
|
return null;
|
|
5272
5272
|
}
|
|
@@ -5458,7 +5458,7 @@
|
|
|
5458
5458
|
return null;
|
|
5459
5459
|
case 6:
|
|
5460
5460
|
if (a && null != b.stateNode) Cj(a, b, a.memoizedProps, d);else {
|
|
5461
|
-
if ("string" !== typeof d && null === b.stateNode) throw Error(p$
|
|
5461
|
+
if ("string" !== typeof d && null === b.stateNode) throw Error(p$3(166));
|
|
5462
5462
|
c = xh(wh.current);
|
|
5463
5463
|
xh(uh.current);
|
|
5464
5464
|
if (Gg(b)) {
|
|
@@ -5483,10 +5483,10 @@
|
|
|
5483
5483
|
if (null === a || null !== a.memoizedState && null !== a.memoizedState.dehydrated) {
|
|
5484
5484
|
if (I && null !== yg && 0 !== (b.mode & 1) && 0 === (b.flags & 128)) Hg(), Ig(), b.flags |= 98560, f = !1;else if (f = Gg(b), null !== d && null !== d.dehydrated) {
|
|
5485
5485
|
if (null === a) {
|
|
5486
|
-
if (!f) throw Error(p$
|
|
5486
|
+
if (!f) throw Error(p$3(318));
|
|
5487
5487
|
f = b.memoizedState;
|
|
5488
5488
|
f = null !== f ? f.dehydrated : null;
|
|
5489
|
-
if (!f) throw Error(p$
|
|
5489
|
+
if (!f) throw Error(p$3(317));
|
|
5490
5490
|
f[Of] = b;
|
|
5491
5491
|
} else Ig(), 0 === (b.flags & 128) && (b.memoizedState = null), b.flags |= 4;
|
|
5492
5492
|
S(b);
|
|
@@ -5551,7 +5551,7 @@
|
|
|
5551
5551
|
case 25:
|
|
5552
5552
|
return null;
|
|
5553
5553
|
}
|
|
5554
|
-
throw Error(p$
|
|
5554
|
+
throw Error(p$3(156, b.tag));
|
|
5555
5555
|
}
|
|
5556
5556
|
function Ij(a, b) {
|
|
5557
5557
|
wg(b);
|
|
@@ -5566,7 +5566,7 @@
|
|
|
5566
5566
|
E(L);
|
|
5567
5567
|
a = b.memoizedState;
|
|
5568
5568
|
if (null !== a && null !== a.dehydrated) {
|
|
5569
|
-
if (null === b.alternate) throw Error(p$
|
|
5569
|
+
if (null === b.alternate) throw Error(p$3(340));
|
|
5570
5570
|
Ig();
|
|
5571
5571
|
}
|
|
5572
5572
|
a = b.flags;
|
|
@@ -5691,7 +5691,7 @@
|
|
|
5691
5691
|
case 17:
|
|
5692
5692
|
break;
|
|
5693
5693
|
default:
|
|
5694
|
-
throw Error(p$
|
|
5694
|
+
throw Error(p$3(163));
|
|
5695
5695
|
}
|
|
5696
5696
|
} catch (F) {
|
|
5697
5697
|
W(b, b.return, F);
|
|
@@ -5896,7 +5896,7 @@
|
|
|
5896
5896
|
}
|
|
5897
5897
|
h = h.return;
|
|
5898
5898
|
}
|
|
5899
|
-
if (null === X) throw Error(p$
|
|
5899
|
+
if (null === X) throw Error(p$3(160));
|
|
5900
5900
|
Zj(f, g, e);
|
|
5901
5901
|
X = null;
|
|
5902
5902
|
Xj = !1;
|
|
@@ -5987,7 +5987,7 @@
|
|
|
5987
5987
|
ck(b, a);
|
|
5988
5988
|
ek(a);
|
|
5989
5989
|
if (d & 4) {
|
|
5990
|
-
if (null === a.stateNode) throw Error(p$
|
|
5990
|
+
if (null === a.stateNode) throw Error(p$3(162));
|
|
5991
5991
|
e = a.stateNode;
|
|
5992
5992
|
f = a.memoizedProps;
|
|
5993
5993
|
try {
|
|
@@ -6116,7 +6116,7 @@
|
|
|
6116
6116
|
}
|
|
6117
6117
|
c = c.return;
|
|
6118
6118
|
}
|
|
6119
|
-
throw Error(p$
|
|
6119
|
+
throw Error(p$3(160));
|
|
6120
6120
|
}
|
|
6121
6121
|
switch (d.tag) {
|
|
6122
6122
|
case 5:
|
|
@@ -6132,7 +6132,7 @@
|
|
|
6132
6132
|
Vj(a, h, g);
|
|
6133
6133
|
break;
|
|
6134
6134
|
default:
|
|
6135
|
-
throw Error(p$
|
|
6135
|
+
throw Error(p$3(161));
|
|
6136
6136
|
}
|
|
6137
6137
|
} catch (k) {
|
|
6138
6138
|
W(a, a.return, k);
|
|
@@ -6245,7 +6245,7 @@
|
|
|
6245
6245
|
case 25:
|
|
6246
6246
|
break;
|
|
6247
6247
|
default:
|
|
6248
|
-
throw Error(p$
|
|
6248
|
+
throw Error(p$3(163));
|
|
6249
6249
|
}
|
|
6250
6250
|
U || b.flags & 512 && Rj(b);
|
|
6251
6251
|
} catch (r) {
|
|
@@ -6381,7 +6381,7 @@
|
|
|
6381
6381
|
return a;
|
|
6382
6382
|
}
|
|
6383
6383
|
function gi(a, b, c, d) {
|
|
6384
|
-
if (50 < yk) throw yk = 0, zk = null, Error(p$
|
|
6384
|
+
if (50 < yk) throw yk = 0, zk = null, Error(p$3(185));
|
|
6385
6385
|
Ac(a, c, d);
|
|
6386
6386
|
if (0 === (K & 2) || a !== Q) a === Q && (0 === (K & 2) && (qk |= c), 4 === T && Ck(a, Z)), Dk(a, d), 1 === c && 0 === K && 0 === (b.mode & 1) && (Gj = B() + 500, fg && jg());
|
|
6387
6387
|
}
|
|
@@ -6419,7 +6419,7 @@
|
|
|
6419
6419
|
function Gk(a, b) {
|
|
6420
6420
|
Ak = -1;
|
|
6421
6421
|
Bk = 0;
|
|
6422
|
-
if (0 !== (K & 6)) throw Error(p$
|
|
6422
|
+
if (0 !== (K & 6)) throw Error(p$3(327));
|
|
6423
6423
|
var c = a.callbackNode;
|
|
6424
6424
|
if (Hk() && a.callbackNode !== c) return null;
|
|
6425
6425
|
var d = uc(a, a === Q ? Z : 0);
|
|
@@ -6452,7 +6452,7 @@
|
|
|
6452
6452
|
switch (b) {
|
|
6453
6453
|
case 0:
|
|
6454
6454
|
case 1:
|
|
6455
|
-
throw Error(p$
|
|
6455
|
+
throw Error(p$3(345));
|
|
6456
6456
|
case 2:
|
|
6457
6457
|
Pk(a, tk, uk);
|
|
6458
6458
|
break;
|
|
@@ -6495,7 +6495,7 @@
|
|
|
6495
6495
|
Pk(a, tk, uk);
|
|
6496
6496
|
break;
|
|
6497
6497
|
default:
|
|
6498
|
-
throw Error(p$
|
|
6498
|
+
throw Error(p$3(329));
|
|
6499
6499
|
}
|
|
6500
6500
|
}
|
|
6501
6501
|
}
|
|
@@ -6553,7 +6553,7 @@
|
|
|
6553
6553
|
}
|
|
6554
6554
|
}
|
|
6555
6555
|
function Ek(a) {
|
|
6556
|
-
if (0 !== (K & 6)) throw Error(p$
|
|
6556
|
+
if (0 !== (K & 6)) throw Error(p$3(327));
|
|
6557
6557
|
Hk();
|
|
6558
6558
|
var b = uc(a, 0);
|
|
6559
6559
|
if (0 === (b & 1)) return Dk(a, B()), null;
|
|
@@ -6563,7 +6563,7 @@
|
|
|
6563
6563
|
0 !== d && (b = d, c = Nk(a, d));
|
|
6564
6564
|
}
|
|
6565
6565
|
if (1 === c) throw c = pk, Kk(a, 0), Ck(a, b), Dk(a, B()), c;
|
|
6566
|
-
if (6 === c) throw Error(p$
|
|
6566
|
+
if (6 === c) throw Error(p$3(345));
|
|
6567
6567
|
a.finishedWork = a.current.alternate;
|
|
6568
6568
|
a.finishedLanes = b;
|
|
6569
6569
|
Pk(a, tk, uk);
|
|
@@ -6718,7 +6718,7 @@
|
|
|
6718
6718
|
tj();
|
|
6719
6719
|
break a;
|
|
6720
6720
|
}
|
|
6721
|
-
k = Error(p$
|
|
6721
|
+
k = Error(p$3(426));
|
|
6722
6722
|
}
|
|
6723
6723
|
} else if (I && h.mode & 1) {
|
|
6724
6724
|
var J = Ui(g);
|
|
@@ -6790,7 +6790,7 @@
|
|
|
6790
6790
|
$g();
|
|
6791
6791
|
K = c;
|
|
6792
6792
|
mk.current = d;
|
|
6793
|
-
if (null !== Y) throw Error(p$
|
|
6793
|
+
if (null !== Y) throw Error(p$3(261));
|
|
6794
6794
|
Q = null;
|
|
6795
6795
|
Z = 0;
|
|
6796
6796
|
return T;
|
|
@@ -6851,13 +6851,13 @@
|
|
|
6851
6851
|
}
|
|
6852
6852
|
function Wk(a, b, c, d) {
|
|
6853
6853
|
do Hk(); while (null !== wk);
|
|
6854
|
-
if (0 !== (K & 6)) throw Error(p$
|
|
6854
|
+
if (0 !== (K & 6)) throw Error(p$3(327));
|
|
6855
6855
|
c = a.finishedWork;
|
|
6856
6856
|
var e = a.finishedLanes;
|
|
6857
6857
|
if (null === c) return null;
|
|
6858
6858
|
a.finishedWork = null;
|
|
6859
6859
|
a.finishedLanes = 0;
|
|
6860
|
-
if (c === a.current) throw Error(p$
|
|
6860
|
+
if (c === a.current) throw Error(p$3(177));
|
|
6861
6861
|
a.callbackNode = null;
|
|
6862
6862
|
a.callbackPriority = 0;
|
|
6863
6863
|
var f = c.lanes | c.childLanes;
|
|
@@ -6916,7 +6916,7 @@
|
|
|
6916
6916
|
a = wk;
|
|
6917
6917
|
wk = null;
|
|
6918
6918
|
xk = 0;
|
|
6919
|
-
if (0 !== (K & 6)) throw Error(p$
|
|
6919
|
+
if (0 !== (K & 6)) throw Error(p$3(331));
|
|
6920
6920
|
var e = K;
|
|
6921
6921
|
K |= 4;
|
|
6922
6922
|
for (V = a.current; null !== V;) {
|
|
@@ -7087,7 +7087,7 @@
|
|
|
7087
7087
|
d = a.stateNode;
|
|
7088
7088
|
break;
|
|
7089
7089
|
default:
|
|
7090
|
-
throw Error(p$
|
|
7090
|
+
throw Error(p$3(314));
|
|
7091
7091
|
}
|
|
7092
7092
|
null !== d && d.delete(b);
|
|
7093
7093
|
Yk(a, c);
|
|
@@ -7137,7 +7137,7 @@
|
|
|
7137
7137
|
b = $i(null, b, d, Ci(d.type, a), c);
|
|
7138
7138
|
break a;
|
|
7139
7139
|
}
|
|
7140
|
-
throw Error(p$
|
|
7140
|
+
throw Error(p$3(306, d, ""));
|
|
7141
7141
|
}
|
|
7142
7142
|
return b;
|
|
7143
7143
|
case 0:
|
|
@@ -7147,7 +7147,7 @@
|
|
|
7147
7147
|
case 3:
|
|
7148
7148
|
a: {
|
|
7149
7149
|
kj(b);
|
|
7150
|
-
if (null === a) throw Error(p$
|
|
7150
|
+
if (null === a) throw Error(p$3(387));
|
|
7151
7151
|
d = b.pendingProps;
|
|
7152
7152
|
f = b.memoizedState;
|
|
7153
7153
|
e = f.element;
|
|
@@ -7163,11 +7163,11 @@
|
|
|
7163
7163
|
pendingSuspenseBoundaries: g.pendingSuspenseBoundaries,
|
|
7164
7164
|
transitions: g.transitions
|
|
7165
7165
|
}, b.updateQueue.baseState = f, b.memoizedState = f, b.flags & 256) {
|
|
7166
|
-
e = Ji(Error(p$
|
|
7166
|
+
e = Ji(Error(p$3(423)), b);
|
|
7167
7167
|
b = lj(a, b, d, c, e);
|
|
7168
7168
|
break a;
|
|
7169
7169
|
} else if (d !== e) {
|
|
7170
|
-
e = Ji(Error(p$
|
|
7170
|
+
e = Ji(Error(p$3(424)), b);
|
|
7171
7171
|
b = lj(a, b, d, c, e);
|
|
7172
7172
|
break a;
|
|
7173
7173
|
} else for (yg = Lf(b.stateNode.containerInfo.firstChild), xg = b, I = !0, zg = null, c = Vg(b, null, d, c), b.child = c; c;) c.flags = c.flags & -3 | 4096, c = c.sibling;
|
|
@@ -7239,7 +7239,7 @@
|
|
|
7239
7239
|
}
|
|
7240
7240
|
} else if (10 === f.tag) g = f.type === b.type ? null : f.child;else if (18 === f.tag) {
|
|
7241
7241
|
g = f.return;
|
|
7242
|
-
if (null === g) throw Error(p$
|
|
7242
|
+
if (null === g) throw Error(p$3(341));
|
|
7243
7243
|
g.lanes |= c;
|
|
7244
7244
|
h = g.alternate;
|
|
7245
7245
|
null !== h && (h.lanes |= c);
|
|
@@ -7278,7 +7278,7 @@
|
|
|
7278
7278
|
case 22:
|
|
7279
7279
|
return dj(a, b, c);
|
|
7280
7280
|
}
|
|
7281
|
-
throw Error(p$
|
|
7281
|
+
throw Error(p$3(156, b.tag));
|
|
7282
7282
|
};
|
|
7283
7283
|
function Fk(a, b) {
|
|
7284
7284
|
return ac(a, b);
|
|
@@ -7370,7 +7370,7 @@
|
|
|
7370
7370
|
d = null;
|
|
7371
7371
|
break a;
|
|
7372
7372
|
}
|
|
7373
|
-
throw Error(p$
|
|
7373
|
+
throw Error(p$3(130, null == a ? a : typeof a, ""));
|
|
7374
7374
|
}
|
|
7375
7375
|
b = Bg(g, c, b, e);
|
|
7376
7376
|
b.elementType = a;
|
|
@@ -7452,7 +7452,7 @@
|
|
|
7452
7452
|
if (!a) return Vf;
|
|
7453
7453
|
a = a._reactInternals;
|
|
7454
7454
|
a: {
|
|
7455
|
-
if (Vb(a) !== a || 1 !== a.tag) throw Error(p$
|
|
7455
|
+
if (Vb(a) !== a || 1 !== a.tag) throw Error(p$3(170));
|
|
7456
7456
|
var b = a;
|
|
7457
7457
|
do {
|
|
7458
7458
|
switch (b.tag) {
|
|
@@ -7467,7 +7467,7 @@
|
|
|
7467
7467
|
}
|
|
7468
7468
|
b = b.return;
|
|
7469
7469
|
} while (null !== b);
|
|
7470
|
-
throw Error(p$
|
|
7470
|
+
throw Error(p$3(171));
|
|
7471
7471
|
}
|
|
7472
7472
|
if (1 === a.tag) {
|
|
7473
7473
|
var c = a.type;
|
|
@@ -7537,7 +7537,7 @@
|
|
|
7537
7537
|
}
|
|
7538
7538
|
ml.prototype.render = ll.prototype.render = function (a) {
|
|
7539
7539
|
var b = this._internalRoot;
|
|
7540
|
-
if (null === b) throw Error(p$
|
|
7540
|
+
if (null === b) throw Error(p$3(409));
|
|
7541
7541
|
fl(a, b, null, null);
|
|
7542
7542
|
};
|
|
7543
7543
|
ml.prototype.unmount = ll.prototype.unmount = function () {
|
|
@@ -7685,7 +7685,7 @@
|
|
|
7685
7685
|
var d = c[b];
|
|
7686
7686
|
if (d !== a && d.form === a.form) {
|
|
7687
7687
|
var e = Db(d);
|
|
7688
|
-
if (!e) throw Error(p$
|
|
7688
|
+
if (!e) throw Error(p$3(90));
|
|
7689
7689
|
Wa(d);
|
|
7690
7690
|
bb(d, e);
|
|
7691
7691
|
}
|
|
@@ -7747,11 +7747,11 @@
|
|
|
7747
7747
|
reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sl;
|
|
7748
7748
|
reactDom_production_min.createPortal = function (a, b) {
|
|
7749
7749
|
var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
7750
|
-
if (!nl(b)) throw Error(p$
|
|
7750
|
+
if (!nl(b)) throw Error(p$3(200));
|
|
7751
7751
|
return cl(a, b, null, c);
|
|
7752
7752
|
};
|
|
7753
7753
|
reactDom_production_min.createRoot = function (a, b) {
|
|
7754
|
-
if (!nl(a)) throw Error(p$
|
|
7754
|
+
if (!nl(a)) throw Error(p$3(299));
|
|
7755
7755
|
var c = !1,
|
|
7756
7756
|
d = "",
|
|
7757
7757
|
e = kl;
|
|
@@ -7766,9 +7766,9 @@
|
|
|
7766
7766
|
if (1 === a.nodeType) return a;
|
|
7767
7767
|
var b = a._reactInternals;
|
|
7768
7768
|
if (void 0 === b) {
|
|
7769
|
-
if ("function" === typeof a.render) throw Error(p$
|
|
7769
|
+
if ("function" === typeof a.render) throw Error(p$3(188));
|
|
7770
7770
|
a = Object.keys(a).join(",");
|
|
7771
|
-
throw Error(p$
|
|
7771
|
+
throw Error(p$3(268, a));
|
|
7772
7772
|
}
|
|
7773
7773
|
a = Zb(b);
|
|
7774
7774
|
a = null === a ? null : a.stateNode;
|
|
@@ -7778,11 +7778,11 @@
|
|
|
7778
7778
|
return Rk(a);
|
|
7779
7779
|
};
|
|
7780
7780
|
reactDom_production_min.hydrate = function (a, b, c) {
|
|
7781
|
-
if (!ol(b)) throw Error(p$
|
|
7781
|
+
if (!ol(b)) throw Error(p$3(200));
|
|
7782
7782
|
return rl(null, a, b, !0, c);
|
|
7783
7783
|
};
|
|
7784
7784
|
reactDom_production_min.hydrateRoot = function (a, b, c) {
|
|
7785
|
-
if (!nl(a)) throw Error(p$
|
|
7785
|
+
if (!nl(a)) throw Error(p$3(405));
|
|
7786
7786
|
var d = null != c && c.hydratedSources || null,
|
|
7787
7787
|
e = !1,
|
|
7788
7788
|
f = "",
|
|
@@ -7795,11 +7795,11 @@
|
|
|
7795
7795
|
return new ml(b);
|
|
7796
7796
|
};
|
|
7797
7797
|
reactDom_production_min.render = function (a, b, c) {
|
|
7798
|
-
if (!ol(b)) throw Error(p$
|
|
7798
|
+
if (!ol(b)) throw Error(p$3(200));
|
|
7799
7799
|
return rl(null, a, b, !1, c);
|
|
7800
7800
|
};
|
|
7801
7801
|
reactDom_production_min.unmountComponentAtNode = function (a) {
|
|
7802
|
-
if (!ol(a)) throw Error(p$
|
|
7802
|
+
if (!ol(a)) throw Error(p$3(40));
|
|
7803
7803
|
return a._reactRootContainer ? (Rk(function () {
|
|
7804
7804
|
rl(null, null, a, !1, function () {
|
|
7805
7805
|
a._reactRootContainer = null;
|
|
@@ -7809,8 +7809,8 @@
|
|
|
7809
7809
|
};
|
|
7810
7810
|
reactDom_production_min.unstable_batchedUpdates = Qk;
|
|
7811
7811
|
reactDom_production_min.unstable_renderSubtreeIntoContainer = function (a, b, c, d) {
|
|
7812
|
-
if (!ol(c)) throw Error(p$
|
|
7813
|
-
if (null == a || void 0 === a._reactInternals) throw Error(p$
|
|
7812
|
+
if (!ol(c)) throw Error(p$3(200));
|
|
7813
|
+
if (null == a || void 0 === a._reactInternals) throw Error(p$3(38));
|
|
7814
7814
|
return rl(a, b, c, !1, d);
|
|
7815
7815
|
};
|
|
7816
7816
|
reactDom_production_min.version = "18.3.1-next-f1338f8080-20240426";
|
|
@@ -7837,10 +7837,10 @@
|
|
|
7837
7837
|
}
|
|
7838
7838
|
var reactDomExports = reactDom.exports;
|
|
7839
7839
|
|
|
7840
|
-
var m$
|
|
7840
|
+
var m$2 = reactDomExports;
|
|
7841
7841
|
{
|
|
7842
|
-
client.createRoot = m$
|
|
7843
|
-
client.hydrateRoot = m$
|
|
7842
|
+
client.createRoot = m$2.createRoot;
|
|
7843
|
+
client.hydrateRoot = m$2.hydrateRoot;
|
|
7844
7844
|
}
|
|
7845
7845
|
|
|
7846
7846
|
/******************************************************************************
|
|
@@ -8113,9 +8113,9 @@
|
|
|
8113
8113
|
}
|
|
8114
8114
|
var k = "function" === typeof Object.is ? Object.is : h$1,
|
|
8115
8115
|
l = e$1.useState,
|
|
8116
|
-
m = e$1.useEffect,
|
|
8116
|
+
m$1 = e$1.useEffect,
|
|
8117
8117
|
n$1 = e$1.useLayoutEffect,
|
|
8118
|
-
p$
|
|
8118
|
+
p$2 = e$1.useDebugValue;
|
|
8119
8119
|
function q$1(a, b) {
|
|
8120
8120
|
var d = b(),
|
|
8121
8121
|
f = l({
|
|
@@ -8133,7 +8133,7 @@
|
|
|
8133
8133
|
inst: c
|
|
8134
8134
|
});
|
|
8135
8135
|
}, [a, d, b]);
|
|
8136
|
-
m(function () {
|
|
8136
|
+
m$1(function () {
|
|
8137
8137
|
r$2(c) && g({
|
|
8138
8138
|
inst: c
|
|
8139
8139
|
});
|
|
@@ -8143,7 +8143,7 @@
|
|
|
8143
8143
|
});
|
|
8144
8144
|
});
|
|
8145
8145
|
}, [a]);
|
|
8146
|
-
p$
|
|
8146
|
+
p$2(d);
|
|
8147
8147
|
return d;
|
|
8148
8148
|
}
|
|
8149
8149
|
function r$2(a) {
|
|
@@ -8178,14 +8178,14 @@
|
|
|
8178
8178
|
*/
|
|
8179
8179
|
var h = reactExports,
|
|
8180
8180
|
n = shimExports;
|
|
8181
|
-
function p(a, b) {
|
|
8181
|
+
function p$1(a, b) {
|
|
8182
8182
|
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
8183
8183
|
}
|
|
8184
|
-
var q = "function" === typeof Object.is ? Object.is : p,
|
|
8184
|
+
var q = "function" === typeof Object.is ? Object.is : p$1,
|
|
8185
8185
|
r$1 = n.useSyncExternalStore,
|
|
8186
8186
|
t$1 = h.useRef,
|
|
8187
8187
|
u = h.useEffect,
|
|
8188
|
-
v
|
|
8188
|
+
v = h.useMemo,
|
|
8189
8189
|
w = h.useDebugValue;
|
|
8190
8190
|
withSelector_production_min.useSyncExternalStoreWithSelector = function (a, b, e, l, g) {
|
|
8191
8191
|
var c = t$1(null);
|
|
@@ -8196,7 +8196,7 @@
|
|
|
8196
8196
|
};
|
|
8197
8197
|
c.current = f;
|
|
8198
8198
|
} else f = c.current;
|
|
8199
|
-
c = v
|
|
8199
|
+
c = v(function () {
|
|
8200
8200
|
function a(a) {
|
|
8201
8201
|
if (!c) {
|
|
8202
8202
|
c = !0;
|
|
@@ -8261,18 +8261,6 @@
|
|
|
8261
8261
|
useDebugValue(slice);
|
|
8262
8262
|
return slice;
|
|
8263
8263
|
}
|
|
8264
|
-
const createImpl = (createState) => {
|
|
8265
|
-
if ((undefined ? undefined.MODE : void 0) !== "production" && typeof createState !== "function") {
|
|
8266
|
-
console.warn(
|
|
8267
|
-
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
8268
|
-
);
|
|
8269
|
-
}
|
|
8270
|
-
const api = typeof createState === "function" ? createStore(createState) : createState;
|
|
8271
|
-
const useBoundStore = (selector, equalityFn) => useStore(api, selector, equalityFn);
|
|
8272
|
-
Object.assign(useBoundStore, api);
|
|
8273
|
-
return useBoundStore;
|
|
8274
|
-
};
|
|
8275
|
-
const create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
8276
8264
|
|
|
8277
8265
|
function createJSONStorage(getStorage, options) {
|
|
8278
8266
|
let storage;
|
|
@@ -9231,7 +9219,7 @@
|
|
|
9231
9219
|
: value;
|
|
9232
9220
|
};
|
|
9233
9221
|
|
|
9234
|
-
const clamp$
|
|
9222
|
+
const clamp$2 = (min, max, v) => Math.min(Math.max(v, min), max);
|
|
9235
9223
|
|
|
9236
9224
|
const number = {
|
|
9237
9225
|
test: (v) => typeof v === "number",
|
|
@@ -9240,7 +9228,7 @@
|
|
|
9240
9228
|
};
|
|
9241
9229
|
const alpha = {
|
|
9242
9230
|
...number,
|
|
9243
|
-
transform: (v) => clamp$
|
|
9231
|
+
transform: (v) => clamp$2(0, 1, v),
|
|
9244
9232
|
};
|
|
9245
9233
|
const scale = {
|
|
9246
9234
|
...number,
|
|
@@ -11057,7 +11045,7 @@
|
|
|
11057
11045
|
};
|
|
11058
11046
|
};
|
|
11059
11047
|
|
|
11060
|
-
const clampRgbUnit = (v) => clamp$
|
|
11048
|
+
const clampRgbUnit = (v) => clamp$2(0, 255, v);
|
|
11061
11049
|
const rgbUnit = {
|
|
11062
11050
|
...number,
|
|
11063
11051
|
transform: (v) => Math.round(clampRgbUnit(v)),
|
|
@@ -11708,7 +11696,7 @@
|
|
|
11708
11696
|
return mixers[i](progressInRange);
|
|
11709
11697
|
};
|
|
11710
11698
|
return isClamp
|
|
11711
|
-
? (v) => interpolator(clamp$
|
|
11699
|
+
? (v) => interpolator(clamp$2(input[0], input[inputLength - 1], v))
|
|
11712
11700
|
: interpolator;
|
|
11713
11701
|
}
|
|
11714
11702
|
|
|
@@ -11867,8 +11855,8 @@
|
|
|
11867
11855
|
/**
|
|
11868
11856
|
* Restrict dampingRatio and duration to within acceptable ranges.
|
|
11869
11857
|
*/
|
|
11870
|
-
dampingRatio = clamp$
|
|
11871
|
-
duration = clamp$
|
|
11858
|
+
dampingRatio = clamp$2(minDamping, maxDamping, dampingRatio);
|
|
11859
|
+
duration = clamp$2(minDuration, maxDuration, duration / 1000);
|
|
11872
11860
|
if (dampingRatio < 1) {
|
|
11873
11861
|
/**
|
|
11874
11862
|
* Underdamped spring
|
|
@@ -13444,7 +13432,7 @@
|
|
|
13444
13432
|
else if (sourceLength > targetLength) {
|
|
13445
13433
|
origin = progress(source.min, source.max - targetLength, target.min);
|
|
13446
13434
|
}
|
|
13447
|
-
return clamp$
|
|
13435
|
+
return clamp$2(0, 1, origin);
|
|
13448
13436
|
}
|
|
13449
13437
|
/**
|
|
13450
13438
|
* Rebase the calculated viewport constraints relative to the layout.min point.
|
|
@@ -23797,13 +23785,158 @@
|
|
|
23797
23785
|
return text.replace(/(\s?)([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g, '');
|
|
23798
23786
|
}
|
|
23799
23787
|
|
|
23788
|
+
const createLlmViewStore = _ref => {
|
|
23789
|
+
let {
|
|
23790
|
+
threadId,
|
|
23791
|
+
opened,
|
|
23792
|
+
embedded,
|
|
23793
|
+
send
|
|
23794
|
+
} = _ref;
|
|
23795
|
+
const props = {
|
|
23796
|
+
opened: opened != null || embedded != null ? Boolean(opened || embedded) : threadId != null ? true : false,
|
|
23797
|
+
embedded: embedded || false,
|
|
23798
|
+
hidden: false,
|
|
23799
|
+
fixed: false,
|
|
23800
|
+
idle: true,
|
|
23801
|
+
direction: 0
|
|
23802
|
+
};
|
|
23803
|
+
let lenis_ = undefined;
|
|
23804
|
+
let autoScroll = true;
|
|
23805
|
+
const useStore = createStore((set, get) => ({
|
|
23806
|
+
...props,
|
|
23807
|
+
actions: {
|
|
23808
|
+
initView: async () => {
|
|
23809
|
+
get();
|
|
23810
|
+
// handle idle times
|
|
23811
|
+
const setIdleTimeout = () => {
|
|
23812
|
+
return setTimeout(() => {
|
|
23813
|
+
set(() => ({
|
|
23814
|
+
idle: true
|
|
23815
|
+
}));
|
|
23816
|
+
}, 6000);
|
|
23817
|
+
};
|
|
23818
|
+
const handleIdleTimes = () => {
|
|
23819
|
+
let to = setIdleTimeout();
|
|
23820
|
+
let lastScrollTop = 0;
|
|
23821
|
+
window.addEventListener('scroll', () => {
|
|
23822
|
+
const st = window.scrollY || document.documentElement.scrollTop;
|
|
23823
|
+
let direction = 0;
|
|
23824
|
+
if (st > lastScrollTop) {
|
|
23825
|
+
direction = 1;
|
|
23826
|
+
} else if (st < lastScrollTop) {
|
|
23827
|
+
direction = -1;
|
|
23828
|
+
}
|
|
23829
|
+
lastScrollTop = st <= 0 ? 0 : st;
|
|
23830
|
+
if (direction === 1) {
|
|
23831
|
+
if (to) {
|
|
23832
|
+
clearTimeout(to);
|
|
23833
|
+
}
|
|
23834
|
+
set(() => ({
|
|
23835
|
+
idle: false
|
|
23836
|
+
}));
|
|
23837
|
+
to = setIdleTimeout();
|
|
23838
|
+
}
|
|
23839
|
+
});
|
|
23840
|
+
};
|
|
23841
|
+
setTimeout(() => {
|
|
23842
|
+
set(() => ({
|
|
23843
|
+
idle: false
|
|
23844
|
+
}));
|
|
23845
|
+
handleIdleTimes();
|
|
23846
|
+
}, 2000);
|
|
23847
|
+
},
|
|
23848
|
+
send: async (prompt, onMessage, onEnd) => {
|
|
23849
|
+
const state = get();
|
|
23850
|
+
autoScroll = true;
|
|
23851
|
+
state.actions.scrollToBottom();
|
|
23852
|
+
await send(prompt, response => {
|
|
23853
|
+
state.actions.scrollToBottom();
|
|
23854
|
+
if (typeof onMessage === 'function') {
|
|
23855
|
+
onMessage(response);
|
|
23856
|
+
}
|
|
23857
|
+
}, response => {
|
|
23858
|
+
state.actions.scrollToBottom();
|
|
23859
|
+
if (typeof onEnd === 'function') {
|
|
23860
|
+
onEnd(response);
|
|
23861
|
+
}
|
|
23862
|
+
});
|
|
23863
|
+
},
|
|
23864
|
+
open: () => set(state => ({
|
|
23865
|
+
opened: !state.opened
|
|
23866
|
+
})),
|
|
23867
|
+
setLenis: lenis => {
|
|
23868
|
+
if (lenis_ !== lenis) {
|
|
23869
|
+
lenis_ = lenis;
|
|
23870
|
+
if (lenis) {
|
|
23871
|
+
lenis.on('scroll', event => {
|
|
23872
|
+
const {
|
|
23873
|
+
direction,
|
|
23874
|
+
targetScroll,
|
|
23875
|
+
limit
|
|
23876
|
+
} = event;
|
|
23877
|
+
if (limit === targetScroll) {
|
|
23878
|
+
autoScroll = true;
|
|
23879
|
+
} else if (direction == -1 && Math.abs(limit - targetScroll) > 100) {
|
|
23880
|
+
autoScroll = false;
|
|
23881
|
+
}
|
|
23882
|
+
const scrolled = targetScroll > 100;
|
|
23883
|
+
const fixed = direction == -1 && scrolled && !autoScroll;
|
|
23884
|
+
const hidden = autoScroll || direction == 1 && scrolled;
|
|
23885
|
+
const state = get();
|
|
23886
|
+
if (state.hidden !== hidden || state.fixed !== fixed || state.direction !== direction) {
|
|
23887
|
+
set(state => ({
|
|
23888
|
+
hidden,
|
|
23889
|
+
fixed,
|
|
23890
|
+
direction
|
|
23891
|
+
}));
|
|
23892
|
+
}
|
|
23893
|
+
});
|
|
23894
|
+
}
|
|
23895
|
+
}
|
|
23896
|
+
},
|
|
23897
|
+
scrollToBottom: () => {
|
|
23898
|
+
if (lenis_ && autoScroll) {
|
|
23899
|
+
lenis_.scrollTo('bottom', {
|
|
23900
|
+
immediate: true
|
|
23901
|
+
});
|
|
23902
|
+
}
|
|
23903
|
+
}
|
|
23904
|
+
}
|
|
23905
|
+
}));
|
|
23906
|
+
return useStore;
|
|
23907
|
+
};
|
|
23908
|
+
const LlmViewContext = /*#__PURE__*/reactExports.createContext(null);
|
|
23909
|
+
function LlmViewProvider(_ref2) {
|
|
23910
|
+
let {
|
|
23911
|
+
children,
|
|
23912
|
+
...props
|
|
23913
|
+
} = _ref2;
|
|
23914
|
+
const {
|
|
23915
|
+
send
|
|
23916
|
+
} = useLlm(state => state.actions);
|
|
23917
|
+
const storeRef = reactExports.useRef();
|
|
23918
|
+
if (!storeRef.current) {
|
|
23919
|
+
storeRef.current = createLlmViewStore({
|
|
23920
|
+
...props,
|
|
23921
|
+
send
|
|
23922
|
+
});
|
|
23923
|
+
}
|
|
23924
|
+
return storeRef.current && /*#__PURE__*/jsxRuntimeExports.jsx(LlmViewContext.Provider, {
|
|
23925
|
+
value: storeRef.current,
|
|
23926
|
+
children: children
|
|
23927
|
+
});
|
|
23928
|
+
}
|
|
23929
|
+
function useLlmView(selector) {
|
|
23930
|
+
const store = reactExports.useContext(LlmViewContext);
|
|
23931
|
+
if (!store) throw new Error('Missing LlmContext.Provider in the tree');
|
|
23932
|
+
return useStore(store, selector);
|
|
23933
|
+
}
|
|
23934
|
+
|
|
23800
23935
|
const createLlmStore = _ref => {
|
|
23801
23936
|
let {
|
|
23802
23937
|
appKey,
|
|
23803
23938
|
apiKey,
|
|
23804
23939
|
threadId,
|
|
23805
|
-
opened,
|
|
23806
|
-
embedded,
|
|
23807
23940
|
decorateUrl,
|
|
23808
23941
|
endpoint,
|
|
23809
23942
|
test,
|
|
@@ -23816,25 +23949,10 @@
|
|
|
23816
23949
|
prompt: '',
|
|
23817
23950
|
locale: 'en',
|
|
23818
23951
|
streaming: false,
|
|
23819
|
-
opened: opened != null || embedded != null ? Boolean(opened || embedded) : threadId != null ? true : false,
|
|
23820
|
-
embedded: embedded || false,
|
|
23821
|
-
hidden: false,
|
|
23822
|
-
fixed: false,
|
|
23823
|
-
idle: true,
|
|
23824
|
-
direction: 0,
|
|
23825
23952
|
speakEnabled: true
|
|
23826
23953
|
};
|
|
23827
23954
|
let messageService = undefined;
|
|
23828
23955
|
const speech = new Speech();
|
|
23829
|
-
let lenis_ = undefined;
|
|
23830
|
-
let autoScroll = true;
|
|
23831
|
-
const scrollToBottom = () => {
|
|
23832
|
-
if (lenis_ && autoScroll) {
|
|
23833
|
-
lenis_.scrollTo('bottom', {
|
|
23834
|
-
immediate: true
|
|
23835
|
-
});
|
|
23836
|
-
}
|
|
23837
|
-
};
|
|
23838
23956
|
function getApi(options) {
|
|
23839
23957
|
const origin = endpoint || (isBrowser$1 ? window.location.origin : process.env.STORE_URL);
|
|
23840
23958
|
const baseUrl = `${origin}/api/llm`;
|
|
@@ -23946,45 +24064,8 @@
|
|
|
23946
24064
|
locale,
|
|
23947
24065
|
...thread
|
|
23948
24066
|
}));
|
|
23949
|
-
// handle idle times
|
|
23950
|
-
const setIdleTimeout = () => {
|
|
23951
|
-
return setTimeout(() => {
|
|
23952
|
-
set(() => ({
|
|
23953
|
-
idle: true
|
|
23954
|
-
}));
|
|
23955
|
-
}, 6000);
|
|
23956
|
-
};
|
|
23957
|
-
const handleIdleTimes = () => {
|
|
23958
|
-
let to = setIdleTimeout();
|
|
23959
|
-
let lastScrollTop = 0;
|
|
23960
|
-
window.addEventListener('scroll', () => {
|
|
23961
|
-
const st = window.scrollY || document.documentElement.scrollTop;
|
|
23962
|
-
let direction = 0;
|
|
23963
|
-
if (st > lastScrollTop) {
|
|
23964
|
-
direction = 1;
|
|
23965
|
-
} else if (st < lastScrollTop) {
|
|
23966
|
-
direction = -1;
|
|
23967
|
-
}
|
|
23968
|
-
lastScrollTop = st <= 0 ? 0 : st;
|
|
23969
|
-
if (direction === 1) {
|
|
23970
|
-
if (to) {
|
|
23971
|
-
clearTimeout(to);
|
|
23972
|
-
}
|
|
23973
|
-
set(() => ({
|
|
23974
|
-
idle: false
|
|
23975
|
-
}));
|
|
23976
|
-
to = setIdleTimeout();
|
|
23977
|
-
}
|
|
23978
|
-
});
|
|
23979
|
-
};
|
|
23980
|
-
setTimeout(() => {
|
|
23981
|
-
set(() => ({
|
|
23982
|
-
idle: false
|
|
23983
|
-
}));
|
|
23984
|
-
handleIdleTimes();
|
|
23985
|
-
}, 2000);
|
|
23986
24067
|
},
|
|
23987
|
-
send: async (prompt,
|
|
24068
|
+
send: async (prompt, onMessage, onEnd) => {
|
|
23988
24069
|
if (test) {
|
|
23989
24070
|
const {
|
|
23990
24071
|
locale
|
|
@@ -24005,8 +24086,6 @@
|
|
|
24005
24086
|
prompt: '',
|
|
24006
24087
|
streaming: true
|
|
24007
24088
|
}));
|
|
24008
|
-
autoScroll = true;
|
|
24009
|
-
scrollToBottom();
|
|
24010
24089
|
const state = get();
|
|
24011
24090
|
const origin = endpoint || window.location.origin;
|
|
24012
24091
|
const url = `${origin}/api/llm/message?locale=${state.locale}`;
|
|
@@ -24037,10 +24116,9 @@
|
|
|
24037
24116
|
set(state => ({
|
|
24038
24117
|
chunks: response.chunks
|
|
24039
24118
|
}));
|
|
24040
|
-
if (typeof
|
|
24041
|
-
|
|
24119
|
+
if (typeof onMessage === 'function') {
|
|
24120
|
+
onMessage(response);
|
|
24042
24121
|
}
|
|
24043
|
-
scrollToBottom();
|
|
24044
24122
|
},
|
|
24045
24123
|
// onEnd
|
|
24046
24124
|
response => {
|
|
@@ -24083,7 +24161,6 @@
|
|
|
24083
24161
|
if (typeof onEnd === 'function') {
|
|
24084
24162
|
onEnd(response);
|
|
24085
24163
|
}
|
|
24086
|
-
scrollToBottom();
|
|
24087
24164
|
},
|
|
24088
24165
|
// onChunk
|
|
24089
24166
|
chunks => {
|
|
@@ -24175,42 +24252,9 @@
|
|
|
24175
24252
|
}
|
|
24176
24253
|
return url || defaultUrl || '#';
|
|
24177
24254
|
},
|
|
24178
|
-
open: () => set(state => ({
|
|
24179
|
-
opened: !state.opened
|
|
24180
|
-
})),
|
|
24181
24255
|
clear: () => set(state => ({
|
|
24182
24256
|
messages: []
|
|
24183
|
-
}))
|
|
24184
|
-
setLenis: lenis => {
|
|
24185
|
-
if (lenis_ !== lenis) {
|
|
24186
|
-
lenis_ = lenis;
|
|
24187
|
-
if (lenis) {
|
|
24188
|
-
lenis.on('scroll', event => {
|
|
24189
|
-
const {
|
|
24190
|
-
direction,
|
|
24191
|
-
targetScroll,
|
|
24192
|
-
limit
|
|
24193
|
-
} = event;
|
|
24194
|
-
if (limit === targetScroll) {
|
|
24195
|
-
autoScroll = true;
|
|
24196
|
-
} else if (direction == -1 && Math.abs(limit - targetScroll) > 100) {
|
|
24197
|
-
autoScroll = false;
|
|
24198
|
-
}
|
|
24199
|
-
const scrolled = targetScroll > 100;
|
|
24200
|
-
const fixed = direction == -1 && scrolled && !autoScroll;
|
|
24201
|
-
const hidden = autoScroll || direction == 1 && scrolled;
|
|
24202
|
-
const state = get();
|
|
24203
|
-
if (state.hidden !== hidden || state.fixed !== fixed || state.direction !== direction) {
|
|
24204
|
-
set(state => ({
|
|
24205
|
-
hidden,
|
|
24206
|
-
fixed,
|
|
24207
|
-
direction
|
|
24208
|
-
}));
|
|
24209
|
-
}
|
|
24210
|
-
});
|
|
24211
|
-
}
|
|
24212
|
-
}
|
|
24213
|
-
}
|
|
24257
|
+
}))
|
|
24214
24258
|
}
|
|
24215
24259
|
}), {
|
|
24216
24260
|
name: 'llm',
|
|
@@ -24243,6 +24287,13 @@
|
|
|
24243
24287
|
}));
|
|
24244
24288
|
return useStore;
|
|
24245
24289
|
};
|
|
24290
|
+
let sharedLlmStore;
|
|
24291
|
+
function createSharedLlmStore(props) {
|
|
24292
|
+
if (!sharedLlmStore) {
|
|
24293
|
+
sharedLlmStore = createLlmStore(props);
|
|
24294
|
+
}
|
|
24295
|
+
return sharedLlmStore;
|
|
24296
|
+
}
|
|
24246
24297
|
const LlmContext = /*#__PURE__*/reactExports.createContext(null);
|
|
24247
24298
|
function LlmProvider(_ref3) {
|
|
24248
24299
|
let {
|
|
@@ -24252,14 +24303,17 @@
|
|
|
24252
24303
|
const label = useLabel();
|
|
24253
24304
|
const storeRef = reactExports.useRef();
|
|
24254
24305
|
if (!storeRef.current) {
|
|
24255
|
-
storeRef.current =
|
|
24306
|
+
storeRef.current = createSharedLlmStore({
|
|
24256
24307
|
...props,
|
|
24257
24308
|
label
|
|
24258
24309
|
});
|
|
24259
24310
|
}
|
|
24260
24311
|
return storeRef.current && /*#__PURE__*/jsxRuntimeExports.jsx(LlmContext.Provider, {
|
|
24261
24312
|
value: storeRef.current,
|
|
24262
|
-
children:
|
|
24313
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(LlmViewProvider, {
|
|
24314
|
+
...props,
|
|
24315
|
+
children: children
|
|
24316
|
+
})
|
|
24263
24317
|
});
|
|
24264
24318
|
}
|
|
24265
24319
|
function useLlm(selector) {
|
|
@@ -24270,91 +24324,11 @@
|
|
|
24270
24324
|
|
|
24271
24325
|
var a="undefined"!=typeof window&&new class{constructor(){this.raf=a=>{requestAnimationFrame(this.raf);const t=a-this.now;this.now=a;for(let s=0;s<this.callbacks.length;s++)this.callbacks[s].callback(a,t);},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf);}add(a,t=0){return this.callbacks.push({callback:a,priority:t}),this.callbacks.sort((a,t)=>a.priority-t.priority),()=>this.remove(a)}remove(a){this.callbacks=this.callbacks.filter(({callback:t})=>a!==t);}};
|
|
24272
24326
|
|
|
24273
|
-
function f(e,n=0){reactExports.useEffect(()=>{if(e)return a.add(e,n),()=>a.remove(e)},[e,n]);}
|
|
24274
|
-
|
|
24275
|
-
function t(t,e,i){return Math.max(t,Math.min(e,i))}class Animate{advance(e){if(!this.isRunning)return;let i=!1;if(this.lerp)this.value=(s=this.value,o=this.to,n=60*this.lerp,r=e,function(t,e,i){return (1-i)*t+i*e}(s,o,1-Math.exp(-n*r))),Math.round(this.value)===this.to&&(this.value=this.to,i=!0);else {this.currentTime+=e;const s=t(0,this.currentTime/this.duration,1);i=s>=1;const o=i?1:this.easing(s);this.value=this.from+(this.to-this.from)*o;}var s,o,n,r;this.onUpdate?.(this.value,i),i&&this.stop();}stop(){this.isRunning=!1;}fromTo(t,e,{lerp:i=.1,duration:s=1,easing:o=(t=>t),onStart:n,onUpdate:r}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,n?.(),this.onUpdate=r;}}class Dimensions{constructor({wrapper:t,content:e,autoResize:i=!0,debounce:s=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(){let s=arguments,o=this;clearTimeout(i),i=setTimeout((function(){t.apply(o,s);}),e);}}(this.resize,s),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize();}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1);}resize=()=>{this.onWrapperResize(),this.onContentResize();};onWrapperResize=()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight);};onContentResize=()=>{this.wrapper===window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth);};get limit(){return {x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}class Emitter{constructor(){this.events={};}emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t<s;t++)i[t](...e);}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter((t=>e!==t));}}off(t,e){this.events[t]=this.events[t]?.filter((t=>e!==t));}destroy(){this.events={};}}const e=100/6;class VirtualScroll{constructor(t,{wheelMultiplier:e=1,touchMultiplier:i=1}){this.element=t,this.wheelMultiplier=e,this.touchMultiplier=i,this.touchStart={x:null,y:null},this.emitter=new Emitter,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1});}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1});}onTouchStart=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t});};onTouchMove=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.touchMultiplier,o=-(i-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:o},this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:t});};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t});};onWheel=t=>{let{deltaX:i,deltaY:s,deltaMode:o}=t;i*=1===o?e:2===o?this.windowWidth:1,s*=1===o?e:2===o?this.windowHeight:1,i*=this.wheelMultiplier,s*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:i,deltaY:s,event:t});};onWindowResize=()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight;}}class Lenis{constructor({wrapper:t=window,content:e=document.documentElement,wheelEventsTarget:i=t,eventsTarget:s=i,smoothWheel:o=!0,syncTouch:n=!1,syncTouchLerp:r=.075,touchInertiaMultiplier:l=35,duration:h,easing:a=(t=>Math.min(1,1.001-Math.pow(2,-10*t))),lerp:c=!h&&.1,infinite:d=!1,orientation:p="vertical",gestureOrientation:u="vertical",touchMultiplier:m=1,wheelMultiplier:v=1,autoResize:g=!0,__experimental__naiveDimensions:S=!1}={}){this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=({deltaX:t,deltaY:e,event:i})=>{if(i.ctrlKey)return;const s=i.type.includes("touch"),o=i.type.includes("wheel");if(this.options.syncTouch&&s&&"touchstart"===i.type&&!this.isStopped&&!this.isLocked)return void this.reset();const n=0===t&&0===e,r="vertical"===this.options.gestureOrientation&&0===e||"horizontal"===this.options.gestureOrientation&&0===t;if(n||r)return;let l=i.composedPath();if(l=l.slice(0,l.indexOf(this.rootElement)),l.find((t=>{var e,i,n,r,l;return (null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-lenis-prevent"))||s&&(null===(i=t.hasAttribute)||void 0===i?void 0:i.call(t,"data-lenis-prevent-touch"))||o&&(null===(n=t.hasAttribute)||void 0===n?void 0:n.call(t,"data-lenis-prevent-wheel"))||(null===(r=t.classList)||void 0===r?void 0:r.contains("lenis"))&&!(null===(l=t.classList)||void 0===l?void 0:l.contains("lenis-stopped"))})))return;if(this.isStopped||this.isLocked)return void i.preventDefault();if(this.isSmooth=this.options.syncTouch&&s||this.options.smoothWheel&&o,!this.isSmooth)return this.isScrolling=!1,void this.animate.stop();i.preventDefault();let h=e;"both"===this.options.gestureOrientation?h=Math.abs(e)>Math.abs(t)?e:t:"horizontal"===this.options.gestureOrientation&&(h=t);const a=s&&this.options.syncTouch,c=s&&"touchend"===i.type&&Math.abs(h)>5;c&&(h=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+h,Object.assign({programmatic:!1},a?{lerp:c?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}));},this.onNativeScroll=()=>{if(!this.__preventNextScrollEvent&&!this.isScrolling){const t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.direction=Math.sign(this.animatedScroll-t),this.emit();}},window.lenisVersion="1.0.42",t!==document.documentElement&&t!==document.body||(t=window),this.options={wrapper:t,content:e,wheelEventsTarget:i,eventsTarget:s,smoothWheel:o,syncTouch:n,syncTouchLerp:r,touchInertiaMultiplier:l,duration:h,easing:a,lerp:c,infinite:d,gestureOrientation:u,orientation:p,touchMultiplier:m,wheelMultiplier:v,autoResize:g,__experimental__naiveDimensions:S},this.animate=new Animate,this.emitter=new Emitter,this.dimensions=new Dimensions({wrapper:t,content:e,autoResize:g}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=n||o,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new VirtualScroll(s,{touchMultiplier:m,wheelMultiplier:v}),this.virtualScroll.on("scroll",this.onVirtualScroll);}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1);}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}setScroll(t){this.isHorizontal?this.rootElement.scrollLeft=t:this.rootElement.scrollTop=t;}resize(){this.dimensions.resize();}emit(){this.emitter.emit("scroll",this);}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop();}start(){this.isStopped&&(this.isStopped=!1,this.reset());}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset());}raf(t){const e=t-(this.time||t);this.time=t,this.animate.advance(.001*e);}scrollTo(e,{offset:i=0,immediate:s=!1,lock:o=!1,duration:n=this.options.duration,easing:r=this.options.easing,lerp:l=!n&&this.options.lerp,onComplete:h,force:a=!1,programmatic:c=!0}={}){if(!this.isStopped&&!this.isLocked||a){if(["top","left","start"].includes(e))e=0;else if(["bottom","right","end"].includes(e))e=this.limit;else {let t;if("string"==typeof e?t=document.querySelector(e):(null==e?void 0:e.nodeType)&&(t=e),t){if(this.options.wrapper!==window){const t=this.options.wrapper.getBoundingClientRect();i-=this.isHorizontal?t.left:t.top;}const s=t.getBoundingClientRect();e=(this.isHorizontal?s.left:s.top)+this.animatedScroll;}}if("number"==typeof e){if(e+=i,e=Math.round(e),this.options.infinite?c&&(this.targetScroll=this.animatedScroll=this.scroll):e=t(0,e,this.limit),s)return this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),void(null==h||h(this));if(!c){if(e===this.targetScroll)return;this.targetScroll=e;}this.animate.fromTo(this.animatedScroll,e,{duration:n,easing:r,lerp:l,onStart:()=>{o&&(this.isLocked=!0),this.isScrolling=!0;},onUpdate:(t,e)=>{this.isScrolling=!0,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),c&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),null==h||h(this),this.__preventNextScrollEvent=!0,requestAnimationFrame((()=>{delete this.__preventNextScrollEvent;})));}});}}}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return "horizontal"===this.options.orientation}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?(t=this.animatedScroll,e=this.limit,(t%e+e)%e):this.animatedScroll;var t,e;}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isSmooth(){return this.__isSmooth}set isSmooth(t){this.__isSmooth!==t&&(this.__isSmooth=t,this.toggleClassName("lenis-smooth",t));}get isScrolling(){return this.__isScrolling}set isScrolling(t){this.__isScrolling!==t&&(this.__isScrolling=t,this.toggleClassName("lenis-scrolling",t));}get isStopped(){return this.__isStopped}set isStopped(t){this.__isStopped!==t&&(this.__isStopped=t,this.toggleClassName("lenis-stopped",t));}get isLocked(){return this.__isLocked}set isLocked(t){this.__isLocked!==t&&(this.__isLocked=t,this.toggleClassName("lenis-locked",t));}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isSmooth&&(t+=" lenis-smooth"),t}toggleClassName(t,e){this.rootElement.classList.toggle(t,e),this.emitter.emit("className change",this);}}
|
|
24276
|
-
|
|
24277
24327
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
24278
24328
|
|
|
24279
|
-
var propTypes = {exports: {}};
|
|
24329
|
+
var __assign=function(){return __assign=Object.assign||function __assign(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},__assign.apply(this,arguments)};function clamp$1(t,e,i){return Math.max(t,Math.min(e,i))}class Animate{advance(t){if(!this.isRunning)return;let e=!1;if(this.lerp)this.value=function damp(t,e,i,o){return function lerp(t,e,i){return (1-i)*t+i*e}(t,e,1-Math.exp(-i*o))}(this.value,this.to,60*this.lerp,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0);else {this.currentTime+=t;const i=clamp$1(0,this.currentTime/this.duration,1);e=i>=1;const o=e?1:this.easing(i);this.value=this.from+(this.to-this.from)*o;}e&&this.stop(),this.onUpdate?.(this.value,e);}stop(){this.isRunning=!1;}fromTo(t,e,{lerp:i=.1,duration:o=1,easing:s=(t=>t),onStart:n,onUpdate:r}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=o,this.easing=s,this.currentTime=0,this.isRunning=!0,n?.(),this.onUpdate=r;}}class Dimensions{constructor({wrapper:t,content:e,autoResize:i=!0,debounce:o=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function debounce(t,e){let i;return function(){let o=arguments,s=this;clearTimeout(i),i=setTimeout((function(){t.apply(s,o);}),e);}}(this.resize,o),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize();}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1);}resize=()=>{this.onWrapperResize(),this.onContentResize();};onWrapperResize=()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight);};onContentResize=()=>{this.wrapper===window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth);};get limit(){return {x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}class Emitter{constructor(){this.events={};}emit(t,...e){let i=this.events[t]||[];for(let t=0,o=i.length;t<o;t++)i[t](...e);}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter((t=>e!==t));}}off(t,e){this.events[t]=this.events[t]?.filter((t=>e!==t));}destroy(){this.events={};}}const t=100/6;class VirtualScroll{constructor(t,{wheelMultiplier:e=1,touchMultiplier:i=1}){this.element=t,this.wheelMultiplier=e,this.touchMultiplier=i,this.touchStart={x:null,y:null},this.emitter=new Emitter,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1});}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1});}onTouchStart=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t});};onTouchMove=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,o=-(e-this.touchStart.x)*this.touchMultiplier,s=-(i-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:o,y:s},this.emitter.emit("scroll",{deltaX:o,deltaY:s,event:t});};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t});};onWheel=e=>{let{deltaX:i,deltaY:o,deltaMode:s}=e;i*=1===s?t:2===s?this.windowWidth:1,o*=1===s?t:2===s?this.windowHeight:1,i*=this.wheelMultiplier,o*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:i,deltaY:o,event:e});};onWindowResize=()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight;}}var e=function(){function Lenis(t){var e=void 0===t?{}:t,i=e.wrapper,o=void 0===i?window:i,s=e.content,n=void 0===s?document.documentElement:s,r=e.wheelEventsTarget,l=void 0===r?o:r,h=e.eventsTarget,a=void 0===h?l:h,c=e.smoothWheel,p=void 0===c||c,u=e.syncTouch,d=void 0!==u&&u,m=e.syncTouchLerp,v=void 0===m?.075:m,g=e.touchInertiaMultiplier,f=void 0===g?35:g,S=e.duration,w=e.easing,y=void 0===w?function(t){return Math.min(1,1.001-Math.pow(2,-10*t))}:w,b=e.lerp,L=void 0===b?!S&&.1:b,_=e.infinite,z=void 0!==_&&_,E=e.orientation,T=void 0===E?"vertical":E,M=e.gestureOrientation,R=void 0===M?"vertical":M,O=e.touchMultiplier,W=void 0===O?1:O,x=e.wheelMultiplier,H=void 0===x?1:x,N=e.autoResize,k=void 0===N||N,C=e.__experimental__naiveDimensions,j=void 0!==C&&C,P=this;this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=function(t){var e=t.deltaX,i=t.deltaY,o=t.event;if(!o.ctrlKey){var s=o.type.includes("touch"),n=o.type.includes("wheel");if(P.options.syncTouch&&s&&"touchstart"===o.type&&!P.isStopped&&!P.isLocked)P.reset();else {var r=0===e&&0===i,l="vertical"===P.options.gestureOrientation&&0===i||"horizontal"===P.options.gestureOrientation&&0===e;if(!r&&!l){var h=o.composedPath();if(!(h=h.slice(0,h.indexOf(P.rootElement))).find((function(t){var e,i,o,r,l;return (null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-lenis-prevent"))||s&&(null===(i=t.hasAttribute)||void 0===i?void 0:i.call(t,"data-lenis-prevent-touch"))||n&&(null===(o=t.hasAttribute)||void 0===o?void 0:o.call(t,"data-lenis-prevent-wheel"))||(null===(r=t.classList)||void 0===r?void 0:r.contains("lenis"))&&!(null===(l=t.classList)||void 0===l?void 0:l.contains("lenis-stopped"))})))if(P.isStopped||P.isLocked)o.preventDefault();else {if(P.isSmooth=P.options.syncTouch&&s||P.options.smoothWheel&&n,!P.isSmooth)return P.isScrolling=!1,void P.animate.stop();o.preventDefault();var a=i;"both"===P.options.gestureOrientation?a=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===P.options.gestureOrientation&&(a=e);var c=s&&P.options.syncTouch,p=s&&"touchend"===o.type&&Math.abs(a)>5;p&&(a=P.velocity*P.options.touchInertiaMultiplier),P.scrollTo(P.targetScroll+a,__assign({programmatic:!1},c?{lerp:p?P.options.syncTouchLerp:1}:{lerp:P.options.lerp,duration:P.options.duration,easing:P.options.easing}));}}}}},this.onNativeScroll=function(){if(!P.__preventNextScrollEvent&&!P.isScrolling){var t=P.animatedScroll;P.animatedScroll=P.targetScroll=P.actualScroll,P.velocity=0,P.direction=Math.sign(P.animatedScroll-t),P.emit();}},window.lenisVersion="1.0.45",o!==document.documentElement&&o!==document.body||(o=window),this.options={wrapper:o,content:n,wheelEventsTarget:l,eventsTarget:a,smoothWheel:p,syncTouch:d,syncTouchLerp:v,touchInertiaMultiplier:f,duration:S,easing:y,lerp:L,infinite:z,gestureOrientation:R,orientation:T,touchMultiplier:W,wheelMultiplier:H,autoResize:k,__experimental__naiveDimensions:j},this.animate=new Animate,this.emitter=new Emitter,this.dimensions=new Dimensions({wrapper:o,content:n,autoResize:k}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=d||p,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new VirtualScroll(a,{touchMultiplier:W,wheelMultiplier:H}),this.virtualScroll.on("scroll",this.onVirtualScroll);}return Lenis.prototype.destroy=function(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1);},Lenis.prototype.on=function(t,e){return this.emitter.on(t,e)},Lenis.prototype.off=function(t,e){return this.emitter.off(t,e)},Lenis.prototype.setScroll=function(t){this.isHorizontal?this.rootElement.scrollLeft=t:this.rootElement.scrollTop=t;},Lenis.prototype.resize=function(){this.dimensions.resize();},Lenis.prototype.emit=function(){this.emitter.emit("scroll",this);},Lenis.prototype.reset=function(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop();},Lenis.prototype.start=function(){this.isStopped&&(this.isStopped=!1,this.reset());},Lenis.prototype.stop=function(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset());},Lenis.prototype.raf=function(t){var e=t-(this.time||t);this.time=t,this.animate.advance(.001*e);},Lenis.prototype.scrollTo=function(t,e){var i=this,o=void 0===e?{}:e,s=o.offset,n=void 0===s?0:s,r=o.immediate,l=void 0!==r&&r,h=o.lock,a=void 0!==h&&h,c=o.duration,p=void 0===c?this.options.duration:c,u=o.easing,d=void 0===u?this.options.easing:u,m=o.lerp,v=void 0===m?!p&&this.options.lerp:m,g=o.onComplete,f=o.force,S=void 0!==f&&f,w=o.programmatic,y=void 0===w||w;if(!this.isStopped&&!this.isLocked||S){if(["top","left","start"].includes(t))t=0;else if(["bottom","right","end"].includes(t))t=this.limit;else {var b=void 0;if("string"==typeof t?b=document.querySelector(t):(null==t?void 0:t.nodeType)&&(b=t),b){if(this.options.wrapper!==window){var L=this.options.wrapper.getBoundingClientRect();n-=this.isHorizontal?L.left:L.top;}var _=b.getBoundingClientRect();t=(this.isHorizontal?_.left:_.top)+this.animatedScroll;}}if("number"==typeof t){if(t+=n,t=Math.round(t),this.options.infinite?y&&(this.targetScroll=this.animatedScroll=this.scroll):t=clamp$1(0,t,this.limit),l)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),void(null==g||g(this));if(!y){if(t===this.targetScroll)return;this.targetScroll=t;}this.animate.fromTo(this.animatedScroll,t,{duration:p,easing:d,lerp:v,onStart:function(){a&&(i.isLocked=!0),i.isScrolling=!0;},onUpdate:function(t,e){i.isScrolling=!0,i.velocity=t-i.animatedScroll,i.direction=Math.sign(i.velocity),i.animatedScroll=t,i.setScroll(i.scroll),y&&(i.targetScroll=t),e||i.emit(),e&&(i.reset(),i.emit(),null==g||g(i),i.__preventNextScrollEvent=!0,requestAnimationFrame((function(){delete i.__preventNextScrollEvent;})));}});}}},Object.defineProperty(Lenis.prototype,"rootElement",{get:function(){return this.options.wrapper===window?document.documentElement:this.options.wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"limit",{get:function(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"isHorizontal",{get:function(){return "horizontal"===this.options.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"actualScroll",{get:function(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"scroll",{get:function(){return this.options.infinite?function modulo(t,e){return (t%e+e)%e}(this.animatedScroll,this.limit):this.animatedScroll},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"progress",{get:function(){return 0===this.limit?1:this.scroll/this.limit},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"isSmooth",{get:function(){return this.__isSmooth},set:function(t){this.__isSmooth!==t&&(this.__isSmooth=t,this.toggleClassName("lenis-smooth",t));},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"isScrolling",{get:function(){return this.__isScrolling},set:function(t){this.__isScrolling!==t&&(this.__isScrolling=t,this.toggleClassName("lenis-scrolling",t));},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"isStopped",{get:function(){return this.__isStopped},set:function(t){this.__isStopped!==t&&(this.__isStopped=t,this.toggleClassName("lenis-stopped",t));},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"isLocked",{get:function(){return this.__isLocked},set:function(t){this.__isLocked!==t&&(this.__isLocked=t,this.toggleClassName("lenis-locked",t));},enumerable:!1,configurable:!0}),Object.defineProperty(Lenis.prototype,"className",{get:function(){var t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isSmooth&&(t+=" lenis-smooth"),t},enumerable:!1,configurable:!0}),Lenis.prototype.toggleClassName=function(t,e){this.rootElement.classList.toggle(t,e),this.emitter.emit("className change",this);},Lenis}();
|
|
24280
24330
|
|
|
24281
|
-
|
|
24282
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
24283
|
-
*
|
|
24284
|
-
* This source code is licensed under the MIT license found in the
|
|
24285
|
-
* LICENSE file in the root directory of this source tree.
|
|
24286
|
-
*/
|
|
24287
|
-
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
24288
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
24289
|
-
|
|
24290
|
-
/**
|
|
24291
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
24292
|
-
*
|
|
24293
|
-
* This source code is licensed under the MIT license found in the
|
|
24294
|
-
* LICENSE file in the root directory of this source tree.
|
|
24295
|
-
*/
|
|
24296
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
24297
|
-
function emptyFunction() {}
|
|
24298
|
-
function emptyFunctionWithReset() {}
|
|
24299
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
24300
|
-
var factoryWithThrowingShims = function () {
|
|
24301
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
24302
|
-
if (secret === ReactPropTypesSecret) {
|
|
24303
|
-
// It is still safe when called from React.
|
|
24304
|
-
return;
|
|
24305
|
-
}
|
|
24306
|
-
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
24307
|
-
err.name = 'Invariant Violation';
|
|
24308
|
-
throw err;
|
|
24309
|
-
}
|
|
24310
|
-
shim.isRequired = shim;
|
|
24311
|
-
function getShim() {
|
|
24312
|
-
return shim;
|
|
24313
|
-
}
|
|
24314
|
-
// Important!
|
|
24315
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
24316
|
-
var ReactPropTypes = {
|
|
24317
|
-
array: shim,
|
|
24318
|
-
bigint: shim,
|
|
24319
|
-
bool: shim,
|
|
24320
|
-
func: shim,
|
|
24321
|
-
number: shim,
|
|
24322
|
-
object: shim,
|
|
24323
|
-
string: shim,
|
|
24324
|
-
symbol: shim,
|
|
24325
|
-
any: shim,
|
|
24326
|
-
arrayOf: getShim,
|
|
24327
|
-
element: shim,
|
|
24328
|
-
elementType: shim,
|
|
24329
|
-
instanceOf: getShim,
|
|
24330
|
-
node: shim,
|
|
24331
|
-
objectOf: getShim,
|
|
24332
|
-
oneOf: getShim,
|
|
24333
|
-
oneOfType: getShim,
|
|
24334
|
-
shape: getShim,
|
|
24335
|
-
exact: getShim,
|
|
24336
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
24337
|
-
resetWarningCache: emptyFunction
|
|
24338
|
-
};
|
|
24339
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
24340
|
-
return ReactPropTypes;
|
|
24341
|
-
};
|
|
24342
|
-
|
|
24343
|
-
/**
|
|
24344
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
24345
|
-
*
|
|
24346
|
-
* This source code is licensed under the MIT license found in the
|
|
24347
|
-
* LICENSE file in the root directory of this source tree.
|
|
24348
|
-
*/
|
|
24349
|
-
{
|
|
24350
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
24351
|
-
// http://fb.me/prop-types-in-prod
|
|
24352
|
-
propTypes.exports = factoryWithThrowingShims();
|
|
24353
|
-
}
|
|
24354
|
-
var propTypesExports = propTypes.exports;
|
|
24355
|
-
var o = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
24356
|
-
|
|
24357
|
-
function d(){return d=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);}return r},d.apply(this,arguments)}const b=reactExports.createContext(),y=create((()=>({})));const v=reactExports.forwardRef((({children:o,root:n=!1,options:s={},autoRaf:m=!0,rafPriority:p=0,className:h,...v},g)=>{const N=reactExports.useRef(),k=reactExports.useRef(),[C,O]=reactExports.useState(),j=reactExports.useRef([]),w=reactExports.useCallback(((r,e)=>{j.current.push({callback:r,priority:e}),j.current.sort(((r,e)=>r.priority-e.priority));}),[]),P=reactExports.useCallback((r=>{j.current=j.current.filter((e=>e.callback!==r));}),[]);reactExports.useImperativeHandle(g,(()=>({wrapper:N.current,content:k.current,lenis:C})),[C]),reactExports.useEffect((()=>{const r=new Lenis({...s,...!n&&{wrapper:N.current,content:k.current}});return O(r),()=>{r.destroy(),O(void 0);}}),[n,JSON.stringify(s)]),f((r=>{m&&C?.raf(r);}),p),reactExports.useEffect((()=>{n&&C&&y.setState({lenis:C,addCallback:w,removeCallback:P});}),[n,C,w,P]);const E=reactExports.useCallback((r=>{for(let e=0;e<j.current.length;e++)j.current[e].callback(r);}),[]);reactExports.useEffect((()=>(C?.on("scroll",E),()=>{C?.off("scroll",E);})),[C,E]);const R=reactExports.useCallback((()=>{N.current&&(N.current.className=clsx(C?.className,h));}),[C,h]);return reactExports.useEffect((()=>(R(),C?.on("className change",R),()=>{C?.off("className change",R);})),[C,R]),React.createElement(b.Provider,{value:{lenis:C,addCallback:w,removeCallback:P}},n?o:React.createElement("div",d({ref:N,className:clsx(C?.className,h)},v),React.createElement("div",{ref:k},o)))}));v.displayName="ReactLenis",v.propTypes={children:o.node,root:o.bool,options:o.object,autoRaf:o.bool,rafPriority:o.number,className:o.string};
|
|
24331
|
+
const p=reactExports.createContext(null),d=new class Store{constructor(r){this.listeners=[],this.state=r;}set(r){this.state=r;for(let r of this.listeners)r(this.state);}subscribe(r){return this.listeners=[...this.listeners,r],()=>{this.listeners=this.listeners.filter((e=>e!==r));}}get(){return this.state}}({});const m=reactExports.forwardRef(((o,i)=>{var{children:f,root:m=!1,options:b={},autoRaf:h=!0,rafPriority:y=0,className:v}=o,g=function __rest(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(r);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(r,n[s])&&(t[n[s]]=r[n[s]]);}return t}(o,["children","root","options","autoRaf","rafPriority","className"]);const O=reactExports.useRef(null),k=reactExports.useRef(null),[N,j]=reactExports.useState(void 0),C=reactExports.useRef([]),w=reactExports.useCallback(((r,e)=>{C.current.push({callback:r,priority:e}),C.current.sort(((r,e)=>r.priority-e.priority));}),[]),S=reactExports.useCallback((r=>{C.current=C.current.filter((e=>e.callback!==r));}),[]);reactExports.useImperativeHandle(i,(()=>({wrapper:O.current,content:k.current,lenis:N})),[N]),reactExports.useEffect((()=>{const r=new e(Object.assign(Object.assign({},b),!m&&{wrapper:O.current,content:k.current}));return j(r),()=>{r.destroy(),j(void 0);}}),[m,JSON.stringify(b)]),reactExports.useEffect((()=>{if(N&&h)return a.add((r=>{null==N||N.raf(r);}),y)}),[N,h,y]),reactExports.useEffect((()=>{if(m&&N)return d.set({lenis:N,addCallback:w,removeCallback:S}),()=>d.set({})}),[m,N,w,S]);const P=reactExports.useCallback((r=>{for(let e=0;e<C.current.length;e++)C.current[e].callback(r);}),[]);reactExports.useEffect((()=>(null==N||N.on("scroll",P),()=>{null==N||N.off("scroll",P);})),[N,P]);const x=reactExports.useCallback((()=>{O.current&&(O.current.className=clsx(null==N?void 0:N.className,v));}),[N,v]);return reactExports.useEffect((()=>(x(),null==N||N.on("className change",x),()=>{null==N||N.off("className change",x);})),[N,x]),jsxRuntimeExports.jsx(p.Provider,{value:{lenis:N,addCallback:w,removeCallback:S},children:m?f:jsxRuntimeExports.jsx("div",Object.assign({ref:O,className:clsx(null==N?void 0:N.className,v)},g,{children:jsxRuntimeExports.jsx("div",{ref:k,children:f})}))})}));
|
|
24358
24332
|
|
|
24359
24333
|
class BaseBuffer {
|
|
24360
24334
|
drawPoints(count, offset) {
|
|
@@ -25188,9 +25162,9 @@ void main(void) {
|
|
|
25188
25162
|
const app = useLlm(state => state.app);
|
|
25189
25163
|
const {
|
|
25190
25164
|
open
|
|
25191
|
-
} =
|
|
25192
|
-
const hidden =
|
|
25193
|
-
const fixed =
|
|
25165
|
+
} = useLlmView(state => state.actions);
|
|
25166
|
+
const hidden = useLlmView(state => state.hidden);
|
|
25167
|
+
const fixed = useLlmView(state => state.fixed);
|
|
25194
25168
|
const label = useLabel();
|
|
25195
25169
|
const logo = app?.contents.logo;
|
|
25196
25170
|
const logoMini = app?.contents?.logoMini;
|
|
@@ -25240,10 +25214,10 @@ void main(void) {
|
|
|
25240
25214
|
const {
|
|
25241
25215
|
width
|
|
25242
25216
|
} = useWindowSize();
|
|
25217
|
+
const app = useLlm(state => state.app);
|
|
25243
25218
|
const {
|
|
25244
25219
|
send
|
|
25245
|
-
} =
|
|
25246
|
-
const app = useLlm(state => state.app);
|
|
25220
|
+
} = useLlmView(state => state.actions);
|
|
25247
25221
|
const swiperProps = {
|
|
25248
25222
|
spaceBetween: clamp(8, 16),
|
|
25249
25223
|
slidesOffsetAfter: clamp(20, 110),
|
|
@@ -25252,7 +25226,7 @@ void main(void) {
|
|
|
25252
25226
|
};
|
|
25253
25227
|
const onClick = async item => {
|
|
25254
25228
|
await send(item.message || item.title, response => {
|
|
25255
|
-
// console.log('QuickLinks.
|
|
25229
|
+
// console.log('QuickLinks.onMessage', response.chunks);
|
|
25256
25230
|
}, response => {
|
|
25257
25231
|
// console.log('QuickLinks.onEnd', response);
|
|
25258
25232
|
});
|
|
@@ -25495,7 +25469,7 @@ void main(void) {
|
|
|
25495
25469
|
const app = useLlm(state => state.app);
|
|
25496
25470
|
const {
|
|
25497
25471
|
send
|
|
25498
|
-
} =
|
|
25472
|
+
} = useLlmView(state => state.actions);
|
|
25499
25473
|
const swiperProps = {
|
|
25500
25474
|
modules: [freeMode],
|
|
25501
25475
|
spaceBetween: 8,
|
|
@@ -25506,7 +25480,7 @@ void main(void) {
|
|
|
25506
25480
|
};
|
|
25507
25481
|
const onClick = async item => {
|
|
25508
25482
|
await send(item.sampleInputText, response => {
|
|
25509
|
-
// console.log('Suggestions.
|
|
25483
|
+
// console.log('Suggestions.onMessage', response.chunks);
|
|
25510
25484
|
}, response => {
|
|
25511
25485
|
// console.log('Suggestions.onEnd', response);
|
|
25512
25486
|
});
|
|
@@ -25533,7 +25507,6 @@ void main(void) {
|
|
|
25533
25507
|
const streaming = useLlm(state => state.streaming);
|
|
25534
25508
|
const speakEnabled = useLlm(state => state.speakEnabled);
|
|
25535
25509
|
const {
|
|
25536
|
-
send,
|
|
25537
25510
|
setPrompt,
|
|
25538
25511
|
recognizeStart,
|
|
25539
25512
|
recognizeStop,
|
|
@@ -25541,6 +25514,9 @@ void main(void) {
|
|
|
25541
25514
|
toggleSpeak,
|
|
25542
25515
|
hasSpeechSupport
|
|
25543
25516
|
} = useLlm(state => state.actions);
|
|
25517
|
+
const {
|
|
25518
|
+
send
|
|
25519
|
+
} = useLlmView(state => state.actions);
|
|
25544
25520
|
useAutosizeTextArea$1(textArea.current, prompt);
|
|
25545
25521
|
const onChange = event => {
|
|
25546
25522
|
const prompt = event.target?.value;
|
|
@@ -25725,9 +25701,11 @@ void main(void) {
|
|
|
25725
25701
|
const Event = props => {
|
|
25726
25702
|
const label = useLabel();
|
|
25727
25703
|
const {
|
|
25728
|
-
send,
|
|
25729
25704
|
decorateUrl
|
|
25730
25705
|
} = useLlm(state => state.actions);
|
|
25706
|
+
const {
|
|
25707
|
+
send
|
|
25708
|
+
} = useLlmView(state => state.actions);
|
|
25731
25709
|
const onTellMeMore = async () => {
|
|
25732
25710
|
const prompt = `${label('llm.tellMeMoreAbout')} ${props.title}`;
|
|
25733
25711
|
await send(prompt, response => {
|
|
@@ -28504,9 +28482,11 @@ void main(void) {
|
|
|
28504
28482
|
const Poi = props => {
|
|
28505
28483
|
const label = useLabel();
|
|
28506
28484
|
const {
|
|
28507
|
-
send,
|
|
28508
28485
|
decorateUrl
|
|
28509
28486
|
} = useLlm(state => state.actions);
|
|
28487
|
+
const {
|
|
28488
|
+
send
|
|
28489
|
+
} = useLlmView(state => state.actions);
|
|
28510
28490
|
const onTellMeMore = async () => {
|
|
28511
28491
|
const prompt = `${label('llm.tellMeMoreAbout')} ${props.title}`;
|
|
28512
28492
|
await send(prompt, response => {
|
|
@@ -28799,11 +28779,11 @@ void main(void) {
|
|
|
28799
28779
|
|
|
28800
28780
|
const Main = () => {
|
|
28801
28781
|
const lenisRef = reactExports.useRef(null);
|
|
28802
|
-
const embedded = useLlm(state => state.embedded);
|
|
28803
28782
|
const messages = useLlm(state => state.messages);
|
|
28783
|
+
const embedded = useLlmView(state => state.embedded);
|
|
28804
28784
|
const {
|
|
28805
28785
|
setLenis
|
|
28806
|
-
} =
|
|
28786
|
+
} = useLlmView(state => state.actions);
|
|
28807
28787
|
const classNames = getClassNames('llm__main');
|
|
28808
28788
|
setLenis(lenisRef.current?.lenis);
|
|
28809
28789
|
const reveal = {
|
|
@@ -28871,7 +28851,7 @@ void main(void) {
|
|
|
28871
28851
|
animate: "show",
|
|
28872
28852
|
exit: "exit",
|
|
28873
28853
|
children: !embedded && /*#__PURE__*/jsxRuntimeExports.jsx(Header, {})
|
|
28874
|
-
}), /*#__PURE__*/jsxRuntimeExports.jsx(
|
|
28854
|
+
}), /*#__PURE__*/jsxRuntimeExports.jsx(m, {
|
|
28875
28855
|
ref: lenisRef,
|
|
28876
28856
|
className: "llm__scroller",
|
|
28877
28857
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs(motion.div, {
|
|
@@ -28893,10 +28873,10 @@ void main(void) {
|
|
|
28893
28873
|
};
|
|
28894
28874
|
|
|
28895
28875
|
const Trigger = () => {
|
|
28876
|
+
const app = useLlm(state => state.app);
|
|
28896
28877
|
const {
|
|
28897
28878
|
open
|
|
28898
|
-
} =
|
|
28899
|
-
const app = useLlm(state => state.app);
|
|
28879
|
+
} = useLlmView(state => state.actions);
|
|
28900
28880
|
const label = useLabel();
|
|
28901
28881
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(motion.div, {
|
|
28902
28882
|
initial: {
|
|
@@ -28949,13 +28929,16 @@ void main(void) {
|
|
|
28949
28929
|
locale
|
|
28950
28930
|
} = useLayout();
|
|
28951
28931
|
const {
|
|
28952
|
-
init
|
|
28953
|
-
open
|
|
28932
|
+
init
|
|
28954
28933
|
} = useLlm(state => state.actions);
|
|
28955
28934
|
const app = useLlm(state => state.app);
|
|
28956
|
-
const
|
|
28957
|
-
|
|
28958
|
-
|
|
28935
|
+
const {
|
|
28936
|
+
initView,
|
|
28937
|
+
open
|
|
28938
|
+
} = useLlmView(state => state.actions);
|
|
28939
|
+
const idle = useLlmView(state => state.idle);
|
|
28940
|
+
const opened = useLlmView(state => state.opened);
|
|
28941
|
+
const embedded = useLlmView(state => state.embedded);
|
|
28959
28942
|
reactExports.useImperativeHandle(ref, () => ({
|
|
28960
28943
|
open: () => {
|
|
28961
28944
|
open();
|
|
@@ -28963,10 +28946,13 @@ void main(void) {
|
|
|
28963
28946
|
}));
|
|
28964
28947
|
reactExports.useEffect(() => {
|
|
28965
28948
|
init(locale);
|
|
28966
|
-
|
|
28949
|
+
initView();
|
|
28950
|
+
}, [init, locale, initView]);
|
|
28967
28951
|
reactExports.useEffect(() => {
|
|
28968
|
-
|
|
28969
|
-
|
|
28952
|
+
if (!embedded) {
|
|
28953
|
+
document.documentElement.style.overflow = opened ? 'hidden' : 'auto';
|
|
28954
|
+
}
|
|
28955
|
+
}, [opened, embedded]);
|
|
28970
28956
|
const mounted = useMounted();
|
|
28971
28957
|
const classNames = getClassNames('llm', {
|
|
28972
28958
|
'-open': opened,
|