@intlify/core-base
Advanced tools
Comparing version 9.1.2 to 9.1.3
/*! | ||
* @intlify/core-base v9.1.2 | ||
* @intlify/core-base v9.1.3 | ||
* (c) 2021 kazuya kawaguchi | ||
@@ -54,3 +54,3 @@ * Released under the MIT License. | ||
*/ | ||
const VERSION = '9.1.2'; | ||
const VERSION = '9.1.3'; | ||
const NOT_REOSLVED = -1; | ||
@@ -72,2 +72,8 @@ const MISSING_RESOLVE_VALUE = ''; | ||
} | ||
// Additional Meta for Intlify DevTools | ||
let _additionalMeta = null; | ||
const setAdditionalMeta = /* #__PURE__*/ (meta) => { | ||
_additionalMeta = meta; | ||
}; | ||
const getAdditionalMeta = /* #__PURE__*/ () => _additionalMeta; | ||
// ID for CoreContext | ||
@@ -77,2 +83,3 @@ let _cid = 0; | ||
// setup options | ||
const version = shared.isString(options.version) ? options.version : VERSION; | ||
const locale = shared.isString(options.locale) ? options.locale : 'en-US'; | ||
@@ -125,5 +132,6 @@ const fallbackLocale = shared.isArray(options.fallbackLocale) || | ||
: new Map(); | ||
const { __meta } = internalOptions; | ||
const __meta = shared.isObject(internalOptions.__meta) ? internalOptions.__meta : {}; | ||
_cid++; | ||
const context = { | ||
version, | ||
cid: _cid, | ||
@@ -161,3 +169,3 @@ locale, | ||
{ | ||
initI18nDevTools(context, VERSION, __meta); | ||
initI18nDevTools(context, version, __meta); | ||
} | ||
@@ -411,16 +419,21 @@ return context; | ||
{ | ||
// prettier-ignore | ||
const payloads = { | ||
timestamp: Date.now(), | ||
key: !isMessageFunction(format) && shared.isString(key) | ||
key: shared.isString(key) | ||
? key | ||
: format.key, | ||
locale: targetLocale, | ||
format: !isMessageFunction(format) && shared.isString(format) | ||
: isMessageFunction(format) | ||
? format.key | ||
: '', | ||
locale: targetLocale || (isMessageFunction(format) | ||
? format.locale | ||
: ''), | ||
format: shared.isString(format) | ||
? format | ||
: format.source, | ||
: isMessageFunction(format) | ||
? format.source | ||
: '', | ||
message: ret | ||
}; | ||
if (context.__meta) { | ||
payloads.meta = context.__meta; | ||
} | ||
payloads.meta = Object.assign({}, context.__meta, getAdditionalMeta() || {}); | ||
translateDevTools(payloads); | ||
@@ -957,2 +970,3 @@ } | ||
exports.datetime = datetime; | ||
exports.getAdditionalMeta = getAdditionalMeta; | ||
exports.getDevToolsHook = getDevToolsHook; | ||
@@ -971,2 +985,3 @@ exports.getLocaleChain = getLocaleChain; | ||
exports.registerMessageCompiler = registerMessageCompiler; | ||
exports.setAdditionalMeta = setAdditionalMeta; | ||
exports.setDevToolsHook = setDevToolsHook; | ||
@@ -973,0 +988,0 @@ exports.translate = translate; |
/*! | ||
* @intlify/core-base v9.1.2 | ||
* @intlify/core-base v9.1.3 | ||
* (c) 2021 kazuya kawaguchi | ||
@@ -54,3 +54,3 @@ * Released under the MIT License. | ||
*/ | ||
const VERSION = '9.1.2'; | ||
const VERSION = '9.1.3'; | ||
const NOT_REOSLVED = -1; | ||
@@ -72,2 +72,8 @@ const MISSING_RESOLVE_VALUE = ''; | ||
} | ||
// Additional Meta for Intlify DevTools | ||
let _additionalMeta = null; | ||
const setAdditionalMeta = /* #__PURE__*/ (meta) => { | ||
_additionalMeta = meta; | ||
}; | ||
const getAdditionalMeta = /* #__PURE__*/ () => _additionalMeta; | ||
// ID for CoreContext | ||
@@ -77,2 +83,3 @@ let _cid = 0; | ||
// setup options | ||
const version = shared.isString(options.version) ? options.version : VERSION; | ||
const locale = shared.isString(options.locale) ? options.locale : 'en-US'; | ||
@@ -125,5 +132,6 @@ const fallbackLocale = shared.isArray(options.fallbackLocale) || | ||
: new Map(); | ||
const { __meta } = internalOptions; | ||
const __meta = shared.isObject(internalOptions.__meta) ? internalOptions.__meta : {}; | ||
_cid++; | ||
const context = { | ||
version, | ||
cid: _cid, | ||
@@ -706,2 +714,3 @@ locale, | ||
exports.datetime = datetime; | ||
exports.getAdditionalMeta = getAdditionalMeta; | ||
exports.getDevToolsHook = getDevToolsHook; | ||
@@ -720,2 +729,3 @@ exports.getLocaleChain = getLocaleChain; | ||
exports.registerMessageCompiler = registerMessageCompiler; | ||
exports.setAdditionalMeta = setAdditionalMeta; | ||
exports.setDevToolsHook = setDevToolsHook; | ||
@@ -722,0 +732,0 @@ exports.translate = translate; |
@@ -32,2 +32,3 @@ import { CompileError } from '@intlify/message-compiler'; | ||
cid: number; | ||
version: string; | ||
locale: Locale; | ||
@@ -66,3 +67,3 @@ fallbackLocale: FallbackLocale; | ||
__v_emitter?: VueDevToolsEmitter; | ||
__meta?: MetaInfo; | ||
__meta: MetaInfo; | ||
} | ||
@@ -84,2 +85,3 @@ | ||
export declare interface CoreOptions<Message = string> { | ||
version?: string; | ||
locale?: Locale; | ||
@@ -255,2 +257,4 @@ fallbackLocale?: FallbackLocale; | ||
export declare const getAdditionalMeta: () => MetaInfo | null; | ||
export declare function getDevToolsHook(): IntlifyDevToolsEmitter | null; | ||
@@ -408,2 +412,4 @@ | ||
export declare const setAdditionalMeta: (meta: MetaInfo | null) => void; | ||
export declare function setDevToolsHook(hook: IntlifyDevToolsEmitter | null): void; | ||
@@ -410,0 +416,0 @@ |
/*! | ||
* @intlify/core-base v9.1.2 | ||
* @intlify/core-base v9.1.3 | ||
* (c) 2021 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
const e=/\{([0-9a-zA-Z]+)\}/g;const t=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),n=e=>"number"==typeof e&&isFinite(e),r=e=>"[object RegExp]"===k(e),o=e=>g(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function a(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const u=Object.prototype.hasOwnProperty;function l(e,t){return u.call(e,t)}const i=Array.isArray,f=e=>"function"==typeof e,p=e=>"string"==typeof e,m=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),g=e=>"[object Object]"===k(e),b=[];b[0]={w:[0],i:[3,0],"[":[4],o:[7]},b[1]={w:[1],".":[2],"[":[4],o:[7]},b[2]={w:[2],i:[3,0],0:[3,0]},b[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},b[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},b[5]={"'":[4,0],o:8,l:[5,0]},b[6]={'"':[4,0],o:8,l:[6,0]};const y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function x(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 w(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(y.test(t)?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)}function C(e){const t=[];let n,r,o,c,s,a,u,l=-1,i=0,f=0;const p=[];function m(){const t=e[l+1];if(5===i&&"'"===t||6===i&&'"'===t)return l++,o="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),f++},p[3]=()=>{if(f>0)f--,i=4,p[0]();else{if(f=0,void 0===r)return!1;if(r=w(r),!1===r)return!1;p[1]()}};null!==i;)if(l++,n=e[l],"\\"!==n||!m()){if(c=x(n),u=b[i],s=u[c]||u.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(a=p[s[1]],a&&(o=n,!1===a())))return;if(7===i)return t}}const L=new Map;function _(e,t){if(!d(e))return null;let n=L.get(t);if(n||(n=C(t),n&&L.set(t,n)),!n)return null;const r=n.length;let o=e,c=0;for(;c<r;){const e=o[n[c]];if(void 0===e)return null;o=e,c++}return o}function v(e){if(!d(e))return e;for(const t in e)if(l(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e;for(let e=0;e<r;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[r]]=e[t],delete e[t],d(o[n[r]])&&v(o[n[r]])}else d(e[t])&&v(e[t]);return e}const T=e=>e,P=e=>"",O="text",F=e=>0===e.length?"":e.join(""),N=e=>null==e?"":i(e)||g(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function $(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function S(e={}){const t=e.locale,r=function(e){const t=n(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(n(e.named.count)||n(e.named.n))?n(e.named.count)?e.named.count:n(e.named.n)?e.named.n:t:t}(e),o=d(e.pluralRules)&&p(t)&&f(e.pluralRules[t])?e.pluralRules[t]:$,c=d(e.pluralRules)&&p(t)&&f(e.pluralRules[t])?$:void 0,s=e.list||[],a=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,a);function u(t){const n=f(e.messages)?e.messages(t):!!d(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):P)}const l=g(e.processor)&&f(e.processor.normalize)?e.processor.normalize:F,i=g(e.processor)&&f(e.processor.interpolate)?e.processor.interpolate:N,m={list:e=>s[e],named:e=>a[e],plural:e=>e[o(r,e.length,c)],linked:(t,n)=>{const r=u(t)(m);return p(n)?(o=n,e.modifiers?e.modifiers[o]:T)(r):r;var o},message:u,type:g(e.processor)&&p(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:l};return m}function I(e,t,n={}){const{domain:r}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function E(e){throw e}function j(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const A=String.fromCharCode(8232),W=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,o=1,c=0;const s=e=>"\r"===t[e]&&"\n"===t[e+1],a=e=>t[e]===W,u=e=>t[e]===A,l=e=>s(e)||(e=>"\n"===t[e])(e)||a(e)||u(e),i=e=>s(e)||a(e)||u(e)?"\n":t[e];function f(){return c=0,l(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>c,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+c),next:f,peek:function(){return s(n+c)&&c++,c++,t[n+c]},reset:function(){n=0,r=1,o=1,c=0},resetPeek:function(e=0){c=e},skipToPeek:function(){const e=n+c;for(;e!==n;)f();c=0}}}const R=void 0;function J(e,t={}){const n=!1!==t.location,r=M(e),o=()=>r.index(),c=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=c(),a=o(),u={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},l=()=>u,{onError:i}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=j(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const p=e=>f(e,14);function m(e,t){return e.currentChar()===t?(e.next(),t):(c(),"")}function d(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function h(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===R)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function g(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===R)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,r="",o=!1)=>{const c=e.currentPeek();return"{"===c?"%"!==r&&t:"@"!==c&&c?"%"===c?(e.peek(),n(t,"%",!0)):"|"===c?!("%"!==r&&!o)||!(" "===r||"\n"===r):" "===c?(e.peek(),n(!0," ",o)):"\n"!==c||(e.peek(),n(!0,"\n",o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function x(e,t){const n=e.currentChar();return n===R?R:t(n)?(e.next(),n):null}function w(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function C(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function L(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function _(e){let t="",n="";for(;t=C(e);)n+=t;return n}function v(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return T(e,t,4);case"U":return T(e,t,6);default:return c(),""}}function T(e,t,n){m(e,t);let r="";for(let t=0;t<n;t++){const t=L(e);if(!t){c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){h(e);const t=m(e,"|");return h(e),t}function O(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),h(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&h(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&c(),n=F(e,t)||p(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(b(e))return t.braceNest>0&&c(),n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return c(),t.braceNest=0,N(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){h(e);let t="",n="";for(;t=w(e);)n+=t;return e.currentChar()===R&&c(),n}(e)),h(e),n;if(o=g(e,t))return n=f(t,6,function(e){h(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${_(e)}`):t+=_(e),e.currentChar()===R&&c(),t}(e)),h(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){h(e),m(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=x(e,r);)n+="\\"===t?v(e):t;const o=e.currentChar();return"\n"===o||o===R?(c(),"\n"===o&&(e.next(),m(e,"'")),n):(m(e,"'"),n)}(e)),h(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){h(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=x(e,r);)n+=t;return n}(e)),c(),h(e),n}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==o&&" "!==o||c(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return h(e),e.next(),f(t,9,".");case":":return h(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(h(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(h(e),f(t,12,function(e){let t="",n="";for(;t=w(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(h(e),"{"===o?O(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?" "===o?r:"\n"===o?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&c(),t.braceNest=0,t.inLinked=!1,N(e,t))}}function N(e,t){let n={type:14};if(t.braceNest>0)return O(e,t)||p(t);if(t.inLinked)return F(e,t)||p(t);const r=e.currentChar();switch(r){case"{":return O(e,t)||p(t);case"}":return c(),e.next(),f(t,3,"}");case"@":return F(e,t)||p(t);default:if(b(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(y(e))return f(t,0,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"}"!==r&&"@"!==r&&r?"%"===r?y(e)?(n+=r,e.next(),t(n)):n:"|"===r?n:" "===r||"\n"===r?y(e)?(n+=r,e.next(),t(n)):b(e)?n:(n+=r,e.next(),t(n)):(n+=r,e.next(),t(n)):n};return t("")}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=u;return u.lastType=e,u.lastOffset=t,u.lastStartLoc=n,u.lastEndLoc=s,u.offset=o(),u.startLoc=c(),r.currentChar()===R?f(u,14):N(r,u)},currentOffset:o,currentPosition:c,context:l}}const z=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function D(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function H(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function c(e,t){const n=e.context(),c=r(3,n.offset,n.startLoc);return c.value=t,o(c,e.currentOffset(),e.currentPosition()),c}function a(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(5,c,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(4,c,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(9,c,s);return a.value=t.replace(z,D),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let c=e.nextToken();if(9===c.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(8,c,s);return 12!==t.type?(a.value="",o(a,c,s),{nextConsumeToken:t,node:a}):(null==t.value&&U(t),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(10!==c.type&&U(c),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 11:null==c.value&&U(c),n.key=function(e,t){const n=e.context(),c=r(7,n.offset,n.startLoc);return c.value=t,o(c,e.currentOffset(),e.currentPosition()),c}(e,c.value||"");break;case 5:null==c.value&&U(c),n.key=u(e,c.value||"");break;case 6:null==c.value&&U(c),n.key=a(e,c.value||"");break;case 7:null==c.value&&U(c),n.key=l(e,c.value||"");break;default:const t=e.context(),s=r(7,t.offset,t.startLoc);return s.value="",o(s,t.offset,t.startLoc),n.key=s,o(n,t.offset,t.startLoc),{nextConsumeToken:c,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let s=null;do{const t=s||e.nextToken();switch(s=null,t.type){case 0:null==t.value&&U(t),n.items.push(c(e,t.value||""));break;case 6:null==t.value&&U(t),n.items.push(a(e,t.value||""));break;case 5:null==t.value&&U(t),n.items.push(u(e,t.value||""));break;case 7:null==t.value&&U(t),n.items.push(l(e,t.value||""));break;case 8:const r=i(e);n.items.push(r.node),s=r.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function p(e){const t=e.context(),{offset:n,startLoc:c}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,c){const s=e.context();let a=0===c.items.length;const u=r(1,t,n);u.cases=[],u.cases.push(c);do{const t=f(e);a||(a=0===t.items.length),u.cases.push(t)}while(14!==s.currentType);return o(u,e.currentOffset(),e.currentPosition()),u}(e,n,c,s)}return{parse:function(n){const c=J(n,s({},e)),a=c.context(),u=r(0,a.offset,a.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=p(c),o(u,c.currentOffset(),c.currentPosition()),u}}}function U(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function K(e,t){for(let n=0;n<e.length;n++)q(e[n],t)}function q(e,t){switch(e.type){case 1:K(e.cases,t),t.helper("plural");break;case 2:K(e.items,t);break;case 6:q(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function Z(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&q(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function B(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?B(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(B(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(B(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),B(e,t.key),t.modifier&&(e.push(", "),B(e,t.modifier)),e.push(")")}(e,t);break;case 8:case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:case 3:e.push(JSON.stringify(t.value),t)}}function G(e,t={}){const n=s({},t),r=H(n).parse(e);return Z(r,n),((e,t={})=>{const n=p(t.mode)?t.mode:"normal",r=p(t.filename)?t.filename:"message.intl",o=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],s=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,c={source:e.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function s(e,t){c.code+=e}function a(e,t=!0){const n=t?r:"";s(o?n+" ".repeat(e):n)}return{context:()=>c,push:s,indent:function(e=!0){const t=++c.indentLevel;e&&a(t)},deindent:function(e=!0){const t=--c.indentLevel;e&&a(t)},newline:function(){a(c.indentLevel)},helper:e=>`_${e}`,needIndent:()=>c.needIndent}}(e,{mode:n,filename:r,sourceMap:!!t.sourceMap,breakLineCode:null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",needIndent:o});s.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(o),c.length>0&&(s.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),s.newline()),s.push("return "),B(s,e),s.deindent(o),s.push("}");const{code:a,map:u}=s.context();return{ast:e,code:a,map:u?u.toJSON():void 0}})(r,n)}let Q=null;function V(e){Q=e}function X(){return Q}function Y(e,t,n){Q&&Q.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ee=te("function:translate");function te(e){return t=>Q&&Q.emit(e,t)}const ne={0:"Not found '{key}' key in '{locale}' locale messages.",1:"Fall back to translate '{key}' key with '{target}' locale.",2:"Cannot format a number value due to not supported Intl.NumberFormat.",3:"Fall back to number format '{key}' key with '{target}' locale.",4:"Cannot format a date value due to not supported Intl.DateTimeFormat.",5:"Fall back to datetime format '{key}' key with '{target}' locale."};function re(t,...n){return function(t,...n){return 1===n.length&&d(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(ne[t],...n)}const oe="9.1.2",ce=-1,se="";let ae;function ue(e){ae=e}let le=0;function ie(e={}){const t=p(e.locale)?e.locale:"en-US",n=i(e.fallbackLocale)||g(e.fallbackLocale)||p(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,o=g(e.messages)?e.messages:{[t]:{}},s=g(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},a=g(e.numberFormats)?e.numberFormats:{[t]:{}},u=Object.assign({},e.modifiers||{},{upper:e=>p(e)?e.toUpperCase():e,lower:e=>p(e)?e.toLowerCase():e,capitalize:e=>p(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),l=e.pluralRules||{},h=f(e.missing)?e.missing:null,k=!m(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,b=!m(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,x=!!e.unresolving,w=f(e.postTranslation)?e.postTranslation:null,C=g(e.processor)?e.processor:null,L=!m(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter,v=f(e.messageCompiler)?e.messageCompiler:ae,T=f(e.onWarn)?e.onWarn:c,P=e,O=d(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,F=d(P.__numberFormatters)?P.__numberFormatters:new Map,{__meta:N}=P;le++;return{cid:le,locale:t,fallbackLocale:n,messages:o,datetimeFormats:s,numberFormats:a,modifiers:u,pluralRules:l,missing:h,missingWarn:k,fallbackWarn:b,fallbackFormat:y,unresolving:x,postTranslation:w,processor:C,warnHtmlMessage:L,escapeParameter:_,messageCompiler:v,onWarn:T,__datetimeFormatters:O,__numberFormatters:F,__meta:N}}function fe(e,t){return e instanceof RegExp?e.test(t):e}function pe(e,t){return e instanceof RegExp?e.test(t):e}function me(e,t,n,r,o){const{missing:c}=e;if(null!==c){const r=c(e,n,t,o);return p(r)?r:t}return t}function de(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];for(;i(e);)e=he(o,e,t);const c=i(t)?t:g(t)?t.default?t.default:null:t;e=p(c)?[c]:c,i(e)&&he(o,e,!1),r.__localeChainCache.set(n,o)}return o}function he(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){p(t[o])&&(r=ke(e,t[o],n))}return r}function ke(e,t,n){let r;const o=t.split("-");do{r=ge(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function ge(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(i(n)||g(n))&&n[o]&&(r=n[o])}return r}function be(e,t,n){e.__localeChainCache=new Map,de(e,n,t)}const ye=e=>e;let xe=Object.create(null);function we(){xe=Object.create(null)}function Ce(e,t={}){{const n=(t.onCacheKey||ye)(e),r=xe[n];if(r)return r;let o=!1;const c=t.onError||E;t.onError=e=>{o=!0,c(e)};const{code:s}=G(e,t),a=new Function(`return ${s}`)();return o?a:xe[n]=a}}function Le(e){return I(e,null,void 0)}const _e=()=>"",ve=e=>f(e);function Te(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,fallbackLocale:s,messages:u}=e,[l,h]=Oe(...t),k=(m(h.missingWarn),m(h.fallbackWarn),m(h.escapeParameter)?h.escapeParameter:e.escapeParameter),g=!!h.resolvedMessage,b=p(h.default)||m(h.default)?m(h.default)?l:h.default:r?l:"",y=r||""!==b,x=p(h.locale)?h.locale:e.locale;k&&function(e){i(e.list)?e.list=e.list.map((e=>p(e)?a(e):e)):d(e.named)&&Object.keys(e.named).forEach((t=>{p(e.named[t])&&(e.named[t]=a(e.named[t]))}))}(h);let[w,C,L]=g?[l,x,u[x]||{}]:function(e,t,n,r,o,c){const{messages:s}=e,a=de(e,r,n);let u,l={},i=null;const m="translate";for(let n=0;n<a.length&&(u=a[n],l=s[u]||{},null===(i=_(l,t))&&(i=l[t]),!p(i)&&!f(i));n++){const n=me(e,t,u,0,m);n!==t&&(i=n)}return[i,u,l]}(e,l,x,s),v=l;if(g||p(w)||ve(w)||y&&(w=b,v=w),!(g||(p(w)||ve(w))&&p(C)))return c?-1:l;let T=!1;const P=ve(w)?w:Pe(e,l,C,w,v,(()=>{T=!0}));if(T)return w;const O=function(e,t,n){return t(n)}(0,P,S(function(e,t,r,o){const{modifiers:c,pluralRules:s}=e,a={locale:t,modifiers:c,pluralRules:s,messages:n=>{const o=_(r,n);if(p(o)){let r=!1;const c=Pe(e,n,t,o,n,(()=>{r=!0}));return r?_e:c}return ve(o)?o:_e}};e.processor&&(a.processor=e.processor);o.list&&(a.list=o.list);o.named&&(a.named=o.named);n(o.plural)&&(a.pluralIndex=o.plural);return a}(e,C,L,h)));return o?o(O):O}function Pe(e,n,r,o,c,s){const{messageCompiler:a,warnHtmlMessage:u}=e;if(ve(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}const l=a(o,function(e,n,r,o,c,s){return{warnHtmlMessage:c,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,u,s));return l.locale=r,l.key=n,l.source=o,l}function Oe(...e){const[t,r,c]=e,s={};if(!p(t)&&!n(t)&&!ve(t))throw Error(14);const a=n(t)?String(t):(ve(t),t);return n(r)?s.plural=r:p(r)?s.default=r:g(r)&&!o(r)?s.named=r:i(r)&&(s.list=r),n(c)?s.plural=c:p(c)?s.default=c:g(c)&&Object.assign(s,c),[a,s]}function Fe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c}=e,{__datetimeFormatters:s}=e,[a,u,l,i]=Ne(...t);m(l.missingWarn);m(l.fallbackWarn);const f=!!l.part,d=p(l.locale)?l.locale:e.locale,h=de(e,c,d);if(!p(a)||""===a)return new Intl.DateTimeFormat(d).format(u);let k,b={},y=null;for(let t=0;t<h.length&&(k=h[t],b=n[k]||{},y=b[a],!g(y));t++)me(e,a,k,0,"datetime format");if(!g(y)||!p(k))return r?-1:a;let x=`${k}__${a}`;o(i)||(x=`${x}__${JSON.stringify(i)}`);let w=s.get(x);return w||(w=new Intl.DateTimeFormat(k,Object.assign({},y,i)),s.set(x,w)),f?w.formatToParts(u):w.format(u)}function Ne(...e){const[t,r,o,c]=e;let s,a={},u={};if(p(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Error(16);s=new Date(t);try{s.toISOString()}catch(e){throw Error(16)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(15);s=t}else{if(!n(t))throw Error(14);s=t}return p(r)?a.key=r:g(r)&&(a=r),p(o)?a.locale=o:g(o)&&(u=o),g(c)&&(u=c),[a.key||"",s,a,u]}function $e(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Se(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c}=e,{__numberFormatters:s}=e,[a,u,l,i]=Ie(...t);m(l.missingWarn);m(l.fallbackWarn);const f=!!l.part,d=p(l.locale)?l.locale:e.locale,h=de(e,c,d);if(!p(a)||""===a)return new Intl.NumberFormat(d).format(u);let k,b={},y=null;for(let t=0;t<h.length&&(k=h[t],b=n[k]||{},y=b[a],!g(y));t++)me(e,a,k,0,"number format");if(!g(y)||!p(k))return r?-1:a;let x=`${k}__${a}`;o(i)||(x=`${x}__${JSON.stringify(i)}`);let w=s.get(x);return w||(w=new Intl.NumberFormat(k,Object.assign({},y,i)),s.set(x,w)),f?w.formatToParts(u):w.format(u)}function Ie(...e){const[t,r,o,c]=e;let s={},a={};if(!n(t))throw Error(14);const u=t;return p(r)?s.key=r:g(r)&&(s=r),p(o)?s.locale=o:g(o)&&(a=o),g(c)&&(a=c),[s.key||"",u,s,a]}function Ee(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}export{O as DEFAULT_MESSAGE_DATA_TYPE,se as MISSING_RESOLVE_VALUE,ce as NOT_REOSLVED,oe as VERSION,we as clearCompileCache,$e as clearDateTimeFormat,Ee as clearNumberFormat,Ce as compileToFunction,I as createCompileError,ie as createCoreContext,Le as createCoreError,S as createMessageContext,Fe as datetime,X as getDevToolsHook,de as getLocaleChain,re as getWarnMessage,v as handleFlatJson,me as handleMissing,Y as initI18nDevTools,ve as isMessageFunction,fe as isTranslateFallbackWarn,pe as isTranslateMissingWarn,Se as number,C as parse,Ne as parseDateTimeArgs,Ie as parseNumberArgs,Oe as parseTranslateArgs,ue as registerMessageCompiler,_ as resolveValue,V as setDevToolsHook,Te as translate,ee as translateDevTools,be as updateFallbackLocale}; | ||
const e=/\{([0-9a-zA-Z]+)\}/g;const t=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),n=e=>"number"==typeof e&&isFinite(e),r=e=>"[object RegExp]"===k(e),o=e=>g(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function a(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const u=Object.prototype.hasOwnProperty;function l(e,t){return u.call(e,t)}const i=Array.isArray,f=e=>"function"==typeof e,p=e=>"string"==typeof e,m=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),g=e=>"[object Object]"===k(e),b=[];b[0]={w:[0],i:[3,0],"[":[4],o:[7]},b[1]={w:[1],".":[2],"[":[4],o:[7]},b[2]={w:[2],i:[3,0],0:[3,0]},b[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},b[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},b[5]={"'":[4,0],o:8,l:[5,0]},b[6]={'"':[4,0],o:8,l:[6,0]};const y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function x(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 w(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(y.test(t)?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)}function C(e){const t=[];let n,r,o,c,s,a,u,l=-1,i=0,f=0;const p=[];function m(){const t=e[l+1];if(5===i&&"'"===t||6===i&&'"'===t)return l++,o="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),f++},p[3]=()=>{if(f>0)f--,i=4,p[0]();else{if(f=0,void 0===r)return!1;if(r=w(r),!1===r)return!1;p[1]()}};null!==i;)if(l++,n=e[l],"\\"!==n||!m()){if(c=x(n),u=b[i],s=u[c]||u.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(a=p[s[1]],a&&(o=n,!1===a())))return;if(7===i)return t}}const _=new Map;function v(e,t){if(!d(e))return null;let n=_.get(t);if(n||(n=C(t),n&&_.set(t,n)),!n)return null;const r=n.length;let o=e,c=0;for(;c<r;){const e=o[n[c]];if(void 0===e)return null;o=e,c++}return o}function L(e){if(!d(e))return e;for(const t in e)if(l(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e;for(let e=0;e<r;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[r]]=e[t],delete e[t],d(o[n[r]])&&L(o[n[r]])}else d(e[t])&&L(e[t]);return e}const T=e=>e,P=e=>"",O="text",F=e=>0===e.length?"":e.join(""),N=e=>null==e?"":i(e)||g(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function $(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function S(e={}){const t=e.locale,r=function(e){const t=n(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(n(e.named.count)||n(e.named.n))?n(e.named.count)?e.named.count:n(e.named.n)?e.named.n:t:t}(e),o=d(e.pluralRules)&&p(t)&&f(e.pluralRules[t])?e.pluralRules[t]:$,c=d(e.pluralRules)&&p(t)&&f(e.pluralRules[t])?$:void 0,s=e.list||[],a=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,a);function u(t){const n=f(e.messages)?e.messages(t):!!d(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):P)}const l=g(e.processor)&&f(e.processor.normalize)?e.processor.normalize:F,i=g(e.processor)&&f(e.processor.interpolate)?e.processor.interpolate:N,m={list:e=>s[e],named:e=>a[e],plural:e=>e[o(r,e.length,c)],linked:(t,n)=>{const r=u(t)(m);return p(n)?(o=n,e.modifiers?e.modifiers[o]:T)(r):r;var o},message:u,type:g(e.processor)&&p(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:l};return m}function I(e,t,n={}){const{domain:r}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function E(e){throw e}function j(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const A=String.fromCharCode(8232),W=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,o=1,c=0;const s=e=>"\r"===t[e]&&"\n"===t[e+1],a=e=>t[e]===W,u=e=>t[e]===A,l=e=>s(e)||(e=>"\n"===t[e])(e)||a(e)||u(e),i=e=>s(e)||a(e)||u(e)?"\n":t[e];function f(){return c=0,l(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>c,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+c),next:f,peek:function(){return s(n+c)&&c++,c++,t[n+c]},reset:function(){n=0,r=1,o=1,c=0},resetPeek:function(e=0){c=e},skipToPeek:function(){const e=n+c;for(;e!==n;)f();c=0}}}const R=void 0;function J(e,t={}){const n=!1!==t.location,r=M(e),o=()=>r.index(),c=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=c(),a=o(),u={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},l=()=>u,{onError:i}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=j(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const p=e=>f(e,14);function m(e,t){return e.currentChar()===t?(e.next(),t):(c(),"")}function d(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function h(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===R)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function g(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===R)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,r="",o=!1)=>{const c=e.currentPeek();return"{"===c?"%"!==r&&t:"@"!==c&&c?"%"===c?(e.peek(),n(t,"%",!0)):"|"===c?!("%"!==r&&!o)||!(" "===r||"\n"===r):" "===c?(e.peek(),n(!0," ",o)):"\n"!==c||(e.peek(),n(!0,"\n",o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function x(e,t){const n=e.currentChar();return n===R?R:t(n)?(e.next(),n):null}function w(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function C(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function _(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function v(e){let t="",n="";for(;t=C(e);)n+=t;return n}function L(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return T(e,t,4);case"U":return T(e,t,6);default:return c(),""}}function T(e,t,n){m(e,t);let r="";for(let t=0;t<n;t++){const t=_(e);if(!t){c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){h(e);const t=m(e,"|");return h(e),t}function O(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),h(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&h(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&c(),n=F(e,t)||p(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(b(e))return t.braceNest>0&&c(),n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return c(),t.braceNest=0,N(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){h(e);let t="",n="";for(;t=w(e);)n+=t;return e.currentChar()===R&&c(),n}(e)),h(e),n;if(o=g(e,t))return n=f(t,6,function(e){h(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${v(e)}`):t+=v(e),e.currentChar()===R&&c(),t}(e)),h(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){h(e),m(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=x(e,r);)n+="\\"===t?L(e):t;const o=e.currentChar();return"\n"===o||o===R?(c(),"\n"===o&&(e.next(),m(e,"'")),n):(m(e,"'"),n)}(e)),h(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){h(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=x(e,r);)n+=t;return n}(e)),c(),h(e),n}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==o&&" "!==o||c(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return h(e),e.next(),f(t,9,".");case":":return h(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(h(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(h(e),f(t,12,function(e){let t="",n="";for(;t=w(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(h(e),"{"===o?O(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?" "===o?r:"\n"===o?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&c(),t.braceNest=0,t.inLinked=!1,N(e,t))}}function N(e,t){let n={type:14};if(t.braceNest>0)return O(e,t)||p(t);if(t.inLinked)return F(e,t)||p(t);const r=e.currentChar();switch(r){case"{":return O(e,t)||p(t);case"}":return c(),e.next(),f(t,3,"}");case"@":return F(e,t)||p(t);default:if(b(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(y(e))return f(t,0,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"}"!==r&&"@"!==r&&r?"%"===r?y(e)?(n+=r,e.next(),t(n)):n:"|"===r?n:" "===r||"\n"===r?y(e)?(n+=r,e.next(),t(n)):b(e)?n:(n+=r,e.next(),t(n)):(n+=r,e.next(),t(n)):n};return t("")}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=u;return u.lastType=e,u.lastOffset=t,u.lastStartLoc=n,u.lastEndLoc=s,u.offset=o(),u.startLoc=c(),r.currentChar()===R?f(u,14):N(r,u)},currentOffset:o,currentPosition:c,context:l}}const z=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function D(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function H(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function c(e,t){const n=e.context(),c=r(3,n.offset,n.startLoc);return c.value=t,o(c,e.currentOffset(),e.currentPosition()),c}function a(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(5,c,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(4,c,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(9,c,s);return a.value=t.replace(z,D),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let c=e.nextToken();if(9===c.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(8,c,s);return 12!==t.type?(a.value="",o(a,c,s),{nextConsumeToken:t,node:a}):(null==t.value&&U(t),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(10!==c.type&&U(c),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 11:null==c.value&&U(c),n.key=function(e,t){const n=e.context(),c=r(7,n.offset,n.startLoc);return c.value=t,o(c,e.currentOffset(),e.currentPosition()),c}(e,c.value||"");break;case 5:null==c.value&&U(c),n.key=u(e,c.value||"");break;case 6:null==c.value&&U(c),n.key=a(e,c.value||"");break;case 7:null==c.value&&U(c),n.key=l(e,c.value||"");break;default:const t=e.context(),s=r(7,t.offset,t.startLoc);return s.value="",o(s,t.offset,t.startLoc),n.key=s,o(n,t.offset,t.startLoc),{nextConsumeToken:c,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let s=null;do{const t=s||e.nextToken();switch(s=null,t.type){case 0:null==t.value&&U(t),n.items.push(c(e,t.value||""));break;case 6:null==t.value&&U(t),n.items.push(a(e,t.value||""));break;case 5:null==t.value&&U(t),n.items.push(u(e,t.value||""));break;case 7:null==t.value&&U(t),n.items.push(l(e,t.value||""));break;case 8:const r=i(e);n.items.push(r.node),s=r.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function p(e){const t=e.context(),{offset:n,startLoc:c}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,c){const s=e.context();let a=0===c.items.length;const u=r(1,t,n);u.cases=[],u.cases.push(c);do{const t=f(e);a||(a=0===t.items.length),u.cases.push(t)}while(14!==s.currentType);return o(u,e.currentOffset(),e.currentPosition()),u}(e,n,c,s)}return{parse:function(n){const c=J(n,s({},e)),a=c.context(),u=r(0,a.offset,a.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=p(c),o(u,c.currentOffset(),c.currentPosition()),u}}}function U(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function K(e,t){for(let n=0;n<e.length;n++)q(e[n],t)}function q(e,t){switch(e.type){case 1:K(e.cases,t),t.helper("plural");break;case 2:K(e.items,t);break;case 6:q(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function Z(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&q(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function B(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?B(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(B(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(B(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),B(e,t.key),t.modifier&&(e.push(", "),B(e,t.modifier)),e.push(")")}(e,t);break;case 8:case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:case 3:e.push(JSON.stringify(t.value),t)}}function G(e,t={}){const n=s({},t),r=H(n).parse(e);return Z(r,n),((e,t={})=>{const n=p(t.mode)?t.mode:"normal",r=p(t.filename)?t.filename:"message.intl",o=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],s=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,c={source:e.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function s(e,t){c.code+=e}function a(e,t=!0){const n=t?r:"";s(o?n+" ".repeat(e):n)}return{context:()=>c,push:s,indent:function(e=!0){const t=++c.indentLevel;e&&a(t)},deindent:function(e=!0){const t=--c.indentLevel;e&&a(t)},newline:function(){a(c.indentLevel)},helper:e=>`_${e}`,needIndent:()=>c.needIndent}}(e,{mode:n,filename:r,sourceMap:!!t.sourceMap,breakLineCode:null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",needIndent:o});s.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(o),c.length>0&&(s.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),s.newline()),s.push("return "),B(s,e),s.deindent(o),s.push("}");const{code:a,map:u}=s.context();return{ast:e,code:a,map:u?u.toJSON():void 0}})(r,n)}let Q=null;function V(e){Q=e}function X(){return Q}function Y(e,t,n){Q&&Q.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ee=te("function:translate");function te(e){return t=>Q&&Q.emit(e,t)}const ne={0:"Not found '{key}' key in '{locale}' locale messages.",1:"Fall back to translate '{key}' key with '{target}' locale.",2:"Cannot format a number value due to not supported Intl.NumberFormat.",3:"Fall back to number format '{key}' key with '{target}' locale.",4:"Cannot format a date value due to not supported Intl.DateTimeFormat.",5:"Fall back to datetime format '{key}' key with '{target}' locale."};function re(t,...n){return function(t,...n){return 1===n.length&&d(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(ne[t],...n)}const oe="9.1.3",ce=-1,se="";let ae;function ue(e){ae=e}let le=null;const ie=e=>{le=e},fe=()=>le;let pe=0;function me(e={}){const t=p(e.version)?e.version:"9.1.3",n=p(e.locale)?e.locale:"en-US",o=i(e.fallbackLocale)||g(e.fallbackLocale)||p(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=g(e.messages)?e.messages:{[n]:{}},a=g(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},u=g(e.numberFormats)?e.numberFormats:{[n]:{}},l=Object.assign({},e.modifiers||{},{upper:e=>p(e)?e.toUpperCase():e,lower:e=>p(e)?e.toLowerCase():e,capitalize:e=>p(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),h=e.pluralRules||{},k=f(e.missing)?e.missing:null,b=!m(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,y=!m(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,x=!!e.fallbackFormat,w=!!e.unresolving,C=f(e.postTranslation)?e.postTranslation:null,_=g(e.processor)?e.processor:null,v=!m(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter,T=f(e.messageCompiler)?e.messageCompiler:ae,P=f(e.onWarn)?e.onWarn:c,O=e,F=d(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,N=d(O.__numberFormatters)?O.__numberFormatters:new Map,$=d(O.__meta)?O.__meta:{};pe++;return{version:t,cid:pe,locale:n,fallbackLocale:o,messages:s,datetimeFormats:a,numberFormats:u,modifiers:l,pluralRules:h,missing:k,missingWarn:b,fallbackWarn:y,fallbackFormat:x,unresolving:w,postTranslation:C,processor:_,warnHtmlMessage:v,escapeParameter:L,messageCompiler:T,onWarn:P,__datetimeFormatters:F,__numberFormatters:N,__meta:$}}function de(e,t){return e instanceof RegExp?e.test(t):e}function he(e,t){return e instanceof RegExp?e.test(t):e}function ke(e,t,n,r,o){const{missing:c}=e;if(null!==c){const r=c(e,n,t,o);return p(r)?r:t}return t}function ge(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];for(;i(e);)e=be(o,e,t);const c=i(t)?t:g(t)?t.default?t.default:null:t;e=p(c)?[c]:c,i(e)&&be(o,e,!1),r.__localeChainCache.set(n,o)}return o}function be(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){p(t[o])&&(r=ye(e,t[o],n))}return r}function ye(e,t,n){let r;const o=t.split("-");do{r=xe(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function xe(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(i(n)||g(n))&&n[o]&&(r=n[o])}return r}function we(e,t,n){e.__localeChainCache=new Map,ge(e,n,t)}const Ce=e=>e;let _e=Object.create(null);function ve(){_e=Object.create(null)}function Le(e,t={}){{const n=(t.onCacheKey||Ce)(e),r=_e[n];if(r)return r;let o=!1;const c=t.onError||E;t.onError=e=>{o=!0,c(e)};const{code:s}=G(e,t),a=new Function(`return ${s}`)();return o?a:_e[n]=a}}function Te(e){return I(e,null,void 0)}const Pe=()=>"",Oe=e=>f(e);function Fe(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,fallbackLocale:s,messages:u}=e,[l,h]=$e(...t),k=(m(h.missingWarn),m(h.fallbackWarn),m(h.escapeParameter)?h.escapeParameter:e.escapeParameter),g=!!h.resolvedMessage,b=p(h.default)||m(h.default)?m(h.default)?l:h.default:r?l:"",y=r||""!==b,x=p(h.locale)?h.locale:e.locale;k&&function(e){i(e.list)?e.list=e.list.map((e=>p(e)?a(e):e)):d(e.named)&&Object.keys(e.named).forEach((t=>{p(e.named[t])&&(e.named[t]=a(e.named[t]))}))}(h);let[w,C,_]=g?[l,x,u[x]||{}]:function(e,t,n,r,o,c){const{messages:s}=e,a=ge(e,r,n);let u,l={},i=null;const m="translate";for(let n=0;n<a.length&&(u=a[n],l=s[u]||{},null===(i=v(l,t))&&(i=l[t]),!p(i)&&!f(i));n++){const n=ke(e,t,u,0,m);n!==t&&(i=n)}return[i,u,l]}(e,l,x,s),L=l;if(g||p(w)||Oe(w)||y&&(w=b,L=w),!(g||(p(w)||Oe(w))&&p(C)))return c?-1:l;let T=!1;const P=Oe(w)?w:Ne(e,l,C,w,L,(()=>{T=!0}));if(T)return w;const O=function(e,t,n){return t(n)}(0,P,S(function(e,t,r,o){const{modifiers:c,pluralRules:s}=e,a={locale:t,modifiers:c,pluralRules:s,messages:n=>{const o=v(r,n);if(p(o)){let r=!1;const c=Ne(e,n,t,o,n,(()=>{r=!0}));return r?Pe:c}return Oe(o)?o:Pe}};e.processor&&(a.processor=e.processor);o.list&&(a.list=o.list);o.named&&(a.named=o.named);n(o.plural)&&(a.pluralIndex=o.plural);return a}(e,C,_,h)));return o?o(O):O}function Ne(e,n,r,o,c,s){const{messageCompiler:a,warnHtmlMessage:u}=e;if(Oe(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}const l=a(o,function(e,n,r,o,c,s){return{warnHtmlMessage:c,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,u,s));return l.locale=r,l.key=n,l.source=o,l}function $e(...e){const[t,r,c]=e,s={};if(!p(t)&&!n(t)&&!Oe(t))throw Error(14);const a=n(t)?String(t):(Oe(t),t);return n(r)?s.plural=r:p(r)?s.default=r:g(r)&&!o(r)?s.named=r:i(r)&&(s.list=r),n(c)?s.plural=c:p(c)?s.default=c:g(c)&&Object.assign(s,c),[a,s]}function Se(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c}=e,{__datetimeFormatters:s}=e,[a,u,l,i]=Ie(...t);m(l.missingWarn);m(l.fallbackWarn);const f=!!l.part,d=p(l.locale)?l.locale:e.locale,h=ge(e,c,d);if(!p(a)||""===a)return new Intl.DateTimeFormat(d).format(u);let k,b={},y=null;for(let t=0;t<h.length&&(k=h[t],b=n[k]||{},y=b[a],!g(y));t++)ke(e,a,k,0,"datetime format");if(!g(y)||!p(k))return r?-1:a;let x=`${k}__${a}`;o(i)||(x=`${x}__${JSON.stringify(i)}`);let w=s.get(x);return w||(w=new Intl.DateTimeFormat(k,Object.assign({},y,i)),s.set(x,w)),f?w.formatToParts(u):w.format(u)}function Ie(...e){const[t,r,o,c]=e;let s,a={},u={};if(p(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Error(16);s=new Date(t);try{s.toISOString()}catch(e){throw Error(16)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(15);s=t}else{if(!n(t))throw Error(14);s=t}return p(r)?a.key=r:g(r)&&(a=r),p(o)?a.locale=o:g(o)&&(u=o),g(c)&&(u=c),[a.key||"",s,a,u]}function Ee(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function je(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c}=e,{__numberFormatters:s}=e,[a,u,l,i]=Ae(...t);m(l.missingWarn);m(l.fallbackWarn);const f=!!l.part,d=p(l.locale)?l.locale:e.locale,h=ge(e,c,d);if(!p(a)||""===a)return new Intl.NumberFormat(d).format(u);let k,b={},y=null;for(let t=0;t<h.length&&(k=h[t],b=n[k]||{},y=b[a],!g(y));t++)ke(e,a,k,0,"number format");if(!g(y)||!p(k))return r?-1:a;let x=`${k}__${a}`;o(i)||(x=`${x}__${JSON.stringify(i)}`);let w=s.get(x);return w||(w=new Intl.NumberFormat(k,Object.assign({},y,i)),s.set(x,w)),f?w.formatToParts(u):w.format(u)}function Ae(...e){const[t,r,o,c]=e;let s={},a={};if(!n(t))throw Error(14);const u=t;return p(r)?s.key=r:g(r)&&(s=r),p(o)?s.locale=o:g(o)&&(a=o),g(c)&&(a=c),[s.key||"",u,s,a]}function We(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}export{O as DEFAULT_MESSAGE_DATA_TYPE,se as MISSING_RESOLVE_VALUE,ce as NOT_REOSLVED,oe as VERSION,ve as clearCompileCache,Ee as clearDateTimeFormat,We as clearNumberFormat,Le as compileToFunction,I as createCompileError,me as createCoreContext,Te as createCoreError,S as createMessageContext,Se as datetime,fe as getAdditionalMeta,X as getDevToolsHook,ge as getLocaleChain,re as getWarnMessage,L as handleFlatJson,ke as handleMissing,Y as initI18nDevTools,Oe as isMessageFunction,de as isTranslateFallbackWarn,he as isTranslateMissingWarn,je as number,C as parse,Ie as parseDateTimeArgs,Ae as parseNumberArgs,$e as parseTranslateArgs,ue as registerMessageCompiler,v as resolveValue,ie as setAdditionalMeta,V as setDevToolsHook,Fe as translate,ee as translateDevTools,we as updateFallbackLocale}; |
/*! | ||
* @intlify/core-base v9.1.2 | ||
* @intlify/core-base v9.1.3 | ||
* (c) 2021 kazuya kawaguchi | ||
@@ -53,3 +53,3 @@ * Released under the MIT License. | ||
*/ | ||
const VERSION = '9.1.2'; | ||
const VERSION = '9.1.3'; | ||
const NOT_REOSLVED = -1; | ||
@@ -71,2 +71,8 @@ const MISSING_RESOLVE_VALUE = ''; | ||
} | ||
// Additional Meta for Intlify DevTools | ||
let _additionalMeta = null; | ||
const setAdditionalMeta = /* #__PURE__*/ (meta) => { | ||
_additionalMeta = meta; | ||
}; | ||
const getAdditionalMeta = /* #__PURE__*/ () => _additionalMeta; | ||
// ID for CoreContext | ||
@@ -76,2 +82,3 @@ let _cid = 0; | ||
// setup options | ||
const version = isString(options.version) ? options.version : VERSION; | ||
const locale = isString(options.locale) ? options.locale : 'en-US'; | ||
@@ -124,5 +131,6 @@ const fallbackLocale = isArray(options.fallbackLocale) || | ||
: new Map(); | ||
const { __meta } = internalOptions; | ||
const __meta = isObject(internalOptions.__meta) ? internalOptions.__meta : {}; | ||
_cid++; | ||
const context = { | ||
version, | ||
cid: _cid, | ||
@@ -160,3 +168,3 @@ locale, | ||
if ((process.env.NODE_ENV !== 'production') || __INTLIFY_PROD_DEVTOOLS__) { | ||
initI18nDevTools(context, VERSION, __meta); | ||
initI18nDevTools(context, version, __meta); | ||
} | ||
@@ -410,16 +418,21 @@ return context; | ||
if ((process.env.NODE_ENV !== 'production') || __INTLIFY_PROD_DEVTOOLS__) { | ||
// prettier-ignore | ||
const payloads = { | ||
timestamp: Date.now(), | ||
key: !isMessageFunction(format) && isString(key) | ||
key: isString(key) | ||
? key | ||
: format.key, | ||
locale: targetLocale, | ||
format: !isMessageFunction(format) && isString(format) | ||
: isMessageFunction(format) | ||
? format.key | ||
: '', | ||
locale: targetLocale || (isMessageFunction(format) | ||
? format.locale | ||
: ''), | ||
format: isString(format) | ||
? format | ||
: format.source, | ||
: isMessageFunction(format) | ||
? format.source | ||
: '', | ||
message: ret | ||
}; | ||
if (context.__meta) { | ||
payloads.meta = context.__meta; | ||
} | ||
payloads.meta = Object.assign({}, context.__meta, getAdditionalMeta() || {}); | ||
translateDevTools(payloads); | ||
@@ -951,2 +964,2 @@ } | ||
export { MISSING_RESOLVE_VALUE, NOT_REOSLVED, VERSION, clearCompileCache, clearDateTimeFormat, clearNumberFormat, compileToFunction, createCoreContext, createCoreError, datetime, getDevToolsHook, getLocaleChain, getWarnMessage, handleMissing, initI18nDevTools, isMessageFunction, isTranslateFallbackWarn, isTranslateMissingWarn, number, parseDateTimeArgs, parseNumberArgs, parseTranslateArgs, registerMessageCompiler, setDevToolsHook, translate, translateDevTools, updateFallbackLocale }; | ||
export { MISSING_RESOLVE_VALUE, NOT_REOSLVED, VERSION, clearCompileCache, clearDateTimeFormat, clearNumberFormat, compileToFunction, createCoreContext, createCoreError, datetime, getAdditionalMeta, getDevToolsHook, getLocaleChain, getWarnMessage, handleMissing, initI18nDevTools, isMessageFunction, isTranslateFallbackWarn, isTranslateMissingWarn, number, parseDateTimeArgs, parseNumberArgs, parseTranslateArgs, registerMessageCompiler, setAdditionalMeta, setDevToolsHook, translate, translateDevTools, updateFallbackLocale }; |
/*! | ||
* @intlify/core-base v9.1.2 | ||
* @intlify/core-base v9.1.3 | ||
* (c) 2021 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
var IntlifyCoreBase=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),r=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===g(e),s=e=>b(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const a=Object.assign;function u(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const l=Object.prototype.hasOwnProperty;function i(e,t){return l.call(e,t)}const f=Array.isArray,p=e=>"function"==typeof e,m=e=>"string"==typeof e,d=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,k=Object.prototype.toString,g=e=>k.call(e),b=e=>"[object Object]"===g(e),y=[];y[0]={w:[0],i:[3,0],"[":[4],o:[7]},y[1]={w:[1],".":[2],"[":[4],o:[7]},y[2]={w:[2],i:[3,0],0:[3,0]},y[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},y[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},y[5]={"'":[4,0],o:8,l:[5,0]},y[6]={'"':[4,0],o:8,l:[6,0]};const x=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function C(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 T(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(x.test(t)?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)}function _(e){const t=[];let n,r,o,s,c,a,u,l=-1,i=0,f=0;const p=[];function m(){const t=e[l+1];if(5===i&&"'"===t||6===i&&'"'===t)return l++,o="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),f++},p[3]=()=>{if(f>0)f--,i=4,p[0]();else{if(f=0,void 0===r)return!1;if(r=T(r),!1===r)return!1;p[1]()}};null!==i;)if(l++,n=e[l],"\\"!==n||!m()){if(s=C(n),u=y[i],c=u[s]||u.l||8,8===c)return;if(i=c[0],void 0!==c[1]&&(a=p[c[1]],a&&(o=n,!1===a())))return;if(7===i)return t}}const L=new Map;function v(e,t){if(!h(e))return null;let n=L.get(t);if(n||(n=_(t),n&&L.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const e=o[n[s]];if(void 0===e)return null;o=e,s++}return o}const w=e=>e,O=e=>"",P="text",F=e=>0===e.length?"":e.join(""),N=e=>null==e?"":f(e)||b(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function S(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function $(e={}){const t=e.locale,n=function(e){const t=r(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(r(e.named.count)||r(e.named.n))?r(e.named.count)?e.named.count:r(e.named.n)?e.named.n:t:t}(e),o=h(e.pluralRules)&&m(t)&&p(e.pluralRules[t])?e.pluralRules[t]:S,s=h(e.pluralRules)&&m(t)&&p(e.pluralRules[t])?S:void 0,c=e.list||[],a=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);function u(t){const n=p(e.messages)?e.messages(t):!!h(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):O)}const l=b(e.processor)&&p(e.processor.normalize)?e.processor.normalize:F,i=b(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:N,f={list:e=>c[e],named:e=>a[e],plural:e=>e[o(n,e.length,s)],linked:(t,n)=>{const r=u(t)(f);return m(n)?(o=n,e.modifiers?e.modifiers[o]:w)(r):r;var o},message:u,type:b(e.processor)&&m(e.processor.type)?e.processor.type:P,interpolate:i,normalize:l};return f}function E(e,t,n={}){const{domain:r}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function I(e){throw e}function A(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const M=" ",j="\n",W=String.fromCharCode(8232),D=String.fromCharCode(8233);function R(e){const t=e;let n=0,r=1,o=1,s=0;const c=e=>"\r"===t[e]&&t[e+1]===j,a=e=>t[e]===D,u=e=>t[e]===W,l=e=>c(e)||(e=>t[e]===j)(e)||a(e)||u(e),i=e=>c(e)||a(e)||u(e)?j:t[e];function f(){return s=0,l(n)&&(r++,o=0),c(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>s,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+s),next:f,peek:function(){return c(n+s)&&s++,s++,t[n+s]},reset:function(){n=0,r=1,o=1,s=0},resetPeek:function(e=0){s=e},skipToPeek:function(){const e=n+s;for(;e!==n;)f();s=0}}}const J=void 0;function z(e,t={}){const n=!1!==t.location,r=R(e),o=()=>r.index(),s=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},c=s(),a=o(),u={currentType:14,offset:a,startLoc:c,endLoc:c,lastType:14,lastOffset:a,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},l=()=>u,{onError:i}=t;function f(e,t,r){e.endLoc=s(),e.currentType=t;const o={type:t};return n&&(o.loc=A(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const p=e=>f(e,14);function m(e,t){return e.currentChar()===t?(e.next(),t):(s(),"")}function d(e){let t="";for(;e.currentPeek()===M||e.currentPeek()===j;)t+=e.currentPeek(),e.peek();return t}function h(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===J)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function g(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===J)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,r="",o=!1)=>{const s=e.currentPeek();return"{"===s?"%"!==r&&t:"@"!==s&&s?"%"===s?(e.peek(),n(t,"%",!0)):"|"===s?!("%"!==r&&!o)||!(r===M||r===j):s===M?(e.peek(),n(!0,M,o)):s!==j||(e.peek(),n(!0,j,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function x(e,t){const n=e.currentChar();return n===J?J:t(n)?(e.next(),n):null}function C(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function T(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function _(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function L(e){let t="",n="";for(;t=T(e);)n+=t;return n}function v(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return w(e,t,4);case"U":return w(e,t,6);default:return s(),""}}function w(e,t,n){m(e,t);let r="";for(let t=0;t<n;t++){const t=_(e);if(!t){s(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){h(e);const t=m(e,"|");return h(e),t}function P(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&s(),e.next(),n=f(t,2,"{"),h(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&s(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&h(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&s(),n=F(e,t)||p(t),t.braceNest=0,n;default:let r=!0,o=!0,c=!0;if(b(e))return t.braceNest>0&&s(),n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return s(),t.braceNest=0,N(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){h(e);let t="",n="";for(;t=C(e);)n+=t;return e.currentChar()===J&&s(),n}(e)),h(e),n;if(o=g(e,t))return n=f(t,6,function(e){h(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${L(e)}`):t+=L(e),e.currentChar()===J&&s(),t}(e)),h(e),n;if(c=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){h(e),m(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==j;for(;t=x(e,r);)n+="\\"===t?v(e):t;const o=e.currentChar();return o===j||o===J?(s(),o===j&&(e.next(),m(e,"'")),n):(m(e,"'"),n)}(e)),h(e),n;if(!r&&!o&&!c)return n=f(t,13,function(e){h(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==M&&e!==j;for(;t=x(e,r);)n+=t;return n}(e)),s(),h(e),n}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==j&&o!==M||s(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return h(e),e.next(),f(t,9,".");case":":return h(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(h(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(h(e),f(t,12,function(e){let t="",n="";for(;t=C(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===M||!t)&&(t===j?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(h(e),"{"===o?P(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===M?r:o===j?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&s(),t.braceNest=0,t.inLinked=!1,N(e,t))}}function N(e,t){let n={type:14};if(t.braceNest>0)return P(e,t)||p(t);if(t.inLinked)return F(e,t)||p(t);const r=e.currentChar();switch(r){case"{":return P(e,t)||p(t);case"}":return s(),e.next(),f(t,3,"}");case"@":return F(e,t)||p(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(y(e))return f(t,0,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"}"!==r&&"@"!==r&&r?"%"===r?y(e)?(n+=r,e.next(),t(n)):n:"|"===r?n:r===M||r===j?y(e)?(n+=r,e.next(),t(n)):b(e)?n:(n+=r,e.next(),t(n)):(n+=r,e.next(),t(n)):n};return t("")}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:c}=u;return u.lastType=e,u.lastOffset=t,u.lastStartLoc=n,u.lastEndLoc=c,u.offset=o(),u.startLoc=s(),r.currentChar()===J?f(u,14):N(r,u)},currentOffset:o,currentPosition:s,context:l}}const H=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function U(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function V(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function s(e,t){const n=e.context(),s=r(3,n.offset,n.startLoc);return s.value=t,o(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(5,s,c);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(4,s,c);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(9,s,c);return a.value=t.replace(H,U),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let s=e.nextToken();if(9===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(8,s,c);return 12!==t.type?(a.value="",o(a,s,c),{nextConsumeToken:t,node:a}):(null==t.value&&G(t),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(10!==s.type&&G(s),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 11:null==s.value&&G(s),n.key=function(e,t){const n=e.context(),s=r(7,n.offset,n.startLoc);return s.value=t,o(s,e.currentOffset(),e.currentPosition()),s}(e,s.value||"");break;case 5:null==s.value&&G(s),n.key=u(e,s.value||"");break;case 6:null==s.value&&G(s),n.key=c(e,s.value||"");break;case 7:null==s.value&&G(s),n.key=l(e,s.value||"");break;default:const t=e.context(),a=r(7,t.offset,t.startLoc);return a.value="",o(a,t.offset,t.startLoc),n.key=a,o(n,t.offset,t.startLoc),{nextConsumeToken:s,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let a=null;do{const t=a||e.nextToken();switch(a=null,t.type){case 0:null==t.value&&G(t),n.items.push(s(e,t.value||""));break;case 6:null==t.value&&G(t),n.items.push(c(e,t.value||""));break;case 5:null==t.value&&G(t),n.items.push(u(e,t.value||""));break;case 7:null==t.value&&G(t),n.items.push(l(e,t.value||""));break;case 8:const r=i(e);n.items.push(r.node),a=r.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function p(e){const t=e.context(),{offset:n,startLoc:s}=t,c=f(e);return 14===t.currentType?c:function(e,t,n,s){const c=e.context();let a=0===s.items.length;const u=r(1,t,n);u.cases=[],u.cases.push(s);do{const t=f(e);a||(a=0===t.items.length),u.cases.push(t)}while(14!==c.currentType);return o(u,e.currentOffset(),e.currentPosition()),u}(e,n,s,c)}return{parse:function(n){const s=z(n,a({},e)),c=s.context(),u=r(0,c.offset,c.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=p(s),o(u,s.currentOffset(),s.currentPosition()),u}}}function G(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function K(e,t){for(let n=0;n<e.length;n++)q(e[n],t)}function q(e,t){switch(e.type){case 1:K(e.cases,t),t.helper("plural");break;case 2:K(e.items,t);break;case 6:q(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function B(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&q(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Y(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Y(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(Y(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(Y(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Y(e,t.key),t.modifier&&(e.push(", "),Y(e,t.modifier)),e.push(")")}(e,t);break;case 8:case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:case 3:e.push(JSON.stringify(t.value),t)}}function Z(e,t={}){const n=a({},t),r=V(n).parse(e);return B(r,n),((e,t={})=>{const n=m(t.mode)?t.mode:"normal",r=m(t.filename)?t.filename:"message.intl",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,s={source:e.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function c(e,t){s.code+=e}function a(e,t=!0){const n=t?r:"";c(o?n+" ".repeat(e):n)}return{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&a(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&a(t)},newline:function(){a(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:!!t.sourceMap,breakLineCode:null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),Y(c,e),c.deindent(o),c.push("}");const{code:a,map:u}=c.context();return{ast:e,code:a,map:u?u.toJSON():void 0}})(r,n)}let Q=null;const X=ee("function:translate");function ee(e){return t=>Q&&Q.emit(e,t)}const te={0:"Not found '{key}' key in '{locale}' locale messages.",1:"Fall back to translate '{key}' key with '{target}' locale.",2:"Cannot format a number value due to not supported Intl.NumberFormat.",3:"Fall back to number format '{key}' key with '{target}' locale.",4:"Cannot format a date value due to not supported Intl.DateTimeFormat.",5:"Fall back to datetime format '{key}' key with '{target}' locale."};let ne;let re=0;function oe(e,t,n,r,o){const{missing:s}=e;if(null!==s){const r=s(e,n,t,o);return m(r)?r:t}return t}function se(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];for(;f(e);)e=ce(o,e,t);const s=f(t)?t:b(t)?t.default?t.default:null:t;e=m(s)?[s]:s,f(e)&&ce(o,e,!1),r.__localeChainCache.set(n,o)}return o}function ce(e,t,n){let r=!0;for(let o=0;o<t.length&&d(r);o++){m(t[o])&&(r=ae(e,t[o],n))}return r}function ae(e,t,n){let r;const o=t.split("-");do{r=ue(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function ue(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(f(n)||b(n))&&n[o]&&(r=n[o])}return r}const le=e=>e;let ie=Object.create(null);const fe=()=>"",pe=e=>p(e);function me(e,t,r,o,s,c){const{messageCompiler:a,warnHtmlMessage:u}=e;if(pe(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}const l=a(o,function(e,t,r,o,s,c){return{warnHtmlMessage:s,onError:e=>{throw c&&c(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,s,0,u,c));return l.locale=r,l.key=t,l.source=o,l}function de(...e){const[t,n,o]=e,c={};if(!m(t)&&!r(t)&&!pe(t))throw Error(14);const a=r(t)?String(t):(pe(t),t);return r(n)?c.plural=n:m(n)?c.default=n:b(n)&&!s(n)?c.named=n:f(n)&&(c.list=n),r(o)?c.plural=o:m(o)?c.default=o:b(o)&&Object.assign(c,o),[a,c]}function he(...e){const[t,n,o,s]=e;let c,a={},u={};if(m(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Error(16);c=new Date(t);try{c.toISOString()}catch(e){throw Error(16)}}else if("[object Date]"===g(t)){if(isNaN(t.getTime()))throw Error(15);c=t}else{if(!r(t))throw Error(14);c=t}return m(n)?a.key=n:b(n)&&(a=n),m(o)?a.locale=o:b(o)&&(u=o),b(s)&&(u=s),[a.key||"",c,a,u]}function ke(...e){const[t,n,o,s]=e;let c={},a={};if(!r(t))throw Error(14);const u=t;return m(n)?c.key=n:b(n)&&(c=n),m(o)?c.locale=o:b(o)&&(a=o),b(s)&&(a=s),[c.key||"",u,c,a]}return e.DEFAULT_MESSAGE_DATA_TYPE=P,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION="9.1.2",e.clearCompileCache=function(){ie=Object.create(null)},e.clearDateTimeFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}},e.clearNumberFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}},e.compileToFunction=function(e,t={}){{const n=(t.onCacheKey||le)(e),r=ie[n];if(r)return r;let o=!1;const s=t.onError||I;t.onError=e=>{o=!0,s(e)};const{code:c}=Z(e,t),a=new Function(`return ${c}`)();return o?a:ie[n]=a}},e.createCompileError=E,e.createCoreContext=function(e={}){const t=m(e.locale)?e.locale:"en-US",n=f(e.fallbackLocale)||b(e.fallbackLocale)||m(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=b(e.messages)?e.messages:{[t]:{}},s=b(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},a=b(e.numberFormats)?e.numberFormats:{[t]:{}},u=Object.assign({},e.modifiers||{},{upper:e=>m(e)?e.toUpperCase():e,lower:e=>m(e)?e.toLowerCase():e,capitalize:e=>m(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),l=e.pluralRules||{},i=p(e.missing)?e.missing:null,k=!d(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,g=!d(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,x=!!e.unresolving,C=p(e.postTranslation)?e.postTranslation:null,T=b(e.processor)?e.processor:null,_=!d(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter,v=p(e.messageCompiler)?e.messageCompiler:ne,w=p(e.onWarn)?e.onWarn:c,O=e,P=h(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,F=h(O.__numberFormatters)?O.__numberFormatters:new Map,{__meta:N}=O;return re++,{cid:re,locale:t,fallbackLocale:n,messages:r,datetimeFormats:s,numberFormats:a,modifiers:u,pluralRules:l,missing:i,missingWarn:k,fallbackWarn:g,fallbackFormat:y,unresolving:x,postTranslation:C,processor:T,warnHtmlMessage:_,escapeParameter:L,messageCompiler:v,onWarn:w,__datetimeFormatters:P,__numberFormatters:F,__meta:N}},e.createCoreError=function(e){return E(e,null,void 0)},e.createMessageContext=$,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o}=e,{__datetimeFormatters:c}=e,[a,u,l,i]=he(...t);d(l.missingWarn),d(l.fallbackWarn);const f=!!l.part,p=m(l.locale)?l.locale:e.locale,h=se(e,o,p);if(!m(a)||""===a)return new Intl.DateTimeFormat(p).format(u);let k,g={},y=null;for(let t=0;t<h.length&&(k=h[t],g=n[k]||{},y=g[a],!b(y));t++)oe(e,a,k,0,"datetime format");if(!b(y)||!m(k))return r?-1:a;let x=`${k}__${a}`;s(i)||(x=`${x}__${JSON.stringify(i)}`);let C=c.get(x);return C||(C=new Intl.DateTimeFormat(k,Object.assign({},y,i)),c.set(x,C)),f?C.formatToParts(u):C.format(u)},e.getDevToolsHook=function(){return Q},e.getLocaleChain=se,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&h(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(te[e],...n)},e.handleFlatJson=function e(t){if(!h(t))return t;for(const n in t)if(i(t,n))if(n.includes(".")){const r=n.split("."),o=r.length-1;let s=t;for(let e=0;e<o;e++)r[e]in s||(s[r[e]]={}),s=s[r[e]];s[r[o]]=t[n],delete t[n],h(s[r[o]])&&e(s[r[o]])}else h(t[n])&&e(t[n]);return t},e.handleMissing=oe,e.initI18nDevTools=function(e,t,n){Q&&Q.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=pe,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,fallbackLocale:o}=e,{__numberFormatters:c}=e,[a,u,l,i]=ke(...t);d(l.missingWarn),d(l.fallbackWarn);const f=!!l.part,p=m(l.locale)?l.locale:e.locale,h=se(e,o,p);if(!m(a)||""===a)return new Intl.NumberFormat(p).format(u);let k,g={},y=null;for(let t=0;t<h.length&&(k=h[t],g=n[k]||{},y=g[a],!b(y));t++)oe(e,a,k,0,"number format");if(!b(y)||!m(k))return r?-1:a;let x=`${k}__${a}`;s(i)||(x=`${x}__${JSON.stringify(i)}`);let C=c.get(x);return C||(C=new Intl.NumberFormat(k,Object.assign({},y,i)),c.set(x,C)),f?C.formatToParts(u):C.format(u)},e.parse=_,e.parseDateTimeArgs=he,e.parseNumberArgs=ke,e.parseTranslateArgs=de,e.registerMessageCompiler=function(e){ne=e},e.resolveValue=v,e.setDevToolsHook=function(e){Q=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:s,fallbackLocale:c,messages:a}=e,[l,i]=de(...t),k=(d(i.missingWarn),d(i.fallbackWarn),d(i.escapeParameter)?i.escapeParameter:e.escapeParameter),g=!!i.resolvedMessage,b=m(i.default)||d(i.default)?d(i.default)?l:i.default:n?l:"",y=n||""!==b,x=m(i.locale)?i.locale:e.locale;k&&function(e){f(e.list)?e.list=e.list.map((e=>m(e)?u(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{m(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(i);let[C,T,_]=g?[l,x,a[x]||{}]:function(e,t,n,r,o,s){const{messages:c}=e,a=se(e,r,n);let u,l={},i=null;const f="translate";for(let n=0;n<a.length&&(u=a[n],l=c[u]||{},null===(i=v(l,t))&&(i=l[t]),!m(i)&&!p(i));n++){const n=oe(e,t,u,0,f);n!==t&&(i=n)}return[i,u,l]}(e,l,x,c),L=l;if(g||m(C)||pe(C)||y&&(C=b,L=C),!(g||(m(C)||pe(C))&&m(T)))return s?-1:l;let w=!1;const O=pe(C)?C:me(e,l,T,C,L,(()=>{w=!0}));if(w)return C;const P=function(e,t,n){return t(n)}(0,O,$(function(e,t,n,o){const{modifiers:s,pluralRules:c}=e,a={locale:t,modifiers:s,pluralRules:c,messages:r=>{const o=v(n,r);if(m(o)){let n=!1;const s=me(e,r,t,o,r,(()=>{n=!0}));return n?fe:s}return pe(o)?o:fe}};e.processor&&(a.processor=e.processor);o.list&&(a.list=o.list);o.named&&(a.named=o.named);r(o.plural)&&(a.pluralIndex=o.plural);return a}(e,T,_,i)));return o?o(P):P},e.translateDevTools=X,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,se(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({}); | ||
var IntlifyCoreBase=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),r=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===g(e),s=e=>b(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const a=Object.assign;function u(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const l=Object.prototype.hasOwnProperty;function i(e,t){return l.call(e,t)}const f=Array.isArray,p=e=>"function"==typeof e,m=e=>"string"==typeof e,d=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,k=Object.prototype.toString,g=e=>k.call(e),b=e=>"[object Object]"===g(e),y=[];y[0]={w:[0],i:[3,0],"[":[4],o:[7]},y[1]={w:[1],".":[2],"[":[4],o:[7]},y[2]={w:[2],i:[3,0],0:[3,0]},y[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},y[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},y[5]={"'":[4,0],o:8,l:[5,0]},y[6]={'"':[4,0],o:8,l:[6,0]};const x=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function C(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 T(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(x.test(t)?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)}function _(e){const t=[];let n,r,o,s,c,a,u,l=-1,i=0,f=0;const p=[];function m(){const t=e[l+1];if(5===i&&"'"===t||6===i&&'"'===t)return l++,o="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),f++},p[3]=()=>{if(f>0)f--,i=4,p[0]();else{if(f=0,void 0===r)return!1;if(r=T(r),!1===r)return!1;p[1]()}};null!==i;)if(l++,n=e[l],"\\"!==n||!m()){if(s=C(n),u=y[i],c=u[s]||u.l||8,8===c)return;if(i=c[0],void 0!==c[1]&&(a=p[c[1]],a&&(o=n,!1===a())))return;if(7===i)return t}}const v=new Map;function L(e,t){if(!h(e))return null;let n=v.get(t);if(n||(n=_(t),n&&v.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const e=o[n[s]];if(void 0===e)return null;o=e,s++}return o}const w=e=>e,O=e=>"",P="text",F=e=>0===e.length?"":e.join(""),N=e=>null==e?"":f(e)||b(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function S(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function $(e={}){const t=e.locale,n=function(e){const t=r(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(r(e.named.count)||r(e.named.n))?r(e.named.count)?e.named.count:r(e.named.n)?e.named.n:t:t}(e),o=h(e.pluralRules)&&m(t)&&p(e.pluralRules[t])?e.pluralRules[t]:S,s=h(e.pluralRules)&&m(t)&&p(e.pluralRules[t])?S:void 0,c=e.list||[],a=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);function u(t){const n=p(e.messages)?e.messages(t):!!h(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):O)}const l=b(e.processor)&&p(e.processor.normalize)?e.processor.normalize:F,i=b(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:N,f={list:e=>c[e],named:e=>a[e],plural:e=>e[o(n,e.length,s)],linked:(t,n)=>{const r=u(t)(f);return m(n)?(o=n,e.modifiers?e.modifiers[o]:w)(r):r;var o},message:u,type:b(e.processor)&&m(e.processor.type)?e.processor.type:P,interpolate:i,normalize:l};return f}function E(e,t,n={}){const{domain:r}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function I(e){throw e}function A(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const M=" ",j="\n",W=String.fromCharCode(8232),D=String.fromCharCode(8233);function R(e){const t=e;let n=0,r=1,o=1,s=0;const c=e=>"\r"===t[e]&&t[e+1]===j,a=e=>t[e]===D,u=e=>t[e]===W,l=e=>c(e)||(e=>t[e]===j)(e)||a(e)||u(e),i=e=>c(e)||a(e)||u(e)?j:t[e];function f(){return s=0,l(n)&&(r++,o=0),c(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>s,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+s),next:f,peek:function(){return c(n+s)&&s++,s++,t[n+s]},reset:function(){n=0,r=1,o=1,s=0},resetPeek:function(e=0){s=e},skipToPeek:function(){const e=n+s;for(;e!==n;)f();s=0}}}const J=void 0;function z(e,t={}){const n=!1!==t.location,r=R(e),o=()=>r.index(),s=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},c=s(),a=o(),u={currentType:14,offset:a,startLoc:c,endLoc:c,lastType:14,lastOffset:a,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},l=()=>u,{onError:i}=t;function f(e,t,r){e.endLoc=s(),e.currentType=t;const o={type:t};return n&&(o.loc=A(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const p=e=>f(e,14);function m(e,t){return e.currentChar()===t?(e.next(),t):(s(),"")}function d(e){let t="";for(;e.currentPeek()===M||e.currentPeek()===j;)t+=e.currentPeek(),e.peek();return t}function h(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===J)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function g(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===J)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,r="",o=!1)=>{const s=e.currentPeek();return"{"===s?"%"!==r&&t:"@"!==s&&s?"%"===s?(e.peek(),n(t,"%",!0)):"|"===s?!("%"!==r&&!o)||!(r===M||r===j):s===M?(e.peek(),n(!0,M,o)):s!==j||(e.peek(),n(!0,j,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function x(e,t){const n=e.currentChar();return n===J?J:t(n)?(e.next(),n):null}function C(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function T(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function _(e){return x(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function v(e){let t="",n="";for(;t=T(e);)n+=t;return n}function L(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return w(e,t,4);case"U":return w(e,t,6);default:return s(),""}}function w(e,t,n){m(e,t);let r="";for(let t=0;t<n;t++){const t=_(e);if(!t){s(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){h(e);const t=m(e,"|");return h(e),t}function P(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&s(),e.next(),n=f(t,2,"{"),h(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&s(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&h(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&s(),n=F(e,t)||p(t),t.braceNest=0,n;default:let r=!0,o=!0,c=!0;if(b(e))return t.braceNest>0&&s(),n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return s(),t.braceNest=0,N(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){h(e);let t="",n="";for(;t=C(e);)n+=t;return e.currentChar()===J&&s(),n}(e)),h(e),n;if(o=g(e,t))return n=f(t,6,function(e){h(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${v(e)}`):t+=v(e),e.currentChar()===J&&s(),t}(e)),h(e),n;if(c=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){h(e),m(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==j;for(;t=x(e,r);)n+="\\"===t?L(e):t;const o=e.currentChar();return o===j||o===J?(s(),o===j&&(e.next(),m(e,"'")),n):(m(e,"'"),n)}(e)),h(e),n;if(!r&&!o&&!c)return n=f(t,13,function(e){h(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==M&&e!==j;for(;t=x(e,r);)n+=t;return n}(e)),s(),h(e),n}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==j&&o!==M||s(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return h(e),e.next(),f(t,9,".");case":":return h(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(h(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(h(e),f(t,12,function(e){let t="",n="";for(;t=C(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===M||!t)&&(t===j?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(h(e),"{"===o?P(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===M?r:o===j?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&s(),t.braceNest=0,t.inLinked=!1,N(e,t))}}function N(e,t){let n={type:14};if(t.braceNest>0)return P(e,t)||p(t);if(t.inLinked)return F(e,t)||p(t);const r=e.currentChar();switch(r){case"{":return P(e,t)||p(t);case"}":return s(),e.next(),f(t,3,"}");case"@":return F(e,t)||p(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(y(e))return f(t,0,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"}"!==r&&"@"!==r&&r?"%"===r?y(e)?(n+=r,e.next(),t(n)):n:"|"===r?n:r===M||r===j?y(e)?(n+=r,e.next(),t(n)):b(e)?n:(n+=r,e.next(),t(n)):(n+=r,e.next(),t(n)):n};return t("")}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:c}=u;return u.lastType=e,u.lastOffset=t,u.lastStartLoc=n,u.lastEndLoc=c,u.offset=o(),u.startLoc=s(),r.currentChar()===J?f(u,14):N(r,u)},currentOffset:o,currentPosition:s,context:l}}const H=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function U(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function V(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function s(e,t){const n=e.context(),s=r(3,n.offset,n.startLoc);return s.value=t,o(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(5,s,c);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(4,s,c);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(9,s,c);return a.value=t.replace(H,U),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let s=e.nextToken();if(9===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:c}=n,a=r(8,s,c);return 12!==t.type?(a.value="",o(a,s,c),{nextConsumeToken:t,node:a}):(null==t.value&&G(t),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(10!==s.type&&G(s),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 11:null==s.value&&G(s),n.key=function(e,t){const n=e.context(),s=r(7,n.offset,n.startLoc);return s.value=t,o(s,e.currentOffset(),e.currentPosition()),s}(e,s.value||"");break;case 5:null==s.value&&G(s),n.key=u(e,s.value||"");break;case 6:null==s.value&&G(s),n.key=c(e,s.value||"");break;case 7:null==s.value&&G(s),n.key=l(e,s.value||"");break;default:const t=e.context(),a=r(7,t.offset,t.startLoc);return a.value="",o(a,t.offset,t.startLoc),n.key=a,o(n,t.offset,t.startLoc),{nextConsumeToken:s,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let a=null;do{const t=a||e.nextToken();switch(a=null,t.type){case 0:null==t.value&&G(t),n.items.push(s(e,t.value||""));break;case 6:null==t.value&&G(t),n.items.push(c(e,t.value||""));break;case 5:null==t.value&&G(t),n.items.push(u(e,t.value||""));break;case 7:null==t.value&&G(t),n.items.push(l(e,t.value||""));break;case 8:const r=i(e);n.items.push(r.node),a=r.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function p(e){const t=e.context(),{offset:n,startLoc:s}=t,c=f(e);return 14===t.currentType?c:function(e,t,n,s){const c=e.context();let a=0===s.items.length;const u=r(1,t,n);u.cases=[],u.cases.push(s);do{const t=f(e);a||(a=0===t.items.length),u.cases.push(t)}while(14!==c.currentType);return o(u,e.currentOffset(),e.currentPosition()),u}(e,n,s,c)}return{parse:function(n){const s=z(n,a({},e)),c=s.context(),u=r(0,c.offset,c.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=p(s),o(u,s.currentOffset(),s.currentPosition()),u}}}function G(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function K(e,t){for(let n=0;n<e.length;n++)q(e[n],t)}function q(e,t){switch(e.type){case 1:K(e.cases,t),t.helper("plural");break;case 2:K(e.items,t);break;case 6:q(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function B(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&q(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Y(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Y(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(Y(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(Y(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Y(e,t.key),t.modifier&&(e.push(", "),Y(e,t.modifier)),e.push(")")}(e,t);break;case 8:case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:case 3:e.push(JSON.stringify(t.value),t)}}function Z(e,t={}){const n=a({},t),r=V(n).parse(e);return B(r,n),((e,t={})=>{const n=m(t.mode)?t.mode:"normal",r=m(t.filename)?t.filename:"message.intl",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,s={source:e.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function c(e,t){s.code+=e}function a(e,t=!0){const n=t?r:"";c(o?n+" ".repeat(e):n)}return{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&a(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&a(t)},newline:function(){a(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:!!t.sourceMap,breakLineCode:null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),Y(c,e),c.deindent(o),c.push("}");const{code:a,map:u}=c.context();return{ast:e,code:a,map:u?u.toJSON():void 0}})(r,n)}let Q=null;const X=ee("function:translate");function ee(e){return t=>Q&&Q.emit(e,t)}const te={0:"Not found '{key}' key in '{locale}' locale messages.",1:"Fall back to translate '{key}' key with '{target}' locale.",2:"Cannot format a number value due to not supported Intl.NumberFormat.",3:"Fall back to number format '{key}' key with '{target}' locale.",4:"Cannot format a date value due to not supported Intl.DateTimeFormat.",5:"Fall back to datetime format '{key}' key with '{target}' locale."};const ne="9.1.3";let re;let oe=null;let se=0;function ce(e,t,n,r,o){const{missing:s}=e;if(null!==s){const r=s(e,n,t,o);return m(r)?r:t}return t}function ae(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];for(;f(e);)e=ue(o,e,t);const s=f(t)?t:b(t)?t.default?t.default:null:t;e=m(s)?[s]:s,f(e)&&ue(o,e,!1),r.__localeChainCache.set(n,o)}return o}function ue(e,t,n){let r=!0;for(let o=0;o<t.length&&d(r);o++){m(t[o])&&(r=le(e,t[o],n))}return r}function le(e,t,n){let r;const o=t.split("-");do{r=ie(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function ie(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(f(n)||b(n))&&n[o]&&(r=n[o])}return r}const fe=e=>e;let pe=Object.create(null);const me=()=>"",de=e=>p(e);function he(e,t,r,o,s,c){const{messageCompiler:a,warnHtmlMessage:u}=e;if(de(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}const l=a(o,function(e,t,r,o,s,c){return{warnHtmlMessage:s,onError:e=>{throw c&&c(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,s,0,u,c));return l.locale=r,l.key=t,l.source=o,l}function ke(...e){const[t,n,o]=e,c={};if(!m(t)&&!r(t)&&!de(t))throw Error(14);const a=r(t)?String(t):(de(t),t);return r(n)?c.plural=n:m(n)?c.default=n:b(n)&&!s(n)?c.named=n:f(n)&&(c.list=n),r(o)?c.plural=o:m(o)?c.default=o:b(o)&&Object.assign(c,o),[a,c]}function ge(...e){const[t,n,o,s]=e;let c,a={},u={};if(m(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Error(16);c=new Date(t);try{c.toISOString()}catch(e){throw Error(16)}}else if("[object Date]"===g(t)){if(isNaN(t.getTime()))throw Error(15);c=t}else{if(!r(t))throw Error(14);c=t}return m(n)?a.key=n:b(n)&&(a=n),m(o)?a.locale=o:b(o)&&(u=o),b(s)&&(u=s),[a.key||"",c,a,u]}function be(...e){const[t,n,o,s]=e;let c={},a={};if(!r(t))throw Error(14);const u=t;return m(n)?c.key=n:b(n)&&(c=n),m(o)?c.locale=o:b(o)&&(a=o),b(s)&&(a=s),[c.key||"",u,c,a]}return e.DEFAULT_MESSAGE_DATA_TYPE=P,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION=ne,e.clearCompileCache=function(){pe=Object.create(null)},e.clearDateTimeFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}},e.clearNumberFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}},e.compileToFunction=function(e,t={}){{const n=(t.onCacheKey||fe)(e),r=pe[n];if(r)return r;let o=!1;const s=t.onError||I;t.onError=e=>{o=!0,s(e)};const{code:c}=Z(e,t),a=new Function(`return ${c}`)();return o?a:pe[n]=a}},e.createCompileError=E,e.createCoreContext=function(e={}){const t=m(e.version)?e.version:ne,n=m(e.locale)?e.locale:"en-US",r=f(e.fallbackLocale)||b(e.fallbackLocale)||m(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=b(e.messages)?e.messages:{[n]:{}},a=b(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},u=b(e.numberFormats)?e.numberFormats:{[n]:{}},l=Object.assign({},e.modifiers||{},{upper:e=>m(e)?e.toUpperCase():e,lower:e=>m(e)?e.toLowerCase():e,capitalize:e=>m(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),i=e.pluralRules||{},k=p(e.missing)?e.missing:null,g=!d(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,y=!d(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,x=!!e.fallbackFormat,C=!!e.unresolving,T=p(e.postTranslation)?e.postTranslation:null,_=b(e.processor)?e.processor:null,v=!d(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter,w=p(e.messageCompiler)?e.messageCompiler:re,O=p(e.onWarn)?e.onWarn:c,P=e,F=h(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,N=h(P.__numberFormatters)?P.__numberFormatters:new Map,S=h(P.__meta)?P.__meta:{};return se++,{version:t,cid:se,locale:n,fallbackLocale:r,messages:s,datetimeFormats:a,numberFormats:u,modifiers:l,pluralRules:i,missing:k,missingWarn:g,fallbackWarn:y,fallbackFormat:x,unresolving:C,postTranslation:T,processor:_,warnHtmlMessage:v,escapeParameter:L,messageCompiler:w,onWarn:O,__datetimeFormatters:F,__numberFormatters:N,__meta:S}},e.createCoreError=function(e){return E(e,null,void 0)},e.createMessageContext=$,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o}=e,{__datetimeFormatters:c}=e,[a,u,l,i]=ge(...t);d(l.missingWarn),d(l.fallbackWarn);const f=!!l.part,p=m(l.locale)?l.locale:e.locale,h=ae(e,o,p);if(!m(a)||""===a)return new Intl.DateTimeFormat(p).format(u);let k,g={},y=null;for(let t=0;t<h.length&&(k=h[t],g=n[k]||{},y=g[a],!b(y));t++)ce(e,a,k,0,"datetime format");if(!b(y)||!m(k))return r?-1:a;let x=`${k}__${a}`;s(i)||(x=`${x}__${JSON.stringify(i)}`);let C=c.get(x);return C||(C=new Intl.DateTimeFormat(k,Object.assign({},y,i)),c.set(x,C)),f?C.formatToParts(u):C.format(u)},e.getAdditionalMeta=()=>oe,e.getDevToolsHook=function(){return Q},e.getLocaleChain=ae,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&h(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(te[e],...n)},e.handleFlatJson=function e(t){if(!h(t))return t;for(const n in t)if(i(t,n))if(n.includes(".")){const r=n.split("."),o=r.length-1;let s=t;for(let e=0;e<o;e++)r[e]in s||(s[r[e]]={}),s=s[r[e]];s[r[o]]=t[n],delete t[n],h(s[r[o]])&&e(s[r[o]])}else h(t[n])&&e(t[n]);return t},e.handleMissing=ce,e.initI18nDevTools=function(e,t,n){Q&&Q.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=de,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,fallbackLocale:o}=e,{__numberFormatters:c}=e,[a,u,l,i]=be(...t);d(l.missingWarn),d(l.fallbackWarn);const f=!!l.part,p=m(l.locale)?l.locale:e.locale,h=ae(e,o,p);if(!m(a)||""===a)return new Intl.NumberFormat(p).format(u);let k,g={},y=null;for(let t=0;t<h.length&&(k=h[t],g=n[k]||{},y=g[a],!b(y));t++)ce(e,a,k,0,"number format");if(!b(y)||!m(k))return r?-1:a;let x=`${k}__${a}`;s(i)||(x=`${x}__${JSON.stringify(i)}`);let C=c.get(x);return C||(C=new Intl.NumberFormat(k,Object.assign({},y,i)),c.set(x,C)),f?C.formatToParts(u):C.format(u)},e.parse=_,e.parseDateTimeArgs=ge,e.parseNumberArgs=be,e.parseTranslateArgs=ke,e.registerMessageCompiler=function(e){re=e},e.resolveValue=L,e.setAdditionalMeta=e=>{oe=e},e.setDevToolsHook=function(e){Q=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:s,fallbackLocale:c,messages:a}=e,[l,i]=ke(...t),k=(d(i.missingWarn),d(i.fallbackWarn),d(i.escapeParameter)?i.escapeParameter:e.escapeParameter),g=!!i.resolvedMessage,b=m(i.default)||d(i.default)?d(i.default)?l:i.default:n?l:"",y=n||""!==b,x=m(i.locale)?i.locale:e.locale;k&&function(e){f(e.list)?e.list=e.list.map((e=>m(e)?u(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{m(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(i);let[C,T,_]=g?[l,x,a[x]||{}]:function(e,t,n,r,o,s){const{messages:c}=e,a=ae(e,r,n);let u,l={},i=null;const f="translate";for(let n=0;n<a.length&&(u=a[n],l=c[u]||{},null===(i=L(l,t))&&(i=l[t]),!m(i)&&!p(i));n++){const n=ce(e,t,u,0,f);n!==t&&(i=n)}return[i,u,l]}(e,l,x,c),v=l;if(g||m(C)||de(C)||y&&(C=b,v=C),!(g||(m(C)||de(C))&&m(T)))return s?-1:l;let w=!1;const O=de(C)?C:he(e,l,T,C,v,(()=>{w=!0}));if(w)return C;const P=function(e,t,n){return t(n)}(0,O,$(function(e,t,n,o){const{modifiers:s,pluralRules:c}=e,a={locale:t,modifiers:s,pluralRules:c,messages:r=>{const o=L(n,r);if(m(o)){let n=!1;const s=he(e,r,t,o,r,(()=>{n=!0}));return n?me:s}return de(o)?o:me}};e.processor&&(a.processor=e.processor);o.list&&(a.list=o.list);o.named&&(a.named=o.named);r(o.plural)&&(a.pluralIndex=o.plural);return a}(e,T,_,i)));return o?o(P):P},e.translateDevTools=X,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,ae(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({}); |
{ | ||
"name": "@intlify/core-base", | ||
"version": "9.1.2", | ||
"version": "9.1.3", | ||
"description": "@intlify/core-base", | ||
@@ -36,8 +36,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@intlify/devtools-if": "9.1.2", | ||
"@intlify/message-compiler": "9.1.2", | ||
"@intlify/message-resolver": "9.1.2", | ||
"@intlify/runtime": "9.1.2", | ||
"@intlify/shared": "9.1.2", | ||
"@intlify/vue-devtools": "9.1.2" | ||
"@intlify/devtools-if": "9.1.3", | ||
"@intlify/message-compiler": "9.1.3", | ||
"@intlify/message-resolver": "9.1.3", | ||
"@intlify/runtime": "9.1.3", | ||
"@intlify/shared": "9.1.3", | ||
"@intlify/vue-devtools": "9.1.3" | ||
}, | ||
@@ -44,0 +44,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
378732
8869
+ Added@intlify/devtools-if@9.1.3(transitive)
+ Added@intlify/message-compiler@9.1.3(transitive)
+ Added@intlify/message-resolver@9.1.3(transitive)
+ Added@intlify/runtime@9.1.3(transitive)
+ Added@intlify/shared@9.1.3(transitive)
+ Added@intlify/vue-devtools@9.1.3(transitive)
- Removed@intlify/devtools-if@9.1.2(transitive)
- Removed@intlify/message-compiler@9.1.2(transitive)
- Removed@intlify/message-resolver@9.1.2(transitive)
- Removed@intlify/runtime@9.1.2(transitive)
- Removed@intlify/shared@9.1.2(transitive)
- Removed@intlify/vue-devtools@9.1.2(transitive)
Updated@intlify/devtools-if@9.1.3
Updated@intlify/runtime@9.1.3
Updated@intlify/shared@9.1.3
Updated@intlify/vue-devtools@9.1.3