@clusterenvision/ui-framework 1.0.0
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/LICENSE +21 -0
- package/README.md +295 -0
- package/dist/ai-assistant-Db002XYC.d.ts +92 -0
- package/dist/ai-assistant-EobSUV70.d.cts +92 -0
- package/dist/browser-DnHpnWwE.d.cts +354 -0
- package/dist/browser-Dx4oKf5e.d.ts +354 -0
- package/dist/browser-signals-07qodpYT.d.cts +66 -0
- package/dist/browser-signals-07qodpYT.d.ts +66 -0
- package/dist/browser-signals.cjs +32 -0
- package/dist/browser-signals.cjs.map +1 -0
- package/dist/browser-signals.d.cts +1 -0
- package/dist/browser-signals.d.ts +1 -0
- package/dist/browser-signals.js +3 -0
- package/dist/browser-signals.js.map +1 -0
- package/dist/browser.cjs +197 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +13 -0
- package/dist/browser.d.ts +13 -0
- package/dist/browser.js +12 -0
- package/dist/browser.js.map +1 -0
- package/dist/chunk-22HQL2Y4.js +568 -0
- package/dist/chunk-22HQL2Y4.js.map +1 -0
- package/dist/chunk-3ZBRNFEE.js +1525 -0
- package/dist/chunk-3ZBRNFEE.js.map +1 -0
- package/dist/chunk-4HRORR2Q.js +1953 -0
- package/dist/chunk-4HRORR2Q.js.map +1 -0
- package/dist/chunk-4L3UXVL5.cjs +68 -0
- package/dist/chunk-4L3UXVL5.cjs.map +1 -0
- package/dist/chunk-6BYWFGQY.cjs +226 -0
- package/dist/chunk-6BYWFGQY.cjs.map +1 -0
- package/dist/chunk-7SCIB5HP.js +57 -0
- package/dist/chunk-7SCIB5HP.js.map +1 -0
- package/dist/chunk-BBAUALNU.js +888 -0
- package/dist/chunk-BBAUALNU.js.map +1 -0
- package/dist/chunk-CHLDE4JQ.js +715 -0
- package/dist/chunk-CHLDE4JQ.js.map +1 -0
- package/dist/chunk-CXTAUXLG.cjs +71 -0
- package/dist/chunk-CXTAUXLG.cjs.map +1 -0
- package/dist/chunk-D2USIT6V.js +121 -0
- package/dist/chunk-D2USIT6V.js.map +1 -0
- package/dist/chunk-D3H5CGVD.js +36 -0
- package/dist/chunk-D3H5CGVD.js.map +1 -0
- package/dist/chunk-DQBX75NJ.js +92 -0
- package/dist/chunk-DQBX75NJ.js.map +1 -0
- package/dist/chunk-DRPG2DFX.js +208 -0
- package/dist/chunk-DRPG2DFX.js.map +1 -0
- package/dist/chunk-EFOOXCY7.cjs +41 -0
- package/dist/chunk-EFOOXCY7.cjs.map +1 -0
- package/dist/chunk-FFCZSYC7.cjs +906 -0
- package/dist/chunk-FFCZSYC7.cjs.map +1 -0
- package/dist/chunk-FNXIYAET.cjs +1593 -0
- package/dist/chunk-FNXIYAET.cjs.map +1 -0
- package/dist/chunk-I6GNUM3P.cjs +63 -0
- package/dist/chunk-I6GNUM3P.cjs.map +1 -0
- package/dist/chunk-IHAMVLRY.js +129 -0
- package/dist/chunk-IHAMVLRY.js.map +1 -0
- package/dist/chunk-IRBUKIRF.cjs +133 -0
- package/dist/chunk-IRBUKIRF.cjs.map +1 -0
- package/dist/chunk-KPG5HAHK.cjs +97 -0
- package/dist/chunk-KPG5HAHK.cjs.map +1 -0
- package/dist/chunk-N7Q2ESLG.cjs +130 -0
- package/dist/chunk-N7Q2ESLG.cjs.map +1 -0
- package/dist/chunk-PFBEIFVS.js +180 -0
- package/dist/chunk-PFBEIFVS.js.map +1 -0
- package/dist/chunk-PVZVFICK.cjs +318 -0
- package/dist/chunk-PVZVFICK.cjs.map +1 -0
- package/dist/chunk-Q3KH6HMU.js +305 -0
- package/dist/chunk-Q3KH6HMU.js.map +1 -0
- package/dist/chunk-QPAAV32J.cjs +1985 -0
- package/dist/chunk-QPAAV32J.cjs.map +1 -0
- package/dist/chunk-R6XQUMWT.cjs +61 -0
- package/dist/chunk-R6XQUMWT.cjs.map +1 -0
- package/dist/chunk-SA5UD5B6.js +92 -0
- package/dist/chunk-SA5UD5B6.js.map +1 -0
- package/dist/chunk-SM35JOYD.cjs +211 -0
- package/dist/chunk-SM35JOYD.cjs.map +1 -0
- package/dist/chunk-SZQNIMYI.cjs +592 -0
- package/dist/chunk-SZQNIMYI.cjs.map +1 -0
- package/dist/chunk-T6T7QE4J.js +224 -0
- package/dist/chunk-T6T7QE4J.js.map +1 -0
- package/dist/chunk-TIF372DZ.js +65 -0
- package/dist/chunk-TIF372DZ.js.map +1 -0
- package/dist/chunk-V6JCOBGY.js +69 -0
- package/dist/chunk-V6JCOBGY.js.map +1 -0
- package/dist/chunk-VHUXNDW2.cjs +189 -0
- package/dist/chunk-VHUXNDW2.cjs.map +1 -0
- package/dist/chunk-W3LNNY3U.cjs +729 -0
- package/dist/chunk-W3LNNY3U.cjs.map +1 -0
- package/dist/chunk-ZUWSU4OA.js +61 -0
- package/dist/chunk-ZUWSU4OA.js.map +1 -0
- package/dist/chunk-ZWUA2LPB.cjs +103 -0
- package/dist/chunk-ZWUA2LPB.cjs.map +1 -0
- package/dist/cli/index.cjs +566 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +558 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/compiler/index.cjs +80 -0
- package/dist/compiler/index.cjs.map +1 -0
- package/dist/compiler/index.d.cts +130 -0
- package/dist/compiler/index.d.ts +130 -0
- package/dist/compiler/index.js +3 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/component-BVzvepw9.d.cts +90 -0
- package/dist/component-wTxZ2BPD.d.ts +90 -0
- package/dist/index-CpxDa60m.d.cts +644 -0
- package/dist/index-CpxDa60m.d.ts +644 -0
- package/dist/index.cjs +1356 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +165 -0
- package/dist/index.d.ts +165 -0
- package/dist/index.js +772 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/dom.cjs +102 -0
- package/dist/lib/dom.cjs.map +1 -0
- package/dist/lib/dom.d.cts +373 -0
- package/dist/lib/dom.d.ts +373 -0
- package/dist/lib/dom.js +3 -0
- package/dist/lib/dom.js.map +1 -0
- package/dist/lib/icons.cjs +20 -0
- package/dist/lib/icons.cjs.map +1 -0
- package/dist/lib/icons.d.cts +64 -0
- package/dist/lib/icons.d.ts +64 -0
- package/dist/lib/icons.js +3 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/lib/index.cjs +247 -0
- package/dist/lib/index.cjs.map +1 -0
- package/dist/lib/index.d.cts +30 -0
- package/dist/lib/index.d.ts +30 -0
- package/dist/lib/index.js +92 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/theme.cjs +56 -0
- package/dist/lib/theme.cjs.map +1 -0
- package/dist/lib/theme.d.cts +27 -0
- package/dist/lib/theme.d.ts +27 -0
- package/dist/lib/theme.js +3 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/router-B9kms5XQ.d.ts +124 -0
- package/dist/router-YnpW_sIK.d.cts +124 -0
- package/dist/runtime/adapters/angular.cjs +48 -0
- package/dist/runtime/adapters/angular.cjs.map +1 -0
- package/dist/runtime/adapters/angular.d.cts +38 -0
- package/dist/runtime/adapters/angular.d.ts +38 -0
- package/dist/runtime/adapters/angular.js +46 -0
- package/dist/runtime/adapters/angular.js.map +1 -0
- package/dist/runtime/adapters/react.cjs +41 -0
- package/dist/runtime/adapters/react.cjs.map +1 -0
- package/dist/runtime/adapters/react.d.cts +26 -0
- package/dist/runtime/adapters/react.d.ts +26 -0
- package/dist/runtime/adapters/react.js +39 -0
- package/dist/runtime/adapters/react.js.map +1 -0
- package/dist/runtime/adapters/vue.cjs +44 -0
- package/dist/runtime/adapters/vue.cjs.map +1 -0
- package/dist/runtime/adapters/vue.d.cts +37 -0
- package/dist/runtime/adapters/vue.d.ts +37 -0
- package/dist/runtime/adapters/vue.js +42 -0
- package/dist/runtime/adapters/vue.js.map +1 -0
- package/dist/runtime/components/ai-assistant.cjs +18 -0
- package/dist/runtime/components/ai-assistant.cjs.map +1 -0
- package/dist/runtime/components/ai-assistant.d.cts +8 -0
- package/dist/runtime/components/ai-assistant.d.ts +8 -0
- package/dist/runtime/components/ai-assistant.js +9 -0
- package/dist/runtime/components/ai-assistant.js.map +1 -0
- package/dist/runtime/components/ai-summary-card.cjs +18 -0
- package/dist/runtime/components/ai-summary-card.cjs.map +1 -0
- package/dist/runtime/components/ai-summary-card.d.cts +19 -0
- package/dist/runtime/components/ai-summary-card.d.ts +19 -0
- package/dist/runtime/components/ai-summary-card.js +9 -0
- package/dist/runtime/components/ai-summary-card.js.map +1 -0
- package/dist/runtime/router.cjs +429 -0
- package/dist/runtime/router.cjs.map +1 -0
- package/dist/runtime/router.d.cts +2 -0
- package/dist/runtime/router.d.ts +2 -0
- package/dist/runtime/router.js +421 -0
- package/dist/runtime/router.js.map +1 -0
- package/dist/runtime/server.cjs +125 -0
- package/dist/runtime/server.cjs.map +1 -0
- package/dist/runtime/server.d.cts +27 -0
- package/dist/runtime/server.d.ts +27 -0
- package/dist/runtime/server.js +117 -0
- package/dist/runtime/server.js.map +1 -0
- package/dist/runtime/workflow/index.cjs +282 -0
- package/dist/runtime/workflow/index.cjs.map +1 -0
- package/dist/runtime/workflow/index.d.cts +1 -0
- package/dist/runtime/workflow/index.d.ts +1 -0
- package/dist/runtime/workflow/index.js +5 -0
- package/dist/runtime/workflow/index.js.map +1 -0
- package/dist/tracing-DGdvMCEl.d.cts +109 -0
- package/dist/tracing-DGdvMCEl.d.ts +109 -0
- package/dist/types-C4RXXKfk.d.cts +76 -0
- package/dist/types-C4RXXKfk.d.ts +76 -0
- package/package.json +166 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,1356 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkFNXIYAET_cjs = require('./chunk-FNXIYAET.cjs');
|
|
4
|
+
var chunkQPAAV32J_cjs = require('./chunk-QPAAV32J.cjs');
|
|
5
|
+
var chunk6BYWFGQY_cjs = require('./chunk-6BYWFGQY.cjs');
|
|
6
|
+
var chunkCXTAUXLG_cjs = require('./chunk-CXTAUXLG.cjs');
|
|
7
|
+
var chunkW3LNNY3U_cjs = require('./chunk-W3LNNY3U.cjs');
|
|
8
|
+
require('./chunk-PVZVFICK.cjs');
|
|
9
|
+
var chunkI6GNUM3P_cjs = require('./chunk-I6GNUM3P.cjs');
|
|
10
|
+
require('./chunk-IRBUKIRF.cjs');
|
|
11
|
+
require('./chunk-FFCZSYC7.cjs');
|
|
12
|
+
var chunkKPG5HAHK_cjs = require('./chunk-KPG5HAHK.cjs');
|
|
13
|
+
var chunkZWUA2LPB_cjs = require('./chunk-ZWUA2LPB.cjs');
|
|
14
|
+
var chunkEFOOXCY7_cjs = require('./chunk-EFOOXCY7.cjs');
|
|
15
|
+
var chunkVHUXNDW2_cjs = require('./chunk-VHUXNDW2.cjs');
|
|
16
|
+
var chunkN7Q2ESLG_cjs = require('./chunk-N7Q2ESLG.cjs');
|
|
17
|
+
var chunkSM35JOYD_cjs = require('./chunk-SM35JOYD.cjs');
|
|
18
|
+
var http = require('http');
|
|
19
|
+
var url = require('url');
|
|
20
|
+
var fs = require('fs');
|
|
21
|
+
|
|
22
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
|
+
|
|
24
|
+
var http__default = /*#__PURE__*/_interopDefault(http);
|
|
25
|
+
|
|
26
|
+
// src/runtime/router.js
|
|
27
|
+
var CONTINUE_NAVIGATION = { type: "continue" };
|
|
28
|
+
var MAX_GUARD_REDIRECTS = 8;
|
|
29
|
+
function allowNavigation() {
|
|
30
|
+
return CONTINUE_NAVIGATION;
|
|
31
|
+
}
|
|
32
|
+
function redirectNavigation(to, options) {
|
|
33
|
+
return { type: "redirect", to, options };
|
|
34
|
+
}
|
|
35
|
+
function errorNavigation(error, info) {
|
|
36
|
+
return { type: "error", error, info: info ?? null };
|
|
37
|
+
}
|
|
38
|
+
function createRouter(input) {
|
|
39
|
+
const options = normalizeRouterOptions(input);
|
|
40
|
+
const flattened = chunkZWUA2LPB_cjs.flattenRoutes(options.routes);
|
|
41
|
+
const notFoundRoute = normalizeFallbackRoute(options.notFoundRoute, "not-found", "*");
|
|
42
|
+
const errorRoute = normalizeFallbackRoute(options.errorRoute, "error", "/__error");
|
|
43
|
+
const initialPath = typeof window !== "undefined" ? window.location.pathname : "/";
|
|
44
|
+
const currentPath = chunkVHUXNDW2_cjs.signal(initialPath);
|
|
45
|
+
const currentMatchSignal = chunkVHUXNDW2_cjs.signal(resolveMatch(initialPath));
|
|
46
|
+
function resolveMatch(path) {
|
|
47
|
+
for (const node of flattened) {
|
|
48
|
+
const params = chunkZWUA2LPB_cjs.matchRoute(path, node.fullPath);
|
|
49
|
+
if (params) {
|
|
50
|
+
return instantiateMatch(node, params);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (notFoundRoute) {
|
|
54
|
+
return createFallbackMatch(notFoundRoute, path, "not-found");
|
|
55
|
+
}
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
function instantiateMatch(node, params) {
|
|
59
|
+
const layouts = collectLayouts(node.branch, node.fullPath, params);
|
|
60
|
+
const routeBoundary = createRouterBoundaryState("route", normalizeBoundaryConfig("route", node.route.boundary, {
|
|
61
|
+
routeId: chunkZWUA2LPB_cjs.getRouteId(node.route),
|
|
62
|
+
path: node.fullPath,
|
|
63
|
+
params
|
|
64
|
+
}));
|
|
65
|
+
return {
|
|
66
|
+
route: node.route,
|
|
67
|
+
params,
|
|
68
|
+
fullPath: node.fullPath,
|
|
69
|
+
layouts,
|
|
70
|
+
boundary: routeBoundary
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function collectLayouts(branch, fullPath, params) {
|
|
74
|
+
const states = [];
|
|
75
|
+
branch.forEach((route) => {
|
|
76
|
+
(route.layouts ?? []).forEach((layout, index) => {
|
|
77
|
+
states.push(createRouterBoundaryState("layout", normalizeBoundaryConfig("layout", layout, {
|
|
78
|
+
routeId: chunkZWUA2LPB_cjs.getRouteId(route),
|
|
79
|
+
path: fullPath,
|
|
80
|
+
layoutIndex: index,
|
|
81
|
+
params
|
|
82
|
+
})));
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
return states;
|
|
86
|
+
}
|
|
87
|
+
function createFallbackMatch(route, requestedPath, reason, error, errorMessage) {
|
|
88
|
+
const normalizedPath = chunkZWUA2LPB_cjs.normalizePathname(requestedPath);
|
|
89
|
+
const params = chunkZWUA2LPB_cjs.matchRoute(normalizedPath, route.path) ?? {};
|
|
90
|
+
const statusCode = reason === "not-found" ? 404 : 500;
|
|
91
|
+
const boundaryConfig = {
|
|
92
|
+
...route.boundary ?? {},
|
|
93
|
+
attributes: {
|
|
94
|
+
...route.boundary?.attributes ?? {},
|
|
95
|
+
requestedPath: normalizedPath,
|
|
96
|
+
statusCode,
|
|
97
|
+
reason,
|
|
98
|
+
errorMessage: errorMessage ?? error?.message
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const layouts = collectLayouts([route], normalizedPath, params);
|
|
102
|
+
const routeBoundary = createRouterBoundaryState("route", normalizeBoundaryConfig("route", boundaryConfig, {
|
|
103
|
+
routeId: chunkZWUA2LPB_cjs.getRouteId(route),
|
|
104
|
+
path: normalizedPath,
|
|
105
|
+
params
|
|
106
|
+
}));
|
|
107
|
+
return {
|
|
108
|
+
route,
|
|
109
|
+
params,
|
|
110
|
+
fullPath: normalizedPath,
|
|
111
|
+
layouts,
|
|
112
|
+
boundary: routeBoundary
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function match(path) {
|
|
116
|
+
const resolved = resolveMatch(path ?? currentPath());
|
|
117
|
+
if (path === void 0) {
|
|
118
|
+
currentMatchSignal.set(resolved);
|
|
119
|
+
}
|
|
120
|
+
return resolved;
|
|
121
|
+
}
|
|
122
|
+
function navigate(path, options2) {
|
|
123
|
+
return runNavigation(path, options2, 0);
|
|
124
|
+
}
|
|
125
|
+
function onPopState() {
|
|
126
|
+
if (typeof window === "undefined") {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const nextPath = window.location.pathname;
|
|
130
|
+
runNavigation(nextPath, { replace: true }, 0);
|
|
131
|
+
}
|
|
132
|
+
const start = () => {
|
|
133
|
+
if (typeof window === "undefined") {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
window.addEventListener("popstate", onPopState);
|
|
137
|
+
};
|
|
138
|
+
const dispose = () => {
|
|
139
|
+
if (typeof window === "undefined") {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
window.removeEventListener("popstate", onPopState);
|
|
143
|
+
};
|
|
144
|
+
function runNavigation(path, options2, depth) {
|
|
145
|
+
const resolved = resolveMatch(path);
|
|
146
|
+
if (!resolved) {
|
|
147
|
+
applyHistory(path, options2);
|
|
148
|
+
currentPath.set(path);
|
|
149
|
+
currentMatchSignal.set(null);
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
const guardResult = runRouteGuards(resolved);
|
|
153
|
+
if (guardResult.type === "redirect") {
|
|
154
|
+
if (depth >= MAX_GUARD_REDIRECTS) {
|
|
155
|
+
throw new Error("Router redirect loop detected.");
|
|
156
|
+
}
|
|
157
|
+
const nextOptions = { ...options2, ...guardResult.options, replace: true };
|
|
158
|
+
return runNavigation(guardResult.to, nextOptions, depth + 1);
|
|
159
|
+
}
|
|
160
|
+
if (guardResult.type === "error") {
|
|
161
|
+
const info = guardResult.info ?? createGuardErrorInfo(resolved);
|
|
162
|
+
const rawMessage = guardResult.error.message;
|
|
163
|
+
if (errorRoute) {
|
|
164
|
+
try {
|
|
165
|
+
chunkKPG5HAHK_cjs.captureRuntimeError(guardResult.error, info);
|
|
166
|
+
} catch {
|
|
167
|
+
}
|
|
168
|
+
const errorMatch = createFallbackMatch(errorRoute, path, "error", guardResult.error, rawMessage);
|
|
169
|
+
applyHistory(path, options2);
|
|
170
|
+
currentPath.set(path);
|
|
171
|
+
currentMatchSignal.set(errorMatch);
|
|
172
|
+
return errorMatch;
|
|
173
|
+
}
|
|
174
|
+
chunkKPG5HAHK_cjs.captureRuntimeError(guardResult.error, info);
|
|
175
|
+
return currentMatchSignal();
|
|
176
|
+
}
|
|
177
|
+
applyHistory(path, options2);
|
|
178
|
+
currentPath.set(path);
|
|
179
|
+
currentMatchSignal.set(resolved);
|
|
180
|
+
return resolved;
|
|
181
|
+
}
|
|
182
|
+
function applyHistory(path, options2) {
|
|
183
|
+
if (typeof window === "undefined") {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
const historyState = options2?.state ?? {};
|
|
187
|
+
if (options2?.replace) {
|
|
188
|
+
window.history.replaceState(historyState, "", path);
|
|
189
|
+
} else {
|
|
190
|
+
window.history.pushState(historyState, "", path);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
function runRouteGuards(match2) {
|
|
194
|
+
const guards = match2.route.guards ?? [];
|
|
195
|
+
for (const guard of guards) {
|
|
196
|
+
const result = guard({ match: match2, params: match2.params }) ?? CONTINUE_NAVIGATION;
|
|
197
|
+
if (result.type !== "continue") {
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return CONTINUE_NAVIGATION;
|
|
202
|
+
}
|
|
203
|
+
function createGuardErrorInfo(match2) {
|
|
204
|
+
return {
|
|
205
|
+
phase: "navigation",
|
|
206
|
+
componentName: match2.boundary.definition.componentName,
|
|
207
|
+
componentInstanceId: match2.boundary.id,
|
|
208
|
+
templateId: match2.boundary.definition.templateId,
|
|
209
|
+
attributes: {
|
|
210
|
+
routeId: match2.route.id ?? match2.fullPath,
|
|
211
|
+
fullPath: match2.fullPath
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
return {
|
|
216
|
+
currentPath,
|
|
217
|
+
currentMatch: currentMatchSignal,
|
|
218
|
+
navigate,
|
|
219
|
+
match,
|
|
220
|
+
start,
|
|
221
|
+
dispose
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function normalizeRouterOptions(input) {
|
|
225
|
+
if (Array.isArray(input)) {
|
|
226
|
+
return { routes: input };
|
|
227
|
+
}
|
|
228
|
+
return input;
|
|
229
|
+
}
|
|
230
|
+
function normalizeFallbackRoute(route, fallbackId, fallbackPath) {
|
|
231
|
+
if (!route) {
|
|
232
|
+
return void 0;
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
...route,
|
|
236
|
+
id: route.id ?? fallbackId,
|
|
237
|
+
path: route.path ?? fallbackPath
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
async function runRouteLoader(match, args) {
|
|
241
|
+
const result = await executeRouteHandler("loader", match.route.loader, match, args);
|
|
242
|
+
updateRouteDataCache(match, result);
|
|
243
|
+
return result;
|
|
244
|
+
}
|
|
245
|
+
async function runRouteAction(match, args) {
|
|
246
|
+
const result = await executeRouteHandler("action", match.route.action, match, args);
|
|
247
|
+
updateRouteDataCache(match, result);
|
|
248
|
+
return result;
|
|
249
|
+
}
|
|
250
|
+
async function prefetchRoute(match, options) {
|
|
251
|
+
await Promise.resolve(match.route.component());
|
|
252
|
+
if (options?.loadData) {
|
|
253
|
+
await runRouteLoader(match, options.loaderArgs);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function normalizeBoundaryConfig(kind, config, context) {
|
|
257
|
+
const layoutSuffix = typeof context.layoutIndex === "number" ? `:${String(context.layoutIndex)}` : "";
|
|
258
|
+
const fallbackId = `${kind}:${context.routeId}${layoutSuffix}`;
|
|
259
|
+
const componentName = config?.componentName ?? config?.name ?? context.routeId;
|
|
260
|
+
const attributes = {
|
|
261
|
+
...config?.attributes ?? {},
|
|
262
|
+
routeId: context.routeId,
|
|
263
|
+
path: context.path,
|
|
264
|
+
layoutIndex: context.layoutIndex,
|
|
265
|
+
params: context.params ? { ...context.params } : void 0
|
|
266
|
+
};
|
|
267
|
+
return {
|
|
268
|
+
...config,
|
|
269
|
+
id: config?.id ?? fallbackId,
|
|
270
|
+
name: config?.name ?? componentName,
|
|
271
|
+
componentName,
|
|
272
|
+
attributes
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
function createRouterBoundaryState(kind, definition) {
|
|
276
|
+
const state = {
|
|
277
|
+
id: definition.id,
|
|
278
|
+
kind,
|
|
279
|
+
definition,
|
|
280
|
+
boundary: {
|
|
281
|
+
id: definition.id,
|
|
282
|
+
handle(error, info) {
|
|
283
|
+
state.error = error;
|
|
284
|
+
state.info = info;
|
|
285
|
+
if (definition.onError) {
|
|
286
|
+
try {
|
|
287
|
+
const handled = definition.onError(error, info);
|
|
288
|
+
if (handled === false) {
|
|
289
|
+
return false;
|
|
290
|
+
}
|
|
291
|
+
} catch (hookError) {
|
|
292
|
+
state.error = hookError instanceof Error ? hookError : new Error(String(hookError));
|
|
293
|
+
state.info = info;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return true;
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
error: null,
|
|
300
|
+
info: null,
|
|
301
|
+
reset() {
|
|
302
|
+
state.error = null;
|
|
303
|
+
state.info = null;
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
return state;
|
|
307
|
+
}
|
|
308
|
+
async function executeRouteHandler(kind, handler, match, args) {
|
|
309
|
+
const startedAt = Date.now();
|
|
310
|
+
if (!handler) {
|
|
311
|
+
return {
|
|
312
|
+
handled: true,
|
|
313
|
+
startedAt,
|
|
314
|
+
endedAt: startedAt,
|
|
315
|
+
durationMs: 0
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
const normalizedArgs = normalizeHandlerArgs(match, args);
|
|
319
|
+
const boundaries = [...match.layouts, match.boundary];
|
|
320
|
+
boundaries.forEach((boundary) => {
|
|
321
|
+
boundary.reset();
|
|
322
|
+
});
|
|
323
|
+
try {
|
|
324
|
+
const data = await runWithBoundaries(boundaries, () => invokeRouteHandler(handler, kind, match, normalizedArgs));
|
|
325
|
+
const boundaryError = firstErroredBoundary(boundaries);
|
|
326
|
+
const endedAt = Date.now();
|
|
327
|
+
if (boundaryError) {
|
|
328
|
+
return {
|
|
329
|
+
handled: true,
|
|
330
|
+
error: boundaryError.error ?? void 0,
|
|
331
|
+
info: boundaryError.info ?? null,
|
|
332
|
+
startedAt,
|
|
333
|
+
endedAt,
|
|
334
|
+
durationMs: endedAt - startedAt
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
return {
|
|
338
|
+
handled: true,
|
|
339
|
+
data,
|
|
340
|
+
info: null,
|
|
341
|
+
startedAt,
|
|
342
|
+
endedAt,
|
|
343
|
+
durationMs: endedAt - startedAt
|
|
344
|
+
};
|
|
345
|
+
} catch (error) {
|
|
346
|
+
const normalized = error instanceof Error ? error : new Error(String(error));
|
|
347
|
+
const endedAt = Date.now();
|
|
348
|
+
return {
|
|
349
|
+
handled: false,
|
|
350
|
+
error: normalized,
|
|
351
|
+
info: null,
|
|
352
|
+
startedAt,
|
|
353
|
+
endedAt,
|
|
354
|
+
durationMs: endedAt - startedAt
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function normalizeHandlerArgs(match, args) {
|
|
359
|
+
return {
|
|
360
|
+
params: args?.params ?? match.params,
|
|
361
|
+
request: args?.request,
|
|
362
|
+
signal: args?.signal,
|
|
363
|
+
context: args?.context
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
function runWithBoundaries(boundaries, run) {
|
|
367
|
+
return boundaries.reduceRight((next, boundary) => {
|
|
368
|
+
return () => chunkKPG5HAHK_cjs.withRuntimeErrorBoundary(boundary.boundary, next);
|
|
369
|
+
}, run)();
|
|
370
|
+
}
|
|
371
|
+
function invokeRouteHandler(handler, kind, match, args) {
|
|
372
|
+
const phase = kind === "loader" ? "loader" : "action";
|
|
373
|
+
const info = createHandlerErrorInfo(phase, match, args);
|
|
374
|
+
try {
|
|
375
|
+
const result = handler(args);
|
|
376
|
+
if (isPromiseLike(result)) {
|
|
377
|
+
return result.catch((error) => {
|
|
378
|
+
const handled = chunkKPG5HAHK_cjs.captureRuntimeError(error, info);
|
|
379
|
+
if (!handled) {
|
|
380
|
+
throw error;
|
|
381
|
+
}
|
|
382
|
+
return void 0;
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
return result;
|
|
386
|
+
} catch (error) {
|
|
387
|
+
const handled = chunkKPG5HAHK_cjs.captureRuntimeError(error, info);
|
|
388
|
+
if (!handled) {
|
|
389
|
+
throw error;
|
|
390
|
+
}
|
|
391
|
+
return void 0;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
function createHandlerErrorInfo(phase, match, args) {
|
|
395
|
+
const attributes = {
|
|
396
|
+
...match.boundary.definition.attributes,
|
|
397
|
+
params: args.params,
|
|
398
|
+
requestMethod: args.request?.method,
|
|
399
|
+
layoutStack: match.layouts.map((layout) => layout.definition.id)
|
|
400
|
+
};
|
|
401
|
+
return {
|
|
402
|
+
phase,
|
|
403
|
+
componentName: match.boundary.definition.componentName,
|
|
404
|
+
componentInstanceId: match.boundary.id,
|
|
405
|
+
templateId: match.boundary.definition.templateId,
|
|
406
|
+
attributes
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
function firstErroredBoundary(boundaries) {
|
|
410
|
+
for (let i = boundaries.length - 1; i >= 0; i -= 1) {
|
|
411
|
+
if (boundaries[i].error) {
|
|
412
|
+
return boundaries[i];
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return void 0;
|
|
416
|
+
}
|
|
417
|
+
function isPromiseLike(value) {
|
|
418
|
+
return Boolean(value) && typeof value === "object" && "then" in value;
|
|
419
|
+
}
|
|
420
|
+
function updateRouteDataCache(match, result) {
|
|
421
|
+
if (result.handled) {
|
|
422
|
+
chunkEFOOXCY7_cjs.cacheRouteDataResult(match, result);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
chunkEFOOXCY7_cjs.clearRouteDataResult(match);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// src/runtime/router-provider.js
|
|
429
|
+
function renderRouterApp(component, options) {
|
|
430
|
+
return chunkW3LNNY3U_cjs.renderComponent(component, options);
|
|
431
|
+
}
|
|
432
|
+
function createHttpApp() {
|
|
433
|
+
const middlewares = [];
|
|
434
|
+
const runMiddlewares = async (ctx, index = 0) => {
|
|
435
|
+
if (index >= middlewares.length) {
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
const next = () => {
|
|
439
|
+
return runMiddlewares(ctx, index + 1);
|
|
440
|
+
};
|
|
441
|
+
await middlewares[index](ctx, next);
|
|
442
|
+
};
|
|
443
|
+
return {
|
|
444
|
+
use(middleware) {
|
|
445
|
+
middlewares.push(middleware);
|
|
446
|
+
return this;
|
|
447
|
+
},
|
|
448
|
+
handle(req, res) {
|
|
449
|
+
const host = req.headers.host ?? "localhost";
|
|
450
|
+
const url$1 = new url.URL(req.url ?? "/", `http://${host}`);
|
|
451
|
+
const ctx = { req, res, url: url$1, state: {} };
|
|
452
|
+
runMiddlewares(ctx).catch((err) => {
|
|
453
|
+
res.statusCode = 500;
|
|
454
|
+
res.end(err instanceof Error ? err.message : "Unknown error");
|
|
455
|
+
});
|
|
456
|
+
},
|
|
457
|
+
listen(port) {
|
|
458
|
+
const server = http__default.default.createServer((req, res) => this.handle(req, res));
|
|
459
|
+
return new Promise((resolve) => {
|
|
460
|
+
server.listen(port, () => resolve(server));
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
function json(handler) {
|
|
466
|
+
return async (ctx, next) => {
|
|
467
|
+
if (ctx.req.method === "GET") {
|
|
468
|
+
ctx.data = await handler(ctx);
|
|
469
|
+
ctx.res.setHeader("Content-Type", "application/json");
|
|
470
|
+
ctx.res.end(JSON.stringify(ctx.data));
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
await next();
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
function serveStatic(root) {
|
|
477
|
+
return async (ctx, next) => {
|
|
478
|
+
if (ctx.req.method !== "GET") {
|
|
479
|
+
await next();
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
const host = ctx.req.headers.host ?? "localhost";
|
|
483
|
+
const path = new url.URL(ctx.req.url ?? "/", `http://${host}`).pathname;
|
|
484
|
+
const filePath = new url.URL(path === "/" ? "/index.html" : path, `file://${root}`);
|
|
485
|
+
try {
|
|
486
|
+
const data = await fs.promises.readFile(filePath);
|
|
487
|
+
ctx.res.end(data);
|
|
488
|
+
} catch (error) {
|
|
489
|
+
if (error.code === "ENOENT") {
|
|
490
|
+
await next();
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
throw error;
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// src/runtime/ssr-app.js
|
|
499
|
+
var DEFAULT_TEMPLATE = "<!doctype html><html><head><!--ce-ui-head--><!--ce-ui-assets--></head><body><!--ce-ui-app--></body></html>";
|
|
500
|
+
function renderAssetTags(manifest) {
|
|
501
|
+
if (!manifest) {
|
|
502
|
+
return "";
|
|
503
|
+
}
|
|
504
|
+
const styles = (manifest.styles ?? []).map((href) => `<link rel="stylesheet" href="${href}">`).join("");
|
|
505
|
+
const preloads = (manifest.preloads ?? []).map((href) => `<link rel="preload" href="${href}" as="script">`).join("");
|
|
506
|
+
const scripts = (manifest.scripts ?? []).map((src) => `<script type="module" src="${src}"></script>`).join("");
|
|
507
|
+
const hydrate = (manifest.hydrate ?? []).map((src) => `<script type="module" data-ce-hydrate src="${src}"></script>`).join("");
|
|
508
|
+
return `${preloads}${styles}${scripts}${hydrate}`;
|
|
509
|
+
}
|
|
510
|
+
function renderHtmlDocument(options) {
|
|
511
|
+
const template = options.template ?? DEFAULT_TEMPLATE;
|
|
512
|
+
const head = options.head ?? "";
|
|
513
|
+
const assets = renderAssetTags(options.manifest);
|
|
514
|
+
const htmlAttrs = options.htmlAttributes ? ` ${options.htmlAttributes}` : "";
|
|
515
|
+
const bodyAttrs = options.bodyAttributes ? ` ${options.bodyAttributes}` : "";
|
|
516
|
+
return applyTemplate(template, {
|
|
517
|
+
head,
|
|
518
|
+
assets,
|
|
519
|
+
body: options.body,
|
|
520
|
+
htmlAttributes: htmlAttrs,
|
|
521
|
+
bodyAttributes: bodyAttrs
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
function isAsyncIterable(value) {
|
|
525
|
+
return Boolean(value) && typeof value === "object" && Symbol.asyncIterator in value;
|
|
526
|
+
}
|
|
527
|
+
function createNodeSsrMiddleware(options) {
|
|
528
|
+
return async (ctx, next) => {
|
|
529
|
+
if (ctx.req.method !== "GET") {
|
|
530
|
+
await next();
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
const bodyResult = await options.render(ctx);
|
|
534
|
+
ctx.res.statusCode = options.status ?? 200;
|
|
535
|
+
ctx.res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
536
|
+
if (options.headers) {
|
|
537
|
+
Object.entries(options.headers).forEach(([key, value]) => ctx.res.setHeader(key, value));
|
|
538
|
+
}
|
|
539
|
+
if (isAsyncIterable(bodyResult)) {
|
|
540
|
+
const shell = renderHtmlShell({
|
|
541
|
+
template: options.template,
|
|
542
|
+
head: options.head,
|
|
543
|
+
manifest: options.manifest
|
|
544
|
+
});
|
|
545
|
+
ctx.res.write(shell.start);
|
|
546
|
+
for await (const chunk of bodyResult) {
|
|
547
|
+
ctx.res.write(chunk);
|
|
548
|
+
}
|
|
549
|
+
ctx.res.end(shell.end);
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
const html = renderHtmlDocument({
|
|
553
|
+
template: options.template,
|
|
554
|
+
head: options.head,
|
|
555
|
+
body: bodyResult,
|
|
556
|
+
manifest: options.manifest
|
|
557
|
+
});
|
|
558
|
+
ctx.res.end(html);
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
function createEdgeSsrHandler(options) {
|
|
562
|
+
return async (request) => {
|
|
563
|
+
const url = new URL(request.url);
|
|
564
|
+
const bodyResult = await options.render({ request, url });
|
|
565
|
+
const headers = new Headers(options.headers);
|
|
566
|
+
if (!headers.has("Content-Type")) {
|
|
567
|
+
headers.set("Content-Type", "text/html; charset=utf-8");
|
|
568
|
+
}
|
|
569
|
+
if (isAsyncIterable(bodyResult)) {
|
|
570
|
+
const shell = renderHtmlShell({
|
|
571
|
+
template: options.template,
|
|
572
|
+
head: options.head,
|
|
573
|
+
manifest: options.manifest
|
|
574
|
+
});
|
|
575
|
+
const encoder = new TextEncoder();
|
|
576
|
+
const stream = new ReadableStream({
|
|
577
|
+
async start(controller) {
|
|
578
|
+
controller.enqueue(encoder.encode(shell.start));
|
|
579
|
+
for await (const chunk of bodyResult) {
|
|
580
|
+
controller.enqueue(encoder.encode(chunk));
|
|
581
|
+
}
|
|
582
|
+
controller.enqueue(encoder.encode(shell.end));
|
|
583
|
+
controller.close();
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
return new Response(stream, { status: options.status ?? 200, headers });
|
|
587
|
+
}
|
|
588
|
+
const html = renderHtmlDocument({
|
|
589
|
+
template: options.template,
|
|
590
|
+
head: options.head,
|
|
591
|
+
body: bodyResult,
|
|
592
|
+
manifest: options.manifest
|
|
593
|
+
});
|
|
594
|
+
return new Response(html, { status: options.status ?? 200, headers });
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
function renderHtmlShell(options) {
|
|
598
|
+
const template = options.template ?? DEFAULT_TEMPLATE;
|
|
599
|
+
const head = options.head ?? "";
|
|
600
|
+
const assets = renderAssetTags(options.manifest);
|
|
601
|
+
const resolved = applyTemplate(template, {
|
|
602
|
+
head,
|
|
603
|
+
assets,
|
|
604
|
+
body: "<!--ce-ui-app-->",
|
|
605
|
+
htmlAttributes: "",
|
|
606
|
+
bodyAttributes: ""
|
|
607
|
+
});
|
|
608
|
+
const marker = "<!--ce-ui-app-->";
|
|
609
|
+
const index = resolved.indexOf(marker);
|
|
610
|
+
if (index === -1) {
|
|
611
|
+
return { start: resolved, end: "" };
|
|
612
|
+
}
|
|
613
|
+
return {
|
|
614
|
+
start: resolved.slice(0, index),
|
|
615
|
+
end: resolved.slice(index + marker.length)
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
function applyTemplate(template, payload) {
|
|
619
|
+
if (template.includes("<html") || template.includes("<body")) {
|
|
620
|
+
return template.replace("<html", `<html${payload.htmlAttributes}`).replace("<body", `<body${payload.bodyAttributes}`).replace("<!--ce-ui-head-->", payload.head).replace("<!--ce-ui-assets-->", payload.assets).replace("<!--ce-ui-app-->", payload.body);
|
|
621
|
+
}
|
|
622
|
+
return template.replace("<!--ce-ui-head-->", payload.head).replace("<!--ce-ui-assets-->", payload.assets).replace("<!--ce-ui-app-->", payload.body);
|
|
623
|
+
}
|
|
624
|
+
function useErrorBoundary(handler) {
|
|
625
|
+
{
|
|
626
|
+
throw new Error("useErrorBoundary() can only be used while executing a component setup function.");
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// src/runtime/error-boundary.ts
|
|
631
|
+
var ErrorBoundary = chunkW3LNNY3U_cjs.defineComponent({
|
|
632
|
+
name: "ErrorBoundary",
|
|
633
|
+
template: `
|
|
634
|
+
<div ce:if="!hasError()" class="ce-error-boundary__content">
|
|
635
|
+
<slot></slot>
|
|
636
|
+
</div>
|
|
637
|
+
<div ce:if="hasError()" class="ce-error-boundary__fallback">
|
|
638
|
+
<slot name="fallback">
|
|
639
|
+
<section class="ce-error-boundary__panel">
|
|
640
|
+
<p class="ce-error-boundary__title">Something went wrong.</p>
|
|
641
|
+
<pre>{{ errorMessage() }}</pre>
|
|
642
|
+
<button type="button" on:click="reset" class="ce-error-boundary__reset">Try again</button>
|
|
643
|
+
</section>
|
|
644
|
+
</slot>
|
|
645
|
+
</div>
|
|
646
|
+
`,
|
|
647
|
+
styles: [
|
|
648
|
+
`.ce-error-boundary__fallback {
|
|
649
|
+
display: block;
|
|
650
|
+
}
|
|
651
|
+
.ce-error-boundary__panel {
|
|
652
|
+
border: 1px dashed var(--ce-border, #f87171);
|
|
653
|
+
padding: 1rem;
|
|
654
|
+
border-radius: 0.75rem;
|
|
655
|
+
background: rgba(248, 113, 113, 0.08);
|
|
656
|
+
color: inherit;
|
|
657
|
+
}
|
|
658
|
+
.ce-error-boundary__title {
|
|
659
|
+
font-weight: 600;
|
|
660
|
+
margin: 0 0 0.5rem;
|
|
661
|
+
}
|
|
662
|
+
.ce-error-boundary__panel pre {
|
|
663
|
+
margin: 0 0 0.75rem;
|
|
664
|
+
padding: 0.5rem;
|
|
665
|
+
background: rgba(15, 23, 42, 0.65);
|
|
666
|
+
border-radius: 0.5rem;
|
|
667
|
+
font-size: 0.85rem;
|
|
668
|
+
line-height: 1.4;
|
|
669
|
+
white-space: pre-wrap;
|
|
670
|
+
}
|
|
671
|
+
.ce-error-boundary__reset {
|
|
672
|
+
display: inline-flex;
|
|
673
|
+
align-items: center;
|
|
674
|
+
padding: 0.35rem 0.75rem;
|
|
675
|
+
border-radius: 0.5rem;
|
|
676
|
+
border: 0;
|
|
677
|
+
cursor: pointer;
|
|
678
|
+
background: var(--ce-primary, #2563eb);
|
|
679
|
+
color: var(--ce-on-primary, #f8fafc);
|
|
680
|
+
}`
|
|
681
|
+
],
|
|
682
|
+
setup({ props, emit }) {
|
|
683
|
+
const boundary = useErrorBoundary();
|
|
684
|
+
const hasError = () => Boolean(boundary.error());
|
|
685
|
+
const errorMessage = () => boundary.error()?.message ?? "Unknown error";
|
|
686
|
+
const reset = () => {
|
|
687
|
+
boundary.reset();
|
|
688
|
+
};
|
|
689
|
+
return {
|
|
690
|
+
hasError,
|
|
691
|
+
error: boundary.error,
|
|
692
|
+
info: boundary.info,
|
|
693
|
+
errorMessage,
|
|
694
|
+
reset
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
|
|
699
|
+
// src/runtime/hydration-diagnostics.js
|
|
700
|
+
var inspectedTargets = /* @__PURE__ */ new WeakSet();
|
|
701
|
+
function ensureHydrationConsistency(target, context) {
|
|
702
|
+
if (typeof document === "undefined") {
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
if (inspectedTargets.has(target)) {
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
inspectedTargets.add(target);
|
|
709
|
+
if (!hasServerDom(target)) {
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
const serverDom = snapshotDom(target);
|
|
713
|
+
reportHydrationMismatch({
|
|
714
|
+
templateId: context.templateId,
|
|
715
|
+
componentName: context.componentName,
|
|
716
|
+
componentInstanceId: context.componentInstanceId,
|
|
717
|
+
reason: "Detected existing server-rendered DOM before client render. Hydration support is not enabled yet.",
|
|
718
|
+
receivedDom: serverDom,
|
|
719
|
+
attributes: {
|
|
720
|
+
serverDomLength: serverDom.length
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
clearNode(target);
|
|
724
|
+
}
|
|
725
|
+
function reportHydrationMismatch(details) {
|
|
726
|
+
const error = new Error(`[hydration] ${details.reason}`);
|
|
727
|
+
const info = {
|
|
728
|
+
phase: "hydration",
|
|
729
|
+
componentName: details.componentName,
|
|
730
|
+
componentInstanceId: details.componentInstanceId,
|
|
731
|
+
templateId: details.templateId,
|
|
732
|
+
attributes: {
|
|
733
|
+
...details.attributes ?? {},
|
|
734
|
+
expectedDom: details.expectedDom,
|
|
735
|
+
receivedDom: details.receivedDom,
|
|
736
|
+
timestamp: Date.now()
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
chunkZWUA2LPB_cjs.emitRuntimeErrorReport({
|
|
740
|
+
error,
|
|
741
|
+
info,
|
|
742
|
+
handled: true
|
|
743
|
+
});
|
|
744
|
+
if (typeof console !== "undefined") {
|
|
745
|
+
console.warn("[ce-ui] hydration mismatch detected", {
|
|
746
|
+
reason: details.reason,
|
|
747
|
+
templateId: details.templateId,
|
|
748
|
+
componentName: details.componentName
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
function snapshotDom(node) {
|
|
753
|
+
if (node instanceof Element) {
|
|
754
|
+
return node.innerHTML;
|
|
755
|
+
}
|
|
756
|
+
if (node instanceof DocumentFragment) {
|
|
757
|
+
const div = document.createElement("div");
|
|
758
|
+
div.appendChild(node.cloneNode(true));
|
|
759
|
+
return div.innerHTML;
|
|
760
|
+
}
|
|
761
|
+
return node.textContent ?? "";
|
|
762
|
+
}
|
|
763
|
+
function hasServerDom(target) {
|
|
764
|
+
return "childNodes" in target && target.childNodes.length > 0;
|
|
765
|
+
}
|
|
766
|
+
function clearNode(target) {
|
|
767
|
+
while (target.firstChild) {
|
|
768
|
+
target.removeChild(target.firstChild);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
Object.defineProperty(exports, "ConsoleLogger", {
|
|
773
|
+
enumerable: true,
|
|
774
|
+
get: function () { return chunkFNXIYAET_cjs.ConsoleLogger; }
|
|
775
|
+
});
|
|
776
|
+
Object.defineProperty(exports, "ConsoleWorkflowLogger", {
|
|
777
|
+
enumerable: true,
|
|
778
|
+
get: function () { return chunkFNXIYAET_cjs.ConsoleWorkflowLogger; }
|
|
779
|
+
});
|
|
780
|
+
Object.defineProperty(exports, "ConsoleWorkflowTraceSink", {
|
|
781
|
+
enumerable: true,
|
|
782
|
+
get: function () { return chunkFNXIYAET_cjs.ConsoleWorkflowTraceSink; }
|
|
783
|
+
});
|
|
784
|
+
Object.defineProperty(exports, "DATABASE_TASK", {
|
|
785
|
+
enumerable: true,
|
|
786
|
+
get: function () { return chunkFNXIYAET_cjs.DATABASE_TASK; }
|
|
787
|
+
});
|
|
788
|
+
Object.defineProperty(exports, "DELAY_TASK", {
|
|
789
|
+
enumerable: true,
|
|
790
|
+
get: function () { return chunkFNXIYAET_cjs.DELAY_TASK; }
|
|
791
|
+
});
|
|
792
|
+
Object.defineProperty(exports, "DatabaseWorkflowStore", {
|
|
793
|
+
enumerable: true,
|
|
794
|
+
get: function () { return chunkFNXIYAET_cjs.DatabaseWorkflowStore; }
|
|
795
|
+
});
|
|
796
|
+
Object.defineProperty(exports, "DefaultApprovalResolver", {
|
|
797
|
+
enumerable: true,
|
|
798
|
+
get: function () { return chunkFNXIYAET_cjs.DefaultApprovalResolver; }
|
|
799
|
+
});
|
|
800
|
+
Object.defineProperty(exports, "DefaultBackgroundRunner", {
|
|
801
|
+
enumerable: true,
|
|
802
|
+
get: function () { return chunkFNXIYAET_cjs.DefaultBackgroundRunner; }
|
|
803
|
+
});
|
|
804
|
+
Object.defineProperty(exports, "FileWorkflowTraceSink", {
|
|
805
|
+
enumerable: true,
|
|
806
|
+
get: function () { return chunkFNXIYAET_cjs.FileWorkflowTraceSink; }
|
|
807
|
+
});
|
|
808
|
+
Object.defineProperty(exports, "FunctionalDatabaseProvider", {
|
|
809
|
+
enumerable: true,
|
|
810
|
+
get: function () { return chunkFNXIYAET_cjs.FunctionalDatabaseProvider; }
|
|
811
|
+
});
|
|
812
|
+
Object.defineProperty(exports, "HTTP_TASK", {
|
|
813
|
+
enumerable: true,
|
|
814
|
+
get: function () { return chunkFNXIYAET_cjs.HTTP_TASK; }
|
|
815
|
+
});
|
|
816
|
+
Object.defineProperty(exports, "InMemoryDatabaseRegistry", {
|
|
817
|
+
enumerable: true,
|
|
818
|
+
get: function () { return chunkFNXIYAET_cjs.InMemoryDatabaseRegistry; }
|
|
819
|
+
});
|
|
820
|
+
Object.defineProperty(exports, "InMemorySchedulerService", {
|
|
821
|
+
enumerable: true,
|
|
822
|
+
get: function () { return chunkFNXIYAET_cjs.InMemorySchedulerService; }
|
|
823
|
+
});
|
|
824
|
+
Object.defineProperty(exports, "InMemoryWorkflowStore", {
|
|
825
|
+
enumerable: true,
|
|
826
|
+
get: function () { return chunkFNXIYAET_cjs.InMemoryWorkflowStore; }
|
|
827
|
+
});
|
|
828
|
+
Object.defineProperty(exports, "ManualOverrideApprovalResolver", {
|
|
829
|
+
enumerable: true,
|
|
830
|
+
get: function () { return chunkFNXIYAET_cjs.ManualOverrideApprovalResolver; }
|
|
831
|
+
});
|
|
832
|
+
Object.defineProperty(exports, "MetricsConsoleEmitter", {
|
|
833
|
+
enumerable: true,
|
|
834
|
+
get: function () { return chunkFNXIYAET_cjs.MetricsConsoleEmitter; }
|
|
835
|
+
});
|
|
836
|
+
Object.defineProperty(exports, "MongoWorkflowStore", {
|
|
837
|
+
enumerable: true,
|
|
838
|
+
get: function () { return chunkFNXIYAET_cjs.MongoWorkflowStore; }
|
|
839
|
+
});
|
|
840
|
+
Object.defineProperty(exports, "NoopWorkflowTraceSink", {
|
|
841
|
+
enumerable: true,
|
|
842
|
+
get: function () { return chunkFNXIYAET_cjs.NoopWorkflowTraceSink; }
|
|
843
|
+
});
|
|
844
|
+
Object.defineProperty(exports, "PolicyApprovalResolver", {
|
|
845
|
+
enumerable: true,
|
|
846
|
+
get: function () { return chunkFNXIYAET_cjs.PolicyApprovalResolver; }
|
|
847
|
+
});
|
|
848
|
+
Object.defineProperty(exports, "QueueBackgroundRunner", {
|
|
849
|
+
enumerable: true,
|
|
850
|
+
get: function () { return chunkFNXIYAET_cjs.QueueBackgroundRunner; }
|
|
851
|
+
});
|
|
852
|
+
Object.defineProperty(exports, "RecordingWorkflowTraceSink", {
|
|
853
|
+
enumerable: true,
|
|
854
|
+
get: function () { return chunkFNXIYAET_cjs.RecordingWorkflowTraceSink; }
|
|
855
|
+
});
|
|
856
|
+
Object.defineProperty(exports, "RuleBasedPolicyEngine", {
|
|
857
|
+
enumerable: true,
|
|
858
|
+
get: function () { return chunkFNXIYAET_cjs.RuleBasedPolicyEngine; }
|
|
859
|
+
});
|
|
860
|
+
Object.defineProperty(exports, "SCHEDULE_TASK", {
|
|
861
|
+
enumerable: true,
|
|
862
|
+
get: function () { return chunkFNXIYAET_cjs.SCHEDULE_TASK; }
|
|
863
|
+
});
|
|
864
|
+
Object.defineProperty(exports, "SystemTimeService", {
|
|
865
|
+
enumerable: true,
|
|
866
|
+
get: function () { return chunkFNXIYAET_cjs.SystemTimeService; }
|
|
867
|
+
});
|
|
868
|
+
Object.defineProperty(exports, "WorkflowBuilder", {
|
|
869
|
+
enumerable: true,
|
|
870
|
+
get: function () { return chunkFNXIYAET_cjs.WorkflowBuilder; }
|
|
871
|
+
});
|
|
872
|
+
Object.defineProperty(exports, "WorkflowRuntime", {
|
|
873
|
+
enumerable: true,
|
|
874
|
+
get: function () { return chunkFNXIYAET_cjs.WorkflowRuntime; }
|
|
875
|
+
});
|
|
876
|
+
Object.defineProperty(exports, "WorkflowStepBuilder", {
|
|
877
|
+
enumerable: true,
|
|
878
|
+
get: function () { return chunkFNXIYAET_cjs.WorkflowStepBuilder; }
|
|
879
|
+
});
|
|
880
|
+
Object.defineProperty(exports, "WorkflowTraceExporterSink", {
|
|
881
|
+
enumerable: true,
|
|
882
|
+
get: function () { return chunkFNXIYAET_cjs.WorkflowTraceExporterSink; }
|
|
883
|
+
});
|
|
884
|
+
Object.defineProperty(exports, "actorFromAuth0Claims", {
|
|
885
|
+
enumerable: true,
|
|
886
|
+
get: function () { return chunkFNXIYAET_cjs.actorFromAuth0Claims; }
|
|
887
|
+
});
|
|
888
|
+
Object.defineProperty(exports, "actorFromAzureAdClaims", {
|
|
889
|
+
enumerable: true,
|
|
890
|
+
get: function () { return chunkFNXIYAET_cjs.actorFromAzureAdClaims; }
|
|
891
|
+
});
|
|
892
|
+
Object.defineProperty(exports, "actorFromCognitoClaims", {
|
|
893
|
+
enumerable: true,
|
|
894
|
+
get: function () { return chunkFNXIYAET_cjs.actorFromCognitoClaims; }
|
|
895
|
+
});
|
|
896
|
+
Object.defineProperty(exports, "actorFromOidcClaims", {
|
|
897
|
+
enumerable: true,
|
|
898
|
+
get: function () { return chunkFNXIYAET_cjs.actorFromOidcClaims; }
|
|
899
|
+
});
|
|
900
|
+
Object.defineProperty(exports, "buildPolicyRequest", {
|
|
901
|
+
enumerable: true,
|
|
902
|
+
get: function () { return chunkFNXIYAET_cjs.buildPolicyRequest; }
|
|
903
|
+
});
|
|
904
|
+
Object.defineProperty(exports, "createAzureQueueDriver", {
|
|
905
|
+
enumerable: true,
|
|
906
|
+
get: function () { return chunkFNXIYAET_cjs.createAzureQueueDriver; }
|
|
907
|
+
});
|
|
908
|
+
Object.defineProperty(exports, "createBullMqDriver", {
|
|
909
|
+
enumerable: true,
|
|
910
|
+
get: function () { return chunkFNXIYAET_cjs.createBullMqDriver; }
|
|
911
|
+
});
|
|
912
|
+
Object.defineProperty(exports, "createDatabaseTaskHandler", {
|
|
913
|
+
enumerable: true,
|
|
914
|
+
get: function () { return chunkFNXIYAET_cjs.createDatabaseTaskHandler; }
|
|
915
|
+
});
|
|
916
|
+
Object.defineProperty(exports, "createDefaultTaskMap", {
|
|
917
|
+
enumerable: true,
|
|
918
|
+
get: function () { return chunkFNXIYAET_cjs.createDefaultTaskMap; }
|
|
919
|
+
});
|
|
920
|
+
Object.defineProperty(exports, "createDelayTaskHandler", {
|
|
921
|
+
enumerable: true,
|
|
922
|
+
get: function () { return chunkFNXIYAET_cjs.createDelayTaskHandler; }
|
|
923
|
+
});
|
|
924
|
+
Object.defineProperty(exports, "createDrizzleProvider", {
|
|
925
|
+
enumerable: true,
|
|
926
|
+
get: function () { return chunkFNXIYAET_cjs.createDrizzleProvider; }
|
|
927
|
+
});
|
|
928
|
+
Object.defineProperty(exports, "createFetchHttpExecutor", {
|
|
929
|
+
enumerable: true,
|
|
930
|
+
get: function () { return chunkFNXIYAET_cjs.createFetchHttpExecutor; }
|
|
931
|
+
});
|
|
932
|
+
Object.defineProperty(exports, "createHttpTaskHandler", {
|
|
933
|
+
enumerable: true,
|
|
934
|
+
get: function () { return chunkFNXIYAET_cjs.createHttpTaskHandler; }
|
|
935
|
+
});
|
|
936
|
+
Object.defineProperty(exports, "createMongoProvider", {
|
|
937
|
+
enumerable: true,
|
|
938
|
+
get: function () { return chunkFNXIYAET_cjs.createMongoProvider; }
|
|
939
|
+
});
|
|
940
|
+
Object.defineProperty(exports, "createMySqlProvider", {
|
|
941
|
+
enumerable: true,
|
|
942
|
+
get: function () { return chunkFNXIYAET_cjs.createMySqlProvider; }
|
|
943
|
+
});
|
|
944
|
+
Object.defineProperty(exports, "createPostgresProvider", {
|
|
945
|
+
enumerable: true,
|
|
946
|
+
get: function () { return chunkFNXIYAET_cjs.createPostgresProvider; }
|
|
947
|
+
});
|
|
948
|
+
Object.defineProperty(exports, "createPrismaProvider", {
|
|
949
|
+
enumerable: true,
|
|
950
|
+
get: function () { return chunkFNXIYAET_cjs.createPrismaProvider; }
|
|
951
|
+
});
|
|
952
|
+
Object.defineProperty(exports, "createRestDatabaseProvider", {
|
|
953
|
+
enumerable: true,
|
|
954
|
+
get: function () { return chunkFNXIYAET_cjs.createRestDatabaseProvider; }
|
|
955
|
+
});
|
|
956
|
+
Object.defineProperty(exports, "createScheduleTaskHandler", {
|
|
957
|
+
enumerable: true,
|
|
958
|
+
get: function () { return chunkFNXIYAET_cjs.createScheduleTaskHandler; }
|
|
959
|
+
});
|
|
960
|
+
Object.defineProperty(exports, "createSqlDatabaseProvider", {
|
|
961
|
+
enumerable: true,
|
|
962
|
+
get: function () { return chunkFNXIYAET_cjs.createSqlDatabaseProvider; }
|
|
963
|
+
});
|
|
964
|
+
Object.defineProperty(exports, "createSqliteProvider", {
|
|
965
|
+
enumerable: true,
|
|
966
|
+
get: function () { return chunkFNXIYAET_cjs.createSqliteProvider; }
|
|
967
|
+
});
|
|
968
|
+
Object.defineProperty(exports, "createSqsDriver", {
|
|
969
|
+
enumerable: true,
|
|
970
|
+
get: function () { return chunkFNXIYAET_cjs.createSqsDriver; }
|
|
971
|
+
});
|
|
972
|
+
Object.defineProperty(exports, "createStartWorkflowMiddleware", {
|
|
973
|
+
enumerable: true,
|
|
974
|
+
get: function () { return chunkFNXIYAET_cjs.createStartWorkflowMiddleware; }
|
|
975
|
+
});
|
|
976
|
+
Object.defineProperty(exports, "createStepMiddleware", {
|
|
977
|
+
enumerable: true,
|
|
978
|
+
get: function () { return chunkFNXIYAET_cjs.createStepMiddleware; }
|
|
979
|
+
});
|
|
980
|
+
Object.defineProperty(exports, "createSupabaseProvider", {
|
|
981
|
+
enumerable: true,
|
|
982
|
+
get: function () { return chunkFNXIYAET_cjs.createSupabaseProvider; }
|
|
983
|
+
});
|
|
984
|
+
Object.defineProperty(exports, "createWorkflow", {
|
|
985
|
+
enumerable: true,
|
|
986
|
+
get: function () { return chunkFNXIYAET_cjs.createWorkflow; }
|
|
987
|
+
});
|
|
988
|
+
Object.defineProperty(exports, "databaseTask", {
|
|
989
|
+
enumerable: true,
|
|
990
|
+
get: function () { return chunkFNXIYAET_cjs.databaseTask; }
|
|
991
|
+
});
|
|
992
|
+
Object.defineProperty(exports, "delayTask", {
|
|
993
|
+
enumerable: true,
|
|
994
|
+
get: function () { return chunkFNXIYAET_cjs.delayTask; }
|
|
995
|
+
});
|
|
996
|
+
Object.defineProperty(exports, "httpTask", {
|
|
997
|
+
enumerable: true,
|
|
998
|
+
get: function () { return chunkFNXIYAET_cjs.httpTask; }
|
|
999
|
+
});
|
|
1000
|
+
Object.defineProperty(exports, "multiStepApprovalResolver", {
|
|
1001
|
+
enumerable: true,
|
|
1002
|
+
get: function () { return chunkFNXIYAET_cjs.multiStepApprovalResolver; }
|
|
1003
|
+
});
|
|
1004
|
+
Object.defineProperty(exports, "registerDefaultDatabaseProviders", {
|
|
1005
|
+
enumerable: true,
|
|
1006
|
+
get: function () { return chunkFNXIYAET_cjs.registerDefaultDatabaseProviders; }
|
|
1007
|
+
});
|
|
1008
|
+
Object.defineProperty(exports, "requireActorRoles", {
|
|
1009
|
+
enumerable: true,
|
|
1010
|
+
get: function () { return chunkFNXIYAET_cjs.requireActorRoles; }
|
|
1011
|
+
});
|
|
1012
|
+
Object.defineProperty(exports, "requireActorScopes", {
|
|
1013
|
+
enumerable: true,
|
|
1014
|
+
get: function () { return chunkFNXIYAET_cjs.requireActorScopes; }
|
|
1015
|
+
});
|
|
1016
|
+
Object.defineProperty(exports, "runAuthMiddleware", {
|
|
1017
|
+
enumerable: true,
|
|
1018
|
+
get: function () { return chunkFNXIYAET_cjs.runAuthMiddleware; }
|
|
1019
|
+
});
|
|
1020
|
+
Object.defineProperty(exports, "scheduleTask", {
|
|
1021
|
+
enumerable: true,
|
|
1022
|
+
get: function () { return chunkFNXIYAET_cjs.scheduleTask; }
|
|
1023
|
+
});
|
|
1024
|
+
Object.defineProperty(exports, "task", {
|
|
1025
|
+
enumerable: true,
|
|
1026
|
+
get: function () { return chunkFNXIYAET_cjs.task; }
|
|
1027
|
+
});
|
|
1028
|
+
Object.defineProperty(exports, "visualSchemaToWorkflow", {
|
|
1029
|
+
enumerable: true,
|
|
1030
|
+
get: function () { return chunkFNXIYAET_cjs.visualSchemaToWorkflow; }
|
|
1031
|
+
});
|
|
1032
|
+
Object.defineProperty(exports, "workflowFromJson", {
|
|
1033
|
+
enumerable: true,
|
|
1034
|
+
get: function () { return chunkFNXIYAET_cjs.workflowFromJson; }
|
|
1035
|
+
});
|
|
1036
|
+
Object.defineProperty(exports, "workflowToVisualSchema", {
|
|
1037
|
+
enumerable: true,
|
|
1038
|
+
get: function () { return chunkFNXIYAET_cjs.workflowToVisualSchema; }
|
|
1039
|
+
});
|
|
1040
|
+
Object.defineProperty(exports, "buildHydrationDomDiff", {
|
|
1041
|
+
enumerable: true,
|
|
1042
|
+
get: function () { return chunkQPAAV32J_cjs.buildHydrationDomDiff; }
|
|
1043
|
+
});
|
|
1044
|
+
Object.defineProperty(exports, "buildHydrationSummary", {
|
|
1045
|
+
enumerable: true,
|
|
1046
|
+
get: function () { return chunkQPAAV32J_cjs.buildHydrationSummary; }
|
|
1047
|
+
});
|
|
1048
|
+
Object.defineProperty(exports, "buildRouteTree", {
|
|
1049
|
+
enumerable: true,
|
|
1050
|
+
get: function () { return chunkQPAAV32J_cjs.buildRouteTree; }
|
|
1051
|
+
});
|
|
1052
|
+
Object.defineProperty(exports, "buildSignalsGraph", {
|
|
1053
|
+
enumerable: true,
|
|
1054
|
+
get: function () { return chunkQPAAV32J_cjs.buildSignalsGraph; }
|
|
1055
|
+
});
|
|
1056
|
+
Object.defineProperty(exports, "calculateRetryDelay", {
|
|
1057
|
+
enumerable: true,
|
|
1058
|
+
get: function () { return chunkQPAAV32J_cjs.calculateRetryDelay; }
|
|
1059
|
+
});
|
|
1060
|
+
Object.defineProperty(exports, "classifyError", {
|
|
1061
|
+
enumerable: true,
|
|
1062
|
+
get: function () { return chunkQPAAV32J_cjs.classifyError; }
|
|
1063
|
+
});
|
|
1064
|
+
Object.defineProperty(exports, "createAiSession", {
|
|
1065
|
+
enumerable: true,
|
|
1066
|
+
get: function () { return chunkQPAAV32J_cjs.createAiSession; }
|
|
1067
|
+
});
|
|
1068
|
+
Object.defineProperty(exports, "createAngularAdapter", {
|
|
1069
|
+
enumerable: true,
|
|
1070
|
+
get: function () { return chunkQPAAV32J_cjs.createAngularAdapter; }
|
|
1071
|
+
});
|
|
1072
|
+
Object.defineProperty(exports, "createDevtoolsDashboard", {
|
|
1073
|
+
enumerable: true,
|
|
1074
|
+
get: function () { return chunkQPAAV32J_cjs.createDevtoolsDashboard; }
|
|
1075
|
+
});
|
|
1076
|
+
Object.defineProperty(exports, "createFormController", {
|
|
1077
|
+
enumerable: true,
|
|
1078
|
+
get: function () { return chunkQPAAV32J_cjs.createFormController; }
|
|
1079
|
+
});
|
|
1080
|
+
Object.defineProperty(exports, "createFormWizard", {
|
|
1081
|
+
enumerable: true,
|
|
1082
|
+
get: function () { return chunkQPAAV32J_cjs.createFormWizard; }
|
|
1083
|
+
});
|
|
1084
|
+
Object.defineProperty(exports, "createHttpAiProvider", {
|
|
1085
|
+
enumerable: true,
|
|
1086
|
+
get: function () { return chunkQPAAV32J_cjs.createHttpAiProvider; }
|
|
1087
|
+
});
|
|
1088
|
+
Object.defineProperty(exports, "createHydrationReplayPanel", {
|
|
1089
|
+
enumerable: true,
|
|
1090
|
+
get: function () { return chunkQPAAV32J_cjs.createHydrationReplayPanel; }
|
|
1091
|
+
});
|
|
1092
|
+
Object.defineProperty(exports, "createHydrationReplaySession", {
|
|
1093
|
+
enumerable: true,
|
|
1094
|
+
get: function () { return chunkQPAAV32J_cjs.createHydrationReplaySession; }
|
|
1095
|
+
});
|
|
1096
|
+
Object.defineProperty(exports, "createMockAiProvider", {
|
|
1097
|
+
enumerable: true,
|
|
1098
|
+
get: function () { return chunkQPAAV32J_cjs.createMockAiProvider; }
|
|
1099
|
+
});
|
|
1100
|
+
Object.defineProperty(exports, "createReactAdapter", {
|
|
1101
|
+
enumerable: true,
|
|
1102
|
+
get: function () { return chunkQPAAV32J_cjs.createReactAdapter; }
|
|
1103
|
+
});
|
|
1104
|
+
Object.defineProperty(exports, "createResource", {
|
|
1105
|
+
enumerable: true,
|
|
1106
|
+
get: function () { return chunkQPAAV32J_cjs.createResource; }
|
|
1107
|
+
});
|
|
1108
|
+
Object.defineProperty(exports, "createResourceCache", {
|
|
1109
|
+
enumerable: true,
|
|
1110
|
+
get: function () { return chunkQPAAV32J_cjs.createResourceCache; }
|
|
1111
|
+
});
|
|
1112
|
+
Object.defineProperty(exports, "createRouterInspector", {
|
|
1113
|
+
enumerable: true,
|
|
1114
|
+
get: function () { return chunkQPAAV32J_cjs.createRouterInspector; }
|
|
1115
|
+
});
|
|
1116
|
+
Object.defineProperty(exports, "createRouterInspectorPanel", {
|
|
1117
|
+
enumerable: true,
|
|
1118
|
+
get: function () { return chunkQPAAV32J_cjs.createRouterInspectorPanel; }
|
|
1119
|
+
});
|
|
1120
|
+
Object.defineProperty(exports, "createRuntimeDiagnosticsStore", {
|
|
1121
|
+
enumerable: true,
|
|
1122
|
+
get: function () { return chunkQPAAV32J_cjs.createRuntimeDiagnosticsStore; }
|
|
1123
|
+
});
|
|
1124
|
+
Object.defineProperty(exports, "createSignalsInspector", {
|
|
1125
|
+
enumerable: true,
|
|
1126
|
+
get: function () { return chunkQPAAV32J_cjs.createSignalsInspector; }
|
|
1127
|
+
});
|
|
1128
|
+
Object.defineProperty(exports, "createSignalsInspectorPanel", {
|
|
1129
|
+
enumerable: true,
|
|
1130
|
+
get: function () { return chunkQPAAV32J_cjs.createSignalsInspectorPanel; }
|
|
1131
|
+
});
|
|
1132
|
+
Object.defineProperty(exports, "createVueAdapter", {
|
|
1133
|
+
enumerable: true,
|
|
1134
|
+
get: function () { return chunkQPAAV32J_cjs.createVueAdapter; }
|
|
1135
|
+
});
|
|
1136
|
+
Object.defineProperty(exports, "getHydrationDomPayload", {
|
|
1137
|
+
enumerable: true,
|
|
1138
|
+
get: function () { return chunkQPAAV32J_cjs.getHydrationDomPayload; }
|
|
1139
|
+
});
|
|
1140
|
+
Object.defineProperty(exports, "getHydrationReports", {
|
|
1141
|
+
enumerable: true,
|
|
1142
|
+
get: function () { return chunkQPAAV32J_cjs.getHydrationReports; }
|
|
1143
|
+
});
|
|
1144
|
+
Object.defineProperty(exports, "getResourceCache", {
|
|
1145
|
+
enumerable: true,
|
|
1146
|
+
get: function () { return chunkQPAAV32J_cjs.getResourceCache; }
|
|
1147
|
+
});
|
|
1148
|
+
Object.defineProperty(exports, "invalidateResource", {
|
|
1149
|
+
enumerable: true,
|
|
1150
|
+
get: function () { return chunkQPAAV32J_cjs.invalidateResource; }
|
|
1151
|
+
});
|
|
1152
|
+
Object.defineProperty(exports, "isResourceExpired", {
|
|
1153
|
+
enumerable: true,
|
|
1154
|
+
get: function () { return chunkQPAAV32J_cjs.isResourceExpired; }
|
|
1155
|
+
});
|
|
1156
|
+
Object.defineProperty(exports, "isResourceStale", {
|
|
1157
|
+
enumerable: true,
|
|
1158
|
+
get: function () { return chunkQPAAV32J_cjs.isResourceStale; }
|
|
1159
|
+
});
|
|
1160
|
+
Object.defineProperty(exports, "normalizeResourceKey", {
|
|
1161
|
+
enumerable: true,
|
|
1162
|
+
get: function () { return chunkQPAAV32J_cjs.normalizeResourceKey; }
|
|
1163
|
+
});
|
|
1164
|
+
Object.defineProperty(exports, "AiAssistantPanel", {
|
|
1165
|
+
enumerable: true,
|
|
1166
|
+
get: function () { return chunk6BYWFGQY_cjs.AiAssistantPanel; }
|
|
1167
|
+
});
|
|
1168
|
+
Object.defineProperty(exports, "AiSummaryCard", {
|
|
1169
|
+
enumerable: true,
|
|
1170
|
+
get: function () { return chunkCXTAUXLG_cjs.AiSummaryCard; }
|
|
1171
|
+
});
|
|
1172
|
+
Object.defineProperty(exports, "Injector", {
|
|
1173
|
+
enumerable: true,
|
|
1174
|
+
get: function () { return chunkW3LNNY3U_cjs.Injector; }
|
|
1175
|
+
});
|
|
1176
|
+
Object.defineProperty(exports, "createInjector", {
|
|
1177
|
+
enumerable: true,
|
|
1178
|
+
get: function () { return chunkW3LNNY3U_cjs.createInjector; }
|
|
1179
|
+
});
|
|
1180
|
+
Object.defineProperty(exports, "defineComponent", {
|
|
1181
|
+
enumerable: true,
|
|
1182
|
+
get: function () { return chunkW3LNNY3U_cjs.defineComponent; }
|
|
1183
|
+
});
|
|
1184
|
+
Object.defineProperty(exports, "renderComponent", {
|
|
1185
|
+
enumerable: true,
|
|
1186
|
+
get: function () { return chunkW3LNNY3U_cjs.renderComponent; }
|
|
1187
|
+
});
|
|
1188
|
+
Object.defineProperty(exports, "renderTemplateToStream", {
|
|
1189
|
+
enumerable: true,
|
|
1190
|
+
get: function () { return chunkW3LNNY3U_cjs.renderTemplateToStream; }
|
|
1191
|
+
});
|
|
1192
|
+
Object.defineProperty(exports, "renderTemplateToString", {
|
|
1193
|
+
enumerable: true,
|
|
1194
|
+
get: function () { return chunkW3LNNY3U_cjs.renderTemplateToString; }
|
|
1195
|
+
});
|
|
1196
|
+
Object.defineProperty(exports, "useLocation", {
|
|
1197
|
+
enumerable: true,
|
|
1198
|
+
get: function () { return chunkW3LNNY3U_cjs.useLocation; }
|
|
1199
|
+
});
|
|
1200
|
+
Object.defineProperty(exports, "useNavigate", {
|
|
1201
|
+
enumerable: true,
|
|
1202
|
+
get: function () { return chunkW3LNNY3U_cjs.useNavigate; }
|
|
1203
|
+
});
|
|
1204
|
+
Object.defineProperty(exports, "useRouteData", {
|
|
1205
|
+
enumerable: true,
|
|
1206
|
+
get: function () { return chunkW3LNNY3U_cjs.useRouteData; }
|
|
1207
|
+
});
|
|
1208
|
+
Object.defineProperty(exports, "useRouteMatch", {
|
|
1209
|
+
enumerable: true,
|
|
1210
|
+
get: function () { return chunkW3LNNY3U_cjs.useRouteMatch; }
|
|
1211
|
+
});
|
|
1212
|
+
Object.defineProperty(exports, "useRouteParams", {
|
|
1213
|
+
enumerable: true,
|
|
1214
|
+
get: function () { return chunkW3LNNY3U_cjs.useRouteParams; }
|
|
1215
|
+
});
|
|
1216
|
+
Object.defineProperty(exports, "useRouter", {
|
|
1217
|
+
enumerable: true,
|
|
1218
|
+
get: function () { return chunkW3LNNY3U_cjs.useRouter; }
|
|
1219
|
+
});
|
|
1220
|
+
Object.defineProperty(exports, "withRouterContext", {
|
|
1221
|
+
enumerable: true,
|
|
1222
|
+
get: function () { return chunkW3LNNY3U_cjs.withRouterContext; }
|
|
1223
|
+
});
|
|
1224
|
+
Object.defineProperty(exports, "buildRuntimeChromeTraceDocument", {
|
|
1225
|
+
enumerable: true,
|
|
1226
|
+
get: function () { return chunkI6GNUM3P_cjs.buildRuntimeChromeTraceDocument; }
|
|
1227
|
+
});
|
|
1228
|
+
Object.defineProperty(exports, "captureRuntimeError", {
|
|
1229
|
+
enumerable: true,
|
|
1230
|
+
get: function () { return chunkKPG5HAHK_cjs.captureRuntimeError; }
|
|
1231
|
+
});
|
|
1232
|
+
Object.defineProperty(exports, "popRuntimeErrorBoundary", {
|
|
1233
|
+
enumerable: true,
|
|
1234
|
+
get: function () { return chunkKPG5HAHK_cjs.popRuntimeErrorBoundary; }
|
|
1235
|
+
});
|
|
1236
|
+
Object.defineProperty(exports, "pushRuntimeErrorBoundary", {
|
|
1237
|
+
enumerable: true,
|
|
1238
|
+
get: function () { return chunkKPG5HAHK_cjs.pushRuntimeErrorBoundary; }
|
|
1239
|
+
});
|
|
1240
|
+
Object.defineProperty(exports, "withRuntimeErrorBoundary", {
|
|
1241
|
+
enumerable: true,
|
|
1242
|
+
get: function () { return chunkKPG5HAHK_cjs.withRuntimeErrorBoundary; }
|
|
1243
|
+
});
|
|
1244
|
+
Object.defineProperty(exports, "addRuntimeErrorReporter", {
|
|
1245
|
+
enumerable: true,
|
|
1246
|
+
get: function () { return chunkZWUA2LPB_cjs.addRuntimeErrorReporter; }
|
|
1247
|
+
});
|
|
1248
|
+
Object.defineProperty(exports, "clearRuntimeErrorReporters", {
|
|
1249
|
+
enumerable: true,
|
|
1250
|
+
get: function () { return chunkZWUA2LPB_cjs.clearRuntimeErrorReporters; }
|
|
1251
|
+
});
|
|
1252
|
+
Object.defineProperty(exports, "emitRuntimeErrorReport", {
|
|
1253
|
+
enumerable: true,
|
|
1254
|
+
get: function () { return chunkZWUA2LPB_cjs.emitRuntimeErrorReport; }
|
|
1255
|
+
});
|
|
1256
|
+
Object.defineProperty(exports, "getRuntimeErrorReporters", {
|
|
1257
|
+
enumerable: true,
|
|
1258
|
+
get: function () { return chunkZWUA2LPB_cjs.getRuntimeErrorReporters; }
|
|
1259
|
+
});
|
|
1260
|
+
Object.defineProperty(exports, "registerRuntimeErrorReporters", {
|
|
1261
|
+
enumerable: true,
|
|
1262
|
+
get: function () { return chunkZWUA2LPB_cjs.registerRuntimeErrorReporters; }
|
|
1263
|
+
});
|
|
1264
|
+
Object.defineProperty(exports, "Effect", {
|
|
1265
|
+
enumerable: true,
|
|
1266
|
+
get: function () { return chunkVHUXNDW2_cjs.Effect; }
|
|
1267
|
+
});
|
|
1268
|
+
Object.defineProperty(exports, "Signal", {
|
|
1269
|
+
enumerable: true,
|
|
1270
|
+
get: function () { return chunkVHUXNDW2_cjs.Signal; }
|
|
1271
|
+
});
|
|
1272
|
+
Object.defineProperty(exports, "batch", {
|
|
1273
|
+
enumerable: true,
|
|
1274
|
+
get: function () { return chunkVHUXNDW2_cjs.batch; }
|
|
1275
|
+
});
|
|
1276
|
+
Object.defineProperty(exports, "clearSignalsInspectorRegistry", {
|
|
1277
|
+
enumerable: true,
|
|
1278
|
+
get: function () { return chunkVHUXNDW2_cjs.clearSignalsInspectorRegistry; }
|
|
1279
|
+
});
|
|
1280
|
+
Object.defineProperty(exports, "computed", {
|
|
1281
|
+
enumerable: true,
|
|
1282
|
+
get: function () { return chunkVHUXNDW2_cjs.computed; }
|
|
1283
|
+
});
|
|
1284
|
+
Object.defineProperty(exports, "effect", {
|
|
1285
|
+
enumerable: true,
|
|
1286
|
+
get: function () { return chunkVHUXNDW2_cjs.effect; }
|
|
1287
|
+
});
|
|
1288
|
+
Object.defineProperty(exports, "getSignalsInspectorSnapshot", {
|
|
1289
|
+
enumerable: true,
|
|
1290
|
+
get: function () { return chunkVHUXNDW2_cjs.getSignalsInspectorSnapshot; }
|
|
1291
|
+
});
|
|
1292
|
+
Object.defineProperty(exports, "signal", {
|
|
1293
|
+
enumerable: true,
|
|
1294
|
+
get: function () { return chunkVHUXNDW2_cjs.signal; }
|
|
1295
|
+
});
|
|
1296
|
+
Object.defineProperty(exports, "NoopRuntimeTraceSink", {
|
|
1297
|
+
enumerable: true,
|
|
1298
|
+
get: function () { return chunkN7Q2ESLG_cjs.NoopRuntimeTraceSink; }
|
|
1299
|
+
});
|
|
1300
|
+
Object.defineProperty(exports, "RuntimeTraceExporterSink", {
|
|
1301
|
+
enumerable: true,
|
|
1302
|
+
get: function () { return chunkN7Q2ESLG_cjs.RuntimeTraceExporterSink; }
|
|
1303
|
+
});
|
|
1304
|
+
Object.defineProperty(exports, "getCurrentRuntimeTraceSink", {
|
|
1305
|
+
enumerable: true,
|
|
1306
|
+
get: function () { return chunkN7Q2ESLG_cjs.getCurrentRuntimeTraceSink; }
|
|
1307
|
+
});
|
|
1308
|
+
Object.defineProperty(exports, "hasRuntimeTraceSink", {
|
|
1309
|
+
enumerable: true,
|
|
1310
|
+
get: function () { return chunkN7Q2ESLG_cjs.hasRuntimeTraceSink; }
|
|
1311
|
+
});
|
|
1312
|
+
Object.defineProperty(exports, "nextRuntimeTraceId", {
|
|
1313
|
+
enumerable: true,
|
|
1314
|
+
get: function () { return chunkN7Q2ESLG_cjs.nextRuntimeTraceId; }
|
|
1315
|
+
});
|
|
1316
|
+
Object.defineProperty(exports, "recordRuntimeTrace", {
|
|
1317
|
+
enumerable: true,
|
|
1318
|
+
get: function () { return chunkN7Q2ESLG_cjs.recordRuntimeTrace; }
|
|
1319
|
+
});
|
|
1320
|
+
Object.defineProperty(exports, "setRuntimeTraceSink", {
|
|
1321
|
+
enumerable: true,
|
|
1322
|
+
get: function () { return chunkN7Q2ESLG_cjs.setRuntimeTraceSink; }
|
|
1323
|
+
});
|
|
1324
|
+
Object.defineProperty(exports, "withRuntimeTraceSink", {
|
|
1325
|
+
enumerable: true,
|
|
1326
|
+
get: function () { return chunkN7Q2ESLG_cjs.withRuntimeTraceSink; }
|
|
1327
|
+
});
|
|
1328
|
+
Object.defineProperty(exports, "JsonlTraceExporter", {
|
|
1329
|
+
enumerable: true,
|
|
1330
|
+
get: function () { return chunkSM35JOYD_cjs.JsonlTraceExporter; }
|
|
1331
|
+
});
|
|
1332
|
+
Object.defineProperty(exports, "OtlpHttpTraceExporter", {
|
|
1333
|
+
enumerable: true,
|
|
1334
|
+
get: function () { return chunkSM35JOYD_cjs.OtlpHttpTraceExporter; }
|
|
1335
|
+
});
|
|
1336
|
+
exports.ErrorBoundary = ErrorBoundary;
|
|
1337
|
+
exports.allowNavigation = allowNavigation;
|
|
1338
|
+
exports.createEdgeSsrHandler = createEdgeSsrHandler;
|
|
1339
|
+
exports.createHttpApp = createHttpApp;
|
|
1340
|
+
exports.createNodeSsrMiddleware = createNodeSsrMiddleware;
|
|
1341
|
+
exports.createRouter = createRouter;
|
|
1342
|
+
exports.ensureHydrationConsistency = ensureHydrationConsistency;
|
|
1343
|
+
exports.errorNavigation = errorNavigation;
|
|
1344
|
+
exports.json = json;
|
|
1345
|
+
exports.prefetchRoute = prefetchRoute;
|
|
1346
|
+
exports.redirectNavigation = redirectNavigation;
|
|
1347
|
+
exports.renderAssetTags = renderAssetTags;
|
|
1348
|
+
exports.renderHtmlDocument = renderHtmlDocument;
|
|
1349
|
+
exports.renderRouterApp = renderRouterApp;
|
|
1350
|
+
exports.reportHydrationMismatch = reportHydrationMismatch;
|
|
1351
|
+
exports.runRouteAction = runRouteAction;
|
|
1352
|
+
exports.runRouteLoader = runRouteLoader;
|
|
1353
|
+
exports.serveStatic = serveStatic;
|
|
1354
|
+
exports.snapshotDom = snapshotDom;
|
|
1355
|
+
//# sourceMappingURL=index.cjs.map
|
|
1356
|
+
//# sourceMappingURL=index.cjs.map
|