1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`0b251121329227421d5c298da1ce48e6e074ceb9`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`5b4f9c16-4b07-445c-af8d-92a8ac85e840`,e._sentryDebugIdIdentifier=`sentry-dbid-5b4f9c16-4b07-445c-af8d-92a8ac85e840`)}catch{}})();import{p as e}from"./BUKzrtVI.js";import{r as t}from"./CzuyjIjq.js";import{n}from"./BY7Pff41.js";import{t as r}from"./CWQbV4KB.js";function i(){let n=e(),i=t(),o=n.path.replace(/^\/|\/$/g,``).split(`/`).map(decodeURIComponent);console.log(`useRedirectFrom404`,n.path,`segments:`,o);let s=o[0],c=o[1];if(!c)return i.groups.includes(r(s))?`/${encodeURIComponent(s)}/`:null;c=a(c);let l=i.getTypeByPath(c);if(l)return`/${encodeURIComponent(l.group)}/${encodeURIComponent(l.path)}/`;let u=o.join(`/`);console.log(`group-slug`,`no type match, trying DIN/ISO match in`,u);let d=u.match(/(DIN|ISO)[\W_]{0,2}(\d+)/i);if(d){let e=`${d[1]} ${d[2]}`.toUpperCase();if(console.log(`group-slug`,`found DIN/ISO match:`,e),l=i.types.find(t=>t.types.includes(e)),l)return`/${encodeURIComponent(l.group)}/${encodeURIComponent(l.path)}/`}return null}function a(e){console.log(`applyRewrites`,e);for(let[t,r]of n)if(e===t)return r;return e}export{i as n,a as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.