@pyreon/core 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/analysis/index.js.html +1 -1
  2. package/lib/analysis/jsx-dev-runtime.js.html +1 -1
  3. package/lib/analysis/jsx-runtime.js.html +1 -1
  4. package/lib/index.js +144 -17
  5. package/lib/jsx-dev-runtime.js +23 -2
  6. package/lib/jsx-runtime.js +23 -2
  7. package/lib/types/index.d.ts +169 -15
  8. package/lib/types/jsx-dev-runtime.d.ts +19 -4
  9. package/lib/types/jsx-runtime.d.ts +19 -4
  10. package/package.json +3 -2
  11. package/src/compat-marker.ts +79 -0
  12. package/src/context.ts +38 -7
  13. package/src/dynamic.ts +16 -5
  14. package/src/error-boundary.ts +15 -2
  15. package/src/for.ts +13 -1
  16. package/src/h.ts +16 -2
  17. package/src/index.ts +1 -0
  18. package/src/jsx-runtime.ts +20 -2
  19. package/src/lifecycle.ts +1 -2
  20. package/src/manifest.ts +55 -7
  21. package/src/show.ts +19 -6
  22. package/src/suspense.ts +1 -2
  23. package/src/telemetry.ts +30 -2
  24. package/src/tests/compat-marker.test.ts +96 -0
  25. package/src/tests/core.test.ts +1 -1
  26. package/src/tests/dynamic.test.ts +33 -1
  27. package/src/tests/extract-props-overloads.types.test.ts +135 -0
  28. package/src/tests/for.test.ts +23 -0
  29. package/src/tests/h.test.ts +21 -0
  30. package/src/tests/manifest-snapshot.test.ts +6 -1
  31. package/src/tests/native-marker-error-boundary.test.ts +12 -0
  32. package/src/tests/show.test.ts +76 -0
  33. package/src/tests/telemetry.test.ts +61 -0
  34. package/src/types.ts +45 -2
  35. package/lib/index.js.map +0 -1
  36. package/lib/jsx-dev-runtime.js.map +0 -1
  37. package/lib/jsx-runtime.js.map +0 -1
  38. package/lib/types/index.d.ts.map +0 -1
  39. package/lib/types/jsx-dev-runtime.d.ts.map +0 -1
  40. package/lib/types/jsx-runtime.d.ts.map +0 -1
@@ -176,6 +176,27 @@ describe('h() — VNode creation', () => {
176
176
  expect(outer.children).toHaveLength(2)
177
177
  expect((outer.children[0] as VNode).type).toBe(Fragment)
178
178
  })
179
+
180
+ // Regression: pre-fix, `Fragment` was `Symbol('Pyreon.Fragment')` — a
181
+ // fresh symbol per module evaluation. When `h.ts` got bundled into BOTH
182
+ // `lib/index.js` AND `lib/jsx-runtime.js` (each a separate published
183
+ // entry point), each bundle created a DISTINCT Symbol identity. JSX
184
+ // `<>` compiles to `jsx(Fragment, ...)` referring to jsx-runtime's
185
+ // Fragment; `runtime-server` checks `vnode.type === Fragment` against
186
+ // `@pyreon/core`'s main-entry Fragment. The two never matched →
187
+ // fell through to `renderElement` → tried to stringify the Symbol →
188
+ // SSG crashed with `TypeError: Cannot convert a Symbol value to
189
+ // a string`.
190
+ //
191
+ // Fix: use `Symbol.for('Pyreon.Fragment')` — the global registry keys
192
+ // by string, so all bundles inlining h.ts share the same identity.
193
+ //
194
+ // This test asserts the global-registry contract: Fragment IS
195
+ // retrievable from the registry. Bisect-verifiable: reverting h.ts to
196
+ // `Symbol(...)` makes this fail.
197
+ test('Fragment uses Symbol.for() for cross-bundle identity stability', () => {
198
+ expect(Fragment).toBe(Symbol.for('Pyreon.Fragment'))
199
+ })
179
200
  })
180
201
  })
181
202
 
@@ -85,8 +85,13 @@ describe('gen-docs — core snapshot', () => {
85
85
 
86
86
  it('renders @pyreon/core to MCP api-reference entries — one per api[] item', () => {
87
87
  const record = renderApiReferenceEntries(coreManifest)
88
- expect(Object.keys(record).length).toBe(28)
88
+ expect(Object.keys(record).length).toBe(31)
89
89
  expect(Object.keys(record)).toContain('core/h')
90
+ // Compat-mode native marker — added so framework JSX components opt out
91
+ // of `@pyreon/{react,preact,vue,solid}-compat` wrapping.
92
+ expect(Object.keys(record)).toContain('core/nativeCompat')
93
+ expect(Object.keys(record)).toContain('core/isNativeCompat')
94
+ expect(Object.keys(record)).toContain('core/NATIVE_COMPAT_MARKER')
90
95
  // Spot-check the flagship API — h() is the hyperscript function
91
96
  const h = record['core/h']!
92
97
  expect(h.notes).toContain('JSX')
@@ -0,0 +1,12 @@
1
+ import { describe, expect, it } from 'vitest'
2
+ import { isNativeCompat } from '../compat-marker'
3
+ import { ErrorBoundary } from '../error-boundary'
4
+
5
+ // Marker-presence assertion (PR 3 lock-in). Bisect-verified: removing the
6
+ // `nativeCompat(ErrorBoundary)` call fails this test with
7
+ // `expected false to be true`.
8
+ describe('native-compat marker — @pyreon/core', () => {
9
+ it('ErrorBoundary is marked native', () => {
10
+ expect(isNativeCompat(ErrorBoundary)).toBe(true)
11
+ })
12
+ })
@@ -100,6 +100,54 @@ describe('Show', () => {
100
100
  }) as unknown as () => VNodeChild
101
101
  expect(getter()).toBe('shown')
102
102
  })
103
+
104
+ // Value-or-accessor normalization. Previously `when` was strictly an
105
+ // accessor; passing a value crashed with "props.when is not a function".
106
+ // The compiler's signal auto-call rewrites bare `when={mySignal}` to
107
+ // `when={mySignal()}` at the prop site, producing a value — so the
108
+ // framework now accepts both shapes defensively.
109
+ test('accepts boolean value (true)', () => {
110
+ const getter = Show({ when: true, children: 'shown' }) as unknown as () => VNodeChild
111
+ expect(getter()).toBe('shown')
112
+ })
113
+
114
+ test('accepts boolean value (false)', () => {
115
+ const getter = Show({
116
+ when: false,
117
+ children: 'shown',
118
+ fallback: 'hidden',
119
+ }) as unknown as () => VNodeChild
120
+ expect(getter()).toBe('hidden')
121
+ })
122
+
123
+ test('accepts truthy value (string)', () => {
124
+ const getter = Show({ when: 'yes', children: 'shown' }) as unknown as () => VNodeChild
125
+ expect(getter()).toBe('shown')
126
+ })
127
+
128
+ test('accepts falsy value (0)', () => {
129
+ const getter = Show({
130
+ when: 0,
131
+ children: 'shown',
132
+ fallback: 'hidden',
133
+ }) as unknown as () => VNodeChild
134
+ expect(getter()).toBe('hidden')
135
+ })
136
+
137
+ test('accepts undefined as falsy', () => {
138
+ const getter = Show({
139
+ when: undefined as unknown as boolean,
140
+ children: 'shown',
141
+ fallback: 'hidden',
142
+ }) as unknown as () => VNodeChild
143
+ expect(getter()).toBe('hidden')
144
+ })
145
+
146
+ test('accessor and value forms produce identical behavior', () => {
147
+ const valueGetter = Show({ when: true, children: 'x' }) as unknown as () => VNodeChild
148
+ const accessorGetter = Show({ when: () => true, children: 'x' }) as unknown as () => VNodeChild
149
+ expect(valueGetter()).toBe(accessorGetter())
150
+ })
103
151
  })
104
152
 
105
153
  describe('Match', () => {
@@ -235,4 +283,32 @@ describe('Switch', () => {
235
283
  const getter = result as unknown as () => VNodeChild
236
284
  expect(getter()).toBe('single')
237
285
  })
286
+
287
+ // Match `when` accepts value or accessor — same defensive normalization as Show.
288
+ test('Match accepts boolean value', () => {
289
+ const result = Switch({
290
+ fallback: 'none',
291
+ children: [h(Match, { when: true }, 'matched')],
292
+ })
293
+ const getter = result as unknown as () => VNodeChild
294
+ expect(getter()).toBe('matched')
295
+ })
296
+
297
+ test('Match with all-false boolean values renders fallback', () => {
298
+ const result = Switch({
299
+ fallback: 'none',
300
+ children: [h(Match, { when: false }, 'a'), h(Match, { when: false }, 'b')],
301
+ })
302
+ const getter = result as unknown as () => VNodeChild
303
+ expect(getter()).toBe('none')
304
+ })
305
+
306
+ test('Match mixes value and accessor branches in same Switch', () => {
307
+ const result = Switch({
308
+ fallback: 'none',
309
+ children: [h(Match, { when: false }, 'a'), h(Match, { when: () => true }, 'b')],
310
+ })
311
+ const getter = result as unknown as () => VNodeChild
312
+ expect(getter()).toBe('b')
313
+ })
238
314
  })
@@ -140,3 +140,64 @@ describe('reportError', () => {
140
140
  unsub()
141
141
  })
142
142
  })
143
+
144
+ // ─── Regression: reactivity effect errors reach core's registerErrorHandler ──
145
+ //
146
+ // Pre-fix: `@pyreon/reactivity` had its own `setErrorHandler` API that drove
147
+ // effect errors to `console.error`. `@pyreon/core`'s `registerErrorHandler`
148
+ // captured component / mount / render / unmount errors only — effect errors
149
+ // never reached it. Sentry/Datadog wiring missed the entire reactive surface.
150
+ //
151
+ // Post-fix: `registerErrorHandler` installs a `globalThis.__pyreon_report_error__`
152
+ // bridge. Reactivity's effect-error path forwards through that bridge, so
153
+ // effect errors flow into the same `reportError` pipeline as component
154
+ // errors with phase='effect'.
155
+ describe('registerErrorHandler — reactivity bridge (regression)', () => {
156
+ test('effect() errors forward into registered telemetry handler', async () => {
157
+ // Use a clean global state. The bridge install is idempotent within one
158
+ // global; re-importing reactivity here re-uses the same module instance.
159
+ const { effect, signal } = await import('@pyreon/reactivity')
160
+
161
+ const captured: ErrorContext[] = []
162
+ const unsub = registerErrorHandler((ctx) => captured.push(ctx))
163
+
164
+ const trigger = signal(0)
165
+ effect(() => {
166
+ if (trigger() > 0) throw new Error('boom in effect')
167
+ })
168
+
169
+ // Trigger the throw
170
+ trigger.set(1)
171
+ await new Promise<void>((r) => queueMicrotask(() => r()))
172
+
173
+ // Captured exactly once — through the bridge.
174
+ expect(captured).toHaveLength(1)
175
+ expect(captured[0]?.phase).toBe('effect')
176
+ expect(captured[0]?.component).toBe('Effect')
177
+ expect((captured[0]?.error as Error).message).toBe('boom in effect')
178
+
179
+ unsub()
180
+ })
181
+
182
+ test('multiple handlers all receive forwarded effect errors', async () => {
183
+ const { effect, signal } = await import('@pyreon/reactivity')
184
+
185
+ let count1 = 0
186
+ let count2 = 0
187
+ const unsub1 = registerErrorHandler(() => count1++)
188
+ const unsub2 = registerErrorHandler(() => count2++)
189
+
190
+ const trigger = signal(0)
191
+ effect(() => {
192
+ if (trigger() > 0) throw new Error('boom')
193
+ })
194
+ trigger.set(1)
195
+ await new Promise<void>((r) => queueMicrotask(() => r()))
196
+
197
+ expect(count1).toBe(1)
198
+ expect(count2).toBe(1)
199
+
200
+ unsub1()
201
+ unsub2()
202
+ })
203
+ })
package/src/types.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference lib="dom" />
2
+
1
3
  // ─── VNode ────────────────────────────────────────────────────────────────────
2
4
 
3
5
  // Reactive getter returning a child — wraps dynamic expressions in `() =>`
@@ -28,8 +30,49 @@ export type ComponentFn<P extends Props = Props> = (props: P) => VNodeChild
28
30
 
29
31
  // ─── Utility types ───────────────────────────────────────────────────────────
30
32
 
31
- /** Extract the props type from a component function, or pass through if already a props type. */
32
- export type ExtractProps<T> = T extends ComponentFn<infer P> ? P : T
33
+ /**
34
+ * Extract the props type from a component function, or pass through if already
35
+ * a props type. **Multi-overload aware** — matches up to 4 call signatures and
36
+ * produces the UNION of their first-argument types. A single-overload function
37
+ * still works (the union of 4 copies of the same props type dedupes back to
38
+ * the single shape).
39
+ *
40
+ * **Why this shape**. `T extends (props: infer P) => any ? P : never` only
41
+ * captures the LAST overload of a multi-overload function — TS's overload-
42
+ * resolution-against-conditional-types semantics. Multi-overload primitives
43
+ * (Iterator, List, Element, etc.) need the union of every overload's props
44
+ * to survive HOC wrapping (`rocketstyle()`, `attrs()`) without silently
45
+ * downgrading the public prop surface to the loosest overload. Mirrors
46
+ * vitus-labs PR #222.
47
+ *
48
+ * @example
49
+ * function Iterator<T extends SimpleValue>(p: { data: T[]; valueName?: string }): VNodeChild
50
+ * function Iterator<T extends ObjectValue>(p: { data: T[]; component: ComponentFn<T> }): VNodeChild
51
+ * type Props = ExtractProps<typeof Iterator>
52
+ * // → { data: SimpleValue[]; valueName?: string }
53
+ * // | { data: ObjectValue[]; component: ComponentFn<ObjectValue> }
54
+ */
55
+ export type ExtractProps<T> = T extends {
56
+ (props: infer P1, ...args: any): any
57
+ (props: infer P2, ...args: any): any
58
+ (props: infer P3, ...args: any): any
59
+ (props: infer P4, ...args: any): any
60
+ }
61
+ ? P1 | P2 | P3 | P4
62
+ : T extends {
63
+ (props: infer P1, ...args: any): any
64
+ (props: infer P2, ...args: any): any
65
+ (props: infer P3, ...args: any): any
66
+ }
67
+ ? P1 | P2 | P3
68
+ : T extends {
69
+ (props: infer P1, ...args: any): any
70
+ (props: infer P2, ...args: any): any
71
+ }
72
+ ? P1 | P2
73
+ : T extends ComponentFn<infer P>
74
+ ? P
75
+ : T
33
76
 
34
77
  /** A higher-order component that wraps a component, optionally transforming its props. */
35
78
  export type HigherOrderComponent<HOP extends Props, P extends Props | undefined = undefined> = (
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["__DEV__","__DEV__","__DEV__"],"sources":["../src/lifecycle.ts","../src/component.ts","../src/context.ts","../src/h.ts","../src/dynamic.ts","../src/telemetry.ts","../src/error-boundary.ts","../src/for.ts","../src/lazy.ts","../src/map-array.ts","../src/portal.ts","../src/props.ts","../src/ref.ts","../src/show.ts","../src/style.ts","../src/suspense.ts"],"sourcesContent":["import type { CleanupFn, LifecycleHooks } from './types'\n\n// Dev-mode gate: see `pyreon/no-process-dev-gate` lint rule for why this\n// uses `import.meta.env.DEV` instead of `typeof process !== 'undefined'`.\n// @ts-ignore — `import.meta.env.DEV` is provided by Vite/Rolldown at build time\nconst __DEV__ = import.meta.env?.DEV === true\n\n// The currently-executing component's hook storage, set by the renderer\n// before calling the component function, cleared immediately after.\nlet _current: LifecycleHooks | null = null\n\nexport function setCurrentHooks(hooks: LifecycleHooks | null) {\n _current = hooks\n}\n\nexport function getCurrentHooks(): LifecycleHooks | null {\n return _current\n}\n\n/**\n * Extract the first stack frame that's NOT inside the framework itself.\n * Walks the stack from top, skipping:\n * - V8/JSC internals (`at <anonymous>`, no filename)\n * - Framework files (packages/core/core/src/lifecycle.ts, etc.)\n * - The warning infra itself (warnOutsideSetup, the hook wrapper)\n *\n * Returns a string like \"at MyComponent (src/components/Foo.tsx:42:15)\"\n * — the call site a user needs to fix. Returns an empty string if no\n * user-code frame is found (unlikely in practice).\n */\nfunction captureCallSite(): string {\n const err = new Error()\n const stack = err.stack\n if (!stack) return ''\n const lines = stack.split('\\n')\n // Framework paths to skip — conservative, matches the packages that\n // contain lifecycle / provide / context internals and call these hooks.\n const skipPatterns = [\n /lifecycle\\.ts/,\n /\\/context\\.ts/,\n /\\/component\\.ts/,\n /\\/core\\/src\\//,\n /\\/runtime-dom\\/src\\//,\n /\\/runtime-server\\/src\\//,\n // node:internal frames\n /node:internal/,\n // chrome devtools source mappings\n /webpack-internal/,\n /<anonymous>/,\n ]\n for (const line of lines) {\n if (!line.includes('at ')) continue\n if (skipPatterns.some((p) => p.test(line))) continue\n // Strip leading \" at \" and return the rest\n return line.trim()\n }\n return ''\n}\n\nfunction warnOutsideSetup(hookName: string): void {\n if (__DEV__ && !_current) {\n const callSite = captureCallSite()\n const location = callSite ? `\\n Called from: ${callSite}` : ''\n // oxlint-disable-next-line no-console\n console.warn(\n `[Pyreon] ${hookName}() called outside component setup. ` +\n \"Lifecycle hooks must be called synchronously during a component's setup function.\" +\n location +\n (hookName === 'onUnmount'\n ? '\\n Hint: `provide()` internally calls onUnmount(). If you use provide(), ensure it runs during synchronous component setup — not inside effects, callbacks, or after awaits.'\n : ''),\n )\n }\n}\n\n/**\n * Register a callback to run after the component is mounted to the DOM.\n * Optionally return a cleanup function — it will run on unmount.\n */\nexport function onMount(fn: () => CleanupFn | void | undefined) {\n warnOutsideSetup('onMount')\n if (_current) {\n if (_current.mount === null) _current.mount = []\n _current.mount.push(fn)\n }\n}\n\n/**\n * Register a callback to run when the component is removed from the DOM.\n */\nexport function onUnmount(fn: () => void) {\n warnOutsideSetup('onUnmount')\n if (_current) {\n if (_current.unmount === null) _current.unmount = []\n _current.unmount.push(fn)\n }\n}\n\n/**\n * Register a callback to run after each reactive update.\n */\nexport function onUpdate(fn: () => void) {\n warnOutsideSetup('onUpdate')\n if (_current) {\n if (_current.update === null) _current.update = []\n _current.update.push(fn)\n }\n}\n\n/**\n * Register an error handler for this component subtree.\n *\n * When an error is thrown during rendering or in a child component,\n * the nearest `onErrorCaptured` handler is called with the error.\n * Return `true` to mark the error as handled and stop propagation.\n *\n * @example\n * onErrorCaptured((err) => {\n * setError(String(err))\n * return true // handled — don't propagate\n * })\n */\nexport function onErrorCaptured(fn: (err: unknown) => boolean | undefined) {\n warnOutsideSetup('onErrorCaptured')\n if (_current) {\n if (_current.error === null) _current.error = []\n _current.error.push(fn)\n }\n}\n","import { setCurrentHooks } from './lifecycle'\nimport type { ComponentFn, LifecycleHooks, Props, VNodeChild } from './types'\n\n/**\n * Identity wrapper — marks a function as a Pyreon component and preserves its type.\n * Useful for IDE tooling and future compiler optimisations.\n */\nexport function defineComponent<P extends Props>(fn: ComponentFn<P>): ComponentFn<P> {\n return fn\n}\n\n/**\n * Run a component function in a tracked context so that lifecycle hooks\n * registered inside it (onMount, onUnmount, onErrorCaptured, etc.) are captured.\n *\n * Called by the renderer — not intended for user code.\n */\nexport function runWithHooks<P extends Props>(\n fn: ComponentFn<P>,\n props: P,\n): { vnode: VNodeChild; hooks: LifecycleHooks } {\n const hooks: LifecycleHooks = { mount: null, unmount: null, update: null, error: null }\n setCurrentHooks(hooks)\n let vnode: VNodeChild = null\n try {\n vnode = fn(props)\n } finally {\n setCurrentHooks(null)\n }\n return { vnode, hooks }\n}\n\n/**\n * Walk up error handlers collected during component rendering.\n * Returns true if any handler marked the error as handled.\n */\nexport function propagateError(err: unknown, hooks: LifecycleHooks): boolean {\n if (!hooks.error) return false\n for (const handler of hooks.error) {\n if (handler(err) === true) return true\n }\n return false\n}\n\n// ─── Error boundary stack ────────────────────────────────────────────────────\n// Module-level stack of active ErrorBoundary handlers (innermost last).\n// ErrorBoundary pushes during its own setup (before children mount) so that\n// any child mountComponent error can dispatch up to the nearest boundary.\n\nconst _errorBoundaryStack: ((err: unknown) => boolean)[] = []\n\nexport function pushErrorBoundary(handler: (err: unknown) => boolean): void {\n _errorBoundaryStack.push(handler)\n}\n\nexport function popErrorBoundary(): void {\n _errorBoundaryStack.pop()\n}\n\n/**\n * Dispatch an error to the nearest active ErrorBoundary.\n * Returns true if the boundary handled it, false if none was registered.\n */\nexport function dispatchToErrorBoundary(err: unknown): boolean {\n const handler = _errorBoundaryStack[_errorBoundaryStack.length - 1]\n return handler ? handler(err) : false\n}\n","/**\n * Provide / inject — like React context or Vue provide/inject.\n *\n * Values flow down the component tree without prop-drilling.\n * The renderer maintains the context stack as it walks the VNode tree.\n */\n\nimport { onUnmount } from './lifecycle'\n\nexport interface Context<T> {\n readonly id: symbol\n readonly defaultValue: T\n}\n\n/** Branded marker for reactive contexts — distinguishes from regular Context at type level. */\ndeclare const REACTIVE_BRAND: unique symbol\n\n/**\n * A context whose value is a reactive accessor `() => T`.\n *\n * When you `useContext(reactiveCtx)`, TypeScript returns `() => T` —\n * you MUST call the accessor to read the value. This prevents the\n * destructuring trap that breaks reactivity with getter-based objects.\n *\n * @example\n * const ModeCtx = createReactiveContext<'light' | 'dark'>('light')\n * // Provider: provide(ModeCtx, () => modeSignal())\n * // Consumer: const getMode = useContext(ModeCtx); getMode() // 'light'\n */\nexport interface ReactiveContext<T> extends Context<() => T> {\n readonly [REACTIVE_BRAND]: T\n}\n\nexport function createContext<T>(defaultValue: T): Context<T> {\n return { id: Symbol('PyreonContext'), defaultValue }\n}\n\n/**\n * Create a reactive context. Consumers get `() => T` and must call it.\n * This is the safe pattern for values that change over time (mode, locale, etc.).\n */\nexport function createReactiveContext<T>(defaultValue: T): ReactiveContext<T> {\n return createContext<() => T>(() => defaultValue) as ReactiveContext<T>\n}\n\n// ─── Runtime context stack (managed by the renderer) ─────────────────────────\n\n// Default stack — used for CSR and single-threaded SSR.\n// On Node.js with concurrent requests, @pyreon/runtime-server replaces this with\n// an AsyncLocalStorage-backed provider via setContextStackProvider().\nconst _defaultStack: Map<symbol, unknown>[] = []\nlet _stackProvider: () => Map<symbol, unknown>[] = () => _defaultStack\n\n/**\n * Override the context stack provider. Called by @pyreon/runtime-server to\n * inject an AsyncLocalStorage-backed stack that isolates concurrent SSR requests.\n * Has no effect in the browser (CSR always uses the default module-level stack).\n */\nexport function setContextStackProvider(fn: () => Map<symbol, unknown>[]): void {\n _stackProvider = fn\n}\n\nfunction getStack(): Map<symbol, unknown>[] {\n return _stackProvider()\n}\n\n// Dev-mode gate: see `pyreon/no-process-dev-gate` lint rule for why this\n// uses `import.meta.env.DEV` instead of `typeof process !== 'undefined'`.\n// @ts-ignore — `import.meta.env.DEV` is provided by Vite/Rolldown at build time\nconst __DEV__ = import.meta.env?.DEV === true\n\nexport function pushContext(values: Map<symbol, unknown>) {\n getStack().push(values)\n}\n\nexport function popContext() {\n const stack = getStack()\n if (stack.length === 0) return\n stack.pop()\n}\n\n/**\n * Read the nearest provided value for a context.\n * Falls back to `context.defaultValue` if none found.\n *\n * For ReactiveContext<T>, returns `() => T` — you MUST call the accessor.\n * For regular Context<T>, returns `T` directly.\n */\nexport function useContext<T>(context: ReactiveContext<T>): () => T\nexport function useContext<T>(context: Context<T>): T\nexport function useContext<T>(context: Context<T>): T {\n const stack = getStack()\n for (let i = stack.length - 1; i >= 0; i--) {\n const frame = stack[i]\n if (frame?.has(context.id)) {\n return frame.get(context.id) as T\n }\n }\n return context.defaultValue\n}\n\n/**\n * Provide a context value for the current component's subtree.\n * Must be called during component setup (like onMount/onUnmount).\n * Automatically cleaned up when the component unmounts.\n *\n * @example\n * const ThemeProvider = ({ children }: { children: VNodeChild }) => {\n * provide(ThemeContext, { color: \"blue\" })\n * return children\n * }\n */\nexport function provide<T>(context: Context<T>, value: T): void {\n pushContext(new Map<symbol, unknown>([[context.id, value]]))\n onUnmount(() => popContext())\n}\n\n/**\n * Provide a value for `context` during `fn()`.\n * Used by the renderer when it encounters a `<Provider>` component.\n */\nexport function withContext<T>(context: Context<T>, value: T, fn: () => void) {\n const frame = new Map<symbol, unknown>([[context.id, value]])\n pushContext(frame)\n try {\n fn()\n } finally {\n popContext()\n }\n}\n\n// ─── Context snapshot for deferred mounting ─────────────────────────────────\n\nexport type ContextSnapshot = Map<symbol, unknown>[]\n\n/**\n * Capture a snapshot of the current context stack.\n *\n * Used by `mountReactive` to preserve the context that was active when a\n * reactive boundary (e.g. `<Show>`, `<For>`) was set up. When the boundary\n * later mounts new children inside an effect, the snapshot is restored so\n * those children can see ancestor providers via `useContext()`.\n */\nexport function captureContextStack(): ContextSnapshot {\n // Shallow copy — each frame (Map) is shared by reference, which is\n // correct because providers don't mutate frames after creation.\n return [...getStack()]\n}\n\n/**\n * Execute `fn()` with a previously captured context stack active.\n * Restores the original stack after `fn()` completes (even on throw).\n */\nexport function restoreContextStack<T>(snapshot: ContextSnapshot, fn: () => T): T {\n const stack = getStack()\n const savedLength = stack.length\n\n // Push all captured frames onto the current stack\n for (const frame of snapshot) {\n stack.push(frame)\n }\n\n try {\n return fn()\n } finally {\n // Remove only the frames we pushed (preserve anything added by fn)\n stack.length = savedLength\n }\n}\n","import type { ComponentFn, Props, VNode, VNodeChild } from './types'\n\n/** Marker for fragment nodes — renders children without a wrapper element */\nexport const Fragment: unique symbol = Symbol('Pyreon.Fragment')\n\n/**\n * Hyperscript function — the compiled output of JSX.\n * `<div class=\"x\">hello</div>` → `h(\"div\", { class: \"x\" }, \"hello\")`\n *\n * Generic on P so TypeScript validates props match the component's signature\n * at the call site, then stores the result in the loosely-typed VNode.\n */\n/** Shared empty props sentinel — identity-checked in mountElement to skip applyProps. */\nexport const EMPTY_PROPS: Props = {} as Props\n\n/** Makes `children` optional in P (if present) so it can be passed as rest args to h(). */\ntype PropsWithOptionalChildren<P extends Props> = Omit<P, 'children'> &\n ('children' extends keyof P ? { children?: P['children'] } : unknown)\n\n// Overload: component with typed props — children is optional in the props object\n// because it can be passed as rest args. Extra keys are allowed via `& Props`.\nexport function h<P extends Props>(\n type: ComponentFn<P>,\n props: (PropsWithOptionalChildren<P> & Props) | null,\n ...children: VNodeChild[]\n): VNode\n// Overload: intrinsic element, symbol, generic/dynamic component, or mixed union\nexport function h(\n type: string | ((p: any) => VNodeChild) | symbol,\n props: Props | null,\n ...children: VNodeChild[]\n): VNode\nexport function h<P extends Props>(\n type: string | ComponentFn<P> | symbol,\n props: P | null,\n ...children: VNodeChild[]\n): VNode {\n return {\n type: type as string | ComponentFn | symbol,\n props: (props ?? EMPTY_PROPS) as Props,\n children: normalizeChildren(children),\n key: (props?.key as string | number | null) ?? null,\n }\n}\n\nfunction normalizeChildren(children: VNodeChild[]): VNodeChild[] {\n // Fast path: no nested arrays — return as-is without allocating\n for (let i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return flattenChildren(children)\n }\n }\n return children\n}\n\nfunction flattenChildren(children: VNodeChild[]): VNodeChild[] {\n const result: VNodeChild[] = []\n for (const child of children) {\n if (Array.isArray(child)) {\n result.push(...flattenChildren(child as VNodeChild[]))\n } else {\n result.push(child)\n }\n }\n return result\n}\n","import { h } from './h'\nimport type { ComponentFn, Props, VNode } from './types'\n\n// Dev-mode gate: see `pyreon/no-process-dev-gate` lint rule for why this\n// uses `import.meta.env.DEV` instead of `typeof process !== 'undefined'`.\n// @ts-ignore — `import.meta.env.DEV` is provided by Vite/Rolldown at build time\nconst __DEV__ = import.meta.env?.DEV === true\n\nexport interface DynamicProps extends Props {\n component: ComponentFn | string\n}\n\nexport function Dynamic(props: DynamicProps): VNode | null {\n const { component, ...rest } = props\n if (__DEV__ && !component) {\n // oxlint-disable-next-line no-console\n console.warn('[Pyreon] <Dynamic> received a falsy `component` prop. Nothing will be rendered.')\n }\n if (!component) return null\n return h(component as string | ComponentFn, rest as Props)\n}\n","/**\n * Error telemetry — hook into Pyreon's error reporting for Sentry, Datadog, etc.\n *\n * @example\n * import { registerErrorHandler } from \"@pyreon/core\"\n * import * as Sentry from \"@sentry/browser\"\n *\n * registerErrorHandler(ctx => {\n * Sentry.captureException(ctx.error, {\n * extra: { component: ctx.component, phase: ctx.phase },\n * })\n * })\n */\n\nexport interface ErrorContext {\n /** Component function name, or \"Anonymous\" */\n component: string\n /** Lifecycle phase where the error occurred */\n phase: 'setup' | 'render' | 'mount' | 'unmount' | 'effect'\n /** The thrown value */\n error: unknown\n /** Unix timestamp (ms) */\n timestamp: number\n /** Component props at the time of the error */\n props?: Record<string, unknown>\n}\n\nexport type ErrorHandler = (ctx: ErrorContext) => void\n\nlet _handlers: ErrorHandler[] = []\n\n/**\n * Register a global error handler. Called whenever a component throws in any\n * lifecycle phase. Returns an unregister function.\n */\nexport function registerErrorHandler(handler: ErrorHandler): () => void {\n _handlers.push(handler)\n return () => {\n _handlers = _handlers.filter((h) => h !== handler)\n }\n}\n\n/**\n * Internal — called by the runtime whenever a component error is caught.\n * Existing console.error calls are preserved; this is additive.\n */\nexport function reportError(ctx: ErrorContext): void {\n for (const h of _handlers) {\n try {\n h(ctx)\n } catch {\n // handler errors must never propagate back into the framework\n }\n }\n}\n","import { signal } from '@pyreon/reactivity'\nimport { popErrorBoundary, pushErrorBoundary } from './component'\nimport { onUnmount } from './lifecycle'\nimport { reportError } from './telemetry'\nimport type { VNodeChild, VNodeChildAtom } from './types'\n\n// Dev-mode gate: see `pyreon/no-process-dev-gate` lint rule for why this\n// uses `import.meta.env.DEV` instead of `typeof process !== 'undefined'`.\n// @ts-ignore — `import.meta.env.DEV` is provided by Vite/Rolldown at build time\nconst __DEV__ = import.meta.env?.DEV === true\n\n/**\n * ErrorBoundary — catches errors thrown by child components and renders a\n * fallback UI instead of crashing the whole tree.\n *\n * Also reports caught errors to any registered telemetry handlers.\n *\n * How error propagation works:\n * ErrorBoundary pushes a handler onto the module-level boundary stack\n * synchronously during its own setup (before children are mounted).\n * When mountComponent catches a child error, it calls dispatchToErrorBoundary()\n * which invokes the innermost boundary's handler.\n *\n * Usage:\n * h(ErrorBoundary, {\n * fallback: (err) => h(\"p\", null, `Error: ${err}`),\n * children: h(MyComponent, null),\n * })\n *\n * // or with JSX:\n * <ErrorBoundary fallback={(err) => <p>Error: {String(err)}</p>}>\n * <MyComponent />\n * </ErrorBoundary>\n */\nexport function ErrorBoundary(props: {\n /**\n * Rendered when a child throws. Receives the caught error and a `reset`\n * function — calling `reset()` clears the error and re-renders children.\n */\n fallback: (err: unknown, reset: () => void) => VNodeChild\n children?: VNodeChild\n}): VNodeChild {\n if (__DEV__ && typeof props.fallback !== 'function') {\n // oxlint-disable-next-line no-console\n console.warn(\n '[Pyreon] <ErrorBoundary> expects `fallback` to be a function: (err, reset) => VNode. ' +\n `Received ${typeof props.fallback}.`,\n )\n }\n\n const error = signal<unknown>(null)\n const reset = () => error.set(null)\n\n const handler = (err: unknown): boolean => {\n if (error.peek() !== null) return false // already in error state — let outer boundary catch it\n error.set(err)\n reportError({ component: 'ErrorBoundary', phase: 'render', error: err, timestamp: Date.now() })\n return true\n }\n\n // Push synchronously — before children are mounted — so child errors see this boundary\n pushErrorBoundary(handler)\n onUnmount(() => popErrorBoundary())\n\n return (): VNodeChildAtom => {\n const err = error()\n if (err != null) return props.fallback(err, reset) as VNodeChildAtom\n const ch = props.children\n return (typeof ch === 'function' ? ch() : ch) as VNodeChildAtom\n }\n}\n","import type { NativeItem, Props, VNode } from './types'\n\n/**\n * Symbol used as the VNode type for a For list — runtime-dom handles it\n * via mountFor, bypassing the generic VNode reconciler.\n */\nexport const ForSymbol: unique symbol = Symbol('pyreon.For')\n\nexport interface ForProps<T> {\n each: () => T[]\n /** Keying function — use `by` not `key` (JSX extracts `key` for VNode reconciliation). */\n by: (item: T) => string | number\n children: (item: T) => VNode | NativeItem\n /**\n * @deprecated Use `by` instead of `key`. In Pyreon, `<For>` uses `by` for keying.\n * JSX reserves `key` for VNode reconciliation — it won't reach the component.\n */\n key?: never\n}\n\n/**\n * Efficient reactive list rendering.\n *\n * Unlike a plain `() => items().map(item => h(...))`, For never re-creates\n * VNodes for existing keys — only new keys invoke `children()`. Structural\n * mutations (swap, sort, filter) are O(n) key scan + O(k) DOM moves where k\n * is the number of actually displaced entries.\n *\n * Usage:\n * <For each={items} by={r => r.id}>{r => <li>...</li>}</For>\n */\nexport function For<T>(props: ForProps<T>): VNode {\n return {\n type: ForSymbol as unknown as string,\n props: props as unknown as Props,\n children: [],\n key: null,\n }\n}\n","import { signal } from '@pyreon/reactivity'\nimport { h } from './h'\nimport type { LazyComponent } from './suspense'\nimport type { ComponentFn, Props } from './types'\n\nexport function lazy<P extends Props>(\n load: () => Promise<{ default: ComponentFn<P> }>,\n): LazyComponent<P> {\n const loaded = signal<ComponentFn<P> | null>(null)\n const error = signal<Error | null>(null)\n\n load()\n .then((m) => loaded.set(m.default))\n .catch((e) => error.set(e instanceof Error ? e : new Error(String(e))))\n\n const wrapper = ((props: P) => {\n const err = error()\n if (err) throw err\n const comp = loaded()\n return comp ? h(comp as ComponentFn, props as Props) : null\n }) as LazyComponent<P>\n\n wrapper.__loading = () => loaded() === null && error() === null\n return wrapper\n}\n","/**\n * mapArray — keyed reactive list mapping.\n *\n * Creates each mapped item exactly once per key, then reuses it across\n * updates. When the source array is reordered or partially changed, only\n * new keys invoke `map()`; existing entries return the cached result.\n *\n * This makes structural list operations (swap, sort, filter) O(k) in\n * allocations where k is the number of new/removed keys, not O(n).\n *\n * The returned accessor reads `source()` reactively, so it can be passed\n * directly to the keyed-list reconciler.\n */\nexport function mapArray<T, U>(\n source: () => T[],\n getKey: (item: T) => string | number,\n map: (item: T) => U,\n): () => U[] {\n const cache = new Map<string | number, U>()\n\n return () => {\n const items = source()\n const result: U[] = []\n const newKeys = new Set<string | number>()\n\n for (const item of items) {\n const key = getKey(item)\n newKeys.add(key)\n if (!cache.has(key)) {\n cache.set(key, map(item))\n }\n result.push(cache.get(key) as U)\n }\n\n // Evict entries whose keys are no longer present\n for (const key of cache.keys()) {\n if (!newKeys.has(key)) cache.delete(key)\n }\n\n return result\n }\n}\n","import type { Props, VNode, VNodeChild } from './types'\n\n/**\n * Symbol used as the VNode type for a Portal — runtime-dom mounts the\n * children into `target` instead of the normal parent.\n */\nexport const PortalSymbol: unique symbol = Symbol('pyreon.Portal')\n\nexport interface PortalProps {\n /** DOM element to render children into (e.g. document.body). */\n target: Element\n children: VNodeChild\n}\n\n/**\n * Portal — renders `children` into a different DOM node than the\n * current parent tree.\n *\n * Useful for modals, tooltips, dropdowns, and any overlay that needs to\n * escape CSS overflow/stacking context restrictions.\n *\n * @example\n * // Render a modal at document.body level regardless of where in the\n * // component tree <Modal> is used:\n * Portal({ target: document.body, children: h(Modal, { onClose }) })\n *\n * // JSX:\n * <Portal target={document.body}>\n * <Modal onClose={close} />\n * </Portal>\n */\nexport function Portal(props: PortalProps): VNode {\n return {\n type: PortalSymbol as unknown as string,\n props: props as unknown as Props,\n children: [],\n key: null,\n }\n}\n","// Prop utilities for component authoring.\n\n/**\n * Split props into two groups: keys you want and the rest.\n * Unlike destructuring, this preserves reactivity (getters on the original object).\n *\n * @example\n * const [own, html] = splitProps(props, [\"label\", \"icon\"])\n * return <button {...html}><Icon name={own.icon} /> {own.label}</button>\n */\nexport function splitProps<T extends object, K extends (keyof T)[]>(\n props: T,\n keys: K,\n): [Pick<T, K[number]>, Omit<T, K[number]>] {\n const picked = {} as Pick<T, K[number]>\n const rest = {} as Omit<T, K[number]>\n const keySet = new Set<string | symbol>(keys as (string | symbol)[])\n\n // Reflect.ownKeys includes symbol-keyed properties; Object.keys drops them\n // silently. Without this, symbol-keyed props (e.g. branded reactive props\n // under Symbol.for('pyreon.reactiveProp')) would vanish from both picked\n // and rest.\n for (const key of Reflect.ownKeys(props)) {\n const desc = Object.getOwnPropertyDescriptor(props, key)\n if (!desc) continue\n // Force configurable: true when copying to a fresh object. Source descriptors\n // may be non-configurable (default when created with `Object.defineProperty`\n // and the caller omitted `configurable`). If we preserved that, any later\n // `Object.defineProperty` on the same key — including subsequent splitProps\n // post-processing or test mocks — would throw \"Cannot redefine property\".\n const safe = { ...desc, configurable: true }\n if (keySet.has(key)) {\n Object.defineProperty(picked, key, safe)\n } else {\n Object.defineProperty(rest, key, safe)\n }\n }\n\n return [picked, rest]\n}\n\n/** Merge a getter-backed source property with an existing getter or value. */\nfunction mergeGetterWithExisting(\n result: Record<string, unknown>,\n key: string,\n desc: PropertyDescriptor,\n existing: PropertyDescriptor,\n): void {\n const prevGet = existing.get ?? (() => existing.value)\n const nextGet = desc.get as () => unknown\n Object.defineProperty(result, key, {\n get: () => {\n const v = nextGet()\n return v !== undefined ? v : prevGet()\n },\n enumerable: true,\n configurable: true,\n })\n}\n\n/** Merge a static source property when the existing property has a getter. */\nfunction mergeStaticWithGetter(\n result: Record<string, unknown>,\n key: string,\n desc: PropertyDescriptor,\n existingGet: () => unknown,\n): void {\n if (desc.value !== undefined) {\n Object.defineProperty(result, key, { ...desc, configurable: true })\n } else {\n Object.defineProperty(result, key, {\n get: existingGet,\n enumerable: true,\n configurable: true,\n })\n }\n}\n\n/** Apply a single source property onto the result object, handling getter/static combos. */\nfunction mergeProperty(\n result: Record<string, unknown>,\n key: string,\n desc: PropertyDescriptor,\n): void {\n const existing = Object.getOwnPropertyDescriptor(result, key)\n if (desc.get && existing) {\n mergeGetterWithExisting(result, key, desc, existing)\n } else if (desc.get) {\n // Force configurable: true — source getters may have been defined via\n // `Object.defineProperty` without an explicit configurable flag (which\n // defaults to false). Without this, a later source in the same mergeProps\n // call that overrides the same key would crash with TypeError:\n // \"Cannot redefine property\".\n Object.defineProperty(result, key, { ...desc, configurable: true })\n } else if (existing?.get) {\n mergeStaticWithGetter(result, key, desc, existing.get)\n } else if (desc.value !== undefined || !existing) {\n // Both static — later value wins if defined\n Object.defineProperty(result, key, { ...desc, configurable: true })\n }\n}\n\n/**\n * Merge default values with component props. Defaults are used when\n * the prop is `undefined`. Preserves getter reactivity.\n *\n * @example\n * const merged = mergeProps({ size: \"md\", variant: \"primary\" }, props)\n * // merged.size is reactive — falls back to \"md\" when props.size is undefined\n */\nexport function mergeProps<T extends Record<string, unknown>>(...sources: T[]): T {\n const result = {} as T\n for (const source of sources) {\n // See splitProps for why this uses Reflect.ownKeys instead of Object.keys.\n for (const key of Reflect.ownKeys(source)) {\n const desc = Object.getOwnPropertyDescriptor(source, key)\n if (!desc) continue\n mergeProperty(result, key as string, desc)\n }\n }\n return result\n}\n\n/**\n * Brand symbol for compiler-emitted reactive prop wrappers.\n * Distinguishes `() => expr` wrappers from user-written accessor props\n * (like Show's `when={() => condition()}`).\n */\nexport const REACTIVE_PROP = Symbol.for('pyreon.reactiveProp')\n\n/** Symbol to access the underlying props signal for updates. */\nexport const PROPS_SIGNAL = Symbol.for('pyreon.propsSignal')\n\n/**\n * Create a branded reactive prop wrapper.\n * Called by the compiler for component prop expressions containing signal reads.\n */\nexport function _rp<T>(fn: () => T): () => T {\n ;(fn as any)[REACTIVE_PROP] = true\n return fn\n}\n\n/**\n * Convert compiler-emitted `_rp(() => expr)` prop values into getter properties.\n *\n * Only converts functions branded with REACTIVE_PROP — user-written accessor\n * props (like Show's when, For's each) are left as-is.\n *\n * Returns the same object if no reactive props found (fast path).\n */\nexport function makeReactiveProps(\n raw: Record<string, unknown>,\n): Record<string, unknown> {\n // Fast path: scan for any REACTIVE_PROP-branded function first.\n // If none found, return raw immediately — no object allocation, no property copying.\n // This saves ~90 object allocations + ~450 property copies per page load\n // for components with all-static props (buttons, icons, layout, etc.).\n const keys = Object.keys(raw)\n let hasAny = false\n for (let i = 0; i < keys.length; i++) {\n const val = raw[keys[i]!]\n if (typeof val === 'function' && (val as any)[REACTIVE_PROP]) {\n hasAny = true\n break\n }\n }\n if (!hasAny) return raw\n\n // At least one reactive prop exists — build the getter-backed object.\n const result: Record<string, unknown> = {}\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i]!\n const val = raw[key]\n if (typeof val === 'function' && (val as any)[REACTIVE_PROP]) {\n Object.defineProperty(result, key, {\n get: val as () => unknown,\n enumerable: true,\n configurable: true,\n })\n } else {\n result[key] = val\n }\n }\n\n return result\n}\n\n// ─── Unique ID ───────────────────────────────────────────────────────────────\n\nlet _idCounter = 0\n\n/**\n * Generate a unique ID string for accessibility attributes (htmlFor, aria-describedby, etc.).\n * SSR-safe: uses a deterministic counter that resets per request context.\n *\n * @example\n * const id = createUniqueId()\n * return <>\n * <label for={id}>Name</label>\n * <input id={id} />\n * </>\n */\nexport function createUniqueId(): string {\n return `pyreon-${++_idCounter}`\n}\n\n/** Reset the ID counter (called by SSR per-request). */\nexport function _resetIdCounter(): void {\n _idCounter = 0\n}\n","/**\n * createRef — mutable container for a DOM element or component value.\n *\n * Usage:\n * const inputRef = createRef<HTMLInputElement>()\n * onMount(() => { inputRef.current?.focus() })\n * return <input ref={inputRef} />\n *\n * The runtime sets `ref.current` after the element is inserted into the DOM\n * and clears it to `null` when the element is removed.\n */\n\nexport interface Ref<T = unknown> {\n current: T | null\n}\n\n/** Callback ref — receives the element on mount and null on unmount. */\nexport type RefCallback<T = unknown> = (el: T | null) => void\n\n/**\n * Union of object ref and callback ref — accepted by the JSX ref prop.\n * Callback refs are called with the element on mount and with `null` on\n * unmount (matches React/Solid/Vue). Callback refs MUST accept `T | null`\n * — the previous `(el: T) => void` mount-only arm was removed in the\n * post-#233 cleanup because the runtime always invokes with null on\n * unmount and the narrower type silently lied to consumers.\n */\nexport type RefProp<T = unknown> = Ref<T> | RefCallback<T>\n\nexport function createRef<T = unknown>(): Ref<T> {\n return { current: null }\n}\n","import type { Props, VNode, VNodeChild, VNodeChildAtom } from './types'\n\n// ─── Show ─────────────────────────────────────────────────────────────────────\n\nexport interface ShowProps extends Props {\n /** Accessor — children render when truthy, fallback when falsy. */\n when: () => unknown\n fallback?: VNodeChild\n children?: VNodeChild\n}\n\n/**\n * Conditionally render children based on a reactive condition.\n *\n * @example\n * h(Show, { when: () => isLoggedIn() },\n * h(Dashboard, null)\n * )\n *\n * // With fallback:\n * h(Show, { when: () => user(), fallback: h(Login, null) },\n * h(Dashboard, null)\n * )\n */\nexport function Show(props: ShowProps): VNode | null {\n // Returns a reactive accessor; the renderer unwraps it at mount time.\n return ((): VNodeChildAtom =>\n (props.when()\n ? (props.children ?? null)\n : (props.fallback ?? null)) as VNodeChildAtom) as unknown as VNode\n}\n\n// ─── Switch / Match ───────────────────────────────────────────────────────────\n\nexport interface MatchProps extends Props {\n /** Accessor — this branch renders when truthy. */\n when: () => unknown\n children?: VNodeChild\n}\n\n/**\n * A branch inside `<Switch>`. Renders when `when()` is truthy.\n * Must be used as a direct child of `Switch`.\n *\n * `Match` acts as a pure type/identity marker — Switch identifies it by checking\n * `vnode.type === Match` rather than by the runtime return value.\n */\nexport function Match(_props: MatchProps): VNode | null {\n // Match is never mounted directly — Switch inspects Match VNodes by type identity.\n return null\n}\n\nexport interface SwitchProps extends Props {\n /** Rendered when no Match branch is truthy. */\n fallback?: VNodeChild\n children?: VNodeChild | VNodeChild[]\n}\n\n/**\n * Multi-branch conditional rendering. Evaluates each `Match` child in order,\n * renders the first whose `when()` is truthy, or `fallback` if none match.\n *\n * @example\n * h(Switch, { fallback: h(\"p\", null, \"404\") },\n * h(Match, { when: () => route() === \"/\" }, h(Home, null)),\n * h(Match, { when: () => route() === \"/about\" }, h(About, null)),\n * )\n */\nfunction isMatchVNode(branch: VNodeChild): branch is VNode {\n return (\n branch !== null &&\n typeof branch === 'object' &&\n !Array.isArray(branch) &&\n (branch as VNode).type === Match\n )\n}\n\nfunction resolveMatchChildren(matchVNode: VNode): VNodeChildAtom {\n if (matchVNode.children.length === 0) {\n return ((matchVNode.props as unknown as MatchProps).children ?? null) as VNodeChildAtom\n }\n if (matchVNode.children.length === 1) return matchVNode.children[0] as VNodeChildAtom\n return matchVNode.children as unknown as VNodeChildAtom\n}\n\nfunction normalizeBranches(children: SwitchProps['children']): VNodeChild[] {\n if (Array.isArray(children)) return children\n if (children != null) return [children]\n return []\n}\n\nexport function Switch(props: SwitchProps): VNode | null {\n // Returns a reactive accessor; the renderer unwraps it at mount time.\n return ((): VNodeChildAtom => {\n const branches = normalizeBranches(props.children)\n\n for (const branch of branches) {\n if (!isMatchVNode(branch)) continue\n const matchProps = branch.props as unknown as MatchProps\n if (matchProps.when()) return resolveMatchChildren(branch)\n }\n\n return (props.fallback ?? null) as VNodeChildAtom\n }) as unknown as VNode\n}\n\n// Keep MatchSymbol export for any code that was using it\nexport const MatchSymbol: unique symbol = Symbol('pyreon.Match')\n","// Shared style utilities used by both runtime-dom and runtime-server.\n\n// CSS properties where numeric values are unitless (e.g. `opacity: 0.5`, `zIndex: 10`).\n// All other numeric values get \"px\" appended automatically (e.g. `height: 100` → `\"100px\"`).\nexport const CSS_UNITLESS = new Set([\n 'animationIterationCount',\n 'aspectRatio',\n 'borderImageOutset',\n 'borderImageSlice',\n 'borderImageWidth',\n 'boxFlex',\n 'boxFlexGroup',\n 'boxOrdinalGroup',\n 'columnCount',\n 'columns',\n 'flex',\n 'flexGrow',\n 'flexPositive',\n 'flexShrink',\n 'flexNegative',\n 'flexOrder',\n 'gridArea',\n 'gridRow',\n 'gridRowEnd',\n 'gridRowSpan',\n 'gridRowStart',\n 'gridColumn',\n 'gridColumnEnd',\n 'gridColumnSpan',\n 'gridColumnStart',\n 'fontWeight',\n 'lineClamp',\n 'lineHeight',\n 'opacity',\n 'order',\n 'orphans',\n 'scale',\n 'tabSize',\n 'widows',\n 'zIndex',\n 'zoom',\n 'fillOpacity',\n 'floodOpacity',\n 'stopOpacity',\n 'strokeDasharray',\n 'strokeDashoffset',\n 'strokeMiterlimit',\n 'strokeOpacity',\n 'strokeWidth',\n])\n\n// ─── Class utilities ─────────────────────────────────────────────────────────\n\n/** Value accepted by the `class` prop — string, array, object, or nested mix. */\nexport type ClassValue =\n | string\n | number\n | boolean\n | null\n | undefined\n | ClassValue[]\n | Record<string, boolean | null | undefined | (() => boolean)>\n\nfunction cxObject(obj: Record<string, boolean | null | undefined | (() => boolean)>): string {\n let result = ''\n for (const key in obj) {\n const v = obj[key]\n const truthy = typeof v === 'function' ? v() : v\n if (truthy) result = result ? `${result} ${key}` : key\n }\n return result\n}\n\nfunction cxArray(arr: ClassValue[]): string {\n let result = ''\n for (const item of arr) {\n const resolved = cx(item)\n if (resolved) result = result ? `${result} ${resolved}` : resolved\n }\n return result\n}\n\n/** Resolve a ClassValue into a flat class string (like clsx/cx). */\nexport function cx(value: ClassValue): string {\n if (value == null || value === false || value === true) return ''\n if (typeof value === 'string') return value\n if (typeof value === 'number') return String(value)\n if (Array.isArray(value)) return cxArray(value)\n return cxObject(value)\n}\n\n// ─── Style utilities ─────────────────────────────────────────────────────────\n\n/** Convert a camelCase CSS property name to kebab-case. */\nexport function toKebabCase(str: string): string {\n return str.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)\n}\n\n/** Normalize a style value — appends \"px\" to numbers for non-unitless properties. */\nexport function normalizeStyleValue(key: string, value: unknown): string {\n return typeof value === 'number' && !CSS_UNITLESS.has(key) ? `${value}px` : String(value)\n}\n","import { Fragment, h } from './h'\nimport type { Props, VNode, VNodeChild } from './types'\n\n// Dev-mode gate: see `pyreon/no-process-dev-gate` lint rule for why this\n// uses `import.meta.env.DEV` instead of `typeof process !== 'undefined'`.\n// @ts-ignore — `import.meta.env.DEV` is provided by Vite/Rolldown at build time\nconst __DEV__ = import.meta.env?.DEV === true\n\n/** Internal marker attached to lazy()-wrapped components */\nexport type LazyComponent<P extends Props = Props> = ((props: P) => VNodeChild) & {\n __loading: () => boolean\n}\n\n/**\n * Suspense — shows `fallback` while a lazy child component is still loading.\n *\n * Works in tandem with `lazy()` from `@pyreon/react-compat` (or `@pyreon/core/lazy`).\n * The child VNode's `.type.__loading()` signal drives the switch.\n *\n * Usage:\n * const Page = lazy(() => import(\"./Page\"))\n *\n * h(Suspense, { fallback: h(Spinner, null) }, h(Page, null))\n * // or with JSX:\n * <Suspense fallback={<Spinner />}><Page /></Suspense>\n */\nexport function Suspense(props: { fallback: VNodeChild; children?: VNodeChild }): VNode {\n if (__DEV__ && props.fallback === undefined) {\n // oxlint-disable-next-line no-console\n console.warn(\n '[Pyreon] <Suspense> is missing a `fallback` prop. Provide fallback UI to show while loading.',\n )\n }\n\n return h(Fragment, null, () => {\n const ch = props.children\n const childNode = typeof ch === 'function' ? ch() : ch\n\n // Check if the child is a VNode whose type is a lazy component still loading\n const isLoading =\n childNode != null &&\n typeof childNode === 'object' &&\n !Array.isArray(childNode) &&\n typeof (childNode as VNode).type === 'function' &&\n ((childNode as VNode).type as unknown as LazyComponent).__loading?.()\n\n if (isLoading) {\n const fb = props.fallback\n return typeof fb === 'function' ? fb() : fb\n }\n return childNode\n })\n}\n"],"mappings":";;;AAKA,MAAMA,YAAU,OAAO,KAAK,KAAK,QAAQ;AAIzC,IAAI,WAAk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ComponentFn, Props, VNode, VNodeChild } from './types'\n\n/** Marker for fragment nodes — renders children without a wrapper element */\nexport const Fragment: unique symbol = Symbol('Pyreon.Fragment')\n\n/**\n * Hyperscript function — the compiled output of JSX.\n * `<div class=\"x\">hello</div>` → `h(\"div\", { class: \"x\" }, \"hello\")`\n *\n * Generic on P so TypeScript validates props match the component's signature\n * at the call site, then stores the result in the loosely-typed VNode.\n */\n/** Shared empty props sentinel — identity-checked in mountElement to skip applyProps. */\nexport const EMPTY_PROPS: Props = {} as Props\n\n/** Makes `children` optional in P (if present) so it can be passed as rest args to h(). */\ntype PropsWithOptionalChildren<P extends Props> = Omit<P, 'children'> &\n ('children' extends keyof P ? { children?: P['children'] } : unknown)\n\n// Overload: component with typed props — children is optional in the props object\n// because it can be passed as rest args. Extra keys are allowed via `& Props`.\nexport function h<P extends Props>(\n type: ComponentFn<P>,\n props: (PropsWithOptionalChildren<P> & Props) | null,\n ...children: VNodeChild[]\n): VNode\n// Overload: intrinsic element, symbol, generic/dynamic component, or mixed union\nexport function h(\n type: string | ((p: any) => VNodeChild) | symbol,\n props: Props | null,\n ...children: VNodeChild[]\n): VNode\nexport function h<P extends Props>(\n type: string | ComponentFn<P> | symbol,\n props: P | null,\n ...children: VNodeChild[]\n): VNode {\n return {\n type: type as string | ComponentFn | symbol,\n props: (props ?? EMPTY_PROPS) as Props,\n children: normalizeChildren(children),\n key: (props?.key as string | number | null) ?? null,\n }\n}\n\nfunction normalizeChildren(children: VNodeChild[]): VNodeChild[] {\n // Fast path: no nested arrays — return as-is without allocating\n for (let i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return flattenChildren(children)\n }\n }\n return children\n}\n\nfunction flattenChildren(children: VNodeChild[]): VNodeChild[] {\n const result: VNodeChild[] = []\n for (const child of children) {\n if (Array.isArray(child)) {\n result.push(...flattenChildren(child as VNodeChild[]))\n } else {\n result.push(child)\n }\n }\n return result\n}\n","/**\n * JSX automatic runtime.\n *\n * When tsconfig has `\"jsxImportSource\": \"@pyreon/core\"`, the TS/bundler compiler\n * rewrites JSX to imports from this file automatically:\n * <div class=\"x\" /> → jsx(\"div\", { class: \"x\" })\n */\nimport { Fragment, h } from './h'\nimport type { RefProp } from './ref'\nimport type { ClassValue } from './style'\nimport type { ComponentFn, Props, VNode, VNodeChild } from './types'\n\nexport { Fragment }\n\nexport function jsx(\n type: string | ComponentFn | symbol,\n props: Props & { children?: VNodeChild | VNodeChild[] },\n key?: string | number | null,\n): VNode {\n const { children, ...rest } = props\n const propsWithKey = (key != null ? { ...rest, key } : rest) as Props\n\n if (typeof type === 'function') {\n // Component: keep children in props.children so the component function can access them.\n // Children must NOT be spread as h() rest args because mountComponent only passes vnode.props.\n const componentProps = children !== undefined ? { ...propsWithKey, children } : propsWithKey\n return h(type, componentProps)\n }\n\n // DOM element or symbol (Fragment, ForSymbol): children go in vnode.children\n const childArray = children === undefined ? [] : Array.isArray(children) ? children : [children]\n return h(type, propsWithKey, ...(childArray as VNodeChild[]))\n}\n\n// jsxs is called when there are multiple static children — same signature\nexport const jsxs = jsx\n\n// ─── JSX types ────────────────────────────────────────────────────────────────\n\ntype Booleanish = boolean | 'true' | 'false'\nexport type CSSProperties = { [K in keyof CSSStyleDeclaration]?: string | number }\nexport type StyleValue = string | CSSProperties\n\n/** Event with typed currentTarget — used in element-specific event handlers. */\nexport type TargetedEvent<T extends Element, E extends Event = Event> = E & {\n readonly currentTarget: T\n}\n\n/** Common HTML attributes accepted by all Pyreon elements */\nexport interface PyreonHTMLAttributes<E extends Element = HTMLElement> {\n // Identity\n id?: string | (() => string) | undefined\n class?: ClassValue | (() => ClassValue) | undefined\n className?: ClassValue | (() => ClassValue) | undefined\n style?: StyleValue | (() => StyleValue) | undefined\n // Accessible\n role?: string | (() => string) | undefined\n tabIndex?: number | (() => number) | undefined\n title?: string | (() => string) | undefined\n lang?: string | undefined\n dir?: 'ltr' | 'rtl' | 'auto' | undefined\n hidden?: boolean | (() => boolean) | undefined\n draggable?: Booleanish | undefined\n contentEditable?: Booleanish | 'inherit' | 'plaintext-only' | undefined\n spellCheck?: Booleanish | undefined\n autoCapitalize?: 'off' | 'on' | 'sentences' | 'words' | 'characters' | undefined\n translate?: 'yes' | 'no' | undefined\n enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined\n inputMode?:\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'\n | undefined\n is?: string | undefined\n slot?: string | undefined\n part?: string | undefined\n popover?: 'auto' | 'manual' | undefined\n popoverTarget?: string | undefined\n popoverTargetAction?: 'toggle' | 'show' | 'hide' | undefined\n inert?: boolean | undefined\n // ARIA\n 'aria-label'?: string | (() => string) | undefined\n 'aria-hidden'?: Booleanish | (() => Booleanish) | undefined\n 'aria-disabled'?: Booleanish | (() => Booleanish) | undefined\n 'aria-expanded'?: Booleanish | (() => Booleanish) | undefined\n 'aria-selected'?: Booleanish | (() => Booleanish) | undefined\n 'aria-checked'?: Booleanish | 'mixed' | (() => Booleanish | 'mixed') | undefined\n 'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined\n 'aria-live'?: 'off' | 'assertive' | 'polite' | undefined\n 'aria-atomic'?: Booleanish | undefined\n 'aria-busy'?: Booleanish | undefined\n 'aria-controls'?: string | undefined\n 'aria-describedby'?: string | undefined\n 'aria-labelledby'?: string | undefined\n 'aria-placeholder'?: string | undefined\n 'aria-required'?: Booleanish | (() => Booleanish) | undefined\n 'aria-invalid'?: Booleanish | 'grammar' | 'spelling' | undefined\n 'aria-valuemin'?: number | undefined\n 'aria-valuemax'?: number | undefined\n 'aria-valuenow'?: number | undefined\n 'aria-valuetext'?: string | undefined\n 'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined\n 'aria-posinset'?: number | undefined\n 'aria-setsize'?: number | undefined\n 'aria-level'?: number | undefined\n 'aria-multiline'?: Booleanish | undefined\n 'aria-multiselectable'?: Booleanish | undefined\n 'aria-orientation'?: 'horizontal' | 'vertical' | undefined\n 'aria-readonly'?: Booleanish | (() => Booleanish) | undefined\n 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined\n 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined\n 'aria-colcount'?: number | undefined\n 'aria-colindex'?: number | undefined\n 'aria-colspan'?: number | undefined\n 'aria-rowcount'?: number | undefined\n 'aria-rowindex'?: number | undefined\n 'aria-rowspan'?: number | undefined\n // DOM lifecycle ref — object ref or callback ref\n ref?: RefProp<E> | undefined\n // Key for list reconciliation\n key?: string | number | undefined\n // Children — allows null, undefined, boolean in JSX children positions\n children?: VNodeChild | VNodeChild[]\n // innerHTML\n innerHTML?: string | undefined\n dangerouslySetInnerHTML?: { __html: string } | undefined\n // Events — typed currentTarget via generic E\n onClick?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onDblClick?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseDown?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseUp?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseEnter?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseLeave?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseMove?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseOver?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseOut?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onContextMenu?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onKeyDown?: ((e: TargetedEvent<E, KeyboardEvent>) => void) | undefined\n onKeyUp?: ((e: TargetedEvent<E, KeyboardEvent>) => void) | undefined\n onKeyPress?: ((e: TargetedEvent<E, KeyboardEvent>) => void) | undefined\n onFocus?: ((e: TargetedEvent<E, FocusEvent>) => void) | undefined\n onBlur?: ((e: TargetedEvent<E, FocusEvent>) => void) | undefined\n onChange?: ((e: TargetedEvent<E>) => void) | undefined\n onInput?: ((e: TargetedEvent<E, InputEvent>) => void) | undefined\n onBeforeInput?: ((e: TargetedEvent<E, InputEvent>) => void) | undefined\n onSubmit?: ((e: TargetedEvent<E, SubmitEvent>) => void) | undefined\n onReset?: ((e: TargetedEvent<E>) => void) | undefined\n onInvalid?: ((e: TargetedEvent<E>) => void) | undefined\n onScroll?: ((e: TargetedEvent<E>) => void) | undefined\n onWheel?: ((e: TargetedEvent<E, WheelEvent>) => void) | undefined\n onResize?: ((e: TargetedEvent<E>) => void) | undefined\n onDragStart?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragEnd?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragOver?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragEnter?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragLeave?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDrop?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onTouchStart?: ((e: TargetedEvent<E, TouchEvent>) => void) | undefined\n onTouchEnd?: ((e: TargetedEvent<E, TouchEvent>) => void) | undefined\n onTouchMove?: ((e: TargetedEvent<E, TouchEvent>) => void) | undefined\n onPointerDown?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerUp?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerMove?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerEnter?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerLeave?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerCancel?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerOver?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerOut?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onTransitionEnd?: ((e: TargetedEvent<E, TransitionEvent>) => void) | undefined\n onAnimationStart?: ((e: TargetedEvent<E, AnimationEvent>) => void) | undefined\n onAnimationEnd?: ((e: TargetedEvent<E, AnimationEvent>) => void) | undefined\n onAnimationIteration?: ((e: TargetedEvent<E, AnimationEvent>) => void) | undefined\n onToggle?: ((e: TargetedEvent<E>) => void) | undefined\n onLoad?: ((e: TargetedEvent<E>) => void) | undefined\n onError?: ((e: TargetedEvent<E> | string) => void) | undefined\n onAbort?: ((e: TargetedEvent<E>) => void) | undefined\n onSelect?: ((e: TargetedEvent<E>) => void) | undefined\n onCopy?: ((e: TargetedEvent<E, ClipboardEvent>) => void) | undefined\n onCut?: ((e: TargetedEvent<E, ClipboardEvent>) => void) | undefined\n onPaste?: ((e: TargetedEvent<E, ClipboardEvent>) => void) | undefined\n // data-* and aria-* catch-all (typed attributes above catch typos)\n [key: `data-${string}`]: unknown\n [key: `aria-${string}`]: unknown\n}\n\n/** Attributes specific to form inputs */\nexport interface InputAttributes extends PyreonHTMLAttributes<HTMLInputElement> {\n type?: string | (() => string) | undefined\n value?: string | number | (() => string | number) | undefined\n defaultValue?: string | number | undefined\n checked?: boolean | (() => boolean) | undefined\n defaultChecked?: boolean | undefined\n placeholder?: string | (() => string) | undefined\n disabled?: boolean | (() => boolean) | undefined\n readOnly?: boolean | undefined\n required?: boolean | (() => boolean) | undefined\n min?: string | number | undefined\n max?: string | number | undefined\n step?: string | number | undefined\n minLength?: number | undefined\n maxLength?: number | undefined\n pattern?: string | undefined\n multiple?: boolean | undefined\n name?: string | undefined\n accept?: string | undefined\n autoComplete?: string | undefined\n autoFocus?: boolean | undefined\n capture?: 'user' | 'environment' | string | undefined\n form?: string | undefined\n formNoValidate?: boolean | undefined\n list?: string | undefined\n size?: number | undefined\n src?: string | (() => string) | undefined\n alt?: string | (() => string) | undefined\n width?: number | string | undefined\n height?: number | string | undefined\n}\n\nexport interface AnchorAttributes extends PyreonHTMLAttributes<HTMLAnchorElement> {\n href?: string | (() => string) | undefined\n hreflang?: string | undefined\n ping?: string | undefined\n referrerPolicy?: string | undefined\n target?: '_blank' | '_self' | '_parent' | '_top' | string | undefined\n rel?: string | undefined\n download?: string | boolean | undefined\n}\n\nexport interface ButtonAttributes extends PyreonHTMLAttributes<HTMLButtonElement> {\n type?: 'button' | 'submit' | 'reset' | undefined\n disabled?: boolean | (() => boolean) | undefined\n name?: string | undefined\n value?: string | undefined\n form?: string | undefined\n formAction?: string | undefined\n formMethod?: string | undefined\n formEncType?: string | undefined\n formNoValidate?: boolean | undefined\n formTarget?: string | undefined\n}\n\nexport interface TextareaAttributes extends PyreonHTMLAttributes<HTMLTextAreaElement> {\n value?: string | (() => string) | undefined\n defaultValue?: string | undefined\n placeholder?: string | (() => string) | undefined\n disabled?: boolean | (() => boolean) | undefined\n readOnly?: boolean | undefined\n required?: boolean | (() => boolean) | undefined\n rows?: number | undefined\n cols?: number | undefined\n minLength?: number | undefined\n maxLength?: number | undefined\n name?: string | undefined\n autoFocus?: boolean | undefined\n form?: string | undefined\n wrap?: 'hard' | 'soft' | undefined\n}\n\nexport interface SelectAttributes extends PyreonHTMLAttributes<HTMLSelectElement> {\n value?: string | string[] | (() => string | string[]) | undefined\n defaultValue?: string | string[] | undefined\n disabled?: boolean | (() => boolean) | undefined\n required?: boolean | (() => boolean) | undefined\n multiple?: boolean | undefined\n name?: string | undefined\n size?: number | undefined\n form?: string | undefined\n autoFocus?: boolean | undefined\n}\n\ninterface OptionAttributes extends PyreonHTMLAttributes<HTMLOptionElement> {\n value?: string | number | (() => string | number) | undefined\n disabled?: boolean | (() => boolean) | undefined\n selected?: boolean | (() => boolean) | undefined\n label?: string | undefined\n}\n\nexport interface FormAttributes extends PyreonHTMLAttributes<HTMLFormElement> {\n action?: string | undefined\n method?: 'get' | 'post' | undefined\n encType?: string | undefined\n noValidate?: boolean | undefined\n target?: string | undefined\n name?: string | undefined\n autoComplete?: string | undefined\n acceptCharset?: string | undefined\n rel?: string | undefined\n}\n\nexport interface ImgAttributes extends PyreonHTMLAttributes<HTMLImageElement> {\n src?: string | (() => string) | undefined\n alt?: string | (() => string) | undefined\n width?: number | string | (() => number | string) | undefined\n height?: number | string | (() => number | string) | undefined\n loading?: 'lazy' | 'eager' | undefined\n decoding?: 'auto' | 'async' | 'sync' | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n referrerPolicy?: string | undefined\n srcSet?: string | (() => string) | undefined\n sizes?: string | (() => string) | undefined\n fetchPriority?: 'high' | 'low' | 'auto' | undefined\n}\n\ninterface VideoAttributes extends PyreonHTMLAttributes<HTMLVideoElement> {\n src?: string | (() => string) | undefined\n width?: number | string | undefined\n height?: number | string | undefined\n controls?: boolean | undefined\n autoPlay?: boolean | undefined\n muted?: boolean | undefined\n loop?: boolean | undefined\n poster?: string | (() => string) | undefined\n preload?: 'none' | 'metadata' | 'auto' | undefined\n playsInline?: boolean | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n disablePictureInPicture?: boolean | undefined\n disableRemotePlayback?: boolean | undefined\n}\n\ninterface AudioAttributes extends PyreonHTMLAttributes<HTMLAudioElement> {\n src?: string | (() => string) | undefined\n controls?: boolean | undefined\n autoPlay?: boolean | undefined\n muted?: boolean | undefined\n loop?: boolean | undefined\n preload?: 'none' | 'metadata' | 'auto' | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n}\n\ninterface LabelAttributes extends PyreonHTMLAttributes<HTMLLabelElement> {\n htmlFor?: string | undefined\n for?: string | undefined\n form?: string | undefined\n}\n\ninterface ThAttributes extends PyreonHTMLAttributes<HTMLTableCellElement> {\n colSpan?: number | undefined\n rowSpan?: number | undefined\n scope?: 'col' | 'row' | 'colgroup' | 'rowgroup' | undefined\n abbr?: string | undefined\n headers?: string | undefined\n}\n\ninterface TdAttributes extends PyreonHTMLAttributes<HTMLTableCellElement> {\n colSpan?: number | undefined\n rowSpan?: number | undefined\n headers?: string | undefined\n}\n\ninterface ColAttributes extends PyreonHTMLAttributes<HTMLTableColElement> {\n span?: number | undefined\n}\n\ninterface IframeAttributes extends PyreonHTMLAttributes<HTMLIFrameElement> {\n src?: string | (() => string) | undefined\n width?: number | string | undefined\n height?: number | string | undefined\n allow?: string | undefined\n allowFullScreen?: boolean | undefined\n loading?: 'lazy' | 'eager' | undefined\n name?: string | undefined\n sandbox?: string | undefined\n referrerPolicy?: string | undefined\n title?: string | undefined\n}\n\ninterface LinkAttributes extends PyreonHTMLAttributes<HTMLLinkElement> {\n href?: string | (() => string) | undefined\n rel?: string | undefined\n type?: string | undefined\n as?: string | undefined\n media?: string | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n integrity?: string | undefined\n referrerPolicy?: string | undefined\n}\n\ninterface MetaAttributes extends PyreonHTMLAttributes<HTMLMetaElement> {\n name?: string | undefined\n content?: string | (() => string) | undefined\n httpEquiv?: string | undefined\n charset?: string | undefined\n property?: string | undefined\n}\n\ninterface ScriptAttributes extends PyreonHTMLAttributes<HTMLScriptElement> {\n src?: string | (() => string) | undefined\n type?: string | undefined\n async?: boolean | undefined\n defer?: boolean | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n integrity?: string | undefined\n noModule?: boolean | undefined\n referrerPolicy?: string | undefined\n}\n\ninterface SourceAttributes extends PyreonHTMLAttributes<HTMLSourceElement> {\n src?: string | (() => string) | undefined\n type?: string | undefined\n srcSet?: string | (() => string) | undefined\n sizes?: string | (() => string) | undefined\n media?: string | undefined\n}\n\ninterface ProgressAttributes extends PyreonHTMLAttributes<HTMLProgressElement> {\n value?: number | (() => number) | undefined\n max?: number | undefined\n}\n\ninterface MeterAttributes extends PyreonHTMLAttributes<HTMLMeterElement> {\n value?: number | (() => number) | undefined\n min?: number | undefined\n max?: number | undefined\n low?: number | undefined\n high?: number | undefined\n optimum?: number | undefined\n}\n\ninterface DetailsAttributes extends PyreonHTMLAttributes<HTMLDetailsElement> {\n open?: boolean | (() => boolean) | undefined\n}\n\ninterface DialogAttributes extends PyreonHTMLAttributes<HTMLDialogElement> {\n open?: boolean | (() => boolean) | undefined\n}\n\ninterface OlAttributes extends PyreonHTMLAttributes<HTMLOListElement> {\n start?: number | undefined\n reversed?: boolean | undefined\n type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined\n}\n\ninterface CanvasAttributes extends PyreonHTMLAttributes<HTMLCanvasElement> {\n width?: number | string | undefined\n height?: number | string | undefined\n}\n\nexport interface SvgAttributes extends PyreonHTMLAttributes<SVGElement> {\n viewBox?: string | undefined\n xmlns?: string | undefined\n fill?: string | (() => string) | undefined\n stroke?: string | (() => string) | undefined\n 'stroke-width'?: string | number | (() => string | number) | undefined\n 'stroke-linecap'?: 'butt' | 'round' | 'square' | undefined\n 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | undefined\n 'fill-rule'?: 'nonzero' | 'evenodd' | undefined\n 'clip-rule'?: 'nonzero' | 'evenodd' | undefined\n 'clip-path'?: string | undefined\n d?: string | (() => string) | undefined\n cx?: string | number | undefined\n cy?: string | number | undefined\n r?: string | number | undefined\n rx?: string | number | undefined\n ry?: string | number | undefined\n x?: string | number | undefined\n y?: string | number | undefined\n x1?: string | number | undefined\n y1?: string | number | undefined\n x2?: string | number | undefined\n y2?: string | number | undefined\n width?: string | number | undefined\n height?: string | number | undefined\n transform?: string | (() => string) | undefined\n opacity?: string | number | (() => string | number) | undefined\n points?: string | undefined\n 'font-size'?: string | number | undefined\n 'text-anchor'?: 'start' | 'middle' | 'end' | undefined\n 'dominant-baseline'?: string | undefined\n // Gradient & pattern\n gradientUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n gradientTransform?: string | undefined\n patternUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n patternContentUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n patternTransform?: string | undefined\n spreadMethod?: 'pad' | 'reflect' | 'repeat' | undefined\n // Marker\n markerWidth?: string | number | undefined\n markerHeight?: string | number | undefined\n markerUnits?: 'strokeWidth' | 'userSpaceOnUse' | undefined\n orient?: string | number | undefined\n refX?: string | number | undefined\n refY?: string | number | undefined\n // Clipping & masking\n maskUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n maskContentUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n clipPathUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n // Filter\n filterUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n primitiveUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n // Presentation\n preserveAspectRatio?: string | undefined\n 'color-interpolation'?: string | undefined\n 'color-interpolation-filters'?: string | undefined\n 'shape-rendering'?: string | undefined\n 'image-rendering'?: string | undefined\n 'text-rendering'?: string | undefined\n 'pointer-events'?: string | undefined\n visibility?: string | undefined\n display?: string | undefined\n overflow?: string | undefined\n cursor?: string | undefined\n // Text\n dx?: string | number | undefined\n dy?: string | number | undefined\n textLength?: string | number | undefined\n lengthAdjust?: 'spacing' | 'spacingAndGlyphs' | undefined\n 'writing-mode'?: string | undefined\n 'letter-spacing'?: string | number | undefined\n 'word-spacing'?: string | number | undefined\n // Path\n pathLength?: number | undefined\n // Use/href\n href?: string | undefined\n}\n\ndeclare global {\n namespace JSX {\n /** The type that JSX expressions evaluate to */\n type Element = import('./types').VNode\n\n /**\n * Valid JSX tag types — intrinsic strings + component functions.\n * Components may return VNode, null, strings, functions (reactive getters), etc.\n * (TS 5.1+ feature)\n */\n type ElementType = keyof IntrinsicElements | ((props: any) => import('./types').VNodeChild)\n\n /** Props that can be passed to any JSX element (intrinsic or component) */\n interface IntrinsicAttributes {\n key?: string | number | undefined\n }\n\n /** Tells TS which prop name carries children in component calls */\n interface ElementChildrenAttribute {\n children: {}\n }\n\n interface IntrinsicElements {\n // Document structure\n html: PyreonHTMLAttributes\n head: PyreonHTMLAttributes\n body: PyreonHTMLAttributes\n title: PyreonHTMLAttributes\n base: PyreonHTMLAttributes\n meta: MetaAttributes\n link: LinkAttributes\n script: ScriptAttributes\n style: PyreonHTMLAttributes\n noscript: PyreonHTMLAttributes\n // Sections\n main: PyreonHTMLAttributes\n header: PyreonHTMLAttributes\n footer: PyreonHTMLAttributes\n nav: PyreonHTMLAttributes\n aside: PyreonHTMLAttributes\n section: PyreonHTMLAttributes\n article: PyreonHTMLAttributes\n address: PyreonHTMLAttributes\n h1: PyreonHTMLAttributes\n h2: PyreonHTMLAttributes\n h3: PyreonHTMLAttributes\n h4: PyreonHTMLAttributes\n h5: PyreonHTMLAttributes\n h6: PyreonHTMLAttributes\n hgroup: PyreonHTMLAttributes\n // Block text\n p: PyreonHTMLAttributes\n pre: PyreonHTMLAttributes\n blockquote: PyreonHTMLAttributes\n figure: PyreonHTMLAttributes\n figcaption: PyreonHTMLAttributes\n div: PyreonHTMLAttributes\n hr: PyreonHTMLAttributes\n // Inline text\n span: PyreonHTMLAttributes\n a: AnchorAttributes\n em: PyreonHTMLAttributes\n strong: PyreonHTMLAttributes\n small: PyreonHTMLAttributes\n s: PyreonHTMLAttributes\n cite: PyreonHTMLAttributes\n q: PyreonHTMLAttributes\n abbr: PyreonHTMLAttributes\n time: PyreonHTMLAttributes\n code: PyreonHTMLAttributes\n var: PyreonHTMLAttributes\n samp: PyreonHTMLAttributes\n kbd: PyreonHTMLAttributes\n mark: PyreonHTMLAttributes\n sub: PyreonHTMLAttributes\n sup: PyreonHTMLAttributes\n i: PyreonHTMLAttributes\n b: PyreonHTMLAttributes\n u: PyreonHTMLAttributes\n bdi: PyreonHTMLAttributes\n bdo: PyreonHTMLAttributes\n br: PyreonHTMLAttributes\n wbr: PyreonHTMLAttributes\n ruby: PyreonHTMLAttributes\n rt: PyreonHTMLAttributes\n rp: PyreonHTMLAttributes\n // Lists\n ul: PyreonHTMLAttributes\n ol: OlAttributes\n li: PyreonHTMLAttributes\n dl: PyreonHTMLAttributes\n dt: PyreonHTMLAttributes\n dd: PyreonHTMLAttributes\n // Forms\n form: FormAttributes\n label: LabelAttributes\n input: InputAttributes\n button: ButtonAttributes\n select: SelectAttributes\n datalist: PyreonHTMLAttributes\n optgroup: PyreonHTMLAttributes\n option: OptionAttributes\n textarea: TextareaAttributes\n output: PyreonHTMLAttributes\n progress: ProgressAttributes\n meter: MeterAttributes\n fieldset: PyreonHTMLAttributes\n legend: PyreonHTMLAttributes\n // Tables\n table: PyreonHTMLAttributes\n caption: PyreonHTMLAttributes\n colgroup: PyreonHTMLAttributes\n col: ColAttributes\n thead: PyreonHTMLAttributes\n tbody: PyreonHTMLAttributes\n tfoot: PyreonHTMLAttributes\n tr: PyreonHTMLAttributes\n th: ThAttributes\n td: TdAttributes\n // Media\n img: ImgAttributes\n video: VideoAttributes\n audio: AudioAttributes\n source: SourceAttributes\n track: PyreonHTMLAttributes\n picture: PyreonHTMLAttributes\n canvas: CanvasAttributes\n svg: SvgAttributes\n path: SvgAttributes\n circle: SvgAttributes\n ellipse: SvgAttributes\n line: SvgAttributes\n polyline: SvgAttributes\n polygon: SvgAttributes\n rect: SvgAttributes\n text: SvgAttributes\n tspan: SvgAttributes\n g: SvgAttributes\n defs: SvgAttributes\n use: SvgAttributes & { href?: string }\n symbol: SvgAttributes\n clipPath: SvgAttributes\n mask: SvgAttributes\n marker: SvgAttributes\n pattern: SvgAttributes\n linearGradient: SvgAttributes\n radialGradient: SvgAttributes\n stop: SvgAttributes & {\n offset?: string | number\n 'stop-color'?: string\n 'stop-opacity'?: string | number\n }\n // Interactive / embedding\n details: DetailsAttributes\n summary: PyreonHTMLAttributes\n dialog: DialogAttributes\n iframe: IframeAttributes\n embed: PyreonHTMLAttributes\n object: PyreonHTMLAttributes\n param: PyreonHTMLAttributes\n // Semantic / misc\n menu: PyreonHTMLAttributes\n menuitem: PyreonHTMLAttributes\n template: PyreonHTMLAttributes\n slot: PyreonHTMLAttributes\n portal: PyreonHTMLAttributes\n // Catch-all for custom elements and data-* attrs\n [tagName: string]: PyreonHTMLAttributes<any>\n }\n }\n}\n"],"mappings":";;AAGA,MAAa,WAA0B,OAAO,kBAAkB;;;;;;;;;AAUhE,MAAa,cAAqB,EAAE;AAmBpC,SAAgB,EACd,MACA,OACA,GAAG,UACI;AACP,QAAO;EACC;EACN,OAAQ,SAAS;EACjB,UAAU,kBAAkB,SAAS;EACrC,KAAM,OAAO,OAAkC;EAChD;;AAGH,SAAS,kBAAkB,UAAsC;AAE/D,MAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,IACnC,KAAI,MAAM,QAAQ,SAAS,GAAG,CAC5B,QAAO,gBAAgB,SAAS;AAGpC,QAAO;;AAGT,SAAS,gBAAgB,UAAsC;CAC7D,MAAM,SAAuB,EAAE;AAC/B,MAAK,MAAM,SAAS,SAClB,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,KAAK,GAAG,gBAAgB,MAAsB,CAAC;KAEtD,QAAO,KAAK,MAAM;AAGtB,QAAO;;;;;;;;;;;;AClDT,SAAgB,IACd,MACA,OACA,KACO;CACP,MAAM,EAAE,UAAU,GAAG,SAAS;CAC9B,MAAM,eAAgB,OAAO,OAAO;EAAE,GAAG;EAAM;EAAK,GAAG;AAEvD,KAAI,OAAO,SAAS,WAIlB,QAAO,EAAE,MADc,aAAa,SAAY;EAAE,GAAG;EAAc;EAAU,GAAG,aAClD;AAKhC,QAAO,EAAE,MAAM,cAAc,GADV,aAAa,SAAY,EAAE,GAAG,MAAM,QAAQ,SAAS,GAAG,WAAW,CAAC,SAAS,CACnC;;AAI/D,MAAa,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-runtime.js","names":[],"sources":["../src/h.ts","../src/jsx-runtime.ts"],"sourcesContent":["import type { ComponentFn, Props, VNode, VNodeChild } from './types'\n\n/** Marker for fragment nodes — renders children without a wrapper element */\nexport const Fragment: unique symbol = Symbol('Pyreon.Fragment')\n\n/**\n * Hyperscript function — the compiled output of JSX.\n * `<div class=\"x\">hello</div>` → `h(\"div\", { class: \"x\" }, \"hello\")`\n *\n * Generic on P so TypeScript validates props match the component's signature\n * at the call site, then stores the result in the loosely-typed VNode.\n */\n/** Shared empty props sentinel — identity-checked in mountElement to skip applyProps. */\nexport const EMPTY_PROPS: Props = {} as Props\n\n/** Makes `children` optional in P (if present) so it can be passed as rest args to h(). */\ntype PropsWithOptionalChildren<P extends Props> = Omit<P, 'children'> &\n ('children' extends keyof P ? { children?: P['children'] } : unknown)\n\n// Overload: component with typed props — children is optional in the props object\n// because it can be passed as rest args. Extra keys are allowed via `& Props`.\nexport function h<P extends Props>(\n type: ComponentFn<P>,\n props: (PropsWithOptionalChildren<P> & Props) | null,\n ...children: VNodeChild[]\n): VNode\n// Overload: intrinsic element, symbol, generic/dynamic component, or mixed union\nexport function h(\n type: string | ((p: any) => VNodeChild) | symbol,\n props: Props | null,\n ...children: VNodeChild[]\n): VNode\nexport function h<P extends Props>(\n type: string | ComponentFn<P> | symbol,\n props: P | null,\n ...children: VNodeChild[]\n): VNode {\n return {\n type: type as string | ComponentFn | symbol,\n props: (props ?? EMPTY_PROPS) as Props,\n children: normalizeChildren(children),\n key: (props?.key as string | number | null) ?? null,\n }\n}\n\nfunction normalizeChildren(children: VNodeChild[]): VNodeChild[] {\n // Fast path: no nested arrays — return as-is without allocating\n for (let i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return flattenChildren(children)\n }\n }\n return children\n}\n\nfunction flattenChildren(children: VNodeChild[]): VNodeChild[] {\n const result: VNodeChild[] = []\n for (const child of children) {\n if (Array.isArray(child)) {\n result.push(...flattenChildren(child as VNodeChild[]))\n } else {\n result.push(child)\n }\n }\n return result\n}\n","/**\n * JSX automatic runtime.\n *\n * When tsconfig has `\"jsxImportSource\": \"@pyreon/core\"`, the TS/bundler compiler\n * rewrites JSX to imports from this file automatically:\n * <div class=\"x\" /> → jsx(\"div\", { class: \"x\" })\n */\nimport { Fragment, h } from './h'\nimport type { RefProp } from './ref'\nimport type { ClassValue } from './style'\nimport type { ComponentFn, Props, VNode, VNodeChild } from './types'\n\nexport { Fragment }\n\nexport function jsx(\n type: string | ComponentFn | symbol,\n props: Props & { children?: VNodeChild | VNodeChild[] },\n key?: string | number | null,\n): VNode {\n const { children, ...rest } = props\n const propsWithKey = (key != null ? { ...rest, key } : rest) as Props\n\n if (typeof type === 'function') {\n // Component: keep children in props.children so the component function can access them.\n // Children must NOT be spread as h() rest args because mountComponent only passes vnode.props.\n const componentProps = children !== undefined ? { ...propsWithKey, children } : propsWithKey\n return h(type, componentProps)\n }\n\n // DOM element or symbol (Fragment, ForSymbol): children go in vnode.children\n const childArray = children === undefined ? [] : Array.isArray(children) ? children : [children]\n return h(type, propsWithKey, ...(childArray as VNodeChild[]))\n}\n\n// jsxs is called when there are multiple static children — same signature\nexport const jsxs = jsx\n\n// ─── JSX types ────────────────────────────────────────────────────────────────\n\ntype Booleanish = boolean | 'true' | 'false'\nexport type CSSProperties = { [K in keyof CSSStyleDeclaration]?: string | number }\nexport type StyleValue = string | CSSProperties\n\n/** Event with typed currentTarget — used in element-specific event handlers. */\nexport type TargetedEvent<T extends Element, E extends Event = Event> = E & {\n readonly currentTarget: T\n}\n\n/** Common HTML attributes accepted by all Pyreon elements */\nexport interface PyreonHTMLAttributes<E extends Element = HTMLElement> {\n // Identity\n id?: string | (() => string) | undefined\n class?: ClassValue | (() => ClassValue) | undefined\n className?: ClassValue | (() => ClassValue) | undefined\n style?: StyleValue | (() => StyleValue) | undefined\n // Accessible\n role?: string | (() => string) | undefined\n tabIndex?: number | (() => number) | undefined\n title?: string | (() => string) | undefined\n lang?: string | undefined\n dir?: 'ltr' | 'rtl' | 'auto' | undefined\n hidden?: boolean | (() => boolean) | undefined\n draggable?: Booleanish | undefined\n contentEditable?: Booleanish | 'inherit' | 'plaintext-only' | undefined\n spellCheck?: Booleanish | undefined\n autoCapitalize?: 'off' | 'on' | 'sentences' | 'words' | 'characters' | undefined\n translate?: 'yes' | 'no' | undefined\n enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined\n inputMode?:\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'\n | undefined\n is?: string | undefined\n slot?: string | undefined\n part?: string | undefined\n popover?: 'auto' | 'manual' | undefined\n popoverTarget?: string | undefined\n popoverTargetAction?: 'toggle' | 'show' | 'hide' | undefined\n inert?: boolean | undefined\n // ARIA\n 'aria-label'?: string | (() => string) | undefined\n 'aria-hidden'?: Booleanish | (() => Booleanish) | undefined\n 'aria-disabled'?: Booleanish | (() => Booleanish) | undefined\n 'aria-expanded'?: Booleanish | (() => Booleanish) | undefined\n 'aria-selected'?: Booleanish | (() => Booleanish) | undefined\n 'aria-checked'?: Booleanish | 'mixed' | (() => Booleanish | 'mixed') | undefined\n 'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined\n 'aria-live'?: 'off' | 'assertive' | 'polite' | undefined\n 'aria-atomic'?: Booleanish | undefined\n 'aria-busy'?: Booleanish | undefined\n 'aria-controls'?: string | undefined\n 'aria-describedby'?: string | undefined\n 'aria-labelledby'?: string | undefined\n 'aria-placeholder'?: string | undefined\n 'aria-required'?: Booleanish | (() => Booleanish) | undefined\n 'aria-invalid'?: Booleanish | 'grammar' | 'spelling' | undefined\n 'aria-valuemin'?: number | undefined\n 'aria-valuemax'?: number | undefined\n 'aria-valuenow'?: number | undefined\n 'aria-valuetext'?: string | undefined\n 'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined\n 'aria-posinset'?: number | undefined\n 'aria-setsize'?: number | undefined\n 'aria-level'?: number | undefined\n 'aria-multiline'?: Booleanish | undefined\n 'aria-multiselectable'?: Booleanish | undefined\n 'aria-orientation'?: 'horizontal' | 'vertical' | undefined\n 'aria-readonly'?: Booleanish | (() => Booleanish) | undefined\n 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined\n 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined\n 'aria-colcount'?: number | undefined\n 'aria-colindex'?: number | undefined\n 'aria-colspan'?: number | undefined\n 'aria-rowcount'?: number | undefined\n 'aria-rowindex'?: number | undefined\n 'aria-rowspan'?: number | undefined\n // DOM lifecycle ref — object ref or callback ref\n ref?: RefProp<E> | undefined\n // Key for list reconciliation\n key?: string | number | undefined\n // Children — allows null, undefined, boolean in JSX children positions\n children?: VNodeChild | VNodeChild[]\n // innerHTML\n innerHTML?: string | undefined\n dangerouslySetInnerHTML?: { __html: string } | undefined\n // Events — typed currentTarget via generic E\n onClick?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onDblClick?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseDown?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseUp?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseEnter?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseLeave?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseMove?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseOver?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onMouseOut?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onContextMenu?: ((e: TargetedEvent<E, MouseEvent>) => void) | undefined\n onKeyDown?: ((e: TargetedEvent<E, KeyboardEvent>) => void) | undefined\n onKeyUp?: ((e: TargetedEvent<E, KeyboardEvent>) => void) | undefined\n onKeyPress?: ((e: TargetedEvent<E, KeyboardEvent>) => void) | undefined\n onFocus?: ((e: TargetedEvent<E, FocusEvent>) => void) | undefined\n onBlur?: ((e: TargetedEvent<E, FocusEvent>) => void) | undefined\n onChange?: ((e: TargetedEvent<E>) => void) | undefined\n onInput?: ((e: TargetedEvent<E, InputEvent>) => void) | undefined\n onBeforeInput?: ((e: TargetedEvent<E, InputEvent>) => void) | undefined\n onSubmit?: ((e: TargetedEvent<E, SubmitEvent>) => void) | undefined\n onReset?: ((e: TargetedEvent<E>) => void) | undefined\n onInvalid?: ((e: TargetedEvent<E>) => void) | undefined\n onScroll?: ((e: TargetedEvent<E>) => void) | undefined\n onWheel?: ((e: TargetedEvent<E, WheelEvent>) => void) | undefined\n onResize?: ((e: TargetedEvent<E>) => void) | undefined\n onDragStart?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragEnd?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragOver?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragEnter?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDragLeave?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onDrop?: ((e: TargetedEvent<E, DragEvent>) => void) | undefined\n onTouchStart?: ((e: TargetedEvent<E, TouchEvent>) => void) | undefined\n onTouchEnd?: ((e: TargetedEvent<E, TouchEvent>) => void) | undefined\n onTouchMove?: ((e: TargetedEvent<E, TouchEvent>) => void) | undefined\n onPointerDown?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerUp?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerMove?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerEnter?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerLeave?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerCancel?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerOver?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onPointerOut?: ((e: TargetedEvent<E, PointerEvent>) => void) | undefined\n onTransitionEnd?: ((e: TargetedEvent<E, TransitionEvent>) => void) | undefined\n onAnimationStart?: ((e: TargetedEvent<E, AnimationEvent>) => void) | undefined\n onAnimationEnd?: ((e: TargetedEvent<E, AnimationEvent>) => void) | undefined\n onAnimationIteration?: ((e: TargetedEvent<E, AnimationEvent>) => void) | undefined\n onToggle?: ((e: TargetedEvent<E>) => void) | undefined\n onLoad?: ((e: TargetedEvent<E>) => void) | undefined\n onError?: ((e: TargetedEvent<E> | string) => void) | undefined\n onAbort?: ((e: TargetedEvent<E>) => void) | undefined\n onSelect?: ((e: TargetedEvent<E>) => void) | undefined\n onCopy?: ((e: TargetedEvent<E, ClipboardEvent>) => void) | undefined\n onCut?: ((e: TargetedEvent<E, ClipboardEvent>) => void) | undefined\n onPaste?: ((e: TargetedEvent<E, ClipboardEvent>) => void) | undefined\n // data-* and aria-* catch-all (typed attributes above catch typos)\n [key: `data-${string}`]: unknown\n [key: `aria-${string}`]: unknown\n}\n\n/** Attributes specific to form inputs */\nexport interface InputAttributes extends PyreonHTMLAttributes<HTMLInputElement> {\n type?: string | (() => string) | undefined\n value?: string | number | (() => string | number) | undefined\n defaultValue?: string | number | undefined\n checked?: boolean | (() => boolean) | undefined\n defaultChecked?: boolean | undefined\n placeholder?: string | (() => string) | undefined\n disabled?: boolean | (() => boolean) | undefined\n readOnly?: boolean | undefined\n required?: boolean | (() => boolean) | undefined\n min?: string | number | undefined\n max?: string | number | undefined\n step?: string | number | undefined\n minLength?: number | undefined\n maxLength?: number | undefined\n pattern?: string | undefined\n multiple?: boolean | undefined\n name?: string | undefined\n accept?: string | undefined\n autoComplete?: string | undefined\n autoFocus?: boolean | undefined\n capture?: 'user' | 'environment' | string | undefined\n form?: string | undefined\n formNoValidate?: boolean | undefined\n list?: string | undefined\n size?: number | undefined\n src?: string | (() => string) | undefined\n alt?: string | (() => string) | undefined\n width?: number | string | undefined\n height?: number | string | undefined\n}\n\nexport interface AnchorAttributes extends PyreonHTMLAttributes<HTMLAnchorElement> {\n href?: string | (() => string) | undefined\n hreflang?: string | undefined\n ping?: string | undefined\n referrerPolicy?: string | undefined\n target?: '_blank' | '_self' | '_parent' | '_top' | string | undefined\n rel?: string | undefined\n download?: string | boolean | undefined\n}\n\nexport interface ButtonAttributes extends PyreonHTMLAttributes<HTMLButtonElement> {\n type?: 'button' | 'submit' | 'reset' | undefined\n disabled?: boolean | (() => boolean) | undefined\n name?: string | undefined\n value?: string | undefined\n form?: string | undefined\n formAction?: string | undefined\n formMethod?: string | undefined\n formEncType?: string | undefined\n formNoValidate?: boolean | undefined\n formTarget?: string | undefined\n}\n\nexport interface TextareaAttributes extends PyreonHTMLAttributes<HTMLTextAreaElement> {\n value?: string | (() => string) | undefined\n defaultValue?: string | undefined\n placeholder?: string | (() => string) | undefined\n disabled?: boolean | (() => boolean) | undefined\n readOnly?: boolean | undefined\n required?: boolean | (() => boolean) | undefined\n rows?: number | undefined\n cols?: number | undefined\n minLength?: number | undefined\n maxLength?: number | undefined\n name?: string | undefined\n autoFocus?: boolean | undefined\n form?: string | undefined\n wrap?: 'hard' | 'soft' | undefined\n}\n\nexport interface SelectAttributes extends PyreonHTMLAttributes<HTMLSelectElement> {\n value?: string | string[] | (() => string | string[]) | undefined\n defaultValue?: string | string[] | undefined\n disabled?: boolean | (() => boolean) | undefined\n required?: boolean | (() => boolean) | undefined\n multiple?: boolean | undefined\n name?: string | undefined\n size?: number | undefined\n form?: string | undefined\n autoFocus?: boolean | undefined\n}\n\ninterface OptionAttributes extends PyreonHTMLAttributes<HTMLOptionElement> {\n value?: string | number | (() => string | number) | undefined\n disabled?: boolean | (() => boolean) | undefined\n selected?: boolean | (() => boolean) | undefined\n label?: string | undefined\n}\n\nexport interface FormAttributes extends PyreonHTMLAttributes<HTMLFormElement> {\n action?: string | undefined\n method?: 'get' | 'post' | undefined\n encType?: string | undefined\n noValidate?: boolean | undefined\n target?: string | undefined\n name?: string | undefined\n autoComplete?: string | undefined\n acceptCharset?: string | undefined\n rel?: string | undefined\n}\n\nexport interface ImgAttributes extends PyreonHTMLAttributes<HTMLImageElement> {\n src?: string | (() => string) | undefined\n alt?: string | (() => string) | undefined\n width?: number | string | (() => number | string) | undefined\n height?: number | string | (() => number | string) | undefined\n loading?: 'lazy' | 'eager' | undefined\n decoding?: 'auto' | 'async' | 'sync' | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n referrerPolicy?: string | undefined\n srcSet?: string | (() => string) | undefined\n sizes?: string | (() => string) | undefined\n fetchPriority?: 'high' | 'low' | 'auto' | undefined\n}\n\ninterface VideoAttributes extends PyreonHTMLAttributes<HTMLVideoElement> {\n src?: string | (() => string) | undefined\n width?: number | string | undefined\n height?: number | string | undefined\n controls?: boolean | undefined\n autoPlay?: boolean | undefined\n muted?: boolean | undefined\n loop?: boolean | undefined\n poster?: string | (() => string) | undefined\n preload?: 'none' | 'metadata' | 'auto' | undefined\n playsInline?: boolean | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n disablePictureInPicture?: boolean | undefined\n disableRemotePlayback?: boolean | undefined\n}\n\ninterface AudioAttributes extends PyreonHTMLAttributes<HTMLAudioElement> {\n src?: string | (() => string) | undefined\n controls?: boolean | undefined\n autoPlay?: boolean | undefined\n muted?: boolean | undefined\n loop?: boolean | undefined\n preload?: 'none' | 'metadata' | 'auto' | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n}\n\ninterface LabelAttributes extends PyreonHTMLAttributes<HTMLLabelElement> {\n htmlFor?: string | undefined\n for?: string | undefined\n form?: string | undefined\n}\n\ninterface ThAttributes extends PyreonHTMLAttributes<HTMLTableCellElement> {\n colSpan?: number | undefined\n rowSpan?: number | undefined\n scope?: 'col' | 'row' | 'colgroup' | 'rowgroup' | undefined\n abbr?: string | undefined\n headers?: string | undefined\n}\n\ninterface TdAttributes extends PyreonHTMLAttributes<HTMLTableCellElement> {\n colSpan?: number | undefined\n rowSpan?: number | undefined\n headers?: string | undefined\n}\n\ninterface ColAttributes extends PyreonHTMLAttributes<HTMLTableColElement> {\n span?: number | undefined\n}\n\ninterface IframeAttributes extends PyreonHTMLAttributes<HTMLIFrameElement> {\n src?: string | (() => string) | undefined\n width?: number | string | undefined\n height?: number | string | undefined\n allow?: string | undefined\n allowFullScreen?: boolean | undefined\n loading?: 'lazy' | 'eager' | undefined\n name?: string | undefined\n sandbox?: string | undefined\n referrerPolicy?: string | undefined\n title?: string | undefined\n}\n\ninterface LinkAttributes extends PyreonHTMLAttributes<HTMLLinkElement> {\n href?: string | (() => string) | undefined\n rel?: string | undefined\n type?: string | undefined\n as?: string | undefined\n media?: string | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n integrity?: string | undefined\n referrerPolicy?: string | undefined\n}\n\ninterface MetaAttributes extends PyreonHTMLAttributes<HTMLMetaElement> {\n name?: string | undefined\n content?: string | (() => string) | undefined\n httpEquiv?: string | undefined\n charset?: string | undefined\n property?: string | undefined\n}\n\ninterface ScriptAttributes extends PyreonHTMLAttributes<HTMLScriptElement> {\n src?: string | (() => string) | undefined\n type?: string | undefined\n async?: boolean | undefined\n defer?: boolean | undefined\n crossOrigin?: 'anonymous' | 'use-credentials' | undefined\n integrity?: string | undefined\n noModule?: boolean | undefined\n referrerPolicy?: string | undefined\n}\n\ninterface SourceAttributes extends PyreonHTMLAttributes<HTMLSourceElement> {\n src?: string | (() => string) | undefined\n type?: string | undefined\n srcSet?: string | (() => string) | undefined\n sizes?: string | (() => string) | undefined\n media?: string | undefined\n}\n\ninterface ProgressAttributes extends PyreonHTMLAttributes<HTMLProgressElement> {\n value?: number | (() => number) | undefined\n max?: number | undefined\n}\n\ninterface MeterAttributes extends PyreonHTMLAttributes<HTMLMeterElement> {\n value?: number | (() => number) | undefined\n min?: number | undefined\n max?: number | undefined\n low?: number | undefined\n high?: number | undefined\n optimum?: number | undefined\n}\n\ninterface DetailsAttributes extends PyreonHTMLAttributes<HTMLDetailsElement> {\n open?: boolean | (() => boolean) | undefined\n}\n\ninterface DialogAttributes extends PyreonHTMLAttributes<HTMLDialogElement> {\n open?: boolean | (() => boolean) | undefined\n}\n\ninterface OlAttributes extends PyreonHTMLAttributes<HTMLOListElement> {\n start?: number | undefined\n reversed?: boolean | undefined\n type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined\n}\n\ninterface CanvasAttributes extends PyreonHTMLAttributes<HTMLCanvasElement> {\n width?: number | string | undefined\n height?: number | string | undefined\n}\n\nexport interface SvgAttributes extends PyreonHTMLAttributes<SVGElement> {\n viewBox?: string | undefined\n xmlns?: string | undefined\n fill?: string | (() => string) | undefined\n stroke?: string | (() => string) | undefined\n 'stroke-width'?: string | number | (() => string | number) | undefined\n 'stroke-linecap'?: 'butt' | 'round' | 'square' | undefined\n 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | undefined\n 'fill-rule'?: 'nonzero' | 'evenodd' | undefined\n 'clip-rule'?: 'nonzero' | 'evenodd' | undefined\n 'clip-path'?: string | undefined\n d?: string | (() => string) | undefined\n cx?: string | number | undefined\n cy?: string | number | undefined\n r?: string | number | undefined\n rx?: string | number | undefined\n ry?: string | number | undefined\n x?: string | number | undefined\n y?: string | number | undefined\n x1?: string | number | undefined\n y1?: string | number | undefined\n x2?: string | number | undefined\n y2?: string | number | undefined\n width?: string | number | undefined\n height?: string | number | undefined\n transform?: string | (() => string) | undefined\n opacity?: string | number | (() => string | number) | undefined\n points?: string | undefined\n 'font-size'?: string | number | undefined\n 'text-anchor'?: 'start' | 'middle' | 'end' | undefined\n 'dominant-baseline'?: string | undefined\n // Gradient & pattern\n gradientUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n gradientTransform?: string | undefined\n patternUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n patternContentUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n patternTransform?: string | undefined\n spreadMethod?: 'pad' | 'reflect' | 'repeat' | undefined\n // Marker\n markerWidth?: string | number | undefined\n markerHeight?: string | number | undefined\n markerUnits?: 'strokeWidth' | 'userSpaceOnUse' | undefined\n orient?: string | number | undefined\n refX?: string | number | undefined\n refY?: string | number | undefined\n // Clipping & masking\n maskUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n maskContentUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n clipPathUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n // Filter\n filterUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n primitiveUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | undefined\n // Presentation\n preserveAspectRatio?: string | undefined\n 'color-interpolation'?: string | undefined\n 'color-interpolation-filters'?: string | undefined\n 'shape-rendering'?: string | undefined\n 'image-rendering'?: string | undefined\n 'text-rendering'?: string | undefined\n 'pointer-events'?: string | undefined\n visibility?: string | undefined\n display?: string | undefined\n overflow?: string | undefined\n cursor?: string | undefined\n // Text\n dx?: string | number | undefined\n dy?: string | number | undefined\n textLength?: string | number | undefined\n lengthAdjust?: 'spacing' | 'spacingAndGlyphs' | undefined\n 'writing-mode'?: string | undefined\n 'letter-spacing'?: string | number | undefined\n 'word-spacing'?: string | number | undefined\n // Path\n pathLength?: number | undefined\n // Use/href\n href?: string | undefined\n}\n\ndeclare global {\n namespace JSX {\n /** The type that JSX expressions evaluate to */\n type Element = import('./types').VNode\n\n /**\n * Valid JSX tag types — intrinsic strings + component functions.\n * Components may return VNode, null, strings, functions (reactive getters), etc.\n * (TS 5.1+ feature)\n */\n type ElementType = keyof IntrinsicElements | ((props: any) => import('./types').VNodeChild)\n\n /** Props that can be passed to any JSX element (intrinsic or component) */\n interface IntrinsicAttributes {\n key?: string | number | undefined\n }\n\n /** Tells TS which prop name carries children in component calls */\n interface ElementChildrenAttribute {\n children: {}\n }\n\n interface IntrinsicElements {\n // Document structure\n html: PyreonHTMLAttributes\n head: PyreonHTMLAttributes\n body: PyreonHTMLAttributes\n title: PyreonHTMLAttributes\n base: PyreonHTMLAttributes\n meta: MetaAttributes\n link: LinkAttributes\n script: ScriptAttributes\n style: PyreonHTMLAttributes\n noscript: PyreonHTMLAttributes\n // Sections\n main: PyreonHTMLAttributes\n header: PyreonHTMLAttributes\n footer: PyreonHTMLAttributes\n nav: PyreonHTMLAttributes\n aside: PyreonHTMLAttributes\n section: PyreonHTMLAttributes\n article: PyreonHTMLAttributes\n address: PyreonHTMLAttributes\n h1: PyreonHTMLAttributes\n h2: PyreonHTMLAttributes\n h3: PyreonHTMLAttributes\n h4: PyreonHTMLAttributes\n h5: PyreonHTMLAttributes\n h6: PyreonHTMLAttributes\n hgroup: PyreonHTMLAttributes\n // Block text\n p: PyreonHTMLAttributes\n pre: PyreonHTMLAttributes\n blockquote: PyreonHTMLAttributes\n figure: PyreonHTMLAttributes\n figcaption: PyreonHTMLAttributes\n div: PyreonHTMLAttributes\n hr: PyreonHTMLAttributes\n // Inline text\n span: PyreonHTMLAttributes\n a: AnchorAttributes\n em: PyreonHTMLAttributes\n strong: PyreonHTMLAttributes\n small: PyreonHTMLAttributes\n s: PyreonHTMLAttributes\n cite: PyreonHTMLAttributes\n q: PyreonHTMLAttributes\n abbr: PyreonHTMLAttributes\n time: PyreonHTMLAttributes\n code: PyreonHTMLAttributes\n var: PyreonHTMLAttributes\n samp: PyreonHTMLAttributes\n kbd: PyreonHTMLAttributes\n mark: PyreonHTMLAttributes\n sub: PyreonHTMLAttributes\n sup: PyreonHTMLAttributes\n i: PyreonHTMLAttributes\n b: PyreonHTMLAttributes\n u: PyreonHTMLAttributes\n bdi: PyreonHTMLAttributes\n bdo: PyreonHTMLAttributes\n br: PyreonHTMLAttributes\n wbr: PyreonHTMLAttributes\n ruby: PyreonHTMLAttributes\n rt: PyreonHTMLAttributes\n rp: PyreonHTMLAttributes\n // Lists\n ul: PyreonHTMLAttributes\n ol: OlAttributes\n li: PyreonHTMLAttributes\n dl: PyreonHTMLAttributes\n dt: PyreonHTMLAttributes\n dd: PyreonHTMLAttributes\n // Forms\n form: FormAttributes\n label: LabelAttributes\n input: InputAttributes\n button: ButtonAttributes\n select: SelectAttributes\n datalist: PyreonHTMLAttributes\n optgroup: PyreonHTMLAttributes\n option: OptionAttributes\n textarea: TextareaAttributes\n output: PyreonHTMLAttributes\n progress: ProgressAttributes\n meter: MeterAttributes\n fieldset: PyreonHTMLAttributes\n legend: PyreonHTMLAttributes\n // Tables\n table: PyreonHTMLAttributes\n caption: PyreonHTMLAttributes\n colgroup: PyreonHTMLAttributes\n col: ColAttributes\n thead: PyreonHTMLAttributes\n tbody: PyreonHTMLAttributes\n tfoot: PyreonHTMLAttributes\n tr: PyreonHTMLAttributes\n th: ThAttributes\n td: TdAttributes\n // Media\n img: ImgAttributes\n video: VideoAttributes\n audio: AudioAttributes\n source: SourceAttributes\n track: PyreonHTMLAttributes\n picture: PyreonHTMLAttributes\n canvas: CanvasAttributes\n svg: SvgAttributes\n path: SvgAttributes\n circle: SvgAttributes\n ellipse: SvgAttributes\n line: SvgAttributes\n polyline: SvgAttributes\n polygon: SvgAttributes\n rect: SvgAttributes\n text: SvgAttributes\n tspan: SvgAttributes\n g: SvgAttributes\n defs: SvgAttributes\n use: SvgAttributes & { href?: string }\n symbol: SvgAttributes\n clipPath: SvgAttributes\n mask: SvgAttributes\n marker: SvgAttributes\n pattern: SvgAttributes\n linearGradient: SvgAttributes\n radialGradient: SvgAttributes\n stop: SvgAttributes & {\n offset?: string | number\n 'stop-color'?: string\n 'stop-opacity'?: string | number\n }\n // Interactive / embedding\n details: DetailsAttributes\n summary: PyreonHTMLAttributes\n dialog: DialogAttributes\n iframe: IframeAttributes\n embed: PyreonHTMLAttributes\n object: PyreonHTMLAttributes\n param: PyreonHTMLAttributes\n // Semantic / misc\n menu: PyreonHTMLAttributes\n menuitem: PyreonHTMLAttributes\n template: PyreonHTMLAttributes\n slot: PyreonHTMLAttributes\n portal: PyreonHTMLAttributes\n // Catch-all for custom elements and data-* attrs\n [tagName: string]: PyreonHTMLAttributes<any>\n }\n }\n}\n"],"mappings":";;AAGA,MAAa,WAA0B,OAAO,kBAAkB;;;;;;;;;AAUhE,MAAa,cAAqB,EAAE;AAmBpC,SAAgB,EACd,MACA,OACA,GAAG,UACI;AACP,QAAO;EACC;EACN,OAAQ,SAAS;EACjB,UAAU,kBAAkB,SAAS;EACrC,KAAM,OAAO,OAAkC;EAChD;;AAGH,SAAS,kBAAkB,UAAsC;AAE/D,MAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,IACnC,KAAI,MAAM,QAAQ,SAAS,GAAG,CAC5B,QAAO,gBAAgB,SAAS;AAGpC,QAAO;;AAGT,SAAS,gBAAgB,UAAsC;CAC7D,MAAM,SAAuB,EAAE;AAC/B,MAAK,MAAM,SAAS,SAClB,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,KAAK,GAAG,gBAAgB,MAAsB,CAAC;KAEtD,QAAO,KAAK,MAAM;AAGtB,QAAO;;;;;;;;;;;;AClDT,SAAgB,IACd,MACA,OACA,KACO;CACP,MAAM,EAAE,UAAU,GAAG,SAAS;CAC9B,MAAM,eAAgB,OAAO,OAAO;EAAE,GAAG;EAAM;EAAK,GAAG;AAEvD,KAAI,OAAO,SAAS,WAIlB,QAAO,EAAE,MADc,aAAa,SAAY;EAAE,GAAG;EAAc;EAAU,GAAG,aAClD;AAKhC,QAAO,EAAE,MAAM,cAAc,GADV,aAAa,SAAY,EAAE,GAAG,MAAM,QAAQ,SAAS,GAAG,WAAW,CAAC,SAAS,CACnC;;AAI/D,MAAa,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.d.ts","names":[],"sources":["../../../src/types.ts","../../../src/component.ts","../../../src/context.ts","../../../src/dynamic.ts","../../../src/error-boundary.ts","../../../src/for.ts","../../../src/h.ts","../../../src/ref.ts","../../../src/style.ts","../../../src/jsx-runtime.ts","../../../src/suspense.ts","../../../src/lazy.ts","../../../src/lifecycle.ts","../../../src/map-array.ts","../../../src/portal.ts","../../../src/props.ts","../../../src/show.ts","../../../src/telemetry.ts"],"mappings":";KAGY,cAAA,GAAiB,KAAA;AAA7B;AAAA,KAEY,kBAAA,SAA2B,cAAA,GAAiB,cAAA;AAAA,KAC5C,UAAA,GAAa,kBAAA,GAAqB,cAAA,GAAiB,cAAA;AAAA,UAE9C,KAAA;EALiB;EAOhC,IAAA,WAAe,WAAA;EACf,KAAA,EAAO,KAAA;EACP,QAAA,EAAU,UAAA;EACV,GAAA;AAAA;AAAA,KAKU,KAAA,GAAQ,MAAA;;;;;KAQR,WAAA,WAAsB,KAAA,GAAQ,KAAA,KAAU,KAAA,EAAO,CAAA,KAAM,UAAA;;KAKrD,YAAA,MAAkB,CAAA,SAAU,WAAA,YAAuB,CAAA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