@fictjs/runtime 0.17.0 → 0.17.1

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 (64) hide show
  1. package/dist/advanced.cjs +9 -9
  2. package/dist/advanced.d.cts +3 -3
  3. package/dist/advanced.d.ts +3 -3
  4. package/dist/advanced.js +4 -4
  5. package/dist/{binding-CQUGLLBI.d.ts → binding-BfzY9rae.d.ts} +2 -2
  6. package/dist/{binding-BlABuUiG.d.cts → binding-CDR2ERoq.d.cts} +2 -2
  7. package/dist/{chunk-5FVWBK4M.cjs → chunk-2J4INHDT.cjs} +40 -40
  8. package/dist/{chunk-5FVWBK4M.cjs.map → chunk-2J4INHDT.cjs.map} +1 -1
  9. package/dist/{chunk-6DNYVH5U.cjs → chunk-CKKZDUHM.cjs} +21 -18
  10. package/dist/chunk-CKKZDUHM.cjs.map +1 -0
  11. package/dist/{chunk-UQTWIV3S.js → chunk-DHRRJJ6W.js} +8 -5
  12. package/dist/chunk-DHRRJJ6W.js.map +1 -0
  13. package/dist/{chunk-IIWHTV23.js → chunk-LFLFSJFU.js} +3 -3
  14. package/dist/{chunk-ECKYFH5Q.cjs → chunk-NBDEMBBX.cjs} +43 -81
  15. package/dist/chunk-NBDEMBBX.cjs.map +1 -0
  16. package/dist/{chunk-CFAWL76V.js → chunk-OKPQWORE.js} +43 -81
  17. package/dist/chunk-OKPQWORE.js.map +1 -0
  18. package/dist/{chunk-M42N54LG.js → chunk-OLHZBAIF.js} +3 -3
  19. package/dist/{chunk-F5SDRX4J.js → chunk-R2HYEOP7.js} +470 -172
  20. package/dist/chunk-R2HYEOP7.js.map +1 -0
  21. package/dist/{chunk-INYTG4NG.cjs → chunk-UG2IFQOY.cjs} +650 -352
  22. package/dist/chunk-UG2IFQOY.cjs.map +1 -0
  23. package/dist/{chunk-WY4LI5PB.cjs → chunk-VP2WC7X3.cjs} +8 -8
  24. package/dist/{chunk-WY4LI5PB.cjs.map → chunk-VP2WC7X3.cjs.map} +1 -1
  25. package/dist/{devtools-DWIZRe7L.d.cts → devtools-BwkkQ6DN.d.cts} +1 -1
  26. package/dist/{devtools-DNnnDGu1.d.ts → devtools-CK3SVU_w.d.ts} +1 -1
  27. package/dist/index.cjs +55 -42
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +4 -4
  30. package/dist/index.d.ts +4 -4
  31. package/dist/index.dev.js +260 -156
  32. package/dist/index.dev.js.map +1 -1
  33. package/dist/index.js +16 -3
  34. package/dist/index.js.map +1 -1
  35. package/dist/internal-list.cjs +4 -4
  36. package/dist/internal-list.js +3 -3
  37. package/dist/internal.cjs +5 -5
  38. package/dist/internal.d.cts +3 -3
  39. package/dist/internal.d.ts +3 -3
  40. package/dist/internal.js +4 -4
  41. package/dist/loader.cjs +18 -18
  42. package/dist/loader.js +1 -1
  43. package/dist/{props-C04ScJgm.d.ts → props-CFoQ471Y.d.ts} +1 -1
  44. package/dist/{props-CdmuXCiu.d.cts → props-D4tK8Gn0.d.cts} +1 -1
  45. package/dist/{scope-gpOMWTlf.d.ts → scope-BFzD_7hx.d.ts} +1 -1
  46. package/dist/{scope-GwC4DJ50.d.cts → scope-Ck3mTQVS.d.cts} +1 -1
  47. package/package.json +1 -1
  48. package/src/binding.ts +561 -166
  49. package/src/context.ts +8 -1
  50. package/src/dom.ts +26 -44
  51. package/src/effect.ts +9 -12
  52. package/src/error-boundary.ts +8 -0
  53. package/src/hydration.ts +25 -6
  54. package/src/lifecycle.ts +31 -79
  55. package/src/signal.ts +4 -1
  56. package/src/suspense.ts +8 -0
  57. package/dist/chunk-6DNYVH5U.cjs.map +0 -1
  58. package/dist/chunk-CFAWL76V.js.map +0 -1
  59. package/dist/chunk-ECKYFH5Q.cjs.map +0 -1
  60. package/dist/chunk-F5SDRX4J.js.map +0 -1
  61. package/dist/chunk-INYTG4NG.cjs.map +0 -1
  62. package/dist/chunk-UQTWIV3S.js.map +0 -1
  63. /package/dist/{chunk-IIWHTV23.js.map → chunk-LFLFSJFU.js.map} +0 -0
  64. /package/dist/{chunk-M42N54LG.js.map → chunk-OLHZBAIF.js.map} +0 -0
package/dist/advanced.cjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk6DNYVH5Ucjs = require('./chunk-6DNYVH5U.cjs');
5
+ var _chunkCKKZDUHMcjs = require('./chunk-CKKZDUHM.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkWY4LI5PBcjs = require('./chunk-WY4LI5PB.cjs');
9
+ var _chunkVP2WC7X3cjs = require('./chunk-VP2WC7X3.cjs');
10
10
 
11
11
 
12
12
 
@@ -18,7 +18,7 @@ var _chunkWY4LI5PBcjs = require('./chunk-WY4LI5PB.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
21
+ var _chunkUG2IFQOYcjs = require('./chunk-UG2IFQOY.cjs');
22
22
 
23
23
 
24
24
 
@@ -28,13 +28,13 @@ var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
28
28
 
29
29
 
30
30
 
31
- var _chunkECKYFH5Qcjs = require('./chunk-ECKYFH5Q.cjs');
31
+ var _chunkNBDEMBBXcjs = require('./chunk-NBDEMBBX.cjs');
32
32
 
33
33
  // src/versioned-signal.ts
34
34
  function createVersionedSignal(initialValue, options) {
35
35
  const equals = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.equals]), () => ( Object.is));
36
- const value = _chunkECKYFH5Qcjs.signal.call(void 0, initialValue);
37
- const version = _chunkECKYFH5Qcjs.signal.call(void 0, 0);
36
+ const value = _chunkNBDEMBBXcjs.signal.call(void 0, initialValue);
37
+ const version = _chunkNBDEMBBXcjs.signal.call(void 0, 0);
38
38
  const bumpVersion = () => {
39
39
  const next = version() + 1;
40
40
  version(next);
@@ -55,8 +55,8 @@ function createVersionedSignal(initialValue, options) {
55
55
  force: () => {
56
56
  bumpVersion();
57
57
  },
58
- peekVersion: () => _chunkECKYFH5Qcjs.untrack.call(void 0, () => version()),
59
- peekValue: () => _chunkECKYFH5Qcjs.untrack.call(void 0, () => value())
58
+ peekVersion: () => _chunkNBDEMBBXcjs.untrack.call(void 0, () => version()),
59
+ peekValue: () => _chunkNBDEMBBXcjs.untrack.call(void 0, () => value())
60
60
  };
61
61
  }
62
62
 
@@ -83,5 +83,5 @@ function createVersionedSignal(initialValue, options) {
83
83
 
84
84
 
85
85
 
86
- exports.createAttributeBinding = _chunkINYTG4NGcjs.createAttributeBinding; exports.createChildBinding = _chunkINYTG4NGcjs.createChildBinding; exports.createClassBinding = _chunkINYTG4NGcjs.createClassBinding; exports.createContext = _chunk6DNYVH5Ucjs.createContext; exports.createRenderEffect = _chunkECKYFH5Qcjs.createRenderEffect; exports.createScope = _chunkWY4LI5PBcjs.createScope; exports.createSelector = _chunkECKYFH5Qcjs.createSelector; exports.createShow = _chunkINYTG4NGcjs.createShow; exports.createSignal = _chunkECKYFH5Qcjs.signal; exports.createStyleBinding = _chunkINYTG4NGcjs.createStyleBinding; exports.createTextBinding = _chunkINYTG4NGcjs.createTextBinding; exports.createVersionedSignal = createVersionedSignal; exports.effectScope = _chunkECKYFH5Qcjs.effectScope; exports.getDevtoolsHook = _chunkECKYFH5Qcjs.getDevtoolsHook; exports.hasContext = _chunk6DNYVH5Ucjs.hasContext; exports.isReactive = _chunkINYTG4NGcjs.isReactive; exports.nonReactive = _chunkINYTG4NGcjs.nonReactive; exports.reactive = _chunkINYTG4NGcjs.reactive; exports.registerErrorHandler = _chunkECKYFH5Qcjs.registerErrorHandler; exports.runInScope = _chunkWY4LI5PBcjs.runInScope; exports.setCycleProtectionOptions = _chunkECKYFH5Qcjs.setCycleProtectionOptions; exports.unwrap = _chunkINYTG4NGcjs.unwrap; exports.useContext = _chunk6DNYVH5Ucjs.useContext;
86
+ exports.createAttributeBinding = _chunkUG2IFQOYcjs.createAttributeBinding; exports.createChildBinding = _chunkUG2IFQOYcjs.createChildBinding; exports.createClassBinding = _chunkUG2IFQOYcjs.createClassBinding; exports.createContext = _chunkCKKZDUHMcjs.createContext; exports.createRenderEffect = _chunkNBDEMBBXcjs.createRenderEffect; exports.createScope = _chunkVP2WC7X3cjs.createScope; exports.createSelector = _chunkNBDEMBBXcjs.createSelector; exports.createShow = _chunkUG2IFQOYcjs.createShow; exports.createSignal = _chunkNBDEMBBXcjs.signal; exports.createStyleBinding = _chunkUG2IFQOYcjs.createStyleBinding; exports.createTextBinding = _chunkUG2IFQOYcjs.createTextBinding; exports.createVersionedSignal = createVersionedSignal; exports.effectScope = _chunkNBDEMBBXcjs.effectScope; exports.getDevtoolsHook = _chunkNBDEMBBXcjs.getDevtoolsHook; exports.hasContext = _chunkCKKZDUHMcjs.hasContext; exports.isReactive = _chunkUG2IFQOYcjs.isReactive; exports.nonReactive = _chunkUG2IFQOYcjs.nonReactive; exports.reactive = _chunkUG2IFQOYcjs.reactive; exports.registerErrorHandler = _chunkNBDEMBBXcjs.registerErrorHandler; exports.runInScope = _chunkVP2WC7X3cjs.runInScope; exports.setCycleProtectionOptions = _chunkNBDEMBBXcjs.setCycleProtectionOptions; exports.unwrap = _chunkUG2IFQOYcjs.unwrap; exports.useContext = _chunkCKKZDUHMcjs.useContext;
87
87
  //# sourceMappingURL=advanced.cjs.map
@@ -1,7 +1,7 @@
1
- export { R as ReactiveScope, c as createScope, r as runInScope } from './scope-GwC4DJ50.cjs';
1
+ export { R as ReactiveScope, c as createScope, r as runInScope } from './scope-Ck3mTQVS.cjs';
2
2
  export { S as Signal, c as createSelector, s as createSignal, e as effectScope } from './signal-Z4KkDk9h.cjs';
3
- export { b as createAttributeBinding, a as createChildBinding, e as createClassBinding, h as createRenderEffect, f as createShow, d as createStyleBinding, c as createTextBinding, i as isReactive, n as nonReactive, r as reactive, g as registerErrorHandler, u as unwrap } from './binding-BlABuUiG.cjs';
4
- export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, g as getDevtoolsHook, h as hasContext, u as useContext } from './devtools-DWIZRe7L.cjs';
3
+ export { b as createAttributeBinding, a as createChildBinding, e as createClassBinding, h as createRenderEffect, f as createShow, d as createStyleBinding, c as createTextBinding, i as isReactive, n as nonReactive, r as reactive, g as registerErrorHandler, u as unwrap } from './binding-CDR2ERoq.cjs';
4
+ export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, g as getDevtoolsHook, h as hasContext, u as useContext } from './devtools-BwkkQ6DN.cjs';
5
5
 
6
6
  interface VersionedSignalOptions<T> {
7
7
  equals?: (prev: T, next: T) => boolean;
@@ -1,7 +1,7 @@
1
- export { R as ReactiveScope, c as createScope, r as runInScope } from './scope-gpOMWTlf.js';
1
+ export { R as ReactiveScope, c as createScope, r as runInScope } from './scope-BFzD_7hx.js';
2
2
  export { S as Signal, c as createSelector, s as createSignal, e as effectScope } from './signal-Z4KkDk9h.js';
3
- export { b as createAttributeBinding, a as createChildBinding, e as createClassBinding, h as createRenderEffect, f as createShow, d as createStyleBinding, c as createTextBinding, i as isReactive, n as nonReactive, r as reactive, g as registerErrorHandler, u as unwrap } from './binding-CQUGLLBI.js';
4
- export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, g as getDevtoolsHook, h as hasContext, u as useContext } from './devtools-DNnnDGu1.js';
3
+ export { b as createAttributeBinding, a as createChildBinding, e as createClassBinding, h as createRenderEffect, f as createShow, d as createStyleBinding, c as createTextBinding, i as isReactive, n as nonReactive, r as reactive, g as registerErrorHandler, u as unwrap } from './binding-BfzY9rae.js';
4
+ export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, g as getDevtoolsHook, h as hasContext, u as useContext } from './devtools-CK3SVU_w.js';
5
5
 
6
6
  interface VersionedSignalOptions<T> {
7
7
  equals?: (prev: T, next: T) => boolean;
package/dist/advanced.js CHANGED
@@ -2,11 +2,11 @@ import {
2
2
  createContext,
3
3
  hasContext,
4
4
  useContext
5
- } from "./chunk-UQTWIV3S.js";
5
+ } from "./chunk-DHRRJJ6W.js";
6
6
  import {
7
7
  createScope,
8
8
  runInScope
9
- } from "./chunk-IIWHTV23.js";
9
+ } from "./chunk-LFLFSJFU.js";
10
10
  import {
11
11
  createAttributeBinding,
12
12
  createChildBinding,
@@ -18,7 +18,7 @@ import {
18
18
  nonReactive,
19
19
  reactive,
20
20
  unwrap
21
- } from "./chunk-F5SDRX4J.js";
21
+ } from "./chunk-R2HYEOP7.js";
22
22
  import {
23
23
  createRenderEffect,
24
24
  createSelector,
@@ -28,7 +28,7 @@ import {
28
28
  setCycleProtectionOptions,
29
29
  signal,
30
30
  untrack
31
- } from "./chunk-CFAWL76V.js";
31
+ } from "./chunk-OKPQWORE.js";
32
32
 
33
33
  // src/versioned-signal.ts
34
34
  function createVersionedSignal(initialValue, options) {
@@ -316,7 +316,7 @@ declare function clearDelegatedEvents(doc?: Document): void;
316
316
  * @param handler - The event handler or [handler, data] tuple
317
317
  * @param delegate - Whether to use delegation (auto-detected based on event name)
318
318
  */
319
- declare function addEventListener(node: Element, name: string, handler: EventListener | [EventListener, unknown] | null | undefined, delegate?: boolean): void;
319
+ declare function addEventListener(node: Element, name: string, handler: EventListenerOrEventListenerObject | [EventListenerOrEventListenerObject, unknown] | null | undefined, delegate?: boolean, options?: boolean | AddEventListenerOptions): void;
320
320
  /**
321
321
  * Bind an event listener to an element.
322
322
  * Uses event delegation for better performance when applicable.
@@ -355,7 +355,7 @@ declare function bindEvent(el: Element, eventName: string, handler: EventListene
355
355
  * bindRef(el, () => props.ref)
356
356
  * ```
357
357
  */
358
- declare function bindRef(el: Element, ref: unknown): Cleanup;
358
+ declare function bindRef(el: Element, ref: unknown, registerCleanup?: boolean): Cleanup;
359
359
  /**
360
360
  * Apply spread props to an element with reactive updates.
361
361
  * This handles dynamic spread like `<div {...props}>`.
@@ -316,7 +316,7 @@ declare function clearDelegatedEvents(doc?: Document): void;
316
316
  * @param handler - The event handler or [handler, data] tuple
317
317
  * @param delegate - Whether to use delegation (auto-detected based on event name)
318
318
  */
319
- declare function addEventListener(node: Element, name: string, handler: EventListener | [EventListener, unknown] | null | undefined, delegate?: boolean): void;
319
+ declare function addEventListener(node: Element, name: string, handler: EventListenerOrEventListenerObject | [EventListenerOrEventListenerObject, unknown] | null | undefined, delegate?: boolean, options?: boolean | AddEventListenerOptions): void;
320
320
  /**
321
321
  * Bind an event listener to an element.
322
322
  * Uses event delegation for better performance when applicable.
@@ -355,7 +355,7 @@ declare function bindEvent(el: Element, eventName: string, handler: EventListene
355
355
  * bindRef(el, () => props.ref)
356
356
  * ```
357
357
  */
358
- declare function bindRef(el: Element, ref: unknown): Cleanup;
358
+ declare function bindRef(el: Element, ref: unknown, registerCleanup?: boolean): Cleanup;
359
359
  /**
360
360
  * Apply spread props to an element with reactive updates.
361
361
  * This handles dynamic spread like `<div {...props}>`.
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
9
+ var _chunkUG2IFQOYcjs = require('./chunk-UG2IFQOY.cjs');
10
10
 
11
11
 
12
12
 
@@ -21,7 +21,7 @@ var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
21
21
 
22
22
 
23
23
 
24
- var _chunkECKYFH5Qcjs = require('./chunk-ECKYFH5Q.cjs');
24
+ var _chunkNBDEMBBXcjs = require('./chunk-NBDEMBBX.cjs');
25
25
 
26
26
  // src/reconcile.ts
27
27
  function reconcileArrays(parentNode, a, b) {
@@ -151,7 +151,7 @@ var MAX_SAFE_VERSION = 9007199254740991;
151
151
  function createVersionedSignalAccessor(initialValue) {
152
152
  let current = initialValue;
153
153
  let version = 0;
154
- const track = _chunkECKYFH5Qcjs.signal.call(void 0, version);
154
+ const track = _chunkNBDEMBBXcjs.signal.call(void 0, version);
155
155
  function accessor(value) {
156
156
  if (arguments.length === 0) {
157
157
  track();
@@ -169,7 +169,7 @@ function createKeyedListContainer(startOverride, endOverride, defaultOwnerDocume
169
169
  const endMarker = _nullishCoalesce(endOverride, () => ( markerOwnerDocument.createComment("fict:list:end")));
170
170
  const dispose = () => {
171
171
  for (const block of container.blocks.values()) {
172
- _chunkECKYFH5Qcjs.destroyRoot.call(void 0, block.root);
172
+ _chunkNBDEMBBXcjs.destroyRoot.call(void 0, block.root);
173
173
  }
174
174
  container.blocks.clear();
175
175
  container.nextBlocks.clear();
@@ -209,33 +209,33 @@ function createKeyedListContainer(startOverride, endOverride, defaultOwnerDocume
209
209
  }
210
210
  function createKeyedBlock(key, item, index, render, needsIndex = true, hostRoot) {
211
211
  const itemSig = createVersionedSignalAccessor(item);
212
- const indexSig = needsIndex ? _chunkECKYFH5Qcjs.signal.call(void 0, index) : (function indexSignal(next) {
212
+ const indexSig = needsIndex ? _chunkNBDEMBBXcjs.signal.call(void 0, index) : (function indexSignal(next) {
213
213
  if (arguments.length === 0) return index;
214
214
  index = next;
215
215
  return index;
216
216
  });
217
- const root = _chunkECKYFH5Qcjs.createRootContext.call(void 0, hostRoot);
217
+ const root = _chunkNBDEMBBXcjs.createRootContext.call(void 0, hostRoot);
218
218
  const nodeOwnerDocument = _nullishCoalesce(_nullishCoalesce(root.ownerDocument, () => ( _optionalChain([hostRoot, 'optionalAccess', _11 => _11.ownerDocument]))), () => ( document));
219
- const prevRoot = _chunkECKYFH5Qcjs.pushRoot.call(void 0, root);
219
+ const prevRoot = _chunkNBDEMBBXcjs.pushRoot.call(void 0, root);
220
220
  let nodes = [];
221
221
  let scopeDispose;
222
- const prevSub = _chunkECKYFH5Qcjs.setActiveSub.call(void 0, void 0);
222
+ const prevSub = _chunkNBDEMBBXcjs.setActiveSub.call(void 0, void 0);
223
223
  try {
224
- scopeDispose = _chunkECKYFH5Qcjs.effectScope.call(void 0, () => {
224
+ scopeDispose = _chunkNBDEMBBXcjs.effectScope.call(void 0, () => {
225
225
  const rendered = render(itemSig, indexSig, key);
226
226
  if (rendered instanceof Node || Array.isArray(rendered) && rendered.every((n) => n instanceof Node)) {
227
- nodes = _chunkINYTG4NGcjs.toNodeArray.call(void 0, rendered, nodeOwnerDocument);
227
+ nodes = _chunkUG2IFQOYcjs.toNodeArray.call(void 0, rendered, nodeOwnerDocument);
228
228
  } else {
229
- const element = _chunkINYTG4NGcjs.createElement.call(void 0, rendered);
230
- nodes = _chunkINYTG4NGcjs.toNodeArray.call(void 0, element, nodeOwnerDocument);
229
+ const element = _chunkUG2IFQOYcjs.createElement.call(void 0, rendered);
230
+ nodes = _chunkUG2IFQOYcjs.toNodeArray.call(void 0, element, nodeOwnerDocument);
231
231
  }
232
232
  });
233
233
  if (scopeDispose) {
234
234
  root.cleanups.push(scopeDispose);
235
235
  }
236
236
  } finally {
237
- _chunkECKYFH5Qcjs.setActiveSub.call(void 0, prevSub);
238
- _chunkECKYFH5Qcjs.popRoot.call(void 0, prevRoot);
237
+ _chunkNBDEMBBXcjs.setActiveSub.call(void 0, prevSub);
238
+ _chunkNBDEMBBXcjs.popRoot.call(void 0, prevRoot);
239
239
  }
240
240
  return {
241
241
  key,
@@ -347,7 +347,7 @@ function createKeyedList(getItems, keyFn, renderItem, needsIndex, startMarker, e
347
347
  );
348
348
  }
349
349
  function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, startOverride, endOverride) {
350
- const hostRoot = _chunkECKYFH5Qcjs.getCurrentRoot.call(void 0, );
350
+ const hostRoot = _chunkNBDEMBBXcjs.getCurrentRoot.call(void 0, );
351
351
  const container = createKeyedListContainer(
352
352
  startOverride,
353
353
  endOverride,
@@ -365,7 +365,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
365
365
  let connectObserver = null;
366
366
  let effectStarted = false;
367
367
  let startScheduled = false;
368
- let initialHydrating = _chunkECKYFH5Qcjs.__fictIsHydrating.call(void 0, );
368
+ let initialHydrating = _chunkNBDEMBBXcjs.__fictIsHydrating.call(void 0, );
369
369
  const collectBetween = () => {
370
370
  const nodes = [];
371
371
  let cursor = container.startMarker.nextSibling;
@@ -393,17 +393,17 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
393
393
  };
394
394
  const performDiff = () => {
395
395
  if (disposed) return;
396
- const isSSR = _chunkECKYFH5Qcjs.__fictIsSSR.call(void 0, );
396
+ const isSSR = _chunkNBDEMBBXcjs.__fictIsSSR.call(void 0, );
397
397
  const parent = isSSR ? container.startMarker.parentNode : getConnectedParent();
398
398
  if (!parent) return;
399
- _chunkINYTG4NGcjs.batch.call(void 0, () => {
399
+ _chunkUG2IFQOYcjs.batch.call(void 0, () => {
400
400
  const oldBlocks = container.blocks;
401
401
  const newBlocks = container.nextBlocks;
402
402
  const prevOrderedBlocks = container.orderedBlocks;
403
403
  const nextOrderedBlocks = container.nextOrderedBlocks;
404
404
  const orderedIndexByKey = container.orderedIndexByKey;
405
405
  const newItems = getItems();
406
- if (initialHydrating && _chunkINYTG4NGcjs.isHydratingActive.call(void 0, )) {
406
+ if (initialHydrating && _chunkUG2IFQOYcjs.isHydratingActive.call(void 0, )) {
407
407
  initialHydrating = false;
408
408
  newBlocks.clear();
409
409
  nextOrderedBlocks.length = 0;
@@ -416,7 +416,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
416
416
  return;
417
417
  }
418
418
  const createdBlocks2 = [];
419
- _chunkINYTG4NGcjs.withHydrationRange.call(void 0,
419
+ _chunkUG2IFQOYcjs.withHydrationRange.call(void 0,
420
420
  container.startMarker.nextSibling,
421
421
  container.endMarker,
422
422
  _nullishCoalesce(parent.ownerDocument, () => ( markerOwnerDocument)),
@@ -432,8 +432,8 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
432
432
  }
433
433
  const existing = newBlocks.get(key);
434
434
  if (existing) {
435
- _chunkECKYFH5Qcjs.destroyRoot.call(void 0, existing.root);
436
- _chunkINYTG4NGcjs.removeNodes.call(void 0, existing.nodes);
435
+ _chunkNBDEMBBXcjs.destroyRoot.call(void 0, existing.root);
436
+ _chunkUG2IFQOYcjs.removeNodes.call(void 0, existing.nodes);
437
437
  }
438
438
  }
439
439
  const block = createKeyedBlock(key, item, index, renderItem, needsIndex, hostRoot);
@@ -454,7 +454,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
454
454
  container.nextNodes.length = 0;
455
455
  for (const block of createdBlocks2) {
456
456
  if (newBlocks.get(block.key) === block) {
457
- _chunkECKYFH5Qcjs.flushOnMount.call(void 0, block.root);
457
+ _chunkNBDEMBBXcjs.flushOnMount.call(void 0, block.root);
458
458
  }
459
459
  }
460
460
  return;
@@ -462,7 +462,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
462
462
  if (newItems.length === 0) {
463
463
  if (oldBlocks.size > 0) {
464
464
  for (const block of oldBlocks.values()) {
465
- _chunkECKYFH5Qcjs.destroyRoot.call(void 0, block.root);
465
+ _chunkNBDEMBBXcjs.destroyRoot.call(void 0, block.root);
466
466
  }
467
467
  const range = (_nullishCoalesce(parent.ownerDocument, () => ( markerOwnerDocument))).createRange();
468
468
  range.setStartAfter(container.startMarker);
@@ -543,8 +543,8 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
543
543
  `[fict] Duplicate key "${String(key)}" detected in list rendering. Each item should have a unique key. The previous item with this key will be replaced.`
544
544
  );
545
545
  }
546
- _chunkECKYFH5Qcjs.destroyRoot.call(void 0, existingBlock.root);
547
- _chunkINYTG4NGcjs.removeNodes.call(void 0, existingBlock.nodes);
546
+ _chunkNBDEMBBXcjs.destroyRoot.call(void 0, existingBlock.root);
547
+ _chunkUG2IFQOYcjs.removeNodes.call(void 0, existingBlock.nodes);
548
548
  }
549
549
  block = createKeyedBlock(key, item, index, renderItem, needsIndex, hostRoot);
550
550
  createdBlocks.push(block);
@@ -557,8 +557,8 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
557
557
  hasDuplicateKey = true;
558
558
  const prior = nextOrderedBlocks[position];
559
559
  if (prior && prior !== resolvedBlock) {
560
- _chunkECKYFH5Qcjs.destroyRoot.call(void 0, prior.root);
561
- _chunkINYTG4NGcjs.removeNodes.call(void 0, prior.nodes);
560
+ _chunkNBDEMBBXcjs.destroyRoot.call(void 0, prior.root);
561
+ _chunkUG2IFQOYcjs.removeNodes.call(void 0, prior.nodes);
562
562
  }
563
563
  nextOrderedBlocks[position] = resolvedBlock;
564
564
  } else {
@@ -596,7 +596,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
596
596
  }
597
597
  }
598
598
  if (appendedNodes.length > 0) {
599
- _chunkINYTG4NGcjs.insertNodesBefore.call(void 0, parent, appendedNodes, container.endMarker);
599
+ _chunkUG2IFQOYcjs.insertNodesBefore.call(void 0, parent, appendedNodes, container.endMarker);
600
600
  const currentNodes = container.currentNodes;
601
601
  currentNodes.pop();
602
602
  for (let i = 0; i < appendedNodes.length; i++) {
@@ -610,15 +610,15 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
610
610
  container.nextOrderedBlocks = prevOrderedBlocks;
611
611
  for (const block of createdBlocks) {
612
612
  if (newBlocks.get(block.key) === block) {
613
- _chunkECKYFH5Qcjs.flushOnMount.call(void 0, block.root);
613
+ _chunkNBDEMBBXcjs.flushOnMount.call(void 0, block.root);
614
614
  }
615
615
  }
616
616
  return;
617
617
  }
618
618
  if (oldBlocks.size > 0) {
619
619
  for (const block of oldBlocks.values()) {
620
- _chunkECKYFH5Qcjs.destroyRoot.call(void 0, block.root);
621
- _chunkINYTG4NGcjs.removeNodes.call(void 0, block.nodes);
620
+ _chunkNBDEMBBXcjs.destroyRoot.call(void 0, block.root);
621
+ _chunkUG2IFQOYcjs.removeNodes.call(void 0, block.nodes);
622
622
  }
623
623
  oldBlocks.clear();
624
624
  }
@@ -677,7 +677,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
677
677
  container.nextOrderedBlocks = prevOrderedBlocks;
678
678
  for (const block of createdBlocks) {
679
679
  if (newBlocks.get(block.key) === block) {
680
- _chunkECKYFH5Qcjs.flushOnMount.call(void 0, block.root);
680
+ _chunkNBDEMBBXcjs.flushOnMount.call(void 0, block.root);
681
681
  }
682
682
  }
683
683
  });
@@ -688,19 +688,19 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
688
688
  };
689
689
  const ensureEffectStarted = () => {
690
690
  if (disposed || effectStarted) return effectStarted;
691
- const isSSR = _chunkECKYFH5Qcjs.__fictIsSSR.call(void 0, );
691
+ const isSSR = _chunkNBDEMBBXcjs.__fictIsSSR.call(void 0, );
692
692
  const parent = isSSR ? container.startMarker.parentNode : getConnectedParent();
693
693
  if (!parent) return false;
694
694
  const start = () => {
695
- effectDispose = _chunkECKYFH5Qcjs.createRenderEffect.call(void 0, performDiff);
695
+ effectDispose = _chunkNBDEMBBXcjs.createRenderEffect.call(void 0, performDiff);
696
696
  effectStarted = true;
697
697
  };
698
698
  if (hostRoot) {
699
- const prev = _chunkECKYFH5Qcjs.pushRoot.call(void 0, hostRoot);
699
+ const prev = _chunkNBDEMBBXcjs.pushRoot.call(void 0, hostRoot);
700
700
  try {
701
701
  start();
702
702
  } finally {
703
- _chunkECKYFH5Qcjs.popRoot.call(void 0, prev);
703
+ _chunkNBDEMBBXcjs.popRoot.call(void 0, prev);
704
704
  }
705
705
  } else {
706
706
  start();
@@ -716,7 +716,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
716
716
  if (getConnectedParent()) {
717
717
  disconnectObserver();
718
718
  if (ensureEffectStarted()) {
719
- _chunkECKYFH5Qcjs.flush.call(void 0, );
719
+ _chunkNBDEMBBXcjs.flush.call(void 0, );
720
720
  }
721
721
  }
722
722
  });
@@ -756,7 +756,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
756
756
  if (disposed) return;
757
757
  scheduleStart();
758
758
  if (ensureEffectStarted()) {
759
- _chunkECKYFH5Qcjs.flush.call(void 0, );
759
+ _chunkNBDEMBBXcjs.flush.call(void 0, );
760
760
  } else {
761
761
  waitForConnection();
762
762
  }
@@ -776,4 +776,4 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
776
776
 
777
777
 
778
778
  exports.reconcileArrays = reconcileArrays; exports.moveNodesBefore = moveNodesBefore; exports.isNodeBetweenMarkers = isNodeBetweenMarkers; exports.createKeyedList = createKeyedList;
779
- //# sourceMappingURL=chunk-5FVWBK4M.cjs.map
779
+ //# sourceMappingURL=chunk-2J4INHDT.cjs.map