@intlify/core 11.4.13 → 11.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * core v11.4.13
2
+ * core v11.4.15
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -64,6 +64,27 @@ var IntlifyCore = (function (exports) {
64
64
  return hasOwnProperty.call(obj, key);
65
65
  }
66
66
  /* eslint-enable */
67
+ /**
68
+ * Get `obj[key]` only when `key` is an own property of `obj`, so that a key
69
+ * such as `constructor` does not read a property inherited from
70
+ * `Object.prototype`.
71
+ * The property is read before the check, so that a reactive `obj` tracks
72
+ * `key` even when it is missing.
73
+ */
74
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
75
+ function getOwn(obj, key) {
76
+ const value = obj[key];
77
+ return hasOwn(obj, key) ? value : undefined;
78
+ }
79
+ /**
80
+ * Whether `key` is a property name of `Object.prototype`, such as `__proto__`,
81
+ * `constructor` or `toString`.
82
+ * On a plain object, such a key reads a built-in, and assigning to `__proto__`
83
+ * replaces the prototype.
84
+ */
85
+ function isObjectPrototypeKey(key) {
86
+ return hasOwn(Object.prototype, key);
87
+ }
67
88
  /**
68
89
  * Useful Utilities By Evan you
69
90
  * Modified by kazuya kawaguchi
@@ -138,6 +159,13 @@ var IntlifyCore = (function (exports) {
138
159
  }
139
160
  }
140
161
  }
162
+ const hasWarned = {};
163
+ function warnOnce(msg) {
164
+ if (!hasWarned[msg]) {
165
+ hasWarned[msg] = true;
166
+ warn(msg);
167
+ }
168
+ }
141
169
 
142
170
  function escapeHtml(rawText) {
143
171
  return rawText
@@ -166,6 +194,10 @@ var IntlifyCore = (function (exports) {
166
194
  const controlOrWhitespacePattern = /[\u0000-\u0020\u007f-\u009f]/g;
167
195
  const eventHandlerPattern = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i;
168
196
  const eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
197
+ // `srcdoc` holds a whole HTML document: its value is entity-decoded and then parsed again,
198
+ // so neither escaping the value nor neutralizing `on*` inside it makes it inert
199
+ const srcdocPattern = /(?:^|[\s"'<>/])srcdoc\s*=/i;
200
+ const srcdocAttributePattern = /(^|[\s"'<>/])s(rcdoc\s*=)/gi;
169
201
  const unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
170
202
  function decodeNumericCharacterReference(match, hex, decimal) {
171
203
  const digits = hex || decimal;
@@ -253,6 +285,15 @@ var IntlifyCore = (function (exports) {
253
285
  // Neutralize event handler attributes by escaping 'on'
254
286
  html = html.replace(eventHandlerAttributePattern, '$1&#111;n$2');
255
287
  }
288
+ // Detect and neutralize `srcdoc` attributes
289
+ if (srcdocPattern.test(html)) {
290
+ {
291
+ warn('Potentially dangerous srcdoc attribute detected in translation. ' +
292
+ 'Consider removing srcdoc from your translation messages.');
293
+ }
294
+ // Neutralize `srcdoc` by escaping 's': character references are not decoded in attribute names
295
+ html = html.replace(srcdocAttributePattern, '$1&#115;$2');
296
+ }
256
297
  // Disable javascript: URLs in unquoted attributes
257
298
  html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
258
299
  return html;
@@ -481,8 +522,12 @@ var IntlifyCore = (function (exports) {
481
522
  /* #__NO_SIDE_EFFECTS__ */
482
523
  function compile(message, context) {
483
524
  {
525
+ // the message compiler is not included in this build (e.g. the runtime-only builds), so return a string message as is
484
526
  if (!isMessageAST(message)) {
485
- warn(`the message that is resolve with key '${context.key}' is not supported for jit compilation`);
527
+ {
528
+ warn(`Cannot compile the message of '${context.key}' key, because the message compiler is not included in this build. ` +
529
+ `Pre-compile the message. So translate function returns the message as is.`);
530
+ }
486
531
  return (() => message);
487
532
  }
488
533
  // AST case (passed from bundler)
@@ -493,8 +538,7 @@ var IntlifyCore = (function (exports) {
493
538
  return cached;
494
539
  }
495
540
  // compose message function from message (AST)
496
- return (compileCache[cacheKey] =
497
- format(message));
541
+ return (compileCache[cacheKey] = format(message));
498
542
  }
499
543
  else {
500
544
  return format(message);
@@ -941,7 +985,9 @@ var IntlifyCore = (function (exports) {
941
985
  * @VueI18nGeneral
942
986
  */
943
987
  function resolveWithKeyValue(obj, path) {
944
- return isObject(obj) ? obj[path] : null;
988
+ // read only own properties, so that a key such as `toString` does not
989
+ // resolve a built-in function
990
+ return isObject(obj) ? getOwn(obj, path) : null;
945
991
  }
946
992
  /**
947
993
  * message resolver
@@ -1021,7 +1067,7 @@ var IntlifyCore = (function (exports) {
1021
1067
  const CORE_WARN_CODES_EXTEND_POINT = 10;
1022
1068
  /** @internal */
1023
1069
  const warnMessages = {
1024
- [CoreWarnCodes.NOT_FOUND_KEY]: `Not found '{key}' key in '{locale}' locale messages.`,
1070
+ [CoreWarnCodes.NOT_FOUND_KEY]: `Not found '{key}' key in '{locale}' locale {resource}.`,
1025
1071
  [CoreWarnCodes.FALLBACK_TO_TRANSLATE]: `Fall back to translate '{key}' key with '{target}' locale.`,
1026
1072
  [CoreWarnCodes.CANNOT_FORMAT_NUMBER]: `Cannot format a number value due to not supported Intl.NumberFormat.`,
1027
1073
  [CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]: `Fall back to number format '{key}' key with '{target}' locale.`,
@@ -1040,7 +1086,7 @@ var IntlifyCore = (function (exports) {
1040
1086
  * Intlify core-base version
1041
1087
  * @internal
1042
1088
  */
1043
- const VERSION = '11.4.13';
1089
+ const VERSION = '11.4.15';
1044
1090
  const NOT_REOSLVED = -1;
1045
1091
  const DEFAULT_LOCALE = 'en-US';
1046
1092
  const MISSING_RESOLVE_VALUE = '';
@@ -1255,7 +1301,15 @@ var IntlifyCore = (function (exports) {
1255
1301
  }
1256
1302
  else {
1257
1303
  if (isTranslateMissingWarn(missingWarn, key)) {
1258
- onWarn(getWarnMessage(CoreWarnCodes.NOT_FOUND_KEY, { key, locale }));
1304
+ onWarn(getWarnMessage(CoreWarnCodes.NOT_FOUND_KEY, {
1305
+ key,
1306
+ locale,
1307
+ resource: type === 'datetime format'
1308
+ ? 'datetime formats'
1309
+ : type === 'number format'
1310
+ ? 'number formats'
1311
+ : 'messages'
1312
+ }));
1259
1313
  }
1260
1314
  return key;
1261
1315
  }
@@ -1329,7 +1383,9 @@ var IntlifyCore = (function (exports) {
1329
1383
  });
1330
1384
  }
1331
1385
  }
1332
- const format = (formats[targetLocale] || {})[key];
1386
+ // read only own properties, so that a locale such as `constructor` does not
1387
+ // read a built-in object
1388
+ const format = getOwn(getOwn(formats, targetLocale) || {}, key);
1333
1389
  if (isPlainObject(format) && isString(targetLocale)) {
1334
1390
  return targetLocale;
1335
1391
  }
@@ -1618,7 +1674,9 @@ var IntlifyCore = (function (exports) {
1618
1674
  function createMessageContext(options = {}) {
1619
1675
  const locale = options.locale;
1620
1676
  const pluralIndex = getPluralIndex(options);
1621
- const pluralRule = isString(locale) && isFunction(options.pluralRules?.[locale])
1677
+ const pluralRule = isString(locale) &&
1678
+ options.pluralRules &&
1679
+ isFunction(getOwn(options.pluralRules, locale))
1622
1680
  ? options.pluralRules[locale]
1623
1681
  : pluralDefault;
1624
1682
  const orgPluralRule = pluralRule === pluralDefault ? undefined : pluralDefault;
@@ -1626,12 +1684,19 @@ var IntlifyCore = (function (exports) {
1626
1684
  const _list = options.list || [];
1627
1685
  const list = (index) => _list[index];
1628
1686
  const _named = options.named || create(); // eslint-disable-line @typescript-eslint/no-explicit-any
1629
- // normalize named
1630
- if (isNumber(options.pluralIndex)) {
1631
- _named.count ||= options.pluralIndex;
1632
- _named.n ||= options.pluralIndex;
1633
- }
1634
- const named = (key) => _named[key];
1687
+ // `count` and `n` are the implicit named values of a plural call. supply the
1688
+ // plural index for them, without writing into the named values that the
1689
+ // caller passed
1690
+ const hasPluralIndex = isNumber(options.pluralIndex);
1691
+ const named = (key) => {
1692
+ // read only own properties for the names of Object.prototype properties,
1693
+ // such as `toString`, so that the getters of class instances still work as
1694
+ // named values
1695
+ const value = isObjectPrototypeKey(key) ? getOwn(_named, key) : _named[key];
1696
+ return hasPluralIndex && !value && (key === 'count' || key === 'n')
1697
+ ? options.pluralIndex
1698
+ : value;
1699
+ };
1635
1700
  function message(key, useLinked) {
1636
1701
  // prettier-ignore
1637
1702
  const msg = isFunction(options.messages)
@@ -1646,7 +1711,7 @@ var IntlifyCore = (function (exports) {
1646
1711
  : msg;
1647
1712
  }
1648
1713
  const _modifier = (name) => options.modifiers
1649
- ? options.modifiers[name]
1714
+ ? getOwn(options.modifiers, name)
1650
1715
  : DEFAULT_MODIFIER;
1651
1716
  const normalize = isFunction(options.processor?.normalize)
1652
1717
  ? options.processor.normalize
@@ -1686,7 +1751,20 @@ var IntlifyCore = (function (exports) {
1686
1751
  type === 'vnode' && isArray(resolved) && modifier
1687
1752
  ? resolved[0]
1688
1753
  : resolved;
1689
- return modifier ? _modifier(modifier)(msg, type) : msg;
1754
+ if (!modifier) {
1755
+ return msg;
1756
+ }
1757
+ const modify = _modifier(modifier);
1758
+ if (isFunction(modify)) {
1759
+ return modify(msg, type);
1760
+ }
1761
+ // an unknown modifier, such as a typo, does not stop the translation
1762
+ {
1763
+ warnOnce(`Not found '${modifier}' modifier for the linked message of '${key}' key. ` +
1764
+ `Use a built-in modifier, or set a custom modifier with 'modifiers' option. ` +
1765
+ `So the linked message is used as is.`);
1766
+ }
1767
+ return msg;
1690
1768
  };
1691
1769
  const ctx = {
1692
1770
  ["list" /* HelperNameMap.LIST */]: list,
@@ -1697,13 +1775,17 @@ var IntlifyCore = (function (exports) {
1697
1775
  ["type" /* HelperNameMap.TYPE */]: type,
1698
1776
  ["interpolate" /* HelperNameMap.INTERPOLATE */]: interpolate,
1699
1777
  ["normalize" /* HelperNameMap.NORMALIZE */]: normalize,
1700
- ["values" /* HelperNameMap.VALUES */]: assign(create(), _list, _named)
1778
+ // custom message compilers read the values, so give them the same `count`
1779
+ // and `n` as `named()`
1780
+ ["values" /* HelperNameMap.VALUES */]: assign(create(), _list, _named, hasPluralIndex ? { count: named('count'), n: named('n') } : {})
1701
1781
  };
1702
1782
  return ctx;
1703
1783
  }
1704
1784
 
1705
1785
  const NOOP_MESSAGE_FUNCTION = () => '';
1706
1786
  const isMessageFunction = (val) => isFunction(val);
1787
+ /** @internal */
1788
+ const isMessageFormat = (val) => isString(val) || isMessageAST(val) || isMessageFunction(val);
1707
1789
  // implementation of `translate` function
1708
1790
  function translate(context, ...args) {
1709
1791
  const { fallbackFormat, postTranslation, unresolving, messageCompiler, fallbackLocale, messages } = context;
@@ -1736,11 +1818,7 @@ var IntlifyCore = (function (exports) {
1736
1818
  // eslint-disable-next-line prefer-const
1737
1819
  let [formatScope, targetLocale, message] = !resolvedMessage
1738
1820
  ? resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn)
1739
- : [
1740
- key,
1741
- locale,
1742
- messages[locale] || create()
1743
- ];
1821
+ : [key, locale, getOwn(messages, locale) || create()];
1744
1822
  // NOTE:
1745
1823
  // Fix to work around `ssrTransfrom` bug in Vite.
1746
1824
  // https://github.com/vitejs/vite/issues/4306
@@ -1749,10 +1827,7 @@ var IntlifyCore = (function (exports) {
1749
1827
  let format = formatScope;
1750
1828
  // if you use default message, set it as message format!
1751
1829
  let cacheBaseKey = key;
1752
- if (!resolvedMessage &&
1753
- !(isString(format) ||
1754
- isMessageAST(format) ||
1755
- isMessageFunction(format))) {
1830
+ if (!resolvedMessage && !isMessageFormat(format)) {
1756
1831
  if (enableDefaultMsg) {
1757
1832
  format = defaultMsgOrKey;
1758
1833
  cacheBaseKey = format;
@@ -1760,19 +1835,15 @@ var IntlifyCore = (function (exports) {
1760
1835
  }
1761
1836
  // checking message format and target locale
1762
1837
  if (!resolvedMessage &&
1763
- (!(isString(format) ||
1764
- isMessageAST(format) ||
1765
- isMessageFunction(format)) ||
1766
- !isString(targetLocale))) {
1838
+ (!isMessageFormat(format) || !isString(targetLocale))) {
1767
1839
  return unresolving ? NOT_REOSLVED : key;
1768
1840
  }
1769
- // TODO: refactor
1841
+ // without a message compiler, `compileMessageFormat()` returns the message as is
1770
1842
  if (isString(format) && context.messageCompiler == null) {
1771
1843
  warn(`The message format compilation is not supported in this build. ` +
1772
1844
  `Because message compiler isn't included. ` +
1773
1845
  `You need to pre-compilation all message format. ` +
1774
- `So translate function return '${key}'.`);
1775
- return key;
1846
+ `So translate function returns the message as is.`);
1776
1847
  }
1777
1848
  // setup compile error detecting
1778
1849
  let occurred = false;
@@ -1825,15 +1896,19 @@ var IntlifyCore = (function (exports) {
1825
1896
  return ret;
1826
1897
  }
1827
1898
  function escapeParams(options) {
1899
+ // a call can pass both list and named values, so escape each of them
1828
1900
  if (isArray(options.list)) {
1829
1901
  options.list = options.list.map(item => isString(item) ? escapeHtml(item) : item);
1830
1902
  }
1831
- else if (isObject(options.named)) {
1832
- Object.keys(options.named).forEach(key => {
1833
- if (isString(options.named[key])) {
1834
- options.named[key] = escapeHtml(options.named[key]);
1835
- }
1836
- });
1903
+ if (isObject(options.named)) {
1904
+ // escape into a new object, so that the values of the caller are not rewritten
1905
+ const source = options.named;
1906
+ const named = create();
1907
+ for (const key of Object.keys(source)) {
1908
+ const value = source[key];
1909
+ named[key] = isString(value) ? escapeHtml(value) : value;
1910
+ }
1911
+ options.named = named;
1837
1912
  }
1838
1913
  }
1839
1914
  function resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn) {
@@ -1869,8 +1944,9 @@ var IntlifyCore = (function (exports) {
1869
1944
  });
1870
1945
  }
1871
1946
  }
1872
- message =
1873
- messages[targetLocale] || create();
1947
+ // read only own properties, so that a locale such as `constructor` does not
1948
+ // read a built-in object
1949
+ message = getOwn(messages, targetLocale) || create();
1874
1950
  // for vue-devtools timeline event
1875
1951
  let start = null;
1876
1952
  let startTag;
@@ -1882,8 +1958,8 @@ var IntlifyCore = (function (exports) {
1882
1958
  mark && mark(startTag);
1883
1959
  }
1884
1960
  if ((format = resolveValue(message, key)) === null) {
1885
- // if null, resolve with object key path
1886
- format = message[key]; // eslint-disable-line @typescript-eslint/no-explicit-any
1961
+ // if null, resolve with object key path, from own properties only
1962
+ format = getOwn(message, key);
1887
1963
  }
1888
1964
  // for vue-devtools timeline event
1889
1965
  if (inBrowser && emitter) {
@@ -1902,7 +1978,7 @@ var IntlifyCore = (function (exports) {
1902
1978
  measure('intlify message resolve', startTag, endTag);
1903
1979
  }
1904
1980
  }
1905
- if (isString(format) || isMessageAST(format) || isMessageFunction(format)) {
1981
+ if (isMessageFormat(format)) {
1906
1982
  break;
1907
1983
  }
1908
1984
  if (!isImplicitFallback(targetLocale, locales)) {
@@ -2164,6 +2240,7 @@ var IntlifyCore = (function (exports) {
2164
2240
  exports.isAlmostSameLocale = isAlmostSameLocale;
2165
2241
  exports.isImplicitFallback = isImplicitFallback;
2166
2242
  exports.isMessageAST = isMessageAST;
2243
+ exports.isMessageFormat = isMessageFormat;
2167
2244
  exports.isMessageFunction = isMessageFunction;
2168
2245
  exports.isTranslateFallbackWarn = isTranslateFallbackWarn;
2169
2246
  exports.isTranslateMissingWarn = isTranslateMissingWarn;
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * core v11.4.13
2
+ * core v11.4.15
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
6
- var IntlifyCore=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=(e,t,n)=>r({l:e,k:t,s:n}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),a=e=>"number"==typeof e&&isFinite(e),o=e=>"[object Date]"===A(e),l=e=>"[object RegExp]"===A(e),s=e=>O(e)&&0===Object.keys(e).length,i=Object.assign,c=Object.create,u=(e=null)=>c(e),f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}const _=Array.isArray,E=e=>"function"==typeof e,g=e=>"string"==typeof e,p=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,N=e=>d(e)&&E(e.then)&&E(e.catch),T=Object.prototype.toString,A=e=>T.call(e),O=e=>"[object Object]"===A(e);function C(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function b(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}const h=/^javascript:/i,L=/^(?:href|src|action|formaction)$/i,I=/&#(?:x([0-9a-f]+)|(\d+));?/gi,k=/&(?:Tab|NewLine);/g,D=/&colon;?/gi,R=/[\u0000-\u0020\u007f-\u009f]/g,S=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,M=/(^|[\s"'<>/])on(\w+\s*=)/gi,y=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function F(e,t,n){const r=t||n;if(!r)return e;const a=Number.parseInt(r,t?16:10);return a<=127?String.fromCharCode(a):e}function P(e){const t=e.replace(I,F).replace(k,"").replace(D,":").replace(R,"");return h.test(t)}function U(e,t){if(L.test(e)&&P(t))return"about:blank";const n="style"===e.toLowerCase()?function(e){const t=/url\s*\(/gi;let n,r="",a=0;for(;null!==(n=t.exec(e));){const o=n.index,l=t.lastIndex-1;let s=l+1,i=1,c=null;for(;s<e.length;s++){const t=e[s];if(c)t===c&&(c=null);else if('"'===t||"'"===t)c=t;else if("("===t)i++;else if(")"===t&&(i--,0===i))break}if(0!==i)break;const u=e.slice(l+1,s).trim(),f=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;r+=e.slice(a,o),r+=P(f)?"url(about:blank)":e.slice(o,s+1),a=s+1}return r+e.slice(a)}(t):t;return function(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(n)}const w={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,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function v(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}function W(e){return d(e)&&0===K(e)&&(m(e,"b")||m(e,"body"))}const x=["b","body"];const V=["c","cases"];const G=["s","static"];const $=["i","items"];const j=["t","type"];function K(e){return z(e,j)}const Y=["v","value"];function B(e,t){const n=z(e,Y);if(null!=n)return n;throw J(t)}const H=["m","modifier"];const X=["k","key"];function z(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(m(e,n)&&null!=e[n])return e[n]}return n}const Z=[...x,...V,...G,...$,...X,...H,...Y,...j];function J(e){return new Error(`unhandled node type: ${e}`)}function Q(e){return t=>function(e,t){const n=(r=t,z(r,x));var r;if(null==n)throw J(0);if(1===K(n)){const t=function(e){return z(e,V,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,q(e,n)]),[]))}return q(e,n)}(t,e)}function q(e,t){const n=function(e){return z(e,G)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return z(e,$,[])}(t).reduce(((t,n)=>[...t,ee(e,n)]),[]);return e.normalize(n)}}function ee(e,t){const n=K(t);switch(n){case 3:case 9:case 7:case 8:return B(t,n);case 4:{const r=t;if(m(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(m(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw J(n)}case 5:{const r=t;if(m(r,"i")&&a(r.i))return e.interpolate(e.list(r.i));if(m(r,"index")&&a(r.index))return e.interpolate(e.list(r.index));throw J(n)}case 6:{const n=t,r=function(e){return z(e,H)}(n),a=function(e){const t=z(e,X);if(t)return t;throw J(6)}(n);return e.linked(ee(e,a),r?ee(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}let te=u();function ne(e,t){{const t=e.cacheKey;if(t){const n=te[t];return n||(te[t]=Q(e))}return Q(e)}}let re=null;const ae=oe("function:translate");function oe(e){return t=>re&&re.emit(e,t)}const le={INVALID_ARGUMENT: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};function se(e,t){return null!=t.locale?ce(t.locale):ce(e.locale)}let ie;function ce(e){if(g(e))return e;if(E(e)){if(e.resolvedOnce&&null!=ie)return ie;if("Function"===e.constructor.name){const t=e();if(N(t))throw Error(le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ie=t}throw Error(le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(le.NOT_SUPPORT_LOCALE_TYPE)}function ue(e,t,n){return[...new Set([n,..._(t)?t:d(t)?Object.keys(t).filter((e=>"default"!==e)):g(t)?[t]:[n]])]}function fe(e,t,n){const r=g(n)?n:Ie,a=e;let o;d(t)?(a.__localeChainObjectCache||(a.__localeChainObjectCache=new WeakMap),o=a.__localeChainObjectCache.get(t),o||(o=new Map,a.__localeChainObjectCache.set(t,o))):(a.__localeChainCache||(a.__localeChainCache=new Map),o=a.__localeChainCache.get(t),o||(o=new Map,a.__localeChainCache.set(t,o)));const l=o.get(r);if(l)return l;const s=[];let i=[n];for(;_(i);)i=me(s,i,t);const c=_(t)||!O(t)?t:t.default?t.default:null;return i=g(c)?[c]:c,_(i)&&me(s,i,!1),o.set(r,s),s}function me(e,t,n){let r=!0;for(let a=0;a<t.length&&p(r);a++){const o=t[a];g(o)&&(r=_e(e,t[a],n))}return r}function _e(e,t,n){let r;const a=t.split("-");do{r=Ee(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function Ee(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(_(n)||O(n))&&n[a]&&(r=n[a])}return r}le.INVALID_ARGUMENT,le.INVALID_DATE_ARGUMENT,le.INVALID_ISO_DATE_ARGUMENT,le.NOT_SUPPORT_NON_STRING_MESSAGE,le.NOT_SUPPORT_LOCALE_PROMISE_VALUE,le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,le.NOT_SUPPORT_LOCALE_TYPE;const ge=[];ge[0]={w:[0],i:[3,0],"[":[4],o:[7]},ge[1]={w:[1],".":[2],"[":[4],o:[7]},ge[2]={w:[2],i:[3,0],0:[3,0]},ge[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},ge[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},ge[5]={"'":[4,0],o:8,l:[5,0]},ge[6]={'"':[4,0],o:8,l:[6,0]};const pe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function de(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ne(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,pe.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function Te(e){const t=[];let n,r,a,o,l,s,i,c=-1,u=0,f=0;const m=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=Ne(r),!1===r)return!1;m[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(o=de(n),i=ge[u],l=i[o]||i.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const Ae=new Map;function Oe(e,t){return d(e)?e[t]:null}function Ce(e,t){if(!d(e))return null;let n=Ae.get(t);if(n||(n=Te(t),n&&Ae.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=n[o];if(Z.includes(e)&&W(a))return null;if(!d(a))return null;if(!m(a,e))return null;const t=a[e];if(void 0===t)return null;if(E(a))return null;a=t,o++}return a}const be={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,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},he={[be.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[be.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[be.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[be.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[be.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[be.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[be.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.",[be.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[be.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};const Le="11.4.13",Ie="en-US",ke=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let De,Re,Se;function Me(e){De=e}function ye(e){Re=e}function Fe(e){Se=e}let Pe=null;let Ue=null;let we=0;const ve=e=>({[e]:u()});function We(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return g(r)?r:t}return t}function xe(e,t){const n=e;d(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function Ve(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function Ge(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(Ve(e,t[r]))return!0;return!1}function $e(e,t,n,r,a,o,l){const{fallbackLocale:s,localeFallbacker:i,onWarn:c}=e,u=i(e,s,n);for(let f=0;f<u.length;f++){const n=u[f],a=(r[n]||{})[t];if(O(a)&&g(n))return n;We(e,t,n,0,l)}return null}function je(e,t,n){let r=`${e}__${t}`;return O(n)&&!s(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Ke(e,t,n){for(const r in n){const n=`${t}__${r}`;for(const t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function Ye(e,t,n,r){const[,a,o,l]=e;let s=n;return g(a)?t.key=a:O(a)&&Object.keys(a).forEach((e=>{r.includes(e)?s[e]=a[e]:t[e]=a[e]})),g(o)?t.locale=o:O(o)&&(s=o),O(l)&&(s=l),s}const Be=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function He(...e){const[t]=e,n=u(),r=u();let l;if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(le.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();l=new Date(n);try{l.toISOString()}catch{throw Error(le.INVALID_ISO_DATE_ARGUMENT)}}else if(o(t)){if(isNaN(t.getTime()))throw Error(le.INVALID_DATE_ARGUMENT);l=t}else{if(!a(t))throw Error(le.INVALID_ARGUMENT);l=t}const s=Ye(e,n,r,Be);return[n.key||"",l,n,s]}const Xe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ze(...e){const[t]=e,n=u(),r=u();if(!a(t))throw Error(le.INVALID_ARGUMENT);const o=t,l=Ye(e,n,r,Xe);return[n.key||"",o,n,l]}const Ze=e=>e,Je=e=>"",Qe="text",qe=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}(e),et=e=>null==e?"":_(e)||O(e)&&e.toString===T?JSON.stringify(e,null,2):String(e);function tt(e,t){return e=Math.abs(e),2===t?1===e?0:1:Math.min(e,2)}function nt(e={}){const t=e.locale,n=function(e){const t=a(e.pluralIndex)?e.pluralIndex:-1;return a(e.named?.count)?e.named.count:a(e.named?.n)?e.named.n:t}(e),r=g(t)&&E(e.pluralRules?.[t])?e.pluralRules[t]:tt,o=r===tt?void 0:tt,l=e.list||[],s=e.named||u();a(e.pluralIndex)&&(s.count||=e.pluralIndex,s.n||=e.pluralIndex);function c(t,n){const r=E(e.messages)?e.messages(t,!!n):!!d(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Je)}const f=E(e.processor?.normalize)?e.processor.normalize:qe,m=E(e.processor?.interpolate)?e.processor.interpolate:et,p={list:e=>l[e],named:e=>s[e],plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?d(r)?(l=r.modifier||l,o=r.type||o):g(r)&&(l=r||l):2===n.length&&(g(r)&&(l=r||l),g(a)&&(o=a||o));const s=c(t,!0)(p),i=""===s||void 0===s?t:s,u="vnode"===o&&_(i)&&l?i[0]:i;return l?(f=l,e.modifiers?e.modifiers[f]:Ze)(u,o):u;var f},message:c,type:g(e.processor?.type)?e.processor.type:Qe,interpolate:m,normalize:f,values:i(u(),l,s)};return p}const rt=()=>"",at=e=>E(e);function ot(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:i,localeFallbacker:c}=e,f=c(e,r,n);let m,_=u(),E=null;for(let p=0;p<f.length&&(m=f[p],_=l[m]||u(),null===(E=i(_,t))&&(E=_[t]),!(g(E)||W(E)||at(E)));p++)if(!Ge(m,f)){const n=We(e,t,m,0,"translate");n!==t&&(E=n)}return[E,m,_]}function lt(e,t,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:i}=e;if(at(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==s){const e=()=>a;return e.locale=r,e.key=t,e}const c=s(a,function(e,t,r,a,o,l){return{locale:t,key:r,warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>n(t,r,e)}}(0,r,o,0,i,l));return c.locale=r,c.key=t,c.source=a,c}function st(...e){const[t,n,r]=e,o=u();if(!(g(t)||a(t)||at(t)||W(t)))throw Error(le.INVALID_ARGUMENT);const l=a(t)?String(t):(at(t),t);return a(n)?o.plural=n:g(n)?o.default=n:O(n)&&!s(n)?o.named=n:_(n)&&(o.list=n),a(r)?o.plural=r:g(r)?o.default=r:O(r)&&i(o,r),[l,o]}return Me(ne),ye(Ce),Fe(fe),e.AST_NODE_PROPS_KEYS=Z,e.CORE_ERROR_CODES_EXTEND_POINT=24,e.CORE_WARN_CODES_EXTEND_POINT=10,e.CompileErrorCodes=w,e.CoreErrorCodes=le,e.CoreWarnCodes=be,e.DATETIME_FORMAT_OPTIONS_KEYS=Be,e.DEFAULT_LOCALE=Ie,e.DEFAULT_MESSAGE_DATA_TYPE=Qe,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=Xe,e.VERSION=Le,e.clearCompileCache=function(){te=u()},e.clearDateTimeFormat=function(e,t,n){Ke(e.__datetimeFormatters,t,n)},e.clearNumberFormat=function(e,t,n){Ke(e.__numberFormatters,t,n)},e.compile=ne,e.createCompileError=v,e.createCoreContext=function(e={}){const t=E(e.onWarn)?e.onWarn:C,n=g(e.version)?e.version:Le,r=g(e.locale)||E(e.locale)?e.locale:Ie,a=E(r)?Ie:r,o=_(e.fallbackLocale)||O(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=O(e.messages)?e.messages:ve(a),c=O(e.datetimeFormats)?e.datetimeFormats:ve(a),f=O(e.numberFormats)?e.numberFormats:ve(a),m=i(u(),e.modifiers,{upper:(e,t)=>"text"===t&&g(e)?e.toUpperCase():"vnode"===t&&d(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&g(e)?e.toLowerCase():"vnode"===t&&d(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&g(e)?ke(e):"vnode"===t&&d(e)&&"__v_isVNode"in e?ke(e.children):e}),N=e.pluralRules||u(),T=E(e.missing)?e.missing:null,A=!p(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,b=!p(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,L=!!e.unresolving,I=E(e.postTranslation)?e.postTranslation:null,k=O(e.processor)?e.processor:null,D=!p(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,S=E(e.messageCompiler)?e.messageCompiler:De,M=E(e.messageResolver)?e.messageResolver:Re||Oe,y=E(e.localeFallbacker)?e.localeFallbacker:Se||ue,F=d(e.fallbackContext)?e.fallbackContext:void 0,P=e,U=d(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,w=d(P.__numberFormatters)?P.__numberFormatters:new Map,v=d(P.__meta)?P.__meta:{};we++;const W={version:n,cid:we,locale:r,fallbackLocale:o,messages:s,modifiers:m,pluralRules:N,missing:T,missingWarn:A,fallbackWarn:b,fallbackFormat:h,unresolving:L,postTranslation:I,processor:k,warnHtmlMessage:D,escapeParameter:R,messageCompiler:S,messageResolver:M,localeFallbacker:y,fallbackContext:F,onWarn:t,__meta:v};return W.datetimeFormats=c,W.numberFormats=f,W.__datetimeFormatters=U,W.__numberFormatters=w,W},e.createCoreError=function(e){return v(e,null,void 0)},e.createMessageContext=nt,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:l}=e,{__datetimeFormatters:s}=e;if(!g(t[0])&&!o(t[0])&&!a(t[0]))return"";const[c,u,f,m]=He(...t),_=(p(f.missingWarn)?f.missingWarn:e.missingWarn,p(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,!!f.part),E=se(e,f);if(!g(c)||""===c){const e=new Intl.DateTimeFormat(E.replace(/!/g,""),m);return _?e.formatToParts(u):e.format(u)}const d=$e(e,c,E,n,0,0,"datetime format");if(!g(d))return r?-1:c;const N=n[d][c],T=je(d,c,m);let A=s.get(T);return A||(A=new Intl.DateTimeFormat(d,i({},N,m)),s.set(T,A)),_?A.formatToParts(u):A.format(u)},e.fallbackWithLocaleChain=fe,e.fallbackWithSimple=ue,e.getAdditionalMeta=()=>Pe,e.getDevToolsHook=function(){return re},e.getFallbackContext=()=>Ue,e.getLocale=se,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&d(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(he[e],...n)},e.handleMissing=We,e.initI18nDevTools=function(e,t,n){re&&re.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isAlmostSameLocale=Ve,e.isImplicitFallback=Ge,e.isMessageAST=W,e.isMessageFunction=at,e.isTranslateFallbackWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.isTranslateMissingWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.number=function(e,...t){const{numberFormats:n,unresolving:r,onWarn:o}=e,{__numberFormatters:l}=e;if(!a(t[0]))return"";const[s,c,u,f]=ze(...t),m=(p(u.missingWarn)?u.missingWarn:e.missingWarn,p(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),_=se(e,u);if(!g(s)||""===s){const e=new Intl.NumberFormat(_.replace(/!/g,""),f);return m?e.formatToParts(c):e.format(c)}const E=$e(e,s,_,n,0,0,"number format");if(!g(E))return r?-1:s;const d=n[E][s],N=je(E,s,f);let T=l.get(N);return T||(T=new Intl.NumberFormat(E,i({},d,f)),l.set(N,T)),m?T.formatToParts(c):T.format(c)},e.parse=Te,e.parseDateTimeArgs=He,e.parseNumberArgs=ze,e.parseTranslateArgs=st,e.registerLocaleFallbacker=Fe,e.registerMessageCompiler=Me,e.registerMessageResolver=ye,e.resolveLocale=ce,e.resolveValue=Ce,e.resolveWithKeyValue=Oe,e.setAdditionalMeta=e=>{Pe=e},e.setDevToolsHook=function(e){re=e},e.setFallbackContext=e=>{Ue=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:l,fallbackLocale:s,messages:i}=e,[c,f]=st(...t),m=p(f.missingWarn)?f.missingWarn:e.missingWarn,N=p(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,T=p(f.escapeParameter)?f.escapeParameter:e.escapeParameter,A=!!f.resolvedMessage,O=g(f.default)||p(f.default)?p(f.default)?l?c:()=>c:f.default:n?l?c:()=>c:null,C=n||null!=O&&(g(O)||E(O)),h=se(e,f);T&&function(e){_(e.list)?e.list=e.list.map((e=>g(e)?b(e):e)):d(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=b(e.named[t]))}))}(f);let[L,I,k]=A?[c,h,i[h]||u()]:ot(e,c,h,s,N,m),D=L,R=c;if(A||g(D)||W(D)||at(D)||C&&(D=O,R=D),!(A||(g(D)||W(D)||at(D))&&g(I)))return o?-1:c;let F=!1;const w=at(D)?D:lt(e,c,I,D,R,(()=>{F=!0}));if(F)return D;const v=function(e,t,n,r){const{modifiers:o,pluralRules:l,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:f}=e,m=(r,a)=>{let o=s(n,r);if(null==o&&(f||a)){const[n,,a]=ot(f||e,r,t,i,c,u);o=n??s(a,r)}if(g(o)||W(o)){let n=!1;const a=lt(e,r,t,o,r,(()=>{n=!0}));return n?rt:a}return at(o)?o:rt},_={locale:t,modifiers:o,pluralRules:l,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);a(r.plural)&&(_.pluralIndex=r.plural);return _}(e,I,k,f),x=function(e,t,n){const r=t(n);return r}(0,w,nt(v));let V=r?r(x,c):x;var G;return T&&g(V)&&(G=(G=(G=V).replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,((e,t,n)=>`${t}="${U(t,n)}"`))).replace(/([\w:-]+)\s*=\s*'([^']*)'/g,((e,t,n)=>`${t}='${U(t,n)}'`)),S.test(G)&&(G=G.replace(M,"$1&#111;n$2")),V=G.replace(y,((e,t,n,r)=>P(r)?`${t}${n}about:blank`:e))),V},e.translateDevTools=ae,e.updateFallbackLocale=function(e,t,n){xe(e,n),e.fallbackContext&&xe(e.fallbackContext,n),e.localeFallbacker(e,n,t)},e}({});
6
+ var IntlifyCore=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=(e,t,n)=>r({l:e,k:t,s:n}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),a=e=>"number"==typeof e&&isFinite(e),o=e=>"[object Date]"===O(e),l=e=>"[object RegExp]"===O(e),s=e=>C(e)&&0===Object.keys(e).length,c=Object.assign,i=Object.create,u=(e=null)=>i(e),f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}function _(e,t){const n=e[t];return m(e,t)?n:void 0}const E=Array.isArray,g=e=>"function"==typeof e,p=e=>"string"==typeof e,d=e=>"boolean"==typeof e,N=e=>null!==e&&"object"==typeof e,T=e=>N(e)&&g(e.then)&&g(e.catch),A=Object.prototype.toString,O=e=>A.call(e),C=e=>"[object Object]"===O(e);function b(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function h(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}const L=/^javascript:/i,I=/^(?:href|src|action|formaction)$/i,R=/&#(?:x([0-9a-f]+)|(\d+));?/gi,k=/&(?:Tab|NewLine);/g,D=/&colon;?/gi,M=/[\u0000-\u0020\u007f-\u009f]/g,S=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,y=/(^|[\s"'<>/])on(\w+\s*=)/gi,F=/(?:^|[\s"'<>/])srcdoc\s*=/i,P=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,U=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function w(e,t,n){const r=t||n;if(!r)return e;const a=Number.parseInt(r,t?16:10);return a<=127?String.fromCharCode(a):e}function v(e){const t=e.replace(R,w).replace(k,"").replace(D,":").replace(M,"");return L.test(t)}function W(e,t){if(I.test(e)&&v(t))return"about:blank";const n="style"===e.toLowerCase()?function(e){const t=/url\s*\(/gi;let n,r="",a=0;for(;null!==(n=t.exec(e));){const o=n.index,l=t.lastIndex-1;let s=l+1,c=1,i=null;for(;s<e.length;s++){const t=e[s];if(i)t===i&&(i=null);else if('"'===t||"'"===t)i=t;else if("("===t)c++;else if(")"===t&&(c--,0===c))break}if(0!==c)break;const u=e.slice(l+1,s).trim(),f=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;r+=e.slice(a,o),r+=v(f)?"url(about:blank)":e.slice(o,s+1),a=s+1}return r+e.slice(a)}(t):t;return function(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(n)}const x={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,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function V(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}function G(e){return N(e)&&0===H(e)&&(m(e,"b")||m(e,"body"))}const $=["b","body"];const j=["c","cases"];const K=["s","static"];const Y=["i","items"];const B=["t","type"];function H(e){return Q(e,B)}const X=["v","value"];function z(e,t){const n=Q(e,X);if(null!=n)return n;throw ee(t)}const Z=["m","modifier"];const J=["k","key"];function Q(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(m(e,n)&&null!=e[n])return e[n]}return n}const q=[...$,...j,...K,...Y,...J,...Z,...X,...B];function ee(e){return new Error(`unhandled node type: ${e}`)}function te(e){return t=>function(e,t){const n=(r=t,Q(r,$));var r;if(null==n)throw ee(0);if(1===H(n)){const t=function(e){return Q(e,j,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,ne(e,n)]),[]))}return ne(e,n)}(t,e)}function ne(e,t){const n=function(e){return Q(e,K)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return Q(e,Y,[])}(t).reduce(((t,n)=>[...t,re(e,n)]),[]);return e.normalize(n)}}function re(e,t){const n=H(t);switch(n){case 3:case 9:case 7:case 8:return z(t,n);case 4:{const r=t;if(m(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(m(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw ee(n)}case 5:{const r=t;if(m(r,"i")&&a(r.i))return e.interpolate(e.list(r.i));if(m(r,"index")&&a(r.index))return e.interpolate(e.list(r.index));throw ee(n)}case 6:{const n=t,r=function(e){return Q(e,Z)}(n),a=function(e){const t=Q(e,J);if(t)return t;throw ee(6)}(n);return e.linked(re(e,a),r?re(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}let ae=u();function oe(e,t){{if(!G(e))return()=>e;const t=e.cacheKey;if(t){const n=ae[t];return n||(ae[t]=te(e))}return te(e)}}let le=null;const se=ce("function:translate");function ce(e){return t=>le&&le.emit(e,t)}const ie={INVALID_ARGUMENT: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};function ue(e,t){return null!=t.locale?me(t.locale):me(e.locale)}let fe;function me(e){if(p(e))return e;if(g(e)){if(e.resolvedOnce&&null!=fe)return fe;if("Function"===e.constructor.name){const t=e();if(T(t))throw Error(ie.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return fe=t}throw Error(ie.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(ie.NOT_SUPPORT_LOCALE_TYPE)}function _e(e,t,n){return[...new Set([n,...E(t)?t:N(t)?Object.keys(t).filter((e=>"default"!==e)):p(t)?[t]:[n]])]}function Ee(e,t,n){const r=p(n)?n:De,a=e;let o;N(t)?(a.__localeChainObjectCache||(a.__localeChainObjectCache=new WeakMap),o=a.__localeChainObjectCache.get(t),o||(o=new Map,a.__localeChainObjectCache.set(t,o))):(a.__localeChainCache||(a.__localeChainCache=new Map),o=a.__localeChainCache.get(t),o||(o=new Map,a.__localeChainCache.set(t,o)));const l=o.get(r);if(l)return l;const s=[];let c=[n];for(;E(c);)c=ge(s,c,t);const i=E(t)||!C(t)?t:t.default?t.default:null;return c=p(i)?[i]:i,E(c)&&ge(s,c,!1),o.set(r,s),s}function ge(e,t,n){let r=!0;for(let a=0;a<t.length&&d(r);a++){const o=t[a];p(o)&&(r=pe(e,t[a],n))}return r}function pe(e,t,n){let r;const a=t.split("-");do{r=de(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function de(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(E(n)||C(n))&&n[a]&&(r=n[a])}return r}ie.INVALID_ARGUMENT,ie.INVALID_DATE_ARGUMENT,ie.INVALID_ISO_DATE_ARGUMENT,ie.NOT_SUPPORT_NON_STRING_MESSAGE,ie.NOT_SUPPORT_LOCALE_PROMISE_VALUE,ie.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,ie.NOT_SUPPORT_LOCALE_TYPE;const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Te=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ae(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Oe(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Te.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function Ce(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=Oe(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=Ae(n),c=Ne[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const be=new Map;function he(e,t){return N(e)?_(e,t):null}function Le(e,t){if(!N(e))return null;let n=be.get(t);if(n||(n=Ce(t),n&&be.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=n[o];if(q.includes(e)&&G(a))return null;if(!N(a))return null;if(!m(a,e))return null;const t=a[e];if(void 0===t)return null;if(g(a))return null;a=t,o++}return a}const Ie={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,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},Re={[Ie.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale {resource}.",[Ie.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ie.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ie.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ie.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ie.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ie.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.",[Ie.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[Ie.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};const ke="11.4.15",De="en-US",Me=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Se,ye,Fe;function Pe(e){Se=e}function Ue(e){ye=e}function we(e){Fe=e}let ve=null;let We=null;let xe=0;const Ve=e=>({[e]:u()});function Ge(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return p(r)?r:t}return t}function $e(e,t){const n=e;N(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function je(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function Ke(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(je(e,t[r]))return!0;return!1}function Ye(e,t,n,r,a,o,l){const{fallbackLocale:s,localeFallbacker:c,onWarn:i}=e,u=c(e,s,n);for(let f=0;f<u.length;f++){const n=u[f],a=_(_(r,n)||{},t);if(C(a)&&p(n))return n;Ge(e,t,n,0,l)}return null}function Be(e,t,n){let r=`${e}__${t}`;return C(n)&&!s(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function He(e,t,n){for(const r in n){const n=`${t}__${r}`;for(const t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function Xe(e,t,n,r){const[,a,o,l]=e;let s=n;return p(a)?t.key=a:C(a)&&Object.keys(a).forEach((e=>{r.includes(e)?s[e]=a[e]:t[e]=a[e]})),p(o)?t.locale=o:C(o)&&(s=o),C(l)&&(s=l),s}const ze=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ze(...e){const[t]=e,n=u(),r=u();let l;if(p(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ie.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();l=new Date(n);try{l.toISOString()}catch{throw Error(ie.INVALID_ISO_DATE_ARGUMENT)}}else if(o(t)){if(isNaN(t.getTime()))throw Error(ie.INVALID_DATE_ARGUMENT);l=t}else{if(!a(t))throw Error(ie.INVALID_ARGUMENT);l=t}const s=Xe(e,n,r,ze);return[n.key||"",l,n,s]}const Je=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Qe(...e){const[t]=e,n=u(),r=u();if(!a(t))throw Error(ie.INVALID_ARGUMENT);const o=t,l=Xe(e,n,r,Je);return[n.key||"",o,n,l]}const qe=e=>e,et=e=>"",tt="text",nt=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}(e),rt=e=>null==e?"":E(e)||C(e)&&e.toString===A?JSON.stringify(e,null,2):String(e);function at(e,t){return e=Math.abs(e),2===t?1===e?0:1:Math.min(e,2)}function ot(e={}){const t=e.locale,n=function(e){const t=a(e.pluralIndex)?e.pluralIndex:-1;return a(e.named?.count)?e.named.count:a(e.named?.n)?e.named.n:t}(e),r=p(t)&&e.pluralRules&&g(_(e.pluralRules,t))?e.pluralRules[t]:at,o=r===at?void 0:at,l=e.list||[],s=e.named||u(),i=a(e.pluralIndex),f=t=>{const n=function(e){return m(Object.prototype,e)}(t)?_(s,t):s[t];return!i||n||"count"!==t&&"n"!==t?n:e.pluralIndex};function d(t,n){const r=g(e.messages)?e.messages(t,!!n):!!N(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):et)}const T=g(e.processor?.normalize)?e.processor.normalize:nt,A=g(e.processor?.interpolate)?e.processor.interpolate:rt,O={list:e=>l[e],named:f,plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?N(r)?(l=r.modifier||l,o=r.type||o):p(r)&&(l=r||l):2===n.length&&(p(r)&&(l=r||l),p(a)&&(o=a||o));const s=d(t,!0)(O),c=""===s||void 0===s?t:s,i="vnode"===o&&E(c)&&l?c[0]:c;if(!l)return i;const u=(f=l,e.modifiers?_(e.modifiers,f):qe);var f;return g(u)?u(i,o):i},message:d,type:p(e.processor?.type)?e.processor.type:tt,interpolate:A,normalize:T,values:c(u(),l,s,i?{count:f("count"),n:f("n")}:{})};return O}const lt=()=>"",st=e=>g(e),ct=e=>p(e)||G(e)||st(e);function it(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,f=i(e,r,n);let m,E=u(),g=null;for(let p=0;p<f.length&&(m=f[p],E=_(l,m)||u(),null===(g=c(E,t))&&(g=_(E,t)),!ct(g));p++)if(!Ke(m,f)){const n=Ge(e,t,m,0,"translate");n!==t&&(g=n)}return[g,m,E]}function ut(e,t,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(st(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==s){const e=()=>a;return e.locale=r,e.key=t,e}const i=s(a,function(e,t,r,a,o,l){return{locale:t,key:r,warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>n(t,r,e)}}(0,r,o,0,c,l));return i.locale=r,i.key=t,i.source=a,i}function ft(...e){const[t,n,r]=e,o=u();if(!(p(t)||a(t)||st(t)||G(t)))throw Error(ie.INVALID_ARGUMENT);const l=a(t)?String(t):(st(t),t);return a(n)?o.plural=n:p(n)?o.default=n:C(n)&&!s(n)?o.named=n:E(n)&&(o.list=n),a(r)?o.plural=r:p(r)?o.default=r:C(r)&&c(o,r),[l,o]}return Pe(oe),Ue(Le),we(Ee),e.AST_NODE_PROPS_KEYS=q,e.CORE_ERROR_CODES_EXTEND_POINT=24,e.CORE_WARN_CODES_EXTEND_POINT=10,e.CompileErrorCodes=x,e.CoreErrorCodes=ie,e.CoreWarnCodes=Ie,e.DATETIME_FORMAT_OPTIONS_KEYS=ze,e.DEFAULT_LOCALE=De,e.DEFAULT_MESSAGE_DATA_TYPE=tt,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=Je,e.VERSION=ke,e.clearCompileCache=function(){ae=u()},e.clearDateTimeFormat=function(e,t,n){He(e.__datetimeFormatters,t,n)},e.clearNumberFormat=function(e,t,n){He(e.__numberFormatters,t,n)},e.compile=oe,e.createCompileError=V,e.createCoreContext=function(e={}){const t=g(e.onWarn)?e.onWarn:b,n=p(e.version)?e.version:ke,r=p(e.locale)||g(e.locale)?e.locale:De,a=g(r)?De:r,o=E(e.fallbackLocale)||C(e.fallbackLocale)||p(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=C(e.messages)?e.messages:Ve(a),i=C(e.datetimeFormats)?e.datetimeFormats:Ve(a),f=C(e.numberFormats)?e.numberFormats:Ve(a),m=c(u(),e.modifiers,{upper:(e,t)=>"text"===t&&p(e)?e.toUpperCase():"vnode"===t&&N(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&p(e)?e.toLowerCase():"vnode"===t&&N(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&p(e)?Me(e):"vnode"===t&&N(e)&&"__v_isVNode"in e?Me(e.children):e}),_=e.pluralRules||u(),T=g(e.missing)?e.missing:null,A=!d(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,O=!d(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,L=!!e.unresolving,I=g(e.postTranslation)?e.postTranslation:null,R=C(e.processor)?e.processor:null,k=!d(e.warnHtmlMessage)||e.warnHtmlMessage,D=!!e.escapeParameter,M=g(e.messageCompiler)?e.messageCompiler:Se,S=g(e.messageResolver)?e.messageResolver:ye||he,y=g(e.localeFallbacker)?e.localeFallbacker:Fe||_e,F=N(e.fallbackContext)?e.fallbackContext:void 0,P=e,U=N(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,w=N(P.__numberFormatters)?P.__numberFormatters:new Map,v=N(P.__meta)?P.__meta:{};xe++;const W={version:n,cid:xe,locale:r,fallbackLocale:o,messages:s,modifiers:m,pluralRules:_,missing:T,missingWarn:A,fallbackWarn:O,fallbackFormat:h,unresolving:L,postTranslation:I,processor:R,warnHtmlMessage:k,escapeParameter:D,messageCompiler:M,messageResolver:S,localeFallbacker:y,fallbackContext:F,onWarn:t,__meta:v};return W.datetimeFormats=i,W.numberFormats=f,W.__datetimeFormatters=U,W.__numberFormatters=w,W},e.createCoreError=function(e){return V(e,null,void 0)},e.createMessageContext=ot,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:l}=e,{__datetimeFormatters:s}=e;if(!p(t[0])&&!o(t[0])&&!a(t[0]))return"";const[i,u,f,m]=Ze(...t),_=(d(f.missingWarn)?f.missingWarn:e.missingWarn,d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,!!f.part),E=ue(e,f);if(!p(i)||""===i){const e=new Intl.DateTimeFormat(E.replace(/!/g,""),m);return _?e.formatToParts(u):e.format(u)}const g=Ye(e,i,E,n,0,0,"datetime format");if(!p(g))return r?-1:i;const N=n[g][i],T=Be(g,i,m);let A=s.get(T);return A||(A=new Intl.DateTimeFormat(g,c({},N,m)),s.set(T,A)),_?A.formatToParts(u):A.format(u)},e.fallbackWithLocaleChain=Ee,e.fallbackWithSimple=_e,e.getAdditionalMeta=()=>ve,e.getDevToolsHook=function(){return le},e.getFallbackContext=()=>We,e.getLocale=ue,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&N(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(Re[e],...n)},e.handleMissing=Ge,e.initI18nDevTools=function(e,t,n){le&&le.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isAlmostSameLocale=je,e.isImplicitFallback=Ke,e.isMessageAST=G,e.isMessageFormat=ct,e.isMessageFunction=st,e.isTranslateFallbackWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.isTranslateMissingWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.number=function(e,...t){const{numberFormats:n,unresolving:r,onWarn:o}=e,{__numberFormatters:l}=e;if(!a(t[0]))return"";const[s,i,u,f]=Qe(...t),m=(d(u.missingWarn)?u.missingWarn:e.missingWarn,d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),_=ue(e,u);if(!p(s)||""===s){const e=new Intl.NumberFormat(_.replace(/!/g,""),f);return m?e.formatToParts(i):e.format(i)}const E=Ye(e,s,_,n,0,0,"number format");if(!p(E))return r?-1:s;const g=n[E][s],N=Be(E,s,f);let T=l.get(N);return T||(T=new Intl.NumberFormat(E,c({},g,f)),l.set(N,T)),m?T.formatToParts(i):T.format(i)},e.parse=Ce,e.parseDateTimeArgs=Ze,e.parseNumberArgs=Qe,e.parseTranslateArgs=ft,e.registerLocaleFallbacker=we,e.registerMessageCompiler=Pe,e.registerMessageResolver=Ue,e.resolveLocale=me,e.resolveValue=Le,e.resolveWithKeyValue=he,e.setAdditionalMeta=e=>{ve=e},e.setDevToolsHook=function(e){le=e},e.setFallbackContext=e=>{We=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:l,fallbackLocale:s,messages:c}=e,[i,f]=ft(...t),m=d(f.missingWarn)?f.missingWarn:e.missingWarn,T=d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,A=d(f.escapeParameter)?f.escapeParameter:e.escapeParameter,O=!!f.resolvedMessage,C=p(f.default)||d(f.default)?d(f.default)?l?i:()=>i:f.default:n?l?i:()=>i:null,b=n||null!=C&&(p(C)||g(C)),L=ue(e,f);A&&function(e){E(e.list)&&(e.list=e.list.map((e=>p(e)?h(e):e)));if(N(e.named)){const t=e.named,n=u();for(const e of Object.keys(t)){const r=t[e];n[e]=p(r)?h(r):r}e.named=n}}(f);let[I,R,k]=O?[i,L,_(c,L)||u()]:it(e,i,L,s,T,m),D=I,M=i;if(O||ct(D)||b&&(D=C,M=D),!(O||ct(D)&&p(R)))return o?-1:i;let w=!1;const x=st(D)?D:ut(e,i,R,D,M,(()=>{w=!0}));if(w)return D;const V=function(e,t,n,r){const{modifiers:o,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=(r,a)=>{let o=s(n,r);if(null==o&&(f||a)){const[n,,a]=it(f||e,r,t,c,i,u);o=n??s(a,r)}if(p(o)||G(o)){let n=!1;const a=ut(e,r,t,o,r,(()=>{n=!0}));return n?lt:a}return st(o)?o:lt},_={locale:t,modifiers:o,pluralRules:l,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);a(r.plural)&&(_.pluralIndex=r.plural);return _}(e,R,k,f),$=function(e,t,n){const r=t(n);return r}(0,x,ot(V));let j=r?r($,i):$;var K;return A&&p(j)&&(K=(K=(K=j).replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,((e,t,n)=>`${t}="${W(t,n)}"`))).replace(/([\w:-]+)\s*=\s*'([^']*)'/g,((e,t,n)=>`${t}='${W(t,n)}'`)),S.test(K)&&(K=K.replace(y,"$1&#111;n$2")),F.test(K)&&(K=K.replace(P,"$1&#115;$2")),j=K.replace(U,((e,t,n,r)=>v(r)?`${t}${n}about:blank`:e))),j},e.translateDevTools=se,e.updateFallbackLocale=function(e,t,n){$e(e,n),e.fallbackContext&&$e(e.fallbackContext,n),e.localeFallbacker(e,n,t)},e}({});
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * core v11.4.13
2
+ * core v11.4.15
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * core v11.4.13
2
+ * core v11.4.15
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlify/core",
3
- "version": "11.4.13",
3
+ "version": "11.4.15",
4
4
  "description": "@intlify/core",
5
5
  "keywords": [
6
6
  "core",
@@ -33,8 +33,8 @@
33
33
  "jsdelivr": "dist/core.global.js",
34
34
  "types": "dist/core.d.ts",
35
35
  "dependencies": {
36
- "@intlify/core-base": "11.4.13",
37
- "@intlify/shared": "11.4.13"
36
+ "@intlify/core-base": "11.4.15",
37
+ "@intlify/shared": "11.4.15"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">= 22"