@agendize/design-system
Version:
Agendize web design system
1,722 lines • 3.56 MB
JavaScript
var tF = Object.defineProperty;
var iF = (t, o, c) => o in t ? tF(t, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[o] = c;
var xa = (t, o, c) => iF(t, typeof o != "symbol" ? o + "" : o, c);
import { getCurrentInstance as G2, inject as am, ref as We, shallowRef as U0, computed as Ve, watch as Ni, onMounted as Qr, onUnmounted as gy, defineComponent as Zt, h as N_, createVNode as Ht, Text as HM, Fragment as qi, resolveDirective as Yo, createElementBlock as pe, createCommentVNode as qe, openBlock as ee, normalizeClass as ft, withDirectives as fn, createElementVNode as ve, toDisplayString as Bt, unref as Z, renderSlot as ni, normalizeProps as Ja, guardReactiveProps as Eo, createBlock as Wt, withCtx as Jt, vModelText as pl, vShow as ha, watchEffect as $1, toValue as Ga, nextTick as Io, onBeforeUnmount as WM, withKeys as vn, createTextVNode as xr, toRefs as qM, onActivated as nF, onDeactivated as rF, renderList as Mn, vModelCheckbox as R1, normalizeStyle as ma, reactive as F1, resolveDynamicComponent as Yl, mergeProps as Zo, toRef as j0, provide as _y, isRef as mo, resolveComponent as us, toHandlers as V_, withModifiers as Jn, Transition as U_, vModelRadio as H2, mergeModels as Ea, useModel as _o, vModelDynamic as aF, useSlots as Ya, createSlots as Yp, getCurrentScope as oF, onScopeDispose as sF, pushScopeId as lF, popScopeId as cF, createApp as uF, withScopeId as dF, mergeDefaults as YM, createStaticVNode as W2, Comment as hF, Teleport as ZM, useCssVars as fF, onErrorCaptured as pF } from "vue";
import { getStandardLocale as go, getCountriesForSelect as mF } from "@agendize/az-i18n";
var Wn = /* @__PURE__ */ ((t) => (t[t.mandatory = 0] = "mandatory", t[t.optional = 1] = "optional", t[t.ignore = 2] = "ignore", t[t.ignoreWithStar = 3] = "ignoreWithStar", t))(Wn || {});
const j_ = "fa-regular fa-spinner-third fa-spin";
function gF(t, o, c = "modelValue") {
t && (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) && (t.matches('[type="checkbox"]') ? o("update:" + c, t.value !== "true") : o("update:" + c, t.value));
}
function _F(t) {
if (t === "title")
return 1;
if (t === "title2")
return 2;
if (t === "title3")
return 3;
}
function q2(t, o, c = !1) {
return t === "title" || t === "title2" || t === "title3" || t === "label" ? 2 : o === !0 ? c ? 3 : 0 : 1;
}
function yF(t) {
return t === "date" ? "date" : null;
}
function G_(t, o) {
return t === "auto" || t === "autoOnError" && o !== void 0 && (o === !0 || o !== "");
}
/*!
* shared v11.1.12
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function Oc(t, o) {
typeof console < "u" && (console.warn("[intlify] " + t), o && console.warn(o.stack));
}
const J3 = {};
function vF(t) {
J3[t] || (J3[t] = !0, Oc(t));
}
const xu = typeof window < "u";
let Vs, Lh;
if (process.env.NODE_ENV !== "production") {
const t = xu && window.performance;
t && t.mark && t.measure && t.clearMarks && // @ts-ignore browser compat
t.clearMeasures && (Vs = (o) => {
t.mark(o);
}, Lh = (o, c, d) => {
t.measure(o, c, d), t.clearMarks(c), t.clearMarks(d);
});
}
const xF = /\{([0-9a-zA-Z]+)\}/g;
function B1(t, ...o) {
return o.length === 1 && oa(o[0]) && (o = o[0]), (!o || !o.hasOwnProperty) && (o = {}), t.replace(xF, (c, d) => o.hasOwnProperty(d) ? o[d] : "");
}
const Su = (t, o = !1) => o ? Symbol.for(t) : Symbol(t), bF = (t, o, c) => wF({ l: t, k: o, s: c }), wF = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), So = (t) => typeof t == "number" && isFinite(t), TF = (t) => Y2(t) === "[object Date]", o1 = (t) => Y2(t) === "[object RegExp]", N1 = (t) => aa(t) && Object.keys(t).length === 0, Co = Object.assign, AF = Object.create, wa = (t = null) => AF(t);
let eI;
const zh = () => eI || (eI = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : wa());
function tI(t) {
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
}
function iI(t) {
return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
}
function EF(t) {
return t = t.replace(/(\w+)\s*=\s*"([^"]*)"/g, (d, x, w) => `${x}="${iI(w)}"`), t = t.replace(/(\w+)\s*=\s*'([^']*)'/g, (d, x, w) => `${x}='${iI(w)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t) && (process.env.NODE_ENV !== "production" && Oc("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), t = t.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((d) => {
t = t.replace(d, "$1javascript:");
}), t;
}
const SF = Object.prototype.hasOwnProperty;
function Wl(t, o) {
return SF.call(t, o);
}
const to = Array.isArray, Na = (t) => typeof t == "function", _n = (t) => typeof t == "string", eo = (t) => typeof t == "boolean", oa = (t) => t !== null && typeof t == "object", IF = (t) => oa(t) && Na(t.then) && Na(t.catch), XM = Object.prototype.toString, Y2 = (t) => XM.call(t), aa = (t) => Y2(t) === "[object Object]", CF = (t) => t == null ? "" : to(t) || aa(t) && t.toString === XM ? JSON.stringify(t, null, 2) : String(t);
function Z2(t, o = "") {
return t.reduce((c, d, x) => x === 0 ? c + d : c + o + d, "");
}
const nI = 2;
function zF(t, o = 0, c = t.length) {
const d = t.split(/\r?\n/);
let x = 0;
const w = [];
for (let E = 0; E < d.length; E++)
if (x += d[E].length + 1, x >= o) {
for (let a = E - nI; a <= E + nI || c > x; a++) {
if (a < 0 || a >= d.length)
continue;
const z = a + 1;
w.push(`${z}${" ".repeat(3 - String(z).length)}| ${d[a]}`);
const P = d[a].length;
if (a === E) {
const B = o - (x - P) + 1, V = Math.max(1, c > x ? P - B : c - o);
w.push(" | " + " ".repeat(B) + "^".repeat(V));
} else if (a > E) {
if (c > x) {
const B = Math.max(Math.min(c - x, P), 1);
w.push(" | " + "^".repeat(B));
}
x += P + 1;
}
}
break;
}
return w.join(`
`);
}
function MF() {
const t = /* @__PURE__ */ new Map();
return {
events: t,
on(c, d) {
const x = t.get(c);
x && x.push(d) || t.set(c, [d]);
},
off(c, d) {
const x = t.get(c);
x && x.splice(x.indexOf(d) >>> 0, 1);
},
emit(c, d) {
(t.get(c) || []).slice().map((x) => x(d)), (t.get("*") || []).slice().map((x) => x(c, d));
}
};
}
const E0 = (t) => !oa(t) || to(t);
function G0(t, o) {
if (E0(t) || E0(o))
throw new Error("Invalid value");
const c = [{ src: t, des: o }];
for (; c.length; ) {
const { src: d, des: x } = c.pop();
Object.keys(d).forEach((w) => {
w !== "__proto__" && (oa(d[w]) && !oa(x[w]) && (x[w] = Array.isArray(d[w]) ? [] : wa()), E0(x[w]) || E0(d[w]) ? x[w] = d[w] : c.push({ src: d[w], des: x[w] }));
});
}
}
/*!
* message-compiler v11.1.12
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function PF(t, o, c) {
return { line: t, column: o, offset: c };
}
function Kw(t, o, c) {
return { start: t, end: o };
}
const hr = {
// 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
}, DF = 17, kF = {
// tokenizer error messages
[hr.EXPECTED_TOKEN]: "Expected token: '{0}'",
[hr.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
[hr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
[hr.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
[hr.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
[hr.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
[hr.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
[hr.EMPTY_PLACEHOLDER]: "Empty placeholder",
[hr.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
[hr.INVALID_LINKED_FORMAT]: "Invalid linked format",
// parser error messages
[hr.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
[hr.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
[hr.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
[hr.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
// generator error messages
[hr.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
// minimizer error messages
[hr.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
};
function om(t, o, c = {}) {
const { domain: d, messages: x, args: w } = c, E = process.env.NODE_ENV !== "production" ? B1((x || kF)[t] || "", ...w || []) : t, a = new SyntaxError(String(E));
return a.code = t, o && (a.location = o), a.domain = d, a;
}
function OF(t) {
throw t;
}
const LF = /<\/?[\w\s="/.':;#-\/]+>/, $F = (t) => LF.test(t), Ac = " ", RF = "\r", jo = `
`, FF = "\u2028", BF = "\u2029";
function NF(t) {
const o = t;
let c = 0, d = 1, x = 1, w = 0;
const E = (fe) => o[fe] === RF && o[fe + 1] === jo, a = (fe) => o[fe] === jo, z = (fe) => o[fe] === BF, P = (fe) => o[fe] === FF, B = (fe) => E(fe) || a(fe) || z(fe) || P(fe), V = () => c, Y = () => d, G = () => x, oe = () => w, Q = (fe) => E(fe) || z(fe) || P(fe) ? jo : o[fe], re = () => Q(c), X = () => Q(c + w);
function ae() {
return w = 0, B(c) && (d++, x = 0), E(c) && c++, c++, x++, o[c];
}
function de() {
return E(c + w) && w++, w++, o[c + w];
}
function he() {
c = 0, d = 1, x = 1, w = 0;
}
function Ie(fe = 0) {
w = fe;
}
function Pe() {
const fe = c + w;
for (; fe !== c; )
ae();
w = 0;
}
return {
index: V,
line: Y,
column: G,
peekOffset: oe,
charAt: Q,
currentChar: re,
currentPeek: X,
next: ae,
peek: de,
reset: he,
resetPeek: Ie,
skipToPeek: Pe
};
}
const du = void 0, VF = ".", rI = "'", UF = "tokenizer";
function jF(t, o = {}) {
const c = o.location !== !1, d = NF(t), x = () => d.index(), w = () => PF(d.line(), d.column(), d.index()), E = w(), a = x(), z = {
currentType: 13,
offset: a,
startLoc: E,
endLoc: E,
lastType: 13,
lastOffset: a,
lastStartLoc: E,
lastEndLoc: E,
braceNest: 0,
inLinked: !1,
text: ""
}, P = () => z, { onError: B } = o;
function V(Ge, tt, ii, ...It) {
const bi = P();
if (tt.column += ii, tt.offset += ii, B) {
const Di = c ? Kw(bi.startLoc, tt) : null, Mi = om(Ge, Di, {
domain: UF,
args: It
});
B(Mi);
}
}
function Y(Ge, tt, ii) {
Ge.endLoc = w(), Ge.currentType = tt;
const It = { type: tt };
return c && (It.loc = Kw(Ge.startLoc, Ge.endLoc)), ii != null && (It.value = ii), It;
}
const G = (Ge) => Y(
Ge,
13
/* TokenTypes.EOF */
);
function oe(Ge, tt) {
return Ge.currentChar() === tt ? (Ge.next(), tt) : (V(hr.EXPECTED_TOKEN, w(), 0, tt), "");
}
function Q(Ge) {
let tt = "";
for (; Ge.currentPeek() === Ac || Ge.currentPeek() === jo; )
tt += Ge.currentPeek(), Ge.peek();
return tt;
}
function re(Ge) {
const tt = Q(Ge);
return Ge.skipToPeek(), tt;
}
function X(Ge) {
if (Ge === du)
return !1;
const tt = Ge.charCodeAt(0);
return tt >= 97 && tt <= 122 || // a-z
tt >= 65 && tt <= 90 || // A-Z
tt === 95;
}
function ae(Ge) {
if (Ge === du)
return !1;
const tt = Ge.charCodeAt(0);
return tt >= 48 && tt <= 57;
}
function de(Ge, tt) {
const { currentType: ii } = tt;
if (ii !== 2)
return !1;
Q(Ge);
const It = X(Ge.currentPeek());
return Ge.resetPeek(), It;
}
function he(Ge, tt) {
const { currentType: ii } = tt;
if (ii !== 2)
return !1;
Q(Ge);
const It = Ge.currentPeek() === "-" ? Ge.peek() : Ge.currentPeek(), bi = ae(It);
return Ge.resetPeek(), bi;
}
function Ie(Ge, tt) {
const { currentType: ii } = tt;
if (ii !== 2)
return !1;
Q(Ge);
const It = Ge.currentPeek() === rI;
return Ge.resetPeek(), It;
}
function Pe(Ge, tt) {
const { currentType: ii } = tt;
if (ii !== 7)
return !1;
Q(Ge);
const It = Ge.currentPeek() === ".";
return Ge.resetPeek(), It;
}
function fe(Ge, tt) {
const { currentType: ii } = tt;
if (ii !== 8)
return !1;
Q(Ge);
const It = X(Ge.currentPeek());
return Ge.resetPeek(), It;
}
function Ne(Ge, tt) {
const { currentType: ii } = tt;
if (!(ii === 7 || ii === 11))
return !1;
Q(Ge);
const It = Ge.currentPeek() === ":";
return Ge.resetPeek(), It;
}
function mt(Ge, tt) {
const { currentType: ii } = tt;
if (ii !== 9)
return !1;
const It = () => {
const Di = Ge.currentPeek();
return Di === "{" ? X(Ge.peek()) : Di === "@" || Di === "|" || Di === ":" || Di === "." || Di === Ac || !Di ? !1 : Di === jo ? (Ge.peek(), It()) : Vt(Ge, !1);
}, bi = It();
return Ge.resetPeek(), bi;
}
function bt(Ge) {
Q(Ge);
const tt = Ge.currentPeek() === "|";
return Ge.resetPeek(), tt;
}
function Vt(Ge, tt = !0) {
const ii = (bi = !1, Di = "") => {
const Mi = Ge.currentPeek();
return Mi === "{" || Mi === "@" || !Mi ? bi : Mi === "|" ? !(Di === Ac || Di === jo) : Mi === Ac ? (Ge.peek(), ii(!0, Ac)) : Mi === jo ? (Ge.peek(), ii(!0, jo)) : !0;
}, It = ii();
return tt && Ge.resetPeek(), It;
}
function qt(Ge, tt) {
const ii = Ge.currentChar();
return ii === du ? du : tt(ii) ? (Ge.next(), ii) : null;
}
function zt(Ge) {
const tt = Ge.charCodeAt(0);
return tt >= 97 && tt <= 122 || // a-z
tt >= 65 && tt <= 90 || // A-Z
tt >= 48 && tt <= 57 || // 0-9
tt === 95 || // _
tt === 36;
}
function zi(Ge) {
return qt(Ge, zt);
}
function oi(Ge) {
const tt = Ge.charCodeAt(0);
return tt >= 97 && tt <= 122 || // a-z
tt >= 65 && tt <= 90 || // A-Z
tt >= 48 && tt <= 57 || // 0-9
tt === 95 || // _
tt === 36 || // $
tt === 45;
}
function $t(Ge) {
return qt(Ge, oi);
}
function pt(Ge) {
const tt = Ge.charCodeAt(0);
return tt >= 48 && tt <= 57;
}
function Tt(Ge) {
return qt(Ge, pt);
}
function gt(Ge) {
const tt = Ge.charCodeAt(0);
return tt >= 48 && tt <= 57 || // 0-9
tt >= 65 && tt <= 70 || // A-F
tt >= 97 && tt <= 102;
}
function rt(Ge) {
return qt(Ge, gt);
}
function Yt(Ge) {
let tt = "", ii = "";
for (; tt = Tt(Ge); )
ii += tt;
return ii;
}
function ct(Ge) {
let tt = "";
for (; ; ) {
const ii = Ge.currentChar();
if (ii === "{" || ii === "}" || ii === "@" || ii === "|" || !ii)
break;
if (ii === Ac || ii === jo)
if (Vt(Ge))
tt += ii, Ge.next();
else {
if (bt(Ge))
break;
tt += ii, Ge.next();
}
else
tt += ii, Ge.next();
}
return tt;
}
function Dt(Ge) {
re(Ge);
let tt = "", ii = "";
for (; tt = $t(Ge); )
ii += tt;
const It = Ge.currentChar();
if (It && It !== "}" && It !== du && It !== Ac && It !== jo && It !== " ") {
const bi = Fi(Ge);
return V(hr.INVALID_TOKEN_IN_PLACEHOLDER, w(), 0, ii + bi), ii + bi;
}
return Ge.currentChar() === du && V(hr.UNTERMINATED_CLOSING_BRACE, w(), 0), ii;
}
function xi(Ge) {
re(Ge);
let tt = "";
return Ge.currentChar() === "-" ? (Ge.next(), tt += `-${Yt(Ge)}`) : tt += Yt(Ge), Ge.currentChar() === du && V(hr.UNTERMINATED_CLOSING_BRACE, w(), 0), tt;
}
function Ri(Ge) {
return Ge !== rI && Ge !== jo;
}
function Si(Ge) {
re(Ge), oe(Ge, "'");
let tt = "", ii = "";
for (; tt = qt(Ge, Ri); )
tt === "\\" ? ii += Yi(Ge) : ii += tt;
const It = Ge.currentChar();
return It === jo || It === du ? (V(hr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, w(), 0), It === jo && (Ge.next(), oe(Ge, "'")), ii) : (oe(Ge, "'"), ii);
}
function Yi(Ge) {
const tt = Ge.currentChar();
switch (tt) {
case "\\":
case "'":
return Ge.next(), `\\${tt}`;
case "u":
return er(Ge, tt, 4);
case "U":
return er(Ge, tt, 6);
default:
return V(hr.UNKNOWN_ESCAPE_SEQUENCE, w(), 0, tt), "";
}
}
function er(Ge, tt, ii) {
oe(Ge, tt);
let It = "";
for (let bi = 0; bi < ii; bi++) {
const Di = rt(Ge);
if (!Di) {
V(hr.INVALID_UNICODE_ESCAPE_SEQUENCE, w(), 0, `\\${tt}${It}${Ge.currentChar()}`);
break;
}
It += Di;
}
return `\\${tt}${It}`;
}
function Ei(Ge) {
return Ge !== "{" && Ge !== "}" && Ge !== Ac && Ge !== jo;
}
function Fi(Ge) {
re(Ge);
let tt = "", ii = "";
for (; tt = qt(Ge, Ei); )
ii += tt;
return ii;
}
function tn(Ge) {
let tt = "", ii = "";
for (; tt = zi(Ge); )
ii += tt;
return ii;
}
function Ln(Ge) {
const tt = (ii) => {
const It = Ge.currentChar();
return It === "{" || It === "@" || It === "|" || It === "(" || It === ")" || !It || It === Ac ? ii : (ii += It, Ge.next(), tt(ii));
};
return tt("");
}
function gn(Ge) {
re(Ge);
const tt = oe(
Ge,
"|"
/* TokenChars.Pipe */
);
return re(Ge), tt;
}
function nn(Ge, tt) {
let ii = null;
switch (Ge.currentChar()) {
case "{":
return tt.braceNest >= 1 && V(hr.NOT_ALLOW_NEST_PLACEHOLDER, w(), 0), Ge.next(), ii = Y(
tt,
2,
"{"
/* TokenChars.BraceLeft */
), re(Ge), tt.braceNest++, ii;
case "}":
return tt.braceNest > 0 && tt.currentType === 2 && V(hr.EMPTY_PLACEHOLDER, w(), 0), Ge.next(), ii = Y(
tt,
3,
"}"
/* TokenChars.BraceRight */
), tt.braceNest--, tt.braceNest > 0 && re(Ge), tt.inLinked && tt.braceNest === 0 && (tt.inLinked = !1), ii;
case "@":
return tt.braceNest > 0 && V(hr.UNTERMINATED_CLOSING_BRACE, w(), 0), ii = fr(Ge, tt) || G(tt), tt.braceNest = 0, ii;
default: {
let bi = !0, Di = !0, Mi = !0;
if (bt(Ge))
return tt.braceNest > 0 && V(hr.UNTERMINATED_CLOSING_BRACE, w(), 0), ii = Y(tt, 1, gn(Ge)), tt.braceNest = 0, tt.inLinked = !1, ii;
if (tt.braceNest > 0 && (tt.currentType === 4 || tt.currentType === 5 || tt.currentType === 6))
return V(hr.UNTERMINATED_CLOSING_BRACE, w(), 0), tt.braceNest = 0, $n(Ge, tt);
if (bi = de(Ge, tt))
return ii = Y(tt, 4, Dt(Ge)), re(Ge), ii;
if (Di = he(Ge, tt))
return ii = Y(tt, 5, xi(Ge)), re(Ge), ii;
if (Mi = Ie(Ge, tt))
return ii = Y(tt, 6, Si(Ge)), re(Ge), ii;
if (!bi && !Di && !Mi)
return ii = Y(tt, 12, Fi(Ge)), V(hr.INVALID_TOKEN_IN_PLACEHOLDER, w(), 0, ii.value), re(Ge), ii;
break;
}
}
return ii;
}
function fr(Ge, tt) {
const { currentType: ii } = tt;
let It = null;
const bi = Ge.currentChar();
switch ((ii === 7 || ii === 8 || ii === 11 || ii === 9) && (bi === jo || bi === Ac) && V(hr.INVALID_LINKED_FORMAT, w(), 0), bi) {
case "@":
return Ge.next(), It = Y(
tt,
7,
"@"
/* TokenChars.LinkedAlias */
), tt.inLinked = !0, It;
case ".":
return re(Ge), Ge.next(), Y(
tt,
8,
"."
/* TokenChars.LinkedDot */
);
case ":":
return re(Ge), Ge.next(), Y(
tt,
9,
":"
/* TokenChars.LinkedDelimiter */
);
default:
return bt(Ge) ? (It = Y(tt, 1, gn(Ge)), tt.braceNest = 0, tt.inLinked = !1, It) : Pe(Ge, tt) || Ne(Ge, tt) ? (re(Ge), fr(Ge, tt)) : fe(Ge, tt) ? (re(Ge), Y(tt, 11, tn(Ge))) : mt(Ge, tt) ? (re(Ge), bi === "{" ? nn(Ge, tt) || It : Y(tt, 10, Ln(Ge))) : (ii === 7 && V(hr.INVALID_LINKED_FORMAT, w(), 0), tt.braceNest = 0, tt.inLinked = !1, $n(Ge, tt));
}
}
function $n(Ge, tt) {
let ii = {
type: 13
/* TokenTypes.EOF */
};
if (tt.braceNest > 0)
return nn(Ge, tt) || G(tt);
if (tt.inLinked)
return fr(Ge, tt) || G(tt);
switch (Ge.currentChar()) {
case "{":
return nn(Ge, tt) || G(tt);
case "}":
return V(hr.UNBALANCED_CLOSING_BRACE, w(), 0), Ge.next(), Y(
tt,
3,
"}"
/* TokenChars.BraceRight */
);
case "@":
return fr(Ge, tt) || G(tt);
default: {
if (bt(Ge))
return ii = Y(tt, 1, gn(Ge)), tt.braceNest = 0, tt.inLinked = !1, ii;
if (Vt(Ge))
return Y(tt, 0, ct(Ge));
break;
}
}
return ii;
}
function sr() {
const { currentType: Ge, offset: tt, startLoc: ii, endLoc: It } = z;
return z.lastType = Ge, z.lastOffset = tt, z.lastStartLoc = ii, z.lastEndLoc = It, z.offset = x(), z.startLoc = w(), d.currentChar() === du ? Y(
z,
13
/* TokenTypes.EOF */
) : $n(d, z);
}
return {
nextToken: sr,
currentOffset: x,
currentPosition: w,
context: P
};
}
const GF = "parser", HF = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
function WF(t, o, c) {
switch (t) {
case "\\\\":
return "\\";
// eslint-disable-next-line no-useless-escape
case "\\'":
return "'";
default: {
const d = parseInt(o || c, 16);
return d <= 55295 || d >= 57344 ? String.fromCodePoint(d) : "�";
}
}
}
function qF(t = {}) {
const o = t.location !== !1, { onError: c } = t;
function d(X, ae, de, he, ...Ie) {
const Pe = X.currentPosition();
if (Pe.offset += he, Pe.column += he, c) {
const fe = o ? Kw(de, Pe) : null, Ne = om(ae, fe, {
domain: GF,
args: Ie
});
c(Ne);
}
}
function x(X, ae, de) {
const he = { type: X };
return o && (he.start = ae, he.end = ae, he.loc = { start: de, end: de }), he;
}
function w(X, ae, de, he) {
o && (X.end = ae, X.loc && (X.loc.end = de));
}
function E(X, ae) {
const de = X.context(), he = x(3, de.offset, de.startLoc);
return he.value = ae, w(he, X.currentOffset(), X.currentPosition()), he;
}
function a(X, ae) {
const de = X.context(), { lastOffset: he, lastStartLoc: Ie } = de, Pe = x(5, he, Ie);
return Pe.index = parseInt(ae, 10), X.nextToken(), w(Pe, X.currentOffset(), X.currentPosition()), Pe;
}
function z(X, ae) {
const de = X.context(), { lastOffset: he, lastStartLoc: Ie } = de, Pe = x(4, he, Ie);
return Pe.key = ae, X.nextToken(), w(Pe, X.currentOffset(), X.currentPosition()), Pe;
}
function P(X, ae) {
const de = X.context(), { lastOffset: he, lastStartLoc: Ie } = de, Pe = x(9, he, Ie);
return Pe.value = ae.replace(HF, WF), X.nextToken(), w(Pe, X.currentOffset(), X.currentPosition()), Pe;
}
function B(X) {
const ae = X.nextToken(), de = X.context(), { lastOffset: he, lastStartLoc: Ie } = de, Pe = x(8, he, Ie);
return ae.type !== 11 ? (d(X, hr.UNEXPECTED_EMPTY_LINKED_MODIFIER, de.lastStartLoc, 0), Pe.value = "", w(Pe, he, Ie), {
nextConsumeToken: ae,
node: Pe
}) : (ae.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, de.lastStartLoc, 0, Ec(ae)), Pe.value = ae.value || "", w(Pe, X.currentOffset(), X.currentPosition()), {
node: Pe
});
}
function V(X, ae) {
const de = X.context(), he = x(7, de.offset, de.startLoc);
return he.value = ae, w(he, X.currentOffset(), X.currentPosition()), he;
}
function Y(X) {
const ae = X.context(), de = x(6, ae.offset, ae.startLoc);
let he = X.nextToken();
if (he.type === 8) {
const Ie = B(X);
de.modifier = Ie.node, he = Ie.nextConsumeToken || X.nextToken();
}
switch (he.type !== 9 && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(he)), he = X.nextToken(), he.type === 2 && (he = X.nextToken()), he.type) {
case 10:
he.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(he)), de.key = V(X, he.value || "");
break;
case 4:
he.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(he)), de.key = z(X, he.value || "");
break;
case 5:
he.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(he)), de.key = a(X, he.value || "");
break;
case 6:
he.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(he)), de.key = P(X, he.value || "");
break;
default: {
d(X, hr.UNEXPECTED_EMPTY_LINKED_KEY, ae.lastStartLoc, 0);
const Ie = X.context(), Pe = x(7, Ie.offset, Ie.startLoc);
return Pe.value = "", w(Pe, Ie.offset, Ie.startLoc), de.key = Pe, w(de, Ie.offset, Ie.startLoc), {
nextConsumeToken: he,
node: de
};
}
}
return w(de, X.currentOffset(), X.currentPosition()), {
node: de
};
}
function G(X) {
const ae = X.context(), de = ae.currentType === 1 ? X.currentOffset() : ae.offset, he = ae.currentType === 1 ? ae.endLoc : ae.startLoc, Ie = x(2, de, he);
Ie.items = [];
let Pe = null;
do {
const mt = Pe || X.nextToken();
switch (Pe = null, mt.type) {
case 0:
mt.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(mt)), Ie.items.push(E(X, mt.value || ""));
break;
case 5:
mt.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(mt)), Ie.items.push(a(X, mt.value || ""));
break;
case 4:
mt.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(mt)), Ie.items.push(z(X, mt.value || ""));
break;
case 6:
mt.value == null && d(X, hr.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Ec(mt)), Ie.items.push(P(X, mt.value || ""));
break;
case 7: {
const bt = Y(X);
Ie.items.push(bt.node), Pe = bt.nextConsumeToken || null;
break;
}
}
} while (ae.currentType !== 13 && ae.currentType !== 1);
const fe = ae.currentType === 1 ? ae.lastOffset : X.currentOffset(), Ne = ae.currentType === 1 ? ae.lastEndLoc : X.currentPosition();
return w(Ie, fe, Ne), Ie;
}
function oe(X, ae, de, he) {
const Ie = X.context();
let Pe = he.items.length === 0;
const fe = x(1, ae, de);
fe.cases = [], fe.cases.push(he);
do {
const Ne = G(X);
Pe || (Pe = Ne.items.length === 0), fe.cases.push(Ne);
} while (Ie.currentType !== 13);
return Pe && d(X, hr.MUST_HAVE_MESSAGES_IN_PLURAL, de, 0), w(fe, X.currentOffset(), X.currentPosition()), fe;
}
function Q(X) {
const ae = X.context(), { offset: de, startLoc: he } = ae, Ie = G(X);
return ae.currentType === 13 ? Ie : oe(X, de, he, Ie);
}
function re(X) {
const ae = jF(X, Co({}, t)), de = ae.context(), he = x(0, de.offset, de.startLoc);
return o && he.loc && (he.loc.source = X), he.body = Q(ae), t.onCacheKey && (he.cacheKey = t.onCacheKey(X)), de.currentType !== 13 && d(ae, hr.UNEXPECTED_LEXICAL_ANALYSIS, de.lastStartLoc, 0, X[de.offset] || ""), w(he, ae.currentOffset(), ae.currentPosition()), he;
}
return { parse: re };
}
function Ec(t) {
if (t.type === 13)
return "EOF";
const o = (t.value || "").replace(/\r?\n/gu, "\\n");
return o.length > 10 ? o.slice(0, 9) + "…" : o;
}
function YF(t, o = {}) {
const c = {
ast: t,
helpers: /* @__PURE__ */ new Set()
};
return { context: () => c, helper: (w) => (c.helpers.add(w), w) };
}
function aI(t, o) {
for (let c = 0; c < t.length; c++)
X2(t[c], o);
}
function X2(t, o) {
switch (t.type) {
case 1:
aI(t.cases, o), o.helper(
"plural"
/* HelperNameMap.PLURAL */
);
break;
case 2:
aI(t.items, o);
break;
case 6: {
X2(t.key, o), o.helper(
"linked"
/* HelperNameMap.LINKED */
), o.helper(
"type"
/* HelperNameMap.TYPE */
);
break;
}
case 5:
o.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), o.helper(
"list"
/* HelperNameMap.LIST */
);
break;
case 4:
o.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), o.helper(
"named"
/* HelperNameMap.NAMED */
);
break;
}
}
function ZF(t, o = {}) {
const c = YF(t);
c.helper(
"normalize"
/* HelperNameMap.NORMALIZE */
), t.body && X2(t.body, c);
const d = c.context();
t.helpers = Array.from(d.helpers);
}
function XF(t) {
const o = t.body;
return o.type === 2 ? oI(o) : o.cases.forEach((c) => oI(c)), t;
}
function oI(t) {
if (t.items.length === 1) {
const o = t.items[0];
(o.type === 3 || o.type === 9) && (t.static = o.value, delete o.value);
} else {
const o = [];
for (let c = 0; c < t.items.length; c++) {
const d = t.items[c];
if (!(d.type === 3 || d.type === 9) || d.value == null)
break;
o.push(d.value);
}
if (o.length === t.items.length) {
t.static = Z2(o);
for (let c = 0; c < t.items.length; c++) {
const d = t.items[c];
(d.type === 3 || d.type === 9) && delete d.value;
}
}
}
}
const KF = "minifier";
function Rp(t) {
switch (t.t = t.type, t.type) {
case 0: {
const o = t;
Rp(o.body), o.b = o.body, delete o.body;
break;
}
case 1: {
const o = t, c = o.cases;
for (let d = 0; d < c.length; d++)
Rp(c[d]);
o.c = c, delete o.cases;
break;
}
case 2: {
const o = t, c = o.items;
for (let d = 0; d < c.length; d++)
Rp(c[d]);
o.i = c, delete o.items, o.static && (o.s = o.static, delete o.static);
break;
}
case 3:
case 9:
case 8:
case 7: {
const o = t;
o.value && (o.v = o.value, delete o.value);
break;
}
case 6: {
const o = t;
Rp(o.key), o.k = o.key, delete o.key, o.modifier && (Rp(o.modifier), o.m = o.modifier, delete o.modifier);
break;
}
case 5: {
const o = t;
o.i = o.index, delete o.index;
break;
}
case 4: {
const o = t;
o.k = o.key, delete o.key;
break;
}
default:
if (process.env.NODE_ENV !== "production")
throw om(hr.UNHANDLED_MINIFIER_NODE_TYPE, null, {
domain: KF,
args: [t.type]
});
}
delete t.type;
}
const QF = "parser";
function JF(t, o) {
const { filename: c, breakLineCode: d, needIndent: x } = o, w = o.location !== !1, E = {
filename: c,
code: "",
column: 1,
line: 1,
offset: 0,
map: void 0,
breakLineCode: d,
needIndent: x,
indentLevel: 0
};
w && t.loc && (E.source = t.loc.source);
const a = () => E;
function z(Q, re) {
E.code += Q;
}
function P(Q, re = !0) {
const X = re ? d : "";
z(x ? X + " ".repeat(Q) : X);
}
function B(Q = !0) {
const re = ++E.indentLevel;
Q && P(re);
}
function V(Q = !0) {
const re = --E.indentLevel;
Q && P(re);
}
function Y() {
P(E.indentLevel);
}
return {
context: a,
push: z,
indent: B,
deindent: V,
newline: Y,
helper: (Q) => `_${Q}`,
needIndent: () => E.needIndent
};
}
function e5(t, o) {
const { helper: c } = t;
t.push(`${c(
"linked"
/* HelperNameMap.LINKED */
)}(`), Zp(t, o.key), o.modifier ? (t.push(", "), Zp(t, o.modifier), t.push(", _type")) : t.push(", undefined, _type"), t.push(")");
}
function t5(t, o) {
const { helper: c, needIndent: d } = t;
t.push(`${c(
"normalize"
/* HelperNameMap.NORMALIZE */
)}([`), t.indent(d());
const x = o.items.length;
for (let w = 0; w < x && (Zp(t, o.items[w]), w !== x - 1); w++)
t.push(", ");
t.deindent(d()), t.push("])");
}
function i5(t, o) {
const { helper: c, needIndent: d } = t;
if (o.cases.length > 1) {
t.push(`${c(
"plural"
/* HelperNameMap.PLURAL */
)}([`), t.indent(d());
const x = o.cases.length;
for (let w = 0; w < x && (Zp(t, o.cases[w]), w !== x - 1); w++)
t.push(", ");
t.deindent(d()), t.push("])");
}
}
function n5(t, o) {
o.body ? Zp(t, o.body) : t.push("null");
}
function Zp(t, o) {
const { helper: c } = t;
switch (o.type) {
case 0:
n5(t, o);
break;
case 1:
i5(t, o);
break;
case 2:
t5(t, o);
break;
case 6:
e5(t, o);
break;
case 8:
t.push(JSON.stringify(o.value), o);
break;
case 7:
t.push(JSON.stringify(o.value), o);
break;
case 5:
t.push(`${c(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${c(
"list"
/* HelperNameMap.LIST */
)}(${o.index}))`, o);
break;
case 4:
t.push(`${c(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${c(
"named"
/* HelperNameMap.NAMED */
)}(${JSON.stringify(o.key)}))`, o);
break;
case 9:
t.push(JSON.stringify(o.value), o);
break;
case 3:
t.push(JSON.stringify(o.value), o);
break;
default:
if (process.env.NODE_ENV !== "production")
throw om(hr.UNHANDLED_CODEGEN_NODE_TYPE, null, {
domain: QF,
args: [o.type]
});
}
}
const r5 = (t, o = {}) => {
const c = _n(o.mode) ? o.mode : "normal", d = _n(o.filename) ? o.filename : "message.intl";
o.sourceMap;
const x = o.breakLineCode != null ? o.breakLineCode : c === "arrow" ? ";" : `
`, w = o.needIndent ? o.needIndent : c !== "arrow", E = t.helpers || [], a = JF(t, {
filename: d,
breakLineCode: x,
needIndent: w
});
a.push(c === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(w), E.length > 0 && (a.push(`const { ${Z2(E.map((B) => `${B}: _${B}`), ", ")} } = ctx`), a.newline()), a.push("return "), Zp(a, t), a.deindent(w), a.push("}"), delete t.helpers;
const { code: z, map: P } = a.context();
return {
ast: t,
code: z,
map: P ? P.toJSON() : void 0
// eslint-disable-line @typescript-eslint/no-explicit-any
};
};
function a5(t, o = {}) {
const c = Co({}, o), d = !!c.jit, x = !!c.minify, w = c.optimize == null ? !0 : c.optimize, a = qF(c).parse(t);
return d ? (w && XF(a), x && Rp(a), { ast: a, code: "" }) : (ZF(a, c), r5(a, c));
}
/*!
* core-base v11.1.12
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function o5() {
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (zh().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (zh().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
}
function Zl(t) {
return oa(t) && K2(t) === 0 && (Wl(t, "b") || Wl(t, "body"));
}
const KM = ["b", "body"];
function s5(t) {
return Ad(t, KM);
}
const QM = ["c", "cases"];
function l5(t) {
return Ad(t, QM, []);
}
const JM = ["s", "static"];
function c5(t) {
return Ad(t, JM);
}
const eP = ["i", "items"];
function u5(t) {
return Ad(t, eP, []);
}
const tP = ["t", "type"];
function K2(t) {
return Ad(t, tP);
}
const iP = ["v", "value"];
function S0(t, o) {
const c = Ad(t, iP);
if (c != null)
return c;
throw H_(o);
}
const nP = ["m", "modifier"];
function d5(t) {
return Ad(t, nP);
}
const rP = ["k", "key"];
function h5(t) {
const o = Ad(t, rP);
if (o)
return o;
throw H_(
6
/* NodeTypes.Linked */
);
}
function Ad(t, o, c) {
for (let d = 0; d < o.length; d++) {
const x = o[d];
if (Wl(t, x) && t[x] != null)
return t[x];
}
return c;
}
const aP = [
...KM,
...QM,
...JM,
...eP,
...rP,
...nP,
...iP,
...tP
];
function H_(t) {
return new Error(`unhandled node type: ${t}`);
}
function uw(t) {
return (c) => f5(c, t);
}
function f5(t, o) {
const c = s5(o);
if (c == null)
throw H_(
0
/* NodeTypes.Resource */
);
if (K2(c) === 1) {
const w = l5(c);
return t.plural(w.reduce((E, a) => [
...E,
sI(t, a)
], []));
} else
return sI(t, c);
}
function sI(t, o) {
const c = c5(o);
if (c != null)
return t.type === "text" ? c : t.normalize([c]);
{
const d = u5(o).reduce((x, w) => [...x, Qw(t, w)], []);
return t.normalize(d);
}
}
function Qw(t, o) {
const c = K2(o);
switch (c) {
case 3:
return S0(o, c);
case 9:
return S0(o, c);
case 4: {
const d = o;
if (Wl(d, "k") && d.k)
return t.interpolate(t.named(d.k));
if (Wl(d, "key") && d.key)
return t.interpolate(t.named(d.key));
throw H_(c);
}
case 5: {
const d = o;
if (Wl(d, "i") && So(d.i))
return t.interpolate(t.list(d.i));
if (Wl(d, "index") && So(d.index))
return t.interpolate(t.list(d.index));
throw H_(c);
}
case 6: {
const d = o, x = d5(d), w = h5(d);
return t.linked(Qw(t, w), x ? Qw(t, x) : void 0, t.type);
}
case 7:
return S0(o, c);
case 8:
return S0(o, c);
default:
throw new Error(`unhandled node on format message part: ${c}`);
}
}
const p5 = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
function m5(t, o) {
o && $F(t) && Oc(B1(p5, { source: t }));
}
const g5 = (t) => t;
let I0 = wa();
function _5(t, o = {}) {
let c = !1;
const d = o.onError || OF;
return o.onError = (x) => {
c = !0, d(x);
}, { ...a5(t, o), detectError: c };
}
// @__NO_SIDE_EFFECTS__
function y5(t, o) {
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && _n(t)) {
const c = eo(o.warnHtmlMessage) ? o.warnHtmlMessage : !0;
process.env.NODE_ENV !== "production" && m5(t, c);
const x = (o.onCacheKey || g5)(t), w = I0[x];
if (w)
return w;
const { ast: E, detectError: a } = _5(t, {
...o,
location: process.env.NODE_ENV !== "production",
jit: !0
}), z = uw(E);
return a ? z : I0[x] = z;
} else {
if (process.env.NODE_ENV !== "production" && !Zl(t))
return Oc(`the message that is resolve with key '${o.key}' is not supported for jit compilation`), (() => t);
const c = t.cacheKey;
if (c) {
const d = I0[c];
return d || (I0[c] = uw(t));
} else
return uw(t);
}
}
let W_ = null;
function v5(t) {
W_ = t;
}
function x5(t, o, c) {
W_ && W_.emit("i18n:init", {
timestamp: Date.now(),
i18n: t,
version: o,
meta: c
});
}
const b5 = /* @__PURE__ */ w5("function:translate");
function w5(t) {
return (o) => W_ && W_.emit(t, o);
}
const Wo = {
INVALID_ARGUMENT: DF,
// 17
INVALID_DATE_ARGUMENT: 18,
INVALID_ISO_DATE_ARGUMENT: 19,
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
NOT_SUPPORT_LOCALE_TYPE: 23
}, T5 = 24;
function mu(t) {
return om(t, null, process.env.NODE_ENV !== "production" ? { messages: A5 } : void 0);
}
const A5 = {
[Wo.INVALID_ARGUMENT]: "Invalid arguments",
[Wo.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
[Wo.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
[Wo.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
[Wo.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
[Wo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
[Wo.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
};
function Q2(t, o) {
return o.locale != null ? lI(o.locale) : lI(t.locale);
}
let dw;
function lI(t) {
if (_n(t))
return t;
if (Na(t)) {
if (t.resolvedOnce && dw != null)
return dw;
if (t.constructor.name === "Function") {
const o = t();
if (IF(o))
throw mu(Wo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
return dw = o;
} else
throw mu(Wo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
} else
throw mu(Wo.NOT_SUPPORT_LOCALE_TYPE);
}
function E5(t, o, c) {
return [.../* @__PURE__ */ new Set([
c,
...to(o) ? o : oa(o) ? Object.keys(o) : _n(o) ? [o] : [c]
])];
}
function oP(t, o, c) {
const d = _n(c) ? c : s1, x = t;
x.__localeChainCache || (x.__localeChainCache = /* @__PURE__ */ new Map());
let w = x.__localeChainCache.get(d);
if (!w) {
w = [];
let E = [c];
for (; to(E); )
E = cI(w, E, o);
const a = to(o) || !aa(o) ? o : o.default ? o.default : null;
E = _n(a) ? [a] : a, to(E) && cI(w, E, !1), x.__localeChainCache.set(d, w);
}
return w;
}
function cI(t, o, c) {
let d = !0;
for (let x = 0; x < o.length && eo(d); x++) {
const w = o[x];
_n(w) && (d = S5(t, o[x], c));
}
return d;
}
function S5(t, o, c) {
let d;
const x = o.split("-");
do {
const w = x.join("-");
d = I5(t, w, c), x.splice(-1, 1);
} while (x.length && d === !0);
return d;
}
function I5(t, o, c) {
let d = !1;
if (!t.includes(o) && (d = !0, o)) {
d = o[o.length - 1] !== "!";
const x = o.replace(/!/g, "");
t.push(x), (to(c) || aa(c)) && c[x] && (d = c[x]);
}
return d;
}
const Ed = [];
Ed[
0
/* States.BEFORE_PATH */
] = {
w: [
0
/* States.BEFORE_PATH */
],
i: [
3,
0
/* Actions.APPEND */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Ed[
1
/* States.IN_PATH */
] = {
w: [
1
/* States.IN_PATH */
],
".": [
2
/* States.BEFORE_IDENT */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Ed[
2
/* States.BEFORE_IDENT */
] = {
w: [
2
/* States.BEFORE_IDENT */
],
i: [
3,
0
/* Actions.APPEND */
],
0: [
3,
0
/* Actions.APPEND */
]
};
Ed[
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 */
]
};
Ed[
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 */
]
};
Ed[
5
/* States.IN_SINGLE_QUOTE */
] = {
"'": [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
5,
0
/* Actions.APPEND */
]
};
Ed[
6
/* States.IN_DOUBLE_QUOTE */
] = {
'"': [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
6,
0
/* Actions.APPEND */
]
};
const C5 = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
function z5(t) {
return C5.test(t);
}
function M5(t) {
const o = t.charCodeAt(0), c = t.charCodeAt(t.length - 1);
return o === c && (o === 34 || o === 39) ? t.slice(1, -1) : t;
}
function P5(t) {
if (t == null)
return "o";
switch (t.charCodeAt(0)) {
case 91:
// [
case 93:
// ]
case 46:
// .
case 34:
// "
case 39:
return t;
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 D5(t) {
const o = t.trim();
return t.charAt(0) === "0" && isNaN(parseInt(t)) ? !1 : z5(o) ? M5(o) : "*" + o;
}
function k5(t) {
const o = [];
let c = -1, d = 0, x = 0, w, E, a, z, P, B, V;
const Y = [];
Y[
0
/* Actions.APPEND */
] = () => {
E === void 0 ? E = a : E += a;
}, Y[
1
/* Actions.PUSH */
] = () => {
E !== void 0 && (o.push(E), E = void 0);
}, Y[
2
/* Actions.INC_SUB_PATH_DEPTH */
] = () => {
Y[
0
/* Actions.APPEND */
](), x++;
}, Y[
3
/* Actions.PUSH_SUB_PATH */
] = () => {
if (x > 0)
x--, d = 4, Y[
0
/* Actions.APPEND */
]();
else {
if (x = 0, E === void 0 || (E = D5(E), E === !1))
return !1;
Y[
1
/* Actions.PUSH */
]();
}
};
function G() {
const oe = t[c + 1];
if (d === 5 && oe === "'" || d === 6 && oe === '"')
return c++, a = "\\" + oe, Y[
0
/* Actions.APPEND */
](), !0;
}
for (; d !== null; )
if (c++, w = t[c], !(w === "\\" && G())) {
if (z = P5(w), V = Ed[d], P = V[z] || V.l || 8, P === 8 || (d = P[0], P[1] !== void 0 && (B = Y[P[1]], B && (a = w, B() === !1))))
return;
if (d === 7)
return o;
}
}
const uI = /* @__PURE__ */ new Map();
function O5(t, o) {
return oa(t) ? t[o] : null;
}
function L5(t, o) {
if (!oa(t))
return null;
let c = uI.get(o);
if (c || (c = k5(o), c && uI.set(o, c)), !c)
return null;
const d = c.length;
let x = t, w = 0;
for (; w < d; ) {
const E = c[w];
if (aP.includes(E) && Zl(x))
return null;
const a = x[E];
if (a === void 0 || Na(x))
return null;
x = a, w++;
}
return x;
}
const Es = {
NOT_FOUND_KEY: 1,
FALLBACK_TO_TRANSLATE: 2,
CANNOT_FORMAT_NUMBER: 3,
FALLBACK_TO_NUMBER_FORMAT: 4,
CANNOT_FORMAT_DATE: 5,
FALLBACK_TO_DATE_FORMAT: 6,
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
}, $5 = 8, R5 = {
[Es.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
[Es.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
[Es.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
[Es.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
[Es.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
[Es.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
[Es.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 $h(t, ...o) {
return B1(R5[t], ...o);
}
const F5 = "11.1.12", V1 = -1, s1 = "en-US", l1 = "", dI = (t) => `${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
function B5() {
return {
upper: (t, o) => o === "text" && _n(t) ? t.toUpperCase() : o === "vnode" && oa(t) && "__v_isVNode" in t ? t.children.toUpperCase() : t,
lower: (t, o) => o === "text" && _n(t) ? t.toLowerCase() : o === "vnode" && oa(t) && "__v_isVNode" in t ? t.children.toLowerCase() : t,
capitalize: (t, o) => o === "text" && _n(t) ? dI(t) : o === "vnode" && oa(t) && "__v_isVNode" in t ? dI(t.children) : t
};
}
let sP;
function N5(t) {
sP = t;
}
let lP;
function V5(t) {
lP = t;
}
let cP;
function U5(t) {
cP = t;
}
let uP = null;
const j5 = /* @__NO_SIDE_EFFECTS__ */ (t) => {
uP = t;
}, G5 = /* @__NO_SIDE_EFFECTS__ */ () => uP;
let dP = null;
const hI = (t) => {
dP = t;
}, H5 = () => dP;
let fI = 0;
function W5(t = {}) {
const o = Na(t.onWarn) ? t.onWarn : Oc, c = _n(t.version) ? t.version : F5, d = _n(t.locale) || Na(t.locale) ? t.locale : s1, x = Na(d) ? s1 : d, w = to(t.fallbackLocale) || aa(t.fallbackLocale) || _n(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : x, E = aa(t.messages) ? t.messages : hw(x), a = aa(t.datetimeFormats) ? t.datetimeFormats : hw(x), z = aa(t.numberFormats) ? t.numberFormats : hw(x), P = Co(wa(), t.modifiers, B5()), B = t.pluralRules || wa(), V = Na(t.missing) ? t.missing : null, Y = eo(t.missingWarn) || o1(t.missingWarn) ? t.missingWarn : !0, G = eo(t.fallbackWarn) || o1(t.fallbackWarn) ? t.fallbackWarn : !0, oe = !!t.fallbackFormat, Q = !!t.unresolving, re = Na(t.postTranslation) ? t.postTranslation : null, X = aa(t.processor) ? t.processor : null, ae = eo(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, de = !!t.escapeParameter, he = Na(t.messageCompiler) ? t.messageCompiler : sP;
process.env.NODE_ENV !== "production" && Na(t.messageCompiler) && vF($h(Es.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
const Ie = Na(t.messageResolver) ? t.messageResolver : lP || O5, Pe = Na(t.localeFallbacker) ? t.localeFallbacker : cP || E5, fe = oa(t.fallbackContext) ? t.fallbackContext : void 0, Ne = t, mt = oa(Ne.__datetimeFormatters) ? Ne.__datetimeFormatters : /* @__PURE__ */ new Map(), bt = oa(Ne.__numberFormatters) ? Ne.__numberFormatters : /* @__PURE__ */ new Map(), Vt = oa(Ne.__meta) ? Ne.__meta : {};
fI++;
const qt = {
version: c,
cid: fI,
locale: d,
fallbackLocale: w,
messages: E,
modifiers: P,
pluralRules: B,
missing: V,
missingWarn: Y,
fallbackWarn: G,
fallbackFormat: oe,
unresolving: Q,
postTranslation: re,
processor: X,
warnHtmlMessage: ae,
escapeParameter: de,
m