meyi-insight-ui-dev 1.0.27 → 1.0.29
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/features/alerts/components/AlertForm.d.ts +1 -1
- package/dist/features/incidents/components/IncidentForm.d.ts +1 -1
- package/dist/index.js +18 -18
- package/dist/index.mjs +323 -223
- package/dist/services/insight.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7784,9 +7784,9 @@ function Z4(e, t) {
|
|
|
7784
7784
|
S.resourceName && c.set(S.resourceName, (c.get(S.resourceName) ?? 0) + 1);
|
|
7785
7785
|
const u = [...c.values()].filter((S) => S > 1).reduce((S, w) => S + w, 0), p = (S) => {
|
|
7786
7786
|
if (S.status === "resolved" || S.status === "closed" || !S.createdAt) return !1;
|
|
7787
|
-
const w = (Date.now() - _r(S.createdAt)) / 6e4, T = S.status !== "open", A = String(S.
|
|
7787
|
+
const w = (Date.now() - _r(S.createdAt)) / 6e4, T = S.status !== "open", A = String(S.tags?.severity || S.tags?.priority || "").toLowerCase();
|
|
7788
7788
|
let N = 30, R = 120;
|
|
7789
|
-
return A === "critical" ? (N = 10, R = 60) : A === "high" && (N = 30, R = 120), !T && w > N || w > R;
|
|
7789
|
+
return A === "critical" || S.status === "in_progress" ? (N = 10, R = 60) : A === "high" && (N = 30, R = 120), !T && w > N || w > R;
|
|
7790
7790
|
}, d = a.filter(p).length, f = a.length ? Math.round(a.filter((S) => S.analysisStatus === "completed").length / a.length * 100) : 0, m = [];
|
|
7791
7791
|
for (let S = n - 1; S >= 0; S--) {
|
|
7792
7792
|
const w = /* @__PURE__ */ new Date();
|
|
@@ -17228,18 +17228,18 @@ function _R(e) {
|
|
|
17228
17228
|
return n < 60 ? `${n}m` : `${Math.floor(n / 60)}h ${n % 60}m`;
|
|
17229
17229
|
}
|
|
17230
17230
|
function Xa(e) {
|
|
17231
|
-
const t = String(e.
|
|
17232
|
-
return t === "P1" || e.status === "in_progress" ? "P1" : t === "P2" ? "P2" : t === "P3" || e.status === "resolved" || e.status === "closed" ? "P3" : "P2";
|
|
17231
|
+
const t = String(e.tags?.priority || e.tags?.severity || "").toUpperCase();
|
|
17232
|
+
return t === "P1" || t === "CRITICAL" || e.status === "in_progress" ? "P1" : t === "P2" ? "P2" : t === "P3" || t === "LOW" || e.status === "resolved" || e.status === "closed" ? "P3" : "P2";
|
|
17233
17233
|
}
|
|
17234
17234
|
function RR(e) {
|
|
17235
17235
|
const t = String(e || "").toLowerCase();
|
|
17236
|
-
return t === "critical" ? { ack: 10, resolve: 60 } : t === "high" ? { ack: 30, resolve: 120 } : { ack: 30, resolve: 120 };
|
|
17236
|
+
return t === "critical" || t === "p1" ? { ack: 10, resolve: 60 } : t === "high" || t === "p2" ? { ack: 30, resolve: 120 } : { ack: 30, resolve: 120 };
|
|
17237
17237
|
}
|
|
17238
17238
|
function $S(e, t) {
|
|
17239
17239
|
return !e || !t ? null : Math.max(0, Math.floor((new Date(t).getTime() - new Date(e).getTime()) / 6e4));
|
|
17240
17240
|
}
|
|
17241
17241
|
function HS(e, t) {
|
|
17242
|
-
const { ack: n, resolve: r } = RR(e.
|
|
17242
|
+
const { ack: n, resolve: r } = RR(e.tags?.severity || e.tags?.priority), a = t === "ack" ? n : r, s = e.status !== "open", o = e.status === "resolved" || e.status === "closed";
|
|
17243
17243
|
if (t === "ack" ? s : o) {
|
|
17244
17244
|
const p = t === "ack" ? e.analysisTriggeredAt || e.updatedAt : e.resolvedAt, d = $S(e.createdAt, p);
|
|
17245
17245
|
return d == null ? { label: "✓ met", cls: "ok" } : d <= a ? { label: `✓ ${d}m`, cls: "ok" } : { label: `⚠ ${d}m`, cls: "breach" };
|
|
@@ -17352,8 +17352,12 @@ function h9({ incident: e }) {
|
|
|
17352
17352
|
/* @__PURE__ */ i.jsx("span", { children: e.createdAt ? new Date(e.createdAt).toLocaleString() : "—" })
|
|
17353
17353
|
] }),
|
|
17354
17354
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
|
|
17355
|
-
/* @__PURE__ */ i.jsx("span", { children: "
|
|
17356
|
-
/* @__PURE__ */ i.jsx("
|
|
17355
|
+
/* @__PURE__ */ i.jsx("span", { children: "Tags" }),
|
|
17356
|
+
/* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap gap-1 justify-end", children: e.tags && Object.keys(e.tags).length > 0 ? Object.entries(e.tags).map(([r, a]) => /* @__PURE__ */ i.jsxs("span", { className: "im-inc-label-chip font-mono text-[11px]", children: [
|
|
17357
|
+
r,
|
|
17358
|
+
":",
|
|
17359
|
+
a
|
|
17360
|
+
] }, r)) : /* @__PURE__ */ i.jsx("span", { children: "—" }) })
|
|
17357
17361
|
] }),
|
|
17358
17362
|
e.alertId && /* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
|
|
17359
17363
|
/* @__PURE__ */ i.jsx("span", { children: "Source alarm" }),
|
|
@@ -17882,7 +17886,7 @@ function v9({ incidentId: e, onBack: t, onViewAlert: n }) {
|
|
|
17882
17886
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-sidebar-section", children: [
|
|
17883
17887
|
/* @__PURE__ */ i.jsx("div", { className: "im-inc-sidebar-label", children: "SLA" }),
|
|
17884
17888
|
(() => {
|
|
17885
|
-
const { ack: Y, resolve: J } = RR(s.
|
|
17889
|
+
const { ack: Y, resolve: J } = RR(s.tags?.severity || s.tags?.priority), Ce = HS(s, "ack"), pe = HS(s, "resolve");
|
|
17886
17890
|
return /* @__PURE__ */ i.jsxs("div", { className: "im-inc-sla", children: [
|
|
17887
17891
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-sla-row", children: [
|
|
17888
17892
|
/* @__PURE__ */ i.jsxs("span", { children: [
|
|
@@ -17927,8 +17931,12 @@ function v9({ incidentId: e, onBack: t, onViewAlert: n }) {
|
|
|
17927
17931
|
)) })
|
|
17928
17932
|
] }),
|
|
17929
17933
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-sidebar-section", children: [
|
|
17930
|
-
/* @__PURE__ */ i.jsx("div", { className: "im-inc-sidebar-label", children: "
|
|
17931
|
-
s.
|
|
17934
|
+
/* @__PURE__ */ i.jsx("div", { className: "im-inc-sidebar-label", children: "Tags" }),
|
|
17935
|
+
s.tags && Object.keys(s.tags).length > 0 ? /* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap gap-1 mt-1", children: Object.entries(s.tags).map(([Y, J]) => /* @__PURE__ */ i.jsxs("span", { className: "im-inc-label-chip font-mono text-[11px]", children: [
|
|
17936
|
+
Y,
|
|
17937
|
+
":",
|
|
17938
|
+
J
|
|
17939
|
+
] }, Y)) }) : /* @__PURE__ */ i.jsx("div", { style: { fontSize: 12, color: "var(--im-fg-subtle)" }, children: "None" })
|
|
17932
17940
|
] }),
|
|
17933
17941
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-sidebar-section", children: [
|
|
17934
17942
|
/* @__PURE__ */ i.jsx("div", { className: "im-inc-sidebar-label", children: "Quick actions" }),
|
|
@@ -19044,7 +19052,7 @@ function X$({ open: e, incident: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
19044
19052
|
Ue(() => {
|
|
19045
19053
|
if (e) {
|
|
19046
19054
|
if (t) {
|
|
19047
|
-
o(t.name || ""), c(t.downMessage || ""), p(t.source || "Manual"), f(t.priority || "P2"), h(t.resourceName || ""), b(t.status || "open");
|
|
19055
|
+
o(t.name || ""), c(t.downMessage || ""), p(t.source || "Manual"), f(t.tags?.priority || t.priority || "P2"), h(t.resourceName || ""), b(t.status || "open");
|
|
19048
19056
|
return;
|
|
19049
19057
|
}
|
|
19050
19058
|
o(""), c(""), p("Manual"), f("P1"), h(""), b("open");
|
|
@@ -19059,10 +19067,11 @@ function X$({ open: e, incident: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
19059
19067
|
re.error("Affected resource is required");
|
|
19060
19068
|
return;
|
|
19061
19069
|
}
|
|
19070
|
+
const w = t?.tags || {};
|
|
19062
19071
|
a({
|
|
19063
19072
|
name: s.trim(),
|
|
19064
19073
|
downMessage: l.trim() || void 0,
|
|
19065
|
-
|
|
19074
|
+
tags: { ...w, priority: d },
|
|
19066
19075
|
source: u.trim() || "Manual",
|
|
19067
19076
|
resourceName: m.trim() || t?.resourceName,
|
|
19068
19077
|
resourceType: "service",
|
|
@@ -21127,7 +21136,7 @@ function wl({
|
|
|
21127
21136
|
}
|
|
21128
21137
|
);
|
|
21129
21138
|
}
|
|
21130
|
-
function
|
|
21139
|
+
function mt({
|
|
21131
21140
|
column: e,
|
|
21132
21141
|
title: t,
|
|
21133
21142
|
className: n
|
|
@@ -21189,7 +21198,7 @@ function WS(e) {
|
|
|
21189
21198
|
const GH = (e) => [
|
|
21190
21199
|
{
|
|
21191
21200
|
accessorKey: "aliasId",
|
|
21192
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21201
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "ID" }),
|
|
21193
21202
|
cell: ({ row: t }) => {
|
|
21194
21203
|
const n = t.original.aliasId || t.original.alias_id;
|
|
21195
21204
|
return /* @__PURE__ */ i.jsx(qt, { variant: "outline", className: "text-[10px] font-medium", children: n ? `INC-${String(n).padStart(3, "0")}` : "-" });
|
|
@@ -21197,38 +21206,48 @@ const GH = (e) => [
|
|
|
21197
21206
|
},
|
|
21198
21207
|
{
|
|
21199
21208
|
accessorKey: "name",
|
|
21200
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21209
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Name" }),
|
|
21201
21210
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "max-w-[200px] truncate font-medium text-sm", children: t.getValue("name") })
|
|
21202
21211
|
},
|
|
21203
21212
|
{
|
|
21204
21213
|
accessorKey: "source",
|
|
21205
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21214
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Source" }),
|
|
21206
21215
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx(qt, { variant: "outline", className: "text-[10px] font-medium uppercase", children: t.getValue("source") })
|
|
21207
21216
|
},
|
|
21208
21217
|
{
|
|
21209
21218
|
accessorKey: "resourceName",
|
|
21210
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21219
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Resource" }),
|
|
21211
21220
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "truncate text-sm", children: t.original.resourceName || "—" })
|
|
21212
21221
|
},
|
|
21213
21222
|
{
|
|
21214
21223
|
accessorKey: "accountId",
|
|
21215
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21224
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Account" }),
|
|
21216
21225
|
cell: ({ row: t }) => {
|
|
21217
21226
|
const n = t.getValue("accountId");
|
|
21218
21227
|
return /* @__PURE__ */ i.jsx("div", { className: "truncate text-sm", children: n || "—" });
|
|
21219
21228
|
}
|
|
21220
21229
|
},
|
|
21221
21230
|
{
|
|
21222
|
-
|
|
21223
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21231
|
+
id: "tags",
|
|
21232
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Tags" }),
|
|
21224
21233
|
cell: ({ row: t }) => {
|
|
21225
|
-
const n = t.
|
|
21226
|
-
return
|
|
21234
|
+
const n = t.original.tags || {}, r = Object.entries(n);
|
|
21235
|
+
return r.length === 0 ? /* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground text-xs", children: "—" }) : /* @__PURE__ */ i.jsxs("div", { className: "flex flex-wrap gap-1 max-w-[200px]", children: [
|
|
21236
|
+
r.slice(0, 2).map(([a, s]) => /* @__PURE__ */ i.jsxs(qt, { variant: "secondary", className: "text-[10px] px-1.5 py-0 font-mono truncate", children: [
|
|
21237
|
+
a,
|
|
21238
|
+
":",
|
|
21239
|
+
s
|
|
21240
|
+
] }, a)),
|
|
21241
|
+
r.length > 2 && /* @__PURE__ */ i.jsxs("span", { className: "text-[10px] text-muted-foreground self-center", children: [
|
|
21242
|
+
"+",
|
|
21243
|
+
r.length - 2
|
|
21244
|
+
] })
|
|
21245
|
+
] });
|
|
21227
21246
|
}
|
|
21228
21247
|
},
|
|
21229
21248
|
{
|
|
21230
21249
|
id: "assignee",
|
|
21231
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21250
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Assigned" }),
|
|
21232
21251
|
cell: ({ row: t }) => {
|
|
21233
21252
|
const n = t.original;
|
|
21234
21253
|
return /* @__PURE__ */ i.jsx("div", { className: "p-1 -m-1 rounded-md", children: /* @__PURE__ */ i.jsx(R_, { assigneeIds: n.assigneeIds, className: "text-xs" }) });
|
|
@@ -21236,17 +21255,17 @@ const GH = (e) => [
|
|
|
21236
21255
|
},
|
|
21237
21256
|
{
|
|
21238
21257
|
accessorKey: "status",
|
|
21239
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21258
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Status" }),
|
|
21240
21259
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx(Vm, { status: t.original.status || "open" })
|
|
21241
21260
|
},
|
|
21242
21261
|
{
|
|
21243
21262
|
accessorKey: "createdAt",
|
|
21244
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21263
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Created At" }),
|
|
21245
21264
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "text-sm text-muted-foreground whitespace-nowrap tabular-nums", children: WS(t.getValue("createdAt")) })
|
|
21246
21265
|
},
|
|
21247
21266
|
{
|
|
21248
21267
|
accessorKey: "analysisCompletedAt",
|
|
21249
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
21268
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Completed At" }),
|
|
21250
21269
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "text-sm text-muted-foreground whitespace-nowrap tabular-nums", children: WS(t.getValue("analysisCompletedAt") || t.original.resolvedAt) })
|
|
21251
21270
|
},
|
|
21252
21271
|
{
|
|
@@ -22769,8 +22788,8 @@ function mG({
|
|
|
22769
22788
|
] });
|
|
22770
22789
|
}
|
|
22771
22790
|
function hG(e) {
|
|
22772
|
-
const t = String(e.
|
|
22773
|
-
return t === "P1" || e.status === "in_progress" ? "P1" : t === "P3" || e.status === "resolved" ? "P3" : "P2";
|
|
22791
|
+
const t = String(e.tags?.priority || e.tags?.severity || "").toUpperCase();
|
|
22792
|
+
return t === "P1" || t === "CRITICAL" || e.status === "in_progress" ? "P1" : t === "P3" || t === "LOW" || e.status === "resolved" ? "P3" : "P2";
|
|
22774
22793
|
}
|
|
22775
22794
|
function gG({ onViewResult: e, sourceTypes: t }) {
|
|
22776
22795
|
const [n, r] = M([]), [a, s] = M(0), [o, l] = M(!0), [c, u] = M(1), [p, d] = M(""), [f, m] = M(""), [h, g] = M(() => fG()), [b, y] = M(null), [S, w] = M(!1), [T, A] = M(!1), { userId: N } = hr(), [R, D] = M(10);
|
|
@@ -22811,7 +22830,7 @@ function gG({ onViewResult: e, sourceTypes: t }) {
|
|
|
22811
22830
|
resourceName: z.resourceName,
|
|
22812
22831
|
resourceType: z.resourceType || "service",
|
|
22813
22832
|
downMessage: z.downMessage,
|
|
22814
|
-
|
|
22833
|
+
tags: z.tags || {}
|
|
22815
22834
|
}), re.success("Incident created")), w(!1), y(null), C();
|
|
22816
22835
|
} catch (j) {
|
|
22817
22836
|
re.error(j?.response?.data?.error || "Failed to save incident");
|
|
@@ -24480,10 +24499,10 @@ const mV = [
|
|
|
24480
24499
|
"removeListener"
|
|
24481
24500
|
// used by the Node.js EventEmitter
|
|
24482
24501
|
];
|
|
24483
|
-
var
|
|
24502
|
+
var yt;
|
|
24484
24503
|
(function(e) {
|
|
24485
24504
|
e[e.CONNECT = 0] = "CONNECT", e[e.DISCONNECT = 1] = "DISCONNECT", e[e.EVENT = 2] = "EVENT", e[e.ACK = 3] = "ACK", e[e.CONNECT_ERROR = 4] = "CONNECT_ERROR", e[e.BINARY_EVENT = 5] = "BINARY_EVENT", e[e.BINARY_ACK = 6] = "BINARY_ACK";
|
|
24486
|
-
})(
|
|
24505
|
+
})(yt || (yt = {}));
|
|
24487
24506
|
class hV {
|
|
24488
24507
|
/**
|
|
24489
24508
|
* Encoder constructor
|
|
@@ -24500,8 +24519,8 @@ class hV {
|
|
|
24500
24519
|
* @param {Object} obj - packet object
|
|
24501
24520
|
*/
|
|
24502
24521
|
encode(t) {
|
|
24503
|
-
return (t.type ===
|
|
24504
|
-
type: t.type ===
|
|
24522
|
+
return (t.type === yt.EVENT || t.type === yt.ACK) && Qc(t) ? this.encodeAsBinary({
|
|
24523
|
+
type: t.type === yt.EVENT ? yt.BINARY_EVENT : yt.BINARY_ACK,
|
|
24505
24524
|
nsp: t.nsp,
|
|
24506
24525
|
data: t.data,
|
|
24507
24526
|
id: t.id
|
|
@@ -24512,7 +24531,7 @@ class hV {
|
|
|
24512
24531
|
*/
|
|
24513
24532
|
encodeAsString(t) {
|
|
24514
24533
|
let n = "" + t.type;
|
|
24515
|
-
return (t.type ===
|
|
24534
|
+
return (t.type === yt.BINARY_EVENT || t.type === yt.BINARY_ACK) && (n += t.attachments + "-"), t.nsp && t.nsp !== "/" && (n += t.nsp + ","), t.id != null && (n += t.id), t.data != null && (n += JSON.stringify(t.data, this.replacer)), n;
|
|
24516
24535
|
}
|
|
24517
24536
|
/**
|
|
24518
24537
|
* Encode packet as 'buffer sequence' by removing blobs, and
|
|
@@ -24545,8 +24564,8 @@ class ab extends Yt {
|
|
|
24545
24564
|
if (this.reconstructor)
|
|
24546
24565
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
24547
24566
|
n = this.decodeString(t);
|
|
24548
|
-
const r = n.type ===
|
|
24549
|
-
r || n.type ===
|
|
24567
|
+
const r = n.type === yt.BINARY_EVENT;
|
|
24568
|
+
r || n.type === yt.BINARY_ACK ? (n.type = r ? yt.EVENT : yt.ACK, this.reconstructor = new gV(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
|
|
24550
24569
|
} else if (rb(t) || t.base64)
|
|
24551
24570
|
if (this.reconstructor)
|
|
24552
24571
|
n = this.reconstructor.takeBinaryData(t), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
|
@@ -24566,9 +24585,9 @@ class ab extends Yt {
|
|
|
24566
24585
|
const r = {
|
|
24567
24586
|
type: Number(t.charAt(0))
|
|
24568
24587
|
};
|
|
24569
|
-
if (
|
|
24588
|
+
if (yt[r.type] === void 0)
|
|
24570
24589
|
throw new Error("unknown packet type " + r.type);
|
|
24571
|
-
if (r.type ===
|
|
24590
|
+
if (r.type === yt.BINARY_EVENT || r.type === yt.BINARY_ACK) {
|
|
24572
24591
|
const s = n + 1;
|
|
24573
24592
|
for (; t.charAt(++n) !== "-" && n != t.length; )
|
|
24574
24593
|
;
|
|
@@ -24621,17 +24640,17 @@ class ab extends Yt {
|
|
|
24621
24640
|
}
|
|
24622
24641
|
static isPayloadValid(t, n) {
|
|
24623
24642
|
switch (t) {
|
|
24624
|
-
case
|
|
24643
|
+
case yt.CONNECT:
|
|
24625
24644
|
return iw(n);
|
|
24626
|
-
case
|
|
24645
|
+
case yt.DISCONNECT:
|
|
24627
24646
|
return n === void 0;
|
|
24628
|
-
case
|
|
24647
|
+
case yt.CONNECT_ERROR:
|
|
24629
24648
|
return typeof n == "string" || iw(n);
|
|
24630
|
-
case
|
|
24631
|
-
case
|
|
24649
|
+
case yt.EVENT:
|
|
24650
|
+
case yt.BINARY_EVENT:
|
|
24632
24651
|
return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" && mV.indexOf(n[0]) === -1);
|
|
24633
|
-
case
|
|
24634
|
-
case
|
|
24652
|
+
case yt.ACK:
|
|
24653
|
+
case yt.BINARY_ACK:
|
|
24635
24654
|
return Array.isArray(n);
|
|
24636
24655
|
}
|
|
24637
24656
|
}
|
|
@@ -24679,7 +24698,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24679
24698
|
Decoder: ab,
|
|
24680
24699
|
Encoder: hV,
|
|
24681
24700
|
get PacketType() {
|
|
24682
|
-
return
|
|
24701
|
+
return yt;
|
|
24683
24702
|
}
|
|
24684
24703
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
24685
24704
|
function cr(e, t, n) {
|
|
@@ -24817,7 +24836,7 @@ class hI extends Yt {
|
|
|
24817
24836
|
if (n.unshift(t), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
|
|
24818
24837
|
return this._addToQueue(n), this;
|
|
24819
24838
|
const o = {
|
|
24820
|
-
type:
|
|
24839
|
+
type: yt.EVENT,
|
|
24821
24840
|
data: n
|
|
24822
24841
|
};
|
|
24823
24842
|
if (o.options = {}, o.options.compress = this.flags.compress !== !1, typeof n[n.length - 1] == "function") {
|
|
@@ -24925,7 +24944,7 @@ class hI extends Yt {
|
|
|
24925
24944
|
*/
|
|
24926
24945
|
_sendConnectPacket(t) {
|
|
24927
24946
|
this.packet({
|
|
24928
|
-
type:
|
|
24947
|
+
type: yt.CONNECT,
|
|
24929
24948
|
data: this._pid ? Object.assign({ pid: this._pid, offset: this._lastOffset }, t) : t
|
|
24930
24949
|
});
|
|
24931
24950
|
}
|
|
@@ -24971,21 +24990,21 @@ class hI extends Yt {
|
|
|
24971
24990
|
onpacket(t) {
|
|
24972
24991
|
if (t.nsp === this.nsp)
|
|
24973
24992
|
switch (t.type) {
|
|
24974
|
-
case
|
|
24993
|
+
case yt.CONNECT:
|
|
24975
24994
|
t.data && t.data.sid ? this.onconnect(t.data.sid, t.data.pid) : this.emitReserved("connect_error", new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));
|
|
24976
24995
|
break;
|
|
24977
|
-
case
|
|
24978
|
-
case
|
|
24996
|
+
case yt.EVENT:
|
|
24997
|
+
case yt.BINARY_EVENT:
|
|
24979
24998
|
this.onevent(t);
|
|
24980
24999
|
break;
|
|
24981
|
-
case
|
|
24982
|
-
case
|
|
25000
|
+
case yt.ACK:
|
|
25001
|
+
case yt.BINARY_ACK:
|
|
24983
25002
|
this.onack(t);
|
|
24984
25003
|
break;
|
|
24985
|
-
case
|
|
25004
|
+
case yt.DISCONNECT:
|
|
24986
25005
|
this.ondisconnect();
|
|
24987
25006
|
break;
|
|
24988
|
-
case
|
|
25007
|
+
case yt.CONNECT_ERROR:
|
|
24989
25008
|
this.destroy();
|
|
24990
25009
|
const r = new Error(t.data.message);
|
|
24991
25010
|
r.data = t.data.data, this.emitReserved("connect_error", r);
|
|
@@ -25020,7 +25039,7 @@ class hI extends Yt {
|
|
|
25020
25039
|
let r = !1;
|
|
25021
25040
|
return function(...a) {
|
|
25022
25041
|
r || (r = !0, n.packet({
|
|
25023
|
-
type:
|
|
25042
|
+
type: yt.ACK,
|
|
25024
25043
|
id: t,
|
|
25025
25044
|
data: a
|
|
25026
25045
|
}));
|
|
@@ -25089,7 +25108,7 @@ class hI extends Yt {
|
|
|
25089
25108
|
* @return self
|
|
25090
25109
|
*/
|
|
25091
25110
|
disconnect() {
|
|
25092
|
-
return this.connected && this.packet({ type:
|
|
25111
|
+
return this.connected && this.packet({ type: yt.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
|
|
25093
25112
|
}
|
|
25094
25113
|
/**
|
|
25095
25114
|
* Alias for {@link disconnect()}.
|
|
@@ -29525,7 +29544,7 @@ function mW(e) {
|
|
|
29525
29544
|
const bw = [
|
|
29526
29545
|
{
|
|
29527
29546
|
accessorKey: "createdAt",
|
|
29528
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29547
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Created Date" }),
|
|
29529
29548
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("span", { className: "font-mono text-xs whitespace-nowrap", children: new Date(e.original.createdAt).toLocaleString("en-US", {
|
|
29530
29549
|
month: "short",
|
|
29531
29550
|
day: "numeric",
|
|
@@ -29537,17 +29556,17 @@ const bw = [
|
|
|
29537
29556
|
},
|
|
29538
29557
|
{
|
|
29539
29558
|
accessorKey: "alertName",
|
|
29540
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29559
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Alarm name" }),
|
|
29541
29560
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("strong", { className: "text-sm", children: e.original.alertName })
|
|
29542
29561
|
},
|
|
29543
29562
|
{
|
|
29544
29563
|
accessorKey: "severity",
|
|
29545
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29564
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Severity" }),
|
|
29546
29565
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("span", { className: `im-severity-pill ${mW(e.original.severity)}`, children: e.original.severity })
|
|
29547
29566
|
},
|
|
29548
29567
|
{
|
|
29549
29568
|
accessorKey: "status",
|
|
29550
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29569
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "State" }),
|
|
29551
29570
|
cell: ({ row: e }) => {
|
|
29552
29571
|
const t = (e.original.status || "firing").toLowerCase(), n = ["open", "firing", "active"].includes(t), r = t === "suppressed", a = t === "converted", s = t === "resolved" || t === "closed";
|
|
29553
29572
|
let o = "Firing", l = "im-state-firing";
|
|
@@ -29557,13 +29576,36 @@ const bw = [
|
|
|
29557
29576
|
{
|
|
29558
29577
|
id: "resource",
|
|
29559
29578
|
accessorFn: (e) => e.resourceName || e.resourceId || "",
|
|
29560
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29579
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Resource" }),
|
|
29561
29580
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsxs("span", { className: "font-mono text-sm", children: [
|
|
29562
29581
|
e.original.resourceName || e.original.resourceId,
|
|
29563
29582
|
" · ",
|
|
29564
29583
|
e.original.resourceType
|
|
29565
29584
|
] })
|
|
29566
29585
|
},
|
|
29586
|
+
{
|
|
29587
|
+
accessorKey: "accountId",
|
|
29588
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Account ID" }),
|
|
29589
|
+
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("span", { className: "font-mono text-xs text-muted-foreground", children: e.original.accountId || e.original.additionalConfiguration?.accountId || "—" })
|
|
29590
|
+
},
|
|
29591
|
+
{
|
|
29592
|
+
id: "tags",
|
|
29593
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Tags" }),
|
|
29594
|
+
cell: ({ row: e }) => {
|
|
29595
|
+
const t = e.original, n = t.tags || t.additionalConfiguration?.tags || {}, r = Object.entries(n);
|
|
29596
|
+
return r.length === 0 ? /* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground text-xs", children: "—" }) : /* @__PURE__ */ i.jsxs("div", { className: "flex flex-wrap gap-1 max-w-[220px]", children: [
|
|
29597
|
+
r.slice(0, 3).map(([a, s]) => /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center px-1.5 py-0.5 rounded text-[11px] bg-secondary text-secondary-foreground font-mono", children: [
|
|
29598
|
+
a,
|
|
29599
|
+
":",
|
|
29600
|
+
s
|
|
29601
|
+
] }, a)),
|
|
29602
|
+
r.length > 3 && /* @__PURE__ */ i.jsxs("span", { className: "text-[10px] text-muted-foreground self-center", children: [
|
|
29603
|
+
"+",
|
|
29604
|
+
r.length - 3
|
|
29605
|
+
] })
|
|
29606
|
+
] });
|
|
29607
|
+
}
|
|
29608
|
+
},
|
|
29567
29609
|
{
|
|
29568
29610
|
id: "action",
|
|
29569
29611
|
header: () => /* @__PURE__ */ i.jsx("span", { children: "Action" }),
|
|
@@ -29692,22 +29734,22 @@ function yW({
|
|
|
29692
29734
|
const yw = [
|
|
29693
29735
|
{
|
|
29694
29736
|
accessorKey: "timestamp",
|
|
29695
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29737
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Timestamp" }),
|
|
29696
29738
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("span", { className: "font-mono text-sm", children: new Date(e.original.timestamp).toLocaleTimeString() })
|
|
29697
29739
|
},
|
|
29698
29740
|
{
|
|
29699
29741
|
accessorKey: "httpStatus",
|
|
29700
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29742
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "HTTP" }),
|
|
29701
29743
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("span", { className: e.original.httpStatus >= 400 ? "im-danger-text font-mono" : "im-success-text font-mono", children: e.original.httpStatus })
|
|
29702
29744
|
},
|
|
29703
29745
|
{
|
|
29704
29746
|
accessorKey: "sourceIp",
|
|
29705
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29747
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Source IP" }),
|
|
29706
29748
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("span", { className: "font-mono text-sm", children: e.original.sourceIp })
|
|
29707
29749
|
},
|
|
29708
29750
|
{
|
|
29709
29751
|
accessorKey: "payloadSize",
|
|
29710
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29752
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Payload" }),
|
|
29711
29753
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsxs("span", { className: "font-mono text-sm", children: [
|
|
29712
29754
|
(e.original.payloadSize / 1024).toFixed(1),
|
|
29713
29755
|
" KB"
|
|
@@ -29715,7 +29757,7 @@ const yw = [
|
|
|
29715
29757
|
},
|
|
29716
29758
|
{
|
|
29717
29759
|
accessorKey: "result",
|
|
29718
|
-
header: ({ column: e }) => /* @__PURE__ */ i.jsx(
|
|
29760
|
+
header: ({ column: e }) => /* @__PURE__ */ i.jsx(mt, { column: e, title: "Result" }),
|
|
29719
29761
|
cell: ({ row: e }) => /* @__PURE__ */ i.jsx("span", { className: e.original.result === "normalised" ? "im-result-good" : "im-result-warn", children: e.original.result })
|
|
29720
29762
|
}
|
|
29721
29763
|
];
|
|
@@ -32280,9 +32322,13 @@ function $I({
|
|
|
32280
32322
|
/* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground", children: "Type" }),
|
|
32281
32323
|
/* @__PURE__ */ i.jsx("span", { children: e.resourceType })
|
|
32282
32324
|
] }),
|
|
32283
|
-
e.
|
|
32284
|
-
/* @__PURE__ */ i.jsx(id, { size: 12, className: "text-muted-foreground" }),
|
|
32285
|
-
/* @__PURE__ */ i.
|
|
32325
|
+
e.tags && Object.keys(e.tags).length > 0 && /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-1.5 mt-2 flex-wrap", children: [
|
|
32326
|
+
/* @__PURE__ */ i.jsx(id, { size: 12, className: "text-muted-foreground shrink-0" }),
|
|
32327
|
+
Object.entries(e.tags).map(([s, o]) => /* @__PURE__ */ i.jsxs("code", { className: "text-xs bg-muted px-1.5 py-0.5 rounded", children: [
|
|
32328
|
+
s,
|
|
32329
|
+
":",
|
|
32330
|
+
o
|
|
32331
|
+
] }, s))
|
|
32286
32332
|
] })
|
|
32287
32333
|
] }),
|
|
32288
32334
|
/* @__PURE__ */ i.jsxs(Vt, { children: [
|
|
@@ -32317,10 +32363,34 @@ function HI({
|
|
|
32317
32363
|
function zI({ open: e, alert: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
32318
32364
|
const [s, o] = M(""), [l, c] = M(""), [u, p] = M(""), [d, f] = M("");
|
|
32319
32365
|
Ue(() => {
|
|
32320
|
-
e && t
|
|
32366
|
+
if (e && t) {
|
|
32367
|
+
o(t.alertName || ""), c(t.description || ""), p(t.severity || "");
|
|
32368
|
+
const g = t.tags || {};
|
|
32369
|
+
f(Object.entries(g).map(([b, y]) => `${b}: ${y}`).join(", "));
|
|
32370
|
+
}
|
|
32321
32371
|
}, [e, t]);
|
|
32322
|
-
const m = (
|
|
32323
|
-
|
|
32372
|
+
const m = (g) => {
|
|
32373
|
+
const b = {};
|
|
32374
|
+
if (!g.trim()) return b;
|
|
32375
|
+
if (g.trim().startsWith("{"))
|
|
32376
|
+
try {
|
|
32377
|
+
const y = JSON.parse(g);
|
|
32378
|
+
if (typeof y == "object" && y !== null) {
|
|
32379
|
+
for (const [S, w] of Object.entries(y))
|
|
32380
|
+
b[S] = String(w);
|
|
32381
|
+
return b;
|
|
32382
|
+
}
|
|
32383
|
+
} catch {
|
|
32384
|
+
}
|
|
32385
|
+
return g.split(",").forEach((y) => {
|
|
32386
|
+
const S = y.includes(":") ? y.split(":") : y.split("=");
|
|
32387
|
+
if (S.length >= 2) {
|
|
32388
|
+
const w = S[0].trim(), T = S.slice(1).join(":").trim();
|
|
32389
|
+
w && (b[w] = T);
|
|
32390
|
+
}
|
|
32391
|
+
}), b;
|
|
32392
|
+
}, h = (g) => {
|
|
32393
|
+
if (g.preventDefault(), !s.trim()) {
|
|
32324
32394
|
re.error("Name is required");
|
|
32325
32395
|
return;
|
|
32326
32396
|
}
|
|
@@ -32328,12 +32398,12 @@ function zI({ open: e, alert: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
32328
32398
|
alertName: s.trim(),
|
|
32329
32399
|
description: l.trim() || void 0,
|
|
32330
32400
|
severity: u.trim() || void 0,
|
|
32331
|
-
|
|
32401
|
+
tags: m(d)
|
|
32332
32402
|
});
|
|
32333
32403
|
};
|
|
32334
|
-
return /* @__PURE__ */ i.jsx(Lt, { open: e, onOpenChange: (
|
|
32404
|
+
return /* @__PURE__ */ i.jsx(Lt, { open: e, onOpenChange: (g) => !g && !n && r(), children: /* @__PURE__ */ i.jsxs(jt, { className: "max-w-md", children: [
|
|
32335
32405
|
/* @__PURE__ */ i.jsx(Bt, { children: /* @__PURE__ */ i.jsx(Ut, { children: "Edit Alert" }) }),
|
|
32336
|
-
/* @__PURE__ */ i.jsxs("form", { id: "alert-form", onSubmit:
|
|
32406
|
+
/* @__PURE__ */ i.jsxs("form", { id: "alert-form", onSubmit: h, className: "flex flex-col gap-4 mt-2", children: [
|
|
32337
32407
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
32338
32408
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
32339
32409
|
/* @__PURE__ */ i.jsxs(Fe, { children: [
|
|
@@ -32345,7 +32415,7 @@ function zI({ open: e, alert: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
32345
32415
|
{
|
|
32346
32416
|
id: "alert-name",
|
|
32347
32417
|
value: s,
|
|
32348
|
-
onChange: (
|
|
32418
|
+
onChange: (g) => o(g.target.value),
|
|
32349
32419
|
placeholder: "e.g. CPU Spike on API Server",
|
|
32350
32420
|
disabled: n
|
|
32351
32421
|
}
|
|
@@ -32357,7 +32427,7 @@ function zI({ open: e, alert: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
32357
32427
|
Qe,
|
|
32358
32428
|
{
|
|
32359
32429
|
value: l,
|
|
32360
|
-
onChange: (
|
|
32430
|
+
onChange: (g) => c(g.target.value),
|
|
32361
32431
|
placeholder: "Description",
|
|
32362
32432
|
disabled: n
|
|
32363
32433
|
}
|
|
@@ -32383,17 +32453,18 @@ function zI({ open: e, alert: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
32383
32453
|
)
|
|
32384
32454
|
] }),
|
|
32385
32455
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
32386
|
-
/* @__PURE__ */ i.jsx(Fe, { children: "
|
|
32456
|
+
/* @__PURE__ */ i.jsx(Fe, { children: "Tags" }),
|
|
32387
32457
|
/* @__PURE__ */ i.jsx(
|
|
32388
32458
|
Qe,
|
|
32389
32459
|
{
|
|
32390
32460
|
value: d,
|
|
32391
|
-
onChange: (
|
|
32392
|
-
placeholder: "
|
|
32461
|
+
onChange: (g) => f(g.target.value),
|
|
32462
|
+
placeholder: "project: meyiconnect, env: dev",
|
|
32393
32463
|
disabled: n,
|
|
32394
|
-
className: "font-mono"
|
|
32464
|
+
className: "font-mono text-xs"
|
|
32395
32465
|
}
|
|
32396
|
-
)
|
|
32466
|
+
),
|
|
32467
|
+
/* @__PURE__ */ i.jsx("p", { className: "text-[11px] text-muted-foreground", children: "Format: key: value, key: value" })
|
|
32397
32468
|
] })
|
|
32398
32469
|
] }),
|
|
32399
32470
|
/* @__PURE__ */ i.jsxs(Vt, { children: [
|
|
@@ -32514,38 +32585,56 @@ function Aw(e) {
|
|
|
32514
32585
|
const TY = (e) => [
|
|
32515
32586
|
{
|
|
32516
32587
|
accessorKey: "alertName",
|
|
32517
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32588
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Name" }),
|
|
32518
32589
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "max-w-[300px] truncate font-medium text-sm", children: t.getValue("alertName") })
|
|
32519
32590
|
},
|
|
32520
32591
|
{
|
|
32521
32592
|
accessorKey: "sourceName",
|
|
32522
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32593
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Source" }),
|
|
32523
32594
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "truncate text-muted-foreground", children: t.getValue("sourceName") || "—" })
|
|
32524
32595
|
},
|
|
32525
32596
|
{
|
|
32526
32597
|
accessorKey: "resourceName",
|
|
32527
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32598
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Resource" }),
|
|
32528
32599
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "truncate", children: t.getValue("resourceName") || "—" })
|
|
32529
32600
|
},
|
|
32601
|
+
{
|
|
32602
|
+
accessorKey: "accountId",
|
|
32603
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Account ID" }),
|
|
32604
|
+
cell: ({ row: t }) => {
|
|
32605
|
+
const n = t.original.accountId || t.original.additionalConfiguration?.accountId;
|
|
32606
|
+
return /* @__PURE__ */ i.jsx("div", { className: "truncate font-mono text-xs text-muted-foreground", children: n || "—" });
|
|
32607
|
+
}
|
|
32608
|
+
},
|
|
32530
32609
|
{
|
|
32531
32610
|
id: "groupName",
|
|
32532
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32611
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Group" }),
|
|
32533
32612
|
cell: ({ row: t }) => {
|
|
32534
32613
|
const r = t.original.additionalConfiguration?.groupName;
|
|
32535
32614
|
return /* @__PURE__ */ i.jsx("div", { className: "truncate text-muted-foreground", children: r || "—" });
|
|
32536
32615
|
}
|
|
32537
32616
|
},
|
|
32538
32617
|
{
|
|
32539
|
-
|
|
32540
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32618
|
+
id: "tags",
|
|
32619
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Tags" }),
|
|
32541
32620
|
cell: ({ row: t }) => {
|
|
32542
|
-
const n = t.
|
|
32543
|
-
return
|
|
32621
|
+
const n = t.original.tags || {}, r = Object.entries(n);
|
|
32622
|
+
return r.length === 0 ? /* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground", children: "—" }) : /* @__PURE__ */ i.jsxs("div", { className: "flex flex-wrap gap-1 max-w-[200px]", children: [
|
|
32623
|
+
r.slice(0, 2).map(([a, s]) => /* @__PURE__ */ i.jsxs("span", { className: "text-[11px] bg-muted px-1.5 py-0.5 rounded font-mono truncate", children: [
|
|
32624
|
+
a,
|
|
32625
|
+
":",
|
|
32626
|
+
s
|
|
32627
|
+
] }, a)),
|
|
32628
|
+
r.length > 2 && /* @__PURE__ */ i.jsxs("span", { className: "text-[10px] text-muted-foreground self-center", children: [
|
|
32629
|
+
"+",
|
|
32630
|
+
r.length - 2
|
|
32631
|
+
] })
|
|
32632
|
+
] });
|
|
32544
32633
|
}
|
|
32545
32634
|
},
|
|
32546
32635
|
{
|
|
32547
32636
|
accessorKey: "severity",
|
|
32548
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32637
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Severity" }),
|
|
32549
32638
|
cell: ({ row: t }) => {
|
|
32550
32639
|
const n = t.getValue("severity"), a = {
|
|
32551
32640
|
critical: "bg-red-500/15 text-red-500 border-red-500/30",
|
|
@@ -32558,7 +32647,7 @@ const TY = (e) => [
|
|
|
32558
32647
|
},
|
|
32559
32648
|
{
|
|
32560
32649
|
id: "downTime",
|
|
32561
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32650
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Down Time" }),
|
|
32562
32651
|
cell: ({ row: t }) => {
|
|
32563
32652
|
const n = t.original.downTime;
|
|
32564
32653
|
return /* @__PURE__ */ i.jsx("div", { className: "text-muted-foreground tabular-nums", children: Aw(n) });
|
|
@@ -32566,7 +32655,7 @@ const TY = (e) => [
|
|
|
32566
32655
|
},
|
|
32567
32656
|
{
|
|
32568
32657
|
accessorKey: "createdAt",
|
|
32569
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
32658
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Created At" }),
|
|
32570
32659
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "text-muted-foreground tabular-nums", children: Aw(t.getValue("createdAt")) })
|
|
32571
32660
|
},
|
|
32572
32661
|
{
|
|
@@ -32948,7 +33037,7 @@ function GI(e) {
|
|
|
32948
33037
|
return r < 24 ? `${r}h ago` : `${Math.floor(r / 24)}d ago`;
|
|
32949
33038
|
}
|
|
32950
33039
|
function DY({ alert: e }) {
|
|
32951
|
-
const t = e.severity === "critical" ? "P1" : e.severity === "high" ? "P2" : e.severity === "medium" ? "P3" : "P4";
|
|
33040
|
+
const t = e.severity === "critical" ? "P1" : e.severity === "high" ? "P2" : e.severity === "medium" ? "P3" : "P4", n = e.accountId || e.additionalConfiguration?.accountId, r = e.additionalConfiguration?.tags || e.tags || {}, a = r && typeof r == "object" && Object.keys(r).length > 0;
|
|
32952
33041
|
return /* @__PURE__ */ i.jsxs("div", { className: "im-inc-overview", children: [
|
|
32953
33042
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-card", children: [
|
|
32954
33043
|
/* @__PURE__ */ i.jsx("div", { className: "im-inc-card-title", children: "Alert summary" }),
|
|
@@ -32978,13 +33067,24 @@ function DY({ alert: e }) {
|
|
|
32978
33067
|
")"
|
|
32979
33068
|
] })
|
|
32980
33069
|
] }),
|
|
33070
|
+
n && /* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
|
|
33071
|
+
/* @__PURE__ */ i.jsx("span", { children: "Account ID" }),
|
|
33072
|
+
/* @__PURE__ */ i.jsx("span", { className: "im-mono font-semibold", children: n })
|
|
33073
|
+
] }),
|
|
32981
33074
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
|
|
32982
33075
|
/* @__PURE__ */ i.jsx("span", { children: "Received" }),
|
|
32983
33076
|
/* @__PURE__ */ i.jsx("span", { children: new Date(e.createdAt).toLocaleString() })
|
|
32984
33077
|
] }),
|
|
32985
33078
|
/* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
|
|
32986
|
-
/* @__PURE__ */ i.jsx("span", { children: "
|
|
32987
|
-
/* @__PURE__ */ i.jsx("
|
|
33079
|
+
/* @__PURE__ */ i.jsx("span", { children: "Tags" }),
|
|
33080
|
+
a ? /* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap gap-1.5 justify-end", children: Object.entries(r).map(([s, o]) => /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center px-2 py-0.5 rounded text-xs bg-secondary text-secondary-foreground font-mono", children: [
|
|
33081
|
+
/* @__PURE__ */ i.jsxs("span", { className: "text-muted-foreground mr-1", children: [
|
|
33082
|
+
s,
|
|
33083
|
+
":"
|
|
33084
|
+
] }),
|
|
33085
|
+
" ",
|
|
33086
|
+
String(o)
|
|
33087
|
+
] }, s)) }) : /* @__PURE__ */ i.jsx("span", { children: "—" })
|
|
32988
33088
|
] }),
|
|
32989
33089
|
e.additionalConfiguration?.groupName && /* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
|
|
32990
33090
|
/* @__PURE__ */ i.jsx("span", { children: "Group Name" }),
|
|
@@ -32994,10 +33094,10 @@ function DY({ alert: e }) {
|
|
|
32994
33094
|
] }),
|
|
32995
33095
|
e.additionalConfiguration && typeof e.additionalConfiguration == "object" && Object.keys(e.additionalConfiguration).length > 0 && /* @__PURE__ */ i.jsxs("div", { className: "im-inc-card", children: [
|
|
32996
33096
|
/* @__PURE__ */ i.jsx("div", { className: "im-inc-card-title", children: "Extended Context" }),
|
|
32997
|
-
/* @__PURE__ */ i.jsx("div", { className: "im-inc-meta-rows", children: Object.entries(e.additionalConfiguration).filter(([
|
|
32998
|
-
/* @__PURE__ */ i.jsx("span", { children:
|
|
32999
|
-
/* @__PURE__ */ i.jsx("span", { className: "im-mono", children: String(
|
|
33000
|
-
] },
|
|
33097
|
+
/* @__PURE__ */ i.jsx("div", { className: "im-inc-meta-rows", children: Object.entries(e.additionalConfiguration).filter(([s, o]) => s !== "groupName" && s !== "commonLabels" && s !== "groupLabels" && s !== "tags" && s !== "accountId" && o).map(([s, o]) => /* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
|
|
33098
|
+
/* @__PURE__ */ i.jsx("span", { children: s.replace(/([A-Z])/g, " $1").trim().replace(/^\w/, (l) => l.toUpperCase()) }),
|
|
33099
|
+
/* @__PURE__ */ i.jsx("span", { className: "im-mono", children: String(o) })
|
|
33100
|
+
] }, s)) })
|
|
33001
33101
|
] })
|
|
33002
33102
|
] });
|
|
33003
33103
|
}
|
|
@@ -33107,7 +33207,7 @@ function jY({
|
|
|
33107
33207
|
const B = await Rr.create({
|
|
33108
33208
|
title: `SOP: ${a.alertName}`,
|
|
33109
33209
|
alertType: a.resourceType,
|
|
33110
|
-
service: a.
|
|
33210
|
+
service: a.tags?.project || a.tags?.service || void 0,
|
|
33111
33211
|
status: "generating",
|
|
33112
33212
|
alert_id: a.id,
|
|
33113
33213
|
alert_name: a.alertName,
|
|
@@ -33342,17 +33442,17 @@ const UY = {
|
|
|
33342
33442
|
}, $Y = (e) => [
|
|
33343
33443
|
{
|
|
33344
33444
|
accessorKey: "sopId",
|
|
33345
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
33445
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "ID" }),
|
|
33346
33446
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "font-medium text-xs text-muted-foreground", children: t.getValue("sopId") })
|
|
33347
33447
|
},
|
|
33348
33448
|
{
|
|
33349
33449
|
accessorKey: "title",
|
|
33350
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
33450
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Name" }),
|
|
33351
33451
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "max-w-[200px] truncate font-medium text-sm", children: t.getValue("title") })
|
|
33352
33452
|
},
|
|
33353
33453
|
{
|
|
33354
33454
|
accessorKey: "alertType",
|
|
33355
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
33455
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Alert Type" }),
|
|
33356
33456
|
cell: ({ row: t }) => {
|
|
33357
33457
|
const n = t.getValue("alertType");
|
|
33358
33458
|
return n ? /* @__PURE__ */ i.jsx("span", { className: "text-sm underline-offset-2 hover:underline", children: n }) : /* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground", children: "—" });
|
|
@@ -33360,7 +33460,7 @@ const UY = {
|
|
|
33360
33460
|
},
|
|
33361
33461
|
{
|
|
33362
33462
|
accessorKey: "severity",
|
|
33363
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
33463
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Severity" }),
|
|
33364
33464
|
cell: ({ row: t }) => {
|
|
33365
33465
|
const n = t.getValue("severity");
|
|
33366
33466
|
return n ? /* @__PURE__ */ i.jsxs(qt, { variant: "outline", className: `text-[11px] capitalize ${UY[n] ?? ""}`, children: [
|
|
@@ -33371,12 +33471,12 @@ const UY = {
|
|
|
33371
33471
|
},
|
|
33372
33472
|
{
|
|
33373
33473
|
accessorKey: "updatedAt",
|
|
33374
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
33474
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Updated At" }),
|
|
33375
33475
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "text-sm text-muted-foreground whitespace-nowrap tabular-nums", children: Rw(t.getValue("updatedAt")) })
|
|
33376
33476
|
},
|
|
33377
33477
|
{
|
|
33378
33478
|
accessorKey: "createdAt",
|
|
33379
|
-
header: ({ column: t }) => /* @__PURE__ */ i.jsx(
|
|
33479
|
+
header: ({ column: t }) => /* @__PURE__ */ i.jsx(mt, { column: t, title: "Created At" }),
|
|
33380
33480
|
cell: ({ row: t }) => /* @__PURE__ */ i.jsx("div", { className: "text-sm text-muted-foreground whitespace-nowrap tabular-nums", children: Rw(t.getValue("createdAt")) })
|
|
33381
33481
|
},
|
|
33382
33482
|
{
|
|
@@ -34062,14 +34162,14 @@ function WY({ onViewSop: e }) {
|
|
|
34062
34162
|
)
|
|
34063
34163
|
] });
|
|
34064
34164
|
}
|
|
34065
|
-
function
|
|
34066
|
-
return
|
|
34165
|
+
function ht() {
|
|
34166
|
+
return ht = Object.assign ? Object.assign.bind() : function(e) {
|
|
34067
34167
|
for (var t = 1; t < arguments.length; t++) {
|
|
34068
34168
|
var n = arguments[t];
|
|
34069
34169
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
34070
34170
|
}
|
|
34071
34171
|
return e;
|
|
34072
|
-
},
|
|
34172
|
+
}, ht.apply(null, arguments);
|
|
34073
34173
|
}
|
|
34074
34174
|
const Al = (
|
|
34075
34175
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
@@ -34281,9 +34381,9 @@ function aK() {
|
|
|
34281
34381
|
}
|
|
34282
34382
|
var iK = aK();
|
|
34283
34383
|
const sK = /* @__PURE__ */ Gu(iK);
|
|
34284
|
-
|
|
34285
|
-
|
|
34286
|
-
function
|
|
34384
|
+
bt.displayName = "clike";
|
|
34385
|
+
bt.aliases = [];
|
|
34386
|
+
function bt(e) {
|
|
34287
34387
|
e.languages.clike = {
|
|
34288
34388
|
comment: [
|
|
34289
34389
|
{
|
|
@@ -34319,7 +34419,7 @@ function gt(e) {
|
|
|
34319
34419
|
br.displayName = "c";
|
|
34320
34420
|
br.aliases = [];
|
|
34321
34421
|
function br(e) {
|
|
34322
|
-
e.register(
|
|
34422
|
+
e.register(bt), e.languages.c = e.languages.extend("clike", {
|
|
34323
34423
|
comment: {
|
|
34324
34424
|
pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
34325
34425
|
greedy: !0
|
|
@@ -34732,7 +34832,7 @@ function _l(e) {
|
|
|
34732
34832
|
Ii.displayName = "csharp";
|
|
34733
34833
|
Ii.aliases = ["cs", "dotnet"];
|
|
34734
34834
|
function Ii(e) {
|
|
34735
|
-
e.register(
|
|
34835
|
+
e.register(bt), (function(t) {
|
|
34736
34836
|
function n(k, V) {
|
|
34737
34837
|
return k.replace(/<<(\d+)>>/g, function(Z, I) {
|
|
34738
34838
|
return "(?:" + V[+I] + ")";
|
|
@@ -35399,7 +35499,7 @@ function Kd(e) {
|
|
|
35399
35499
|
Xd.displayName = "go";
|
|
35400
35500
|
Xd.aliases = [];
|
|
35401
35501
|
function Xd(e) {
|
|
35402
|
-
e.register(
|
|
35502
|
+
e.register(bt), e.languages.go = e.languages.extend("clike", {
|
|
35403
35503
|
string: {
|
|
35404
35504
|
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,
|
|
35405
35505
|
lookbehind: !0,
|
|
@@ -35471,7 +35571,7 @@ function Zd(e) {
|
|
|
35471
35571
|
Di.displayName = "java";
|
|
35472
35572
|
Di.aliases = [];
|
|
35473
35573
|
function Di(e) {
|
|
35474
|
-
e.register(
|
|
35574
|
+
e.register(bt), (function(t) {
|
|
35475
35575
|
var n = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, r = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, a = {
|
|
35476
35576
|
pattern: RegExp(
|
|
35477
35577
|
/(^|[^\w.])/.source + r + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source
|
|
@@ -35697,7 +35797,7 @@ function Qd(e) {
|
|
|
35697
35797
|
un.displayName = "javascript";
|
|
35698
35798
|
un.aliases = ["js"];
|
|
35699
35799
|
function un(e) {
|
|
35700
|
-
e.register(
|
|
35800
|
+
e.register(bt), e.languages.javascript = e.languages.extend("clike", {
|
|
35701
35801
|
"class-name": [
|
|
35702
35802
|
e.languages.clike["class-name"],
|
|
35703
35803
|
{
|
|
@@ -35860,7 +35960,7 @@ function Ls(e) {
|
|
|
35860
35960
|
Jd.displayName = "kotlin";
|
|
35861
35961
|
Jd.aliases = ["kt", "kts"];
|
|
35862
35962
|
function Jd(e) {
|
|
35863
|
-
e.register(
|
|
35963
|
+
e.register(bt), (function(t) {
|
|
35864
35964
|
t.languages.kotlin = t.languages.extend("clike", {
|
|
35865
35965
|
keyword: {
|
|
35866
35966
|
// The lookbehind prevents wrong highlighting of e.g. kotlin.properties.get
|
|
@@ -37065,7 +37165,7 @@ function ip(e) {
|
|
|
37065
37165
|
Li.displayName = "ruby";
|
|
37066
37166
|
Li.aliases = ["rb"];
|
|
37067
37167
|
function Li(e) {
|
|
37068
|
-
e.register(
|
|
37168
|
+
e.register(bt), (function(t) {
|
|
37069
37169
|
t.languages.ruby = t.languages.extend("clike", {
|
|
37070
37170
|
comment: {
|
|
37071
37171
|
pattern: /#.*|^=begin\s[\s\S]*?^=end/m,
|
|
@@ -39917,7 +40017,7 @@ function FK(e) {
|
|
|
39917
40017
|
Object.hasOwn(e, t) && (e[t] = NK(e[t]));
|
|
39918
40018
|
return e;
|
|
39919
40019
|
}
|
|
39920
|
-
O.register(
|
|
40020
|
+
O.register(bt);
|
|
39921
40021
|
O.register(br);
|
|
39922
40022
|
O.register(ki);
|
|
39923
40023
|
O.register(Yd);
|
|
@@ -40281,7 +40381,7 @@ function gb(e) {
|
|
|
40281
40381
|
bb.displayName = "apex";
|
|
40282
40382
|
bb.aliases = [];
|
|
40283
40383
|
function bb(e) {
|
|
40284
|
-
e.register(
|
|
40384
|
+
e.register(bt), e.register(js), (function(t) {
|
|
40285
40385
|
var n = /\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i, r = /\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(
|
|
40286
40386
|
/<keyword>/g,
|
|
40287
40387
|
function() {
|
|
@@ -41497,7 +41597,7 @@ function Mb(e) {
|
|
|
41497
41597
|
Pb.displayName = "birb";
|
|
41498
41598
|
Pb.aliases = [];
|
|
41499
41599
|
function Pb(e) {
|
|
41500
|
-
e.register(
|
|
41600
|
+
e.register(bt), e.languages.birb = e.languages.extend("clike", {
|
|
41501
41601
|
string: {
|
|
41502
41602
|
pattern: /r?("|')(?:\\.|(?!\1)[^\\])*\1/,
|
|
41503
41603
|
greedy: !0
|
|
@@ -41826,7 +41926,7 @@ function Gb(e) {
|
|
|
41826
41926
|
Vb.displayName = "cfscript";
|
|
41827
41927
|
Vb.aliases = ["cfc"];
|
|
41828
41928
|
function Vb(e) {
|
|
41829
|
-
e.register(
|
|
41929
|
+
e.register(bt), e.languages.cfscript = e.languages.extend("clike", {
|
|
41830
41930
|
comment: [
|
|
41831
41931
|
{
|
|
41832
41932
|
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
@@ -41868,7 +41968,7 @@ function Vb(e) {
|
|
|
41868
41968
|
Wb.displayName = "chaiscript";
|
|
41869
41969
|
Wb.aliases = [];
|
|
41870
41970
|
function Wb(e) {
|
|
41871
|
-
e.register(
|
|
41971
|
+
e.register(bt), e.register(ki), e.languages.chaiscript = e.languages.extend("clike", {
|
|
41872
41972
|
string: {
|
|
41873
41973
|
pattern: /(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,
|
|
41874
41974
|
lookbehind: !0,
|
|
@@ -42759,7 +42859,7 @@ function l0(e) {
|
|
|
42759
42859
|
c0.displayName = "d";
|
|
42760
42860
|
c0.aliases = [];
|
|
42761
42861
|
function c0(e) {
|
|
42762
|
-
e.register(
|
|
42862
|
+
e.register(bt), e.languages.d = e.languages.extend("clike", {
|
|
42763
42863
|
comment: [
|
|
42764
42864
|
{
|
|
42765
42865
|
// Shebang
|
|
@@ -42839,7 +42939,7 @@ function c0(e) {
|
|
|
42839
42939
|
u0.displayName = "dart";
|
|
42840
42940
|
u0.aliases = [];
|
|
42841
42941
|
function u0(e) {
|
|
42842
|
-
e.register(
|
|
42942
|
+
e.register(bt), (function(t) {
|
|
42843
42943
|
var n = [
|
|
42844
42944
|
/\b(?:async|sync|yield)\*/,
|
|
42845
42945
|
/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/
|
|
@@ -43740,7 +43840,7 @@ function A0(e) {
|
|
|
43740
43840
|
_0.displayName = "fsharp";
|
|
43741
43841
|
_0.aliases = [];
|
|
43742
43842
|
function _0(e) {
|
|
43743
|
-
e.register(
|
|
43843
|
+
e.register(bt), e.languages.fsharp = e.languages.extend("clike", {
|
|
43744
43844
|
comment: [
|
|
43745
43845
|
{
|
|
43746
43846
|
pattern: /(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,
|
|
@@ -44766,7 +44866,7 @@ function k0(e) {
|
|
|
44766
44866
|
I0.displayName = "firestore-security-rules";
|
|
44767
44867
|
I0.aliases = [];
|
|
44768
44868
|
function I0(e) {
|
|
44769
|
-
e.register(
|
|
44869
|
+
e.register(bt), e.languages["firestore-security-rules"] = e.languages.extend(
|
|
44770
44870
|
"clike",
|
|
44771
44871
|
{
|
|
44772
44872
|
comment: /\/\/.*/,
|
|
@@ -44990,7 +45090,7 @@ function L0(e) {
|
|
|
44990
45090
|
j0.displayName = "gml";
|
|
44991
45091
|
j0.aliases = ["gamemakerlanguage"];
|
|
44992
45092
|
function j0(e) {
|
|
44993
|
-
e.register(
|
|
45093
|
+
e.register(bt), e.languages.gamemakerlanguage = e.languages.gml = e.languages.extend("clike", {
|
|
44994
45094
|
keyword: /\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,
|
|
44995
45095
|
number: /(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,
|
|
44996
45096
|
operator: /--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,
|
|
@@ -45439,7 +45539,7 @@ function W0(e) {
|
|
|
45439
45539
|
q0.displayName = "gradle";
|
|
45440
45540
|
q0.aliases = [];
|
|
45441
45541
|
function q0(e) {
|
|
45442
|
-
e.register(
|
|
45542
|
+
e.register(bt), (function(t) {
|
|
45443
45543
|
var n = {
|
|
45444
45544
|
pattern: /((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,
|
|
45445
45545
|
lookbehind: !0,
|
|
@@ -45619,7 +45719,7 @@ function Y0(e) {
|
|
|
45619
45719
|
K0.displayName = "groovy";
|
|
45620
45720
|
K0.aliases = [];
|
|
45621
45721
|
function K0(e) {
|
|
45622
|
-
e.register(
|
|
45722
|
+
e.register(bt), (function(t) {
|
|
45623
45723
|
var n = {
|
|
45624
45724
|
pattern: /((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,
|
|
45625
45725
|
lookbehind: !0,
|
|
@@ -46188,7 +46288,7 @@ function jl(e) {
|
|
|
46188
46288
|
J0.displayName = "haxe";
|
|
46189
46289
|
J0.aliases = [];
|
|
46190
46290
|
function J0(e) {
|
|
46191
|
-
e.register(
|
|
46291
|
+
e.register(bt), e.languages.haxe = e.languages.extend("clike", {
|
|
46192
46292
|
string: {
|
|
46193
46293
|
// Strings can be multi-line
|
|
46194
46294
|
pattern: /"(?:[^"\\]|\\[\s\S])*"/,
|
|
@@ -47284,7 +47384,7 @@ function yy(e) {
|
|
|
47284
47384
|
xy.displayName = "jolie";
|
|
47285
47385
|
xy.aliases = [];
|
|
47286
47386
|
function xy(e) {
|
|
47287
|
-
e.register(
|
|
47387
|
+
e.register(bt), e.languages.jolie = e.languages.extend("clike", {
|
|
47288
47388
|
string: {
|
|
47289
47389
|
pattern: /(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,
|
|
47290
47390
|
lookbehind: !0,
|
|
@@ -48196,7 +48296,7 @@ function Oy(e) {
|
|
|
48196
48296
|
Ly.displayName = "latte";
|
|
48197
48297
|
Ly.aliases = [];
|
|
48198
48298
|
function Ly(e) {
|
|
48199
|
-
e.register(
|
|
48299
|
+
e.register(bt), e.register(dn), e.register(Oi), (function(t) {
|
|
48200
48300
|
t.languages.latte = {
|
|
48201
48301
|
comment: /^\{\*[\s\S]*/,
|
|
48202
48302
|
"latte-tag": {
|
|
@@ -51262,7 +51362,7 @@ function Nx(e) {
|
|
|
51262
51362
|
Cx.displayName = "processing";
|
|
51263
51363
|
Cx.aliases = [];
|
|
51264
51364
|
function Cx(e) {
|
|
51265
|
-
e.register(
|
|
51365
|
+
e.register(bt), e.languages.processing = e.languages.extend("clike", {
|
|
51266
51366
|
keyword: /\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,
|
|
51267
51367
|
// Spaces are allowed between function name and parenthesis
|
|
51268
51368
|
function: /\b\w+(?=\s*\()/,
|
|
@@ -51410,7 +51510,7 @@ function Rx(e) {
|
|
|
51410
51510
|
kx.displayName = "protobuf";
|
|
51411
51511
|
kx.aliases = [];
|
|
51412
51512
|
function kx(e) {
|
|
51413
|
-
e.register(
|
|
51513
|
+
e.register(bt), (function(t) {
|
|
51414
51514
|
var n = /\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;
|
|
51415
51515
|
t.languages.protobuf = t.languages.extend("clike", {
|
|
51416
51516
|
"class-name": [
|
|
@@ -52031,7 +52131,7 @@ function jx(e) {
|
|
|
52031
52131
|
Mx.displayName = "purebasic";
|
|
52032
52132
|
Mx.aliases = ["pbfasm"];
|
|
52033
52133
|
function Mx(e) {
|
|
52034
|
-
e.register(
|
|
52134
|
+
e.register(bt), e.languages.purebasic = e.languages.extend("clike", {
|
|
52035
52135
|
comment: /;.*/,
|
|
52036
52136
|
keyword: /\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,
|
|
52037
52137
|
function: /\b\w+(?:\.\w+)?\s*(?=\()/,
|
|
@@ -52119,7 +52219,7 @@ function Px(e) {
|
|
|
52119
52219
|
Fx.displayName = "qsharp";
|
|
52120
52220
|
Fx.aliases = ["qs"];
|
|
52121
52221
|
function Fx(e) {
|
|
52122
|
-
e.register(
|
|
52222
|
+
e.register(bt), (function(t) {
|
|
52123
52223
|
function n(m, h) {
|
|
52124
52224
|
return m.replace(/<<(\d+)>>/g, function(g, b) {
|
|
52125
52225
|
return "(?:" + h[+b] + ")";
|
|
@@ -52346,7 +52446,7 @@ function Ux(e) {
|
|
|
52346
52446
|
$x.displayName = "qore";
|
|
52347
52447
|
$x.aliases = [];
|
|
52348
52448
|
function $x(e) {
|
|
52349
|
-
e.register(
|
|
52449
|
+
e.register(bt), e.languages.qore = e.languages.extend("clike", {
|
|
52350
52450
|
comment: {
|
|
52351
52451
|
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,
|
|
52352
52452
|
lookbehind: !0
|
|
@@ -52585,7 +52685,7 @@ function Gx(e) {
|
|
|
52585
52685
|
Vx.displayName = "reason";
|
|
52586
52686
|
Vx.aliases = [];
|
|
52587
52687
|
function Vx(e) {
|
|
52588
|
-
e.register(
|
|
52688
|
+
e.register(bt), e.languages.reason = e.languages.extend("clike", {
|
|
52589
52689
|
string: {
|
|
52590
52690
|
pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
|
|
52591
52691
|
greedy: !0
|
|
@@ -53779,7 +53879,7 @@ function aE(e) {
|
|
|
53779
53879
|
iE.displayName = "solidity";
|
|
53780
53880
|
iE.aliases = ["sol"];
|
|
53781
53881
|
function iE(e) {
|
|
53782
|
-
e.register(
|
|
53882
|
+
e.register(bt), e.languages.solidity = e.languages.extend("clike", {
|
|
53783
53883
|
"class-name": {
|
|
53784
53884
|
pattern: /(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,
|
|
53785
53885
|
lookbehind: !0
|
|
@@ -54028,7 +54128,7 @@ function cE(e) {
|
|
|
54028
54128
|
uE.displayName = "sqf";
|
|
54029
54129
|
uE.aliases = [];
|
|
54030
54130
|
function uE(e) {
|
|
54031
|
-
e.register(
|
|
54131
|
+
e.register(bt), e.languages.sqf = e.languages.extend("clike", {
|
|
54032
54132
|
string: {
|
|
54033
54133
|
pattern: /"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,
|
|
54034
54134
|
greedy: !0
|
|
@@ -54062,7 +54162,7 @@ function uE(e) {
|
|
|
54062
54162
|
dE.displayName = "squirrel";
|
|
54063
54163
|
dE.aliases = [];
|
|
54064
54164
|
function dE(e) {
|
|
54065
|
-
e.register(
|
|
54165
|
+
e.register(bt), e.languages.squirrel = e.languages.extend("clike", {
|
|
54066
54166
|
comment: [
|
|
54067
54167
|
e.languages.clike.comment[0],
|
|
54068
54168
|
{
|
|
@@ -54496,7 +54596,7 @@ function EE(e) {
|
|
|
54496
54596
|
vE.displayName = "tt2";
|
|
54497
54597
|
vE.aliases = [];
|
|
54498
54598
|
function vE(e) {
|
|
54499
|
-
e.register(
|
|
54599
|
+
e.register(bt), e.register(dn), (function(t) {
|
|
54500
54600
|
t.languages.tt2 = t.languages.extend("clike", {
|
|
54501
54601
|
comment: /#.*|\[%#[\s\S]*?%\]/,
|
|
54502
54602
|
keyword: /\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,
|
|
@@ -54834,7 +54934,7 @@ function CE(e) {
|
|
|
54834
54934
|
AE.displayName = "v";
|
|
54835
54935
|
AE.aliases = [];
|
|
54836
54936
|
function AE(e) {
|
|
54837
|
-
e.register(
|
|
54937
|
+
e.register(bt), (function(t) {
|
|
54838
54938
|
var n = {
|
|
54839
54939
|
pattern: /[\s\S]+/,
|
|
54840
54940
|
inside: null
|
|
@@ -54911,7 +55011,7 @@ function AE(e) {
|
|
|
54911
55011
|
_E.displayName = "vala";
|
|
54912
55012
|
_E.aliases = [];
|
|
54913
55013
|
function _E(e) {
|
|
54914
|
-
e.register(
|
|
55014
|
+
e.register(bt), e.languages.vala = e.languages.extend("clike", {
|
|
54915
55015
|
// Classes copied from prism-csharp
|
|
54916
55016
|
"class-name": [
|
|
54917
55017
|
{
|
|
@@ -55991,7 +56091,7 @@ function WE(e) {
|
|
|
55991
56091
|
}
|
|
55992
56092
|
O.register(sn);
|
|
55993
56093
|
O.register(Ha);
|
|
55994
|
-
O.register(
|
|
56094
|
+
O.register(bt);
|
|
55995
56095
|
O.register(Qd);
|
|
55996
56096
|
O.register(un);
|
|
55997
56097
|
O.register(cb);
|
|
@@ -64975,7 +65075,7 @@ function nt(e) {
|
|
|
64975
65075
|
function At(e) {
|
|
64976
65076
|
return e !== null && (e < 0 || e === 32);
|
|
64977
65077
|
}
|
|
64978
|
-
function
|
|
65078
|
+
function gt(e) {
|
|
64979
65079
|
return e === -2 || e === -1 || e === 32;
|
|
64980
65080
|
}
|
|
64981
65081
|
const wp = za(new RegExp("\\p{P}|\\p{S}", "u")), yi = za(/\s/);
|
|
@@ -65009,10 +65109,10 @@ function xt(e, t, n, r) {
|
|
|
65009
65109
|
let s = 0;
|
|
65010
65110
|
return o;
|
|
65011
65111
|
function o(c) {
|
|
65012
|
-
return
|
|
65112
|
+
return gt(c) ? (e.enter(n), l(c)) : t(c);
|
|
65013
65113
|
}
|
|
65014
65114
|
function l(c) {
|
|
65015
|
-
return
|
|
65115
|
+
return gt(c) && s++ < a ? (e.consume(c), l) : (e.exit(n), t(c));
|
|
65016
65116
|
}
|
|
65017
65117
|
}
|
|
65018
65118
|
const Zee = {
|
|
@@ -65305,7 +65405,7 @@ const $l = {
|
|
|
65305
65405
|
function ste(e, t, n) {
|
|
65306
65406
|
return r;
|
|
65307
65407
|
function r(s) {
|
|
65308
|
-
return
|
|
65408
|
+
return gt(s) ? xt(e, a, "linePrefix")(s) : a(s);
|
|
65309
65409
|
}
|
|
65310
65410
|
function a(s) {
|
|
65311
65411
|
return s === null || nt(s) ? t(s) : n(s);
|
|
@@ -65332,14 +65432,14 @@ function ote(e, t, n) {
|
|
|
65332
65432
|
return n(o);
|
|
65333
65433
|
}
|
|
65334
65434
|
function s(o) {
|
|
65335
|
-
return
|
|
65435
|
+
return gt(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(o));
|
|
65336
65436
|
}
|
|
65337
65437
|
}
|
|
65338
65438
|
function lte(e, t, n) {
|
|
65339
65439
|
const r = this;
|
|
65340
65440
|
return a;
|
|
65341
65441
|
function a(o) {
|
|
65342
|
-
return
|
|
65442
|
+
return gt(o) ? xt(e, s, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : s(o);
|
|
65343
65443
|
}
|
|
65344
65444
|
function s(o) {
|
|
65345
65445
|
return e.attempt(gD, t, n)(o);
|
|
@@ -65409,7 +65509,7 @@ function pte(e, t, n) {
|
|
|
65409
65509
|
return s = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, l = N, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), p(N);
|
|
65410
65510
|
}
|
|
65411
65511
|
function p(N) {
|
|
65412
|
-
return N === l ? (o++, e.consume(N), p) : o < 3 ? n(N) : (e.exit("codeFencedFenceSequence"),
|
|
65512
|
+
return N === l ? (o++, e.consume(N), p) : o < 3 ? n(N) : (e.exit("codeFencedFenceSequence"), gt(N) ? xt(e, d, "whitespace")(N) : d(N));
|
|
65413
65513
|
}
|
|
65414
65514
|
function d(N) {
|
|
65415
65515
|
return N === null || nt(N) ? (e.exit("codeFencedFence"), r.interrupt ? t(N) : e.check(OT, g, T)(N)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
@@ -65417,7 +65517,7 @@ function pte(e, t, n) {
|
|
|
65417
65517
|
}), f(N));
|
|
65418
65518
|
}
|
|
65419
65519
|
function f(N) {
|
|
65420
|
-
return N === null || nt(N) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(N)) :
|
|
65520
|
+
return N === null || nt(N) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(N)) : gt(N) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), xt(e, m, "whitespace")(N)) : N === 96 && N === l ? n(N) : (e.consume(N), f);
|
|
65421
65521
|
}
|
|
65422
65522
|
function m(N) {
|
|
65423
65523
|
return N === null || nt(N) ? d(N) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -65434,7 +65534,7 @@ function pte(e, t, n) {
|
|
|
65434
65534
|
return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), y;
|
|
65435
65535
|
}
|
|
65436
65536
|
function y(N) {
|
|
65437
|
-
return s > 0 &&
|
|
65537
|
+
return s > 0 && gt(N) ? xt(e, S, "linePrefix", s + 1)(N) : S(N);
|
|
65438
65538
|
}
|
|
65439
65539
|
function S(N) {
|
|
65440
65540
|
return N === null || nt(N) ? e.check(OT, g, T)(N) : (e.enter("codeFlowValue"), w(N));
|
|
@@ -65452,13 +65552,13 @@ function pte(e, t, n) {
|
|
|
65452
65552
|
return N.enter("lineEnding"), N.consume(j), N.exit("lineEnding"), P;
|
|
65453
65553
|
}
|
|
65454
65554
|
function P(j) {
|
|
65455
|
-
return N.enter("codeFencedFence"),
|
|
65555
|
+
return N.enter("codeFencedFence"), gt(j) ? xt(N, $, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(j) : $(j);
|
|
65456
65556
|
}
|
|
65457
65557
|
function $(j) {
|
|
65458
65558
|
return j === l ? (N.enter("codeFencedFenceSequence"), G(j)) : D(j);
|
|
65459
65559
|
}
|
|
65460
65560
|
function G(j) {
|
|
65461
|
-
return j === l ? (L++, N.consume(j), G) : L >= o ? (N.exit("codeFencedFenceSequence"),
|
|
65561
|
+
return j === l ? (L++, N.consume(j), G) : L >= o ? (N.exit("codeFencedFenceSequence"), gt(j) ? xt(N, z, "whitespace")(j) : z(j)) : D(j);
|
|
65462
65562
|
}
|
|
65463
65563
|
function z(j) {
|
|
65464
65564
|
return j === null || nt(j) ? (N.exit("codeFencedFence"), R(j)) : D(j);
|
|
@@ -65864,7 +65964,7 @@ function vD(e, t, n, r, a, s) {
|
|
|
65864
65964
|
}), d(m));
|
|
65865
65965
|
}
|
|
65866
65966
|
function d(m) {
|
|
65867
|
-
return m === null || m === 91 || m === 93 || nt(m) || l++ > 999 ? (e.exit("chunkString"), p(m)) : (e.consume(m), c || (c = !
|
|
65967
|
+
return m === null || m === 91 || m === 93 || nt(m) || l++ > 999 ? (e.exit("chunkString"), p(m)) : (e.consume(m), c || (c = !gt(m)), m === 92 ? f : d);
|
|
65868
65968
|
}
|
|
65869
65969
|
function f(m) {
|
|
65870
65970
|
return m === 91 || m === 92 || m === 93 ? (e.consume(m), l++, d) : d(m);
|
|
@@ -65895,7 +65995,7 @@ function Oo(e, t) {
|
|
|
65895
65995
|
let n;
|
|
65896
65996
|
return r;
|
|
65897
65997
|
function r(a) {
|
|
65898
|
-
return nt(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) :
|
|
65998
|
+
return nt(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : gt(a) ? xt(e, r, n ? "linePrefix" : "lineSuffix")(a) : t(a);
|
|
65899
65999
|
}
|
|
65900
66000
|
}
|
|
65901
66001
|
const _te = {
|
|
@@ -65947,7 +66047,7 @@ function kte(e, t, n) {
|
|
|
65947
66047
|
return e.attempt(Rte, d, d)(m);
|
|
65948
66048
|
}
|
|
65949
66049
|
function d(m) {
|
|
65950
|
-
return
|
|
66050
|
+
return gt(m) ? xt(e, f, "whitespace")(m) : f(m);
|
|
65951
66051
|
}
|
|
65952
66052
|
function f(m) {
|
|
65953
66053
|
return m === null || nt(m) ? (e.exit("definition"), r.parser.defined.push(a), t(m)) : n(m);
|
|
@@ -65962,7 +66062,7 @@ function Ite(e, t, n) {
|
|
|
65962
66062
|
return SD(e, s, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(l);
|
|
65963
66063
|
}
|
|
65964
66064
|
function s(l) {
|
|
65965
|
-
return
|
|
66065
|
+
return gt(l) ? xt(e, o, "whitespace")(l) : o(l);
|
|
65966
66066
|
}
|
|
65967
66067
|
function o(l) {
|
|
65968
66068
|
return l === null || nt(l) ? t(l) : n(l);
|
|
@@ -66012,7 +66112,7 @@ function Mte(e, t, n) {
|
|
|
66012
66112
|
return p === 35 && r++ < 6 ? (e.consume(p), o) : p === null || At(p) ? (e.exit("atxHeadingSequence"), l(p)) : n(p);
|
|
66013
66113
|
}
|
|
66014
66114
|
function l(p) {
|
|
66015
|
-
return p === 35 ? (e.enter("atxHeadingSequence"), c(p)) : p === null || nt(p) ? (e.exit("atxHeading"), t(p)) :
|
|
66115
|
+
return p === 35 ? (e.enter("atxHeadingSequence"), c(p)) : p === null || nt(p) ? (e.exit("atxHeading"), t(p)) : gt(p) ? xt(e, l, "whitespace")(p) : (e.enter("atxHeadingText"), u(p));
|
|
66016
66116
|
}
|
|
66017
66117
|
function c(p) {
|
|
66018
66118
|
return p === 35 ? (e.consume(p), c) : (e.exit("atxHeadingSequence"), l(p));
|
|
@@ -66139,19 +66239,19 @@ function Hte(e, t, n) {
|
|
|
66139
66239
|
return I === 62 ? (e.consume(I), r.interrupt ? t : $) : n(I);
|
|
66140
66240
|
}
|
|
66141
66241
|
function S(I) {
|
|
66142
|
-
return
|
|
66242
|
+
return gt(I) ? (e.consume(I), S) : C(I);
|
|
66143
66243
|
}
|
|
66144
66244
|
function w(I) {
|
|
66145
|
-
return I === 47 ? (e.consume(I), C) : I === 58 || I === 95 || Sn(I) ? (e.consume(I), T) :
|
|
66245
|
+
return I === 47 ? (e.consume(I), C) : I === 58 || I === 95 || Sn(I) ? (e.consume(I), T) : gt(I) ? (e.consume(I), w) : C(I);
|
|
66146
66246
|
}
|
|
66147
66247
|
function T(I) {
|
|
66148
66248
|
return I === 45 || I === 46 || I === 58 || I === 95 || gn(I) ? (e.consume(I), T) : A(I);
|
|
66149
66249
|
}
|
|
66150
66250
|
function A(I) {
|
|
66151
|
-
return I === 61 ? (e.consume(I), N) :
|
|
66251
|
+
return I === 61 ? (e.consume(I), N) : gt(I) ? (e.consume(I), A) : w(I);
|
|
66152
66252
|
}
|
|
66153
66253
|
function N(I) {
|
|
66154
|
-
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), c = I, R) :
|
|
66254
|
+
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), c = I, R) : gt(I) ? (e.consume(I), N) : D(I);
|
|
66155
66255
|
}
|
|
66156
66256
|
function R(I) {
|
|
66157
66257
|
return I === c ? (e.consume(I), c = null, L) : I === null || nt(I) ? n(I) : (e.consume(I), R);
|
|
@@ -66160,13 +66260,13 @@ function Hte(e, t, n) {
|
|
|
66160
66260
|
return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || At(I) ? A(I) : (e.consume(I), D);
|
|
66161
66261
|
}
|
|
66162
66262
|
function L(I) {
|
|
66163
|
-
return I === 47 || I === 62 ||
|
|
66263
|
+
return I === 47 || I === 62 || gt(I) ? w(I) : n(I);
|
|
66164
66264
|
}
|
|
66165
66265
|
function C(I) {
|
|
66166
66266
|
return I === 62 ? (e.consume(I), P) : n(I);
|
|
66167
66267
|
}
|
|
66168
66268
|
function P(I) {
|
|
66169
|
-
return I === null || nt(I) ? $(I) :
|
|
66269
|
+
return I === null || nt(I) ? $(I) : gt(I) ? (e.consume(I), P) : n(I);
|
|
66170
66270
|
}
|
|
66171
66271
|
function $(I) {
|
|
66172
66272
|
return I === 45 && a === 2 ? (e.consume(I), W) : I === 60 && a === 1 ? (e.consume(I), ae) : I === 62 && a === 4 ? (e.consume(I), V) : I === 63 && a === 3 ? (e.consume(I), k) : I === 93 && a === 5 ? (e.consume(I), H) : nt(I) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(Bte, Z, G)(I)) : I === null || nt(I) ? (e.exit("htmlFlowData"), G(I)) : (e.consume(I), $);
|
|
@@ -66280,22 +66380,22 @@ function Wte(e, t, n) {
|
|
|
66280
66380
|
return k === 45 || gn(k) ? (e.consume(k), N) : R(k);
|
|
66281
66381
|
}
|
|
66282
66382
|
function R(k) {
|
|
66283
|
-
return nt(k) ? (o = R, ae(k)) :
|
|
66383
|
+
return nt(k) ? (o = R, ae(k)) : gt(k) ? (e.consume(k), R) : W(k);
|
|
66284
66384
|
}
|
|
66285
66385
|
function D(k) {
|
|
66286
66386
|
return k === 45 || gn(k) ? (e.consume(k), D) : k === 47 || k === 62 || At(k) ? L(k) : n(k);
|
|
66287
66387
|
}
|
|
66288
66388
|
function L(k) {
|
|
66289
|
-
return k === 47 ? (e.consume(k), W) : k === 58 || k === 95 || Sn(k) ? (e.consume(k), C) : nt(k) ? (o = L, ae(k)) :
|
|
66389
|
+
return k === 47 ? (e.consume(k), W) : k === 58 || k === 95 || Sn(k) ? (e.consume(k), C) : nt(k) ? (o = L, ae(k)) : gt(k) ? (e.consume(k), L) : W(k);
|
|
66290
66390
|
}
|
|
66291
66391
|
function C(k) {
|
|
66292
66392
|
return k === 45 || k === 46 || k === 58 || k === 95 || gn(k) ? (e.consume(k), C) : P(k);
|
|
66293
66393
|
}
|
|
66294
66394
|
function P(k) {
|
|
66295
|
-
return k === 61 ? (e.consume(k), $) : nt(k) ? (o = P, ae(k)) :
|
|
66395
|
+
return k === 61 ? (e.consume(k), $) : nt(k) ? (o = P, ae(k)) : gt(k) ? (e.consume(k), P) : L(k);
|
|
66296
66396
|
}
|
|
66297
66397
|
function $(k) {
|
|
66298
|
-
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), a = k, G) : nt(k) ? (o = $, ae(k)) :
|
|
66398
|
+
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), a = k, G) : nt(k) ? (o = $, ae(k)) : gt(k) ? (e.consume(k), $) : (e.consume(k), z);
|
|
66299
66399
|
}
|
|
66300
66400
|
function G(k) {
|
|
66301
66401
|
return k === a ? (e.consume(k), a = void 0, j) : k === null ? n(k) : nt(k) ? (o = G, ae(k)) : (e.consume(k), G);
|
|
@@ -66313,7 +66413,7 @@ function Wte(e, t, n) {
|
|
|
66313
66413
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), B;
|
|
66314
66414
|
}
|
|
66315
66415
|
function B(k) {
|
|
66316
|
-
return
|
|
66416
|
+
return gt(k) ? xt(e, H, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : H(k);
|
|
66317
66417
|
}
|
|
66318
66418
|
function H(k) {
|
|
66319
66419
|
return e.enter("htmlTextData"), o(k);
|
|
@@ -66520,7 +66620,7 @@ function one(e, t, n) {
|
|
|
66520
66620
|
return u === a ? (e.enter("thematicBreakSequence"), c(u)) : r >= 3 && (u === null || nt(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
|
66521
66621
|
}
|
|
66522
66622
|
function c(u) {
|
|
66523
|
-
return u === a ? (e.consume(u), r++, c) : (e.exit("thematicBreakSequence"),
|
|
66623
|
+
return u === a ? (e.consume(u), r++, c) : (e.exit("thematicBreakSequence"), gt(u) ? xt(e, l, "whitespace")(u) : l(u));
|
|
66524
66624
|
}
|
|
66525
66625
|
}
|
|
66526
66626
|
const Rn = {
|
|
@@ -66568,7 +66668,7 @@ function une(e, t, n) {
|
|
|
66568
66668
|
return r.containerState.initialBlankLine = !0, s++, f(m);
|
|
66569
66669
|
}
|
|
66570
66670
|
function d(m) {
|
|
66571
|
-
return
|
|
66671
|
+
return gt(m) ? (e.enter("listItemPrefixWhitespace"), e.consume(m), e.exit("listItemPrefixWhitespace"), f) : n(m);
|
|
66572
66672
|
}
|
|
66573
66673
|
function f(m) {
|
|
66574
66674
|
return r.containerState.size = s + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(m);
|
|
@@ -66581,7 +66681,7 @@ function dne(e, t, n) {
|
|
|
66581
66681
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, xt(e, t, "listItemIndent", r.containerState.size + 1)(l);
|
|
66582
66682
|
}
|
|
66583
66683
|
function s(l) {
|
|
66584
|
-
return r.containerState.furtherBlankLines || !
|
|
66684
|
+
return r.containerState.furtherBlankLines || !gt(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(cne, t, o)(l));
|
|
66585
66685
|
}
|
|
66586
66686
|
function o(l) {
|
|
66587
66687
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, xt(e, e.attempt(Rn, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l);
|
|
@@ -66603,7 +66703,7 @@ function mne(e, t, n) {
|
|
|
66603
66703
|
return xt(e, a, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
66604
66704
|
function a(s) {
|
|
66605
66705
|
const o = r.events[r.events.length - 1];
|
|
66606
|
-
return !
|
|
66706
|
+
return !gt(s) && o && o[1].type === "listItemPrefixWhitespace" ? t(s) : n(s);
|
|
66607
66707
|
}
|
|
66608
66708
|
}
|
|
66609
66709
|
const MT = {
|
|
@@ -66652,7 +66752,7 @@ function gne(e, t, n) {
|
|
|
66652
66752
|
return e.enter("setextHeadingLineSequence"), l(u);
|
|
66653
66753
|
}
|
|
66654
66754
|
function l(u) {
|
|
66655
|
-
return u === a ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"),
|
|
66755
|
+
return u === a ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), gt(u) ? xt(e, c, "lineSuffix")(u) : c(u));
|
|
66656
66756
|
}
|
|
66657
66757
|
function c(u) {
|
|
66658
66758
|
return u === null || nt(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
|
@@ -71308,7 +71408,7 @@ function nse(e, t, n) {
|
|
|
71308
71408
|
return C === 124 || (o = !0, s += 1), p(C);
|
|
71309
71409
|
}
|
|
71310
71410
|
function p(C) {
|
|
71311
|
-
return C === null ? n(C) : nt(C) ? s > 1 ? (s = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), m) : n(C) :
|
|
71411
|
+
return C === null ? n(C) : nt(C) ? s > 1 ? (s = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), m) : n(C) : gt(C) ? xt(e, p, "whitespace")(C) : (s += 1, o && (o = !1, a += 1), C === 124 ? (e.enter("tableCellDivider"), e.consume(C), e.exit("tableCellDivider"), o = !0, p) : (e.enter("data"), d(C)));
|
|
71312
71412
|
}
|
|
71313
71413
|
function d(C) {
|
|
71314
71414
|
return C === null || C === 124 || At(C) ? (e.exit("data"), p(C)) : (e.consume(C), C === 92 ? f : d);
|
|
@@ -71317,13 +71417,13 @@ function nse(e, t, n) {
|
|
|
71317
71417
|
return C === 92 || C === 124 ? (e.consume(C), d) : d(C);
|
|
71318
71418
|
}
|
|
71319
71419
|
function m(C) {
|
|
71320
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(C) : (e.enter("tableDelimiterRow"), o = !1,
|
|
71420
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(C) : (e.enter("tableDelimiterRow"), o = !1, gt(C) ? xt(e, h, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : h(C));
|
|
71321
71421
|
}
|
|
71322
71422
|
function h(C) {
|
|
71323
71423
|
return C === 45 || C === 58 ? b(C) : C === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(C), e.exit("tableCellDivider"), g) : A(C);
|
|
71324
71424
|
}
|
|
71325
71425
|
function g(C) {
|
|
71326
|
-
return
|
|
71426
|
+
return gt(C) ? xt(e, b, "whitespace")(C) : b(C);
|
|
71327
71427
|
}
|
|
71328
71428
|
function b(C) {
|
|
71329
71429
|
return C === 58 ? (s += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(C), e.exit("tableDelimiterMarker"), y) : C === 45 ? (s += 1, y(C)) : C === null || nt(C) ? T(C) : A(C);
|
|
@@ -71335,7 +71435,7 @@ function nse(e, t, n) {
|
|
|
71335
71435
|
return C === 45 ? (e.consume(C), S) : C === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(C), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(C));
|
|
71336
71436
|
}
|
|
71337
71437
|
function w(C) {
|
|
71338
|
-
return
|
|
71438
|
+
return gt(C) ? xt(e, T, "whitespace")(C) : T(C);
|
|
71339
71439
|
}
|
|
71340
71440
|
function T(C) {
|
|
71341
71441
|
return C === 124 ? h(C) : C === null || nt(C) ? !o || a !== s ? A(C) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(C)) : A(C);
|
|
@@ -71347,7 +71447,7 @@ function nse(e, t, n) {
|
|
|
71347
71447
|
return e.enter("tableRow"), R(C);
|
|
71348
71448
|
}
|
|
71349
71449
|
function R(C) {
|
|
71350
|
-
return C === 124 ? (e.enter("tableCellDivider"), e.consume(C), e.exit("tableCellDivider"), R) : C === null || nt(C) ? (e.exit("tableRow"), t(C)) :
|
|
71450
|
+
return C === 124 ? (e.enter("tableCellDivider"), e.consume(C), e.exit("tableCellDivider"), R) : C === null || nt(C) ? (e.exit("tableRow"), t(C)) : gt(C) ? xt(e, R, "whitespace")(C) : (e.enter("data"), D(C));
|
|
71351
71451
|
}
|
|
71352
71452
|
function D(C) {
|
|
71353
71453
|
return C === null || C === 124 || At(C) ? (e.exit("data"), R(C)) : (e.consume(C), C === 92 ? L : D);
|
|
@@ -71442,7 +71542,7 @@ function sse(e, t, n) {
|
|
|
71442
71542
|
return c === 93 ? (e.enter("taskListCheckMarker"), e.consume(c), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), l) : n(c);
|
|
71443
71543
|
}
|
|
71444
71544
|
function l(c) {
|
|
71445
|
-
return nt(c) ? t(c) :
|
|
71545
|
+
return nt(c) ? t(c) : gt(c) ? e.check({
|
|
71446
71546
|
tokenize: ose
|
|
71447
71547
|
}, t, n)(c) : n(c);
|
|
71448
71548
|
}
|
|
@@ -71594,7 +71694,7 @@ const Ese = /* @__PURE__ */ we.forwardRef((e, t) => {
|
|
|
71594
71694
|
var l = e.skipHtml, c = l === void 0 ? !0 : l, u = e.onScroll, p = e.onMouseOver, d = e.pluginsFilter;
|
|
71595
71695
|
e.rehypeRewrite;
|
|
71596
71696
|
var f = e.wrapperElement, m = f === void 0 ? {} : f, h = e.warpperElement, g = h === void 0 ? {} : h, b = e.urlTransform, y = nl(e, yse), S = we.useRef(null);
|
|
71597
|
-
ON(t, () =>
|
|
71697
|
+
ON(t, () => ht({}, e, {
|
|
71598
71698
|
mdp: S
|
|
71599
71699
|
}), [S, e]);
|
|
71600
71700
|
var w = (r || "") + " " + (a || "");
|
|
@@ -71603,15 +71703,15 @@ const Ese = /* @__PURE__ */ we.forwardRef((e, t) => {
|
|
|
71603
71703
|
allowElement: (D, L, C) => y.allowElement ? y.allowElement(D, L, C) : /^[A-Za-z0-9]+$/.test(D.tagName)
|
|
71604
71704
|
};
|
|
71605
71705
|
c || T.push(lD);
|
|
71606
|
-
var N = [fse, ...y.remarkPlugins || [], use], R =
|
|
71607
|
-
return /* @__PURE__ */ i.jsx("div",
|
|
71706
|
+
var N = [fse, ...y.remarkPlugins || [], use], R = ht({}, g, m);
|
|
71707
|
+
return /* @__PURE__ */ i.jsx("div", ht({
|
|
71608
71708
|
ref: S,
|
|
71609
71709
|
onScroll: u,
|
|
71610
71710
|
onMouseOver: p
|
|
71611
71711
|
}, R, {
|
|
71612
71712
|
className: w,
|
|
71613
71713
|
style: o,
|
|
71614
|
-
children: /* @__PURE__ */ i.jsx(Zre,
|
|
71714
|
+
children: /* @__PURE__ */ i.jsx(Zre, ht({}, A, y, {
|
|
71615
71715
|
skipHtml: !c,
|
|
71616
71716
|
urlTransform: b || xse,
|
|
71617
71717
|
rehypePlugins: d ? d("rehype", T) : T,
|
|
@@ -71623,7 +71723,7 @@ const Ese = /* @__PURE__ */ we.forwardRef((e, t) => {
|
|
|
71623
71723
|
var vse = function(t) {
|
|
71624
71724
|
return (n) => {
|
|
71625
71725
|
jn(n, (r) => {
|
|
71626
|
-
r.type === "element" && r.tagName === "code" && r.data && r.data.meta && (r.properties =
|
|
71726
|
+
r.type === "element" && r.tagName === "code" && r.data && r.data.meta && (r.properties = ht({}, r.properties, {
|
|
71627
71727
|
"data-meta": String(r.data.meta)
|
|
71628
71728
|
}));
|
|
71629
71729
|
});
|
|
@@ -71927,7 +72027,7 @@ function Pse(e) {
|
|
|
71927
72027
|
var Fse = (e, t) => (n, r, a) => {
|
|
71928
72028
|
if (n.type === "element" && a && a.type === "root" && /h(1|2|3|4|5|6)/.test(n.tagName)) {
|
|
71929
72029
|
var s = n.children && n.children[0];
|
|
71930
|
-
s && s.properties && s.properties.ariaHidden === "true" && (s.properties =
|
|
72030
|
+
s && s.properties && s.properties.ariaHidden === "true" && (s.properties = ht({
|
|
71931
72031
|
class: "anchor"
|
|
71932
72032
|
}, s.properties), s.children = [Mse]);
|
|
71933
72033
|
}
|
|
@@ -71945,7 +72045,7 @@ const Use = /* @__PURE__ */ we.forwardRef((e, t) => {
|
|
|
71945
72045
|
}], ...e.rehypePlugins || [], [o2, {
|
|
71946
72046
|
ignoreMissing: !0
|
|
71947
72047
|
}]];
|
|
71948
|
-
return /* @__PURE__ */ i.jsx(Ese,
|
|
72048
|
+
return /* @__PURE__ */ i.jsx(Ese, ht({}, e, {
|
|
71949
72049
|
rehypePlugins: r,
|
|
71950
72050
|
ref: t
|
|
71951
72051
|
}));
|
|
@@ -73003,7 +73103,7 @@ function nle(e) {
|
|
|
73003
73103
|
}
|
|
73004
73104
|
const rle = RD().use(eoe).use(nle).freeze();
|
|
73005
73105
|
function ale(e, t) {
|
|
73006
|
-
return
|
|
73106
|
+
return ht({}, e, t);
|
|
73007
73107
|
}
|
|
73008
73108
|
var Fi = /* @__PURE__ */ we.createContext({
|
|
73009
73109
|
markdown: ""
|
|
@@ -73047,7 +73147,7 @@ function sle(e) {
|
|
|
73047
73147
|
}
|
|
73048
73148
|
function lO(e, t) {
|
|
73049
73149
|
return e === void 0 && (e = []), t === void 0 && (t = {}), e.forEach((n) => {
|
|
73050
|
-
n.children && Array.isArray(n.children) ? t =
|
|
73150
|
+
n.children && Array.isArray(n.children) ? t = ht({}, t, lO(n.children || [])) : n.keyCommand && n.shortcuts && n.execute && (t[n.shortcuts.toLocaleLowerCase()] = n);
|
|
73051
73151
|
}), t;
|
|
73052
73152
|
}
|
|
73053
73153
|
function cO(e, t, n, r, a) {
|
|
@@ -73399,7 +73499,7 @@ function ple(e) {
|
|
|
73399
73499
|
if (e == null) throw new TypeError("Cannot destructure " + e);
|
|
73400
73500
|
}
|
|
73401
73501
|
var fle = (e, t) => {
|
|
73402
|
-
var n =
|
|
73502
|
+
var n = ht({
|
|
73403
73503
|
children: e,
|
|
73404
73504
|
icon: /* @__PURE__ */ i.jsx("svg", {
|
|
73405
73505
|
width: "12",
|
|
@@ -73416,8 +73516,8 @@ var fle = (e, t) => {
|
|
|
73416
73516
|
keyCommand: "group"
|
|
73417
73517
|
});
|
|
73418
73518
|
return Array.isArray(n.children) && (n.children = n.children.map((r) => {
|
|
73419
|
-
var a =
|
|
73420
|
-
return a.parent = n,
|
|
73519
|
+
var a = ht({}, (ple(r), r));
|
|
73520
|
+
return a.parent = n, ht({}, a);
|
|
73421
73521
|
})), n;
|
|
73422
73522
|
}, mle = {
|
|
73423
73523
|
name: "hr",
|
|
@@ -73881,7 +73981,7 @@ function Gs(e) {
|
|
|
73881
73981
|
suffix: s
|
|
73882
73982
|
});
|
|
73883
73983
|
}
|
|
73884
|
-
|
|
73984
|
+
ht({}, fO, {
|
|
73885
73985
|
icon: /* @__PURE__ */ i.jsx("svg", {
|
|
73886
73986
|
width: "12",
|
|
73887
73987
|
height: "12",
|
|
@@ -74134,7 +74234,7 @@ class xv {
|
|
|
74134
74234
|
return this.textArea ? Hu(this.textArea) : !1;
|
|
74135
74235
|
}
|
|
74136
74236
|
executeCommand(t, n, r, a) {
|
|
74137
|
-
t.execute && t.execute(
|
|
74237
|
+
t.execute && t.execute(ht({
|
|
74138
74238
|
command: t
|
|
74139
74239
|
}, Hu(this.textArea)), this.textApi, n, r, a);
|
|
74140
74240
|
}
|
|
@@ -74284,7 +74384,7 @@ function Gle(e) {
|
|
|
74284
74384
|
};
|
|
74285
74385
|
return Ue(() => (b.current && b.current.addEventListener("keydown", w), () => {
|
|
74286
74386
|
b.current && b.current.removeEventListener("keydown", w);
|
|
74287
|
-
}), []), /* @__PURE__ */ i.jsx("textarea",
|
|
74387
|
+
}), []), /* @__PURE__ */ i.jsx("textarea", ht({
|
|
74288
74388
|
autoComplete: "off",
|
|
74289
74389
|
autoCorrect: "off",
|
|
74290
74390
|
autoCapitalize: "off",
|
|
@@ -74307,7 +74407,7 @@ function Wle(e) {
|
|
|
74307
74407
|
var o = s || {}, l = o.prefixCls, c = o.className, u = o.onScroll, p = o.renderTextarea, d = nl(o, Vle), f = xi(Fi), m = f.markdown, h = f.scrollTop, g = f.commands, b = f.minHeight, y = f.highlightEnable, S = f.extraCommands, w = f.dispatch, T = we.useRef(null), A = we.useRef(), N = /* @__PURE__ */ we.createRef();
|
|
74308
74408
|
Ue(() => {
|
|
74309
74409
|
var D = {};
|
|
74310
|
-
N.current && (D.textareaWarp = N.current || void 0, N.current.scrollTop = h || 0), w && w(
|
|
74410
|
+
N.current && (D.textareaWarp = N.current || void 0, N.current.scrollTop = h || 0), w && w(ht({}, D));
|
|
74311
74411
|
}, []), Ue(() => {
|
|
74312
74412
|
if (T.current && w) {
|
|
74313
74413
|
var D = new xv(T.current);
|
|
@@ -74330,7 +74430,7 @@ function Wle(e) {
|
|
|
74330
74430
|
style: r ? {
|
|
74331
74431
|
minHeight: b
|
|
74332
74432
|
} : void 0,
|
|
74333
|
-
children: p ? /* @__PURE__ */ we.cloneElement(p(
|
|
74433
|
+
children: p ? /* @__PURE__ */ we.cloneElement(p(ht({}, d, {
|
|
74334
74434
|
value: m,
|
|
74335
74435
|
autoComplete: "off",
|
|
74336
74436
|
autoCorrect: "off",
|
|
@@ -74355,7 +74455,7 @@ function Wle(e) {
|
|
|
74355
74455
|
}) : /* @__PURE__ */ i.jsxs(LN, {
|
|
74356
74456
|
children: [n && y && /* @__PURE__ */ i.jsx(n, {
|
|
74357
74457
|
prefixCls: l
|
|
74358
|
-
}), /* @__PURE__ */ i.jsx(Gle,
|
|
74458
|
+
}), /* @__PURE__ */ i.jsx(Gle, ht({
|
|
74359
74459
|
prefixCls: l
|
|
74360
74460
|
}, d, {
|
|
74361
74461
|
style: R
|
|
@@ -74375,7 +74475,7 @@ function Yle(e) {
|
|
|
74375
74475
|
() => /* @__PURE__ */ i.jsx("div", {
|
|
74376
74476
|
className: n + "-toolbar-child " + (r && c[r] ? "active" : ""),
|
|
74377
74477
|
onClick: (u) => u.stopPropagation(),
|
|
74378
|
-
children: Array.isArray(a) ? /* @__PURE__ */ i.jsx(mO,
|
|
74478
|
+
children: Array.isArray(a) ? /* @__PURE__ */ i.jsx(mO, ht({
|
|
74379
74479
|
commands: a
|
|
74380
74480
|
}, e, {
|
|
74381
74481
|
isChild: !0
|
|
@@ -74390,13 +74490,13 @@ function pN(e) {
|
|
|
74390
74490
|
function f(m, h) {
|
|
74391
74491
|
if (p) {
|
|
74392
74492
|
var g = {
|
|
74393
|
-
barPopup:
|
|
74493
|
+
barPopup: ht({}, l)
|
|
74394
74494
|
};
|
|
74395
74495
|
m.keyCommand === "preview" && (g.preview = m.value), m.keyCommand === "fullscreen" && (g.fullscreen = !a), e.commands && m.keyCommand === "group" ? e.commands.forEach((b) => {
|
|
74396
74496
|
h === b.groupName ? g.barPopup[h] = !0 : b.keyCommand && (g.barPopup[b.groupName] = !1);
|
|
74397
74497
|
}) : (h || m.parent) && Object.keys(g.barPopup || {}).forEach((b) => {
|
|
74398
74498
|
g.barPopup[b] = !1;
|
|
74399
|
-
}), Object.keys(g).length && p(
|
|
74499
|
+
}), Object.keys(g).length && p(ht({}, g)), u && u.executeCommand(m);
|
|
74400
74500
|
}
|
|
74401
74501
|
}
|
|
74402
74502
|
return Ue(() => {
|
|
@@ -74404,7 +74504,7 @@ function pN(e) {
|
|
|
74404
74504
|
}, [a, d, n]), /* @__PURE__ */ i.jsx("ul", {
|
|
74405
74505
|
children: (e.commands || []).map((m, h) => {
|
|
74406
74506
|
if (m.keyCommand === "divider")
|
|
74407
|
-
return /* @__PURE__ */ i.jsx("li",
|
|
74507
|
+
return /* @__PURE__ */ i.jsx("li", ht({}, m.liProps, {
|
|
74408
74508
|
className: t + "-toolbar-divider"
|
|
74409
74509
|
}), h);
|
|
74410
74510
|
if (!m.keyCommand) return /* @__PURE__ */ i.jsx(LN, {}, h);
|
|
@@ -74417,9 +74517,9 @@ function pN(e) {
|
|
|
74417
74517
|
}),
|
|
74418
74518
|
dispatch: p
|
|
74419
74519
|
}) : void 0, y = l && s && s === "preview" && !/(preview|fullscreen)/.test(m.keyCommand), S = c?.toolbar || m.render, w = S && typeof S == "function" ? S(m, !!y, f, h) : null;
|
|
74420
|
-
return /* @__PURE__ */ i.jsxs("li",
|
|
74520
|
+
return /* @__PURE__ */ i.jsxs("li", ht({}, m.liProps, {
|
|
74421
74521
|
className: g ? "active" : "",
|
|
74422
|
-
children: [w && /* @__PURE__ */ we.isValidElement(w) && w, !w && !m.buttonProps && m.icon, !w && m.buttonProps && /* @__PURE__ */ we.createElement("button",
|
|
74522
|
+
children: [w && /* @__PURE__ */ we.isValidElement(w) && w, !w && !m.buttonProps && m.icon, !w && m.buttonProps && /* @__PURE__ */ we.createElement("button", ht({
|
|
74423
74523
|
type: "button",
|
|
74424
74524
|
key: h,
|
|
74425
74525
|
disabled: y,
|
|
@@ -74444,9 +74544,9 @@ function mO(e) {
|
|
|
74444
74544
|
var t = e, n = t.prefixCls, r = t.isChild, a = t.className, s = xi(Fi), o = s.commands, l = s.extraCommands;
|
|
74445
74545
|
return /* @__PURE__ */ i.jsxs("div", {
|
|
74446
74546
|
className: n + "-toolbar " + a,
|
|
74447
|
-
children: [/* @__PURE__ */ i.jsx(pN,
|
|
74547
|
+
children: [/* @__PURE__ */ i.jsx(pN, ht({}, e, {
|
|
74448
74548
|
commands: e.commands || o || []
|
|
74449
|
-
})), !r && /* @__PURE__ */ i.jsx(pN,
|
|
74549
|
+
})), !r && /* @__PURE__ */ i.jsx(pN, ht({}, e, {
|
|
74450
74550
|
commands: l || []
|
|
74451
74551
|
}))]
|
|
74452
74552
|
});
|
|
@@ -74541,12 +74641,12 @@ function Qle(e) {
|
|
|
74541
74641
|
fullscreen: j,
|
|
74542
74642
|
barPopup: {}
|
|
74543
74643
|
}), He = ke[0], Ge = ke[1], le = vt(null), Re = vt(null), Ze = vt(R);
|
|
74544
|
-
ON(c, () =>
|
|
74644
|
+
ON(c, () => ht({}, He, {
|
|
74545
74645
|
container: le.current,
|
|
74546
74646
|
dispatch: Ge
|
|
74547
74647
|
})), Et(() => Ze.current = R, [R]), Ue(() => {
|
|
74548
74648
|
var be = {};
|
|
74549
|
-
le.current && (be.container = le.current || void 0), be.markdown = m || "", be.barPopup = {}, Ge && Ge(
|
|
74649
|
+
le.current && (be.container = le.current || void 0), be.markdown = m || "", be.barPopup = {}, Ge && Ge(ht({}, He, be));
|
|
74550
74650
|
}, []);
|
|
74551
74651
|
var rt = [f, "wmde-markdown-var", y ? d + "-" + y : null, d, He.preview ? d + "-show-" + He.preview : null, He.fullscreen ? d + "-fullscreen" : null].filter(Boolean).join(" ").trim();
|
|
74552
74652
|
Et(() => m !== He.markdown && Ge({
|
|
@@ -74601,7 +74701,7 @@ function Qle(e) {
|
|
|
74601
74701
|
}, de = d + "-preview " + (H.className || ""), Ae = (be) => he(be, "preview"), _ = Et(() => /* @__PURE__ */ i.jsx("div", {
|
|
74602
74702
|
ref: Re,
|
|
74603
74703
|
className: de,
|
|
74604
|
-
children: /* @__PURE__ */ i.jsx(r,
|
|
74704
|
+
children: /* @__PURE__ */ i.jsx(r, ht({}, H, {
|
|
74605
74705
|
onScroll: Ae,
|
|
74606
74706
|
source: He.markdown || ""
|
|
74607
74707
|
}))
|
|
@@ -74612,16 +74712,16 @@ function Qle(e) {
|
|
|
74612
74712
|
onScroll: Ae,
|
|
74613
74713
|
children: X
|
|
74614
74714
|
}));
|
|
74615
|
-
var ge =
|
|
74715
|
+
var ge = ht({}, Tt.style, {
|
|
74616
74716
|
height: He.height || "100%"
|
|
74617
74717
|
}), oe = () => Ge({
|
|
74618
|
-
barPopup:
|
|
74718
|
+
barPopup: ht({}, Zle(He.barPopup))
|
|
74619
74719
|
}), ye = (be) => Ge({
|
|
74620
74720
|
height: be
|
|
74621
74721
|
}), Te = (be) => {
|
|
74622
74722
|
if (te && te(be.target.value, be, He), k && k.onChange && k.onChange(be), He.textarea && He.textarea instanceof HTMLTextAreaElement && _e) {
|
|
74623
74723
|
var Pe = new xv(He.textarea), xe = Pe.getState() || {};
|
|
74624
|
-
_e(
|
|
74724
|
+
_e(ht({}, xe, {
|
|
74625
74725
|
lineCount: be.target.value.split(`
|
|
74626
74726
|
`).length,
|
|
74627
74727
|
length: be.target.value.length
|
|
@@ -74629,10 +74729,10 @@ function Qle(e) {
|
|
|
74629
74729
|
}
|
|
74630
74730
|
};
|
|
74631
74731
|
return /* @__PURE__ */ i.jsx(Fi.Provider, {
|
|
74632
|
-
value:
|
|
74732
|
+
value: ht({}, He, {
|
|
74633
74733
|
dispatch: Ge
|
|
74634
74734
|
}),
|
|
74635
|
-
children: /* @__PURE__ */ i.jsxs("div",
|
|
74735
|
+
children: /* @__PURE__ */ i.jsxs("div", ht({
|
|
74636
74736
|
ref: le,
|
|
74637
74737
|
className: rt
|
|
74638
74738
|
}, Tt, {
|
|
@@ -74646,7 +74746,7 @@ function Qle(e) {
|
|
|
74646
74746
|
placement: "top"
|
|
74647
74747
|
}), /* @__PURE__ */ i.jsxs("div", {
|
|
74648
74748
|
className: d + "-content",
|
|
74649
|
-
children: [/(edit|live)/.test(He.preview || "") && /* @__PURE__ */ i.jsx(a,
|
|
74749
|
+
children: [/(edit|live)/.test(He.preview || "") && /* @__PURE__ */ i.jsx(a, ht({
|
|
74650
74750
|
className: d + "-input",
|
|
74651
74751
|
prefixCls: d,
|
|
74652
74752
|
autoFocus: Q
|