1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Shared selection-wire codec for the shell assets.
//
// The bulk selection lives in the form's hidden transport (`input[name="ids"]`),
// comma-delimited on both ends — `,a,b,`, empty when nothing is selected.
// `bulk.js` writes it, `mutation-submit.js` prunes it after a delete, so both
// read it through this one module: a change to the delimiter contract in one
// desyncs prune vs write. Delimiters make membership exact: `,ab,`
// never matches `b`.
//
// The document loads this before both consumers, which read the
// codec off the namespace below in the browser and `require` it in Node.
;