@askrjs/askr 0.0.92 → 0.0.95

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 (89) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +3 -1
  3. package/dist/{access-DSkccuEI.js → access-d_DCdwqn.js} +3 -0
  4. package/dist/actions/index.d.ts +1 -1
  5. package/dist/actions/index.js +3 -2
  6. package/dist/{activity-DxUcygE5.d.ts → activity-D_5x2HXQ.d.ts} +5 -1
  7. package/dist/{activity-DodHdC0L.js → activity-d4t3CdzK.js} +4 -2
  8. package/dist/benchmark.d.ts +1 -1
  9. package/dist/benchmark.js +8 -8
  10. package/dist/boot/index.d.ts +12 -3
  11. package/dist/boot/index.js +1 -1
  12. package/dist/{boot-D71bjP4r.js → boot-C1wT3Vfs.js} +23 -15
  13. package/dist/{cleanup-DAAhJjx5.js → cleanup-D7uN-Z1s.js} +4 -4
  14. package/dist/{component-cleanup-CJCfu5ed.js → component-cleanup-DYG80yhG.js} +4 -2
  15. package/dist/{component-internal-DlAkCgBE.js → component-internal-D0yE2Ch3.js} +79 -13
  16. package/dist/components/index.d.ts +11 -3
  17. package/dist/components/index.js +5 -2
  18. package/dist/{compose-ref-Cc_YkUpM.js → compose-ref-1Fhs7mbF.js} +13 -0
  19. package/dist/{compose-ref-Cizq72-x.d.ts → compose-ref-DOJHoW5X.d.ts} +3 -0
  20. package/dist/control/index.d.ts +1 -1
  21. package/dist/control/index.js +1 -1
  22. package/dist/{control-Dv540XtV.js → control-C0klPV7Q.js} +9 -5
  23. package/dist/{control-CdzY49Q2.d.ts → control-DdFw-Caz.d.ts} +1 -1
  24. package/dist/{csp-nonce-ByMbWv8s.js → csp-nonce-BVybpV1v.js} +8 -1
  25. package/dist/data/index.d.ts +1 -1
  26. package/dist/data/index.js +3 -3
  27. package/dist/{data-DcikEH9N.js → data-Bm8L6JOm.js} +15 -4
  28. package/dist/{data-runtime-oIdQWnPW.js → data-runtime-JxoRgrrt.js} +2 -0
  29. package/dist/{deferred-B6CafO5u.js → deferred-p8hyanxJ.js} +8 -3
  30. package/dist/{effect-BdZcHblj.js → effect-BdvdgMvV.js} +2 -2
  31. package/dist/{fastlane-B2s24fWt.js → fastlane-DGo7SxBQ.js} +3 -3
  32. package/dist/{for-internal-T1C7jd7x.js → for-internal-DkBwTG4S.js} +5 -5
  33. package/dist/foundations/icon/index.d.ts +14 -2
  34. package/dist/foundations/icon/index.js +8 -0
  35. package/dist/foundations/index.d.ts +2 -2
  36. package/dist/foundations/index.js +1 -1
  37. package/dist/foundations/interactions/index.d.ts +18 -2
  38. package/dist/foundations/interactions/index.js +1 -1
  39. package/dist/foundations/state/index.d.ts +8 -1
  40. package/dist/foundations/state/index.js +7 -1
  41. package/dist/foundations/structures/index.d.ts +2 -2
  42. package/dist/foundations/structures/index.js +1 -1
  43. package/dist/foundations/utilities/index.d.ts +2 -2
  44. package/dist/foundations/utilities/index.js +1 -1
  45. package/dist/fx/index.d.ts +10 -1
  46. package/dist/fx/index.js +7 -1
  47. package/dist/{index-DA3g8lm8.d.ts → index-CTIBOqUB.d.ts} +418 -5
  48. package/dist/{index-BnU0NPwM.d.ts → index-CzH-0LcA.d.ts} +18 -0
  49. package/dist/{index-oswRaMn6.d.ts → index-S2IqSJib.d.ts} +30 -2
  50. package/dist/index.d.ts +3 -4
  51. package/dist/index.js +13 -12
  52. package/dist/{interactions-CWkNEq_C.js → interactions-B4XaFxt1.js} +6 -1
  53. package/dist/{jsx-C3IECePB.js → jsx-DRS-qjiN.js} +2 -0
  54. package/dist/jsx-dev-runtime.d.ts +2 -2
  55. package/dist/jsx-dev-runtime.js +1 -1
  56. package/dist/jsx-runtime-BTzDdBJ_.d.ts +2 -0
  57. package/dist/{jsx-runtime-Cfb2umb4.d.ts → jsx-runtime-Cdd6Gkb0.d.ts} +4 -2
  58. package/dist/jsx-runtime.d.ts +2 -2
  59. package/dist/jsx-runtime.js +1 -1
  60. package/dist/{lifecycle-batch-Cyfd07rf.js → lifecycle-batch-BH0fax4F.js} +2 -2
  61. package/dist/{lifecycle-operations-CQ8fsc94.js → lifecycle-operations-CBzG5PyB.js} +6 -1
  62. package/dist/{manifest-Dv0bO6kg.js → manifest-D6rfj_jC.js} +4 -0
  63. package/dist/{navigate-BbWj-QU-.js → navigate-DChM5m8m.js} +13 -10
  64. package/dist/{navigate-CZHPEUC4.d.ts → navigate-eGm4omPj.d.ts} +6 -1
  65. package/dist/{query-registry-qm13pEdK.js → query-registry-CimB1YeW.js} +11 -1
  66. package/dist/{readable-B99wh5Z_.js → readable-BsdGWsDE.js} +1 -1
  67. package/dist/{renderer-C6jz9nIN.js → renderer-tXX_xj86.js} +10 -37
  68. package/dist/{resolution-B21kmOkp.js → resolution-BQyo7qNn.js} +11 -5
  69. package/dist/{resource-operation-CaAttQqz.js → resource-operation-B62UQKHV.js} +4 -4
  70. package/dist/resources/index.d.ts +15 -2
  71. package/dist/resources/index.js +6 -5
  72. package/dist/router/index.d.ts +46 -4
  73. package/dist/router/index.js +15 -8
  74. package/dist/{selector-BLWwI55m.js → selector-CyK-sDwB.js} +4 -3
  75. package/dist/ssg/index.d.ts +5 -1
  76. package/dist/ssg/index.js +5 -5
  77. package/dist/ssr/index.d.ts +16 -3
  78. package/dist/ssr/index.js +1 -1
  79. package/dist/{ssr-CaZfvQWn.js → ssr-DYcK20IX.js} +18 -10
  80. package/dist/{state-XPZYUzHL.js → state-DmkGM_LN.js} +3 -3
  81. package/dist/{structures-DKjkAmM5.js → structures-CPycoyZj.js} +63 -14
  82. package/dist/testing/index.d.ts +31 -2
  83. package/dist/testing/index.js +23 -5
  84. package/dist/{types-BA9FJtfR.d.ts → types-DkVJhVs9.d.ts} +4 -0
  85. package/dist/{verify-hydration-CcF-HJil.js → verify-hydration-m-wVbYOD.js} +1 -1
  86. package/package.json +1 -1
  87. package/dist/index-2bk8nldG.d.ts +0 -241
  88. package/dist/jsx-runtime-C_0v1pMN.d.ts +0 -2
  89. package/dist/scheduler-CmLO4Dfm.d.ts +0 -65
@@ -1,17 +1,22 @@
1
1
  //#region src/foundations/utilities/event-types.d.ts
2
+ /** Minimal shape of an event that can be prevented from its default action. */
2
3
  interface DefaultPreventable {
3
4
  defaultPrevented?: boolean;
4
5
  preventDefault?: () => void;
5
6
  }
7
+ /** Minimal shape of an event whose propagation can be stopped. */
6
8
  interface PropagationStoppable {
7
9
  stopPropagation?: () => void;
8
10
  }
11
+ /** Structural subset of a keyboard event, for handlers that accept native or synthetic events. */
9
12
  interface KeyboardLikeEvent extends DefaultPreventable, PropagationStoppable {
10
13
  key: string;
11
14
  }
15
+ /** Structural subset of a pointer event, for handlers that accept native or synthetic events. */
12
16
  interface PointerLikeEvent extends DefaultPreventable, PropagationStoppable {
13
17
  target?: unknown;
14
18
  }
19
+ /** Structural subset of a focus event, for handlers that accept native or synthetic events. */
15
20
  interface FocusLikeEvent extends DefaultPreventable, PropagationStoppable {
16
21
  relatedTarget?: unknown;
17
22
  }
@@ -42,6 +47,7 @@ interface FocusLikeEvent extends DefaultPreventable, PropagationStoppable {
42
47
  * 4. Type Safety
43
48
  * Args are readonly to prevent mutation. Return type matches input.
44
49
  */
50
+ /** Options for {@link composeHandlers}. */
45
51
  interface ComposeHandlersOptions {
46
52
  /**
47
53
  * When true (default), do not run the second handler if the first prevented default.
@@ -49,26 +55,38 @@ interface ComposeHandlersOptions {
49
55
  */
50
56
  checkDefaultPrevented?: boolean;
51
57
  }
58
+ /**
59
+ * Compose two optional event handlers into one, running `first` then
60
+ * `second` unless `first` marked the event as default-prevented.
61
+ */
52
62
  declare function composeHandlers<A extends readonly unknown[]>(first?: (...args: A) => void, second?: (...args: A) => void, options?: ComposeHandlersOptions): (...args: A) => void;
53
63
  //#endregion
54
64
  //#region src/foundations/utilities/merge-props.d.ts
65
+ /**
66
+ * Merge `base` props over `injected` props: non-handler keys in `base` win,
67
+ * and matching event handlers are composed (`injected` runs first).
68
+ */
55
69
  declare function mergeProps<TBase extends object, TInjected extends object>(base: TBase, injected: TInjected): TInjected & TBase;
56
70
  //#endregion
57
71
  //#region src/foundations/utilities/aria.d.ts
58
72
  /**
59
73
  * Tiny aria helpers
60
74
  */
75
+ /** Build an `aria-disabled` prop object; omitted entirely when `disabled` is falsy. */
61
76
  declare function ariaDisabled(disabled?: boolean): {
62
77
  'aria-disabled'?: 'true';
63
78
  };
79
+ /** Build an `aria-expanded` prop object; omitted when `expanded` is `undefined`. */
64
80
  declare function ariaExpanded(expanded?: boolean): {
65
81
  'aria-expanded'?: 'true' | 'false';
66
82
  };
83
+ /** Build an `aria-selected` prop object; omitted when `selected` is `undefined`. */
67
84
  declare function ariaSelected(selected?: boolean): {
68
85
  'aria-selected'?: 'true' | 'false';
69
86
  };
70
87
  //#endregion
71
88
  //#region src/foundations/utilities/use-id.d.ts
89
+ /** Options for {@link formatId}. */
72
90
  interface FormatIdOptions {
73
91
  /** Defaults to 'askr' */
74
92
  prefix?: string;
@@ -1,5 +1,5 @@
1
- import { Tt as RenderableChild } from "./index-DA3g8lm8.js";
2
- import { r as JSXElement } from "./types-BA9FJtfR.js";
1
+ import { rn as RenderableChild } from "./index-CTIBOqUB.js";
2
+ import { r as JSXElement } from "./types-DkVJhVs9.js";
3
3
  //#region src/foundations/structures/layout.d.ts
4
4
  /**
5
5
  * Layout helper.
@@ -24,16 +24,24 @@ import { r as JSXElement } from "./types-BA9FJtfR.js";
24
24
  * Props are spread into the layout component. This is intentional
25
25
  * and deterministic — no merging or composition.
26
26
  */
27
+ /** A component that receives its route children via `props.children`. */
27
28
  type LayoutComponent<P = object> = (props: P & {
28
29
  children?: RenderableChild;
29
30
  }) => unknown;
31
+ /**
32
+ * Wrap a {@link LayoutComponent} so it can be invoked as `(children, props)`,
33
+ * matching route layout conventions.
34
+ */
30
35
  declare function layout<P = object>(Layout: LayoutComponent<P>): (children?: RenderableChild, props?: P) => unknown;
31
36
  //#endregion
32
37
  //#region src/jsx/utils.d.ts
38
+ /** Check whether `value` is a JSX element vnode. */
33
39
  declare function isElement(value: unknown): value is JSXElement;
40
+ /** Clone a JSX element, shallow-merging `props` over its existing props. */
34
41
  declare function cloneElement(element: JSXElement, props: Record<string, unknown>): JSXElement;
35
42
  //#endregion
36
43
  //#region src/foundations/structures/slot.d.ts
44
+ /** Props for {@link Slot}: `asChild` selects prop-merging vs. fragment mode. */
37
45
  type SlotProps = {
38
46
  asChild: true;
39
47
  children: JSXElement;
@@ -65,7 +73,9 @@ type SlotProps = {
65
73
  declare function Slot(props: SlotProps): JSXElement | null;
66
74
  //#endregion
67
75
  //#region src/foundations/structures/presence.d.ts
76
+ /** Props for {@link Presence}. */
68
77
  interface PresenceProps {
78
+ /** Whether the children should be mounted, or a function returning it. */
69
79
  present: boolean | (() => boolean);
70
80
  children?: RenderableChild;
71
81
  }
@@ -95,17 +105,28 @@ interface PresenceProps {
95
105
  declare function Presence({ present, children }: PresenceProps): JSXElement | null;
96
106
  //#endregion
97
107
  //#region src/runtime/portal.d.ts
108
+ /**
109
+ * A named portal channel created by {@link definePortal}: call it as a
110
+ * component to render the host, and call `.render(props)` to write content.
111
+ */
98
112
  interface Portal<T extends RenderableChild = RenderableChild> {
99
113
  (): T | JSXElement | null | undefined;
100
114
  render(props: {
101
115
  children?: T;
102
116
  }): unknown;
103
117
  }
118
+ /** Props for the {@link Portal} component. */
104
119
  interface PortalProps {
105
120
  children?: RenderableChild;
106
121
  }
122
+ /** Create a new named {@link Portal} channel with its own host and content. */
107
123
  declare function definePortal<T extends RenderableChild = RenderableChild>(): Portal<T>;
124
+ /**
125
+ * The implicit portal channel that {@link Portal} writes to and that any
126
+ * host rendered without an explicit portal falls back to.
127
+ */
108
128
  declare const DefaultPortal: Portal<RenderableChild>;
129
+ /** Write children to the {@link DefaultPortal} host wherever it is rendered. */
109
130
  declare function Portal(props: PortalProps): JSXElement | null;
110
131
  //#endregion
111
132
  //#region src/foundations/structures/collection.d.ts
@@ -133,10 +154,12 @@ declare function Portal(props: PortalProps): JSXElement | null;
133
154
  * const allItems = collection.items();
134
155
  * unregister();
135
156
  */
157
+ /** A registered node paired with its metadata inside a {@link Collection}. */
136
158
  type CollectionItem<TNode, TMetadata = unknown> = {
137
159
  node: TNode;
138
160
  metadata: TMetadata;
139
161
  };
162
+ /** Ordered descendant registry returned by {@link createCollection}. */
140
163
  interface Collection<TNode, TMetadata = unknown> {
141
164
  /**
142
165
  * Register a node with optional metadata.
@@ -156,6 +179,7 @@ interface Collection<TNode, TMetadata = unknown> {
156
179
  */
157
180
  size(): number;
158
181
  }
182
+ /** Create an empty, insertion-ordered {@link Collection} registry. */
159
183
  declare function createCollection<TNode, TMetadata = unknown>(): Collection<TNode, TMetadata>;
160
184
  /**
161
185
  * USAGE EXAMPLE:
@@ -207,6 +231,7 @@ declare function createCollection<TNode, TMetadata = unknown>(): Collection<TNod
207
231
  * layer.isTop(); // true if this is the topmost layer
208
232
  * layer.unregister();
209
233
  */
234
+ /** Options for registering a layer with {@link LayerManager.register}. */
210
235
  interface LayerOptions {
211
236
  /**
212
237
  * Called when Escape is pressed and this is the top layer
@@ -221,6 +246,7 @@ interface LayerOptions {
221
246
  */
222
247
  node?: Node | null;
223
248
  }
249
+ /** A registered layer entry returned by {@link LayerManager.register}. */
224
250
  interface Layer {
225
251
  /**
226
252
  * Unique layer ID
@@ -235,6 +261,7 @@ interface Layer {
235
261
  */
236
262
  unregister(): void;
237
263
  }
264
+ /** Stacking coordinator returned by {@link createLayer}. */
238
265
  interface LayerManager {
239
266
  /**
240
267
  * Register a new layer
@@ -253,6 +280,7 @@ interface LayerManager {
253
280
  */
254
281
  handleOutsidePointer(e: PointerEvent): void;
255
282
  }
283
+ /** Create a new, empty {@link LayerManager} for coordinating overlay stacking. */
256
284
  declare function createLayer(): LayerManager;
257
285
  /**
258
286
  * USAGE EXAMPLE:
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { A as RuntimeKeyedReorderDecision, C as selector, Ct as readScope, D as derive, E as Derived, Ft as StateTuple, It as state, M as createRuntime, N as getDefaultRuntime, Nt as State, O as AskrRuntime, P as getSignal, Pt as StateSetter, S as Selector, St as defineScope, T as configureRenderDiagnostics, _ as MatchProps, b as For, c as createRef, d as registerSSRStyle, f as CspNonceScope, g as Match, h as CaseProps, j as RuntimeRendererHost, k as AskrRuntimeOptions, m as Case, p as cspNonce, s as Ref, v as Show, w as RenderDiagnosticsOptions, x as ForProps, xt as Scope, y as ShowProps } from "./index-DA3g8lm8.js";
2
- import { s as Props, t as Fragment } from "./types-BA9FJtfR.js";
3
- import { E as QueryDefinition, O as QueryPrefetchContext, a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, j as ServerQueryHandler, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-2bk8nldG.js";
4
- import { i as jsxs, n as jsx } from "./jsx-runtime-Cfb2umb4.js";
1
+ import { $t as Scope, A as Case, B as RenderDiagnosticsOptions, C as Ref, D as registerSSRStyle, F as ShowProps, G as AskrRuntimeOptions, H as Derived, I as For, J as createRuntime, K as RuntimeKeyedReorderDecision, L as ForProps, M as Match, N as MatchProps, O as CspNonceScope, P as Show, Qt as ServerQueryHandler, R as Selector, U as derive, V as configureRenderDiagnostics, W as AskrRuntime, Y as getDefaultRuntime, Yt as QueryPrefetchContext, Z as getSignal, d as defineServerQueries, dn as State, en as defineScope, f as dehydrateDataRuntime, fn as StateSetter, h as serveQuery, j as CaseProps, k as cspNonce, m as prefetchQuery, mn as state, p as hydrateDataRuntime, pn as StateTuple, q as RuntimeRendererHost, qt as QueryDefinition, tn as readScope, u as defineQuery, w as createRef, x as createQuery, z as selector, zt as DataRuntime } from "./index-CTIBOqUB.js";
2
+ import { s as Props, t as Fragment } from "./types-DkVJhVs9.js";
3
+ import { i as jsxs, n as jsx } from "./jsx-runtime-Cdd6Gkb0.js";
5
4
  export { AskrRuntime, type AskrRuntimeOptions, Case, type CaseProps, CspNonceScope, type DataRuntime, type Derived, For, type ForProps, Fragment, Match, type MatchProps, type Props, type QueryDefinition, type QueryPrefetchContext, type Ref, type RenderDiagnosticsOptions, type RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, configureRenderDiagnostics, createQuery, createRef, createRuntime, cspNonce, defineQuery, defineScope, defineServerQueries, dehydrateDataRuntime, derive, getDefaultRuntime, getSignal, hydrateDataRuntime, jsx, jsxs, prefetchQuery, readScope, registerSSRStyle, selector, serveQuery, state };
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import { a as getRuntimeFlushVersion, f as AskrRuntime, h as getDefaultRuntime, m as createRuntime, t as enqueueRuntimeLane } from "./access-DSkccuEI.js";
1
+ import { a as getRuntimeFlushVersion, f as AskrRuntime, h as getDefaultRuntime, m as createRuntime, t as enqueueRuntimeLane } from "./access-d_DCdwqn.js";
2
2
  import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
3
- import { n as Fragment } from "./jsx-C3IECePB.js";
4
- import { _ as readScope, d as defineScope, l as configureRenderDiagnostics } from "./component-internal-DlAkCgBE.js";
5
- import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B99wh5Z_.js";
3
+ import { n as Fragment } from "./jsx-DRS-qjiN.js";
4
+ import { d as configureRenderDiagnostics, p as defineScope, y as readScope } from "./component-internal-D0yE2Ch3.js";
5
+ import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-BsdGWsDE.js";
6
6
  import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
7
- import { t as installRendererBridge } from "./renderer-C6jz9nIN.js";
8
7
  import { c as registerSSRStyle } from "./render-context-B7ohlh6t.js";
9
- import { t as state } from "./state-XPZYUzHL.js";
10
- import { t as selector } from "./selector-BLWwI55m.js";
11
- import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-ByMbWv8s.js";
12
- import { i as For, n as Match, r as Show, t as Case } from "./control-Dv540XtV.js";
8
+ import { t as state } from "./state-DmkGM_LN.js";
9
+ import { t as selector } from "./selector-CyK-sDwB.js";
10
+ import { t as installRendererBridge } from "./renderer-tXX_xj86.js";
11
+ import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-BVybpV1v.js";
12
+ import { i as For, n as Match, r as Show, t as Case } from "./control-C0klPV7Q.js";
13
13
  import { jsx, jsxs } from "./jsx-runtime.js";
14
- import { t as createQuery } from "./data-DcikEH9N.js";
15
- import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-qm13pEdK.js";
14
+ import { t as createQuery } from "./data-Bm8L6JOm.js";
15
+ import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-CimB1YeW.js";
16
16
  //#region src/runtime/derive.ts
17
17
  const deriveCells = /* @__PURE__ */ new WeakMap();
18
18
  const dirtyDerivedCells = /* @__PURE__ */ new Set();
@@ -61,8 +61,8 @@ function flushDirtyDerivedCells() {
61
61
  if (failures && failures.length > 1) throw new AggregateError(failures, "derive() recompute failures");
62
62
  }
63
63
  function recomputeDerivedCell(cell, notifyDownstream) {
64
- if (!cell._dirty && cell._hasValue) return cell._value;
65
64
  if (cell._evaluating) throw new Error("derive() cannot read itself recursively");
65
+ if (!cell._dirty && cell._hasValue) return cell._value;
66
66
  cell._evaluating = true;
67
67
  cell._dirty = false;
68
68
  cell._pendingDependencySources = /* @__PURE__ */ new Set();
@@ -169,6 +169,7 @@ function derive(source, map) {
169
169
  }
170
170
  //#endregion
171
171
  //#region src/ref.ts
172
+ /** Create a new, empty {@link Ref} holder. */
172
173
  function createRef() {
173
174
  return { current: null };
174
175
  }
@@ -1,5 +1,6 @@
1
- import { o as mergeProps, r as ariaDisabled, s as composeHandlers, t as composeRefs } from "./compose-ref-Cc_YkUpM.js";
1
+ import { o as mergeProps, r as ariaDisabled, s as composeHandlers, t as composeRefs } from "./compose-ref-1Fhs7mbF.js";
2
2
  //#region src/foundations/interactions/pressable.ts
3
+ /** Produce click/keyboard props implementing 'press' semantics for an element. */
3
4
  function pressable({ disabled, onPress, isNativeButton = false }) {
4
5
  const props = { onClick: (e) => {
5
6
  if (disabled) {
@@ -47,6 +48,7 @@ function pressable({ disabled, onPress, isNativeButton = false }) {
47
48
  }
48
49
  //#endregion
49
50
  //#region src/foundations/interactions/dismissable.ts
51
+ /** Produce keydown/outside-click props that invoke `onDismiss` on Escape or an outside click. */
50
52
  function dismissable({ node, disabled, onDismiss }) {
51
53
  function handleKeyDown(e) {
52
54
  if (disabled) return;
@@ -76,6 +78,7 @@ function dismissable({ node, disabled, onDismiss }) {
76
78
  * Normalize focus-related props for hosts.
77
79
  * - No DOM manipulation here; returns props that the runtime may attach.
78
80
  */
81
+ /** Normalize `tabIndex`/`aria-disabled` props for a focusable host. */
79
82
  function focusable({ disabled, tabIndex }) {
80
83
  return {
81
84
  tabIndex: disabled ? -1 : tabIndex === void 0 ? 0 : tabIndex,
@@ -84,6 +87,7 @@ function focusable({ disabled, tabIndex }) {
84
87
  }
85
88
  //#endregion
86
89
  //#region src/foundations/interactions/hoverable.ts
90
+ /** Produce pointer enter/leave props that call `onEnter`/`onLeave` unless disabled. */
87
91
  function hoverable({ disabled, onEnter, onLeave }) {
88
92
  return {
89
93
  onPointerEnter: disabled ? void 0 : (e) => {
@@ -96,6 +100,7 @@ function hoverable({ disabled, onEnter, onLeave }) {
96
100
  }
97
101
  //#endregion
98
102
  //#region src/foundations/interactions/roving-focus.ts
103
+ /** Implement arrow-key roving tabindex navigation over a set of items. */
99
104
  function rovingFocus(options) {
100
105
  const { currentIndex, itemCount, orientation = "horizontal", loop = false, onNavigate, isDisabled } = options;
101
106
  const effectiveCurrentIndex = currentIndex >= 0 && currentIndex < itemCount && !isDisabled?.(currentIndex) ? currentIndex : Array.from({ length: itemCount }, (_, index) => index).find((index) => !isDisabled?.(index));
@@ -1,5 +1,7 @@
1
1
  //#region src/common/jsx.ts
2
+ /** Internal marker identifying an object as a JSX element vnode. */
2
3
  const ELEMENT_TYPE = Symbol.for("askr.element");
4
+ /** The element type marker for JSX fragments (`<>...</>`), groups children without a wrapper element. */
3
5
  const Fragment = Symbol.for("askr.fragment");
4
6
  const STATIC_CHILDREN = Symbol.for("askr.static-children");
5
7
  function isFragmentType(type) {
@@ -1,5 +1,5 @@
1
- import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./types-BA9FJtfR.js";
2
- import { t as EagerControlPrimitive } from "./control-CdzY49Q2.js";
1
+ import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./types-DkVJhVs9.js";
2
+ import { t as EagerControlPrimitive } from "./control-DdFw-Caz.js";
3
3
  //#region src/jsx/jsx-dev-runtime.d.ts
4
4
  declare namespace JSX {
5
5
  type ElementType = string | symbol | ((props: never) => unknown);
@@ -1,5 +1,5 @@
1
1
  import { r as isEagerControlPrimitive } from "./control-C-ApnFs1.js";
2
- import { n as Fragment, r as STATIC_CHILDREN, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
2
+ import { n as Fragment, r as STATIC_CHILDREN, t as ELEMENT_TYPE } from "./jsx-DRS-qjiN.js";
3
3
  //#region src/jsx/jsx-dev-runtime.ts
4
4
  function annotatePropsUsage(props) {
5
5
  return props ?? {};
@@ -0,0 +1,2 @@
1
+ import "./types-DkVJhVs9.js";
2
+ import "./jsx-runtime-Cdd6Gkb0.js";
@@ -1,5 +1,5 @@
1
- import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./types-BA9FJtfR.js";
2
- import { t as EagerControlPrimitive } from "./control-CdzY49Q2.js";
1
+ import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./types-DkVJhVs9.js";
2
+ import { t as EagerControlPrimitive } from "./control-DdFw-Caz.js";
3
3
  //#region src/jsx/jsx-runtime.d.ts
4
4
  declare namespace JSX {
5
5
  type ElementType = string | symbol | ((props: never) => unknown);
@@ -22,11 +22,13 @@ declare function jsxDEV<TTag extends keyof KnownIntrinsicElementProps>(type: TTa
22
22
  declare function jsxDEV<TTag extends string>(type: Exclude<TTag, keyof KnownIntrinsicElementProps>, props: IntrinsicFallbackProps | null, key?: string | number, isStaticChildren?: boolean): JSXElement;
23
23
  declare function jsxDEV<TProps extends object>(type: (props: TProps) => unknown, props: TProps | null, key?: string | number, isStaticChildren?: boolean): JSXElement;
24
24
  declare function jsxDEV(type: symbol, props: Props | null, key?: string | number, isStaticChildren?: boolean): JSXElement;
25
+ /** JSX factory for elements with a single or no child, used by the `jsxImportSource` transform. */
25
26
  declare function jsx(type: EagerControlPrimitive, props: Props | null, key?: string | number): unknown;
26
27
  declare function jsx<TTag extends keyof KnownIntrinsicElementProps>(type: TTag, props: KnownIntrinsicElementProps[TTag] | null, key?: string | number): JSXElement;
27
28
  declare function jsx<TTag extends string>(type: Exclude<TTag, keyof KnownIntrinsicElementProps>, props: IntrinsicFallbackProps | null, key?: string | number): JSXElement;
28
29
  declare function jsx<TProps extends object>(type: (props: TProps) => unknown, props: TProps | null, key?: string | number): JSXElement;
29
30
  declare function jsx(type: symbol, props: Props | null, key?: string | number): JSXElement;
31
+ /** JSX factory for elements with multiple static children, used by the `jsxImportSource` transform. */
30
32
  declare function jsxs(type: EagerControlPrimitive, props: Props | null, key?: string | number): unknown;
31
33
  declare function jsxs<TTag extends keyof KnownIntrinsicElementProps>(type: TTag, props: KnownIntrinsicElementProps[TTag] | null, key?: string | number): JSXElement;
32
34
  declare function jsxs<TTag extends string>(type: Exclude<TTag, keyof KnownIntrinsicElementProps>, props: IntrinsicFallbackProps | null, key?: string | number): JSXElement;
@@ -1,3 +1,3 @@
1
- import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./types-BA9FJtfR.js";
2
- import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-Cfb2umb4.js";
1
+ import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./types-DkVJhVs9.js";
2
+ import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-Cdd6Gkb0.js";
3
3
  export { Fragment, JSX, type JSXComponent, type JSXElement, type JSXElementType, jsx, jsxDEV, jsxs };
@@ -1,5 +1,5 @@
1
1
  import { r as isEagerControlPrimitive } from "./control-C-ApnFs1.js";
2
- import { n as Fragment, r as STATIC_CHILDREN, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
2
+ import { n as Fragment, r as STATIC_CHILDREN, t as ELEMENT_TYPE } from "./jsx-DRS-qjiN.js";
3
3
  //#region src/jsx/jsx-runtime.ts
4
4
  function markStaticChildren(props) {
5
5
  if (Array.isArray(props.children)) Object.defineProperty(props.children, STATIC_CHILDREN, {
@@ -1,5 +1,5 @@
1
- import { y as logger } from "./access-DSkccuEI.js";
2
- import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B99wh5Z_.js";
1
+ import { y as logger } from "./access-d_DCdwqn.js";
2
+ import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-BsdGWsDE.js";
3
3
  //#region src/common/promise.ts
4
4
  function isPromiseLike(value) {
5
5
  return value !== null && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
@@ -1,5 +1,5 @@
1
1
  import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-4I3yEMkb.js";
2
- import { a as registerCommitOperation } from "./component-internal-DlAkCgBE.js";
2
+ import { a as registerCommitOperation } from "./component-internal-D0yE2Ch3.js";
3
3
  import { t as isRouteActivityActive } from "./route-activity-CNJfpwx-.js";
4
4
  //#region src/runtime/lifecycle-operations.ts
5
5
  function normalizePredicates(predicates) {
@@ -22,12 +22,15 @@ function getLifecycleSlot(instance, index, kind, create) {
22
22
  lifecycleSlots[index] = slot;
23
23
  return slot;
24
24
  }
25
+ /** {@link ActivityPredicate} that is true while the current route matches `pathOrPaths`. */
25
26
  function routeActive(pathOrPaths) {
26
27
  return () => isRouteActivityActive(pathOrPaths);
27
28
  }
29
+ /** {@link ActivityPredicate} that is true while the document is visible. */
28
30
  function documentVisible() {
29
31
  return () => typeof document === "undefined" || document.visibilityState !== "hidden";
30
32
  }
33
+ /** {@link ActivityPredicate} that is true while the window has focus. */
31
34
  function windowFocused() {
32
35
  return () => typeof document === "undefined" || typeof document.hasFocus !== "function" || document.hasFocus();
33
36
  }
@@ -72,6 +75,7 @@ function commitListenerSlot(instance, slot) {
72
75
  });
73
76
  }
74
77
  }
78
+ /** Attach an owned event listener to `target` for the current component's lifetime. */
75
79
  function on(target, event, handler, options) {
76
80
  const instance = getCurrentComponentInstance();
77
81
  if (!instance) return;
@@ -131,6 +135,7 @@ function commitTimerSlot(instance, slot) {
131
135
  });
132
136
  }
133
137
  }
138
+ /** Run `fn` on an owned interval for the current component's lifetime, optionally gated by `options.when`. */
134
139
  function timer(intervalMs, fn, options) {
135
140
  const instance = getCurrentComponentInstance();
136
141
  if (!instance) return;
@@ -33,6 +33,10 @@ function _applyManifest(manifest) {
33
33
  });
34
34
  }
35
35
  }
36
+ /**
37
+ * Run `definition` to declare routes (via `route`/`page`/`group`/`fallback`)
38
+ * and build a {@link RouteRegistry} to pass to `createSPA`/`hydrateSPA`.
39
+ */
36
40
  function createRouteRegistry(definition, options = {}) {
37
41
  const previous = snapshotRouteState();
38
42
  clearRouteState();
@@ -1,14 +1,14 @@
1
- import { S as isProductionEnvironment, r as flushRuntimeScheduler, x as isDevelopmentEnvironment, y as logger } from "./access-DSkccuEI.js";
2
- import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
3
- import { r as executeComponent } from "./component-internal-DlAkCgBE.js";
4
- import { t as cleanupReadableSubscriptionSources } from "./readable-B99wh5Z_.js";
5
- import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-CJCfu5ed.js";
6
- import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-Cyfd07rf.js";
7
- import { _ as teardownNodeSubtree } from "./cleanup-DAAhJjx5.js";
8
- import { t as CspNonceScope } from "./csp-nonce-ByMbWv8s.js";
1
+ import { S as isProductionEnvironment, r as flushRuntimeScheduler, x as isDevelopmentEnvironment, y as logger } from "./access-d_DCdwqn.js";
2
+ import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-DRS-qjiN.js";
3
+ import { r as executeComponent } from "./component-internal-D0yE2Ch3.js";
4
+ import { t as cleanupReadableSubscriptionSources } from "./readable-BsdGWsDE.js";
5
+ import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-DYG80yhG.js";
6
+ import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-BH0fax4F.js";
7
+ import { _ as teardownNodeSubtree } from "./cleanup-D7uN-Z1s.js";
8
+ import { t as CspNonceScope } from "./csp-nonce-BVybpV1v.js";
9
9
  import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-Bo6UqG-5.js";
10
- import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-B21kmOkp.js";
11
- import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-DodHdC0L.js";
10
+ import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-BQyo7qNn.js";
11
+ import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-d4t3CdzK.js";
12
12
  import { r as getDefaultPortalHost, t as clearRegisteredDefaultPortalForInstance } from "./default-portal-runtime-DvMvWJVp.js";
13
13
  //#region src/router/navigation-registry.ts
14
14
  let currentInstance = null;
@@ -240,6 +240,7 @@ function metadataSources(record) {
240
240
  if (record.metaChain) return record.metaChain;
241
241
  return record.options.meta ? [record.options.meta] : [];
242
242
  }
243
+ /** Resolve a route's merged {@link RouteMeta} by running its metadata chain against `context`. */
243
244
  async function resolveRouteMeta(record, context) {
244
245
  let resolved = record.options.title ? { title: record.options.title } : {};
245
246
  for (const source of metadataSources(record)) {
@@ -326,6 +327,7 @@ function serializeJsonLd(value) {
326
327
  const json = JSON.stringify(value).replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
327
328
  return `<script${ownedAttribute()} type="application/ld+json">${json}<\/script>`;
328
329
  }
330
+ /** Render a {@link RouteMeta} to the `<title>`/`<meta>`/`<link>`/JSON-LD markup for the document `<head>`. */
329
331
  function serializeRouteMeta(meta) {
330
332
  const output = [];
331
333
  if (meta.title !== void 0) output.push(`<title${ownedAttribute()}>${escapeText(meta.title)}</title>`);
@@ -993,6 +995,7 @@ function applyPopStateNavigationTargets(requestId, previousHref, previousState,
993
995
  */
994
996
  let navigationInitialized = false;
995
997
  configureNavigationRegistryHost({ cancelRouteRequests });
998
+ /** Navigate the client-side router to `path` using the History API. */
996
999
  function navigate(path, options = {}) {
997
1000
  if (typeof window === "undefined") return;
998
1001
  const targetPath = addRouteBasePath(path, getActiveRouteBasePath());
@@ -1,13 +1,17 @@
1
- import "./index-DA3g8lm8.js";
1
+ import "./index-CTIBOqUB.js";
2
2
  //#region src/router/navigation-scroll.d.ts
3
+ /** Scroll behavior for programmatic navigations (`navigate()`). */
3
4
  type NavigationScrollBehavior = 'top' | 'preserve';
5
+ /** Scroll behavior for browser back/forward (popstate) navigations. */
4
6
  type HistoryScrollBehavior = 'restore' | 'top' | 'preserve';
7
+ /** Options for {@link configureScrollRestoration}. */
5
8
  type ScrollRestorationOptions = {
6
9
  navigation?: NavigationScrollBehavior;
7
10
  history?: HistoryScrollBehavior;
8
11
  };
9
12
  //#endregion
10
13
  //#region src/router/navigation-targets.d.ts
14
+ /** Options for {@link navigate}. */
11
15
  type NavigateOptions = {
12
16
  history?: 'push' | 'replace';
13
17
  replace?: boolean;
@@ -15,6 +19,7 @@ type NavigateOptions = {
15
19
  };
16
20
  //#endregion
17
21
  //#region src/router/navigate.d.ts
22
+ /** Navigate the client-side router to `path` using the History API. */
18
23
  declare function navigate(path: string, options?: NavigateOptions): void;
19
24
  //#endregion
20
25
  export { ScrollRestorationOptions as a, NavigationScrollBehavior as i, NavigateOptions as n, HistoryScrollBehavior as r, navigate as t };
@@ -1,16 +1,18 @@
1
- import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-oIdQWnPW.js";
1
+ import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-JxoRgrrt.js";
2
2
  //#region src/common/telemetry.ts
3
3
  function withTelemetry(span, fields, work) {
4
4
  return span ? span(fields, work) : work();
5
5
  }
6
6
  //#endregion
7
7
  //#region src/data/query-registry.ts
8
+ /** Pair a {@link QueryDefinition} with the server-side handler that resolves it. */
8
9
  function serveQuery(query, handler) {
9
10
  return Object.freeze({
10
11
  query,
11
12
  handler
12
13
  });
13
14
  }
15
+ /** Build a {@link ServerQueryRegistry} from one or more {@link serveQuery} entries. */
14
16
  function defineServerQueries(...entries) {
15
17
  const frozenEntries = Object.freeze([...entries]);
16
18
  const handlers = new Map(entries.map((entry) => [entry.query, entry.handler]));
@@ -21,9 +23,14 @@ function defineServerQueries(...entries) {
21
23
  }
22
24
  });
23
25
  }
26
+ /** Freeze and return a reusable {@link QueryDefinition}. */
24
27
  function defineQuery(definition) {
25
28
  return Object.freeze({ ...definition });
26
29
  }
30
+ /**
31
+ * Create a {@link QueryPrefetchContext} for prefetching query data ahead of
32
+ * render, e.g. during SSR route resolution.
33
+ */
27
34
  function createQueryPrefetchContext(options = {}) {
28
35
  const runtime = options.runtime ?? (options.mode === "spa" ? getDefaultDataRuntime() : createDataRuntime());
29
36
  const signal = options.signal ?? new AbortController().signal;
@@ -54,9 +61,11 @@ function createQueryPrefetchContext(options = {}) {
54
61
  }
55
62
  };
56
63
  }
64
+ /** Prefetch `query` with `input` into a {@link QueryPrefetchContext}'s runtime. */
57
65
  async function prefetchQuery(context, query, input) {
58
66
  return context.prefetch(query, input);
59
67
  }
68
+ /** Extract a runtime's cached query data into a JSON-serializable snapshot, dropping non-serializable values. */
60
69
  function dehydrateDataRuntime(runtime) {
61
70
  const result = {};
62
71
  for (const [key, value] of runtime.queryData) try {
@@ -65,6 +74,7 @@ function dehydrateDataRuntime(runtime) {
65
74
  } catch {}
66
75
  return result;
67
76
  }
77
+ /** Load a {@link dehydrateDataRuntime} snapshot back into a runtime's query cache. */
68
78
  function hydrateDataRuntime(runtime, data) {
69
79
  if (!data || typeof data !== "object" || Array.isArray(data)) return;
70
80
  for (const [key, value] of Object.entries(data)) runtime.queryData.set(key, value);
@@ -1,4 +1,4 @@
1
- import { c as markRuntimeReactivePropsDirtySource, n as enqueueRuntimeTask, s as isRuntimeSchedulerExecuting } from "./access-DSkccuEI.js";
1
+ import { c as markRuntimeReactivePropsDirtySource, n as enqueueRuntimeTask, s as isRuntimeSchedulerExecuting } from "./access-d_DCdwqn.js";
2
2
  import { p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
3
3
  //#region src/runtime/readable.ts
4
4
  const DEVELOPMENT_BUILD_ENABLED = false;
@@ -1,45 +1,18 @@
1
1
  import { n as hasTransparentComponentResult, t as __CONTROL_BOUNDARY__ } from "./control-C-ApnFs1.js";
2
2
  import { n as _isDOMElement, t as __ERROR_BOUNDARY__ } from "./vnode-D24p6IW2.js";
3
- import { b as getRuntimeEnv, i as getDefaultRuntimeInstance, l as runRuntimeHandlerScope, n as enqueueRuntimeTask, p as configureRuntimeRenderer, x as isDevelopmentEnvironment, y as logger } from "./access-DSkccuEI.js";
4
- import { n as isBulkCommitActive, r as markFastPathApplied } from "./fastlane-B2s24fWt.js";
3
+ import { b as getRuntimeEnv, i as getDefaultRuntimeInstance, l as runRuntimeHandlerScope, n as enqueueRuntimeTask, p as configureRuntimeRenderer, x as isDevelopmentEnvironment, y as logger } from "./access-d_DCdwqn.js";
4
+ import { n as isBulkCommitActive, r as markFastPathApplied } from "./fastlane-DGo7SxBQ.js";
5
5
  import { T as withAppRenderRuntime, b as restoreDomCommitScope, c as enterDomCommitScope, d as getCurrentAppRenderRuntime, p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
6
- import { i as isFragmentType, r as STATIC_CHILDREN } from "./jsx-C3IECePB.js";
7
- import { b as withContext, f as getCurrentContextFrame, g as markVNodeTreeWithContextFrame, i as mountInstanceInline, m as getVNodeContextFrame, n as createComponentInstance, o as renderComponentInline, t as captureInlineRenderSnapshot } from "./component-internal-DlAkCgBE.js";
8
- import { t as cleanupComponent } from "./component-cleanup-CJCfu5ed.js";
9
- import { c as getCurrentLifecycleCommitBatch, l as registerLifecycleRollback, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-Cyfd07rf.js";
10
- import { _ as setControlBoundaryContextFrame, a as registerForStateTransaction, b as rerenderChildScope, c as captureForFallbackTransactionSnapshot, d as clearCaseDomUpdateState, f as clearShowDomUpdateState, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, l as captureForItemTransactionSnapshot, n as clearForDomUpdateState, o as rollbackForStateTransaction, t as beginForStateTransaction, v as createChildScope, y as disposeChildScope } from "./for-internal-T1C7jd7x.js";
11
- import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-BdZcHblj.js";
12
- import { C as getDelegatedHandlersForElement, D as updateDelegatedListener, E as removeDelegatedListener, S as getDelegatedHandlerForElement, T as isEventDelegationEnabled, _ as teardownNodeSubtree, a as elementReactivePropsCleanup, b as addFreshDelegatedListener, c as forEachElementReactivePropCleanup, d as removeAllListeners, f as removeElementReactiveProps, g as setFreshElementReactivePropCleanup, h as setDirectElementReactivePropCleanup, i as elementListeners, l as getElementReactivePropCleanupSize, m as replaceElementRefBookkeeping, n as cleanupInstanceIfPresent, o as elementRefs, p as removeElementRef, r as cleanupInstancesUnder, s as forEachDescendantNode, t as REACTIVE_CHILDREN_KEY, u as getElementReactivePropsCleanupMap, v as updateElementRef, w as isDelegatedEvent, x as clearDelegatedHandlersForElement, y as addDelegatedListener } from "./cleanup-DAAhJjx5.js";
6
+ import { i as isFragmentType, r as STATIC_CHILDREN } from "./jsx-DRS-qjiN.js";
7
+ import { S as withContext, c as createBoundaryReset, g as getVNodeContextFrame, i as mountInstanceInline, l as reportBoundaryError, m as getCurrentContextFrame, n as createComponentInstance, o as renderComponentInline, t as captureInlineRenderSnapshot, v as markVNodeTreeWithContextFrame } from "./component-internal-D0yE2Ch3.js";
8
+ import { t as cleanupComponent } from "./component-cleanup-DYG80yhG.js";
9
+ import { c as getCurrentLifecycleCommitBatch, l as registerLifecycleRollback, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-BH0fax4F.js";
10
+ import { _ as setControlBoundaryContextFrame, a as registerForStateTransaction, b as rerenderChildScope, c as captureForFallbackTransactionSnapshot, d as clearCaseDomUpdateState, f as clearShowDomUpdateState, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, l as captureForItemTransactionSnapshot, n as clearForDomUpdateState, o as rollbackForStateTransaction, t as beginForStateTransaction, v as createChildScope, y as disposeChildScope } from "./for-internal-DkBwTG4S.js";
11
+ import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-BdvdgMvV.js";
12
+ import { C as getDelegatedHandlersForElement, D as updateDelegatedListener, E as removeDelegatedListener, S as getDelegatedHandlerForElement, T as isEventDelegationEnabled, _ as teardownNodeSubtree, a as elementReactivePropsCleanup, b as addFreshDelegatedListener, c as forEachElementReactivePropCleanup, d as removeAllListeners, f as removeElementReactiveProps, g as setFreshElementReactivePropCleanup, h as setDirectElementReactivePropCleanup, i as elementListeners, l as getElementReactivePropCleanupSize, m as replaceElementRefBookkeeping, n as cleanupInstanceIfPresent, o as elementRefs, p as removeElementRef, r as cleanupInstancesUnder, s as forEachDescendantNode, t as REACTIVE_CHILDREN_KEY, u as getElementReactivePropsCleanupMap, v as updateElementRef, w as isDelegatedEvent, x as clearDelegatedHandlersForElement, y as addDelegatedListener } from "./cleanup-D7uN-Z1s.js";
13
13
  import { n as getPublicAttributeName, t as sanitizeCssValue } from "./css-BuPaTOfe.js";
14
- import { i as ROUTE_ROOT_COMPONENT, o as isUnsafeUrlAttribute } from "./csp-nonce-ByMbWv8s.js";
14
+ import { i as ROUTE_ROOT_COMPONENT, o as isUnsafeUrlAttribute } from "./csp-nonce-BVybpV1v.js";
15
15
  import { a as isSSRPortalHydrationAnchor } from "./portal-w3oQ6oQU.js";
16
- //#region src/runtime/error-boundary.ts
17
- function createBoundaryReset(instance) {
18
- return () => {
19
- const boundaryState = instance.errorBoundaryState;
20
- if (!boundaryState) return;
21
- boundaryState.error = null;
22
- boundaryState.notified = false;
23
- queueMicrotask(() => {
24
- instance._enqueueRun?.();
25
- });
26
- };
27
- }
28
- function reportBoundaryError(instance, error, onError) {
29
- const boundaryState = instance.errorBoundaryState;
30
- if (boundaryState && Object.is(boundaryState.error, error) && boundaryState.notified) return;
31
- if (boundaryState) {
32
- boundaryState.error = error;
33
- boundaryState.notified = true;
34
- }
35
- try {
36
- onError?.(error);
37
- } catch (hookError) {
38
- logger.error("[Askr] ErrorBoundary onError handler threw:", hookError);
39
- }
40
- logger.error("[Askr] ErrorBoundary caught render error:", error);
41
- }
42
- //#endregion
43
16
  //#region src/renderer/utils.ts
44
17
  /**
45
18
  * Shared utilities for the renderer module.