@marimo-team/islands 0.25.3-dev209 → 0.25.3-dev210
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-ApTYh0V3.js → ConnectedDataExplorerComponent-D6RHJV8D.js} +114 -112
- package/dist/{ErrorBoundary-B1QlXN-y.js → ErrorBoundary-VruaQLnK.js} +10 -10
- package/dist/{abnfDiagram-VCTEODGH-uo9xhZY0.js → abnfDiagram-VCTEODGH-0q7Lbmii.js} +2 -2
- package/dist/{any-language-editor-BVFHDDQ3.js → any-language-editor-jGaR0EAo.js} +5 -5
- package/dist/{architectureDiagram-5GKGNRK7-Hz6eyeOD.js → architectureDiagram-5GKGNRK7-1PydKPmE.js} +1 -1
- package/dist/{button-BQRdqQi1.js → button-B6RjDKJx.js} +54 -51
- package/dist/{capabilities-C2QUNRXi.js → capabilities-CkVzWJEX.js} +1 -1
- package/dist/{chat-ui-BTA1I5i1.js → chat-ui-B5pH_aXk.js} +414 -413
- package/dist/{check-C9Mp9eCK.js → check-Z_vtI3OL.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DBM2i23k.js → chunk-IMKFNOWR-DEzZZ1Zc.js} +1 -1
- package/dist/{chunk-SHT3W25Y-L8KQLLBy.js → chunk-SHT3W25Y-CuHj-hnn.js} +1 -1
- package/dist/{chunk-SVP7TREG-BOUJKJEP.js → chunk-SVP7TREG-BPiZK2bA.js} +1 -1
- package/dist/{chunk-TICWLB2K-DY3CzFjX.js → chunk-TICWLB2K-DF6XcIjM.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-s9iwW-q4.js → classDiagram-ZZMXUADV-CMdR-cP4.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-2GI5CjGB.js → classDiagram-v2-VYDZK3BY-DRvc3_7Y.js} +2 -2
- package/dist/{code-visibility-CCGlDSq4.js → code-visibility-BdFhHfIC.js} +28 -28
- package/dist/{common-C1PmVtVW.js → common-Ce1SgsX1.js} +8034 -8027
- package/dist/{toDate-BZZ64K_m.js → config-DbjzjwxX.js} +98 -164
- package/dist/{copy-icon-De584pZ4.js → copy-icon-CG57cxwb.js} +3 -3
- package/dist/createReducer-DePYJ0F3.js +63 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-DOxnhBK2.js → cynefinDiagram-5FMLGOSQ-BkBjEY9l.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-D1AhEfpM.js → dagre-GXQ25YYZ-D-HEaW4I.js} +1 -1
- package/dist/{data-grid-overlay-editor-B3KXkZvo.js → data-grid-overlay-editor-Bps1p6jQ.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-DV_GebF_.js → diagram-S7CK7UJ4-Bn-oF-rB.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-6dNzGFfD.js → diagram-UQ7AKVKN-BpzzXWBj.js} +1 -1
- package/dist/{diagram-VX7I27RA-DUh9jsfi.js → diagram-VX7I27RA-COOtvfBP.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Cug-qcQ8.js → diagram-Z3DM3KII-K5cXvbrl.js} +1 -1
- package/dist/{dialog-DVRfQuhD.js → dialog-DsZ49mmU.js} +26 -26
- package/dist/{dist-BJtmSgcE.js → dist-11T5wq3_.js} +41 -40
- package/dist/{dist-B1M0bGO3.js → dist-17ugwGZc.js} +59 -58
- package/dist/{dist-D7mrh5sO.js → dist-7cRjf--y.js} +135 -134
- package/dist/{dist-Ck_C32ye.js → dist-B8pkfkzc.js} +31 -30
- package/dist/{dist-Ba2VIn1K.js → dist-B9UoM_wq.js} +54 -53
- package/dist/{dist-KN80qWCP.js → dist-BGuMTs1i.js} +118 -117
- package/dist/{dist-T5rh6JvL.js → dist-BHW11fni.js} +18 -17
- package/dist/dist-BLY4m1Wi.js +850 -0
- package/dist/{dist-Bj4bmwUm.js → dist-BNlcVoxs.js} +31 -30
- package/dist/{dist-BA13RJj5.js → dist-BQYe5Bju.js} +47 -46
- package/dist/{dist-OUle2RT7.js → dist-BX1mn8na.js} +297 -297
- package/dist/{dist-CTi5FTiV.js → dist-Bh0PTKUW.js} +108 -107
- package/dist/{dist-D9Q3xjiP.js → dist-CKaXK92p.js} +56 -55
- package/dist/{dist-DYXM73-k.js → dist-CLhwfhpJ.js} +58 -57
- package/dist/{dist-BmS-ZGjl.js → dist-CYeqK4Xw.js} +1854 -2702
- package/dist/{dist-D1fnFp1J.js → dist-Cxlp3WH6.js} +16 -15
- package/dist/{dist-DVVwOfrD.js → dist-DSJPGj42.js} +64 -63
- package/dist/{dist-Bzogh7CW.js → dist-DU9ICsWZ.js} +93 -92
- package/dist/{dist-DjeybPOb.js → dist-DWv0ALBi.js} +47 -46
- package/dist/{dist-D3x9__Fu.js → dist-DiBpWEsB.js} +39 -38
- package/dist/{dist-DtGn9N4h.js → dist-DiLFTlnl.js} +165 -165
- package/dist/{dist-DTv9KkpW.js → dist-cVDV5IuI.js} +26 -25
- package/dist/{dist-DP60Ubh8.js → dist-fRfaOoq8.js} +44 -43
- package/dist/{dist-O0qFpEJh.js → dist-gTTI-9Px.js} +66 -65
- package/dist/{dropdown-menu-dlEm41Bt.js → dropdown-menu-CSNdPSnS.js} +2886 -1529
- package/dist/{ebnfDiagram-PWID7BFC-d5LKx7Vb.js → ebnfDiagram-PWID7BFC-BI1ZmjVm.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BwvlkcID.js → erDiagram-RLTQ6QDP-BtWjj9xy.js} +1 -1
- package/dist/{error-banner-DxJ3s8YO.js → error-banner-IsonnvA0.js} +47 -46
- package/dist/error-entries-CRPfxMqm.js +2505 -0
- package/dist/{esm-Bbw_Njjx.js → esm-BgKjMvWw.js} +389 -388
- package/dist/{esm-mDQNEFe_.js → esm-CHjVSexr.js} +305 -306
- package/dist/{feedback-button-UsovT9sL.js → feedback-button-2ycmR9GG.js} +112 -112
- package/dist/{flowDiagram-HODETNUW-CJcSoFer.js → flowDiagram-HODETNUW-DQvZh96A.js} +2 -2
- package/dist/{formats-Ry7c-aIV.js → formats-BK4VefeF.js} +6 -6
- package/dist/{glide-data-editor-CRd8kBSp.js → glide-data-editor-Buj2OZjL.js} +99 -99
- package/dist/{glide-utils-D98laidb.js → glide-utils-CQddGpa-.js} +3 -3
- package/dist/{globals-BDWrOstF.js → globals-B-14fUeb.js} +3 -3
- package/dist/{error-entries-CVUHA5r_.js → html-to-image-CgAnxFi8.js} +26314 -25474
- package/dist/{infoDiagram-27XIBGKW-Cezgppw3.js → infoDiagram-27XIBGKW-BdAObnc_.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-BahZQwJz.js → ishikawaDiagram-5VMMS53U-DP-jE8dw.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Cvfn_Obm.js → kanban-definition-UXKFOSKX-BkMgPjfm.js} +1 -1
- package/dist/{loader-DOVB0Syl.js → loader-BisjOLiW.js} +1 -1
- package/dist/main.js +2996 -2992
- package/dist/{mermaid-BrdwbArF.js → mermaid-B-OFqheA.js} +36 -36
- package/dist/{mindmap-definition-YA3MSWOX-uB4B2d-J.js → mindmap-definition-YA3MSWOX-Du7toAZX.js} +1 -1
- package/dist/{number-overlay-editor-Bp9a4z5Q.js → number-overlay-editor-ZVFcJ7_u.js} +1 -1
- package/dist/{dist-CThPVKaP.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +1139 -1120
- package/dist/{pegDiagram-XKGWAZYB-CYaIwAmH.js → pegDiagram-XKGWAZYB-CX_729j0.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BJ1oUxVv.js → pieDiagram-E7YTZNPT-dtTFJcVI.js} +1 -1
- package/dist/{process-output-SjJxB1wh.js → process-output-Bmev5azU.js} +5 -5
- package/dist/{railroadDiagram-O6MQD6OU-BqKSaBux.js → railroadDiagram-O6MQD6OU-Dsc2Cf4c.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DwFhgDhH.js → requirementDiagram-BXWQKSXE-D3g0c60I.js} +1 -1
- package/dist/{reveal-component-ov3pS-oO.js → reveal-component-BWz1KjWe.js} +725 -725
- package/dist/schemas-CdscWNy_.js +4747 -0
- package/dist/select-BSxlITBo.js +1200 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-L7ENjfKF.js → sequenceDiagram-WJ2MYXX4-w1pWbIpk.js} +1 -1
- package/dist/{spec-BcJ9ncAY.js → spec-Dq8RNplp.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-CVf88u-p.js → stateDiagram-D77RDMKH-BCv7kP4H.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DvpkQ1V6.js → stateDiagram-v2-MP3YSRHH-D1cTOt0x.js} +2 -2
- package/dist/static-state-BldGd99T.js +72 -0
- package/dist/strings-BGW-fXVJ.js +507 -0
- package/dist/{swimlanes-42K2YHIH-DIuFHbVE.js → swimlanes-42K2YHIH-DNO6jDnd.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CAqHAziW.js → swimlanesDiagram-VR7AAH4N-CkSWsxYJ.js} +2 -2
- package/dist/{swiper-component-BVfnhbnt.js → swiper-component-Dir1o8ml.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-xO4EQqBm.js → timeline-definition-24CTP7MA-DQvqGFM9.js} +1 -1
- package/dist/toast-BWIPi3aF.js +491 -0
- package/dist/{tooltip-s4zZxwKe.js → tooltip-C3UnvsRe.js} +58 -58
- package/dist/use-restore-focus-BWO0z1lo.js +1672 -0
- package/dist/{useAsyncData-Dqw22wZQ.js → useAsyncData-DsZMvNXn.js} +1 -1
- package/dist/{useDateFormatter-D3Tkfzej.js → useDateFormatter-ChB4eyim.js} +2 -2
- package/dist/{useDeepCompareMemoize-D3gozcjJ.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
- package/dist/{useIframeCapabilities-6a_yDNXp.js → useIframeCapabilities-cMNQ80CK.js} +1 -1
- package/dist/useLifecycle-BquH9ET-.js +112 -0
- package/dist/useTheme-B9C1JIy9.js +307 -0
- package/dist/utils-DXkj82sK.js +813 -0
- package/dist/{vega-component-Blvspl7v.js → vega-component-9NOEITbg.js} +55 -54
- package/dist/{vennDiagram-4TSXK5OY-DzCi-lRh.js → vennDiagram-4TSXK5OY-BfzXp4SH.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CW48xa0n.js → wardleyDiagram-VM6X3IG4-CiqEE8eq.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-UPxGGI2B.js → xychartDiagram-S5SC5T6Z-BTIHCVOI.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +1 -1
- package/src/components/editor/cell/code/cell-editor.tsx +13 -36
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +11 -5
- package/src/components/editor/notebook-cell.tsx +0 -1
- package/src/components/scratchpad/scratchpad.test.tsx +3 -11
- package/src/components/scratchpad/scratchpad.tsx +24 -22
- package/src/components/scratchpad/state.ts +7 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +6 -8
- package/src/core/ai/staged-cells.ts +4 -2
- package/src/core/cells/__tests__/cells.test.ts +44 -60
- package/src/core/cells/__tests__/document.test.ts +1 -139
- package/src/core/cells/__tests__/notebook-outline.test.ts +8 -6
- package/src/core/cells/actions.ts +39 -0
- package/src/core/cells/cells.ts +15 -35
- package/src/core/cells/document.ts +9 -84
- package/src/core/codemirror/__tests__/format.test.ts +0 -34
- package/src/core/codemirror/cells/extensions.ts +20 -18
- package/src/core/codemirror/cells/state.ts +0 -5
- package/src/core/codemirror/format.ts +1 -19
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/notebook/document/__tests__/codemirror.test.ts +172 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +26 -18
- package/dist/html-to-image--E3uFbJ9.js +0 -3348
- package/dist/label-Qvw1E97W.js +0 -281
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
- package/dist/select-2KOiReNY.js +0 -1423
- package/dist/toast-B5t9o6s_.js +0 -1848
- package/dist/use-restore-focus-BgDTd2tc.js +0 -6418
- package/dist/useLifecycle-CaZi4wTw.js +0 -172
- package/dist/useTheme-TzPgWXwB.js +0 -1114
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { g as t } from "./button-
|
|
2
|
+
import { g as t } from "./button-B6RjDKJx.js";
|
|
3
3
|
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
|
-
import { m as r } from "./tooltip-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
var
|
|
4
|
+
import { m as r } from "./tooltip-C3UnvsRe.js";
|
|
5
|
+
import { i, l as a, t as o, w as s } from "./utils-DXkj82sK.js";
|
|
6
|
+
import { i as c, m as l, n as u } from "./static-state-BldGd99T.js";
|
|
7
|
+
var d = r("circle-question-mark", [
|
|
8
8
|
["circle", {
|
|
9
9
|
cx: "12",
|
|
10
10
|
cy: "12",
|
|
@@ -19,18 +19,9 @@ var u = r("circle-question-mark", [
|
|
|
19
19
|
d: "M12 17h.01",
|
|
20
20
|
key: "p32p05"
|
|
21
21
|
}]
|
|
22
|
-
])
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/utils/assertExists.ts
|
|
28
|
-
function p(e, t) {
|
|
29
|
-
if (e == null) throw Error(t || `Expected value but got ${e}`);
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/utils/Deferred.ts
|
|
33
|
-
var m = class {
|
|
22
|
+
]);
|
|
23
|
+
n();
|
|
24
|
+
var f = class {
|
|
34
25
|
promise;
|
|
35
26
|
resolve;
|
|
36
27
|
reject;
|
|
@@ -41,36 +32,17 @@ var m = class {
|
|
|
41
32
|
this.reject = (e) => {
|
|
42
33
|
this.status = "rejected", t(e);
|
|
43
34
|
}, this.resolve = (t) => {
|
|
44
|
-
this.status = "resolved",
|
|
35
|
+
this.status = "resolved", p(t) || (this.value = t), e(t);
|
|
45
36
|
};
|
|
46
37
|
});
|
|
47
38
|
}
|
|
48
39
|
};
|
|
49
|
-
function
|
|
40
|
+
function p(e) {
|
|
50
41
|
return typeof e == "object" && !!e && "then" in e && typeof e.then == "function";
|
|
51
42
|
}
|
|
52
43
|
//#endregion
|
|
53
|
-
//#region src/core/mode.ts
|
|
54
|
-
function g() {
|
|
55
|
-
let e = s.get(v);
|
|
56
|
-
return p(e, "internal-error: initial mode not found"), l(e !== "present", "internal-error: initial mode cannot be 'present'"), e;
|
|
57
|
-
}
|
|
58
|
-
var _ = i({
|
|
59
|
-
mode: c() ? "read" : "not-set",
|
|
60
|
-
cellAnchor: null
|
|
61
|
-
}), v = i(void 0);
|
|
62
|
-
function y() {
|
|
63
|
-
let e = s.get(v);
|
|
64
|
-
return e !== "home" && e !== "gallery";
|
|
65
|
-
}
|
|
66
|
-
var b = i(!1);
|
|
67
|
-
function x() {
|
|
68
|
-
let e = (0, d.c)(1), { mode: t } = a(_), n = a(b), r;
|
|
69
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = new URLSearchParams(window.location.search).get(o.kiosk), e[0] = r) : r = e[0], t !== "read" && !n && r !== "true";
|
|
70
|
-
}
|
|
71
|
-
//#endregion
|
|
72
44
|
//#region ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/_u64.js
|
|
73
|
-
var
|
|
45
|
+
var m = /* @__PURE__ */ e(((e) => {
|
|
74
46
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.toBig = e.shrSL = e.shrSH = e.rotrSL = e.rotrSH = e.rotrBL = e.rotrBH = e.rotr32L = e.rotr32H = e.rotlSL = e.rotlSH = e.rotlBL = e.rotlBH = e.add5L = e.add5H = e.add4L = e.add4H = e.add3L = e.add3H = void 0, e.add = v, e.fromBig = r, e.split = i;
|
|
75
47
|
var t = /* @__PURE__ */ BigInt(2 ** 32 - 1), n = /* @__PURE__ */ BigInt(32);
|
|
76
48
|
function r(e, r = !1) {
|
|
@@ -158,11 +130,11 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
158
130
|
add5H: w,
|
|
159
131
|
add5L: C
|
|
160
132
|
};
|
|
161
|
-
})),
|
|
133
|
+
})), h = /* @__PURE__ */ e(((e) => {
|
|
162
134
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.crypto = void 0, e.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
163
|
-
})),
|
|
164
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.wrapXOFConstructorWithOpts = e.wrapConstructorWithOpts = e.wrapConstructor = e.Hash = e.nextTick = e.swap32IfBE = e.byteSwapIfBE = e.swap8IfBE = e.isLE = void 0, e.isBytes = n, e.anumber = r, e.abytes = i, e.ahash = a, e.aexists = o, e.aoutput = s, e.u8 = c, e.u32 = l, e.clean = u, e.createView = d, e.rotr = f, e.rotl = p, e.byteSwap = m, e.byteSwap32 =
|
|
165
|
-
var t =
|
|
135
|
+
})), g = /* @__PURE__ */ e(((e) => {
|
|
136
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.wrapXOFConstructorWithOpts = e.wrapConstructorWithOpts = e.wrapConstructor = e.Hash = e.nextTick = e.swap32IfBE = e.byteSwapIfBE = e.swap8IfBE = e.isLE = void 0, e.isBytes = n, e.anumber = r, e.abytes = i, e.ahash = a, e.aexists = o, e.aoutput = s, e.u8 = c, e.u32 = l, e.clean = u, e.createView = d, e.rotr = f, e.rotl = p, e.byteSwap = m, e.byteSwap32 = g, e.bytesToHex = y, e.hexToBytes = S, e.asyncLoop = C, e.utf8ToBytes = w, e.bytesToUtf8 = T, e.toBytes = E, e.kdfInputToBytes = D, e.concatBytes = O, e.checkOpts = k, e.createHasher = A, e.createOptHasher = j, e.createXOFer = M, e.randomBytes = N;
|
|
137
|
+
var t = h();
|
|
166
138
|
function n(e) {
|
|
167
139
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
168
140
|
}
|
|
@@ -209,19 +181,19 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
209
181
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
210
182
|
}
|
|
211
183
|
e.swap8IfBE = e.isLE ? (e) => e : (e) => m(e), e.byteSwapIfBE = e.swap8IfBE;
|
|
212
|
-
function
|
|
184
|
+
function g(e) {
|
|
213
185
|
for (let t = 0; t < e.length; t++) e[t] = m(e[t]);
|
|
214
186
|
return e;
|
|
215
187
|
}
|
|
216
|
-
e.swap32IfBE = e.isLE ? (e) => e :
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
if (i(e),
|
|
188
|
+
e.swap32IfBE = e.isLE ? (e) => e : g;
|
|
189
|
+
var _ = typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", v = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
190
|
+
function y(e) {
|
|
191
|
+
if (i(e), _) return e.toHex();
|
|
220
192
|
let t = "";
|
|
221
|
-
for (let n = 0; n < e.length; n++) t +=
|
|
193
|
+
for (let n = 0; n < e.length; n++) t += v[e[n]];
|
|
222
194
|
return t;
|
|
223
195
|
}
|
|
224
|
-
var
|
|
196
|
+
var b = {
|
|
225
197
|
_0: 48,
|
|
226
198
|
_9: 57,
|
|
227
199
|
A: 65,
|
|
@@ -229,19 +201,19 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
229
201
|
a: 97,
|
|
230
202
|
f: 102
|
|
231
203
|
};
|
|
232
|
-
function b(e) {
|
|
233
|
-
if (e >= y._0 && e <= y._9) return e - y._0;
|
|
234
|
-
if (e >= y.A && e <= y.F) return e - (y.A - 10);
|
|
235
|
-
if (e >= y.a && e <= y.f) return e - (y.a - 10);
|
|
236
|
-
}
|
|
237
204
|
function x(e) {
|
|
205
|
+
if (e >= b._0 && e <= b._9) return e - b._0;
|
|
206
|
+
if (e >= b.A && e <= b.F) return e - (b.A - 10);
|
|
207
|
+
if (e >= b.a && e <= b.f) return e - (b.a - 10);
|
|
208
|
+
}
|
|
209
|
+
function S(e) {
|
|
238
210
|
if (typeof e != "string") throw Error("hex string expected, got " + typeof e);
|
|
239
|
-
if (
|
|
211
|
+
if (_) return Uint8Array.fromHex(e);
|
|
240
212
|
let t = e.length, n = t / 2;
|
|
241
213
|
if (t % 2) throw Error("hex string expected, got unpadded hex of length " + t);
|
|
242
214
|
let r = new Uint8Array(n);
|
|
243
215
|
for (let t = 0, i = 0; t < n; t++, i += 2) {
|
|
244
|
-
let n =
|
|
216
|
+
let n = x(e.charCodeAt(i)), a = x(e.charCodeAt(i + 1));
|
|
245
217
|
if (n === void 0 || a === void 0) {
|
|
246
218
|
let t = e[i] + e[i + 1];
|
|
247
219
|
throw Error("hex string expected, got non-hex character \"" + t + "\" at index " + i);
|
|
@@ -251,7 +223,7 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
251
223
|
return r;
|
|
252
224
|
}
|
|
253
225
|
e.nextTick = async () => {};
|
|
254
|
-
async function
|
|
226
|
+
async function C(t, n, r) {
|
|
255
227
|
let i = Date.now();
|
|
256
228
|
for (let a = 0; a < t; a++) {
|
|
257
229
|
r(a);
|
|
@@ -308,38 +280,38 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
308
280
|
if (t.crypto && typeof t.crypto.randomBytes == "function") return Uint8Array.from(t.crypto.randomBytes(e));
|
|
309
281
|
throw Error("crypto.getRandomValues must be defined");
|
|
310
282
|
}
|
|
311
|
-
})),
|
|
312
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.shake256 = e.shake128 = e.keccak_512 = e.keccak_384 = e.keccak_256 = e.keccak_224 = e.sha3_512 = e.sha3_384 = e.sha3_256 = e.sha3_224 = e.Keccak = void 0, e.keccakP =
|
|
313
|
-
var t =
|
|
283
|
+
})), _ = /* @__PURE__ */ e(((e) => {
|
|
284
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.shake256 = e.shake128 = e.keccak_512 = e.keccak_384 = e.keccak_256 = e.keccak_224 = e.sha3_512 = e.sha3_384 = e.sha3_256 = e.sha3_224 = e.Keccak = void 0, e.keccakP = y;
|
|
285
|
+
var t = m(), n = g(), r = BigInt(0), i = BigInt(1), a = BigInt(2), o = BigInt(7), s = BigInt(256), c = BigInt(113), l = [], u = [], d = [];
|
|
314
286
|
for (let e = 0, t = i, n = 1, f = 0; e < 24; e++) {
|
|
315
287
|
[n, f] = [f, (2 * n + 3 * f) % 5], l.push(2 * (5 * f + n)), u.push((e + 1) * (e + 2) / 2 % 64);
|
|
316
288
|
let p = r;
|
|
317
289
|
for (let e = 0; e < 7; e++) t = (t << i ^ (t >> o) * c) % s, t & a && (p ^= i << (i << /* @__PURE__ */ BigInt(e)) - i);
|
|
318
290
|
d.push(p);
|
|
319
291
|
}
|
|
320
|
-
var f = (0, t.split)(d, !0), p = f[0],
|
|
321
|
-
function
|
|
292
|
+
var f = (0, t.split)(d, !0), p = f[0], h = f[1], _ = (e, n, r) => r > 32 ? (0, t.rotlBH)(e, n, r) : (0, t.rotlSH)(e, n, r), v = (e, n, r) => r > 32 ? (0, t.rotlBL)(e, n, r) : (0, t.rotlSL)(e, n, r);
|
|
293
|
+
function y(e, t = 24) {
|
|
322
294
|
let r = /* @__PURE__ */ new Uint32Array(10);
|
|
323
295
|
for (let n = 24 - t; n < 24; n++) {
|
|
324
296
|
for (let t = 0; t < 10; t++) r[t] = e[t] ^ e[t + 10] ^ e[t + 20] ^ e[t + 30] ^ e[t + 40];
|
|
325
297
|
for (let t = 0; t < 10; t += 2) {
|
|
326
|
-
let n = (t + 8) % 10, i = (t + 2) % 10, a = r[i], o = r[i + 1], s =
|
|
298
|
+
let n = (t + 8) % 10, i = (t + 2) % 10, a = r[i], o = r[i + 1], s = _(a, o, 1) ^ r[n], c = v(a, o, 1) ^ r[n + 1];
|
|
327
299
|
for (let n = 0; n < 50; n += 10) e[t + n] ^= s, e[t + n + 1] ^= c;
|
|
328
300
|
}
|
|
329
301
|
let t = e[2], i = e[3];
|
|
330
302
|
for (let n = 0; n < 24; n++) {
|
|
331
|
-
let r = u[n], a =
|
|
303
|
+
let r = u[n], a = _(t, i, r), o = v(t, i, r), s = l[n];
|
|
332
304
|
t = e[s], i = e[s + 1], e[s] = a, e[s + 1] = o;
|
|
333
305
|
}
|
|
334
306
|
for (let t = 0; t < 50; t += 10) {
|
|
335
307
|
for (let n = 0; n < 10; n++) r[n] = e[t + n];
|
|
336
308
|
for (let n = 0; n < 10; n++) e[t + n] ^= ~r[(n + 2) % 10] & r[(n + 4) % 10];
|
|
337
309
|
}
|
|
338
|
-
e[0] ^= p[n], e[1] ^=
|
|
310
|
+
e[0] ^= p[n], e[1] ^= h[n];
|
|
339
311
|
}
|
|
340
312
|
(0, n.clean)(r);
|
|
341
313
|
}
|
|
342
|
-
var
|
|
314
|
+
var b = class e extends n.Hash {
|
|
343
315
|
constructor(e, t, r, i = !1, a = 24) {
|
|
344
316
|
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = e, this.suffix = t, this.outputLen = r, this.enableXOF = i, this.rounds = a, (0, n.anumber)(r), !(0 < e && e < 200)) throw Error("only keccak-f1600 function is supported");
|
|
345
317
|
this.state = /* @__PURE__ */ new Uint8Array(200), this.state32 = (0, n.u32)(this.state);
|
|
@@ -348,7 +320,7 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
348
320
|
return this._cloneInto();
|
|
349
321
|
}
|
|
350
322
|
keccak() {
|
|
351
|
-
(0, n.swap32IfBE)(this.state32),
|
|
323
|
+
(0, n.swap32IfBE)(this.state32), y(this.state32, this.rounds), (0, n.swap32IfBE)(this.state32), this.posOut = 0, this.pos = 0;
|
|
352
324
|
}
|
|
353
325
|
update(e) {
|
|
354
326
|
(0, n.aexists)(this), e = (0, n.toBytes)(e), (0, n.abytes)(e);
|
|
@@ -398,13 +370,13 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
398
370
|
return t ||= new e(n, r, i, o, a), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = r, t.outputLen = i, t.enableXOF = o, t.destroyed = this.destroyed, t;
|
|
399
371
|
}
|
|
400
372
|
};
|
|
401
|
-
e.Keccak =
|
|
402
|
-
var
|
|
403
|
-
e.sha3_224 =
|
|
404
|
-
var
|
|
405
|
-
e.shake128 =
|
|
406
|
-
})),
|
|
407
|
-
var { sha3_512: n } =
|
|
373
|
+
e.Keccak = b;
|
|
374
|
+
var x = (e, t, r) => (0, n.createHasher)(() => new b(t, e, r));
|
|
375
|
+
e.sha3_224 = x(6, 144, 28), e.sha3_256 = x(6, 136, 32), e.sha3_384 = x(6, 104, 48), e.sha3_512 = x(6, 72, 64), e.keccak_224 = x(1, 144, 28), e.keccak_256 = x(1, 136, 32), e.keccak_384 = x(1, 104, 48), e.keccak_512 = x(1, 72, 64);
|
|
376
|
+
var S = (e, t, r) => (0, n.createXOFer)((n = {}) => new b(t, e, n.dkLen === void 0 ? r : n.dkLen, !0));
|
|
377
|
+
e.shake128 = S(31, 168, 16), e.shake256 = S(31, 136, 32);
|
|
378
|
+
})), v = /* @__PURE__ */ e(((e, t) => {
|
|
379
|
+
var { sha3_512: n } = _(), r = 24, i = 32, a = (e = 4, t = Math.random) => {
|
|
408
380
|
let n = "";
|
|
409
381
|
for (; n.length < e;) n += Math.floor(t() * 36).toString(36);
|
|
410
382
|
return n;
|
|
@@ -434,19 +406,19 @@ var S = /* @__PURE__ */ e(((e) => {
|
|
|
434
406
|
defaultLength: r,
|
|
435
407
|
bigLength: i
|
|
436
408
|
}), t.exports.init = p, t.exports.createId = m, t.exports.bufToBigInt = o, t.exports.createCounter = d, t.exports.createFingerprint = u, t.exports.isCuid = h;
|
|
437
|
-
})),
|
|
438
|
-
var { createId: n, init: r, getConstants: i, isCuid: a } =
|
|
409
|
+
})), y = /* @__PURE__ */ e(((e, t) => {
|
|
410
|
+
var { createId: n, init: r, getConstants: i, isCuid: a } = v();
|
|
439
411
|
t.exports.createId = n, t.exports.init = r, t.exports.getConstants = i, t.exports.isCuid = a;
|
|
440
|
-
})),
|
|
441
|
-
function
|
|
412
|
+
})), b = y();
|
|
413
|
+
function x(e) {
|
|
442
414
|
let t = new URL(window.location.href);
|
|
443
415
|
e(t.searchParams), window.history.replaceState({}, "", t.toString());
|
|
444
416
|
}
|
|
445
|
-
var
|
|
446
|
-
function
|
|
447
|
-
return typeof e == "string" &&
|
|
417
|
+
var S = /^(https?:\/\/\S+)$/;
|
|
418
|
+
function C(e) {
|
|
419
|
+
return typeof e == "string" && S.test(e);
|
|
448
420
|
}
|
|
449
|
-
function
|
|
421
|
+
function w({ href: e, queryParams: t, keys: n }) {
|
|
450
422
|
let r = typeof t == "string" ? new URLSearchParams(t) : t;
|
|
451
423
|
if (r.size === 0 || e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
452
424
|
let i = e.startsWith("#"), a = i && e.includes("?");
|
|
@@ -467,54 +439,31 @@ function M({ href: e, queryParams: t, keys: n }) {
|
|
|
467
439
|
}
|
|
468
440
|
//#endregion
|
|
469
441
|
//#region src/core/kernel/session.ts
|
|
470
|
-
var
|
|
471
|
-
function
|
|
472
|
-
return `s_${
|
|
442
|
+
var T = s(null), E = (0, b.init)({ length: 6 });
|
|
443
|
+
function D() {
|
|
444
|
+
return `s_${E()}`;
|
|
473
445
|
}
|
|
474
|
-
function
|
|
446
|
+
function O(e) {
|
|
475
447
|
return e ? /^s_[\da-z]{6}$/.test(e) : !1;
|
|
476
448
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
479
|
-
let e =
|
|
480
|
-
return
|
|
449
|
+
var k = null;
|
|
450
|
+
function A() {
|
|
451
|
+
let e = a.get(c) === "edit", n = new URL(window.location.href).searchParams.get(i.sessionId), r = O(n) ? n : null;
|
|
452
|
+
return x((t) => {
|
|
481
453
|
if (!e) {
|
|
482
|
-
t.delete(
|
|
454
|
+
t.delete(i.sessionId), t.delete(i.kiosk);
|
|
483
455
|
return;
|
|
484
456
|
}
|
|
485
|
-
t.has(
|
|
486
|
-
}), r === null ? (t.debug("Starting a new session", { sessionId: n }),
|
|
457
|
+
t.has(i.kiosk) || t.delete(i.sessionId);
|
|
458
|
+
}), r === null ? (t.debug("Starting a new session", { sessionId: n }), D()) : e ? (t.debug("Connecting to existing session", { sessionId: r }), r) : (t.debug("Ignoring session_id from URL outside the editor", { sessionId: r }), D());
|
|
487
459
|
}
|
|
488
|
-
function
|
|
489
|
-
return
|
|
490
|
-
}
|
|
491
|
-
//#endregion
|
|
492
|
-
//#region src/core/static/static-state.ts
|
|
493
|
-
function B(e) {
|
|
494
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
495
|
-
for (let t of Object.values(e)) if (typeof t != "string") return !1;
|
|
496
|
-
return !0;
|
|
497
|
-
}
|
|
498
|
-
function V(e) {
|
|
499
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
500
|
-
let t = e;
|
|
501
|
-
return !(!B(t.files) || t.modelNotifications !== void 0 && !Array.isArray(t.modelNotifications));
|
|
502
|
-
}
|
|
503
|
-
function H() {
|
|
504
|
-
let e = typeof window > "u" ? void 0 : window.__MARIMO_STATIC__;
|
|
505
|
-
return V(e) ? e : void 0;
|
|
506
|
-
}
|
|
507
|
-
function U() {
|
|
508
|
-
return H() !== void 0;
|
|
509
|
-
}
|
|
510
|
-
function W() {
|
|
511
|
-
let e = H();
|
|
512
|
-
return l(e !== void 0, "Not a static notebook"), e.files;
|
|
460
|
+
function j() {
|
|
461
|
+
return k === null && (k = A()), k;
|
|
513
462
|
}
|
|
514
463
|
//#endregion
|
|
515
464
|
//#region src/core/runtime/runtime.ts
|
|
516
|
-
var
|
|
517
|
-
initialHealthyCheck = new
|
|
465
|
+
var M = new Set(Object.values(i)), N = class {
|
|
466
|
+
initialHealthyCheck = new f();
|
|
518
467
|
config;
|
|
519
468
|
lazy;
|
|
520
469
|
constructor(e, t = !1) {
|
|
@@ -536,23 +485,23 @@ var G = new Set(Object.values(o)), K = class {
|
|
|
536
485
|
return this.httpURL.origin === window.location.origin;
|
|
537
486
|
}
|
|
538
487
|
get isServerless() {
|
|
539
|
-
return
|
|
488
|
+
return l() || o() || u();
|
|
540
489
|
}
|
|
541
490
|
formatHttpURL({ path: e = "", searchParams: t, restrictToKnownQueryParams: n = !0 }) {
|
|
542
491
|
let r = this.httpURL, i = new URLSearchParams(window.location.search);
|
|
543
492
|
if (t) for (let [e, n] of t.entries()) r.searchParams.set(e, n);
|
|
544
|
-
for (let [e, t] of i.entries()) n && !
|
|
493
|
+
for (let [e, t] of i.entries()) n && !M.has(e) || r.searchParams.set(e, t);
|
|
545
494
|
return r.pathname = `${r.pathname.replace(/\/$/, "")}/${e.replace(/^\//, "")}`, r.hash = "", r;
|
|
546
495
|
}
|
|
547
496
|
appendCrossOriginAuth(e) {
|
|
548
|
-
return !this.isSameOrigin && this.config.authToken && e.searchParams.set(
|
|
497
|
+
return !this.isSameOrigin && this.config.authToken && e.searchParams.set(i.accessToken, this.config.authToken), e;
|
|
549
498
|
}
|
|
550
499
|
formatNavigableHttpURL(e, t) {
|
|
551
500
|
let n = this.formatHttpURL({
|
|
552
501
|
path: e,
|
|
553
502
|
searchParams: t
|
|
554
503
|
});
|
|
555
|
-
return n.searchParams.delete(
|
|
504
|
+
return n.searchParams.delete(i.accessToken), this.appendCrossOriginAuth(n);
|
|
556
505
|
}
|
|
557
506
|
formatWsURL(e, t) {
|
|
558
507
|
let n = this.formatHttpURL({
|
|
@@ -560,25 +509,25 @@ var G = new Set(Object.values(o)), K = class {
|
|
|
560
509
|
searchParams: t,
|
|
561
510
|
restrictToKnownQueryParams: !1
|
|
562
511
|
});
|
|
563
|
-
return
|
|
512
|
+
return P(this.appendCrossOriginAuth(n).toString());
|
|
564
513
|
}
|
|
565
514
|
getSessionURL(e, t) {
|
|
566
|
-
let n = this.formatHttpURL({ path: e }), r = new URLSearchParams(this.httpURL.search),
|
|
567
|
-
for (let e of
|
|
568
|
-
for (let [e, t] of
|
|
569
|
-
return r.delete(
|
|
515
|
+
let n = this.formatHttpURL({ path: e }), r = new URLSearchParams(this.httpURL.search), a = new URLSearchParams(window.location.search);
|
|
516
|
+
for (let e of a.keys()) r.delete(e);
|
|
517
|
+
for (let [e, t] of a) r.append(e, t);
|
|
518
|
+
return r.delete(i.accessToken), r.delete("refresh_token"), r.delete(i.sessionId), n.searchParams.set("query_params", r.toString()), n.searchParams.set(i.sessionId, t), n;
|
|
570
519
|
}
|
|
571
520
|
getWsURL(e) {
|
|
572
521
|
let t = this.getSessionURL("/ws", e);
|
|
573
|
-
return
|
|
522
|
+
return P(this.appendCrossOriginAuth(t).toString());
|
|
574
523
|
}
|
|
575
524
|
getSseURL(e) {
|
|
576
525
|
let t = this.getSessionURL("/sse", e);
|
|
577
|
-
return t.searchParams.delete(
|
|
526
|
+
return t.searchParams.delete(i.accessToken), t;
|
|
578
527
|
}
|
|
579
528
|
getNotebookURL(e) {
|
|
580
529
|
let t = this.formatHttpURL({ path: `/api/marimo/v1/notebooks/${encodeURIComponent(e)}` });
|
|
581
|
-
return t.searchParams.delete(
|
|
530
|
+
return t.searchParams.delete(i.accessToken), t;
|
|
582
531
|
}
|
|
583
532
|
getTerminalWsURL(e) {
|
|
584
533
|
let t = this.formatWsURL("/terminal/ws");
|
|
@@ -586,8 +535,8 @@ var G = new Set(Object.values(o)), K = class {
|
|
|
586
535
|
}
|
|
587
536
|
getLSPURL(e) {
|
|
588
537
|
if (e === "copilot") {
|
|
589
|
-
let t = this.formatWsURL(`/lsp/${e}`), n = t.searchParams.get(
|
|
590
|
-
return t.search = "", n && t.searchParams.set(
|
|
538
|
+
let t = this.formatWsURL(`/lsp/${e}`), n = t.searchParams.get(i.accessToken);
|
|
539
|
+
return t.search = "", n && t.searchParams.set(i.accessToken, n), t;
|
|
591
540
|
}
|
|
592
541
|
return this.formatWsURL(`/lsp/${e}`);
|
|
593
542
|
}
|
|
@@ -644,17 +593,17 @@ var G = new Set(Object.values(o)), K = class {
|
|
|
644
593
|
}
|
|
645
594
|
headers() {
|
|
646
595
|
let e = {
|
|
647
|
-
"Marimo-Session-Id":
|
|
596
|
+
"Marimo-Session-Id": j(),
|
|
648
597
|
"Marimo-Server-Token": this.config.serverToken ?? "",
|
|
649
598
|
"x-runtime-url": this.httpURL.toString()
|
|
650
599
|
};
|
|
651
600
|
return this.config.authToken && (e.Authorization = `Bearer ${this.config.authToken}`), e;
|
|
652
601
|
}
|
|
653
602
|
sessionHeaders() {
|
|
654
|
-
return { "Marimo-Session-Id":
|
|
603
|
+
return { "Marimo-Session-Id": j() };
|
|
655
604
|
}
|
|
656
605
|
};
|
|
657
|
-
function
|
|
606
|
+
function P(e) {
|
|
658
607
|
if (!e.startsWith("http")) {
|
|
659
608
|
t.warn(`URL must start with http: ${e}`);
|
|
660
609
|
let n = new URL(e);
|
|
@@ -664,39 +613,24 @@ function q(e) {
|
|
|
664
613
|
}
|
|
665
614
|
//#endregion
|
|
666
615
|
//#region src/core/runtime/config.ts
|
|
667
|
-
function
|
|
616
|
+
function F() {
|
|
668
617
|
let e = new URL(document.baseURI);
|
|
669
618
|
return e.search = "", e.hash = "", e.toString();
|
|
670
619
|
}
|
|
671
|
-
var
|
|
620
|
+
var I = {
|
|
672
621
|
lazy: !0,
|
|
673
|
-
url:
|
|
674
|
-
},
|
|
675
|
-
let t = e(
|
|
676
|
-
return new
|
|
622
|
+
url: F()
|
|
623
|
+
}, L = s(I), R = s((e) => {
|
|
624
|
+
let t = e(L);
|
|
625
|
+
return new N(t, t.lazy);
|
|
677
626
|
});
|
|
678
|
-
function
|
|
679
|
-
return
|
|
627
|
+
function z() {
|
|
628
|
+
return a.get(R);
|
|
680
629
|
}
|
|
681
|
-
function
|
|
630
|
+
function B(e) {
|
|
682
631
|
if (e.startsWith("http")) return new URL(e);
|
|
683
|
-
let t =
|
|
632
|
+
let t = z().httpURL.toString();
|
|
684
633
|
return t.startsWith("blob:") && (t = t.replace("blob:", "")), new URL(e, t);
|
|
685
634
|
}
|
|
686
635
|
//#endregion
|
|
687
|
-
|
|
688
|
-
var re = 365.2425, ie = 6048e5, ae = 864e5, Z = 86400;
|
|
689
|
-
Z * 7, Z * re / 12 * 3;
|
|
690
|
-
var Q = Symbol.for("constructDateFrom");
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
|
|
693
|
-
function $(e, t) {
|
|
694
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" && Q in e ? e[Q](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
695
|
-
}
|
|
696
|
-
//#endregion
|
|
697
|
-
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
|
|
698
|
-
function oe(e, t) {
|
|
699
|
-
return $(t || e, e);
|
|
700
|
-
}
|
|
701
|
-
//#endregion
|
|
702
|
-
export { u as C, f as S, b as _, ne as a, m as b, U as c, j as d, k as f, y as g, v as h, ie as i, N as l, g as m, $ as n, X as o, D as p, ae as r, W as s, oe as t, M as u, x as v, p as x, _ as y };
|
|
636
|
+
export { C as a, f as c, w as i, d as l, z as n, x as o, T as r, y as s, B as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { g as t, h as n, m as r } from "./button-
|
|
2
|
+
import { g as t, h as n, m as r } from "./button-B6RjDKJx.js";
|
|
3
3
|
import { t as i } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as a } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { m as o, t as s } from "./tooltip-
|
|
6
|
-
import { t as c } from "./check-
|
|
5
|
+
import { m as o, t as s } from "./tooltip-C3UnvsRe.js";
|
|
6
|
+
import { t as c } from "./check-Z_vtI3OL.js";
|
|
7
7
|
import { t as l } from "./jsx-runtime-3BD1kT0s.js";
|
|
8
8
|
//#region src/components/ui/use-toast.ts
|
|
9
9
|
var u = a(), d = /* @__PURE__ */ e(i(), 1), f = 1, p = 1e4, m = 0;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { g as e } from "./button-B6RjDKJx.js";
|
|
2
|
+
import { t } from "./compiler-runtime-CldRdSsv.js";
|
|
3
|
+
import { S as n, w as r } from "./utils-DXkj82sK.js";
|
|
4
|
+
//#region src/utils/createReducer.ts
|
|
5
|
+
var i = t();
|
|
6
|
+
function a(t, n) {
|
|
7
|
+
return {
|
|
8
|
+
reducer: (r, i) => (r ||= t(), i.type in n ? n[i.type](r, i.payload) : (e.error(`Action type ${i.type} is not defined in reducers.`), r)),
|
|
9
|
+
createActions: (e) => {
|
|
10
|
+
let t = {};
|
|
11
|
+
for (let r in n) t[r] = (t) => {
|
|
12
|
+
e({
|
|
13
|
+
type: r,
|
|
14
|
+
payload: t
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function o(t, o, s) {
|
|
22
|
+
let c = [...s ?? []], l = (e) => {
|
|
23
|
+
c.push(e);
|
|
24
|
+
}, { reducer: u, createActions: d } = a(t, o), f = (t, n) => {
|
|
25
|
+
try {
|
|
26
|
+
return u(t, n);
|
|
27
|
+
} catch (r) {
|
|
28
|
+
return e.error(`Error in reducer for action ${n.type}:`, r), t;
|
|
29
|
+
}
|
|
30
|
+
}, p = (t, n, r) => {
|
|
31
|
+
for (let i of c) try {
|
|
32
|
+
i(t, n, r);
|
|
33
|
+
} catch (t) {
|
|
34
|
+
e.error(`Error in middleware for action ${r.type}:`, t);
|
|
35
|
+
}
|
|
36
|
+
}, m = (e, t) => {
|
|
37
|
+
let n = f(e, t);
|
|
38
|
+
return p(e, n, t), n;
|
|
39
|
+
}, h = r(t()), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
40
|
+
function v(e) {
|
|
41
|
+
let t = (0, i.c)(8), r;
|
|
42
|
+
t[0] === e ? r = t[1] : (r = e === void 0 ? {} : e, t[0] = e, t[1] = r);
|
|
43
|
+
let a = r, o = n(h), s = a.skipMiddleware === !0, c = s ? _ : g;
|
|
44
|
+
if (!c.has(o)) {
|
|
45
|
+
let e;
|
|
46
|
+
t[2] !== o || t[3] !== s ? (e = (e) => {
|
|
47
|
+
let t, n;
|
|
48
|
+
o((r) => (t = r, n = f(r, e), n)), !s && t !== void 0 && n !== void 0 && p(t, n, e);
|
|
49
|
+
}, t[2] = o, t[3] = s, t[4] = e) : e = t[4], c.set(o, d(e));
|
|
50
|
+
}
|
|
51
|
+
let l;
|
|
52
|
+
return t[5] !== c || t[6] !== o ? (l = c.get(o), t[5] = c, t[6] = o, t[7] = l) : l = t[7], l;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
reducer: m,
|
|
56
|
+
addMiddleware: l,
|
|
57
|
+
createActions: d,
|
|
58
|
+
valueAtom: h,
|
|
59
|
+
useActions: v
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { o as t };
|
|
@@ -2,7 +2,7 @@ import { i as e } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
|
|
|
2
2
|
import { n as t } from "./src-CA_m4ONl.js";
|
|
3
3
|
import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
4
4
|
import { D as r, H as i, K as a, U as o, a as s, b as c, c as l, f as u, v as d, w as f, y as p } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
5
|
-
import { p as m } from "./mermaid-
|
|
5
|
+
import { p as m } from "./mermaid-B-OFqheA.js";
|
|
6
6
|
import { n as h } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
7
7
|
import { t as g } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/cynefinDiagram-5FMLGOSQ.mjs
|
|
@@ -11,7 +11,7 @@ import { s as a } from "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
11
11
|
import { a as o, i as s, n as c } from "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
12
12
|
import { n as l } from "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
13
13
|
import { a as u, c as d, i as f } from "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
14
|
-
import { c as p, d as m, f as h, l as g, o as _, s as v, u as y } from "./mermaid-
|
|
14
|
+
import { c as p, d as m, f as h, l as g, o as _, s as v, u as y } from "./mermaid-B-OFqheA.js";
|
|
15
15
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/dagre-GXQ25YYZ.mjs
|
|
16
16
|
var b = /* @__PURE__ */ r((e, t, n) => Math.max(t, Math.min(n, e)), "clamp"), x = /* @__PURE__ */ r((e = "TB") => {
|
|
17
17
|
switch (e) {
|
|
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { t } from "./react-sHtZdjeP.js";
|
|
3
3
|
import { t as n } from "./react-dom-DUmH0GXv.js";
|
|
4
4
|
import { c as r, l as i, u as a } from "./data-grid-types-0PJ-9N5n.js";
|
|
5
|
-
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-
|
|
5
|
+
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-Buj2OZjL.js";
|
|
6
6
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
|
|
7
7
|
var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
|
|
8
8
|
name: "DataGridOverlayEditorStyle",
|
|
@@ -3,7 +3,7 @@ import { n as t } from "./src-CA_m4ONl.js";
|
|
|
3
3
|
import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
4
4
|
import { H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f, z as p } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
5
5
|
import { r as m, t as h } from "./chunk-PWAF6VOD-CQw5qATZ.js";
|
|
6
|
-
import { p as g } from "./mermaid-
|
|
6
|
+
import { p as g } from "./mermaid-B-OFqheA.js";
|
|
7
7
|
import { n as _ } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
8
8
|
import { t as v } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
9
9
|
import { t as y } from "./chunk-2Q5K7J3B-BMkUkeuy.js";
|
|
@@ -2,7 +2,7 @@ import { i as e } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
|
|
|
2
2
|
import { n as t } from "./src-CA_m4ONl.js";
|
|
3
3
|
import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
4
4
|
import { D as r, H as i, K as a, U as o, a as s, b as c, c as l, f as u, v as d, w as f, y as p } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
5
|
-
import { p as m } from "./mermaid-
|
|
5
|
+
import { p as m } from "./mermaid-B-OFqheA.js";
|
|
6
6
|
import { n as h } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
7
7
|
import { t as g } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/diagram-UQ7AKVKN.mjs
|
|
@@ -6,7 +6,7 @@ import { p as a, t as o } from "./treemap-DmgI4zXI.js";
|
|
|
6
6
|
import { n as s } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
7
7
|
import { D as c, H as l, K as u, U as d, a as f, b as p, c as m, f as h, v as g, w as _, y as v } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
8
8
|
import { i as y, n as b } from "./chunk-P2QGCYS3-B_Zd3-X0.js";
|
|
9
|
-
import { p as x } from "./mermaid-
|
|
9
|
+
import { p as x } from "./mermaid-B-OFqheA.js";
|
|
10
10
|
import { n as S } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
11
11
|
import { t as C } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
12
12
|
import { t as w } from "./chunk-POPQ4Y6H-hYOXbYH_.js";
|
|
@@ -2,7 +2,7 @@ import { i as e } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
|
|
|
2
2
|
import { n as t } from "./src-CA_m4ONl.js";
|
|
3
3
|
import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
4
4
|
import { H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
5
|
-
import { p } from "./mermaid-
|
|
5
|
+
import { p } from "./mermaid-B-OFqheA.js";
|
|
6
6
|
import { n as m } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
7
7
|
import { t as h } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/diagram-Z3DM3KII.mjs
|