PageSourceSearch

https://juliandisalvoperez-tribe-v2-neural-activity-predictor.hf.space/assets/snippet-DVkMfmSq.js

js juliandisalvoperez-tribe-v2-neural-activity-predictor.hf.space collected 2026-10-03 17:00:32 UTC 895 bytes, 30 lines download raw bytes

1import { p as block, E as EFFECT_TRANSPARENT, D as DEV, q as invalid_snippet } from './index-CDZuCcOm.js';
2import { B as BranchManager } from './i18n-dpAHICcw.js';
3
4/** @import { Snippet } from 'svelte' */
5/** @import { TemplateNode } from '#client' */
6/** @import { Getters } from '#shared' */
7
8/**
9 * @template {(node: TemplateNode, ...args: any[]) => void} SnippetFn
10 * @param {TemplateNode} node
11 * @param {() => SnippetFn | null | undefined} get_snippet
12 * @param {(() => any)[]} args
13 * @returns {void}
14 */
15function snippet(node, get_snippet, ...args) {
16	var branches = new BranchManager(node);
17
18	block(() => {
19		const snippet = get_snippet() ?? null;
20
21		if (DEV && snippet == null) {
22			invalid_snippet();
23		}
24
25		branches.ensure(snippet, snippet && ((anchor) => snippet(anchor, ...args)));
26	}, EFFECT_TRANSPARENT);
27}
28
29export { snippet as s };
30//# sourceMappingURL=snippet-DVkMfmSq.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.