1import{j as a}from"./ariakit-vendor-Rr0LjWYd.js";import{r as h}from"./i18n-vendor-CgdUv56d.js";import{f as L}from"./router-vendor-AuyDRqQq.js";import{u as c}from"./useRootData-y6ULYVmM.js";import{a as w}from"./SuperLink-C47XcoJI.js";const u="en";function f(t){return t==="en"||t==="it"}function d(t){var n;const e=(n=t.split("/").filter(Boolean)[0])==null?void 0:n.toLowerCase();return f(e)?e:u}function E(t){return f(t)?t:u}function k(t,e){const n=t.replace(/^\/[a-z]{2}(?=\/|$)/,"")||"/";return`/${e}${n==="/"?"":n}`}function x(){const t=c();return{isWebview:t==null?void 0:t.isWebview}}function b(t,e){return e==="en"||e==="it"?e:d(t)}const G=h.forwardRef((t,e)=>{const{isWebview:n}=x(),o=L(),{lang:m}=c(),l=b(o.pathname,m);if(t.deeplink&&n)return a.jsx("a",{...t,href:t.deeplink});const i=(()=>{if(!t.to||typeof t.to!="string"||!t.to.startsWith("/"))return t.to;const s=t.to.replace(/^\/[a-z]{2}(?=\/|$)/,"")||"/",r=new URL(`/${l}${s}`,"http://x");return n&&r.searchParams.set("layout","webview"),r.pathname+r.search+r.hash})();if(t.a){const{a:s,...r}=t;return a.jsx("a",{...r,href:i,ref:e})}return a.jsx(w,{...t,to:i,ref:e})});export{G as L,k as b,E as g,d as p,x as u};
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.