app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

check-output.mjs (228111B)


      1 import { execFileSync } from 'node:child_process';
      2 import { createHash } from 'node:crypto';
      3 import { isDeepStrictEqual } from 'node:util';
      4 import { constants } from 'node:fs';
      5 import { lstat, open, opendir, realpath } from 'node:fs/promises';
      6 import path from 'node:path';
      7 import { fileURLToPath } from 'node:url';
      8 import { deriveBuildInfo } from './build-info.mjs';
      9 import ts from 'typescript';
     10 import { parse as parseSvelte } from 'svelte/compiler';
     11 
     12 /** @param {unknown} actual @param {unknown} expected @param {string} [message] */
     13 function equal(actual, expected, message = 'Invalid public output shape') {
     14   if (!isDeepStrictEqual(actual, expected)) throw new Error(message);
     15 }
     16 /** @param {string} text */
     17 function parse(text) {
     18   try {
     19     return JSON.parse(text);
     20   } catch {
     21     throw new Error('Invalid static JSON');
     22   }
     23 }
     24 const maxBytes = 8 * 1024 * 1024;
     25 /** @param {string} name */
     26 function safeName(name) {
     27   if (
     28     !name ||
     29     name.includes('\\') ||
     30     name.split('/').some((part) => !part || part === '.' || part === '..') ||
     31     [...name].some(
     32       (character) =>
     33         character.charCodeAt(0) < 32 || character.charCodeAt(0) === 127
     34     )
     35   )
     36     throw new Error('Unsafe output path');
     37 }
     38 /** @param {string} root @param {string} name */
     39 async function readOwned(root, name) {
     40   safeName(name);
     41   const parts = name.split('/');
     42   let file = root;
     43   for (let i = 0; i < parts.length; i++) {
     44     file = path.join(file, parts[i]);
     45     const stat = await lstat(file);
     46     if (
     47       i < parts.length - 1
     48         ? !stat.isDirectory()
     49         : !stat.isFile() ||
     50           stat.nlink !== 1 ||
     51           Boolean(stat.mode & 0o111) ||
     52           stat.size > maxBytes
     53     )
     54       throw new Error('Unsafe output entry');
     55   }
     56   if ((await realpath(file)) !== file)
     57     throw new Error('Unsafe output ancestry');
     58   const handle = await open(
     59     file,
     60     constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK
     61   );
     62   try {
     63     const stat = await handle.stat();
     64     if (
     65       !stat.isFile() ||
     66       stat.nlink !== 1 ||
     67       Boolean(stat.mode & 0o111) ||
     68       stat.size > maxBytes
     69     )
     70       throw new Error('Unsafe output entry');
     71     const chunks = [];
     72     let size = 0;
     73     const buffer = Buffer.alloc(64 * 1024);
     74     for (;;) {
     75       const { bytesRead } = await handle.read(buffer);
     76       if (!bytesRead) break;
     77       size += bytesRead;
     78       if (size > maxBytes) throw new Error('Oversized output entry');
     79       chunks.push(Buffer.from(buffer.subarray(0, bytesRead)));
     80     }
     81     return Buffer.concat(chunks);
     82   } finally {
     83     await handle.close();
     84   }
     85 }
     86 /** @param {string} root */
     87 async function inventory(root) {
     88   if (!(await lstat(root)).isDirectory() || (await realpath(root)) !== root)
     89     throw new Error('Unsafe output root');
     90   const files = new Map();
     91   let entries = 0;
     92   let total = 0;
     93   /** @param {string} prefix */
     94   async function walk(prefix) {
     95     let childCount = 0;
     96     for await (const entry of await opendir(path.join(root, prefix))) {
     97       childCount++;
     98       if (++entries > 512) throw new Error('Unbounded output inventory');
     99       const name = prefix ? `${prefix}/${entry.name}` : entry.name;
    100       safeName(name);
    101       if (name.split('/').length > 8) throw new Error('Unbounded output depth');
    102       const stat = await lstat(path.join(root, name));
    103       if (stat.isDirectory()) {
    104         await walk(name);
    105       } else {
    106         const bytes = await readOwned(root, name);
    107         total += bytes.length;
    108         if (total > 32 * 1024 * 1024) throw new Error('Unbounded output bytes');
    109         files.set(name, bytes);
    110       }
    111     }
    112     if (prefix && !childCount)
    113       throw new Error('Undeclared empty output directory');
    114   }
    115   await walk('');
    116   return files;
    117 }
    118 /** @param {Uint8Array} bytes */
    119 function publicText(bytes) {
    120   const buffer = Buffer.from(bytes);
    121   // Controlled binary/container/database signatures, irrespective of filename.
    122   const magic = [
    123     '7f454c46',
    124     'cffaedfe',
    125     'cefaedfe',
    126     'feedfacf',
    127     'feedface',
    128     'cafebabe',
    129     'bebafeca',
    130     '504b0304',
    131     '504b0506',
    132     '1f8b',
    133     '0061736d'
    134   ];
    135   if (
    136     magic.some(
    137       (hex) => buffer.subarray(0, hex.length / 2).toString('hex') === hex
    138     ) ||
    139     buffer.subarray(0, 2).toString() === 'MZ' ||
    140     buffer.subarray(0, 16).toString() === 'SQLite format 3\0'
    141   )
    142     throw new Error('Static binary contamination');
    143   const text = new TextDecoder('utf-8', { fatal: true }).decode(bytes);
    144   if (
    145     [...text].some((character) => {
    146       const code = character.charCodeAt(0);
    147       return code < 32 && ![9, 10, 13].includes(code);
    148     })
    149   )
    150     throw new Error('Invalid static text');
    151   // These are bounded contamination controls, not an arbitrary-secret scanner.
    152   if (
    153     /UniFFI|HC_TEST_ONLY_SECRET|nsec1[023456789acdefghjklmnpqrstuvwxyz]{20,}|-----BEGIN (?:[A-Z ]*PRIVATE KEY|OPENSSH)|private[_ -]transcript|TestSigner|test[_ -]provider|createRelayHarness|createStaticHarness|installControlledProvider|sourceMappingURL|radroots\.lib\.source-lock|core\/Cargo\.lock|docs\/oss\/harvestcircle|HARVESTCIRCLE_SECRET/i.test(
    154       text
    155     )
    156   )
    157     throw new Error('Static controlled contamination');
    158   return text;
    159 }
    160 /** @param {unknown} value @param {string[]} keys */
    161 function objectKeys(value, keys) {
    162   if (!value || typeof value !== 'object' || Array.isArray(value))
    163     throw new Error('Invalid compiler object');
    164   if (Object.keys(value).some((key) => !keys.includes(key)))
    165     throw new Error('Unknown compiler field');
    166 }
    167 const sdkNegentropy =
    168   'node_modules/.pnpm/applesauce-relay@6.2.1_typescript@6.0.3/node_modules/applesauce-relay/dist/negentropy.js';
    169 // Keep every root byte except ordinary trailing instance-script trivia. This
    170 // preserves the owned reader-boundary positive without erasing annotations,
    171 // changing executable source, or normalizing the template or script attributes.
    172 /** @param {Buffer} bytes */
    173 export function publicHideRootIdentity(bytes) {
    174   const layout = publicText(bytes);
    175   const component = parseSvelte(layout);
    176   if (!component.instance || component.module)
    177     throw new Error('Invalid owned root runtime activation');
    178   const { start, end } = component.instance.content;
    179   const script = layout.slice(start, end);
    180   const source = ts.createSourceFile(
    181     'root.ts',
    182     script,
    183     ts.ScriptTarget.Latest,
    184     true,
    185     ts.ScriptKind.TS
    186   );
    187   /** @type {unknown} */
    188   const diagnostics = Reflect.get(source, 'parseDiagnostics');
    189   if (
    190     !Array.isArray(diagnostics) ||
    191     diagnostics.length ||
    192     !source.statements.length
    193   )
    194     throw new Error('Invalid owned root runtime activation');
    195   const last = source.statements[source.statements.length - 1].end;
    196   const scanner = ts.createScanner(
    197     ts.ScriptTarget.Latest,
    198     false,
    199     ts.LanguageVariant.Standard,
    200     script.slice(last)
    201   );
    202   for (
    203     let token = scanner.scan();
    204     token !== ts.SyntaxKind.EndOfFileToken;
    205     token = scanner.scan()
    206   ) {
    207     if (
    208       token === ts.SyntaxKind.WhitespaceTrivia ||
    209       token === ts.SyntaxKind.NewLineTrivia
    210     )
    211       continue;
    212     if (
    213       token !== ts.SyntaxKind.MultiLineCommentTrivia ||
    214       !scanner.getTokenText().endsWith('*/') ||
    215       /[@#<]|PURE|NO_SIDE_EFFECTS|vite|webpack|sourceMappingURL|sourceURL/.test(
    216         scanner.getTokenText()
    217       )
    218     )
    219       throw new Error('Invalid owned root runtime activation');
    220   }
    221   return createHash('sha256')
    222     .update(
    223       JSON.stringify([
    224         layout.slice(0, start),
    225         script.slice(0, last),
    226         layout.slice(end)
    227       ])
    228     )
    229     .digest('hex');
    230 }
    231 // Compiler admission follows actual root bindings, never copied files or text
    232 // matches. This is the deliberately fixed lifecycle shape owned by HCP032.
    233 /** @param {string} web */
    234 async function operationalFlagsAdmission(web) {
    235   const shell = publicText(
    236     await readOwned(web, 'src/lib/components/AppShell.svelte')
    237   );
    238   if (!shell.includes('../runtime/capabilities.ts')) return false;
    239   /** @type {Record<string,string>} */
    240   const producers = {
    241     'src/lib/messaging/inbox-access-check.ts':
    242       '4245812c94b80ef39a1107d6c5c65b8d5775bedc9d5762db802e79a8d4d63c83',
    243     // Exact previous AccountGate remains compatibility history; the only
    244     // current alternative changes its obsolete condition copy below.
    245     'src/lib/components/AccountGate.svelte':
    246       '642925e1819628263810dd42624e97cadf29818f84a42ef49a86ad1f196888ca',
    247     'src/lib/catalog/observations.ts':
    248       '7386470e698156f2480de1d6c9fcffacab507f97d2f4006df926db467327120c',
    249     'src/lib/catalog/product-view.ts':
    250       '3558230c9f7cd17666e27c032de4ba6f30d2fb6b4d54149a69e5b8f5dc5d5363',
    251     'src/lib/catalog/search-run.ts':
    252       '213a58cf897456a0dc0e99e46594cba013952ff08212802fb471f0d323c38573',
    253     'src/lib/catalog/search-view.ts':
    254       'bc4d0160574084a547d54d5ca582b15382f44d4649c255743ebdb4c8b398f795',
    255     'src/lib/components/AppShell.svelte':
    256       '90430e0503f2c1f2e22a4cf55ca6ec56985d1f2a15e17f13bcc6ccd5036f31e0',
    257     'src/lib/components/ConfirmPanel.svelte':
    258       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
    259     'src/lib/components/ConflictNotice.svelte':
    260       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
    261     'src/lib/components/ConversationOptions.svelte':
    262       '032a5f49d19a43a8ee88495b92d5337f1bb2de5dc58bb600b579e1423c9dfab1',
    263     'src/lib/components/ConversationRow.svelte':
    264       'c5d0926ac9cdda18a6befe365227dfe62405f71598f59964ff36af9a0e85d743',
    265     'src/lib/components/ConversationThread.svelte':
    266       '07d7421ca00f5f0c6e68b38b790f863ca5c0d01de6567ac3875ef719b83462f4',
    267     'src/lib/components/InboxStatus.svelte':
    268       'a1015aac1d6c9ebb7a54bd5746e4cbcb4b93e376a30a2cbd7f7df212713fc930',
    269     'src/lib/components/ListingEditor.svelte':
    270       '593c28fbce8b010d57ee6e79f11fdbeeba07787f20d868ad83024349a4d8a9f5',
    271     'src/lib/components/ListingReview.svelte':
    272       'deee41ca6c60b346afc7ed5e62e3101ee03b04fdd2a9aa8fa3f3dec585e3863b',
    273     'src/lib/components/LocalDataReview.svelte':
    274       '63b259ed2c7daa552a6c54665da74f45275ec45c60b415207a008a4ac1aa5b37',
    275     'src/lib/components/MessageComposer.svelte':
    276       'c3ab09ae9a2dc5ac8268cc45218140c5480dcb9bcf8b8bce54d2ae35ffdb2d14',
    277     'src/lib/components/MessageItem.svelte':
    278       '5c9af10ece18deeddd85e11453239c2a0b8e741cb84529e15c4ad87864704517',
    279     'src/lib/components/OperationStatus.svelte':
    280       'ca3a007899996f6331fadd2ead4c55dc7116c273626ecd2f36bcd4701065ae5f',
    281     'src/lib/components/PublisherHide.svelte':
    282       '0fa30a68b44e9de68c3bb1edc9ed2c7fedefc2dc8a916c0a1df1f15440248927',
    283     'src/lib/components/ReportPreview.svelte':
    284       'fe133c95d640d3fa306667c613940a81783ce821471f70394671bb474c96d767',
    285     'src/lib/components/SellingRow.svelte':
    286       'ce00de1bd033860b9c0a85a49c90c8a4d5b8a8223cfd5c0872572e548e79331d',
    287     'src/lib/components/SupportLink.svelte':
    288       'c8608221416a47055c6b0aabe7a9d8370d3bc26e3fcd3c65214275d99ea1927e',
    289     'src/lib/config/budgets.ts':
    290       'e61806f1c2b580340e862b8dc7dd8063e90f74e03c64c721a7d112b0872f935d',
    291     'src/lib/config/deployment-relays.ts':
    292       '14443151ff819a11a4f9c71e4ff756d1fbdd7cf6c36242ac712c378e68583aa2',
    293     'src/lib/config/deployment-support.ts':
    294       'c698313143943749bb457674825b648f6af29477f07cae960f3435c035cd6bd8',
    295     'src/lib/config/operation-flags.ts':
    296       'd5e0ce74a17de7a06100dcc75886616655fbd398c657027e7d6990d97aa8a0c1',
    297     'src/lib/config/inbox-operators.ts':
    298       '52a4a739bf7434e3dea529858456ab49bbbbd517de789dac7f6407b687e5c07a',
    299     'src/lib/config/relays.ts':
    300       'ca8c63df89509728a7b87e65232f1da751621ed4777993a079730472a0923957',
    301     'src/lib/config/support.ts':
    302       'a5b4c179db6f13ebf85081960e2f7c330c3e894666fbf8f0472edb1c5c818872',
    303     'src/lib/contracts/local-records.ts':
    304       '04ddd51339a439665a94d4a4de7b23c2257d4a673873a672d4427e9764d21f3f',
    305     'src/lib/contracts/public-key.ts':
    306       'd36d4001c2f4835e24d50f00460a35c9cf9fa6b86cc3b4a6937d8b4e10afdeb9',
    307     'src/lib/messaging/admit-conversation.ts':
    308       '1ad085aa530beeabbc9488676e77cf7cd0901e61e7705471f79a47bb1df70cf1',
    309     'src/lib/nostr/incoming-wire.ts':
    310       'd471dde674b31a62961bb6fcb503cd9e54791d83c7afdaabcb74686cc78a3723',
    311     'src/lib/messaging/cited-product.ts':
    312       'bed076c0902f6453971f88f107766c331b5737e488cb8c3c5f6c941e3428778d',
    313     'src/lib/messaging/conversation-thread.ts':
    314       '7367f0e6d96a9f249514f66c2459274e856eb83462523e37264d4cd97d2e36d1',
    315     'src/lib/messaging/decryption-queue.ts':
    316       'be704e6cbe777722c3eb80ec9843f00afd7bac8c52af0c2af7294f2437414553',
    317     'src/lib/messaging/inbox-list.ts':
    318       '9cc82877bfa8dbb2a7fa41bceb842793349416271f19569f49fdd5cfc1de07e5',
    319     'src/lib/messaging/inbox-setup-operation.ts':
    320       '245c6ce88b146dc731e7ace4f16dc9b5002a87a997f5568e4811b0c4a2daf035',
    321     'src/lib/nostr/self-recovery-reader.ts':
    322       'e6bd782a80dedc2b8b0e5650f717af3e9516c4e66d15f2361b73adcb2763a3d5',
    323     'src/lib/nostr/private-publisher.ts':
    324       'f79623b5a9561358a2d75ff1bdd15c7d85c723d3f0007a8edb17d7b56eaa8310',
    325     'src/lib/nostr/private-pool.ts':
    326       '2ed123596f26bedb8aab5ec7694be6e264616429e00f745f1614c83f52de9825',
    327     'src/lib/nostr/inbox-ingress.ts':
    328       'dab2e6be2e10c1194008957a7015d22907f08201f95c5f4824ace4b98c1b89c2',
    329     'src/lib/persistence/inbox-probes.ts':
    330       '2e623973b9885ef20a85ee10229c634251719931afc20e05b118b5e9748a2ba3',
    331     'src/lib/persistence/inbox-probe-cleanup.ts':
    332       'bfc24be3530471cccd01d387ed2b38a6534eb6493ce850ba9711cc3cfa77e6d9',
    333     'src/lib/messaging/inbox-access-qualification.ts':
    334       '769e849796486f6845850a2215775bdfb4d37df4758d52261da38709cdd445d5',
    335     'src/lib/nostr/inbox-access.ts':
    336       '2d9ba6c6ef1e11a1296ab377fd35c4b3e6fdff22de3f97cc85cfe0fc15baa015',
    337     'src/lib/nostr/seal-builder.ts':
    338       '3ccc967cc348e63857243ff6f0302c1a68da2afe85ca2c37e00d5a894785fc53',
    339     'src/lib/nostr/giftwrap-builder.ts':
    340       'faf54dd80a0995ac94b4b994d3cfd015516e5e201a1fbb6340e13c836ce49e98',
    341     'src/lib/messaging/inbox-access-controller.ts':
    342       '5b8ecea98a087f6038f8e0d782f0028a5c899bdf756445b725f1da5761d8bc98',
    343     'src/lib/messaging/inbox-setup-view.ts':
    344       'e85238d20f1bbcb23599b36e67910f3df784efa43f0fa0b0b7f3da7e7fd33c79',
    345     'src/lib/messaging/inbox-setup.ts':
    346       '7a935d8542ff8f64287d2b441a8a458d299dea4ed88beecda39cb1637dd4a9ac',
    347     'src/lib/messaging/inbox-sync.ts':
    348       '1a161fc95756ce2ae8fe7fceb5906d502f84cb1ae32834bb16791c408e1a775a',
    349     'src/lib/messaging/inbox-view.ts':
    350       '6871707ae7395d3679856a01e87c7d8f273848e0b9ef0dc7b94f450d8417528c',
    351     'src/lib/messaging/product-request-controller.ts':
    352       'e1fab3a2bfb910c1d8b798628cf4799cd1f7e72f1d80ebc2a67e73730b6f3940',
    353     'src/lib/messaging/reply-controller.ts':
    354       '8d2612b4788211b35ee8d56caa389bb88a53268bbba71407ee787c9dc23ee8a6',
    355     'src/lib/messaging/rumor-plan.ts':
    356       'b622889e96f911501524cd86f9fca9f2207ce853767494fb30799b00ae8275ed',
    357     'src/lib/persistence/private-send-reservations.ts':
    358       '5a57522fdb5acabecf836fb8d642a2adfb4bc7e041843b38fd1b96b673b3942d',
    359     'src/lib/messaging/send-identity.ts':
    360       'cc840afbf155e18030bea9b475884ca3e0068b79ef3da1459b661fe2822499df',
    361     'src/lib/messaging/unlocked-session.ts':
    362       'b7ecc1acea5ed210b39cfe9ec82b3d02c75f6092c5c31dd3e0f79946b319ef4e',
    363     'src/lib/navigation-url.ts':
    364       '4ce96334d7cf57ccba518132078278b71d3bf70f519202e491a5f6a8840f7b19',
    365     'src/lib/nostr/enquiry-references.ts':
    366       'a17175337ee53279f898a7c6fa1af7e77ad26c0d2c0da46f26a9766fa701d365',
    367     'src/lib/nostr/envelope-bounds.ts':
    368       'b1e1d4a0d0673f358321c978726747ddaba3ebf94dd65e67adac408bb6574dae',
    369     'src/lib/nostr/exports.ts':
    370       '683fc933fadc515bd9999ddd337d85b408e0ad4fe891832f2825c35ffbe26f89',
    371     'src/lib/nostr/inbox-preference-publication.ts':
    372       '032e40d12ecd3a55a973edb8a8b8c7c2a9c7a791425dc5e7d56aab4b0ea4c4bb',
    373     'src/lib/nostr/ingress.ts':
    374       'c433d459ad650c1fa9aa81aca24ddfaad8c251de9e43f92502e83fd5b673e772',
    375     'src/lib/nostr/listing-publisher.ts':
    376       '43a61caa6e308e15608ace5337086ef5eb5cee2c1191fe73de99405be159cfb0',
    377     'src/lib/nostr/public-pool.ts':
    378       '220b0b9ca0cea20c1a2e1a08a82fc4b68a1ba4dd6ffff1f45154b54735233806',
    379     'src/lib/nostr/public-store.ts':
    380       '330f7599f601956ed44795df1e016945e3564bbb7da6491c48f628d407de3d14',
    381     'src/lib/nostr/request-result.ts':
    382       '9bed0e13f94d38c3db471c0e750ef18d685776cb8832fedf7ddb7f92f663c2ac',
    383     'src/lib/nostr/request-scope.ts':
    384       'c6aa1005264e8ded37870c95f937d891afe67b8e07ef62dd137097c4ebb2388b',
    385     'src/lib/nostr/verified-envelope.ts':
    386       '01eb6224ece812fcafed5203c2cd117058a3d45cb8a2175b370e8cd74cdc0f77',
    387     'src/lib/persistence/artifact-records.ts':
    388       'e3b235c5aaf19558b557feb6e17a35b2b1de39c1aa49cb2ef14084d670138d16',
    389     'src/lib/persistence/database.ts':
    390       'd37d53378f531de376fb6d1b307b9b99e54736299a04eff56a66b4036261e170',
    391     'src/lib/persistence/inbox-retention.ts':
    392       '8bcc73be03321e60a6fbbe7ba58de14eb8fb34db5d5cdce0adee31b5467d7bb9',
    393     'src/lib/persistence/local-data-review.ts':
    394       '90379b183d0a1d8885076fbfc593d7c9ac1e351b16ce7800890107014e5cb0e4',
    395     'src/lib/persistence/inbox-envelope-repository.ts':
    396       'beb7eeef35be8b81ff03c9080e780528e37f1cd5c0be4f7b32575b1e60994bd3',
    397     'src/lib/persistence/history-metadata-repository.ts':
    398       'afe4656e59bd6b365444fbda64fe6572ffa4c5323c474ee862e3cf19252b6f6d',
    399     'src/lib/messaging/history-pagination.ts':
    400       '25218db4f7048311156b730634874108c1f224ca1dc80aa7041743fbaf6c3919',
    401     'src/lib/persistence/private-outbox-cleanup.ts':
    402       '13f4e7d771b3a8d4ec7703f2026a1c8ff71582a2d2a810b9d402d58684b2e2b6',
    403     'src/lib/persistence/local-inventory.ts':
    404       'cd44ed47548453f0443400894c57c364b544781c028c4dba6e9fa096034c5965',
    405     'src/lib/persistence/local-private-blocks.ts':
    406       'd7e76c1122ff5479f261293db458a3240438ce0471c788c2f07ffaf854449cbc',
    407     'src/lib/persistence/local-public-hides.ts':
    408       '4f0e64ed0fabbe9f86014a0512e7dbd3c81711f28ca2c626e2dafa5cda349f83',
    409     'src/lib/persistence/private-records.ts':
    410       '821ef96740cf644bff4ffe5c7816c6aa097aa419bd16b8b301809b963294dafe',
    411     'src/lib/persistence/private-sends.ts':
    412       '6696f4179370cad373c06debf57b919598d53b3d25b6d2a6054a557608e4eb9c',
    413     'src/lib/persistence/private-storage.ts':
    414       '9cdac5a1f00678d83bdf4a9b7bfb7c8bd04dc234afb140fc19e0156ad4a064a3',
    415     'src/lib/persistence/public-publications.ts':
    416       'be99c4114fb32880e0a9b48ab3593645532853fb4166fb506f398416db41a194',
    417     'src/lib/persistence/public-receipts.ts':
    418       '10743a9d855c4f573eb42ca90a13c550dee9620e4ad3aac322858c696152e564',
    419     'src/lib/persistence/quota.ts':
    420       'd82858b3de51ddb55466eedb980f37ebe3f70db6c36d0abe5f39feed30d441fc',
    421     'src/lib/publishing/edit-source.ts':
    422       '1432a8ada3d822cc9f634d40a7847a4d6d02c202ecfe59a9634543d57202f56b',
    423     'src/lib/publishing/editor-workflow.ts':
    424       'c87e4f46793fd9beeedb5027cdbb06d533cf7e5df7378c030355c4608738e0f6',
    425     'src/lib/publishing/listing-editor.ts':
    426       'fe067bc1609f783aeee8ad5a0f3178cff50cae81085377b2bbec7874b5f4349d',
    427     'src/lib/publishing/listing-operation-view.ts':
    428       '07f94625c0231a62f25c1db98c9459f8939c32505453633b58d2f72a894858ce',
    429     'src/lib/publishing/mark-sold.ts':
    430       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
    431     'src/lib/publishing/new-listing-readiness.ts':
    432       'ba76be4d7309b1a6beb0c8e0f19b89f2595049e94709486b79eff38953e68893',
    433     'src/lib/publishing/prepare-listing.ts':
    434       '70cbd7ba19222bed0a1584961eace7d21cefded1659e2597d813bfdf0ee25c76',
    435     'src/lib/publishing/resume-listing.ts':
    436       'cf33ef15c3c7bee3ac2095bf50db4d93f0d4a3c505e944be9dfa10c79bca89c9',
    437     'src/lib/publishing/revise-listing.ts':
    438       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
    439     'src/lib/publishing/selling-view.ts':
    440       '7d1f07c5b128512d3ed19a73409f1c64ada9988d77ac9bf60799352261797f5b',
    441     'src/lib/publishing/sign-listing.ts':
    442       'a1c123c40a190699b57378c5569fcbbfbc5e23ab4d4c0df499ca40ff82fe1a10',
    443     'src/lib/publishing/withdraw-listing.ts':
    444       '168064a7ce271f8342c7b7cbbf996bd96f8968e405eee0bb3e3dba1bdaf346fb',
    445     'src/lib/runtime/capabilities.ts':
    446       '55a3dffc6b4b58fd96a91820c9a26a6ac951864d12ed269d8708cf61d446799f',
    447     'src/lib/runtime/effect-ownership.ts':
    448       'a181d1fa8b18d45b3e143de19af4dfdaab91779ac44df972d22e7fada645778b',
    449     'src/lib/runtime/identity-session.ts':
    450       '7d665f6872bdc780f1f2b56245730adcc90f32cf1fed6997f7e2e44ea2447b49',
    451     'src/lib/runtime/private-session.ts':
    452       'ecffe8a4a735478669f46e666e96add6d4b32c615e3741fcc2277a07ca2ef6c3',
    453     'src/lib/runtime/public-runtime.ts':
    454       '679aa4cd51a1dfdc81459bdfccb29441ac60edfa8b1ddd579425787c85b5cff4',
    455     'src/lib/runtime/view-context.ts':
    456       'e2329113e29db35e983270217c47d38a44d4e0491fd710395e008786b5ae7033',
    457     'src/lib/support/report.ts':
    458       'd02ebbfa82cf415c1af192f691b5464fbbc51f898207263bf1422f049a5d9dec',
    459     'src/routes/+layout.svelte':
    460       'b013d2d2bba40ee894c122fbb352dc78110e35ad17ec7ebb830a4556d3204ff7',
    461     'src/routes/about/+page.svelte':
    462       'b89a886622bfaee20dc0bf3b8cb3f84bbdc94df249d746d690da4cf81619fcba',
    463     'src/routes/messages/+page.svelte':
    464       '8279a92770f38858e197e790839bc98b4d7889214ebecdf47e542d632afbc84f',
    465     'src/routes/messages/[conversationId=local_id]/+page.svelte':
    466       'b06c6189adee80b68bc6657fa0e8504551fe9a8b1655a6d81807ebee9930a5e7',
    467     'src/routes/privacy/+page.svelte':
    468       'c6fdaeea02196067c111e839ec2d8ea3ba4bf21b81dbe23a2cad5ae9503aad44',
    469     'src/routes/products/[naddr=naddr]/+page.svelte':
    470       '5f325300384e2156724f3f7ac3fa8512ac6b6090d11aef9e8e53f6aea9c51665',
    471     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
    472       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
    473     'src/routes/sell/+page.svelte':
    474       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
    475     'src/routes/selling/+page.svelte':
    476       '65d982bdf3f625a38b6c886a31a2a699c92e9231636debc16d501e78d7c8faa0',
    477     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
    478       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787'
    479   };
    480   for (const [name, pin] of Object.entries(producers)) {
    481     const bytes = await readOwned(web, name);
    482     publicText(bytes);
    483     const identity =
    484       name === 'src/routes/+layout.svelte'
    485         ? publicHideRootIdentity(bytes)
    486         : createHash('sha256').update(bytes).digest('hex');
    487     if (
    488       identity !== pin &&
    489       !(
    490         name === 'src/lib/components/AccountGate.svelte' &&
    491         identity ===
    492           '95c04e52fdc7c706c84af9d8d842a1b19db2a0ba2e0f5f04e5b68c7d95be1ab0'
    493       ) &&
    494       !(
    495         name === 'src/routes/products/[naddr=naddr]/+page.svelte' &&
    496         identity ===
    497           '10d98f1a306cfe216b57d6b990254335a7b21a8c42e558a54b2d471c49858069'
    498       ) &&
    499       !(
    500         name === 'src/routes/about/+page.svelte' &&
    501         identity ===
    502           '0f091601ef33ea7fbb1b233a26608427e71cc670cfe654fd04ff37d218b2e47f'
    503       ) &&
    504       !(
    505         name === 'src/routes/privacy/+page.svelte' &&
    506         identity ===
    507           'aed875eb72755c1a46c30c63f0a4c7266b30029279227bf6c2604305d2cfa318'
    508       )
    509     )
    510       throw new Error(
    511         name === 'src/routes/+layout.svelte'
    512           ? 'Invalid owned root runtime activation'
    513           : 'Invalid owned operational flags source'
    514       );
    515   }
    516   return true;
    517 }
    518 /** @param {string} web */
    519 async function privacyDataAdmission(web) {
    520   if (await operationalFlagsAdmission(web)) return true;
    521   let privacy;
    522   try {
    523     privacy = publicText(
    524       await readOwned(web, 'src/routes/privacy/+page.svelte')
    525     );
    526   } catch (error) {
    527     if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
    528       return false;
    529     throw error;
    530   }
    531   if (!privacy.includes('../../lib/components/LocalDataReview.svelte'))
    532     return false;
    533   /** @type {Record<string,string>} */
    534   const producers = {
    535     'src/lib/messaging/inbox-access-check.ts':
    536       '4245812c94b80ef39a1107d6c5c65b8d5775bedc9d5762db802e79a8d4d63c83',
    537     'src/lib/catalog/observations.ts':
    538       '7386470e698156f2480de1d6c9fcffacab507f97d2f4006df926db467327120c',
    539     'src/lib/catalog/product-view.ts':
    540       '3558230c9f7cd17666e27c032de4ba6f30d2fb6b4d54149a69e5b8f5dc5d5363',
    541     'src/lib/catalog/search-run.ts':
    542       '213a58cf897456a0dc0e99e46594cba013952ff08212802fb471f0d323c38573',
    543     'src/lib/catalog/search-view.ts':
    544       'bc4d0160574084a547d54d5ca582b15382f44d4649c255743ebdb4c8b398f795',
    545     'src/lib/components/ConfirmPanel.svelte':
    546       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
    547     'src/lib/components/ConflictNotice.svelte':
    548       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
    549     'src/lib/components/ConversationOptions.svelte':
    550       '032a5f49d19a43a8ee88495b92d5337f1bb2de5dc58bb600b579e1423c9dfab1',
    551     'src/lib/components/ConversationRow.svelte':
    552       'c5d0926ac9cdda18a6befe365227dfe62405f71598f59964ff36af9a0e85d743',
    553     'src/lib/components/ConversationThread.svelte':
    554       '07d7421ca00f5f0c6e68b38b790f863ca5c0d01de6567ac3875ef719b83462f4',
    555     'src/lib/components/InboxStatus.svelte':
    556       'a1015aac1d6c9ebb7a54bd5746e4cbcb4b93e376a30a2cbd7f7df212713fc930',
    557     'src/lib/components/ListingEditor.svelte':
    558       '060f4863f6f4f2a4fb1471bb0d5eeedf31ab13b5c83d894f47757cf5a68099e6',
    559     'src/lib/components/ListingReview.svelte':
    560       'deee41ca6c60b346afc7ed5e62e3101ee03b04fdd2a9aa8fa3f3dec585e3863b',
    561     'src/lib/components/LocalDataReview.svelte':
    562       '63b259ed2c7daa552a6c54665da74f45275ec45c60b415207a008a4ac1aa5b37',
    563     'src/lib/components/MessageComposer.svelte':
    564       'bc8ac0e2123b60957f1c289acbb2b8740e171097029f640f657cd79f5aa8423b',
    565     'src/lib/components/MessageItem.svelte':
    566       '5c9af10ece18deeddd85e11453239c2a0b8e741cb84529e15c4ad87864704517',
    567     'src/lib/components/OperationStatus.svelte':
    568       'ca3a007899996f6331fadd2ead4c55dc7116c273626ecd2f36bcd4701065ae5f',
    569     'src/lib/components/PublisherHide.svelte':
    570       '0fa30a68b44e9de68c3bb1edc9ed2c7fedefc2dc8a916c0a1df1f15440248927',
    571     'src/lib/components/ReportPreview.svelte':
    572       'fe133c95d640d3fa306667c613940a81783ce821471f70394671bb474c96d767',
    573     'src/lib/components/SellingRow.svelte':
    574       'ce00de1bd033860b9c0a85a49c90c8a4d5b8a8223cfd5c0872572e548e79331d',
    575     'src/lib/components/SupportLink.svelte':
    576       'c8608221416a47055c6b0aabe7a9d8370d3bc26e3fcd3c65214275d99ea1927e',
    577     'src/lib/config/budgets.ts':
    578       'e61806f1c2b580340e862b8dc7dd8063e90f74e03c64c721a7d112b0872f935d',
    579     'src/lib/config/deployment-relays.ts':
    580       '14443151ff819a11a4f9c71e4ff756d1fbdd7cf6c36242ac712c378e68583aa2',
    581     'src/lib/config/deployment-support.ts':
    582       'c698313143943749bb457674825b648f6af29477f07cae960f3435c035cd6bd8',
    583     'src/lib/config/inbox-operators.ts':
    584       '52a4a739bf7434e3dea529858456ab49bbbbd517de789dac7f6407b687e5c07a',
    585     'src/lib/config/relays.ts':
    586       'ca8c63df89509728a7b87e65232f1da751621ed4777993a079730472a0923957',
    587     'src/lib/config/support.ts':
    588       'a5b4c179db6f13ebf85081960e2f7c330c3e894666fbf8f0472edb1c5c818872',
    589     'src/lib/contracts/local-records.ts':
    590       '04ddd51339a439665a94d4a4de7b23c2257d4a673873a672d4427e9764d21f3f',
    591     'src/lib/contracts/public-key.ts':
    592       'd36d4001c2f4835e24d50f00460a35c9cf9fa6b86cc3b4a6937d8b4e10afdeb9',
    593     'src/lib/messaging/admit-conversation.ts':
    594       '1ad085aa530beeabbc9488676e77cf7cd0901e61e7705471f79a47bb1df70cf1',
    595     'src/lib/nostr/incoming-wire.ts':
    596       'd471dde674b31a62961bb6fcb503cd9e54791d83c7afdaabcb74686cc78a3723',
    597     'src/lib/messaging/cited-product.ts':
    598       'bed076c0902f6453971f88f107766c331b5737e488cb8c3c5f6c941e3428778d',
    599     'src/lib/messaging/conversation-thread.ts':
    600       '7367f0e6d96a9f249514f66c2459274e856eb83462523e37264d4cd97d2e36d1',
    601     'src/lib/messaging/decryption-queue.ts':
    602       'be704e6cbe777722c3eb80ec9843f00afd7bac8c52af0c2af7294f2437414553',
    603     'src/lib/messaging/inbox-list.ts':
    604       '9cc82877bfa8dbb2a7fa41bceb842793349416271f19569f49fdd5cfc1de07e5',
    605     'src/lib/nostr/self-recovery-reader.ts':
    606       'e6bd782a80dedc2b8b0e5650f717af3e9516c4e66d15f2361b73adcb2763a3d5',
    607     'src/lib/nostr/private-publisher.ts':
    608       'f79623b5a9561358a2d75ff1bdd15c7d85c723d3f0007a8edb17d7b56eaa8310',
    609     'src/lib/nostr/private-pool.ts':
    610       '2ed123596f26bedb8aab5ec7694be6e264616429e00f745f1614c83f52de9825',
    611     'src/lib/nostr/inbox-ingress.ts':
    612       'dab2e6be2e10c1194008957a7015d22907f08201f95c5f4824ace4b98c1b89c2',
    613     'src/lib/persistence/inbox-probes.ts':
    614       '2e623973b9885ef20a85ee10229c634251719931afc20e05b118b5e9748a2ba3',
    615     'src/lib/persistence/inbox-probe-cleanup.ts':
    616       'bfc24be3530471cccd01d387ed2b38a6534eb6493ce850ba9711cc3cfa77e6d9',
    617     'src/lib/messaging/inbox-access-qualification.ts':
    618       '769e849796486f6845850a2215775bdfb4d37df4758d52261da38709cdd445d5',
    619     'src/lib/nostr/inbox-access.ts':
    620       '2d9ba6c6ef1e11a1296ab377fd35c4b3e6fdff22de3f97cc85cfe0fc15baa015',
    621     'src/lib/nostr/seal-builder.ts':
    622       '3ccc967cc348e63857243ff6f0302c1a68da2afe85ca2c37e00d5a894785fc53',
    623     'src/lib/nostr/giftwrap-builder.ts':
    624       'faf54dd80a0995ac94b4b994d3cfd015516e5e201a1fbb6340e13c836ce49e98',
    625     'src/lib/messaging/inbox-access-controller.ts':
    626       '5b8ecea98a087f6038f8e0d782f0028a5c899bdf756445b725f1da5761d8bc98',
    627     'src/lib/messaging/inbox-setup-view.ts':
    628       '4ec9025232bb1355fef1ba039b46ce0a2be10e02e348e1b4eaadc3d1f3c2fd84',
    629     'src/lib/messaging/inbox-sync.ts':
    630       '1a161fc95756ce2ae8fe7fceb5906d502f84cb1ae32834bb16791c408e1a775a',
    631     'src/lib/messaging/inbox-view.ts':
    632       '6871707ae7395d3679856a01e87c7d8f273848e0b9ef0dc7b94f450d8417528c',
    633     'src/lib/messaging/reply-controller.ts':
    634       '8d2612b4788211b35ee8d56caa389bb88a53268bbba71407ee787c9dc23ee8a6',
    635     'src/lib/messaging/rumor-plan.ts':
    636       'b622889e96f911501524cd86f9fca9f2207ce853767494fb30799b00ae8275ed',
    637     'src/lib/persistence/private-send-reservations.ts':
    638       '5a57522fdb5acabecf836fb8d642a2adfb4bc7e041843b38fd1b96b673b3942d',
    639     'src/lib/messaging/send-identity.ts':
    640       'cc840afbf155e18030bea9b475884ca3e0068b79ef3da1459b661fe2822499df',
    641     'src/lib/messaging/unlocked-session.ts':
    642       'b7ecc1acea5ed210b39cfe9ec82b3d02c75f6092c5c31dd3e0f79946b319ef4e',
    643     'src/lib/navigation-url.ts':
    644       '4ce96334d7cf57ccba518132078278b71d3bf70f519202e491a5f6a8840f7b19',
    645     'src/lib/nostr/enquiry-references.ts':
    646       'a17175337ee53279f898a7c6fa1af7e77ad26c0d2c0da46f26a9766fa701d365',
    647     'src/lib/nostr/envelope-bounds.ts':
    648       'b1e1d4a0d0673f358321c978726747ddaba3ebf94dd65e67adac408bb6574dae',
    649     'src/lib/nostr/exports.ts':
    650       '683fc933fadc515bd9999ddd337d85b408e0ad4fe891832f2825c35ffbe26f89',
    651     'src/lib/nostr/ingress.ts':
    652       'c433d459ad650c1fa9aa81aca24ddfaad8c251de9e43f92502e83fd5b673e772',
    653     'src/lib/nostr/listing-publisher.ts':
    654       '10032c32482a766158d8a69027056e6a822a16b5f68ab9754b0f1cf42d0608f9',
    655     'src/lib/nostr/public-pool.ts':
    656       '220b0b9ca0cea20c1a2e1a08a82fc4b68a1ba4dd6ffff1f45154b54735233806',
    657     'src/lib/nostr/public-store.ts':
    658       '330f7599f601956ed44795df1e016945e3564bbb7da6491c48f628d407de3d14',
    659     'src/lib/nostr/request-result.ts':
    660       '9bed0e13f94d38c3db471c0e750ef18d685776cb8832fedf7ddb7f92f663c2ac',
    661     'src/lib/nostr/request-scope.ts':
    662       'c6aa1005264e8ded37870c95f937d891afe67b8e07ef62dd137097c4ebb2388b',
    663     'src/lib/nostr/verified-envelope.ts':
    664       '01eb6224ece812fcafed5203c2cd117058a3d45cb8a2175b370e8cd74cdc0f77',
    665     'src/lib/persistence/artifact-records.ts':
    666       'e3b235c5aaf19558b557feb6e17a35b2b1de39c1aa49cb2ef14084d670138d16',
    667     'src/lib/persistence/database.ts':
    668       'd37d53378f531de376fb6d1b307b9b99e54736299a04eff56a66b4036261e170',
    669     'src/lib/persistence/inbox-retention.ts':
    670       '8bcc73be03321e60a6fbbe7ba58de14eb8fb34db5d5cdce0adee31b5467d7bb9',
    671     'src/lib/persistence/local-data-review.ts':
    672       '90379b183d0a1d8885076fbfc593d7c9ac1e351b16ce7800890107014e5cb0e4',
    673     'src/lib/persistence/inbox-envelope-repository.ts':
    674       'beb7eeef35be8b81ff03c9080e780528e37f1cd5c0be4f7b32575b1e60994bd3',
    675     'src/lib/persistence/history-metadata-repository.ts':
    676       'afe4656e59bd6b365444fbda64fe6572ffa4c5323c474ee862e3cf19252b6f6d',
    677     'src/lib/messaging/history-pagination.ts':
    678       '25218db4f7048311156b730634874108c1f224ca1dc80aa7041743fbaf6c3919',
    679     'src/lib/persistence/private-outbox-cleanup.ts':
    680       '13f4e7d771b3a8d4ec7703f2026a1c8ff71582a2d2a810b9d402d58684b2e2b6',
    681     'src/lib/persistence/local-inventory.ts':
    682       'cd44ed47548453f0443400894c57c364b544781c028c4dba6e9fa096034c5965',
    683     'src/lib/persistence/local-private-blocks.ts':
    684       'd7e76c1122ff5479f261293db458a3240438ce0471c788c2f07ffaf854449cbc',
    685     'src/lib/persistence/local-public-hides.ts':
    686       '4f0e64ed0fabbe9f86014a0512e7dbd3c81711f28ca2c626e2dafa5cda349f83',
    687     'src/lib/persistence/private-records.ts':
    688       '821ef96740cf644bff4ffe5c7816c6aa097aa419bd16b8b301809b963294dafe',
    689     'src/lib/persistence/private-sends.ts':
    690       '6696f4179370cad373c06debf57b919598d53b3d25b6d2a6054a557608e4eb9c',
    691     'src/lib/persistence/private-storage.ts':
    692       '9cdac5a1f00678d83bdf4a9b7bfb7c8bd04dc234afb140fc19e0156ad4a064a3',
    693     'src/lib/persistence/public-publications.ts':
    694       'be99c4114fb32880e0a9b48ab3593645532853fb4166fb506f398416db41a194',
    695     'src/lib/persistence/public-receipts.ts':
    696       '10743a9d855c4f573eb42ca90a13c550dee9620e4ad3aac322858c696152e564',
    697     'src/lib/persistence/quota.ts':
    698       'd82858b3de51ddb55466eedb980f37ebe3f70db6c36d0abe5f39feed30d441fc',
    699     'src/lib/publishing/edit-source.ts':
    700       '1432a8ada3d822cc9f634d40a7847a4d6d02c202ecfe59a9634543d57202f56b',
    701     'src/lib/publishing/editor-workflow.ts':
    702       'c87e4f46793fd9beeedb5027cdbb06d533cf7e5df7378c030355c4608738e0f6',
    703     'src/lib/publishing/listing-editor.ts':
    704       'fe067bc1609f783aeee8ad5a0f3178cff50cae81085377b2bbec7874b5f4349d',
    705     'src/lib/publishing/listing-operation-view.ts':
    706       '07f94625c0231a62f25c1db98c9459f8939c32505453633b58d2f72a894858ce',
    707     'src/lib/publishing/mark-sold.ts':
    708       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
    709     'src/lib/publishing/new-listing-readiness.ts':
    710       'ba76be4d7309b1a6beb0c8e0f19b89f2595049e94709486b79eff38953e68893',
    711     'src/lib/publishing/prepare-listing.ts':
    712       '00b922e8b0bfc73cf5ac59857472e8dd627c8df62d28f1c646c5d7c76ce5ede9',
    713     'src/lib/publishing/revise-listing.ts':
    714       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
    715     'src/lib/publishing/selling-view.ts':
    716       '7d1f07c5b128512d3ed19a73409f1c64ada9988d77ac9bf60799352261797f5b',
    717     'src/lib/publishing/sign-listing.ts':
    718       'a1c123c40a190699b57378c5569fcbbfbc5e23ab4d4c0df499ca40ff82fe1a10',
    719     'src/lib/publishing/withdraw-listing.ts':
    720       '168064a7ce271f8342c7b7cbbf996bd96f8968e405eee0bb3e3dba1bdaf346fb',
    721     'src/lib/runtime/effect-ownership.ts':
    722       'a181d1fa8b18d45b3e143de19af4dfdaab91779ac44df972d22e7fada645778b',
    723     'src/lib/runtime/identity-session.ts':
    724       '7d665f6872bdc780f1f2b56245730adcc90f32cf1fed6997f7e2e44ea2447b49',
    725     'src/lib/runtime/private-session.ts':
    726       'ecffe8a4a735478669f46e666e96add6d4b32c615e3741fcc2277a07ca2ef6c3',
    727     'src/lib/runtime/public-runtime.ts':
    728       '679aa4cd51a1dfdc81459bdfccb29441ac60edfa8b1ddd579425787c85b5cff4',
    729     'src/lib/runtime/view-context.ts':
    730       'e2329113e29db35e983270217c47d38a44d4e0491fd710395e008786b5ae7033',
    731     'src/lib/support/report.ts':
    732       'd02ebbfa82cf415c1af192f691b5464fbbc51f898207263bf1422f049a5d9dec',
    733     'src/routes/+layout.svelte':
    734       'b013d2d2bba40ee894c122fbb352dc78110e35ad17ec7ebb830a4556d3204ff7',
    735     'src/routes/about/+page.svelte':
    736       'b89a886622bfaee20dc0bf3b8cb3f84bbdc94df249d746d690da4cf81619fcba',
    737     'src/routes/messages/+page.svelte':
    738       '8279a92770f38858e197e790839bc98b4d7889214ebecdf47e542d632afbc84f',
    739     'src/routes/messages/[conversationId=local_id]/+page.svelte':
    740       'b06c6189adee80b68bc6657fa0e8504551fe9a8b1655a6d81807ebee9930a5e7',
    741     'src/routes/privacy/+page.svelte':
    742       'c6fdaeea02196067c111e839ec2d8ea3ba4bf21b81dbe23a2cad5ae9503aad44',
    743     'src/routes/products/[naddr=naddr]/+page.svelte':
    744       '5f325300384e2156724f3f7ac3fa8512ac6b6090d11aef9e8e53f6aea9c51665',
    745     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
    746       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
    747     'src/routes/sell/+page.svelte':
    748       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
    749     'src/routes/selling/+page.svelte':
    750       '65d982bdf3f625a38b6c886a31a2a699c92e9231636debc16d501e78d7c8faa0',
    751     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
    752       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787'
    753   };
    754   for (const [name, pin] of Object.entries(producers)) {
    755     const bytes = await readOwned(web, name);
    756     publicText(bytes);
    757     const identity =
    758       name === 'src/routes/+layout.svelte'
    759         ? publicHideRootIdentity(bytes)
    760         : createHash('sha256').update(bytes).digest('hex');
    761     if (identity !== pin)
    762       throw new Error(
    763         name === 'src/routes/+layout.svelte'
    764           ? 'Invalid owned root runtime activation'
    765           : 'Invalid owned privacy data source'
    766       );
    767   }
    768   return true;
    769 }
    770 /** @param {string} web */
    771 async function supportReportingAdmission(web) {
    772   if (await privacyDataAdmission(web)) return true;
    773   let about;
    774   try {
    775     about = publicText(await readOwned(web, 'src/routes/about/+page.svelte'));
    776   } catch (error) {
    777     if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
    778       return false;
    779     throw error;
    780   }
    781   if (!about.includes('../../lib/components/SupportLink.svelte')) return false;
    782   /** @type {Record<string,string>} */
    783   const producers = {
    784     'src/lib/catalog/observations.ts':
    785       '7386470e698156f2480de1d6c9fcffacab507f97d2f4006df926db467327120c',
    786     'src/lib/catalog/product-view.ts':
    787       '3558230c9f7cd17666e27c032de4ba6f30d2fb6b4d54149a69e5b8f5dc5d5363',
    788     'src/lib/catalog/search-run.ts':
    789       '213a58cf897456a0dc0e99e46594cba013952ff08212802fb471f0d323c38573',
    790     'src/lib/catalog/search-view.ts':
    791       'bc4d0160574084a547d54d5ca582b15382f44d4649c255743ebdb4c8b398f795',
    792     'src/lib/components/ConfirmPanel.svelte':
    793       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
    794     'src/lib/components/ConflictNotice.svelte':
    795       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
    796     'src/lib/components/ConversationOptions.svelte':
    797       '032a5f49d19a43a8ee88495b92d5337f1bb2de5dc58bb600b579e1423c9dfab1',
    798     'src/lib/components/ConversationRow.svelte':
    799       'c5d0926ac9cdda18a6befe365227dfe62405f71598f59964ff36af9a0e85d743',
    800     'src/lib/components/ConversationThread.svelte':
    801       '07d7421ca00f5f0c6e68b38b790f863ca5c0d01de6567ac3875ef719b83462f4',
    802     'src/lib/components/InboxStatus.svelte':
    803       'a1015aac1d6c9ebb7a54bd5746e4cbcb4b93e376a30a2cbd7f7df212713fc930',
    804     'src/lib/components/ListingEditor.svelte':
    805       '060f4863f6f4f2a4fb1471bb0d5eeedf31ab13b5c83d894f47757cf5a68099e6',
    806     'src/lib/components/ListingReview.svelte':
    807       'deee41ca6c60b346afc7ed5e62e3101ee03b04fdd2a9aa8fa3f3dec585e3863b',
    808     'src/lib/components/MessageComposer.svelte':
    809       'bc8ac0e2123b60957f1c289acbb2b8740e171097029f640f657cd79f5aa8423b',
    810     'src/lib/components/MessageItem.svelte':
    811       '5c9af10ece18deeddd85e11453239c2a0b8e741cb84529e15c4ad87864704517',
    812     'src/lib/components/OperationStatus.svelte':
    813       'ca3a007899996f6331fadd2ead4c55dc7116c273626ecd2f36bcd4701065ae5f',
    814     'src/lib/components/PublisherHide.svelte':
    815       '0fa30a68b44e9de68c3bb1edc9ed2c7fedefc2dc8a916c0a1df1f15440248927',
    816     'src/lib/components/ReportPreview.svelte':
    817       'fe133c95d640d3fa306667c613940a81783ce821471f70394671bb474c96d767',
    818     'src/lib/components/SellingRow.svelte':
    819       'ce00de1bd033860b9c0a85a49c90c8a4d5b8a8223cfd5c0872572e548e79331d',
    820     'src/lib/components/SupportLink.svelte':
    821       'c8608221416a47055c6b0aabe7a9d8370d3bc26e3fcd3c65214275d99ea1927e',
    822     'src/lib/config/budgets.ts':
    823       'e61806f1c2b580340e862b8dc7dd8063e90f74e03c64c721a7d112b0872f935d',
    824     'src/lib/config/deployment-relays.ts':
    825       '14443151ff819a11a4f9c71e4ff756d1fbdd7cf6c36242ac712c378e68583aa2',
    826     'src/lib/config/deployment-support.ts':
    827       'c698313143943749bb457674825b648f6af29477f07cae960f3435c035cd6bd8',
    828     'src/lib/config/relays.ts':
    829       'ca8c63df89509728a7b87e65232f1da751621ed4777993a079730472a0923957',
    830     'src/lib/config/support.ts':
    831       'a5b4c179db6f13ebf85081960e2f7c330c3e894666fbf8f0472edb1c5c818872',
    832     'src/lib/contracts/local-records.ts':
    833       '04ddd51339a439665a94d4a4de7b23c2257d4a673873a672d4427e9764d21f3f',
    834     'src/lib/contracts/public-key.ts':
    835       'd36d4001c2f4835e24d50f00460a35c9cf9fa6b86cc3b4a6937d8b4e10afdeb9',
    836     'src/lib/messaging/admit-conversation.ts':
    837       '1ad085aa530beeabbc9488676e77cf7cd0901e61e7705471f79a47bb1df70cf1',
    838     'src/lib/nostr/incoming-wire.ts':
    839       'd471dde674b31a62961bb6fcb503cd9e54791d83c7afdaabcb74686cc78a3723',
    840     'src/lib/messaging/cited-product.ts':
    841       'bed076c0902f6453971f88f107766c331b5737e488cb8c3c5f6c941e3428778d',
    842     'src/lib/messaging/conversation-thread.ts':
    843       '7367f0e6d96a9f249514f66c2459274e856eb83462523e37264d4cd97d2e36d1',
    844     'src/lib/messaging/decryption-queue.ts':
    845       'be704e6cbe777722c3eb80ec9843f00afd7bac8c52af0c2af7294f2437414553',
    846     'src/lib/messaging/inbox-list.ts':
    847       '9cc82877bfa8dbb2a7fa41bceb842793349416271f19569f49fdd5cfc1de07e5',
    848     'src/lib/messaging/inbox-setup-view.ts':
    849       '4ec9025232bb1355fef1ba039b46ce0a2be10e02e348e1b4eaadc3d1f3c2fd84',
    850     'src/lib/messaging/inbox-sync.ts':
    851       '0d91f5895e7eb054b036a5cb80897a3d60a212d470029a82d11124c8536b3d2c',
    852     'src/lib/messaging/inbox-view.ts':
    853       '6871707ae7395d3679856a01e87c7d8f273848e0b9ef0dc7b94f450d8417528c',
    854     'src/lib/messaging/reply-controller.ts':
    855       '8d2612b4788211b35ee8d56caa389bb88a53268bbba71407ee787c9dc23ee8a6',
    856     'src/lib/messaging/rumor-plan.ts':
    857       'b622889e96f911501524cd86f9fca9f2207ce853767494fb30799b00ae8275ed',
    858     'src/lib/persistence/private-send-reservations.ts':
    859       '5a57522fdb5acabecf836fb8d642a2adfb4bc7e041843b38fd1b96b673b3942d',
    860     'src/lib/messaging/send-identity.ts':
    861       'cc840afbf155e18030bea9b475884ca3e0068b79ef3da1459b661fe2822499df',
    862     'src/lib/messaging/unlocked-session.ts':
    863       'b7ecc1acea5ed210b39cfe9ec82b3d02c75f6092c5c31dd3e0f79946b319ef4e',
    864     'src/lib/navigation-url.ts':
    865       '4ce96334d7cf57ccba518132078278b71d3bf70f519202e491a5f6a8840f7b19',
    866     'src/lib/nostr/enquiry-references.ts':
    867       'a17175337ee53279f898a7c6fa1af7e77ad26c0d2c0da46f26a9766fa701d365',
    868     'src/lib/nostr/envelope-bounds.ts':
    869       'b1e1d4a0d0673f358321c978726747ddaba3ebf94dd65e67adac408bb6574dae',
    870     'src/lib/nostr/exports.ts':
    871       '683fc933fadc515bd9999ddd337d85b408e0ad4fe891832f2825c35ffbe26f89',
    872     'src/lib/nostr/ingress.ts':
    873       'c433d459ad650c1fa9aa81aca24ddfaad8c251de9e43f92502e83fd5b673e772',
    874     'src/lib/nostr/listing-publisher.ts':
    875       '10032c32482a766158d8a69027056e6a822a16b5f68ab9754b0f1cf42d0608f9',
    876     'src/lib/nostr/public-pool.ts':
    877       '220b0b9ca0cea20c1a2e1a08a82fc4b68a1ba4dd6ffff1f45154b54735233806',
    878     'src/lib/nostr/public-store.ts':
    879       '330f7599f601956ed44795df1e016945e3564bbb7da6491c48f628d407de3d14',
    880     'src/lib/nostr/request-result.ts':
    881       '9bed0e13f94d38c3db471c0e750ef18d685776cb8832fedf7ddb7f92f663c2ac',
    882     'src/lib/nostr/request-scope.ts':
    883       'c6aa1005264e8ded37870c95f937d891afe67b8e07ef62dd137097c4ebb2388b',
    884     'src/lib/nostr/verified-envelope.ts':
    885       '01eb6224ece812fcafed5203c2cd117058a3d45cb8a2175b370e8cd74cdc0f77',
    886     'src/lib/persistence/artifact-records.ts':
    887       'e3b235c5aaf19558b557feb6e17a35b2b1de39c1aa49cb2ef14084d670138d16',
    888     'src/lib/persistence/database.ts':
    889       'd37d53378f531de376fb6d1b307b9b99e54736299a04eff56a66b4036261e170',
    890     'src/lib/persistence/local-private-blocks.ts':
    891       'd7e76c1122ff5479f261293db458a3240438ce0471c788c2f07ffaf854449cbc',
    892     'src/lib/persistence/local-public-hides.ts':
    893       '4f0e64ed0fabbe9f86014a0512e7dbd3c81711f28ca2c626e2dafa5cda349f83',
    894     'src/lib/persistence/private-storage.ts':
    895       '66bab9a0a0a699b70ecba75c002ac0de20a84f3d015f5caefbe1697d0f6456bf',
    896     'src/lib/persistence/public-publications.ts':
    897       'be99c4114fb32880e0a9b48ab3593645532853fb4166fb506f398416db41a194',
    898     'src/lib/persistence/public-receipts.ts':
    899       '10743a9d855c4f573eb42ca90a13c550dee9620e4ad3aac322858c696152e564',
    900     'src/lib/persistence/quota.ts':
    901       'e261a7c9c81d0685021663639b1bb543192e65580edb64fa58ccbb9a4a04cc95',
    902     'src/lib/publishing/edit-source.ts':
    903       '1432a8ada3d822cc9f634d40a7847a4d6d02c202ecfe59a9634543d57202f56b',
    904     'src/lib/publishing/editor-workflow.ts':
    905       'c87e4f46793fd9beeedb5027cdbb06d533cf7e5df7378c030355c4608738e0f6',
    906     'src/lib/publishing/listing-editor.ts':
    907       'fe067bc1609f783aeee8ad5a0f3178cff50cae81085377b2bbec7874b5f4349d',
    908     'src/lib/publishing/listing-operation-view.ts':
    909       '07f94625c0231a62f25c1db98c9459f8939c32505453633b58d2f72a894858ce',
    910     'src/lib/publishing/mark-sold.ts':
    911       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
    912     'src/lib/publishing/new-listing-readiness.ts':
    913       'ba76be4d7309b1a6beb0c8e0f19b89f2595049e94709486b79eff38953e68893',
    914     'src/lib/publishing/prepare-listing.ts':
    915       '00b922e8b0bfc73cf5ac59857472e8dd627c8df62d28f1c646c5d7c76ce5ede9',
    916     'src/lib/publishing/revise-listing.ts':
    917       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
    918     'src/lib/publishing/selling-view.ts':
    919       '7d1f07c5b128512d3ed19a73409f1c64ada9988d77ac9bf60799352261797f5b',
    920     'src/lib/publishing/sign-listing.ts':
    921       'a1c123c40a190699b57378c5569fcbbfbc5e23ab4d4c0df499ca40ff82fe1a10',
    922     'src/lib/publishing/withdraw-listing.ts':
    923       '168064a7ce271f8342c7b7cbbf996bd96f8968e405eee0bb3e3dba1bdaf346fb',
    924     'src/lib/runtime/effect-ownership.ts':
    925       'a181d1fa8b18d45b3e143de19af4dfdaab91779ac44df972d22e7fada645778b',
    926     'src/lib/runtime/identity-session.ts':
    927       '7d665f6872bdc780f1f2b56245730adcc90f32cf1fed6997f7e2e44ea2447b49',
    928     'src/lib/runtime/private-session.ts':
    929       'ecffe8a4a735478669f46e666e96add6d4b32c615e3741fcc2277a07ca2ef6c3',
    930     'src/lib/runtime/public-runtime.ts':
    931       '679aa4cd51a1dfdc81459bdfccb29441ac60edfa8b1ddd579425787c85b5cff4',
    932     'src/lib/runtime/view-context.ts':
    933       'e2329113e29db35e983270217c47d38a44d4e0491fd710395e008786b5ae7033',
    934     'src/lib/support/report.ts':
    935       'd02ebbfa82cf415c1af192f691b5464fbbc51f898207263bf1422f049a5d9dec',
    936     'src/routes/+layout.svelte':
    937       'b013d2d2bba40ee894c122fbb352dc78110e35ad17ec7ebb830a4556d3204ff7',
    938     'src/routes/about/+page.svelte':
    939       'b89a886622bfaee20dc0bf3b8cb3f84bbdc94df249d746d690da4cf81619fcba',
    940     'src/routes/messages/+page.svelte':
    941       '8279a92770f38858e197e790839bc98b4d7889214ebecdf47e542d632afbc84f',
    942     'src/routes/messages/[conversationId=local_id]/+page.svelte':
    943       'b06c6189adee80b68bc6657fa0e8504551fe9a8b1655a6d81807ebee9930a5e7',
    944     'src/routes/privacy/+page.svelte':
    945       'b16f21dddcff172b837ab9980a5d8e93b59d5ddb5fa15ce463e07affdee79547',
    946     'src/routes/products/[naddr=naddr]/+page.svelte':
    947       '5f325300384e2156724f3f7ac3fa8512ac6b6090d11aef9e8e53f6aea9c51665',
    948     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
    949       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
    950     'src/routes/sell/+page.svelte':
    951       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
    952     'src/routes/selling/+page.svelte':
    953       '65d982bdf3f625a38b6c886a31a2a699c92e9231636debc16d501e78d7c8faa0',
    954     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
    955       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787'
    956   };
    957   for (const [name, pin] of Object.entries(producers)) {
    958     const bytes = await readOwned(web, name);
    959     publicText(bytes);
    960     const identity =
    961       name === 'src/routes/+layout.svelte'
    962         ? publicHideRootIdentity(bytes)
    963         : createHash('sha256').update(bytes).digest('hex');
    964     if (identity !== pin)
    965       throw new Error(
    966         name === 'src/routes/+layout.svelte'
    967           ? 'Invalid owned root runtime activation'
    968           : 'Invalid owned support reporting source'
    969       );
    970   }
    971   return true;
    972 }
    973 /** @param {string} web */
    974 async function privateBlockingAdmission(web) {
    975   if (await supportReportingAdmission(web)) return true;
    976   const root = publicText(await readOwned(web, 'src/routes/+layout.svelte'));
    977   if (!root.includes('../lib/persistence/local-private-blocks.ts'))
    978     return false;
    979   /** @type {Record<string,string>} */
    980   const producers = {
    981     'src/lib/catalog/observations.ts':
    982       '7386470e698156f2480de1d6c9fcffacab507f97d2f4006df926db467327120c',
    983     'src/lib/catalog/product-view.ts':
    984       '3558230c9f7cd17666e27c032de4ba6f30d2fb6b4d54149a69e5b8f5dc5d5363',
    985     'src/lib/catalog/search-run.ts':
    986       '213a58cf897456a0dc0e99e46594cba013952ff08212802fb471f0d323c38573',
    987     'src/lib/catalog/search-view.ts':
    988       'bc4d0160574084a547d54d5ca582b15382f44d4649c255743ebdb4c8b398f795',
    989     'src/lib/components/ConfirmPanel.svelte':
    990       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
    991     'src/lib/components/ConflictNotice.svelte':
    992       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
    993     'src/lib/components/ConversationOptions.svelte':
    994       'b40915c0b11456fbc852d67591fd4c629a33d5b271e79b79dd042fcf2c0f74cb',
    995     'src/lib/components/ConversationRow.svelte':
    996       'c5d0926ac9cdda18a6befe365227dfe62405f71598f59964ff36af9a0e85d743',
    997     'src/lib/components/ConversationThread.svelte':
    998       '07d7421ca00f5f0c6e68b38b790f863ca5c0d01de6567ac3875ef719b83462f4',
    999     'src/lib/components/InboxStatus.svelte':
   1000       'a1015aac1d6c9ebb7a54bd5746e4cbcb4b93e376a30a2cbd7f7df212713fc930',
   1001     'src/lib/components/ListingEditor.svelte':
   1002       '060f4863f6f4f2a4fb1471bb0d5eeedf31ab13b5c83d894f47757cf5a68099e6',
   1003     'src/lib/components/ListingReview.svelte':
   1004       'deee41ca6c60b346afc7ed5e62e3101ee03b04fdd2a9aa8fa3f3dec585e3863b',
   1005     'src/lib/components/MessageComposer.svelte':
   1006       'bc8ac0e2123b60957f1c289acbb2b8740e171097029f640f657cd79f5aa8423b',
   1007     'src/lib/components/MessageItem.svelte':
   1008       '5c9af10ece18deeddd85e11453239c2a0b8e741cb84529e15c4ad87864704517',
   1009     'src/lib/components/OperationStatus.svelte':
   1010       'ca3a007899996f6331fadd2ead4c55dc7116c273626ecd2f36bcd4701065ae5f',
   1011     'src/lib/components/PublisherHide.svelte':
   1012       '0fa30a68b44e9de68c3bb1edc9ed2c7fedefc2dc8a916c0a1df1f15440248927',
   1013     'src/lib/components/SellingRow.svelte':
   1014       'ce00de1bd033860b9c0a85a49c90c8a4d5b8a8223cfd5c0872572e548e79331d',
   1015     'src/lib/config/budgets.ts':
   1016       'e61806f1c2b580340e862b8dc7dd8063e90f74e03c64c721a7d112b0872f935d',
   1017     'src/lib/config/deployment-relays.ts':
   1018       '14443151ff819a11a4f9c71e4ff756d1fbdd7cf6c36242ac712c378e68583aa2',
   1019     'src/lib/config/relays.ts':
   1020       'ca8c63df89509728a7b87e65232f1da751621ed4777993a079730472a0923957',
   1021     'src/lib/contracts/local-records.ts':
   1022       '04ddd51339a439665a94d4a4de7b23c2257d4a673873a672d4427e9764d21f3f',
   1023     'src/lib/contracts/public-key.ts':
   1024       'd36d4001c2f4835e24d50f00460a35c9cf9fa6b86cc3b4a6937d8b4e10afdeb9',
   1025     'src/lib/messaging/admit-conversation.ts':
   1026       '1ad085aa530beeabbc9488676e77cf7cd0901e61e7705471f79a47bb1df70cf1',
   1027     'src/lib/nostr/incoming-wire.ts':
   1028       'd471dde674b31a62961bb6fcb503cd9e54791d83c7afdaabcb74686cc78a3723',
   1029     'src/lib/messaging/cited-product.ts':
   1030       'bed076c0902f6453971f88f107766c331b5737e488cb8c3c5f6c941e3428778d',
   1031     'src/lib/messaging/conversation-thread.ts':
   1032       '7367f0e6d96a9f249514f66c2459274e856eb83462523e37264d4cd97d2e36d1',
   1033     'src/lib/messaging/decryption-queue.ts':
   1034       'be704e6cbe777722c3eb80ec9843f00afd7bac8c52af0c2af7294f2437414553',
   1035     'src/lib/messaging/inbox-list.ts':
   1036       '9cc82877bfa8dbb2a7fa41bceb842793349416271f19569f49fdd5cfc1de07e5',
   1037     'src/lib/messaging/inbox-setup-view.ts':
   1038       '4ec9025232bb1355fef1ba039b46ce0a2be10e02e348e1b4eaadc3d1f3c2fd84',
   1039     'src/lib/messaging/inbox-sync.ts':
   1040       '0d91f5895e7eb054b036a5cb80897a3d60a212d470029a82d11124c8536b3d2c',
   1041     'src/lib/messaging/inbox-view.ts':
   1042       '6871707ae7395d3679856a01e87c7d8f273848e0b9ef0dc7b94f450d8417528c',
   1043     'src/lib/messaging/reply-controller.ts':
   1044       '8d2612b4788211b35ee8d56caa389bb88a53268bbba71407ee787c9dc23ee8a6',
   1045     'src/lib/messaging/rumor-plan.ts':
   1046       'b622889e96f911501524cd86f9fca9f2207ce853767494fb30799b00ae8275ed',
   1047     'src/lib/persistence/private-send-reservations.ts':
   1048       '5a57522fdb5acabecf836fb8d642a2adfb4bc7e041843b38fd1b96b673b3942d',
   1049     'src/lib/messaging/send-identity.ts':
   1050       'cc840afbf155e18030bea9b475884ca3e0068b79ef3da1459b661fe2822499df',
   1051     'src/lib/messaging/unlocked-session.ts':
   1052       'b7ecc1acea5ed210b39cfe9ec82b3d02c75f6092c5c31dd3e0f79946b319ef4e',
   1053     'src/lib/nostr/enquiry-references.ts':
   1054       'a17175337ee53279f898a7c6fa1af7e77ad26c0d2c0da46f26a9766fa701d365',
   1055     'src/lib/nostr/envelope-bounds.ts':
   1056       'b1e1d4a0d0673f358321c978726747ddaba3ebf94dd65e67adac408bb6574dae',
   1057     'src/lib/nostr/exports.ts':
   1058       '683fc933fadc515bd9999ddd337d85b408e0ad4fe891832f2825c35ffbe26f89',
   1059     'src/lib/nostr/ingress.ts':
   1060       'c433d459ad650c1fa9aa81aca24ddfaad8c251de9e43f92502e83fd5b673e772',
   1061     'src/lib/nostr/listing-publisher.ts':
   1062       '10032c32482a766158d8a69027056e6a822a16b5f68ab9754b0f1cf42d0608f9',
   1063     'src/lib/nostr/public-pool.ts':
   1064       '220b0b9ca0cea20c1a2e1a08a82fc4b68a1ba4dd6ffff1f45154b54735233806',
   1065     'src/lib/nostr/public-store.ts':
   1066       '330f7599f601956ed44795df1e016945e3564bbb7da6491c48f628d407de3d14',
   1067     'src/lib/nostr/request-result.ts':
   1068       '9bed0e13f94d38c3db471c0e750ef18d685776cb8832fedf7ddb7f92f663c2ac',
   1069     'src/lib/nostr/request-scope.ts':
   1070       'c6aa1005264e8ded37870c95f937d891afe67b8e07ef62dd137097c4ebb2388b',
   1071     'src/lib/nostr/verified-envelope.ts':
   1072       '01eb6224ece812fcafed5203c2cd117058a3d45cb8a2175b370e8cd74cdc0f77',
   1073     'src/lib/persistence/artifact-records.ts':
   1074       'e3b235c5aaf19558b557feb6e17a35b2b1de39c1aa49cb2ef14084d670138d16',
   1075     'src/lib/persistence/database.ts':
   1076       'd37d53378f531de376fb6d1b307b9b99e54736299a04eff56a66b4036261e170',
   1077     'src/lib/persistence/local-private-blocks.ts':
   1078       'd7e76c1122ff5479f261293db458a3240438ce0471c788c2f07ffaf854449cbc',
   1079     'src/lib/persistence/local-public-hides.ts':
   1080       '4f0e64ed0fabbe9f86014a0512e7dbd3c81711f28ca2c626e2dafa5cda349f83',
   1081     'src/lib/persistence/private-storage.ts':
   1082       '66bab9a0a0a699b70ecba75c002ac0de20a84f3d015f5caefbe1697d0f6456bf',
   1083     'src/lib/persistence/public-publications.ts':
   1084       'be99c4114fb32880e0a9b48ab3593645532853fb4166fb506f398416db41a194',
   1085     'src/lib/persistence/public-receipts.ts':
   1086       '10743a9d855c4f573eb42ca90a13c550dee9620e4ad3aac322858c696152e564',
   1087     'src/lib/persistence/quota.ts':
   1088       'e261a7c9c81d0685021663639b1bb543192e65580edb64fa58ccbb9a4a04cc95',
   1089     'src/lib/publishing/edit-source.ts':
   1090       '1432a8ada3d822cc9f634d40a7847a4d6d02c202ecfe59a9634543d57202f56b',
   1091     'src/lib/publishing/editor-workflow.ts':
   1092       'c87e4f46793fd9beeedb5027cdbb06d533cf7e5df7378c030355c4608738e0f6',
   1093     'src/lib/publishing/listing-editor.ts':
   1094       'fe067bc1609f783aeee8ad5a0f3178cff50cae81085377b2bbec7874b5f4349d',
   1095     'src/lib/publishing/listing-operation-view.ts':
   1096       '07f94625c0231a62f25c1db98c9459f8939c32505453633b58d2f72a894858ce',
   1097     'src/lib/publishing/mark-sold.ts':
   1098       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
   1099     'src/lib/publishing/new-listing-readiness.ts':
   1100       'ba76be4d7309b1a6beb0c8e0f19b89f2595049e94709486b79eff38953e68893',
   1101     'src/lib/publishing/prepare-listing.ts':
   1102       '00b922e8b0bfc73cf5ac59857472e8dd627c8df62d28f1c646c5d7c76ce5ede9',
   1103     'src/lib/publishing/revise-listing.ts':
   1104       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
   1105     'src/lib/publishing/selling-view.ts':
   1106       '7d1f07c5b128512d3ed19a73409f1c64ada9988d77ac9bf60799352261797f5b',
   1107     'src/lib/publishing/sign-listing.ts':
   1108       'a1c123c40a190699b57378c5569fcbbfbc5e23ab4d4c0df499ca40ff82fe1a10',
   1109     'src/lib/publishing/withdraw-listing.ts':
   1110       '168064a7ce271f8342c7b7cbbf996bd96f8968e405eee0bb3e3dba1bdaf346fb',
   1111     'src/lib/runtime/effect-ownership.ts':
   1112       'a181d1fa8b18d45b3e143de19af4dfdaab91779ac44df972d22e7fada645778b',
   1113     'src/lib/runtime/identity-session.ts':
   1114       '7d665f6872bdc780f1f2b56245730adcc90f32cf1fed6997f7e2e44ea2447b49',
   1115     'src/lib/runtime/private-session.ts':
   1116       'ecffe8a4a735478669f46e666e96add6d4b32c615e3741fcc2277a07ca2ef6c3',
   1117     'src/lib/runtime/public-runtime.ts':
   1118       '679aa4cd51a1dfdc81459bdfccb29441ac60edfa8b1ddd579425787c85b5cff4',
   1119     'src/lib/runtime/view-context.ts':
   1120       'e2329113e29db35e983270217c47d38a44d4e0491fd710395e008786b5ae7033',
   1121     'src/routes/+layout.svelte':
   1122       'b013d2d2bba40ee894c122fbb352dc78110e35ad17ec7ebb830a4556d3204ff7',
   1123     'src/routes/messages/+page.svelte':
   1124       '8279a92770f38858e197e790839bc98b4d7889214ebecdf47e542d632afbc84f',
   1125     'src/routes/messages/[conversationId=local_id]/+page.svelte':
   1126       'b06c6189adee80b68bc6657fa0e8504551fe9a8b1655a6d81807ebee9930a5e7',
   1127     'src/routes/privacy/+page.svelte':
   1128       'b16f21dddcff172b837ab9980a5d8e93b59d5ddb5fa15ce463e07affdee79547',
   1129     'src/routes/products/[naddr=naddr]/+page.svelte':
   1130       'd3afe029ad6ed6384a300ad6719f32c324a1841271eddf9baee5b8f31f54e680',
   1131     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1132       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1133     'src/routes/sell/+page.svelte':
   1134       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1135     'src/routes/selling/+page.svelte':
   1136       '65d982bdf3f625a38b6c886a31a2a699c92e9231636debc16d501e78d7c8faa0',
   1137     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1138       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787'
   1139   };
   1140   for (const [name, pin] of Object.entries(producers)) {
   1141     const bytes = await readOwned(web, name);
   1142     publicText(bytes);
   1143     const identity =
   1144       name === 'src/routes/+layout.svelte'
   1145         ? publicHideRootIdentity(bytes)
   1146         : createHash('sha256').update(bytes).digest('hex');
   1147     if (identity !== pin)
   1148       throw new Error(
   1149         name === 'src/routes/+layout.svelte'
   1150           ? 'Invalid owned root runtime activation'
   1151           : 'Invalid owned private blocking source'
   1152       );
   1153   }
   1154   return true;
   1155 }
   1156 /** @param {string} web */
   1157 async function publicHidingAdmission(web) {
   1158   if (await privateBlockingAdmission(web)) return true;
   1159   const root = publicText(await readOwned(web, 'src/routes/+layout.svelte'));
   1160   if (!root.includes('../lib/persistence/local-public-hides.ts')) return false;
   1161   /** @type {Record<string,string>} */
   1162   const producers = {
   1163     'src/routes/sell/+page.svelte':
   1164       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1165     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1166       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787',
   1167     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1168       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1169     'src/lib/components/ListingEditor.svelte':
   1170       '060f4863f6f4f2a4fb1471bb0d5eeedf31ab13b5c83d894f47757cf5a68099e6',
   1171     'src/lib/publishing/listing-editor.ts':
   1172       'fe067bc1609f783aeee8ad5a0f3178cff50cae81085377b2bbec7874b5f4349d',
   1173     'src/lib/components/ListingReview.svelte':
   1174       'deee41ca6c60b346afc7ed5e62e3101ee03b04fdd2a9aa8fa3f3dec585e3863b',
   1175     'src/lib/publishing/editor-workflow.ts':
   1176       'c87e4f46793fd9beeedb5027cdbb06d533cf7e5df7378c030355c4608738e0f6',
   1177     'src/lib/components/ConflictNotice.svelte':
   1178       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
   1179     'src/lib/publishing/edit-source.ts':
   1180       '1432a8ada3d822cc9f634d40a7847a4d6d02c202ecfe59a9634543d57202f56b',
   1181     'src/lib/publishing/prepare-listing.ts':
   1182       '00b922e8b0bfc73cf5ac59857472e8dd627c8df62d28f1c646c5d7c76ce5ede9',
   1183     'src/lib/publishing/new-listing-readiness.ts':
   1184       'ba76be4d7309b1a6beb0c8e0f19b89f2595049e94709486b79eff38953e68893',
   1185     'src/lib/runtime/public-runtime.ts':
   1186       '679aa4cd51a1dfdc81459bdfccb29441ac60edfa8b1ddd579425787c85b5cff4',
   1187     'src/lib/persistence/public-publications.ts':
   1188       'be99c4114fb32880e0a9b48ab3593645532853fb4166fb506f398416db41a194',
   1189     'src/lib/persistence/quota.ts':
   1190       'e261a7c9c81d0685021663639b1bb543192e65580edb64fa58ccbb9a4a04cc95',
   1191     'src/lib/publishing/revise-listing.ts':
   1192       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
   1193     'src/lib/publishing/mark-sold.ts':
   1194       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
   1195     'src/lib/components/ConfirmPanel.svelte':
   1196       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
   1197     'src/lib/nostr/listing-publisher.ts':
   1198       '10032c32482a766158d8a69027056e6a822a16b5f68ab9754b0f1cf42d0608f9',
   1199     'src/lib/publishing/withdraw-listing.ts':
   1200       '168064a7ce271f8342c7b7cbbf996bd96f8968e405eee0bb3e3dba1bdaf346fb',
   1201     'src/lib/publishing/sign-listing.ts':
   1202       'a1c123c40a190699b57378c5569fcbbfbc5e23ab4d4c0df499ca40ff82fe1a10',
   1203     'src/lib/persistence/artifact-records.ts':
   1204       'e3b235c5aaf19558b557feb6e17a35b2b1de39c1aa49cb2ef14084d670138d16',
   1205     'src/lib/publishing/listing-operation-view.ts':
   1206       '07f94625c0231a62f25c1db98c9459f8939c32505453633b58d2f72a894858ce',
   1207     'src/lib/components/OperationStatus.svelte':
   1208       'ca3a007899996f6331fadd2ead4c55dc7116c273626ecd2f36bcd4701065ae5f',
   1209     'src/lib/runtime/effect-ownership.ts':
   1210       'a181d1fa8b18d45b3e143de19af4dfdaab91779ac44df972d22e7fada645778b',
   1211     'src/lib/nostr/public-pool.ts':
   1212       '220b0b9ca0cea20c1a2e1a08a82fc4b68a1ba4dd6ffff1f45154b54735233806',
   1213     'src/lib/persistence/public-receipts.ts':
   1214       '10743a9d855c4f573eb42ca90a13c550dee9620e4ad3aac322858c696152e564',
   1215     'src/routes/selling/+page.svelte':
   1216       '65d982bdf3f625a38b6c886a31a2a699c92e9231636debc16d501e78d7c8faa0',
   1217     'src/lib/components/SellingRow.svelte':
   1218       'ce00de1bd033860b9c0a85a49c90c8a4d5b8a8223cfd5c0872572e548e79331d',
   1219     'src/lib/publishing/selling-view.ts':
   1220       '7d1f07c5b128512d3ed19a73409f1c64ada9988d77ac9bf60799352261797f5b',
   1221     'src/lib/runtime/identity-session.ts':
   1222       '7d665f6872bdc780f1f2b56245730adcc90f32cf1fed6997f7e2e44ea2447b49',
   1223     'src/lib/persistence/local-public-hides.ts':
   1224       '4f0e64ed0fabbe9f86014a0512e7dbd3c81711f28ca2c626e2dafa5cda349f83',
   1225     'src/lib/catalog/product-view.ts':
   1226       '3558230c9f7cd17666e27c032de4ba6f30d2fb6b4d54149a69e5b8f5dc5d5363',
   1227     'src/lib/catalog/search-run.ts':
   1228       '213a58cf897456a0dc0e99e46594cba013952ff08212802fb471f0d323c38573',
   1229     'src/lib/catalog/search-view.ts':
   1230       'bc4d0160574084a547d54d5ca582b15382f44d4649c255743ebdb4c8b398f795',
   1231     'src/routes/+layout.svelte':
   1232       '969a6cd6e25c3da845e897b68298800079b9e5caa8fff5967ed4d231b28b1523',
   1233     'src/routes/products/[naddr=naddr]/+page.svelte':
   1234       'd3afe029ad6ed6384a300ad6719f32c324a1841271eddf9baee5b8f31f54e680',
   1235     'src/routes/privacy/+page.svelte':
   1236       '48a01a3fba97ae6a21a5bf20383d42fd67fb8e5320bd35b266a4d9c771dccad7',
   1237     'src/lib/components/PublisherHide.svelte':
   1238       '0fa30a68b44e9de68c3bb1edc9ed2c7fedefc2dc8a916c0a1df1f15440248927'
   1239   };
   1240   for (const [name, pin] of Object.entries(producers)) {
   1241     const bytes = await readOwned(web, name);
   1242     publicText(bytes);
   1243     const identity =
   1244       name === 'src/routes/+layout.svelte'
   1245         ? publicHideRootIdentity(bytes)
   1246         : createHash('sha256').update(bytes).digest('hex');
   1247     if (identity !== pin)
   1248       throw new Error(
   1249         name === 'src/routes/+layout.svelte'
   1250           ? 'Invalid owned root runtime activation'
   1251           : 'Invalid owned public hiding source'
   1252       );
   1253   }
   1254   return true;
   1255 }
   1256 /** @param {string} web */
   1257 async function hasOwnedPublicRuntime(web) {
   1258   if (await privateBlockingAdmission(web)) return 'public_identity';
   1259   const hasHiding = await publicHidingAdmission(web);
   1260   const layout = publicText(await readOwned(web, 'src/routes/+layout.svelte'));
   1261   const component = parseSvelte(layout);
   1262   if (!component.instance) return false;
   1263   const script = layout.slice(
   1264     component.instance.content.start,
   1265     component.instance.content.end
   1266   );
   1267   const source = ts.createSourceFile(
   1268     'root.ts',
   1269     script,
   1270     ts.ScriptTarget.Latest,
   1271     true,
   1272     ts.ScriptKind.TS
   1273   );
   1274   const runtimePath = '../lib/runtime/public-runtime.ts';
   1275   const imports = source.statements.filter(ts.isImportDeclaration);
   1276   const runtimeImports = imports.filter(
   1277     (node) =>
   1278       ts.isStringLiteral(node.moduleSpecifier) &&
   1279       node.moduleSpecifier.text === runtimePath
   1280   );
   1281   if (!runtimeImports.length) return false;
   1282   /** @returns {never} */
   1283   function fail() {
   1284     throw new Error('Invalid owned root runtime activation');
   1285   }
   1286   if (runtimeImports.length !== 1 || component.module) fail();
   1287   const required = new Map([
   1288     [
   1289       runtimePath,
   1290       [
   1291         'createPublicRuntimeContext',
   1292         'mountPublicRuntime',
   1293         'closePublicRuntime',
   1294         'PUBLIC_RUNTIME_CONTEXT',
   1295         ...(hasHiding ? ['bindPublicRuntimeHides'] : [])
   1296       ]
   1297     ],
   1298     ['svelte', ['onMount', 'setContext']]
   1299   ]);
   1300   const identityPath = '../lib/runtime/view-context.ts';
   1301   const hasIdentity = imports.some(
   1302     (node) =>
   1303       ts.isStringLiteral(node.moduleSpecifier) &&
   1304       node.moduleSpecifier.text === identityPath
   1305   );
   1306   if (hasIdentity)
   1307     required.set(identityPath, [
   1308       'createIdentityViewContext',
   1309       'IDENTITY_VIEW_CONTEXT',
   1310       'identityViewSnapshot',
   1311       'mountIdentityView',
   1312       'subscribeIdentityView',
   1313       'connectIdentityView',
   1314       'disconnectIdentityView',
   1315       'closeIdentityView',
   1316       'invalidateIdentityView'
   1317     ]);
   1318   if (hasHiding)
   1319     required.set('../lib/persistence/local-public-hides.ts', [
   1320       'createLocalPublicHides',
   1321       'mountLocalPublicHides',
   1322       'closeLocalPublicHides',
   1323       'LOCAL_PUBLIC_HIDES_CONTEXT'
   1324     ]);
   1325   const allowedImports = new Set();
   1326   for (const [module, names] of required) {
   1327     const declarations = imports.filter(
   1328       (node) =>
   1329         ts.isStringLiteral(node.moduleSpecifier) &&
   1330         node.moduleSpecifier.text === module
   1331     );
   1332     if (declarations.length !== 1) fail();
   1333     const clause = declarations[0].importClause;
   1334     if (
   1335       !clause ||
   1336       clause.isTypeOnly ||
   1337       clause.name ||
   1338       !clause.namedBindings ||
   1339       !ts.isNamedImports(clause.namedBindings)
   1340     )
   1341       fail();
   1342     const elements = clause.namedBindings.elements;
   1343     for (const name of names) {
   1344       const bindings = elements.filter((node) => node.name.text === name);
   1345       if (
   1346         bindings.length !== 1 ||
   1347         bindings[0].propertyName ||
   1348         bindings[0].isTypeOnly
   1349       )
   1350         fail();
   1351     }
   1352     if (
   1353       (module === runtimePath || module === identityPath) &&
   1354       elements.length !== names.length
   1355     )
   1356       fail();
   1357     allowedImports.add(declarations[0]);
   1358   }
   1359   const printer = ts.createPrinter({ removeComments: true });
   1360   /** @param {import("typescript").Node} node @param {import("typescript").SourceFile} file */
   1361   const print = (node, file) =>
   1362     printer.printNode(ts.EmitHint.Unspecified, node, file);
   1363   const expected = ts.createSourceFile(
   1364     'expected.ts',
   1365     hasHiding
   1366       ? `
   1367     const publicContext = createPublicRuntimeContext();
   1368     setContext(PUBLIC_RUNTIME_CONTEXT, publicContext);
   1369     onMount(() => {
   1370       const runtime = mountPublicRuntime(publicContext);
   1371       if(runtime) bindPublicRuntimeHides(runtime,publicHides);
   1372       void mountLocalPublicHides(publicHides);
   1373       return () => {
   1374         closeLocalPublicHides(publicHides);
   1375         closePublicRuntime(publicContext);
   1376       };
   1377     });`
   1378       : `
   1379     const publicContext = createPublicRuntimeContext();
   1380     setContext(PUBLIC_RUNTIME_CONTEXT, publicContext);
   1381     onMount(() => {
   1382       mountPublicRuntime(publicContext);
   1383       return () => closePublicRuntime(publicContext);
   1384     });`,
   1385     ts.ScriptTarget.Latest,
   1386     true,
   1387     ts.ScriptKind.TS
   1388   );
   1389   const shapes = expected.statements.map((node) => print(node, expected));
   1390   const lifecycle = source.statements.filter((node) =>
   1391     shapes.includes(print(node, source))
   1392   );
   1393   if (
   1394     lifecycle.length !== shapes.length ||
   1395     lifecycle.some((node, i) => print(node, source) !== shapes[i])
   1396   )
   1397     fail();
   1398   // HCP056 adds one separately owned identity lifecycle. The canonical public
   1399   // activation above remains mandatory, unchanged and independently ordered.
   1400   if (hasIdentity) {
   1401     const identityExpected = ts.createSourceFile(
   1402       'identity-expected.ts',
   1403       `
   1404   const identityContext = createIdentityViewContext();
   1405   ${hasHiding ? 'const publicHides = createLocalPublicHides(identityContext); setContext(LOCAL_PUBLIC_HIDES_CONTEXT, publicHides);' : ''}
   1406   setContext(IDENTITY_VIEW_CONTEXT, identityContext);
   1407   let identityView = $state(identityViewSnapshot(identityContext));
   1408   $effect(() => {
   1409     if (page.url.pathname) invalidateIdentityView(identityContext);
   1410   });
   1411   function connect() {
   1412     return connectIdentityView(identityContext);
   1413   }
   1414   function disconnect() {
   1415     disconnectIdentityView(identityContext);
   1416   }
   1417   const shellIdentity = $derived(
   1418     identityView.identity.state === 'guest' ||
   1419       identityView.identity.state === 'pending'
   1420       ? {
   1421           kind: 'guest' as const,
   1422           onconnect: identityView.mounted ? connect : undefined
   1423         }
   1424       : {
   1425           kind: 'connected' as const,
   1426           publicKey: identityView.identity.publicKey,
   1427           ondisconnect: disconnect
   1428         }
   1429   );
   1430 
   1431   onMount(() => {
   1432     const off = subscribeIdentityView(identityContext, (next) => {
   1433       identityView = next;
   1434     });
   1435     mountIdentityView(identityContext);
   1436     return () => {
   1437       off();
   1438       closeIdentityView(identityContext);
   1439     };
   1440   });
   1441 `,
   1442       ts.ScriptTarget.Latest,
   1443       true,
   1444       ts.ScriptKind.TS
   1445     );
   1446     const identityShapes = identityExpected.statements.map((node) =>
   1447       print(node, identityExpected)
   1448     );
   1449     const identityLifecycle = source.statements.filter((node) =>
   1450       identityShapes.includes(print(node, source))
   1451     );
   1452     if (
   1453       identityLifecycle.length !== identityShapes.length ||
   1454       identityLifecycle.some(
   1455         (node, i) => print(node, source) !== identityShapes[i]
   1456       )
   1457     )
   1458       fail();
   1459     lifecycle.push(...identityLifecycle);
   1460     publicText(await readOwned(web, 'src/lib/runtime/view-context.ts'));
   1461     publicText(await readOwned(web, 'src/lib/runtime/identity-session.ts'));
   1462   }
   1463   // Reject duplicate, shadowed, reassigned, or extra uses of these bindings in
   1464   // any other statement, including nested closures. Canonical callbacks have
   1465   // no parameters and therefore cannot hide a second context binding.
   1466   const bindings = new Set([
   1467     'publicContext',
   1468     ...[...required.values()].flat(),
   1469     ...(hasIdentity
   1470       ? [
   1471           'identityContext',
   1472           ...(hasHiding ? ['publicHides'] : []),
   1473           'identityView',
   1474           'connect',
   1475           'disconnect',
   1476           'shellIdentity'
   1477         ]
   1478       : [])
   1479   ]);
   1480   for (const statement of source.statements) {
   1481     if (allowedImports.has(statement) || lifecycle.includes(statement))
   1482       continue;
   1483     /** @param {import("typescript").Node} node */
   1484     const visit = (node) => {
   1485       if (ts.isIdentifier(node) && bindings.has(node.text)) fail();
   1486       ts.forEachChild(node, visit);
   1487     };
   1488     visit(statement);
   1489   }
   1490   for (const name of [
   1491     'runtime/public-runtime.ts',
   1492     'nostr/request-scope.ts',
   1493     'nostr/public-pool.ts',
   1494     'nostr/public-store.ts',
   1495     'nostr/request-result.ts',
   1496     'nostr/ingress.ts',
   1497     'nostr/verified-envelope.ts',
   1498     'nostr/envelope-bounds.ts',
   1499     'nostr/exports.ts',
   1500     'catalog/observations.ts',
   1501     'config/budgets.ts',
   1502     'config/relays.ts',
   1503     'config/deployment-relays.ts'
   1504   ])
   1505     publicText(await readOwned(web, 'src/lib/' + name));
   1506   return hasIdentity ? 'public_identity' : 'public';
   1507 }
   1508 /** @param {string} web */
   1509 async function productPresentationAdmission(web) {
   1510   const route = publicText(
   1511     await readOwned(web, 'src/routes/products/[naddr=naddr]/+page.svelte')
   1512   );
   1513   if (!route.includes('../../../lib/catalog/product-view.ts')) return false;
   1514   const hasEnquiry = route.includes(
   1515     '../../../lib/components/ProductEnquiry.svelte'
   1516   );
   1517   const hasRequest =
   1518     hasEnquiry &&
   1519     (await readOwned(web, 'src/lib/components/ProductEnquiry.svelte'))
   1520       .toString()
   1521       .includes('../messaging/product-request-controller.ts');
   1522   const producers = hasRequest
   1523     ? {
   1524         'src/routes/products/[naddr=naddr]/+page.svelte':
   1525           'e63a2c8b3833966a36e4d97aef7726ff3d087703cc9b475e7f52f5478fed5ce7',
   1526         'src/lib/catalog/product-view.ts':
   1527           'c2562d1470282c758889e9855f7e7e6c32a6b2eb090e4dace2e94fdfdb6d8363',
   1528         'src/lib/components/ListingFacts.svelte':
   1529           '65d009b4940e7ced61347919689877da9473a2a66a44f61cc5e7bd0b2d217215',
   1530         'src/lib/components/PublisherIdentity.svelte':
   1531           '90b156e2401d40079ee559d65ce66ec09ecc4246bc80cfdfc5def0e21e8ce9ff',
   1532         'src/lib/contracts/food-availability-v1/contact-read.ts':
   1533           '18f812812c15858768223d929bcea9d7eae5154612747016ccd17864c229420a',
   1534         'src/lib/navigation-copy.ts':
   1535           '1a17eac4b355d8a3fb2b55b3fe1bc856cc3b3bce07434836d708b68407686f20',
   1536         'src/lib/runtime/public-runtime.ts':
   1537           'fa2e27d72b82b6bef73693cf93f19614e61ea51ebd11eb40d8ca4ec723f0c14e',
   1538         'src/lib/catalog/publishers.ts':
   1539           'a6795a35ebbf97246e22235df1ca868432e2cccfb26a38f0ebdf4524911192e6',
   1540         'src/lib/catalog/resolve-head.ts':
   1541           '4f1c9f144164580da038d127ab463f9f8ba6b20e882fc31151cb29850782d633',
   1542         'src/lib/components/ProductEnquiry.svelte':
   1543           'b49f555a239ab31253f403cc98eaf82413b2584c71e336262202fe840b9227a2',
   1544         'src/lib/messaging/product-enquiry.ts':
   1545           '6652f4af6b45ae14d82bf4d6b56dea7e95af8b254d9b41da9528cf34e87d2052',
   1546         'src/lib/messaging/enquiry-context.ts':
   1547           'fc00bb77f601427fb73defc0c758332c3465c2d583bfa1f7b996f808f508b735',
   1548         'src/lib/messaging/product-request-controller.ts':
   1549           '9fb8bb41657de661d4fe32d05f78fdc453e215467b08ee7d8036d39093cb0979',
   1550         'src/lib/components/CapabilityGate.svelte':
   1551           '38584846f67135d03ad531199cfd4e5f9dbcede58ca7baa2ee2d14fd9f46d414',
   1552         'src/lib/messaging/resolve-inbox.ts':
   1553           '6c6438c518f13916a4a5664d8dd0e313338219bd52d5a91db8abab9bbc4a794c',
   1554         'src/lib/messaging/enquiry-readiness.ts':
   1555           '8c7a526c763d43c0ef04aec8ae00dd5d6858911d9c5a18a87127100c5b57782a'
   1556       }
   1557     : hasEnquiry
   1558       ? {
   1559           'src/routes/products/[naddr=naddr]/+page.svelte':
   1560             '970f716e5f31bb0a7e463db84876d4f4b0801979e0893ef69fbeed1b17d69b0f',
   1561           'src/lib/catalog/product-view.ts':
   1562             'e608bcc5b7918366e2daabd5f5270cabf0ded22e1bbfd413d26450387ebac171',
   1563           'src/lib/components/ListingFacts.svelte':
   1564             '65d009b4940e7ced61347919689877da9473a2a66a44f61cc5e7bd0b2d217215',
   1565           'src/lib/components/PublisherIdentity.svelte':
   1566             '90b156e2401d40079ee559d65ce66ec09ecc4246bc80cfdfc5def0e21e8ce9ff',
   1567           'src/lib/contracts/food-availability-v1/contact-read.ts':
   1568             '18f812812c15858768223d929bcea9d7eae5154612747016ccd17864c229420a',
   1569           'src/lib/navigation-copy.ts':
   1570             '1a17eac4b355d8a3fb2b55b3fe1bc856cc3b3bce07434836d708b68407686f20',
   1571           'src/lib/runtime/public-runtime.ts':
   1572             'fa2e27d72b82b6bef73693cf93f19614e61ea51ebd11eb40d8ca4ec723f0c14e',
   1573           'src/lib/catalog/publishers.ts':
   1574             'a6795a35ebbf97246e22235df1ca868432e2cccfb26a38f0ebdf4524911192e6',
   1575           'src/lib/catalog/resolve-head.ts':
   1576             '4f1c9f144164580da038d127ab463f9f8ba6b20e882fc31151cb29850782d633',
   1577           'src/lib/components/ProductEnquiry.svelte':
   1578             '4935f091aa4db3b79b681e4bfdda4547b6654a87adee897b1da25abd17c03290',
   1579           'src/lib/messaging/product-enquiry.ts':
   1580             'fdabb058bd42b253d24e0cb2b0a27fb24ef1c65bdc1783e298d1098185e345f4',
   1581           'src/lib/messaging/enquiry-context.ts':
   1582             'fc00bb77f601427fb73defc0c758332c3465c2d583bfa1f7b996f808f508b735'
   1583         }
   1584       : {
   1585           'src/routes/products/[naddr=naddr]/+page.svelte':
   1586             '1869d4dc32ea794d5ee5c1d6cc6b4aac94483482d18cff0562c0cb10087b5278',
   1587           'src/lib/catalog/product-view.ts':
   1588             'e3739170e3c700246a80c1358c7b96541a5cbf1e4c26905e6ca60537adfce9cf',
   1589           'src/lib/components/ListingFacts.svelte':
   1590             '65d009b4940e7ced61347919689877da9473a2a66a44f61cc5e7bd0b2d217215',
   1591           'src/lib/components/PublisherIdentity.svelte':
   1592             '90b156e2401d40079ee559d65ce66ec09ecc4246bc80cfdfc5def0e21e8ce9ff',
   1593           'src/lib/contracts/food-availability-v1/contact-read.ts':
   1594             '18f812812c15858768223d929bcea9d7eae5154612747016ccd17864c229420a',
   1595           'src/lib/navigation-copy.ts':
   1596             '1a17eac4b355d8a3fb2b55b3fe1bc856cc3b3bce07434836d708b68407686f20',
   1597           'src/lib/runtime/public-runtime.ts':
   1598             'fa2e27d72b82b6bef73693cf93f19614e61ea51ebd11eb40d8ca4ec723f0c14e',
   1599           'src/lib/catalog/publishers.ts':
   1600             'a6795a35ebbf97246e22235df1ca868432e2cccfb26a38f0ebdf4524911192e6',
   1601           'src/lib/catalog/resolve-head.ts':
   1602             '4f1c9f144164580da038d127ab463f9f8ba6b20e882fc31151cb29850782d633'
   1603         };
   1604   for (const [name, pin] of Object.entries(producers)) {
   1605     const bytes = await readOwned(web, name);
   1606     publicText(bytes);
   1607     if (
   1608       createHash('sha256').update(bytes).digest('hex') !== pin &&
   1609       !(
   1610         name === 'src/lib/messaging/product-request-controller.ts' &&
   1611         (await operationalFlagsAdmission(web))
   1612       ) &&
   1613       !(
   1614         [
   1615           'src/routes/products/[naddr=naddr]/+page.svelte',
   1616           'src/lib/catalog/product-view.ts',
   1617           'src/lib/runtime/public-runtime.ts'
   1618         ].includes(name) && (await publicHidingAdmission(web))
   1619       ) &&
   1620       !(
   1621         name === 'src/lib/runtime/public-runtime.ts' &&
   1622         ((await listingEditorAdmission(web)) === 'owned-revision' ||
   1623           (await listingEditorAdmission(web)) === 'owned-withdrawal')
   1624       )
   1625     )
   1626       throw new Error('Invalid owned product presentation source');
   1627   }
   1628   return hasRequest ? 'request' : hasEnquiry ? 'enquiry' : true;
   1629 }
   1630 // This exact reviewed producer set owns the shared presentation/runtime split.
   1631 // A successor changes these identities only with new compiler qualification.
   1632 /** @param {string} web */
   1633 async function searchPresentationAdmission(web) {
   1634   const route = publicText(
   1635     await readOwned(web, 'src/routes/search/+page.svelte')
   1636   );
   1637   if (!route.includes('../../lib/catalog/search-view.ts')) return false;
   1638   const producers = {
   1639     'src/routes/search/+page.svelte':
   1640       '0dea04fc5a5a41599774215c9157d8eb2076eb3fa4fe6355184a9a467a9cc72a',
   1641     'src/lib/catalog/search-view.ts':
   1642       '398cc2db59fb78d33df8cb8ce59d4e10a84feb3842709f2a7047033424798768',
   1643     'src/lib/components/ListingRow.svelte':
   1644       '48c6ab9b5fe887206b77a27bd0de697d346133ecb44d8ba973c8ffacc0cf5f03',
   1645     'src/lib/components/SourceStatus.svelte':
   1646       'd3cdb173fdeb4e7783f4b3b909a90c32ae4a66a5d87cba6a2766e718317775de',
   1647     'src/lib/navigation-scroll.ts':
   1648       '9a3dcd9bbde8bcdb18d8962816fa062262505bc3e8ad34d88c78d18dba3a8398',
   1649     'src/lib/components/primitives/Disclosure.svelte':
   1650       'c6d8361f31218644ac487a3d43412627cb8cc50906a921b95cf053047ce32bf3'
   1651   };
   1652   for (const [name, pin] of Object.entries(producers)) {
   1653     const bytes = await readOwned(web, name);
   1654     publicText(bytes);
   1655     if (
   1656       createHash('sha256').update(bytes).digest('hex') !== pin &&
   1657       !(
   1658         ['src/lib/catalog/search-view.ts'].includes(name) &&
   1659         (await publicHidingAdmission(web))
   1660       )
   1661     )
   1662       throw new Error('Invalid owned search presentation source');
   1663   }
   1664   return true;
   1665 }
   1666 // HCP066 exact owned preference port changes the shared compiler chunk name.
   1667 // Preserve the full module/path/output rejection policy; no arbitrary admission.
   1668 /** @param {string} web */
   1669 async function preferencePublicationAdmission(web) {
   1670   const pool = await readOwned(web, 'src/lib/nostr/public-pool.ts');
   1671   if (!pool.toString().includes("'./inbox-preference-publication.ts'"))
   1672     return false;
   1673   const producers = {
   1674     'src/lib/nostr/public-pool.ts':
   1675       'd08c2c16936125e75a8195cfdc600f8c592cb942e1802d934823ee221c1c132b',
   1676     'src/lib/nostr/inbox-preference-publication.ts':
   1677       'fbad642340732bf7cf92905010af314829b80cc7b134121396f14e9bb8e765cc'
   1678   };
   1679   for (const [name, pin] of Object.entries(producers)) {
   1680     const bytes = await readOwned(web, name);
   1681     publicText(bytes);
   1682     if (
   1683       createHash('sha256').update(bytes).digest('hex') !== pin &&
   1684       !(
   1685         name === 'src/lib/nostr/inbox-preference-publication.ts' &&
   1686         (await operationalFlagsAdmission(web))
   1687       ) &&
   1688       !(
   1689         name === 'src/lib/nostr/public-pool.ts' &&
   1690         (await listingEditorAdmission(web)) === 'owned-withdrawal'
   1691       )
   1692     )
   1693       throw new Error('Invalid owned preference publication source');
   1694   }
   1695   return true;
   1696 }
   1697 // HCP113 exact stored-artifact retry/resume ports retain original custody.
   1698 // Admit only their reviewed source pins and the complete observed closed graph.
   1699 /** @param {string} web */
   1700 async function listingPublicationAdmission(web) {
   1701   const pool = await readOwned(web, 'src/lib/nostr/public-pool.ts');
   1702   if (!pool.toString().includes("'./listing-publisher.ts'")) return false;
   1703   const producers = {
   1704     'src/lib/nostr/listing-publisher.ts':
   1705       '1c8c3445513329d57fcddc75da63991f0c1c27c28caf87db381d32bba739c872',
   1706     'src/lib/publishing/sign-listing.ts':
   1707       '5051a2e0eb3353b9f099cb92dcbd3162003a9a32cebac6035b979ae3a9400bfe',
   1708     'src/lib/publishing/retry-listing.ts':
   1709       '67b6a110bb116ff2b0791833cc0df02889b206839baf04467e44fa5f2c1ec459',
   1710     'src/lib/publishing/resume-listing.ts':
   1711       '42cd0404f1e543e03350e6c8c92fce5a1c4f8eb02f9540831fc6c7cf84bba9a9',
   1712     'src/lib/publishing/deliver-listing.ts':
   1713       'a47d3ae5b4bc1d3cd85ff7385851953fbf21bd22e265e875e7710b192830d409',
   1714     'src/lib/publishing/listing-operation-view.ts':
   1715       '5f48bfb7056b56bd29357e605e20ef1375c559973fcc31f38d564a3b9eb07094',
   1716     'src/lib/components/OperationStatus.svelte':
   1717       'c6a1d741d16b577783e80b8f447cb959d5bf8b2d711cd5abcdc396be430a7472'
   1718   };
   1719   for (const [name, pin] of Object.entries(producers)) {
   1720     const bytes = await readOwned(web, name);
   1721     publicText(bytes);
   1722     if (
   1723       createHash('sha256').update(bytes).digest('hex') !== pin &&
   1724       !(
   1725         [
   1726           'src/lib/nostr/listing-publisher.ts',
   1727           'src/lib/publishing/resume-listing.ts'
   1728         ].includes(name) && (await operationalFlagsAdmission(web))
   1729       ) &&
   1730       !(
   1731         (name === 'src/lib/nostr/listing-publisher.ts' &&
   1732           (await listingEditorAdmission(web)) === 'owned-revision') ||
   1733         ([
   1734           'src/lib/nostr/listing-publisher.ts',
   1735           'src/lib/publishing/sign-listing.ts',
   1736           'src/lib/publishing/listing-operation-view.ts',
   1737           'src/lib/components/OperationStatus.svelte'
   1738         ].includes(name) &&
   1739           (await listingEditorAdmission(web)) === 'owned-withdrawal')
   1740       )
   1741     )
   1742       throw new Error('Invalid owned listing publication source');
   1743   }
   1744   return true;
   1745 }
   1746 /** @param {string} web */
   1747 async function sellingWorkspaceAdmission(web) {
   1748   const source = await readOwned(web, 'src/routes/selling/+page.svelte');
   1749   publicText(source);
   1750   if (
   1751     createHash('sha256').update(source).digest('hex') ===
   1752     '23547dcfa10e85865e31b66c31ea0d043592e3c316c94da2d74bdf2dd419b38a'
   1753   )
   1754     return false;
   1755   /** @type {Record<string,string>} */
   1756   const producers = {
   1757     'src/routes/sell/+page.svelte':
   1758       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1759     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1760       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787',
   1761     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1762       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1763     'src/lib/components/ListingEditor.svelte':
   1764       '060f4863f6f4f2a4fb1471bb0d5eeedf31ab13b5c83d894f47757cf5a68099e6',
   1765     'src/lib/publishing/listing-editor.ts':
   1766       'fe067bc1609f783aeee8ad5a0f3178cff50cae81085377b2bbec7874b5f4349d',
   1767     'src/lib/components/ListingReview.svelte':
   1768       'deee41ca6c60b346afc7ed5e62e3101ee03b04fdd2a9aa8fa3f3dec585e3863b',
   1769     'src/lib/publishing/editor-workflow.ts':
   1770       'c87e4f46793fd9beeedb5027cdbb06d533cf7e5df7378c030355c4608738e0f6',
   1771     'src/lib/components/ConflictNotice.svelte':
   1772       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
   1773     'src/lib/publishing/edit-source.ts':
   1774       '1432a8ada3d822cc9f634d40a7847a4d6d02c202ecfe59a9634543d57202f56b',
   1775     'src/lib/publishing/prepare-listing.ts':
   1776       '00b922e8b0bfc73cf5ac59857472e8dd627c8df62d28f1c646c5d7c76ce5ede9',
   1777     'src/lib/publishing/new-listing-readiness.ts':
   1778       'ba76be4d7309b1a6beb0c8e0f19b89f2595049e94709486b79eff38953e68893',
   1779     'src/lib/runtime/public-runtime.ts':
   1780       '8d2b840e94448b55642b1481d12785ed76d326735a4461e9795f57a98e8d2530',
   1781     'src/lib/persistence/public-publications.ts':
   1782       'be99c4114fb32880e0a9b48ab3593645532853fb4166fb506f398416db41a194',
   1783     'src/lib/persistence/quota.ts':
   1784       'e261a7c9c81d0685021663639b1bb543192e65580edb64fa58ccbb9a4a04cc95',
   1785     'src/lib/publishing/revise-listing.ts':
   1786       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
   1787     'src/lib/publishing/mark-sold.ts':
   1788       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
   1789     'src/lib/components/ConfirmPanel.svelte':
   1790       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
   1791     'src/lib/nostr/listing-publisher.ts':
   1792       '10032c32482a766158d8a69027056e6a822a16b5f68ab9754b0f1cf42d0608f9',
   1793     'src/lib/publishing/withdraw-listing.ts':
   1794       '168064a7ce271f8342c7b7cbbf996bd96f8968e405eee0bb3e3dba1bdaf346fb',
   1795     'src/lib/publishing/sign-listing.ts':
   1796       'a1c123c40a190699b57378c5569fcbbfbc5e23ab4d4c0df499ca40ff82fe1a10',
   1797     'src/lib/persistence/artifact-records.ts':
   1798       'e3b235c5aaf19558b557feb6e17a35b2b1de39c1aa49cb2ef14084d670138d16',
   1799     'src/lib/publishing/listing-operation-view.ts':
   1800       '07f94625c0231a62f25c1db98c9459f8939c32505453633b58d2f72a894858ce',
   1801     'src/lib/components/OperationStatus.svelte':
   1802       'ca3a007899996f6331fadd2ead4c55dc7116c273626ecd2f36bcd4701065ae5f',
   1803     'src/lib/runtime/effect-ownership.ts':
   1804       'a181d1fa8b18d45b3e143de19af4dfdaab91779ac44df972d22e7fada645778b',
   1805     'src/lib/nostr/public-pool.ts':
   1806       '220b0b9ca0cea20c1a2e1a08a82fc4b68a1ba4dd6ffff1f45154b54735233806',
   1807     'src/lib/persistence/public-receipts.ts':
   1808       '10743a9d855c4f573eb42ca90a13c550dee9620e4ad3aac322858c696152e564',
   1809     'src/routes/selling/+page.svelte':
   1810       '65d982bdf3f625a38b6c886a31a2a699c92e9231636debc16d501e78d7c8faa0',
   1811     'src/lib/components/SellingRow.svelte':
   1812       'ce00de1bd033860b9c0a85a49c90c8a4d5b8a8223cfd5c0872572e548e79331d',
   1813     'src/lib/publishing/selling-view.ts':
   1814       'a9e896db6f0485699c069ee31eb20a6c5476095d0ffef1160aa76cc64a364dc2'
   1815   };
   1816   for (const [name, pin] of Object.entries(producers)) {
   1817     const bytes = await readOwned(web, name);
   1818     publicText(bytes);
   1819     if (
   1820       createHash('sha256').update(bytes).digest('hex') !== pin &&
   1821       !(
   1822         [
   1823           'src/routes/sell/+page.svelte',
   1824           'src/routes/selling/drafts/[draftId=local_id]/+page.svelte',
   1825           'src/routes/products/[naddr=naddr]/edit/+page.svelte',
   1826           'src/lib/components/ListingEditor.svelte',
   1827           'src/lib/publishing/listing-editor.ts',
   1828           'src/lib/components/ListingReview.svelte',
   1829           'src/lib/publishing/editor-workflow.ts',
   1830           'src/lib/components/ConflictNotice.svelte',
   1831           'src/lib/publishing/edit-source.ts',
   1832           'src/lib/publishing/prepare-listing.ts',
   1833           'src/lib/publishing/new-listing-readiness.ts',
   1834           'src/lib/runtime/public-runtime.ts',
   1835           'src/lib/persistence/public-publications.ts',
   1836           'src/lib/persistence/quota.ts',
   1837           'src/lib/publishing/revise-listing.ts',
   1838           'src/lib/publishing/mark-sold.ts',
   1839           'src/lib/components/ConfirmPanel.svelte',
   1840           'src/lib/nostr/listing-publisher.ts',
   1841           'src/lib/publishing/withdraw-listing.ts',
   1842           'src/lib/publishing/sign-listing.ts',
   1843           'src/lib/persistence/artifact-records.ts',
   1844           'src/lib/publishing/listing-operation-view.ts',
   1845           'src/lib/components/OperationStatus.svelte',
   1846           'src/lib/runtime/effect-ownership.ts',
   1847           'src/lib/nostr/public-pool.ts',
   1848           'src/lib/persistence/public-receipts.ts',
   1849           'src/routes/selling/+page.svelte',
   1850           'src/lib/components/SellingRow.svelte',
   1851           'src/lib/publishing/selling-view.ts',
   1852           'src/lib/runtime/identity-session.ts',
   1853           'src/lib/persistence/local-public-hides.ts',
   1854           'src/lib/catalog/product-view.ts',
   1855           'src/lib/catalog/search-run.ts',
   1856           'src/lib/catalog/search-view.ts',
   1857           'src/routes/+layout.svelte',
   1858           'src/routes/products/[naddr=naddr]/+page.svelte',
   1859           'src/routes/privacy/+page.svelte',
   1860           'src/lib/components/PublisherHide.svelte'
   1861         ].includes(name) && (await publicHidingAdmission(web))
   1862       )
   1863     )
   1864       throw new Error('Invalid owned selling workspace source');
   1865   }
   1866   return true;
   1867 }
   1868 // HCP115 one shared editor activates all three routes together. Historical
   1869 // AccountGate routes remain labelled compatibility producers only.
   1870 /** @param {string} web */
   1871 async function listingEditorAdmission(web) {
   1872   const routes = [
   1873     'src/routes/sell/+page.svelte',
   1874     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte',
   1875     'src/routes/products/[naddr=naddr]/edit/+page.svelte'
   1876   ];
   1877   const enabled = await Promise.all(
   1878     routes.map(async (name) =>
   1879       publicText(await readOwned(web, name)).includes('ListingEditor.svelte')
   1880     )
   1881   );
   1882   if (!enabled.some(Boolean)) return false;
   1883   if (!enabled.every(Boolean))
   1884     throw new Error('Invalid owned listing editor activation');
   1885   const producers = {
   1886     'src/routes/sell/+page.svelte':
   1887       '3e99a6121e9ea317d30e631d9edfb05e6596301678f9ae0538e446f0438ae3f4',
   1888     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1889       '98935ebb01f950aee5da850758801c28303b042ba219759c4fb04c4974376a76',
   1890     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1891       '5c50dc2ba4c5734ffe4bd1c2e406e6699581b374fab3849d5c5a0072d9bad1e6',
   1892     'src/lib/components/ListingEditor.svelte':
   1893       'fed47cd7257ab3fe1878ef5779b74a4a3e01404d93956806477943190ffb2b18',
   1894     'src/lib/publishing/listing-editor.ts':
   1895       'f2f1be3c614c861f50293f33f5bf1d3ae1851f4b4452fb9e2f3a7b8963a1d1f9'
   1896   };
   1897   /** @type {Record<string,string>} */
   1898   const continuity = {
   1899     'src/routes/sell/+page.svelte':
   1900       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1901     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1902       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787',
   1903     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1904       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1905     'src/lib/components/ListingEditor.svelte':
   1906       'df9cc0f98620459a4667ccaab0c7ccfda42764c229bec61df2e06a48bfd8eb9d',
   1907     'src/lib/publishing/listing-editor.ts':
   1908       '9d7ea3f905188ab807b1779c2c0856e39a82cfe598bd071da33fabad66796012'
   1909   };
   1910   /** @type {Record<string,string>} */
   1911   const reviewProducers = {
   1912     'src/routes/sell/+page.svelte':
   1913       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1914     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1915       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787',
   1916     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1917       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1918     'src/lib/components/ListingEditor.svelte':
   1919       '8be89452b0bfd50ff907efcf38873ef1b4007440464836db8b1ff2bc552b97ff',
   1920     'src/lib/publishing/listing-editor.ts':
   1921       'f781a9b028f4f441514bfb8622767c365b0425e7083acfd8deaaba57dc0b7dab',
   1922     'src/lib/components/ListingReview.svelte':
   1923       'bf4e6bf0fc76fa12672fabc441e1058d73c1f281a0a560aeafbdaa2aa36f6f90',
   1924     'src/lib/publishing/editor-workflow.ts':
   1925       '5bc8827c5ff167e0974f03a87e4e9db350e42f30c511f199b785c30ad365d838'
   1926   };
   1927   /** @type {Record<string,string>} */
   1928   const editProducers = {
   1929     'src/routes/sell/+page.svelte':
   1930       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1931     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1932       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787',
   1933     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1934       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1935     'src/lib/components/ListingEditor.svelte':
   1936       '3b1d6248c256ce02a668a2c92654816dd0c2659b7b430d5e1d3aeba6f9326bfa',
   1937     'src/lib/publishing/listing-editor.ts':
   1938       'fa2c698892b820f10adc0c816641da6a2c40b5cfc3df8db2880f61659d81b4ec',
   1939     'src/lib/components/ListingReview.svelte':
   1940       'bf4e6bf0fc76fa12672fabc441e1058d73c1f281a0a560aeafbdaa2aa36f6f90',
   1941     'src/lib/publishing/editor-workflow.ts':
   1942       '5bc8827c5ff167e0974f03a87e4e9db350e42f30c511f199b785c30ad365d838',
   1943     'src/lib/components/ConflictNotice.svelte':
   1944       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
   1945     'src/lib/publishing/edit-source.ts':
   1946       '985634e4c4eb2cd12839409552b1c56cd518021d4f031166a3c1ab8c4a0e7eff'
   1947   };
   1948   /** @type {Record<string,string>} */
   1949   const revisionProducers = {
   1950     'src/routes/sell/+page.svelte':
   1951       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1952     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1953       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787',
   1954     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1955       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1956     'src/lib/components/ListingEditor.svelte':
   1957       'f0f19095619b4b4ab961ac58af86fd0c8e92f2034a55173382929894fe36bd6a',
   1958     'src/lib/publishing/listing-editor.ts':
   1959       '03e79904e6eb2dff06067a2e42c8d97b7081f7845221d4804649e9cb7df09f1f',
   1960     'src/lib/components/ListingReview.svelte':
   1961       '311d6bafb883f170faa8962698d5cafd4cca7b4a7237a6eca671eb1f19379a99',
   1962     'src/lib/publishing/editor-workflow.ts':
   1963       '0f8d718bbdad6697a8f9b519d8eafc80ca415e1d8ce245a3507111cc080f23ef',
   1964     'src/lib/components/ConflictNotice.svelte':
   1965       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
   1966     'src/lib/publishing/edit-source.ts':
   1967       'bd0850df99dc0511fc0f9aa8bbb2526cab7a17ada9fd4d60464d5e3c9344811a',
   1968     'src/lib/publishing/prepare-listing.ts':
   1969       '0c396643de10d31fb8c28ef46386c3b54f331ddf1e784955139b2f834fce11ed',
   1970     'src/lib/publishing/new-listing-readiness.ts':
   1971       '46f4e89b435e732439add225166e80799f192a4f95ff5d8236a66b8614ac4172',
   1972     'src/lib/runtime/public-runtime.ts':
   1973       '8d2b840e94448b55642b1481d12785ed76d326735a4461e9795f57a98e8d2530',
   1974     'src/lib/persistence/public-publications.ts':
   1975       '58c3c230280616415d03020e0e4de6880afb754544fae205ae03d4a437c0424f',
   1976     'src/lib/persistence/quota.ts':
   1977       'c5332782042fa2561b237c8fd1f0c0c930390346c1f31f9b075dd9a0eacdf7e1',
   1978     'src/lib/publishing/revise-listing.ts':
   1979       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
   1980     'src/lib/publishing/mark-sold.ts':
   1981       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
   1982     'src/lib/components/ConfirmPanel.svelte':
   1983       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
   1984     'src/lib/nostr/listing-publisher.ts':
   1985       '1d7e1f99fe393626a3dda6796867be0d52ce4bcd064c185c9f4b3a24290183e2'
   1986   };
   1987   /** @type {Record<string,string>} */
   1988   const withdrawalProducers = {
   1989     'src/routes/sell/+page.svelte':
   1990       '97f22f9a0309621e9acb5f1b328d3376bc9c5affbe5a7ea1b85ece76097b9c08',
   1991     'src/routes/selling/drafts/[draftId=local_id]/+page.svelte':
   1992       '1df59a753fbef2bc2ebf77890a79cbd3d7a5bb0dcef34c219df1b5e8043cf787',
   1993     'src/routes/products/[naddr=naddr]/edit/+page.svelte':
   1994       '09c3a6bde766045319cd36a00a82ca565f9f3b5cd5322982be9482836f312998',
   1995     'src/lib/components/ListingEditor.svelte':
   1996       '060f4863f6f4f2a4fb1471bb0d5eeedf31ab13b5c83d894f47757cf5a68099e6',
   1997     'src/lib/publishing/listing-editor.ts':
   1998       'fe067bc1609f783aeee8ad5a0f3178cff50cae81085377b2bbec7874b5f4349d',
   1999     'src/lib/components/ListingReview.svelte':
   2000       'deee41ca6c60b346afc7ed5e62e3101ee03b04fdd2a9aa8fa3f3dec585e3863b',
   2001     'src/lib/publishing/editor-workflow.ts':
   2002       'c87e4f46793fd9beeedb5027cdbb06d533cf7e5df7378c030355c4608738e0f6',
   2003     'src/lib/components/ConflictNotice.svelte':
   2004       'f0a71cab9e8f1f12a3421402e3bc3b2f96c2ddb35ad8949c6e9599b850c3a17c',
   2005     'src/lib/publishing/edit-source.ts':
   2006       '1432a8ada3d822cc9f634d40a7847a4d6d02c202ecfe59a9634543d57202f56b',
   2007     'src/lib/publishing/prepare-listing.ts':
   2008       '00b922e8b0bfc73cf5ac59857472e8dd627c8df62d28f1c646c5d7c76ce5ede9',
   2009     'src/lib/publishing/new-listing-readiness.ts':
   2010       'ba76be4d7309b1a6beb0c8e0f19b89f2595049e94709486b79eff38953e68893',
   2011     'src/lib/runtime/public-runtime.ts':
   2012       '8d2b840e94448b55642b1481d12785ed76d326735a4461e9795f57a98e8d2530',
   2013     'src/lib/persistence/public-publications.ts':
   2014       'be99c4114fb32880e0a9b48ab3593645532853fb4166fb506f398416db41a194',
   2015     'src/lib/persistence/quota.ts':
   2016       'e261a7c9c81d0685021663639b1bb543192e65580edb64fa58ccbb9a4a04cc95',
   2017     'src/lib/publishing/revise-listing.ts':
   2018       '1f03d43f460feb12a02489226131ec2f7b95df5f534fcbb0b49ccc686a1b0c06',
   2019     'src/lib/publishing/mark-sold.ts':
   2020       '80beaf8ad38b396154d5556e50e2cf5cd9f327bcdbc05f0db1ce190bf29f7234',
   2021     'src/lib/components/ConfirmPanel.svelte':
   2022       '9e25745303bdf408a14df5153a28e9579bfa019ab083225acb7d874e93a17d59',
   2023     'src/lib/nostr/listing-publisher.ts':
   2024       '10032c32482a766158d8a69027056e6a822a16b5f68ab9754b0f1cf42d0608f9',
   2025     'src/lib/publishing/withdraw-listing.ts':
   2026       '168064a7ce271f8342c7b7cbbf996bd96f8968e405eee0bb3e3dba1bdaf346fb',
   2027     'src/lib/publishing/sign-listing.ts':
   2028       'a1c123c40a190699b57378c5569fcbbfbc5e23ab4d4c0df499ca40ff82fe1a10',
   2029     'src/lib/persistence/artifact-records.ts':
   2030       'e3b235c5aaf19558b557feb6e17a35b2b1de39c1aa49cb2ef14084d670138d16',
   2031     'src/lib/publishing/listing-operation-view.ts':
   2032       '07f94625c0231a62f25c1db98c9459f8939c32505453633b58d2f72a894858ce',
   2033     'src/lib/components/OperationStatus.svelte':
   2034       'ca3a007899996f6331fadd2ead4c55dc7116c273626ecd2f36bcd4701065ae5f',
   2035     'src/lib/runtime/effect-ownership.ts':
   2036       'a181d1fa8b18d45b3e143de19af4dfdaab91779ac44df972d22e7fada645778b',
   2037     'src/lib/nostr/public-pool.ts':
   2038       '220b0b9ca0cea20c1a2e1a08a82fc4b68a1ba4dd6ffff1f45154b54735233806',
   2039     'src/lib/persistence/public-receipts.ts':
   2040       '10743a9d855c4f573eb42ca90a13c550dee9620e4ad3aac322858c696152e564'
   2041   };
   2042   let historical = true,
   2043     current = true,
   2044     reviewed = true,
   2045     editing = true,
   2046     revising = true;
   2047   for (const [name, pin] of Object.entries(producers)) {
   2048     const bytes = await readOwned(web, name);
   2049     publicText(bytes);
   2050     const actual = createHash('sha256').update(bytes).digest('hex');
   2051     historical = historical && actual === pin;
   2052     current = current && actual === continuity[name];
   2053     reviewed = reviewed && actual === reviewProducers[name];
   2054     editing = editing && actual === editProducers[name];
   2055     revising = revising && actual === revisionProducers[name];
   2056   }
   2057   if (reviewed) {
   2058     for (const name of [
   2059       'src/lib/components/ListingReview.svelte',
   2060       'src/lib/publishing/editor-workflow.ts'
   2061     ]) {
   2062       const bytes = await readOwned(web, name);
   2063       publicText(bytes);
   2064       reviewed =
   2065         reviewed &&
   2066         createHash('sha256').update(bytes).digest('hex') ===
   2067           reviewProducers[name];
   2068     }
   2069   }
   2070   if (editing) {
   2071     for (const name of [
   2072       'src/lib/components/ListingReview.svelte',
   2073       'src/lib/publishing/editor-workflow.ts',
   2074       'src/lib/components/ConflictNotice.svelte',
   2075       'src/lib/publishing/edit-source.ts'
   2076     ]) {
   2077       const bytes = await readOwned(web, name);
   2078       publicText(bytes);
   2079       editing =
   2080         editing &&
   2081         createHash('sha256').update(bytes).digest('hex') ===
   2082           editProducers[name];
   2083     }
   2084   }
   2085   if (revising) {
   2086     for (const name of [
   2087       'src/lib/components/ListingReview.svelte',
   2088       'src/lib/publishing/editor-workflow.ts',
   2089       'src/lib/components/ConflictNotice.svelte',
   2090       'src/lib/publishing/edit-source.ts',
   2091       'src/lib/publishing/prepare-listing.ts',
   2092       'src/lib/publishing/new-listing-readiness.ts',
   2093       'src/lib/runtime/public-runtime.ts',
   2094       'src/lib/persistence/public-publications.ts',
   2095       'src/lib/persistence/quota.ts',
   2096       'src/lib/publishing/revise-listing.ts',
   2097       'src/lib/publishing/mark-sold.ts',
   2098       'src/lib/components/ConfirmPanel.svelte',
   2099       'src/lib/nostr/listing-publisher.ts'
   2100     ]) {
   2101       const bytes = await readOwned(web, name);
   2102       publicText(bytes);
   2103       revising =
   2104         revising &&
   2105         createHash('sha256').update(bytes).digest('hex') ===
   2106           revisionProducers[name];
   2107     }
   2108   }
   2109   let withdrawing = publicText(
   2110     await readOwned(web, 'src/lib/components/ListingEditor.svelte')
   2111   ).includes('Request removal');
   2112   if (withdrawing)
   2113     for (const [name, pin] of Object.entries(withdrawalProducers)) {
   2114       const bytes = await readOwned(web, name);
   2115       publicText(bytes);
   2116       withdrawing =
   2117         withdrawing &&
   2118         (createHash('sha256').update(bytes).digest('hex') === pin ||
   2119           ([
   2120             'src/lib/config/operation-flags.ts',
   2121             'src/lib/runtime/capabilities.ts',
   2122             'src/lib/components/AppShell.svelte',
   2123             'src/lib/components/ListingEditor.svelte',
   2124             'src/lib/components/MessageComposer.svelte',
   2125             'src/lib/publishing/prepare-listing.ts',
   2126             'src/lib/nostr/listing-publisher.ts',
   2127             'src/lib/publishing/resume-listing.ts',
   2128             'src/lib/messaging/inbox-setup.ts',
   2129             'src/lib/messaging/inbox-setup-operation.ts',
   2130             'src/lib/messaging/inbox-setup-view.ts',
   2131             'src/lib/messaging/reply-controller.ts',
   2132             'src/lib/messaging/product-request-controller.ts',
   2133             'src/lib/nostr/inbox-preference-publication.ts'
   2134           ].includes(name) &&
   2135             (await operationalFlagsAdmission(web))) ||
   2136           (name === 'src/lib/runtime/public-runtime.ts' &&
   2137             (await publicHidingAdmission(web))) ||
   2138           (name === 'src/lib/persistence/quota.ts' &&
   2139             (await privacyDataAdmission(web))));
   2140     }
   2141   if (withdrawing) return 'owned-withdrawal';
   2142   if (revising) return 'owned-revision';
   2143   if (editing) return 'edit-source';
   2144   if (!historical && !current && !reviewed)
   2145     throw new Error('Invalid owned listing editor source');
   2146   if (reviewed) return 'review';
   2147   if (current) return 'continuity';
   2148   return true;
   2149 }
   2150 /** @param {string} web */
   2151 async function inboxSetupAdmission(web) {
   2152   const gate = await readOwned(web, 'src/lib/components/AccountGate.svelte');
   2153   if (!gate.toString().includes("'./InboxSetup.svelte'")) return false;
   2154   const producers = {
   2155     'src/lib/components/InboxSetup.svelte':
   2156       'd718e9ee2005af0be358fb3c3a051beb6d71568a81e2d43758bdec80edc959f6',
   2157     'src/lib/messaging/inbox-setup-view.ts':
   2158       '4ec9025232bb1355fef1ba039b46ce0a2be10e02e348e1b4eaadc3d1f3c2fd84',
   2159     'src/lib/runtime/view-context.ts':
   2160       'e2329113e29db35e983270217c47d38a44d4e0491fd710395e008786b5ae7033'
   2161   };
   2162   for (const [name, pin] of Object.entries(producers)) {
   2163     const bytes = await readOwned(web, name);
   2164     publicText(bytes);
   2165     if (
   2166       createHash('sha256').update(bytes).digest('hex') !== pin &&
   2167       !(
   2168         name === 'src/lib/messaging/inbox-setup-view.ts' &&
   2169         (await operationalFlagsAdmission(web))
   2170       )
   2171     )
   2172       throw new Error('Invalid owned inbox compiler source');
   2173   }
   2174   return true;
   2175 }
   2176 // The historical inbox compiler may consume this exact current shared storage
   2177 // owner. Both producer identities are required; no old view pin is refreshed.
   2178 /** @param {string} web */
   2179 async function inboxProbeStorageAdmission(web) {
   2180   const producers = {
   2181     'src/lib/messaging/inbox-access-check.ts':
   2182       '4245812c94b80ef39a1107d6c5c65b8d5775bedc9d5762db802e79a8d4d63c83',
   2183     'src/lib/messaging/inbox-access-controller.ts':
   2184       '5b8ecea98a087f6038f8e0d782f0028a5c899bdf756445b725f1da5761d8bc98',
   2185     'src/lib/persistence/inbox-envelope-repository.ts':
   2186       'beb7eeef35be8b81ff03c9080e780528e37f1cd5c0be4f7b32575b1e60994bd3',
   2187     'src/lib/nostr/inbox-ingress.ts':
   2188       'dab2e6be2e10c1194008957a7015d22907f08201f95c5f4824ace4b98c1b89c2',
   2189     'src/lib/messaging/inbox-sync.ts':
   2190       '1a161fc95756ce2ae8fe7fceb5906d502f84cb1ae32834bb16791c408e1a775a',
   2191     'src/lib/messaging/history-pagination.ts':
   2192       '25218db4f7048311156b730634874108c1f224ca1dc80aa7041743fbaf6c3919',
   2193     'src/lib/persistence/private-records.ts':
   2194       '821ef96740cf644bff4ffe5c7816c6aa097aa419bd16b8b301809b963294dafe',
   2195     'src/lib/persistence/private-storage.ts':
   2196       '9cdac5a1f00678d83bdf4a9b7bfb7c8bd04dc234afb140fc19e0156ad4a064a3',
   2197     'src/lib/persistence/inbox-probes.ts':
   2198       '2e623973b9885ef20a85ee10229c634251719931afc20e05b118b5e9748a2ba3',
   2199     'src/lib/persistence/inbox-probe-cleanup.ts':
   2200       'bfc24be3530471cccd01d387ed2b38a6534eb6493ce850ba9711cc3cfa77e6d9',
   2201     'src/lib/messaging/inbox-access-qualification.ts':
   2202       '769e849796486f6845850a2215775bdfb4d37df4758d52261da38709cdd445d5'
   2203   };
   2204   for (const [name, pin] of Object.entries(producers)) {
   2205     const bytes = await readOwned(web, name);
   2206     publicText(bytes);
   2207     if (createHash('sha256').update(bytes).digest('hex') !== pin)
   2208       throw new Error('Invalid owned probe storage source');
   2209   }
   2210   return true;
   2211 }
   2212 /** @param {string} web */
   2213 async function inboxPresentationAdmission(web) {
   2214   const route = await readOwned(web, 'src/routes/messages/+page.svelte');
   2215   if (!route.toString().includes("'../../lib/components/InboxStatus.svelte'"))
   2216     return false;
   2217   const producers = {
   2218     'src/routes/messages/+page.svelte':
   2219       '8279a92770f38858e197e790839bc98b4d7889214ebecdf47e542d632afbc84f',
   2220     'src/lib/components/InboxStatus.svelte':
   2221       '29f17df1ccece671ea2ba57578dc028fa541ce924e1cdc4b3e7753da500da53f',
   2222     'src/lib/messaging/inbox-view.ts':
   2223       'f725d1e122550232efa52b26139d3047d3bbfd6d3d11b1ef0a110b5e4b4410dc',
   2224     'src/lib/messaging/inbox-sync.ts':
   2225       '1a161fc95756ce2ae8fe7fceb5906d502f84cb1ae32834bb16791c408e1a775a',
   2226     'src/lib/messaging/inbox-setup-view.ts':
   2227       '4ec9025232bb1355fef1ba039b46ce0a2be10e02e348e1b4eaadc3d1f3c2fd84',
   2228     'src/lib/messaging/decryption-queue.ts':
   2229       '07661a883ee360e9fd7bd411893d637fd6b4b70aecb20101b826fe41b7ca4810',
   2230     'src/lib/components/ConversationRow.svelte':
   2231       'c5d0926ac9cdda18a6befe365227dfe62405f71598f59964ff36af9a0e85d743',
   2232     'src/lib/messaging/inbox-list.ts':
   2233       '9cc82877bfa8dbb2a7fa41bceb842793349416271f19569f49fdd5cfc1de07e5',
   2234     'src/lib/components/ConversationThread.svelte':
   2235       'ae59e6c06c0c5a86a58f49abed0ac9702631a694605b2c6686dfa65db0359080',
   2236     'src/lib/components/MessageItem.svelte':
   2237       '5c9af10ece18deeddd85e11453239c2a0b8e741cb84529e15c4ad87864704517',
   2238     'src/lib/messaging/conversation-thread.ts':
   2239       '7367f0e6d96a9f249514f66c2459274e856eb83462523e37264d4cd97d2e36d1',
   2240     'src/lib/persistence/private-storage.ts':
   2241       '66bab9a0a0a699b70ecba75c002ac0de20a84f3d015f5caefbe1697d0f6456bf',
   2242     'src/routes/messages/[conversationId=local_id]/+page.svelte':
   2243       'b06c6189adee80b68bc6657fa0e8504551fe9a8b1655a6d81807ebee9930a5e7',
   2244     'src/lib/components/MessageComposer.svelte':
   2245       'bc8ac0e2123b60957f1c289acbb2b8740e171097029f640f657cd79f5aa8423b',
   2246     'src/lib/messaging/reply-controller.ts':
   2247       'c13f1395b5317febcd23396babbcc116065ff96e8cbeb29c8eadfdfc14e45c2d',
   2248     'src/lib/messaging/rumor-plan.ts':
   2249       'b622889e96f911501524cd86f9fca9f2207ce853767494fb30799b00ae8275ed',
   2250     'src/lib/persistence/private-send-reservations.ts':
   2251       '5a57522fdb5acabecf836fb8d642a2adfb4bc7e041843b38fd1b96b673b3942d',
   2252     'src/lib/messaging/send-identity.ts':
   2253       'cc840afbf155e18030bea9b475884ca3e0068b79ef3da1459b661fe2822499df',
   2254     'src/lib/components/ConversationOptions.svelte':
   2255       'a33d9ffb13e28ce985799fa69342c8fa63816da70e1f9383d4e8e82f5a393c6d',
   2256     'src/lib/messaging/cited-product.ts':
   2257       'b4a43fad9b020cf647350350e5d0195df9a80d772ab6910e0e9fb8c11b4b0e48',
   2258     'src/lib/nostr/enquiry-references.ts':
   2259       'a17175337ee53279f898a7c6fa1af7e77ad26c0d2c0da46f26a9766fa701d365'
   2260   };
   2261   for (const [name, pin] of Object.entries(producers)) {
   2262     const bytes = await readOwned(web, name);
   2263     publicText(bytes);
   2264     if (
   2265       createHash('sha256').update(bytes).digest('hex') !== pin &&
   2266       !(
   2267         name === 'src/lib/persistence/private-storage.ts' &&
   2268         (await inboxProbeStorageAdmission(web))
   2269       ) &&
   2270       !(await privateBlockingAdmission(web))
   2271     )
   2272       throw new Error('Invalid owned inbox presentation source');
   2273   }
   2274   return true;
   2275 }
   2276 /** @param {string} webDirectory */
   2277 export async function auditOutput(webDirectory) {
   2278   const web = path.resolve(webDirectory);
   2279   if (path.basename(web) !== 'web' || (await realpath(web)) !== web)
   2280     throw new Error('Output audit requires the owned web directory');
   2281   // Pure derivation: auditing must not repair or overwrite poisoned metadata.
   2282   const gitEnv = Object.fromEntries(
   2283     Object.entries(process.env).filter(([key]) => !key.startsWith('GIT_'))
   2284   );
   2285   try {
   2286     execFileSync(
   2287       'git',
   2288       [
   2289         '-C',
   2290         path.dirname(web),
   2291         'check-ignore',
   2292         '-q',
   2293         '--',
   2294         'web/static/build-info.json'
   2295       ],
   2296       { env: gitEnv, stdio: 'pipe' }
   2297     );
   2298   } catch {
   2299     throw new Error('Generated public provenance must be ignored');
   2300   }
   2301   const expectedMetadata = Buffer.from(
   2302     JSON.stringify(await deriveBuildInfo(web), null, 2) + '\n'
   2303   );
   2304   const generated = await readOwned(web, 'static/build-info.json');
   2305   equal(generated, expectedMetadata, 'Stale or nonpublic generated provenance');
   2306   const client = await inventory(path.join(web, '.svelte-kit/output/client'));
   2307   const pages = await inventory(
   2308     path.join(web, '.svelte-kit/output/prerendered/pages')
   2309   );
   2310   const output = await inventory(path.join(web, 'build'));
   2311   const manifestBytes = client.get('.vite/manifest.json');
   2312   if (!manifestBytes) throw new Error('Missing compiler manifest');
   2313   const manifest = parse(publicText(manifestBytes));
   2314   objectKeys(manifest, Object.keys(manifest));
   2315   // Exact source-owned search route admission; root-only controlled consumers
   2316   // retain their original compiler shape. Source ancestry/link bounds also apply.
   2317   let hasSearch = false;
   2318   try {
   2319     await readOwned(web, 'src/routes/search/+page.svelte');
   2320     hasSearch = true;
   2321   } catch (error) {
   2322     if (!(error instanceof Error && 'code' in error && error.code === 'ENOENT'))
   2323       throw error;
   2324   }
   2325   const fullRouteSources = [
   2326     'sell/+page.svelte',
   2327     'selling/+page.svelte',
   2328     'selling/drafts/[draftId=local_id]/+page.svelte',
   2329     'products/[naddr=naddr]/+page.svelte',
   2330     'products/[naddr=naddr]/edit/+page.svelte',
   2331     'messages/+page.svelte',
   2332     'messages/[conversationId=local_id]/+page.svelte',
   2333     'about/+page.svelte',
   2334     'privacy/+page.svelte'
   2335   ];
   2336   let presentRoutes = 0;
   2337   for (const name of fullRouteSources) {
   2338     try {
   2339       await readOwned(web, 'src/routes/' + name);
   2340       presentRoutes++;
   2341     } catch (error) {
   2342       if (!(
   2343         error instanceof Error &&
   2344         'code' in error &&
   2345         error.code === 'ENOENT'
   2346       ))
   2347         throw error;
   2348     }
   2349   }
   2350   const hasFullRoutes = presentRoutes !== 0;
   2351   if (hasFullRoutes) {
   2352     if (presentRoutes !== fullRouteSources.length || !hasSearch)
   2353       throw new Error('Undeclared compiler module: incomplete route source');
   2354     for (const name of [
   2355       'products/[naddr=naddr]/+page.ts',
   2356       'products/[naddr=naddr]/edit/+page.ts',
   2357       'selling/drafts/[draftId=local_id]/+page.ts',
   2358       'messages/[conversationId=local_id]/+page.ts'
   2359     ])
   2360       await readOwned(web, 'src/routes/' + name);
   2361     for (const name of [
   2362       'src/params.ts',
   2363       'src/routes/+error.svelte',
   2364       'src/lib/components/AccountGate.svelte'
   2365     ])
   2366       await readOwned(web, name);
   2367   }
   2368   const hasOperationalFlags =
   2369     hasFullRoutes && (await operationalFlagsAdmission(web));
   2370   const hasPrivacyData = hasFullRoutes && (await privacyDataAdmission(web));
   2371   const hasSupportReporting =
   2372     hasFullRoutes && (await supportReportingAdmission(web));
   2373   const hasPrivateBlocking =
   2374     hasFullRoutes && (await privateBlockingAdmission(web));
   2375   const hasPublicHiding = hasFullRoutes && (await publicHidingAdmission(web));
   2376   const hasPublicRuntime = await hasOwnedPublicRuntime(web);
   2377   if (hasPublicRuntime && !hasFullRoutes)
   2378     throw new Error('Incomplete owned root runtime routes');
   2379   const hasSearchPresentation =
   2380     hasSearch && hasPublicRuntime && (await searchPresentationAdmission(web));
   2381   const hasProductPresentation =
   2382     hasFullRoutes &&
   2383     hasPublicRuntime &&
   2384     (await productPresentationAdmission(web));
   2385   const hasProductRequest = hasProductPresentation === 'request';
   2386   const hasProductEnquiry =
   2387     hasProductRequest || hasProductPresentation === 'enquiry';
   2388   const hasPreferencePublication =
   2389     hasPublicRuntime && (await preferencePublicationAdmission(web));
   2390   const hasListingPublication =
   2391     hasPreferencePublication && (await listingPublicationAdmission(web));
   2392   const identityViewCompilerModule = hasListingPublication
   2393     ? 'CapabilityGate'
   2394     : 'view-context';
   2395   const hasInboxSetup =
   2396     hasFullRoutes &&
   2397     hasPublicRuntime === 'public_identity' &&
   2398     (await inboxSetupAdmission(web));
   2399   const hasInboxPresentation =
   2400     hasInboxSetup && (await inboxPresentationAdmission(web));
   2401   const hasListingEditor = hasFullRoutes && (await listingEditorAdmission(web));
   2402   if (hasListingEditor && !(hasListingPublication && hasInboxSetup))
   2403     throw new Error('Invalid owned listing editor runtime authority');
   2404   const hasSellingWorkspace =
   2405     hasFullRoutes && (await sellingWorkspaceAdmission(web));
   2406   if (hasSellingWorkspace && hasListingEditor !== 'owned-withdrawal')
   2407     throw new Error('Invalid owned selling workspace activation');
   2408   const hasListingRevision =
   2409     hasListingEditor === 'owned-revision' ||
   2410     hasListingEditor === 'owned-withdrawal';
   2411   const hasListingEdit =
   2412     hasListingEditor === 'edit-source' || hasListingRevision;
   2413   const hasListingReview = hasListingEditor === 'review' || hasListingEdit;
   2414   const hasListingContinuity =
   2415     hasListingEditor === 'continuity' || hasListingReview;
   2416   const identityCompilerModule = hasListingEditor
   2417     ? 'view-context'
   2418     : hasInboxSetup
   2419       ? 'public-runtime'
   2420       : hasPreferencePublication
   2421         ? 'identity-session'
   2422         : 'heads';
   2423   // Admit compiler-owned module identities, not arbitrary extensions/copy roots.
   2424   const names = new Set([
   2425     'entry/app',
   2426     'entry/start',
   2427     'entry/payload',
   2428     'nodes/0',
   2429     'nodes/1',
   2430     'nodes/2',
   2431     'error-template',
   2432     'preload-helper',
   2433     'client',
   2434     'client.svelte',
   2435     'client-entry',
   2436     'state',
   2437     'Button'
   2438   ]);
   2439   if (hasSearch) {
   2440     names.add('nodes/3');
   2441     names.add('routes');
   2442   }
   2443   if (hasFullRoutes) {
   2444     for (let index = 4; index <= 12; index++) names.add('nodes/' + index);
   2445     for (const name of [
   2446       'AccountGate',
   2447       'references',
   2448       'legacy',
   2449       ...(hasPublicRuntime === 'public_identity' ? [] : ['rolldown-runtime']),
   2450       'shared-errors'
   2451     ])
   2452       names.add(name);
   2453   }
   2454   if (hasPublicRuntime)
   2455     for (const name of [
   2456       'public-key',
   2457       ...(hasSearchPresentation ? ['Disclosure', 'navigation'] : ['dist']),
   2458       'negentropy',
   2459       ...(hasPublicRuntime === 'public_identity'
   2460         ? [identityViewCompilerModule, identityCompilerModule]
   2461         : ['budgets'])
   2462     ])
   2463       names.add(name);
   2464   if (hasProductPresentation) names.add('publishers');
   2465   if (hasInboxSetup) names.add('private-handles');
   2466   if (hasProductEnquiry)
   2467     for (const name of hasProductRequest
   2468       ? ['inbox-view', 'MessageComposer']
   2469       : ['inbox-view', 'inbox-setup-view', 'CapabilityGate'])
   2470       names.add(name);
   2471   if (hasInboxPresentation)
   2472     for (const name of hasProductRequest
   2473       ? ['InboxStatus', 'InboxSetup', 'read']
   2474       : ['InboxStatus', 'InboxSetup', 'read', 'resolve-head'])
   2475       names.add(name);
   2476   if (hasListingEditor)
   2477     for (const name of ['ListingEditor', 'view-context', 'public-runtime'])
   2478       names.add(name);
   2479   if (hasListingContinuity) {
   2480     names.clear();
   2481     for (const name of [
   2482       'entry/app',
   2483       'nodes/0',
   2484       'nodes/1',
   2485       'nodes/10',
   2486       'nodes/11',
   2487       'nodes/12',
   2488       'nodes/2',
   2489       'nodes/3',
   2490       'nodes/4',
   2491       'nodes/5',
   2492       'nodes/6',
   2493       'nodes/7',
   2494       'nodes/8',
   2495       'nodes/9',
   2496       'error-template',
   2497       'MessageComposer',
   2498       'ListingEditor',
   2499       'preload-helper',
   2500       'Disclosure',
   2501       'InboxStatus',
   2502       'inbox-view',
   2503       'public-key',
   2504       'routes',
   2505       'Button',
   2506       'client',
   2507       'InboxSetup',
   2508       'legacy',
   2509       'navigation',
   2510       'shared-errors',
   2511       'AccountGate',
   2512       'read',
   2513       'client.svelte',
   2514       'publishers',
   2515       'CapabilityGate',
   2516       'public-runtime',
   2517       'SearchForm',
   2518       'state',
   2519       'references',
   2520       'client-entry',
   2521       'entry/start',
   2522       'entry/payload',
   2523       'negentropy'
   2524     ])
   2525       names.add(name);
   2526   }
   2527   if (hasListingEdit) names.add('resolve-head');
   2528   if (hasListingRevision) {
   2529     for (const name of ['read', 'public-key', 'resolve-head'])
   2530       names.delete(name);
   2531     names.add('rolldown-runtime');
   2532   }
   2533   if (hasSellingWorkspace) {
   2534     names.delete('AccountGate');
   2535     names.add('OperationStatus');
   2536   }
   2537   if (hasPublicHiding) {
   2538     names.delete('rolldown-runtime');
   2539     names.add('local-public-hides');
   2540     names.add('public-key');
   2541   }
   2542   if (hasPrivateBlocking) {
   2543     names.delete('local-public-hides');
   2544     names.add('local-private-blocks');
   2545     names.add('private-session');
   2546   }
   2547   if (hasSupportReporting) {
   2548     names.add('ReportPreview');
   2549     names.add('navigation-url');
   2550   }
   2551   if (hasPrivacyData) names.add('SupportLink');
   2552   if (hasOperationalFlags) {
   2553     names.add('capabilities');
   2554     // The exact pinned probe-cleanup source cycle joins these shared owners.
   2555     // Admit its actual current compiler graph, not arbitrary extra modules.
   2556     names.delete('private-session');
   2557     names.delete('public-key');
   2558     names.add('rolldown-runtime');
   2559   }
   2560   const admitted = new Map([['build-info.json', expectedMetadata]]);
   2561   const seen = new Set();
   2562   for (const [key, record] of Object.entries(manifest)) {
   2563     objectKeys(record, [
   2564       'file',
   2565       'name',
   2566       'src',
   2567       'isEntry',
   2568       'isDynamicEntry',
   2569       'imports',
   2570       'dynamicImports',
   2571       'css'
   2572     ]);
   2573     if (!names.has(record.name) || seen.has(record.name))
   2574       throw new Error('Undeclared compiler module');
   2575     seen.add(record.name);
   2576     const generatedModule = hasFullRoutes
   2577       ? /^\.svelte-kit\/generated\/build\/(?:client-optimized\/(?:app|nodes\/(?:[0-9]|1[012]))|shared\/error-template)\.js$/
   2578       : hasSearch
   2579         ? /^\.svelte-kit\/generated\/build\/(?:client-optimized\/(?:app|nodes\/[0123])|shared\/error-template)\.js$/
   2580         : /^\.svelte-kit\/generated\/build\/(?:client-optimized\/(?:app|nodes\/[012])|shared\/error-template)\.js$/;
   2581     const frameworkModule =
   2582       /^node_modules\/\.pnpm\/[^/]+\/node_modules\/@sveltejs\/kit\/src\/runtime\/client\/(?:client-entry|entry|payload)\.js$/;
   2583     if (!(
   2584       (hasPublicRuntime && key === sdkNegentropy) ||
   2585       generatedModule.test(key) ||
   2586       frameworkModule.test(key) ||
   2587       /^_[A-Za-z0-9_-]+\.js$/.test(key)
   2588     ))
   2589       throw new Error('Undeclared compiler input');
   2590     if (
   2591       record.src !== undefined &&
   2592       (record.src !== key ||
   2593         !(
   2594           generatedModule.test(key) ||
   2595           frameworkModule.test(key) ||
   2596           (hasPublicRuntime && key === sdkNegentropy)
   2597         ))
   2598     )
   2599       throw new Error('Invalid compiler source');
   2600     if (
   2601       !/^_app\/immutable\/(?:(?:entry|nodes)\/[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+|chunks\/[A-Za-z0-9_-]+)\.js$/.test(
   2602         record.file
   2603       )
   2604     )
   2605       throw new Error('Undeclared compiler output');
   2606     for (const flag of ['isEntry', 'isDynamicEntry'])
   2607       if (record[flag] !== undefined && typeof record[flag] !== 'boolean')
   2608         throw new Error('Invalid compiler flag');
   2609     for (const field of ['imports', 'dynamicImports', 'css']) {
   2610       if (
   2611         record[field] !== undefined &&
   2612         (!Array.isArray(record[field]) ||
   2613           record[field].some((item) => typeof item !== 'string') ||
   2614           new Set(record[field]).size !== record[field].length)
   2615       )
   2616         throw new Error('Invalid compiler references');
   2617     }
   2618     for (const dependency of [
   2619       ...(record.imports ?? []),
   2620       ...(record.dynamicImports ?? [])
   2621     ])
   2622       if (!Object.hasOwn(manifest, dependency))
   2623         throw new Error('Unresolved compiler import');
   2624     for (const file of [record.file, ...(record.css ?? [])]) {
   2625       safeName(file);
   2626       if (
   2627         file !== record.file &&
   2628         !/^_app\/immutable\/assets\/[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.css$/.test(
   2629           file
   2630         )
   2631       )
   2632         throw new Error('Undeclared compiler resource');
   2633       const bytes = client.get(file);
   2634       if (!bytes) throw new Error('Missing compiler output');
   2635       publicText(bytes);
   2636       const previous = admitted.get(file);
   2637       if (previous && !previous.equals(bytes))
   2638         throw new Error('Conflicting compiler output');
   2639       admitted.set(file, bytes);
   2640     }
   2641   }
   2642   equal([...seen].sort(), [...names].sort(), 'Incomplete compiler modules');
   2643   if (hasPublicRuntime && !hasListingContinuity) {
   2644     const records = Object.entries(manifest);
   2645     /** @param {string} name */
   2646     function requiredRecord(name) {
   2647       const entry = records.find(([, record]) => record.name === name);
   2648       if (!entry) throw new Error('Incomplete owned SDK compiler module');
   2649       return entry;
   2650     }
   2651     const dist = requiredRecord(
   2652       hasInboxSetup
   2653         ? 'public-runtime'
   2654         : hasSearchPresentation
   2655           ? 'Disclosure'
   2656           : 'dist'
   2657     );
   2658     const root = requiredRecord('nodes/0')[1];
   2659     const [budgetKey, budget] = requiredRecord(
   2660       hasPublicRuntime === 'public_identity' ? 'Button' : 'budgets'
   2661     );
   2662     if (
   2663       !/^_[A-Za-z0-9_-]+\.js$/.test(budgetKey) ||
   2664       Object.keys(budget).some(
   2665         (field) =>
   2666           !(
   2667             hasPublicRuntime === 'public_identity'
   2668               ? ['file', 'name', 'imports']
   2669               : ['file', 'name']
   2670           ).includes(field)
   2671       )
   2672     )
   2673       throw new Error('Invalid owned budgets compiler identity');
   2674     if (hasPublicRuntime === 'public_identity')
   2675       equal(
   2676         budget.imports,
   2677         [requiredRecord('client')[0]],
   2678         'Invalid owned budgets compiler dependencies'
   2679       );
   2680     for (const consumer of hasSearchPresentation
   2681       ? [
   2682           hasInboxSetup ? 'public-runtime' : 'Disclosure',
   2683           'nodes/9',
   2684           'routes',
   2685           ...(hasProductPresentation ? ['nodes/7', 'publishers'] : [])
   2686         ]
   2687       : ['nodes/0', 'routes']) {
   2688       if (!requiredRecord(consumer)[1].imports?.includes(budgetKey))
   2689         throw new Error('Invalid owned budgets compiler edge');
   2690     }
   2691     const sdk = manifest[sdkNegentropy];
   2692     if (
   2693       !sdk ||
   2694       sdk.name !== 'negentropy' ||
   2695       sdk.src !== sdkNegentropy ||
   2696       sdk.isDynamicEntry !== true ||
   2697       sdk.isEntry !== undefined ||
   2698       sdk.css !== undefined ||
   2699       sdk.dynamicImports !== undefined
   2700     )
   2701       throw new Error('Invalid owned SDK compiler identity');
   2702     equal(
   2703       sdk.imports,
   2704       hasListingEditor
   2705         ? [requiredRecord('view-context')[0], dist[0]]
   2706         : hasInboxSetup
   2707           ? [dist[0]]
   2708           : hasPublicRuntime === 'public_identity'
   2709             ? [requiredRecord(identityCompilerModule)[0], dist[0]]
   2710             : [dist[0]],
   2711       'Invalid owned SDK compiler dependency'
   2712     );
   2713     equal(
   2714       hasSearchPresentation ? dist[1].dynamicImports : root.dynamicImports,
   2715       [sdkNegentropy],
   2716       'Invalid owned root compiler edge'
   2717     );
   2718     if (hasSearchPresentation) {
   2719       if (
   2720         root.dynamicImports !== undefined ||
   2721         !root.imports?.includes(dist[0]) ||
   2722         !requiredRecord('nodes/9')[1].imports?.includes(dist[0])
   2723       )
   2724         throw new Error('Invalid owned shared compiler edge');
   2725       const navigation = requiredRecord('navigation');
   2726       if (!requiredRecord('nodes/9')[1].imports?.includes(navigation[0]))
   2727         throw new Error('Invalid owned navigation compiler edge');
   2728       equal(
   2729         navigation[1].imports,
   2730         ['entry/payload', 'shared-errors', 'client', 'client.svelte'].map(
   2731           (name) => requiredRecord(name)[0]
   2732         ),
   2733         'Invalid owned navigation compiler dependencies'
   2734       );
   2735       if (navigation[1].dynamicImports !== undefined)
   2736         throw new Error('Invalid owned navigation compiler dynamic imports');
   2737       equal(
   2738         dist[1].imports,
   2739         (hasInboxSetup
   2740           ? [
   2741               'public-key',
   2742               'preload-helper',
   2743               'private-handles',
   2744               ...(hasListingEditor ? ['view-context'] : []),
   2745               'Button'
   2746             ]
   2747           : hasPublicRuntime === 'public_identity'
   2748             ? [
   2749                 'public-key',
   2750                 'preload-helper',
   2751                 identityCompilerModule,
   2752                 'client',
   2753                 'Button'
   2754               ]
   2755             : [
   2756                 'rolldown-runtime',
   2757                 'preload-helper',
   2758                 'public-key',
   2759                 'client',
   2760                 'budgets',
   2761                 ...(hasListingPublication && hasProductPresentation
   2762                   ? ['Button']
   2763                   : [])
   2764               ]
   2765         ).map((name) => requiredRecord(name)[0]),
   2766         'Invalid owned shared compiler dependencies'
   2767       );
   2768       // Historical public-only producers still compile current shared source.
   2769       // The exact HCP112 ports add only this existing, closed Button edge.
   2770       if (
   2771         hasPublicRuntime !== 'public_identity' &&
   2772         hasListingPublication &&
   2773         hasProductPresentation
   2774       ) {
   2775         const [buttonKey, button] = requiredRecord('Button');
   2776         if (
   2777           !/^_[A-Za-z0-9_-]+\.js$/.test(buttonKey) ||
   2778           Object.keys(button).some(
   2779             (field) => !['file', 'name', 'imports'].includes(field)
   2780           )
   2781         )
   2782           throw new Error('Invalid owned public-only Button compiler identity');
   2783         equal(
   2784           button.imports,
   2785           [requiredRecord('client')[0]],
   2786           'Invalid owned public-only Button compiler dependencies'
   2787         );
   2788       }
   2789       for (const [key, record] of [dist, navigation]) {
   2790         if (
   2791           !/^_[A-Za-z0-9_-]+\.js$/.test(key) ||
   2792           record.src !== undefined ||
   2793           record.isEntry !== undefined ||
   2794           record.isDynamicEntry !== undefined ||
   2795           record.css !== undefined
   2796         )
   2797           throw new Error('Invalid owned search compiler chunk');
   2798       }
   2799     }
   2800     if (hasPublicRuntime === 'public_identity') {
   2801       /** @type {[string, string[]][]} */
   2802       const identityDependencies = [
   2803         [
   2804           identityViewCompilerModule,
   2805           hasListingPublication
   2806             ? ['client', 'Button']
   2807             : hasProductRequest
   2808               ? ['public-runtime', 'client', 'Button']
   2809               : hasProductEnquiry
   2810                 ? [identityCompilerModule]
   2811                 : [
   2812                     ...(hasPreferencePublication ? [] : ['public-key']),
   2813                     identityCompilerModule,
   2814                     'client',
   2815                     'Button'
   2816                   ]
   2817         ],
   2818         [
   2819           identityCompilerModule,
   2820           hasListingEditor
   2821             ? ['public-key', 'private-handles', 'Button']
   2822             : hasInboxSetup
   2823               ? ['public-key', 'preload-helper', 'private-handles', 'Button']
   2824               : ['public-key', 'Button']
   2825         ],
   2826         ...(hasInboxSetup
   2827           ? [/** @type {[string, string[]]} */ (['private-handles', []])]
   2828           : [])
   2829       ];
   2830       for (const [name, dependencies] of identityDependencies) {
   2831         const [key, record] = requiredRecord(name);
   2832         if (
   2833           !/^_[A-Za-z0-9_-]+\.js$/.test(key) ||
   2834           Object.keys(record).some(
   2835             (field) =>
   2836               ![
   2837                 'file',
   2838                 'name',
   2839                 'imports',
   2840                 ...(hasInboxSetup && name === 'public-runtime'
   2841                   ? ['dynamicImports']
   2842                   : [])
   2843               ].includes(field)
   2844           )
   2845         )
   2846           throw new Error('Invalid owned identity compiler chunk');
   2847         equal(
   2848           record.imports ?? [],
   2849           dependencies.map((dependency) => requiredRecord(dependency)[0]),
   2850           'Invalid owned identity compiler dependencies'
   2851         );
   2852       }
   2853       if (hasInboxSetup) {
   2854         const [disclosureKey, disclosure] = requiredRecord('Disclosure');
   2855         if (
   2856           !/^_[A-Za-z0-9_-]+\.js$/.test(disclosureKey) ||
   2857           Object.keys(disclosure).some(
   2858             (field) => !['file', 'name', 'imports'].includes(field)
   2859           )
   2860         )
   2861           throw new Error('Invalid owned inbox disclosure compiler identity');
   2862         equal(
   2863           disclosure.imports,
   2864           [requiredRecord('client')[0]],
   2865           'Invalid owned inbox disclosure compiler dependencies'
   2866         );
   2867         const [, gate] = requiredRecord('AccountGate');
   2868         equal(
   2869           gate.imports,
   2870           (hasListingPublication
   2871             ? [
   2872                 hasListingEditor ? 'view-context' : 'public-runtime',
   2873                 'client',
   2874                 identityViewCompilerModule,
   2875                 'InboxSetup'
   2876               ]
   2877             : hasProductRequest
   2878               ? ['client', identityViewCompilerModule, 'InboxSetup']
   2879               : hasProductEnquiry
   2880                 ? [
   2881                     'client',
   2882                     'CapabilityGate',
   2883                     identityViewCompilerModule,
   2884                     'InboxSetup'
   2885                   ]
   2886                 : hasInboxPresentation
   2887                   ? ['client', identityViewCompilerModule, 'InboxSetup']
   2888                   : [
   2889                       'public-key',
   2890                       'private-handles',
   2891                       'public-runtime',
   2892                       'client',
   2893                       'Button',
   2894                       identityViewCompilerModule
   2895                     ]
   2896           ).map((name) => requiredRecord(name)[0]),
   2897           'Invalid owned inbox compiler dependencies'
   2898         );
   2899         if (gate.dynamicImports !== undefined)
   2900           throw new Error('Invalid owned inbox compiler dynamic imports');
   2901       }
   2902       const [identityKey] = requiredRecord(identityViewCompilerModule);
   2903       if (
   2904         !root.imports?.includes(identityKey) ||
   2905         !requiredRecord('AccountGate')[1].imports?.includes(identityKey)
   2906       )
   2907         throw new Error('Invalid owned identity compiler consumer');
   2908     }
   2909     for (const name of hasSearchPresentation
   2910       ? ['public-key']
   2911       : ['dist', 'public-key']) {
   2912       const [key, record] = requiredRecord(name);
   2913       if (
   2914         !/^_[A-Za-z0-9_-]+\.js$/.test(key) ||
   2915         record.src !== undefined ||
   2916         record.isEntry !== undefined ||
   2917         record.isDynamicEntry !== undefined ||
   2918         record.css !== undefined
   2919       )
   2920         throw new Error('Invalid owned SDK compiler chunk');
   2921     }
   2922   }
   2923   if (hasInboxPresentation && !hasListingContinuity) {
   2924     const records = Object.entries(manifest);
   2925     const entry = (/** @type {string} */ name) => {
   2926       const row = records.find(([, r]) => r.name === name);
   2927       if (!row) throw new Error('Missing inbox compiler module');
   2928       return row;
   2929     };
   2930     /** @type {[string,string[]][]} */
   2931     const dependencies = hasListingPublication
   2932       ? [
   2933           [
   2934             'InboxStatus',
   2935             [
   2936               ...(hasListingEditor ? ['view-context'] : []),
   2937               'public-runtime',
   2938               'client',
   2939               'Button',
   2940               'navigation',
   2941               'CapabilityGate',
   2942               'InboxSetup',
   2943               'inbox-view'
   2944             ]
   2945           ],
   2946           [
   2947             'InboxSetup',
   2948             [
   2949               ...(hasListingEditor ? ['view-context'] : []),
   2950               'public-runtime',
   2951               'client',
   2952               'Button'
   2953             ]
   2954           ],
   2955           ['read', [hasListingEditor ? 'view-context' : 'public-runtime']],
   2956           ['nodes/4', ['client', 'AccountGate', 'InboxStatus']],
   2957           [
   2958             'nodes/5',
   2959             [
   2960               'public-key',
   2961               ...(hasListingEditor ? ['view-context'] : []),
   2962               'public-runtime',
   2963               'references',
   2964               'client',
   2965               'Button',
   2966               'client.svelte',
   2967               'state',
   2968               'legacy',
   2969               'inbox-view',
   2970               'InboxStatus',
   2971               'publishers',
   2972               'MessageComposer'
   2973             ]
   2974           ],
   2975           [
   2976             'inbox-view',
   2977             [
   2978               'public-key',
   2979               'private-handles',
   2980               ...(hasListingEditor ? ['view-context'] : []),
   2981               'public-runtime',
   2982               'references',
   2983               'Button',
   2984               'read'
   2985             ]
   2986           ],
   2987           [
   2988             'MessageComposer',
   2989             [
   2990               'private-handles',
   2991               ...(hasListingEditor ? ['view-context'] : []),
   2992               'public-runtime',
   2993               'references',
   2994               'client',
   2995               'Button',
   2996               'navigation',
   2997               'inbox-view',
   2998               'publishers'
   2999             ]
   3000           ],
   3001           [
   3002             'nodes/0',
   3003             [
   3004               'public-key',
   3005               ...(hasListingEditor ? ['view-context'] : []),
   3006               'public-runtime',
   3007               'client',
   3008               'Button',
   3009               'client.svelte',
   3010               'state',
   3011               'CapabilityGate',
   3012               'Disclosure'
   3013             ]
   3014           ]
   3015         ]
   3016       : hasProductRequest
   3017         ? [
   3018             [
   3019               'InboxStatus',
   3020               [
   3021                 'public-runtime',
   3022                 'client',
   3023                 'Button',
   3024                 'navigation',
   3025                 identityViewCompilerModule,
   3026                 'InboxSetup',
   3027                 'inbox-view'
   3028               ]
   3029             ],
   3030             [
   3031               'InboxSetup',
   3032               [
   3033                 'public-key',
   3034                 'private-handles',
   3035                 'public-runtime',
   3036                 'client',
   3037                 'Button',
   3038                 identityViewCompilerModule
   3039               ]
   3040             ],
   3041             ['read', ['public-runtime']],
   3042             ['nodes/4', ['client', 'AccountGate', 'InboxStatus']],
   3043             [
   3044               'nodes/5',
   3045               [
   3046                 'public-key',
   3047                 'public-runtime',
   3048                 'references',
   3049                 'client',
   3050                 'Button',
   3051                 'client.svelte',
   3052                 'state',
   3053                 identityViewCompilerModule,
   3054                 'legacy',
   3055                 'InboxSetup',
   3056                 'inbox-view',
   3057                 'InboxStatus',
   3058                 'publishers',
   3059                 'MessageComposer'
   3060               ]
   3061             ],
   3062             [
   3063               'inbox-view',
   3064               [
   3065                 'public-key',
   3066                 'private-handles',
   3067                 'public-runtime',
   3068                 'references',
   3069                 'Button',
   3070                 'InboxSetup',
   3071                 'read'
   3072               ]
   3073             ],
   3074             [
   3075               'MessageComposer',
   3076               [
   3077                 'private-handles',
   3078                 'public-runtime',
   3079                 'references',
   3080                 'client',
   3081                 'Button',
   3082                 'navigation',
   3083                 'InboxSetup',
   3084                 'inbox-view',
   3085                 'publishers'
   3086               ]
   3087             ],
   3088             [
   3089               'nodes/0',
   3090               [
   3091                 'public-key',
   3092                 'public-runtime',
   3093                 'client',
   3094                 'Button',
   3095                 'client.svelte',
   3096                 'state',
   3097                 identityViewCompilerModule,
   3098                 'Disclosure'
   3099               ]
   3100             ]
   3101           ]
   3102         : hasProductEnquiry
   3103           ? [
   3104               [
   3105                 'InboxStatus',
   3106                 [
   3107                   'public-runtime',
   3108                   'client',
   3109                   'Button',
   3110                   'navigation',
   3111                   'CapabilityGate',
   3112                   identityViewCompilerModule,
   3113                   'inbox-setup-view',
   3114                   'InboxSetup',
   3115                   'inbox-view'
   3116                 ]
   3117               ],
   3118               [
   3119                 'InboxSetup',
   3120                 [
   3121                   'public-runtime',
   3122                   'client',
   3123                   'Button',
   3124                   identityViewCompilerModule,
   3125                   'inbox-setup-view'
   3126                 ]
   3127               ],
   3128               ['read', ['public-runtime']],
   3129               ['nodes/4', ['client', 'AccountGate', 'InboxStatus']],
   3130               [
   3131                 'nodes/5',
   3132                 [
   3133                   'public-key',
   3134                   'private-handles',
   3135                   'public-runtime',
   3136                   'references',
   3137                   'client',
   3138                   'Button',
   3139                   'client.svelte',
   3140                   'navigation',
   3141                   'state',
   3142                   identityViewCompilerModule,
   3143                   'legacy',
   3144                   'inbox-setup-view',
   3145                   'inbox-view',
   3146                   'InboxStatus',
   3147                   'resolve-head'
   3148                 ]
   3149               ],
   3150               ['resolve-head', ['public-runtime', 'Button', 'read']],
   3151               [
   3152                 'inbox-view',
   3153                 [
   3154                   'public-key',
   3155                   'private-handles',
   3156                   'public-runtime',
   3157                   'references',
   3158                   'Button',
   3159                   'inbox-setup-view',
   3160                   'read'
   3161                 ]
   3162               ],
   3163               [
   3164                 'inbox-setup-view',
   3165                 [
   3166                   'public-key',
   3167                   'private-handles',
   3168                   'public-runtime',
   3169                   'Button',
   3170                   identityViewCompilerModule
   3171                 ]
   3172               ],
   3173               ['CapabilityGate', ['client', 'Button']],
   3174               [
   3175                 'nodes/0',
   3176                 [
   3177                   'public-key',
   3178                   'public-runtime',
   3179                   'client',
   3180                   'Button',
   3181                   'client.svelte',
   3182                   'state',
   3183                   'CapabilityGate',
   3184                   'Disclosure',
   3185                   identityViewCompilerModule
   3186                 ]
   3187               ]
   3188             ]
   3189           : [
   3190               [
   3191                 'InboxStatus',
   3192                 [
   3193                   'public-key',
   3194                   'private-handles',
   3195                   'public-runtime',
   3196                   'references',
   3197                   'client',
   3198                   'Button',
   3199                   'navigation',
   3200                   identityViewCompilerModule,
   3201                   'InboxSetup',
   3202                   'read'
   3203                 ]
   3204               ],
   3205               [
   3206                 'InboxSetup',
   3207                 [
   3208                   'public-key',
   3209                   'private-handles',
   3210                   'public-runtime',
   3211                   'client',
   3212                   'Button',
   3213                   identityViewCompilerModule
   3214                 ]
   3215               ],
   3216               ['read', ['public-runtime']],
   3217               ['nodes/4', ['client', 'AccountGate', 'InboxStatus']],
   3218               [
   3219                 'nodes/5',
   3220                 [
   3221                   'public-key',
   3222                   'private-handles',
   3223                   'public-runtime',
   3224                   'references',
   3225                   'client',
   3226                   'Button',
   3227                   'client.svelte',
   3228                   'navigation',
   3229                   'state',
   3230                   identityViewCompilerModule,
   3231                   'legacy',
   3232                   'InboxSetup',
   3233                   'InboxStatus',
   3234                   'resolve-head'
   3235                 ]
   3236               ],
   3237               ['resolve-head', ['public-runtime', 'Button', 'read']]
   3238             ];
   3239     for (const [name, imports] of dependencies) {
   3240       const [key, row] = entry(name);
   3241       equal(
   3242         (row.imports ?? []).toSorted(),
   3243         imports.map((value) => entry(value)[0]).sort(),
   3244         'Invalid owned inbox presentation compiler dependencies'
   3245       );
   3246       if (row.dynamicImports !== undefined)
   3247         throw new Error(
   3248           'Invalid owned inbox presentation compiler dynamic imports'
   3249         );
   3250       if (name.startsWith('nodes/')) {
   3251         if (
   3252           hasProductEnquiry &&
   3253           name === 'nodes/0' &&
   3254           (row.css?.length !== 1 ||
   3255             !/^_app\/immutable\/assets\/0\.[A-Za-z0-9_-]+\.css$/.test(
   3256               row.css[0]
   3257             ))
   3258         )
   3259           throw new Error(
   3260             'Invalid owned inbox presentation compiler entry role'
   3261           );
   3262         if (
   3263           row.src !== key ||
   3264           row.isEntry !== true ||
   3265           row.isDynamicEntry !== undefined ||
   3266           (!(hasProductEnquiry && name === 'nodes/0') && row.css !== undefined)
   3267         )
   3268           throw new Error(
   3269             'Invalid owned inbox presentation compiler entry role'
   3270           );
   3271       }
   3272       if (!name.startsWith('nodes/')) {
   3273         if (
   3274           !/^_[A-Za-z0-9_-]+\.js$/.test(key) ||
   3275           Object.keys(row).some(
   3276             (field) => !['file', 'name', 'imports'].includes(field)
   3277           )
   3278         )
   3279           throw new Error('Invalid owned inbox presentation compiler identity');
   3280       }
   3281     }
   3282   }
   3283   if (hasProductPresentation && !hasListingContinuity) {
   3284     const records = Object.entries(manifest);
   3285     const entry = (/** @type {string} */ name) => {
   3286       const row = records.find(([, r]) => r.name === name);
   3287       if (!row) throw new Error('Missing product compiler module');
   3288       return row;
   3289     };
   3290     const [publisherKey, publisher] = entry('publishers');
   3291     if (
   3292       !/^_[A-Za-z0-9_-]+\.js$/.test(publisherKey) ||
   3293       Object.keys(publisher).some(
   3294         (field) => !['file', 'name', 'imports'].includes(field)
   3295       )
   3296     )
   3297       throw new Error('Invalid owned product compiler identity');
   3298     equal(
   3299       publisher.imports,
   3300       (hasProductRequest
   3301         ? [
   3302             'public-key',
   3303             ...(hasListingEditor ? ['view-context'] : []),
   3304             'public-runtime',
   3305             'Button',
   3306             'read'
   3307           ]
   3308         : hasInboxSetup
   3309           ? [
   3310               'public-key',
   3311               identityCompilerModule,
   3312               'Button',
   3313               ...(hasInboxPresentation ? ['resolve-head'] : [])
   3314             ]
   3315           : hasPublicRuntime === 'public_identity'
   3316             ? ['public-key', identityCompilerModule, 'Disclosure', 'Button']
   3317             : ['public-key', 'Disclosure', 'budgets']
   3318       ).map((name) => entry(name)[0]),
   3319       'Invalid owned product publisher compiler dependencies'
   3320     );
   3321     equal(
   3322       entry('nodes/7')[1].imports?.toSorted(),
   3323       (hasProductRequest
   3324         ? [
   3325             'public-key',
   3326             ...(hasListingEditor ? ['view-context'] : []),
   3327             'public-runtime',
   3328             'references',
   3329             'client',
   3330             'Button',
   3331             'client.svelte',
   3332             'state',
   3333             identityViewCompilerModule,
   3334             'Disclosure',
   3335             'InboxSetup',
   3336             'MessageComposer'
   3337           ]
   3338         : hasInboxSetup
   3339           ? [
   3340               'public-key',
   3341               'references',
   3342               identityCompilerModule,
   3343               'client',
   3344               'Button',
   3345               'client.svelte',
   3346               'state',
   3347               'Disclosure',
   3348               'publishers',
   3349               ...(hasInboxPresentation ? ['resolve-head'] : []),
   3350               ...(hasProductEnquiry ? ['inbox-view'] : [])
   3351             ]
   3352           : hasPublicRuntime === 'public_identity'
   3353             ? [
   3354                 'public-key',
   3355                 'references',
   3356                 identityCompilerModule,
   3357                 'Disclosure',
   3358                 'client',
   3359                 'Button',
   3360                 'client.svelte',
   3361                 'state',
   3362                 'publishers'
   3363               ]
   3364             : [
   3365                 'rolldown-runtime',
   3366                 'references',
   3367                 'Disclosure',
   3368                 'client',
   3369                 'budgets',
   3370                 'client.svelte',
   3371                 'state',
   3372                 'Button',
   3373                 'publishers'
   3374               ]
   3375       )
   3376         .map((name) => entry(name)[0])
   3377         .sort(),
   3378       'Invalid owned product compiler dependencies'
   3379     );
   3380     equal(
   3381       entry('nodes/9')[1].imports?.toSorted(),
   3382       (hasProductRequest
   3383         ? [
   3384             ...(hasListingEditor ? ['view-context'] : []),
   3385             'public-runtime',
   3386             'references',
   3387             'client',
   3388             'Button',
   3389             'client.svelte',
   3390             'navigation',
   3391             'state',
   3392             'Disclosure',
   3393             'routes',
   3394             'publishers'
   3395           ]
   3396         : hasInboxSetup
   3397           ? [
   3398               'references',
   3399               identityCompilerModule,
   3400               'client',
   3401               'Button',
   3402               'client.svelte',
   3403               'navigation',
   3404               'state',
   3405               'Disclosure',
   3406               'routes',
   3407               'publishers',
   3408               ...(hasInboxPresentation ? ['resolve-head'] : [])
   3409             ]
   3410           : hasPublicRuntime === 'public_identity'
   3411             ? [
   3412                 'references',
   3413                 identityCompilerModule,
   3414                 'Disclosure',
   3415                 'client',
   3416                 'Button',
   3417                 'client.svelte',
   3418                 'navigation',
   3419                 'state',
   3420                 'routes',
   3421                 'publishers'
   3422               ]
   3423             : [
   3424                 'references',
   3425                 'Disclosure',
   3426                 'client',
   3427                 'budgets',
   3428                 'client.svelte',
   3429                 'navigation',
   3430                 'state',
   3431                 'Button',
   3432                 'routes',
   3433                 'publishers'
   3434               ]
   3435       )
   3436         .map((name) => entry(name)[0])
   3437         .sort(),
   3438       'Invalid owned search product compiler dependencies'
   3439     );
   3440     if (
   3441       entry('nodes/7')[1].dynamicImports !== undefined ||
   3442       entry('nodes/9')[1].dynamicImports !== undefined
   3443     )
   3444       throw new Error('Invalid owned product compiler dynamic imports');
   3445   }
   3446   if (hasListingEditor) {
   3447     // Complete measured HCP115 compiler graph, including roles and ordered
   3448     // edges for all existing consumers. Only actual compiler hashes vary.
   3449     /** @type {Record<string, unknown>} */
   3450     const expected = hasListingContinuity
   3451       ? {
   3452           'entry/app': {
   3453             file: '_app/immutable/entry/app.HASH.js',
   3454             name: 'entry/app',
   3455             src: '.svelte-kit/generated/build/client-optimized/app.js',
   3456             isEntry: true,
   3457             imports: [
   3458               'public-key',
   3459               'preload-helper',
   3460               'shared-errors',
   3461               'references'
   3462             ],
   3463             dynamicImports: [
   3464               'nodes/0',
   3465               'nodes/1',
   3466               'nodes/2',
   3467               'nodes/3',
   3468               'nodes/4',
   3469               'nodes/5',
   3470               'nodes/6',
   3471               'nodes/7',
   3472               'nodes/8',
   3473               'nodes/9',
   3474               'nodes/10',
   3475               'nodes/11',
   3476               'nodes/12',
   3477               'error-template'
   3478             ]
   3479           },
   3480           'nodes/0': {
   3481             file: '_app/immutable/nodes/0.HASH.js',
   3482             name: 'nodes/0',
   3483             src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   3484             isEntry: true,
   3485             imports: [
   3486               'public-key',
   3487               'public-runtime',
   3488               'client',
   3489               'Button',
   3490               'client.svelte',
   3491               'state',
   3492               'CapabilityGate',
   3493               'Disclosure'
   3494             ],
   3495             css: ['_app/immutable/assets/0.HASH.css']
   3496           },
   3497           'nodes/1': {
   3498             file: '_app/immutable/nodes/1.HASH.js',
   3499             name: 'nodes/1',
   3500             src: '.svelte-kit/generated/build/client-optimized/nodes/1.js',
   3501             isEntry: true,
   3502             imports: ['client', 'client.svelte', 'state', 'legacy']
   3503           },
   3504           'nodes/10': {
   3505             file: '_app/immutable/nodes/10.HASH.js',
   3506             name: 'nodes/10',
   3507             src: '.svelte-kit/generated/build/client-optimized/nodes/10.js',
   3508             isEntry: true,
   3509             imports: [
   3510               'public-key',
   3511               'client',
   3512               'Button',
   3513               'client.svelte',
   3514               'navigation',
   3515               'state',
   3516               'legacy',
   3517               'routes',
   3518               'ListingEditor'
   3519             ]
   3520           },
   3521           'nodes/11': {
   3522             file: '_app/immutable/nodes/11.HASH.js',
   3523             name: 'nodes/11',
   3524             src: '.svelte-kit/generated/build/client-optimized/nodes/11.js',
   3525             isEntry: true,
   3526             imports: ['client', 'legacy', 'AccountGate']
   3527           },
   3528           'nodes/12': {
   3529             file: '_app/immutable/nodes/12.HASH.js',
   3530             name: 'nodes/12',
   3531             src: '.svelte-kit/generated/build/client-optimized/nodes/12.js',
   3532             isEntry: true,
   3533             imports: [
   3534               'public-key',
   3535               'client',
   3536               'client.svelte',
   3537               'navigation',
   3538               'state',
   3539               'ListingEditor'
   3540             ]
   3541           },
   3542           'nodes/2': {
   3543             file: '_app/immutable/nodes/2.HASH.js',
   3544             name: 'nodes/2',
   3545             src: '.svelte-kit/generated/build/client-optimized/nodes/2.js',
   3546             isEntry: true,
   3547             imports: ['client', 'Button', 'SearchForm', 'routes']
   3548           },
   3549           'nodes/3': {
   3550             file: '_app/immutable/nodes/3.HASH.js',
   3551             name: 'nodes/3',
   3552             src: '.svelte-kit/generated/build/client-optimized/nodes/3.js',
   3553             isEntry: true,
   3554             imports: ['client', 'legacy']
   3555           },
   3556           'nodes/4': {
   3557             file: '_app/immutable/nodes/4.HASH.js',
   3558             name: 'nodes/4',
   3559             src: '.svelte-kit/generated/build/client-optimized/nodes/4.js',
   3560             isEntry: true,
   3561             imports: ['client', 'AccountGate', 'InboxStatus']
   3562           },
   3563           'nodes/5': {
   3564             file: '_app/immutable/nodes/5.HASH.js',
   3565             name: 'nodes/5',
   3566             src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   3567             isEntry: true,
   3568             imports: [
   3569               'public-key',
   3570               'public-runtime',
   3571               'references',
   3572               'client',
   3573               'Button',
   3574               'client.svelte',
   3575               'state',
   3576               'legacy',
   3577               'inbox-view',
   3578               'InboxStatus',
   3579               'publishers',
   3580               'MessageComposer'
   3581             ]
   3582           },
   3583           'nodes/6': {
   3584             file: '_app/immutable/nodes/6.HASH.js',
   3585             name: 'nodes/6',
   3586             src: '.svelte-kit/generated/build/client-optimized/nodes/6.js',
   3587             isEntry: true,
   3588             imports: ['client', 'legacy']
   3589           },
   3590           'nodes/7': {
   3591             file: '_app/immutable/nodes/7.HASH.js',
   3592             name: 'nodes/7',
   3593             src: '.svelte-kit/generated/build/client-optimized/nodes/7.js',
   3594             isEntry: true,
   3595             imports: [
   3596               'public-key',
   3597               'public-runtime',
   3598               'references',
   3599               'client',
   3600               'Button',
   3601               'client.svelte',
   3602               'state',
   3603               'CapabilityGate',
   3604               'Disclosure',
   3605               'InboxSetup',
   3606               'MessageComposer'
   3607             ]
   3608           },
   3609           'nodes/8': {
   3610             file: '_app/immutable/nodes/8.HASH.js',
   3611             name: 'nodes/8',
   3612             src: '.svelte-kit/generated/build/client-optimized/nodes/8.js',
   3613             isEntry: true,
   3614             imports: [
   3615               'public-key',
   3616               'client',
   3617               'client.svelte',
   3618               'navigation',
   3619               'state',
   3620               'ListingEditor'
   3621             ]
   3622           },
   3623           'nodes/9': {
   3624             file: '_app/immutable/nodes/9.HASH.js',
   3625             name: 'nodes/9',
   3626             src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   3627             isEntry: true,
   3628             imports: [
   3629               'public-runtime',
   3630               'references',
   3631               'client',
   3632               'Button',
   3633               'client.svelte',
   3634               'navigation',
   3635               'state',
   3636               'Disclosure',
   3637               'SearchForm',
   3638               'routes',
   3639               'publishers'
   3640             ]
   3641           },
   3642           'error-template': {
   3643             file: '_app/immutable/chunks/HASH.js',
   3644             name: 'error-template',
   3645             src: '.svelte-kit/generated/build/shared/error-template.js',
   3646             isDynamicEntry: true
   3647           },
   3648           MessageComposer: {
   3649             file: '_app/immutable/chunks/HASH.js',
   3650             name: 'MessageComposer',
   3651             imports: [
   3652               'public-key',
   3653               'public-runtime',
   3654               'references',
   3655               'client',
   3656               'Button',
   3657               'navigation',
   3658               'inbox-view',
   3659               'publishers'
   3660             ]
   3661           },
   3662           'preload-helper': {
   3663             file: '_app/immutable/chunks/HASH.js',
   3664             name: 'preload-helper'
   3665           },
   3666           Disclosure: {
   3667             file: '_app/immutable/chunks/HASH.js',
   3668             name: 'Disclosure',
   3669             imports: ['client']
   3670           },
   3671           InboxStatus: {
   3672             file: '_app/immutable/chunks/HASH.js',
   3673             name: 'InboxStatus',
   3674             imports: [
   3675               'public-runtime',
   3676               'client',
   3677               'Button',
   3678               'navigation',
   3679               'CapabilityGate',
   3680               'InboxSetup',
   3681               'inbox-view'
   3682             ]
   3683           },
   3684           'inbox-view': {
   3685             file: '_app/immutable/chunks/HASH.js',
   3686             name: 'inbox-view',
   3687             imports: [
   3688               'public-key',
   3689               'public-runtime',
   3690               'references',
   3691               'Button',
   3692               'read'
   3693             ]
   3694           },
   3695           'public-key': {
   3696             file: '_app/immutable/chunks/HASH.js',
   3697             name: 'public-key'
   3698           },
   3699           routes: {
   3700             file: '_app/immutable/chunks/HASH.js',
   3701             name: 'routes',
   3702             imports: ['public-key', 'references', 'Button']
   3703           },
   3704           Button: {
   3705             file: '_app/immutable/chunks/HASH.js',
   3706             name: 'Button',
   3707             imports: ['client']
   3708           },
   3709           ListingEditor: {
   3710             file: '_app/immutable/chunks/HASH.js',
   3711             name: 'ListingEditor',
   3712             imports: [
   3713               'public-key',
   3714               'public-runtime',
   3715               'references',
   3716               'client',
   3717               'Button',
   3718               'CapabilityGate',
   3719               'read'
   3720             ]
   3721           },
   3722           client: {
   3723             file: '_app/immutable/chunks/HASH.js',
   3724             name: 'client'
   3725           },
   3726           InboxSetup: {
   3727             file: '_app/immutable/chunks/HASH.js',
   3728             name: 'InboxSetup',
   3729             imports: ['public-runtime', 'client', 'Button']
   3730           },
   3731           legacy: {
   3732             file: '_app/immutable/chunks/HASH.js',
   3733             name: 'legacy',
   3734             imports: ['client']
   3735           },
   3736           navigation: {
   3737             file: '_app/immutable/chunks/HASH.js',
   3738             name: 'navigation',
   3739             imports: [
   3740               'entry/payload',
   3741               'shared-errors',
   3742               'client',
   3743               'client.svelte'
   3744             ]
   3745           },
   3746           'shared-errors': {
   3747             file: '_app/immutable/chunks/HASH.js',
   3748             name: 'shared-errors'
   3749           },
   3750           AccountGate: {
   3751             file: '_app/immutable/chunks/HASH.js',
   3752             name: 'AccountGate',
   3753             imports: [
   3754               'public-runtime',
   3755               'client',
   3756               'CapabilityGate',
   3757               'InboxSetup'
   3758             ]
   3759           },
   3760           read: {
   3761             file: '_app/immutable/chunks/HASH.js',
   3762             name: 'read',
   3763             imports: ['public-runtime']
   3764           },
   3765           'client.svelte': {
   3766             file: '_app/immutable/chunks/HASH.js',
   3767             name: 'client.svelte',
   3768             imports: ['entry/payload', 'shared-errors', 'client']
   3769           },
   3770           publishers: {
   3771             file: '_app/immutable/chunks/HASH.js',
   3772             name: 'publishers',
   3773             imports: ['public-key', 'public-runtime', 'Button', 'read']
   3774           },
   3775           CapabilityGate: {
   3776             file: '_app/immutable/chunks/HASH.js',
   3777             name: 'CapabilityGate',
   3778             imports: ['client', 'Button']
   3779           },
   3780           'public-runtime': {
   3781             file: '_app/immutable/chunks/HASH.js',
   3782             name: 'public-runtime',
   3783             imports: ['public-key', 'preload-helper', 'Button'],
   3784             dynamicImports: ['negentropy']
   3785           },
   3786           SearchForm: {
   3787             file: '_app/immutable/chunks/HASH.js',
   3788             name: 'SearchForm',
   3789             imports: ['client', 'Button']
   3790           },
   3791           state: {
   3792             file: '_app/immutable/chunks/HASH.js',
   3793             name: 'state',
   3794             imports: ['client.svelte']
   3795           },
   3796           references: {
   3797             file: '_app/immutable/chunks/HASH.js',
   3798             name: 'references',
   3799             imports: ['public-key']
   3800           },
   3801           'client-entry': {
   3802             file: '_app/immutable/chunks/HASH.js',
   3803             name: 'client-entry',
   3804             src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/client-entry.js',
   3805             isDynamicEntry: true,
   3806             imports: ['navigation']
   3807           },
   3808           'entry/start': {
   3809             file: '_app/immutable/entry/start.HASH.js',
   3810             name: 'entry/start',
   3811             src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/entry.js',
   3812             isEntry: true,
   3813             imports: ['entry/payload', 'preload-helper'],
   3814             dynamicImports: ['client-entry']
   3815           },
   3816           'entry/payload': {
   3817             file: '_app/immutable/entry/payload.HASH.js',
   3818             name: 'entry/payload',
   3819             src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/payload.js',
   3820             isEntry: true
   3821           },
   3822           negentropy: {
   3823             file: '_app/immutable/chunks/HASH.js',
   3824             name: 'negentropy',
   3825             src: 'node_modules/.pnpm/applesauce-relay@6.2.1_typescript@6.0.3/node_modules/applesauce-relay/dist/negentropy.js',
   3826             isDynamicEntry: true,
   3827             imports: ['public-runtime']
   3828           }
   3829         }
   3830       : {
   3831           'entry/app': {
   3832             file: '_app/immutable/entry/app.HASH.js',
   3833             name: 'entry/app',
   3834             src: '.svelte-kit/generated/build/client-optimized/app.js',
   3835             isEntry: true,
   3836             imports: [
   3837               'preload-helper',
   3838               'shared-errors',
   3839               'private-handles',
   3840               'references'
   3841             ],
   3842             dynamicImports: [
   3843               'nodes/0',
   3844               'nodes/1',
   3845               'nodes/2',
   3846               'nodes/3',
   3847               'nodes/4',
   3848               'nodes/5',
   3849               'nodes/6',
   3850               'nodes/7',
   3851               'nodes/8',
   3852               'nodes/9',
   3853               'nodes/10',
   3854               'nodes/11',
   3855               'nodes/12',
   3856               'error-template'
   3857             ]
   3858           },
   3859           'nodes/0': {
   3860             file: '_app/immutable/nodes/0.HASH.js',
   3861             name: 'nodes/0',
   3862             src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   3863             isEntry: true,
   3864             imports: [
   3865               'public-key',
   3866               'view-context',
   3867               'public-runtime',
   3868               'client',
   3869               'Button',
   3870               'client.svelte',
   3871               'state',
   3872               'CapabilityGate',
   3873               'Disclosure'
   3874             ],
   3875             css: ['_app/immutable/assets/0.HASH.css']
   3876           },
   3877           'nodes/1': {
   3878             file: '_app/immutable/nodes/1.HASH.js',
   3879             name: 'nodes/1',
   3880             src: '.svelte-kit/generated/build/client-optimized/nodes/1.js',
   3881             isEntry: true,
   3882             imports: ['client', 'client.svelte', 'state', 'legacy']
   3883           },
   3884           'nodes/10': {
   3885             file: '_app/immutable/nodes/10.HASH.js',
   3886             name: 'nodes/10',
   3887             src: '.svelte-kit/generated/build/client-optimized/nodes/10.js',
   3888             isEntry: true,
   3889             imports: ['client', 'legacy', 'ListingEditor']
   3890           },
   3891           'nodes/11': {
   3892             file: '_app/immutable/nodes/11.HASH.js',
   3893             name: 'nodes/11',
   3894             src: '.svelte-kit/generated/build/client-optimized/nodes/11.js',
   3895             isEntry: true,
   3896             imports: ['client', 'legacy', 'AccountGate']
   3897           },
   3898           'nodes/12': {
   3899             file: '_app/immutable/nodes/12.HASH.js',
   3900             name: 'nodes/12',
   3901             src: '.svelte-kit/generated/build/client-optimized/nodes/12.js',
   3902             isEntry: true,
   3903             imports: [
   3904               'public-key',
   3905               'client',
   3906               'client.svelte',
   3907               'state',
   3908               'ListingEditor'
   3909             ]
   3910           },
   3911           'nodes/2': {
   3912             file: '_app/immutable/nodes/2.HASH.js',
   3913             name: 'nodes/2',
   3914             src: '.svelte-kit/generated/build/client-optimized/nodes/2.js',
   3915             isEntry: true,
   3916             imports: ['client', 'Button', 'routes']
   3917           },
   3918           'nodes/3': {
   3919             file: '_app/immutable/nodes/3.HASH.js',
   3920             name: 'nodes/3',
   3921             src: '.svelte-kit/generated/build/client-optimized/nodes/3.js',
   3922             isEntry: true,
   3923             imports: ['client', 'legacy']
   3924           },
   3925           'nodes/4': {
   3926             file: '_app/immutable/nodes/4.HASH.js',
   3927             name: 'nodes/4',
   3928             src: '.svelte-kit/generated/build/client-optimized/nodes/4.js',
   3929             isEntry: true,
   3930             imports: ['client', 'AccountGate', 'InboxStatus']
   3931           },
   3932           'nodes/5': {
   3933             file: '_app/immutable/nodes/5.HASH.js',
   3934             name: 'nodes/5',
   3935             src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   3936             isEntry: true,
   3937             imports: [
   3938               'public-key',
   3939               'view-context',
   3940               'public-runtime',
   3941               'references',
   3942               'client',
   3943               'Button',
   3944               'client.svelte',
   3945               'state',
   3946               'legacy',
   3947               'inbox-view',
   3948               'InboxStatus',
   3949               'publishers',
   3950               'MessageComposer'
   3951             ]
   3952           },
   3953           'nodes/6': {
   3954             file: '_app/immutable/nodes/6.HASH.js',
   3955             name: 'nodes/6',
   3956             src: '.svelte-kit/generated/build/client-optimized/nodes/6.js',
   3957             isEntry: true,
   3958             imports: ['client', 'legacy']
   3959           },
   3960           'nodes/7': {
   3961             file: '_app/immutable/nodes/7.HASH.js',
   3962             name: 'nodes/7',
   3963             src: '.svelte-kit/generated/build/client-optimized/nodes/7.js',
   3964             isEntry: true,
   3965             imports: [
   3966               'public-key',
   3967               'view-context',
   3968               'public-runtime',
   3969               'references',
   3970               'client',
   3971               'Button',
   3972               'client.svelte',
   3973               'state',
   3974               'CapabilityGate',
   3975               'Disclosure',
   3976               'InboxSetup',
   3977               'MessageComposer'
   3978             ]
   3979           },
   3980           'nodes/8': {
   3981             file: '_app/immutable/nodes/8.HASH.js',
   3982             name: 'nodes/8',
   3983             src: '.svelte-kit/generated/build/client-optimized/nodes/8.js',
   3984             isEntry: true,
   3985             imports: [
   3986               'public-key',
   3987               'client',
   3988               'client.svelte',
   3989               'state',
   3990               'ListingEditor'
   3991             ]
   3992           },
   3993           'nodes/9': {
   3994             file: '_app/immutable/nodes/9.HASH.js',
   3995             name: 'nodes/9',
   3996             src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   3997             isEntry: true,
   3998             imports: [
   3999               'view-context',
   4000               'public-runtime',
   4001               'references',
   4002               'client',
   4003               'Button',
   4004               'client.svelte',
   4005               'navigation',
   4006               'state',
   4007               'Disclosure',
   4008               'routes',
   4009               'publishers'
   4010             ]
   4011           },
   4012           'error-template': {
   4013             file: '_app/immutable/chunks/HASH.js',
   4014             name: 'error-template',
   4015             src: '.svelte-kit/generated/build/shared/error-template.js',
   4016             isDynamicEntry: true
   4017           },
   4018           'inbox-view': {
   4019             file: '_app/immutable/chunks/HASH.js',
   4020             name: 'inbox-view',
   4021             imports: [
   4022               'public-key',
   4023               'private-handles',
   4024               'view-context',
   4025               'public-runtime',
   4026               'references',
   4027               'Button',
   4028               'read'
   4029             ]
   4030           },
   4031           'private-handles': {
   4032             file: '_app/immutable/chunks/HASH.js',
   4033             name: 'private-handles'
   4034           },
   4035           routes: {
   4036             file: '_app/immutable/chunks/HASH.js',
   4037             name: 'routes',
   4038             imports: ['references', 'client', 'Button']
   4039           },
   4040           InboxSetup: {
   4041             file: '_app/immutable/chunks/HASH.js',
   4042             name: 'InboxSetup',
   4043             imports: ['view-context', 'public-runtime', 'client', 'Button']
   4044           },
   4045           'preload-helper': {
   4046             file: '_app/immutable/chunks/HASH.js',
   4047             name: 'preload-helper'
   4048           },
   4049           Disclosure: {
   4050             file: '_app/immutable/chunks/HASH.js',
   4051             name: 'Disclosure',
   4052             imports: ['client']
   4053           },
   4054           AccountGate: {
   4055             file: '_app/immutable/chunks/HASH.js',
   4056             name: 'AccountGate',
   4057             imports: ['view-context', 'client', 'CapabilityGate', 'InboxSetup']
   4058           },
   4059           publishers: {
   4060             file: '_app/immutable/chunks/HASH.js',
   4061             name: 'publishers',
   4062             imports: [
   4063               'public-key',
   4064               'view-context',
   4065               'public-runtime',
   4066               'Button',
   4067               'read'
   4068             ]
   4069           },
   4070           InboxStatus: {
   4071             file: '_app/immutable/chunks/HASH.js',
   4072             name: 'InboxStatus',
   4073             imports: [
   4074               'view-context',
   4075               'public-runtime',
   4076               'client',
   4077               'Button',
   4078               'navigation',
   4079               'CapabilityGate',
   4080               'InboxSetup',
   4081               'inbox-view'
   4082             ]
   4083           },
   4084           Button: {
   4085             file: '_app/immutable/chunks/HASH.js',
   4086             name: 'Button',
   4087             imports: ['client']
   4088           },
   4089           references: {
   4090             file: '_app/immutable/chunks/HASH.js',
   4091             name: 'references',
   4092             imports: ['public-key']
   4093           },
   4094           client: {
   4095             file: '_app/immutable/chunks/HASH.js',
   4096             name: 'client'
   4097           },
   4098           legacy: {
   4099             file: '_app/immutable/chunks/HASH.js',
   4100             name: 'legacy',
   4101             imports: ['client']
   4102           },
   4103           ListingEditor: {
   4104             file: '_app/immutable/chunks/HASH.js',
   4105             name: 'ListingEditor',
   4106             imports: [
   4107               'private-handles',
   4108               'view-context',
   4109               'references',
   4110               'client',
   4111               'Button',
   4112               'CapabilityGate',
   4113               'read'
   4114             ]
   4115           },
   4116           'public-key': {
   4117             file: '_app/immutable/chunks/HASH.js',
   4118             name: 'public-key'
   4119           },
   4120           navigation: {
   4121             file: '_app/immutable/chunks/HASH.js',
   4122             name: 'navigation',
   4123             imports: [
   4124               'entry/payload',
   4125               'shared-errors',
   4126               'client',
   4127               'client.svelte'
   4128             ]
   4129           },
   4130           'public-runtime': {
   4131             file: '_app/immutable/chunks/HASH.js',
   4132             name: 'public-runtime',
   4133             imports: [
   4134               'public-key',
   4135               'preload-helper',
   4136               'private-handles',
   4137               'view-context',
   4138               'Button'
   4139             ],
   4140             dynamicImports: ['negentropy']
   4141           },
   4142           'shared-errors': {
   4143             file: '_app/immutable/chunks/HASH.js',
   4144             name: 'shared-errors'
   4145           },
   4146           'client.svelte': {
   4147             file: '_app/immutable/chunks/HASH.js',
   4148             name: 'client.svelte',
   4149             imports: ['entry/payload', 'shared-errors', 'client']
   4150           },
   4151           MessageComposer: {
   4152             file: '_app/immutable/chunks/HASH.js',
   4153             name: 'MessageComposer',
   4154             imports: [
   4155               'private-handles',
   4156               'view-context',
   4157               'public-runtime',
   4158               'references',
   4159               'client',
   4160               'Button',
   4161               'navigation',
   4162               'inbox-view',
   4163               'publishers'
   4164             ]
   4165           },
   4166           'view-context': {
   4167             file: '_app/immutable/chunks/HASH.js',
   4168             name: 'view-context',
   4169             imports: ['public-key', 'private-handles', 'Button']
   4170           },
   4171           CapabilityGate: {
   4172             file: '_app/immutable/chunks/HASH.js',
   4173             name: 'CapabilityGate',
   4174             imports: ['client', 'Button']
   4175           },
   4176           read: {
   4177             file: '_app/immutable/chunks/HASH.js',
   4178             name: 'read',
   4179             imports: ['view-context']
   4180           },
   4181           state: {
   4182             file: '_app/immutable/chunks/HASH.js',
   4183             name: 'state',
   4184             imports: ['client.svelte']
   4185           },
   4186           'client-entry': {
   4187             file: '_app/immutable/chunks/HASH.js',
   4188             name: 'client-entry',
   4189             src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/client-entry.js',
   4190             isDynamicEntry: true,
   4191             imports: ['navigation']
   4192           },
   4193           'entry/start': {
   4194             file: '_app/immutable/entry/start.HASH.js',
   4195             name: 'entry/start',
   4196             src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/entry.js',
   4197             isEntry: true,
   4198             imports: ['entry/payload', 'preload-helper'],
   4199             dynamicImports: ['client-entry']
   4200           },
   4201           'entry/payload': {
   4202             file: '_app/immutable/entry/payload.HASH.js',
   4203             name: 'entry/payload',
   4204             src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/payload.js',
   4205             isEntry: true
   4206           },
   4207           negentropy: {
   4208             file: '_app/immutable/chunks/HASH.js',
   4209             name: 'negentropy',
   4210             src: 'node_modules/.pnpm/applesauce-relay@6.2.1_typescript@6.0.3/node_modules/applesauce-relay/dist/negentropy.js',
   4211             isDynamicEntry: true,
   4212             imports: ['view-context', 'public-runtime']
   4213           }
   4214         };
   4215     if (hasListingReview)
   4216       expected.ListingEditor = {
   4217         file: '_app/immutable/chunks/HASH.js',
   4218         name: 'ListingEditor',
   4219         imports: [
   4220           'public-key',
   4221           'public-runtime',
   4222           'references',
   4223           'client',
   4224           'Button',
   4225           'CapabilityGate',
   4226           'InboxSetup',
   4227           'read'
   4228         ]
   4229       };
   4230     if (hasListingEdit)
   4231       Object.assign(expected, {
   4232         'nodes/5': {
   4233           file: '_app/immutable/nodes/5.HASH.js',
   4234           name: 'nodes/5',
   4235           src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   4236           isEntry: true,
   4237           imports: [
   4238             'public-key',
   4239             'public-runtime',
   4240             'references',
   4241             'client',
   4242             'Button',
   4243             'client.svelte',
   4244             'state',
   4245             'legacy',
   4246             'inbox-view',
   4247             'InboxStatus',
   4248             'resolve-head',
   4249             'MessageComposer'
   4250           ]
   4251         },
   4252         'nodes/9': {
   4253           file: '_app/immutable/nodes/9.HASH.js',
   4254           name: 'nodes/9',
   4255           src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   4256           isEntry: true,
   4257           imports: [
   4258             'public-runtime',
   4259             'references',
   4260             'client',
   4261             'Button',
   4262             'client.svelte',
   4263             'navigation',
   4264             'state',
   4265             'Disclosure',
   4266             'SearchForm',
   4267             'routes',
   4268             'resolve-head',
   4269             'publishers'
   4270           ]
   4271         },
   4272         'resolve-head': {
   4273           file: '_app/immutable/chunks/HASH.js',
   4274           name: 'resolve-head',
   4275           imports: ['public-runtime', 'Button', 'read']
   4276         },
   4277         ListingEditor: {
   4278           file: '_app/immutable/chunks/HASH.js',
   4279           name: 'ListingEditor',
   4280           imports: [
   4281             'public-key',
   4282             'public-runtime',
   4283             'references',
   4284             'client',
   4285             'Button',
   4286             'CapabilityGate',
   4287             'InboxSetup',
   4288             'read',
   4289             'resolve-head'
   4290           ]
   4291         },
   4292         MessageComposer: {
   4293           file: '_app/immutable/chunks/HASH.js',
   4294           name: 'MessageComposer',
   4295           imports: [
   4296             'public-key',
   4297             'public-runtime',
   4298             'references',
   4299             'client',
   4300             'Button',
   4301             'navigation',
   4302             'inbox-view',
   4303             'resolve-head',
   4304             'publishers'
   4305           ]
   4306         },
   4307         publishers: {
   4308           file: '_app/immutable/chunks/HASH.js',
   4309           name: 'publishers',
   4310           imports: ['public-key', 'public-runtime', 'Button', 'resolve-head']
   4311         }
   4312       });
   4313     if (hasListingRevision)
   4314       Object.assign(expected, {
   4315         'entry/app': {
   4316           file: '_app/immutable/entry/app.HASH.js',
   4317           name: 'entry/app',
   4318           src: '.svelte-kit/generated/build/client-optimized/app.js',
   4319           isEntry: true,
   4320           imports: ['preload-helper', 'shared-errors', 'references'],
   4321           dynamicImports: [
   4322             'nodes/0',
   4323             'nodes/1',
   4324             'nodes/2',
   4325             'nodes/3',
   4326             'nodes/4',
   4327             'nodes/5',
   4328             'nodes/6',
   4329             'nodes/7',
   4330             'nodes/8',
   4331             'nodes/9',
   4332             'nodes/10',
   4333             'nodes/11',
   4334             'nodes/12',
   4335             'error-template'
   4336           ]
   4337         },
   4338         'nodes/0': {
   4339           file: '_app/immutable/nodes/0.HASH.js',
   4340           name: 'nodes/0',
   4341           src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   4342           isEntry: true,
   4343           imports: [
   4344             'rolldown-runtime',
   4345             'public-runtime',
   4346             'client',
   4347             'Button',
   4348             'client.svelte',
   4349             'state',
   4350             'CapabilityGate',
   4351             'Disclosure'
   4352           ],
   4353           css: ['_app/immutable/assets/0.HASH.css']
   4354         },
   4355         'nodes/10': {
   4356           file: '_app/immutable/nodes/10.HASH.js',
   4357           name: 'nodes/10',
   4358           src: '.svelte-kit/generated/build/client-optimized/nodes/10.js',
   4359           isEntry: true,
   4360           imports: [
   4361             'references',
   4362             'client',
   4363             'Button',
   4364             'client.svelte',
   4365             'navigation',
   4366             'state',
   4367             'legacy',
   4368             'routes',
   4369             'ListingEditor'
   4370           ]
   4371         },
   4372         'nodes/12': {
   4373           file: '_app/immutable/nodes/12.HASH.js',
   4374           name: 'nodes/12',
   4375           src: '.svelte-kit/generated/build/client-optimized/nodes/12.js',
   4376           isEntry: true,
   4377           imports: [
   4378             'rolldown-runtime',
   4379             'client',
   4380             'client.svelte',
   4381             'navigation',
   4382             'state',
   4383             'ListingEditor'
   4384           ]
   4385         },
   4386         'nodes/5': {
   4387           file: '_app/immutable/nodes/5.HASH.js',
   4388           name: 'nodes/5',
   4389           src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   4390           isEntry: true,
   4391           imports: [
   4392             'rolldown-runtime',
   4393             'references',
   4394             'public-runtime',
   4395             'client',
   4396             'Button',
   4397             'client.svelte',
   4398             'state',
   4399             'legacy',
   4400             'inbox-view',
   4401             'InboxStatus',
   4402             'MessageComposer'
   4403           ]
   4404         },
   4405         'nodes/7': {
   4406           file: '_app/immutable/nodes/7.HASH.js',
   4407           name: 'nodes/7',
   4408           src: '.svelte-kit/generated/build/client-optimized/nodes/7.js',
   4409           isEntry: true,
   4410           imports: [
   4411             'rolldown-runtime',
   4412             'references',
   4413             'public-runtime',
   4414             'client',
   4415             'Button',
   4416             'client.svelte',
   4417             'state',
   4418             'CapabilityGate',
   4419             'Disclosure',
   4420             'InboxSetup',
   4421             'MessageComposer'
   4422           ]
   4423         },
   4424         'nodes/8': {
   4425           file: '_app/immutable/nodes/8.HASH.js',
   4426           name: 'nodes/8',
   4427           src: '.svelte-kit/generated/build/client-optimized/nodes/8.js',
   4428           isEntry: true,
   4429           imports: [
   4430             'rolldown-runtime',
   4431             'client',
   4432             'client.svelte',
   4433             'navigation',
   4434             'state',
   4435             'ListingEditor'
   4436           ]
   4437         },
   4438         'nodes/9': {
   4439           file: '_app/immutable/nodes/9.HASH.js',
   4440           name: 'nodes/9',
   4441           src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   4442           isEntry: true,
   4443           imports: [
   4444             'references',
   4445             'public-runtime',
   4446             'client',
   4447             'Button',
   4448             'client.svelte',
   4449             'navigation',
   4450             'state',
   4451             'Disclosure',
   4452             'SearchForm',
   4453             'routes',
   4454             'publishers'
   4455           ]
   4456         },
   4457         MessageComposer: {
   4458           file: '_app/immutable/chunks/HASH.js',
   4459           name: 'MessageComposer',
   4460           imports: [
   4461             'references',
   4462             'public-runtime',
   4463             'client',
   4464             'Button',
   4465             'navigation',
   4466             'inbox-view',
   4467             'publishers'
   4468           ]
   4469         },
   4470         ListingEditor: {
   4471           file: '_app/immutable/chunks/HASH.js',
   4472           name: 'ListingEditor',
   4473           imports: [
   4474             'references',
   4475             'public-runtime',
   4476             'client',
   4477             'Button',
   4478             'CapabilityGate',
   4479             'InboxSetup'
   4480           ]
   4481         },
   4482         'public-runtime': {
   4483           file: '_app/immutable/chunks/HASH.js',
   4484           name: 'public-runtime',
   4485           imports: [
   4486             'rolldown-runtime',
   4487             'preload-helper',
   4488             'references',
   4489             'Button'
   4490           ],
   4491           dynamicImports: ['negentropy']
   4492         },
   4493         routes: {
   4494           file: '_app/immutable/chunks/HASH.js',
   4495           name: 'routes',
   4496           imports: ['references', 'Button']
   4497         },
   4498         'rolldown-runtime': {
   4499           file: '_app/immutable/chunks/HASH.js',
   4500           name: 'rolldown-runtime'
   4501         },
   4502         references: {
   4503           file: '_app/immutable/chunks/HASH.js',
   4504           name: 'references',
   4505           imports: ['rolldown-runtime']
   4506         },
   4507         'inbox-view': {
   4508           file: '_app/immutable/chunks/HASH.js',
   4509           name: 'inbox-view',
   4510           imports: ['references', 'public-runtime', 'Button']
   4511         },
   4512         publishers: {
   4513           file: '_app/immutable/chunks/HASH.js',
   4514           name: 'publishers',
   4515           imports: ['references', 'public-runtime', 'Button']
   4516         }
   4517       });
   4518     if (hasSellingWorkspace) {
   4519       delete expected.AccountGate;
   4520       Object.assign(expected, {
   4521         ListingEditor: {
   4522           file: '_app/immutable/chunks/HASH.js',
   4523           name: 'ListingEditor',
   4524           imports: [
   4525             'references',
   4526             'public-runtime',
   4527             'client',
   4528             'Button',
   4529             'CapabilityGate',
   4530             'InboxSetup',
   4531             'OperationStatus'
   4532           ]
   4533         },
   4534         OperationStatus: {
   4535           file: '_app/immutable/chunks/HASH.js',
   4536           name: 'OperationStatus',
   4537           imports: ['references', 'public-runtime', 'client']
   4538         },
   4539         'nodes/11': {
   4540           file: '_app/immutable/nodes/11.HASH.js',
   4541           name: 'nodes/11',
   4542           src: '.svelte-kit/generated/build/client-optimized/nodes/11.js',
   4543           isEntry: true,
   4544           imports: [
   4545             'references',
   4546             'public-runtime',
   4547             'client',
   4548             'Button',
   4549             'CapabilityGate',
   4550             'Disclosure',
   4551             'InboxSetup',
   4552             'OperationStatus'
   4553           ]
   4554         },
   4555         'nodes/4': {
   4556           file: '_app/immutable/nodes/4.HASH.js',
   4557           name: 'nodes/4',
   4558           src: '.svelte-kit/generated/build/client-optimized/nodes/4.js',
   4559           isEntry: true,
   4560           imports: [
   4561             'public-runtime',
   4562             'client',
   4563             'CapabilityGate',
   4564             'InboxSetup',
   4565             'InboxStatus'
   4566           ]
   4567         }
   4568       });
   4569     }
   4570     if (hasPublicHiding) {
   4571       delete expected['rolldown-runtime'];
   4572       Object.assign(expected, {
   4573         InboxSetup: {
   4574           file: '_app/immutable/chunks/HASH.js',
   4575           name: 'InboxSetup',
   4576           imports: ['local-public-hides', 'public-runtime', 'client', 'Button']
   4577         },
   4578         InboxStatus: {
   4579           file: '_app/immutable/chunks/HASH.js',
   4580           name: 'InboxStatus',
   4581           imports: [
   4582             'local-public-hides',
   4583             'public-runtime',
   4584             'client',
   4585             'Button',
   4586             'navigation',
   4587             'CapabilityGate',
   4588             'InboxSetup',
   4589             'inbox-view'
   4590           ]
   4591         },
   4592         ListingEditor: {
   4593           file: '_app/immutable/chunks/HASH.js',
   4594           name: 'ListingEditor',
   4595           imports: [
   4596             'public-key',
   4597             'local-public-hides',
   4598             'public-runtime',
   4599             'references',
   4600             'client',
   4601             'Button',
   4602             'CapabilityGate',
   4603             'InboxSetup',
   4604             'OperationStatus'
   4605           ]
   4606         },
   4607         MessageComposer: {
   4608           file: '_app/immutable/chunks/HASH.js',
   4609           name: 'MessageComposer',
   4610           imports: [
   4611             'public-key',
   4612             'local-public-hides',
   4613             'public-runtime',
   4614             'references',
   4615             'client',
   4616             'Button',
   4617             'navigation',
   4618             'inbox-view',
   4619             'publishers'
   4620           ]
   4621         },
   4622         OperationStatus: {
   4623           file: '_app/immutable/chunks/HASH.js',
   4624           name: 'OperationStatus',
   4625           imports: [
   4626             'public-key',
   4627             'local-public-hides',
   4628             'public-runtime',
   4629             'client'
   4630           ]
   4631         },
   4632         'entry/app': {
   4633           file: '_app/immutable/entry/app.HASH.js',
   4634           name: 'entry/app',
   4635           src: '.svelte-kit/generated/build/client-optimized/app.js',
   4636           isEntry: true,
   4637           imports: [
   4638             'public-key',
   4639             'preload-helper',
   4640             'shared-errors',
   4641             'references'
   4642           ],
   4643           dynamicImports: [
   4644             'nodes/0',
   4645             'nodes/1',
   4646             'nodes/2',
   4647             'nodes/3',
   4648             'nodes/4',
   4649             'nodes/5',
   4650             'nodes/6',
   4651             'nodes/7',
   4652             'nodes/8',
   4653             'nodes/9',
   4654             'nodes/10',
   4655             'nodes/11',
   4656             'nodes/12',
   4657             'error-template'
   4658           ]
   4659         },
   4660         'inbox-view': {
   4661           file: '_app/immutable/chunks/HASH.js',
   4662           name: 'inbox-view',
   4663           imports: [
   4664             'public-key',
   4665             'local-public-hides',
   4666             'public-runtime',
   4667             'references',
   4668             'Button'
   4669           ]
   4670         },
   4671         'local-public-hides': {
   4672           file: '_app/immutable/chunks/HASH.js',
   4673           name: 'local-public-hides',
   4674           imports: ['public-key', 'Button']
   4675         },
   4676         negentropy: {
   4677           file: '_app/immutable/chunks/HASH.js',
   4678           name: 'negentropy',
   4679           src: 'node_modules/.pnpm/applesauce-relay@6.2.1_typescript@6.0.3/node_modules/applesauce-relay/dist/negentropy.js',
   4680           isDynamicEntry: true,
   4681           imports: ['local-public-hides', 'public-runtime']
   4682         },
   4683         'nodes/0': {
   4684           file: '_app/immutable/nodes/0.HASH.js',
   4685           name: 'nodes/0',
   4686           src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   4687           isEntry: true,
   4688           imports: [
   4689             'public-key',
   4690             'local-public-hides',
   4691             'public-runtime',
   4692             'client',
   4693             'Button',
   4694             'client.svelte',
   4695             'state',
   4696             'CapabilityGate',
   4697             'Disclosure'
   4698           ],
   4699           css: ['_app/immutable/assets/0.HASH.css']
   4700         },
   4701         'nodes/10': {
   4702           file: '_app/immutable/nodes/10.HASH.js',
   4703           name: 'nodes/10',
   4704           src: '.svelte-kit/generated/build/client-optimized/nodes/10.js',
   4705           isEntry: true,
   4706           imports: [
   4707             'public-key',
   4708             'client',
   4709             'Button',
   4710             'client.svelte',
   4711             'navigation',
   4712             'state',
   4713             'legacy',
   4714             'routes',
   4715             'ListingEditor'
   4716           ]
   4717         },
   4718         'nodes/11': {
   4719           file: '_app/immutable/nodes/11.HASH.js',
   4720           name: 'nodes/11',
   4721           src: '.svelte-kit/generated/build/client-optimized/nodes/11.js',
   4722           isEntry: true,
   4723           imports: [
   4724             'local-public-hides',
   4725             'public-runtime',
   4726             'references',
   4727             'client',
   4728             'Button',
   4729             'CapabilityGate',
   4730             'Disclosure',
   4731             'InboxSetup',
   4732             'OperationStatus'
   4733           ]
   4734         },
   4735         'nodes/12': {
   4736           file: '_app/immutable/nodes/12.HASH.js',
   4737           name: 'nodes/12',
   4738           src: '.svelte-kit/generated/build/client-optimized/nodes/12.js',
   4739           isEntry: true,
   4740           imports: [
   4741             'public-key',
   4742             'client',
   4743             'client.svelte',
   4744             'navigation',
   4745             'state',
   4746             'ListingEditor'
   4747           ]
   4748         },
   4749         'nodes/4': {
   4750           file: '_app/immutable/nodes/4.HASH.js',
   4751           name: 'nodes/4',
   4752           src: '.svelte-kit/generated/build/client-optimized/nodes/4.js',
   4753           isEntry: true,
   4754           imports: [
   4755             'local-public-hides',
   4756             'client',
   4757             'CapabilityGate',
   4758             'InboxSetup',
   4759             'InboxStatus'
   4760           ]
   4761         },
   4762         'nodes/5': {
   4763           file: '_app/immutable/nodes/5.HASH.js',
   4764           name: 'nodes/5',
   4765           src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   4766           isEntry: true,
   4767           imports: [
   4768             'public-key',
   4769             'local-public-hides',
   4770             'public-runtime',
   4771             'references',
   4772             'client',
   4773             'Button',
   4774             'client.svelte',
   4775             'state',
   4776             'legacy',
   4777             'inbox-view',
   4778             'InboxStatus',
   4779             'MessageComposer'
   4780           ]
   4781         },
   4782         'nodes/6': {
   4783           file: '_app/immutable/nodes/6.HASH.js',
   4784           name: 'nodes/6',
   4785           src: '.svelte-kit/generated/build/client-optimized/nodes/6.js',
   4786           isEntry: true,
   4787           imports: ['local-public-hides', 'client', 'Button']
   4788         },
   4789         'nodes/7': {
   4790           file: '_app/immutable/nodes/7.HASH.js',
   4791           name: 'nodes/7',
   4792           src: '.svelte-kit/generated/build/client-optimized/nodes/7.js',
   4793           isEntry: true,
   4794           imports: [
   4795             'public-key',
   4796             'local-public-hides',
   4797             'public-runtime',
   4798             'references',
   4799             'client',
   4800             'Button',
   4801             'client.svelte',
   4802             'state',
   4803             'CapabilityGate',
   4804             'Disclosure',
   4805             'InboxSetup',
   4806             'MessageComposer'
   4807           ]
   4808         },
   4809         'nodes/8': {
   4810           file: '_app/immutable/nodes/8.HASH.js',
   4811           name: 'nodes/8',
   4812           src: '.svelte-kit/generated/build/client-optimized/nodes/8.js',
   4813           isEntry: true,
   4814           imports: [
   4815             'public-key',
   4816             'client',
   4817             'client.svelte',
   4818             'navigation',
   4819             'state',
   4820             'ListingEditor'
   4821           ]
   4822         },
   4823         'nodes/9': {
   4824           file: '_app/immutable/nodes/9.HASH.js',
   4825           name: 'nodes/9',
   4826           src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   4827           isEntry: true,
   4828           imports: [
   4829             'local-public-hides',
   4830             'public-runtime',
   4831             'references',
   4832             'client',
   4833             'Button',
   4834             'client.svelte',
   4835             'navigation',
   4836             'state',
   4837             'Disclosure',
   4838             'SearchForm',
   4839             'routes',
   4840             'publishers'
   4841           ]
   4842         },
   4843         'public-key': {
   4844           file: '_app/immutable/chunks/HASH.js',
   4845           name: 'public-key'
   4846         },
   4847         'public-runtime': {
   4848           file: '_app/immutable/chunks/HASH.js',
   4849           name: 'public-runtime',
   4850           imports: [
   4851             'public-key',
   4852             'preload-helper',
   4853             'local-public-hides',
   4854             'references',
   4855             'Button'
   4856           ],
   4857           dynamicImports: ['negentropy']
   4858         },
   4859         publishers: {
   4860           file: '_app/immutable/chunks/HASH.js',
   4861           name: 'publishers',
   4862           imports: [
   4863             'public-key',
   4864             'local-public-hides',
   4865             'public-runtime',
   4866             'Button'
   4867           ]
   4868         },
   4869         references: {
   4870           file: '_app/immutable/chunks/HASH.js',
   4871           name: 'references',
   4872           imports: ['public-key']
   4873         },
   4874         routes: {
   4875           file: '_app/immutable/chunks/HASH.js',
   4876           name: 'routes',
   4877           imports: ['public-key', 'references', 'Button']
   4878         }
   4879       });
   4880     }
   4881     if (hasPrivateBlocking) {
   4882       delete expected['local-public-hides'];
   4883       Object.assign(expected, {
   4884         InboxSetup: {
   4885           file: '_app/immutable/chunks/HASH.js',
   4886           name: 'InboxSetup',
   4887           imports: ['private-session', 'client', 'Button', 'public-runtime']
   4888         },
   4889         InboxStatus: {
   4890           file: '_app/immutable/chunks/HASH.js',
   4891           name: 'InboxStatus',
   4892           imports: [
   4893             'private-session',
   4894             'client',
   4895             'Button',
   4896             'public-runtime',
   4897             'navigation',
   4898             'CapabilityGate',
   4899             'InboxSetup',
   4900             'inbox-view'
   4901           ]
   4902         },
   4903         ListingEditor: {
   4904           file: '_app/immutable/chunks/HASH.js',
   4905           name: 'ListingEditor',
   4906           imports: [
   4907             'public-key',
   4908             'private-session',
   4909             'references',
   4910             'client',
   4911             'Button',
   4912             'public-runtime',
   4913             'CapabilityGate',
   4914             'InboxSetup',
   4915             'OperationStatus'
   4916           ]
   4917         },
   4918         MessageComposer: {
   4919           file: '_app/immutable/chunks/HASH.js',
   4920           name: 'MessageComposer',
   4921           imports: [
   4922             'public-key',
   4923             'private-session',
   4924             'references',
   4925             'client',
   4926             'Button',
   4927             'public-runtime',
   4928             'navigation',
   4929             'local-private-blocks',
   4930             'inbox-view',
   4931             'publishers'
   4932           ]
   4933         },
   4934         OperationStatus: {
   4935           file: '_app/immutable/chunks/HASH.js',
   4936           name: 'OperationStatus',
   4937           imports: ['public-key', 'private-session', 'client', 'public-runtime']
   4938         },
   4939         'inbox-view': {
   4940           file: '_app/immutable/chunks/HASH.js',
   4941           name: 'inbox-view',
   4942           imports: [
   4943             'public-key',
   4944             'private-session',
   4945             'references',
   4946             'Button',
   4947             'public-runtime',
   4948             'local-private-blocks'
   4949           ]
   4950         },
   4951         'local-private-blocks': {
   4952           file: '_app/immutable/chunks/HASH.js',
   4953           name: 'local-private-blocks',
   4954           imports: ['public-key', 'private-session', 'Button']
   4955         },
   4956         negentropy: {
   4957           file: '_app/immutable/chunks/HASH.js',
   4958           name: 'negentropy',
   4959           src: 'node_modules/.pnpm/applesauce-relay@6.2.1_typescript@6.0.3/node_modules/applesauce-relay/dist/negentropy.js',
   4960           isDynamicEntry: true,
   4961           imports: ['private-session', 'public-runtime']
   4962         },
   4963         'nodes/0': {
   4964           file: '_app/immutable/nodes/0.HASH.js',
   4965           name: 'nodes/0',
   4966           src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   4967           isEntry: true,
   4968           imports: [
   4969             'public-key',
   4970             'private-session',
   4971             'client',
   4972             'Button',
   4973             'public-runtime',
   4974             'client.svelte',
   4975             'state',
   4976             'CapabilityGate',
   4977             'Disclosure',
   4978             'local-private-blocks'
   4979           ],
   4980           css: ['_app/immutable/assets/0.HASH.css']
   4981         },
   4982         'nodes/11': {
   4983           file: '_app/immutable/nodes/11.HASH.js',
   4984           name: 'nodes/11',
   4985           src: '.svelte-kit/generated/build/client-optimized/nodes/11.js',
   4986           isEntry: true,
   4987           imports: [
   4988             'private-session',
   4989             'references',
   4990             'client',
   4991             'Button',
   4992             'public-runtime',
   4993             'CapabilityGate',
   4994             'Disclosure',
   4995             'InboxSetup',
   4996             'OperationStatus'
   4997           ]
   4998         },
   4999         'nodes/4': {
   5000           file: '_app/immutable/nodes/4.HASH.js',
   5001           name: 'nodes/4',
   5002           src: '.svelte-kit/generated/build/client-optimized/nodes/4.js',
   5003           isEntry: true,
   5004           imports: [
   5005             'private-session',
   5006             'client',
   5007             'CapabilityGate',
   5008             'InboxSetup',
   5009             'InboxStatus'
   5010           ]
   5011         },
   5012         'nodes/5': {
   5013           file: '_app/immutable/nodes/5.HASH.js',
   5014           name: 'nodes/5',
   5015           src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   5016           isEntry: true,
   5017           imports: [
   5018             'public-key',
   5019             'private-session',
   5020             'references',
   5021             'client',
   5022             'Button',
   5023             'public-runtime',
   5024             'client.svelte',
   5025             'state',
   5026             'legacy',
   5027             'inbox-view',
   5028             'InboxStatus',
   5029             'MessageComposer'
   5030           ]
   5031         },
   5032         'nodes/6': {
   5033           file: '_app/immutable/nodes/6.HASH.js',
   5034           name: 'nodes/6',
   5035           src: '.svelte-kit/generated/build/client-optimized/nodes/6.js',
   5036           isEntry: true,
   5037           imports: [
   5038             'private-session',
   5039             'client',
   5040             'Button',
   5041             'local-private-blocks'
   5042           ]
   5043         },
   5044         'nodes/7': {
   5045           file: '_app/immutable/nodes/7.HASH.js',
   5046           name: 'nodes/7',
   5047           src: '.svelte-kit/generated/build/client-optimized/nodes/7.js',
   5048           isEntry: true,
   5049           imports: [
   5050             'public-key',
   5051             'private-session',
   5052             'references',
   5053             'client',
   5054             'Button',
   5055             'public-runtime',
   5056             'client.svelte',
   5057             'state',
   5058             'CapabilityGate',
   5059             'Disclosure',
   5060             'InboxSetup',
   5061             'MessageComposer'
   5062           ]
   5063         },
   5064         'nodes/9': {
   5065           file: '_app/immutable/nodes/9.HASH.js',
   5066           name: 'nodes/9',
   5067           src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   5068           isEntry: true,
   5069           imports: [
   5070             'private-session',
   5071             'references',
   5072             'client',
   5073             'Button',
   5074             'public-runtime',
   5075             'client.svelte',
   5076             'navigation',
   5077             'state',
   5078             'Disclosure',
   5079             'SearchForm',
   5080             'routes',
   5081             'publishers'
   5082           ]
   5083         },
   5084         'private-session': {
   5085           file: '_app/immutable/chunks/HASH.js',
   5086           name: 'private-session',
   5087           imports: ['public-key', 'Button']
   5088         },
   5089         'public-runtime': {
   5090           file: '_app/immutable/chunks/HASH.js',
   5091           name: 'public-runtime',
   5092           imports: [
   5093             'public-key',
   5094             'preload-helper',
   5095             'private-session',
   5096             'references',
   5097             'Button'
   5098           ],
   5099           dynamicImports: ['negentropy']
   5100         },
   5101         publishers: {
   5102           file: '_app/immutable/chunks/HASH.js',
   5103           name: 'publishers',
   5104           imports: ['public-key', 'private-session', 'Button', 'public-runtime']
   5105         }
   5106       });
   5107     }
   5108     if (hasSupportReporting)
   5109       Object.assign(expected, {
   5110         Button: {
   5111           file: '_app/immutable/chunks/HASH.js',
   5112           name: 'Button',
   5113           imports: ['client', 'navigation-url']
   5114         },
   5115         CapabilityGate: {
   5116           file: '_app/immutable/chunks/HASH.js',
   5117           name: 'CapabilityGate',
   5118           imports: ['client', 'navigation-url', 'Button']
   5119         },
   5120         InboxSetup: {
   5121           file: '_app/immutable/chunks/HASH.js',
   5122           name: 'InboxSetup',
   5123           imports: ['private-session', 'client', 'public-runtime', 'Button']
   5124         },
   5125         InboxStatus: {
   5126           file: '_app/immutable/chunks/HASH.js',
   5127           name: 'InboxStatus',
   5128           imports: [
   5129             'private-session',
   5130             'client',
   5131             'navigation-url',
   5132             'public-runtime',
   5133             'navigation',
   5134             'Button',
   5135             'CapabilityGate',
   5136             'inbox-view',
   5137             'InboxSetup'
   5138           ]
   5139         },
   5140         ListingEditor: {
   5141           file: '_app/immutable/chunks/HASH.js',
   5142           name: 'ListingEditor',
   5143           imports: [
   5144             'public-key',
   5145             'private-session',
   5146             'references',
   5147             'client',
   5148             'navigation-url',
   5149             'public-runtime',
   5150             'CapabilityGate',
   5151             'InboxSetup',
   5152             'OperationStatus'
   5153           ]
   5154         },
   5155         MessageComposer: {
   5156           file: '_app/immutable/chunks/HASH.js',
   5157           name: 'MessageComposer',
   5158           imports: [
   5159             'public-key',
   5160             'private-session',
   5161             'client',
   5162             'navigation-url',
   5163             'public-runtime',
   5164             'navigation',
   5165             'local-private-blocks',
   5166             'ReportPreview',
   5167             'inbox-view'
   5168           ]
   5169         },
   5170         ReportPreview: {
   5171           file: '_app/immutable/chunks/HASH.js',
   5172           name: 'ReportPreview',
   5173           imports: [
   5174             'private-session',
   5175             'references',
   5176             'client',
   5177             'navigation-url',
   5178             'public-runtime',
   5179             'publishers',
   5180             'inbox-view'
   5181           ]
   5182         },
   5183         'inbox-view': {
   5184           file: '_app/immutable/chunks/HASH.js',
   5185           name: 'inbox-view',
   5186           imports: [
   5187             'public-key',
   5188             'private-session',
   5189             'references',
   5190             'navigation-url',
   5191             'public-runtime',
   5192             'local-private-blocks'
   5193           ]
   5194         },
   5195         'local-private-blocks': {
   5196           file: '_app/immutable/chunks/HASH.js',
   5197           name: 'local-private-blocks',
   5198           imports: ['public-key', 'private-session', 'navigation-url']
   5199         },
   5200         'navigation-url': {
   5201           file: '_app/immutable/chunks/HASH.js',
   5202           name: 'navigation-url'
   5203         },
   5204         'nodes/0': {
   5205           file: '_app/immutable/nodes/0.HASH.js',
   5206           name: 'nodes/0',
   5207           src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   5208           isEntry: true,
   5209           imports: [
   5210             'public-key',
   5211             'private-session',
   5212             'client',
   5213             'navigation-url',
   5214             'public-runtime',
   5215             'client.svelte',
   5216             'state',
   5217             'Button',
   5218             'CapabilityGate',
   5219             'Disclosure',
   5220             'local-private-blocks'
   5221           ],
   5222           css: ['_app/immutable/assets/0.HASH.css']
   5223         },
   5224         'nodes/10': {
   5225           file: '_app/immutable/nodes/10.HASH.js',
   5226           name: 'nodes/10',
   5227           src: '.svelte-kit/generated/build/client-optimized/nodes/10.js',
   5228           isEntry: true,
   5229           imports: [
   5230             'public-key',
   5231             'client',
   5232             'navigation-url',
   5233             'client.svelte',
   5234             'navigation',
   5235             'state',
   5236             'legacy',
   5237             'routes',
   5238             'ListingEditor'
   5239           ]
   5240         },
   5241         'nodes/11': {
   5242           file: '_app/immutable/nodes/11.HASH.js',
   5243           name: 'nodes/11',
   5244           src: '.svelte-kit/generated/build/client-optimized/nodes/11.js',
   5245           isEntry: true,
   5246           imports: [
   5247             'private-session',
   5248             'references',
   5249             'client',
   5250             'navigation-url',
   5251             'public-runtime',
   5252             'CapabilityGate',
   5253             'Disclosure',
   5254             'InboxSetup',
   5255             'OperationStatus'
   5256           ]
   5257         },
   5258         'nodes/2': {
   5259           file: '_app/immutable/nodes/2.HASH.js',
   5260           name: 'nodes/2',
   5261           src: '.svelte-kit/generated/build/client-optimized/nodes/2.js',
   5262           isEntry: true,
   5263           imports: ['client', 'navigation-url', 'SearchForm', 'routes']
   5264         },
   5265         'nodes/3': {
   5266           file: '_app/immutable/nodes/3.HASH.js',
   5267           name: 'nodes/3',
   5268           src: '.svelte-kit/generated/build/client-optimized/nodes/3.js',
   5269           isEntry: true,
   5270           imports: [
   5271             'private-session',
   5272             'client',
   5273             'public-runtime',
   5274             'ReportPreview'
   5275           ]
   5276         },
   5277         'nodes/5': {
   5278           file: '_app/immutable/nodes/5.HASH.js',
   5279           name: 'nodes/5',
   5280           src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   5281           isEntry: true,
   5282           imports: [
   5283             'public-key',
   5284             'private-session',
   5285             'references',
   5286             'client',
   5287             'navigation-url',
   5288             'public-runtime',
   5289             'client.svelte',
   5290             'state',
   5291             'Button',
   5292             'legacy',
   5293             'ReportPreview',
   5294             'inbox-view',
   5295             'InboxStatus',
   5296             'MessageComposer'
   5297           ]
   5298         },
   5299         'nodes/7': {
   5300           file: '_app/immutable/nodes/7.HASH.js',
   5301           name: 'nodes/7',
   5302           src: '.svelte-kit/generated/build/client-optimized/nodes/7.js',
   5303           isEntry: true,
   5304           imports: [
   5305             'public-key',
   5306             'private-session',
   5307             'references',
   5308             'client',
   5309             'navigation-url',
   5310             'public-runtime',
   5311             'client.svelte',
   5312             'state',
   5313             'Button',
   5314             'CapabilityGate',
   5315             'Disclosure',
   5316             'ReportPreview',
   5317             'InboxSetup',
   5318             'MessageComposer'
   5319           ]
   5320         },
   5321         'nodes/9': {
   5322           file: '_app/immutable/nodes/9.HASH.js',
   5323           name: 'nodes/9',
   5324           src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   5325           isEntry: true,
   5326           imports: [
   5327             'private-session',
   5328             'references',
   5329             'client',
   5330             'navigation-url',
   5331             'public-runtime',
   5332             'client.svelte',
   5333             'navigation',
   5334             'state',
   5335             'Button',
   5336             'Disclosure',
   5337             'SearchForm',
   5338             'routes',
   5339             'publishers'
   5340           ]
   5341         },
   5342         'private-session': {
   5343           file: '_app/immutable/chunks/HASH.js',
   5344           name: 'private-session',
   5345           imports: ['public-key', 'navigation-url']
   5346         },
   5347         'public-runtime': {
   5348           file: '_app/immutable/chunks/HASH.js',
   5349           name: 'public-runtime',
   5350           imports: [
   5351             'public-key',
   5352             'preload-helper',
   5353             'private-session',
   5354             'references',
   5355             'navigation-url'
   5356           ],
   5357           dynamicImports: ['negentropy']
   5358         },
   5359         publishers: {
   5360           file: '_app/immutable/chunks/HASH.js',
   5361           name: 'publishers',
   5362           imports: [
   5363             'public-key',
   5364             'private-session',
   5365             'navigation-url',
   5366             'public-runtime'
   5367           ]
   5368         },
   5369         routes: {
   5370           file: '_app/immutable/chunks/HASH.js',
   5371           name: 'routes',
   5372           imports: ['public-key', 'references', 'navigation-url']
   5373         }
   5374       });
   5375     if (hasPrivacyData)
   5376       Object.assign(expected, {
   5377         ReportPreview: {
   5378           file: '_app/immutable/chunks/HASH.js',
   5379           name: 'ReportPreview',
   5380           imports: [
   5381             'private-session',
   5382             'references',
   5383             'client',
   5384             'navigation-url',
   5385             'public-runtime',
   5386             'SupportLink',
   5387             'publishers',
   5388             'inbox-view'
   5389           ]
   5390         },
   5391         SupportLink: {
   5392           file: '_app/immutable/chunks/HASH.js',
   5393           name: 'SupportLink',
   5394           imports: ['private-session', 'client', 'navigation-url']
   5395         },
   5396         'nodes/3': {
   5397           file: '_app/immutable/nodes/3.HASH.js',
   5398           name: 'nodes/3',
   5399           src: '.svelte-kit/generated/build/client-optimized/nodes/3.js',
   5400           isEntry: true,
   5401           imports: [
   5402             'private-session',
   5403             'client',
   5404             'public-runtime',
   5405             'SupportLink',
   5406             'ReportPreview'
   5407           ]
   5408         },
   5409         'nodes/6': {
   5410           file: '_app/immutable/nodes/6.HASH.js',
   5411           name: 'nodes/6',
   5412           src: '.svelte-kit/generated/build/client-optimized/nodes/6.js',
   5413           isEntry: true,
   5414           imports: [
   5415             ...(hasOperationalFlags ? ['public-key'] : []),
   5416             'private-session',
   5417             'client',
   5418             'navigation-url',
   5419             'Button',
   5420             'local-private-blocks',
   5421             'SupportLink'
   5422           ]
   5423         }
   5424       });
   5425     if (hasOperationalFlags)
   5426       Object.assign(expected, {
   5427         ListingEditor: {
   5428           file: '_app/immutable/chunks/HASH.js',
   5429           name: 'ListingEditor',
   5430           imports: [
   5431             'public-key',
   5432             'private-session',
   5433             'references',
   5434             'client',
   5435             'navigation-url',
   5436             'public-runtime',
   5437             'CapabilityGate',
   5438             'capabilities',
   5439             'InboxSetup',
   5440             'OperationStatus'
   5441           ]
   5442         },
   5443         capabilities: {
   5444           file: '_app/immutable/chunks/HASH.js',
   5445           name: 'capabilities',
   5446           imports: ['public-runtime']
   5447         },
   5448         'nodes/0': {
   5449           file: '_app/immutable/nodes/0.HASH.js',
   5450           name: 'nodes/0',
   5451           src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   5452           isEntry: true,
   5453           imports: [
   5454             'public-key',
   5455             'private-session',
   5456             'client',
   5457             'navigation-url',
   5458             'public-runtime',
   5459             'client.svelte',
   5460             'state',
   5461             'Button',
   5462             'CapabilityGate',
   5463             'Disclosure',
   5464             'capabilities',
   5465             'local-private-blocks'
   5466           ],
   5467           css: ['_app/immutable/assets/0.HASH.css']
   5468         }
   5469       });
   5470     // Exact current cleanup-source graph; predecessor profiles above stay fixed.
   5471     // Full names, flags, sources and ordered edges remain fail-closed.
   5472     if (hasOperationalFlags)
   5473       Object.assign(expected, {
   5474         'entry/app': {
   5475           file: '_app/immutable/entry/app.HASH.js',
   5476           name: 'entry/app',
   5477           src: '.svelte-kit/generated/build/client-optimized/app.js',
   5478           isEntry: true,
   5479           imports: ['preload-helper', 'shared-errors', 'references'],
   5480           dynamicImports: [
   5481             'nodes/0',
   5482             'nodes/1',
   5483             'nodes/2',
   5484             'nodes/3',
   5485             'nodes/4',
   5486             'nodes/5',
   5487             'nodes/6',
   5488             'nodes/7',
   5489             'nodes/8',
   5490             'nodes/9',
   5491             'nodes/10',
   5492             'nodes/11',
   5493             'nodes/12',
   5494             'error-template'
   5495           ]
   5496         },
   5497         'nodes/0': {
   5498           file: '_app/immutable/nodes/0.HASH.js',
   5499           name: 'nodes/0',
   5500           src: '.svelte-kit/generated/build/client-optimized/nodes/0.js',
   5501           isEntry: true,
   5502           imports: [
   5503             'rolldown-runtime',
   5504             'public-runtime',
   5505             'client',
   5506             'navigation-url',
   5507             'client.svelte',
   5508             'state',
   5509             'Button',
   5510             'CapabilityGate',
   5511             'Disclosure',
   5512             'capabilities',
   5513             'local-private-blocks'
   5514           ],
   5515           css: ['_app/immutable/assets/0.HASH.css']
   5516         },
   5517         'nodes/1': {
   5518           file: '_app/immutable/nodes/1.HASH.js',
   5519           name: 'nodes/1',
   5520           src: '.svelte-kit/generated/build/client-optimized/nodes/1.js',
   5521           isEntry: true,
   5522           imports: ['client', 'client.svelte', 'state', 'legacy']
   5523         },
   5524         'nodes/10': {
   5525           file: '_app/immutable/nodes/10.HASH.js',
   5526           name: 'nodes/10',
   5527           src: '.svelte-kit/generated/build/client-optimized/nodes/10.js',
   5528           isEntry: true,
   5529           imports: [
   5530             'references',
   5531             'client',
   5532             'navigation-url',
   5533             'client.svelte',
   5534             'navigation',
   5535             'state',
   5536             'legacy',
   5537             'routes',
   5538             'ListingEditor'
   5539           ]
   5540         },
   5541         'nodes/11': {
   5542           file: '_app/immutable/nodes/11.HASH.js',
   5543           name: 'nodes/11',
   5544           src: '.svelte-kit/generated/build/client-optimized/nodes/11.js',
   5545           isEntry: true,
   5546           imports: [
   5547             'references',
   5548             'public-runtime',
   5549             'client',
   5550             'navigation-url',
   5551             'CapabilityGate',
   5552             'Disclosure',
   5553             'InboxSetup',
   5554             'OperationStatus'
   5555           ]
   5556         },
   5557         'nodes/12': {
   5558           file: '_app/immutable/nodes/12.HASH.js',
   5559           name: 'nodes/12',
   5560           src: '.svelte-kit/generated/build/client-optimized/nodes/12.js',
   5561           isEntry: true,
   5562           imports: [
   5563             'rolldown-runtime',
   5564             'client',
   5565             'client.svelte',
   5566             'navigation',
   5567             'state',
   5568             'ListingEditor'
   5569           ]
   5570         },
   5571         'nodes/2': {
   5572           file: '_app/immutable/nodes/2.HASH.js',
   5573           name: 'nodes/2',
   5574           src: '.svelte-kit/generated/build/client-optimized/nodes/2.js',
   5575           isEntry: true,
   5576           imports: ['client', 'navigation-url', 'SearchForm', 'routes']
   5577         },
   5578         'nodes/3': {
   5579           file: '_app/immutable/nodes/3.HASH.js',
   5580           name: 'nodes/3',
   5581           src: '.svelte-kit/generated/build/client-optimized/nodes/3.js',
   5582           isEntry: true,
   5583           imports: ['public-runtime', 'client', 'SupportLink', 'ReportPreview']
   5584         },
   5585         'nodes/4': {
   5586           file: '_app/immutable/nodes/4.HASH.js',
   5587           name: 'nodes/4',
   5588           src: '.svelte-kit/generated/build/client-optimized/nodes/4.js',
   5589           isEntry: true,
   5590           imports: [
   5591             'public-runtime',
   5592             'client',
   5593             'CapabilityGate',
   5594             'InboxSetup',
   5595             'InboxStatus'
   5596           ]
   5597         },
   5598         'nodes/5': {
   5599           file: '_app/immutable/nodes/5.HASH.js',
   5600           name: 'nodes/5',
   5601           src: '.svelte-kit/generated/build/client-optimized/nodes/5.js',
   5602           isEntry: true,
   5603           imports: [
   5604             'rolldown-runtime',
   5605             'references',
   5606             'public-runtime',
   5607             'client',
   5608             'navigation-url',
   5609             'client.svelte',
   5610             'state',
   5611             'Button',
   5612             'local-private-blocks',
   5613             'legacy',
   5614             'ReportPreview',
   5615             'inbox-view',
   5616             'InboxStatus',
   5617             'MessageComposer'
   5618           ]
   5619         },
   5620         'nodes/6': {
   5621           file: '_app/immutable/nodes/6.HASH.js',
   5622           name: 'nodes/6',
   5623           src: '.svelte-kit/generated/build/client-optimized/nodes/6.js',
   5624           isEntry: true,
   5625           imports: [
   5626             'references',
   5627             'public-runtime',
   5628             'client',
   5629             'navigation-url',
   5630             'Button',
   5631             'local-private-blocks',
   5632             'SupportLink'
   5633           ]
   5634         },
   5635         'nodes/7': {
   5636           file: '_app/immutable/nodes/7.HASH.js',
   5637           name: 'nodes/7',
   5638           src: '.svelte-kit/generated/build/client-optimized/nodes/7.js',
   5639           isEntry: true,
   5640           imports: [
   5641             'rolldown-runtime',
   5642             'references',
   5643             'public-runtime',
   5644             'client',
   5645             'navigation-url',
   5646             'client.svelte',
   5647             'state',
   5648             'Button',
   5649             'CapabilityGate',
   5650             'Disclosure',
   5651             'ReportPreview',
   5652             'InboxSetup',
   5653             'MessageComposer'
   5654           ]
   5655         },
   5656         'nodes/8': {
   5657           file: '_app/immutable/nodes/8.HASH.js',
   5658           name: 'nodes/8',
   5659           src: '.svelte-kit/generated/build/client-optimized/nodes/8.js',
   5660           isEntry: true,
   5661           imports: [
   5662             'rolldown-runtime',
   5663             'client',
   5664             'client.svelte',
   5665             'navigation',
   5666             'state',
   5667             'ListingEditor'
   5668           ]
   5669         },
   5670         'nodes/9': {
   5671           file: '_app/immutable/nodes/9.HASH.js',
   5672           name: 'nodes/9',
   5673           src: '.svelte-kit/generated/build/client-optimized/nodes/9.js',
   5674           isEntry: true,
   5675           imports: [
   5676             'references',
   5677             'public-runtime',
   5678             'client',
   5679             'navigation-url',
   5680             'client.svelte',
   5681             'navigation',
   5682             'state',
   5683             'Button',
   5684             'Disclosure',
   5685             'SearchForm',
   5686             'routes',
   5687             'publishers'
   5688           ]
   5689         },
   5690         'error-template': {
   5691           file: '_app/immutable/chunks/HASH.js',
   5692           name: 'error-template',
   5693           src: '.svelte-kit/generated/build/shared/error-template.js',
   5694           isDynamicEntry: true
   5695         },
   5696         SearchForm: {
   5697           file: '_app/immutable/chunks/HASH.js',
   5698           name: 'SearchForm',
   5699           imports: ['client', 'Button']
   5700         },
   5701         capabilities: {
   5702           file: '_app/immutable/chunks/HASH.js',
   5703           name: 'capabilities',
   5704           imports: ['public-runtime']
   5705         },
   5706         legacy: {
   5707           file: '_app/immutable/chunks/HASH.js',
   5708           name: 'legacy',
   5709           imports: ['client']
   5710         },
   5711         InboxSetup: {
   5712           file: '_app/immutable/chunks/HASH.js',
   5713           name: 'InboxSetup',
   5714           imports: ['public-runtime', 'client', 'Button']
   5715         },
   5716         'preload-helper': {
   5717           file: '_app/immutable/chunks/HASH.js',
   5718           name: 'preload-helper'
   5719         },
   5720         'public-runtime': {
   5721           file: '_app/immutable/chunks/HASH.js',
   5722           name: 'public-runtime',
   5723           imports: [
   5724             'rolldown-runtime',
   5725             'preload-helper',
   5726             'references',
   5727             'navigation-url'
   5728           ],
   5729           dynamicImports: ['negentropy']
   5730         },
   5731         Disclosure: {
   5732           file: '_app/immutable/chunks/HASH.js',
   5733           name: 'Disclosure',
   5734           imports: ['client']
   5735         },
   5736         'navigation-url': {
   5737           file: '_app/immutable/chunks/HASH.js',
   5738           name: 'navigation-url'
   5739         },
   5740         'inbox-view': {
   5741           file: '_app/immutable/chunks/HASH.js',
   5742           name: 'inbox-view',
   5743           imports: [
   5744             'references',
   5745             'public-runtime',
   5746             'navigation-url',
   5747             'local-private-blocks'
   5748           ]
   5749         },
   5750         SupportLink: {
   5751           file: '_app/immutable/chunks/HASH.js',
   5752           name: 'SupportLink',
   5753           imports: ['public-runtime', 'client', 'navigation-url']
   5754         },
   5755         state: {
   5756           file: '_app/immutable/chunks/HASH.js',
   5757           name: 'state',
   5758           imports: ['client.svelte']
   5759         },
   5760         publishers: {
   5761           file: '_app/immutable/chunks/HASH.js',
   5762           name: 'publishers',
   5763           imports: ['references', 'public-runtime', 'navigation-url']
   5764         },
   5765         ReportPreview: {
   5766           file: '_app/immutable/chunks/HASH.js',
   5767           name: 'ReportPreview',
   5768           imports: [
   5769             'references',
   5770             'public-runtime',
   5771             'client',
   5772             'navigation-url',
   5773             'SupportLink',
   5774             'publishers',
   5775             'inbox-view'
   5776           ]
   5777         },
   5778         Button: {
   5779           file: '_app/immutable/chunks/HASH.js',
   5780           name: 'Button',
   5781           imports: ['client', 'navigation-url']
   5782         },
   5783         'local-private-blocks': {
   5784           file: '_app/immutable/chunks/HASH.js',
   5785           name: 'local-private-blocks',
   5786           imports: ['references', 'public-runtime', 'navigation-url']
   5787         },
   5788         ListingEditor: {
   5789           file: '_app/immutable/chunks/HASH.js',
   5790           name: 'ListingEditor',
   5791           imports: [
   5792             'references',
   5793             'public-runtime',
   5794             'client',
   5795             'navigation-url',
   5796             'CapabilityGate',
   5797             'capabilities',
   5798             'InboxSetup',
   5799             'OperationStatus'
   5800           ]
   5801         },
   5802         navigation: {
   5803           file: '_app/immutable/chunks/HASH.js',
   5804           name: 'navigation',
   5805           imports: ['entry/payload', 'shared-errors', 'client', 'client.svelte']
   5806         },
   5807         'shared-errors': {
   5808           file: '_app/immutable/chunks/HASH.js',
   5809           name: 'shared-errors'
   5810         },
   5811         InboxStatus: {
   5812           file: '_app/immutable/chunks/HASH.js',
   5813           name: 'InboxStatus',
   5814           imports: [
   5815             'public-runtime',
   5816             'client',
   5817             'navigation-url',
   5818             'navigation',
   5819             'Button',
   5820             'CapabilityGate',
   5821             'inbox-view',
   5822             'InboxSetup'
   5823           ]
   5824         },
   5825         CapabilityGate: {
   5826           file: '_app/immutable/chunks/HASH.js',
   5827           name: 'CapabilityGate',
   5828           imports: ['client', 'navigation-url', 'Button']
   5829         },
   5830         'client.svelte': {
   5831           file: '_app/immutable/chunks/HASH.js',
   5832           name: 'client.svelte',
   5833           imports: ['entry/payload', 'shared-errors', 'client']
   5834         },
   5835         client: {
   5836           file: '_app/immutable/chunks/HASH.js',
   5837           name: 'client'
   5838         },
   5839         routes: {
   5840           file: '_app/immutable/chunks/HASH.js',
   5841           name: 'routes',
   5842           imports: ['references', 'navigation-url']
   5843         },
   5844         MessageComposer: {
   5845           file: '_app/immutable/chunks/HASH.js',
   5846           name: 'MessageComposer',
   5847           imports: [
   5848             'references',
   5849             'public-runtime',
   5850             'client',
   5851             'navigation-url',
   5852             'navigation',
   5853             'local-private-blocks',
   5854             'ReportPreview',
   5855             'inbox-view'
   5856           ]
   5857         },
   5858         OperationStatus: {
   5859           file: '_app/immutable/chunks/HASH.js',
   5860           name: 'OperationStatus',
   5861           imports: ['references', 'public-runtime', 'client']
   5862         },
   5863         'rolldown-runtime': {
   5864           file: '_app/immutable/chunks/HASH.js',
   5865           name: 'rolldown-runtime'
   5866         },
   5867         references: {
   5868           file: '_app/immutable/chunks/HASH.js',
   5869           name: 'references',
   5870           imports: ['rolldown-runtime']
   5871         },
   5872         'client-entry': {
   5873           file: '_app/immutable/chunks/HASH.js',
   5874           name: 'client-entry',
   5875           src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/client-entry.js',
   5876           isDynamicEntry: true,
   5877           imports: ['navigation']
   5878         },
   5879         'entry/start': {
   5880           file: '_app/immutable/entry/start.HASH.js',
   5881           name: 'entry/start',
   5882           src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/entry.js',
   5883           isEntry: true,
   5884           imports: ['entry/payload', 'preload-helper'],
   5885           dynamicImports: ['client-entry']
   5886         },
   5887         'entry/payload': {
   5888           file: '_app/immutable/entry/payload.HASH.js',
   5889           name: 'entry/payload',
   5890           src: 'node_modules/.pnpm/@sveltejs+kit@3.0.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@_6edc02734bfa45cbf85e92e62b52fb36/node_modules/@sveltejs/kit/src/runtime/client/payload.js',
   5891           isEntry: true
   5892         },
   5893         negentropy: {
   5894           file: '_app/immutable/chunks/HASH.js',
   5895           name: 'negentropy',
   5896           src: 'node_modules/.pnpm/applesauce-relay@6.2.1_typescript@6.0.3/node_modules/applesauce-relay/dist/negentropy.js',
   5897           isDynamicEntry: true,
   5898           imports: ['public-runtime']
   5899         }
   5900       });
   5901     for (const record of Object.values(manifest)) {
   5902       const actual = { ...record };
   5903       actual.file = actual.file.includes('/chunks/')
   5904         ? actual.file.replace(/(?<=\/chunks\/)[A-Za-z0-9_-]+(?=\.js$)/, 'HASH')
   5905         : actual.file.replace(/\.[A-Za-z0-9_-]+\.js$/, '.HASH.js');
   5906       for (const field of ['imports', 'dynamicImports'])
   5907         if (actual[field] !== undefined)
   5908           actual[field] = actual[field].map(
   5909             (/** @type {string} */ key) => manifest[key].name
   5910           );
   5911       if (actual.css !== undefined)
   5912         actual.css = actual.css.map((/** @type {string} */ file) =>
   5913           file.replace(/\.[A-Za-z0-9_-]+\.css$/, '.HASH.css')
   5914         );
   5915       equal(
   5916         actual,
   5917         expected[record.name],
   5918         'Invalid owned listing editor compiler graph'
   5919       );
   5920     }
   5921   }
   5922   if (hasFullRoutes) {
   5923     const robots = await readOwned(web, 'static/robots.txt');
   5924     publicText(robots);
   5925     equal(
   5926       client.get('robots.txt'),
   5927       robots,
   5928       'Robots differs from owned static source'
   5929     );
   5930     admitted.set('robots.txt', robots);
   5931   }
   5932   const versionBytes = client.get('_app/version.json');
   5933   if (!versionBytes) throw new Error('Missing compiler version');
   5934   const version = parse(publicText(versionBytes));
   5935   equal(Object.keys(version), ['version']);
   5936   if (
   5937     typeof version.version !== 'string' ||
   5938     !/^[A-Za-z0-9._-]{1,128}$/.test(version.version)
   5939   )
   5940     throw new Error('Invalid compiler version');
   5941   admitted.set('_app/version.json', versionBytes);
   5942   equal(
   5943     [...client.keys()].sort(),
   5944     [...admitted.keys(), '.vite/manifest.json'].sort(),
   5945     'Compiler inventory mismatch'
   5946   );
   5947   equal(
   5948     client.get('build-info.json'),
   5949     expectedMetadata,
   5950     'Compiler provenance mismatch'
   5951   );
   5952   const expectedPages = hasFullRoutes
   5953     ? [
   5954         'about.html',
   5955         'index.html',
   5956         'messages.html',
   5957         'privacy.html',
   5958         'search.html',
   5959         'sell.html',
   5960         'selling.html'
   5961       ]
   5962     : hasSearch
   5963       ? ['index.html', 'search.html']
   5964       : ['index.html'];
   5965   equal(
   5966     [...pages.keys()].sort(),
   5967     expectedPages,
   5968     'Undeclared prerendered pages'
   5969   );
   5970   for (const name of expectedPages) admitted.set(name, pages.get(name));
   5971   // Adapter fallback has no separate disk input. Reconstruct the exact current
   5972   // compiler bootstrap shell from the actual index/manifest/version and source
   5973   // template; future framework/resource shapes require scoped tested admission.
   5974   const index = publicText(pages.get('index.html'));
   5975   const id = /(__sveltekit_[a-z0-9]+) = \{/.exec(index)?.[1];
   5976   if (!id) throw new Error('Missing compiler bootstrap identity');
   5977   const start = Object.values(manifest).find(
   5978     (record) => record.name === 'entry/start'
   5979   ).file;
   5980   const app = Object.values(manifest).find(
   5981     (record) => record.name === 'entry/app'
   5982   ).file;
   5983   const fallbackModules = new Set();
   5984   const moduleVisited = new Set();
   5985   /** @param {string} key */
   5986   function collectModules(key) {
   5987     if (moduleVisited.has(key)) return;
   5988     moduleVisited.add(key);
   5989     const record = manifest[key];
   5990     fallbackModules.add(record.file);
   5991     for (const dependency of record.imports ?? []) collectModules(dependency);
   5992   }
   5993   for (const [key, record] of Object.entries(manifest))
   5994     if (
   5995       ['entry/start', 'entry/app', 'nodes/0', 'client-entry'].includes(
   5996         record.name
   5997       )
   5998     )
   5999       collectModules(key);
   6000   const preload = [
   6001     ...index.matchAll(/<link href="\.\/([^"<>]+)" rel="modulepreload">/g)
   6002   ]
   6003     .map((match) => match[1])
   6004     .filter((file) => fallbackModules.has(file));
   6005   if (!preload.length || preload.some((file) => !admitted.has(file)))
   6006     throw new Error('Invalid compiler preloads');
   6007   const fallbackCSS = new Set();
   6008   const cssVisited = new Set();
   6009   /** @param {string} key */
   6010   function collectCSS(key) {
   6011     if (cssVisited.has(key)) return;
   6012     cssVisited.add(key);
   6013     const record = manifest[key];
   6014     for (const file of record.css ?? []) fallbackCSS.add(file);
   6015     for (const dependency of record.imports ?? []) collectCSS(dependency);
   6016   }
   6017   for (const [key, record] of Object.entries(manifest))
   6018     if (['entry/start', 'entry/app', 'nodes/0'].includes(record.name))
   6019       collectCSS(key);
   6020   const stylesheetLinks = [
   6021     ...index.matchAll(/<link href="\.\/([^"<>]+)" rel="stylesheet">/g)
   6022   ]
   6023     .map((match) => match[1])
   6024     .filter((file) => fallbackCSS.has(file));
   6025   equal(
   6026     [...stylesheetLinks].sort(),
   6027     [...fallbackCSS].sort(),
   6028     'Missing owned fallback stylesheet'
   6029   );
   6030   const head =
   6031     preload
   6032       .map((file) => `<link href="/${file}" rel="modulepreload">`)
   6033       .join('\n\t\t') +
   6034     '\n\t\t' +
   6035     (stylesheetLinks.length ? '\n\t\t' : '') +
   6036     stylesheetLinks
   6037       .map((file) => `<link href="/${file}" rel="stylesheet">`)
   6038       .join('\n\t\t');
   6039   const body = `\n\t\t\t<script>\n\t\t\t\t{\n\t\t\t\t\t${id} = {\n\t\t\t\t\t\tbase: "",\n\t\t\t\t\t\tversion: ${JSON.stringify(version.version)}\n\t\t\t\t\t};\n\n\t\t\t\t\tconst element = document.currentScript.parentElement;\n\n\t\t\t\t\timport("/${start}").then(async (kit) => {\n\t\t\t\t\t\tkit.init(${id});\n\t\t\t\t\t\tconst app = await import("/${app}");\n\t\t\t\t\t\tkit.start(app, element);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t</script>\n\t\t`;
   6040   const template = publicText(await readOwned(web, 'src/app.html'));
   6041   admitted.set(
   6042     '200.html',
   6043     Buffer.from(
   6044       template
   6045         .replace('%sveltekit.head%', head)
   6046         .replace('%sveltekit.body%', body)
   6047     )
   6048   );
   6049   equal(
   6050     [...output.keys()].sort(),
   6051     [...admitted.keys()].sort(),
   6052     'Static output inventory mismatch'
   6053   );
   6054   for (const [file, expected] of admitted) {
   6055     const bytes = output.get(file);
   6056     publicText(bytes);
   6057     equal(bytes, expected, 'Static output differs from owned compiler input');
   6058   }
   6059   return [...output.keys()].sort();
   6060 }
   6061 if (
   6062   process.argv[1] &&
   6063   path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)
   6064 ) {
   6065   const web = fileURLToPath(new URL('../', import.meta.url));
   6066   if ((await realpath(process.cwd())) !== (await realpath(web)))
   6067     throw new Error('Run the output audit from web/');
   6068   const files = await auditOutput(web);
   6069   console.log(`Static output boundary: ${files.length} owned files checked`);
   6070 }