@kubb/fabric-core 0.11.7 → 0.12.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.
Files changed (110) hide show
  1. package/dist/{Fabric-BoTE1-WX.d.cts → Fabric-BbVC650D.d.cts} +86 -15
  2. package/dist/{Fabric-CWquRFa2.d.ts → Fabric-eh92yS1R.d.ts} +86 -15
  3. package/dist/Root-BT59jU0W.js +931 -0
  4. package/dist/Root-BT59jU0W.js.map +1 -0
  5. package/dist/Root-SC_lWG_q.cjs +1057 -0
  6. package/dist/Root-SC_lWG_q.cjs.map +1 -0
  7. package/dist/{defaultParser-CFIT3sEE.cjs → defaultParser-2ym3KiZd.cjs} +3 -4
  8. package/dist/{defaultParser-CFIT3sEE.cjs.map → defaultParser-2ym3KiZd.cjs.map} +1 -1
  9. package/dist/{defaultParser-DZ2kzujH.js → defaultParser-DDFR9BTS.js} +2 -2
  10. package/dist/{defaultParser-DZ2kzujH.js.map → defaultParser-DDFR9BTS.js.map} +1 -1
  11. package/dist/{getRelativePath-y7WcYR5C.js → getRelativePath-COUEoqbz.js} +11 -2
  12. package/dist/getRelativePath-COUEoqbz.js.map +1 -0
  13. package/dist/{getRelativePath-BllDunh0.cjs → getRelativePath-jYLCpluV.cjs} +16 -1
  14. package/dist/getRelativePath-jYLCpluV.cjs.map +1 -0
  15. package/dist/index.cjs +129 -448
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +54 -90
  18. package/dist/index.d.ts +54 -90
  19. package/dist/index.js +92 -416
  20. package/dist/index.js.map +1 -1
  21. package/dist/parsers/typescript.cjs +7 -107
  22. package/dist/parsers/typescript.d.cts +1 -1
  23. package/dist/parsers/typescript.d.ts +1 -1
  24. package/dist/parsers/typescript.js +2 -101
  25. package/dist/parsers.cjs +7 -8
  26. package/dist/parsers.cjs.map +1 -1
  27. package/dist/parsers.d.cts +1 -1
  28. package/dist/parsers.d.ts +1 -1
  29. package/dist/parsers.js +3 -3
  30. package/dist/plugins.cjs +103 -9
  31. package/dist/plugins.cjs.map +1 -1
  32. package/dist/plugins.d.cts +32 -9
  33. package/dist/plugins.d.ts +32 -9
  34. package/dist/plugins.js +96 -3
  35. package/dist/plugins.js.map +1 -1
  36. package/dist/types-BI7rICUP.d.cts +31 -0
  37. package/dist/types-DpITKjSb.d.ts +32 -0
  38. package/dist/types.cjs +6 -0
  39. package/dist/types.cjs.map +1 -1
  40. package/dist/types.d.cts +4 -3
  41. package/dist/types.d.ts +4 -3
  42. package/dist/types.js +1 -1
  43. package/dist/types.js.map +1 -1
  44. package/dist/typescriptParser-DyosyI_A.js +101 -0
  45. package/dist/typescriptParser-DyosyI_A.js.map +1 -0
  46. package/dist/typescriptParser-qjzb2pIh.cjs +137 -0
  47. package/dist/typescriptParser-qjzb2pIh.cjs.map +1 -0
  48. package/dist/{TreeNode-DomNP5og.d.cts → useNodeTree-CmXKaRqq.d.cts} +10 -3
  49. package/dist/{TreeNode-C1VnIF0o.d.ts → useNodeTree-DUdlgys5.d.ts} +10 -3
  50. package/package.json +3 -2
  51. package/src/Fabric.ts +13 -5
  52. package/src/KubbFile.ts +3 -11
  53. package/src/components/App.ts +6 -5
  54. package/src/components/Br.ts +11 -0
  55. package/src/components/Const.ts +6 -5
  56. package/src/components/Dedent.ts +10 -0
  57. package/src/components/File.ts +21 -16
  58. package/src/components/Function.ts +17 -13
  59. package/src/components/Indent.ts +7 -0
  60. package/src/components/Root.ts +6 -5
  61. package/src/components/Type.ts +6 -5
  62. package/src/components/__snapshots__/arrow_function_with_generics.ts +3 -3
  63. package/src/components/__snapshots__/async_arrow_function.ts +3 -3
  64. package/src/components/__snapshots__/async_function.ts +2 -2
  65. package/src/components/__snapshots__/async_function_with_Promise_return_type.ts +2 -2
  66. package/src/components/__snapshots__/basic_arrow_function.ts +3 -3
  67. package/src/components/__snapshots__/basic_export.ts +1 -0
  68. package/src/components/__snapshots__/basic_function.ts +2 -2
  69. package/src/components/__snapshots__/basic_import.ts +1 -0
  70. package/src/components/__snapshots__/default_exported_arrow_function.ts +3 -3
  71. package/src/components/__snapshots__/default_exported_function.ts +2 -2
  72. package/src/components/__snapshots__/exported_arrow_function.ts +3 -3
  73. package/src/components/__snapshots__/exported_function.ts +2 -2
  74. package/src/components/__snapshots__/function_with_JSDoc.ts +2 -2
  75. package/src/components/__snapshots__/function_with_generics.ts +2 -2
  76. package/src/components/__snapshots__/function_with_parameters.ts +2 -2
  77. package/src/components/__snapshots__/function_with_return_type.ts +2 -2
  78. package/src/components/__snapshots__/matches_with_root_import.ts +1 -0
  79. package/src/components/__snapshots__/named_export.ts +1 -0
  80. package/src/components/__snapshots__/named_export_(object_advanced).ts +1 -0
  81. package/src/components/__snapshots__/named_import.ts +1 -0
  82. package/src/components/__snapshots__/named_import_(object).ts +1 -0
  83. package/src/components/__snapshots__/named_import_(object_advanced).ts +1 -0
  84. package/src/components/__snapshots__/named_typed_export.ts +1 -0
  85. package/src/components/__snapshots__/named_typed_import.ts +1 -0
  86. package/src/components/__snapshots__/typed_export.ts +1 -0
  87. package/src/components/__snapshots__/typed_import.ts +1 -0
  88. package/src/contexts/RenderContext.ts +13 -0
  89. package/src/createComponent.ts +34 -0
  90. package/src/index.ts +9 -9
  91. package/src/intrinsic.ts +143 -0
  92. package/src/plugins/fsxPlugin/Runtime.ts +96 -0
  93. package/src/plugins/fsxPlugin/fsxPlugin.ts +45 -0
  94. package/src/plugins/index.ts +1 -0
  95. package/src/types.ts +4 -1
  96. package/dist/TreeNode-CC3a0Bae.js +0 -447
  97. package/dist/TreeNode-CC3a0Bae.js.map +0 -1
  98. package/dist/TreeNode-CFchatCw.cjs +0 -494
  99. package/dist/TreeNode-CFchatCw.cjs.map +0 -1
  100. package/dist/defineParser-CVCxqqzB.cjs +0 -18
  101. package/dist/defineParser-CVCxqqzB.cjs.map +0 -1
  102. package/dist/defineParser-Lco7nlj0.js +0 -13
  103. package/dist/defineParser-Lco7nlj0.js.map +0 -1
  104. package/dist/getRelativePath-BllDunh0.cjs.map +0 -1
  105. package/dist/getRelativePath-y7WcYR5C.js.map +0 -1
  106. package/dist/parsers/typescript.cjs.map +0 -1
  107. package/dist/parsers/typescript.js.map +0 -1
  108. package/dist/types-DYepTJ6F.d.cts +0 -82
  109. package/dist/types-yNaQHNUB.d.ts +0 -83
  110. package/src/components/Text.ts +0 -27
@@ -0,0 +1,1057 @@
1
+ const require_getRelativePath = require('./getRelativePath-jYLCpluV.cjs');
2
+ const require_defaultParser = require('./defaultParser-2ym3KiZd.cjs');
3
+ let natural_orderby = require("natural-orderby");
4
+ let node_crypto = require("node:crypto");
5
+ let node_path = require("node:path");
6
+ node_path = require_getRelativePath.__toESM(node_path);
7
+ let p_limit = require("p-limit");
8
+ p_limit = require_getRelativePath.__toESM(p_limit);
9
+ let node_events = require("node:events");
10
+
11
+ //#region src/context.ts
12
+ /**
13
+ * Context stack for tracking the current context values
14
+ *
15
+ * Note: This uses a global Map for simplicity in code generation scenarios.
16
+ * For concurrent runtime execution, consider using AsyncLocalStorage or
17
+ * instance-based context management.
18
+ */
19
+ const contextStack = /* @__PURE__ */ new Map();
20
+ const contextDefaults = /* @__PURE__ */ new Map();
21
+ /**
22
+ * Provides a value to descendant components (Vue 3 style)
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const ThemeKey = Symbol('theme')
27
+ * provide(ThemeKey, { color: 'blue' })
28
+ * ```
29
+ */
30
+ function provide(key, value) {
31
+ if (!contextStack.has(key)) contextStack.set(key, []);
32
+ contextStack.get(key).push(value);
33
+ }
34
+ /**
35
+ * Injects a value provided by an ancestor component (Vue 3 style)
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const theme = inject(ThemeKey, { color: 'default' })
40
+ * ```
41
+ */
42
+ function inject(key, defaultValue) {
43
+ const stack = contextStack.get(key);
44
+ if (!stack || stack.length === 0) {
45
+ if (defaultValue !== void 0) return defaultValue;
46
+ const storedDefault = contextDefaults.get(key);
47
+ if (storedDefault !== void 0) return storedDefault;
48
+ throw new Error(`No value provided for key: ${key.toString()}`);
49
+ }
50
+ return stack[stack.length - 1];
51
+ }
52
+ /**
53
+ * Unprovides a value (for cleanup)
54
+ * @internal
55
+ */
56
+ function unprovide(key) {
57
+ const stack = contextStack.get(key);
58
+ if (stack && stack.length > 0) stack.pop();
59
+ }
60
+ /**
61
+ * Creates a context key with a default value (React-style compatibility)
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const ThemeContext = createContext({ color: 'blue' })
66
+ * // ThemeContext is now typed as Context<{ color: string }>
67
+ * const theme = useContext(ThemeContext) // theme is { color: string }
68
+ * ```
69
+ */
70
+ function createContext(defaultValue) {
71
+ const key = Symbol("context");
72
+ contextDefaults.set(key, defaultValue);
73
+ return key;
74
+ }
75
+
76
+ //#endregion
77
+ //#region src/contexts/NodeTreeContext.ts
78
+ /**
79
+ * Context for having the current NodeTree
80
+ */
81
+ const NodeTreeContext = createContext(null);
82
+
83
+ //#endregion
84
+ //#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/utilityEvaluators-D7O7U3FY.js
85
+ const t$2 = {
86
+ done: !1,
87
+ hasNext: !1
88
+ };
89
+
90
+ //#endregion
91
+ //#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/pipe-CRsqNjLF.js
92
+ function t$1(e, ...t$3) {
93
+ let a = e;
94
+ let o = t$3.map((e$1) => `lazy` in e$1 ? r$1(e$1) : void 0);
95
+ let s = 0;
96
+ for (; s < t$3.length;) {
97
+ if (o[s] === void 0 || !i(a)) {
98
+ let e$2 = t$3[s];
99
+ a = e$2(a), s += 1;
100
+ continue;
101
+ }
102
+ let e$1 = [];
103
+ for (let n$2 = s; n$2 < t$3.length; n$2++) {
104
+ let t$4 = o[n$2];
105
+ if (t$4 === void 0 || (e$1.push(t$4), t$4.isSingle)) break;
106
+ }
107
+ let r$2 = [];
108
+ for (let t$4 of a) if (n$1(t$4, r$2, e$1)) break;
109
+ let { isSingle: c } = e$1.at(-1);
110
+ a = c ? r$2[0] : r$2, s += e$1.length;
111
+ }
112
+ return a;
113
+ }
114
+ require_getRelativePath.__name(t$1, "t");
115
+ function n$1(t$3, r$2, i$1) {
116
+ if (i$1.length === 0) return r$2.push(t$3), !1;
117
+ let a = t$3;
118
+ let o = t$2;
119
+ let s = !1;
120
+ for (let [e, t$4] of i$1.entries()) {
121
+ let { index: c, items: l } = t$4;
122
+ if (l.push(a), o = t$4(a, c, l), t$4.index += 1, o.hasNext) {
123
+ var _o$hasMany;
124
+ if ((_o$hasMany = o.hasMany) !== null && _o$hasMany !== void 0 ? _o$hasMany : !1) {
125
+ for (let t$5 of o.next) if (n$1(t$5, r$2, i$1.slice(e + 1))) return !0;
126
+ return s;
127
+ }
128
+ a = o.next;
129
+ }
130
+ if (!o.hasNext) break;
131
+ o.done && (s = !0);
132
+ }
133
+ return o.hasNext && r$2.push(a), s;
134
+ }
135
+ require_getRelativePath.__name(n$1, "n");
136
+ function r$1(e) {
137
+ var _t$single;
138
+ let { lazy: t$3, lazyArgs: n$2 } = e;
139
+ let r$2 = t$3(...n$2);
140
+ return Object.assign(r$2, {
141
+ isSingle: (_t$single = t$3.single) !== null && _t$single !== void 0 ? _t$single : !1,
142
+ index: 0,
143
+ items: []
144
+ });
145
+ }
146
+ require_getRelativePath.__name(r$1, "r");
147
+ function i(e) {
148
+ return typeof e == `string` || typeof e == `object` && !!e && Symbol.iterator in e;
149
+ }
150
+
151
+ //#endregion
152
+ //#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/purryFromLazy-C1RBdBlx.js
153
+ function t(t$3, n$2) {
154
+ let r$2 = n$2.length - t$3.length;
155
+ if (r$2 === 1) {
156
+ let [r$3, ...i$1] = n$2;
157
+ return t$1(r$3, {
158
+ lazy: t$3,
159
+ lazyArgs: i$1
160
+ });
161
+ }
162
+ if (r$2 === 0) {
163
+ let r$3 = {
164
+ lazy: t$3,
165
+ lazyArgs: n$2
166
+ };
167
+ return Object.assign((t$4) => t$1(t$4, r$3), r$3);
168
+ }
169
+ throw Error(`Wrong number of arguments`);
170
+ }
171
+
172
+ //#endregion
173
+ //#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/uniqueBy.js
174
+ function n(...e) {
175
+ return t(r, e);
176
+ }
177
+ function r(t$3) {
178
+ let n$2 = t$3;
179
+ let r$2 = /* @__PURE__ */ new Set();
180
+ return (t$4, i$1, a) => {
181
+ let o = n$2(t$4, i$1, a);
182
+ return r$2.has(o) ? t$2 : (r$2.add(o), {
183
+ done: !1,
184
+ hasNext: !0,
185
+ next: t$4
186
+ });
187
+ };
188
+ }
189
+
190
+ //#endregion
191
+ //#region src/createFile.ts
192
+ function combineSources(sources) {
193
+ return n(sources, (obj) => {
194
+ var _ref;
195
+ var _obj$name;
196
+ var _obj$isExportable;
197
+ var _obj$isTypeOnly;
198
+ return `${(_ref = (_obj$name = obj.name) !== null && _obj$name !== void 0 ? _obj$name : obj.value) !== null && _ref !== void 0 ? _ref : ""}:${(_obj$isExportable = obj.isExportable) !== null && _obj$isExportable !== void 0 ? _obj$isExportable : false}:${(_obj$isTypeOnly = obj.isTypeOnly) !== null && _obj$isTypeOnly !== void 0 ? _obj$isTypeOnly : false}`;
199
+ });
200
+ }
201
+ function combineExports(exports$1) {
202
+ const sorted = (0, natural_orderby.orderBy)(exports$1, [
203
+ (v) => !!Array.isArray(v.name),
204
+ (v) => !v.isTypeOnly,
205
+ (v) => v.path,
206
+ (v) => !!v.name,
207
+ (v) => Array.isArray(v.name) ? (0, natural_orderby.orderBy)(v.name) : v.name
208
+ ]);
209
+ const prev = [];
210
+ const pathMap = /* @__PURE__ */ new Map();
211
+ const uniqueMap = /* @__PURE__ */ new Map();
212
+ const pathNameTypeTrueMap = /* @__PURE__ */ new Map();
213
+ for (const curr of sorted) {
214
+ const name = curr.name;
215
+ const pathKey = curr.path;
216
+ const prevByPath = pathMap.get(pathKey);
217
+ const nameKey = Array.isArray(name) ? JSON.stringify(name) : name || "";
218
+ const pathNameTypeKey = `${pathKey}:${nameKey}:${curr.isTypeOnly}`;
219
+ const pathNameKey = `${pathKey}:${nameKey}`;
220
+ if (pathNameTypeTrueMap.get(pathNameKey)) continue;
221
+ const uniqueKey = `${pathNameTypeKey}:${curr.asAlias || ""}`;
222
+ if (uniqueMap.get(uniqueKey) || Array.isArray(name) && !name.length || (prevByPath === null || prevByPath === void 0 ? void 0 : prevByPath.asAlias) && !curr.asAlias) continue;
223
+ if (!prevByPath) {
224
+ const newItem = {
225
+ ...curr,
226
+ name: Array.isArray(name) ? [...new Set(name)] : name
227
+ };
228
+ prev.push(newItem);
229
+ pathMap.set(pathKey, newItem);
230
+ uniqueMap.set(uniqueKey, newItem);
231
+ if (newItem.isTypeOnly) pathNameTypeTrueMap.set(pathNameKey, newItem);
232
+ continue;
233
+ }
234
+ if (prevByPath && Array.isArray(prevByPath.name) && Array.isArray(curr.name) && prevByPath.isTypeOnly === curr.isTypeOnly) {
235
+ prevByPath.name = [...new Set([...prevByPath.name, ...curr.name])];
236
+ continue;
237
+ }
238
+ prev.push(curr);
239
+ uniqueMap.set(uniqueKey, curr);
240
+ if (curr.isTypeOnly) pathNameTypeTrueMap.set(pathNameKey, curr);
241
+ }
242
+ return prev;
243
+ }
244
+ function combineImports(imports, exports$1, source) {
245
+ const exportedNameLookup = /* @__PURE__ */ new Set();
246
+ for (const item of exports$1) {
247
+ const { name } = item;
248
+ if (!name) continue;
249
+ if (Array.isArray(name)) {
250
+ for (const value of name) if (value) exportedNameLookup.add(value);
251
+ continue;
252
+ }
253
+ exportedNameLookup.add(name);
254
+ }
255
+ const usageCache = /* @__PURE__ */ new Map();
256
+ const hasImportInSource = (importName) => {
257
+ if (!source) return true;
258
+ const cached = usageCache.get(importName);
259
+ if (cached !== void 0) return cached;
260
+ const isUsed = source.includes(importName) || exportedNameLookup.has(importName);
261
+ usageCache.set(importName, isUsed);
262
+ return isUsed;
263
+ };
264
+ const sorted = (0, natural_orderby.orderBy)(imports, [
265
+ (v) => !!Array.isArray(v.name),
266
+ (v) => !v.isTypeOnly,
267
+ (v) => v.path,
268
+ (v) => !!v.name,
269
+ (v) => Array.isArray(v.name) ? (0, natural_orderby.orderBy)(v.name) : v.name
270
+ ]);
271
+ const prev = [];
272
+ const pathTypeMap = /* @__PURE__ */ new Map();
273
+ const uniqueMap = /* @__PURE__ */ new Map();
274
+ const pathNameTypeTrueMap = /* @__PURE__ */ new Map();
275
+ for (const curr of sorted) {
276
+ let name = Array.isArray(curr.name) ? [...new Set(curr.name)] : curr.name;
277
+ if (curr.path === curr.root) continue;
278
+ if (Array.isArray(name)) name = name.filter((item) => typeof item === "string" ? hasImportInSource(item) : hasImportInSource(item.propertyName));
279
+ const pathTypeKey = `${curr.path}:${curr.isTypeOnly}`;
280
+ const prevByPath = pathTypeMap.get(pathTypeKey);
281
+ const nameKey = Array.isArray(name) ? JSON.stringify(name) : name || "";
282
+ const pathNameTypeKey = `${curr.path}:${nameKey}:${curr.isTypeOnly}`;
283
+ const uniquePrev = uniqueMap.get(pathNameTypeKey);
284
+ const pathNameKey = `${curr.path}:${nameKey}`;
285
+ if (pathNameTypeTrueMap.get(pathNameKey)) continue;
286
+ if (uniquePrev || Array.isArray(name) && !name.length) continue;
287
+ if (!prevByPath) {
288
+ const newItem = {
289
+ ...curr,
290
+ name
291
+ };
292
+ prev.push(newItem);
293
+ pathTypeMap.set(pathTypeKey, newItem);
294
+ uniqueMap.set(pathNameTypeKey, newItem);
295
+ if (newItem.isTypeOnly) pathNameTypeTrueMap.set(pathNameKey, newItem);
296
+ continue;
297
+ }
298
+ if (prevByPath && Array.isArray(prevByPath.name) && Array.isArray(name) && prevByPath.isTypeOnly === curr.isTypeOnly) {
299
+ prevByPath.name = [...new Set([...prevByPath.name, ...name])];
300
+ continue;
301
+ }
302
+ if (!Array.isArray(name) && name && !hasImportInSource(name)) continue;
303
+ prev.push(curr);
304
+ uniqueMap.set(pathNameTypeKey, curr);
305
+ if (curr.isTypeOnly) pathNameTypeTrueMap.set(pathNameKey, curr);
306
+ }
307
+ return prev;
308
+ }
309
+ /**
310
+ * Helper to create a file with name and id set
311
+ */
312
+ function createFile(file) {
313
+ var _file$exports;
314
+ var _file$imports;
315
+ var _file$sources;
316
+ const extname = node_path.default.extname(file.baseName);
317
+ if (!extname) throw new Error(`No extname found for ${file.baseName}`);
318
+ const source = file.sources.map((item) => item.value).join("\n\n");
319
+ const exports$1 = ((_file$exports = file.exports) === null || _file$exports === void 0 ? void 0 : _file$exports.length) ? combineExports(file.exports) : [];
320
+ const imports = ((_file$imports = file.imports) === null || _file$imports === void 0 ? void 0 : _file$imports.length) && source ? combineImports(file.imports, exports$1, source) : [];
321
+ const sources = ((_file$sources = file.sources) === null || _file$sources === void 0 ? void 0 : _file$sources.length) ? combineSources(file.sources) : [];
322
+ return {
323
+ ...file,
324
+ id: (0, node_crypto.createHash)("sha256").update(file.path).digest("hex"),
325
+ name: require_getRelativePath.trimExtName(file.baseName),
326
+ extname,
327
+ imports,
328
+ exports: exports$1,
329
+ sources,
330
+ meta: file.meta || {}
331
+ };
332
+ }
333
+
334
+ //#endregion
335
+ //#region \0@oxc-project+runtime@0.107.0/helpers/checkPrivateRedeclaration.js
336
+ function _checkPrivateRedeclaration(e, t$3) {
337
+ if (t$3.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
338
+ }
339
+
340
+ //#endregion
341
+ //#region \0@oxc-project+runtime@0.107.0/helpers/classPrivateFieldInitSpec.js
342
+ function _classPrivateFieldInitSpec(e, t$3, a) {
343
+ _checkPrivateRedeclaration(e, t$3), t$3.set(e, a);
344
+ }
345
+
346
+ //#endregion
347
+ //#region \0@oxc-project+runtime@0.107.0/helpers/assertClassBrand.js
348
+ function _assertClassBrand(e, t$3, n$2) {
349
+ if ("function" == typeof e ? e === t$3 : e.has(t$3)) return arguments.length < 3 ? t$3 : n$2;
350
+ throw new TypeError("Private element is not present on this object");
351
+ }
352
+
353
+ //#endregion
354
+ //#region \0@oxc-project+runtime@0.107.0/helpers/classPrivateFieldGet2.js
355
+ function _classPrivateFieldGet2(s, a) {
356
+ return s.get(_assertClassBrand(s, a));
357
+ }
358
+
359
+ //#endregion
360
+ //#region \0@oxc-project+runtime@0.107.0/helpers/classPrivateFieldSet2.js
361
+ function _classPrivateFieldSet2(s, a, r$2) {
362
+ return s.set(_assertClassBrand(s, a), r$2), r$2;
363
+ }
364
+
365
+ //#endregion
366
+ //#region src/utils/AsyncEventEmitter.ts
367
+ var _emitter = /* @__PURE__ */ new WeakMap();
368
+ var _mode = /* @__PURE__ */ new WeakMap();
369
+ var AsyncEventEmitter = class {
370
+ constructor({ maxListener = 100, mode = "sequential" } = {}) {
371
+ _classPrivateFieldInitSpec(this, _emitter, new node_events.EventEmitter());
372
+ _classPrivateFieldInitSpec(this, _mode, void 0);
373
+ _classPrivateFieldGet2(_emitter, this).setMaxListeners(maxListener);
374
+ _classPrivateFieldSet2(_mode, this, mode);
375
+ }
376
+ async emit(eventName, ...eventArgs) {
377
+ const listeners = _classPrivateFieldGet2(_emitter, this).listeners(eventName);
378
+ if (listeners.length === 0) return;
379
+ const errors = [];
380
+ if (_classPrivateFieldGet2(_mode, this) === "sequential") for (const listener of listeners) try {
381
+ await listener(...eventArgs);
382
+ } catch (err) {
383
+ const error = err instanceof Error ? err : new Error(String(err));
384
+ errors.push(error);
385
+ }
386
+ else {
387
+ const promises = listeners.map(async (listener) => {
388
+ try {
389
+ await listener(...eventArgs);
390
+ } catch (err) {
391
+ const error = err instanceof Error ? err : new Error(String(err));
392
+ errors.push(error);
393
+ }
394
+ });
395
+ await Promise.all(promises);
396
+ }
397
+ if (errors.length === 1) throw errors[0];
398
+ if (errors.length > 1) throw new AggregateError(errors, `Errors in async listeners for "${eventName}"`);
399
+ }
400
+ on(eventName, handler) {
401
+ _classPrivateFieldGet2(_emitter, this).on(eventName, handler);
402
+ }
403
+ onOnce(eventName, handler) {
404
+ const wrapper = (...args) => {
405
+ this.off(eventName, wrapper);
406
+ handler(...args);
407
+ };
408
+ this.on(eventName, wrapper);
409
+ }
410
+ off(eventName, handler) {
411
+ _classPrivateFieldGet2(_emitter, this).off(eventName, handler);
412
+ }
413
+ removeAll() {
414
+ _classPrivateFieldGet2(_emitter, this).removeAllListeners();
415
+ }
416
+ };
417
+
418
+ //#endregion
419
+ //#region \0@oxc-project+runtime@0.107.0/helpers/typeof.js
420
+ function _typeof(o) {
421
+ "@babel/helpers - typeof";
422
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
423
+ return typeof o$1;
424
+ } : function(o$1) {
425
+ return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
426
+ }, _typeof(o);
427
+ }
428
+
429
+ //#endregion
430
+ //#region \0@oxc-project+runtime@0.107.0/helpers/toPrimitive.js
431
+ function toPrimitive(t$3, r$2) {
432
+ if ("object" != _typeof(t$3) || !t$3) return t$3;
433
+ var e = t$3[Symbol.toPrimitive];
434
+ if (void 0 !== e) {
435
+ var i$1 = e.call(t$3, r$2 || "default");
436
+ if ("object" != _typeof(i$1)) return i$1;
437
+ throw new TypeError("@@toPrimitive must return a primitive value.");
438
+ }
439
+ return ("string" === r$2 ? String : Number)(t$3);
440
+ }
441
+
442
+ //#endregion
443
+ //#region \0@oxc-project+runtime@0.107.0/helpers/toPropertyKey.js
444
+ function toPropertyKey(t$3) {
445
+ var i$1 = toPrimitive(t$3, "string");
446
+ return "symbol" == _typeof(i$1) ? i$1 : i$1 + "";
447
+ }
448
+
449
+ //#endregion
450
+ //#region \0@oxc-project+runtime@0.107.0/helpers/defineProperty.js
451
+ function _defineProperty(e, r$2, t$3) {
452
+ return (r$2 = toPropertyKey(r$2)) in e ? Object.defineProperty(e, r$2, {
453
+ value: t$3,
454
+ enumerable: !0,
455
+ configurable: !0,
456
+ writable: !0
457
+ }) : e[r$2] = t$3, e;
458
+ }
459
+
460
+ //#endregion
461
+ //#region src/FileProcessor.ts
462
+ var _limit = /* @__PURE__ */ new WeakMap();
463
+ var FileProcessor = class {
464
+ constructor({ events = new AsyncEventEmitter() } = {}) {
465
+ _classPrivateFieldInitSpec(this, _limit, (0, p_limit.default)(100));
466
+ _defineProperty(this, "events", void 0);
467
+ this.events = events;
468
+ return this;
469
+ }
470
+ async parse(file, { parsers, extension } = {}) {
471
+ const parseExtName = (extension === null || extension === void 0 ? void 0 : extension[file.extname]) || void 0;
472
+ if (!parsers) {
473
+ console.warn("No parsers provided, using default parser. If you want to use a specific parser, please provide it in the options.");
474
+ return require_defaultParser.defaultParser.parse(file, { extname: parseExtName });
475
+ }
476
+ if (!file.extname) return require_defaultParser.defaultParser.parse(file, { extname: parseExtName });
477
+ const parser = parsers.get(file.extname);
478
+ if (!parser) return require_defaultParser.defaultParser.parse(file, { extname: parseExtName });
479
+ return parser.parse(file, { extname: parseExtName });
480
+ }
481
+ async run(files, { parsers, mode = "sequential", dryRun, extension } = {}) {
482
+ await this.events.emit("files:processing:start", files);
483
+ const total = files.length;
484
+ let processed = 0;
485
+ const processOne = async (resolvedFile, index) => {
486
+ await this.events.emit("file:processing:start", resolvedFile, index, total);
487
+ const source = dryRun ? void 0 : await this.parse(resolvedFile, {
488
+ extension,
489
+ parsers
490
+ });
491
+ const currentProcessed = ++processed;
492
+ const percentage = currentProcessed / total * 100;
493
+ await this.events.emit("file:processing:update", {
494
+ file: resolvedFile,
495
+ source,
496
+ processed: currentProcessed,
497
+ percentage,
498
+ total
499
+ });
500
+ await this.events.emit("file:processing:end", resolvedFile, index, total);
501
+ };
502
+ if (mode === "sequential") {
503
+ async function* asyncFiles() {
504
+ for (let index = 0; index < files.length; index++) yield [files[index], index];
505
+ }
506
+ for await (const [file, index] of asyncFiles()) if (file) await processOne(file, index);
507
+ } else {
508
+ const promises = files.map((resolvedFile, index) => _classPrivateFieldGet2(_limit, this).call(this, () => processOne(resolvedFile, index)));
509
+ await Promise.all(promises);
510
+ }
511
+ await this.events.emit("files:processing:end", files);
512
+ return files;
513
+ }
514
+ };
515
+
516
+ //#endregion
517
+ //#region src/utils/Cache.ts
518
+ var _buffer = /* @__PURE__ */ new WeakMap();
519
+ var Cache = class {
520
+ constructor() {
521
+ _classPrivateFieldInitSpec(this, _buffer, /* @__PURE__ */ new Map());
522
+ }
523
+ get(key) {
524
+ var _this$buffer$get;
525
+ return (_this$buffer$get = _classPrivateFieldGet2(_buffer, this).get(key)) !== null && _this$buffer$get !== void 0 ? _this$buffer$get : null;
526
+ }
527
+ set(key, value) {
528
+ _classPrivateFieldGet2(_buffer, this).set(key, value);
529
+ }
530
+ delete(key) {
531
+ _classPrivateFieldGet2(_buffer, this).delete(key);
532
+ }
533
+ clear() {
534
+ _classPrivateFieldGet2(_buffer, this).clear();
535
+ }
536
+ keys() {
537
+ return [..._classPrivateFieldGet2(_buffer, this).keys()];
538
+ }
539
+ values() {
540
+ return [..._classPrivateFieldGet2(_buffer, this).values()];
541
+ }
542
+ flush() {}
543
+ };
544
+
545
+ //#endregion
546
+ //#region \0@oxc-project+runtime@0.107.0/helpers/classPrivateMethodInitSpec.js
547
+ function _classPrivateMethodInitSpec(e, a) {
548
+ _checkPrivateRedeclaration(e, a), a.add(e);
549
+ }
550
+
551
+ //#endregion
552
+ //#region src/FileManager.ts
553
+ function mergeFile(a, b) {
554
+ return {
555
+ ...a,
556
+ sources: [...a.sources || [], ...b.sources || []],
557
+ imports: [...a.imports || [], ...b.imports || []],
558
+ exports: [...a.exports || [], ...b.exports || []]
559
+ };
560
+ }
561
+ var _cache = /* @__PURE__ */ new WeakMap();
562
+ var _filesCache = /* @__PURE__ */ new WeakMap();
563
+ var _FileManager_brand = /* @__PURE__ */ new WeakSet();
564
+ var FileManager = class {
565
+ constructor({ events = new AsyncEventEmitter() } = {}) {
566
+ _classPrivateMethodInitSpec(this, _FileManager_brand);
567
+ _classPrivateFieldInitSpec(this, _cache, new Cache());
568
+ _classPrivateFieldInitSpec(this, _filesCache, null);
569
+ _defineProperty(this, "events", void 0);
570
+ _defineProperty(this, "processor", void 0);
571
+ this.processor = new FileProcessor({ events });
572
+ this.events = events;
573
+ return this;
574
+ }
575
+ add(...files) {
576
+ const resolvedFiles = [];
577
+ const mergedFiles = /* @__PURE__ */ new Map();
578
+ files.forEach((file) => {
579
+ const existing = mergedFiles.get(file.path);
580
+ if (existing) mergedFiles.set(file.path, mergeFile(existing, file));
581
+ else mergedFiles.set(file.path, file);
582
+ });
583
+ for (let file of mergedFiles.values()) {
584
+ file = _assertClassBrand(_FileManager_brand, this, _resolveName).call(this, file);
585
+ file = _assertClassBrand(_FileManager_brand, this, _resolvePath).call(this, file);
586
+ const resolvedFile = createFile(file);
587
+ _classPrivateFieldGet2(_cache, this).set(resolvedFile.path, resolvedFile);
588
+ this.flush();
589
+ resolvedFiles.push(resolvedFile);
590
+ }
591
+ this.events.emit("files:added", resolvedFiles);
592
+ return resolvedFiles;
593
+ }
594
+ upsert(...files) {
595
+ const resolvedFiles = [];
596
+ const mergedFiles = /* @__PURE__ */ new Map();
597
+ files.forEach((file) => {
598
+ const existing = mergedFiles.get(file.path);
599
+ if (existing) mergedFiles.set(file.path, mergeFile(existing, file));
600
+ else mergedFiles.set(file.path, file);
601
+ });
602
+ for (let file of mergedFiles.values()) {
603
+ const existing = _classPrivateFieldGet2(_cache, this).get(file.path);
604
+ file = _assertClassBrand(_FileManager_brand, this, _resolveName).call(this, file);
605
+ file = _assertClassBrand(_FileManager_brand, this, _resolvePath).call(this, file);
606
+ const resolvedFile = createFile(existing ? mergeFile(existing, file) : file);
607
+ _classPrivateFieldGet2(_cache, this).set(resolvedFile.path, resolvedFile);
608
+ this.flush();
609
+ resolvedFiles.push(resolvedFile);
610
+ }
611
+ this.events.emit("files:added", resolvedFiles);
612
+ return resolvedFiles;
613
+ }
614
+ flush() {
615
+ _classPrivateFieldSet2(_filesCache, this, null);
616
+ _classPrivateFieldGet2(_cache, this).flush();
617
+ }
618
+ getByPath(path$1) {
619
+ return _classPrivateFieldGet2(_cache, this).get(path$1);
620
+ }
621
+ deleteByPath(path$1) {
622
+ _classPrivateFieldGet2(_cache, this).delete(path$1);
623
+ _classPrivateFieldSet2(_filesCache, this, null);
624
+ }
625
+ clear() {
626
+ _classPrivateFieldGet2(_cache, this).clear();
627
+ _classPrivateFieldSet2(_filesCache, this, null);
628
+ }
629
+ get files() {
630
+ if (_classPrivateFieldGet2(_filesCache, this)) return _classPrivateFieldGet2(_filesCache, this);
631
+ const keys = (0, natural_orderby.orderBy)(_classPrivateFieldGet2(_cache, this).keys(), [(v) => v.length, (v) => require_getRelativePath.trimExtName(v).endsWith("index")]);
632
+ const files = [];
633
+ for (const key of keys) {
634
+ const file = _classPrivateFieldGet2(_cache, this).get(key);
635
+ if (file) files.push(file);
636
+ }
637
+ _classPrivateFieldSet2(_filesCache, this, files);
638
+ return files;
639
+ }
640
+ async write(options) {
641
+ await this.events.emit("files:writing:start", this.files);
642
+ const resolvedFiles = await this.processor.run(this.files, options);
643
+ this.clear();
644
+ await this.events.emit("files:writing:end", resolvedFiles);
645
+ return resolvedFiles;
646
+ }
647
+ };
648
+ function _resolvePath(file) {
649
+ this.events.emit("file:resolve:path", file);
650
+ return file;
651
+ }
652
+ function _resolveName(file) {
653
+ this.events.emit("file:resolve:name", file);
654
+ return file;
655
+ }
656
+
657
+ //#endregion
658
+ //#region src/utils/TreeNode.ts
659
+ var _childrenMap = /* @__PURE__ */ new WeakMap();
660
+ var _cachedLeaves = /* @__PURE__ */ new WeakMap();
661
+ var TreeNode = class TreeNode {
662
+ constructor(data, parent) {
663
+ _defineProperty(this, "data", void 0);
664
+ _defineProperty(this, "parent", void 0);
665
+ _defineProperty(this, "children", []);
666
+ _classPrivateFieldInitSpec(this, _childrenMap, /* @__PURE__ */ new Map());
667
+ _classPrivateFieldInitSpec(this, _cachedLeaves, void 0);
668
+ this.data = data;
669
+ this.parent = parent;
670
+ }
671
+ addChild(data) {
672
+ const child = new TreeNode(data, this);
673
+ this.children.push(child);
674
+ if (typeof data === "object" && data !== null && "name" in data) _classPrivateFieldGet2(_childrenMap, this).set(data.name, child);
675
+ _classPrivateFieldSet2(_cachedLeaves, this, void 0);
676
+ return child;
677
+ }
678
+ getChildByName(name) {
679
+ return _classPrivateFieldGet2(_childrenMap, this).get(name);
680
+ }
681
+ get leaves() {
682
+ if (_classPrivateFieldGet2(_cachedLeaves, this)) return _classPrivateFieldGet2(_cachedLeaves, this);
683
+ if (this.children.length === 0) return [this];
684
+ const result = [];
685
+ const stack = [...this.children];
686
+ const visited = /* @__PURE__ */ new Set();
687
+ while (stack.length > 0) {
688
+ const node = stack.pop();
689
+ if (visited.has(node)) continue;
690
+ visited.add(node);
691
+ if (node.children.length > 0) stack.push(...node.children);
692
+ else result.push(node);
693
+ }
694
+ _classPrivateFieldSet2(_cachedLeaves, this, result);
695
+ return result;
696
+ }
697
+ forEach(callback) {
698
+ const stack = [this];
699
+ for (let i$1 = 0; i$1 < stack.length; i$1++) {
700
+ const node = stack[i$1];
701
+ callback(node);
702
+ if (node.children.length > 0) stack.push(...node.children);
703
+ }
704
+ return this;
705
+ }
706
+ findDeep(predicate) {
707
+ for (const leaf of this.leaves) if (predicate(leaf)) return leaf;
708
+ }
709
+ static toGraph(root) {
710
+ const nodes = [];
711
+ const edges = [];
712
+ const stack = [root];
713
+ for (let i$1 = 0; i$1 < stack.length; i$1++) {
714
+ const node = stack[i$1];
715
+ nodes.push({
716
+ id: node.data.path,
717
+ label: node.data.name
718
+ });
719
+ const children = node.children;
720
+ if (children.length > 0) for (let j = 0, len = children.length; j < len; j++) {
721
+ const child = children[j];
722
+ edges.push({
723
+ from: node.data.path,
724
+ to: child.data.path
725
+ });
726
+ stack.push(child);
727
+ }
728
+ }
729
+ return {
730
+ nodes,
731
+ edges
732
+ };
733
+ }
734
+ static fromFiles(files, rootFolder = "") {
735
+ const normalizePath = (p) => p.replace(/\\/g, "/");
736
+ const normalizedRoot = normalizePath(rootFolder);
737
+ const rootPrefix = normalizedRoot.endsWith("/") ? normalizedRoot : `${normalizedRoot}/`;
738
+ const normalizedPaths = /* @__PURE__ */ new Map();
739
+ const filteredFiles = [];
740
+ for (const file of files) {
741
+ var _normalizedPaths$get;
742
+ const filePath = (_normalizedPaths$get = normalizedPaths.get(file)) !== null && _normalizedPaths$get !== void 0 ? _normalizedPaths$get : normalizePath(file.path);
743
+ normalizedPaths.set(file, filePath);
744
+ if (!filePath.endsWith(".json") && (!rootFolder || filePath.startsWith(rootPrefix))) filteredFiles.push(file);
745
+ }
746
+ if (filteredFiles.length === 0) return null;
747
+ const treeNode = new TreeNode({
748
+ name: rootFolder || "",
749
+ path: rootFolder || "",
750
+ file: void 0
751
+ });
752
+ for (const file of filteredFiles) {
753
+ const parts = normalizedPaths.get(file).slice(rootPrefix.length).split("/");
754
+ let current = treeNode;
755
+ let currentPath = rootFolder;
756
+ for (const [index, part] of parts.entries()) {
757
+ const isLast = index === parts.length - 1;
758
+ currentPath += (currentPath.endsWith("/") ? "" : "/") + part;
759
+ let next = current.getChildByName(part);
760
+ if (!next) next = current.addChild({
761
+ name: part,
762
+ path: currentPath,
763
+ file: isLast ? file : void 0
764
+ });
765
+ current = next;
766
+ }
767
+ }
768
+ return treeNode;
769
+ }
770
+ };
771
+
772
+ //#endregion
773
+ //#region src/contexts/RootContext.ts
774
+ /**
775
+ * Context providing root-level functionalities such as exit hook, tree node structure, and file management.
776
+ * Define in the `render` helper of the runtime.
777
+ */
778
+ const RootContext = createContext({
779
+ exit: () => {},
780
+ treeNode: new TreeNode({
781
+ type: "Root",
782
+ props: {}
783
+ }),
784
+ fileManager: new FileManager()
785
+ });
786
+
787
+ //#endregion
788
+ //#region src/contexts/RenderContext.ts
789
+ /**
790
+ * Provides a context for tracking rendering state such as indentation and line length.
791
+ */
792
+ const RenderContext = createContext({
793
+ indentLevel: 0,
794
+ indentSize: 2,
795
+ currentLineLength: 0,
796
+ shouldBreak: false
797
+ });
798
+
799
+ //#endregion
800
+ //#region src/intrinsic.ts
801
+ function isFabricElement(value) {
802
+ return typeof value === "function" && "type" in value && "component" in value;
803
+ }
804
+ /**
805
+ * Type guard to check if a value is an intrinsic element
806
+ */
807
+ function isIntrinsic(value) {
808
+ return value && typeof value === "object" && value.__intrinsic === true;
809
+ }
810
+ /**
811
+ * Render a single intrinsic node
812
+ */
813
+ function renderIntrinsicNode(node, renderContext) {
814
+ switch (node.type) {
815
+ case "br":
816
+ renderContext.currentLineLength = 0;
817
+ return "\n";
818
+ case "indent":
819
+ renderContext.indentLevel++;
820
+ return "";
821
+ case "dedent":
822
+ renderContext.indentLevel = Math.max(0, renderContext.indentLevel - 1);
823
+ return "";
824
+ default: return "";
825
+ }
826
+ }
827
+ /**
828
+ * Helper: render a plain string while applying current indentation at the
829
+ * start of each logical line. This ensures `${indent}` intrinsics affect
830
+ * subsequent string content.
831
+ */
832
+ function renderIndent(content, renderContext) {
833
+ if (content.length === 0) return "";
834
+ const indentStr = " ".repeat(renderContext.indentLevel * renderContext.indentSize);
835
+ const lines = content.split("\n");
836
+ let out = "";
837
+ for (const [i$1, line] of lines.entries()) {
838
+ if (renderContext.currentLineLength === 0 && line.length > 0) {
839
+ out += indentStr + line;
840
+ renderContext.currentLineLength = indentStr.length + line.length;
841
+ } else {
842
+ out += line;
843
+ renderContext.currentLineLength += line.length;
844
+ }
845
+ if (i$1 !== lines.length - 1) {
846
+ out += "\n";
847
+ renderContext.currentLineLength = 0;
848
+ }
849
+ }
850
+ return out;
851
+ }
852
+ function renderIntrinsic(children, context) {
853
+ const renderContext = context || inject(RenderContext);
854
+ provide(RenderContext, renderContext);
855
+ if (!children) return "";
856
+ if (isFabricElement(children)) try {
857
+ return renderIntrinsic(children());
858
+ } catch {
859
+ return "";
860
+ }
861
+ if (Array.isArray(children)) return children.map((child) => renderIntrinsic(child)).join("");
862
+ if (isIntrinsic(children)) return renderIntrinsicNode(children, renderContext);
863
+ if (typeof children === "function") return renderIntrinsic(children());
864
+ if (typeof children === "string") return renderIndent(children, renderContext);
865
+ if (typeof children === "number") return renderIndent(String(children), renderContext);
866
+ if (typeof children === "boolean") return renderIndent(children ? "true" : "false", renderContext);
867
+ try {
868
+ return renderIndent(children, renderContext);
869
+ } catch {
870
+ return "";
871
+ }
872
+ }
873
+ /**
874
+ * Create an intrinsic element
875
+ */
876
+ function createIntrinsic(type) {
877
+ return {
878
+ type,
879
+ __intrinsic: true
880
+ };
881
+ }
882
+
883
+ //#endregion
884
+ //#region src/createComponent.ts
885
+ function createComponent(type, Component) {
886
+ return (...args) => {
887
+ const fn = (() => renderIntrinsic(Component(args[0])));
888
+ fn.component = Component;
889
+ fn.props = args[0];
890
+ fn.type = type;
891
+ fn.children = (...children) => {
892
+ var _args$;
893
+ const propsWithChildren = {
894
+ ...(_args$ = args[0]) !== null && _args$ !== void 0 ? _args$ : {},
895
+ children() {
896
+ return renderIntrinsic(children);
897
+ }
898
+ };
899
+ const fnChild = (() => renderIntrinsic(Component(propsWithChildren)));
900
+ fnChild.component = Component;
901
+ fnChild.props = args[0];
902
+ fnChild.type = type;
903
+ return fnChild;
904
+ };
905
+ return fn;
906
+ };
907
+ }
908
+
909
+ //#endregion
910
+ //#region src/components/Root.ts
911
+ /**
912
+ * This component provides the root behavior for the Fabric runtime.
913
+ */
914
+ const Root = createComponent("Root", ({ onError, onExit, treeNode, fileManager, children }) => {
915
+ provide(RootContext, {
916
+ exit: onExit,
917
+ treeNode,
918
+ fileManager
919
+ });
920
+ provide(NodeTreeContext, treeNode);
921
+ try {
922
+ return children;
923
+ } catch (e) {
924
+ if (e instanceof Error) onError === null || onError === void 0 || onError(e);
925
+ return "";
926
+ }
927
+ });
928
+ Root.displayName = "KubbRoot";
929
+
930
+ //#endregion
931
+ Object.defineProperty(exports, 'AsyncEventEmitter', {
932
+ enumerable: true,
933
+ get: function () {
934
+ return AsyncEventEmitter;
935
+ }
936
+ });
937
+ Object.defineProperty(exports, 'FileManager', {
938
+ enumerable: true,
939
+ get: function () {
940
+ return FileManager;
941
+ }
942
+ });
943
+ Object.defineProperty(exports, 'FileProcessor', {
944
+ enumerable: true,
945
+ get: function () {
946
+ return FileProcessor;
947
+ }
948
+ });
949
+ Object.defineProperty(exports, 'NodeTreeContext', {
950
+ enumerable: true,
951
+ get: function () {
952
+ return NodeTreeContext;
953
+ }
954
+ });
955
+ Object.defineProperty(exports, 'RenderContext', {
956
+ enumerable: true,
957
+ get: function () {
958
+ return RenderContext;
959
+ }
960
+ });
961
+ Object.defineProperty(exports, 'Root', {
962
+ enumerable: true,
963
+ get: function () {
964
+ return Root;
965
+ }
966
+ });
967
+ Object.defineProperty(exports, 'RootContext', {
968
+ enumerable: true,
969
+ get: function () {
970
+ return RootContext;
971
+ }
972
+ });
973
+ Object.defineProperty(exports, 'TreeNode', {
974
+ enumerable: true,
975
+ get: function () {
976
+ return TreeNode;
977
+ }
978
+ });
979
+ Object.defineProperty(exports, '_classPrivateFieldGet2', {
980
+ enumerable: true,
981
+ get: function () {
982
+ return _classPrivateFieldGet2;
983
+ }
984
+ });
985
+ Object.defineProperty(exports, '_classPrivateFieldInitSpec', {
986
+ enumerable: true,
987
+ get: function () {
988
+ return _classPrivateFieldInitSpec;
989
+ }
990
+ });
991
+ Object.defineProperty(exports, '_classPrivateFieldSet2', {
992
+ enumerable: true,
993
+ get: function () {
994
+ return _classPrivateFieldSet2;
995
+ }
996
+ });
997
+ Object.defineProperty(exports, '_defineProperty', {
998
+ enumerable: true,
999
+ get: function () {
1000
+ return _defineProperty;
1001
+ }
1002
+ });
1003
+ Object.defineProperty(exports, 'createComponent', {
1004
+ enumerable: true,
1005
+ get: function () {
1006
+ return createComponent;
1007
+ }
1008
+ });
1009
+ Object.defineProperty(exports, 'createContext', {
1010
+ enumerable: true,
1011
+ get: function () {
1012
+ return createContext;
1013
+ }
1014
+ });
1015
+ Object.defineProperty(exports, 'createFile', {
1016
+ enumerable: true,
1017
+ get: function () {
1018
+ return createFile;
1019
+ }
1020
+ });
1021
+ Object.defineProperty(exports, 'createIntrinsic', {
1022
+ enumerable: true,
1023
+ get: function () {
1024
+ return createIntrinsic;
1025
+ }
1026
+ });
1027
+ Object.defineProperty(exports, 'inject', {
1028
+ enumerable: true,
1029
+ get: function () {
1030
+ return inject;
1031
+ }
1032
+ });
1033
+ Object.defineProperty(exports, 'provide', {
1034
+ enumerable: true,
1035
+ get: function () {
1036
+ return provide;
1037
+ }
1038
+ });
1039
+ Object.defineProperty(exports, 'renderIndent', {
1040
+ enumerable: true,
1041
+ get: function () {
1042
+ return renderIndent;
1043
+ }
1044
+ });
1045
+ Object.defineProperty(exports, 'renderIntrinsic', {
1046
+ enumerable: true,
1047
+ get: function () {
1048
+ return renderIntrinsic;
1049
+ }
1050
+ });
1051
+ Object.defineProperty(exports, 'unprovide', {
1052
+ enumerable: true,
1053
+ get: function () {
1054
+ return unprovide;
1055
+ }
1056
+ });
1057
+ //# sourceMappingURL=Root-SC_lWG_q.cjs.map