vue-docs-ui
Version:
A modern documentation UI component library built with Vue 3. Create beautiful documentation websites with YAML configuration and Markdown rendering - ready to use out of the box.
1,745 lines • 532 kB
JavaScript
var Gl = Object.defineProperty;
var Yl = (e, t, n) => t in e ? Gl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var be = (e, t, n) => Yl(e, typeof t != "symbol" ? t + "" : t, n);
import { effectScope as Kl, ref as z, shallowRef as ha, computed as Q, watch as Ct, isRef as Zl, defineComponent as dn, getCurrentInstance as Hn, h as at, Fragment as Re, inject as At, onBeforeMount as Xl, onMounted as Qe, onUnmounted as ct, createVNode as H, Text as Ql, resolveComponent as me, createElementBlock as F, openBlock as D, createElementVNode as _, toDisplayString as N, normalizeClass as ae, Transition as jr, withCtx as tt, createCommentVNode as Y, renderList as Be, createBlock as ye, unref as U, normalizeStyle as Vn, nextTick as qn, createTextVNode as Ae, reactive as _t, withModifiers as xe, withDirectives as kt, createStaticVNode as kr, vModelSelect as pa, vModelText as vu, vModelCheckbox as Jl, TransitionGroup as ec, vShow as nr, provide as Pi, createApp as Mi } from "vue";
import { useRouter as Ru, useRoute as Nn, createRouter as tc, createWebHistory as nc } from "vue-router";
/*!
* shared v9.14.5
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function De(e, t) {
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
}
const Ri = {};
function ma(e) {
Ri[e] || (Ri[e] = !0, De(e));
}
const mt = typeof window < "u";
let nt, sn;
if (process.env.NODE_ENV !== "production") {
const e = mt && window.performance;
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
e.clearMeasures && (nt = (t) => {
e.mark(t);
}, sn = (t, n, u) => {
e.measure(t, n, u), e.clearMarks(n), e.clearMarks(u);
});
}
const uc = /\{([0-9a-zA-Z]+)\}/g;
function Wr(e, ...t) {
return t.length === 1 && J(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(uc, (n, u) => t.hasOwnProperty(u) ? t[u] : "");
}
const wt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), rc = (e, t, n) => ic({ l: e, k: t, s: n }), ic = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Se = (e) => typeof e == "number" && isFinite(e), oc = (e) => ba(e) === "[object Date]", Gt = (e) => ba(e) === "[object RegExp]", $u = (e) => G(e) && Object.keys(e).length === 0, Ue = Object.assign, ac = Object.create, ge = (e = null) => ac(e);
let $i;
const Nt = () => $i || ($i = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ge());
function Ui(e) {
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
}
function zi(e) {
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
}
function sc(e) {
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (u, r, i) => `${r}="${zi(i)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (u, r, i) => `${r}='${zi(i)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && De("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
// In href, src, action, formaction attributes
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
// In style attributes within url()
/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
].forEach((u) => {
e = e.replace(u, "$1javascript:");
}), e;
}
const lc = Object.prototype.hasOwnProperty;
function pt(e, t) {
return lc.call(e, t);
}
const ke = Array.isArray, pe = (e) => typeof e == "function", $ = (e) => typeof e == "string", X = (e) => typeof e == "boolean", J = (e) => e !== null && typeof e == "object", cc = (e) => J(e) && pe(e.then) && pe(e.catch), ga = Object.prototype.toString, ba = (e) => ga.call(e), G = (e) => {
if (!J(e))
return !1;
const t = Object.getPrototypeOf(e);
return t === null || t.constructor === Object;
}, fc = (e) => e == null ? "" : ke(e) || G(e) && e.toString === ga ? JSON.stringify(e, null, 2) : String(e);
function dc(e, t = "") {
return e.reduce((n, u, r) => r === 0 ? n + u : n + t + u, "");
}
const Bi = 2;
function hc(e, t = 0, n = e.length) {
const u = e.split(/\r?\n/);
let r = 0;
const i = [];
for (let o = 0; o < u.length; o++)
if (r += u[o].length + 1, r >= t) {
for (let a = o - Bi; a <= o + Bi || n > r; a++) {
if (a < 0 || a >= u.length)
continue;
const s = a + 1;
i.push(`${s}${" ".repeat(3 - String(s).length)}| ${u[a]}`);
const l = u[a].length;
if (a === o) {
const c = t - (r - l) + 1, f = Math.max(1, n > r ? l - c : n - t);
i.push(" | " + " ".repeat(c) + "^".repeat(f));
} else if (a > o) {
if (n > r) {
const c = Math.max(Math.min(n - r, l), 1);
i.push(" | " + "^".repeat(c));
}
r += l + 1;
}
}
break;
}
return i.join(`
`);
}
function Uu(e) {
let t = e;
return () => ++t;
}
function Gr() {
const e = /* @__PURE__ */ new Map();
return {
events: e,
on(n, u) {
const r = e.get(n);
r && r.push(u) || e.set(n, [u]);
},
off(n, u) {
const r = e.get(n);
r && r.splice(r.indexOf(u) >>> 0, 1);
},
emit(n, u) {
(e.get(n) || []).slice().map((r) => r(u)), (e.get("*") || []).slice().map((r) => r(n, u));
}
};
}
const cu = (e) => !J(e) || ke(e);
function gu(e, t) {
if (cu(e) || cu(t))
throw new Error("Invalid value");
const n = [{ src: e, des: t }];
for (; n.length; ) {
const { src: u, des: r } = n.pop();
Object.keys(u).forEach((i) => {
i !== "__proto__" && (J(u[i]) && !J(r[i]) && (r[i] = Array.isArray(u[i]) ? [] : ge()), cu(r[i]) || cu(u[i]) ? r[i] = u[i] : n.push({ src: u[i], des: r[i] }));
});
}
}
/*!
* message-compiler v9.14.5
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function pc(e, t, n) {
return { line: e, column: t, offset: n };
}
function xu(e, t, n) {
return { start: e, end: t };
}
const mc = /\{([0-9a-zA-Z]+)\}/g;
function _a(e, ...t) {
return t.length === 1 && gc(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(mc, (n, u) => t.hasOwnProperty(u) ? t[u] : "");
}
const ka = Object.assign, Hi = (e) => typeof e == "string", gc = (e) => e !== null && typeof e == "object";
function va(e, t = "") {
return e.reduce((n, u, r) => r === 0 ? n + u : n + t + u, "");
}
const zu = {
USE_MODULO_SYNTAX: 1,
__EXTEND_POINT__: 2
}, bc = {
[zu.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'."
};
function _c(e, t, ...n) {
const u = _a(bc[e], ...n || []), r = { message: String(u), code: e };
return t && (r.location = t), r;
}
const W = {
// tokenizer error codes
EXPECTED_TOKEN: 1,
INVALID_TOKEN_IN_PLACEHOLDER: 2,
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
UNKNOWN_ESCAPE_SEQUENCE: 4,
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
UNBALANCED_CLOSING_BRACE: 6,
UNTERMINATED_CLOSING_BRACE: 7,
EMPTY_PLACEHOLDER: 8,
NOT_ALLOW_NEST_PLACEHOLDER: 9,
INVALID_LINKED_FORMAT: 10,
// parser error codes
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
UNEXPECTED_EMPTY_LINKED_KEY: 13,
UNEXPECTED_LEXICAL_ANALYSIS: 14,
// generator error codes
UNHANDLED_CODEGEN_NODE_TYPE: 15,
// minifier error codes
UNHANDLED_MINIFIER_NODE_TYPE: 16,
// Special value for higher-order compilers to pick up the last code
// to avoid collision of error codes. This should always be kept as the last
// item.
__EXTEND_POINT__: 17
}, kc = {
// tokenizer error messages
[W.EXPECTED_TOKEN]: "Expected token: '{0}'",
[W.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
[W.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
[W.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
[W.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
[W.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
[W.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
[W.EMPTY_PLACEHOLDER]: "Empty placeholder",
[W.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
[W.INVALID_LINKED_FORMAT]: "Invalid linked format",
// parser error messages
[W.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
[W.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
[W.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
[W.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
// generator error messages
[W.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
// minimizer error messages
[W.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
};
function On(e, t, n = {}) {
const { domain: u, messages: r, args: i } = n, o = _a((r || kc)[e] || "", ...i || []), a = new SyntaxError(String(o));
return a.code = e, t && (a.location = t), a.domain = u, a;
}
function vc(e) {
throw e;
}
const xc = /<\/?[\w\s="/.':;#-\/]+>/, yc = (e) => xc.test(e), It = " ", Ec = "\r", qe = `
`, Cc = "\u2028", Ac = "\u2029";
function wc(e) {
const t = e;
let n = 0, u = 1, r = 1, i = 0;
const o = (C) => t[C] === Ec && t[C + 1] === qe, a = (C) => t[C] === qe, s = (C) => t[C] === Ac, l = (C) => t[C] === Cc, c = (C) => o(C) || a(C) || s(C) || l(C), f = () => n, h = () => u, d = () => r, m = () => i, x = (C) => o(C) || s(C) || l(C) ? qe : t[C], A = () => x(n), S = () => x(n + i);
function E() {
return i = 0, c(n) && (u++, r = 0), o(n) && n++, n++, r++, t[n];
}
function b() {
return o(n + i) && i++, i++, t[n + i];
}
function g() {
n = 0, u = 1, r = 1, i = 0;
}
function p(C = 0) {
i = C;
}
function k() {
const C = n + i;
for (; C !== n; )
E();
i = 0;
}
return {
index: f,
line: h,
column: d,
peekOffset: m,
charAt: x,
currentChar: A,
currentPeek: S,
next: E,
peek: b,
reset: g,
resetPeek: p,
skipToPeek: k
};
}
const Ht = void 0, Tc = ".", Vi = "'", Sc = "tokenizer";
function Dc(e, t = {}) {
const n = t.location !== !1, u = wc(e), r = () => u.index(), i = () => pc(u.line(), u.column(), u.index()), o = i(), a = r(), s = {
currentType: 14,
offset: a,
startLoc: o,
endLoc: o,
lastType: 14,
lastOffset: a,
lastStartLoc: o,
lastEndLoc: o,
braceNest: 0,
inLinked: !1,
text: ""
}, l = () => s, { onError: c } = t;
function f(v, y, L, ...B) {
const de = l();
if (y.column += L, y.offset += L, c) {
const ne = n ? xu(de.startLoc, y) : null, he = On(v, ne, {
domain: Sc,
args: B
});
c(he);
}
}
function h(v, y, L) {
v.endLoc = i(), v.currentType = y;
const B = { type: y };
return n && (B.loc = xu(v.startLoc, v.endLoc)), L != null && (B.value = L), B;
}
const d = (v) => h(
v,
14
/* TokenTypes.EOF */
);
function m(v, y) {
return v.currentChar() === y ? (v.next(), y) : (f(W.EXPECTED_TOKEN, i(), 0, y), "");
}
function x(v) {
let y = "";
for (; v.currentPeek() === It || v.currentPeek() === qe; )
y += v.currentPeek(), v.peek();
return y;
}
function A(v) {
const y = x(v);
return v.skipToPeek(), y;
}
function S(v) {
if (v === Ht)
return !1;
const y = v.charCodeAt(0);
return y >= 97 && y <= 122 || // a-z
y >= 65 && y <= 90 || // A-Z
y === 95;
}
function E(v) {
if (v === Ht)
return !1;
const y = v.charCodeAt(0);
return y >= 48 && y <= 57;
}
function b(v, y) {
const { currentType: L } = y;
if (L !== 2)
return !1;
x(v);
const B = S(v.currentPeek());
return v.resetPeek(), B;
}
function g(v, y) {
const { currentType: L } = y;
if (L !== 2)
return !1;
x(v);
const B = v.currentPeek() === "-" ? v.peek() : v.currentPeek(), de = E(B);
return v.resetPeek(), de;
}
function p(v, y) {
const { currentType: L } = y;
if (L !== 2)
return !1;
x(v);
const B = v.currentPeek() === Vi;
return v.resetPeek(), B;
}
function k(v, y) {
const { currentType: L } = y;
if (L !== 8)
return !1;
x(v);
const B = v.currentPeek() === ".";
return v.resetPeek(), B;
}
function C(v, y) {
const { currentType: L } = y;
if (L !== 9)
return !1;
x(v);
const B = S(v.currentPeek());
return v.resetPeek(), B;
}
function w(v, y) {
const { currentType: L } = y;
if (!(L === 8 || L === 12))
return !1;
x(v);
const B = v.currentPeek() === ":";
return v.resetPeek(), B;
}
function T(v, y) {
const { currentType: L } = y;
if (L !== 10)
return !1;
const B = () => {
const ne = v.currentPeek();
return ne === "{" ? S(v.peek()) : ne === "@" || ne === "%" || ne === "|" || ne === ":" || ne === "." || ne === It || !ne ? !1 : ne === qe ? (v.peek(), B()) : j(v, !1);
}, de = B();
return v.resetPeek(), de;
}
function O(v) {
x(v);
const y = v.currentPeek() === "|";
return v.resetPeek(), y;
}
function Z(v) {
const y = x(v), L = v.currentPeek() === "%" && v.peek() === "{";
return v.resetPeek(), {
isModulo: L,
hasSpace: y.length > 0
};
}
function j(v, y = !0) {
const L = (de = !1, ne = "", he = !1) => {
const I = v.currentPeek();
return I === "{" ? ne === "%" ? !1 : de : I === "@" || !I ? ne === "%" ? !0 : de : I === "%" ? (v.peek(), L(de, "%", !0)) : I === "|" ? ne === "%" || he ? !0 : !(ne === It || ne === qe) : I === It ? (v.peek(), L(!0, It, he)) : I === qe ? (v.peek(), L(!0, qe, he)) : !0;
}, B = L();
return y && v.resetPeek(), B;
}
function _e(v, y) {
const L = v.currentChar();
return L === Ht ? Ht : y(L) ? (v.next(), L) : null;
}
function Ve(v) {
const y = v.charCodeAt(0);
return y >= 97 && y <= 122 || // a-z
y >= 65 && y <= 90 || // A-Z
y >= 48 && y <= 57 || // 0-9
y === 95 || // _
y === 36;
}
function Ne(v) {
return _e(v, Ve);
}
function $e(v) {
const y = v.charCodeAt(0);
return y >= 97 && y <= 122 || // a-z
y >= 65 && y <= 90 || // A-Z
y >= 48 && y <= 57 || // 0-9
y === 95 || // _
y === 36 || // $
y === 45;
}
function $t(v) {
return _e(v, $e);
}
function K(v) {
const y = v.charCodeAt(0);
return y >= 48 && y <= 57;
}
function re(v) {
return _e(v, K);
}
function ce(v) {
const y = v.charCodeAt(0);
return y >= 48 && y <= 57 || // 0-9
y >= 65 && y <= 70 || // A-F
y >= 97 && y <= 102;
}
function fe(v) {
return _e(v, ce);
}
function we(v) {
let y = "", L = "";
for (; y = re(v); )
L += y;
return L;
}
function ot(v) {
A(v);
const y = v.currentChar();
return y !== "%" && f(W.EXPECTED_TOKEN, i(), 0, y), v.next(), "%";
}
function Ut(v) {
let y = "";
for (; ; ) {
const L = v.currentChar();
if (L === "{" || L === "}" || L === "@" || L === "|" || !L)
break;
if (L === "%")
if (j(v))
y += L, v.next();
else
break;
else if (L === It || L === qe)
if (j(v))
y += L, v.next();
else {
if (O(v))
break;
y += L, v.next();
}
else
y += L, v.next();
}
return y;
}
function Qt(v) {
A(v);
let y = "", L = "";
for (; y = $t(v); )
L += y;
return v.currentChar() === Ht && f(W.UNTERMINATED_CLOSING_BRACE, i(), 0), L;
}
function Jt(v) {
A(v);
let y = "";
return v.currentChar() === "-" ? (v.next(), y += `-${we(v)}`) : y += we(v), v.currentChar() === Ht && f(W.UNTERMINATED_CLOSING_BRACE, i(), 0), y;
}
function Dt(v) {
return v !== Vi && v !== qe;
}
function pn(v) {
A(v), m(v, "'");
let y = "", L = "";
for (; y = _e(v, Dt); )
y === "\\" ? L += en(v) : L += y;
const B = v.currentChar();
return B === qe || B === Ht ? (f(W.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), B === qe && (v.next(), m(v, "'")), L) : (m(v, "'"), L);
}
function en(v) {
const y = v.currentChar();
switch (y) {
case "\\":
case "'":
return v.next(), `\\${y}`;
case "u":
return ft(v, y, 4);
case "U":
return ft(v, y, 6);
default:
return f(W.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, y), "";
}
}
function ft(v, y, L) {
m(v, y);
let B = "";
for (let de = 0; de < L; de++) {
const ne = fe(v);
if (!ne) {
f(W.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${y}${B}${v.currentChar()}`);
break;
}
B += ne;
}
return `\\${y}${B}`;
}
function dt(v) {
return v !== "{" && v !== "}" && v !== It && v !== qe;
}
function tn(v) {
A(v);
let y = "", L = "";
for (; y = _e(v, dt); )
L += y;
return L;
}
function zt(v) {
let y = "", L = "";
for (; y = Ne(v); )
L += y;
return L;
}
function R(v) {
const y = (L) => {
const B = v.currentChar();
return B === "{" || B === "%" || B === "@" || B === "|" || B === "(" || B === ")" || !B || B === It ? L : (L += B, v.next(), y(L));
};
return y("");
}
function te(v) {
A(v);
const y = m(
v,
"|"
/* TokenChars.Pipe */
);
return A(v), y;
}
function mn(v, y) {
let L = null;
switch (v.currentChar()) {
case "{":
return y.braceNest >= 1 && f(W.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), v.next(), L = h(
y,
2,
"{"
/* TokenChars.BraceLeft */
), A(v), y.braceNest++, L;
case "}":
return y.braceNest > 0 && y.currentType === 2 && f(W.EMPTY_PLACEHOLDER, i(), 0), v.next(), L = h(
y,
3,
"}"
/* TokenChars.BraceRight */
), y.braceNest--, y.braceNest > 0 && A(v), y.inLinked && y.braceNest === 0 && (y.inLinked = !1), L;
case "@":
return y.braceNest > 0 && f(W.UNTERMINATED_CLOSING_BRACE, i(), 0), L = M(v, y) || d(y), y.braceNest = 0, L;
default: {
let de = !0, ne = !0, he = !0;
if (O(v))
return y.braceNest > 0 && f(W.UNTERMINATED_CLOSING_BRACE, i(), 0), L = h(y, 1, te(v)), y.braceNest = 0, y.inLinked = !1, L;
if (y.braceNest > 0 && (y.currentType === 5 || y.currentType === 6 || y.currentType === 7))
return f(W.UNTERMINATED_CLOSING_BRACE, i(), 0), y.braceNest = 0, q(v, y);
if (de = b(v, y))
return L = h(y, 5, Qt(v)), A(v), L;
if (ne = g(v, y))
return L = h(y, 6, Jt(v)), A(v), L;
if (he = p(v, y))
return L = h(y, 7, pn(v)), A(v), L;
if (!de && !ne && !he)
return L = h(y, 13, tn(v)), f(W.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, L.value), A(v), L;
break;
}
}
return L;
}
function M(v, y) {
const { currentType: L } = y;
let B = null;
const de = v.currentChar();
switch ((L === 8 || L === 9 || L === 12 || L === 10) && (de === qe || de === It) && f(W.INVALID_LINKED_FORMAT, i(), 0), de) {
case "@":
return v.next(), B = h(
y,
8,
"@"
/* TokenChars.LinkedAlias */
), y.inLinked = !0, B;
case ".":
return A(v), v.next(), h(
y,
9,
"."
/* TokenChars.LinkedDot */
);
case ":":
return A(v), v.next(), h(
y,
10,
":"
/* TokenChars.LinkedDelimiter */
);
default:
return O(v) ? (B = h(y, 1, te(v)), y.braceNest = 0, y.inLinked = !1, B) : k(v, y) || w(v, y) ? (A(v), M(v, y)) : C(v, y) ? (A(v), h(y, 12, zt(v))) : T(v, y) ? (A(v), de === "{" ? mn(v, y) || B : h(y, 11, R(v))) : (L === 8 && f(W.INVALID_LINKED_FORMAT, i(), 0), y.braceNest = 0, y.inLinked = !1, q(v, y));
}
}
function q(v, y) {
let L = {
type: 14
/* TokenTypes.EOF */
};
if (y.braceNest > 0)
return mn(v, y) || d(y);
if (y.inLinked)
return M(v, y) || d(y);
switch (v.currentChar()) {
case "{":
return mn(v, y) || d(y);
case "}":
return f(W.UNBALANCED_CLOSING_BRACE, i(), 0), v.next(), h(
y,
3,
"}"
/* TokenChars.BraceRight */
);
case "@":
return M(v, y) || d(y);
default: {
if (O(v))
return L = h(y, 1, te(v)), y.braceNest = 0, y.inLinked = !1, L;
const { isModulo: de, hasSpace: ne } = Z(v);
if (de)
return ne ? h(y, 0, Ut(v)) : h(y, 4, ot(v));
if (j(v))
return h(y, 0, Ut(v));
break;
}
}
return L;
}
function ie() {
const { currentType: v, offset: y, startLoc: L, endLoc: B } = s;
return s.lastType = v, s.lastOffset = y, s.lastStartLoc = L, s.lastEndLoc = B, s.offset = r(), s.startLoc = i(), u.currentChar() === Ht ? h(
s,
14
/* TokenTypes.EOF */
) : q(u, s);
}
return {
nextToken: ie,
currentOffset: r,
currentPosition: i,
context: l
};
}
const Ic = "parser", Lc = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
function Fc(e, t, n) {
switch (e) {
case "\\\\":
return "\\";
// eslint-disable-next-line no-useless-escape
case "\\'":
return "'";
default: {
const u = parseInt(t || n, 16);
return u <= 55295 || u >= 57344 ? String.fromCodePoint(u) : "�";
}
}
}
function Nc(e = {}) {
const t = e.location !== !1, { onError: n, onWarn: u } = e;
function r(b, g, p, k, ...C) {
const w = b.currentPosition();
if (w.offset += k, w.column += k, n) {
const T = t ? xu(p, w) : null, O = On(g, T, {
domain: Ic,
args: C
});
n(O);
}
}
function i(b, g, p, k, ...C) {
const w = b.currentPosition();
if (w.offset += k, w.column += k, u) {
const T = t ? xu(p, w) : null;
u(_c(g, T, C));
}
}
function o(b, g, p) {
const k = { type: b };
return t && (k.start = g, k.end = g, k.loc = { start: p, end: p }), k;
}
function a(b, g, p, k) {
t && (b.end = g, b.loc && (b.loc.end = p));
}
function s(b, g) {
const p = b.context(), k = o(3, p.offset, p.startLoc);
return k.value = g, a(k, b.currentOffset(), b.currentPosition()), k;
}
function l(b, g) {
const p = b.context(), { lastOffset: k, lastStartLoc: C } = p, w = o(5, k, C);
return w.index = parseInt(g, 10), b.nextToken(), a(w, b.currentOffset(), b.currentPosition()), w;
}
function c(b, g, p) {
const k = b.context(), { lastOffset: C, lastStartLoc: w } = k, T = o(4, C, w);
return T.key = g, p === !0 && (T.modulo = !0), b.nextToken(), a(T, b.currentOffset(), b.currentPosition()), T;
}
function f(b, g) {
const p = b.context(), { lastOffset: k, lastStartLoc: C } = p, w = o(9, k, C);
return w.value = g.replace(Lc, Fc), b.nextToken(), a(w, b.currentOffset(), b.currentPosition()), w;
}
function h(b) {
const g = b.nextToken(), p = b.context(), { lastOffset: k, lastStartLoc: C } = p, w = o(8, k, C);
return g.type !== 12 ? (r(b, W.UNEXPECTED_EMPTY_LINKED_MODIFIER, p.lastStartLoc, 0), w.value = "", a(w, k, C), {
nextConsumeToken: g,
node: w
}) : (g.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ht(g)), w.value = g.value || "", a(w, b.currentOffset(), b.currentPosition()), {
node: w
});
}
function d(b, g) {
const p = b.context(), k = o(7, p.offset, p.startLoc);
return k.value = g, a(k, b.currentOffset(), b.currentPosition()), k;
}
function m(b) {
const g = b.context(), p = o(6, g.offset, g.startLoc);
let k = b.nextToken();
if (k.type === 9) {
const C = h(b);
p.modifier = C.node, k = C.nextConsumeToken || b.nextToken();
}
switch (k.type !== 10 && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(k)), k = b.nextToken(), k.type === 2 && (k = b.nextToken()), k.type) {
case 11:
k.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(k)), p.key = d(b, k.value || "");
break;
case 5:
k.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(k)), p.key = c(b, k.value || "");
break;
case 6:
k.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(k)), p.key = l(b, k.value || "");
break;
case 7:
k.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(k)), p.key = f(b, k.value || "");
break;
default: {
r(b, W.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
const C = b.context(), w = o(7, C.offset, C.startLoc);
return w.value = "", a(w, C.offset, C.startLoc), p.key = w, a(p, C.offset, C.startLoc), {
nextConsumeToken: k,
node: p
};
}
}
return a(p, b.currentOffset(), b.currentPosition()), {
node: p
};
}
function x(b) {
const g = b.context(), p = g.currentType === 1 ? b.currentOffset() : g.offset, k = g.currentType === 1 ? g.endLoc : g.startLoc, C = o(2, p, k);
C.items = [];
let w = null, T = null;
do {
const j = w || b.nextToken();
switch (w = null, j.type) {
case 0:
j.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(j)), C.items.push(s(b, j.value || ""));
break;
case 6:
j.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(j)), C.items.push(l(b, j.value || ""));
break;
case 4:
T = !0;
break;
case 5:
j.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(j)), C.items.push(c(b, j.value || "", !!T)), T && (i(b, zu.USE_MODULO_SYNTAX, g.lastStartLoc, 0, ht(j)), T = null);
break;
case 7:
j.value == null && r(b, W.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ht(j)), C.items.push(f(b, j.value || ""));
break;
case 8: {
const _e = m(b);
C.items.push(_e.node), w = _e.nextConsumeToken || null;
break;
}
}
} while (g.currentType !== 14 && g.currentType !== 1);
const O = g.currentType === 1 ? g.lastOffset : b.currentOffset(), Z = g.currentType === 1 ? g.lastEndLoc : b.currentPosition();
return a(C, O, Z), C;
}
function A(b, g, p, k) {
const C = b.context();
let w = k.items.length === 0;
const T = o(1, g, p);
T.cases = [], T.cases.push(k);
do {
const O = x(b);
w || (w = O.items.length === 0), T.cases.push(O);
} while (C.currentType !== 14);
return w && r(b, W.MUST_HAVE_MESSAGES_IN_PLURAL, p, 0), a(T, b.currentOffset(), b.currentPosition()), T;
}
function S(b) {
const g = b.context(), { offset: p, startLoc: k } = g, C = x(b);
return g.currentType === 14 ? C : A(b, p, k, C);
}
function E(b) {
const g = Dc(b, ka({}, e)), p = g.context(), k = o(0, p.offset, p.startLoc);
return t && k.loc && (k.loc.source = b), k.body = S(g), e.onCacheKey && (k.cacheKey = e.onCacheKey(b)), p.currentType !== 14 && r(g, W.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, b[p.offset] || ""), a(k, g.currentOffset(), g.currentPosition()), k;
}
return { parse: E };
}
function ht(e) {
if (e.type === 14)
return "EOF";
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
return t.length > 10 ? t.slice(0, 9) + "…" : t;
}
function Oc(e, t = {}) {
const n = {
ast: e,
helpers: /* @__PURE__ */ new Set()
};
return { context: () => n, helper: (i) => (n.helpers.add(i), i) };
}
function qi(e, t) {
for (let n = 0; n < e.length; n++)
Yr(e[n], t);
}
function Yr(e, t) {
switch (e.type) {
case 1:
qi(e.cases, t), t.helper(
"plural"
/* HelperNameMap.PLURAL */
);
break;
case 2:
qi(e.items, t);
break;
case 6: {
Yr(e.key, t), t.helper(
"linked"
/* HelperNameMap.LINKED */
), t.helper(
"type"
/* HelperNameMap.TYPE */
);
break;
}
case 5:
t.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), t.helper(
"list"
/* HelperNameMap.LIST */
);
break;
case 4:
t.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), t.helper(
"named"
/* HelperNameMap.NAMED */
);
break;
}
}
function Pc(e, t = {}) {
const n = Oc(e);
n.helper(
"normalize"
/* HelperNameMap.NORMALIZE */
), e.body && Yr(e.body, n);
const u = n.context();
e.helpers = Array.from(u.helpers);
}
function Mc(e) {
const t = e.body;
return t.type === 2 ? ji(t) : t.cases.forEach((n) => ji(n)), e;
}
function ji(e) {
if (e.items.length === 1) {
const t = e.items[0];
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
} else {
const t = [];
for (let n = 0; n < e.items.length; n++) {
const u = e.items[n];
if (!(u.type === 3 || u.type === 9) || u.value == null)
break;
t.push(u.value);
}
if (t.length === e.items.length) {
e.static = va(t);
for (let n = 0; n < e.items.length; n++) {
const u = e.items[n];
(u.type === 3 || u.type === 9) && delete u.value;
}
}
}
}
const Rc = "minifier";
function xn(e) {
switch (e.t = e.type, e.type) {
case 0: {
const t = e;
xn(t.body), t.b = t.body, delete t.body;
break;
}
case 1: {
const t = e, n = t.cases;
for (let u = 0; u < n.length; u++)
xn(n[u]);
t.c = n, delete t.cases;
break;
}
case 2: {
const t = e, n = t.items;
for (let u = 0; u < n.length; u++)
xn(n[u]);
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
break;
}
case 3:
case 9:
case 8:
case 7: {
const t = e;
t.value && (t.v = t.value, delete t.value);
break;
}
case 6: {
const t = e;
xn(t.key), t.k = t.key, delete t.key, t.modifier && (xn(t.modifier), t.m = t.modifier, delete t.modifier);
break;
}
case 5: {
const t = e;
t.i = t.index, delete t.index;
break;
}
case 4: {
const t = e;
t.k = t.key, delete t.key;
break;
}
default:
throw On(W.UNHANDLED_MINIFIER_NODE_TYPE, null, {
domain: Rc,
args: [e.type]
});
}
delete e.type;
}
const $c = "parser";
function Uc(e, t) {
const { filename: n, breakLineCode: u, needIndent: r } = t, i = t.location !== !1, o = {
filename: n,
code: "",
column: 1,
line: 1,
offset: 0,
map: void 0,
breakLineCode: u,
needIndent: r,
indentLevel: 0
};
i && e.loc && (o.source = e.loc.source);
const a = () => o;
function s(x, A) {
o.code += x;
}
function l(x, A = !0) {
const S = A ? u : "";
s(r ? S + " ".repeat(x) : S);
}
function c(x = !0) {
const A = ++o.indentLevel;
x && l(A);
}
function f(x = !0) {
const A = --o.indentLevel;
x && l(A);
}
function h() {
l(o.indentLevel);
}
return {
context: a,
push: s,
indent: c,
deindent: f,
newline: h,
helper: (x) => `_${x}`,
needIndent: () => o.needIndent
};
}
function zc(e, t) {
const { helper: n } = e;
e.push(`${n(
"linked"
/* HelperNameMap.LINKED */
)}(`), Tn(e, t.key), t.modifier ? (e.push(", "), Tn(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
}
function Bc(e, t) {
const { helper: n, needIndent: u } = e;
e.push(`${n(
"normalize"
/* HelperNameMap.NORMALIZE */
)}([`), e.indent(u());
const r = t.items.length;
for (let i = 0; i < r && (Tn(e, t.items[i]), i !== r - 1); i++)
e.push(", ");
e.deindent(u()), e.push("])");
}
function Hc(e, t) {
const { helper: n, needIndent: u } = e;
if (t.cases.length > 1) {
e.push(`${n(
"plural"
/* HelperNameMap.PLURAL */
)}([`), e.indent(u());
const r = t.cases.length;
for (let i = 0; i < r && (Tn(e, t.cases[i]), i !== r - 1); i++)
e.push(", ");
e.deindent(u()), e.push("])");
}
}
function Vc(e, t) {
t.body ? Tn(e, t.body) : e.push("null");
}
function Tn(e, t) {
const { helper: n } = e;
switch (t.type) {
case 0:
Vc(e, t);
break;
case 1:
Hc(e, t);
break;
case 2:
Bc(e, t);
break;
case 6:
zc(e, t);
break;
case 8:
e.push(JSON.stringify(t.value), t);
break;
case 7:
e.push(JSON.stringify(t.value), t);
break;
case 5:
e.push(`${n(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${n(
"list"
/* HelperNameMap.LIST */
)}(${t.index}))`, t);
break;
case 4:
e.push(`${n(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${n(
"named"
/* HelperNameMap.NAMED */
)}(${JSON.stringify(t.key)}))`, t);
break;
case 9:
e.push(JSON.stringify(t.value), t);
break;
case 3:
e.push(JSON.stringify(t.value), t);
break;
default:
throw On(W.UNHANDLED_CODEGEN_NODE_TYPE, null, {
domain: $c,
args: [t.type]
});
}
}
const qc = (e, t = {}) => {
const n = Hi(t.mode) ? t.mode : "normal", u = Hi(t.filename) ? t.filename : "message.intl";
t.sourceMap;
const r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
`, i = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], a = Uc(e, {
filename: u,
breakLineCode: r,
needIndent: i
});
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(i), o.length > 0 && (a.push(`const { ${va(o.map((c) => `${c}: _${c}`), ", ")} } = ctx`), a.newline()), a.push("return "), Tn(a, e), a.deindent(i), a.push("}"), delete e.helpers;
const { code: s, map: l } = a.context();
return {
ast: e,
code: s,
map: l ? l.toJSON() : void 0
// eslint-disable-line @typescript-eslint/no-explicit-any
};
};
function jc(e, t = {}) {
const n = ka({}, t), u = !!n.jit, r = !!n.minify, i = n.optimize == null ? !0 : n.optimize, a = Nc(n).parse(e);
return u ? (i && Mc(a), r && xn(a), { ast: a, code: "" }) : (Pc(a, n), qc(a, n));
}
/*!
* core-base v9.14.5
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function Wc() {
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Nt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Nt().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Nt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
}
function lt(e) {
return J(e) && Kr(e) === 0 && (pt(e, "b") || pt(e, "body"));
}
const xa = ["b", "body"];
function Gc(e) {
return Zt(e, xa);
}
const ya = ["c", "cases"];
function Yc(e) {
return Zt(e, ya, []);
}
const Ea = ["s", "static"];
function Kc(e) {
return Zt(e, Ea);
}
const Ca = ["i", "items"];
function Zc(e) {
return Zt(e, Ca, []);
}
const Aa = ["t", "type"];
function Kr(e) {
return Zt(e, Aa);
}
const wa = ["v", "value"];
function fu(e, t) {
const n = Zt(e, wa);
if (n != null)
return n;
throw jn(t);
}
const Ta = ["m", "modifier"];
function Xc(e) {
return Zt(e, Ta);
}
const Sa = ["k", "key"];
function Qc(e) {
const t = Zt(e, Sa);
if (t)
return t;
throw jn(
6
/* NodeTypes.Linked */
);
}
function Zt(e, t, n) {
for (let u = 0; u < t.length; u++) {
const r = t[u];
if (pt(e, r) && e[r] != null)
return e[r];
}
return n;
}
const Da = [
...xa,
...ya,
...Ea,
...Ca,
...Sa,
...Ta,
...wa,
...Aa
];
function jn(e) {
return new Error(`unhandled node type: ${e}`);
}
const Xt = [];
Xt[
0
/* States.BEFORE_PATH */
] = {
w: [
0
/* States.BEFORE_PATH */
],
i: [
3,
0
/* Actions.APPEND */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Xt[
1
/* States.IN_PATH */
] = {
w: [
1
/* States.IN_PATH */
],
".": [
2
/* States.BEFORE_IDENT */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Xt[
2
/* States.BEFORE_IDENT */
] = {
w: [
2
/* States.BEFORE_IDENT */
],
i: [
3,
0
/* Actions.APPEND */
],
0: [
3,
0
/* Actions.APPEND */
]
};
Xt[
3
/* States.IN_IDENT */
] = {
i: [
3,
0
/* Actions.APPEND */
],
0: [
3,
0
/* Actions.APPEND */
],
w: [
1,
1
/* Actions.PUSH */
],
".": [
2,
1
/* Actions.PUSH */
],
"[": [
4,
1
/* Actions.PUSH */
],
o: [
7,
1
/* Actions.PUSH */
]
};
Xt[
4
/* States.IN_SUB_PATH */
] = {
"'": [
5,
0
/* Actions.APPEND */
],
'"': [
6,
0
/* Actions.APPEND */
],
"[": [
4,
2
/* Actions.INC_SUB_PATH_DEPTH */
],
"]": [
1,
3
/* Actions.PUSH_SUB_PATH */
],
o: 8,
l: [
4,
0
/* Actions.APPEND */
]
};
Xt[
5
/* States.IN_SINGLE_QUOTE */
] = {
"'": [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
5,
0
/* Actions.APPEND */
]
};
Xt[
6
/* States.IN_DOUBLE_QUOTE */
] = {
'"': [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
6,
0
/* Actions.APPEND */
]
};
const Jc = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
function e0(e) {
return Jc.test(e);
}
function t0(e) {
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
}
function n0(e) {
if (e == null)
return "o";
switch (e.charCodeAt(0)) {
case 91:
// [
case 93:
// ]
case 46:
// .
case 34:
// "
case 39:
return e;
case 95:
// _
case 36:
// $
case 45:
return "i";
case 9:
// Tab (HT)
case 10:
// Newline (LF)
case 13:
// Return (CR)
case 160:
// No-break space (NBSP)
case 65279:
// Byte Order Mark (BOM)
case 8232:
// Line Separator (LS)
case 8233:
return "w";
}
return "i";
}
function u0(e) {
const t = e.trim();
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : e0(t) ? t0(t) : "*" + t;
}
function r0(e) {
const t = [];
let n = -1, u = 0, r = 0, i, o, a, s, l, c, f;
const h = [];
h[
0
/* Actions.APPEND */
] = () => {
o === void 0 ? o = a : o += a;
}, h[
1
/* Actions.PUSH */
] = () => {
o !== void 0 && (t.push(o), o = void 0);
}, h[
2
/* Actions.INC_SUB_PATH_DEPTH */
] = () => {
h[
0
/* Actions.APPEND */
](), r++;
}, h[
3
/* Actions.PUSH_SUB_PATH */
] = () => {
if (r > 0)
r--, u = 4, h[
0
/* Actions.APPEND */
]();
else {
if (r = 0, o === void 0 || (o = u0(o), o === !1))
return !1;
h[
1
/* Actions.PUSH */
]();
}
};
function d() {
const m = e[n + 1];
if (u === 5 && m === "'" || u === 6 && m === '"')
return n++, a = "\\" + m, h[
0
/* Actions.APPEND */
](), !0;
}
for (; u !== null; )
if (n++, i = e[n], !(i === "\\" && d())) {
if (s = n0(i), f = Xt[u], l = f[s] || f.l || 8, l === 8 || (u = l[0], l[1] !== void 0 && (c = h[l[1]], c && (a = i, c() === !1))))
return;
if (u === 7)
return t;
}
}
const Wi = /* @__PURE__ */ new Map();
function i0(e, t) {
return J(e) ? e[t] : null;
}
function o0(e, t) {
if (!J(e))
return null;
let n = Wi.get(t);
if (n || (n = r0(t), n && Wi.set(t, n)), !n)
return null;
const u = n.length;
let r = e, i = 0;
for (; i < u; ) {
const o = n[i];
if (Da.includes(o) && lt(r))
return null;
const a = r[o];
if (a === void 0 || pe(r))
return null;
r = a, i++;
}
return r;
}
const a0 = (e) => e, s0 = (e) => "", l0 = "text", c0 = (e) => e.length === 0 ? "" : dc(e), f0 = fc;
function Gi(e, t) {
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
}
function d0(e) {
const t = Se(e.pluralIndex) ? e.pluralIndex : -1;
return e.named && (Se(e.named.count) || Se(e.named.n)) ? Se(e.named.count) ? e.named.count : Se(e.named.n) ? e.named.n : t : t;
}
function h0(e, t) {
t.count || (t.count = e), t.n || (t.n = e);
}
function p0(e = {}) {
const t = e.locale, n = d0(e), u = J(e.pluralRules) && $(t) && pe(e.pluralRules[t]) ? e.pluralRules[t] : Gi, r = J(e.pluralRules) && $(t) && pe(e.pluralRules[t]) ? Gi : void 0, i = (S) => S[u(n, S.length, r)], o = e.list || [], a = (S) => o[S], s = e.named || ge();
Se(e.pluralIndex) && h0(n, s);
const l = (S) => s[S];
function c(S) {
const E = pe(e.messages) ? e.messages(S) : J(e.messages) ? e.messages[S] : !1;
return E || (e.parent ? e.parent.message(S) : s0);
}
const f = (S) => e.modifiers ? e.modifiers[S] : a0, h = G(e.processor) && pe(e.processor.normalize) ? e.processor.normalize : c0, d = G(e.processor) && pe(e.processor.interpolate) ? e.processor.interpolate : f0, m = G(e.processor) && $(e.processor.type) ? e.processor.type : l0, A = {
list: a,
named: l,
plural: i,
linked: (S, ...E) => {
const [b, g] = E;
let p = "text", k = "";
E.length === 1 ? J(b) ? (k = b.modifier || k, p = b.type || p) : $(b) && (k = b || k) : E.length === 2 && ($(b) && (k = b || k), $(g) && (p = g || p));
const C = c(S)(A), w = (
// The message in vnode resolved with linked are returned as an array by processor.nomalize
p === "vnode" && ke(C) && k ? C[0] : C
);
return k ? f(k)(w, p) : w;
},
message: c,
type: m,
interpolate: d,
normalize: h,
values: Ue(ge(), o, s)
};
return A;
}
let Wn = null;
function m0(e) {
Wn = e;
}
function g0(e, t, n) {
Wn && Wn.emit("i18n:init", {
timestamp: Date.now(),
i18n: e,
version: t,
meta: n
});
}
const b0 = /* @__PURE__ */ _0(
"function:translate"
/* IntlifyDevToolsHooks.FunctionTranslate */
);
function _0(e) {
return (t) => Wn && Wn.emit(e, t);
}
const Ia = zu.__EXTEND_POINT__, un = Uu(Ia), je = {
NOT_FOUND_KEY: Ia,
// 2
FALLBACK_TO_TRANSLATE: un(),
// 3
CANNOT_FORMAT_NUMBER: un(),
// 4
FALLBACK_TO_NUMBER_FORMAT: un(),
// 5
CANNOT_FORMAT_DATE: un(),
// 6
FALLBACK_TO_DATE_FORMAT: un(),
// 7
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: un(),
// 8
__EXTEND_POINT__: un()
// 9
}, k0 = {
[je.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
[je.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
[je.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
[je.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
[je.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
[je.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
[je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
};
function ln(e, ...t) {
return Wr(k0[e], ...t);
}
const La = W.__EXTEND_POINT__, rn = Uu(La), Pe = {
INVALID_ARGUMENT: La,
// 17
INVALID_DATE_ARGUMENT: rn(),
// 18
INVALID_ISO_DATE_ARGUMENT: rn(),
// 19
NOT_SUPPORT_NON_STRING_MESSAGE: rn(),
// 20
NOT_SUPPORT_LOCALE_PROMISE_VALUE: rn(),
// 21
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: rn(),
// 22
NOT_SUPPORT_LOCALE_TYPE: rn(),
// 23
__EXTEND_POINT__: rn()
// 24
};
function vt(e) {
return On(e, null, process.env.NODE_ENV !== "production" ? { messages: v0 } : void 0);
}
const v0 = {
[Pe.INVALID_ARGUMENT]: "Invalid arguments",
[Pe.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
[Pe.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
[Pe.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
[Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
[Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
[Pe.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
};
function Zr(e, t) {
return t.locale != null ? Yi(t.locale) : Yi(e.locale);
}
let ur;
function Yi(e) {
if ($(e))
return e;
if (pe(e)) {
if (e.resolvedOnce && ur != null)
return ur;
if (e.constructor.name === "Function") {
const t = e();
if (cc(t))
throw vt(Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
return ur = t;
} else
throw vt(Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
} else
throw vt(Pe.NOT_SUPPORT_LOCALE_TYPE);
}
function x0(e, t, n) {
return [.../* @__PURE__ */ new Set([
n,
...ke(t) ? t : J(t) ? Object.keys(t) : $(t) ? [t] : [n]
])];
}
function Fa(e, t, n) {
const u = $(n) ? n : Sn, r = e;
r.__localeChainCache || (r.__localeChainCache = /* @__PURE__ */ new Map());
let i = r.__localeChainCache.get(u);
if (!i) {
i = [];
let o = [n];
for (; ke(o); )
o = Ki(i, o, t);
const a = ke(t) || !G(t) ? t : t.default ? t.default : null;
o = $(a) ? [a] : a, ke(o) && Ki(i, o, !1), r.__localeChainCache.set(u, i);
}
return i;
}
function Ki(e, t, n) {
let u = !0;
for (let r = 0; r < t.length && X(u); r++) {
const i = t[r];
$(i) && (u = y0(e, t[r], n));
}
return u;
}
function y0(e, t, n) {
let u;
const r = t.split("-");
do {
const i = r.join("-");
u = E0(e, i, n), r.splice(-1, 1);
} while (r.length && u === !0);
return u;
}
function E0(e, t, n) {
let u = !1;
if (!e.includes(t) && (u = !0, t)) {
u = t[t.length - 1] !== "!";
const r = t.replace(/!/g, "");
e.push(r), (ke(n) || G(n)) && n[r] && (u = n[r]);
}
return u;
}
const C0 = "9.14.5", Bu = -1, Sn = "en-US", yu = "", Zi = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
function A0() {
return {
upper: (e, t) => t === "text" && $(e) ? e.toUpperCase() : t === "vnode" && J(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
lower: (e, t) => t === "text" && $(e) ? e.toLowerCase() : t === "vnode" && J(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
capitalize: (e, t) => t === "text" && $(e) ? Zi(e) : t === "vnode" && J(e) && "__v_isVNode" in e ? Zi(e.children) : e
};
}
let Na;
function Xi(e) {
Na = e;
}
let Oa;
function w0(e) {
Oa = e;
}
let Pa;
function T0(e) {
Pa = e;
}
let Ma = null;
const S0 = /* @__NO_SIDE_EFFECTS__ */ (e) => {
Ma = e;
}, D0 = /* @__NO_SIDE_EFFECTS__ */ () => Ma;
let Ra = null;
const Qi = (e) => {
Ra = e;
}, I0 = () => Ra;
let Ji = 0;
function L0(e = {}) {
const t = pe(e.onWarn) ? e.onWarn : De, n = $(e.version) ? e.version : C0, u = $(e.locale) || pe(e.locale) ? e.locale : Sn, r = pe(u) ? Sn : u, i = ke(e.fallbackLocale) || G(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = G(e.messages) ? e.messages : rr(r), a = G(e.datetimeFormats) ? e.datetimeFormats : rr(r), s = G(e.numberFormats) ? e.numberFormats : rr(r), l = Ue(ge(), e.modifiers, A0()), c = e.pluralRules || ge(), f = pe(e.missing) ? e.missing : null, h = X(e.missingWarn) || Gt(e.missingWarn) ? e.missingWarn : !0, d = X(e.fallbackWarn) || Gt(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, x = !!e.unresolving, A = pe(e.postTranslation) ? e.postTranslation : null, S = G(e.processor) ? e.processor : null, E = X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, g = pe(e.messageCompiler) ? e.messageCompiler : Na;
process.env.NODE_ENV !== "production" && pe(e.messageCompiler) && ma(ln(je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
const p = pe(e.messageResolver) ? e.messageResolver : Oa || i0, k = pe(e.localeFallbacker) ? e.localeFallbacker : Pa || x0, C = J(e.fallbackContext) ? e.fallbackContext : void 0, w = e, T = J(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), O = J(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), Z = J(w.__meta) ? w.__meta : {};
Ji++;
const j = {
version: n,
cid: Ji,
locale: u,
fallbackLocale: i,
messages: o,
modifiers: l,
pluralRules: c,
missing: f,
missingWarn: h,
fallbackWarn: d,
fallbackFormat: m,
unresolving: x,
postTranslation: A,
processor: S,
warnHtmlMessage: E,
escapeParameter: b,
messageCompiler: g,
messageResolver: p,
localeFallbacker: k,
fallbackContext: C,
onWarn: t,
__meta: Z
};
return j.datetimeFormats = a, j.numberFormats = s, j.__datetimeFormatters = T, j.__numberFormatters = O, process.env.NODE_ENV !== "production" && (j.__v_emitter = w.__v_emitter != null ? w.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && g0(j, n, Z), j;
}
const rr = (e) => ({ [e]: ge() });
function Hu(e, t) {
return e instanceof RegExp ? e.test(t) : e;
}
function $a(e, t) {
return e instanceof RegExp ? e.test(t) : e;
}
function Xr(e, t, n, u, r) {
const { missing: i, onWarn: o } = e;
if (process.env.NODE_ENV !== "production") {
const a = e.__v_emitter;
a && a.emit("missing", {
locale: n,
key: t,
type: r,
groupId: `${r}:${t}`
});
}
if (i !== null) {
const a = i(e, n, t, r);
return $(a) ? a : t;
} else
return process.env.NODE_ENV !== "production"