import{_ as d}from"./plugin-vue_export-helper-c27b6911.js";import{f as u,o as _,c as m,a as p}from"./app-1212a57a.js";const g=p("p",null,"Redirecting to the correct locale...",-1),$=[g],z={__name:"index.html",setup(x){return u(()=>{const{languages:c}=window.navigator,{hash:l,origin:o}=window.location,e=l.substring(1),r={0:["/en/",["en-US","en-UK","en"]],1:["/zh/",["zh-CN","zh-TW","zh"]],"/zh/":["zh-CN"],"/en/":["en-US"]},t=["/en/","/zh/"],a=t.pop();let n=null;e:for(const h of c)for(const[i,f]of Object.entries(r))if(f.includes(h)){if(!t.includes(i))continue;n=i;break e}const s=a?`${o}${a}${e?`#${e}`:""}`:null;n&&t.includes(n)?location.href=`${o}${n}${e?`#${e}`:""}`:s?location.href=s:location.href=`${o}/404.html`}),(c,l)=>(_(),m("div",null,$))}},v=d(z,[["__file","index.html.vue"]]);export{v as default};
