@surrealdb/ui 3.0.0-beta.5 → 3.0.0-beta.6
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/ui.js +103 -104
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -2,13 +2,13 @@ import { Check as Le, Warning as Pe, Info as lt, Star as Il, Copy as Pn, Chevron
|
|
|
2
2
|
import { AI as jG, API as CG, Account as GG, AccountPlus as EG, AccountSecure as DG, Alert as AG, ArrowDown as FG, ArrowDownFat as NG, ArrowEnter as LG, ArrowLeft as IG, ArrowLeftFat as BG, ArrowUp as MG, Atom as KG, Auth as HG, AuthKeyhole as JG, AutoFix as OE, Balance as eE, Book as tE, BrandBluesky as rE, BrandDev as aE, BrandDiscord as iE, BrandGitHub as nE, BrandInstagram as oE, BrandLinkedin as sE, BrandMedium as lE, BrandReddit as cE, BrandStackOverflow as QE, BrandX as $E, BrandYouTube as uE, BroadcastOff as dE, BroadcastOn as pE, Bucket as XE, Bug as fE, Bullhorn as PE, Business as SE, Calculator as mE, Cancel as hE, Chart as gE, Chat as TE, ChatGPT as wE, ChevronUp as yE, ChevronY as ZE, CircleFilled as _E, Claude as RE, Clock as bE, Cloud as xE, CloudClock as vE, Cog as WE, Combined as kE, Command as VE, Community as YE, Connection as qE, Console as zE, CreditCard as UE, DataSilo as jE, DataTable as CE, Database as GE, DatabaseSecure as EE, Delete as DE, Designer as AE, Discord as FE, DistributedStorage as NE, Dollar as LE, Download as IE, Drag as BE, Earth as ME, Email as KE, ExitToAp as HE, Explorer as JE, Eye as O6, EyeOff as e6, File as t6, Filter as r6, Flag as a6, Floppy as i6, FolderPlus as n6, FolderSecure as o6, Fullscreen as s6, Graphql as l6, Grid as c6, Hammer as Q6, Heart as $6, Help as u6, Home as d6, HomePlus as p6, Inbox as X6, Index as f6, Integration as P6, JSON as S6, Key as m6, KeyboardControl as h6, KeyboardOption as g6, KeyboardShift as T6, LangC as w6, LangDart as y6, LangDotNet as Z6, LangGo as _6, LangJava as R6, LangJavaScript as b6, LangKotlin as x6, LangMojo as v6, LangPHP as W6, LangPython as k6, LangRust as V6, LangSwift as Y6, Laptop as q6, Launch as z6, Live as U6, MCP as j6, MagnifyMinus as C6, MagnifyPlus as G6, Marker as E6, Maximize as D6, Memory as A6, Minimize as F6, Model as N6, ModuleML as L6, Moon as I6, Namespace as B6, Network as M6, Newspaper as K6, Office as H6, Open as J6, OpenFolder as O9, Organization as e9, PackageClosed as t9, Pin as r9, PinOff as a9, Plugin as i9, Power as n9, ProgressClock as o9, Query as s9, Referral as l9, Refresh as c9, Relation as Q9, RelationIn as $9, RelationOut as u9, Restore as d9, Sandbox as p9, Seal as X9, Send as f9, Server as P9, ServerSecure as S9, Sidebar as m9, Sidekick as h9, Spectron as g9, Split as T9, StarPlus as w9, Stop as y9, Studio as Z9, Sun as _9, Surreal as R9, Surrealism as b9, Target as x9, TextBoxMinus as v9, TextBoxPlus as W9, Transfer as k9, Trash as V9, Trend as Y9, Tune as q9, University as z9, Upload as U9, Video as j9, Wrench as C9, Xml as G9 } from "./icons.js";
|
|
3
3
|
import { undo as pp, redo as Co, undoSelection as Xp, redoSelection as fp, history as ec, defaultKeymap as tc, indentWithTab as Pp, insertNewline as Sp } from "@codemirror/commands";
|
|
4
4
|
import { Transaction as mp, EditorState as Ge, EditorSelection as sO, Compartment as Go, Facet as hp, combineConfig as gp, RangeSetBuilder as Tp, StateField as be, StateEffect as $r, Prec as nt, countColumn as Kt, Text as wp, Annotation as yp } from "@codemirror/state";
|
|
5
|
-
import { EditorView as
|
|
5
|
+
import { EditorView as cO, keymap as Ie, lineNumbers as Zp, ViewPlugin as Be, Decoration as PO, highlightSpecialChars as _p, drawSelection as Rp, dropCursor as bp, rectangularSelection as xp, crosshairCursor as vp, highlightActiveLineGutter as Wp, WidgetType as hn } from "@codemirror/view";
|
|
6
6
|
import { useMantineColorScheme as kp, useComputedColorScheme as rc, Center as Vp, Loader as ac, Alert as gn, factory as pO, useProps as rO, useStyles as nO, createVarsResolver as xe, Box as w, getThemeColor as ic, getSize as nc, Badge as ur, Button as Se, Stack as kO, polymorphic as Yp, Tabs as rt, Code as oc, CopyButton as Tn, Tooltip as Me, ActionIcon as UO, Menu as XO, Group as $O, Text as L, ScrollArea as Xa, Divider as wn, Image as Br, Table as ct, Anchor as yn, Paper as Ht, Checkbox as Zn, ModalBaseTitle as qp, CloseButton as sc, ModalBaseBody as zp, Drawer as vi, Portal as lc, Transition as _n, Overlay as Rn, Modal as Mr, TextInput as bn, UnstyledButton as Qt, VisuallyHidden as Up, Skeleton as cc, polymorphicFactory as gt, getFontSize as jp, Select as Qc, TabsList as Cp, TabsTab as Gp, genericFactory as Ep, Title as Dp, Collapse as Ap, Indicator as Fp, Blockquote as Np, Accordion as Lp, Pagination as Ip, SegmentedControl as Bp, Breadcrumbs as Mp, NavLink as Kp, Switch as Hp, RadioIndicator as Jp, Radio as OX, CheckboxIndicator as eX, Combobox as tX, TagsInput as rX, Autocomplete as aX, MultiSelect as iX, Pill as nX, PinInput as oX, PasswordInput as sX, NumberInput as lX, Textarea as cX, InputBase as QX, InputWrapper as $X, Input as uX, Notification as dX, MenuSub as pX, HoverCard as XX, Popover as fX, Kbd as PX, Card as SX, Chip as mX, Avatar as hX, ThemeIcon as gX, rem as tO, defaultVariantColorsResolver as TX, createTheme as wX } from "@mantine/core";
|
|
7
7
|
import { startCompletion as yX, acceptCompletion as ZX, closeBrackets as _X, autocompletion as RX, completionKeymap as bX, closeBracketsKeymap as xX, snippetCompletion as WO, ifNotIn as vX, completeFromList as WX, CompletionContext as kX } from "@codemirror/autocomplete";
|
|
8
|
+
import { HighlightStyle as VX, syntaxHighlighting as YX, getIndentUnit as Eo, indentOnInput as qX, bracketMatching as zX, indentUnit as $c, codeFolding as uc, foldGutter as UX, foldKeymap as jX, foldCode as CX, LRLanguage as dr, indentNodeProp as pr, foldNodeProp as Tt, continuedIndent as ot, foldInside as xn, LanguageSupport as $t, syntaxTree as hO, delimitedIndent as GX, flatIndent as EX, sublanguageProp as dc, defineLanguageFacet as pc, bracketMatchingHandle as DX, foldService as Xc, Language as AX, languageDataProp as FX, LanguageDescription as Wi, ParseContext as NX, StreamLanguage as Na, foldState as Do, ensureSyntaxTree as LX } from "@codemirror/language";
|
|
9
|
+
import { tagHighlighter as ki, tags as d, styleTags as RO, Tag as IX, highlightCode as fc } from "@lezer/highlight";
|
|
8
10
|
import * as DO from "react";
|
|
9
|
-
import
|
|
10
|
-
import { HighlightStyle as UX, syntaxHighlighting as jX, getIndentUnit as Eo, indentOnInput as CX, bracketMatching as GX, indentUnit as fc, codeFolding as Pc, foldGutter as EX, foldKeymap as DX, foldCode as AX, LRLanguage as dr, indentNodeProp as pr, foldNodeProp as Tt, continuedIndent as ot, foldInside as Wn, LanguageSupport as $t, syntaxTree as hO, delimitedIndent as FX, flatIndent as NX, sublanguageProp as Sc, defineLanguageFacet as mc, bracketMatchingHandle as LX, foldService as hc, Language as IX, languageDataProp as BX, LanguageDescription as ki, ParseContext as MX, StreamLanguage as Na, foldState as Do, ensureSyntaxTree as KX } from "@codemirror/language";
|
|
11
|
-
import { tagHighlighter as Vi, tags as d, styleTags as RO, Tag as HX, highlightCode as gc } from "@lezer/highlight";
|
|
11
|
+
import Pc, { useRef as dO, useCallback as jO, useState as B, useMemo as OO, useEffect as SO, useLayoutEffect as Sc, useId as BX, createRef as MX, Children as mc, isValidElement as Vi, Component as KX, useContext as fa, createContext as Ke, Fragment as J, createElement as Jt, memo as vn, cloneElement as HX, useSyncExternalStore as hc, useReducer as gc, use as Wn } from "react";
|
|
12
12
|
import { jsxs as T, Fragment as VO, jsx as u } from "react/jsx-runtime";
|
|
13
13
|
import { LRParser as HO, ExternalTokenizer as H, ContextTracker as Xr, LocalTokenGroup as ut } from "@lezer/lr";
|
|
14
14
|
import { Parser as JX, NodeType as Pa, NodeProp as ae, NodeSet as Tc, parseMixed as Sa, Tree as Ee, NodeWeakMap as wc, IterMode as yc } from "@lezer/common";
|
|
@@ -502,7 +502,7 @@ const df = (O) => Wc(O, -1), pf = (O) => Wc(O, 1), kc = [
|
|
|
502
502
|
function: "var(--surreal-syntax-function)",
|
|
503
503
|
punctuation: "var(--surreal-syntax-punctuation)",
|
|
504
504
|
link: "var(--surreal-syntax-link)"
|
|
505
|
-
}, Or =
|
|
505
|
+
}, Or = VX.define([
|
|
506
506
|
{ tag: d.comment, color: IO.comment },
|
|
507
507
|
{ tag: d.string, color: IO.string },
|
|
508
508
|
{ tag: d.propertyName, color: IO.property },
|
|
@@ -516,10 +516,10 @@ const df = (O) => Wc(O, -1), pf = (O) => Wc(O, 1), kc = [
|
|
|
516
516
|
{ tag: [d.link, d.url], color: IO.link, textDecoration: "underline" }
|
|
517
517
|
]);
|
|
518
518
|
function ff(O = Or) {
|
|
519
|
-
return
|
|
519
|
+
return YX(O, { fallback: !0 });
|
|
520
520
|
}
|
|
521
521
|
function N8(O = Or) {
|
|
522
|
-
return
|
|
522
|
+
return ki(O.specs.map((e) => ({ ...e, class: e.color })));
|
|
523
523
|
}
|
|
524
524
|
function Pf(O) {
|
|
525
525
|
return O && O.__esModule && Object.prototype.hasOwnProperty.call(O, "default") ? O.default : O;
|
|
@@ -553,7 +553,7 @@ function Sf() {
|
|
|
553
553
|
}), La;
|
|
554
554
|
}
|
|
555
555
|
var mf = Sf();
|
|
556
|
-
const hf = /* @__PURE__ */ Pf(mf), gf = () =>
|
|
556
|
+
const hf = /* @__PURE__ */ Pf(mf), gf = () => cO.baseTheme({
|
|
557
557
|
"&": {
|
|
558
558
|
height: "100%"
|
|
559
559
|
},
|
|
@@ -757,7 +757,7 @@ function Tf(O = {}) {
|
|
|
757
757
|
}), R = OO(
|
|
758
758
|
() => ({
|
|
759
759
|
extensions: [
|
|
760
|
-
|
|
760
|
+
cO.updateListener.of(V),
|
|
761
761
|
h.current.of([]),
|
|
762
762
|
y.current.of(n ?? []),
|
|
763
763
|
gf()
|
|
@@ -786,9 +786,8 @@ function Tf(O = {}) {
|
|
|
786
786
|
});
|
|
787
787
|
return SO(() => {
|
|
788
788
|
if (!f.current) return;
|
|
789
|
-
const Z = new
|
|
789
|
+
const Z = new cO({
|
|
790
790
|
parent: f.current,
|
|
791
|
-
scrollTo: lO.scrollIntoView(0),
|
|
792
791
|
state: Ge.create(R)
|
|
793
792
|
});
|
|
794
793
|
return P.current = Z, X(!0), s?.(Z), () => {
|
|
@@ -846,7 +845,7 @@ function wf(O, e, t) {
|
|
|
846
845
|
);
|
|
847
846
|
c && yf(c);
|
|
848
847
|
});
|
|
849
|
-
return
|
|
848
|
+
return Sc(() => {
|
|
850
849
|
!O.find((o) => o.id === r) && O.length > 0 && a(O[0].id);
|
|
851
850
|
}), [i, r];
|
|
852
851
|
}
|
|
@@ -1071,7 +1070,7 @@ function bf(O) {
|
|
|
1071
1070
|
activeDark: "#3C445C"
|
|
1072
1071
|
};
|
|
1073
1072
|
let t = e;
|
|
1074
|
-
return O && (t = Object.assign(Object.assign({}, e), O)),
|
|
1073
|
+
return O && (t = Object.assign(Object.assign({}, e), O)), cO.baseTheme({
|
|
1075
1074
|
"&light": {
|
|
1076
1075
|
"--indent-marker-bg-color": t.light,
|
|
1077
1076
|
"--indent-marker-active-bg-color": t.activeLight
|
|
@@ -1159,8 +1158,8 @@ const kf = {
|
|
|
1159
1158
|
}, M8 = () => [
|
|
1160
1159
|
Vf(),
|
|
1161
1160
|
Wp(),
|
|
1162
|
-
|
|
1163
|
-
|
|
1161
|
+
uc(),
|
|
1162
|
+
UX(),
|
|
1164
1163
|
Wf({
|
|
1165
1164
|
colors: {
|
|
1166
1165
|
light: "var(--surrealist-indent-color)",
|
|
@@ -1174,7 +1173,7 @@ const kf = {
|
|
|
1174
1173
|
kf,
|
|
1175
1174
|
Pp,
|
|
1176
1175
|
...rf,
|
|
1177
|
-
...
|
|
1176
|
+
...jX,
|
|
1178
1177
|
...bX
|
|
1179
1178
|
]),
|
|
1180
1179
|
Ge.allowMultipleSelections.of(!0)
|
|
@@ -1183,8 +1182,8 @@ const kf = {
|
|
|
1183
1182
|
ec({ newGroupDelay: 250 }),
|
|
1184
1183
|
Rp(),
|
|
1185
1184
|
bp(),
|
|
1186
|
-
|
|
1187
|
-
|
|
1185
|
+
qX(),
|
|
1186
|
+
zX(),
|
|
1188
1187
|
_X(),
|
|
1189
1188
|
RX(),
|
|
1190
1189
|
xp(),
|
|
@@ -1194,8 +1193,8 @@ const kf = {
|
|
|
1194
1193
|
wholeWords: !0
|
|
1195
1194
|
}),
|
|
1196
1195
|
Ie.of([...xX, ...kc, ...tc]),
|
|
1197
|
-
|
|
1198
|
-
|
|
1196
|
+
$c.of(" "),
|
|
1197
|
+
cO.lineWrapping
|
|
1199
1198
|
];
|
|
1200
1199
|
function K8(O, e) {
|
|
1201
1200
|
if (e <= 0) return;
|
|
@@ -1222,7 +1221,7 @@ function K8(O, e) {
|
|
|
1222
1221
|
const l = t.lineAt(o).number;
|
|
1223
1222
|
O.dispatch({
|
|
1224
1223
|
selection: { anchor: t.line(l).from }
|
|
1225
|
-
}),
|
|
1224
|
+
}), CX(O);
|
|
1226
1225
|
}
|
|
1227
1226
|
} else (s === "}" || s === "]") && (a = Math.max(0, a - 1));
|
|
1228
1227
|
}
|
|
@@ -1311,7 +1310,7 @@ function Uf(O, e, t) {
|
|
|
1311
1310
|
}), r;
|
|
1312
1311
|
}
|
|
1313
1312
|
const jf = ({ code: O }) => {
|
|
1314
|
-
const e = dO(null), [t, r] = B(null), [a, i] = B(!0), n =
|
|
1313
|
+
const e = dO(null), [t, r] = B(null), [a, i] = B(!0), n = BX();
|
|
1315
1314
|
return rc("dark"), SO(() => {
|
|
1316
1315
|
const o = e.current;
|
|
1317
1316
|
if (!o) return;
|
|
@@ -1971,7 +1970,7 @@ const fP = "_root_n9qcn_24", PP = "_frame_n9qcn_28", jc = {
|
|
|
1971
1970
|
ma.classes = jc;
|
|
1972
1971
|
ma.displayName = "@surrealdb/ui/SurrealistMini";
|
|
1973
1972
|
function J8() {
|
|
1974
|
-
const O =
|
|
1973
|
+
const O = MX(), e = new mP(O);
|
|
1975
1974
|
return [O, e];
|
|
1976
1975
|
}
|
|
1977
1976
|
class mP {
|
|
@@ -2147,9 +2146,9 @@ function vP({
|
|
|
2147
2146
|
id: r,
|
|
2148
2147
|
style: a
|
|
2149
2148
|
}) {
|
|
2150
|
-
const i =
|
|
2151
|
-
const s =
|
|
2152
|
-
if (
|
|
2149
|
+
const i = mc.map(e, (n, o) => {
|
|
2150
|
+
const s = Vi(n) ? n.props.children : n, l = /* @__PURE__ */ u(bP, { children: s });
|
|
2151
|
+
if (Vi(n)) {
|
|
2153
2152
|
const c = n.props;
|
|
2154
2153
|
return {
|
|
2155
2154
|
label: c.label || `Tab ${o + 1}`,
|
|
@@ -2272,7 +2271,7 @@ function zP() {
|
|
|
2272
2271
|
return [
|
|
2273
2272
|
Ec,
|
|
2274
2273
|
Be.fromClass(qP),
|
|
2275
|
-
|
|
2274
|
+
cO.editorAttributes.of(
|
|
2276
2275
|
(O) => Dc(O.state) ? { "data-markdown-ready": "true" } : null
|
|
2277
2276
|
)
|
|
2278
2277
|
];
|
|
@@ -3048,7 +3047,7 @@ class ha extends JX {
|
|
|
3048
3047
|
id: h,
|
|
3049
3048
|
name: f,
|
|
3050
3049
|
props: y && [[ae.group, y]]
|
|
3051
|
-
})), m && (p || (p = {}), Array.isArray(m) || m instanceof
|
|
3050
|
+
})), m && (p || (p = {}), Array.isArray(m) || m instanceof IX ? p[f] = m : Object.assign(p, m));
|
|
3052
3051
|
}
|
|
3053
3052
|
r = new Tc($), p && (r = r.extend(RO(p)));
|
|
3054
3053
|
}
|
|
@@ -5116,7 +5115,7 @@ const _m = (O) => (e) => {
|
|
|
5116
5115
|
Declaration: /* @__PURE__ */ ot()
|
|
5117
5116
|
}),
|
|
5118
5117
|
/* @__PURE__ */ Tt.add({
|
|
5119
|
-
"Block KeyframeList":
|
|
5118
|
+
"Block KeyframeList": xn
|
|
5120
5119
|
})
|
|
5121
5120
|
]
|
|
5122
5121
|
}),
|
|
@@ -5465,12 +5464,12 @@ const re = /* @__PURE__ */ dr.define({
|
|
|
5465
5464
|
/* @__PURE__ */ pr.add({
|
|
5466
5465
|
IfStatement: /* @__PURE__ */ ot({ except: /^\s*({|else\b)/ }),
|
|
5467
5466
|
TryStatement: /* @__PURE__ */ ot({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
5468
|
-
LabeledStatement:
|
|
5467
|
+
LabeledStatement: EX,
|
|
5469
5468
|
SwitchBody: (O) => {
|
|
5470
5469
|
let e = O.textAfter, t = /^\s*\}/.test(e), r = /^\s*(case|default)\b/.test(e);
|
|
5471
5470
|
return O.baseIndent + (t ? 0 : r ? 1 : 2) * O.unit;
|
|
5472
5471
|
},
|
|
5473
|
-
Block: /* @__PURE__ */
|
|
5472
|
+
Block: /* @__PURE__ */ GX({ closing: "}" }),
|
|
5474
5473
|
ArrowFunction: (O) => O.baseIndent + O.unit,
|
|
5475
5474
|
"TemplateString BlockComment": () => null,
|
|
5476
5475
|
"Statement Property": /* @__PURE__ */ ot({ except: /^\s*{/ }),
|
|
@@ -5487,7 +5486,7 @@ const re = /* @__PURE__ */ dr.define({
|
|
|
5487
5486
|
}
|
|
5488
5487
|
}),
|
|
5489
5488
|
/* @__PURE__ */ Tt.add({
|
|
5490
|
-
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":
|
|
5489
|
+
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": xn,
|
|
5491
5490
|
BlockComment(O) {
|
|
5492
5491
|
return { from: O.from + 2, to: O.to - 2 };
|
|
5493
5492
|
},
|
|
@@ -5514,13 +5513,13 @@ const re = /* @__PURE__ */ dr.define({
|
|
|
5514
5513
|
}
|
|
5515
5514
|
}), qQ = {
|
|
5516
5515
|
test: (O) => /^JSX/.test(O.name),
|
|
5517
|
-
facet: /* @__PURE__ */
|
|
5516
|
+
facet: /* @__PURE__ */ pc({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
|
|
5518
5517
|
}, zQ = /* @__PURE__ */ re.configure({ dialect: "ts" }, "typescript"), UQ = /* @__PURE__ */ re.configure({
|
|
5519
5518
|
dialect: "jsx",
|
|
5520
|
-
props: [/* @__PURE__ */
|
|
5519
|
+
props: [/* @__PURE__ */ dc.add((O) => O.isTop ? [qQ] : void 0)]
|
|
5521
5520
|
}), jQ = /* @__PURE__ */ re.configure({
|
|
5522
5521
|
dialect: "jsx ts",
|
|
5523
|
-
props: [/* @__PURE__ */
|
|
5522
|
+
props: [/* @__PURE__ */ dc.add((O) => O.isTop ? [qQ] : void 0)]
|
|
5524
5523
|
}, "typescript");
|
|
5525
5524
|
let CQ = (O) => ({ label: O, type: "keyword" });
|
|
5526
5525
|
const GQ = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(CQ), ch = /* @__PURE__ */ GQ.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(CQ));
|
|
@@ -5551,7 +5550,7 @@ function Zs(O, e, t = O.length) {
|
|
|
5551
5550
|
return O.sliceString(r.from, Math.min(r.to, t));
|
|
5552
5551
|
return "";
|
|
5553
5552
|
}
|
|
5554
|
-
const uh = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), dh = /* @__PURE__ */
|
|
5553
|
+
const uh = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), dh = /* @__PURE__ */ cO.inputHandler.of((O, e, t, r, a) => {
|
|
5555
5554
|
if ((uh ? O.composing : O.compositionStarted) || O.state.readOnly || e != t || r != ">" && r != "/" || !re.isActiveAt(O.state, e, -1))
|
|
5556
5555
|
return !1;
|
|
5557
5556
|
let i = a(), { state: n } = i, o = n.changeByRange((s) => {
|
|
@@ -6183,7 +6182,7 @@ const hh = /* @__PURE__ */ re.parser.configure({ top: "SingleExpression" }), LQ
|
|
|
6183
6182
|
return !e || e.name != "OpenTag" ? null : { from: e.to, to: t.name == "CloseTag" ? t.from : O.to };
|
|
6184
6183
|
}
|
|
6185
6184
|
}),
|
|
6186
|
-
/* @__PURE__ */
|
|
6185
|
+
/* @__PURE__ */ DX.add({
|
|
6187
6186
|
"OpenTag CloseTag": (O) => O.getChild("TagName")
|
|
6188
6187
|
})
|
|
6189
6188
|
]
|
|
@@ -6207,7 +6206,7 @@ function gh(O = {}) {
|
|
|
6207
6206
|
bm().support
|
|
6208
6207
|
]);
|
|
6209
6208
|
}
|
|
6210
|
-
const bs = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), Th = /* @__PURE__ */
|
|
6209
|
+
const bs = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), Th = /* @__PURE__ */ cO.inputHandler.of((O, e, t, r, a) => {
|
|
6211
6210
|
if (O.composing || O.state.readOnly || e != t || r != ">" && r != "/" || !Dr.isActiveAt(O.state, e, -1))
|
|
6212
6211
|
return !1;
|
|
6213
6212
|
let i = a(), { state: n } = i, o = n.changeByRange((s) => {
|
|
@@ -6238,14 +6237,14 @@ const bs = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
|
|
|
6238
6237
|
scrollIntoView: !0
|
|
6239
6238
|
})
|
|
6240
6239
|
]), !0);
|
|
6241
|
-
}), MQ = /* @__PURE__ */
|
|
6240
|
+
}), MQ = /* @__PURE__ */ pc({ commentTokens: { block: { open: "<!--", close: "-->" } } }), KQ = /* @__PURE__ */ new ae(), HQ = /* @__PURE__ */ QQ.configure({
|
|
6242
6241
|
props: [
|
|
6243
6242
|
/* @__PURE__ */ Tt.add((O) => !O.is("Block") || O.is("Document") || Fi(O) != null || wh(O) ? void 0 : (e, t) => ({ from: t.doc.lineAt(e.from).to, to: e.to })),
|
|
6244
6243
|
/* @__PURE__ */ KQ.add(Fi),
|
|
6245
6244
|
/* @__PURE__ */ pr.add({
|
|
6246
6245
|
Document: () => null
|
|
6247
6246
|
}),
|
|
6248
|
-
/* @__PURE__ */
|
|
6247
|
+
/* @__PURE__ */ FX.add({
|
|
6249
6248
|
Document: MQ
|
|
6250
6249
|
})
|
|
6251
6250
|
]
|
|
@@ -6267,7 +6266,7 @@ function yh(O, e) {
|
|
|
6267
6266
|
}
|
|
6268
6267
|
return t.to;
|
|
6269
6268
|
}
|
|
6270
|
-
const Zh = /* @__PURE__ */
|
|
6269
|
+
const Zh = /* @__PURE__ */ Xc.of((O, e, t) => {
|
|
6271
6270
|
for (let r = hO(O).resolveInner(t, -1); r && !(r.from < e); r = r.parent) {
|
|
6272
6271
|
let a = r.type.prop(KQ);
|
|
6273
6272
|
if (a == null)
|
|
@@ -6279,7 +6278,7 @@ const Zh = /* @__PURE__ */ hc.of((O, e, t) => {
|
|
|
6279
6278
|
return null;
|
|
6280
6279
|
});
|
|
6281
6280
|
function Bn(O) {
|
|
6282
|
-
return new
|
|
6281
|
+
return new AX(MQ, O, [], "markdown");
|
|
6283
6282
|
}
|
|
6284
6283
|
const _h = /* @__PURE__ */ Bn(HQ), Rh = /* @__PURE__ */ HQ.configure([uQ, lS, sS, cS, {
|
|
6285
6284
|
props: [
|
|
@@ -6292,8 +6291,8 @@ function bh(O, e) {
|
|
|
6292
6291
|
return (t) => {
|
|
6293
6292
|
if (t && O) {
|
|
6294
6293
|
let r = null;
|
|
6295
|
-
if (t = /\S*/.exec(t)[0], typeof O == "function" ? r = O(t) : r =
|
|
6296
|
-
return r.support ? r.support.language.parser :
|
|
6294
|
+
if (t = /\S*/.exec(t)[0], typeof O == "function" ? r = O(t) : r = Wi.matchLanguageName(O, t, !0), r instanceof Wi)
|
|
6295
|
+
return r.support ? r.support.language.parser : NX.getSkippingParser(r.load());
|
|
6297
6296
|
if (r)
|
|
6298
6297
|
return r.parser;
|
|
6299
6298
|
}
|
|
@@ -6366,7 +6365,7 @@ function ni(O, e, t, r = 0) {
|
|
|
6366
6365
|
}
|
|
6367
6366
|
function Mn(O, e) {
|
|
6368
6367
|
let t = /^[ \t]*/.exec(O)[0].length;
|
|
6369
|
-
if (!t || e.facet(
|
|
6368
|
+
if (!t || e.facet($c) != " ")
|
|
6370
6369
|
return O;
|
|
6371
6370
|
let r = Kt(O, 4, t), a = "";
|
|
6372
6371
|
for (let i = r; i > 0; )
|
|
@@ -6525,7 +6524,7 @@ function Uh() {
|
|
|
6525
6524
|
let O = Sh(new kX(Ge.create({ extensions: e$ }), 0, !0));
|
|
6526
6525
|
return oi = O ? O.options : [];
|
|
6527
6526
|
}
|
|
6528
|
-
const jh = /code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i, Ch = /* @__PURE__ */
|
|
6527
|
+
const jh = /code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i, Ch = /* @__PURE__ */ cO.domEventHandlers({
|
|
6529
6528
|
paste: (O, e) => {
|
|
6530
6529
|
var t;
|
|
6531
6530
|
let { main: r } = e.state.selection;
|
|
@@ -6897,7 +6896,7 @@ function Kn(O = {}) {
|
|
|
6897
6896
|
codeLanguages: a ? (i) => {
|
|
6898
6897
|
if (!i) return null;
|
|
6899
6898
|
const n = a(i);
|
|
6900
|
-
return n ?
|
|
6899
|
+
return n ? Wi.of({
|
|
6901
6900
|
name: i,
|
|
6902
6901
|
support: { language: n }
|
|
6903
6902
|
}) : null;
|
|
@@ -7264,7 +7263,7 @@ function X1() {
|
|
|
7264
7263
|
return [
|
|
7265
7264
|
aa,
|
|
7266
7265
|
Be.fromClass(p1),
|
|
7267
|
-
|
|
7266
|
+
cO.domEventHandlers({
|
|
7268
7267
|
mousedown(O, e) {
|
|
7269
7268
|
return O.button !== 0 || !e.contentDOM.contains(O.target) || e.dispatch({ effects: eo.of(!0) }), !1;
|
|
7270
7269
|
}
|
|
@@ -9675,7 +9674,7 @@ const hb = new H((O) => {
|
|
|
9675
9674
|
Array: /* @__PURE__ */ ot({ except: /^\s*]/ })
|
|
9676
9675
|
}),
|
|
9677
9676
|
/* @__PURE__ */ Tt.add({
|
|
9678
|
-
"Object Array CombinedResult":
|
|
9677
|
+
"Object Array CombinedResult": xn
|
|
9679
9678
|
})
|
|
9680
9679
|
],
|
|
9681
9680
|
wrap: /* @__PURE__ */ Sa((O) => O.name === "JavaScriptContent" ? { parser: ta } : null)
|
|
@@ -10361,7 +10360,7 @@ class Ck extends ge {
|
|
|
10361
10360
|
);
|
|
10362
10361
|
}
|
|
10363
10362
|
}
|
|
10364
|
-
class Xo extends
|
|
10363
|
+
class Xo extends KX {
|
|
10365
10364
|
state = { hasError: !1 };
|
|
10366
10365
|
static getDerivedStateFromError() {
|
|
10367
10366
|
return { hasError: !0 };
|
|
@@ -11945,9 +11944,9 @@ function Xl(O) {
|
|
|
11945
11944
|
}
|
|
11946
11945
|
function du(O = Or) {
|
|
11947
11946
|
return O !== Or ? Xl(
|
|
11948
|
-
|
|
11947
|
+
ki(O.specs.map((e) => ({ ...e, class: e.color })))
|
|
11949
11948
|
) : (mi || (mi = Xl(
|
|
11950
|
-
|
|
11949
|
+
ki(O.specs.map((e) => ({ ...e, class: e.color })))
|
|
11951
11950
|
)), mi);
|
|
11952
11951
|
}
|
|
11953
11952
|
function JV(O, e) {
|
|
@@ -11957,7 +11956,7 @@ function JV(O, e) {
|
|
|
11957
11956
|
if (!r)
|
|
11958
11957
|
return t.map((n, o) => [/* @__PURE__ */ u(J, { children: n }, o)]);
|
|
11959
11958
|
const a = r.parse(O), i = [[]];
|
|
11960
|
-
return
|
|
11959
|
+
return fc(
|
|
11961
11960
|
O,
|
|
11962
11961
|
a,
|
|
11963
11962
|
du(),
|
|
@@ -12321,7 +12320,7 @@ function XY(O) {
|
|
|
12321
12320
|
`)
|
|
12322
12321
|
};
|
|
12323
12322
|
}
|
|
12324
|
-
const fY =
|
|
12323
|
+
const fY = vn(function({
|
|
12325
12324
|
value: e,
|
|
12326
12325
|
language: t,
|
|
12327
12326
|
highlightRegions: r,
|
|
@@ -12369,7 +12368,7 @@ const fY = xn(function({
|
|
|
12369
12368
|
};
|
|
12370
12369
|
if (o && s)
|
|
12371
12370
|
try {
|
|
12372
|
-
|
|
12371
|
+
fc(
|
|
12373
12372
|
e,
|
|
12374
12373
|
s,
|
|
12375
12374
|
du(),
|
|
@@ -13178,7 +13177,7 @@ function EO(O, e) {
|
|
|
13178
13177
|
}
|
|
13179
13178
|
function _t(O, e, t, r) {
|
|
13180
13179
|
const a = Qu(O, e, t, r);
|
|
13181
|
-
return a == null ? null : oe(O, t.components) ? t.bareJsxChildren && O.isJsx ?
|
|
13180
|
+
return a == null ? null : oe(O, t.components) ? t.bareJsxChildren && O.isJsx ? Vi(a) ? HX(a, { key: `bare-${r}` }) : a : /* @__PURE__ */ u(va, { children: a }, `block-${r}`) : /* @__PURE__ */ u(
|
|
13182
13181
|
"span",
|
|
13183
13182
|
{
|
|
13184
13183
|
className: g.jsxInline,
|
|
@@ -14355,7 +14354,7 @@ function Cq(O) {
|
|
|
14355
14354
|
}
|
|
14356
14355
|
function Tl(O, e) {
|
|
14357
14356
|
const t = Oo.create(O, e);
|
|
14358
|
-
|
|
14357
|
+
LX(O, O.doc.length, 75);
|
|
14359
14358
|
const r = hO(O), a = fq(
|
|
14360
14359
|
O,
|
|
14361
14360
|
fr(e.jsxOptions?.components)
|
|
@@ -14391,8 +14390,8 @@ function Gq(O) {
|
|
|
14391
14390
|
},
|
|
14392
14391
|
compare: (r, a) => r.decorations === a.decorations && r.atomicRanges === a.atomicRanges,
|
|
14393
14392
|
provide: (r) => [
|
|
14394
|
-
|
|
14395
|
-
|
|
14393
|
+
cO.decorations.from(r, (a) => a.decorations),
|
|
14394
|
+
cO.atomicRanges.of(
|
|
14396
14395
|
(a) => a.state.field(r, !1)?.atomicRanges ?? PO.none
|
|
14397
14396
|
)
|
|
14398
14397
|
]
|
|
@@ -14413,7 +14412,7 @@ function Dq(O, e) {
|
|
|
14413
14412
|
}
|
|
14414
14413
|
return null;
|
|
14415
14414
|
}
|
|
14416
|
-
const Aq =
|
|
14415
|
+
const Aq = Xc.of((O, e) => {
|
|
14417
14416
|
const t = Dq(O, e);
|
|
14418
14417
|
return t ? Eq(O, t) : null;
|
|
14419
14418
|
});
|
|
@@ -14618,8 +14617,8 @@ const $z = be.define({
|
|
|
14618
14617
|
update(O, e) {
|
|
14619
14618
|
return yl(e.state);
|
|
14620
14619
|
},
|
|
14621
|
-
provide: (O) =>
|
|
14622
|
-
}), uz =
|
|
14620
|
+
provide: (O) => cO.decorations.from(O)
|
|
14621
|
+
}), uz = cO.baseTheme({
|
|
14623
14622
|
[`.${Cu}`]: {
|
|
14624
14623
|
backgroundColor: "var(--surreal-bg-surface-hover)",
|
|
14625
14624
|
borderRadius: "var(--mantine-radius-xs)"
|
|
@@ -14722,7 +14721,7 @@ function Pz(O) {
|
|
|
14722
14721
|
userEvent: "delete.backward"
|
|
14723
14722
|
}), !0);
|
|
14724
14723
|
}
|
|
14725
|
-
const Sz =
|
|
14724
|
+
const Sz = cO.inputHandler.of(
|
|
14726
14725
|
(O, e, t, r) => {
|
|
14727
14726
|
if (O.composing || O.compositionStarted || O.state.readOnly || r.length !== 1)
|
|
14728
14727
|
return !1;
|
|
@@ -15009,9 +15008,9 @@ function xz(O, e) {
|
|
|
15009
15008
|
}), !0;
|
|
15010
15009
|
}
|
|
15011
15010
|
function vz() {
|
|
15012
|
-
return [Wz,
|
|
15011
|
+
return [Wz, cO.lineWrapping];
|
|
15013
15012
|
}
|
|
15014
|
-
const Wz =
|
|
15013
|
+
const Wz = cO.theme({
|
|
15015
15014
|
"&": {
|
|
15016
15015
|
color: "var(--mantine-color-text)"
|
|
15017
15016
|
},
|
|
@@ -15046,8 +15045,8 @@ function kz(O) {
|
|
|
15046
15045
|
resolveLanguage: O.resolveCodeLanguage
|
|
15047
15046
|
})
|
|
15048
15047
|
), t.push(
|
|
15049
|
-
|
|
15050
|
-
|
|
15048
|
+
cO.lineWrapping,
|
|
15049
|
+
uc(),
|
|
15051
15050
|
vz(),
|
|
15052
15051
|
zP(),
|
|
15053
15052
|
Gq(e),
|
|
@@ -15059,13 +15058,13 @@ function kz(O) {
|
|
|
15059
15058
|
Tz({ widgetStore: O.widgetStore }),
|
|
15060
15059
|
O.withTableFormatter ? Rz() : [],
|
|
15061
15060
|
O.slashStore ? pz({ store: O.slashStore }) : [],
|
|
15062
|
-
|
|
15061
|
+
cO.editorAttributes.of((r) => ({
|
|
15063
15062
|
"data-markdown-mode": Jn(r.state)
|
|
15064
15063
|
})),
|
|
15065
15064
|
nt.lowest(Ie.of([{ key: "Enter", run: Sp }])),
|
|
15066
15065
|
nt.high(Sz),
|
|
15067
15066
|
nt.highest(
|
|
15068
|
-
|
|
15067
|
+
cO.domEventHandlers({
|
|
15069
15068
|
mousedown: Vz
|
|
15070
15069
|
})
|
|
15071
15070
|
)
|
|
@@ -15094,7 +15093,7 @@ function Zl(O, e) {
|
|
|
15094
15093
|
});
|
|
15095
15094
|
return PO.set([a.range(r.from)]);
|
|
15096
15095
|
}
|
|
15097
|
-
const Yz =
|
|
15096
|
+
const Yz = cO.baseTheme({
|
|
15098
15097
|
[`.${un}`]: {
|
|
15099
15098
|
position: "relative"
|
|
15100
15099
|
},
|
|
@@ -15113,7 +15112,7 @@ function qz(O) {
|
|
|
15113
15112
|
update(t, r) {
|
|
15114
15113
|
return r.docChanged || r.selection ? Zl(r.state, O) : t;
|
|
15115
15114
|
},
|
|
15116
|
-
provide: (t) =>
|
|
15115
|
+
provide: (t) => cO.decorations.from(t)
|
|
15117
15116
|
}), Yz];
|
|
15118
15117
|
}
|
|
15119
15118
|
function Au(O, e) {
|
|
@@ -15451,7 +15450,7 @@ const Gz = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "Tab", "Enter"]), Ez
|
|
|
15451
15450
|
getEditor: e,
|
|
15452
15451
|
commands: t = zz
|
|
15453
15452
|
}) => {
|
|
15454
|
-
const r =
|
|
15453
|
+
const r = hc(O.subscribe, O.getSnapshot, O.getSnapshot), a = r?.session.query ?? "", i = OO(
|
|
15455
15454
|
() => jz(Uz(t, a)),
|
|
15456
15455
|
[t, a]
|
|
15457
15456
|
), n = OO(() => i.flatMap((X) => X.commands), [i]), o = (X) => {
|
|
@@ -15459,7 +15458,7 @@ const Gz = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "Tab", "Enter"]), Ez
|
|
|
15459
15458
|
const f = e();
|
|
15460
15459
|
X.run(f, { from: r.session.from, to: r.to }), f.dispatch({ effects: $n.of(null) }), f.focus();
|
|
15461
15460
|
}, [s, l] = wf(n, o), c = r !== null, Q = r?.session.from ?? null, [$, p] = B(null);
|
|
15462
|
-
return
|
|
15461
|
+
return Sc(() => {
|
|
15463
15462
|
if (Q === null) {
|
|
15464
15463
|
p(null);
|
|
15465
15464
|
return;
|
|
@@ -15564,7 +15563,7 @@ var _l;
|
|
|
15564
15563
|
function Az() {
|
|
15565
15564
|
if (_l) return wO;
|
|
15566
15565
|
_l = 1;
|
|
15567
|
-
var O =
|
|
15566
|
+
var O = Pc;
|
|
15568
15567
|
function e(s) {
|
|
15569
15568
|
var l = "https://react.dev/errors/" + s;
|
|
15570
15569
|
if (1 < arguments.length) {
|
|
@@ -15743,7 +15742,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
15743
15742
|
), Q;
|
|
15744
15743
|
}
|
|
15745
15744
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
15746
|
-
var o =
|
|
15745
|
+
var o = Pc, s = {
|
|
15747
15746
|
d: {
|
|
15748
15747
|
f: O,
|
|
15749
15748
|
r: function() {
|
|
@@ -15954,7 +15953,7 @@ function Lz() {
|
|
|
15954
15953
|
};
|
|
15955
15954
|
}
|
|
15956
15955
|
const Iz = ({ store: O }) => {
|
|
15957
|
-
const e =
|
|
15956
|
+
const e = hc(O.subscribe, O.getSnapshot, O.getSnapshot), t = OO(
|
|
15958
15957
|
() => e.map(
|
|
15959
15958
|
(r) => vo.createPortal(r.render(), r.host, String(r.portalKey))
|
|
15960
15959
|
),
|
|
@@ -16068,7 +16067,7 @@ const nG = {
|
|
|
16068
16067
|
left: Dt("left"),
|
|
16069
16068
|
top: Dt("top"),
|
|
16070
16069
|
bottom: Dt("bottom")
|
|
16071
|
-
}, $U = "_page_1m9jb_24", uU = "_scrim_1m9jb_35", dU = "_surface_1m9jb_39", pU = "_header_1m9jb_45", XU = "_titles_1m9jb_53", fU = "_title_1m9jb_53", PU = "_subtitle_1m9jb_64", SU = "_close_1m9jb_68", mU = "_body_1m9jb_73", hU = "_contentReset_1m9jb_83", gU = "_card_1m9jb_92", TU = "_sheet_1m9jb_103", wU = "_fadeItem_1m9jb_142", yU = "_grip_1m9jb_152", ZU = "_handle_1m9jb_204",
|
|
16070
|
+
}, $U = "_page_1m9jb_24", uU = "_scrim_1m9jb_35", dU = "_surface_1m9jb_39", pU = "_header_1m9jb_45", XU = "_titles_1m9jb_53", fU = "_title_1m9jb_53", PU = "_subtitle_1m9jb_64", SU = "_close_1m9jb_68", mU = "_body_1m9jb_73", hU = "_contentReset_1m9jb_83", gU = "_card_1m9jb_92", TU = "_sheet_1m9jb_103", wU = "_fadeItem_1m9jb_142", yU = "_grip_1m9jb_152", ZU = "_handle_1m9jb_204", lO = {
|
|
16072
16071
|
page: $U,
|
|
16073
16072
|
scrim: uU,
|
|
16074
16073
|
surface: dU,
|
|
@@ -16087,13 +16086,13 @@ const nG = {
|
|
|
16087
16086
|
};
|
|
16088
16087
|
function Mu({ item: O, live: e, close: t, className: r }) {
|
|
16089
16088
|
const { title: a, subtitle: i, withCloseButton: n = !0 } = O.settings;
|
|
16090
|
-
return !a && !i && !n ? null : /* @__PURE__ */ T("div", { className: E(
|
|
16091
|
-
/* @__PURE__ */ T("div", { className:
|
|
16092
|
-
a && (e ? /* @__PURE__ */ u(qp, { className:
|
|
16089
|
+
return !a && !i && !n ? null : /* @__PURE__ */ T("div", { className: E(lO.header, r), children: [
|
|
16090
|
+
/* @__PURE__ */ T("div", { className: lO.titles, children: [
|
|
16091
|
+
a && (e ? /* @__PURE__ */ u(qp, { className: lO.title, children: a }) : /* @__PURE__ */ u("div", { className: lO.title, children: a })),
|
|
16093
16092
|
i && /* @__PURE__ */ u(
|
|
16094
16093
|
L,
|
|
16095
16094
|
{
|
|
16096
|
-
className:
|
|
16095
|
+
className: lO.subtitle,
|
|
16097
16096
|
c: "dimmed",
|
|
16098
16097
|
size: "sm",
|
|
16099
16098
|
children: i
|
|
@@ -16103,7 +16102,7 @@ function Mu({ item: O, live: e, close: t, className: r }) {
|
|
|
16103
16102
|
n && /* @__PURE__ */ u(
|
|
16104
16103
|
sc,
|
|
16105
16104
|
{
|
|
16106
|
-
className:
|
|
16105
|
+
className: lO.close,
|
|
16107
16106
|
onClick: () => t(O.id),
|
|
16108
16107
|
"aria-label": "Close"
|
|
16109
16108
|
}
|
|
@@ -16111,7 +16110,7 @@ function Mu({ item: O, live: e, close: t, className: r }) {
|
|
|
16111
16110
|
] });
|
|
16112
16111
|
}
|
|
16113
16112
|
function Ku({ item: O, live: e, className: t }) {
|
|
16114
|
-
const r = E(
|
|
16113
|
+
const r = E(lO.body, t);
|
|
16115
16114
|
return e ? /* @__PURE__ */ u(zp, { className: r, children: O.settings.children }) : /* @__PURE__ */ u("div", { className: r, children: O.settings.children });
|
|
16116
16115
|
}
|
|
16117
16116
|
const _U = 4, RU = 0.5, bU = 0.5, xU = { bottom: "y", top: "y", left: "x", right: "x" }, vU = { bottom: 1, top: -1, left: -1, right: 1 };
|
|
@@ -16211,14 +16210,14 @@ function YU({
|
|
|
16211
16210
|
children: /* @__PURE__ */ u(
|
|
16212
16211
|
vi.Content,
|
|
16213
16212
|
{
|
|
16214
|
-
className:
|
|
16213
|
+
className: lO.contentReset,
|
|
16215
16214
|
"data-stacker": "drawer",
|
|
16216
16215
|
"data-covered": Q || void 0,
|
|
16217
16216
|
children: /* @__PURE__ */ T(
|
|
16218
16217
|
"div",
|
|
16219
16218
|
{
|
|
16220
16219
|
ref: n,
|
|
16221
|
-
className: E(
|
|
16220
|
+
className: E(lO.sheet, lO.surface),
|
|
16222
16221
|
"data-stacker-sheet": !0,
|
|
16223
16222
|
"data-side": s,
|
|
16224
16223
|
"data-covered": Q || void 0,
|
|
@@ -16229,14 +16228,14 @@ function YU({
|
|
|
16229
16228
|
"div",
|
|
16230
16229
|
{
|
|
16231
16230
|
ref: t ? p : void 0,
|
|
16232
|
-
className:
|
|
16231
|
+
className: lO.grip,
|
|
16233
16232
|
"data-side": s,
|
|
16234
16233
|
"data-dragging": f || void 0,
|
|
16235
16234
|
style: { touchAction: t ? "none" : void 0 },
|
|
16236
16235
|
children: /* @__PURE__ */ u(
|
|
16237
16236
|
"div",
|
|
16238
16237
|
{
|
|
16239
|
-
className:
|
|
16238
|
+
className: lO.handle,
|
|
16240
16239
|
"data-orientation": VU(s),
|
|
16241
16240
|
"aria-hidden": !0
|
|
16242
16241
|
}
|
|
@@ -16249,7 +16248,7 @@ function YU({
|
|
|
16249
16248
|
item: O,
|
|
16250
16249
|
live: !0,
|
|
16251
16250
|
close: a,
|
|
16252
|
-
className:
|
|
16251
|
+
className: lO.fadeItem
|
|
16253
16252
|
}
|
|
16254
16253
|
),
|
|
16255
16254
|
/* @__PURE__ */ u(
|
|
@@ -16257,7 +16256,7 @@ function YU({
|
|
|
16257
16256
|
{
|
|
16258
16257
|
item: O,
|
|
16259
16258
|
live: !0,
|
|
16260
|
-
className:
|
|
16259
|
+
className: lO.fadeItem
|
|
16261
16260
|
}
|
|
16262
16261
|
)
|
|
16263
16262
|
]
|
|
@@ -16288,7 +16287,7 @@ function qU({
|
|
|
16288
16287
|
{
|
|
16289
16288
|
fixed: !0,
|
|
16290
16289
|
"data-stacker-scrim": !0,
|
|
16291
|
-
className:
|
|
16290
|
+
className: lO.scrim,
|
|
16292
16291
|
style: { ...o, zIndex: t },
|
|
16293
16292
|
onClick: () => {
|
|
16294
16293
|
i && (i.settings.closeOnClickOutside ?? !0) && r();
|
|
@@ -16355,14 +16354,14 @@ function zU({
|
|
|
16355
16354
|
children: /* @__PURE__ */ u(
|
|
16356
16355
|
Mr.Content,
|
|
16357
16356
|
{
|
|
16358
|
-
className:
|
|
16357
|
+
className: lO.contentReset,
|
|
16359
16358
|
"data-stacker": "modal",
|
|
16360
16359
|
"data-covered": o || void 0,
|
|
16361
16360
|
style: l,
|
|
16362
16361
|
children: /* @__PURE__ */ T(
|
|
16363
16362
|
"div",
|
|
16364
16363
|
{
|
|
16365
|
-
className: E(
|
|
16364
|
+
className: E(lO.card, lO.surface),
|
|
16366
16365
|
"data-stacker-card": !0,
|
|
16367
16366
|
"data-covered": o || void 0,
|
|
16368
16367
|
children: [
|
|
@@ -16372,7 +16371,7 @@ function zU({
|
|
|
16372
16371
|
item: O,
|
|
16373
16372
|
live: !0,
|
|
16374
16373
|
close: a,
|
|
16375
|
-
className:
|
|
16374
|
+
className: lO.fadeItem
|
|
16376
16375
|
}
|
|
16377
16376
|
),
|
|
16378
16377
|
/* @__PURE__ */ u(
|
|
@@ -16380,7 +16379,7 @@ function zU({
|
|
|
16380
16379
|
{
|
|
16381
16380
|
item: O,
|
|
16382
16381
|
live: !0,
|
|
16383
|
-
className:
|
|
16382
|
+
className: lO.fadeItem
|
|
16384
16383
|
}
|
|
16385
16384
|
)
|
|
16386
16385
|
]
|
|
@@ -16413,7 +16412,7 @@ function UU({
|
|
|
16413
16412
|
{
|
|
16414
16413
|
fixed: !0,
|
|
16415
16414
|
"data-stacker-scrim": !0,
|
|
16416
|
-
className:
|
|
16415
|
+
className: lO.scrim,
|
|
16417
16416
|
style: { ...o, zIndex: t },
|
|
16418
16417
|
onClick: () => {
|
|
16419
16418
|
i && (i.settings.closeOnClickOutside ?? !0) && r();
|
|
@@ -16482,7 +16481,7 @@ function oG({
|
|
|
16482
16481
|
mobileQuery: e = OU,
|
|
16483
16482
|
zIndex: t = eU
|
|
16484
16483
|
}) {
|
|
16485
|
-
const [r, a] =
|
|
16484
|
+
const [r, a] = gc(CU, jU), i = kn(e, !1, { getInitialValueInEffect: !1 }), n = oU(r.items, i ?? !1, r.forcedKind), o = dO(r);
|
|
16486
16485
|
o.current = r;
|
|
16487
16486
|
const s = dO(i);
|
|
16488
16487
|
s.current = i;
|
|
@@ -16513,7 +16512,7 @@ function oG({
|
|
|
16513
16512
|
/* @__PURE__ */ u(
|
|
16514
16513
|
w,
|
|
16515
16514
|
{
|
|
16516
|
-
className:
|
|
16515
|
+
className: lO.page,
|
|
16517
16516
|
"data-stacker-page": !0,
|
|
16518
16517
|
"data-pushed": f || void 0,
|
|
16519
16518
|
children: O
|
|
@@ -16932,7 +16931,7 @@ function vj({
|
|
|
16932
16931
|
}
|
|
16933
16932
|
const ad = Ke(null), Yo = Ke({ width: 0, height: 0 });
|
|
16934
16933
|
function qo() {
|
|
16935
|
-
return
|
|
16934
|
+
return Wn(Yo);
|
|
16936
16935
|
}
|
|
16937
16936
|
const Wj = ({
|
|
16938
16937
|
title: O,
|
|
@@ -16944,7 +16943,7 @@ const Wj = ({
|
|
|
16944
16943
|
isInline: n,
|
|
16945
16944
|
children: o
|
|
16946
16945
|
}) => {
|
|
16947
|
-
const s =
|
|
16946
|
+
const s = Wn(ad), { ref: l, width: c, height: Q } = Rc(), $ = OO(() => ({ width: c, height: Q }), [c, Q]), p = e ?? (typeof O == "string" ? O : "tile");
|
|
16948
16947
|
return n ? /* @__PURE__ */ u(
|
|
16949
16948
|
Ht,
|
|
16950
16949
|
{
|
|
@@ -17095,7 +17094,7 @@ function QG({
|
|
|
17095
17094
|
compactBelow: l = qj,
|
|
17096
17095
|
deniedMessage: c = "You don't have access to this information"
|
|
17097
17096
|
}) {
|
|
17098
|
-
const { ref: Q, width: $ } = Rc(), p = dO(null), X = bc(Q, p), [f, P] = B(null), [S, m] = B(null), [h, y] = B(null), [, V] =
|
|
17097
|
+
const { ref: Q, width: $ } = Rc(), p = dO(null), X = bc(Q, p), [f, P] = B(null), [S, m] = B(null), [h, y] = B(null), [, V] = gc((j) => j + 1, 0), [R, q] = B(""), F = OO(() => td(O, r), [O, r]), I = OO(
|
|
17099
17098
|
() => FU(e, (j) => LU(F, j), n),
|
|
17100
17099
|
[e, F, n]
|
|
17101
17100
|
), Z = $ > 0 && $ < l, W = !Z && !i, U = ($ + s) / n, Y = o + s, eO = dO({ pitchX: U, pitchY: Y });
|
|
@@ -17326,7 +17325,7 @@ function QG({
|
|
|
17326
17325
|
}
|
|
17327
17326
|
);
|
|
17328
17327
|
}
|
|
17329
|
-
const Uj =
|
|
17328
|
+
const Uj = vn(
|
|
17330
17329
|
({ rows: O, columns: e, track: t, targetX: r = -1, targetY: a = -1, targetW: i = 0, targetH: n = 0 }) => /* @__PURE__ */ u(
|
|
17331
17330
|
w,
|
|
17332
17331
|
{
|
|
@@ -17558,7 +17557,7 @@ const $G = ({ path: O, accent: e, isDimmed: t }) => /* @__PURE__ */ u(
|
|
|
17558
17557
|
isDimmed: o,
|
|
17559
17558
|
onClick: s
|
|
17560
17559
|
}) => {
|
|
17561
|
-
const l =
|
|
17560
|
+
const l = Wn(id);
|
|
17562
17561
|
return l && n ? /* @__PURE__ */ u(zl, { onClick: s, children: /* @__PURE__ */ T(
|
|
17563
17562
|
w,
|
|
17564
17563
|
{
|
|
@@ -18237,7 +18236,7 @@ function s2() {
|
|
|
18237
18236
|
const l2 = "_root_4x7re_24", c2 = "_editor_4x7re_29", jl = {
|
|
18238
18237
|
root: l2,
|
|
18239
18238
|
editor: c2
|
|
18240
|
-
}, Q2 =
|
|
18239
|
+
}, Q2 = vn(
|
|
18241
18240
|
({ controller: O, className: e, autoFocus: t, innerProps: r, withPadding: a, ...i }) => {
|
|
18242
18241
|
const n = "calc(1em * 1)";
|
|
18243
18242
|
return o2(), SO(() => {
|
|
@@ -19350,7 +19349,7 @@ const Q7 = "_root_1qhjh_25", $7 = "_empty_1qhjh_55", u7 = "_row_1qhjh_59", d7 =
|
|
|
19350
19349
|
hideMarkerOnMobile: r,
|
|
19351
19350
|
className: a
|
|
19352
19351
|
}) => {
|
|
19353
|
-
const i =
|
|
19352
|
+
const i = mc.toArray(O), n = i[0], o = i.slice(1);
|
|
19354
19353
|
return /* @__PURE__ */ T(
|
|
19355
19354
|
w,
|
|
19356
19355
|
{
|