likec4 1.59.1 → 1.59.3
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/__app__/src/chunks/AIChat.mjs +21 -26
- package/__app__/src/chunks/LikeC4Styles.mjs +257 -263
- package/__app__/src/chunks/ProjectsOverview.mjs +58 -58
- package/__app__/src/chunks/hooks.mjs +106 -80
- package/__app__/src/chunks/libs/@floating-ui.mjs +646 -332
- package/__app__/src/chunks/libs/@mantine.mjs +1911 -1734
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +26 -26
- package/__app__/src/chunks/libs/@tanstack.mjs +42 -41
- package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
- package/__app__/src/chunks/libs/@xyflow/react.mjs +532 -445
- package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
- package/__app__/src/chunks/libs/d3.mjs +16 -36
- package/__app__/src/chunks/libs/fast-equals.mjs +12 -11
- package/__app__/src/chunks/libs/framer.mjs +294 -273
- package/__app__/src/chunks/libs/zod.mjs +17 -14
- package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
- package/__app__/src/chunks/styled-system.mjs +9 -15
- package/__app__/src/main.mjs +15994 -15936
- package/__app__/src/style.css +1 -1
- package/config/schema.json +35 -0
- package/dist/app/render-view-client.css +1 -0
- package/dist/app/render-view-client.js +745 -0
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +7 -6
- package/dist/chunks/index.d.mts +11 -0
- package/dist/chunks/index2.d.mts +47 -7
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
- package/dist/chunks/libs/@logtape/logtape.mjs +1 -1
- package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
- package/dist/chunks/libs/birpc.mjs +1 -1
- package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
- package/dist/chunks/libs/chevrotain.mjs +16 -16
- package/dist/chunks/libs/json5.mjs +3 -3
- package/dist/chunks/libs/langium.mjs +11 -11
- package/dist/chunks/libs/merge-error-cause.mjs +2 -2
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +1 -1
- package/dist/chunks/libs/picomatch.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/zod.mjs +4 -4
- package/dist/chunks/node.mjs +69 -57
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +161 -50
- package/dist/cli/index.mjs +272 -162
- package/dist/config/index.d.mts +7 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +64 -27
- package/dist/vite-plugin/internal/index.mjs +76 -39
- package/package.json +41 -41
- package/react/index.d.mts +76 -1
- package/react/index.mjs +7310 -6785
- package/vite-plugin-modules.d.ts +18 -0
- package/dist/chunks/dist.mjs +0 -10
- package/dist/chunks/logger.mjs +0 -1
|
@@ -186,13 +186,11 @@ function buildAssistantMessages(e) {
|
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
break;
|
|
189
|
-
case "tool-result":
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}), r.add(i.toolCallId));
|
|
195
|
-
break;
|
|
189
|
+
case "tool-result": flushSegment(), (i.state === "complete" || i.state === "error") && !r.has(i.toolCallId) && (t.push({
|
|
190
|
+
role: "tool",
|
|
191
|
+
content: i.content,
|
|
192
|
+
toolCallId: i.toolCallId
|
|
193
|
+
}), r.add(i.toolCallId));
|
|
196
194
|
}
|
|
197
195
|
flushSegment();
|
|
198
196
|
for (let n of e.parts) if (n.type === "tool-call" && (n.output !== void 0 && !r.has(n.id) && (t.push({
|
|
@@ -339,7 +337,7 @@ var f = /* @__PURE__ */ e(((e) => {
|
|
|
339
337
|
throw new MalformedJSON(`${e} at position ${i}`);
|
|
340
338
|
}, parseAny = () => (skipBlank(), i >= n && markPartialJSON("Unexpected end of input"), e[i] === "\"" ? parseStr() : e[i] === "{" ? parseObj() : e[i] === "[" ? parseArr() : e.substring(i, i + 4) === "null" || r.Allow.NULL & t && n - i < 4 && "null".startsWith(e.substring(i)) ? (i += 4, null) : e.substring(i, i + 4) === "true" || r.Allow.BOOL & t && n - i < 4 && "true".startsWith(e.substring(i)) ? (i += 4, !0) : e.substring(i, i + 5) === "false" || r.Allow.BOOL & t && n - i < 5 && "false".startsWith(e.substring(i)) ? (i += 5, !1) : e.substring(i, i + 8) === "Infinity" || r.Allow.INFINITY & t && n - i < 8 && "Infinity".startsWith(e.substring(i)) ? (i += 8, Infinity) : e.substring(i, i + 9) === "-Infinity" || r.Allow._INFINITY & t && 1 < n - i && n - i < 9 && "-Infinity".startsWith(e.substring(i)) ? (i += 9, -Infinity) : e.substring(i, i + 3) === "NaN" || r.Allow.NAN & t && n - i < 3 && "NaN".startsWith(e.substring(i)) ? (i += 3, NaN) : parseNum()), parseStr = () => {
|
|
341
339
|
let a = i, o = !1;
|
|
342
|
-
for (i++; i < n && (e[i] !== "\"" || o && e[i - 1] === "\\");) o = e[i] === "\\"
|
|
340
|
+
for (i++; i < n && (e[i] !== "\"" || o && e[i - 1] === "\\");) o = e[i] === "\\" && !o, i++;
|
|
343
341
|
if (e.charAt(i) == "\"") try {
|
|
344
342
|
return JSON.parse(e.substring(a, ++i - Number(o)));
|
|
345
343
|
} catch (e) {
|
|
@@ -490,7 +488,7 @@ function updateToolCallApproval(e, t, n, r) {
|
|
|
490
488
|
function updateToolCallWithOutput(e, t, n, r, i) {
|
|
491
489
|
return e.map((e) => {
|
|
492
490
|
let a = [...e.parts], o = a.find((e) => e.type === "tool-call" && e.id === t);
|
|
493
|
-
return o && (o.output = i ? { error: i } : n,
|
|
491
|
+
return o && (o.output = i ? { error: i } : n, o.state = r || "input-complete"), {
|
|
494
492
|
...e,
|
|
495
493
|
parts: a
|
|
496
494
|
};
|
|
@@ -644,9 +642,7 @@ var ImmediateStrategy = class {
|
|
|
644
642
|
case "REASONING_MESSAGE_CONTENT":
|
|
645
643
|
this.handleReasoningMessageContentEvent(e);
|
|
646
644
|
break;
|
|
647
|
-
case "TOOL_CALL_RESULT":
|
|
648
|
-
this.handleToolCallResultEvent(e);
|
|
649
|
-
break;
|
|
645
|
+
case "TOOL_CALL_RESULT": this.handleToolCallResultEvent(e);
|
|
650
646
|
}
|
|
651
647
|
}
|
|
652
648
|
createMessageState(e, t) {
|
|
@@ -983,7 +979,7 @@ var ImmediateStrategy = class {
|
|
|
983
979
|
this.resetStreamState(), this.messages = [];
|
|
984
980
|
}
|
|
985
981
|
isWhitespaceOnlyMessage(e) {
|
|
986
|
-
return e.parts.length
|
|
982
|
+
return e.parts.length !== 0 && e.parts.every((e) => e.type === "text" && e.content.trim() === "");
|
|
987
983
|
}
|
|
988
984
|
static async replay(e, t) {
|
|
989
985
|
return new StreamProcessor(t).process(createReplayStream(e));
|
|
@@ -1554,7 +1550,7 @@ function clientTools(...e) {
|
|
|
1554
1550
|
return e;
|
|
1555
1551
|
}
|
|
1556
1552
|
//#endregion
|
|
1557
|
-
//#region ../../node_modules/.pnpm/@tanstack+ai-react@0.8.0_@tanstack+ai@0.14.0_@types+react@19.2.
|
|
1553
|
+
//#region ../../node_modules/.pnpm/@tanstack+ai-react@0.8.0_@tanstack+ai@0.14.0_@types+react@19.2.18_react@19.2.8/node_modules/@tanstack/ai-react/dist/esm/use-chat.js
|
|
1558
1554
|
function useChat(e) {
|
|
1559
1555
|
let t = i(), c = e.id || t, [l, u] = s(e.initialMessages || []), [d, f] = s(!1), [p, m] = s(void 0), [h, g] = s("ready"), [_, v] = s(!1), [y, b] = s("disconnected"), [x, S] = s(!1), C = o(e.initialMessages || []), w = o(!0);
|
|
1560
1556
|
C.current = l;
|
|
@@ -1647,7 +1643,7 @@ function useChat(e) {
|
|
|
1647
1643
|
}
|
|
1648
1644
|
(/* @__PURE__ */ new Uint8Array(128)).fill(128), t(null);
|
|
1649
1645
|
//#endregion
|
|
1650
|
-
//#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@
|
|
1646
|
+
//#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@tanstac_faab93d927ce4b35707b996a3d98975c/node_modules/@tanstack/ai-react-ui/dist/esm/thinking-part.js
|
|
1651
1647
|
function ThinkingPart({ content: e, className: t = "", isComplete: n = !1 }) {
|
|
1652
1648
|
let [i, a] = s(!1);
|
|
1653
1649
|
return r(() => {
|
|
@@ -1682,22 +1678,26 @@ function ThinkingPart({ content: e, className: t = "", isComplete: n = !1 }) {
|
|
|
1682
1678
|
});
|
|
1683
1679
|
}
|
|
1684
1680
|
//#endregion
|
|
1685
|
-
//#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@
|
|
1681
|
+
//#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@tanstac_faab93d927ce4b35707b996a3d98975c/node_modules/@tanstack/ai-react-ui/dist/esm/chat-message.js
|
|
1686
1682
|
function ChatMessage({ message: e, className: t = "", userClassName: n = "", assistantClassName: r = "", textPartRenderer: i, thinkingPartRenderer: a, toolsRenderer: o, defaultToolRenderer: s, toolResultRenderer: c }) {
|
|
1683
|
+
let u = [t, e.role === "user" ? n : r].filter(Boolean).join(" ");
|
|
1687
1684
|
return /* @__PURE__ */ l("div", {
|
|
1688
|
-
className:
|
|
1685
|
+
className: u || void 0,
|
|
1689
1686
|
"data-message-id": e.id,
|
|
1690
1687
|
"data-message-role": e.role,
|
|
1691
1688
|
"data-message-created": e.createdAt?.toISOString(),
|
|
1692
|
-
children: e.parts.map((t, n) =>
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1689
|
+
children: e.parts.map((t, n) => {
|
|
1690
|
+
let r = t.type === "thinking" && e.parts.slice(n + 1).some((e) => e.type === "text");
|
|
1691
|
+
return /* @__PURE__ */ l(MessagePart, {
|
|
1692
|
+
part: t,
|
|
1693
|
+
isThinkingComplete: r,
|
|
1694
|
+
textPartRenderer: i,
|
|
1695
|
+
thinkingPartRenderer: a,
|
|
1696
|
+
toolsRenderer: o,
|
|
1697
|
+
defaultToolRenderer: s,
|
|
1698
|
+
toolResultRenderer: c
|
|
1699
|
+
}, `${e.id}-part-${n}`);
|
|
1700
|
+
})
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
1703
|
function MessagePart({ part: e, isThinkingComplete: t, textPartRenderer: n, thinkingPartRenderer: r, toolsRenderer: i, defaultToolRenderer: a, toolResultRenderer: o }) {
|
|
@@ -454,7 +454,7 @@ function deepEqual(e, t, n) {
|
|
|
454
454
|
let r = n?.ignoreUndefined ?? !0, i = getObjectKeys(e, r), a = getObjectKeys(t, r);
|
|
455
455
|
return !n?.partial && i.length !== a.length ? !1 : a.every((r) => deepEqual(e[r], t[r], n));
|
|
456
456
|
}
|
|
457
|
-
return Array.isArray(e) && Array.isArray(t)
|
|
457
|
+
return Array.isArray(e) && Array.isArray(t) ? e.length === t.length && !e.some((e, r) => !deepEqual(e, t[r], n)) : !1;
|
|
458
458
|
}
|
|
459
459
|
function createControlledPromise(e) {
|
|
460
460
|
let t, n, r = new Promise((e, r) => {
|
|
@@ -724,8 +724,10 @@ function setupScrollRestoration(e, t) {
|
|
|
724
724
|
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/qss.js
|
|
725
725
|
function encode(e, t) {
|
|
726
726
|
let n, r, i, a = "";
|
|
727
|
-
for (n in e) if ((i = e[n]) !== void 0)
|
|
728
|
-
|
|
727
|
+
for (n in e) if ((i = e[n]) !== void 0) {
|
|
728
|
+
if (Array.isArray(i)) for (r = 0; r < i.length; r++) a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i[r]);
|
|
729
|
+
else a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i);
|
|
730
|
+
}
|
|
729
731
|
return (t || "") + a;
|
|
730
732
|
}
|
|
731
733
|
function toValue(e) {
|
|
@@ -821,7 +823,7 @@ var RouterCore = class {
|
|
|
821
823
|
this.options = {
|
|
822
824
|
...this.options,
|
|
823
825
|
...e
|
|
824
|
-
}, this.isServer = this.options.isServer ?? typeof document > "u", this.pathParamsDecodeCharMap = this.options.pathParamsAllowedCharacters ? new Map(this.options.pathParamsAllowedCharacters.map((e) => [encodeURIComponent(e), e])) : void 0, (!this.basepath || e.basepath && e.basepath !== t.basepath) && (e.basepath === void 0 || e.basepath === "" || e.basepath === "/" ?
|
|
826
|
+
}, this.isServer = this.options.isServer ?? typeof document > "u", this.pathParamsDecodeCharMap = this.options.pathParamsAllowedCharacters ? new Map(this.options.pathParamsAllowedCharacters.map((e) => [encodeURIComponent(e), e])) : void 0, (!this.basepath || e.basepath && e.basepath !== t.basepath) && (this.basepath = e.basepath === void 0 || e.basepath === "" || e.basepath === "/" ? "/" : `/${trimPath(e.basepath)}`), (!this.history || this.options.history && this.options.history !== this.history) && (this.history = this.options.history ?? (this.isServer ? createMemoryHistory({ initialEntries: [this.basepath || "/"] }) : createBrowserHistory()), this.latestLocation = this.parseLocation()), this.options.routeTree !== this.routeTree && (this.routeTree = this.options.routeTree, this.buildRouteTree()), this.__store || (this.__store = new Store(getInitialRouterState(this.latestLocation), { onUpdate: () => {
|
|
825
827
|
this.__store.state = {
|
|
826
828
|
...this.state,
|
|
827
829
|
cachedMatches: this.state.cachedMatches.filter((e) => !["redirected"].includes(e.status))
|
|
@@ -1261,7 +1263,7 @@ var RouterCore = class {
|
|
|
1261
1263
|
error: r,
|
|
1262
1264
|
beforeLoadPromise: void 0,
|
|
1263
1265
|
loaderPromise: void 0
|
|
1264
|
-
})), r.routeId
|
|
1266
|
+
})), r.routeId || (r.routeId = n.routeId), (a = n.beforeLoadPromise) == null || a.resolve(), (o = n.loaderPromise) == null || o.resolve(), (c = n.loadPromise) == null || c.resolve(), isRedirect(r)) throw s = !0, r = this.resolveRedirect({
|
|
1265
1267
|
...r,
|
|
1266
1268
|
_fromLocation: e
|
|
1267
1269
|
}), r;
|
|
@@ -1531,14 +1533,14 @@ var RouterCore = class {
|
|
|
1531
1533
|
let filter = (e) => {
|
|
1532
1534
|
let t = this.looseRoutesById[e.routeId];
|
|
1533
1535
|
if (!t.options.loader) return !0;
|
|
1534
|
-
let n = (e.preload ? t.options.preloadGcTime ?? this.options.defaultPreloadGcTime : t.options.gcTime ?? this.options.defaultGcTime) ??
|
|
1536
|
+
let n = (e.preload ? t.options.preloadGcTime ?? this.options.defaultPreloadGcTime : t.options.gcTime ?? this.options.defaultGcTime) ?? 3e5;
|
|
1535
1537
|
return !(e.status !== "error" && Date.now() - e.updatedAt < n);
|
|
1536
1538
|
};
|
|
1537
1539
|
this.clearCache({ filter });
|
|
1538
|
-
}, this.loadRouteChunk = (e) => (e._lazyPromise === void 0 && (e.
|
|
1540
|
+
}, this.loadRouteChunk = (e) => (e._lazyPromise === void 0 && (e._lazyPromise = e.lazyFn ? e.lazyFn().then((t) => {
|
|
1539
1541
|
let { id: n, ...r } = t.options;
|
|
1540
1542
|
Object.assign(e.options, r);
|
|
1541
|
-
}) :
|
|
1543
|
+
}) : Promise.resolve()), e._componentsPromise === void 0 && (e._componentsPromise = e._lazyPromise.then(() => Promise.all(D.map(async (t) => {
|
|
1542
1544
|
let n = e.options[t];
|
|
1543
1545
|
n?.preload && await n.preload();
|
|
1544
1546
|
})))), e._componentsPromise), this.preloadRoute = async (e) => {
|
|
@@ -1845,7 +1847,7 @@ function stripSearchParams(e) {
|
|
|
1845
1847
|
};
|
|
1846
1848
|
}
|
|
1847
1849
|
//#endregion
|
|
1848
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
1850
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/CatchBoundary.js
|
|
1849
1851
|
function CatchBoundary(e) {
|
|
1850
1852
|
let n = e.errorComponent ?? ErrorComponent;
|
|
1851
1853
|
return /* @__PURE__ */ i(CatchBoundaryImpl, {
|
|
@@ -1931,7 +1933,7 @@ function ErrorComponent({ error: e }) {
|
|
|
1931
1933
|
});
|
|
1932
1934
|
}
|
|
1933
1935
|
//#endregion
|
|
1934
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-store@0.7.0_react-dom@19.2.
|
|
1936
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-store@0.7.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-store/dist/esm/index.js
|
|
1935
1937
|
function useStore(e, t = (e) => e) {
|
|
1936
1938
|
return o(e.subscribe, () => e.state, () => e.state, t, shallow);
|
|
1937
1939
|
}
|
|
@@ -1954,19 +1956,19 @@ function shallow(e, t) {
|
|
|
1954
1956
|
return !0;
|
|
1955
1957
|
}
|
|
1956
1958
|
//#endregion
|
|
1957
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
1959
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/routerContext.js
|
|
1958
1960
|
var k = t.createContext(null);
|
|
1959
1961
|
function getRouterContext() {
|
|
1960
1962
|
return typeof document > "u" ? k : window.__TSR_ROUTER_CONTEXT__ ? window.__TSR_ROUTER_CONTEXT__ : (window.__TSR_ROUTER_CONTEXT__ = k, k);
|
|
1961
1963
|
}
|
|
1962
1964
|
//#endregion
|
|
1963
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
1965
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useRouter.js
|
|
1964
1966
|
function useRouter(e) {
|
|
1965
1967
|
let n = t.useContext(getRouterContext());
|
|
1966
1968
|
return e?.warn, n;
|
|
1967
1969
|
}
|
|
1968
1970
|
//#endregion
|
|
1969
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
1971
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useRouterState.js
|
|
1970
1972
|
function useRouterState(e) {
|
|
1971
1973
|
let t = useRouter({ warn: e?.router === void 0 }), r = e?.router || t, i = n(void 0);
|
|
1972
1974
|
return useStore(r.__store, (t) => {
|
|
@@ -1981,10 +1983,10 @@ function useRouterState(e) {
|
|
|
1981
1983
|
});
|
|
1982
1984
|
}
|
|
1983
1985
|
//#endregion
|
|
1984
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
1986
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/matchContext.js
|
|
1985
1987
|
var A = t.createContext(void 0), j = t.createContext(void 0);
|
|
1986
1988
|
//#endregion
|
|
1987
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
1989
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useMatch.js
|
|
1988
1990
|
function useMatch(e) {
|
|
1989
1991
|
let n = t.useContext(e.from ? j : A);
|
|
1990
1992
|
return useRouterState({
|
|
@@ -1996,7 +1998,7 @@ function useMatch(e) {
|
|
|
1996
1998
|
});
|
|
1997
1999
|
}
|
|
1998
2000
|
//#endregion
|
|
1999
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2001
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useLoaderData.js
|
|
2000
2002
|
function useLoaderData(e) {
|
|
2001
2003
|
return useMatch({
|
|
2002
2004
|
from: e.from,
|
|
@@ -2006,7 +2008,7 @@ function useLoaderData(e) {
|
|
|
2006
2008
|
});
|
|
2007
2009
|
}
|
|
2008
2010
|
//#endregion
|
|
2009
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2011
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useLoaderDeps.js
|
|
2010
2012
|
function useLoaderDeps(e) {
|
|
2011
2013
|
let { select: t, ...n } = e;
|
|
2012
2014
|
return useMatch({
|
|
@@ -2015,7 +2017,7 @@ function useLoaderDeps(e) {
|
|
|
2015
2017
|
});
|
|
2016
2018
|
}
|
|
2017
2019
|
//#endregion
|
|
2018
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2020
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useParams.js
|
|
2019
2021
|
function useParams(e) {
|
|
2020
2022
|
return useMatch({
|
|
2021
2023
|
from: e.from,
|
|
@@ -2026,7 +2028,7 @@ function useParams(e) {
|
|
|
2026
2028
|
});
|
|
2027
2029
|
}
|
|
2028
2030
|
//#endregion
|
|
2029
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2031
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useSearch.js
|
|
2030
2032
|
function useSearch(e) {
|
|
2031
2033
|
return useMatch({
|
|
2032
2034
|
from: e.from,
|
|
@@ -2037,7 +2039,7 @@ function useSearch(e) {
|
|
|
2037
2039
|
});
|
|
2038
2040
|
}
|
|
2039
2041
|
//#endregion
|
|
2040
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2042
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useNavigate.js
|
|
2041
2043
|
function useNavigate(e) {
|
|
2042
2044
|
let { navigate: n } = useRouter();
|
|
2043
2045
|
return t.useCallback((t) => n({
|
|
@@ -2052,7 +2054,7 @@ function Navigate(e) {
|
|
|
2052
2054
|
}, [n, e]), null;
|
|
2053
2055
|
}
|
|
2054
2056
|
//#endregion
|
|
2055
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2057
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/route.js
|
|
2056
2058
|
var Route = class extends BaseRoute {
|
|
2057
2059
|
constructor(e) {
|
|
2058
2060
|
super(e), this.useMatch = (e) => useMatch({
|
|
@@ -2117,7 +2119,7 @@ function createRootRoute(e) {
|
|
|
2117
2119
|
return new RootRoute(e);
|
|
2118
2120
|
}
|
|
2119
2121
|
//#endregion
|
|
2120
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2122
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/fileRoute.js
|
|
2121
2123
|
function createFileRoute(e) {
|
|
2122
2124
|
return new FileRoute(e, { silent: !0 }).createRoute;
|
|
2123
2125
|
}
|
|
@@ -2131,7 +2133,7 @@ var FileRoute = class {
|
|
|
2131
2133
|
}
|
|
2132
2134
|
};
|
|
2133
2135
|
//#endregion
|
|
2134
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2136
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/not-found.js
|
|
2135
2137
|
function CatchNotFound(e) {
|
|
2136
2138
|
let t = useRouterState({ select: (e) => `not-found-${e.location.pathname}-${e.status}` });
|
|
2137
2139
|
return /* @__PURE__ */ i(CatchBoundary, {
|
|
@@ -2152,12 +2154,12 @@ function DefaultGlobalNotFound() {
|
|
|
2152
2154
|
return /* @__PURE__ */ i("p", { children: "Not Found" });
|
|
2153
2155
|
}
|
|
2154
2156
|
//#endregion
|
|
2155
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2157
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/SafeFragment.js
|
|
2156
2158
|
function SafeFragment(e) {
|
|
2157
2159
|
return /* @__PURE__ */ i(r, { children: e.children });
|
|
2158
2160
|
}
|
|
2159
2161
|
//#endregion
|
|
2160
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2162
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/renderRouteNotFound.js
|
|
2161
2163
|
function renderRouteNotFound(e, t, n) {
|
|
2162
2164
|
return t.options.notFoundComponent ? /* @__PURE__ */ i(t.options.notFoundComponent, { data: n }) : e.options.defaultNotFoundComponent ? /* @__PURE__ */ i(e.options.defaultNotFoundComponent, { data: n }) : /* @__PURE__ */ i(DefaultGlobalNotFound, {});
|
|
2163
2165
|
}
|
|
@@ -2216,11 +2218,10 @@ function renderRouteNotFound(e, t, n) {
|
|
|
2216
2218
|
p || (n = n.toUpperCase()), t = "0x" + n;
|
|
2217
2219
|
} else x ? t = "0b" + e.toString(2) : S && (t = "0o" + e.toString(8));
|
|
2218
2220
|
return isBigInt(e) ? t + "n" : t;
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
+
}
|
|
2222
|
+
return isBigInt(e) ? r ? JSON.stringify(Number(e)) : e + "n" : isObject(e) ? (y = [], t.wrap = !0, increaseIndentation(), forOwn(e, (e, n) => {
|
|
2221
2223
|
b = !1, y.push((f ? "" : m) + jsesc(e, t) + ":" + (f ? "" : " ") + jsesc(n, t));
|
|
2222
|
-
}), b ? "{}" : "{" + v + y.join("," + v) + v + (f ? "" : h) + "}";
|
|
2223
|
-
else return r ? JSON.stringify(e) || "null" : String(e);
|
|
2224
|
+
}), b ? "{}" : "{" + v + y.join("," + v) + v + (f ? "" : h) + "}") : r ? JSON.stringify(e) || "null" : String(e);
|
|
2224
2225
|
}
|
|
2225
2226
|
let T = t.escapeEverything ? u : d;
|
|
2226
2227
|
return y = e.replace(T, (e, n, a, u, d, f) => {
|
|
@@ -2251,7 +2252,7 @@ function ScriptOnce({ children: e, log: t }) {
|
|
|
2251
2252
|
});
|
|
2252
2253
|
}
|
|
2253
2254
|
//#endregion
|
|
2254
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2255
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/scroll-restoration.js
|
|
2255
2256
|
function ScrollRestoration() {
|
|
2256
2257
|
let e = useRouter(), t = (e.options.getScrollRestorationKey || defaultGetScrollRestorationKey)(e.latestLocation), n = t === defaultGetScrollRestorationKey(e.latestLocation) ? null : t;
|
|
2257
2258
|
return !e.isScrollRestoring || !e.isServer ? null : /* @__PURE__ */ i(ScriptOnce, {
|
|
@@ -2260,7 +2261,7 @@ function ScrollRestoration() {
|
|
|
2260
2261
|
});
|
|
2261
2262
|
}
|
|
2262
2263
|
//#endregion
|
|
2263
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2264
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/Match.js
|
|
2264
2265
|
var M = t.memo(function MatchImpl({ matchId: e }) {
|
|
2265
2266
|
let n = useRouter(), o = useRouterState({ select: (t) => t.matches.find((t) => t.id === e)?.routeId });
|
|
2266
2267
|
invariant(o, `Could not find routeId for matchId "${e}". Please file an issue!`);
|
|
@@ -2406,7 +2407,7 @@ function useForwardedRef(e) {
|
|
|
2406
2407
|
return t.useImperativeHandle(e, () => n.current, []), n;
|
|
2407
2408
|
}
|
|
2408
2409
|
//#endregion
|
|
2409
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2410
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/Transitioner.js
|
|
2410
2411
|
function Transitioner() {
|
|
2411
2412
|
let e = useRouter(), n = t.useRef({
|
|
2412
2413
|
router: e,
|
|
@@ -2482,13 +2483,13 @@ function Transitioner() {
|
|
|
2482
2483
|
]), null;
|
|
2483
2484
|
}
|
|
2484
2485
|
//#endregion
|
|
2485
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2486
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/Matches.js
|
|
2486
2487
|
function Matches() {
|
|
2487
|
-
let e = useRouter(), n = e.options.defaultPendingComponent ? /* @__PURE__ */ i(e.options.defaultPendingComponent, {}) : null, r =
|
|
2488
|
+
let e = useRouter(), n = e.options.defaultPendingComponent ? /* @__PURE__ */ i(e.options.defaultPendingComponent, {}) : null, r = e.isServer || typeof document < "u" && e.clientSsr ? SafeFragment : t.Suspense, o = /* @__PURE__ */ a(r, {
|
|
2488
2489
|
fallback: n,
|
|
2489
2490
|
children: [/* @__PURE__ */ i(Transitioner, {}), /* @__PURE__ */ i(MatchesInner, {})]
|
|
2490
2491
|
});
|
|
2491
|
-
return e.options.InnerWrap ? /* @__PURE__ */ i(e.options.InnerWrap, { children:
|
|
2492
|
+
return e.options.InnerWrap ? /* @__PURE__ */ i(e.options.InnerWrap, { children: o }) : o;
|
|
2492
2493
|
}
|
|
2493
2494
|
function MatchesInner() {
|
|
2494
2495
|
let e = useRouterState({ select: (e) => e.matches[0]?.id }), t = useRouterState({ select: (e) => e.loadedAt });
|
|
@@ -2514,7 +2515,7 @@ function useMatches(e) {
|
|
|
2514
2515
|
});
|
|
2515
2516
|
}
|
|
2516
2517
|
//#endregion
|
|
2517
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2518
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/link.js
|
|
2518
2519
|
function useLinkProps(e, n) {
|
|
2519
2520
|
let r = useRouter(), [i, a] = t.useState(!1), o = t.useRef(!1), c = useForwardedRef(n), { activeProps = () => ({ className: "active" }), inactiveProps = () => ({}), activeOptions: l, to: u, preload: d, preloadDelay: f, hashScrollIntoView: p, replace: m, startTransition: h, resetScroll: g, viewTransition: _, children: v, target: y, disabled: b, style: x, className: S, onClick: C, onFocus: w, onMouseEnter: T, onMouseLeave: E, onTouchStart: D, ignoreBlocker: k, ...A } = e, { params: j, search: M, hash: N, state: P, mask: I, reloadDocument: L, ...R } = A, z = t.useMemo(() => {
|
|
2520
2521
|
try {
|
|
@@ -2545,7 +2546,7 @@ function useLinkProps(e, n) {
|
|
|
2545
2546
|
return (l?.includeSearch ?? !0) && !deepEqual(e.location.search, U.search, {
|
|
2546
2547
|
partial: !l?.exact,
|
|
2547
2548
|
ignoreUndefined: !l?.explicitUndefined
|
|
2548
|
-
}) ? !1 : l?.includeHash
|
|
2549
|
+
}) ? !1 : !l?.includeHash || e.location.hash === U.hash;
|
|
2549
2550
|
} }), q = t.useCallback(() => {
|
|
2550
2551
|
r.preloadRoute(H).catch((e) => {
|
|
2551
2552
|
console.warn(e), console.warn(O);
|
|
@@ -2659,14 +2660,14 @@ function isCtrlEvent(e) {
|
|
|
2659
2660
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
2660
2661
|
}
|
|
2661
2662
|
//#endregion
|
|
2662
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2663
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/router.js
|
|
2663
2664
|
var createRouter = (e) => new Router(e), Router = class extends RouterCore {
|
|
2664
2665
|
constructor(e) {
|
|
2665
2666
|
super(e);
|
|
2666
2667
|
}
|
|
2667
2668
|
};
|
|
2668
2669
|
//#endregion
|
|
2669
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.
|
|
2670
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/RouterProvider.js
|
|
2670
2671
|
function RouterContextProvider({ router: e, children: t, ...n }) {
|
|
2671
2672
|
e.update({
|
|
2672
2673
|
...e.options,
|
|
@@ -2676,11 +2677,11 @@ function RouterContextProvider({ router: e, children: t, ...n }) {
|
|
|
2676
2677
|
...n.context
|
|
2677
2678
|
}
|
|
2678
2679
|
});
|
|
2679
|
-
let r = /* @__PURE__ */ i(
|
|
2680
|
+
let r = getRouterContext(), a = /* @__PURE__ */ i(r.Provider, {
|
|
2680
2681
|
value: e,
|
|
2681
2682
|
children: t
|
|
2682
2683
|
});
|
|
2683
|
-
return e.options.Wrap ? /* @__PURE__ */ i(e.options.Wrap, { children:
|
|
2684
|
+
return e.options.Wrap ? /* @__PURE__ */ i(e.options.Wrap, { children: a }) : a;
|
|
2684
2685
|
}
|
|
2685
2686
|
function RouterProvider({ router: e, ...t }) {
|
|
2686
2687
|
return /* @__PURE__ */ i(RouterContextProvider, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as e } from "../../rolldown-runtime.mjs";
|
|
2
2
|
import { useCallback as t, useEffect as n, useLayoutEffect as r, useState as i } from "react";
|
|
3
3
|
import { useSyncExternalStoreWithSelector as a } from "use-sync-external-store/shim/with-selector";
|
|
4
|
-
//#region ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.2.18_react@19.2.8/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js
|
|
5
5
|
var o = r;
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
7
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/xstate-dev.esm.js
|
|
8
8
|
function getGlobal() {
|
|
9
9
|
if (typeof globalThis < "u") return globalThis;
|
|
10
10
|
if (typeof self < "u") return self;
|
|
@@ -85,7 +85,7 @@ function reportUnhandledError(e) {
|
|
|
85
85
|
var f = typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
86
86
|
function matchesState(e, t) {
|
|
87
87
|
let n = toStateValue(e), r = toStateValue(t);
|
|
88
|
-
return typeof r == "string" ? typeof n == "string"
|
|
88
|
+
return typeof r == "string" ? typeof n == "string" && r === n : typeof n == "string" ? n in r : Object.keys(n).every((e) => e in r && matchesState(n[e], r[e]));
|
|
89
89
|
}
|
|
90
90
|
function toStatePath(e) {
|
|
91
91
|
if (isArray(e)) return e;
|
|
@@ -147,7 +147,7 @@ function toTransitionConfigArray(e) {
|
|
|
147
147
|
return toArrayStrict(e).map((e) => e === void 0 || typeof e == "string" ? { target: e } : e);
|
|
148
148
|
}
|
|
149
149
|
function normalizeTarget(e) {
|
|
150
|
-
if (
|
|
150
|
+
if (e !== void 0 && e !== s) return toArray(e);
|
|
151
151
|
}
|
|
152
152
|
function toObserver(e, t, n) {
|
|
153
153
|
let r = typeof e == "object", i = r ? e : void 0;
|
|
@@ -366,9 +366,7 @@ var m = !1, h = /*#__PURE__*/ function(e) {
|
|
|
366
366
|
}
|
|
367
367
|
this._stopProcedure(), this._complete(), this._doneEvent = createDoneActorEvent(this.id, this._snapshot.output), this._parent && this.system._relay(this, this._parent, this._doneEvent);
|
|
368
368
|
break;
|
|
369
|
-
case "error":
|
|
370
|
-
this._error(this._snapshot.error);
|
|
371
|
-
break;
|
|
369
|
+
case "error": this._error(this._snapshot.error);
|
|
372
370
|
}
|
|
373
371
|
this.system._sendInspectionEvent({
|
|
374
372
|
type: "@xstate.snapshot",
|
|
@@ -836,7 +834,7 @@ function resolveTarget(e, t) {
|
|
|
836
834
|
} catch (t) {
|
|
837
835
|
throw Error(`Invalid transition definition for state node '${e.id}':\n${t.message}`);
|
|
838
836
|
}
|
|
839
|
-
|
|
837
|
+
throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`);
|
|
840
838
|
});
|
|
841
839
|
}
|
|
842
840
|
function resolveHistoryDefaultTransition(e) {
|
|
@@ -933,10 +931,12 @@ function removeConflictingTransitions(e, t, n) {
|
|
|
933
931
|
let r = /* @__PURE__ */ new Set();
|
|
934
932
|
for (let i of e) {
|
|
935
933
|
let e = !1, a = /* @__PURE__ */ new Set();
|
|
936
|
-
for (let o of r) if (hasIntersection(computeExitSet([i], t, n), computeExitSet([o], t, n)))
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
934
|
+
for (let o of r) if (hasIntersection(computeExitSet([i], t, n), computeExitSet([o], t, n))) {
|
|
935
|
+
if (isDescendant(i.source, o.source)) a.add(o);
|
|
936
|
+
else {
|
|
937
|
+
e = !0;
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
940
|
}
|
|
941
941
|
if (!e) {
|
|
942
942
|
for (let e of a) r.delete(e);
|
|
@@ -952,9 +952,10 @@ function findLeastCommonAncestor(e) {
|
|
|
952
952
|
function getEffectiveTargetStates(e, t) {
|
|
953
953
|
if (!e.target) return [];
|
|
954
954
|
let n = /* @__PURE__ */ new Set();
|
|
955
|
-
for (let r of e.target) if (isHistoryNode(r))
|
|
956
|
-
|
|
957
|
-
|
|
955
|
+
for (let r of e.target) if (isHistoryNode(r)) {
|
|
956
|
+
if (t[r.id]) for (let e of t[r.id]) n.add(e);
|
|
957
|
+
else for (let e of getEffectiveTargetStates(resolveHistoryDefaultTransition(r), t)) n.add(e);
|
|
958
|
+
} else n.add(r);
|
|
958
959
|
return [...n];
|
|
959
960
|
}
|
|
960
961
|
function getTransitionDomain(e, t) {
|
|
@@ -1058,16 +1059,17 @@ function computeEntrySet(e, t, n, r) {
|
|
|
1058
1059
|
}
|
|
1059
1060
|
}
|
|
1060
1061
|
function addDescendantStatesToEnter(e, t, n, r) {
|
|
1061
|
-
if (isHistoryNode(e))
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1062
|
+
if (isHistoryNode(e)) {
|
|
1063
|
+
if (t[e.id]) {
|
|
1064
|
+
let i = t[e.id];
|
|
1065
|
+
for (let e of i) r.add(e), addDescendantStatesToEnter(e, t, n, r);
|
|
1066
|
+
for (let a of i) addProperAncestorStatesToEnter(a, e.parent, r, t, n);
|
|
1067
|
+
} else {
|
|
1068
|
+
let i = resolveHistoryDefaultTransition(e);
|
|
1069
|
+
for (let a of i.target) r.add(a), i === e.parent?.initial && n.add(e.parent), addDescendantStatesToEnter(a, t, n, r);
|
|
1070
|
+
for (let a of i.target) addProperAncestorStatesToEnter(a, e.parent, r, t, n);
|
|
1071
|
+
}
|
|
1072
|
+
} else if (e.type === "compound") {
|
|
1071
1073
|
let [i] = e.initial.target;
|
|
1072
1074
|
isHistoryNode(i) || (r.add(i), n.add(i)), addDescendantStatesToEnter(i, t, n, r), addProperAncestorStatesToEnter(i, e, r, t, n);
|
|
1073
1075
|
} else if (e.type === "parallel") for (let i of getChildren(e).filter((e) => !isHistoryNode(e))) [...r].some((e) => isDescendant(e, i)) || (isHistoryNode(i) || (r.add(i), n.add(i)), addDescendantStatesToEnter(i, t, n, r));
|
|
@@ -1270,13 +1272,15 @@ function persistContext(e) {
|
|
|
1270
1272
|
let t;
|
|
1271
1273
|
for (let n in e) {
|
|
1272
1274
|
let r = e[n];
|
|
1273
|
-
if (r && typeof r == "object")
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1275
|
+
if (r && typeof r == "object") {
|
|
1276
|
+
if ("sessionId" in r && "send" in r && "ref" in r) t ??= Array.isArray(e) ? e.slice() : { ...e }, t[n] = {
|
|
1277
|
+
xstate$$type: 1,
|
|
1278
|
+
id: r.id
|
|
1279
|
+
};
|
|
1280
|
+
else {
|
|
1281
|
+
let i = persistContext(r);
|
|
1282
|
+
i !== r && (t ??= Array.isArray(e) ? e.slice() : { ...e }, t[n] = i);
|
|
1283
|
+
}
|
|
1280
1284
|
}
|
|
1281
1285
|
}
|
|
1282
1286
|
return t ?? e;
|
|
@@ -1415,7 +1419,7 @@ function fromPromise(e) {
|
|
|
1415
1419
|
};
|
|
1416
1420
|
}
|
|
1417
1421
|
//#endregion
|
|
1418
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1422
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/assign-54f9e2d3.esm.js
|
|
1419
1423
|
function createSpawner(e, { machine: t, context: n }, r, i) {
|
|
1420
1424
|
let spawn = (a, o) => {
|
|
1421
1425
|
if (typeof a == "string") {
|
|
@@ -1434,7 +1438,8 @@ function createSpawner(e, { machine: t, context: n }, r, i) {
|
|
|
1434
1438
|
systemId: o?.systemId
|
|
1435
1439
|
});
|
|
1436
1440
|
return i[c.id] = c, c;
|
|
1437
|
-
}
|
|
1441
|
+
}
|
|
1442
|
+
return createActor(a, {
|
|
1438
1443
|
id: o?.id,
|
|
1439
1444
|
parent: e.self,
|
|
1440
1445
|
syncSnapshot: o?.syncSnapshot,
|
|
@@ -1481,7 +1486,7 @@ function assign(e) {
|
|
|
1481
1486
|
return assign.type = "xstate.assign", assign.assignment = e, assign.resolve = resolveAssign, assign;
|
|
1482
1487
|
}
|
|
1483
1488
|
//#endregion
|
|
1484
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1489
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/StateMachine-28a9f50e.esm.js
|
|
1485
1490
|
var E = /* @__PURE__ */ new WeakMap();
|
|
1486
1491
|
function memo$1(e, t, n) {
|
|
1487
1492
|
let r = E.get(e);
|
|
@@ -1676,8 +1681,22 @@ var D = {}, toSerializableAction = (e) => typeof e == "string" ? { type: e } : t
|
|
|
1676
1681
|
return i;
|
|
1677
1682
|
}
|
|
1678
1683
|
getInitialSnapshot(e, t) {
|
|
1679
|
-
let n = createInitEvent(t), r = [], i =
|
|
1680
|
-
|
|
1684
|
+
let n = createInitEvent(t), r = [], i = createMachineSnapshot({
|
|
1685
|
+
context: typeof this.config.context != "function" && this.config.context ? this.config.context : {},
|
|
1686
|
+
_nodes: [this.root],
|
|
1687
|
+
children: {},
|
|
1688
|
+
status: "active"
|
|
1689
|
+
}, this);
|
|
1690
|
+
try {
|
|
1691
|
+
i = this._getPreInitialState(e, n, r);
|
|
1692
|
+
let [t] = initialMicrostep(this.root, i, e, n, r), { snapshot: a } = macrostep(t, n, e, r);
|
|
1693
|
+
return a;
|
|
1694
|
+
} catch (e) {
|
|
1695
|
+
return cloneMachineSnapshot(i, {
|
|
1696
|
+
status: "error",
|
|
1697
|
+
error: e
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1681
1700
|
}
|
|
1682
1701
|
start(e) {
|
|
1683
1702
|
Object.values(e.children).forEach((e) => {
|
|
@@ -1756,7 +1775,7 @@ var D = {}, toSerializableAction = (e) => typeof e == "string" ? { type: e } : t
|
|
|
1756
1775
|
}
|
|
1757
1776
|
};
|
|
1758
1777
|
//#endregion
|
|
1759
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1778
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/log-66075555.esm.js
|
|
1760
1779
|
function resolveEmit(e, t, n, r, { event: i }) {
|
|
1761
1780
|
return [
|
|
1762
1781
|
t,
|
|
@@ -1876,7 +1895,7 @@ function log(e = ({ context: e, event: t }) => ({
|
|
|
1876
1895
|
return log.type = "xstate.log", log.value = e, log.label = t, log.resolve = resolveLog, log.execute = executeLog, log;
|
|
1877
1896
|
}
|
|
1878
1897
|
//#endregion
|
|
1879
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1898
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/xstate.esm.js
|
|
1880
1899
|
function assertEvent(e, t) {
|
|
1881
1900
|
let n = toArray(t);
|
|
1882
1901
|
if (!n.some((t) => matchesEventDescriptor(e.type, t))) {
|
|
@@ -1928,7 +1947,7 @@ function setup({ schemas: e, actors: t, actions: n, guards: r, delays: i }) {
|
|
|
1928
1947
|
};
|
|
1929
1948
|
}
|
|
1930
1949
|
//#endregion
|
|
1931
|
-
//#region ../../node_modules/.pnpm/@xstate+react@6.1.0_@types+react@19.2.
|
|
1950
|
+
//#region ../../node_modules/.pnpm/@xstate+react@6.1.0_@types+react@19.2.18_react@19.2.8_xstate@5.32.6/node_modules/@xstate/react/dist/xstate-react.esm.js
|
|
1932
1951
|
var forEachActor = (e, t) => {
|
|
1933
1952
|
t(e);
|
|
1934
1953
|
let n = e.getSnapshot().children;
|