@agendize/design-system
Version:
Agendize web design system
1,722 lines • 3.55 MB
JavaScript
var aD = Object.defineProperty;
var oD = (t, n, s) => n in t ? aD(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
var Cr = (t, n, s) => oD(t, typeof n != "symbol" ? n + "" : n, s);
import { getCurrentInstance as vx, inject as Df, ref as Qe, shallowRef as ay, computed as Be, watch as Ti, onMounted as lr, onUnmounted as Ug, defineComponent as jt, h as pg, createVNode as Ft, Text as S5, Fragment as Pi, resolveDirective as eo, createElementBlock as ye, createCommentVNode as Je, openBlock as ne, normalizeClass as gt, withDirectives as ji, createElementVNode as we, toDisplayString as Ot, unref as ee, renderSlot as ei, normalizeProps as ca, guardReactiveProps as Pa, createBlock as Nt, withCtx as Xt, vModelText as ps, vShow as br, watchEffect as t1, toValue as Zr, nextTick as Oa, onBeforeUnmount as E5, withKeys as Ji, createTextVNode as Un, toRefs as C5, onActivated as sD, onDeactivated as lD, renderList as ln, vModelCheckbox as i1, normalizeStyle as Ar, reactive as n1, resolveDynamicComponent as Ys, mergeProps as to, toRef as oy, provide as jg, isRef as Sa, resolveComponent as go, toHandlers as mg, withModifiers as vn, Transition as gg, vModelRadio as bx, mergeModels as Or, useModel as Ca, vModelDynamic as cD, useSlots as na, createSlots as $f, getCurrentScope as uD, onScopeDispose as dD, pushScopeId as hD, popScopeId as fD, createApp as pD, withScopeId as mD, mergeDefaults as I5, createStaticVNode as xx, Comment as gD, Teleport as M5, useCssVars as _D, onErrorCaptured as yD } from "vue";
import { getStandardLocale as Ea, getCountriesForSelect as vD } from "@agendize/az-i18n";
var _n = /* @__PURE__ */ ((t) => (t[t.mandatory = 0] = "mandatory", t[t.optional = 1] = "optional", t[t.ignore = 2] = "ignore", t[t.ignoreWithStar = 3] = "ignoreWithStar", t))(_n || {});
const _g = "fa-regular fa-spinner-third fa-spin";
function bD(t, n, s = "modelValue") {
t && (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) && (t.matches('[type="checkbox"]') ? n("update:" + s, t.value !== "true") : n("update:" + s, t.value));
}
function xD(t) {
if (t === "title")
return 1;
if (t === "title2")
return 2;
if (t === "title3")
return 3;
}
function wx(t, n, s = !1) {
return t === "title" || t === "title2" || t === "title3" || t === "label" ? 2 : n === !0 ? s ? 3 : 0 : 1;
}
function wD(t) {
return t === "date" ? "date" : null;
}
function yg(t, n) {
return t === "auto" || t === "autoOnError" && n !== void 0 && (n === !0 || n !== "");
}
/*!
* shared v11.1.12
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function Ml(t, n) {
typeof console < "u" && (console.warn("[intlify] " + t), n && console.warn(n.stack));
}
const mT = {};
function $D(t) {
mT[t] || (mT[t] = !0, Ml(t));
}
const ac = typeof window < "u";
let Yo, Ld;
if (process.env.NODE_ENV !== "production") {
const t = ac && window.performance;
t && t.mark && t.measure && t.clearMarks && // @ts-ignore browser compat
t.clearMeasures && (Yo = (n) => {
t.mark(n);
}, Ld = (n, s, u) => {
t.measure(n, s, u), t.clearMarks(s), t.clearMarks(u);
});
}
const TD = /\{([0-9a-zA-Z]+)\}/g;
function r1(t, ...n) {
return n.length === 1 && gr(n[0]) && (n = n[0]), (!n || !n.hasOwnProperty) && (n = {}), t.replace(TD, (s, u) => n.hasOwnProperty(u) ? n[u] : "");
}
const hc = (t, n = !1) => n ? Symbol.for(t) : Symbol(t), AD = (t, n, s) => SD({ l: t, k: n, s }), SD = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Da = (t) => typeof t == "number" && isFinite(t), ED = (t) => $x(t) === "[object Date]", $y = (t) => $x(t) === "[object RegExp]", a1 = (t) => mr(t) && Object.keys(t).length === 0, ka = Object.assign, CD = Object.create, Mr = (t = null) => CD(t);
let gT;
const Md = () => gT || (gT = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Mr());
function _T(t) {
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
}
function yT(t) {
return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
}
function ID(t) {
return t = t.replace(/(\w+)\s*=\s*"([^"]*)"/g, (u, y, $) => `${y}="${yT($)}"`), t = t.replace(/(\w+)\s*=\s*'([^']*)'/g, (u, y, $) => `${y}='${yT($)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t) && (process.env.NODE_ENV !== "production" && Ml("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((u) => {
t = t.replace(u, "$1javascript:");
}), t;
}
const MD = Object.prototype.hasOwnProperty;
function qs(t, n) {
return MD.call(t, n);
}
const da = Array.isArray, Gr = (t) => typeof t == "function", Wi = (t) => typeof t == "string", ua = (t) => typeof t == "boolean", gr = (t) => t !== null && typeof t == "object", zD = (t) => gr(t) && Gr(t.then) && Gr(t.catch), z5 = Object.prototype.toString, $x = (t) => z5.call(t), mr = (t) => $x(t) === "[object Object]", PD = (t) => t == null ? "" : da(t) || mr(t) && t.toString === z5 ? JSON.stringify(t, null, 2) : String(t);
function Tx(t, n = "") {
return t.reduce((s, u, y) => y === 0 ? s + u : s + n + u, "");
}
const vT = 2;
function DD(t, n = 0, s = t.length) {
const u = t.split(/\r?\n/);
let y = 0;
const $ = [];
for (let A = 0; A < u.length; A++)
if (y += u[A].length + 1, y >= n) {
for (let r = A - vT; r <= A + vT || s > y; r++) {
if (r < 0 || r >= u.length)
continue;
const D = r + 1;
$.push(`${D}${" ".repeat(3 - String(D).length)}| ${u[r]}`);
const O = u[r].length;
if (r === A) {
const U = n - (y - O) + 1, H = Math.max(1, s > y ? O - U : s - n);
$.push(" | " + " ".repeat(U) + "^".repeat(H));
} else if (r > A) {
if (s > y) {
const U = Math.max(Math.min(s - y, O), 1);
$.push(" | " + "^".repeat(U));
}
y += O + 1;
}
}
break;
}
return $.join(`
`);
}
function OD() {
const t = /* @__PURE__ */ new Map();
return {
events: t,
on(s, u) {
const y = t.get(s);
y && y.push(u) || t.set(s, [u]);
},
off(s, u) {
const y = t.get(s);
y && y.splice(y.indexOf(u) >>> 0, 1);
},
emit(s, u) {
(t.get(s) || []).slice().map((y) => y(u)), (t.get("*") || []).slice().map((y) => y(s, u));
}
};
}
const U_ = (t) => !gr(t) || da(t);
function sy(t, n) {
if (U_(t) || U_(n))
throw new Error("Invalid value");
const s = [{ src: t, des: n }];
for (; s.length; ) {
const { src: u, des: y } = s.pop();
Object.keys(u).forEach(($) => {
$ !== "__proto__" && (gr(u[$]) && !gr(y[$]) && (y[$] = Array.isArray(u[$]) ? [] : Mr()), U_(y[$]) || U_(u[$]) ? y[$] = u[$] : s.push({ src: u[$], des: y[$] }));
});
}
}
/*!
* message-compiler v11.1.12
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function kD(t, n, s) {
return { line: t, column: n, offset: s };
}
function vb(t, n, s) {
return { start: t, end: n };
}
const Dn = {
// 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
}, LD = 17, RD = {
// tokenizer error messages
[Dn.EXPECTED_TOKEN]: "Expected token: '{0}'",
[Dn.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
[Dn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
[Dn.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
[Dn.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
[Dn.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
[Dn.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
[Dn.EMPTY_PLACEHOLDER]: "Empty placeholder",
[Dn.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
[Dn.INVALID_LINKED_FORMAT]: "Invalid linked format",
// parser error messages
[Dn.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
[Dn.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
[Dn.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
[Dn.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
// generator error messages
[Dn.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
// minimizer error messages
[Dn.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
};
function Of(t, n, s = {}) {
const { domain: u, messages: y, args: $ } = s, A = process.env.NODE_ENV !== "production" ? r1((y || RD)[t] || "", ...$ || []) : t, r = new SyntaxError(String(A));
return r.code = t, n && (r.location = n), r.domain = u, r;
}
function FD(t) {
throw t;
}
const ND = /<\/?[\w\s="/.':;#-\/]+>/, BD = (t) => ND.test(t), bl = " ", VD = "\r", Za = `
`, UD = "\u2028", jD = "\u2029";
function GD(t) {
const n = t;
let s = 0, u = 1, y = 1, $ = 0;
const A = (fe) => n[fe] === VD && n[fe + 1] === Za, r = (fe) => n[fe] === Za, D = (fe) => n[fe] === jD, O = (fe) => n[fe] === UD, U = (fe) => A(fe) || r(fe) || D(fe) || O(fe), H = () => s, Z = () => u, Y = () => y, le = () => $, Q = (fe) => A(fe) || D(fe) || O(fe) ? Za : n[fe], ce = () => Q(s), K = () => Q(s + $);
function se() {
return $ = 0, U(s) && (u++, y = 0), A(s) && s++, s++, y++, n[s];
}
function xe() {
return A(s + $) && $++, $++, n[s + $];
}
function de() {
s = 0, u = 1, y = 1, $ = 0;
}
function Ae(fe = 0) {
$ = fe;
}
function Ie() {
const fe = s + $;
for (; fe !== s; )
se();
$ = 0;
}
return {
index: H,
line: Z,
column: Y,
peekOffset: le,
charAt: Q,
currentChar: ce,
currentPeek: K,
next: se,
peek: xe,
reset: de,
resetPeek: Ae,
skipToPeek: Ie
};
}
const Xl = void 0, HD = ".", bT = "'", qD = "tokenizer";
function WD(t, n = {}) {
const s = n.location !== !1, u = GD(t), y = () => u.index(), $ = () => kD(u.line(), u.column(), u.index()), A = $(), r = y(), D = {
currentType: 13,
offset: r,
startLoc: A,
endLoc: A,
lastType: 13,
lastOffset: r,
lastStartLoc: A,
lastEndLoc: A,
braceNest: 0,
inLinked: !1,
text: ""
}, O = () => D, { onError: U } = n;
function H(Ve, it, Zt, ...It) {
const di = O();
if (it.column += Zt, it.offset += Zt, U) {
const wi = s ? vb(di.startLoc, it) : null, Qt = Of(Ve, wi, {
domain: qD,
args: It
});
U(Qt);
}
}
function Z(Ve, it, Zt) {
Ve.endLoc = $(), Ve.currentType = it;
const It = { type: it };
return s && (It.loc = vb(Ve.startLoc, Ve.endLoc)), Zt != null && (It.value = Zt), It;
}
const Y = (Ve) => Z(
Ve,
13
/* TokenTypes.EOF */
);
function le(Ve, it) {
return Ve.currentChar() === it ? (Ve.next(), it) : (H(Dn.EXPECTED_TOKEN, $(), 0, it), "");
}
function Q(Ve) {
let it = "";
for (; Ve.currentPeek() === bl || Ve.currentPeek() === Za; )
it += Ve.currentPeek(), Ve.peek();
return it;
}
function ce(Ve) {
const it = Q(Ve);
return Ve.skipToPeek(), it;
}
function K(Ve) {
if (Ve === Xl)
return !1;
const it = Ve.charCodeAt(0);
return it >= 97 && it <= 122 || // a-z
it >= 65 && it <= 90 || // A-Z
it === 95;
}
function se(Ve) {
if (Ve === Xl)
return !1;
const it = Ve.charCodeAt(0);
return it >= 48 && it <= 57;
}
function xe(Ve, it) {
const { currentType: Zt } = it;
if (Zt !== 2)
return !1;
Q(Ve);
const It = K(Ve.currentPeek());
return Ve.resetPeek(), It;
}
function de(Ve, it) {
const { currentType: Zt } = it;
if (Zt !== 2)
return !1;
Q(Ve);
const It = Ve.currentPeek() === "-" ? Ve.peek() : Ve.currentPeek(), di = se(It);
return Ve.resetPeek(), di;
}
function Ae(Ve, it) {
const { currentType: Zt } = it;
if (Zt !== 2)
return !1;
Q(Ve);
const It = Ve.currentPeek() === bT;
return Ve.resetPeek(), It;
}
function Ie(Ve, it) {
const { currentType: Zt } = it;
if (Zt !== 7)
return !1;
Q(Ve);
const It = Ve.currentPeek() === ".";
return Ve.resetPeek(), It;
}
function fe(Ve, it) {
const { currentType: Zt } = it;
if (Zt !== 8)
return !1;
Q(Ve);
const It = K(Ve.currentPeek());
return Ve.resetPeek(), It;
}
function Ne(Ve, it) {
const { currentType: Zt } = it;
if (!(Zt === 7 || Zt === 11))
return !1;
Q(Ve);
const It = Ve.currentPeek() === ":";
return Ve.resetPeek(), It;
}
function Tt(Ve, it) {
const { currentType: Zt } = it;
if (Zt !== 9)
return !1;
const It = () => {
const wi = Ve.currentPeek();
return wi === "{" ? K(Ve.peek()) : wi === "@" || wi === "|" || wi === ":" || wi === "." || wi === bl || !wi ? !1 : wi === Za ? (Ve.peek(), It()) : dt(Ve, !1);
}, di = It();
return Ve.resetPeek(), di;
}
function rt(Ve) {
Q(Ve);
const it = Ve.currentPeek() === "|";
return Ve.resetPeek(), it;
}
function dt(Ve, it = !0) {
const Zt = (di = !1, wi = "") => {
const Qt = Ve.currentPeek();
return Qt === "{" || Qt === "@" || !Qt ? di : Qt === "|" ? !(wi === bl || wi === Za) : Qt === bl ? (Ve.peek(), Zt(!0, bl)) : Qt === Za ? (Ve.peek(), Zt(!0, Za)) : !0;
}, It = Zt();
return it && Ve.resetPeek(), It;
}
function Bt(Ve, it) {
const Zt = Ve.currentChar();
return Zt === Xl ? Xl : it(Zt) ? (Ve.next(), Zt) : null;
}
function Jt(Ve) {
const it = Ve.charCodeAt(0);
return it >= 97 && it <= 122 || // a-z
it >= 65 && it <= 90 || // A-Z
it >= 48 && it <= 57 || // 0-9
it === 95 || // _
it === 36;
}
function gi(Ve) {
return Bt(Ve, Jt);
}
function kt(Ve) {
const it = Ve.charCodeAt(0);
return it >= 97 && it <= 122 || // a-z
it >= 65 && it <= 90 || // A-Z
it >= 48 && it <= 57 || // 0-9
it === 95 || // _
it === 36 || // $
it === 45;
}
function Dt(Ve) {
return Bt(Ve, kt);
}
function Pt(Ve) {
const it = Ve.charCodeAt(0);
return it >= 48 && it <= 57;
}
function Vt(Ve) {
return Bt(Ve, Pt);
}
function nt(Ve) {
const it = Ve.charCodeAt(0);
return it >= 48 && it <= 57 || // 0-9
it >= 65 && it <= 70 || // A-F
it >= 97 && it <= 102;
}
function ct(Ve) {
return Bt(Ve, nt);
}
function qt(Ve) {
let it = "", Zt = "";
for (; it = Vt(Ve); )
Zt += it;
return Zt;
}
function vt(Ve) {
let it = "";
for (; ; ) {
const Zt = Ve.currentChar();
if (Zt === "{" || Zt === "}" || Zt === "@" || Zt === "|" || !Zt)
break;
if (Zt === bl || Zt === Za)
if (dt(Ve))
it += Zt, Ve.next();
else {
if (rt(Ve))
break;
it += Zt, Ve.next();
}
else
it += Zt, Ve.next();
}
return it;
}
function mt(Ve) {
ce(Ve);
let it = "", Zt = "";
for (; it = Dt(Ve); )
Zt += it;
const It = Ve.currentChar();
if (It && It !== "}" && It !== Xl && It !== bl && It !== Za && It !== " ") {
const di = he(Ve);
return H(Dn.INVALID_TOKEN_IN_PLACEHOLDER, $(), 0, Zt + di), Zt + di;
}
return Ve.currentChar() === Xl && H(Dn.UNTERMINATED_CLOSING_BRACE, $(), 0), Zt;
}
function _i(Ve) {
ce(Ve);
let it = "";
return Ve.currentChar() === "-" ? (Ve.next(), it += `-${qt(Ve)}`) : it += qt(Ve), Ve.currentChar() === Xl && H(Dn.UNTERMINATED_CLOSING_BRACE, $(), 0), it;
}
function bi(Ve) {
return Ve !== bT && Ve !== Za;
}
function Lt(Ve) {
ce(Ve), le(Ve, "'");
let it = "", Zt = "";
for (; it = Bt(Ve, bi); )
it === "\\" ? Zt += Ei(Ve) : Zt += it;
const It = Ve.currentChar();
return It === Za || It === Xl ? (H(Dn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, $(), 0), It === Za && (Ve.next(), le(Ve, "'")), Zt) : (le(Ve, "'"), Zt);
}
function Ei(Ve) {
const it = Ve.currentChar();
switch (it) {
case "\\":
case "'":
return Ve.next(), `\\${it}`;
case "u":
return Sn(Ve, it, 4);
case "U":
return Sn(Ve, it, 6);
default:
return H(Dn.UNKNOWN_ESCAPE_SEQUENCE, $(), 0, it), "";
}
}
function Sn(Ve, it, Zt) {
le(Ve, it);
let It = "";
for (let di = 0; di < Zt; di++) {
const wi = ct(Ve);
if (!wi) {
H(Dn.INVALID_UNICODE_ESCAPE_SEQUENCE, $(), 0, `\\${it}${It}${Ve.currentChar()}`);
break;
}
It += wi;
}
return `\\${it}${It}`;
}
function Gi(Ve) {
return Ve !== "{" && Ve !== "}" && Ve !== bl && Ve !== Za;
}
function he(Ve) {
ce(Ve);
let it = "", Zt = "";
for (; it = Bt(Ve, Gi); )
Zt += it;
return Zt;
}
function en(Ve) {
let it = "", Zt = "";
for (; it = gi(Ve); )
Zt += it;
return Zt;
}
function cn(Ve) {
const it = (Zt) => {
const It = Ve.currentChar();
return It === "{" || It === "@" || It === "|" || It === "(" || It === ")" || !It || It === bl ? Zt : (Zt += It, Ve.next(), it(Zt));
};
return it("");
}
function On(Ve) {
ce(Ve);
const it = le(
Ve,
"|"
/* TokenChars.Pipe */
);
return ce(Ve), it;
}
function _t(Ve, it) {
let Zt = null;
switch (Ve.currentChar()) {
case "{":
return it.braceNest >= 1 && H(Dn.NOT_ALLOW_NEST_PLACEHOLDER, $(), 0), Ve.next(), Zt = Z(
it,
2,
"{"
/* TokenChars.BraceLeft */
), ce(Ve), it.braceNest++, Zt;
case "}":
return it.braceNest > 0 && it.currentType === 2 && H(Dn.EMPTY_PLACEHOLDER, $(), 0), Ve.next(), Zt = Z(
it,
3,
"}"
/* TokenChars.BraceRight */
), it.braceNest--, it.braceNest > 0 && ce(Ve), it.inLinked && it.braceNest === 0 && (it.inLinked = !1), Zt;
case "@":
return it.braceNest > 0 && H(Dn.UNTERMINATED_CLOSING_BRACE, $(), 0), Zt = bn(Ve, it) || Y(it), it.braceNest = 0, Zt;
default: {
let di = !0, wi = !0, Qt = !0;
if (rt(Ve))
return it.braceNest > 0 && H(Dn.UNTERMINATED_CLOSING_BRACE, $(), 0), Zt = Z(it, 1, On(Ve)), it.braceNest = 0, it.inLinked = !1, Zt;
if (it.braceNest > 0 && (it.currentType === 4 || it.currentType === 5 || it.currentType === 6))
return H(Dn.UNTERMINATED_CLOSING_BRACE, $(), 0), it.braceNest = 0, un(Ve, it);
if (di = xe(Ve, it))
return Zt = Z(it, 4, mt(Ve)), ce(Ve), Zt;
if (wi = de(Ve, it))
return Zt = Z(it, 5, _i(Ve)), ce(Ve), Zt;
if (Qt = Ae(Ve, it))
return Zt = Z(it, 6, Lt(Ve)), ce(Ve), Zt;
if (!di && !wi && !Qt)
return Zt = Z(it, 12, he(Ve)), H(Dn.INVALID_TOKEN_IN_PLACEHOLDER, $(), 0, Zt.value), ce(Ve), Zt;
break;
}
}
return Zt;
}
function bn(Ve, it) {
const { currentType: Zt } = it;
let It = null;
const di = Ve.currentChar();
switch ((Zt === 7 || Zt === 8 || Zt === 11 || Zt === 9) && (di === Za || di === bl) && H(Dn.INVALID_LINKED_FORMAT, $(), 0), di) {
case "@":
return Ve.next(), It = Z(
it,
7,
"@"
/* TokenChars.LinkedAlias */
), it.inLinked = !0, It;
case ".":
return ce(Ve), Ve.next(), Z(
it,
8,
"."
/* TokenChars.LinkedDot */
);
case ":":
return ce(Ve), Ve.next(), Z(
it,
9,
":"
/* TokenChars.LinkedDelimiter */
);
default:
return rt(Ve) ? (It = Z(it, 1, On(Ve)), it.braceNest = 0, it.inLinked = !1, It) : Ie(Ve, it) || Ne(Ve, it) ? (ce(Ve), bn(Ve, it)) : fe(Ve, it) ? (ce(Ve), Z(it, 11, en(Ve))) : Tt(Ve, it) ? (ce(Ve), di === "{" ? _t(Ve, it) || It : Z(it, 10, cn(Ve))) : (Zt === 7 && H(Dn.INVALID_LINKED_FORMAT, $(), 0), it.braceNest = 0, it.inLinked = !1, un(Ve, it));
}
}
function un(Ve, it) {
let Zt = {
type: 13
/* TokenTypes.EOF */
};
if (it.braceNest > 0)
return _t(Ve, it) || Y(it);
if (it.inLinked)
return bn(Ve, it) || Y(it);
switch (Ve.currentChar()) {
case "{":
return _t(Ve, it) || Y(it);
case "}":
return H(Dn.UNBALANCED_CLOSING_BRACE, $(), 0), Ve.next(), Z(
it,
3,
"}"
/* TokenChars.BraceRight */
);
case "@":
return bn(Ve, it) || Y(it);
default: {
if (rt(Ve))
return Zt = Z(it, 1, On(Ve)), it.braceNest = 0, it.inLinked = !1, Zt;
if (dt(Ve))
return Z(it, 0, vt(Ve));
break;
}
}
return Zt;
}
function qn() {
const { currentType: Ve, offset: it, startLoc: Zt, endLoc: It } = D;
return D.lastType = Ve, D.lastOffset = it, D.lastStartLoc = Zt, D.lastEndLoc = It, D.offset = y(), D.startLoc = $(), u.currentChar() === Xl ? Z(
D,
13
/* TokenTypes.EOF */
) : un(u, D);
}
return {
nextToken: qn,
currentOffset: y,
currentPosition: $,
context: O
};
}
const YD = "parser", ZD = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
function KD(t, n, s) {
switch (t) {
case "\\\\":
return "\\";
// eslint-disable-next-line no-useless-escape
case "\\'":
return "'";
default: {
const u = parseInt(n || s, 16);
return u <= 55295 || u >= 57344 ? String.fromCodePoint(u) : "�";
}
}
}
function XD(t = {}) {
const n = t.location !== !1, { onError: s } = t;
function u(K, se, xe, de, ...Ae) {
const Ie = K.currentPosition();
if (Ie.offset += de, Ie.column += de, s) {
const fe = n ? vb(xe, Ie) : null, Ne = Of(se, fe, {
domain: YD,
args: Ae
});
s(Ne);
}
}
function y(K, se, xe) {
const de = { type: K };
return n && (de.start = se, de.end = se, de.loc = { start: xe, end: xe }), de;
}
function $(K, se, xe, de) {
n && (K.end = se, K.loc && (K.loc.end = xe));
}
function A(K, se) {
const xe = K.context(), de = y(3, xe.offset, xe.startLoc);
return de.value = se, $(de, K.currentOffset(), K.currentPosition()), de;
}
function r(K, se) {
const xe = K.context(), { lastOffset: de, lastStartLoc: Ae } = xe, Ie = y(5, de, Ae);
return Ie.index = parseInt(se, 10), K.nextToken(), $(Ie, K.currentOffset(), K.currentPosition()), Ie;
}
function D(K, se) {
const xe = K.context(), { lastOffset: de, lastStartLoc: Ae } = xe, Ie = y(4, de, Ae);
return Ie.key = se, K.nextToken(), $(Ie, K.currentOffset(), K.currentPosition()), Ie;
}
function O(K, se) {
const xe = K.context(), { lastOffset: de, lastStartLoc: Ae } = xe, Ie = y(9, de, Ae);
return Ie.value = se.replace(ZD, KD), K.nextToken(), $(Ie, K.currentOffset(), K.currentPosition()), Ie;
}
function U(K) {
const se = K.nextToken(), xe = K.context(), { lastOffset: de, lastStartLoc: Ae } = xe, Ie = y(8, de, Ae);
return se.type !== 11 ? (u(K, Dn.UNEXPECTED_EMPTY_LINKED_MODIFIER, xe.lastStartLoc, 0), Ie.value = "", $(Ie, de, Ae), {
nextConsumeToken: se,
node: Ie
}) : (se.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, xe.lastStartLoc, 0, xl(se)), Ie.value = se.value || "", $(Ie, K.currentOffset(), K.currentPosition()), {
node: Ie
});
}
function H(K, se) {
const xe = K.context(), de = y(7, xe.offset, xe.startLoc);
return de.value = se, $(de, K.currentOffset(), K.currentPosition()), de;
}
function Z(K) {
const se = K.context(), xe = y(6, se.offset, se.startLoc);
let de = K.nextToken();
if (de.type === 8) {
const Ae = U(K);
xe.modifier = Ae.node, de = Ae.nextConsumeToken || K.nextToken();
}
switch (de.type !== 9 && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(de)), de = K.nextToken(), de.type === 2 && (de = K.nextToken()), de.type) {
case 10:
de.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(de)), xe.key = H(K, de.value || "");
break;
case 4:
de.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(de)), xe.key = D(K, de.value || "");
break;
case 5:
de.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(de)), xe.key = r(K, de.value || "");
break;
case 6:
de.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(de)), xe.key = O(K, de.value || "");
break;
default: {
u(K, Dn.UNEXPECTED_EMPTY_LINKED_KEY, se.lastStartLoc, 0);
const Ae = K.context(), Ie = y(7, Ae.offset, Ae.startLoc);
return Ie.value = "", $(Ie, Ae.offset, Ae.startLoc), xe.key = Ie, $(xe, Ae.offset, Ae.startLoc), {
nextConsumeToken: de,
node: xe
};
}
}
return $(xe, K.currentOffset(), K.currentPosition()), {
node: xe
};
}
function Y(K) {
const se = K.context(), xe = se.currentType === 1 ? K.currentOffset() : se.offset, de = se.currentType === 1 ? se.endLoc : se.startLoc, Ae = y(2, xe, de);
Ae.items = [];
let Ie = null;
do {
const Tt = Ie || K.nextToken();
switch (Ie = null, Tt.type) {
case 0:
Tt.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(Tt)), Ae.items.push(A(K, Tt.value || ""));
break;
case 5:
Tt.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(Tt)), Ae.items.push(r(K, Tt.value || ""));
break;
case 4:
Tt.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(Tt)), Ae.items.push(D(K, Tt.value || ""));
break;
case 6:
Tt.value == null && u(K, Dn.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, xl(Tt)), Ae.items.push(O(K, Tt.value || ""));
break;
case 7: {
const rt = Z(K);
Ae.items.push(rt.node), Ie = rt.nextConsumeToken || null;
break;
}
}
} while (se.currentType !== 13 && se.currentType !== 1);
const fe = se.currentType === 1 ? se.lastOffset : K.currentOffset(), Ne = se.currentType === 1 ? se.lastEndLoc : K.currentPosition();
return $(Ae, fe, Ne), Ae;
}
function le(K, se, xe, de) {
const Ae = K.context();
let Ie = de.items.length === 0;
const fe = y(1, se, xe);
fe.cases = [], fe.cases.push(de);
do {
const Ne = Y(K);
Ie || (Ie = Ne.items.length === 0), fe.cases.push(Ne);
} while (Ae.currentType !== 13);
return Ie && u(K, Dn.MUST_HAVE_MESSAGES_IN_PLURAL, xe, 0), $(fe, K.currentOffset(), K.currentPosition()), fe;
}
function Q(K) {
const se = K.context(), { offset: xe, startLoc: de } = se, Ae = Y(K);
return se.currentType === 13 ? Ae : le(K, xe, de, Ae);
}
function ce(K) {
const se = WD(K, ka({}, t)), xe = se.context(), de = y(0, xe.offset, xe.startLoc);
return n && de.loc && (de.loc.source = K), de.body = Q(se), t.onCacheKey && (de.cacheKey = t.onCacheKey(K)), xe.currentType !== 13 && u(se, Dn.UNEXPECTED_LEXICAL_ANALYSIS, xe.lastStartLoc, 0, K[xe.offset] || ""), $(de, se.currentOffset(), se.currentPosition()), de;
}
return { parse: ce };
}
function xl(t) {
if (t.type === 13)
return "EOF";
const n = (t.value || "").replace(/\r?\n/gu, "\\n");
return n.length > 10 ? n.slice(0, 9) + "…" : n;
}
function QD(t, n = {}) {
const s = {
ast: t,
helpers: /* @__PURE__ */ new Set()
};
return { context: () => s, helper: ($) => (s.helpers.add($), $) };
}
function xT(t, n) {
for (let s = 0; s < t.length; s++)
Ax(t[s], n);
}
function Ax(t, n) {
switch (t.type) {
case 1:
xT(t.cases, n), n.helper(
"plural"
/* HelperNameMap.PLURAL */
);
break;
case 2:
xT(t.items, n);
break;
case 6: {
Ax(t.key, n), n.helper(
"linked"
/* HelperNameMap.LINKED */
), n.helper(
"type"
/* HelperNameMap.TYPE */
);
break;
}
case 5:
n.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), n.helper(
"list"
/* HelperNameMap.LIST */
);
break;
case 4:
n.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), n.helper(
"named"
/* HelperNameMap.NAMED */
);
break;
}
}
function JD(t, n = {}) {
const s = QD(t);
s.helper(
"normalize"
/* HelperNameMap.NORMALIZE */
), t.body && Ax(t.body, s);
const u = s.context();
t.helpers = Array.from(u.helpers);
}
function eO(t) {
const n = t.body;
return n.type === 2 ? wT(n) : n.cases.forEach((s) => wT(s)), t;
}
function wT(t) {
if (t.items.length === 1) {
const n = t.items[0];
(n.type === 3 || n.type === 9) && (t.static = n.value, delete n.value);
} else {
const n = [];
for (let s = 0; s < t.items.length; s++) {
const u = t.items[s];
if (!(u.type === 3 || u.type === 9) || u.value == null)
break;
n.push(u.value);
}
if (n.length === t.items.length) {
t.static = Tx(n);
for (let s = 0; s < t.items.length; s++) {
const u = t.items[s];
(u.type === 3 || u.type === 9) && delete u.value;
}
}
}
}
const tO = "minifier";
function hf(t) {
switch (t.t = t.type, t.type) {
case 0: {
const n = t;
hf(n.body), n.b = n.body, delete n.body;
break;
}
case 1: {
const n = t, s = n.cases;
for (let u = 0; u < s.length; u++)
hf(s[u]);
n.c = s, delete n.cases;
break;
}
case 2: {
const n = t, s = n.items;
for (let u = 0; u < s.length; u++)
hf(s[u]);
n.i = s, delete n.items, n.static && (n.s = n.static, delete n.static);
break;
}
case 3:
case 9:
case 8:
case 7: {
const n = t;
n.value && (n.v = n.value, delete n.value);
break;
}
case 6: {
const n = t;
hf(n.key), n.k = n.key, delete n.key, n.modifier && (hf(n.modifier), n.m = n.modifier, delete n.modifier);
break;
}
case 5: {
const n = t;
n.i = n.index, delete n.index;
break;
}
case 4: {
const n = t;
n.k = n.key, delete n.key;
break;
}
default:
if (process.env.NODE_ENV !== "production")
throw Of(Dn.UNHANDLED_MINIFIER_NODE_TYPE, null, {
domain: tO,
args: [t.type]
});
}
delete t.type;
}
const iO = "parser";
function nO(t, n) {
const { filename: s, breakLineCode: u, needIndent: y } = n, $ = n.location !== !1, A = {
filename: s,
code: "",
column: 1,
line: 1,
offset: 0,
map: void 0,
breakLineCode: u,
needIndent: y,
indentLevel: 0
};
$ && t.loc && (A.source = t.loc.source);
const r = () => A;
function D(Q, ce) {
A.code += Q;
}
function O(Q, ce = !0) {
const K = ce ? u : "";
D(y ? K + " ".repeat(Q) : K);
}
function U(Q = !0) {
const ce = ++A.indentLevel;
Q && O(ce);
}
function H(Q = !0) {
const ce = --A.indentLevel;
Q && O(ce);
}
function Z() {
O(A.indentLevel);
}
return {
context: r,
push: D,
indent: U,
deindent: H,
newline: Z,
helper: (Q) => `_${Q}`,
needIndent: () => A.needIndent
};
}
function rO(t, n) {
const { helper: s } = t;
t.push(`${s(
"linked"
/* HelperNameMap.LINKED */
)}(`), Tf(t, n.key), n.modifier ? (t.push(", "), Tf(t, n.modifier), t.push(", _type")) : t.push(", undefined, _type"), t.push(")");
}
function aO(t, n) {
const { helper: s, needIndent: u } = t;
t.push(`${s(
"normalize"
/* HelperNameMap.NORMALIZE */
)}([`), t.indent(u());
const y = n.items.length;
for (let $ = 0; $ < y && (Tf(t, n.items[$]), $ !== y - 1); $++)
t.push(", ");
t.deindent(u()), t.push("])");
}
function oO(t, n) {
const { helper: s, needIndent: u } = t;
if (n.cases.length > 1) {
t.push(`${s(
"plural"
/* HelperNameMap.PLURAL */
)}([`), t.indent(u());
const y = n.cases.length;
for (let $ = 0; $ < y && (Tf(t, n.cases[$]), $ !== y - 1); $++)
t.push(", ");
t.deindent(u()), t.push("])");
}
}
function sO(t, n) {
n.body ? Tf(t, n.body) : t.push("null");
}
function Tf(t, n) {
const { helper: s } = t;
switch (n.type) {
case 0:
sO(t, n);
break;
case 1:
oO(t, n);
break;
case 2:
aO(t, n);
break;
case 6:
rO(t, n);
break;
case 8:
t.push(JSON.stringify(n.value), n);
break;
case 7:
t.push(JSON.stringify(n.value), n);
break;
case 5:
t.push(`${s(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${s(
"list"
/* HelperNameMap.LIST */
)}(${n.index}))`, n);
break;
case 4:
t.push(`${s(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${s(
"named"
/* HelperNameMap.NAMED */
)}(${JSON.stringify(n.key)}))`, n);
break;
case 9:
t.push(JSON.stringify(n.value), n);
break;
case 3:
t.push(JSON.stringify(n.value), n);
break;
default:
if (process.env.NODE_ENV !== "production")
throw Of(Dn.UNHANDLED_CODEGEN_NODE_TYPE, null, {
domain: iO,
args: [n.type]
});
}
}
const lO = (t, n = {}) => {
const s = Wi(n.mode) ? n.mode : "normal", u = Wi(n.filename) ? n.filename : "message.intl";
n.sourceMap;
const y = n.breakLineCode != null ? n.breakLineCode : s === "arrow" ? ";" : `
`, $ = n.needIndent ? n.needIndent : s !== "arrow", A = t.helpers || [], r = nO(t, {
filename: u,
breakLineCode: y,
needIndent: $
});
r.push(s === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), r.indent($), A.length > 0 && (r.push(`const { ${Tx(A.map((U) => `${U}: _${U}`), ", ")} } = ctx`), r.newline()), r.push("return "), Tf(r, t), r.deindent($), r.push("}"), delete t.helpers;
const { code: D, map: O } = r.context();
return {
ast: t,
code: D,
map: O ? O.toJSON() : void 0
// eslint-disable-line @typescript-eslint/no-explicit-any
};
};
function cO(t, n = {}) {
const s = ka({}, n), u = !!s.jit, y = !!s.minify, $ = s.optimize == null ? !0 : s.optimize, r = XD(s).parse(t);
return u ? ($ && eO(r), y && hf(r), { ast: r, code: "" }) : (JD(r, s), lO(r, s));
}
/*!
* core-base v11.1.12
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function uO() {
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Md().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Md().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
}
function Zs(t) {
return gr(t) && Sx(t) === 0 && (qs(t, "b") || qs(t, "body"));
}
const P5 = ["b", "body"];
function dO(t) {
return Eu(t, P5);
}
const D5 = ["c", "cases"];
function hO(t) {
return Eu(t, D5, []);
}
const O5 = ["s", "static"];
function fO(t) {
return Eu(t, O5);
}
const k5 = ["i", "items"];
function pO(t) {
return Eu(t, k5, []);
}
const L5 = ["t", "type"];
function Sx(t) {
return Eu(t, L5);
}
const R5 = ["v", "value"];
function j_(t, n) {
const s = Eu(t, R5);
if (s != null)
return s;
throw vg(n);
}
const F5 = ["m", "modifier"];
function mO(t) {
return Eu(t, F5);
}
const N5 = ["k", "key"];
function gO(t) {
const n = Eu(t, N5);
if (n)
return n;
throw vg(
6
/* NodeTypes.Linked */
);
}
function Eu(t, n, s) {
for (let u = 0; u < n.length; u++) {
const y = n[u];
if (qs(t, y) && t[y] != null)
return t[y];
}
return s;
}
const B5 = [
...P5,
...D5,
...O5,
...k5,
...N5,
...F5,
...R5,
...L5
];
function vg(t) {
return new Error(`unhandled node type: ${t}`);
}
function z2(t) {
return (s) => _O(s, t);
}
function _O(t, n) {
const s = dO(n);
if (s == null)
throw vg(
0
/* NodeTypes.Resource */
);
if (Sx(s) === 1) {
const $ = hO(s);
return t.plural($.reduce((A, r) => [
...A,
$T(t, r)
], []));
} else
return $T(t, s);
}
function $T(t, n) {
const s = fO(n);
if (s != null)
return t.type === "text" ? s : t.normalize([s]);
{
const u = pO(n).reduce((y, $) => [...y, bb(t, $)], []);
return t.normalize(u);
}
}
function bb(t, n) {
const s = Sx(n);
switch (s) {
case 3:
return j_(n, s);
case 9:
return j_(n, s);
case 4: {
const u = n;
if (qs(u, "k") && u.k)
return t.interpolate(t.named(u.k));
if (qs(u, "key") && u.key)
return t.interpolate(t.named(u.key));
throw vg(s);
}
case 5: {
const u = n;
if (qs(u, "i") && Da(u.i))
return t.interpolate(t.list(u.i));
if (qs(u, "index") && Da(u.index))
return t.interpolate(t.list(u.index));
throw vg(s);
}
case 6: {
const u = n, y = mO(u), $ = gO(u);
return t.linked(bb(t, $), y ? bb(t, y) : void 0, t.type);
}
case 7:
return j_(n, s);
case 8:
return j_(n, s);
default:
throw new Error(`unhandled node on format message part: ${s}`);
}
}
const yO = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
function vO(t, n) {
n && BD(t) && Ml(r1(yO, { source: t }));
}
const bO = (t) => t;
let G_ = Mr();
function xO(t, n = {}) {
let s = !1;
const u = n.onError || FD;
return n.onError = (y) => {
s = !0, u(y);
}, { ...cO(t, n), detectError: s };
}
// @__NO_SIDE_EFFECTS__
function wO(t, n) {
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Wi(t)) {
const s = ua(n.warnHtmlMessage) ? n.warnHtmlMessage : !0;
process.env.NODE_ENV !== "production" && vO(t, s);
const y = (n.onCacheKey || bO)(t), $ = G_[y];
if ($)
return $;
const { ast: A, detectError: r } = xO(t, {
...n,
location: process.env.NODE_ENV !== "production",
jit: !0
}), D = z2(A);
return r ? D : G_[y] = D;
} else {
if (process.env.NODE_ENV !== "production" && !Zs(t))
return Ml(`the message that is resolve with key '${n.key}' is not supported for jit compilation`), () => t;
const s = t.cacheKey;
if (s) {
const u = G_[s];
return u || (G_[s] = z2(t));
} else
return z2(t);
}
}
let bg = null;
function $O(t) {
bg = t;
}
function TO(t, n, s) {
bg && bg.emit("i18n:init", {
timestamp: Date.now(),
i18n: t,
version: n,
meta: s
});
}
const AO = /* @__PURE__ */ SO("function:translate");
function SO(t) {
return (n) => bg && bg.emit(t, n);
}
const Qa = {
INVALID_ARGUMENT: LD,
// 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
}, EO = 24;
function tc(t) {
return Of(t, null, process.env.NODE_ENV !== "production" ? { messages: CO } : void 0);
}
const CO = {
[Qa.INVALID_ARGUMENT]: "Invalid arguments",
[Qa.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
[Qa.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
[Qa.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
[Qa.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
[Qa.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
[Qa.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
};
function Ex(t, n) {
return n.locale != null ? TT(n.locale) : TT(t.locale);
}
let P2;
function TT(t) {
if (Wi(t))
return t;
if (Gr(t)) {
if (t.resolvedOnce && P2 != null)
return P2;
if (t.constructor.name === "Function") {
const n = t();
if (zD(n))
throw tc(Qa.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
return P2 = n;
} else
throw tc(Qa.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
} else
throw tc(Qa.NOT_SUPPORT_LOCALE_TYPE);
}
function IO(t, n, s) {
return [.../* @__PURE__ */ new Set([
s,
...da(n) ? n : gr(n) ? Object.keys(n) : Wi(n) ? [n] : [s]
])];
}
function V5(t, n, s) {
const u = Wi(s) ? s : Ty, y = t;
y.__localeChainCache || (y.__localeChainCache = /* @__PURE__ */ new Map());
let $ = y.__localeChainCache.get(u);
if (!$) {
$ = [];
let A = [s];
for (; da(A); )
A = AT($, A, n);
const r = da(n) || !mr(n) ? n : n.default ? n.default : null;
A = Wi(r) ? [r] : r, da(A) && AT($, A, !1), y.__localeChainCache.set(u, $);
}
return $;
}
function AT(t, n, s) {
let u = !0;
for (let y = 0; y < n.length && ua(u); y++) {
const $ = n[y];
Wi($) && (u = MO(t, n[y], s));
}
return u;
}
function MO(t, n, s) {
let u;
const y = n.split("-");
do {
const $ = y.join("-");
u = zO(t, $, s), y.splice(-1, 1);
} while (y.length && u === !0);
return u;
}
function zO(t, n, s) {
let u = !1;
if (!t.includes(n) && (u = !0, n)) {
u = n[n.length - 1] !== "!";
const y = n.replace(/!/g, "");
t.push(y), (da(s) || mr(s)) && s[y] && (u = s[y]);
}
return u;
}
const Cu = [];
Cu[
0
/* States.BEFORE_PATH */
] = {
w: [
0
/* States.BEFORE_PATH */
],
i: [
3,
0
/* Actions.APPEND */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Cu[
1
/* States.IN_PATH */
] = {
w: [
1
/* States.IN_PATH */
],
".": [
2
/* States.BEFORE_IDENT */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Cu[
2
/* States.BEFORE_IDENT */
] = {
w: [
2
/* States.BEFORE_IDENT */
],
i: [
3,
0
/* Actions.APPEND */
],
0: [
3,
0
/* Actions.APPEND */
]
};
Cu[
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 */
]
};
Cu[
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 */
]
};
Cu[
5
/* States.IN_SINGLE_QUOTE */
] = {
"'": [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
5,
0
/* Actions.APPEND */
]
};
Cu[
6
/* States.IN_DOUBLE_QUOTE */
] = {
'"': [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
6,
0
/* Actions.APPEND */
]
};
const PO = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
function DO(t) {
return PO.test(t);
}
function OO(t) {
const n = t.charCodeAt(0), s = t.charCodeAt(t.length - 1);
return n === s && (n === 34 || n === 39) ? t.slice(1, -1) : t;
}
function kO(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 LO(t) {
const n = t.trim();
return t.charAt(0) === "0" && isNaN(parseInt(t)) ? !1 : DO(n) ? OO(n) : "*" + n;
}
function RO(t) {
const n = [];
let s = -1, u = 0, y = 0, $, A, r, D, O, U, H;
const Z = [];
Z[
0
/* Actions.APPEND */
] = () => {
A === void 0 ? A = r : A += r;
}, Z[
1
/* Actions.PUSH */
] = () => {
A !== void 0 && (n.push(A), A = void 0);
}, Z[
2
/* Actions.INC_SUB_PATH_DEPTH */
] = () => {
Z[
0
/* Actions.APPEND */
](), y++;
}, Z[
3
/* Actions.PUSH_SUB_PATH */
] = () => {
if (y > 0)
y--, u = 4, Z[
0
/* Actions.APPEND */
]();
else {
if (y = 0, A === void 0 || (A = LO(A), A === !1))
return !1;
Z[
1
/* Actions.PUSH */
]();
}
};
function Y() {
const le = t[s + 1];
if (u === 5 && le === "'" || u === 6 && le === '"')
return s++, r = "\\" + le, Z[
0
/* Actions.APPEND */
](), !0;
}
for (; u !== null; )
if (s++, $ = t[s], !($ === "\\" && Y())) {
if (D = kO($), H = Cu[u], O = H[D] || H.l || 8, O === 8 || (u = O[0], O[1] !== void 0 && (U = Z[O[1]], U && (r = $, U() === !1))))
return;
if (u === 7)
return n;
}
}
const ST = /* @__PURE__ */ new Map();
function FO(t, n) {
return gr(t) ? t[n] : null;
}
function NO(t, n) {
if (!gr(t))
return null;
let s = ST.get(n);
if (s || (s = RO(n), s && ST.set(n, s)), !s)
return null;
const u = s.length;
let y = t, $ = 0;
for (; $ < u; ) {
const A = s[$];
if (B5.includes(A) && Zs(y))
return null;
const r = y[A];
if (r === void 0 || Gr(y))
return null;
y = r, $++;
}
return y;
}
const Po = {
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
}, BO = 8, VO = {
[Po.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
[Po.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
[Po.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
[Po.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
[Po.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
[Po.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
[Po.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 Rd(t, ...n) {
return r1(VO[t], ...n);
}
const UO = "11.1.12", o1 = -1, Ty = "en-US", Ay = "", ET = (t) => `${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
function jO() {
return {
upper: (t, n) => n === "text" && Wi(t) ? t.toUpperCase() : n === "vnode" && gr(t) && "__v_isVNode" in t ? t.children.toUpperCase() : t,
lower: (t, n) => n === "text" && Wi(t) ? t.toLowerCase() : n === "vnode" && gr(t) && "__v_isVNode" in t ? t.children.toLowerCase() : t,
capitalize: (t, n) => n === "text" && Wi(t) ? ET(t) : n === "vnode" && gr(t) && "__v_isVNode" in t ? ET(t.children) : t
};
}
let U5;
function GO(t) {
U5 = t;
}
let j5;
function HO(t) {
j5 = t;
}
let G5;
function qO(t) {
G5 = t;
}
let H5 = null;
const WO = /* @__NO_SIDE_EFFECTS__ */ (t) => {
H5 = t;
}, YO = /* @__NO_SIDE_EFFECTS__ */ () => H5;
let q5 = null;
const CT = (t) => {
q5 = t;
}, ZO = () => q5;
let IT = 0;
function KO(t = {}) {
const n = Gr(t.onWarn) ? t.onWarn : Ml, s = Wi(t.version) ? t.version : UO, u = Wi(t.locale) || Gr(t.locale) ? t.locale : Ty, y = Gr(u) ? Ty : u, $ = da(t.fallbackLocale) || mr(t.fallbackLocale) || Wi(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : y, A = mr(t.messages) ? t.messages : D2(y), r = mr(t.datetimeFormats) ? t.datetimeFormats : D2(y), D = mr(t.numberFormats) ? t.numberFormats : D2(y), O = ka(Mr(), t.modifiers, jO()), U = t.pluralRules || Mr(), H = Gr(t.missing) ? t.missing : null, Z = ua(t.missingWarn) || $y(t.missingWarn) ? t.missingWarn : !0, Y = ua(t.fallbackWarn) || $y(t.fallbackWarn) ? t.fallbackWarn : !0, le = !!t.fallbackFormat, Q = !!t.unresolving, ce = Gr(t.postTranslation) ? t.postTranslation : null, K = mr(t.processor) ? t.processor : null, se = ua(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, xe = !!t.escapeParameter, de = Gr(t.messageCompiler) ? t.messageCompiler : U5;
process.env.NODE_ENV !== "production" && Gr(t.messageCompiler) && $D(Rd(Po.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
const Ae = Gr(t.messageResolver) ? t.messageResolver : j5 || FO, Ie = Gr(t.localeFallbacker) ? t.localeFallbacker : G5 || IO, fe = gr(t.fallbackContext) ? t.fallbackContext : void 0, Ne = t, Tt = gr(Ne.__datetimeFormatters) ? Ne.__datetimeFormatters : /* @__PURE__ */ new Map(), rt = gr(Ne.__numberFormatters) ? Ne.__numberFormatters : /* @__PURE__ */ new Map(), dt = gr(Ne.__meta) ? Ne.__meta : {};
IT++;
const Bt = {
version: s,
cid: IT,
locale: u,
fallbackLocale: $,
messages: A,
modifiers: O,
pluralRules: U,
missing: H,
missingWarn: Z,
fallbackWarn: Y,
fallbackFormat: le,
unresolving: Q,
postTranslation: ce,
processor: K,
warnHtmlMessage: se,
escapeParameter: xe,
messa