@marimo-team/islands 0.25.3-dev437 → 0.25.3-dev438
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/{ConnectedDataExplorerComponent-CoEU9snz.js → ConnectedDataExplorerComponent-LA5OtjAG.js} +11 -11
- package/dist/{ErrorBoundary-LQpWaaaj.js → ErrorBoundary-Bvtsf3zB.js} +18 -18
- package/dist/{abnfDiagram-VCTEODGH-RbfxpmIE.js → abnfDiagram-VCTEODGH-CBntFgCZ.js} +2 -2
- package/dist/{any-language-editor-Cw4VtZvb.js → any-language-editor-gzDRWdCH.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-DzzNVRo4.js → architectureDiagram-5GKGNRK7-Bz6ouXl-.js} +1 -1
- package/dist/{assertNever-ChGm2jYv.js → assertNever-DOTNJ2Y4.js} +2 -2
- package/dist/{chat-ui-BEMyRpmS.js → chat-ui-ZGXdN6Vr.js} +45 -45
- package/dist/{check-BHRB6N0I.js → check-CApwK1fD.js} +1 -1
- package/dist/{chunk-IMKFNOWR-1Zy6M_oP.js → chunk-IMKFNOWR-DK_M66Dt.js} +1 -1
- package/dist/{chunk-SHT3W25Y-yAttqZEk.js → chunk-SHT3W25Y-C7Cg6zGL.js} +1 -1
- package/dist/{chunk-SVP7TREG-MKJpuJHR.js → chunk-SVP7TREG-K0lWia53.js} +1 -1
- package/dist/{chunk-TICWLB2K-BOC0OebH.js → chunk-TICWLB2K-DiKpryGp.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-BOlD7kH9.js → classDiagram-ZZMXUADV-CXX5eaxi.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-C3p3seuT.js → classDiagram-v2-VYDZK3BY-Bjyy4iKL.js} +2 -2
- package/dist/{code-visibility-Cl2Z5Y2R.js → code-visibility-CmfNaZAX.js} +17 -17
- package/dist/{common-DVxtA3e0.js → common-i_ykKLxU.js} +4881 -4842
- package/dist/{config-EJnOxh0i.js → config-C8TXSDmC.js} +18 -18
- package/dist/{copy-icon-Bv5SAA0w.js → copy-icon-CDvvlY90.js} +2 -2
- package/dist/{createReducer-BJJ0K5Tu.js → createReducer-CXqSak4H.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-BKnxm64C.js → cynefinDiagram-5FMLGOSQ-C-MlCYj4.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-COBTexAI.js → dagre-GXQ25YYZ-C6e9vEKZ.js} +1 -1
- package/dist/{data-grid-overlay-editor-FI3lYcm3.js → data-grid-overlay-editor-kj617zpx.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Dyt3J6ek.js → diagram-S7CK7UJ4-DgXNq_At.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CJCsT4fA.js → diagram-UQ7AKVKN-BG5NExCt.js} +1 -1
- package/dist/{diagram-VX7I27RA-BboxCtbh.js → diagram-VX7I27RA-Da7VYCfC.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DfRWWQ5t.js → diagram-Z3DM3KII-DHk6GaR5.js} +1 -1
- package/dist/{dialog-B8vU2hHC.js → dialog-rgayPemF.js} +20 -20
- package/dist/{dropdown-menu-DzhAnAhr.js → dropdown-menu-B12Nf3Zf.js} +703 -703
- package/dist/{ebnfDiagram-PWID7BFC-DYxwv-nl.js → ebnfDiagram-PWID7BFC-DdSjinXr.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-D9e5WUw7.js → erDiagram-RLTQ6QDP-BgcwfZct.js} +1 -1
- package/dist/{error-banner-BRkKwvku.js → error-banner-DXHIN-63.js} +58 -58
- package/dist/{error-entries-BbxtqUQ4.js → error-entries-DMgIKuK1.js} +380 -380
- package/dist/{feedback-button-1MiN6gfS.js → feedback-button-CGAe5hFZ.js} +7 -7
- package/dist/{flowDiagram-HODETNUW-tt7EepxX.js → flowDiagram-HODETNUW-CVwzkmUF.js} +2 -2
- package/dist/{formats-HRSqKdFt.js → formats-BWuAsLfw.js} +1 -1
- package/dist/{glide-data-editor-Kt7kYQLq.js → glide-data-editor-BiU_hF9A.js} +11 -11
- package/dist/{glide-utils-BzjESEmr.js → glide-utils-D1McS0Pn.js} +2 -2
- package/dist/{globals-BjpSYd8i.js → globals-jz3DTWzC.js} +3 -3
- package/dist/{html-to-image-DuNAF8H5.js → html-to-image-Dopvv40j.js} +774 -774
- package/dist/{infoDiagram-27XIBGKW-CpQH_joy.js → infoDiagram-27XIBGKW-CHkU2P-8.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-d-it4xqm.js → ishikawaDiagram-5VMMS53U-B0k5UyY5.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-DItpqTFY.js → kanban-definition-UXKFOSKX-DwQvOV0x.js} +1 -1
- package/dist/main.js +4913 -4936
- package/dist/{mermaid-BugOVfeH.js → mermaid-Bqy6f_NU.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-D6IpF-_J.js → mindmap-definition-YA3MSWOX-CqvvAm8I.js} +1 -1
- package/dist/{number-overlay-editor-BG707U9t.js → number-overlay-editor-D3OSLsDB.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CXUu3QwE.js → pegDiagram-XKGWAZYB-Befnx4Ry.js} +2 -2
- package/dist/{pencil-DWRFEz2B.js → pencil-BC7pOv9g.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-DoUJF0yj.js → pieDiagram-E7YTZNPT-6rYFbF7p.js} +1 -1
- package/dist/{process-output-Cl97_Reh.js → process-output-BidrKebE.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-BsGDhtLL.js → railroadDiagram-O6MQD6OU-SSniwYC8.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-BHW0qW2Z.js → requirementDiagram-BXWQKSXE-3L_xNfQr.js} +1 -1
- package/dist/{reveal-component-C8L9okWw.js → reveal-component-CnyvRvqy.js} +900 -900
- package/dist/{select-Brvb-RwP.js → select-PQHWLm64.js} +99 -99
- package/dist/{sequenceDiagram-WJ2MYXX4-DpgYJzLl.js → sequenceDiagram-WJ2MYXX4-DvzIRlWu.js} +1 -1
- package/dist/{spec-BWpscSQi.js → spec-6shN7lEe.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-Btf1jiYb.js → stateDiagram-D77RDMKH-VsHup-Ig.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DN9FyEf3.js → stateDiagram-v2-MP3YSRHH-BwIIR8nk.js} +2 -2
- package/dist/{static-state-BhCfPRoz.js → static-state-CWXd6dYX.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-2l_tR9qL.js → swimlanes-42K2YHIH-DhSDCIWI.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BAkmv8kE.js → swimlanesDiagram-VR7AAH4N-C2WGVm-W.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-AxSxEOhx.js → timeline-definition-24CTP7MA-DhUhNinO.js} +1 -1
- package/dist/{toast-DOWc3HtU.js → toast-BGvv7tKS.js} +153 -153
- package/dist/{tooltip-DsQZP310.js → tooltip-CiJ919pg.js} +62 -62
- package/dist/{use-restore-focus-CTa7IRP6.js → use-restore-focus-BLj45Ibw.js} +75 -75
- package/dist/{useDateFormatter-CRuBYwR6.js → useDateFormatter-C659lkax.js} +2 -2
- package/dist/{useDeepCompareMemoize-B2RNcTmn.js → useDeepCompareMemoize-CDhinwm7.js} +1 -1
- package/dist/{useLifecycle-Bw0JtmoB.js → useLifecycle-mKiMNa4V.js} +1 -1
- package/dist/{vega-component-BV9sYHhU.js → vega-component-CWvQ7wBJ.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-oHztO7MH.js → vennDiagram-4TSXK5OY-exvBF8P5.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DWeEjZSc.js → wardleyDiagram-VM6X3IG4-BFhJmnXo.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-ESBlsY9i.js → xychartDiagram-S5SC5T6Z-D_xAdG6u.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/controls/Controls.tsx +5 -2
- package/src/components/editor/notebook-cell.tsx +7 -21
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +2 -7
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -4
- package/src/components/slides/minimap.tsx +2 -3
- package/src/components/slides/reveal-component.tsx +2 -3
- package/src/components/slides/slide-cell-view.tsx +5 -12
- package/src/core/cells/__tests__/cell.test.ts +8 -51
- package/src/core/cells/__tests__/utils.test.ts +27 -18
- package/src/core/cells/cell.ts +6 -12
- package/src/core/cells/cells.ts +5 -3
- package/src/core/cells/utils.ts +61 -55
- package/src/core/config/config.ts +4 -0
- package/src/core/executions/__tests__/hooks.test.tsx +48 -2
- package/src/core/executions/__tests__/select.test.ts +0 -17
- package/src/core/executions/hooks.ts +24 -0
- package/src/core/executions/index.ts +2 -0
- package/src/core/executions/select.ts +0 -5
|
@@ -4,7 +4,7 @@ import { t as i } from "./react-Bgs_wQh3.js";
|
|
|
4
4
|
import { t as a } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { t as o } from "./react-dom-DdqGVp5N.js";
|
|
6
6
|
import { t as s } from "./jsx-runtime-D8btoEHk.js";
|
|
7
|
-
import {
|
|
7
|
+
import { _n as c, cn as l, dn as u, fn as d, gn as f, hn as p, l as m, mn as h, o as g, on as _, pn as v, rn as y, s as b, un as x } from "./use-restore-focus-BLj45Ibw.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/lucide-react@0.577.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
9
9
|
var S = /* @__PURE__ */ e(i()), C = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), w = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), T = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), E = (e) => {
|
|
10
10
|
let t = T(e);
|
|
@@ -55,7 +55,7 @@ var S = /* @__PURE__ */ e(i()), C = (...e) => e.filter((e, t, n) => !!e && e.tri
|
|
|
55
55
|
whiteSpace: "nowrap",
|
|
56
56
|
wordWrap: "normal"
|
|
57
57
|
}), te = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
58
|
-
return /* @__PURE__ */ (0, j.jsx)(
|
|
58
|
+
return /* @__PURE__ */ (0, j.jsx)(c.span, {
|
|
59
59
|
...e,
|
|
60
60
|
ref: t,
|
|
61
61
|
style: {
|
|
@@ -69,7 +69,7 @@ var S = /* @__PURE__ */ e(i()), C = (...e) => e.filter((e, t, n) => !!e && e.tri
|
|
|
69
69
|
});
|
|
70
70
|
function ie(e) {
|
|
71
71
|
let [t, n] = S.useState(void 0);
|
|
72
|
-
return
|
|
72
|
+
return p(() => {
|
|
73
73
|
if (e) {
|
|
74
74
|
n({
|
|
75
75
|
width: e.offsetWidth,
|
|
@@ -1202,49 +1202,49 @@ var Xt = (e) => {
|
|
|
1202
1202
|
children: n
|
|
1203
1203
|
});
|
|
1204
1204
|
}, "Popper"), mn = "PopperAnchor", hn = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ Q(function(e, t) {
|
|
1205
|
-
let { __scopePopper: n, virtualRef: i, ...a } = e, o = fn(mn, n), s = S.useRef(null),
|
|
1206
|
-
s.current = e, e &&
|
|
1207
|
-
}, [
|
|
1205
|
+
let { __scopePopper: n, virtualRef: i, ...a } = e, o = fn(mn, n), s = S.useRef(null), l = o.onAnchorChange, u = S.useCallback((e) => {
|
|
1206
|
+
s.current = e, e && l(e);
|
|
1207
|
+
}, [l]), d = r(t, u), f = S.useRef(null);
|
|
1208
1208
|
S.useEffect(() => {
|
|
1209
1209
|
if (!i) return;
|
|
1210
1210
|
let e = f.current;
|
|
1211
|
-
f.current = i.current, e !== f.current &&
|
|
1211
|
+
f.current = i.current, e !== f.current && l(f.current);
|
|
1212
1212
|
});
|
|
1213
1213
|
let p = o.placementState && Sn(o.placementState), m = p?.[0], h = p?.[1];
|
|
1214
|
-
return i ? null : /* @__PURE__ */ (0, j.jsx)(
|
|
1214
|
+
return i ? null : /* @__PURE__ */ (0, j.jsx)(c.div, {
|
|
1215
1215
|
"data-radix-popper-side": m,
|
|
1216
1216
|
"data-radix-popper-align": h,
|
|
1217
1217
|
...a,
|
|
1218
|
-
ref:
|
|
1218
|
+
ref: d
|
|
1219
1219
|
});
|
|
1220
1220
|
}, "PopperAnchor")), gn = "PopperContent", [_n, vn] = ln(gn), yn = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ Q(function(e, t) {
|
|
1221
|
-
let { __scopePopper: n, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding:
|
|
1221
|
+
let { __scopePopper: n, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: l = 0, avoidCollisions: u = !0, collisionBoundary: d = [], collisionPadding: f = 0, sticky: m = on.Partial, hideWhenDetached: h = !1, updatePositionStrategy: g = sn.Optimized, onPlaced: _, ...v } = e, y = fn(gn, n), [b, C] = S.useState(null), w = r(t, C), [T, E] = S.useState(null), D = ie(T), O = D?.width ?? 0, k = D?.height ?? 0, A = i + (o === "center" ? "" : "-" + o), ee = typeof f == "number" ? f : {
|
|
1222
1222
|
top: 0,
|
|
1223
1223
|
right: 0,
|
|
1224
1224
|
bottom: 0,
|
|
1225
1225
|
left: 0,
|
|
1226
1226
|
...f
|
|
1227
|
-
}, M = Array.isArray(
|
|
1227
|
+
}, M = Array.isArray(d) ? d : [d], N = M.length > 0, P = {
|
|
1228
1228
|
padding: ee,
|
|
1229
1229
|
boundary: M.filter(bn),
|
|
1230
1230
|
altBoundary: N
|
|
1231
1231
|
}, { refs: te, floatingStyles: ne, placement: re, isPositioned: ae, middlewareData: F } = Yt({
|
|
1232
1232
|
strategy: "fixed",
|
|
1233
1233
|
placement: A,
|
|
1234
|
-
whileElementsMounted: /* @__PURE__ */ Q((...e) => Ft(...e, { animationFrame:
|
|
1235
|
-
elements: { reference:
|
|
1234
|
+
whileElementsMounted: /* @__PURE__ */ Q((...e) => Ft(...e, { animationFrame: g === sn.Always }), "whileElementsMounted"),
|
|
1235
|
+
elements: { reference: y.anchor },
|
|
1236
1236
|
middleware: [
|
|
1237
1237
|
Zt({
|
|
1238
1238
|
mainAxis: a + k,
|
|
1239
1239
|
alignmentAxis: s
|
|
1240
1240
|
}),
|
|
1241
|
-
|
|
1241
|
+
u && Qt({
|
|
1242
1242
|
mainAxis: !0,
|
|
1243
1243
|
crossAxis: !1,
|
|
1244
|
-
...
|
|
1244
|
+
...m === on.Partial ? { limiter: $t() } : {},
|
|
1245
1245
|
...P
|
|
1246
1246
|
}),
|
|
1247
|
-
|
|
1247
|
+
u && en({ ...P }),
|
|
1248
1248
|
tn({
|
|
1249
1249
|
...P,
|
|
1250
1250
|
apply: /* @__PURE__ */ Q(({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
@@ -1254,13 +1254,13 @@ var Xt = (e) => {
|
|
|
1254
1254
|
}),
|
|
1255
1255
|
T && rn({
|
|
1256
1256
|
element: T,
|
|
1257
|
-
padding:
|
|
1257
|
+
padding: l
|
|
1258
1258
|
}),
|
|
1259
1259
|
xn({
|
|
1260
1260
|
arrowWidth: O,
|
|
1261
1261
|
arrowHeight: k
|
|
1262
1262
|
}),
|
|
1263
|
-
|
|
1263
|
+
h && nn(N ? {
|
|
1264
1264
|
strategy: "referenceHidden",
|
|
1265
1265
|
...P
|
|
1266
1266
|
} : {
|
|
@@ -1269,18 +1269,18 @@ var Xt = (e) => {
|
|
|
1269
1269
|
altBoundary: P.altBoundary
|
|
1270
1270
|
})
|
|
1271
1271
|
]
|
|
1272
|
-
}), I =
|
|
1273
|
-
|
|
1272
|
+
}), I = y.setPlacementState;
|
|
1273
|
+
p(() => (I(re), () => {
|
|
1274
1274
|
I(void 0);
|
|
1275
1275
|
}), [re, I]);
|
|
1276
|
-
let [L, R] = Sn(re), z =
|
|
1277
|
-
|
|
1276
|
+
let [L, R] = Sn(re), z = x(_);
|
|
1277
|
+
p(() => {
|
|
1278
1278
|
ae && z?.();
|
|
1279
1279
|
}, [ae, z]);
|
|
1280
1280
|
let oe = F.arrow?.x, se = F.arrow?.y, ce = F.arrow?.centerOffset !== 0, [B, V] = S.useState();
|
|
1281
|
-
return
|
|
1282
|
-
|
|
1283
|
-
}, [
|
|
1281
|
+
return p(() => {
|
|
1282
|
+
b && V(window.getComputedStyle(b).zIndex);
|
|
1283
|
+
}, [b]), /* @__PURE__ */ (0, j.jsx)("div", {
|
|
1284
1284
|
ref: te.setFloating,
|
|
1285
1285
|
"data-radix-popper-content-wrapper": "",
|
|
1286
1286
|
style: {
|
|
@@ -1303,14 +1303,14 @@ var Xt = (e) => {
|
|
|
1303
1303
|
arrowX: oe,
|
|
1304
1304
|
arrowY: se,
|
|
1305
1305
|
shouldHideArrow: ce,
|
|
1306
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1306
|
+
children: /* @__PURE__ */ (0, j.jsx)(c.div, {
|
|
1307
1307
|
"data-side": L,
|
|
1308
1308
|
"data-align": R,
|
|
1309
|
-
...
|
|
1309
|
+
...v,
|
|
1310
1310
|
ref: w,
|
|
1311
1311
|
style: {
|
|
1312
|
-
...
|
|
1313
|
-
animation: ae ?
|
|
1312
|
+
...v.style,
|
|
1313
|
+
animation: ae ? v.style?.animation : "none"
|
|
1314
1314
|
}
|
|
1315
1315
|
})
|
|
1316
1316
|
})
|
|
@@ -1368,22 +1368,22 @@ var Cn = Object.defineProperty, $ = (e, t) => Cn(e, "name", {
|
|
|
1368
1368
|
children: a
|
|
1369
1369
|
});
|
|
1370
1370
|
}, "TooltipProvider"), Nn = "Tooltip", [Pn, Fn] = wn(Nn), In = /* @__PURE__ */ $((e) => {
|
|
1371
|
-
let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = jn(Nn, e.__scopeTooltip), l = En(t), [d, f] = S.useState(null), [p, m] = S.useState(void 0), h =
|
|
1371
|
+
let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = jn(Nn, e.__scopeTooltip), l = En(t), [d, f] = S.useState(null), [p, m] = S.useState(void 0), h = u(), g = S.useRef(0), _ = o ?? c.disableHoverableContent, y = s ?? c.delayDuration, b = S.useRef(!1), [x, C] = v({
|
|
1372
1372
|
prop: r,
|
|
1373
1373
|
defaultProp: i ?? !1,
|
|
1374
1374
|
onChange: /* @__PURE__ */ $((e) => {
|
|
1375
1375
|
e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(kn))) : c.onClose(), a?.(e);
|
|
1376
1376
|
}, "onChange"),
|
|
1377
1377
|
caller: Nn
|
|
1378
|
-
}), w = S.useMemo(() =>
|
|
1379
|
-
window.clearTimeout(g.current), g.current = 0,
|
|
1378
|
+
}), w = S.useMemo(() => x ? b.current ? "delayed-open" : "instant-open" : "closed", [x]), T = S.useCallback(() => {
|
|
1379
|
+
window.clearTimeout(g.current), g.current = 0, b.current = !1, C(!0);
|
|
1380
1380
|
}, [C]), E = S.useCallback(() => {
|
|
1381
1381
|
window.clearTimeout(g.current), g.current = 0, C(!1);
|
|
1382
1382
|
}, [C]), D = S.useCallback(() => {
|
|
1383
1383
|
window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
1384
|
-
|
|
1385
|
-
},
|
|
1386
|
-
}, [
|
|
1384
|
+
b.current = !0, C(!0), g.current = 0;
|
|
1385
|
+
}, y);
|
|
1386
|
+
}, [y, C]);
|
|
1387
1387
|
S.useEffect(() => () => {
|
|
1388
1388
|
g.current &&= (window.clearTimeout(g.current), 0);
|
|
1389
1389
|
}, []);
|
|
@@ -1394,7 +1394,7 @@ var Cn = Object.defineProperty, $ = (e, t) => Cn(e, "name", {
|
|
|
1394
1394
|
scope: t,
|
|
1395
1395
|
contentId: O,
|
|
1396
1396
|
setContentId: m,
|
|
1397
|
-
open:
|
|
1397
|
+
open: x,
|
|
1398
1398
|
stateAttribute: w,
|
|
1399
1399
|
trigger: d,
|
|
1400
1400
|
onTriggerChange: f,
|
|
@@ -1415,29 +1415,29 @@ var Cn = Object.defineProperty, $ = (e, t) => Cn(e, "name", {
|
|
|
1415
1415
|
})
|
|
1416
1416
|
});
|
|
1417
1417
|
}, "Tooltip"), Ln = "TooltipTrigger", Rn = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ $(function(e, t) {
|
|
1418
|
-
let { __scopeTooltip: n, "aria-describedby": i, ...a } = e, o = Fn(Ln, n), s = jn(Ln, n),
|
|
1418
|
+
let { __scopeTooltip: n, "aria-describedby": i, ...a } = e, o = Fn(Ln, n), s = jn(Ln, n), l = En(n), u = S.useRef(null), d = r(t, u, o.onTriggerChange), f = S.useRef(!1), p = S.useRef(!1), m = S.useCallback(() => f.current = !1, []);
|
|
1419
1419
|
return S.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ (0, j.jsx)(hn, {
|
|
1420
1420
|
asChild: !0,
|
|
1421
|
-
...
|
|
1422
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1421
|
+
...l,
|
|
1422
|
+
children: /* @__PURE__ */ (0, j.jsx)(c.button, {
|
|
1423
1423
|
"aria-describedby": o.open ? er(i, o.contentId) : i,
|
|
1424
1424
|
"data-state": o.stateAttribute,
|
|
1425
1425
|
...a,
|
|
1426
|
-
ref:
|
|
1427
|
-
onPointerMove:
|
|
1426
|
+
ref: d,
|
|
1427
|
+
onPointerMove: h(e.onPointerMove, (e) => {
|
|
1428
1428
|
e.pointerType !== "touch" && !p.current && !s.isPointerInTransitRef.current && (o.onTriggerEnter(), p.current = !0);
|
|
1429
1429
|
}),
|
|
1430
|
-
onPointerLeave:
|
|
1430
|
+
onPointerLeave: h(e.onPointerLeave, () => {
|
|
1431
1431
|
o.onTriggerLeave(), p.current = !1;
|
|
1432
1432
|
}),
|
|
1433
|
-
onPointerDown:
|
|
1433
|
+
onPointerDown: h(e.onPointerDown, () => {
|
|
1434
1434
|
o.open && o.onClose(), f.current = !0, document.addEventListener("pointerup", m, { once: !0 });
|
|
1435
1435
|
}),
|
|
1436
|
-
onFocus:
|
|
1436
|
+
onFocus: h(e.onFocus, () => {
|
|
1437
1437
|
f.current || o.onOpen();
|
|
1438
1438
|
}),
|
|
1439
|
-
onBlur:
|
|
1440
|
-
onClick:
|
|
1439
|
+
onBlur: h(e.onBlur, o.onClose),
|
|
1440
|
+
onClick: h(e.onClick, o.onClose)
|
|
1441
1441
|
})
|
|
1442
1442
|
});
|
|
1443
1443
|
}, "TooltipTrigger")), zn = "TooltipPortal", [Bn, Vn] = wn(zn, { forceMount: void 0 }), Hn = /* @__PURE__ */ $((e) => {
|
|
@@ -1445,9 +1445,9 @@ var Cn = Object.defineProperty, $ = (e, t) => Cn(e, "name", {
|
|
|
1445
1445
|
return /* @__PURE__ */ (0, j.jsx)(Bn, {
|
|
1446
1446
|
scope: t,
|
|
1447
1447
|
forceMount: n,
|
|
1448
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1448
|
+
children: /* @__PURE__ */ (0, j.jsx)(d, {
|
|
1449
1449
|
present: n || a.open,
|
|
1450
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1450
|
+
children: /* @__PURE__ */ (0, j.jsx)(y, {
|
|
1451
1451
|
asChild: !0,
|
|
1452
1452
|
container: i,
|
|
1453
1453
|
children: r
|
|
@@ -1456,7 +1456,7 @@ var Cn = Object.defineProperty, $ = (e, t) => Cn(e, "name", {
|
|
|
1456
1456
|
});
|
|
1457
1457
|
}, "TooltipPortal"), Un = "TooltipContent", Wn = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ $(function(e, t) {
|
|
1458
1458
|
let n = Vn(Un, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = Fn(Un, e.__scopeTooltip);
|
|
1459
|
-
return /* @__PURE__ */ (0, j.jsx)(
|
|
1459
|
+
return /* @__PURE__ */ (0, j.jsx)(d, {
|
|
1460
1460
|
present: r || o.open,
|
|
1461
1461
|
children: o.disableHoverableContent ? /* @__PURE__ */ (0, j.jsx)(qn, {
|
|
1462
1462
|
side: i,
|
|
@@ -1512,32 +1512,32 @@ var Cn = Object.defineProperty, $ = (e, t) => Cn(e, "name", {
|
|
|
1512
1512
|
ref: o
|
|
1513
1513
|
});
|
|
1514
1514
|
}, "TooltipContentHoverable")), Kn = t("TooltipContent"), qn = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ $(function(e, t) {
|
|
1515
|
-
let { __scopeTooltip: n, children: i, "aria-label": a, id: o, onEscapeKeyDown: s, onPointerDownOutside:
|
|
1516
|
-
|
|
1515
|
+
let { __scopeTooltip: n, children: i, "aria-label": a, id: o, onEscapeKeyDown: s, onPointerDownOutside: c, ...u } = e, d = Fn(Un, n), f = En(n), { onClose: m } = d, [h, g] = S.useState(null), v = r(t, g);
|
|
1516
|
+
_(h), S.useEffect(() => (document.addEventListener(kn, m), () => document.removeEventListener(kn, m)), [m]), S.useEffect(() => {
|
|
1517
1517
|
if (d.trigger) {
|
|
1518
1518
|
let e = /* @__PURE__ */ $((e) => {
|
|
1519
|
-
e.target instanceof Node && e.target.contains(d.trigger) &&
|
|
1519
|
+
e.target instanceof Node && e.target.contains(d.trigger) && m();
|
|
1520
1520
|
}, "handleScroll");
|
|
1521
1521
|
return window.addEventListener("scroll", e, { capture: !0 }), () => window.removeEventListener("scroll", e, { capture: !0 });
|
|
1522
1522
|
}
|
|
1523
|
-
}, [d.trigger,
|
|
1524
|
-
let { setContentId:
|
|
1525
|
-
return
|
|
1526
|
-
|
|
1527
|
-
}), [o,
|
|
1523
|
+
}, [d.trigger, m]);
|
|
1524
|
+
let { setContentId: y } = d;
|
|
1525
|
+
return p(() => (y(o), () => {
|
|
1526
|
+
y(void 0);
|
|
1527
|
+
}), [o, y]), /* @__PURE__ */ (0, j.jsx)(l, {
|
|
1528
1528
|
asChild: !0,
|
|
1529
1529
|
disableOutsidePointerEvents: !1,
|
|
1530
1530
|
onEscapeKeyDown: s,
|
|
1531
|
-
onPointerDownOutside:
|
|
1531
|
+
onPointerDownOutside: c,
|
|
1532
1532
|
onFocusOutside: (e) => e.preventDefault(),
|
|
1533
|
-
onDismiss:
|
|
1533
|
+
onDismiss: m,
|
|
1534
1534
|
children: /* @__PURE__ */ (0, j.jsxs)(yn, {
|
|
1535
1535
|
"data-state": d.stateAttribute,
|
|
1536
1536
|
role: a ? void 0 : "tooltip",
|
|
1537
1537
|
id: a ? void 0 : d.contentId,
|
|
1538
1538
|
...f,
|
|
1539
1539
|
...u,
|
|
1540
|
-
ref:
|
|
1540
|
+
ref: v,
|
|
1541
1541
|
style: {
|
|
1542
1542
|
...u.style,
|
|
1543
1543
|
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
@@ -1684,13 +1684,13 @@ var tr = a(), nr = (e) => {
|
|
|
1684
1684
|
delayDuration: i,
|
|
1685
1685
|
...n
|
|
1686
1686
|
}), t[3] = i, t[4] = n, t[5] = a) : a = t[5], a;
|
|
1687
|
-
}, rr =
|
|
1687
|
+
}, rr = g(Hn), ir = In, ar = b(Wn), or = Rn, sr = S.forwardRef((e, t) => {
|
|
1688
1688
|
let r = (0, tr.c)(11), i, a, o;
|
|
1689
1689
|
r[0] === e ? (i = r[1], a = r[2], o = r[3]) : ({className: i, sideOffset: o, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o);
|
|
1690
1690
|
let s = o === void 0 ? 4 : o, c;
|
|
1691
1691
|
r[4] === i ? c = r[5] : (c = n("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-xs data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", i), r[4] = i, r[5] = c);
|
|
1692
1692
|
let l;
|
|
1693
|
-
return r[6] !== a || r[7] !== t || r[8] !== s || r[9] !== c ? (l = /* @__PURE__ */ (0, j.jsx)(
|
|
1693
|
+
return r[6] !== a || r[7] !== t || r[8] !== s || r[9] !== c ? (l = /* @__PURE__ */ (0, j.jsx)(m, { children: /* @__PURE__ */ (0, j.jsx)(ar, {
|
|
1694
1694
|
ref: t,
|
|
1695
1695
|
sideOffset: s,
|
|
1696
1696
|
className: c,
|
|
@@ -7366,41 +7366,41 @@ function qm(...e) {
|
|
|
7366
7366
|
var Jm = D(Km()), Ym = D({}), $ = D((e) => {
|
|
7367
7367
|
let t = e(Ym);
|
|
7368
7368
|
return qm(e(Jm), t);
|
|
7369
|
-
}), Xm = D((e) => e($).runtime.
|
|
7369
|
+
}), Xm = D((e) => e($).runtime.on_cell_change === "autorun"), Zm = D((e) => e($).runtime.auto_instantiate), Qm = D((e) => e($).keymap.overrides ?? {}), $m = D(n());
|
|
7370
7370
|
D((e) => {
|
|
7371
|
-
let t = e(
|
|
7371
|
+
let t = e(Qm), n = e($m);
|
|
7372
7372
|
return new a(t, { platform: n });
|
|
7373
7373
|
}), D((e) => e($).save), D((e) => e($).server.transport === "sse" ? "sse" : "websocket");
|
|
7374
|
-
var
|
|
7374
|
+
var eh = D((e) => e($).ai);
|
|
7375
7375
|
D((e) => e($).completion), D((e) => e($).keymap.preset);
|
|
7376
|
-
function
|
|
7376
|
+
function th() {
|
|
7377
7377
|
let e = (0, O.c)(3), t = Ti($), n = Ei(Jm), r;
|
|
7378
7378
|
return e[0] !== t || e[1] !== n ? (r = [t, n], e[0] = t, e[1] = n, e[2] = r) : r = e[2], r;
|
|
7379
7379
|
}
|
|
7380
|
-
function
|
|
7380
|
+
function nh() {
|
|
7381
7381
|
return k.get($);
|
|
7382
7382
|
}
|
|
7383
|
-
D((e) =>
|
|
7384
|
-
var
|
|
7383
|
+
D((e) => oh(e($)));
|
|
7384
|
+
var rh = D((e) => sh(e($))), ih = D((e) => ch(e($)));
|
|
7385
7385
|
D((e) => e($).display.code_editor_font_size);
|
|
7386
|
-
var
|
|
7387
|
-
function
|
|
7386
|
+
var ah = D((e) => e($).display.locale);
|
|
7387
|
+
function oh(e) {
|
|
7388
7388
|
return e.ai?.enabled !== !1;
|
|
7389
7389
|
}
|
|
7390
|
-
function
|
|
7390
|
+
function sh(e) {
|
|
7391
7391
|
return !!e.ai?.models?.chat_model || !!e.ai?.models?.edit_model || !!e.ai?.models?.autocomplete_model;
|
|
7392
7392
|
}
|
|
7393
|
-
function
|
|
7394
|
-
return
|
|
7393
|
+
function ch(e) {
|
|
7394
|
+
return oh(e) && sh(e);
|
|
7395
7395
|
}
|
|
7396
|
-
var
|
|
7397
|
-
D((e) => e(
|
|
7396
|
+
var lh = D({}), uh = Li(D((e) => e($i)?.revision.app_config ?? e(lh)), (e) => e, Ai), dh = D((e) => Gm(e(uh)));
|
|
7397
|
+
D((e) => e(dh).width), D((e) => {
|
|
7398
7398
|
let t = e($), n = t.snippets?.custom_paths ?? [], r = t.snippets?.include_default_snippets;
|
|
7399
7399
|
return n.length > 0 || r === !0;
|
|
7400
7400
|
}), D((e) => e($).server?.disable_file_downloads ?? !1);
|
|
7401
7401
|
//#endregion
|
|
7402
7402
|
//#region src/core/constants.ts
|
|
7403
|
-
var
|
|
7403
|
+
var fh = {
|
|
7404
7404
|
githubPage: "https://github.com/marimo-team/marimo",
|
|
7405
7405
|
releasesPage: "https://github.com/marimo-team/marimo/releases",
|
|
7406
7406
|
issuesPage: "https://github.com/marimo-team/marimo/issues",
|
|
@@ -7410,7 +7410,7 @@ var dh = {
|
|
|
7410
7410
|
docsPage: "https://docs.marimo.io",
|
|
7411
7411
|
youtube: "https://www.youtube.com/@marimo-team",
|
|
7412
7412
|
molab: "https://molab.marimo.io"
|
|
7413
|
-
},
|
|
7413
|
+
}, ph = {
|
|
7414
7414
|
showCode: "show-code",
|
|
7415
7415
|
includeCode: "include-code",
|
|
7416
7416
|
sessionId: "session_id",
|
|
@@ -7421,32 +7421,32 @@ var dh = {
|
|
|
7421
7421
|
viewAs: "view-as",
|
|
7422
7422
|
showChrome: "show-chrome",
|
|
7423
7423
|
theme: "theme"
|
|
7424
|
-
},
|
|
7424
|
+
}, mh = { outputArea: "output-area" };
|
|
7425
7425
|
//#endregion
|
|
7426
7426
|
//#region src/core/islands/utils.ts
|
|
7427
|
-
function
|
|
7427
|
+
function hh() {
|
|
7428
7428
|
return !0;
|
|
7429
7429
|
}
|
|
7430
7430
|
//#endregion
|
|
7431
7431
|
//#region src/theme/useTheme.ts
|
|
7432
|
-
var
|
|
7432
|
+
var gh = [
|
|
7433
7433
|
"light",
|
|
7434
7434
|
"dark",
|
|
7435
7435
|
"system"
|
|
7436
7436
|
];
|
|
7437
|
-
function
|
|
7437
|
+
function _h() {
|
|
7438
7438
|
if (typeof window > "u") return;
|
|
7439
|
-
let e = new URLSearchParams(window.location.search).get(
|
|
7440
|
-
return
|
|
7439
|
+
let e = new URLSearchParams(window.location.search).get(ph.theme);
|
|
7440
|
+
return gh.includes(e) ? e : void 0;
|
|
7441
7441
|
}
|
|
7442
|
-
function
|
|
7442
|
+
function vh() {
|
|
7443
7443
|
return [document.body, document.documentElement];
|
|
7444
7444
|
}
|
|
7445
|
-
function
|
|
7445
|
+
function yh() {
|
|
7446
7446
|
return typeof window > "u" ? void 0 : window.matchMedia?.("(prefers-color-scheme: dark)");
|
|
7447
7447
|
}
|
|
7448
|
-
function
|
|
7449
|
-
let t =
|
|
7448
|
+
function bh(e = yh()?.matches) {
|
|
7449
|
+
let t = vh();
|
|
7450
7450
|
for (let e of t) for (let t of ["dark", "light"]) if (e.classList.contains(t) || e.classList.contains(`${t}-mode`) || e.classList.contains(`${t}-theme`) || e.dataset.theme === t || e.dataset.mode === t) return t;
|
|
7451
7451
|
let n = t.map((e) => window.getComputedStyle(e)), r = n[0].colorScheme.split(/\s+/);
|
|
7452
7452
|
if (r.includes("dark")) return !r.includes("light") || e ? "dark" : "light";
|
|
@@ -7460,10 +7460,10 @@ function yh(e = vh()?.matches) {
|
|
|
7460
7460
|
}
|
|
7461
7461
|
return "light";
|
|
7462
7462
|
}
|
|
7463
|
-
var
|
|
7464
|
-
|
|
7465
|
-
let t =
|
|
7466
|
-
for (let e of
|
|
7463
|
+
var xh = D(void 0);
|
|
7464
|
+
xh.onMount = (e) => {
|
|
7465
|
+
let t = yh(), n = () => e(bh(t?.matches)), r = new MutationObserver(n);
|
|
7466
|
+
for (let e of vh()) r.observe(e, {
|
|
7467
7467
|
attributes: !0,
|
|
7468
7468
|
attributeFilter: [
|
|
7469
7469
|
"class",
|
|
@@ -7476,98 +7476,98 @@ bh.onMount = (e) => {
|
|
|
7476
7476
|
r.disconnect(), t?.removeEventListener("change", n), e(void 0);
|
|
7477
7477
|
};
|
|
7478
7478
|
};
|
|
7479
|
-
var
|
|
7480
|
-
function
|
|
7481
|
-
let e =
|
|
7482
|
-
e && (k.set(
|
|
7483
|
-
k.set(
|
|
7479
|
+
var Sh = D((e) => hh() ? e(xh) ?? bh() : _h() ?? e($).display.theme), Ch = D(!1);
|
|
7480
|
+
function wh() {
|
|
7481
|
+
let e = yh();
|
|
7482
|
+
e && (k.set(Ch, e.matches), e.addEventListener("change", (e) => {
|
|
7483
|
+
k.set(Ch, e.matches);
|
|
7484
7484
|
}));
|
|
7485
7485
|
}
|
|
7486
|
-
|
|
7487
|
-
function
|
|
7486
|
+
wh();
|
|
7487
|
+
function Th() {
|
|
7488
7488
|
switch (document.body.dataset.vscodeThemeKind) {
|
|
7489
7489
|
case "vscode-dark": return "dark";
|
|
7490
7490
|
case "vscode-high-contrast": return "dark";
|
|
7491
7491
|
case "vscode-light": return "light";
|
|
7492
7492
|
}
|
|
7493
7493
|
}
|
|
7494
|
-
var
|
|
7495
|
-
function
|
|
7494
|
+
var Eh = D(Th());
|
|
7495
|
+
function Dh() {
|
|
7496
7496
|
let e = new MutationObserver(() => {
|
|
7497
|
-
let e =
|
|
7498
|
-
k.set(
|
|
7497
|
+
let e = Th();
|
|
7498
|
+
k.set(Eh, e);
|
|
7499
7499
|
});
|
|
7500
7500
|
return e.observe(document.body, {
|
|
7501
7501
|
attributes: !0,
|
|
7502
7502
|
attributeFilter: ["data-vscode-theme-kind"]
|
|
7503
7503
|
}), () => e.disconnect();
|
|
7504
7504
|
}
|
|
7505
|
-
|
|
7506
|
-
var
|
|
7507
|
-
let t = e(
|
|
7505
|
+
Dh();
|
|
7506
|
+
var Oh = D((e) => {
|
|
7507
|
+
let t = e(Sh), n = e(Eh);
|
|
7508
7508
|
if (n !== void 0) return n;
|
|
7509
|
-
let r = e(
|
|
7509
|
+
let r = e(Ch);
|
|
7510
7510
|
return t === "system" ? r ? "dark" : "light" : t;
|
|
7511
7511
|
});
|
|
7512
|
-
function
|
|
7512
|
+
function kh() {
|
|
7513
7513
|
let e = (0, O.c)(3), t;
|
|
7514
7514
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store: k }, e[0] = t) : t = e[0];
|
|
7515
|
-
let n = Ti(
|
|
7515
|
+
let n = Ti(Oh, t), r;
|
|
7516
7516
|
return e[1] === n ? r = e[2] : (r = { theme: n }, e[1] = n, e[2] = r), r;
|
|
7517
7517
|
}
|
|
7518
7518
|
//#endregion
|
|
7519
7519
|
//#region src/theme/namespace.tsx
|
|
7520
|
-
var
|
|
7521
|
-
let n = (0, O.c)(4), { children: r } = e, { theme: i } =
|
|
7520
|
+
var Ah = { display: "contents" }, jh = v.forwardRef((e, t) => {
|
|
7521
|
+
let n = (0, O.c)(4), { children: r } = e, { theme: i } = kh(), a = `marimo ${i}`, o;
|
|
7522
7522
|
return n[0] !== r || n[1] !== t || n[2] !== a ? (o = /* @__PURE__ */ (0, y.jsx)("div", {
|
|
7523
7523
|
ref: t,
|
|
7524
7524
|
className: a,
|
|
7525
|
-
style:
|
|
7525
|
+
style: Ah,
|
|
7526
7526
|
children: r
|
|
7527
7527
|
}), n[0] = r, n[1] = t, n[2] = a, n[3] = o) : o = n[3], o;
|
|
7528
7528
|
});
|
|
7529
|
-
|
|
7529
|
+
jh.displayName = "StyleNamespace";
|
|
7530
7530
|
//#endregion
|
|
7531
7531
|
//#region src/core/vscode/is-in-vscode.ts
|
|
7532
|
-
function
|
|
7532
|
+
function Mh() {
|
|
7533
7533
|
return document.querySelector("[data-vscode-theme-kind]") !== null;
|
|
7534
7534
|
}
|
|
7535
7535
|
//#endregion
|
|
7536
7536
|
//#region src/components/ui/fullscreen.tsx
|
|
7537
|
-
var
|
|
7538
|
-
function
|
|
7537
|
+
var Nh = "[data-vscode-output-container]", Ph = Mh() ? 0 : 30;
|
|
7538
|
+
function Fh() {
|
|
7539
7539
|
let e = document.fullscreenElement;
|
|
7540
7540
|
for (; e?.shadowRoot?.fullscreenElement;) e = e.shadowRoot.fullscreenElement;
|
|
7541
7541
|
return e;
|
|
7542
7542
|
}
|
|
7543
|
-
function
|
|
7544
|
-
let e = (0, O.c)(1), [t, n] = (0, v.useState)(
|
|
7543
|
+
function Ih() {
|
|
7544
|
+
let e = (0, O.c)(1), [t, n] = (0, v.useState)(Fh), r;
|
|
7545
7545
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
7546
|
-
n(
|
|
7546
|
+
n(Fh());
|
|
7547
7547
|
}, e[0] = r) : r = e[0], i(document, "fullscreenchange", r), t;
|
|
7548
7548
|
}
|
|
7549
|
-
var
|
|
7550
|
-
function
|
|
7551
|
-
for (let e of
|
|
7549
|
+
var Lh = /* @__PURE__ */ new Set();
|
|
7550
|
+
function Rh() {
|
|
7551
|
+
for (let e of Lh) e();
|
|
7552
7552
|
}
|
|
7553
|
-
function
|
|
7554
|
-
return
|
|
7555
|
-
|
|
7553
|
+
function zh(e) {
|
|
7554
|
+
return Lh.size === 0 && document.addEventListener("fullscreenchange", Rh), Lh.add(e), () => {
|
|
7555
|
+
Lh.delete(e), Lh.size === 0 && document.removeEventListener("fullscreenchange", Rh);
|
|
7556
7556
|
};
|
|
7557
7557
|
}
|
|
7558
|
-
function
|
|
7558
|
+
function Bh(e) {
|
|
7559
7559
|
let t = (0, O.c)(2), n;
|
|
7560
7560
|
return t[0] === e ? n = t[1] : (n = () => {
|
|
7561
7561
|
let t = document.fullscreenElement;
|
|
7562
7562
|
return t !== null && t === e.current;
|
|
7563
|
-
}, t[0] = e, t[1] = n), (0, v.useSyncExternalStore)(
|
|
7563
|
+
}, t[0] = e, t[1] = n), (0, v.useSyncExternalStore)(zh, n);
|
|
7564
7564
|
}
|
|
7565
|
-
function
|
|
7565
|
+
function Vh(e) {
|
|
7566
7566
|
let t = (t) => {
|
|
7567
7567
|
let n = (0, O.c)(6), [r, i] = v.useState(null), a = v.useRef(null), o, s;
|
|
7568
7568
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
7569
7569
|
if (!a.current) return;
|
|
7570
|
-
let e =
|
|
7570
|
+
let e = Uh(a.current, Nh);
|
|
7571
7571
|
i(e);
|
|
7572
7572
|
}, s = [], n[0] = o, n[1] = s) : (o = n[0], s = n[1]), v.useLayoutEffect(o, s);
|
|
7573
7573
|
let c;
|
|
@@ -7581,8 +7581,8 @@ function Bh(e) {
|
|
|
7581
7581
|
container: r
|
|
7582
7582
|
})] }), n[3] = r, n[4] = t, n[5] = l) : l = n[5], l;
|
|
7583
7583
|
}, n = (n) => {
|
|
7584
|
-
let r = (0, O.c)(7), i =
|
|
7585
|
-
if (
|
|
7584
|
+
let r = (0, O.c)(7), i = Ih();
|
|
7585
|
+
if (Mh()) {
|
|
7586
7586
|
let e;
|
|
7587
7587
|
return r[0] === n ? e = r[1] : (e = /* @__PURE__ */ (0, y.jsx)(t, { ...n }), r[0] = n, r[1] = e), e;
|
|
7588
7588
|
}
|
|
@@ -7598,12 +7598,12 @@ function Bh(e) {
|
|
|
7598
7598
|
};
|
|
7599
7599
|
return n.displayName = e.displayName, n;
|
|
7600
7600
|
}
|
|
7601
|
-
function
|
|
7601
|
+
function Hh(e) {
|
|
7602
7602
|
let t = (t) => {
|
|
7603
7603
|
let n = (0, O.c)(6), [r, i] = v.useState(null), a = v.useRef(null), o, s;
|
|
7604
7604
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
7605
7605
|
if (!a.current) return;
|
|
7606
|
-
let e =
|
|
7606
|
+
let e = Uh(a.current, Nh);
|
|
7607
7607
|
i(e);
|
|
7608
7608
|
}, s = [], n[0] = o, n[1] = s) : (o = n[0], s = n[1]), v.useLayoutEffect(o, s);
|
|
7609
7609
|
let c;
|
|
@@ -7618,7 +7618,7 @@ function Vh(e) {
|
|
|
7618
7618
|
})] }), n[3] = r, n[4] = t, n[5] = l) : l = n[5], l;
|
|
7619
7619
|
}, n = (n) => {
|
|
7620
7620
|
let r = (0, O.c)(4);
|
|
7621
|
-
if (
|
|
7621
|
+
if (Mh()) {
|
|
7622
7622
|
let e;
|
|
7623
7623
|
return r[0] === n ? e = r[1] : (e = /* @__PURE__ */ (0, y.jsx)(t, { ...n }), r[0] = n, r[1] = e), e;
|
|
7624
7624
|
}
|
|
@@ -7627,7 +7627,7 @@ function Vh(e) {
|
|
|
7627
7627
|
};
|
|
7628
7628
|
return n.displayName = e.displayName, n;
|
|
7629
7629
|
}
|
|
7630
|
-
function
|
|
7630
|
+
function Uh(e, t) {
|
|
7631
7631
|
let n = e;
|
|
7632
7632
|
for (; n;) {
|
|
7633
7633
|
let e = n.closest(t);
|
|
@@ -7639,7 +7639,7 @@ function Hh(e, t) {
|
|
|
7639
7639
|
}
|
|
7640
7640
|
//#endregion
|
|
7641
7641
|
//#region src/components/ui/use-restore-focus.ts
|
|
7642
|
-
function
|
|
7642
|
+
function Wh() {
|
|
7643
7643
|
let e = (0, O.c)(3), [t, n] = (0, v.useState)(null), r;
|
|
7644
7644
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
7645
7645
|
n(document.activeElement);
|
|
@@ -7653,4 +7653,4 @@ function Uh() {
|
|
|
7653
7653
|
}, e[1] = t, e[2] = a), a;
|
|
7654
7654
|
}
|
|
7655
7655
|
//#endregion
|
|
7656
|
-
export {
|
|
7656
|
+
export { Dm as $, tr as $t, Bp as A, Mi as At, ip as B, vi as Bt, qm as C, ta as Ct, Pp as D, $i as Dt, Jm as E, Zi as Et, nm as F, Ai as Ft, Nm as G, Er as Gt, W as H, mi as Ht, Op as I, yi as It, Y as J, hr as Jt, Np as K, yr as Kt, Hp as L, Di as Lt, qp as M, Ki as Mt, tm as N, Li as Nt, Vp as O, Xi as Ot, ap as P, Wi as Pt, Ap as Q, ar as Qt, om as R, Ti as Rt, ah as S, k as St, th as T, Qi as Tt, Gp as U, kr as Ut, Zp as V, D as Vt, Z as W, sr as Wt, km as X, Cr as Xt, J as Y, pr as Yt, Jp as Z, lr as Zt, ih as _, b as _n, Lu as _t, Bh as a, ht as an, Up as at, Xm as b, jo as bt, Mh as c, tt as cn, Wp as ct, kh as d, We as dn, Kp as dt, Kn as en, rm as et, hh as f, Pe as fn, Lp as ft, eh as g, se as gn, Wu as gt, ph as h, le as hn, Rf as ht, Ih as i, pt as in, q as it, fm as j, Ji as jt, jp as k, Ni as kt, jh as l, nt as ln, G as lt, fh as m, pe as mn, Hf as mt, Ph as n, It as nn, xm as nt, Vh as o, _t as on, sm as ot, mh as p, Ee as pn, Kf as pt, Fp as q, wr as qt, Fh as r, At as rn, zp as rt, Hh as s, gt as sn, em as st, Wh as t, zt as tn, X as tt, Oh as u, Je as un, Qp as ut, rh as v, ie as vn, lu as vt, $ as w, ea as wt, nh as x, ra as xt, Zm as y, Mu as yt, Sm as z, Ei as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
2
|
import { t } from "./react-Bgs_wQh3.js";
|
|
3
|
-
import { h as n } from "./tooltip-
|
|
4
|
-
import { C as r } from "./select-
|
|
3
|
+
import { h as n } from "./tooltip-CiJ919pg.js";
|
|
4
|
+
import { C as r } from "./select-PQHWLm64.js";
|
|
5
5
|
var i = n("chart-pie", [["path", {
|
|
6
6
|
d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
|
|
7
7
|
key: "pzmjnu"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
2
|
import { t } from "./react-Bgs_wQh3.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Ft as n } from "./use-restore-focus-BLj45Ibw.js";
|
|
4
4
|
//#region src/utils/semaphore.ts
|
|
5
5
|
var r = class {
|
|
6
6
|
maxPermits;
|