@factorialco/agent-chat 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ChatInterface.d.ts.map +1 -1
- package/dist/index.cjs.js +12 -12
- package/dist/index.esm.js +168 -168
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -187,24 +187,24 @@ function FS() {
|
|
|
187
187
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
188
188
|
}
|
|
189
189
|
function c(g, _, L, S, B, V, H, X) {
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
190
|
+
var j = _.children;
|
|
191
|
+
if (j !== void 0)
|
|
192
192
|
if (S)
|
|
193
|
-
if (K(
|
|
194
|
-
for (S = 0; S <
|
|
195
|
-
d(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
193
|
+
if (K(j)) {
|
|
194
|
+
for (S = 0; S < j.length; S++)
|
|
195
|
+
d(j[S]);
|
|
196
|
+
Object.freeze && Object.freeze(j);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else d(
|
|
201
|
+
else d(j);
|
|
202
202
|
if (I.call(_, "key")) {
|
|
203
|
-
|
|
203
|
+
j = e(g);
|
|
204
204
|
var J = Object.keys(_).filter(function(ue) {
|
|
205
205
|
return ue !== "key";
|
|
206
206
|
});
|
|
207
|
-
S = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", Z[
|
|
207
|
+
S = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", Z[j + S] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
@@ -212,22 +212,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
214
|
S,
|
|
215
|
-
|
|
215
|
+
j,
|
|
216
216
|
J,
|
|
217
|
-
|
|
218
|
-
), Z[
|
|
217
|
+
j
|
|
218
|
+
), Z[j + S] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
220
|
+
if (j = null, L !== void 0 && (n(L), j = "" + L), i(_) && (n(_.key), j = "" + _.key), "key" in _) {
|
|
221
221
|
L = {};
|
|
222
222
|
for (var M in _)
|
|
223
223
|
M !== "key" && (L[M] = _[M]);
|
|
224
224
|
} else L = _;
|
|
225
|
-
return
|
|
225
|
+
return j && l(
|
|
226
226
|
L,
|
|
227
227
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
228
228
|
), u(
|
|
229
229
|
g,
|
|
230
|
-
|
|
230
|
+
j,
|
|
231
231
|
V,
|
|
232
232
|
B,
|
|
233
233
|
a(),
|
|
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
function d(g) {
|
|
240
240
|
typeof g == "object" && g !== null && g.$$typeof === p && g._store && (g._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var f = Fe, p = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), y = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), x = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), N = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
242
|
+
var f = Fe, p = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), y = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), x = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), N = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, K = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
f = {
|
|
@@ -247,10 +247,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
return g();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
var $, P = {},
|
|
250
|
+
var $, P = {}, G = f.react_stack_bottom_frame.bind(
|
|
251
251
|
f,
|
|
252
252
|
o
|
|
253
|
-
)(), U =
|
|
253
|
+
)(), U = W(r(o)), Z = {};
|
|
254
254
|
At.Fragment = m, At.jsx = function(g, _, L, S, B) {
|
|
255
255
|
var V = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return c(
|
|
@@ -260,8 +260,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
260
260
|
!1,
|
|
261
261
|
S,
|
|
262
262
|
B,
|
|
263
|
-
V ? Error("react-stack-top-frame") :
|
|
264
|
-
V ?
|
|
263
|
+
V ? Error("react-stack-top-frame") : G,
|
|
264
|
+
V ? W(r(g)) : U
|
|
265
265
|
);
|
|
266
266
|
}, At.jsxs = function(g, _, L, S, B) {
|
|
267
267
|
var V = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
@@ -272,8 +272,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
272
272
|
!0,
|
|
273
273
|
S,
|
|
274
274
|
B,
|
|
275
|
-
V ? Error("react-stack-top-frame") :
|
|
276
|
-
V ?
|
|
275
|
+
V ? Error("react-stack-top-frame") : G,
|
|
276
|
+
V ? W(r(g)) : U
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
279
|
}()), At;
|
|
@@ -403,7 +403,7 @@ function BS() {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
var w = s, E = u, C = l, D = i, x = t, R = c, N = r, I = b, K = p,
|
|
406
|
+
var w = s, E = u, C = l, D = i, x = t, R = c, N = r, I = b, K = p, W = n, $ = o, P = a, G = d, U = !1;
|
|
407
407
|
function Z(q) {
|
|
408
408
|
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(q) || T(q) === s;
|
|
409
409
|
}
|
|
@@ -431,7 +431,7 @@ function BS() {
|
|
|
431
431
|
function X(q) {
|
|
432
432
|
return T(q) === p;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function j(q) {
|
|
435
435
|
return T(q) === n;
|
|
436
436
|
}
|
|
437
437
|
function J(q) {
|
|
@@ -443,7 +443,7 @@ function BS() {
|
|
|
443
443
|
function ue(q) {
|
|
444
444
|
return T(q) === d;
|
|
445
445
|
}
|
|
446
|
-
se.AsyncMode = w, se.ConcurrentMode = E, se.ContextConsumer = C, se.ContextProvider = D, se.Element = x, se.ForwardRef = R, se.Fragment = N, se.Lazy = I, se.Memo = K, se.Portal =
|
|
446
|
+
se.AsyncMode = w, se.ConcurrentMode = E, se.ContextConsumer = C, se.ContextProvider = D, se.Element = x, se.ForwardRef = R, se.Fragment = N, se.Lazy = I, se.Memo = K, se.Portal = W, se.Profiler = $, se.StrictMode = P, se.Suspense = G, se.isAsyncMode = Z, se.isConcurrentMode = g, se.isContextConsumer = _, se.isContextProvider = L, se.isElement = S, se.isForwardRef = B, se.isFragment = V, se.isLazy = H, se.isMemo = X, se.isPortal = j, se.isProfiler = J, se.isStrictMode = M, se.isSuspense = ue, se.isValidElementType = y, se.typeOf = T;
|
|
447
447
|
}()), se;
|
|
448
448
|
}
|
|
449
449
|
var rc;
|
|
@@ -616,31 +616,31 @@ function HS() {
|
|
|
616
616
|
function A(g) {
|
|
617
617
|
if (process.env.NODE_ENV !== "production")
|
|
618
618
|
var _ = {}, L = 0;
|
|
619
|
-
function S(V, H, X,
|
|
620
|
-
if (
|
|
619
|
+
function S(V, H, X, j, J, M, ue) {
|
|
620
|
+
if (j = j || f, M = M || X, ue !== n) {
|
|
621
621
|
if (s) {
|
|
622
622
|
var q = new Error(
|
|
623
623
|
"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"
|
|
624
624
|
);
|
|
625
625
|
throw q.name = "Invariant Violation", q;
|
|
626
626
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
627
|
-
var he =
|
|
627
|
+
var he = j + ":" + X;
|
|
628
628
|
!_[he] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
629
629
|
L < 3 && (o(
|
|
630
|
-
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" +
|
|
630
|
+
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
631
631
|
), _[he] = !0, L++);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return H[X] == null ? V ? H[X] === null ? new m("The " + J + " `" + M + "` is marked as required " + ("in `" +
|
|
634
|
+
return H[X] == null ? V ? H[X] === null ? new m("The " + J + " `" + M + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new m("The " + J + " `" + M + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : g(H, X, j, J, M);
|
|
635
635
|
}
|
|
636
636
|
var B = S.bind(null, !1);
|
|
637
637
|
return B.isRequired = S.bind(null, !0), B;
|
|
638
638
|
}
|
|
639
639
|
function k(g) {
|
|
640
640
|
function _(L, S, B, V, H, X) {
|
|
641
|
-
var
|
|
641
|
+
var j = L[S], J = P(j);
|
|
642
642
|
if (J !== g) {
|
|
643
|
-
var M =
|
|
643
|
+
var M = G(j);
|
|
644
644
|
return new m(
|
|
645
645
|
"Invalid " + V + " `" + H + "` of type " + ("`" + M + "` supplied to `" + B + "`, expected ") + ("`" + g + "`."),
|
|
646
646
|
{ expectedType: g }
|
|
@@ -659,8 +659,8 @@ function HS() {
|
|
|
659
659
|
return new m("Property `" + H + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
|
|
660
660
|
var X = L[S];
|
|
661
661
|
if (!Array.isArray(X)) {
|
|
662
|
-
var
|
|
663
|
-
return new m("Invalid " + V + " `" + H + "` of type " + ("`" +
|
|
662
|
+
var j = P(X);
|
|
663
|
+
return new m("Invalid " + V + " `" + H + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected an array."));
|
|
664
664
|
}
|
|
665
665
|
for (var J = 0; J < X.length; J++) {
|
|
666
666
|
var M = g(X, J, B, V, H + "[" + J + "]", n);
|
|
@@ -696,8 +696,8 @@ function HS() {
|
|
|
696
696
|
function E(g) {
|
|
697
697
|
function _(L, S, B, V, H) {
|
|
698
698
|
if (!(L[S] instanceof g)) {
|
|
699
|
-
var X = g.name || f,
|
|
700
|
-
return new m("Invalid " + V + " `" + H + "` of type " + ("`" +
|
|
699
|
+
var X = g.name || f, j = Z(L[S]);
|
|
700
|
+
return new m("Invalid " + V + " `" + H + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected ") + ("instance of `" + X + "`."));
|
|
701
701
|
}
|
|
702
702
|
return null;
|
|
703
703
|
}
|
|
@@ -709,11 +709,11 @@ function HS() {
|
|
|
709
709
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
710
710
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
711
711
|
function _(L, S, B, V, H) {
|
|
712
|
-
for (var X = L[S],
|
|
713
|
-
if (b(X, g[
|
|
712
|
+
for (var X = L[S], j = 0; j < g.length; j++)
|
|
713
|
+
if (b(X, g[j]))
|
|
714
714
|
return null;
|
|
715
715
|
var J = JSON.stringify(g, function(ue, q) {
|
|
716
|
-
var he =
|
|
716
|
+
var he = G(q);
|
|
717
717
|
return he === "symbol" ? String(q) : q;
|
|
718
718
|
});
|
|
719
719
|
return new m("Invalid " + V + " `" + H + "` of value `" + String(X) + "` " + ("supplied to `" + B + "`, expected one of " + J + "."));
|
|
@@ -724,9 +724,9 @@ function HS() {
|
|
|
724
724
|
function _(L, S, B, V, H) {
|
|
725
725
|
if (typeof g != "function")
|
|
726
726
|
return new m("Property `" + H + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
|
727
|
-
var X = L[S],
|
|
728
|
-
if (
|
|
729
|
-
return new m("Invalid " + V + " `" + H + "` of type " + ("`" +
|
|
727
|
+
var X = L[S], j = P(X);
|
|
728
|
+
if (j !== "object")
|
|
729
|
+
return new m("Invalid " + V + " `" + H + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected an object."));
|
|
730
730
|
for (var J in X)
|
|
731
731
|
if (r(X, J)) {
|
|
732
732
|
var M = g(X, J, B, V, H + "." + J, n);
|
|
@@ -747,21 +747,21 @@ function HS() {
|
|
|
747
747
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(L) + " at index " + _ + "."
|
|
748
748
|
), i;
|
|
749
749
|
}
|
|
750
|
-
function S(B, V, H, X,
|
|
750
|
+
function S(B, V, H, X, j) {
|
|
751
751
|
for (var J = [], M = 0; M < g.length; M++) {
|
|
752
|
-
var ue = g[M], q = ue(B, V, H, X,
|
|
752
|
+
var ue = g[M], q = ue(B, V, H, X, j, n);
|
|
753
753
|
if (q == null)
|
|
754
754
|
return null;
|
|
755
755
|
q.data && r(q.data, "expectedType") && J.push(q.data.expectedType);
|
|
756
756
|
}
|
|
757
757
|
var he = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
758
|
-
return new m("Invalid " + X + " `" +
|
|
758
|
+
return new m("Invalid " + X + " `" + j + "` supplied to " + ("`" + H + "`" + he + "."));
|
|
759
759
|
}
|
|
760
760
|
return A(S);
|
|
761
761
|
}
|
|
762
762
|
function R() {
|
|
763
763
|
function g(_, L, S, B, V) {
|
|
764
|
-
return
|
|
764
|
+
return W(_[L]) ? null : new m("Invalid " + B + " `" + V + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
|
|
765
765
|
}
|
|
766
766
|
return A(g);
|
|
767
767
|
}
|
|
@@ -772,13 +772,13 @@ function HS() {
|
|
|
772
772
|
}
|
|
773
773
|
function I(g) {
|
|
774
774
|
function _(L, S, B, V, H) {
|
|
775
|
-
var X = L[S],
|
|
776
|
-
if (
|
|
777
|
-
return new m("Invalid " + V + " `" + H + "` of type `" +
|
|
775
|
+
var X = L[S], j = P(X);
|
|
776
|
+
if (j !== "object")
|
|
777
|
+
return new m("Invalid " + V + " `" + H + "` of type `" + j + "` " + ("supplied to `" + B + "`, expected `object`."));
|
|
778
778
|
for (var J in g) {
|
|
779
779
|
var M = g[J];
|
|
780
780
|
if (typeof M != "function")
|
|
781
|
-
return N(B, V, H, J,
|
|
781
|
+
return N(B, V, H, J, G(M));
|
|
782
782
|
var ue = M(X, J, B, V, H + "." + J, n);
|
|
783
783
|
if (ue)
|
|
784
784
|
return ue;
|
|
@@ -789,14 +789,14 @@ function HS() {
|
|
|
789
789
|
}
|
|
790
790
|
function K(g) {
|
|
791
791
|
function _(L, S, B, V, H) {
|
|
792
|
-
var X = L[S],
|
|
793
|
-
if (
|
|
794
|
-
return new m("Invalid " + V + " `" + H + "` of type `" +
|
|
792
|
+
var X = L[S], j = P(X);
|
|
793
|
+
if (j !== "object")
|
|
794
|
+
return new m("Invalid " + V + " `" + H + "` of type `" + j + "` " + ("supplied to `" + B + "`, expected `object`."));
|
|
795
795
|
var J = t({}, L[S], g);
|
|
796
796
|
for (var M in J) {
|
|
797
797
|
var ue = g[M];
|
|
798
798
|
if (r(g, M) && typeof ue != "function")
|
|
799
|
-
return N(B, V, H, M,
|
|
799
|
+
return N(B, V, H, M, G(ue));
|
|
800
800
|
if (!ue)
|
|
801
801
|
return new m(
|
|
802
802
|
"Invalid " + V + " `" + H + "` key `" + M + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(L[S], null, " ") + `
|
|
@@ -810,7 +810,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
810
810
|
}
|
|
811
811
|
return A(_);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function W(g) {
|
|
814
814
|
switch (typeof g) {
|
|
815
815
|
case "number":
|
|
816
816
|
case "string":
|
|
@@ -820,7 +820,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
820
820
|
return !g;
|
|
821
821
|
case "object":
|
|
822
822
|
if (Array.isArray(g))
|
|
823
|
-
return g.every(
|
|
823
|
+
return g.every(W);
|
|
824
824
|
if (g === null || l(g))
|
|
825
825
|
return !0;
|
|
826
826
|
var _ = d(g);
|
|
@@ -828,12 +828,12 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
828
828
|
var L = _.call(g), S;
|
|
829
829
|
if (_ !== g.entries) {
|
|
830
830
|
for (; !(S = L.next()).done; )
|
|
831
|
-
if (!
|
|
831
|
+
if (!W(S.value))
|
|
832
832
|
return !1;
|
|
833
833
|
} else
|
|
834
834
|
for (; !(S = L.next()).done; ) {
|
|
835
835
|
var B = S.value;
|
|
836
|
-
if (B && !
|
|
836
|
+
if (B && !W(B[1]))
|
|
837
837
|
return !1;
|
|
838
838
|
}
|
|
839
839
|
} else
|
|
@@ -850,7 +850,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
850
850
|
var _ = typeof g;
|
|
851
851
|
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : $(_, g) ? "symbol" : _;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function G(g) {
|
|
854
854
|
if (typeof g > "u" || g === null)
|
|
855
855
|
return "" + g;
|
|
856
856
|
var _ = P(g);
|
|
@@ -863,7 +863,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
863
863
|
return _;
|
|
864
864
|
}
|
|
865
865
|
function U(g) {
|
|
866
|
-
var _ =
|
|
866
|
+
var _ = G(g);
|
|
867
867
|
switch (_) {
|
|
868
868
|
case "array":
|
|
869
869
|
case "object":
|
|
@@ -1304,7 +1304,7 @@ const ge = (e) => {
|
|
|
1304
1304
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1305
1305
|
yE.test(e) && !SE.test(e)
|
|
1306
1306
|
), Fh = () => !1, IE = (e) => EE.test(e), NE = (e) => kE.test(e), OE = () => {
|
|
1307
|
-
const e = ge("colors"), t = ge("spacing"), n = ge("blur"), r = ge("brightness"), a = ge("borderColor"), o = ge("borderRadius"), i = ge("borderSpacing"), l = ge("borderWidth"), s = ge("contrast"), u = ge("grayscale"), c = ge("hueRotate"), d = ge("invert"), f = ge("gap"), p = ge("gradientColorStops"), b = ge("gradientColorStopPositions"), m = ge("inset"), A = ge("margin"), k = ge("opacity"), v = ge("padding"), y = ge("saturate"), T = ge("scale"), w = ge("sepia"), E = ge("skew"), C = ge("space"), D = ge("translate"), x = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", te, t], I = () => [te, t], K = () => ["", He, $e],
|
|
1307
|
+
const e = ge("colors"), t = ge("spacing"), n = ge("blur"), r = ge("brightness"), a = ge("borderColor"), o = ge("borderRadius"), i = ge("borderSpacing"), l = ge("borderWidth"), s = ge("contrast"), u = ge("grayscale"), c = ge("hueRotate"), d = ge("invert"), f = ge("gap"), p = ge("gradientColorStops"), b = ge("gradientColorStopPositions"), m = ge("inset"), A = ge("margin"), k = ge("opacity"), v = ge("padding"), y = ge("saturate"), T = ge("scale"), w = ge("sepia"), E = ge("skew"), C = ge("space"), D = ge("translate"), x = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", te, t], I = () => [te, t], K = () => ["", He, $e], W = () => ["auto", gt, te], $ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], P = () => ["solid", "dashed", "dotted", "double", "none"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Z = () => ["", "0", te], g = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [gt, te];
|
|
1308
1308
|
return {
|
|
1309
1309
|
cacheSize: 500,
|
|
1310
1310
|
separator: ":",
|
|
@@ -1622,14 +1622,14 @@ const ge = (e) => {
|
|
|
1622
1622
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1623
1623
|
*/
|
|
1624
1624
|
"col-start": [{
|
|
1625
|
-
"col-start":
|
|
1625
|
+
"col-start": W()
|
|
1626
1626
|
}],
|
|
1627
1627
|
/**
|
|
1628
1628
|
* Grid Column End
|
|
1629
1629
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1630
1630
|
*/
|
|
1631
1631
|
"col-end": [{
|
|
1632
|
-
"col-end":
|
|
1632
|
+
"col-end": W()
|
|
1633
1633
|
}],
|
|
1634
1634
|
/**
|
|
1635
1635
|
* Grid Template Rows
|
|
@@ -1652,14 +1652,14 @@ const ge = (e) => {
|
|
|
1652
1652
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1653
1653
|
*/
|
|
1654
1654
|
"row-start": [{
|
|
1655
|
-
"row-start":
|
|
1655
|
+
"row-start": W()
|
|
1656
1656
|
}],
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Grid Row End
|
|
1659
1659
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1660
1660
|
*/
|
|
1661
1661
|
"row-end": [{
|
|
1662
|
-
"row-end":
|
|
1662
|
+
"row-end": W()
|
|
1663
1663
|
}],
|
|
1664
1664
|
/**
|
|
1665
1665
|
* Grid Auto Flow
|
|
@@ -2698,14 +2698,14 @@ const ge = (e) => {
|
|
|
2698
2698
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2699
2699
|
*/
|
|
2700
2700
|
"mix-blend": [{
|
|
2701
|
-
"mix-blend": [...
|
|
2701
|
+
"mix-blend": [...G(), "plus-lighter", "plus-darker"]
|
|
2702
2702
|
}],
|
|
2703
2703
|
/**
|
|
2704
2704
|
* Background Blend Mode
|
|
2705
2705
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2706
2706
|
*/
|
|
2707
2707
|
"bg-blend": [{
|
|
2708
|
-
"bg-blend":
|
|
2708
|
+
"bg-blend": G()
|
|
2709
2709
|
}],
|
|
2710
2710
|
// Filters
|
|
2711
2711
|
/**
|
|
@@ -5783,9 +5783,9 @@ function mv(e, t, n) {
|
|
|
5783
5783
|
return $ === l ? (E.enter("codeFencedFenceSequence"), K($)) : D($);
|
|
5784
5784
|
}
|
|
5785
5785
|
function K($) {
|
|
5786
|
-
return $ === l ? (x++, E.consume($), K) : x >= i ? (E.exit("codeFencedFenceSequence"), ae($) ? ie(E,
|
|
5786
|
+
return $ === l ? (x++, E.consume($), K) : x >= i ? (E.exit("codeFencedFenceSequence"), ae($) ? ie(E, W, "whitespace")($) : W($)) : D($);
|
|
5787
5787
|
}
|
|
5788
|
-
function
|
|
5788
|
+
function W($) {
|
|
5789
5789
|
return $ === null || Q($) ? (E.exit("codeFencedFence"), C($)) : D($);
|
|
5790
5790
|
}
|
|
5791
5791
|
}
|
|
@@ -6494,12 +6494,12 @@ function Wv(e, t, n) {
|
|
|
6494
6494
|
return S === null || Q(S) ? I(S) : ae(S) ? (e.consume(S), N) : n(S);
|
|
6495
6495
|
}
|
|
6496
6496
|
function I(S) {
|
|
6497
|
-
return S === 45 && a === 2 ? (e.consume(S), P) : S === 60 && a === 1 ? (e.consume(S),
|
|
6497
|
+
return S === 45 && a === 2 ? (e.consume(S), P) : S === 60 && a === 1 ? (e.consume(S), G) : S === 62 && a === 4 ? (e.consume(S), _) : S === 63 && a === 3 ? (e.consume(S), g) : S === 93 && a === 5 ? (e.consume(S), Z) : Q(S) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check($v, L, K)(S)) : S === null || Q(S) ? (e.exit("htmlFlowData"), K(S)) : (e.consume(S), I);
|
|
6498
6498
|
}
|
|
6499
6499
|
function K(S) {
|
|
6500
|
-
return e.check(Gv,
|
|
6500
|
+
return e.check(Gv, W, L)(S);
|
|
6501
6501
|
}
|
|
6502
|
-
function
|
|
6502
|
+
function W(S) {
|
|
6503
6503
|
return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), $;
|
|
6504
6504
|
}
|
|
6505
6505
|
function $(S) {
|
|
@@ -6508,7 +6508,7 @@ function Wv(e, t, n) {
|
|
|
6508
6508
|
function P(S) {
|
|
6509
6509
|
return S === 45 ? (e.consume(S), g) : I(S);
|
|
6510
6510
|
}
|
|
6511
|
-
function
|
|
6511
|
+
function G(S) {
|
|
6512
6512
|
return S === 47 ? (e.consume(S), i = "", U) : I(S);
|
|
6513
6513
|
}
|
|
6514
6514
|
function U(S) {
|
|
@@ -6568,7 +6568,7 @@ function Xv(e, t, n) {
|
|
|
6568
6568
|
return g === 45 ? (e.consume(g), p) : n(g);
|
|
6569
6569
|
}
|
|
6570
6570
|
function d(g) {
|
|
6571
|
-
return g === null ? n(g) : g === 45 ? (e.consume(g), f) : Q(g) ? (i = d,
|
|
6571
|
+
return g === null ? n(g) : g === 45 ? (e.consume(g), f) : Q(g) ? (i = d, G(g)) : (e.consume(g), d);
|
|
6572
6572
|
}
|
|
6573
6573
|
function f(g) {
|
|
6574
6574
|
return g === 45 ? (e.consume(g), p) : d(g);
|
|
@@ -6581,7 +6581,7 @@ function Xv(e, t, n) {
|
|
|
6581
6581
|
return g === _.charCodeAt(o++) ? (e.consume(g), o === _.length ? m : b) : n(g);
|
|
6582
6582
|
}
|
|
6583
6583
|
function m(g) {
|
|
6584
|
-
return g === null ? n(g) : g === 93 ? (e.consume(g), A) : Q(g) ? (i = m,
|
|
6584
|
+
return g === null ? n(g) : g === 93 ? (e.consume(g), A) : Q(g) ? (i = m, G(g)) : (e.consume(g), m);
|
|
6585
6585
|
}
|
|
6586
6586
|
function A(g) {
|
|
6587
6587
|
return g === 93 ? (e.consume(g), k) : m(g);
|
|
@@ -6590,10 +6590,10 @@ function Xv(e, t, n) {
|
|
|
6590
6590
|
return g === 62 ? P(g) : g === 93 ? (e.consume(g), k) : m(g);
|
|
6591
6591
|
}
|
|
6592
6592
|
function v(g) {
|
|
6593
|
-
return g === null || g === 62 ? P(g) : Q(g) ? (i = v,
|
|
6593
|
+
return g === null || g === 62 ? P(g) : Q(g) ? (i = v, G(g)) : (e.consume(g), v);
|
|
6594
6594
|
}
|
|
6595
6595
|
function y(g) {
|
|
6596
|
-
return g === null ? n(g) : g === 63 ? (e.consume(g), T) : Q(g) ? (i = y,
|
|
6596
|
+
return g === null ? n(g) : g === 63 ? (e.consume(g), T) : Q(g) ? (i = y, G(g)) : (e.consume(g), y);
|
|
6597
6597
|
}
|
|
6598
6598
|
function T(g) {
|
|
6599
6599
|
return g === 62 ? P(g) : y(g);
|
|
@@ -6605,28 +6605,28 @@ function Xv(e, t, n) {
|
|
|
6605
6605
|
return g === 45 || ye(g) ? (e.consume(g), E) : C(g);
|
|
6606
6606
|
}
|
|
6607
6607
|
function C(g) {
|
|
6608
|
-
return Q(g) ? (i = C,
|
|
6608
|
+
return Q(g) ? (i = C, G(g)) : ae(g) ? (e.consume(g), C) : P(g);
|
|
6609
6609
|
}
|
|
6610
6610
|
function D(g) {
|
|
6611
6611
|
return g === 45 || ye(g) ? (e.consume(g), D) : g === 47 || g === 62 || de(g) ? x(g) : n(g);
|
|
6612
6612
|
}
|
|
6613
6613
|
function x(g) {
|
|
6614
|
-
return g === 47 ? (e.consume(g), P) : g === 58 || g === 95 || ke(g) ? (e.consume(g), R) : Q(g) ? (i = x,
|
|
6614
|
+
return g === 47 ? (e.consume(g), P) : g === 58 || g === 95 || ke(g) ? (e.consume(g), R) : Q(g) ? (i = x, G(g)) : ae(g) ? (e.consume(g), x) : P(g);
|
|
6615
6615
|
}
|
|
6616
6616
|
function R(g) {
|
|
6617
6617
|
return g === 45 || g === 46 || g === 58 || g === 95 || ye(g) ? (e.consume(g), R) : N(g);
|
|
6618
6618
|
}
|
|
6619
6619
|
function N(g) {
|
|
6620
|
-
return g === 61 ? (e.consume(g), I) : Q(g) ? (i = N,
|
|
6620
|
+
return g === 61 ? (e.consume(g), I) : Q(g) ? (i = N, G(g)) : ae(g) ? (e.consume(g), N) : x(g);
|
|
6621
6621
|
}
|
|
6622
6622
|
function I(g) {
|
|
6623
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), a = g, K) : Q(g) ? (i = I,
|
|
6623
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), a = g, K) : Q(g) ? (i = I, G(g)) : ae(g) ? (e.consume(g), I) : (e.consume(g), W);
|
|
6624
6624
|
}
|
|
6625
6625
|
function K(g) {
|
|
6626
|
-
return g === a ? (e.consume(g), a = void 0, $) : g === null ? n(g) : Q(g) ? (i = K,
|
|
6626
|
+
return g === a ? (e.consume(g), a = void 0, $) : g === null ? n(g) : Q(g) ? (i = K, G(g)) : (e.consume(g), K);
|
|
6627
6627
|
}
|
|
6628
|
-
function
|
|
6629
|
-
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || de(g) ? x(g) : (e.consume(g),
|
|
6628
|
+
function W(g) {
|
|
6629
|
+
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || de(g) ? x(g) : (e.consume(g), W);
|
|
6630
6630
|
}
|
|
6631
6631
|
function $(g) {
|
|
6632
6632
|
return g === 47 || g === 62 || de(g) ? x(g) : n(g);
|
|
@@ -6634,7 +6634,7 @@ function Xv(e, t, n) {
|
|
|
6634
6634
|
function P(g) {
|
|
6635
6635
|
return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
|
|
6636
6636
|
}
|
|
6637
|
-
function
|
|
6637
|
+
function G(g) {
|
|
6638
6638
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), U;
|
|
6639
6639
|
}
|
|
6640
6640
|
function U(g) {
|
|
@@ -7211,14 +7211,14 @@ function Pw(e, t, n) {
|
|
|
7211
7211
|
_bufferIndex: N,
|
|
7212
7212
|
_index: I,
|
|
7213
7213
|
line: K,
|
|
7214
|
-
column:
|
|
7214
|
+
column: W,
|
|
7215
7215
|
offset: $
|
|
7216
7216
|
} = r;
|
|
7217
7217
|
return {
|
|
7218
7218
|
_bufferIndex: N,
|
|
7219
7219
|
_index: I,
|
|
7220
7220
|
line: K,
|
|
7221
|
-
column:
|
|
7221
|
+
column: W,
|
|
7222
7222
|
offset: $
|
|
7223
7223
|
};
|
|
7224
7224
|
}
|
|
@@ -7261,36 +7261,36 @@ function Pw(e, t, n) {
|
|
|
7261
7261
|
}
|
|
7262
7262
|
function C(N, I) {
|
|
7263
7263
|
return K;
|
|
7264
|
-
function K(
|
|
7265
|
-
let
|
|
7266
|
-
return Array.isArray(
|
|
7264
|
+
function K(W, $, P) {
|
|
7265
|
+
let G, U, Z, g;
|
|
7266
|
+
return Array.isArray(W) ? (
|
|
7267
7267
|
/* c8 ignore next 1 */
|
|
7268
|
-
L(
|
|
7269
|
-
) : "tokenize" in
|
|
7268
|
+
L(W)
|
|
7269
|
+
) : "tokenize" in W ? (
|
|
7270
7270
|
// Looks like a construct.
|
|
7271
7271
|
L([
|
|
7272
7272
|
/** @type {Construct} */
|
|
7273
|
-
|
|
7273
|
+
W
|
|
7274
7274
|
])
|
|
7275
|
-
) : _(
|
|
7275
|
+
) : _(W);
|
|
7276
7276
|
function _(H) {
|
|
7277
7277
|
return X;
|
|
7278
|
-
function X(
|
|
7279
|
-
const J =
|
|
7278
|
+
function X(j) {
|
|
7279
|
+
const J = j !== null && H[j], M = j !== null && H.null, ue = [
|
|
7280
7280
|
// To do: add more extension tests.
|
|
7281
7281
|
/* c8 ignore next 2 */
|
|
7282
7282
|
...Array.isArray(J) ? J : J ? [J] : [],
|
|
7283
7283
|
...Array.isArray(M) ? M : M ? [M] : []
|
|
7284
7284
|
];
|
|
7285
|
-
return L(ue)(
|
|
7285
|
+
return L(ue)(j);
|
|
7286
7286
|
}
|
|
7287
7287
|
}
|
|
7288
7288
|
function L(H) {
|
|
7289
|
-
return
|
|
7289
|
+
return G = H, U = 0, H.length === 0 ? P : S(H[U]);
|
|
7290
7290
|
}
|
|
7291
7291
|
function S(H) {
|
|
7292
7292
|
return X;
|
|
7293
|
-
function X(
|
|
7293
|
+
function X(j) {
|
|
7294
7294
|
return g = x(), Z = H, H.partial || (u.currentConstruct = H), H.name && u.parser.constructs.disable.null.includes(H.name) ? V() : H.tokenize.call(
|
|
7295
7295
|
// If we do have fields, create an object w/ `context` as its
|
|
7296
7296
|
// prototype.
|
|
@@ -7299,14 +7299,14 @@ function Pw(e, t, n) {
|
|
|
7299
7299
|
s,
|
|
7300
7300
|
B,
|
|
7301
7301
|
V
|
|
7302
|
-
)(
|
|
7302
|
+
)(j);
|
|
7303
7303
|
}
|
|
7304
7304
|
}
|
|
7305
7305
|
function B(H) {
|
|
7306
7306
|
return N(Z, g), $;
|
|
7307
7307
|
}
|
|
7308
7308
|
function V(H) {
|
|
7309
|
-
return g.restore(), ++U <
|
|
7309
|
+
return g.restore(), ++U < G.length ? S(G[U]) : P;
|
|
7310
7310
|
}
|
|
7311
7311
|
}
|
|
7312
7312
|
}
|
|
@@ -7314,13 +7314,13 @@ function Pw(e, t, n) {
|
|
|
7314
7314
|
N.resolveAll && !o.includes(N) && o.push(N), N.resolve && xe(u.events, I, u.events.length - I, N.resolve(u.events.slice(I), u)), N.resolveTo && (u.events = N.resolveTo(u.events, u));
|
|
7315
7315
|
}
|
|
7316
7316
|
function x() {
|
|
7317
|
-
const N = b(), I = u.previous, K = u.currentConstruct,
|
|
7317
|
+
const N = b(), I = u.previous, K = u.currentConstruct, W = u.events.length, $ = Array.from(l);
|
|
7318
7318
|
return {
|
|
7319
|
-
from:
|
|
7319
|
+
from: W,
|
|
7320
7320
|
restore: P
|
|
7321
7321
|
};
|
|
7322
7322
|
function P() {
|
|
7323
|
-
r = N, u.previous = I, u.currentConstruct = K, u.events.length =
|
|
7323
|
+
r = N, u.previous = I, u.currentConstruct = K, u.events.length = W, l = $, R();
|
|
7324
7324
|
}
|
|
7325
7325
|
}
|
|
7326
7326
|
function R() {
|
|
@@ -7513,7 +7513,7 @@ function Vw(e) {
|
|
|
7513
7513
|
atxHeadingSequence: w,
|
|
7514
7514
|
autolink: s(),
|
|
7515
7515
|
autolinkEmail: J,
|
|
7516
|
-
autolinkProtocol:
|
|
7516
|
+
autolinkProtocol: j,
|
|
7517
7517
|
blockQuote: s(),
|
|
7518
7518
|
characterEscapeValue: R,
|
|
7519
7519
|
characterReferenceMarkerHexadecimal: V,
|
|
@@ -7538,9 +7538,9 @@ function Vw(e) {
|
|
|
7538
7538
|
hardBreakTrailing: s(I),
|
|
7539
7539
|
htmlFlow: s(K),
|
|
7540
7540
|
htmlFlowData: R,
|
|
7541
|
-
htmlText: s(
|
|
7541
|
+
htmlText: s(W),
|
|
7542
7542
|
htmlTextData: R,
|
|
7543
|
-
image: s(
|
|
7543
|
+
image: s(G),
|
|
7544
7544
|
label: Z,
|
|
7545
7545
|
labelText: U,
|
|
7546
7546
|
lineEnding: N,
|
|
@@ -7786,7 +7786,7 @@ function Vw(e) {
|
|
|
7786
7786
|
const O = this.resume(), z = this.stack[this.stack.length - 1];
|
|
7787
7787
|
z.value = O;
|
|
7788
7788
|
}
|
|
7789
|
-
function
|
|
7789
|
+
function W() {
|
|
7790
7790
|
const O = this.resume(), z = this.stack[this.stack.length - 1];
|
|
7791
7791
|
z.value = O;
|
|
7792
7792
|
}
|
|
@@ -7803,7 +7803,7 @@ function Vw(e) {
|
|
|
7803
7803
|
delete O.identifier, delete O.label;
|
|
7804
7804
|
this.data.referenceType = void 0;
|
|
7805
7805
|
}
|
|
7806
|
-
function
|
|
7806
|
+
function G() {
|
|
7807
7807
|
const O = this.stack[this.stack.length - 1];
|
|
7808
7808
|
if (this.data.inReference) {
|
|
7809
7809
|
const z = this.data.referenceType || "shortcut";
|
|
@@ -7856,7 +7856,7 @@ function Vw(e) {
|
|
|
7856
7856
|
const z = this.stack.pop();
|
|
7857
7857
|
z.position.end = je(O.end);
|
|
7858
7858
|
}
|
|
7859
|
-
function
|
|
7859
|
+
function j(O) {
|
|
7860
7860
|
R.call(this, O);
|
|
7861
7861
|
const z = this.stack[this.stack.length - 1];
|
|
7862
7862
|
z.url = this.sliceSerialize(O);
|
|
@@ -10505,24 +10505,24 @@ function PT(e, t, n, r, a, o, i, l, s) {
|
|
|
10505
10505
|
`)
|
|
10506
10506
|
};
|
|
10507
10507
|
if (N === 0) {
|
|
10508
|
-
var
|
|
10508
|
+
var W = c.slice(f + 1, p).concat(Jt({
|
|
10509
10509
|
children: [K],
|
|
10510
10510
|
className: E.properties.className
|
|
10511
|
-
})), $ = A(
|
|
10511
|
+
})), $ = A(W, I);
|
|
10512
10512
|
d.push($);
|
|
10513
10513
|
} else if (N === x.length - 1) {
|
|
10514
|
-
var P = c[p + 1] && c[p + 1].children && c[p + 1].children[0],
|
|
10514
|
+
var P = c[p + 1] && c[p + 1].children && c[p + 1].children[0], G = {
|
|
10515
10515
|
type: "text",
|
|
10516
10516
|
value: "".concat(R)
|
|
10517
10517
|
};
|
|
10518
10518
|
if (P) {
|
|
10519
10519
|
var U = Jt({
|
|
10520
|
-
children: [
|
|
10520
|
+
children: [G],
|
|
10521
10521
|
className: E.properties.className
|
|
10522
10522
|
});
|
|
10523
10523
|
c.splice(p + 1, 0, U);
|
|
10524
10524
|
} else {
|
|
10525
|
-
var Z = [
|
|
10525
|
+
var Z = [G], g = A(Z, I, E.properties.className);
|
|
10526
10526
|
d.push(g);
|
|
10527
10527
|
}
|
|
10528
10528
|
} else {
|
|
@@ -10583,7 +10583,7 @@ function UT(e, t) {
|
|
|
10583
10583
|
var a, o, i = r.language, l = r.children, s = r.style, u = s === void 0 ? t : s, c = r.customStyle, d = c === void 0 ? {} : c, f = r.codeTagProps, p = f === void 0 ? {
|
|
10584
10584
|
className: i ? "language-".concat(i) : void 0,
|
|
10585
10585
|
style: We(We({}, u['code[class*="language-"]']), u['code[class*="language-'.concat(i, '"]')])
|
|
10586
|
-
} : f, b = r.useInlineStyles, m = b === void 0 ? !0 : b, A = r.showLineNumbers, k = A === void 0 ? !1 : A, v = r.showInlineLineNumbers, y = v === void 0 ? !0 : v, T = r.startingLineNumber, w = T === void 0 ? 1 : T, E = r.lineNumberContainerStyle, C = r.lineNumberStyle, D = C === void 0 ? {} : C, x = r.wrapLines, R = r.wrapLongLines, N = R === void 0 ? !1 : R, I = r.lineProps, K = I === void 0 ? {} : I,
|
|
10586
|
+
} : f, b = r.useInlineStyles, m = b === void 0 ? !0 : b, A = r.showLineNumbers, k = A === void 0 ? !1 : A, v = r.showInlineLineNumbers, y = v === void 0 ? !0 : v, T = r.startingLineNumber, w = T === void 0 ? 1 : T, E = r.lineNumberContainerStyle, C = r.lineNumberStyle, D = C === void 0 ? {} : C, x = r.wrapLines, R = r.wrapLongLines, N = R === void 0 ? !1 : R, I = r.lineProps, K = I === void 0 ? {} : I, W = r.renderer, $ = r.PreTag, P = $ === void 0 ? "pre" : $, G = r.CodeTag, U = G === void 0 ? "code" : G, Z = r.code, g = Z === void 0 ? (Array.isArray(l) ? l[0] : l) || "" : Z, _ = r.astGenerator, L = ST(r, NT);
|
|
10587
10587
|
_ = _ || e;
|
|
10588
10588
|
var S = k ? /* @__PURE__ */ Fe.createElement(MT, {
|
|
10589
10589
|
containerStyle: E,
|
|
@@ -10605,19 +10605,19 @@ function UT(e, t) {
|
|
|
10605
10605
|
whiteSpace: "pre"
|
|
10606
10606
|
}, p.style), !_)
|
|
10607
10607
|
return /* @__PURE__ */ Fe.createElement(P, H, S, /* @__PURE__ */ Fe.createElement(U, p, g));
|
|
10608
|
-
(x === void 0 &&
|
|
10608
|
+
(x === void 0 && W || N) && (x = !0), W = W || BT;
|
|
10609
10609
|
var X = [{
|
|
10610
10610
|
type: "text",
|
|
10611
10611
|
value: g
|
|
10612
|
-
}],
|
|
10612
|
+
}], j = zT({
|
|
10613
10613
|
astGenerator: _,
|
|
10614
10614
|
language: i,
|
|
10615
10615
|
code: g,
|
|
10616
10616
|
defaultCodeValue: X
|
|
10617
10617
|
});
|
|
10618
|
-
|
|
10619
|
-
var J = (a = (o = g.match(/\n/g)) === null || o === void 0 ? void 0 : o.length) !== null && a !== void 0 ? a : 0, M = w + J, ue = PT(
|
|
10620
|
-
return /* @__PURE__ */ Fe.createElement(P, H, /* @__PURE__ */ Fe.createElement(U, p, !y && S,
|
|
10618
|
+
j.language === null && (j.value = X);
|
|
10619
|
+
var J = (a = (o = g.match(/\n/g)) === null || o === void 0 ? void 0 : o.length) !== null && a !== void 0 ? a : 0, M = w + J, ue = PT(j, x, K, k, y, w, M, D, N);
|
|
10620
|
+
return /* @__PURE__ */ Fe.createElement(P, H, /* @__PURE__ */ Fe.createElement(U, p, !y && S, W({
|
|
10621
10621
|
rows: ue,
|
|
10622
10622
|
stylesheet: u,
|
|
10623
10623
|
useInlineStyles: m
|
|
@@ -11471,16 +11471,16 @@ function DC(e, t) {
|
|
|
11471
11471
|
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), MC(e, n);
|
|
11472
11472
|
}
|
|
11473
11473
|
function MC(e, t) {
|
|
11474
|
-
var n = t.additional, r = t.nonTerminated, a = t.text, o = t.reference, i = t.warning, l = t.textContext, s = t.referenceContext, u = t.warningContext, c = t.position, d = t.indent || [], f = e.length, p = 0, b = -1, m = c.column || 1, A = c.line || 1, k = "", v = [], y, T, w, E, C, D, x, R, N, I, K,
|
|
11474
|
+
var n = t.additional, r = t.nonTerminated, a = t.text, o = t.reference, i = t.warning, l = t.textContext, s = t.referenceContext, u = t.warningContext, c = t.position, d = t.indent || [], f = e.length, p = 0, b = -1, m = c.column || 1, A = c.line || 1, k = "", v = [], y, T, w, E, C, D, x, R, N, I, K, W, $, P, G, U, Z, g, _;
|
|
11475
11475
|
for (typeof n == "string" && (n = n.charCodeAt(0)), U = L(), R = i ? S : wC, p--, f++; ++p < f; )
|
|
11476
11476
|
if (C === vd && (m = d[b] || 1), C = e.charCodeAt(p), C === wd) {
|
|
11477
11477
|
if (x = e.charCodeAt(p + 1), x === AC || x === vd || x === TC || x === RC || x === wd || x === xC || x !== x || n && x === n) {
|
|
11478
11478
|
k += ut(C), m++;
|
|
11479
11479
|
continue;
|
|
11480
11480
|
}
|
|
11481
|
-
for ($ = p + 1,
|
|
11481
|
+
for ($ = p + 1, W = $, _ = $, x === IC ? (_ = ++W, x = e.charCodeAt(_), x === NC || x === OC ? (P = xu, _ = ++W) : P = Cu) : P = ct, y = "", K = "", E = "", G = gn[P], _--; ++_ < f && (x = e.charCodeAt(_), !!G(x)); )
|
|
11482
11482
|
E += ut(x), P === ct && vC.call(Sd, E) && (y = E, K = Sd[E]);
|
|
11483
|
-
w = e.charCodeAt(_) === _C, w && (_++, T = P === ct ? EC(E) : !1, T && (y = E, K = T)), g = 1 + _ - $, !w && !r || (E ? P === ct ? (w && !K ? R($y, 1) : (y !== E && (_ =
|
|
11483
|
+
w = e.charCodeAt(_) === _C, w && (_++, T = P === ct ? EC(E) : !1, T && (y = E, K = T)), g = 1 + _ - $, !w && !r || (E ? P === ct ? (w && !K ? R($y, 1) : (y !== E && (_ = W + y.length, g = 1 + _ - W, w = !1), w || (N = y ? zy : Hy, t.attribute ? (x = e.charCodeAt(_), x === CC ? (R(N, g), K = null) : By(x) ? K = null : R(N, g)) : R(N, g))), D = K) : (w || R(Uy, g), D = parseInt(E, Iu[P]), FC(D) ? (R(Gy, g), D = ut(LC)) : D in Ed ? (R(eu, g), D = Ed[D]) : (I = "", PC(D) && R(eu, g), D > 65535 && (D -= 65536, I += ut(D >>> 10 | 55296), D = 56320 | D & 1023), D = I + ut(D))) : P !== ct && R(qy, g)), D ? (B(), U = L(), p = _ - 1, m += _ - $ + 1, v.push(D), Z = L(), Z.offset++, o && o.call(
|
|
11484
11484
|
s,
|
|
11485
11485
|
D,
|
|
11486
11486
|
{ start: U, end: Z },
|
|
@@ -12134,19 +12134,19 @@ var jy = { exports: {} };
|
|
|
12134
12134
|
for (var R = 0; R < x.length; ++R) {
|
|
12135
12135
|
if (C && C.cause == D + "," + R)
|
|
12136
12136
|
return;
|
|
12137
|
-
var N = x[R], I = N.inside, K = !!N.lookbehind,
|
|
12138
|
-
if (
|
|
12137
|
+
var N = x[R], I = N.inside, K = !!N.lookbehind, W = !!N.greedy, $ = N.alias;
|
|
12138
|
+
if (W && !N.pattern.global) {
|
|
12139
12139
|
var P = N.pattern.toString().match(/[imsuy]*$/)[0];
|
|
12140
12140
|
N.pattern = RegExp(N.pattern.source, P + "g");
|
|
12141
12141
|
}
|
|
12142
|
-
for (var
|
|
12142
|
+
for (var G = N.pattern || N, U = w.next, Z = E; U !== y.tail && !(C && Z >= C.reach); Z += U.value.length, U = U.next) {
|
|
12143
12143
|
var g = U.value;
|
|
12144
12144
|
if (y.length > v.length)
|
|
12145
12145
|
return;
|
|
12146
12146
|
if (!(g instanceof s)) {
|
|
12147
12147
|
var _ = 1, L;
|
|
12148
|
-
if (
|
|
12149
|
-
if (L = u(
|
|
12148
|
+
if (W) {
|
|
12149
|
+
if (L = u(G, Z, v, K), !L || L.index >= v.length)
|
|
12150
12150
|
break;
|
|
12151
12151
|
var H = L.index, S = L.index + L[0].length, B = Z;
|
|
12152
12152
|
for (B += U.value.length; H >= B; )
|
|
@@ -12156,12 +12156,12 @@ var jy = { exports: {} };
|
|
|
12156
12156
|
for (var V = U; V !== y.tail && (B < S || typeof V.value == "string"); V = V.next)
|
|
12157
12157
|
_++, B += V.value.length;
|
|
12158
12158
|
_--, g = v.slice(Z, B), L.index -= Z;
|
|
12159
|
-
} else if (L = u(
|
|
12159
|
+
} else if (L = u(G, 0, g, K), !L)
|
|
12160
12160
|
continue;
|
|
12161
|
-
var H = L.index, X = L[0],
|
|
12161
|
+
var H = L.index, X = L[0], j = g.slice(0, H), J = g.slice(H + X.length), M = Z + g.length;
|
|
12162
12162
|
C && M > C.reach && (C.reach = M);
|
|
12163
12163
|
var ue = U.prev;
|
|
12164
|
-
|
|
12164
|
+
j && (ue = f(y, ue, j), Z += j.length), p(y, ue, _);
|
|
12165
12165
|
var q = new s(D, I ? l.tokenize(X, I) : X, $, X);
|
|
12166
12166
|
if (U = f(y, ue, q), J && f(y, U, J), _ > 1) {
|
|
12167
12167
|
var he = {
|
|
@@ -14296,7 +14296,7 @@ function fn() {
|
|
|
14296
14296
|
N
|
|
14297
14297
|
]),
|
|
14298
14298
|
2
|
|
14299
|
-
), K = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,
|
|
14299
|
+
), K = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, W = r(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
|
|
14300
14300
|
A,
|
|
14301
14301
|
I
|
|
14302
14302
|
]);
|
|
@@ -14306,7 +14306,7 @@ function fn() {
|
|
|
14306
14306
|
// [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
|
|
14307
14307
|
pattern: a(
|
|
14308
14308
|
/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,
|
|
14309
|
-
[K,
|
|
14309
|
+
[K, W]
|
|
14310
14310
|
),
|
|
14311
14311
|
lookbehind: !0,
|
|
14312
14312
|
greedy: !0,
|
|
@@ -14334,7 +14334,7 @@ function fn() {
|
|
|
14334
14334
|
N
|
|
14335
14335
|
]),
|
|
14336
14336
|
2
|
|
14337
|
-
),
|
|
14337
|
+
), G = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
14338
14338
|
P,
|
|
14339
14339
|
$
|
|
14340
14340
|
]), U = o(
|
|
@@ -14379,11 +14379,11 @@ function fn() {
|
|
|
14379
14379
|
{
|
|
14380
14380
|
pattern: a(
|
|
14381
14381
|
/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,
|
|
14382
|
-
[
|
|
14382
|
+
[G]
|
|
14383
14383
|
),
|
|
14384
14384
|
lookbehind: !0,
|
|
14385
14385
|
greedy: !0,
|
|
14386
|
-
inside: g(
|
|
14386
|
+
inside: g(G, P)
|
|
14387
14387
|
},
|
|
14388
14388
|
{
|
|
14389
14389
|
pattern: a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [
|
|
@@ -21543,14 +21543,14 @@ function d1() {
|
|
|
21543
21543
|
var I = C[y], K = typeof N == "string" ? N : (
|
|
21544
21544
|
/** @type {string} */
|
|
21545
21545
|
N.content
|
|
21546
|
-
),
|
|
21547
|
-
if (
|
|
21546
|
+
), W = K.indexOf(I);
|
|
21547
|
+
if (W !== -1) {
|
|
21548
21548
|
++y;
|
|
21549
|
-
var $ = K.substring(0,
|
|
21549
|
+
var $ = K.substring(0, W), P = d(
|
|
21550
21550
|
T[I]
|
|
21551
|
-
),
|
|
21552
|
-
if ($ && U.push($), U.push(P),
|
|
21553
|
-
var Z = [
|
|
21551
|
+
), G = K.substring(W + I.length), U = [];
|
|
21552
|
+
if ($ && U.push($), U.push(P), G) {
|
|
21553
|
+
var Z = [G];
|
|
21554
21554
|
D(Z), U.push.apply(U, Z);
|
|
21555
21555
|
}
|
|
21556
21556
|
typeof N == "string" ? (x.splice.apply(x, [R, 1].concat(U)), R += U.length - 1) : N.content = U;
|
|
@@ -41928,7 +41928,7 @@ function ML() {
|
|
|
41928
41928
|
}), Object.defineProperty(e, "lucario", {
|
|
41929
41929
|
enumerable: !0,
|
|
41930
41930
|
get: function() {
|
|
41931
|
-
return
|
|
41931
|
+
return W.default;
|
|
41932
41932
|
}
|
|
41933
41933
|
}), Object.defineProperty(e, "materialDark", {
|
|
41934
41934
|
enumerable: !0,
|
|
@@ -41943,7 +41943,7 @@ function ML() {
|
|
|
41943
41943
|
}), Object.defineProperty(e, "materialOceanic", {
|
|
41944
41944
|
enumerable: !0,
|
|
41945
41945
|
get: function() {
|
|
41946
|
-
return
|
|
41946
|
+
return G.default;
|
|
41947
41947
|
}
|
|
41948
41948
|
}), Object.defineProperty(e, "nightOwl", {
|
|
41949
41949
|
enumerable: !0,
|
|
@@ -42023,7 +42023,7 @@ function ML() {
|
|
|
42023
42023
|
}), Object.defineProperty(e, "xonokai", {
|
|
42024
42024
|
enumerable: !0,
|
|
42025
42025
|
get: function() {
|
|
42026
|
-
return
|
|
42026
|
+
return j.default;
|
|
42027
42027
|
}
|
|
42028
42028
|
}), Object.defineProperty(e, "zTouch", {
|
|
42029
42029
|
enumerable: !0,
|
|
@@ -42031,7 +42031,7 @@ function ML() {
|
|
|
42031
42031
|
return J.default;
|
|
42032
42032
|
}
|
|
42033
42033
|
});
|
|
42034
|
-
var n = t(W0()), r = t(V0()), a = t(Y0()), o = t(K0()), i = t(X0()), l = t(Z0()), s = t(Q0()), u = t(J0()), c = t(eL()), d = t(tL()), f = t(nL()), p = t(rL()), b = t(aL()), m = t(oL()), A = t(iL()), k = t(lL()), v = t(sL()), y = t(uL()), T = t(cL()), w = t(dL()), E = t(pL()), C = t(gL()), D = t(fL()), x = t(bL()), R = t(mL()), N = t(hL()), I = t(yL()), K = t(SL()),
|
|
42034
|
+
var n = t(W0()), r = t(V0()), a = t(Y0()), o = t(K0()), i = t(X0()), l = t(Z0()), s = t(Q0()), u = t(J0()), c = t(eL()), d = t(tL()), f = t(nL()), p = t(rL()), b = t(aL()), m = t(oL()), A = t(iL()), k = t(lL()), v = t(sL()), y = t(uL()), T = t(cL()), w = t(dL()), E = t(pL()), C = t(gL()), D = t(fL()), x = t(bL()), R = t(mL()), N = t(hL()), I = t(yL()), K = t(SL()), W = t(EL()), $ = t(kL()), P = t(vL()), G = t(wL()), U = t(AL()), Z = t(TL()), g = t(RL()), _ = t(_L()), L = t(xL()), S = t(CL()), B = t(IL()), V = t(NL()), H = t(OL()), X = t(LL()), j = t(DL()), J = t(ML());
|
|
42035
42035
|
})(nS);
|
|
42036
42036
|
function yh(e, t) {
|
|
42037
42037
|
const n = String(e);
|
|
@@ -43777,9 +43777,9 @@ function FM(e, t, n) {
|
|
|
43777
43777
|
function l(R) {
|
|
43778
43778
|
let N = r.events.length - 1;
|
|
43779
43779
|
for (; N > -1; ) {
|
|
43780
|
-
const
|
|
43781
|
-
if (
|
|
43782
|
-
|
|
43780
|
+
const W = r.events[N][1].type;
|
|
43781
|
+
if (W === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
43782
|
+
W === "linePrefix") N--;
|
|
43783
43783
|
else break;
|
|
43784
43784
|
}
|
|
43785
43785
|
const I = N > -1 ? r.events[N][1].type : null, K = I === "tableHead" || I === "tableRow" ? E : s;
|
|
@@ -43960,7 +43960,7 @@ function _S({ children: e, className: t }) {
|
|
|
43960
43960
|
{
|
|
43961
43961
|
remarkPlugins: [GM],
|
|
43962
43962
|
components: {
|
|
43963
|
-
code: ({
|
|
43963
|
+
code: ({ _node: n, className: r, children: a, ...o }) => {
|
|
43964
43964
|
const i = /language-(\w+)/.exec(r || "");
|
|
43965
43965
|
return !!i && i ? /* @__PURE__ */ Y.jsx(
|
|
43966
43966
|
tS,
|
|
@@ -44111,19 +44111,19 @@ const jM = ({ content: e, agentName: t, onComplete: n, onChange: r }) => {
|
|
|
44111
44111
|
b(e);
|
|
44112
44112
|
}, [s]), DS(f, () => ({
|
|
44113
44113
|
addAssistantMessage: (P) => {
|
|
44114
|
-
const
|
|
44114
|
+
const G = {
|
|
44115
44115
|
id: Date.now().toString(),
|
|
44116
44116
|
role: "assistant",
|
|
44117
44117
|
content: P,
|
|
44118
44118
|
timestamp: /* @__PURE__ */ new Date(),
|
|
44119
44119
|
isTyping: !0
|
|
44120
44120
|
};
|
|
44121
|
-
b((U) => [...U,
|
|
44121
|
+
b((U) => [...U, G]), i == null || i(G), v(!1);
|
|
44122
44122
|
}
|
|
44123
44123
|
}), []);
|
|
44124
44124
|
const E = (P) => {
|
|
44125
44125
|
b(
|
|
44126
|
-
(
|
|
44126
|
+
(G) => G.map(
|
|
44127
44127
|
(U) => U.id === P ? { ...U, isTyping: !1 } : U
|
|
44128
44128
|
)
|
|
44129
44129
|
);
|
|
@@ -44140,26 +44140,26 @@ const jM = ({ content: e, agentName: t, onComplete: n, onChange: r }) => {
|
|
|
44140
44140
|
content: m.trim(),
|
|
44141
44141
|
timestamp: /* @__PURE__ */ new Date()
|
|
44142
44142
|
}), x = (P) => {
|
|
44143
|
-
b((
|
|
44143
|
+
b((G) => [...G, P]), A(""), v(!0), o == null || o(P);
|
|
44144
44144
|
}, R = async (P) => {
|
|
44145
44145
|
if (!t) {
|
|
44146
44146
|
v(!1);
|
|
44147
44147
|
return;
|
|
44148
44148
|
}
|
|
44149
44149
|
try {
|
|
44150
|
-
const
|
|
44151
|
-
if (
|
|
44150
|
+
const G = await t(P.content);
|
|
44151
|
+
if (G) {
|
|
44152
44152
|
const U = {
|
|
44153
44153
|
id: (Date.now() + 1).toString(),
|
|
44154
44154
|
role: "assistant",
|
|
44155
|
-
content:
|
|
44155
|
+
content: G,
|
|
44156
44156
|
timestamp: /* @__PURE__ */ new Date(),
|
|
44157
44157
|
isTyping: !0
|
|
44158
44158
|
};
|
|
44159
44159
|
b((Z) => [...Z, U]), i == null || i(U);
|
|
44160
44160
|
}
|
|
44161
|
-
} catch (
|
|
44162
|
-
console.error("Error sending message:",
|
|
44161
|
+
} catch (G) {
|
|
44162
|
+
console.error("Error sending message:", G);
|
|
44163
44163
|
const U = {
|
|
44164
44164
|
id: (Date.now() + 1).toString(),
|
|
44165
44165
|
role: "assistant",
|
|
@@ -44177,16 +44177,16 @@ const jM = ({ content: e, agentName: t, onComplete: n, onChange: r }) => {
|
|
|
44177
44177
|
}
|
|
44178
44178
|
try {
|
|
44179
44179
|
await t(P.content);
|
|
44180
|
-
} catch (
|
|
44181
|
-
console.error("Error sending message:",
|
|
44180
|
+
} catch (G) {
|
|
44181
|
+
console.error("Error sending message:", G);
|
|
44182
44182
|
}
|
|
44183
|
-
}, I = async () => {
|
|
44184
|
-
if (!m.trim() || k) return;
|
|
44185
|
-
const
|
|
44186
|
-
x(
|
|
44183
|
+
}, I = async (P) => {
|
|
44184
|
+
if (P == null || P.preventDefault(), !m.trim() || k) return;
|
|
44185
|
+
const G = D();
|
|
44186
|
+
x(G), u ? N(G) : R(G);
|
|
44187
44187
|
}, K = (P) => {
|
|
44188
44188
|
P.key === "Enter" && !P.shiftKey && (P.preventDefault(), I());
|
|
44189
|
-
},
|
|
44189
|
+
}, W = () => {
|
|
44190
44190
|
switch (l) {
|
|
44191
44191
|
case "dark":
|
|
44192
44192
|
return "bg-gray-900 text-white";
|
|
@@ -44196,7 +44196,7 @@ const jM = ({ content: e, agentName: t, onComplete: n, onChange: r }) => {
|
|
|
44196
44196
|
return "bg-white dark:bg-gray-900 text-gray-900 dark:text-white";
|
|
44197
44197
|
}
|
|
44198
44198
|
}, $ = p.some((P) => P.isTyping);
|
|
44199
|
-
return /* @__PURE__ */ Y.jsxs("div", { className: Ye("flex h-full flex-col rounded-lg bg-background pb-4", a,
|
|
44199
|
+
return /* @__PURE__ */ Y.jsxs("div", { className: Ye("flex h-full flex-col rounded-lg bg-background pb-4", a, W()), children: [
|
|
44200
44200
|
/* @__PURE__ */ Y.jsx("div", { className: "flex-1 px-4 overflow-y-auto min-h-0 pb-6 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", ref: w, children: /* @__PURE__ */ Y.jsxs("div", { className: "space-y-4 pt-4", children: [
|
|
44201
44201
|
p.map((P) => /* @__PURE__ */ Y.jsx(
|
|
44202
44202
|
WM,
|