{"release_id":"01a1998d-9802-0000-b0f7-33a23307f4ed","chunk_id":"01a1998d-9932-7f81-905f-9621125987c7","file":"DdU0LcYq.mjs","mappings":"m+BAcaA,EAAqCC,EAC5CC,EAAY,IAAI,IAAIF,CAAe,EAElC,SAASG,EAAgBC,EAAuB,CACtD,MAAMC,EAAQD,EAAK,QAAQ,UAAW,EAAE,EAAE,QAAQ,SAAU,IAAI,GAAK,IACrE,OAAOF,EAAU,IAAIG,CAAK,CAC3B,CAMO,SAASC,EAAaC,EAAcC,EAAwB,CAClE,GAAI,CAACD,EAAK,WAAW,GAAG,GAAKA,EAAK,WAAW,IAAI,EAAG,OAAOA,EAC3D,KAAM,CAAE,KAAAH,CAAA,EAASK,EAAgBF,CAAI,EACrC,OAAOJ,EAAgBC,CAAI,EAAIM,EAAaN,EAAMI,CAAM,EAAIJ,CAC7D","names":["LOCALIZED_PATHS","paths","LOCALIZED","isLocalizedPath","path","clean","localizeHref","href","locale","splitLocalePath","localizePath"],"sources":["../../../../../../src/lib/i18n/localized-paths.ts"],"sourcesContent":["import { localizePath, splitLocalePath, type Locale } from './locales';\nimport paths from './localized-paths.json';\n\n/**\n * Pages with a translated, indexable copy in every language (RAT-573, RAT-579).\n * A path joins this list only once its copy, title and description exist in\n * all five languages — i18n.test.ts holds every entry to that.\n *\n * Everything else keeps a single English URL: a prefixed address for it\n * redirects there, and its interface language comes from the cookie.\n *\n * The list is JSON so svelte.config.js can read it too: the build sends each\n * prefixed address to its English page's function on Vercel (RAT-589).\n */\nexport const LOCALIZED_PATHS: readonly string[] = paths;\nconst LOCALIZED = new Set(LOCALIZED_PATHS);\n\nexport function isLocalizedPath(path: string): boolean {\n\tconst clean = path.replace(/[?#].*$/, '').replace(/(.)\\/$/, '$1') || '/';\n\treturn LOCALIZED.has(clean);\n}\n\n/**\n * A link target in the reader's language: localized pages get the prefix,\n * the rest stay as they are (they follow the cookie instead).\n */\nexport function localizeHref(href: string, locale: Locale): string {\n\tif (!href.startsWith('/') || href.startsWith('//')) return href;\n\tconst { path } = splitLocalePath(href);\n\treturn isLocalizedPath(path) ? localizePath(path, locale) : path;\n}\n"],"version":3}