1import{da as C,ea as y,g as R,ga as u,ia as j,l as x,q as v,s as S,v as L,z as P}from"./chunk-6IKJKMC7.js";import{D as m,Qc as g,Y as $,Z as d,ba as s,ga as a,ha as c,i as p,t as f}from"./chunk-6HAZA4FK.js";import{e as h}from"./chunk-I5BVC2ZK.js";var w,W=h(()=>{g();P();d();j();y();g();w=(()=>{class i{constructor(){this.urlSerializer=new v,this.startupService=c(C),this.router=c(L),this.config=c(u)}urlWithoutLangRegion(r){return r.replace(/^\/[A-Za-z]{3}(\/||$)/,"/")}load(){this.siteRedirects=this.startupService.getStartupData().siteRedirects,this.router.events.pipe(m(r=>r instanceof S)).subscribe(r=>{if(r.url){let t=this.siteRedirects.find(e=>{let n=this.urlWithoutLangRegion(r.url),o=r.url===n?"/":n;return(e["url-from"]==="/",e["url-from"])===o});if(t)return t["url-to"].includes("http")?window.location.href=t["url-to"]:this.router.navigateByUrl(this.config.currentLanguage+t["url-to"]),!0}})}redirectOr404(r){return this.siteRedirects?.some(t=>t["url-from"]===this.urlWithoutLangRegion(r))?!0:this.urlSerializer.parse(`${this.config.getRegionLanguageRoutePrefix()}/404`)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=s({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()});var q,z=h(()=>{$();d();g();j();W();x();q=(()=>{class i{constructor(r,t,e){this.config=r,this.redirectsService=t,this.http=e,this.pathsEndpoint=(n,o)=>`/api/paths?region=${n}&language=${o}`,this.sitemap$=new p,this.regLang=this.config.getRegionLanguageRoutePrefix(),this.region=this.config.getCurrentRegion(),this.language=this.config.getCurrentLanguage(),this.http.get(this.pathsEndpoint(this.region,this.language)).subscribe(n=>{this.sitemap$.next(n)})}canActivate(r,t){let e=this.prepareUrl(t.url),n=this.getWildCardPath(e);return this.sitemap$.pipe(f(o=>o.filter(l=>l===e||l===n).length?!0:this.redirectsService.redirectOr404(e)))}canActivateChild(r,t){return this.canActivate(r,t)}prepareUrl(r){let t=r.split("?")[0],e=t;r.includes("#specifications")||(e=t.replace(/#(.+)/,""));let n=new RegExp(`^${this.regLang}`);return e.replace(n,"").replace(/^\//,"")}getWildCardPath(r){let t=r.split("/");return t.pop(),`${t.join("/")}/*`}static{this.\u0275fac=function(t){return new(t||i)(a(u),a(w),a(R))}}static{this.\u0275prov=s({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()});export{w as a,W as b,q as c,z as d};
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.