Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

34 lines
972 B
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
* Module id: 522741
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, r) => {
"use strict";
Object.defineProperty(r, "__esModule", { value: !0 }),
Object.defineProperty(r, "normalizeLocalePath", {
enumerable: !0,
get: function () {
return o;
},
});
let n = new WeakMap();
function o(e, t) {
let r;
if (!t) return { pathname: e };
let o = n.get(t);
o || ((o = t.map((e) => e.toLowerCase())), n.set(t, o));
let a = e.split("/", 2);
if (!a[1]) return { pathname: e };
let i = a[1].toLowerCase(),
l = o.indexOf(i);
return l < 0
? { pathname: e }
: ((r = t[l]),
{ pathname: (e = e.slice(r.length + 1) || "/"), detectedLocale: r });
}
};
export default moduleFactory;