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