@epam/ai-dial-chat-shared 1.1.0-dev.422 → 1.1.0-dev.423
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/components/MarkdownRenderer/MDMessageViewer.d.ts +5 -0
- package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -1
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +7 -0
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
- package/index.js +356 -354
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as
|
|
|
2
2
|
import { n as d, t as f } from "./index.dom-BKBT_wVu.js";
|
|
3
3
|
import { i as p, r as m, t as h } from "./web-namespaces-BJylbtYz.js";
|
|
4
4
|
import { a as g, c as _, i as v, l as y, n as b, o as x, r as S, s as C, t as w, u as T } from "./FileManagerAttachModal-rkWJ1bqK.js";
|
|
5
|
-
import { Checkbox as E, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, DialNoDataContent as ee, ElementSize as te, EllipsisTooltip as ne, GhostIconButton as
|
|
6
|
-
import { Suspense as
|
|
5
|
+
import { Checkbox as E, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, DialNoDataContent as ee, ElementSize as te, EllipsisTooltip as ne, GhostIconButton as re, Highlight as ie, NeutralButton as ae, ToggleIconButton as oe, Tooltip as k } from "@epam/ai-dial-ui-kit";
|
|
6
|
+
import { Suspense as A, createElement as se, forwardRef as ce, lazy as le, memo as ue, useCallback as j, useEffect as de, useLayoutEffect as fe, useMemo as M, useRef as pe, useState as N } from "react";
|
|
7
7
|
import { Fragment as me, jsx as P, jsxs as he } from "react/jsx-runtime";
|
|
8
8
|
//#region src/models/conversation-transfer.ts
|
|
9
9
|
var ge = /* @__PURE__ */ function(e) {
|
|
@@ -407,7 +407,7 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
407
407
|
"stretch",
|
|
408
408
|
"center-safe",
|
|
409
409
|
"end-safe"
|
|
410
|
-
],
|
|
410
|
+
], re = () => ["auto", ...w()], ie = () => [
|
|
411
411
|
kt,
|
|
412
412
|
"auto",
|
|
413
413
|
"full",
|
|
@@ -421,7 +421,7 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
421
421
|
"max",
|
|
422
422
|
"fit",
|
|
423
423
|
...w()
|
|
424
|
-
],
|
|
424
|
+
], ae = () => [
|
|
425
425
|
kt,
|
|
426
426
|
"screen",
|
|
427
427
|
"full",
|
|
@@ -432,7 +432,7 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
432
432
|
"max",
|
|
433
433
|
"fit",
|
|
434
434
|
...w()
|
|
435
|
-
],
|
|
435
|
+
], oe = () => [
|
|
436
436
|
kt,
|
|
437
437
|
"screen",
|
|
438
438
|
"full",
|
|
@@ -444,50 +444,50 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
444
444
|
"max",
|
|
445
445
|
"fit",
|
|
446
446
|
...w()
|
|
447
|
-
],
|
|
447
|
+
], k = () => [
|
|
448
448
|
e,
|
|
449
449
|
R,
|
|
450
450
|
L
|
|
451
|
-
],
|
|
451
|
+
], A = () => [
|
|
452
452
|
...b(),
|
|
453
453
|
Xt,
|
|
454
454
|
Gt,
|
|
455
455
|
{ position: [R, L] }
|
|
456
|
-
],
|
|
456
|
+
], se = () => ["no-repeat", { repeat: [
|
|
457
457
|
"",
|
|
458
458
|
"x",
|
|
459
459
|
"y",
|
|
460
460
|
"space",
|
|
461
461
|
"round"
|
|
462
|
-
] }],
|
|
462
|
+
] }], ce = () => [
|
|
463
463
|
"auto",
|
|
464
464
|
"cover",
|
|
465
465
|
"contain",
|
|
466
466
|
Zt,
|
|
467
467
|
Bt,
|
|
468
468
|
{ size: [R, L] }
|
|
469
|
-
],
|
|
469
|
+
], le = () => [
|
|
470
470
|
jt,
|
|
471
471
|
Jt,
|
|
472
472
|
Vt
|
|
473
|
-
],
|
|
473
|
+
], ue = () => [
|
|
474
474
|
"",
|
|
475
475
|
"none",
|
|
476
476
|
"full",
|
|
477
477
|
l,
|
|
478
478
|
R,
|
|
479
479
|
L
|
|
480
|
-
],
|
|
480
|
+
], j = () => [
|
|
481
481
|
"",
|
|
482
482
|
I,
|
|
483
483
|
Jt,
|
|
484
484
|
Vt
|
|
485
|
-
],
|
|
485
|
+
], de = () => [
|
|
486
486
|
"solid",
|
|
487
487
|
"dashed",
|
|
488
488
|
"dotted",
|
|
489
489
|
"double"
|
|
490
|
-
],
|
|
490
|
+
], fe = () => [
|
|
491
491
|
"normal",
|
|
492
492
|
"multiply",
|
|
493
493
|
"screen",
|
|
@@ -504,7 +504,7 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
504
504
|
"saturation",
|
|
505
505
|
"color",
|
|
506
506
|
"luminosity"
|
|
507
|
-
],
|
|
507
|
+
], M = () => [
|
|
508
508
|
I,
|
|
509
509
|
jt,
|
|
510
510
|
Xt,
|
|
@@ -810,38 +810,38 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
810
810
|
pr: [{ pr: w() }],
|
|
811
811
|
pb: [{ pb: w() }],
|
|
812
812
|
pl: [{ pl: w() }],
|
|
813
|
-
m: [{ m:
|
|
814
|
-
mx: [{ mx:
|
|
815
|
-
my: [{ my:
|
|
816
|
-
ms: [{ ms:
|
|
817
|
-
me: [{ me:
|
|
818
|
-
mbs: [{ mbs:
|
|
819
|
-
mbe: [{ mbe:
|
|
820
|
-
mt: [{ mt:
|
|
821
|
-
mr: [{ mr:
|
|
822
|
-
mb: [{ mb:
|
|
823
|
-
ml: [{ ml:
|
|
813
|
+
m: [{ m: re() }],
|
|
814
|
+
mx: [{ mx: re() }],
|
|
815
|
+
my: [{ my: re() }],
|
|
816
|
+
ms: [{ ms: re() }],
|
|
817
|
+
me: [{ me: re() }],
|
|
818
|
+
mbs: [{ mbs: re() }],
|
|
819
|
+
mbe: [{ mbe: re() }],
|
|
820
|
+
mt: [{ mt: re() }],
|
|
821
|
+
mr: [{ mr: re() }],
|
|
822
|
+
mb: [{ mb: re() }],
|
|
823
|
+
ml: [{ ml: re() }],
|
|
824
824
|
"space-x": [{ "space-x": w() }],
|
|
825
825
|
"space-x-reverse": ["space-x-reverse"],
|
|
826
826
|
"space-y": [{ "space-y": w() }],
|
|
827
827
|
"space-y-reverse": ["space-y-reverse"],
|
|
828
|
-
size: [{ size:
|
|
829
|
-
"inline-size": [{ inline: ["auto", ...
|
|
830
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
831
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
832
|
-
"block-size": [{ block: ["auto", ...
|
|
833
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
834
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
828
|
+
size: [{ size: ie() }],
|
|
829
|
+
"inline-size": [{ inline: ["auto", ...ae()] }],
|
|
830
|
+
"min-inline-size": [{ "min-inline": ["auto", ...ae()] }],
|
|
831
|
+
"max-inline-size": [{ "max-inline": ["none", ...ae()] }],
|
|
832
|
+
"block-size": [{ block: ["auto", ...oe()] }],
|
|
833
|
+
"min-block-size": [{ "min-block": ["auto", ...oe()] }],
|
|
834
|
+
"max-block-size": [{ "max-block": ["none", ...oe()] }],
|
|
835
835
|
w: [{ w: [
|
|
836
836
|
s,
|
|
837
837
|
"screen",
|
|
838
|
-
...
|
|
838
|
+
...ie()
|
|
839
839
|
] }],
|
|
840
840
|
"min-w": [{ "min-w": [
|
|
841
841
|
s,
|
|
842
842
|
"screen",
|
|
843
843
|
"none",
|
|
844
|
-
...
|
|
844
|
+
...ie()
|
|
845
845
|
] }],
|
|
846
846
|
"max-w": [{ "max-w": [
|
|
847
847
|
s,
|
|
@@ -849,23 +849,23 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
849
849
|
"none",
|
|
850
850
|
"prose",
|
|
851
851
|
{ screen: [o] },
|
|
852
|
-
...
|
|
852
|
+
...ie()
|
|
853
853
|
] }],
|
|
854
854
|
h: [{ h: [
|
|
855
855
|
"screen",
|
|
856
856
|
"lh",
|
|
857
|
-
...
|
|
857
|
+
...ie()
|
|
858
858
|
] }],
|
|
859
859
|
"min-h": [{ "min-h": [
|
|
860
860
|
"screen",
|
|
861
861
|
"lh",
|
|
862
862
|
"none",
|
|
863
|
-
...
|
|
863
|
+
...ie()
|
|
864
864
|
] }],
|
|
865
865
|
"max-h": [{ "max-h": [
|
|
866
866
|
"screen",
|
|
867
867
|
"lh",
|
|
868
|
-
...
|
|
868
|
+
...ie()
|
|
869
869
|
] }],
|
|
870
870
|
"font-size": [{ text: [
|
|
871
871
|
"base",
|
|
@@ -938,15 +938,15 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
938
938
|
"start",
|
|
939
939
|
"end"
|
|
940
940
|
] }],
|
|
941
|
-
"placeholder-color": [{ placeholder:
|
|
942
|
-
"text-color": [{ text:
|
|
941
|
+
"placeholder-color": [{ placeholder: k() }],
|
|
942
|
+
"text-color": [{ text: k() }],
|
|
943
943
|
"text-decoration": [
|
|
944
944
|
"underline",
|
|
945
945
|
"overline",
|
|
946
946
|
"line-through",
|
|
947
947
|
"no-underline"
|
|
948
948
|
],
|
|
949
|
-
"text-decoration-style": [{ decoration: [...
|
|
949
|
+
"text-decoration-style": [{ decoration: [...de(), "wavy"] }],
|
|
950
950
|
"text-decoration-thickness": [{ decoration: [
|
|
951
951
|
I,
|
|
952
952
|
"from-font",
|
|
@@ -954,7 +954,7 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
954
954
|
R,
|
|
955
955
|
Vt
|
|
956
956
|
] }],
|
|
957
|
-
"text-decoration-color": [{ decoration:
|
|
957
|
+
"text-decoration-color": [{ decoration: k() }],
|
|
958
958
|
"underline-offset": [{ "underline-offset": [
|
|
959
959
|
I,
|
|
960
960
|
"auto",
|
|
@@ -1041,9 +1041,9 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1041
1041
|
"padding",
|
|
1042
1042
|
"content"
|
|
1043
1043
|
] }],
|
|
1044
|
-
"bg-position": [{ bg:
|
|
1045
|
-
"bg-repeat": [{ bg:
|
|
1046
|
-
"bg-size": [{ bg:
|
|
1044
|
+
"bg-position": [{ bg: A() }],
|
|
1045
|
+
"bg-repeat": [{ bg: se() }],
|
|
1046
|
+
"bg-size": [{ bg: ce() }],
|
|
1047
1047
|
"bg-image": [{ bg: [
|
|
1048
1048
|
"none",
|
|
1049
1049
|
{
|
|
@@ -1076,67 +1076,67 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1076
1076
|
Qt,
|
|
1077
1077
|
Kt
|
|
1078
1078
|
] }],
|
|
1079
|
-
"bg-color": [{ bg:
|
|
1080
|
-
"gradient-from-pos": [{ from:
|
|
1081
|
-
"gradient-via-pos": [{ via:
|
|
1082
|
-
"gradient-to-pos": [{ to:
|
|
1083
|
-
"gradient-from": [{ from:
|
|
1084
|
-
"gradient-via": [{ via:
|
|
1085
|
-
"gradient-to": [{ to:
|
|
1086
|
-
rounded: [{ rounded:
|
|
1087
|
-
"rounded-s": [{ "rounded-s":
|
|
1088
|
-
"rounded-e": [{ "rounded-e":
|
|
1089
|
-
"rounded-t": [{ "rounded-t":
|
|
1090
|
-
"rounded-r": [{ "rounded-r":
|
|
1091
|
-
"rounded-b": [{ "rounded-b":
|
|
1092
|
-
"rounded-l": [{ "rounded-l":
|
|
1093
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1094
|
-
"rounded-se": [{ "rounded-se":
|
|
1095
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1096
|
-
"rounded-es": [{ "rounded-es":
|
|
1097
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1098
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1099
|
-
"rounded-br": [{ "rounded-br":
|
|
1100
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1101
|
-
"border-w": [{ border:
|
|
1102
|
-
"border-w-x": [{ "border-x":
|
|
1103
|
-
"border-w-y": [{ "border-y":
|
|
1104
|
-
"border-w-s": [{ "border-s":
|
|
1105
|
-
"border-w-e": [{ "border-e":
|
|
1106
|
-
"border-w-bs": [{ "border-bs":
|
|
1107
|
-
"border-w-be": [{ "border-be":
|
|
1108
|
-
"border-w-t": [{ "border-t":
|
|
1109
|
-
"border-w-r": [{ "border-r":
|
|
1110
|
-
"border-w-b": [{ "border-b":
|
|
1111
|
-
"border-w-l": [{ "border-l":
|
|
1112
|
-
"divide-x": [{ "divide-x":
|
|
1079
|
+
"bg-color": [{ bg: k() }],
|
|
1080
|
+
"gradient-from-pos": [{ from: le() }],
|
|
1081
|
+
"gradient-via-pos": [{ via: le() }],
|
|
1082
|
+
"gradient-to-pos": [{ to: le() }],
|
|
1083
|
+
"gradient-from": [{ from: k() }],
|
|
1084
|
+
"gradient-via": [{ via: k() }],
|
|
1085
|
+
"gradient-to": [{ to: k() }],
|
|
1086
|
+
rounded: [{ rounded: ue() }],
|
|
1087
|
+
"rounded-s": [{ "rounded-s": ue() }],
|
|
1088
|
+
"rounded-e": [{ "rounded-e": ue() }],
|
|
1089
|
+
"rounded-t": [{ "rounded-t": ue() }],
|
|
1090
|
+
"rounded-r": [{ "rounded-r": ue() }],
|
|
1091
|
+
"rounded-b": [{ "rounded-b": ue() }],
|
|
1092
|
+
"rounded-l": [{ "rounded-l": ue() }],
|
|
1093
|
+
"rounded-ss": [{ "rounded-ss": ue() }],
|
|
1094
|
+
"rounded-se": [{ "rounded-se": ue() }],
|
|
1095
|
+
"rounded-ee": [{ "rounded-ee": ue() }],
|
|
1096
|
+
"rounded-es": [{ "rounded-es": ue() }],
|
|
1097
|
+
"rounded-tl": [{ "rounded-tl": ue() }],
|
|
1098
|
+
"rounded-tr": [{ "rounded-tr": ue() }],
|
|
1099
|
+
"rounded-br": [{ "rounded-br": ue() }],
|
|
1100
|
+
"rounded-bl": [{ "rounded-bl": ue() }],
|
|
1101
|
+
"border-w": [{ border: j() }],
|
|
1102
|
+
"border-w-x": [{ "border-x": j() }],
|
|
1103
|
+
"border-w-y": [{ "border-y": j() }],
|
|
1104
|
+
"border-w-s": [{ "border-s": j() }],
|
|
1105
|
+
"border-w-e": [{ "border-e": j() }],
|
|
1106
|
+
"border-w-bs": [{ "border-bs": j() }],
|
|
1107
|
+
"border-w-be": [{ "border-be": j() }],
|
|
1108
|
+
"border-w-t": [{ "border-t": j() }],
|
|
1109
|
+
"border-w-r": [{ "border-r": j() }],
|
|
1110
|
+
"border-w-b": [{ "border-b": j() }],
|
|
1111
|
+
"border-w-l": [{ "border-l": j() }],
|
|
1112
|
+
"divide-x": [{ "divide-x": j() }],
|
|
1113
1113
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1114
|
-
"divide-y": [{ "divide-y":
|
|
1114
|
+
"divide-y": [{ "divide-y": j() }],
|
|
1115
1115
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1116
1116
|
"border-style": [{ border: [
|
|
1117
|
-
...
|
|
1117
|
+
...de(),
|
|
1118
1118
|
"hidden",
|
|
1119
1119
|
"none"
|
|
1120
1120
|
] }],
|
|
1121
1121
|
"divide-style": [{ divide: [
|
|
1122
|
-
...
|
|
1122
|
+
...de(),
|
|
1123
1123
|
"hidden",
|
|
1124
1124
|
"none"
|
|
1125
1125
|
] }],
|
|
1126
|
-
"border-color": [{ border:
|
|
1127
|
-
"border-color-x": [{ "border-x":
|
|
1128
|
-
"border-color-y": [{ "border-y":
|
|
1129
|
-
"border-color-s": [{ "border-s":
|
|
1130
|
-
"border-color-e": [{ "border-e":
|
|
1131
|
-
"border-color-bs": [{ "border-bs":
|
|
1132
|
-
"border-color-be": [{ "border-be":
|
|
1133
|
-
"border-color-t": [{ "border-t":
|
|
1134
|
-
"border-color-r": [{ "border-r":
|
|
1135
|
-
"border-color-b": [{ "border-b":
|
|
1136
|
-
"border-color-l": [{ "border-l":
|
|
1137
|
-
"divide-color": [{ divide:
|
|
1126
|
+
"border-color": [{ border: k() }],
|
|
1127
|
+
"border-color-x": [{ "border-x": k() }],
|
|
1128
|
+
"border-color-y": [{ "border-y": k() }],
|
|
1129
|
+
"border-color-s": [{ "border-s": k() }],
|
|
1130
|
+
"border-color-e": [{ "border-e": k() }],
|
|
1131
|
+
"border-color-bs": [{ "border-bs": k() }],
|
|
1132
|
+
"border-color-be": [{ "border-be": k() }],
|
|
1133
|
+
"border-color-t": [{ "border-t": k() }],
|
|
1134
|
+
"border-color-r": [{ "border-r": k() }],
|
|
1135
|
+
"border-color-b": [{ "border-b": k() }],
|
|
1136
|
+
"border-color-l": [{ "border-l": k() }],
|
|
1137
|
+
"divide-color": [{ divide: k() }],
|
|
1138
1138
|
"outline-style": [{ outline: [
|
|
1139
|
-
...
|
|
1139
|
+
...de(),
|
|
1140
1140
|
"none",
|
|
1141
1141
|
"hidden"
|
|
1142
1142
|
] }],
|
|
@@ -1151,7 +1151,7 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1151
1151
|
Jt,
|
|
1152
1152
|
Vt
|
|
1153
1153
|
] }],
|
|
1154
|
-
"outline-color": [{ outline:
|
|
1154
|
+
"outline-color": [{ outline: k() }],
|
|
1155
1155
|
shadow: [{ shadow: [
|
|
1156
1156
|
"",
|
|
1157
1157
|
"none",
|
|
@@ -1159,39 +1159,39 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1159
1159
|
$t,
|
|
1160
1160
|
qt
|
|
1161
1161
|
] }],
|
|
1162
|
-
"shadow-color": [{ shadow:
|
|
1162
|
+
"shadow-color": [{ shadow: k() }],
|
|
1163
1163
|
"inset-shadow": [{ "inset-shadow": [
|
|
1164
1164
|
"none",
|
|
1165
1165
|
d,
|
|
1166
1166
|
$t,
|
|
1167
1167
|
qt
|
|
1168
1168
|
] }],
|
|
1169
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1170
|
-
"ring-w": [{ ring:
|
|
1169
|
+
"inset-shadow-color": [{ "inset-shadow": k() }],
|
|
1170
|
+
"ring-w": [{ ring: j() }],
|
|
1171
1171
|
"ring-w-inset": ["ring-inset"],
|
|
1172
|
-
"ring-color": [{ ring:
|
|
1172
|
+
"ring-color": [{ ring: k() }],
|
|
1173
1173
|
"ring-offset-w": [{ "ring-offset": [I, Vt] }],
|
|
1174
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1175
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1176
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1174
|
+
"ring-offset-color": [{ "ring-offset": k() }],
|
|
1175
|
+
"inset-ring-w": [{ "inset-ring": j() }],
|
|
1176
|
+
"inset-ring-color": [{ "inset-ring": k() }],
|
|
1177
1177
|
"text-shadow": [{ "text-shadow": [
|
|
1178
1178
|
"none",
|
|
1179
1179
|
f,
|
|
1180
1180
|
$t,
|
|
1181
1181
|
qt
|
|
1182
1182
|
] }],
|
|
1183
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1183
|
+
"text-shadow-color": [{ "text-shadow": k() }],
|
|
1184
1184
|
opacity: [{ opacity: [
|
|
1185
1185
|
I,
|
|
1186
1186
|
R,
|
|
1187
1187
|
L
|
|
1188
1188
|
] }],
|
|
1189
1189
|
"mix-blend": [{ "mix-blend": [
|
|
1190
|
-
...
|
|
1190
|
+
...fe(),
|
|
1191
1191
|
"plus-darker",
|
|
1192
1192
|
"plus-lighter"
|
|
1193
1193
|
] }],
|
|
1194
|
-
"bg-blend": [{ "bg-blend":
|
|
1194
|
+
"bg-blend": [{ "bg-blend": fe() }],
|
|
1195
1195
|
"mask-clip": [{ "mask-clip": [
|
|
1196
1196
|
"border",
|
|
1197
1197
|
"padding",
|
|
@@ -1207,39 +1207,39 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1207
1207
|
"exclude"
|
|
1208
1208
|
] }],
|
|
1209
1209
|
"mask-image-linear-pos": [{ "mask-linear": [I] }],
|
|
1210
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1211
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1212
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1213
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1214
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1215
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1216
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1217
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1218
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1219
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1220
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1221
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1222
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1223
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1224
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1225
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1226
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1227
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1228
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1229
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1230
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1231
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1232
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1233
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1234
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1235
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1236
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1237
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1210
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": M() }],
|
|
1211
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": M() }],
|
|
1212
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": k() }],
|
|
1213
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": k() }],
|
|
1214
|
+
"mask-image-t-from-pos": [{ "mask-t-from": M() }],
|
|
1215
|
+
"mask-image-t-to-pos": [{ "mask-t-to": M() }],
|
|
1216
|
+
"mask-image-t-from-color": [{ "mask-t-from": k() }],
|
|
1217
|
+
"mask-image-t-to-color": [{ "mask-t-to": k() }],
|
|
1218
|
+
"mask-image-r-from-pos": [{ "mask-r-from": M() }],
|
|
1219
|
+
"mask-image-r-to-pos": [{ "mask-r-to": M() }],
|
|
1220
|
+
"mask-image-r-from-color": [{ "mask-r-from": k() }],
|
|
1221
|
+
"mask-image-r-to-color": [{ "mask-r-to": k() }],
|
|
1222
|
+
"mask-image-b-from-pos": [{ "mask-b-from": M() }],
|
|
1223
|
+
"mask-image-b-to-pos": [{ "mask-b-to": M() }],
|
|
1224
|
+
"mask-image-b-from-color": [{ "mask-b-from": k() }],
|
|
1225
|
+
"mask-image-b-to-color": [{ "mask-b-to": k() }],
|
|
1226
|
+
"mask-image-l-from-pos": [{ "mask-l-from": M() }],
|
|
1227
|
+
"mask-image-l-to-pos": [{ "mask-l-to": M() }],
|
|
1228
|
+
"mask-image-l-from-color": [{ "mask-l-from": k() }],
|
|
1229
|
+
"mask-image-l-to-color": [{ "mask-l-to": k() }],
|
|
1230
|
+
"mask-image-x-from-pos": [{ "mask-x-from": M() }],
|
|
1231
|
+
"mask-image-x-to-pos": [{ "mask-x-to": M() }],
|
|
1232
|
+
"mask-image-x-from-color": [{ "mask-x-from": k() }],
|
|
1233
|
+
"mask-image-x-to-color": [{ "mask-x-to": k() }],
|
|
1234
|
+
"mask-image-y-from-pos": [{ "mask-y-from": M() }],
|
|
1235
|
+
"mask-image-y-to-pos": [{ "mask-y-to": M() }],
|
|
1236
|
+
"mask-image-y-from-color": [{ "mask-y-from": k() }],
|
|
1237
|
+
"mask-image-y-to-color": [{ "mask-y-to": k() }],
|
|
1238
1238
|
"mask-image-radial": [{ "mask-radial": [R, L] }],
|
|
1239
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1240
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1241
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1242
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1239
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": M() }],
|
|
1240
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": M() }],
|
|
1241
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": k() }],
|
|
1242
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": k() }],
|
|
1243
1243
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1244
1244
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1245
1245
|
closest: ["side", "corner"],
|
|
@@ -1247,10 +1247,10 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1247
1247
|
}] }],
|
|
1248
1248
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1249
1249
|
"mask-image-conic-pos": [{ "mask-conic": [I] }],
|
|
1250
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1251
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1252
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1253
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1250
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": M() }],
|
|
1251
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": M() }],
|
|
1252
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": k() }],
|
|
1253
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": k() }],
|
|
1254
1254
|
"mask-mode": [{ mask: [
|
|
1255
1255
|
"alpha",
|
|
1256
1256
|
"luminance",
|
|
@@ -1264,9 +1264,9 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1264
1264
|
"stroke",
|
|
1265
1265
|
"view"
|
|
1266
1266
|
] }],
|
|
1267
|
-
"mask-position": [{ mask:
|
|
1268
|
-
"mask-repeat": [{ mask:
|
|
1269
|
-
"mask-size": [{ mask:
|
|
1267
|
+
"mask-position": [{ mask: A() }],
|
|
1268
|
+
"mask-repeat": [{ mask: se() }],
|
|
1269
|
+
"mask-size": [{ mask: ce() }],
|
|
1270
1270
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1271
1271
|
"mask-image": [{ mask: [
|
|
1272
1272
|
"none",
|
|
@@ -1297,7 +1297,7 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1297
1297
|
$t,
|
|
1298
1298
|
qt
|
|
1299
1299
|
] }],
|
|
1300
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1300
|
+
"drop-shadow-color": [{ "drop-shadow": k() }],
|
|
1301
1301
|
grayscale: [{ grayscale: [
|
|
1302
1302
|
"",
|
|
1303
1303
|
I,
|
|
@@ -1457,9 +1457,9 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1457
1457
|
R,
|
|
1458
1458
|
L
|
|
1459
1459
|
] }],
|
|
1460
|
-
accent: [{ accent:
|
|
1460
|
+
accent: [{ accent: k() }],
|
|
1461
1461
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1462
|
-
"caret-color": [{ caret:
|
|
1462
|
+
"caret-color": [{ caret: k() }],
|
|
1463
1463
|
"color-scheme": [{ scheme: [
|
|
1464
1464
|
"normal",
|
|
1465
1465
|
"dark",
|
|
@@ -1517,8 +1517,8 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1517
1517
|
"x"
|
|
1518
1518
|
] }],
|
|
1519
1519
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1520
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
1521
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
1520
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": k() }],
|
|
1521
|
+
"scrollbar-track-color": [{ "scrollbar-track": k() }],
|
|
1522
1522
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
1523
1523
|
"auto",
|
|
1524
1524
|
"stable",
|
|
@@ -1595,14 +1595,14 @@ var ge = /* @__PURE__ */ function(e) {
|
|
|
1595
1595
|
R,
|
|
1596
1596
|
L
|
|
1597
1597
|
] }],
|
|
1598
|
-
fill: [{ fill: ["none", ...
|
|
1598
|
+
fill: [{ fill: ["none", ...k()] }],
|
|
1599
1599
|
"stroke-w": [{ stroke: [
|
|
1600
1600
|
I,
|
|
1601
1601
|
Jt,
|
|
1602
1602
|
Vt,
|
|
1603
1603
|
Ht
|
|
1604
1604
|
] }],
|
|
1605
|
-
stroke: [{ stroke: ["none", ...
|
|
1605
|
+
stroke: [{ stroke: ["none", ...k()] }],
|
|
1606
1606
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1607
1607
|
},
|
|
1608
1608
|
conflictingClassGroups: {
|
|
@@ -2269,9 +2269,9 @@ function Kr() {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
}, te = function() {
|
|
2271
2271
|
return T ||= (w = Ur(u, i), !0), w;
|
|
2272
|
-
}, ne = n,
|
|
2273
|
-
t.isSupported = typeof Mn == "function" && typeof g == "function" &&
|
|
2274
|
-
let
|
|
2272
|
+
}, ne = n, re = ne.implementation, ie = ne.createNodeIterator, ae = ne.createDocumentFragment, oe = ne.getElementsByTagName, k = r.importNode, A = Wr();
|
|
2273
|
+
t.isSupported = typeof Mn == "function" && typeof g == "function" && re && re.createHTMLDocument !== void 0;
|
|
2274
|
+
let se = Dr, ce = Or, le = kr, ue = Ar, j = jr, de = Nr, fe = Pr, M = Ir, pe = Mr, N = null, me = B({}, [
|
|
2275
2275
|
...gr,
|
|
2276
2276
|
..._r,
|
|
2277
2277
|
...vr,
|
|
@@ -2493,21 +2493,21 @@ function Kr() {
|
|
|
2493
2493
|
t = new l().parseFromString(i, rt);
|
|
2494
2494
|
} catch {}
|
|
2495
2495
|
if (!t || !t.documentElement) {
|
|
2496
|
-
t =
|
|
2496
|
+
t = re.createDocument(Je, "template", null);
|
|
2497
2497
|
try {
|
|
2498
2498
|
t.documentElement.innerHTML = Ye ? C : i;
|
|
2499
2499
|
} catch {}
|
|
2500
2500
|
}
|
|
2501
2501
|
let a = t.body || t.documentElement;
|
|
2502
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Je === qe ?
|
|
2502
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Je === qe ? oe.call(t, Ee ? "html" : "body")[0] : Ee ? t.documentElement : a;
|
|
2503
2503
|
}, Ct = function(e) {
|
|
2504
2504
|
let t = x ? x(e) : e.ownerDocument;
|
|
2505
|
-
return
|
|
2505
|
+
return ie.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
2506
2506
|
}, wt = function(e) {
|
|
2507
|
-
return e = Qn(e,
|
|
2507
|
+
return e = Qn(e, se, " "), e = Qn(e, ce, " "), e = Qn(e, le, " "), e;
|
|
2508
2508
|
}, Tt = function(e) {
|
|
2509
2509
|
e.normalize();
|
|
2510
|
-
let t = x ? x(e) : e.ownerDocument, n =
|
|
2510
|
+
let t = x ? x(e) : e.ownerDocument, n = ie.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
2511
2511
|
for (; r;) r.data = wt(r.data), r = n.nextNode();
|
|
2512
2512
|
let i = e.querySelectorAll?.call(e, "template");
|
|
2513
2513
|
i && Un(i, (e) => {
|
|
@@ -2554,31 +2554,31 @@ function Kr() {
|
|
|
2554
2554
|
}, jt = function(e, t, n, r) {
|
|
2555
2555
|
return e.length === 0 ? t : t === n || t === r ? fr(t) : t;
|
|
2556
2556
|
}, Mt = function(e, n) {
|
|
2557
|
-
if (kt(
|
|
2557
|
+
if (kt(A.beforeSanitizeElements, e, null), e !== n && g(e) === null) return Le && bt(e), !0;
|
|
2558
2558
|
if (Et(e)) return gt(e), !0;
|
|
2559
2559
|
let r = at(b ? b(e) : e.nodeName);
|
|
2560
|
-
if (N = jt(
|
|
2560
|
+
if (N = jt(A.uponSanitizeElement, N, me, Oe), kt(A.uponSanitizeElement, e, {
|
|
2561
2561
|
tagName: r,
|
|
2562
2562
|
allowedTags: N
|
|
2563
2563
|
}), e !== n && g(e) === null) return Le && bt(e), !0;
|
|
2564
2564
|
if (I(e, r)) return gt(e), !0;
|
|
2565
2565
|
if (_e[r] || !(ye.tagCheck instanceof Function && ye.tagCheck(r)) && !N[r]) {
|
|
2566
2566
|
let t = At(e, r, n);
|
|
2567
|
-
return t === !1 && kt(
|
|
2567
|
+
return t === !1 && kt(A.afterSanitizeElements, e, null), t;
|
|
2568
2568
|
}
|
|
2569
2569
|
if ((y ? y(e) : e.nodeType) === Vr.element && !ht(e) || (r === "noscript" || r === "noembed" || r === "noframes") && sr(zr, e.innerHTML)) return gt(e), !0;
|
|
2570
2570
|
if (we && e.nodeType === Vr.text) {
|
|
2571
2571
|
let n = wt(e.textContent);
|
|
2572
2572
|
e.textContent !== n && (Kn(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
2573
2573
|
}
|
|
2574
|
-
return kt(
|
|
2574
|
+
return kt(A.afterSanitizeElements, e, null), !1;
|
|
2575
2575
|
}, Nt = function(e, t, r) {
|
|
2576
2576
|
if (ve[t] || Te && t === "patchsrc" || Te && t === "for" && e !== "label" && e !== "output" || Ne && (t === "id" || t === "name") && (r in n || r in st)) return !1;
|
|
2577
2577
|
let i = P[t] || ye.attributeCheck instanceof Function && ye.attributeCheck(t, e);
|
|
2578
|
-
if (!(xe && sr(
|
|
2578
|
+
if (!(xe && sr(ue, t)) && !(be && sr(j, t))) {
|
|
2579
2579
|
if (!i) {
|
|
2580
2580
|
if (!(Ft(e) && (ge.tagNameCheck instanceof RegExp && sr(ge.tagNameCheck, e) || ge.tagNameCheck instanceof Function && ge.tagNameCheck(e)) && (ge.attributeNameCheck instanceof RegExp && sr(ge.attributeNameCheck, t) || ge.attributeNameCheck instanceof Function && ge.attributeNameCheck(t, e)) || t === "is" && ge.allowCustomizedBuiltInElements && (ge.tagNameCheck instanceof RegExp && sr(ge.tagNameCheck, r) || ge.tagNameCheck instanceof Function && ge.tagNameCheck(r)))) return !1;
|
|
2581
|
-
} else if (!Ue[t] && !sr(pe, Qn(r,
|
|
2581
|
+
} else if (!Ue[t] && !sr(pe, Qn(r, fe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && $n(r, "data:") === 0 && Ve[e]) && !(Se && !sr(de, Qn(r, fe, ""))) && r) return !1;
|
|
2582
2582
|
}
|
|
2583
2583
|
return !0;
|
|
2584
2584
|
}, Pt = B({}, [
|
|
@@ -2591,7 +2591,7 @@ function Kr() {
|
|
|
2591
2591
|
"font-face-uri",
|
|
2592
2592
|
"missing-glyph"
|
|
2593
2593
|
]), Ft = function(e) {
|
|
2594
|
-
return !Pt[Yn(e)] && sr(
|
|
2594
|
+
return !Pt[Yn(e)] && sr(M, e);
|
|
2595
2595
|
}, It = function(e, t, n, r) {
|
|
2596
2596
|
if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
2597
2597
|
case "TrustedHTML": return O(r);
|
|
@@ -2605,10 +2605,10 @@ function Kr() {
|
|
|
2605
2605
|
vt(n, e);
|
|
2606
2606
|
}
|
|
2607
2607
|
}, Rt = function(e) {
|
|
2608
|
-
kt(
|
|
2608
|
+
kt(A.beforeSanitizeAttributes, e, null);
|
|
2609
2609
|
let t = e.attributes;
|
|
2610
2610
|
if (!t || Et(e)) return;
|
|
2611
|
-
P = jt(
|
|
2611
|
+
P = jt(A.uponSanitizeAttribute, P, he, ke);
|
|
2612
2612
|
let n = {
|
|
2613
2613
|
attrName: "",
|
|
2614
2614
|
attrValue: "",
|
|
@@ -2618,7 +2618,7 @@ function Kr() {
|
|
|
2618
2618
|
}, r = t.length, i = at(e.nodeName);
|
|
2619
2619
|
for (; r--;) {
|
|
2620
2620
|
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = at(o), u = c, d = o === "value" ? u : er(u);
|
|
2621
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, kt(
|
|
2621
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, kt(A.uponSanitizeAttribute, e, n), d = n.attrValue, Pe && (l === "id" || l === "name") && $n(d, Fe) !== 0 && (vt(o, e), d = Fe + d), Te && sr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
2622
2622
|
vt(o, e);
|
|
2623
2623
|
continue;
|
|
2624
2624
|
}
|
|
@@ -2642,14 +2642,14 @@ function Kr() {
|
|
|
2642
2642
|
d = It(i, l, s, d), d !== u && Lt(e, o, s, d);
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
|
-
kt(
|
|
2645
|
+
kt(A.afterSanitizeAttributes, e, null);
|
|
2646
2646
|
}, zt = function(e) {
|
|
2647
2647
|
let t = null, n = Ct(e);
|
|
2648
|
-
for (kt(
|
|
2648
|
+
for (kt(A.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (kt(A.uponSanitizeShadowNode, t, null), Mt(t, e), Rt(t), Dt(t.content) && zt(t.content), (y ? y(t) : t.nodeType) === Vr.element) {
|
|
2649
2649
|
let e = _(t);
|
|
2650
2650
|
Dt(e) && (Bt(e), zt(e));
|
|
2651
2651
|
}
|
|
2652
|
-
kt(
|
|
2652
|
+
kt(A.afterSanitizeShadowDOM, e, null);
|
|
2653
2653
|
}, Bt = function(e) {
|
|
2654
2654
|
let t = [{
|
|
2655
2655
|
node: e,
|
|
@@ -2692,7 +2692,7 @@ function Kr() {
|
|
|
2692
2692
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
2693
2693
|
if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !Ot(e) && (e = pr(e), typeof e != "string")) throw cr("dirty is not a string, aborting");
|
|
2694
2694
|
if (!t.isSupported) return e;
|
|
2695
|
-
De ? (N = Oe, P = ke) : lt(n), (
|
|
2695
|
+
De ? (N = Oe, P = ke) : lt(n), (A.uponSanitizeElement.length > 0 || A.uponSanitizeAttribute.length > 0) && (N = fr(N)), A.uponSanitizeAttribute.length > 0 && (P = fr(P)), t.removed = [];
|
|
2696
2696
|
let c = Le && typeof e != "string" && Ot(e);
|
|
2697
2697
|
if (c) {
|
|
2698
2698
|
xt(e);
|
|
@@ -2726,9 +2726,9 @@ function Kr() {
|
|
|
2726
2726
|
e.element && bt(e.element);
|
|
2727
2727
|
}), we && Tt(e), e;
|
|
2728
2728
|
if (F) {
|
|
2729
|
-
if (we && Tt(i), je) for (s =
|
|
2729
|
+
if (we && Tt(i), je) for (s = ae.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
2730
2730
|
else s = i;
|
|
2731
|
-
return (P.shadowroot || P.shadowrootmode) && (s =
|
|
2731
|
+
return (P.shadowroot || P.shadowrootmode) && (s = k.call(r, s, !0)), s;
|
|
2732
2732
|
}
|
|
2733
2733
|
let u = Ee ? i.outerHTML : i.innerHTML;
|
|
2734
2734
|
return Ee && N["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && sr(Fr, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), we && (u = wt(u)), S && Me ? O(u) : u;
|
|
@@ -2739,19 +2739,19 @@ function Kr() {
|
|
|
2739
2739
|
}, t.isValidAttribute = function(e, t, n) {
|
|
2740
2740
|
return ot || lt({}), Nt(at(e), at(t), n);
|
|
2741
2741
|
}, t.addHook = function(e, t) {
|
|
2742
|
-
typeof t == "function" && ar(
|
|
2742
|
+
typeof t == "function" && ar(A, e) && Kn(A[e], t);
|
|
2743
2743
|
}, t.removeHook = function(e, t) {
|
|
2744
|
-
if (ar(
|
|
2744
|
+
if (ar(A, e)) {
|
|
2745
2745
|
if (t !== void 0) {
|
|
2746
|
-
let n = Wn(
|
|
2747
|
-
return n === -1 ? void 0 : qn(
|
|
2746
|
+
let n = Wn(A[e], t);
|
|
2747
|
+
return n === -1 ? void 0 : qn(A[e], n, 1)[0];
|
|
2748
2748
|
}
|
|
2749
|
-
return Gn(
|
|
2749
|
+
return Gn(A[e]);
|
|
2750
2750
|
}
|
|
2751
2751
|
}, t.removeHooks = function(e) {
|
|
2752
|
-
ar(
|
|
2752
|
+
ar(A, e) && (A[e] = []);
|
|
2753
2753
|
}, t.removeAllHooks = function() {
|
|
2754
|
-
|
|
2754
|
+
A = Wr();
|
|
2755
2755
|
}, t;
|
|
2756
2756
|
}
|
|
2757
2757
|
var qr = Kr(), Jr = [
|
|
@@ -5641,13 +5641,13 @@ function Tl(e, t, n) {
|
|
|
5641
5641
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
|
|
5642
5642
|
}
|
|
5643
5643
|
function d(s) {
|
|
5644
|
-
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t :
|
|
5644
|
+
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : k) : ya(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
|
|
5645
5645
|
}
|
|
5646
5646
|
function f(a) {
|
|
5647
|
-
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : ya(a) ? (e.consume(a), i = 4, r.interrupt ? t :
|
|
5647
|
+
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : ya(a) ? (e.consume(a), i = 4, r.interrupt ? t : k) : n(a);
|
|
5648
5648
|
}
|
|
5649
5649
|
function p(i) {
|
|
5650
|
-
return i === 45 ? (e.consume(i), r.interrupt ? t :
|
|
5650
|
+
return i === 45 ? (e.consume(i), r.interrupt ? t : k) : n(i);
|
|
5651
5651
|
}
|
|
5652
5652
|
function m(i) {
|
|
5653
5653
|
return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : O : m) : n(i);
|
|
@@ -5696,10 +5696,10 @@ function Tl(e, t, n) {
|
|
|
5696
5696
|
return t === null || V(t) ? O(t) : U(t) ? (e.consume(t), D) : n(t);
|
|
5697
5697
|
}
|
|
5698
5698
|
function O(t) {
|
|
5699
|
-
return t === 45 && i === 2 ? (e.consume(t),
|
|
5699
|
+
return t === 45 && i === 2 ? (e.consume(t), re) : t === 60 && i === 1 ? (e.consume(t), ie) : t === 62 && i === 4 ? (e.consume(t), A) : t === 63 && i === 3 ? (e.consume(t), k) : t === 93 && i === 5 ? (e.consume(t), oe) : V(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Sl, se, ee)(t)) : t === null || V(t) ? (e.exit("htmlFlowData"), ee(t)) : (e.consume(t), O);
|
|
5700
5700
|
}
|
|
5701
5701
|
function ee(t) {
|
|
5702
|
-
return e.check(Cl, te,
|
|
5702
|
+
return e.check(Cl, te, se)(t);
|
|
5703
5703
|
}
|
|
5704
5704
|
function te(t) {
|
|
5705
5705
|
return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ne;
|
|
@@ -5707,29 +5707,29 @@ function Tl(e, t, n) {
|
|
|
5707
5707
|
function ne(t) {
|
|
5708
5708
|
return t === null || V(t) ? ee(t) : (e.enter("htmlFlowData"), O(t));
|
|
5709
5709
|
}
|
|
5710
|
-
function k(t) {
|
|
5711
|
-
return t === 45 ? (e.consume(t), A) : O(t);
|
|
5712
|
-
}
|
|
5713
5710
|
function re(t) {
|
|
5714
|
-
return t ===
|
|
5711
|
+
return t === 45 ? (e.consume(t), k) : O(t);
|
|
5715
5712
|
}
|
|
5716
5713
|
function ie(t) {
|
|
5714
|
+
return t === 47 ? (e.consume(t), o = "", ae) : O(t);
|
|
5715
|
+
}
|
|
5716
|
+
function ae(t) {
|
|
5717
5717
|
if (t === 62) {
|
|
5718
5718
|
let n = o.toLowerCase();
|
|
5719
|
-
return bl.includes(n) ? (e.consume(t),
|
|
5719
|
+
return bl.includes(n) ? (e.consume(t), A) : O(t);
|
|
5720
5720
|
}
|
|
5721
|
-
return ya(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t),
|
|
5721
|
+
return ya(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), ae) : O(t);
|
|
5722
5722
|
}
|
|
5723
|
-
function
|
|
5724
|
-
return t === 93 ? (e.consume(t),
|
|
5723
|
+
function oe(t) {
|
|
5724
|
+
return t === 93 ? (e.consume(t), k) : O(t);
|
|
5725
5725
|
}
|
|
5726
|
-
function
|
|
5727
|
-
return t === 62 ? (e.consume(t),
|
|
5726
|
+
function k(t) {
|
|
5727
|
+
return t === 62 ? (e.consume(t), A) : t === 45 && i === 2 ? (e.consume(t), k) : O(t);
|
|
5728
5728
|
}
|
|
5729
|
-
function
|
|
5730
|
-
return t === null || V(t) ? (e.exit("htmlFlowData"),
|
|
5729
|
+
function A(t) {
|
|
5730
|
+
return t === null || V(t) ? (e.exit("htmlFlowData"), se(t)) : (e.consume(t), A);
|
|
5731
5731
|
}
|
|
5732
|
-
function
|
|
5732
|
+
function se(n) {
|
|
5733
5733
|
return e.exit("htmlFlow"), t(n);
|
|
5734
5734
|
}
|
|
5735
5735
|
}
|
|
@@ -5771,34 +5771,34 @@ function kl(e, t, n) {
|
|
|
5771
5771
|
return t === 45 ? (e.consume(t), p) : n(t);
|
|
5772
5772
|
}
|
|
5773
5773
|
function d(t) {
|
|
5774
|
-
return t === null ? n(t) : t === 45 ? (e.consume(t), f) : V(t) ? (o = d,
|
|
5774
|
+
return t === null ? n(t) : t === 45 ? (e.consume(t), f) : V(t) ? (o = d, ie(t)) : (e.consume(t), d);
|
|
5775
5775
|
}
|
|
5776
5776
|
function f(t) {
|
|
5777
5777
|
return t === 45 ? (e.consume(t), p) : d(t);
|
|
5778
5778
|
}
|
|
5779
5779
|
function p(e) {
|
|
5780
|
-
return e === 62 ?
|
|
5780
|
+
return e === 62 ? re(e) : e === 45 ? f(e) : d(e);
|
|
5781
5781
|
}
|
|
5782
5782
|
function m(t) {
|
|
5783
5783
|
return t === "CDATA[".charCodeAt(a++) ? (e.consume(t), a === 6 ? h : m) : n(t);
|
|
5784
5784
|
}
|
|
5785
5785
|
function h(t) {
|
|
5786
|
-
return t === null ? n(t) : t === 93 ? (e.consume(t), g) : V(t) ? (o = h,
|
|
5786
|
+
return t === null ? n(t) : t === 93 ? (e.consume(t), g) : V(t) ? (o = h, ie(t)) : (e.consume(t), h);
|
|
5787
5787
|
}
|
|
5788
5788
|
function g(t) {
|
|
5789
5789
|
return t === 93 ? (e.consume(t), _) : h(t);
|
|
5790
5790
|
}
|
|
5791
5791
|
function _(t) {
|
|
5792
|
-
return t === 62 ?
|
|
5792
|
+
return t === 62 ? re(t) : t === 93 ? (e.consume(t), _) : h(t);
|
|
5793
5793
|
}
|
|
5794
5794
|
function v(t) {
|
|
5795
|
-
return t === null || t === 62 ?
|
|
5795
|
+
return t === null || t === 62 ? re(t) : V(t) ? (o = v, ie(t)) : (e.consume(t), v);
|
|
5796
5796
|
}
|
|
5797
5797
|
function y(t) {
|
|
5798
|
-
return t === null ? n(t) : t === 63 ? (e.consume(t), b) : V(t) ? (o = y,
|
|
5798
|
+
return t === null ? n(t) : t === 63 ? (e.consume(t), b) : V(t) ? (o = y, ie(t)) : (e.consume(t), y);
|
|
5799
5799
|
}
|
|
5800
5800
|
function b(e) {
|
|
5801
|
-
return e === 62 ?
|
|
5801
|
+
return e === 62 ? re(e) : y(e);
|
|
5802
5802
|
}
|
|
5803
5803
|
function x(t) {
|
|
5804
5804
|
return ya(t) ? (e.consume(t), S) : n(t);
|
|
@@ -5807,25 +5807,25 @@ function kl(e, t, n) {
|
|
|
5807
5807
|
return t === 45 || ba(t) ? (e.consume(t), S) : C(t);
|
|
5808
5808
|
}
|
|
5809
5809
|
function C(t) {
|
|
5810
|
-
return V(t) ? (o = C,
|
|
5810
|
+
return V(t) ? (o = C, ie(t)) : U(t) ? (e.consume(t), C) : re(t);
|
|
5811
5811
|
}
|
|
5812
5812
|
function w(t) {
|
|
5813
5813
|
return t === 45 || ba(t) ? (e.consume(t), w) : t === 47 || t === 62 || H(t) ? T(t) : n(t);
|
|
5814
5814
|
}
|
|
5815
5815
|
function T(t) {
|
|
5816
|
-
return t === 47 ? (e.consume(t),
|
|
5816
|
+
return t === 47 ? (e.consume(t), re) : t === 58 || t === 95 || ya(t) ? (e.consume(t), E) : V(t) ? (o = T, ie(t)) : U(t) ? (e.consume(t), T) : re(t);
|
|
5817
5817
|
}
|
|
5818
5818
|
function E(t) {
|
|
5819
5819
|
return t === 45 || t === 46 || t === 58 || t === 95 || ba(t) ? (e.consume(t), E) : D(t);
|
|
5820
5820
|
}
|
|
5821
5821
|
function D(t) {
|
|
5822
|
-
return t === 61 ? (e.consume(t), O) : V(t) ? (o = D,
|
|
5822
|
+
return t === 61 ? (e.consume(t), O) : V(t) ? (o = D, ie(t)) : U(t) ? (e.consume(t), D) : T(t);
|
|
5823
5823
|
}
|
|
5824
5824
|
function O(t) {
|
|
5825
|
-
return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, ee) : V(t) ? (o = O,
|
|
5825
|
+
return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, ee) : V(t) ? (o = O, ie(t)) : U(t) ? (e.consume(t), O) : (e.consume(t), te);
|
|
5826
5826
|
}
|
|
5827
5827
|
function ee(t) {
|
|
5828
|
-
return t === i ? (e.consume(t), i = void 0, ne) : t === null ? n(t) : V(t) ? (o = ee,
|
|
5828
|
+
return t === i ? (e.consume(t), i = void 0, ne) : t === null ? n(t) : V(t) ? (o = ee, ie(t)) : (e.consume(t), ee);
|
|
5829
5829
|
}
|
|
5830
5830
|
function te(t) {
|
|
5831
5831
|
return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || H(t) ? T(t) : (e.consume(t), te);
|
|
@@ -5833,16 +5833,16 @@ function kl(e, t, n) {
|
|
|
5833
5833
|
function ne(e) {
|
|
5834
5834
|
return e === 47 || e === 62 || H(e) ? T(e) : n(e);
|
|
5835
5835
|
}
|
|
5836
|
-
function
|
|
5836
|
+
function re(r) {
|
|
5837
5837
|
return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
|
|
5838
5838
|
}
|
|
5839
|
-
function re(t) {
|
|
5840
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ie;
|
|
5841
|
-
}
|
|
5842
5839
|
function ie(t) {
|
|
5843
|
-
return
|
|
5840
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ae;
|
|
5844
5841
|
}
|
|
5845
5842
|
function ae(t) {
|
|
5843
|
+
return U(t) ? W(e, oe, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : oe(t);
|
|
5844
|
+
}
|
|
5845
|
+
function oe(t) {
|
|
5846
5846
|
return e.enter("htmlTextData"), o(t);
|
|
5847
5847
|
}
|
|
5848
5848
|
}
|
|
@@ -7371,7 +7371,7 @@ function md(e) {
|
|
|
7371
7371
|
listOrdered: a(Se, d),
|
|
7372
7372
|
listUnordered: a(Se),
|
|
7373
7373
|
paragraph: a(we),
|
|
7374
|
-
reference:
|
|
7374
|
+
reference: le,
|
|
7375
7375
|
referenceString: o,
|
|
7376
7376
|
resourceDestinationString: o,
|
|
7377
7377
|
resourceTitleString: o,
|
|
@@ -7384,20 +7384,20 @@ function md(e) {
|
|
|
7384
7384
|
atxHeadingSequence: S,
|
|
7385
7385
|
autolink: c(),
|
|
7386
7386
|
autolinkEmail: pe,
|
|
7387
|
-
autolinkProtocol:
|
|
7387
|
+
autolinkProtocol: M,
|
|
7388
7388
|
blockQuote: c(),
|
|
7389
7389
|
characterEscapeValue: D,
|
|
7390
|
-
characterReferenceMarkerHexadecimal:
|
|
7391
|
-
characterReferenceMarkerNumeric:
|
|
7392
|
-
characterReferenceValue:
|
|
7393
|
-
characterReference:
|
|
7390
|
+
characterReferenceMarkerHexadecimal: j,
|
|
7391
|
+
characterReferenceMarkerNumeric: j,
|
|
7392
|
+
characterReferenceValue: de,
|
|
7393
|
+
characterReference: fe,
|
|
7394
7394
|
codeFenced: c(_),
|
|
7395
7395
|
codeFencedFence: g,
|
|
7396
7396
|
codeFencedFenceInfo: m,
|
|
7397
7397
|
codeFencedFenceMeta: h,
|
|
7398
7398
|
codeFlowValue: D,
|
|
7399
7399
|
codeIndented: c(v),
|
|
7400
|
-
codeText: c(
|
|
7400
|
+
codeText: c(re),
|
|
7401
7401
|
codeTextData: D,
|
|
7402
7402
|
data: D,
|
|
7403
7403
|
definition: c(),
|
|
@@ -7411,19 +7411,19 @@ function md(e) {
|
|
|
7411
7411
|
htmlFlowData: D,
|
|
7412
7412
|
htmlText: c(ne),
|
|
7413
7413
|
htmlTextData: D,
|
|
7414
|
-
image: c(
|
|
7415
|
-
label:
|
|
7416
|
-
labelText:
|
|
7414
|
+
image: c(ae),
|
|
7415
|
+
label: k,
|
|
7416
|
+
labelText: oe,
|
|
7417
7417
|
lineEnding: O,
|
|
7418
|
-
link: c(
|
|
7418
|
+
link: c(ie),
|
|
7419
7419
|
listItem: c(),
|
|
7420
7420
|
listOrdered: c(),
|
|
7421
7421
|
listUnordered: c(),
|
|
7422
7422
|
paragraph: c(),
|
|
7423
|
-
referenceString:
|
|
7424
|
-
resourceDestinationString:
|
|
7425
|
-
resourceTitleString:
|
|
7426
|
-
resource:
|
|
7423
|
+
referenceString: ue,
|
|
7424
|
+
resourceDestinationString: A,
|
|
7425
|
+
resourceTitleString: se,
|
|
7426
|
+
resource: ce,
|
|
7427
7427
|
setextHeading: c(T),
|
|
7428
7428
|
setextHeadingLineSequence: w,
|
|
7429
7429
|
setextHeadingText: C,
|
|
@@ -7645,11 +7645,11 @@ function md(e) {
|
|
|
7645
7645
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7646
7646
|
t.value = e;
|
|
7647
7647
|
}
|
|
7648
|
-
function
|
|
7648
|
+
function re() {
|
|
7649
7649
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7650
7650
|
t.value = e;
|
|
7651
7651
|
}
|
|
7652
|
-
function
|
|
7652
|
+
function ie() {
|
|
7653
7653
|
let e = this.stack[this.stack.length - 1];
|
|
7654
7654
|
if (this.data.inReference) {
|
|
7655
7655
|
let t = this.data.referenceType || "shortcut";
|
|
@@ -7657,7 +7657,7 @@ function md(e) {
|
|
|
7657
7657
|
} else delete e.identifier, delete e.label;
|
|
7658
7658
|
this.data.referenceType = void 0;
|
|
7659
7659
|
}
|
|
7660
|
-
function
|
|
7660
|
+
function ae() {
|
|
7661
7661
|
let e = this.stack[this.stack.length - 1];
|
|
7662
7662
|
if (this.data.inReference) {
|
|
7663
7663
|
let t = this.data.referenceType || "shortcut";
|
|
@@ -7665,46 +7665,46 @@ function md(e) {
|
|
|
7665
7665
|
} else delete e.identifier, delete e.label;
|
|
7666
7666
|
this.data.referenceType = void 0;
|
|
7667
7667
|
}
|
|
7668
|
-
function
|
|
7668
|
+
function oe(e) {
|
|
7669
7669
|
let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
|
|
7670
7670
|
n.label = Ds(t), n.identifier = Xa(t).toLowerCase();
|
|
7671
7671
|
}
|
|
7672
|
-
function
|
|
7672
|
+
function k() {
|
|
7673
7673
|
let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
7674
7674
|
this.data.inReference = !0, n.type === "link" ? n.children = e.children : n.alt = t;
|
|
7675
7675
|
}
|
|
7676
|
-
function
|
|
7676
|
+
function A() {
|
|
7677
7677
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7678
7678
|
t.url = e;
|
|
7679
7679
|
}
|
|
7680
|
-
function
|
|
7680
|
+
function se() {
|
|
7681
7681
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7682
7682
|
t.title = e;
|
|
7683
7683
|
}
|
|
7684
|
-
function
|
|
7684
|
+
function ce() {
|
|
7685
7685
|
this.data.inReference = void 0;
|
|
7686
7686
|
}
|
|
7687
|
-
function
|
|
7687
|
+
function le() {
|
|
7688
7688
|
this.data.referenceType = "collapsed";
|
|
7689
7689
|
}
|
|
7690
|
-
function
|
|
7690
|
+
function ue(e) {
|
|
7691
7691
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
7692
7692
|
n.label = t, n.identifier = Xa(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
|
|
7693
7693
|
}
|
|
7694
|
-
function
|
|
7694
|
+
function j(e) {
|
|
7695
7695
|
this.data.characterReferenceType = e.type;
|
|
7696
7696
|
}
|
|
7697
|
-
function
|
|
7697
|
+
function de(e) {
|
|
7698
7698
|
let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
|
|
7699
7699
|
n ? (r = Ts(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = f(t);
|
|
7700
7700
|
let i = this.stack[this.stack.length - 1];
|
|
7701
7701
|
i.value += r;
|
|
7702
7702
|
}
|
|
7703
|
-
function
|
|
7703
|
+
function fe(e) {
|
|
7704
7704
|
let t = this.stack.pop();
|
|
7705
7705
|
t.position.end = hd(e.end);
|
|
7706
7706
|
}
|
|
7707
|
-
function
|
|
7707
|
+
function M(e) {
|
|
7708
7708
|
D.call(this, e);
|
|
7709
7709
|
let t = this.stack[this.stack.length - 1];
|
|
7710
7710
|
t.url = this.sliceSerialize(e);
|
|
@@ -9515,7 +9515,7 @@ var dp = {
|
|
|
9515
9515
|
});
|
|
9516
9516
|
}, gm = { agentIconBadge: "_agentIconBadge_1ger8_1" }, _m = ({ src: e, size: t, initialsName: n, fallback: r, labels: i, styles: a }) => {
|
|
9517
9517
|
let { tooltip: o } = i ?? {}, { badgeClassName: s, colors: c } = a ?? {}, l = pn({ "--di-icon-bg": c?.background }), [u, d] = N(e), [f, p] = N(), m = pe(null);
|
|
9518
|
-
|
|
9518
|
+
de(() => {
|
|
9519
9519
|
if (e === u) return;
|
|
9520
9520
|
if (e == null) {
|
|
9521
9521
|
d(void 0);
|
|
@@ -9529,7 +9529,7 @@ var dp = {
|
|
|
9529
9529
|
}, n.src = e, () => {
|
|
9530
9530
|
t = !0;
|
|
9531
9531
|
};
|
|
9532
|
-
}, [e, u]),
|
|
9532
|
+
}, [e, u]), de(() => {
|
|
9533
9533
|
let e = m.current;
|
|
9534
9534
|
if (!e) return;
|
|
9535
9535
|
let t = () => p(u);
|
|
@@ -9559,7 +9559,7 @@ var dp = {
|
|
|
9559
9559
|
})
|
|
9560
9560
|
})
|
|
9561
9561
|
});
|
|
9562
|
-
return o ? /* @__PURE__ */ P(
|
|
9562
|
+
return o ? /* @__PURE__ */ P(k, {
|
|
9563
9563
|
tooltip: o,
|
|
9564
9564
|
triggerClassName: "flex shrink-0",
|
|
9565
9565
|
children: _
|
|
@@ -9585,7 +9585,7 @@ var dp = {
|
|
|
9585
9585
|
stroke: "none"
|
|
9586
9586
|
}
|
|
9587
9587
|
}, ym = (e, t, n, r) => {
|
|
9588
|
-
let i =
|
|
9588
|
+
let i = ce(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => se("svg", {
|
|
9589
9589
|
ref: u,
|
|
9590
9590
|
...vm[e],
|
|
9591
9591
|
width: i,
|
|
@@ -9601,8 +9601,8 @@ var dp = {
|
|
|
9601
9601
|
},
|
|
9602
9602
|
...l
|
|
9603
9603
|
}, [
|
|
9604
|
-
o &&
|
|
9605
|
-
...r.map(([e, t]) =>
|
|
9604
|
+
o && se("title", { key: "svg-title" }, o),
|
|
9605
|
+
...r.map(([e, t]) => se(e, t)),
|
|
9606
9606
|
...Array.isArray(c) ? c : [c]
|
|
9607
9607
|
]));
|
|
9608
9608
|
return i.displayName = `${n}`, i;
|
|
@@ -9696,7 +9696,7 @@ var dp = {
|
|
|
9696
9696
|
d: "M10 16l4 -8",
|
|
9697
9697
|
key: "svg-5"
|
|
9698
9698
|
}]
|
|
9699
|
-
]), Dm = ({ onClick: e, isCopied: t, copyLabel: n, copiedLabel: r, size: i = te.Standard, ariaLabel: a, iconSize: o = D.LG, iconCopy: s }) => /* @__PURE__ */ P(
|
|
9699
|
+
]), Dm = ({ onClick: e, isCopied: t, copyLabel: n, copiedLabel: r, size: i = te.Standard, ariaLabel: a, iconSize: o = D.LG, iconCopy: s }) => /* @__PURE__ */ P(oe, {
|
|
9700
9700
|
size: i,
|
|
9701
9701
|
icon: t ? /* @__PURE__ */ P(bm, {
|
|
9702
9702
|
size: o,
|
|
@@ -9710,7 +9710,7 @@ var dp = {
|
|
|
9710
9710
|
"aria-label": t ? r : a ?? n,
|
|
9711
9711
|
tooltipProps: { tooltip: t ? r : n },
|
|
9712
9712
|
onClick: e
|
|
9713
|
-
}), Om = ({ onClick: e, isCopied: t, copyLabel: n, copiedLabel: r, size: i = te.Standard }) => /* @__PURE__ */ P(
|
|
9713
|
+
}), Om = ({ onClick: e, isCopied: t, copyLabel: n, copiedLabel: r, size: i = te.Standard }) => /* @__PURE__ */ P(ae, {
|
|
9714
9714
|
size: i,
|
|
9715
9715
|
label: t ? r : n,
|
|
9716
9716
|
iconBefore: P(t ? bm : xm, {
|
|
@@ -9723,7 +9723,7 @@ var dp = {
|
|
|
9723
9723
|
}), km = {
|
|
9724
9724
|
icon: "_icon_d05h7_1",
|
|
9725
9725
|
label: "_label_d05h7_5"
|
|
9726
|
-
}, Am =
|
|
9726
|
+
}, Am = ue(({ icon: e, label: t, colors: n, labelClassName: r = "dial-tiny-text", containerClassName: i }) => /* @__PURE__ */ P("div", {
|
|
9727
9727
|
style: pn({
|
|
9728
9728
|
"--pes-icon-color": n?.icon,
|
|
9729
9729
|
"--pes-label-color": n?.label
|
|
@@ -9751,7 +9751,7 @@ var dp = {
|
|
|
9751
9751
|
children: [
|
|
9752
9752
|
/* @__PURE__ */ P("h3", {
|
|
9753
9753
|
className: z(c ? "min-w-0 shrink" : "shrink-0 whitespace-nowrap", n, jm.title),
|
|
9754
|
-
children: a ? /* @__PURE__ */ P(
|
|
9754
|
+
children: a ? /* @__PURE__ */ P(ie, {
|
|
9755
9755
|
text: e,
|
|
9756
9756
|
query: a
|
|
9757
9757
|
}) : c ? /* @__PURE__ */ P(ne, { text: e }) : e
|
|
@@ -16094,7 +16094,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16094
16094
|
return t.length > 1 && t.startsWith("|") && t.endsWith("|");
|
|
16095
16095
|
}), _x = (e) => e.includes("```") || gx(e), vx = (e, t, n) => !n || mx() || e === t || !t.startsWith(e) || _x(t.slice(e.length)), yx = (e, t = !1, n = px) => {
|
|
16096
16096
|
let [r, i] = N(e), a = pe(e), o = pe(e), s = pe(t), c = pe(null), l = pe(null), u = pe(0);
|
|
16097
|
-
return (e !== o.current || t !== s.current) && (o.current = e, s.current = t, vx(a.current, e, t) && (a.current = e, c.current !== null && (cancelAnimationFrame(c.current), c.current = null), l.current = null, u.current = 0, r !== e && i(e))),
|
|
16097
|
+
return (e !== o.current || t !== s.current) && (o.current = e, s.current = t, vx(a.current, e, t) && (a.current = e, c.current !== null && (cancelAnimationFrame(c.current), c.current = null), l.current = null, u.current = 0, r !== e && i(e))), de(() => {
|
|
16098
16098
|
let r = () => {
|
|
16099
16099
|
c.current !== null && (cancelAnimationFrame(c.current), c.current = null), l.current = null, u.current = 0;
|
|
16100
16100
|
};
|
|
@@ -16148,11 +16148,11 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16148
16148
|
return o.push(t.substring(i)), o.join("");
|
|
16149
16149
|
}, Ax = 2e3, jx = (e, t = Ax) => {
|
|
16150
16150
|
let [n, r] = N(!1), i = pe(null);
|
|
16151
|
-
return
|
|
16151
|
+
return de(() => () => {
|
|
16152
16152
|
i.current != null && clearTimeout(i.current);
|
|
16153
16153
|
}, []), {
|
|
16154
16154
|
isCopied: n,
|
|
16155
|
-
copy:
|
|
16155
|
+
copy: j(() => {
|
|
16156
16156
|
xp(e).then((e) => {
|
|
16157
16157
|
e && (i.current != null && clearTimeout(i.current), r(!0), i.current = setTimeout(() => {
|
|
16158
16158
|
r(!1);
|
|
@@ -16237,10 +16237,10 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16237
16237
|
}, Rx = {
|
|
16238
16238
|
dark: Lx,
|
|
16239
16239
|
light: Lx
|
|
16240
|
-
}, zx =
|
|
16240
|
+
}, zx = le(async () => {
|
|
16241
16241
|
let { Prism: e } = await import("./esm-CopgoDht.js");
|
|
16242
16242
|
return { default: e };
|
|
16243
|
-
}), Bx =
|
|
16243
|
+
}), Bx = ue(({ language: e, value: t, isStreaming: n, theme: r = Me.Dark, copyLabel: i = "Copy code", copiedLabel: a = "Copied!", downloadLabel: o = "Download code", hideDownload: s = !1, containerClassName: c, headerClassName: l, codeClassName: u = "dial-code-text", languageLabelClassName: d = "dial-tiny-lead-semi-text", title: f, titleSlot: p, colors: m }) => {
|
|
16244
16244
|
let { isCopied: h, copy: g } = jx(t), _ = r === Me.Light, v = () => {
|
|
16245
16245
|
Kp(t, `code.${Bp(e)}`);
|
|
16246
16246
|
}, y = /* @__PURE__ */ P("pre", {
|
|
@@ -16268,7 +16268,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16268
16268
|
children: f ?? e
|
|
16269
16269
|
}), !n && /* @__PURE__ */ he("div", {
|
|
16270
16270
|
className: "flex items-center gap-1",
|
|
16271
|
-
children: [!s && /* @__PURE__ */ P(
|
|
16271
|
+
children: [!s && /* @__PURE__ */ P(re, {
|
|
16272
16272
|
icon: /* @__PURE__ */ P(Cm, {
|
|
16273
16273
|
size: D.SM,
|
|
16274
16274
|
stroke: O
|
|
@@ -16276,7 +16276,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16276
16276
|
"aria-label": o,
|
|
16277
16277
|
size: te.Small,
|
|
16278
16278
|
onClick: v
|
|
16279
|
-
}), /* @__PURE__ */ P(
|
|
16279
|
+
}), /* @__PURE__ */ P(re, {
|
|
16280
16280
|
icon: h ? /* @__PURE__ */ P(bm, {
|
|
16281
16281
|
size: D.SM,
|
|
16282
16282
|
className: Mx.copiedIcon,
|
|
@@ -16296,7 +16296,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16296
16296
|
/* @__PURE__ */ P("div", {
|
|
16297
16297
|
className: z(Mx.scrollContainer, "max-h-[60vh] overflow-auto"),
|
|
16298
16298
|
dir: "ltr",
|
|
16299
|
-
children: e ? /* @__PURE__ */ P(
|
|
16299
|
+
children: e ? /* @__PURE__ */ P(A, {
|
|
16300
16300
|
fallback: y,
|
|
16301
16301
|
children: /* @__PURE__ */ P(zx, {
|
|
16302
16302
|
language: e,
|
|
@@ -16332,13 +16332,13 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16332
16332
|
blockquote: "_blockquote_1g29w_31",
|
|
16333
16333
|
link: "_link_1g29w_36"
|
|
16334
16334
|
}, Hx = 1, Ux = () => {
|
|
16335
|
-
let e = pe(null), t = pe(null), [n, r] = N(!1), [i, a] = N(!1), o =
|
|
16335
|
+
let e = pe(null), t = pe(null), [n, r] = N(!1), [i, a] = N(!1), o = j(() => {
|
|
16336
16336
|
let n = e.current, i = t.current;
|
|
16337
16337
|
if (!n || !i) return;
|
|
16338
16338
|
let o = n.scrollWidth - n.clientWidth > Hx, s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = getComputedStyle(n).direction === "rtl", u = l ? c.right > s.right + Hx : c.left < s.left - Hx, d = l ? c.left < s.left - Hx : c.right > s.right + Hx;
|
|
16339
16339
|
r(o && u), a(o && d);
|
|
16340
16340
|
}, []);
|
|
16341
|
-
return
|
|
16341
|
+
return fe(() => {
|
|
16342
16342
|
o();
|
|
16343
16343
|
let n = e.current, r = t.current;
|
|
16344
16344
|
if (!n || !r || typeof ResizeObserver > "u") return;
|
|
@@ -16354,7 +16354,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16354
16354
|
}, Wx = {
|
|
16355
16355
|
scrollContainer: "_scrollContainer_1f433_1",
|
|
16356
16356
|
mathContent: "_mathContent_1f433_24"
|
|
16357
|
-
}, Gx =
|
|
16357
|
+
}, Gx = ue(({ children: e, className: t, scrollRegionAriaLabel: n = "Scrollable formula" }) => {
|
|
16358
16358
|
let { scrollContainerRef: r, contentRef: i, hasContentBeyondStart: a, hasContentBeyondEnd: o, handleScroll: s } = Ux(), c = a || o;
|
|
16359
16359
|
return /* @__PURE__ */ P("div", {
|
|
16360
16360
|
ref: r,
|
|
@@ -16390,10 +16390,10 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16390
16390
|
children: e
|
|
16391
16391
|
}), t != null && /* @__PURE__ */ P("div", {
|
|
16392
16392
|
className: "ms-auto flex items-center gap-1",
|
|
16393
|
-
children: t.map((e) => /* @__PURE__ */ P(
|
|
16393
|
+
children: t.map((e) => /* @__PURE__ */ P(k, {
|
|
16394
16394
|
tooltip: e.label,
|
|
16395
16395
|
asChild: !0,
|
|
16396
|
-
children: /* @__PURE__ */ P(
|
|
16396
|
+
children: /* @__PURE__ */ P(re, {
|
|
16397
16397
|
"aria-label": e.label,
|
|
16398
16398
|
icon: /* @__PURE__ */ P("span", {
|
|
16399
16399
|
"aria-hidden": !0,
|
|
@@ -16405,7 +16405,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16405
16405
|
})
|
|
16406
16406
|
}, e.label))
|
|
16407
16407
|
})]
|
|
16408
|
-
}), rS = ({ actionLabels: e, copiedFormat: t, onCopy: n, onDownloadCsv: r, onOpenInCanvas: i }) =>
|
|
16408
|
+
}), rS = ({ actionLabels: e, copiedFormat: t, onCopy: n, onDownloadCsv: r, onOpenInCanvas: i }) => M(() => {
|
|
16409
16409
|
if (e == null) return [];
|
|
16410
16410
|
let a = [], o = [
|
|
16411
16411
|
{
|
|
@@ -16461,7 +16461,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16461
16461
|
n,
|
|
16462
16462
|
r,
|
|
16463
16463
|
i
|
|
16464
|
-
]), iS = 2e3, aS =
|
|
16464
|
+
]), iS = 2e3, aS = ue(({ children: e, classNames: t, colors: n, actionLabels: r, downloadFilename: i, isStreaming: a, onOpenInCanvas: o, scrollRegionAriaLabel: s = "Scrollable table" }) => {
|
|
16465
16465
|
let [c, l] = N(void 0), u = pe(null), { scrollContainerRef: d, contentRef: f, hasContentBeyondStart: p, hasContentBeyondEnd: m, handleScroll: h } = Ux(), g = pn({
|
|
16466
16466
|
"--cm-markdown-border": n?.border,
|
|
16467
16467
|
"--cm-table-scrollbar": n?.scrollbar,
|
|
@@ -16470,20 +16470,20 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16470
16470
|
"--cm-table-row-zebra-bg": n?.rowZebraBackground,
|
|
16471
16471
|
"--cm-table-row-hover-bg": n?.rowHoverBackground
|
|
16472
16472
|
}), _ = p || m;
|
|
16473
|
-
|
|
16473
|
+
de(() => () => {
|
|
16474
16474
|
u.current != null && clearTimeout(u.current);
|
|
16475
16475
|
}, []);
|
|
16476
|
-
let v =
|
|
16476
|
+
let v = j((e) => {
|
|
16477
16477
|
let t = f.current;
|
|
16478
16478
|
t != null && xp(eS(Array.from(t.rows), e)).then((t) => {
|
|
16479
16479
|
t && (u.current != null && clearTimeout(u.current), l(e), u.current = setTimeout(() => {
|
|
16480
16480
|
l(void 0);
|
|
16481
16481
|
}, iS));
|
|
16482
16482
|
});
|
|
16483
|
-
}, [f]), y =
|
|
16483
|
+
}, [f]), y = j(() => {
|
|
16484
16484
|
let e = f.current;
|
|
16485
16485
|
e != null && Kp(`\uFEFF${eS(Array.from(e.rows), qx.Csv)}`, i ?? "table.csv", Yx);
|
|
16486
|
-
}, [f, i]), b =
|
|
16486
|
+
}, [f, i]), b = j(() => {
|
|
16487
16487
|
let e = f.current;
|
|
16488
16488
|
e == null || o == null || o(eS(Array.from(e.rows), qx.Markdown));
|
|
16489
16489
|
}, [f, o]), x = rS({
|
|
@@ -16580,7 +16580,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16580
16580
|
"katex-error"
|
|
16581
16581
|
]]
|
|
16582
16582
|
}
|
|
16583
|
-
}], fS = [], pS = /\$\$|\\\(|\\\[/, mS = (e) => pS.test(e), hS = {}, gS = {
|
|
16583
|
+
}], fS = [], pS = /\$\$|\\\(|\\\[/, mS = (e) => pS.test(e), hS = {}, gS = (e) => e == null ? Oh : (t) => Oh(e(t)), _S = {
|
|
16584
16584
|
li: ({ children: e }) => /* @__PURE__ */ P("li", {
|
|
16585
16585
|
className: "mb-1.5 last:mb-0",
|
|
16586
16586
|
children: e
|
|
@@ -16590,17 +16590,17 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16590
16590
|
e,
|
|
16591
16591
|
"</cit>"
|
|
16592
16592
|
] })
|
|
16593
|
-
},
|
|
16593
|
+
}, vS = (e) => {
|
|
16594
16594
|
let t = e?.properties?.className;
|
|
16595
16595
|
return !Array.isArray(t) || !t.includes("katex") ? !1 : (e?.children ?? []).some((e) => e.type === "element" && e.tagName === "math" && e.properties?.display === "block");
|
|
16596
|
-
},
|
|
16596
|
+
}, yS = {
|
|
16597
16597
|
left: "text-start",
|
|
16598
16598
|
center: "text-center",
|
|
16599
16599
|
right: "text-end"
|
|
16600
|
-
},
|
|
16600
|
+
}, bS = (e) => {
|
|
16601
16601
|
let t = e?.properties?.align;
|
|
16602
|
-
return typeof t == "string" ?
|
|
16603
|
-
},
|
|
16602
|
+
return typeof t == "string" ? yS[t] : void 0;
|
|
16603
|
+
}, xS = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(xS).join("") : "", SS = (e, { isStreaming: t, codeBlockCopyLabel: n, codeBlockCopiedLabel: r, codeBlockTheme: i, tableActionLabels: a, tableDownloadFilename: o, tableOnOpenInCanvas: s, tableScrollRegionAriaLabel: c, mathScrollRegionAriaLabel: l }) => ({
|
|
16604
16604
|
h1: ({ children: t }) => /* @__PURE__ */ P("h1", {
|
|
16605
16605
|
className: e.h1,
|
|
16606
16606
|
children: t
|
|
@@ -16680,7 +16680,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16680
16680
|
children: t
|
|
16681
16681
|
}),
|
|
16682
16682
|
input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ P(oS, { checked: t ?? !1 }) : null,
|
|
16683
|
-
span: ({ children: t, node: n, ...r }) =>
|
|
16683
|
+
span: ({ children: t, node: n, ...r }) => vS(n) ? /* @__PURE__ */ P(Gx, {
|
|
16684
16684
|
className: e.mathBlock,
|
|
16685
16685
|
scrollRegionAriaLabel: l,
|
|
16686
16686
|
children: t
|
|
@@ -16698,7 +16698,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16698
16698
|
children: n
|
|
16699
16699
|
}),
|
|
16700
16700
|
tr: ({ children: e, node: t }) => {
|
|
16701
|
-
let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) =>
|
|
16701
|
+
let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => xS(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
|
|
16702
16702
|
return /* @__PURE__ */ P("tr", {
|
|
16703
16703
|
className: z(Kx.row, a && Kx.sectionRow),
|
|
16704
16704
|
children: e
|
|
@@ -16706,87 +16706,88 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16706
16706
|
},
|
|
16707
16707
|
th: ({ children: t, node: n }) => /* @__PURE__ */ P("th", {
|
|
16708
16708
|
scope: "col",
|
|
16709
|
-
className: z("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start",
|
|
16709
|
+
className: z("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start", bS(n), Kx.rowDivider, Kx.tableHeaderCell, e.tableHeaderFont ?? "dial-tiny-lead-semi-text", e.tableCell, e.tableHeader),
|
|
16710
16710
|
children: t
|
|
16711
16711
|
}),
|
|
16712
16712
|
td: ({ children: t, node: n }) => /* @__PURE__ */ P("td", {
|
|
16713
|
-
className: z("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]",
|
|
16713
|
+
className: z("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]", bS(n), Kx.rowDivider, e.tableBodyCell, e.tableCell),
|
|
16714
16714
|
children: t
|
|
16715
16715
|
})
|
|
16716
|
-
}),
|
|
16717
|
-
let
|
|
16718
|
-
|
|
16719
|
-
if (!
|
|
16716
|
+
}), CS = ue(({ content: e, containerClassName: t, isStreaming: n, streamCharactersPerSecond: r, classNames: i = hS, components: a, urlTransform: o, rehypePlugins: s = fS, thinkingLabel: c = "Thinking", codeBlockCopyLabel: l, codeBlockCopiedLabel: u, codeBlockTheme: d, colors: f, tableActionLabels: p, tableDownloadFilename: m, tableOnOpenInCanvas: h, tableScrollRegionAriaLabel: g, mathScrollRegionAriaLabel: _ }) => {
|
|
16717
|
+
let v = yx(e, n, r), y = M(() => kx(v), [v]), b = M(() => mS(y), [y]), [x, S] = N(null);
|
|
16718
|
+
de(() => {
|
|
16719
|
+
if (!b || x) return;
|
|
16720
16720
|
let e = !1;
|
|
16721
16721
|
return (async () => {
|
|
16722
16722
|
let [t] = await Promise.all([import("./rehype-katex-Da1z0EAE.js"), import("katex/dist/katex.min.css")]);
|
|
16723
|
-
e ||
|
|
16723
|
+
e || S([t.default, {
|
|
16724
16724
|
output: "mathml",
|
|
16725
16725
|
strict: !1
|
|
16726
16726
|
}]);
|
|
16727
16727
|
})(), () => {
|
|
16728
16728
|
e = !0;
|
|
16729
16729
|
};
|
|
16730
|
-
}, [
|
|
16731
|
-
let
|
|
16730
|
+
}, [b, x]);
|
|
16731
|
+
let C = M(() => [
|
|
16732
16732
|
...uS,
|
|
16733
|
-
...
|
|
16733
|
+
...x ? [x] : [],
|
|
16734
16734
|
dS,
|
|
16735
|
-
...
|
|
16736
|
-
], [
|
|
16737
|
-
"--cm-thinking-inverted":
|
|
16738
|
-
"--cm-thinking-secondary":
|
|
16739
|
-
"--cm-markdown-border":
|
|
16740
|
-
"--cm-blockquote-border":
|
|
16741
|
-
"--cm-blockquote-text":
|
|
16742
|
-
"--cm-link-text":
|
|
16743
|
-
"--cm-link-focus":
|
|
16744
|
-
"--cm-table-header-text":
|
|
16745
|
-
"--cm-h6-text":
|
|
16746
|
-
"--cm-code-inline-bg":
|
|
16747
|
-
"--cm-code-inline-text":
|
|
16748
|
-
}),
|
|
16749
|
-
...
|
|
16735
|
+
...s
|
|
16736
|
+
], [x, s]), w = pn({
|
|
16737
|
+
"--cm-thinking-inverted": f?.thinkingPrimary,
|
|
16738
|
+
"--cm-thinking-secondary": f?.thinkingSecondary,
|
|
16739
|
+
"--cm-markdown-border": f?.border,
|
|
16740
|
+
"--cm-blockquote-border": f?.blockquoteBorder,
|
|
16741
|
+
"--cm-blockquote-text": f?.blockquoteText,
|
|
16742
|
+
"--cm-link-text": f?.linkText,
|
|
16743
|
+
"--cm-link-focus": f?.linkFocus,
|
|
16744
|
+
"--cm-table-header-text": f?.tableHeaderText,
|
|
16745
|
+
"--cm-h6-text": f?.headingSixText,
|
|
16746
|
+
"--cm-code-inline-bg": f?.inlineCodeBackground,
|
|
16747
|
+
"--cm-code-inline-text": f?.inlineCodeText
|
|
16748
|
+
}), T = M(() => gS(o), [o]), E = M(() => ({
|
|
16749
|
+
...SS(i, {
|
|
16750
16750
|
isStreaming: n,
|
|
16751
|
-
codeBlockCopyLabel:
|
|
16752
|
-
codeBlockCopiedLabel:
|
|
16753
|
-
codeBlockTheme:
|
|
16754
|
-
tableActionLabels:
|
|
16755
|
-
tableDownloadFilename:
|
|
16756
|
-
tableOnOpenInCanvas:
|
|
16757
|
-
tableScrollRegionAriaLabel:
|
|
16758
|
-
mathScrollRegionAriaLabel:
|
|
16751
|
+
codeBlockCopyLabel: l,
|
|
16752
|
+
codeBlockCopiedLabel: u,
|
|
16753
|
+
codeBlockTheme: d,
|
|
16754
|
+
tableActionLabels: p,
|
|
16755
|
+
tableDownloadFilename: m,
|
|
16756
|
+
tableOnOpenInCanvas: h,
|
|
16757
|
+
tableScrollRegionAriaLabel: g,
|
|
16758
|
+
mathScrollRegionAriaLabel: _
|
|
16759
16759
|
}),
|
|
16760
|
-
...
|
|
16760
|
+
..._S,
|
|
16761
16761
|
...a
|
|
16762
16762
|
}), [
|
|
16763
16763
|
i,
|
|
16764
16764
|
n,
|
|
16765
|
-
c,
|
|
16766
16765
|
l,
|
|
16767
16766
|
u,
|
|
16768
|
-
|
|
16767
|
+
d,
|
|
16769
16768
|
p,
|
|
16770
16769
|
m,
|
|
16771
16770
|
h,
|
|
16772
16771
|
g,
|
|
16772
|
+
_,
|
|
16773
16773
|
a
|
|
16774
16774
|
]);
|
|
16775
|
-
return n && !
|
|
16775
|
+
return n && !v ? /* @__PURE__ */ P("span", {
|
|
16776
16776
|
className: Vx.thinking,
|
|
16777
|
-
style:
|
|
16778
|
-
children:
|
|
16777
|
+
style: w,
|
|
16778
|
+
children: c
|
|
16779
16779
|
}) : /* @__PURE__ */ P("div", {
|
|
16780
|
-
style:
|
|
16780
|
+
style: w,
|
|
16781
16781
|
className: t,
|
|
16782
16782
|
children: /* @__PURE__ */ P(wh, {
|
|
16783
16783
|
remarkPlugins: sS,
|
|
16784
|
-
rehypePlugins:
|
|
16785
|
-
components:
|
|
16786
|
-
|
|
16784
|
+
rehypePlugins: C,
|
|
16785
|
+
components: E,
|
|
16786
|
+
urlTransform: T,
|
|
16787
|
+
children: y
|
|
16787
16788
|
})
|
|
16788
16789
|
});
|
|
16789
|
-
}),
|
|
16790
|
+
}), wS = {
|
|
16790
16791
|
h1: "dial-h1-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
16791
16792
|
h2: "dial-h2-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
16792
16793
|
h3: "dial-h3-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
@@ -16801,26 +16802,27 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16801
16802
|
link: "break-words [overflow-wrap:anywhere]",
|
|
16802
16803
|
tableWrapper: "my-4",
|
|
16803
16804
|
mathBlock: "my-4"
|
|
16804
|
-
},
|
|
16805
|
-
...
|
|
16805
|
+
}, TS = {
|
|
16806
|
+
...wS,
|
|
16806
16807
|
p: "dial-small-paragraph-text mb-3 break-words [overflow-wrap:anywhere] [text-wrap:pretty] last:mb-0",
|
|
16807
16808
|
strong: "dial-small-paragraph-semi-text"
|
|
16808
|
-
},
|
|
16809
|
+
}, ES = ue(({ content: e, isStreaming: t, thinkingLabel: n, components: r, urlTransform: i, codeBlockCopyLabel: a, codeBlockCopiedLabel: o, codeBlockTheme: s, tableActionLabels: c, tableDownloadFilename: l, tableOnOpenInCanvas: u, tableScrollRegionAriaLabel: d, classNames: f = wS }) => /* @__PURE__ */ P(CS, {
|
|
16809
16810
|
content: e,
|
|
16810
16811
|
isStreaming: t,
|
|
16811
16812
|
thinkingLabel: n,
|
|
16812
16813
|
components: r,
|
|
16813
|
-
|
|
16814
|
-
|
|
16815
|
-
|
|
16816
|
-
|
|
16817
|
-
|
|
16818
|
-
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
|
|
16814
|
+
urlTransform: i,
|
|
16815
|
+
codeBlockCopyLabel: a,
|
|
16816
|
+
codeBlockCopiedLabel: o,
|
|
16817
|
+
codeBlockTheme: s,
|
|
16818
|
+
tableActionLabels: c,
|
|
16819
|
+
tableDownloadFilename: l,
|
|
16820
|
+
tableOnOpenInCanvas: u,
|
|
16821
|
+
tableScrollRegionAriaLabel: d,
|
|
16822
|
+
classNames: f
|
|
16823
|
+
})), DS = [em], OS = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(CS, {
|
|
16822
16824
|
content: e,
|
|
16823
|
-
rehypePlugins:
|
|
16825
|
+
rehypePlugins: DS,
|
|
16824
16826
|
classNames: {
|
|
16825
16827
|
h1: t,
|
|
16826
16828
|
h2: t,
|
|
@@ -16829,26 +16831,26 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16829
16831
|
h5: t,
|
|
16830
16832
|
h6: t
|
|
16831
16833
|
}
|
|
16832
|
-
}),
|
|
16833
|
-
let [e, t] = N(
|
|
16834
|
-
return
|
|
16834
|
+
}), kS = "(max-width: 768px)", AS = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(kS).matches, jS = () => {
|
|
16835
|
+
let [e, t] = N(AS);
|
|
16836
|
+
return de(() => {
|
|
16835
16837
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
16836
|
-
let e = window.matchMedia(
|
|
16838
|
+
let e = window.matchMedia(kS), n = () => t(e.matches);
|
|
16837
16839
|
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
16838
16840
|
}, []), e;
|
|
16839
|
-
},
|
|
16840
|
-
let n = Math.max(1, t), [r, i] = N(null), [a, o] = N(!0), [s, c] = N(!1), [l, u] = N(
|
|
16841
|
+
}, MS = 24, NS = 1, PS = ({ text: e, collapsedLineCount: t }) => {
|
|
16842
|
+
let n = Math.max(1, t), [r, i] = N(null), [a, o] = N(!0), [s, c] = N(!1), [l, u] = N(MS * n), [d, f] = N(0), p = j((e) => {
|
|
16841
16843
|
i(e);
|
|
16842
|
-
}, []), m =
|
|
16844
|
+
}, []), m = j(() => {
|
|
16843
16845
|
if (!r) return;
|
|
16844
16846
|
let e = window.getComputedStyle(r), t = Number.parseFloat(e.fontSize), i = Number.isNaN(t) ? 16 : t, a = Number.parseFloat(e.lineHeight), o = i * 1.5;
|
|
16845
16847
|
e.lineHeight !== "normal" && !Number.isNaN(a) && (o = e.lineHeight.endsWith("px") ? a : a * i);
|
|
16846
16848
|
let s = o * n;
|
|
16847
|
-
u(s), f(r.scrollHeight), c(r.scrollHeight - s >
|
|
16849
|
+
u(s), f(r.scrollHeight), c(r.scrollHeight - s > NS);
|
|
16848
16850
|
}, [r, n]);
|
|
16849
|
-
|
|
16851
|
+
de(() => {
|
|
16850
16852
|
o(!0);
|
|
16851
|
-
}, [n, e]),
|
|
16853
|
+
}, [n, e]), de(() => {
|
|
16852
16854
|
if (m(), !r || typeof ResizeObserver > "u") return;
|
|
16853
16855
|
let e = new ResizeObserver(m);
|
|
16854
16856
|
return e.observe(r), () => e.disconnect();
|
|
@@ -16857,7 +16859,7 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16857
16859
|
r,
|
|
16858
16860
|
e
|
|
16859
16861
|
]);
|
|
16860
|
-
let h =
|
|
16862
|
+
let h = j(() => {
|
|
16861
16863
|
o((e) => !e);
|
|
16862
16864
|
}, []);
|
|
16863
16865
|
return {
|
|
@@ -16871,4 +16873,4 @@ var px = 120, mx = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
16871
16873
|
};
|
|
16872
16874
|
};
|
|
16873
16875
|
//#endregion
|
|
16874
|
-
export { Oe as AttachmentErrorReason, ke as AttachmentType, am as BASE_LG_ICON_PROPS, im as BASE_MD_ICON_PROPS,
|
|
16876
|
+
export { Oe as AttachmentErrorReason, ke as AttachmentType, am as BASE_LG_ICON_PROPS, im as BASE_MD_ICON_PROPS, TS as COMPACT_MARKDOWN_CLASS_NAMES, Ae as CatalogEntityType, Me as CodeBlockTheme, ve as ConversationTransferErrorCode, ge as ConversationTransferJobStatus, _e as ConversationTransferSubjectKind, be as ConversationTransferUnitKind, ye as ConversationTransferWarningCode, Om as CopyButton, Dm as CopyIconButton, wS as DEFAULT_MARKDOWN_CLASS_NAMES, Jx as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, _m as DeploymentIcon, y as DialFileManagerActionProfile, b as DialFileManagerShell, T as DialFileManagerVariant, Jp as ENTITY_TYPE_BG_COLOR, qp as ENTITY_TYPE_COLOR, Fm as EntityHeader, Nm as EntityTypeLabel, Pm as FeaturedChip, je as FileExtension, w as FileManagerAttachModal, x as FileUploadStatus, xe as FilterTab, om as HIDDEN_FILE, hm as InitialsAvatar, Mm as ItemHeader, lm as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, Yx as MARKDOWN_TABLE_CSV_MIME_TYPE, ES as MDMessageViewer, F as MIMEType, wn as MIME_TYPE_AUDIO_PREFIX, Sn as MIME_TYPE_EXT_MAP, Cn as MIME_TYPE_WILDCARD, Bx as MarkdownCodeBlock, CS as MarkdownRenderer, aS as MarkdownTable, qx as MarkdownTableCopyFormat, OS as MarkdownWithPlaceholders, Ce as MessageRating, Se as MessageRole, v as OperationLoaderModal, Ne as PROHIBITED_CONVERSATION_NAME_CHARS_RE, Yp as PROMPT_PARAM_PATTERN, Xp as PROMPT_VARIABLE_CLASS_NAME, Am as PanelEmptyState, cm as RESIZABLE_TEXTAREA_CLASS_NAME, Ee as RequestStatus, Lm as ResourceSummary, De as ResponseFormat, we as StageStatus, Te as StatusEvent, sm as TAG_INPUT_TAG_CLASS_NAME, nS as TableHeader, S as UploadProgressModal, Gp as base64ToBlob, pn as buildCssVars, bp as copyMarkdownAsRichText, xp as copyToClipboard, _S as defaultMarkdownComponents, Kp as downloadTextFile, Rp as ensureDownloadFilename, pm as extractInitials, tm as extractPromptParams, Np as formatCost, Dp as formatFileSize, Cp as formatLastUsed, Pp as formatPrice, Fp as formatUnitPrice, rm as generateUUID, vn as getAttachmentTypeFromMime, Bp as getFileExtensionForLanguage, C as getParentFolderPath, Re as getUtf8ByteLength, _n as inferMimeTypeFromPath, Tn as isAudioTranscriptionSupported, _ as isHiddenPath, mn as isStatusMessage, yp as markdownToRichTextHtml, z as mergeClasses, bn as messageAttachmentToDisplayAttachment, xn as messageAttachmentsToDisplayAttachments, dm as pickAvatarColor, em as rehypePromptVariables, nm as resolvePromptParams, Lx as restrainedSyntaxTheme, Pe as sanitizeConversationName, eS as serializeMarkdownTableRows, Fe as stripTrailingDots, gn as stripUrlQueryAndFragment, Hp as triggerAnchorDownload, Up as triggerBlobDownload, ze as truncateToUtf8Bytes, Wp as tryBase64ToBytes, jx as useCodeCopy, PS as useCollapsedText, g as useGridEditingScroll, jS as useIsMobile };
|