@fluixi/compiler 1.0.0-alpha.68 → 1.0.0-alpha.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/babel-NY6FXXLW.mjs +2 -0
- package/dist/codegen/backend.cjs +1 -1
- package/dist/codegen/backend.d.ts +14 -0
- package/dist/codegen/backend.d.ts.map +1 -1
- package/dist/codegen/backends/imperative.cjs +1 -1
- package/dist/codegen/backends/imperative.d.ts +10 -1
- package/dist/codegen/backends/imperative.d.ts.map +1 -1
- package/dist/codegen/backends/imperative.js +127 -16
- package/dist/codegen/backends/imperative.mjs +1 -1
- package/dist/codegen/partial-template.cjs +1 -0
- package/dist/codegen/partial-template.d.ts +62 -0
- package/dist/codegen/partial-template.d.ts.map +1 -0
- package/dist/codegen/partial-template.js +0 -0
- package/dist/codegen/partial-template.mjs +1 -0
- package/dist/codegen/serialize-static.cjs +1 -0
- package/dist/codegen/serialize-static.d.ts +23 -0
- package/dist/codegen/serialize-static.d.ts.map +1 -0
- package/dist/codegen/serialize-static.js +140 -0
- package/dist/codegen/serialize-static.mjs +1 -0
- package/dist/frontend/babel/build-ir-lit.cjs +1 -1
- package/dist/frontend/babel/build-ir-lit.d.ts.map +1 -1
- package/dist/frontend/babel/build-ir-lit.js +5 -1
- package/dist/frontend/babel/build-ir-lit.mjs +1 -1
- package/dist/frontend/babel/build-ir.cjs +1 -1
- package/dist/frontend/babel/build-ir.d.ts.map +1 -1
- package/dist/frontend/babel/build-ir.js +36 -8
- package/dist/frontend/babel/build-ir.mjs +1 -1
- package/dist/frontend/babel/index.cjs +2 -2
- package/dist/frontend/babel/index.mjs +2 -2
- package/dist/frontend/babel/lower-template.cjs +1 -1
- package/dist/frontend/babel/lower-template.d.ts.map +1 -1
- package/dist/frontend/babel/lower-template.js +34 -5
- package/dist/frontend/babel/lower-template.mjs +1 -1
- package/dist/frontend/babel/plugin.cjs +2 -2
- package/dist/frontend/babel/plugin.d.ts +14 -0
- package/dist/frontend/babel/plugin.d.ts.map +1 -1
- package/dist/frontend/babel/plugin.js +291 -34
- package/dist/frontend/babel/plugin.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.mjs +1 -1
- package/dist/integrations.cjs +8 -8
- package/dist/integrations.d.ts +13 -0
- package/dist/integrations.d.ts.map +1 -1
- package/dist/integrations.js +9 -0
- package/dist/integrations.mjs +3 -3
- package/dist/ir/nodes.cjs +1 -1
- package/dist/ir/nodes.d.ts +43 -0
- package/dist/ir/nodes.d.ts.map +1 -1
- package/dist/optimize/analyze-static.cjs +1 -0
- package/dist/optimize/analyze-static.d.ts +40 -0
- package/dist/optimize/analyze-static.d.ts.map +1 -0
- package/dist/optimize/analyze-static.js +131 -0
- package/dist/optimize/analyze-static.mjs +1 -0
- package/dist/optimize/collapse-strategies.cjs +1 -0
- package/dist/optimize/collapse-strategies.d.ts +31 -0
- package/dist/optimize/collapse-strategies.d.ts.map +1 -0
- package/dist/optimize/collapse-strategies.js +33 -0
- package/dist/optimize/collapse-strategies.mjs +1 -0
- package/dist/options.cjs +1 -1
- package/dist/options.d.ts +24 -0
- package/dist/options.d.ts.map +1 -1
- package/dist/resolve/builtins.cjs +1 -0
- package/dist/resolve/builtins.d.ts +69 -0
- package/dist/resolve/builtins.d.ts.map +1 -0
- package/dist/resolve/builtins.js +64 -0
- package/dist/resolve/builtins.mjs +1 -0
- package/dist/resolve/component-resolver.cjs +1 -0
- package/dist/resolve/component-resolver.d.ts +69 -0
- package/dist/resolve/component-resolver.d.ts.map +1 -0
- package/dist/resolve/component-resolver.js +95 -0
- package/dist/resolve/component-resolver.mjs +1 -0
- package/dist/resolve/load-directive.cjs +1 -0
- package/dist/resolve/load-directive.d.ts +54 -0
- package/dist/resolve/load-directive.d.ts.map +1 -0
- package/dist/resolve/load-directive.js +93 -0
- package/dist/resolve/load-directive.mjs +1 -0
- package/dist/resolve/resolve-ir.cjs +1 -0
- package/dist/resolve/resolve-ir.d.ts +54 -0
- package/dist/resolve/resolve-ir.d.ts.map +1 -0
- package/dist/resolve/resolve-ir.js +58 -0
- package/dist/resolve/resolve-ir.mjs +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/babel-6UTCV3CC.mjs +0 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `load:` directive — when a component's code is fetched.
|
|
3
|
+
*
|
|
4
|
+
* Resolution decides *where* a component comes from; this decides *when*. They are
|
|
5
|
+
* separate because they vary independently: the location of `<RevenueChart>` is the
|
|
6
|
+
* same everywhere and belongs in config, while whether this particular usage should
|
|
7
|
+
* wait for the viewport is a property of the usage. Fusing them — `<Chart lazy="./Chart">`
|
|
8
|
+
* — was rejected for exactly that reason.
|
|
9
|
+
*
|
|
10
|
+
* `load:` joins the existing `use:`/`prop:`/`attr:`/`bool:` namespace, so it cannot
|
|
11
|
+
* collide with a real prop and the parser already has a directive taxonomy to hang it on.
|
|
12
|
+
*
|
|
13
|
+
* One parser for both frontends. `load:visible` is already a valid `JSXNamespacedName`,
|
|
14
|
+
* so JSX needs no parser change, and the html`` path produces a `LoadDirective` node —
|
|
15
|
+
* but both funnel through {@link parseLoadDirective}, so the two syntaxes cannot drift.
|
|
16
|
+
*/
|
|
17
|
+
/** When a component's module is fetched. */
|
|
18
|
+
export type IRLoadStrategy = {
|
|
19
|
+
kind: 'eager';
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'idle';
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'visible';
|
|
24
|
+
rootMargin?: string;
|
|
25
|
+
} | {
|
|
26
|
+
kind: 'interaction';
|
|
27
|
+
events: string[];
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'media';
|
|
30
|
+
query: string;
|
|
31
|
+
} | {
|
|
32
|
+
kind: 'never';
|
|
33
|
+
};
|
|
34
|
+
/** Everything is eager unless a directive says otherwise. */
|
|
35
|
+
export declare const EAGER: IRLoadStrategy;
|
|
36
|
+
/** Events that trigger an `interaction` load when none are named. */
|
|
37
|
+
export declare const DEFAULT_INTERACTION_EVENTS: readonly ["pointerdown", "focusin", "keydown"];
|
|
38
|
+
export declare class LoadDirectiveError extends Error {
|
|
39
|
+
}
|
|
40
|
+
/** True for an attribute name in the `load:` namespace. */
|
|
41
|
+
export declare function isLoadDirective(name: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Parse `load:<strategy>` plus its optional value into a strategy.
|
|
44
|
+
*
|
|
45
|
+
* `value` is the attribute's literal text — `load:visible="200px"` — or null for a bare
|
|
46
|
+
* directive. A `${…}` hole is rejected: the strategy has to be known at compile time
|
|
47
|
+
* because it decides how the module is emitted, and a runtime value cannot.
|
|
48
|
+
*/
|
|
49
|
+
export declare function parseLoadDirective(name: string, value: string | null): IRLoadStrategy;
|
|
50
|
+
/** True when the strategy means "not in the parent chunk". */
|
|
51
|
+
export declare function isDeferred(strategy: IRLoadStrategy): boolean;
|
|
52
|
+
/** A stable key for grouping references that share a strategy. */
|
|
53
|
+
export declare function strategyKey(strategy: IRLoadStrategy): string;
|
|
54
|
+
//# sourceMappingURL=load-directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-directive.d.ts","sourceRoot":"","sources":["../../src/resolve/load-directive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,4CAA4C;AAC5C,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAEtB,6DAA6D;AAC7D,eAAO,MAAM,KAAK,EAAE,cAAkC,CAAC;AAEvD,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,gDAAiD,CAAC;AAIzF,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,cAAc,CAqCrF;AAaD,8DAA8D;AAC9D,wBAAgB,UAAU,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAE5D;AAED,kEAAkE;AAClE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAW5D"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `load:` directive — when a component's code is fetched.
|
|
3
|
+
*
|
|
4
|
+
* Resolution decides *where* a component comes from; this decides *when*. They are
|
|
5
|
+
* separate because they vary independently: the location of `<RevenueChart>` is the
|
|
6
|
+
* same everywhere and belongs in config, while whether this particular usage should
|
|
7
|
+
* wait for the viewport is a property of the usage. Fusing them — `<Chart lazy="./Chart">`
|
|
8
|
+
* — was rejected for exactly that reason.
|
|
9
|
+
*
|
|
10
|
+
* `load:` joins the existing `use:`/`prop:`/`attr:`/`bool:` namespace, so it cannot
|
|
11
|
+
* collide with a real prop and the parser already has a directive taxonomy to hang it on.
|
|
12
|
+
*
|
|
13
|
+
* One parser for both frontends. `load:visible` is already a valid `JSXNamespacedName`,
|
|
14
|
+
* so JSX needs no parser change, and the html`` path produces a `LoadDirective` node —
|
|
15
|
+
* but both funnel through {@link parseLoadDirective}, so the two syntaxes cannot drift.
|
|
16
|
+
*/
|
|
17
|
+
/** Everything is eager unless a directive says otherwise. */
|
|
18
|
+
export const EAGER = { kind: 'eager' };
|
|
19
|
+
/** Events that trigger an `interaction` load when none are named. */
|
|
20
|
+
export const DEFAULT_INTERACTION_EVENTS = ['pointerdown', 'focusin', 'keydown'];
|
|
21
|
+
const STRATEGIES = new Set(['eager', 'idle', 'visible', 'interaction', 'media', 'never']);
|
|
22
|
+
export class LoadDirectiveError extends Error {
|
|
23
|
+
}
|
|
24
|
+
/** True for an attribute name in the `load:` namespace. */
|
|
25
|
+
export function isLoadDirective(name) {
|
|
26
|
+
return name.startsWith('load:');
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Parse `load:<strategy>` plus its optional value into a strategy.
|
|
30
|
+
*
|
|
31
|
+
* `value` is the attribute's literal text — `load:visible="200px"` — or null for a bare
|
|
32
|
+
* directive. A `${…}` hole is rejected: the strategy has to be known at compile time
|
|
33
|
+
* because it decides how the module is emitted, and a runtime value cannot.
|
|
34
|
+
*/
|
|
35
|
+
export function parseLoadDirective(name, value) {
|
|
36
|
+
const strategy = name.slice('load:'.length);
|
|
37
|
+
if (!STRATEGIES.has(strategy)) {
|
|
38
|
+
throw new LoadDirectiveError(`Unknown load strategy 'load:${strategy}'. Expected one of ${[...STRATEGIES].join(', ')}.`);
|
|
39
|
+
}
|
|
40
|
+
switch (strategy) {
|
|
41
|
+
case 'eager':
|
|
42
|
+
return EAGER;
|
|
43
|
+
case 'idle':
|
|
44
|
+
return { kind: 'idle' };
|
|
45
|
+
case 'never':
|
|
46
|
+
return { kind: 'never' };
|
|
47
|
+
case 'visible':
|
|
48
|
+
// `load:visible="200px"` starts the fetch before the element reaches the
|
|
49
|
+
// viewport, which is usually what you want — arriving exactly on intersection
|
|
50
|
+
// means the user waits for the network.
|
|
51
|
+
return value ? { kind: 'visible', rootMargin: value } : { kind: 'visible' };
|
|
52
|
+
case 'interaction':
|
|
53
|
+
return {
|
|
54
|
+
kind: 'interaction',
|
|
55
|
+
events: value ? splitEvents(value) : [...DEFAULT_INTERACTION_EVENTS],
|
|
56
|
+
};
|
|
57
|
+
case 'media':
|
|
58
|
+
if (!value) {
|
|
59
|
+
throw new LoadDirectiveError(`'load:media' needs a query, e.g. load:media="(min-width: 1024px)".`);
|
|
60
|
+
}
|
|
61
|
+
return { kind: 'media', query: value };
|
|
62
|
+
default:
|
|
63
|
+
/* c8 ignore next */
|
|
64
|
+
throw new LoadDirectiveError(`Unhandled load strategy '${strategy}'.`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function splitEvents(value) {
|
|
68
|
+
const events = value
|
|
69
|
+
.split(/[\s,]+/)
|
|
70
|
+
.map((e) => e.trim())
|
|
71
|
+
.filter(Boolean);
|
|
72
|
+
if (events.length === 0) {
|
|
73
|
+
throw new LoadDirectiveError(`'load:interaction' was given no event names.`);
|
|
74
|
+
}
|
|
75
|
+
return events;
|
|
76
|
+
}
|
|
77
|
+
/** True when the strategy means "not in the parent chunk". */
|
|
78
|
+
export function isDeferred(strategy) {
|
|
79
|
+
return strategy.kind !== 'eager' && strategy.kind !== 'never';
|
|
80
|
+
}
|
|
81
|
+
/** A stable key for grouping references that share a strategy. */
|
|
82
|
+
export function strategyKey(strategy) {
|
|
83
|
+
switch (strategy.kind) {
|
|
84
|
+
case 'visible':
|
|
85
|
+
return `visible:${strategy.rootMargin ?? ''}`;
|
|
86
|
+
case 'interaction':
|
|
87
|
+
return `interaction:${[...strategy.events].sort().join(',')}`;
|
|
88
|
+
case 'media':
|
|
89
|
+
return `media:${strategy.query}`;
|
|
90
|
+
default:
|
|
91
|
+
return strategy.kind;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={kind:"eager"},a=["pointerdown","focusin","keydown"],r=new Set(["eager","idle","visible","interaction","media","never"]),i=class extends Error{};function d(e){return e.startsWith("load:")}function c(e,n){let t=e.slice(5);if(!r.has(t))throw new i(`Unknown load strategy 'load:${t}'. Expected one of ${[...r].join(", ")}.`);switch(t){case"eager":return o;case"idle":return{kind:"idle"};case"never":return{kind:"never"};case"visible":return n?{kind:"visible",rootMargin:n}:{kind:"visible"};case"interaction":return{kind:"interaction",events:n?s(n):[...a]};case"media":if(!n)throw new i(`'load:media' needs a query, e.g. load:media="(min-width: 1024px)".`);return{kind:"media",query:n};default:throw new i(`Unhandled load strategy '${t}'.`)}}function s(e){let n=e.split(/[\s,]+/).map(t=>t.trim()).filter(Boolean);if(n.length===0)throw new i("'load:interaction' was given no event names.");return n}function l(e){return e.kind!=="eager"&&e.kind!=="never"}function g(e){switch(e.kind){case"visible":return`visible:${e.rootMargin??""}`;case"interaction":return`interaction:${[...e.events].sort().join(",")}`;case"media":return`media:${e.query}`;default:return e.kind}}export{a as DEFAULT_INTERACTION_EVENTS,o as EAGER,i as LoadDirectiveError,l as isDeferred,d as isLoadDirective,c as parseLoadDirective,g as strategyKey};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var w=(n,e)=>{for(var i in e)c(n,i,{get:e[i],enumerable:!0})},N=(n,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of y(e))!I.call(n,o)&&o!==i&&c(n,o,{get:()=>e[o],enumerable:!(s=M(e,o))||s.enumerable});return n};var k=n=>N(c({},"__esModule",{value:!0}),n);var h={};w(h,{resolveComponentSources:()=>b,walk:()=>f});module.exports=k(h);var l=["Show","For","Index","Switch","Match","Portal","Dynamic","ErrorBoundary"],p=["Suspense","SuspenseList","Await"],a=["Router","Outlet","Redirect","Link"],L=[...l,...p,...a],m=new Set([...l,...p]);function S(n={}){let{controlFlowModule:e="@fluixi/dom",coreModule:i="@fluixi/core",routerModule:s="@fluixi/core/router-next"}=n,o={};for(let d of l)o[d]=e;for(let d of p)o[d]=i;for(let d of a)o[d]=s;return o}var R={kind:"eager"};function b(n,e={}){let{resolver:i,isBound:s,modules:o,strategyFor:d}=e,g=S(o),x=new Map,v=new Set,E=t=>{let{name:r}=t;if(!r||r.includes(".")||s?.(r))return;let u=O(r);if(!u){v.add(r);return}let C=u.origin==="builtin"&&m.has(r)?R:d?.(t)??R;t.source={...u,loading:C},x.set(r,t.source)},O=t=>{if(m.has(t))return{module:g[t],export:t,origin:"builtin"};let r=i?.resolve(t);if(r)return{module:r.module,export:r.export,origin:"rule"};if(a.includes(t))return{module:g[t],export:t,origin:"builtin"}};return f(n,t=>{t.kind==="component"&&E(t)}),{resolved:x,unresolved:[...v]}}function f(n,e){let i=Array.isArray(n)?n:[n];for(let s of i){e(s);let o=s.children;o&&f(o,e)}}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The resolve pass: annotate component references in the IR with where they come from.
|
|
3
|
+
*
|
|
4
|
+
* Runs between the frontends and the optimizer, so every later pass reads provenance off
|
|
5
|
+
* the node instead of re-deriving it. Nothing here emits code — the pass only records a
|
|
6
|
+
* decision, which is what lets the same answer drive import injection, chunk grouping,
|
|
7
|
+
* hint planning and diagnostics without any of them agreeing by coincidence.
|
|
8
|
+
*
|
|
9
|
+
* Two suppliers, in precedence order:
|
|
10
|
+
*
|
|
11
|
+
* 1. **Control flow** (`Show`, `For`, `Switch`, …) — the name selects a lowering, so a
|
|
12
|
+
* rule cannot re-point it. Recorded as `builtin` so a later pass can tell the
|
|
13
|
+
* difference between "configured here" and "fixed by the compiler".
|
|
14
|
+
* 2. **Configured rules**, then the **router built-ins**. Router components are only an
|
|
15
|
+
* import, so a project's own `Link` wins; see `builtins.ts`.
|
|
16
|
+
*
|
|
17
|
+
* A name bound in the file is not resolved at all: the author's import always wins, and
|
|
18
|
+
* the caller supplies those bindings via `isBound`.
|
|
19
|
+
*/
|
|
20
|
+
import type { IRNode, IRComponent, IRComponentSource } from '../ir/nodes.js';
|
|
21
|
+
import type { ComponentResolver } from './component-resolver.js';
|
|
22
|
+
import { builtinComponentMap } from './builtins.js';
|
|
23
|
+
import { type IRLoadStrategy } from './load-directive.js';
|
|
24
|
+
export interface ResolveOptions {
|
|
25
|
+
/** Rules configured for the project. Omit when the project configures none. */
|
|
26
|
+
resolver?: ComponentResolver;
|
|
27
|
+
/** True when the name already has a binding in the file — an import the author wrote. */
|
|
28
|
+
isBound?: (name: string) => boolean;
|
|
29
|
+
/** Module overrides, so `routerModule` and friends are honoured. */
|
|
30
|
+
modules?: Parameters<typeof builtinComponentMap>[0];
|
|
31
|
+
/**
|
|
32
|
+
* The `load:` strategy for a reference, when the frontend found one on the tag.
|
|
33
|
+
* Keyed by node so two usages of the same component can load differently — the
|
|
34
|
+
* whole reason timing lives at the usage site and location does not.
|
|
35
|
+
*/
|
|
36
|
+
strategyFor?: (node: IRComponent) => IRLoadStrategy | undefined;
|
|
37
|
+
}
|
|
38
|
+
export interface ResolveReport {
|
|
39
|
+
/** Every reference the pass annotated, by name. */
|
|
40
|
+
resolved: Map<string, IRComponentSource>;
|
|
41
|
+
/**
|
|
42
|
+
* Capitalised tags nothing supplies and nothing binds.
|
|
43
|
+
*
|
|
44
|
+
* These compile to a reference to an identifier that does not exist — the build
|
|
45
|
+
* succeeds and the page throws at runtime — so they are the pass's most useful
|
|
46
|
+
* output for diagnostics.
|
|
47
|
+
*/
|
|
48
|
+
unresolved: string[];
|
|
49
|
+
}
|
|
50
|
+
/** Annotate every component reference in `root`, returning what was decided. */
|
|
51
|
+
export declare function resolveComponentSources(root: IRNode | IRNode[], options?: ResolveOptions): ResolveReport;
|
|
52
|
+
/** Depth-first walk over every node that can contain children. */
|
|
53
|
+
export declare function walk(root: IRNode | IRNode[], visit: (node: IRNode) => void): void;
|
|
54
|
+
//# sourceMappingURL=resolve-ir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-ir.d.ts","sourceRoot":"","sources":["../../src/resolve/resolve-ir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAA0C,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAS,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,yFAAyF;IACzF,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACpC,oEAAoE;IACpE,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,cAAc,GAAG,SAAS,CAAC;CACjE;AAED,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACzC;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,gFAAgF;AAChF,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,OAAO,GAAE,cAAmB,GAC3B,aAAa,CA8Cf;AAED,kEAAkE;AAClE,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAOjF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { RESERVED_COMPONENTS, ROUTER_COMPONENTS, builtinComponentMap } from './builtins.js';
|
|
2
|
+
import { EAGER } from './load-directive.js';
|
|
3
|
+
/** Annotate every component reference in `root`, returning what was decided. */
|
|
4
|
+
export function resolveComponentSources(root, options = {}) {
|
|
5
|
+
const { resolver, isBound, modules, strategyFor } = options;
|
|
6
|
+
const builtins = builtinComponentMap(modules);
|
|
7
|
+
const resolved = new Map();
|
|
8
|
+
const unresolved = new Set();
|
|
9
|
+
const annotate = (node) => {
|
|
10
|
+
const { name } = node;
|
|
11
|
+
// A dotted path (`Ctx.Provider`) or a dynamic tag needs its root binding, which is
|
|
12
|
+
// an ordinary expression the author wrote — nothing to supply.
|
|
13
|
+
if (!name || name.includes('.'))
|
|
14
|
+
return;
|
|
15
|
+
if (isBound?.(name))
|
|
16
|
+
return;
|
|
17
|
+
const source = sourceFor(name);
|
|
18
|
+
if (!source) {
|
|
19
|
+
unresolved.add(name);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
// Control flow is lowered by name, so a load strategy on it has nothing to defer;
|
|
23
|
+
// ignoring it here keeps codegen from having to special-case the combination.
|
|
24
|
+
const loading = source.origin === 'builtin' && RESERVED_COMPONENTS.has(name)
|
|
25
|
+
? EAGER
|
|
26
|
+
: (strategyFor?.(node) ?? EAGER);
|
|
27
|
+
node.source = { ...source, loading };
|
|
28
|
+
resolved.set(name, node.source);
|
|
29
|
+
};
|
|
30
|
+
const sourceFor = (name) => {
|
|
31
|
+
// Control flow first: the name is fixed by the compiler.
|
|
32
|
+
if (RESERVED_COMPONENTS.has(name)) {
|
|
33
|
+
return { module: builtins[name], export: name, origin: 'builtin' };
|
|
34
|
+
}
|
|
35
|
+
const rule = resolver?.resolve(name);
|
|
36
|
+
if (rule)
|
|
37
|
+
return { module: rule.module, export: rule.export, origin: 'rule' };
|
|
38
|
+
if (ROUTER_COMPONENTS.includes(name)) {
|
|
39
|
+
return { module: builtins[name], export: name, origin: 'builtin' };
|
|
40
|
+
}
|
|
41
|
+
return undefined;
|
|
42
|
+
};
|
|
43
|
+
walk(root, (node) => {
|
|
44
|
+
if (node.kind === 'component')
|
|
45
|
+
annotate(node);
|
|
46
|
+
});
|
|
47
|
+
return { resolved, unresolved: [...unresolved] };
|
|
48
|
+
}
|
|
49
|
+
/** Depth-first walk over every node that can contain children. */
|
|
50
|
+
export function walk(root, visit) {
|
|
51
|
+
const nodes = Array.isArray(root) ? root : [root];
|
|
52
|
+
for (const node of nodes) {
|
|
53
|
+
visit(node);
|
|
54
|
+
const children = node.children;
|
|
55
|
+
if (children)
|
|
56
|
+
walk(children, visit);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=["Show","For","Index","Switch","Match","Portal","Dynamic","ErrorBoundary"],l=["Suspense","SuspenseList","Await"],a=["Router","Outlet","Redirect","Link"],C=[...c,...l,...a],p=new Set([...c,...l]);function x(t={}){let{controlFlowModule:i="@fluixi/dom",coreModule:d="@fluixi/core",routerModule:s="@fluixi/core/router-next"}=t,o={};for(let r of c)o[r]=i;for(let r of l)o[r]=d;for(let r of a)o[r]=s;return o}var m={kind:"eager"};function N(t,i={}){let{resolver:d,isBound:s,modules:o,strategyFor:r}=i,R=x(o),f=new Map,g=new Set,S=e=>{let{name:n}=e;if(!n||n.includes(".")||s?.(n))return;let u=E(n);if(!u){g.add(n);return}let O=u.origin==="builtin"&&p.has(n)?m:r?.(e)??m;e.source={...u,loading:O},f.set(n,e.source)},E=e=>{if(p.has(e))return{module:R[e],export:e,origin:"builtin"};let n=d?.resolve(e);if(n)return{module:n.module,export:n.export,origin:"rule"};if(a.includes(e))return{module:R[e],export:e,origin:"builtin"}};return v(t,e=>{e.kind==="component"&&S(e)}),{resolved:f,unresolved:[...g]}}function v(t,i){let d=Array.isArray(t)?t:[t];for(let s of d){i(s);let o=s.children;o&&v(o,i)}}export{N as resolveComponentSources,v as walk};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/modules/index.d.ts","../src/ir/nodes.ts","../src/options.ts","../src/frontend/types.ts","../src/codegen/contract.ts","../src/codegen/backend.ts","../src/codegen/backends/imperative.ts","../src/index.ts","../../../node_modules/.pnpm/@babel+types@7.29.7/node_modules/@babel/types/lib/index.d.ts","../../../node_modules/.pnpm/@types+babel__generator@7.27.0/node_modules/@types/babel__generator/index.d.ts","../../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/.pnpm/@types+babel__template@7.4.4/node_modules/@types/babel__template/index.d.ts","../../../node_modules/.pnpm/@types+babel__traverse@7.28.0/node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/.pnpm/@types+babel__core@7.20.5/node_modules/@types/babel__core/index.d.ts","../src/frontend/babel/server-functions.ts","../../../node_modules/.pnpm/@types+babel__helper-plugin-utils@7.10.3/node_modules/@types/babel__helper-plugin-utils/index.d.ts","../../template-parser/dist/ast.d.ts","../../template-parser/dist/reader.d.ts","../../template-parser/dist/directives.d.ts","../../template-parser/dist/parser.d.ts","../../template-parser/dist/index.d.ts","../src/frontend/babel/lower-template.ts","../src/frontend/babel/build-ir-lit.ts","../src/frontend/babel/build-ir.ts","../src/frontend/babel/plugin.ts","../src/frontend/babel/types.ts","../src/frontend/babel/index.ts","../src/integrations.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/index.d.ts"],"fileIdsList":[[63,129],[129],[63,64,65,66,67,129],[68,129],[63,65,129],[83,129],[86,129],[87,92,120,129],[88,99,100,107,117,128,129],[88,89,99,107,129],[90,129],[91,92,100,108,129],[92,117,125,129],[93,95,99,107,129],[94,129],[95,96,129],[99,129],[97,99,129],[99,100,101,117,128,129],[99,100,101,114,117,120,129],[129,133],[95,99,102,107,117,128,129],[99,100,102,103,107,117,125,128,129],[102,104,117,125,128,129],[83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135],[99,105,129],[106,128,129],[95,99,107,117,129],[108,129],[109,129],[86,110,129],[111,127,129,133],[112,129],[113,129],[99,114,115,129],[114,116,129,131],[87,99,117,118,119,120,129],[87,117,119,129],[117,118,129],[120,129],[121,129],[99,123,124,129],[123,124,129],[92,107,117,125,129],[126,129],[107,127,129],[87,102,113,128,129],[92,129],[117,129,130],[129,131],[129,132],[87,92,99,101,110,117,128,129,131,133],[117,129,134],[54,129],[55,56,57,59,129],[55,56,57,59,60,129],[55,129],[55,56,68,76,129],[55,56,61,64,68,77,129],[55,79,80,129],[55,56,61,64,68,75,78,129],[55,56,61,68,70,77,78,129],[55,68,129],[55,57,129],[55,56,57,58,59,60,61,129],[55,68,69,81,100,109,129],[71,129],[71,72,73,74,129],[71,72,73,129]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"b8f34dd1757f68e03262b1ca3ddfa668a855b872f8bdd5224d6f993a7b37dc2c","impliedFormat":99},{"version":"7e653a9ed0a0a40152c7c3f079d7b07ca63c2a1d65016f0f9d84a77b8b660198","signature":"6b2330e972048d8539d0f94ff2e8f3a5dc416ff65132ea110007382a0f4f3105","impliedFormat":99},{"version":"2e79b85bcec7f731856c46ffc5ad013b1cbf1eeb3c80af3cbc5d0009b669cfe6","signature":"54bbaa2548838375065016a9b7f78d335adb8bf9d55ddb0f6f25c43f6e97d9f3","impliedFormat":99},{"version":"60a693d5659165194602e1b1d3d420f07a296c8f6b3714a4d76c2a7acee508e2","signature":"8b5d4393bf93f149ae49239c2ce94c82b3847ec7cdff33624601cc5f77d18432","impliedFormat":99},{"version":"2bfdd24b68278d323e8ef9fb8e83af5a87030ee1aedf04fc2c44437edb8bbb52","signature":"5cd259db1a34442e70e925b83823e1f4576f3c5b84d9ed659f40c1a6d4ab4fbf","impliedFormat":99},{"version":"873ee84d8f4029cf8a6dec53384ac3c8aae9d0f0e51c0fb3dd55850c21fd10cc","signature":"a3a283b328cf1906d1950fe49632e92ac8c315b977fc1f177d8dab1539abd48e","impliedFormat":99},{"version":"e5be2cbd77067e4ad21c58f2f84640d7b0ff546fbd003c59a5fbfb60a4a40319","signature":"fb4892912e3c0c76f7c4dac23dcd3e9dc1b9cd709d7899f756ed001bd9d40b65","impliedFormat":99},{"version":"1ccce91770af3c549676ee15c5b2fcd6d9ee8ad28ed3b743990be2d82e79454f","signature":"e1e674919ffd8bace4f3680d3beb937085cb7268dcaf7257ef4a51ff2c874f04","impliedFormat":99},{"version":"556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9","impliedFormat":1},{"version":"b6d03c9cfe2cf0ba4c673c209fcd7c46c815b2619fd2aad59fc4229aaef2ed43","impliedFormat":1},{"version":"95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958","impliedFormat":1},{"version":"670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","impliedFormat":1},{"version":"13b77ab19ef7aadd86a1e54f2f08ea23a6d74e102909e3c00d31f231ed040f62","impliedFormat":1},{"version":"069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9","impliedFormat":1},{"version":"2aee05f630d328eb849b7d294bfd64d600d863242eba60c7e5b73af701413227","signature":"63953910c9694e0b8fec98b65f363c2bb51d997025a7416297117e51a443df97","impliedFormat":99},{"version":"5ab6d179a1c49dacd5106af2173d141983d631143a07c65e8e4b9551d688b215","impliedFormat":1},{"version":"ca5c2ce2e7ee58f4d934256c1ff07f72dccc31f6ff2c623f0c7af8bc229a6a07","impliedFormat":99},{"version":"5f2c103a31a73eb51c02fdb720070596b04ca102ffee940cdceaf6406dcee0d6","impliedFormat":99},{"version":"28b2c0f5b5edf8bb5376b7261a7b0e4be39c2b9c5873046e8c5faa61f22a6c68","impliedFormat":99},{"version":"2fef2e561e599a2b0cf4fec0383768c42e104997aef60f3441a661a073e237f4","impliedFormat":99},{"version":"7b66e663ac54c9dfd176aab1ff7f2adaf4f6a2bcc61ae983dadfebec74eab286","impliedFormat":99},{"version":"613197eb574846151ee8c1086e49464943a7c5de46b71d85f956c670488353cd","signature":"bce849aa3bd711cf45cf57546e4240c33a7656f2f584ce253acbfe9479ab586c","impliedFormat":99},{"version":"2d263969903d3739d322cb0ad051c83960b23cb6af4bdcc40148925062c22421","signature":"fd19881bda63bee0d169cd92f845eb39750c5724dcded37048df4e4ec2f7b967","impliedFormat":99},{"version":"f5a57e8af749a0b6dca9ca758e3d6de069d544f835e4f00bd03d8f01c5e7ecf5","signature":"a7585757d437bddbe4b17558770b2b6ceb4be8cbfcd27ab83d049e8d3372b0ef","impliedFormat":99},{"version":"547f924df191122a3cbf860640b45d26e29b4abe46a110e849b5a95ab0c26697","signature":"e78097ee9cf0c1ef2f530e996757f6c93b38d7990f652a790336eeb5c39e9b68","impliedFormat":99},{"version":"a4e40c2d52f5e35664e1938e7edf87c42bfd90d57d0214a358fd723d1803e1bb","signature":"e86cdf3023f5521102ea11f4c9f236fc98d3d79bcd97ada46c59221f1ce59e38","impliedFormat":99},{"version":"b22d5b7cce1edc2bc77703d7d2a0e7b74f623c01f8362e685ad48af9699d57d2","signature":"4fbfa044ca01682652ef5e00f484727e6d0013ca781ecc444ae2ddf3bbab3c1a","impliedFormat":99},{"version":"f2e1dcfaf9337643fef70beac0df950ef142fe9dcac6f92ed5d89c7b3e32454a","signature":"a220df538dda98e99f40b7947ee54230b62a51c67f92f18c639e810b98309ed1","impliedFormat":99},{"version":"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"f749812878fecfa53cfc13b36e5d35086fb6377983a9df44175da83ccc23af1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3","impliedFormat":1},{"version":"211e3f15fbced4ab4be19f49ffa990b9ff20d749d33b65ff753be691e7616239","affectsGlobalScope":true,"impliedFormat":1},{"version":"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","impliedFormat":1},{"version":"5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713","impliedFormat":1},{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","impliedFormat":1},{"version":"bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","impliedFormat":1},{"version":"1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","impliedFormat":1},{"version":"4eaff3d8e10676fd7913d8c108890e71c688e1e7d52f6d1d55c39514f493dc47","impliedFormat":1},{"version":"14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","impliedFormat":1},{"version":"5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea","impliedFormat":1},{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true,"impliedFormat":1},{"version":"00dee7cdca8b8420c47ea4a31a34b8e8294013ebc4f463fd941e867e7bf05029","affectsGlobalScope":true,"impliedFormat":1},{"version":"3256f3cccd578f9e7fe3a28096c505634bebcee8afb738ffa99368e536ca3a0b","impliedFormat":1},{"version":"1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","impliedFormat":1},{"version":"7f138842074d0a40681775af008c8452093b68c383c94de31759e853c6d06b5c","impliedFormat":1},{"version":"a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","impliedFormat":1},{"version":"8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","impliedFormat":1},{"version":"2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58","impliedFormat":1},{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true,"impliedFormat":1},{"version":"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","impliedFormat":1},{"version":"7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","impliedFormat":1},{"version":"b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30","impliedFormat":1},{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","impliedFormat":1},{"version":"210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","impliedFormat":1},{"version":"36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","impliedFormat":1},{"version":"0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","impliedFormat":1},{"version":"25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","impliedFormat":1},{"version":"4f3fdeba4e28e21aa719c081b8dc8f91d47e12e773389b9d35679c08151c9d37","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","impliedFormat":1},{"version":"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","impliedFormat":1},{"version":"23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","impliedFormat":1},{"version":"f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7","impliedFormat":1},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","impliedFormat":1},{"version":"3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","impliedFormat":1},{"version":"5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2","impliedFormat":1},{"version":"a73ae8c0e62103bb9e21bb6538700881bf135b9a8b125b857ec68edfa0da4ed3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e1c1b2fbe236bf7ee3e342eeae7e20efb8988a0ac7da1cbbfa2c1f66b76c3423","affectsGlobalScope":true,"impliedFormat":1},{"version":"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","impliedFormat":1},{"version":"0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","impliedFormat":1},{"version":"e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","impliedFormat":1},{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6dd3dba8e665ac43d279e0fdf5219edda0eed69b5e9a5061f46cd6a65c4f7a1","impliedFormat":1}],"root":[[56,62],69,[76,82]],"options":{"composite":true,"declarationMap":true,"emitDeclarationOnly":false,"importHelpers":true,"module":199,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":9,"tsBuildInfoFile":"./tsconfig.lib.tsbuildinfo"},"referencedMap":[[65,1],[63,2],[68,3],[64,1],[70,4],[66,5],[67,1],[83,6],[84,6],[86,7],[87,8],[88,9],[89,10],[90,11],[91,12],[92,13],[93,14],[94,15],[95,16],[96,16],[98,17],[97,18],[99,17],[100,19],[101,20],[85,21],[135,2],[102,22],[103,23],[104,24],[136,25],[105,26],[106,27],[107,28],[108,29],[109,30],[110,31],[111,32],[112,33],[113,34],[114,35],[115,35],[116,36],[117,37],[119,38],[118,39],[120,40],[121,41],[122,2],[123,42],[124,43],[125,44],[126,45],[127,46],[128,47],[129,48],[130,49],[131,50],[132,51],[133,52],[134,53],[55,54],[54,2],[52,2],[53,2],[9,2],[10,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[21,2],[22,2],[4,2],[23,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[1,2],[51,2],[60,55],[61,56],[59,57],[77,58],[78,59],[81,60],[76,61],[79,62],[69,63],[80,63],[58,64],[62,65],[82,66],[56,57],[57,57],[71,2],[73,67],[75,68],[74,69],[72,67]],"latestChangedDtsFile":"./integrations.d.ts","version":"5.8.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/modules/index.d.ts","../src/resolve/load-directive.ts","../src/ir/nodes.ts","../src/resolve/component-resolver.ts","../src/resolve/builtins.ts","../src/resolve/resolve-ir.ts","../src/options.ts","../src/frontend/types.ts","../src/codegen/contract.ts","../src/codegen/backend.ts","../src/codegen/serialize-static.ts","../src/codegen/partial-template.ts","../src/codegen/backends/imperative.ts","../src/index.ts","../../../node_modules/.pnpm/@babel+types@7.29.7/node_modules/@babel/types/lib/index.d.ts","../../../node_modules/.pnpm/@types+babel__generator@7.27.0/node_modules/@types/babel__generator/index.d.ts","../../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/.pnpm/@types+babel__template@7.4.4/node_modules/@types/babel__template/index.d.ts","../../../node_modules/.pnpm/@types+babel__traverse@7.28.0/node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/.pnpm/@types+babel__core@7.20.5/node_modules/@types/babel__core/index.d.ts","../src/frontend/babel/server-functions.ts","../../../node_modules/.pnpm/@types+babel__helper-plugin-utils@7.10.3/node_modules/@types/babel__helper-plugin-utils/index.d.ts","../src/optimize/collapse-strategies.ts","../../template-parser/dist/ast.d.ts","../../template-parser/dist/reader.d.ts","../../template-parser/dist/directives.d.ts","../../template-parser/dist/parser.d.ts","../../template-parser/dist/index.d.ts","../src/frontend/babel/lower-template.ts","../src/optimize/analyze-static.ts","../src/frontend/babel/build-ir-lit.ts","../src/frontend/babel/build-ir.ts","../src/frontend/babel/plugin.ts","../src/frontend/babel/types.ts","../src/frontend/babel/index.ts","../src/integrations.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@18.16.9/node_modules/@types/node/index.d.ts"],"fileIdsList":[[69,137],[137],[69,70,71,72,73,137],[74,137],[69,71,137],[91,137],[94,137],[95,100,128,137],[96,107,108,115,125,136,137],[96,97,107,115,137],[98,137],[99,100,108,116,137],[100,125,133,137],[101,103,107,115,137],[102,137],[103,104,137],[107,137],[105,107,137],[107,108,109,125,136,137],[107,108,109,122,125,128,137],[137,141],[103,107,110,115,125,136,137],[107,108,110,111,115,125,133,136,137],[110,112,125,133,136,137],[91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143],[107,113,137],[114,136,137],[103,107,115,125,137],[116,137],[117,137],[94,118,137],[119,135,137,141],[120,137],[121,137],[107,122,123,137],[122,124,137,139],[95,107,125,126,127,128,137],[95,125,127,137],[125,126,137],[128,137],[129,137],[107,131,132,137],[131,132,137],[100,115,125,133,137],[134,137],[115,135,137],[95,110,121,136,137],[100,137],[125,137,138],[137,139],[137,140],[95,100,107,109,118,125,136,137,139,141],[125,137,142],[54,137],[55,57,61,63,137],[55,57,61,63,64,65,66,137],[55,137],[55,57,65,137],[55,57,137],[55,57,74,83,84,137],[55,56,57,67,70,74,84,85,137],[55,87,88,137],[55,56,57,67,70,74,82,86,137],[55,56,57,58,59,60,67,74,76,77,85,86,137],[55,74,137],[55,61,137],[55,57,58,59,60,61,62,63,64,67,137],[55,58,74,75,89,108,117,137],[55,56,137],[55,56,57,60,137],[55,58,137],[55,56,57,58,59,137],[78,137],[78,79,80,81,137],[78,79,80,137]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"b8f34dd1757f68e03262b1ca3ddfa668a855b872f8bdd5224d6f993a7b37dc2c","impliedFormat":99},{"version":"ace4a7570736b0fad994b644dc3a863195d50de379a9116281e4d30b871790c8","signature":"e3903df0d16a9dc03e438d2ccba068247103482f2caac50f8db3b0f1f8b81168","impliedFormat":99},{"version":"39253067c9fd69e54d25541589dadc24d0609d719984b746364553d747f15b11","signature":"407917639e36f7317b529265b09cdf7d416d7b0c1a2e2a490a5c0a696426f032","impliedFormat":99},{"version":"f47601524bab87f8430e6695eb97a4b22566cc199933b285b00cfa03a29396a0","signature":"3f227af02f5302ba2c50d877ad43e339b0ff0d136b89a3855422613f40fad6af","impliedFormat":99},{"version":"d412887b8073c7dbb6df14670fd44221d6ea1b517deb51f9a6a58b10cf7f53e7","signature":"374c63519a0f858eedd0edfcf56ce034f6be2fd0e2c772bcfb0346f8375ce386","impliedFormat":99},{"version":"bd0c5e10a9c828186f3ba49abf617e2337292269a070245deb7072e3a6c7a6f6","signature":"b3da054827eff355c9dcaae554555e125fa49d05cc18da822c54aaf1bd74d53a","impliedFormat":99},{"version":"1728254dc05b0fbe5a607468b5e16c06f40f269f67e57f3edc2154ac6ed0323c","signature":"639d761ffeb5641d7cfd83cb1d9f50e648485b7207f13b0953cf6d2e834f4443","impliedFormat":99},{"version":"60a693d5659165194602e1b1d3d420f07a296c8f6b3714a4d76c2a7acee508e2","signature":"8b5d4393bf93f149ae49239c2ce94c82b3847ec7cdff33624601cc5f77d18432","impliedFormat":99},{"version":"2bfdd24b68278d323e8ef9fb8e83af5a87030ee1aedf04fc2c44437edb8bbb52","signature":"5cd259db1a34442e70e925b83823e1f4576f3c5b84d9ed659f40c1a6d4ab4fbf","impliedFormat":99},{"version":"3ed56f9449a59e2698da5c2c8a3cd202c81dcfbdeaf8831fdf6c6c5c4399f6a7","signature":"449293808ea830d8ada80e4c319742b666d851493fe7d863bd2f85fccec01618","impliedFormat":99},{"version":"ab803c4930c422a435393712d24ac16ea357ce20c63c4722efebd322434031cc","signature":"fc81c207593e9f14fce0636c6ab33e922c49097f145d0d97e62b97d9e5a93325","impliedFormat":99},{"version":"5fb71dae9340ad95b7dd264f2b153cc6a4e5d0a75a8a9bdf5046acb46c02a6d5","signature":"0e062078b08fff377f61237cae9a61740b9bb581448caa87b78a03525ac5b27b","impliedFormat":99},{"version":"d2192e1d0038448005d89b78d17bf6bce5195591578f450da9bb5142fb4d7799","signature":"facdd9b040f73829af9fe9a072fef542e794c7ffdee18e2027f41945aa7e7798","impliedFormat":99},{"version":"d8266c0befc5de07e64417ba9fe3bedf4aa093cbb873f7a25c6aafa2254859ad","signature":"408814b49dbf6c0af33bc37fc492b6472a692b9032e594d4931d333c59539ddd","impliedFormat":99},{"version":"556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9","impliedFormat":1},{"version":"b6d03c9cfe2cf0ba4c673c209fcd7c46c815b2619fd2aad59fc4229aaef2ed43","impliedFormat":1},{"version":"95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958","impliedFormat":1},{"version":"670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","impliedFormat":1},{"version":"13b77ab19ef7aadd86a1e54f2f08ea23a6d74e102909e3c00d31f231ed040f62","impliedFormat":1},{"version":"069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9","impliedFormat":1},{"version":"2aee05f630d328eb849b7d294bfd64d600d863242eba60c7e5b73af701413227","signature":"63953910c9694e0b8fec98b65f363c2bb51d997025a7416297117e51a443df97","impliedFormat":99},{"version":"5ab6d179a1c49dacd5106af2173d141983d631143a07c65e8e4b9551d688b215","impliedFormat":1},{"version":"1f176fa40cab84133370e96fe8d1e4f34a44460838aa430905452b4b3fbb2a0c","signature":"3d8087c572a8f1b3e5036a56c410960bb91162f5b968c044e48a5f797839c559","impliedFormat":99},{"version":"a1d742d82223ed3ab102ab299e3eb6759e6be5b1572eaca01f0d67c3c4b0535a","impliedFormat":99},{"version":"5f2c103a31a73eb51c02fdb720070596b04ca102ffee940cdceaf6406dcee0d6","impliedFormat":99},{"version":"28b2c0f5b5edf8bb5376b7261a7b0e4be39c2b9c5873046e8c5faa61f22a6c68","impliedFormat":99},{"version":"2fef2e561e599a2b0cf4fec0383768c42e104997aef60f3441a661a073e237f4","impliedFormat":99},{"version":"7b66e663ac54c9dfd176aab1ff7f2adaf4f6a2bcc61ae983dadfebec74eab286","impliedFormat":99},{"version":"7d47b871c2aceac22209abeece90de4ded31d5df124c4c92e67d494e1328f68e","signature":"bce849aa3bd711cf45cf57546e4240c33a7656f2f584ce253acbfe9479ab586c","impliedFormat":99},{"version":"1c868c48285c45ac027d7298e76e12b70d63758d886325ea329a8e9edda48926","signature":"c23d28e6b3c436ce9c38c1db323cb9b4850fe59ab1c46e43d17cf47c78369774","impliedFormat":99},{"version":"58466ad6a2c2bbf6bde99693a6475497aa08a5bf9349fac8284ef23989ff3e75","signature":"fd19881bda63bee0d169cd92f845eb39750c5724dcded37048df4e4ec2f7b967","impliedFormat":99},{"version":"9334c1552e9e7033f05a9ba0820e46cdf79c4aeec50343200a194cf51068df4a","signature":"a7585757d437bddbe4b17558770b2b6ceb4be8cbfcd27ab83d049e8d3372b0ef","impliedFormat":99},{"version":"2a0dd1d838b86bf9b4603ac8f8641844572856c0cbf2419c66db6aaa5fbc0596","signature":"0a7b10a01c858b694af586358bc9335ddfafde8eaed7edb0ef37ba326852fddf","impliedFormat":99},{"version":"a4e40c2d52f5e35664e1938e7edf87c42bfd90d57d0214a358fd723d1803e1bb","signature":"e86cdf3023f5521102ea11f4c9f236fc98d3d79bcd97ada46c59221f1ce59e38","impliedFormat":99},{"version":"b22d5b7cce1edc2bc77703d7d2a0e7b74f623c01f8362e685ad48af9699d57d2","signature":"4fbfa044ca01682652ef5e00f484727e6d0013ca781ecc444ae2ddf3bbab3c1a","impliedFormat":99},{"version":"940886a614fe2fe0196d005b1ba36c1046b3cd793c0857387af9c86bdf2a17cb","signature":"02f238c2ae2c6a7ac5c11595900972345f80c36b52f3bcc742c5b4fd7e2bf789","impliedFormat":99},{"version":"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"f749812878fecfa53cfc13b36e5d35086fb6377983a9df44175da83ccc23af1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3","impliedFormat":1},{"version":"211e3f15fbced4ab4be19f49ffa990b9ff20d749d33b65ff753be691e7616239","affectsGlobalScope":true,"impliedFormat":1},{"version":"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","impliedFormat":1},{"version":"5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713","impliedFormat":1},{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","impliedFormat":1},{"version":"bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","impliedFormat":1},{"version":"1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","impliedFormat":1},{"version":"4eaff3d8e10676fd7913d8c108890e71c688e1e7d52f6d1d55c39514f493dc47","impliedFormat":1},{"version":"14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","impliedFormat":1},{"version":"5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea","impliedFormat":1},{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true,"impliedFormat":1},{"version":"00dee7cdca8b8420c47ea4a31a34b8e8294013ebc4f463fd941e867e7bf05029","affectsGlobalScope":true,"impliedFormat":1},{"version":"3256f3cccd578f9e7fe3a28096c505634bebcee8afb738ffa99368e536ca3a0b","impliedFormat":1},{"version":"1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","impliedFormat":1},{"version":"7f138842074d0a40681775af008c8452093b68c383c94de31759e853c6d06b5c","impliedFormat":1},{"version":"a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","impliedFormat":1},{"version":"8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","impliedFormat":1},{"version":"2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58","impliedFormat":1},{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true,"impliedFormat":1},{"version":"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","impliedFormat":1},{"version":"7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","impliedFormat":1},{"version":"b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30","impliedFormat":1},{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","impliedFormat":1},{"version":"210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","impliedFormat":1},{"version":"36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","impliedFormat":1},{"version":"0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","impliedFormat":1},{"version":"25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","impliedFormat":1},{"version":"4f3fdeba4e28e21aa719c081b8dc8f91d47e12e773389b9d35679c08151c9d37","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","impliedFormat":1},{"version":"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","impliedFormat":1},{"version":"23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","impliedFormat":1},{"version":"f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7","impliedFormat":1},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","impliedFormat":1},{"version":"3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","impliedFormat":1},{"version":"5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2","impliedFormat":1},{"version":"a73ae8c0e62103bb9e21bb6538700881bf135b9a8b125b857ec68edfa0da4ed3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e1c1b2fbe236bf7ee3e342eeae7e20efb8988a0ac7da1cbbfa2c1f66b76c3423","affectsGlobalScope":true,"impliedFormat":1},{"version":"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","impliedFormat":1},{"version":"0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","impliedFormat":1},{"version":"e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","impliedFormat":1},{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6dd3dba8e665ac43d279e0fdf5219edda0eed69b5e9a5061f46cd6a65c4f7a1","impliedFormat":1}],"root":[[56,68],75,77,[83,90]],"options":{"composite":true,"declarationMap":true,"emitDeclarationOnly":false,"importHelpers":true,"module":199,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":9,"tsBuildInfoFile":"./tsconfig.lib.tsbuildinfo"},"referencedMap":[[71,1],[69,2],[74,3],[70,1],[76,4],[72,5],[73,1],[91,6],[92,6],[94,7],[95,8],[96,9],[97,10],[98,11],[99,12],[100,13],[101,14],[102,15],[103,16],[104,16],[106,17],[105,18],[107,17],[108,19],[109,20],[93,21],[143,2],[110,22],[111,23],[112,24],[144,25],[113,26],[114,27],[115,28],[116,29],[117,30],[118,31],[119,32],[120,33],[121,34],[122,35],[123,35],[124,36],[125,37],[127,38],[126,39],[128,40],[129,41],[130,2],[131,42],[132,43],[133,44],[134,45],[135,46],[136,47],[137,48],[138,49],[139,50],[140,51],[141,52],[142,53],[55,54],[54,2],[52,2],[53,2],[9,2],[10,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[21,2],[22,2],[4,2],[23,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[1,2],[51,2],[64,55],[67,56],[63,57],[66,58],[65,59],[85,60],[86,61],[89,62],[83,63],[87,64],[75,65],[88,65],[62,66],[68,67],[90,68],[57,69],[84,59],[77,70],[61,71],[59,71],[58,57],[56,57],[60,72],[78,2],[80,73],[82,74],[81,75],[79,73]],"latestChangedDtsFile":"./integrations.d.ts","version":"5.8.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluixi/compiler",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.70",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@babel/helper-plugin-utils": "^7.27.1",
|
|
49
49
|
"@babel/preset-typescript": "^7.28.5",
|
|
50
50
|
"@babel/types": "^7.28.5",
|
|
51
|
-
"@fluixi/template-parser": "0.1.0-alpha.
|
|
51
|
+
"@fluixi/template-parser": "0.1.0-alpha.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/plugin-transform-modules-commonjs": "^7.28.5",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"inquirer": "^14.0.2",
|
|
61
61
|
"jsdom": "^25.0.0",
|
|
62
62
|
"vitest": "^1.6.1",
|
|
63
|
-
"@fluixi/dom": "1.0.0-alpha.
|
|
64
|
-
"@fluixi/reactive": "1.0.0-alpha.
|
|
63
|
+
"@fluixi/dom": "1.0.0-alpha.70",
|
|
64
|
+
"@fluixi/reactive": "1.0.0-alpha.70"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build:typings": "tsc -p tsconfig.lib.json",
|
package/dist/babel-6UTCV3CC.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk-3SAEGOMQ.mjs";import{declare as tt}from"@babel/helper-plugin-utils";import{types as n,template as Se}from"@babel/core";import{types as m,traverse as ze,template as We}from"@babel/core";import ue from"@babel/generator";var q={version:1,module:"@fluixi/dom",symbols:["createNativeElement","insert","spread","setAttribute","delegateEvents","createComponent","createMemo","untrack","Show","For","Index","Switch","Match","Dynamic","ErrorBoundary"]},Ct={version:2,module:"@fluixi/dom",symbols:[...q.symbols,"template","cloneTemplate","walk"]};var Fe={show:"Show",for:"For",index:"Index",switch:"Switch",match:"Match",dynamic:"Dynamic",errorBoundary:"ErrorBoundary",suspense:"Suspense"};function Ae(e){return/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(e)}function se(e){return Ae(e)?e:JSON.stringify(e)}function Me(e){return e.expr!==void 0?e.reactive?`() => (${e.expr})`:`(${e.expr})`:JSON.stringify(e.literal??!0)}function Te(e){return e.expr!==void 0?`(${e.expr})`:JSON.stringify(e.literal??!0)}function $e(e,t,r){let s=e.filter(c=>c.kind==="spread"),a=e.filter(c=>c.kind!=="spread").map(c=>`${se(c.name)}: ${Me(c)}`);t!=null&&a.push(`children: ${t}`);let o=`{ ${a.join(", ")} }`;return s.length>0?(r.add("mergeProps"),`mergeProps(${s.map(c=>c.expr).join(", ")}, ${o})`):o}function oe(e,t){return e.length===1?V(e[0],t):`[${e.map(r=>V(r,t)).join(", ")}]`}function ie(e,t,r,s){s.add("createMemo"),s.add("createComponent");let i=t.filter(l=>l.kind==="spread"),o=t.filter(l=>l.kind!=="spread").map(l=>`get ${se(l.name)}() { return ${Te(l)}; }`);r.length>0&&o.push(`get children() { return ${oe(r,s)}; }`);let c=`{ ${o.join(", ")} }`;return i.length>0&&(s.add("mergeProps"),c=`mergeProps(${i.map(l=>l.expr).join(", ")}, ${c})`),`createMemo(() => createComponent(${e}, ${c}))`}function V(e,t){switch(e.kind){case"text":return JSON.stringify(e.value);case"expr":return e.reactive?`() => (${e.code})`:`(${e.code})`;case"fragment":return e.children.length===0?"null":oe(e.children,t);case"component":return ie(e.name,e.props,e.children,t);case"control":{let r=Fe[e.control]??e.control;return t.add(r),ie(r,e.props,e.children,t)}case"element":{t.add("createNativeElement");let r=JSON.stringify(e.tag),s="_el$",i=[],a=e.svg?`${r}, true`:r;if(i.push(`const ${s} = createNativeElement(${a});`),e.props.length>0){t.add("spread");let o=e.svg?", isSVG: true":"";i.push(`spread({ element: ${s}, props: ${$e(e.props,null,t)}${o} });`)}for(let o of e.children){t.add("insert");let c=V(o,t),l=o.kind==="expr"&&o.reactive||o.kind==="component"||o.kind==="control";i.push(l?`insert(${s}, ${c}, null);`:`insert(${s}, ${c});`)}return i.push(`return ${s};`),`(() => { ${i.join(" ")} })()`}}}var X={name:"imperative",contract:q,emit(e,t){let r=new Set;return{code:V(e,r),imports:Array.from(r)}}};import{types as z}from"@babel/core";import ae from"@babel/generator";import{parseTemplate as Oe}from"@fluixi/template-parser";var De=ae.default??ae;function Be(e){return De(e,{concise:!0}).code}var le=new Set(["click","dblclick","input","change","submit","focus","blur","keydown","keyup","keypress","mousedown","mouseup"]);function _e(e){return e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}function ce(e){return e.charAt(0).toUpperCase()+e.slice(1)}var U=class{constructor(t,r){this.holes=t;this.used=r}hole(t){return this.holes[t]??{node:z.identifier("undefined"),code:"undefined",reactive:!1}}emit(t){let{code:r,imports:s}=X.emit(t,{});for(let i of s)this.used.add(i);return r}lowerRoot(t){let r=this.lowerChildren(t);return r.length===1?r[0]:{kind:"fragment",children:r}}lowerChildren(t){let r=[];for(let s=0;s<t.length;s++){let i=t[s];if(i.kind==="Element"||i.kind==="Component"){let o=i.attributes.find(c=>c.kind==="IfDirective");if(o&&o.kind==="IfDirective"){let c=s+1;c<t.length&&this.isBlankText(t[c])&&c++;let l=t[c],p=l&&(l.kind==="Element"||l.kind==="Component")&&l.attributes.some(E=>E.kind==="ElseDirective");r.push(this.lowerIf(i,o.hole,p?l:null)),p&&(s=c);continue}if(i.attributes.some(c=>c.kind==="EachDirective")){r.push(this.lowerEach(i));continue}}let a=this.lowerNode(i);a&&r.push(a)}return r}isBlankText(t){return t.kind==="Text"&&!t.raw&&W(t.value)===""}lowerNode(t){switch(t.kind){case"Text":{if(t.raw)return{kind:"text",value:t.value};let r=W(t.value);return r?{kind:"text",value:r}:null}case"Comment":return null;case"Expression":{let r=this.hole(t.hole);return{kind:"expr",code:r.code,reactive:r.reactive}}case"Fragment":return{kind:"fragment",children:this.lowerChildren(t.children)};case"Element":return this.lowerElement(t);case"Component":return this.lowerComponent(t);default:return null}}lowerElement(t){let r=t.attributes.find(s=>s.kind==="Attribute"&&s.name==="is");if(t.tag==="component"&&r&&r.value&&r.value.kind==="hole"){let s=t.attributes.filter(a=>a!==r),i=this.lowerComponent({...t,kind:"Component",tag:"Dynamic",tagHole:null,attributes:s});return i.props.unshift({name:"component",kind:"attr",expr:`() => (${this.hole(r.value.hole).code})`}),i}return{kind:"element",tag:t.tag,svg:t.namespace==="svg",props:this.lowerAttributes(t.attributes),children:this.lowerChildren(t.children),static:!1}}lowerComponent(t){let r=t.tagHole!=null?this.hole(t.tagHole).code:t.tag,s=this.lowerAttributes(t.attributes),{slots:i,rest:a}=this.partitionSlots(t.children);for(let[o,c]of i){let l=c.length===1?c[0]:{kind:"fragment",children:c};s.push({name:o,kind:"attr",expr:this.emit(l),jsxElement:!0})}return{kind:"component",name:r,props:s,children:this.lowerChildren(a)}}partitionSlots(t){let r=new Map,s=[];for(let i of t){if(i.kind==="Element"||i.kind==="Component"){let a=i.attributes.find(o=>o.kind==="Attribute"&&o.name==="slot");if(a&&a.value&&a.value.kind==="static"){let o={...i,attributes:i.attributes.filter(p=>p!==a)},c=o.kind==="Element"?this.lowerElement(o):this.lowerComponent(o),l=r.get(a.value.value)??[];l.push(c),r.set(a.value.value,l);continue}}s.push(i)}return{slots:r,rest:s}}lowerIf(t,r,s){let i=this.hole(r),a=[{name:"when",kind:"attr",expr:i.code,reactive:i.reactive}];if(s){let c=this.stripAndLower(s,l=>l.kind==="ElseDirective");a.push({name:"fallback",kind:"attr",expr:this.emit(c),jsxElement:!0})}let o=this.stripAndLower(t,c=>c.kind==="IfDirective");return{kind:"component",name:"Show",props:a,children:[o]}}lowerEach(t){let r=t.attributes.find(l=>l.kind==="EachDirective");if(!r||r.kind!=="EachDirective")return this.lowerNode(t);let s=this.hole(r.hole),i=[{name:"each",kind:"attr",expr:s.code,reactive:s.reactive}];if(r.key){let l="static"in r.key?`(item) => item[${JSON.stringify(r.key.static)}]`:this.hole(r.key.hole).code;i.push({name:"by",kind:"attr",expr:l})}let a=this.itemArrow(t),o;if(a){let l=a.body,p={kind:"expr",code:R(l,this.used),reactive:y(l)},E=this.rebuildWithChildren(t,[p]);o=`(${a.params.map(f=>Be(f)).join(", ")}) => (${this.emit(E)})`}else{let l=this.stripAndLower(t,p=>p.kind==="EachDirective");o=`() => (${this.emit(l)})`}return{kind:"component",name:"For",props:i,children:[{kind:"expr",code:o,reactive:!1}]}}itemArrow(t){let r=t.children.filter(i=>!this.isBlankText(i));if(r.length!==1||r[0].kind!=="Expression")return null;let s=this.hole(r[0].hole).node;return z.isArrowFunctionExpression(s)&&!z.isBlockStatement(s.body)?s:null}stripAndLower(t,r){let s={...t,attributes:t.attributes.filter(i=>!r(i))};return s.kind==="Element"?this.lowerElement(s):this.lowerComponent(s)}rebuildWithChildren(t,r){let s=this.lowerAttributes(t.attributes.filter(i=>i.kind!=="EachDirective"));return t.kind==="Element"?{kind:"element",tag:t.tag,svg:t.namespace==="svg",props:s,children:r,static:!1}:{kind:"component",name:t.tag,props:s,children:r}}lowerAttributes(t){let r=[],s=[],i=!1,a=[],o=!1,c=[];for(let l of t)switch(l.kind){case"IfDirective":case"EachDirective":case"ElseDirective":break;case"Attribute":r.push(this.plainAttr(l));break;case"PropertyBinding":r.push({name:l.name,kind:"prop",expr:this.hole(l.hole).code,reactive:this.hole(l.hole).reactive});break;case"EventBinding":r.push(this.eventProp(l));break;case"RefBinding":r.push({name:"ref",kind:"ref",expr:this.hole(l.hole).code,reactive:this.hole(l.hole).reactive});break;case"Spread":r.push({name:"",kind:"spread",expr:this.hole(l.hole).code});break;case"ClassDirective":{let p=this.hole(l.hole);s.push(`${JSON.stringify(l.name)}: ${p.code}`),i=i||p.reactive;break}case"StyleDirective":{let p=this.hole(l.hole);a.push(`${JSON.stringify(l.name)}: ${p.code}`),o=o||p.reactive;break}case"BindDirective":r.push(...this.bindProps(l.name,this.hole(l.hole).code));break;case"UseDirective":{let p=l.name??(l.hole!=null?this.hole(l.hole).code:null);if(!p)break;c.push(l.name!=null&&l.hole!=null?`[${p}, () => (${this.hole(l.hole).code})]`:`[${p}]`);break}}return s.length>0&&r.push({name:"classList",kind:"attr",expr:`{ ${s.join(", ")} }`,reactive:i}),a.length>0&&r.push({name:"style",kind:"attr",expr:`{ ${a.join(", ")} }`,reactive:o}),c.length>0&&r.push({name:"use",kind:"attr",expr:`[${c.join(", ")}]`}),r}eventProp(t){let r=t.name.toLowerCase(),s=this.hole(t.hole).code;if(!(t.syntax==="colon"||t.modifiers.length>0))return{name:"on"+ce(t.name),kind:"event",event:{name:r,delegated:le.has(r)},expr:s};let a=this.wrapHandler(s,t.modifiers),o=this.eventOptions(t.modifiers),c=o?`[${a}, ${o}]`:a;return{name:"on:"+r,kind:"attr",expr:c}}wrapHandler(t,r){let s=r.includes("self")?"if (e.target !== e.currentTarget) return; ":"",i=[];return r.includes("prevent")&&i.push("e.preventDefault();"),r.includes("stop")&&i.push("e.stopPropagation();"),!s&&i.length===0?t:`(e) => { ${s}${i.join(" ")} return (${t})(e); }`}eventOptions(t){let r=[];return t.includes("capture")&&r.push("capture: true"),t.includes("once")&&r.push("once: true"),t.includes("passive")&&r.push("passive: true"),r.length?`{ ${r.join(", ")} }`:null}bindProps(t,r){let s=t==="checked",i=s?"change":"input",a=s?"checked":"value",o=`(${r})`;return[{name:t,kind:"attr",expr:`${o}[0]()`,reactive:!0},{name:"on"+ce(i),kind:"event",event:{name:i,delegated:le.has(i)},expr:`(e) => ${o}[1](e.target.${a})`}]}plainAttr(t){let r=t.value,s=t.name;t.name==="class"?s=r&&r.kind==="hole"&&z.isObjectExpression(this.hole(r.hole).node)?"classList":"className":t.name==="html"&&(s="innerHTML");let a={name:s,kind:"attr"};if(r==null)return a.literal=!0,a;if(r.kind==="static")return a.literal=r.value,a;if(r.kind==="hole"){let l=this.hole(r.hole);return a.expr=l.code,a.reactive=l.reactive,a}let o=!1,c=r.parts.map(l=>{if("text"in l)return _e(l.text);let p=this.hole(l.hole);return o=o||p.reactive,"${"+p.code+"}"}).join("");return a.expr="`"+c+"`",a.reactive=o,a}};function pe(e,t,r={}){let s=e.quasi,i=s.expressions.map(c=>{let l=c;return{node:l,code:R(l,t),reactive:y(l)}}),a=Ve(s),{root:o}=Oe(a,{svg:r.svg});return new U(i,t).lowerRoot(o.children)}function Ve(e){let t=[];return e.quasis.forEach((r,s)=>{let i=r.value.cooked??r.value.raw;if(t.push({kind:"static",text:i,start:r.start??0}),s<e.expressions.length){let a=e.expressions[s];t.push({kind:"hole",index:s,start:a.start??0,end:a.end??0})}}),t}function H(e,t=new Set,r={}){return pe(e,t,r)}var He=ue.default??ue;function fe(e){return He(e,{concise:!0}).code}function Ge(e,t){let r=m.cloneNode(e,!0),s=m.file(m.program([m.expressionStatement(r)])),i=!1,a=(o,c,l)=>{for(let p of l)t.add(p);o.replaceWith(We.expression(c,{placeholderPattern:!1,plugins:["typescript"]})()),o.skip(),i=!0};return ze(s,{"JSXElement|JSXFragment"(o){let c=o.node,{code:l,imports:p}=X.emit(M(c,t),{});a(o,l,p)},TaggedTemplateExpression(o){let c=o.node.tag;if(!m.isIdentifier(c)||c.name!=="html"&&c.name!=="svg")return;let l=H(o.node,t,{svg:c.name==="svg"}),{code:p,imports:E}=X.emit(l,{});a(o,p,E)}}),i?s.program.body[0].expression:e}function R(e,t){return fe(Ge(e,t))}var qe=new Set(["svg","path","circle","rect","line","polygon","polyline","ellipse","g","defs","clipPath","text"]),Ue=/^on[A-Z]/,Ze=new Set(["click","dblclick","input","change","submit","focus","blur","keydown","keyup","keypress","mousedown","mouseup"]);function Ke(e){if(m.isJSXIdentifier(e)){let t=e.name[0]!==e.name[0].toLowerCase();return{tag:e.name,component:t}}return m.isJSXMemberExpression(e)?{tag:fe(e),component:!0}:m.isJSXNamespacedName(e)?{tag:`${e.namespace.name}:${e.name.name}`,component:!1}:{tag:"div",component:!1}}function Ye(e){return m.isJSXIdentifier(e)?e.name==="class"?"className":e.name:m.isJSXNamespacedName(e)?`${e.namespace.name}:${e.name.name}`:"unknown"}function y(e){return m.isCallExpression(e)||m.isOptionalCallExpression(e)?!0:m.isMemberExpression(e)||m.isOptionalMemberExpression(e)?!(!e.computed&&m.isIdentifier(e.property,{name:"children"})):m.isConditionalExpression(e)?y(e.test)||y(e.consequent)||y(e.alternate):m.isLogicalExpression(e)||m.isBinaryExpression(e)?y(e.left)||y(e.right):m.isTemplateLiteral(e)?e.expressions.some(t=>y(t)):m.isObjectExpression(e)?e.properties.some(t=>m.isObjectProperty(t)&&!t.computed&&y(t.value)):m.isArrayExpression(e)?e.elements.some(t=>t!=null&&!m.isSpreadElement(t)&&y(t)):!1}function Qe(e,t){let r=Ye(e.name),s=Ue.test(r),i=s||r.startsWith("on:"),o={name:r,kind:s?"event":"attr"};s&&(o.event={name:r.slice(2).toLowerCase(),delegated:Ze.has(r.slice(2).toLowerCase())});let c=e.value;if(c==null)return o.literal=!0,o;if(m.isStringLiteral(c))return o.literal=c.value,o;if(m.isJSXExpressionContainer(c)&&!m.isJSXEmptyExpression(c.expression)){let l=c.expression;return m.isStringLiteral(l)||m.isNumericLiteral(l)||m.isBooleanLiteral(l)?(o.literal=l.value,o):(o.expr=R(l,t),o.reactive=i?!1:y(l),(m.isJSXElement(l)||m.isJSXFragment(l))&&(o.jsxElement=!0),o)}return o.literal=!0,o}function me(e,t){let r=e.value;return r==null?null:m.isStringLiteral(r)?JSON.stringify(r.value):m.isJSXExpressionContainer(r)&&!m.isJSXEmptyExpression(r.expression)?R(r.expression,t):null}function et(e,t){let r=[],s=[];for(let i of e){if(m.isJSXSpreadAttribute(i)){r.push({name:"",kind:"spread",expr:R(i.argument,t)});continue}if(!m.isJSXAttribute(i))continue;let a=m.isJSXNamespacedName(i.name)?i.name.namespace.name:null;if(a==="use"){let o=i.name.name.name;t.add(o);let c=me(i,t);s.push(c!=null?`[${o}, () => (${c})]`:`[${o}]`);continue}if(a==="oncapture"){let o=i.name.name.name.toLowerCase(),c=me(i,t)??"undefined";r.push({name:"on:"+o,kind:"attr",expr:`[${c}, { capture: true }]`});continue}r.push(Qe(i,t))}return s.length>0&&r.push({name:"use",kind:"attr",expr:`[${s.join(", ")}]`}),r}function W(e){let t=e.split(/\r\n|\n|\r/),r=0;for(let i=0;i<t.length;i++)/[^ \t]/.test(t[i])&&(r=i);let s="";for(let i=0;i<t.length;i++){let a=t[i].replace(/\t/g," ");i!==0&&(a=a.replace(/^ +/,"")),i!==t.length-1&&(a=a.replace(/ +$/,"")),a&&(i!==r&&(a+=" "),s+=a)}return s}function de(e,t){let r=[];for(let s of e)if(m.isJSXText(s)){let i=W(s.value);i&&r.push({kind:"text",value:i})}else if(m.isJSXExpressionContainer(s)){if(!m.isJSXEmptyExpression(s.expression)){let i=s.expression;r.push({kind:"expr",code:R(i,t),reactive:y(i)})}}else m.isJSXElement(s)||m.isJSXFragment(s)?r.push(M(s,t)):m.isJSXSpreadChild(s)&&r.push({kind:"expr",code:R(s.expression,t),reactive:!1});return r}function M(e,t=new Set){if(m.isJSXFragment(e))return{kind:"fragment",children:de(e.children,t)};let{tag:r,component:s}=Ke(e.openingElement.name),i=et(e.openingElement.attributes,t),a=de(e.children,t);return s?{kind:"component",name:r,props:i,children:a}:{kind:"element",tag:r,svg:qe.has(r),props:i,children:a,static:!1}}var K=new Set(["Show","For","Index","Switch","Match","Portal","Dynamic","ErrorBoundary","Suspense","SuspenseList","Await"]),ge=new Set(["Suspense","SuspenseList","Await"]),T=new Set(["Router","Outlet","Redirect","Link"]),nt={Show:"when",For:"each",Index:"each",Match:"when"};var be=/^on[A-Z]/,ve=["click","dblclick","input","change","submit","focus","blur","keydown","keyup","keypress","mousedown","mouseup","mouseover","mouseout","mouseenter","mouseleave"],O=tt((e,t={})=>{e.assertVersion(7);let{runtime:r="automatic",importSource:s="@fluixi/jsx",pragma:i="jsx",pragmaFrag:a="Fragment",development:o=!1,detectReactivity:c=!0,useLitHTML:l=!0,hoistStatics:p=!0,delegateEvents:E=!0,delegatedEvents:f=ve,optimizeControlFlow:w=!0,sourceMaps:L=!0,signalModule:C="@fluixi/dom",controlFlowModule:J="@fluixi/dom",routerModule:B="@fluixi/core/router-next",reactiveModule:te="@fluixi/reactive/signal",autoShowTransform:ne=!1,backend:N="imperative",codegen:A="inline",format:re="both",litTag:Pe="html"}=t,Le=re==="lit"||re==="both",je={backend:N,codegen:A,irImports:new Set,libModule:"@fluixi/core",hasJSX:!1,hasReactivity:!1,hasLitHTML:!1,needsSignalImport:!1,needsControlFlowImport:!1,needsCreateMemo:!1,controlFlowComponents:new Set,delegatedEvents:new Set,staticElements:new Map,staticCounter:0};return{name:"@fluixi/babel-plugin-jsx",manipulateOptions(d,u){u.plugins.push("jsx","typescript")},pre(d){Object.assign(d,je)},visitor:{ImportDeclaration(d,u){d.node.source.value==="@fluixi/core/rx"&&(d.node.source=n.stringLiteral("@fluixi/reactive"))},Program:{enter(d,u){Object.assign(u,{hasJSX:!1,hasReactivity:!1,hasLitHTML:!1,hasLitIR:!1,needsSignalImport:!1,needsControlFlowImport:!1,needsCreateMemo:!1,controlFlowComponents:new Set,delegatedEvents:new Set,staticElements:new Map,autoShow:ne,staticCounter:0,libModule:"@fluixi/core",backend:N,codegen:A,irImports:new Set,needsCreateNativeElement:!1,needsInsert:!1,needsSpread:!1,needsCreateComponent:!1,needsMergeProps:!1})},exit(d,u){let g=[];if(u.hasJSX||u.needsSignalImport&&g.push(n.importDeclaration([n.importSpecifier(n.identifier("signal"),n.identifier("signal"))],n.stringLiteral(C))),u.hasJSX||u.hasLitIR){if(u.irImports.size>0){let h=new Set(["Show","For","Index","Switch","Match","Dynamic","ErrorBoundary","Portal","Suspense"]),b=new Set(["createMemo","createEffect","createRenderEffect","createRoot","createSignal","onCleanup","batch","untrack"]),x=Array.from(u.irImports),I=S=>n.importSpecifier(n.identifier(S),n.identifier(S)),j=S=>!d.scope.hasBinding(S),F=x.filter(S=>b.has(S)&&j(S)),v=x.filter(S=>!h.has(S)&&!b.has(S)&&j(S)),_=x.filter(S=>h.has(S)&&j(S));F.length>0&&g.push(n.importDeclaration(F.map(I),n.stringLiteral(te))),v.length>0&&g.push(n.importDeclaration(v.map(I),n.stringLiteral(C))),_.length>0&&g.push(n.importDeclaration(_.map(I),n.stringLiteral(J)))}if(u.hasJSX&&N==="imperative"&&A!=="ir"){let b=[[!!u.needsCreateNativeElement,"createNativeElement"],[!!u.needsSpread,"spread"],[!!u.needsInsert,"insert"],[!!u.needsCreateComponent,"createComponent"],[!!u.needsMergeProps,"mergeProps"]].filter(([x,I])=>x&&!d.scope.hasBinding(I)).map(([,x])=>n.importSpecifier(n.identifier(x),n.identifier(x)));b.length>0&&g.push(n.importDeclaration(b,n.stringLiteral(C)))}else if(u.hasJSX&&r==="automatic"){let h=[n.importSpecifier(n.identifier("jsx"),n.identifier("jsx")),n.importSpecifier(n.identifier("jsxs"),n.identifier("jsxs")),n.importSpecifier(n.identifier("Fragment"),n.identifier("Fragment"))];o&&h.push(n.importSpecifier(n.identifier("jsxDEV"),n.identifier("jsxDEV"))),u.needsMergeProps&&h.push(n.importSpecifier(n.identifier("mergeProps"),n.identifier("mergeProps"))),g.push(n.importDeclaration(h,n.stringLiteral(s)))}if(u.needsCreateMemo&&!d.scope.hasBinding("createMemo")&&g.push(n.importDeclaration([n.importSpecifier(n.identifier("createMemo"),n.identifier("createMemo"))],n.stringLiteral(N==="imperative"?te:u.libModule??"@fluixi/core"))),u.needsControlFlowImport&&u.controlFlowComponents.size>0){let h=Array.from(u.controlFlowComponents).filter(v=>!d.scope.hasBinding(v)),b=u.libModule??"@fluixi/core",x=h.filter(v=>T.has(v)),I=h.filter(v=>ge.has(v)),j=h.filter(v=>!ge.has(v)&&!T.has(v)),F=(v,_)=>n.importDeclaration(v.map(S=>n.importSpecifier(n.identifier(S),n.identifier(S))),n.stringLiteral(_));j.length>0&&g.push(F(j,J)),I.length>0&&g.push(F(I,b)),x.length>0&&g.push(F(x,B))}if(E&&u.delegatedEvents.size>0){g.push(n.importDeclaration([n.importSpecifier(n.identifier("delegateEvents"),n.identifier("delegateEvents"))],n.stringLiteral(N==="imperative"?C:"@fluixi/jsx")));let h=n.arrayExpression(Array.from(u.delegatedEvents).map(x=>n.stringLiteral(x))),b=n.expressionStatement(n.callExpression(n.identifier("delegateEvents"),[h]));d.node.body.unshift(b)}if(p&&u.staticElements.size>0){let h=[];u.staticElements.forEach((b,x)=>{h.push(n.variableDeclaration("const",[n.variableDeclarator(n.identifier(x),b)]))}),d.node.body.unshift(...h)}}g.length>0&&d.node.body.unshift(...ot(g))}},JSXElement(d,u){if(u.hasJSX=!0,N==="imperative"&&A==="ir"){d.replaceWith(Ee(d.node,u));return}let g=d.node,h=g.openingElement;if(n.isJSXIdentifier(h.name)&&T.has(h.name.name)&&(u.controlFlowComponents.add(h.name.name),u.needsControlFlowImport=!0),n.isJSXIdentifier(h.name)&&K.has(h.name.name)&&(u.controlFlowComponents.add(h.name.name),w)){let x=vt(g,u);if(x){d.replaceWith(x);return}}if(p&&N!=="imperative"&&Re(g,u)){let x=bt(g,u);if(x){d.replaceWith(x);return}}let b=rt(g,u,{runtime:r,pragma:i,development:o,detectReactivity:c,useLitHTML:l,autoShow:ne});d.replaceWith(b)},JSXFragment(d,u){if(u.hasJSX=!0,N==="imperative"&&A==="ir"){d.replaceWith(Ee(d.node,u));return}let g=G(d.node,u,{runtime:r,pragmaFrag:a,development:o});d.replaceWith(g)},CallExpression(d,u){if(!c)return;let g=d.node.callee;g.name,n.isIdentifier(g)&&(g.name==="createSignal"||g.name==="createStore"||g.name==="useContext"||g.name==="useLocation")&&(u.hasReactivity=!0)},JSXExpressionContainer(d){},TaggedTemplateExpression(d,u){if(Le&&N==="imperative"&&n.isIdentifier(d.node.tag)&&(d.node.tag.name===Pe||d.node.tag.name==="svg")){d.replaceWith(at(d.node,u));return}}}}});function rt(e,t,r){let{runtime:s,pragma:i,development:a,autoShow:o=!0}=r;return s==="automatic"?D(e,t,a,o):pt(e,t,i)}var it=new Set(["svg","path","circle","rect","line","polygon","polyline","ellipse","g","defs","clipPath","text"]);function he(e,t,r){return t.length>0?(r.needsMergeProps=!0,n.callExpression(n.identifier("mergeProps"),[...t,n.objectExpression(e)])):n.objectExpression(e)}function ye(e){return e.length===1?e[0]:n.arrayExpression(e)}function st(e,t,r,s,i,a){if(!t){let f=[...r];return i.length>0&&f.push(n.objectMethod("get",n.identifier("children"),[],n.blockStatement([n.returnStatement(ye(i))]))),we(e,he(f,s,a),a)}let o=e.value,c=it.has(o),l=n.identifier("_el$"),p=[];a.needsCreateNativeElement=!0;let E=[e];if(c&&E.push(n.booleanLiteral(!0)),p.push(n.variableDeclaration("const",[n.variableDeclarator(l,n.callExpression(n.identifier("createNativeElement"),E))])),r.length>0||s.length>0){a.needsSpread=!0;let f=[n.objectProperty(n.identifier("element"),l),n.objectProperty(n.identifier("props"),he(r,s,a))];c&&f.push(n.objectProperty(n.identifier("isSVG"),n.booleanLiteral(!0))),p.push(n.expressionStatement(n.callExpression(n.identifier("spread"),[n.objectExpression(f)])))}if(i.length>0){a.needsInsert=!0;for(let f of i){let L=n.isArrowFunctionExpression(f)||n.isFunctionExpression(f)||n.isCallExpression(f)&&n.isIdentifier(f.callee)&&f.callee.name==="createMemo"?[n.cloneNode(l),f,n.nullLiteral()]:[n.cloneNode(l),f];p.push(n.expressionStatement(n.callExpression(n.identifier("insert"),L)))}}return p.push(n.returnStatement(l)),n.callExpression(n.arrowFunctionExpression([],n.blockStatement(p)),[])}function we(e,t,r){return n.isIdentifier(e)&&T.has(e.name)&&(r.controlFlowComponents.add(e.name),r.needsControlFlowImport=!0),r.backend==="imperative"?(r.needsCreateComponent=!0,r.needsCreateMemo=!0,n.callExpression(n.identifier("createMemo"),[n.arrowFunctionExpression([],n.callExpression(n.identifier("createComponent"),[e,t]))])):n.callExpression(n.identifier("jsx"),[e,t])}function Ee(e,t){let r=new Set,s=M(e,r),{code:i,imports:a}=X.emit(s,{});for(let o of a)r.add(o);for(let o of r)t.irImports.add(o);return Se.expression(i,{placeholderPattern:!1,plugins:["typescript"]})()}function ot(e){let t=new Map,r=[];for(let s of e){let i=s.source.value;if(!s.specifiers.every(c=>n.isImportSpecifier(c))){r.push(s);continue}let o=t.get(i);if(!o){let c=new Set(s.specifiers.map(l=>l.local.name));t.set(i,{decl:s,names:c}),r.push(s);continue}for(let c of s.specifiers)o.names.has(c.local.name)||(o.names.add(c.local.name),o.decl.specifiers.push(c))}return r}function at(e,t){let r=new Set,s=n.isIdentifier(e.tag)&&e.tag.name==="svg",i=H(e,r,{svg:s}),{code:a,imports:o}=X.emit(i,{});for(let l of o)r.add(l);for(let l of r)t.irImports.add(l);Ce(i,t),t.hasLitIR=!0;let c=Se.expression(a,{placeholderPattern:!1,plugins:["typescript"]})();return lt(c,e),c}function lt(e,t){if(!t.loc)return;let r=new Set,s=i=>{if(!r.has(i)){r.add(i),i.loc||(i.loc=t.loc,i.start=t.start,i.end=t.end);for(let a of n.VISITOR_KEYS[i.type]??[]){let o=i[a];if(Array.isArray(o))for(let c of o)c&&typeof c=="object"&&"type"in c&&s(c);else o&&typeof o=="object"&&"type"in o&&s(o)}}};s(e)}function Ce(e,t){if(e.kind==="component"&&(K.has(e.name)||T.has(e.name))&&(t.controlFlowComponents.add(e.name),t.needsControlFlowImport=!0),(e.kind==="element"||e.kind==="component"||e.kind==="control")&&"props"in e)for(let r of e.props)r.kind==="event"&&r.event?.delegated&&t.delegatedEvents.add(r.event.name);if("children"in e&&e.children)for(let r of e.children)Ce(r,t)}function ct(e){return e.map(t=>{if(n.isObjectProperty(t)){let r=t.key,s=t.computed,i=t.value;return n.objectMethod("get",r,[],n.blockStatement([n.returnStatement(i)]),s)}return t})}function D(e,t,r,s=!0){let i=e.openingElement,a=e.children,o=ke(i.name),c=n.isJSXIdentifier(i.name)&&/^[a-z]/.test(i.name.name),l=Je(i.attributes,t,c,n.isJSXIdentifier(i.name)?i.name.name:""),p=l.props,E=l.spreads;c||(p=ct(p));let f=Y(a,t,s);if(t.backend==="imperative")return st(o,c,p,E,f,t);if(f.length>0){let J=f.length===1?f[0]:n.arrayExpression(f);p.push(n.objectProperty(n.identifier("children"),J))}let w;if(E.length>0){let J=p.length>0?n.objectExpression(p):n.objectExpression([]);t.needsMergeProps=!0,w=n.callExpression(n.identifier("mergeProps"),[...E,J])}else w=n.objectExpression(p);let L=r?"jsxDEV":f.length>1?"jsxs":"jsx",C=[o,w];return r&&C.push(n.identifier("undefined"),n.booleanLiteral(!1),n.identifier("undefined"),n.identifier("undefined")),n.callExpression(n.identifier(L),C)}function pt(e,t,r){let s=e.openingElement,i=e.children,a=ke(s.name),o=n.isJSXIdentifier(s.name)&&/^[a-z]/.test(s.name.name),{props:c,spreads:l}=Je(s.attributes,t,o,n.isJSXIdentifier(s.name)?s.name.name:""),p=Y(i,t,t.autoShow??!0),E;if(l.length>0){let w=c.length>0?n.objectExpression(c):n.objectExpression([]);t.needsMergeProps=!0,E=n.callExpression(n.identifier("mergeProps"),[...l,w])}else E=c.length>0?n.objectExpression(c):n.nullLiteral();let f=[a,E,...p];return n.callExpression(n.identifier(r),f)}function G(e,t,r){let{runtime:s,pragmaFrag:i,development:a}=r,o=Y(e.children,t,t.autoShow??!0);if(t.backend==="imperative")return o.length===0?n.nullLiteral():ye(o);if(s==="automatic"){let c=a?"jsxDEV":o.length>1?"jsxs":"jsx",l=n.objectExpression([n.objectProperty(n.identifier("children"),o.length===1?o[0]:n.arrayExpression(o))]),p=[n.identifier("Fragment"),l];return a&&p.push(n.identifier("undefined"),n.booleanLiteral(!1),n.identifier("undefined"),n.identifier("undefined")),n.callExpression(n.identifier(c),p)}else return n.callExpression(n.identifier(i),o)}function ke(e){if(n.isJSXIdentifier(e)){let t=e.name;return t[0]===t[0].toLowerCase()?n.stringLiteral(t):n.identifier(t)}return n.isJSXMemberExpression(e)?Ne(e):n.isJSXNamespacedName(e)?n.stringLiteral(`${e.namespace.name}:${e.name.name}`):n.stringLiteral("div")}function Ne(e){let t;return n.isJSXIdentifier(e.object)?t=n.identifier(e.object.name):t=Ne(e.object),n.memberExpression(t,n.identifier(e.property.name))}function ut(e){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)}function Je(e,t,r=!0,s=""){let i=[],a=[],o=nt[s];for(let c of e)if(n.isJSXSpreadAttribute(c))a.push(c.argument);else if(n.isJSXAttribute(c)){let l=mt(c.name),p=dt(c.value,t,l,r);if(be.test(l)){let B=l.slice(2).toLowerCase();ve.includes(B)&&t.delegatedEvents.add(B)}let E=ut(l)?n.identifier(l):n.stringLiteral(l),f=c.value,w=n.isJSXElement(f)||n.isJSXFragment(f)||n.isJSXExpressionContainer(f)&&(n.isJSXElement(f.expression)||n.isJSXFragment(f.expression)),L=!r&&l===o,C=n.isJSXExpressionContainer(f)&&!n.isJSXEmptyExpression(f.expression)?f.expression:null,J=!r&&!!C&&Ie(C,l);!r&&w||L||J?i.push(n.objectMethod("get",E,[],n.blockStatement([n.returnStatement(p)]))):i.push(n.objectProperty(E,p))}return{props:i,spreads:a}}function mt(e){return n.isJSXIdentifier(e)?e.name==="class"?"className":e.name:n.isJSXNamespacedName(e)?`${e.namespace.name}:${e.name.name}`:"unknown"}function dt(e,t,r="",s=!0){if(e===null)return n.booleanLiteral(!0);if(n.isStringLiteral(e))return e.value.includes(`
|
|
2
|
-
`)?n.stringLiteral(e.value.replace(/\s+/g," ").trim()):e;if(n.isJSXExpressionContainer(e)){if(n.isJSXEmptyExpression(e.expression))return n.booleanLiteral(!0);let i=e.expression;return s&&Ie(i,r)?n.arrowFunctionExpression([],i):i}return n.isJSXElement(e)?D(e,t,!1,t.autoShow??!0):n.isJSXFragment(e)?G(e,t,{runtime:"automatic",pragmaFrag:"Fragment",development:!1}):n.booleanLiteral(!0)}function Ie(e,t){return be.test(t)||t.startsWith("on:")||t==="ref"||t.startsWith("use:")||n.isArrowFunctionExpression(e)||n.isFunctionExpression(e)||n.isIdentifier(e)||n.isStringLiteral(e)||n.isNumericLiteral(e)||n.isBooleanLiteral(e)||n.isNullLiteral(e)?!1:!!(n.isCallExpression(e)||n.isOptionalCallExpression(e)||n.isMemberExpression(e)||n.isOptionalMemberExpression(e)||n.isLogicalExpression(e)||n.isConditionalExpression(e)||n.isBinaryExpression(e)||n.isUnaryExpression(e)||n.isTemplateLiteral(e)||n.isObjectExpression(e)||n.isArrayExpression(e))}function ft(e){let t=e.split(/\r\n|\n|\r/),r=0;for(let i=0;i<t.length;i++)/[^ \t]/.test(t[i])&&(r=i);let s="";for(let i=0;i<t.length;i++){let a=t[i].replace(/\t/g," ");i!==0&&(a=a.replace(/^ +/,"")),i!==t.length-1&&(a=a.replace(/ +$/,"")),a&&(i!==r&&(a+=" "),s+=a)}return s}function Y(e,t,r=!0){let s=[];for(let i of e)if(n.isJSXText(i)){let a=ft(i.value);a&&s.push(n.stringLiteral(a))}else if(n.isJSXExpressionContainer(i)){if(!n.isJSXEmptyExpression(i.expression)){let a=i.expression;if(r){let o=gt(a,t)??ht(a,t);if(o){s.push(o);continue}}else{let o=Et(a,t);if(o){s.push(o);continue}}St(a)?s.push(n.arrowFunctionExpression([],a)):s.push(a)}}else n.isJSXElement(i)?s.push(D(i,t,!1,t.autoShow??!0)):n.isJSXFragment(i)?s.push(G(i,t,{runtime:"automatic",pragmaFrag:"Fragment",development:!1})):n.isJSXSpreadChild(i)&&s.push(i.expression);return s}function gt(e,t){if(!n.isArrowFunctionExpression(e)||e.params.length!==0||e.async)return null;let r=e.body;if(n.isLogicalExpression(r)&&r.operator==="&&"){let s=k(r.right);if(s)return $(P(r.left),s,null,t)}if(n.isConditionalExpression(r)){let s=k(r.consequent);if(s){let i=Q(r.alternate,t);return $(P(r.test),s,i,t,!0)}}return null}function ht(e,t){if(n.isLogicalExpression(e)&&e.operator==="&&"){let r=k(e.right);if(r)return $(P(e.left),r,null,t)}if(n.isConditionalExpression(e)){let r=k(e.consequent);if(r){let s=Q(e.alternate,t);return $(P(e.test),r,s,t)}}return null}function Et(e,t){let r=n.isArrowFunctionExpression(e)&&e.params.length===0&&!e.async&&n.isExpression(e.body)?e.body:e;if(n.isConditionalExpression(r)){let s=P(r.test),a=k(r.consequent)??r.consequent,c=k(r.alternate)??r.alternate,l=n.conditionalExpression(s,a,c);return Z(r.consequent)||Z(r.alternate)?null:(t.needsCreateMemo=!0,n.callExpression(n.identifier("createMemo"),[n.arrowFunctionExpression([],l)]))}if(n.isLogicalExpression(r)&&r.operator==="&&"){let s=P(r.left),a=k(r.right)??r.right,o=n.logicalExpression("&&",s,a);return Z(r.right)?null:(t.needsCreateMemo=!0,n.callExpression(n.identifier("createMemo"),[n.arrowFunctionExpression([],o)]))}return null}function Q(e,t){if(xt(e))return null;let r=k(e);if(r)return Xe(r,t);if(n.isConditionalExpression(e)){let s=e,i=k(s.consequent);if(i){let a=Q(s.alternate,t);return $(P(s.test),i,a,t)}}return e}function xe(e){return n.isJSXElement(e)||n.isJSXFragment(e)}function Z(e){let t=k(e);if(!t||!n.isJSXElement(t))return!1;let r=t.openingElement.name;return n.isJSXIdentifier(r)&&K.has(r.name)}function k(e){return xe(e)?e:n.isArrowFunctionExpression(e)&&e.params.length===0&&!e.async&&xe(e.body)?e.body:null}function P(e){return n.isArrowFunctionExpression(e)&&e.params.length===0&&!e.async&&n.isExpression(e.body)?e.body:e}function xt(e){return n.isNullLiteral(e)||n.isIdentifier(e)&&e.name==="undefined"||n.isBooleanLiteral(e)&&e.value===!1}function Xe(e,t){return n.isJSXElement(e)?D(e,t,!1,t.autoShow??!0):G(e,t,{runtime:"automatic",pragmaFrag:"Fragment",development:!1})}function $(e,t,r,s,i=!1){s.controlFlowComponents.add("Show"),s.needsControlFlowImport=!0;let a=Xe(t,s),o=[n.objectProperty(n.identifier("when"),n.arrowFunctionExpression([],e)),n.objectProperty(n.identifier("children"),a)];return r&&o.push(n.objectProperty(n.identifier("fallback"),r)),we(n.identifier("Show"),n.objectExpression(o),s)}function St(e){return n.isMemberExpression(e)||n.isOptionalMemberExpression(e)?!(!e.computed&&n.isIdentifier(e.property,{name:"children"})):n.isCallExpression(e)||n.isOptionalCallExpression(e)?!0:n.isIdentifier(e)?!1:!!(n.isLogicalExpression(e)||n.isConditionalExpression(e)||n.isBinaryExpression(e)||n.isUnaryExpression(e)||n.isTemplateLiteral(e))}function Re(e,t){let r=e.openingElement;if(!n.isJSXIdentifier(r.name))return!1;let s=r.name.name;if(s[0]!==s[0].toLowerCase())return!1;for(let i of r.attributes){if(n.isJSXSpreadAttribute(i))return!1;if(n.isJSXAttribute(i)){let a=i.value;if(n.isJSXExpressionContainer(a)&&!n.isStringLiteral(a.expression)&&!n.isNumericLiteral(a.expression))return!1}}for(let i of e.children)if(n.isJSXElement(i)&&!Re(i,t)||n.isJSXExpressionContainer(i))return!1;return!0}function bt(e,t){let r=`_$static${t.staticCounter++}`,s=D(e,t,!1);return t.staticElements.set(r,s),n.identifier(r)}function vt(e,t){let r=e.openingElement.name.name;return r==="Show"?yt(e,t):r==="For"?wt(e,t):null}function yt(e,t){return null}function wt(e,t){return null}var qt=O;function Ut(e){return[O,e]}function ee(e={}){return{plugins:[[O,{runtime:"automatic",importSource:"@fluixi/jsx",development:!1,detectReactivity:!0,useLitHTML:!0,hoistStatics:!0,delegateEvents:!0,optimizeControlFlow:!0,sourceMaps:!0,...e}]]}}var Zt={production:ee({development:!1,hoistStatics:!0,delegateEvents:!0,optimizeControlFlow:!0}),development:ee({development:!0,hoistStatics:!1,sourceMaps:!0}),minimal:ee({detectReactivity:!1,useLitHTML:!1,hoistStatics:!1,delegateEvents:!1,optimizeControlFlow:!1})};export{qt as babelPluginReactiveJSX,Ut as createPlugin,ee as createPreset,O as default,Zt as presets};
|