Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@intlify/core

Package Overview
Dependencies
Maintainers
2
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intlify/core - npm Package Compare versions

Comparing version 9.2.0-beta.38 to 9.2.0-beta.39

2

dist/core.cjs.js
/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 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]"===d(e),o=e=>_(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 s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const l=Array.isArray,u=e=>"function"==typeof e,i=e=>"string"==typeof e,f=e=>"boolean"==typeof e,m=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),_=e=>"[object Object]"===d(e),k={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function h(e,t,n={}){const{domain:r,messages:o,args:c}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=r,a}function g(e){throw e}function b(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const T=String.fromCharCode(8232),y=String.fromCharCode(8233);function L(e){const t=e;let n=0,r=1,o=1,c=0;const a=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===y,l=e=>t[e]===T,u=e=>a(e)||(e=>"\n"===t[e])(e)||s(e)||l(e),i=e=>a(e)||s(e)||l(e)?"\n":t[e];function f(){return c=0,u(n)&&(r++,o=0),a(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 a(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 N=void 0;function E(e,t={}){const n=!1!==t.location,r=L(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},a=c(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=b(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(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 _(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function g(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(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 y(e,t){const n=e.currentChar();return n===N?N:t(n)?(e.next(),n):null}function E(e){return y(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 y(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function A(e){return y(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=C(e);)n+=t;return n}function x(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!T(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(T(e))t+=n,e.next();else{if(g(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function I(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return v(e,t,4);case"U":return v(e,t,6);default:return c(),""}}function v(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=A(e);if(!t){c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){_(e);const t=p(e,"|");return _(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&c(),n=F(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(g(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,w(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){_(e);let t="",n="";for(;t=E(e);)n+=t;return e.currentChar()===N&&c(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===N&&c(),t}(e)),_(e),n;if(a=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){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=y(e,r);)n+="\\"===t?I(e):t;const o=e.currentChar();return"\n"===o||o===N?(c(),"\n"===o&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!o&&!a)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=y(e,r);)n+=t;return n}(e)),c(),n.value,_(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 _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return g(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)?(_(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)?(_(e),f(t,12,function(e){let t="",n="";for(;t=E(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)?(_(e),"{"===o?S(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,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return S(e,t)||m(t);if(t.inLinked)return F(e,t)||m(t);switch(e.currentChar()){case"{":return S(e,t)||m(t);case"}":return c(),e.next(),f(t,3,"}");case"@":return F(e,t)||m(t);default:if(g(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?f(t,0,x(e)):f(t,4,function(e){_(e);return"%"!==e.currentChar()&&c(),e.next(),"%"}(e));if(T(e))return f(t,0,x(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=o(),l.startLoc=c(),r.currentChar()===N?f(l,14):w(r,l)},currentOffset:o,currentPosition:c,context:u}}const C=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function A(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 O(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 s(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(5,c,a);return s.index=parseInt(t,10),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(4,c,a);return s.key=t,e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(9,c,a);return s.value=t.replace(C,A),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}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:a}=n,s=r(8,c,a);return 12!==t.type?(n.lastStartLoc,s.value="",o(s,c,a),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,x(t)),s.value=t.value||"",o(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(10!==c.type&&(t.lastStartLoc,x(c)),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 11:null==c.value&&(t.lastStartLoc,x(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&&(t.lastStartLoc,x(c)),n.key=l(e,c.value||"");break;case 6:null==c.value&&(t.lastStartLoc,x(c)),n.key=s(e,c.value||"");break;case 7:null==c.value&&(t.lastStartLoc,x(c)),n.key=u(e,c.value||"");break;default:t.lastStartLoc;const a=e.context(),i=r(7,a.offset,a.startLoc);return i.value="",o(i,a.offset,a.startLoc),n.key=i,o(n,a.offset,a.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 a=null;do{const r=a||e.nextToken();switch(a=null,r.type){case 0:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(c(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),a=o.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 m(e){const t=e.context(),{offset:n,startLoc:c}=t,a=f(e);return 14===t.currentType?a:function(e,t,n,c){const a=e.context();let s=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);s||(s=0===t.items.length),l.cases.push(t)}while(14!==a.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,a)}return{parse:function(n){const c=E(n,a({},e)),s=c.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(c),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,c.currentOffset(),c.currentPosition()),l}}}function x(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 I(e,t){for(let n=0;n<e.length;n++)v(e[n],t)}function v(e,t){switch(e.type){case 1:I(e.cases,t),t.helper("plural");break;case 2:I(e.items,t);break;case 6:v(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function P(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&&v(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function S(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?S(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&&(S(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&&(S(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")}(`),S(e,t.key),t.modifier?(e.push(", "),S(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3: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)}}function F(e,t={}){const n=a({},t),r=O(n).parse(e);return P(r,n),((e,t={})=>{const n=i(t.mode)?t.mode:"normal",r=i(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,c=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:c}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:c,indentLevel:0};function s(e,t){a.code+=e}function l(e,t=!0){const n=t?o:"";s(c?n+" ".repeat(e):n)}return{context:()=>a,push:s,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:c,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),S(l,e),l.deindent(a),l.push("}");const{code:u,map:f}=l.context();return{ast:e,code:u,map:f?f.toJSON():void 0}})(r,n)}const w=[];w[0]={w:[0],i:[3,0],"[":[4],o:[7]},w[1]={w:[1],".":[2],"[":[4],o:[7]},w[2]={w:[2],i:[3,0],0:[3,0]},w[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},w[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},w[5]={"'":[4,0],o:8,l:[5,0]},w[6]={'"':[4,0],o:8,l:[6,0]};const D=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M(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 R(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,D.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function W(e){const t=[];let n,r,o,c,a,s,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=R(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(c=M(n),l=w[i],a=l[c]||l.l||8,8===a)return;if(i=a[0],void 0!==a[1]&&(s=m[a[1]],s&&(o=n,!1===s())))return;if(7===i)return t}}const $=new Map;function U(e,t){return m(e)?e[t]:null}function j(e,t){if(!m(e))return null;let n=$.get(t);if(n||(n=W(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}const K=e=>e,V=e=>"",G="text",B=e=>0===e.length?"":e.join(""),H=e=>null==e?"":l(e)||_(e)&&e.toString===p?JSON.stringify(e,null,2):String(e);function X(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function z(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=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?e.pluralRules[t]:X,c=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?X:void 0,a=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function f(t){const n=u(e.messages)?e.messages(t):!!m(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):V)}const p=_(e.processor)&&u(e.processor.normalize)?e.processor.normalize:B,d=_(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:H,k={list:e=>a[e],named:e=>s[e],plural:e=>e[o(r,e.length,c)],linked:(t,...n)=>{const[r,o]=n;let c="text",a="";1===n.length?m(r)?(a=r.modifier||a,c=r.type||c):i(r)&&(a=r||a):2===n.length&&(i(r)&&(a=r||a),i(o)&&(c=o||c));let s=f(t)(k);return"vnode"===c&&l(s)&&a&&(s=s[0]),a?(u=a,e.modifiers?e.modifiers[u]:K)(s,c):s;var u},message:f,type:_(e.processor)&&i(e.processor.type)?e.processor.type:"text",interpolate:d,normalize:p};return k}const J="i18n:init";let Y=null;function Z(e){Y=e}function Q(){return Y}function q(e,t,n){Y&&Y.emit(J,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ee=te("function:translate");function te(e){return t=>Y&&Y.emit(e,t)}const ne={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},re={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function oe(t,...n){return function(t,...n){return 1===n.length&&m(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(re[t],...n)}function ce(e,t,n){return[...new Set([n,...l(t)?t:m(t)?Object.keys(t):i(t)?[t]:[n]])]}function ae(e,t,n){const r=i(n)?n:me,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let c=o.__localeChainCache.get(r);if(!c){c=[];let e=[n];for(;l(e);)e=se(c,e,t);const a=l(t)||!_(t)?t:t.default?t.default:null;e=i(a)?[a]:a,l(e)&&se(c,e,!1),o.__localeChainCache.set(r,c)}return c}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&f(r);o++){const c=t[o];i(c)&&(r=le(e,t[o],n))}return r}function le(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),(l(n)||_(n))&&n[o]&&(r=n[o])}return r}const ie="9.2.0-beta.38",fe=-1,me="en-US",pe="",de=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let _e,ke,he;function ge(e){_e=e}function be(e){ke=e}function Te(e){he=e}let ye=null;const Le=e=>{ye=e},Ne=()=>ye;let Ee=null;const Ce=e=>{Ee=e},Ae=()=>Ee;let Oe=0;function xe(e={}){const t=i(e.version)?e.version:"9.2.0-beta.38",n=i(e.locale)?e.locale:me,o=l(e.fallbackLocale)||_(e.fallbackLocale)||i(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=_(e.messages)?e.messages:{[n]:{}},p=_(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=_(e.numberFormats)?e.numberFormats:{[n]:{}},k=a({},e.modifiers||{},{upper:(e,t)=>"text"===t&&i(e)?e.toUpperCase():"vnode"===t&&m(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&i(e)?e.toLowerCase():"vnode"===t&&m(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&i(e)?de(e):"vnode"===t&&m(e)&&"__v_isVNode"in e?de(e.children):e}),h=e.pluralRules||{},g=u(e.missing)?e.missing:null,b=!f(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,T=!f(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,L=!!e.unresolving,N=u(e.postTranslation)?e.postTranslation:null,E=_(e.processor)?e.processor:null,C=!f(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,O=u(e.messageCompiler)?e.messageCompiler:_e,x=u(e.messageResolver)?e.messageResolver:ke||U,I=u(e.localeFallbacker)?e.localeFallbacker:he||ce,v=m(e.fallbackContext)?e.fallbackContext:void 0,P=u(e.onWarn)?e.onWarn:c,S=e,F=m(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,w=m(S.__numberFormatters)?S.__numberFormatters:new Map,D=m(S.__meta)?S.__meta:{};Oe++;const M={version:t,cid:Oe,locale:n,fallbackLocale:o,messages:s,modifiers:k,pluralRules:h,missing:g,missingWarn:b,fallbackWarn:T,fallbackFormat:y,unresolving:L,postTranslation:N,processor:E,warnHtmlMessage:C,escapeParameter:A,messageCompiler:O,messageResolver:x,localeFallbacker:I,fallbackContext:v,onWarn:P,__meta:D};return M.datetimeFormats=p,M.numberFormats=d,M.__datetimeFormatters=F,M.__numberFormatters=w,M}function Ie(e,t){return e instanceof RegExp?e.test(t):e}function ve(e,t){return e instanceof RegExp?e.test(t):e}function Pe(e,t,n,r,o){const{missing:c,onWarn:a}=e;if(null!==c){const r=c(e,n,t,o);return i(r)?r:t}return t}function Se(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Fe=e=>e;let we=Object.create(null);function De(){we=Object.create(null)}function Me(e,t={}){{const n=(t.onCacheKey||Fe)(e),r=we[n];if(r)return r;let o=!1;const c=t.onError||g;t.onError=e=>{o=!0,c(e)};const{code:a}=F(e,t),s=new Function(`return ${a}`)();return o?s:we[n]=s}}let Re=k.__EXTEND_POINT__;const We=()=>++Re,$e={INVALID_ARGUMENT:Re,INVALID_DATE_ARGUMENT:We(),INVALID_ISO_DATE_ARGUMENT:We(),__EXTEND_POINT__:We()};function Ue(e){return h(e,null,void 0)}const je=()=>"",Ke=e=>u(e);function Ve(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,messageCompiler:a,fallbackLocale:u,messages:p}=e,[d,_]=He(...t),k=f(_.missingWarn)?_.missingWarn:e.missingWarn,h=f(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,g=f(_.escapeParameter)?_.escapeParameter:e.escapeParameter,b=!!_.resolvedMessage,T=i(_.default)||f(_.default)?f(_.default)?a?d:()=>d:_.default:r?a?d:()=>d:"",y=r||""!==T,L=i(_.locale)?_.locale:e.locale;g&&function(e){l(e.list)?e.list=e.list.map((e=>i(e)?s(e):e)):m(e.named)&&Object.keys(e.named).forEach((t=>{i(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(_);let[N,E,C]=b?[d,L,p[L]||{}]:Ge(e,d,L,u,h,k),A=N,O=d;if(b||i(A)||Ke(A)||y&&(A=T,O=A),!(b||(i(A)||Ke(A))&&i(E)))return c?-1:d;let x=!1;const I=Ke(A)?A:Be(e,d,E,A,O,(()=>{x=!0}));if(x)return A;const v=function(e,t,r,o){const{modifiers:c,pluralRules:a,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:f,fallbackContext:m}=e,p=n=>{let o=s(r,n);if(null==o&&m){const[,,e]=Ge(m,n,t,l,u,f);o=s(e,n)}if(i(o)){let r=!1;const c=Be(e,n,t,o,n,(()=>{r=!0}));return r?je:c}return Ke(o)?o:je},d={locale:t,modifiers:c,pluralRules:a,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);n(o.plural)&&(d.pluralIndex=o.plural);return d}(e,E,C,_),P=function(e,t,n){return t(n)}(0,I,z(v));return o?o(P,d):P}function Ge(e,t,n,r,o,c){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:f}=e,m=f(e,r,n);let p,d={},_=null;for(let n=0;n<m.length&&(p=m[n],d=a[p]||{},null===(_=l(d,t))&&(_=d[t]),!i(_)&&!u(_));n++){const n=Pe(e,t,p,0,"translate");n!==t&&(_=n)}return[_,p,d]}function Be(e,n,r,o,c,a){const{messageCompiler:s,warnHtmlMessage:l}=e;if(Ke(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}if(null==s){const e=()=>o;return e.locale=r,e.key=n,e}const u=s(o,function(e,n,r,o,c,a){return{warnHtmlMessage:c,onError:e=>{throw a&&a(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,l,a));return u.locale=r,u.key=n,u.source=o,u}function He(...e){const[t,r,c]=e,s={};if(!i(t)&&!n(t)&&!Ke(t))throw Error($e.INVALID_ARGUMENT);const u=n(t)?String(t):(Ke(t),t);return n(r)?s.plural=r:i(r)?s.default=r:_(r)&&!o(r)?s.named=r:l(r)&&(s.list=r),n(c)?s.plural=c:i(c)?s.default=c:_(c)&&a(s,c),[u,s]}function Xe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[m,p,d,k]=Je(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=i(d.locale)?d.locale:e.locale,b=l(e,c,g);if(!i(m)||""===m)return new Intl.DateTimeFormat(g,k).format(p);let T,y={},L=null;for(let t=0;t<b.length&&(T=b[t],y=n[T]||{},L=y[m],!_(L));t++)Pe(e,m,T,0,"datetime format");if(!_(L)||!i(T))return r?-1:m;let N=`${T}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let E=u.get(N);return E||(E=new Intl.DateTimeFormat(T,a({},L,k)),u.set(N,E)),h?E.formatToParts(p):E.format(p)}const ze=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Je(...e){const[t,r,o,c]=e,a={};let s,l={};if(i(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error($e.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Error($e.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===d(t)){if(isNaN(t.getTime()))throw Error($e.INVALID_DATE_ARGUMENT);s=t}else{if(!n(t))throw Error($e.INVALID_ARGUMENT);s=t}return i(r)?a.key=r:_(r)&&Object.keys(r).forEach((e=>{ze.includes(e)?l[e]=r[e]:a[e]=r[e]})),i(o)?a.locale=o:_(o)&&(l=o),_(c)&&(l=c),[a.key||"",s,a,l]}function Ye(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ze(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[m,p,d,k]=qe(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=i(d.locale)?d.locale:e.locale,b=l(e,c,g);if(!i(m)||""===m)return new Intl.NumberFormat(g,k).format(p);let T,y={},L=null;for(let t=0;t<b.length&&(T=b[t],y=n[T]||{},L=y[m],!_(L));t++)Pe(e,m,T,0,"number format");if(!_(L)||!i(T))return r?-1:m;let N=`${T}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let E=u.get(N);return E||(E=new Intl.NumberFormat(T,a({},L,k)),u.set(N,E)),h?E.formatToParts(p):E.format(p)}const Qe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function qe(...e){const[t,r,o,c]=e,a={};let s={};if(!n(t))throw Error($e.INVALID_ARGUMENT);const l=t;return i(r)?a.key=r:_(r)&&Object.keys(r).forEach((e=>{Qe.includes(e)?s[e]=r[e]:a[e]=r[e]})),i(o)?a.locale=o:_(o)&&(s=o),_(c)&&(s=c),[a.key||"",l,a,s]}function et(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}ge(Me),be(j),Te(ae);export{k as CompileErrorCodes,$e as CoreErrorCodes,ne as CoreWarnCodes,ze as DATETIME_FORMAT_OPTIONS_KEYS,me as DEFAULT_LOCALE,G as DEFAULT_MESSAGE_DATA_TYPE,pe as MISSING_RESOLVE_VALUE,fe as NOT_REOSLVED,Qe as NUMBER_FORMAT_OPTIONS_KEYS,ie as VERSION,De as clearCompileCache,Ye as clearDateTimeFormat,et as clearNumberFormat,Me as compileToFunction,h as createCompileError,xe as createCoreContext,Ue as createCoreError,z as createMessageContext,Xe as datetime,ae as fallbackWithLocaleChain,ce as fallbackWithSimple,Ne as getAdditionalMeta,Q as getDevToolsHook,Ae as getFallbackContext,oe as getWarnMessage,Pe as handleMissing,q as initI18nDevTools,Ke as isMessageFunction,Ie as isTranslateFallbackWarn,ve as isTranslateMissingWarn,Ze as number,W as parse,Je as parseDateTimeArgs,qe as parseNumberArgs,He as parseTranslateArgs,Te as registerLocaleFallbacker,ge as registerMessageCompiler,be as registerMessageResolver,j as resolveValue,U as resolveWithKeyValue,Le as setAdditionalMeta,Z as setDevToolsHook,Ce as setFallbackContext,Ve as translate,ee as translateDevTools,Se 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]"===d(e),o=e=>_(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 s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const l=Array.isArray,u=e=>"function"==typeof e,i=e=>"string"==typeof e,f=e=>"boolean"==typeof e,m=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),_=e=>"[object Object]"===d(e),k={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function h(e,t,n={}){const{domain:r,messages:o,args:c}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=r,a}function g(e){throw e}function b(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const T=String.fromCharCode(8232),y=String.fromCharCode(8233);function L(e){const t=e;let n=0,r=1,o=1,c=0;const a=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===y,l=e=>t[e]===T,u=e=>a(e)||(e=>"\n"===t[e])(e)||s(e)||l(e),i=e=>a(e)||s(e)||l(e)?"\n":t[e];function f(){return c=0,u(n)&&(r++,o=0),a(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 a(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 N=void 0;function E(e,t={}){const n=!1!==t.location,r=L(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},a=c(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=b(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(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 _(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function g(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(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 y(e,t){const n=e.currentChar();return n===N?N:t(n)?(e.next(),n):null}function E(e){return y(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 y(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function A(e){return y(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=C(e);)n+=t;return n}function x(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!T(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(T(e))t+=n,e.next();else{if(g(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function I(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return v(e,t,4);case"U":return v(e,t,6);default:return c(),""}}function v(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=A(e);if(!t){c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){_(e);const t=p(e,"|");return _(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&c(),n=F(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(g(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,w(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){_(e);let t="",n="";for(;t=E(e);)n+=t;return e.currentChar()===N&&c(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===N&&c(),t}(e)),_(e),n;if(a=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){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=y(e,r);)n+="\\"===t?I(e):t;const o=e.currentChar();return"\n"===o||o===N?(c(),"\n"===o&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!o&&!a)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=y(e,r);)n+=t;return n}(e)),c(),n.value,_(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 _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return g(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)?(_(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)?(_(e),f(t,12,function(e){let t="",n="";for(;t=E(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)?(_(e),"{"===o?S(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,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return S(e,t)||m(t);if(t.inLinked)return F(e,t)||m(t);switch(e.currentChar()){case"{":return S(e,t)||m(t);case"}":return c(),e.next(),f(t,3,"}");case"@":return F(e,t)||m(t);default:if(g(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?f(t,0,x(e)):f(t,4,function(e){_(e);return"%"!==e.currentChar()&&c(),e.next(),"%"}(e));if(T(e))return f(t,0,x(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=o(),l.startLoc=c(),r.currentChar()===N?f(l,14):w(r,l)},currentOffset:o,currentPosition:c,context:u}}const C=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function A(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 O(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 s(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(5,c,a);return s.index=parseInt(t,10),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(4,c,a);return s.key=t,e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(9,c,a);return s.value=t.replace(C,A),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}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:a}=n,s=r(8,c,a);return 12!==t.type?(n.lastStartLoc,s.value="",o(s,c,a),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,x(t)),s.value=t.value||"",o(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(10!==c.type&&(t.lastStartLoc,x(c)),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 11:null==c.value&&(t.lastStartLoc,x(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&&(t.lastStartLoc,x(c)),n.key=l(e,c.value||"");break;case 6:null==c.value&&(t.lastStartLoc,x(c)),n.key=s(e,c.value||"");break;case 7:null==c.value&&(t.lastStartLoc,x(c)),n.key=u(e,c.value||"");break;default:t.lastStartLoc;const a=e.context(),i=r(7,a.offset,a.startLoc);return i.value="",o(i,a.offset,a.startLoc),n.key=i,o(n,a.offset,a.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 a=null;do{const r=a||e.nextToken();switch(a=null,r.type){case 0:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(c(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),a=o.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 m(e){const t=e.context(),{offset:n,startLoc:c}=t,a=f(e);return 14===t.currentType?a:function(e,t,n,c){const a=e.context();let s=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);s||(s=0===t.items.length),l.cases.push(t)}while(14!==a.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,a)}return{parse:function(n){const c=E(n,a({},e)),s=c.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(c),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,c.currentOffset(),c.currentPosition()),l}}}function x(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 I(e,t){for(let n=0;n<e.length;n++)v(e[n],t)}function v(e,t){switch(e.type){case 1:I(e.cases,t),t.helper("plural");break;case 2:I(e.items,t);break;case 6:v(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function P(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&&v(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function S(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?S(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&&(S(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&&(S(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")}(`),S(e,t.key),t.modifier?(e.push(", "),S(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3: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)}}function F(e,t={}){const n=a({},t),r=O(n).parse(e);return P(r,n),((e,t={})=>{const n=i(t.mode)?t.mode:"normal",r=i(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,c=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:c}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:c,indentLevel:0};function s(e,t){a.code+=e}function l(e,t=!0){const n=t?o:"";s(c?n+" ".repeat(e):n)}return{context:()=>a,push:s,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:c,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),S(l,e),l.deindent(a),l.push("}");const{code:u,map:f}=l.context();return{ast:e,code:u,map:f?f.toJSON():void 0}})(r,n)}const w=[];w[0]={w:[0],i:[3,0],"[":[4],o:[7]},w[1]={w:[1],".":[2],"[":[4],o:[7]},w[2]={w:[2],i:[3,0],0:[3,0]},w[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},w[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},w[5]={"'":[4,0],o:8,l:[5,0]},w[6]={'"':[4,0],o:8,l:[6,0]};const D=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M(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 R(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,D.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function W(e){const t=[];let n,r,o,c,a,s,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=R(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(c=M(n),l=w[i],a=l[c]||l.l||8,8===a)return;if(i=a[0],void 0!==a[1]&&(s=m[a[1]],s&&(o=n,!1===s())))return;if(7===i)return t}}const $=new Map;function U(e,t){return m(e)?e[t]:null}function j(e,t){if(!m(e))return null;let n=$.get(t);if(n||(n=W(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}const K=e=>e,V=e=>"",G="text",B=e=>0===e.length?"":e.join(""),H=e=>null==e?"":l(e)||_(e)&&e.toString===p?JSON.stringify(e,null,2):String(e);function X(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function z(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=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?e.pluralRules[t]:X,c=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?X:void 0,a=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function f(t){const n=u(e.messages)?e.messages(t):!!m(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):V)}const p=_(e.processor)&&u(e.processor.normalize)?e.processor.normalize:B,d=_(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:H,k={list:e=>a[e],named:e=>s[e],plural:e=>e[o(r,e.length,c)],linked:(t,...n)=>{const[r,o]=n;let c="text",a="";1===n.length?m(r)?(a=r.modifier||a,c=r.type||c):i(r)&&(a=r||a):2===n.length&&(i(r)&&(a=r||a),i(o)&&(c=o||c));let s=f(t)(k);return"vnode"===c&&l(s)&&a&&(s=s[0]),a?(u=a,e.modifiers?e.modifiers[u]:K)(s,c):s;var u},message:f,type:_(e.processor)&&i(e.processor.type)?e.processor.type:"text",interpolate:d,normalize:p};return k}const J="i18n:init";let Y=null;function Z(e){Y=e}function Q(){return Y}function q(e,t,n){Y&&Y.emit(J,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ee=te("function:translate");function te(e){return t=>Y&&Y.emit(e,t)}const ne={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},re={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function oe(t,...n){return function(t,...n){return 1===n.length&&m(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(re[t],...n)}function ce(e,t,n){return[...new Set([n,...l(t)?t:m(t)?Object.keys(t):i(t)?[t]:[n]])]}function ae(e,t,n){const r=i(n)?n:me,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let c=o.__localeChainCache.get(r);if(!c){c=[];let e=[n];for(;l(e);)e=se(c,e,t);const a=l(t)||!_(t)?t:t.default?t.default:null;e=i(a)?[a]:a,l(e)&&se(c,e,!1),o.__localeChainCache.set(r,c)}return c}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&f(r);o++){const c=t[o];i(c)&&(r=le(e,t[o],n))}return r}function le(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),(l(n)||_(n))&&n[o]&&(r=n[o])}return r}const ie="9.2.0-beta.39",fe=-1,me="en-US",pe="",de=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let _e,ke,he;function ge(e){_e=e}function be(e){ke=e}function Te(e){he=e}let ye=null;const Le=e=>{ye=e},Ne=()=>ye;let Ee=null;const Ce=e=>{Ee=e},Ae=()=>Ee;let Oe=0;function xe(e={}){const t=i(e.version)?e.version:"9.2.0-beta.39",n=i(e.locale)?e.locale:me,o=l(e.fallbackLocale)||_(e.fallbackLocale)||i(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=_(e.messages)?e.messages:{[n]:{}},p=_(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=_(e.numberFormats)?e.numberFormats:{[n]:{}},k=a({},e.modifiers||{},{upper:(e,t)=>"text"===t&&i(e)?e.toUpperCase():"vnode"===t&&m(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&i(e)?e.toLowerCase():"vnode"===t&&m(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&i(e)?de(e):"vnode"===t&&m(e)&&"__v_isVNode"in e?de(e.children):e}),h=e.pluralRules||{},g=u(e.missing)?e.missing:null,b=!f(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,T=!f(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,L=!!e.unresolving,N=u(e.postTranslation)?e.postTranslation:null,E=_(e.processor)?e.processor:null,C=!f(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,O=u(e.messageCompiler)?e.messageCompiler:_e,x=u(e.messageResolver)?e.messageResolver:ke||U,I=u(e.localeFallbacker)?e.localeFallbacker:he||ce,v=m(e.fallbackContext)?e.fallbackContext:void 0,P=u(e.onWarn)?e.onWarn:c,S=e,F=m(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,w=m(S.__numberFormatters)?S.__numberFormatters:new Map,D=m(S.__meta)?S.__meta:{};Oe++;const M={version:t,cid:Oe,locale:n,fallbackLocale:o,messages:s,modifiers:k,pluralRules:h,missing:g,missingWarn:b,fallbackWarn:T,fallbackFormat:y,unresolving:L,postTranslation:N,processor:E,warnHtmlMessage:C,escapeParameter:A,messageCompiler:O,messageResolver:x,localeFallbacker:I,fallbackContext:v,onWarn:P,__meta:D};return M.datetimeFormats=p,M.numberFormats=d,M.__datetimeFormatters=F,M.__numberFormatters=w,M}function Ie(e,t){return e instanceof RegExp?e.test(t):e}function ve(e,t){return e instanceof RegExp?e.test(t):e}function Pe(e,t,n,r,o){const{missing:c,onWarn:a}=e;if(null!==c){const r=c(e,n,t,o);return i(r)?r:t}return t}function Se(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Fe=e=>e;let we=Object.create(null);function De(){we=Object.create(null)}function Me(e,t={}){{const n=(t.onCacheKey||Fe)(e),r=we[n];if(r)return r;let o=!1;const c=t.onError||g;t.onError=e=>{o=!0,c(e)};const{code:a}=F(e,t),s=new Function(`return ${a}`)();return o?s:we[n]=s}}let Re=k.__EXTEND_POINT__;const We=()=>++Re,$e={INVALID_ARGUMENT:Re,INVALID_DATE_ARGUMENT:We(),INVALID_ISO_DATE_ARGUMENT:We(),__EXTEND_POINT__:We()};function Ue(e){return h(e,null,void 0)}const je=()=>"",Ke=e=>u(e);function Ve(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,messageCompiler:a,fallbackLocale:u,messages:p}=e,[d,_]=He(...t),k=f(_.missingWarn)?_.missingWarn:e.missingWarn,h=f(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,g=f(_.escapeParameter)?_.escapeParameter:e.escapeParameter,b=!!_.resolvedMessage,T=i(_.default)||f(_.default)?f(_.default)?a?d:()=>d:_.default:r?a?d:()=>d:"",y=r||""!==T,L=i(_.locale)?_.locale:e.locale;g&&function(e){l(e.list)?e.list=e.list.map((e=>i(e)?s(e):e)):m(e.named)&&Object.keys(e.named).forEach((t=>{i(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(_);let[N,E,C]=b?[d,L,p[L]||{}]:Ge(e,d,L,u,h,k),A=N,O=d;if(b||i(A)||Ke(A)||y&&(A=T,O=A),!(b||(i(A)||Ke(A))&&i(E)))return c?-1:d;let x=!1;const I=Ke(A)?A:Be(e,d,E,A,O,(()=>{x=!0}));if(x)return A;const v=function(e,t,r,o){const{modifiers:c,pluralRules:a,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:f,fallbackContext:m}=e,p=n=>{let o=s(r,n);if(null==o&&m){const[,,e]=Ge(m,n,t,l,u,f);o=s(e,n)}if(i(o)){let r=!1;const c=Be(e,n,t,o,n,(()=>{r=!0}));return r?je:c}return Ke(o)?o:je},d={locale:t,modifiers:c,pluralRules:a,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);n(o.plural)&&(d.pluralIndex=o.plural);return d}(e,E,C,_),P=function(e,t,n){return t(n)}(0,I,z(v));return o?o(P,d):P}function Ge(e,t,n,r,o,c){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:f}=e,m=f(e,r,n);let p,d={},_=null;for(let n=0;n<m.length&&(p=m[n],d=a[p]||{},null===(_=l(d,t))&&(_=d[t]),!i(_)&&!u(_));n++){const n=Pe(e,t,p,0,"translate");n!==t&&(_=n)}return[_,p,d]}function Be(e,n,r,o,c,a){const{messageCompiler:s,warnHtmlMessage:l}=e;if(Ke(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}if(null==s){const e=()=>o;return e.locale=r,e.key=n,e}const u=s(o,function(e,n,r,o,c,a){return{warnHtmlMessage:c,onError:e=>{throw a&&a(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,l,a));return u.locale=r,u.key=n,u.source=o,u}function He(...e){const[t,r,c]=e,s={};if(!i(t)&&!n(t)&&!Ke(t))throw Error($e.INVALID_ARGUMENT);const u=n(t)?String(t):(Ke(t),t);return n(r)?s.plural=r:i(r)?s.default=r:_(r)&&!o(r)?s.named=r:l(r)&&(s.list=r),n(c)?s.plural=c:i(c)?s.default=c:_(c)&&a(s,c),[u,s]}function Xe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[m,p,d,k]=Je(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=i(d.locale)?d.locale:e.locale,b=l(e,c,g);if(!i(m)||""===m)return new Intl.DateTimeFormat(g,k).format(p);let T,y={},L=null;for(let t=0;t<b.length&&(T=b[t],y=n[T]||{},L=y[m],!_(L));t++)Pe(e,m,T,0,"datetime format");if(!_(L)||!i(T))return r?-1:m;let N=`${T}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let E=u.get(N);return E||(E=new Intl.DateTimeFormat(T,a({},L,k)),u.set(N,E)),h?E.formatToParts(p):E.format(p)}const ze=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Je(...e){const[t,r,o,c]=e,a={};let s,l={};if(i(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error($e.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Error($e.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===d(t)){if(isNaN(t.getTime()))throw Error($e.INVALID_DATE_ARGUMENT);s=t}else{if(!n(t))throw Error($e.INVALID_ARGUMENT);s=t}return i(r)?a.key=r:_(r)&&Object.keys(r).forEach((e=>{ze.includes(e)?l[e]=r[e]:a[e]=r[e]})),i(o)?a.locale=o:_(o)&&(l=o),_(c)&&(l=c),[a.key||"",s,a,l]}function Ye(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ze(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[m,p,d,k]=qe(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=i(d.locale)?d.locale:e.locale,b=l(e,c,g);if(!i(m)||""===m)return new Intl.NumberFormat(g,k).format(p);let T,y={},L=null;for(let t=0;t<b.length&&(T=b[t],y=n[T]||{},L=y[m],!_(L));t++)Pe(e,m,T,0,"number format");if(!_(L)||!i(T))return r?-1:m;let N=`${T}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let E=u.get(N);return E||(E=new Intl.NumberFormat(T,a({},L,k)),u.set(N,E)),h?E.formatToParts(p):E.format(p)}const Qe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function qe(...e){const[t,r,o,c]=e,a={};let s={};if(!n(t))throw Error($e.INVALID_ARGUMENT);const l=t;return i(r)?a.key=r:_(r)&&Object.keys(r).forEach((e=>{Qe.includes(e)?s[e]=r[e]:a[e]=r[e]})),i(o)?a.locale=o:_(o)&&(s=o),_(c)&&(s=c),[a.key||"",l,a,s]}function et(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}ge(Me),be(j),Te(ae);export{k as CompileErrorCodes,$e as CoreErrorCodes,ne as CoreWarnCodes,ze as DATETIME_FORMAT_OPTIONS_KEYS,me as DEFAULT_LOCALE,G as DEFAULT_MESSAGE_DATA_TYPE,pe as MISSING_RESOLVE_VALUE,fe as NOT_REOSLVED,Qe as NUMBER_FORMAT_OPTIONS_KEYS,ie as VERSION,De as clearCompileCache,Ye as clearDateTimeFormat,et as clearNumberFormat,Me as compileToFunction,h as createCompileError,xe as createCoreContext,Ue as createCoreError,z as createMessageContext,Xe as datetime,ae as fallbackWithLocaleChain,ce as fallbackWithSimple,Ne as getAdditionalMeta,Q as getDevToolsHook,Ae as getFallbackContext,oe as getWarnMessage,Pe as handleMissing,q as initI18nDevTools,Ke as isMessageFunction,Ie as isTranslateFallbackWarn,ve as isTranslateMissingWarn,Ze as number,W as parse,Je as parseDateTimeArgs,qe as parseNumberArgs,He as parseTranslateArgs,Te as registerLocaleFallbacker,ge as registerMessageCompiler,be as registerMessageResolver,j as resolveValue,U as resolveWithKeyValue,Le as setAdditionalMeta,Z as setDevToolsHook,Ce as setFallbackContext,Ve as translate,ee as translateDevTools,Se as updateFallbackLocale};
/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var IntlifyCore=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]"===_(e),a=e=>k(e)&&0===Object.keys(e).length;function s(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function l(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const u=Array.isArray,i=e=>"function"==typeof e,f=e=>"string"==typeof e,m=e=>"boolean"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,_=e=>d.call(e),k=e=>"[object Object]"===_(e),h={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function g(e,t,n={}){const{domain:r,messages:o,args:a}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function T(e){throw e}function b(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const E=" ",L="\n",y=String.fromCharCode(8232),N=String.fromCharCode(8233);function C(e){const t=e;let n=0,r=1,o=1,a=0;const s=e=>"\r"===t[e]&&t[e+1]===L,c=e=>t[e]===N,l=e=>t[e]===y,u=e=>s(e)||(e=>t[e]===L)(e)||c(e)||l(e),i=e=>s(e)||c(e)||l(e)?L:t[e];function f(){return a=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>a,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+a),next:f,peek:function(){return s(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,r=1,o=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)f();a=0}}}const A=void 0;function O(e,t={}){const n=!1!==t.location,r=C(e),o=()=>r.index(),a=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=a(),c=o(),l={currentType:14,offset:c,startLoc:s,endLoc:s,lastType:14,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=a(),e.currentType=t;const o={type:t};return n&&(o.loc=b(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(a(),"")}function d(e){let t="";for(;e.currentPeek()===E||e.currentPeek()===L;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===A)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===A)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function g(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(e,t=!0){const n=(t=!1,r="",o=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!o)||!(r===E||r===L):a===E?(e.peek(),n(!0,E,o)):a!==L||(e.peek(),n(!0,L,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function y(e,t){const n=e.currentChar();return n===A?A:t(n)?(e.next(),n):null}function N(e){return y(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 O(e){return y(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function x(e){return y(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=O(e);)n+=t;return n}function I(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!T(e))break;t+=n,e.next()}else if(n===E||n===L)if(T(e))t+=n,e.next();else{if(g(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function S(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return a(),""}}function F(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=x(e);if(!t){a(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){_(e);const t=p(e,"|");return _(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&a(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&a(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&a(),n=M(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(g(e))return t.braceNest>0&&a(),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 a(),t.braceNest=0,w(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){_(e);let t="",n="";for(;t=N(e);)n+=t;return e.currentChar()===A&&a(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${v(e)}`):t+=v(e),e.currentChar()===A&&a(),t}(e)),_(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){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==L;for(;t=y(e,r);)n+="\\"===t?S(e):t;const o=e.currentChar();return o===L||o===A?(a(),o===L&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==E&&e!==L;for(;t=y(e,r);)n+=t;return n}(e)),a(),n.value,_(e),n}return n}function M(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==L&&o!==E||a(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return g(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)?(_(e),M(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)?(_(e),f(t,12,function(e){let t="",n="";for(;t=N(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===E||!t)&&(t===L?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(_(e),"{"===o?D(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===E?r:o===L?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&a(),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return D(e,t)||m(t);if(t.inLinked)return M(e,t)||m(t);switch(e.currentChar()){case"{":return D(e,t)||m(t);case"}":return a(),e.next(),f(t,3,"}");case"@":return M(e,t)||m(t);default:if(g(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?f(t,0,I(e)):f(t,4,function(e){_(e);return"%"!==e.currentChar()&&a(),e.next(),"%"}(e));if(T(e))return f(t,0,I(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=o(),l.startLoc=a(),r.currentChar()===A?f(l,14):w(r,l)},currentOffset:o,currentPosition:a,context:u}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function v(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 I(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 a(e,t){const n=e.context(),a=r(3,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}function s(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(5,a,s);return c.index=parseInt(t,10),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function l(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(4,a,s);return c.key=t,e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function u(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(9,a,s);return c.value=t.replace(x,v),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(8,a,s);return 12!==t.type?(n.lastStartLoc,c.value="",o(c,a,s),{nextConsumeToken:t,node:c}):(null==t.value&&(n.lastStartLoc,S(t)),c.value=t.value||"",o(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&(t.lastStartLoc,S(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&(t.lastStartLoc,S(a)),n.key=function(e,t){const n=e.context(),a=r(7,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}(e,a.value||"");break;case 5:null==a.value&&(t.lastStartLoc,S(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&(t.lastStartLoc,S(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&(t.lastStartLoc,S(a)),n.key=u(e,a.value||"");break;default:t.lastStartLoc;const c=e.context(),i=r(7,c.offset,c.startLoc);return i.value="",o(i,c.offset,c.startLoc),n.key=i,o(n,c.offset,c.startLoc),{nextConsumeToken:a,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 c=null;do{const r=c||e.nextToken();switch(c=null,r.type){case 0:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(a(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),c=o.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 m(e){const t=e.context(),{offset:n,startLoc:a}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,a){const s=e.context();let c=0===a.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(a);do{const t=f(e);c||(c=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,a,s)}return{parse:function(n){const a=O(n,c({},e)),s=a.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(a),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,a.currentOffset(),a.currentPosition()),l}}}function S(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 F(e,t){for(let n=0;n<e.length;n++)P(e[n],t)}function P(e,t){switch(e.type){case 1:F(e.cases,t),t.helper("plural");break;case 2:F(e.items,t);break;case 6:P(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function D(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&&P(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function M(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?M(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&&(M(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&&(M(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")}(`),M(e,t.key),t.modifier?(e.push(", "),M(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3: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)}}function w(e,t={}){const n=c({},t),r=I(n).parse(e);return D(r,n),((e,t={})=>{const n=f(t.mode)?t.mode:"normal",r=f(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:a}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};function c(e,t){s.code+=e}function l(e,t=!0){const n=t?o:"";c(a?n+" ".repeat(e):n)}return{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:a,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),c.length>0&&(l.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),M(l,e),l.deindent(s),l.push("}");const{code:u,map:i}=l.context();return{ast:e,code:u,map:i?i.toJSON():void 0}})(r,n)}const R=[];R[0]={w:[0],i:[3,0],"[":[4],o:[7]},R[1]={w:[1],".":[2],"[":[4],o:[7]},R[2]={w:[2],i:[3,0],0:[3,0]},R[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},R[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},R[5]={"'":[4,0],o:8,l:[5,0]},R[6]={'"':[4,0],o:8,l:[6,0]};const W=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function U(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 $(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,W.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function V(e){const t=[];let n,r,o,a,s,c,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=$(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(a=U(n),l=R[i],s=l[a]||l.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(c=m[s[1]],c&&(o=n,!1===c())))return;if(7===i)return t}}const K=new Map;function j(e,t){return p(e)?e[t]:null}function G(e,t){if(!p(e))return null;let n=K.get(t);if(n||(n=V(t),n&&K.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const e=o[n[a]];if(void 0===e)return null;o=e,a++}return o}const B=e=>e,H=e=>"",Y="text",X=e=>0===e.length?"":e.join(""),z=e=>null==e?"":u(e)||k(e)&&e.toString===d?JSON.stringify(e,null,2):String(e);function J(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Z(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=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?e.pluralRules[t]:J,a=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?J:void 0,s=e.list||[],c=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,c);function l(t){const n=i(e.messages)?e.messages(t):!!p(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):H)}const m=k(e.processor)&&i(e.processor.normalize)?e.processor.normalize:X,d=k(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:z,_={list:e=>s[e],named:e=>c[e],plural:e=>e[o(n,e.length,a)],linked:(t,...n)=>{const[r,o]=n;let a="text",s="";1===n.length?p(r)?(s=r.modifier||s,a=r.type||a):f(r)&&(s=r||s):2===n.length&&(f(r)&&(s=r||s),f(o)&&(a=o||a));let c=l(t)(_);return"vnode"===a&&u(c)&&s&&(c=c[0]),s?(i=s,e.modifiers?e.modifiers[i]:B)(c,a):c;var i},message:l,type:k(e.processor)&&f(e.processor.type)?e.processor.type:Y,interpolate:d,normalize:m};return _}const Q="i18n:init";let q=null;const ee=te("function:translate");function te(e){return t=>q&&q.emit(e,t)}const ne={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},re={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function oe(e,t,n){return[...new Set([n,...u(t)?t:p(t)?Object.keys(t):f(t)?[t]:[n]])]}function ae(e,t,n){const r=f(n)?n:ie,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;u(e);)e=se(a,e,t);const s=u(t)||!k(t)?t:t.default?t.default:null;e=f(s)?[s]:s,u(e)&&se(a,e,!1),o.__localeChainCache.set(r,a)}return a}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){const a=t[o];f(a)&&(r=ce(e,t[o],n))}return r}function ce(e,t,n){let r;const o=t.split("-");do{r=le(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function le(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),(u(n)||k(n))&&n[o]&&(r=n[o])}return r}const ue="9.2.0-beta.38",ie="en-US",fe=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let me,pe,de;function _e(e){me=e}function ke(e){pe=e}function he(e){de=e}let ge=null;let Te=null;let be=0;function Ee(e,t,n,r,o){const{missing:a,onWarn:s}=e;if(null!==a){const r=a(e,n,t,o);return f(r)?r:t}return t}const Le=e=>e;let ye=Object.create(null);function Ne(e,t={}){{const n=(t.onCacheKey||Le)(e),r=ye[n];if(r)return r;let o=!1;const a=t.onError||T;t.onError=e=>{o=!0,a(e)};const{code:s}=w(e,t),c=new Function(`return ${s}`)();return o?c:ye[n]=c}}let Ce=h.__EXTEND_POINT__;const Ae=()=>++Ce,Oe={INVALID_ARGUMENT:Ce,INVALID_DATE_ARGUMENT:Ae(),INVALID_ISO_DATE_ARGUMENT:Ae(),__EXTEND_POINT__:Ae()};const xe=()=>"",ve=e=>i(e);function Ie(e,t,n,r,o,a){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,m=u(e,r,n);let p,d={},_=null;for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(_=l(d,t))&&(_=d[t]),!f(_)&&!i(_));n++){const n=Ee(e,t,p,0,"translate");n!==t&&(_=n)}return[_,p,d]}function Se(e,t,r,o,a,s){const{messageCompiler:c,warnHtmlMessage:l}=e;if(ve(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==c){const e=()=>o;return e.locale=r,e.key=t,e}const u=c(o,function(e,t,r,o,a,s){return{warnHtmlMessage:a,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,a,0,l,s));return u.locale=r,u.key=t,u.source=o,u}function Fe(...e){const[t,n,o]=e,s={};if(!f(t)&&!r(t)&&!ve(t))throw Error(Oe.INVALID_ARGUMENT);const l=r(t)?String(t):(ve(t),t);return r(n)?s.plural=n:f(n)?s.default=n:k(n)&&!a(n)?s.named=n:u(n)&&(s.list=n),r(o)?s.plural=o:f(o)?s.default=o:k(o)&&c(s,o),[l,s]}const Pe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function De(...e){const[t,n,o,a]=e,s={};let c,l={};if(f(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Oe.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(n);try{c.toISOString()}catch(e){throw Error(Oe.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===_(t)){if(isNaN(t.getTime()))throw Error(Oe.INVALID_DATE_ARGUMENT);c=t}else{if(!r(t))throw Error(Oe.INVALID_ARGUMENT);c=t}return f(n)?s.key=n:k(n)&&Object.keys(n).forEach((e=>{Pe.includes(e)?l[e]=n[e]:s[e]=n[e]})),f(o)?s.locale=o:k(o)&&(l=o),k(a)&&(l=a),[s.key||"",c,s,l]}const Me=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function we(...e){const[t,n,o,a]=e,s={};let c={};if(!r(t))throw Error(Oe.INVALID_ARGUMENT);const l=t;return f(n)?s.key=n:k(n)&&Object.keys(n).forEach((e=>{Me.includes(e)?c[e]=n[e]:s[e]=n[e]})),f(o)?s.locale=o:k(o)&&(c=o),k(a)&&(c=a),[s.key||"",l,s,c]}return _e(Ne),ke(G),he(ae),e.CompileErrorCodes=h,e.CoreErrorCodes=Oe,e.CoreWarnCodes=ne,e.DATETIME_FORMAT_OPTIONS_KEYS=Pe,e.DEFAULT_LOCALE=ie,e.DEFAULT_MESSAGE_DATA_TYPE=Y,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=Me,e.VERSION=ue,e.clearCompileCache=function(){ye=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=Ne,e.createCompileError=g,e.createCoreContext=function(e={}){const t=f(e.version)?e.version:ue,n=f(e.locale)?e.locale:ie,r=u(e.fallbackLocale)||k(e.fallbackLocale)||f(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=k(e.messages)?e.messages:{[n]:{}},l=k(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=k(e.numberFormats)?e.numberFormats:{[n]:{}},_=c({},e.modifiers||{},{upper:(e,t)=>"text"===t&&f(e)?e.toUpperCase():"vnode"===t&&p(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&f(e)?e.toLowerCase():"vnode"===t&&p(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&f(e)?fe(e):"vnode"===t&&p(e)&&"__v_isVNode"in e?fe(e.children):e}),h=e.pluralRules||{},g=i(e.missing)?e.missing:null,T=!m(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,b=!m(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,E=!!e.fallbackFormat,L=!!e.unresolving,y=i(e.postTranslation)?e.postTranslation:null,N=k(e.processor)?e.processor:null,C=!m(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,O=i(e.messageCompiler)?e.messageCompiler:me,x=i(e.messageResolver)?e.messageResolver:pe||j,v=i(e.localeFallbacker)?e.localeFallbacker:de||oe,I=p(e.fallbackContext)?e.fallbackContext:void 0,S=i(e.onWarn)?e.onWarn:s,F=e,P=p(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,D=p(F.__numberFormatters)?F.__numberFormatters:new Map,M=p(F.__meta)?F.__meta:{};be++;const w={version:t,cid:be,locale:n,fallbackLocale:r,messages:a,modifiers:_,pluralRules:h,missing:g,missingWarn:T,fallbackWarn:b,fallbackFormat:E,unresolving:L,postTranslation:y,processor:N,warnHtmlMessage:C,escapeParameter:A,messageCompiler:O,messageResolver:x,localeFallbacker:v,fallbackContext:I,onWarn:S,__meta:M};return w.datetimeFormats=l,w.numberFormats=d,w.__datetimeFormatters=P,w.__numberFormatters=D,w},e.createCoreError=function(e){return g(e,null,void 0)},e.createMessageContext=Z,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[i,p,d,_]=De(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=f(d.locale)?d.locale:e.locale,T=l(e,o,g);if(!f(i)||""===i)return new Intl.DateTimeFormat(g,_).format(p);let b,E={},L=null;for(let t=0;t<T.length&&(b=T[t],E=n[b]||{},L=E[i],!k(L));t++)Ee(e,i,b,0,"datetime format");if(!k(L)||!f(b))return r?-1:i;let y=`${b}__${i}`;a(_)||(y=`${y}__${JSON.stringify(_)}`);let N=u.get(y);return N||(N=new Intl.DateTimeFormat(b,c({},L,_)),u.set(y,N)),h?N.formatToParts(p):N.format(p)},e.fallbackWithLocaleChain=ae,e.fallbackWithSimple=oe,e.getAdditionalMeta=()=>ge,e.getDevToolsHook=function(){return q},e.getFallbackContext=()=>Te,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&p(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(re[e],...n)},e.handleMissing=Ee,e.initI18nDevTools=function(e,t,n){q&&q.emit(Q,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=ve,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,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[i,p,d,_]=we(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=f(d.locale)?d.locale:e.locale,T=l(e,o,g);if(!f(i)||""===i)return new Intl.NumberFormat(g,_).format(p);let b,E={},L=null;for(let t=0;t<T.length&&(b=T[t],E=n[b]||{},L=E[i],!k(L));t++)Ee(e,i,b,0,"number format");if(!k(L)||!f(b))return r?-1:i;let y=`${b}__${i}`;a(_)||(y=`${y}__${JSON.stringify(_)}`);let N=u.get(y);return N||(N=new Intl.NumberFormat(b,c({},L,_)),u.set(y,N)),h?N.formatToParts(p):N.format(p)},e.parse=V,e.parseDateTimeArgs=De,e.parseNumberArgs=we,e.parseTranslateArgs=Fe,e.registerLocaleFallbacker=he,e.registerMessageCompiler=_e,e.registerMessageResolver=ke,e.resolveValue=G,e.resolveWithKeyValue=j,e.setAdditionalMeta=e=>{ge=e},e.setDevToolsHook=function(e){q=e},e.setFallbackContext=e=>{Te=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,messageCompiler:s,fallbackLocale:c,messages:i}=e,[d,_]=Fe(...t),k=m(_.missingWarn)?_.missingWarn:e.missingWarn,h=m(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,g=m(_.escapeParameter)?_.escapeParameter:e.escapeParameter,T=!!_.resolvedMessage,b=f(_.default)||m(_.default)?m(_.default)?s?d:()=>d:_.default:n?s?d:()=>d:"",E=n||""!==b,L=f(_.locale)?_.locale:e.locale;g&&function(e){u(e.list)?e.list=e.list.map((e=>f(e)?l(e):e)):p(e.named)&&Object.keys(e.named).forEach((t=>{f(e.named[t])&&(e.named[t]=l(e.named[t]))}))}(_);let[y,N,C]=T?[d,L,i[L]||{}]:Ie(e,d,L,c,h,k),A=y,O=d;if(T||f(A)||ve(A)||E&&(A=b,O=A),!(T||(f(A)||ve(A))&&f(N)))return a?-1:d;let x=!1;const v=ve(A)?A:Se(e,d,N,A,O,(()=>{x=!0}));if(x)return A;const I=function(e,t,n,o){const{modifiers:a,pluralRules:s,messageResolver:c,fallbackLocale:l,fallbackWarn:u,missingWarn:i,fallbackContext:m}=e,p=r=>{let o=c(n,r);if(null==o&&m){const[,,e]=Ie(m,r,t,l,u,i);o=c(e,r)}if(f(o)){let n=!1;const a=Se(e,r,t,o,r,(()=>{n=!0}));return n?xe:a}return ve(o)?o:xe},d={locale:t,modifiers:a,pluralRules:s,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);r(o.plural)&&(d.pluralIndex=o.plural);return d}(e,N,C,_),S=function(e,t,n){return t(n)}(0,v,Z(I));return o?o(S,d):S},e.translateDevTools=ee,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
var IntlifyCore=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]"===_(e),a=e=>k(e)&&0===Object.keys(e).length;function s(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function l(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const u=Array.isArray,i=e=>"function"==typeof e,f=e=>"string"==typeof e,m=e=>"boolean"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,_=e=>d.call(e),k=e=>"[object Object]"===_(e),h={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function g(e,t,n={}){const{domain:r,messages:o,args:a}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function T(e){throw e}function b(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const E=" ",L="\n",y=String.fromCharCode(8232),N=String.fromCharCode(8233);function C(e){const t=e;let n=0,r=1,o=1,a=0;const s=e=>"\r"===t[e]&&t[e+1]===L,c=e=>t[e]===N,l=e=>t[e]===y,u=e=>s(e)||(e=>t[e]===L)(e)||c(e)||l(e),i=e=>s(e)||c(e)||l(e)?L:t[e];function f(){return a=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>a,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+a),next:f,peek:function(){return s(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,r=1,o=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)f();a=0}}}const A=void 0;function O(e,t={}){const n=!1!==t.location,r=C(e),o=()=>r.index(),a=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=a(),c=o(),l={currentType:14,offset:c,startLoc:s,endLoc:s,lastType:14,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=a(),e.currentType=t;const o={type:t};return n&&(o.loc=b(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(a(),"")}function d(e){let t="";for(;e.currentPeek()===E||e.currentPeek()===L;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function k(e){if(e===A)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===A)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function g(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(e,t=!0){const n=(t=!1,r="",o=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!o)||!(r===E||r===L):a===E?(e.peek(),n(!0,E,o)):a!==L||(e.peek(),n(!0,L,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function y(e,t){const n=e.currentChar();return n===A?A:t(n)?(e.next(),n):null}function N(e){return y(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 O(e){return y(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function x(e){return y(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=O(e);)n+=t;return n}function I(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!T(e))break;t+=n,e.next()}else if(n===E||n===L)if(T(e))t+=n,e.next();else{if(g(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function S(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return a(),""}}function F(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=x(e);if(!t){a(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){_(e);const t=p(e,"|");return _(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&a(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&a(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&a(),n=M(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(g(e))return t.braceNest>0&&a(),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 a(),t.braceNest=0,w(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){_(e);let t="",n="";for(;t=N(e);)n+=t;return e.currentChar()===A&&a(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${v(e)}`):t+=v(e),e.currentChar()===A&&a(),t}(e)),_(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){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==L;for(;t=y(e,r);)n+="\\"===t?S(e):t;const o=e.currentChar();return o===L||o===A?(a(),o===L&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==E&&e!==L;for(;t=y(e,r);)n+=t;return n}(e)),a(),n.value,_(e),n}return n}function M(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==L&&o!==E||a(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return g(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)?(_(e),M(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)?(_(e),f(t,12,function(e){let t="",n="";for(;t=N(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===E||!t)&&(t===L?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(_(e),"{"===o?D(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===E?r:o===L?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&a(),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return D(e,t)||m(t);if(t.inLinked)return M(e,t)||m(t);switch(e.currentChar()){case"{":return D(e,t)||m(t);case"}":return a(),e.next(),f(t,3,"}");case"@":return M(e,t)||m(t);default:if(g(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?f(t,0,I(e)):f(t,4,function(e){_(e);return"%"!==e.currentChar()&&a(),e.next(),"%"}(e));if(T(e))return f(t,0,I(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=o(),l.startLoc=a(),r.currentChar()===A?f(l,14):w(r,l)},currentOffset:o,currentPosition:a,context:u}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function v(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 I(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 a(e,t){const n=e.context(),a=r(3,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}function s(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(5,a,s);return c.index=parseInt(t,10),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function l(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(4,a,s);return c.key=t,e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function u(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(9,a,s);return c.value=t.replace(x,v),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(8,a,s);return 12!==t.type?(n.lastStartLoc,c.value="",o(c,a,s),{nextConsumeToken:t,node:c}):(null==t.value&&(n.lastStartLoc,S(t)),c.value=t.value||"",o(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&(t.lastStartLoc,S(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&(t.lastStartLoc,S(a)),n.key=function(e,t){const n=e.context(),a=r(7,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}(e,a.value||"");break;case 5:null==a.value&&(t.lastStartLoc,S(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&(t.lastStartLoc,S(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&(t.lastStartLoc,S(a)),n.key=u(e,a.value||"");break;default:t.lastStartLoc;const c=e.context(),i=r(7,c.offset,c.startLoc);return i.value="",o(i,c.offset,c.startLoc),n.key=i,o(n,c.offset,c.startLoc),{nextConsumeToken:a,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 c=null;do{const r=c||e.nextToken();switch(c=null,r.type){case 0:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(a(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),c=o.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 m(e){const t=e.context(),{offset:n,startLoc:a}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,a){const s=e.context();let c=0===a.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(a);do{const t=f(e);c||(c=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,a,s)}return{parse:function(n){const a=O(n,c({},e)),s=a.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(a),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,a.currentOffset(),a.currentPosition()),l}}}function S(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 F(e,t){for(let n=0;n<e.length;n++)P(e[n],t)}function P(e,t){switch(e.type){case 1:F(e.cases,t),t.helper("plural");break;case 2:F(e.items,t);break;case 6:P(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function D(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&&P(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function M(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?M(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&&(M(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&&(M(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")}(`),M(e,t.key),t.modifier?(e.push(", "),M(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3: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)}}function w(e,t={}){const n=c({},t),r=I(n).parse(e);return D(r,n),((e,t={})=>{const n=f(t.mode)?t.mode:"normal",r=f(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:a}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};function c(e,t){s.code+=e}function l(e,t=!0){const n=t?o:"";c(a?n+" ".repeat(e):n)}return{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:a,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),c.length>0&&(l.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),M(l,e),l.deindent(s),l.push("}");const{code:u,map:i}=l.context();return{ast:e,code:u,map:i?i.toJSON():void 0}})(r,n)}const R=[];R[0]={w:[0],i:[3,0],"[":[4],o:[7]},R[1]={w:[1],".":[2],"[":[4],o:[7]},R[2]={w:[2],i:[3,0],0:[3,0]},R[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},R[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},R[5]={"'":[4,0],o:8,l:[5,0]},R[6]={'"':[4,0],o:8,l:[6,0]};const W=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function U(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 $(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,W.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function V(e){const t=[];let n,r,o,a,s,c,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=$(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(a=U(n),l=R[i],s=l[a]||l.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(c=m[s[1]],c&&(o=n,!1===c())))return;if(7===i)return t}}const K=new Map;function j(e,t){return p(e)?e[t]:null}function G(e,t){if(!p(e))return null;let n=K.get(t);if(n||(n=V(t),n&&K.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const e=o[n[a]];if(void 0===e)return null;o=e,a++}return o}const B=e=>e,H=e=>"",Y="text",X=e=>0===e.length?"":e.join(""),z=e=>null==e?"":u(e)||k(e)&&e.toString===d?JSON.stringify(e,null,2):String(e);function J(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Z(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=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?e.pluralRules[t]:J,a=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?J:void 0,s=e.list||[],c=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,c);function l(t){const n=i(e.messages)?e.messages(t):!!p(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):H)}const m=k(e.processor)&&i(e.processor.normalize)?e.processor.normalize:X,d=k(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:z,_={list:e=>s[e],named:e=>c[e],plural:e=>e[o(n,e.length,a)],linked:(t,...n)=>{const[r,o]=n;let a="text",s="";1===n.length?p(r)?(s=r.modifier||s,a=r.type||a):f(r)&&(s=r||s):2===n.length&&(f(r)&&(s=r||s),f(o)&&(a=o||a));let c=l(t)(_);return"vnode"===a&&u(c)&&s&&(c=c[0]),s?(i=s,e.modifiers?e.modifiers[i]:B)(c,a):c;var i},message:l,type:k(e.processor)&&f(e.processor.type)?e.processor.type:Y,interpolate:d,normalize:m};return _}const Q="i18n:init";let q=null;const ee=te("function:translate");function te(e){return t=>q&&q.emit(e,t)}const ne={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},re={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function oe(e,t,n){return[...new Set([n,...u(t)?t:p(t)?Object.keys(t):f(t)?[t]:[n]])]}function ae(e,t,n){const r=f(n)?n:ie,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;u(e);)e=se(a,e,t);const s=u(t)||!k(t)?t:t.default?t.default:null;e=f(s)?[s]:s,u(e)&&se(a,e,!1),o.__localeChainCache.set(r,a)}return a}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){const a=t[o];f(a)&&(r=ce(e,t[o],n))}return r}function ce(e,t,n){let r;const o=t.split("-");do{r=le(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function le(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),(u(n)||k(n))&&n[o]&&(r=n[o])}return r}const ue="9.2.0-beta.39",ie="en-US",fe=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let me,pe,de;function _e(e){me=e}function ke(e){pe=e}function he(e){de=e}let ge=null;let Te=null;let be=0;function Ee(e,t,n,r,o){const{missing:a,onWarn:s}=e;if(null!==a){const r=a(e,n,t,o);return f(r)?r:t}return t}const Le=e=>e;let ye=Object.create(null);function Ne(e,t={}){{const n=(t.onCacheKey||Le)(e),r=ye[n];if(r)return r;let o=!1;const a=t.onError||T;t.onError=e=>{o=!0,a(e)};const{code:s}=w(e,t),c=new Function(`return ${s}`)();return o?c:ye[n]=c}}let Ce=h.__EXTEND_POINT__;const Ae=()=>++Ce,Oe={INVALID_ARGUMENT:Ce,INVALID_DATE_ARGUMENT:Ae(),INVALID_ISO_DATE_ARGUMENT:Ae(),__EXTEND_POINT__:Ae()};const xe=()=>"",ve=e=>i(e);function Ie(e,t,n,r,o,a){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,m=u(e,r,n);let p,d={},_=null;for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(_=l(d,t))&&(_=d[t]),!f(_)&&!i(_));n++){const n=Ee(e,t,p,0,"translate");n!==t&&(_=n)}return[_,p,d]}function Se(e,t,r,o,a,s){const{messageCompiler:c,warnHtmlMessage:l}=e;if(ve(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==c){const e=()=>o;return e.locale=r,e.key=t,e}const u=c(o,function(e,t,r,o,a,s){return{warnHtmlMessage:a,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,a,0,l,s));return u.locale=r,u.key=t,u.source=o,u}function Fe(...e){const[t,n,o]=e,s={};if(!f(t)&&!r(t)&&!ve(t))throw Error(Oe.INVALID_ARGUMENT);const l=r(t)?String(t):(ve(t),t);return r(n)?s.plural=n:f(n)?s.default=n:k(n)&&!a(n)?s.named=n:u(n)&&(s.list=n),r(o)?s.plural=o:f(o)?s.default=o:k(o)&&c(s,o),[l,s]}const Pe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function De(...e){const[t,n,o,a]=e,s={};let c,l={};if(f(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Oe.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(n);try{c.toISOString()}catch(e){throw Error(Oe.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===_(t)){if(isNaN(t.getTime()))throw Error(Oe.INVALID_DATE_ARGUMENT);c=t}else{if(!r(t))throw Error(Oe.INVALID_ARGUMENT);c=t}return f(n)?s.key=n:k(n)&&Object.keys(n).forEach((e=>{Pe.includes(e)?l[e]=n[e]:s[e]=n[e]})),f(o)?s.locale=o:k(o)&&(l=o),k(a)&&(l=a),[s.key||"",c,s,l]}const Me=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function we(...e){const[t,n,o,a]=e,s={};let c={};if(!r(t))throw Error(Oe.INVALID_ARGUMENT);const l=t;return f(n)?s.key=n:k(n)&&Object.keys(n).forEach((e=>{Me.includes(e)?c[e]=n[e]:s[e]=n[e]})),f(o)?s.locale=o:k(o)&&(c=o),k(a)&&(c=a),[s.key||"",l,s,c]}return _e(Ne),ke(G),he(ae),e.CompileErrorCodes=h,e.CoreErrorCodes=Oe,e.CoreWarnCodes=ne,e.DATETIME_FORMAT_OPTIONS_KEYS=Pe,e.DEFAULT_LOCALE=ie,e.DEFAULT_MESSAGE_DATA_TYPE=Y,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=Me,e.VERSION=ue,e.clearCompileCache=function(){ye=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=Ne,e.createCompileError=g,e.createCoreContext=function(e={}){const t=f(e.version)?e.version:ue,n=f(e.locale)?e.locale:ie,r=u(e.fallbackLocale)||k(e.fallbackLocale)||f(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=k(e.messages)?e.messages:{[n]:{}},l=k(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=k(e.numberFormats)?e.numberFormats:{[n]:{}},_=c({},e.modifiers||{},{upper:(e,t)=>"text"===t&&f(e)?e.toUpperCase():"vnode"===t&&p(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&f(e)?e.toLowerCase():"vnode"===t&&p(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&f(e)?fe(e):"vnode"===t&&p(e)&&"__v_isVNode"in e?fe(e.children):e}),h=e.pluralRules||{},g=i(e.missing)?e.missing:null,T=!m(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,b=!m(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,E=!!e.fallbackFormat,L=!!e.unresolving,y=i(e.postTranslation)?e.postTranslation:null,N=k(e.processor)?e.processor:null,C=!m(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,O=i(e.messageCompiler)?e.messageCompiler:me,x=i(e.messageResolver)?e.messageResolver:pe||j,v=i(e.localeFallbacker)?e.localeFallbacker:de||oe,I=p(e.fallbackContext)?e.fallbackContext:void 0,S=i(e.onWarn)?e.onWarn:s,F=e,P=p(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,D=p(F.__numberFormatters)?F.__numberFormatters:new Map,M=p(F.__meta)?F.__meta:{};be++;const w={version:t,cid:be,locale:n,fallbackLocale:r,messages:a,modifiers:_,pluralRules:h,missing:g,missingWarn:T,fallbackWarn:b,fallbackFormat:E,unresolving:L,postTranslation:y,processor:N,warnHtmlMessage:C,escapeParameter:A,messageCompiler:O,messageResolver:x,localeFallbacker:v,fallbackContext:I,onWarn:S,__meta:M};return w.datetimeFormats=l,w.numberFormats=d,w.__datetimeFormatters=P,w.__numberFormatters=D,w},e.createCoreError=function(e){return g(e,null,void 0)},e.createMessageContext=Z,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[i,p,d,_]=De(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=f(d.locale)?d.locale:e.locale,T=l(e,o,g);if(!f(i)||""===i)return new Intl.DateTimeFormat(g,_).format(p);let b,E={},L=null;for(let t=0;t<T.length&&(b=T[t],E=n[b]||{},L=E[i],!k(L));t++)Ee(e,i,b,0,"datetime format");if(!k(L)||!f(b))return r?-1:i;let y=`${b}__${i}`;a(_)||(y=`${y}__${JSON.stringify(_)}`);let N=u.get(y);return N||(N=new Intl.DateTimeFormat(b,c({},L,_)),u.set(y,N)),h?N.formatToParts(p):N.format(p)},e.fallbackWithLocaleChain=ae,e.fallbackWithSimple=oe,e.getAdditionalMeta=()=>ge,e.getDevToolsHook=function(){return q},e.getFallbackContext=()=>Te,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&p(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(re[e],...n)},e.handleMissing=Ee,e.initI18nDevTools=function(e,t,n){q&&q.emit(Q,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=ve,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,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[i,p,d,_]=we(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,g=f(d.locale)?d.locale:e.locale,T=l(e,o,g);if(!f(i)||""===i)return new Intl.NumberFormat(g,_).format(p);let b,E={},L=null;for(let t=0;t<T.length&&(b=T[t],E=n[b]||{},L=E[i],!k(L));t++)Ee(e,i,b,0,"number format");if(!k(L)||!f(b))return r?-1:i;let y=`${b}__${i}`;a(_)||(y=`${y}__${JSON.stringify(_)}`);let N=u.get(y);return N||(N=new Intl.NumberFormat(b,c({},L,_)),u.set(y,N)),h?N.formatToParts(p):N.format(p)},e.parse=V,e.parseDateTimeArgs=De,e.parseNumberArgs=we,e.parseTranslateArgs=Fe,e.registerLocaleFallbacker=he,e.registerMessageCompiler=_e,e.registerMessageResolver=ke,e.resolveValue=G,e.resolveWithKeyValue=j,e.setAdditionalMeta=e=>{ge=e},e.setDevToolsHook=function(e){q=e},e.setFallbackContext=e=>{Te=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,messageCompiler:s,fallbackLocale:c,messages:i}=e,[d,_]=Fe(...t),k=m(_.missingWarn)?_.missingWarn:e.missingWarn,h=m(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,g=m(_.escapeParameter)?_.escapeParameter:e.escapeParameter,T=!!_.resolvedMessage,b=f(_.default)||m(_.default)?m(_.default)?s?d:()=>d:_.default:n?s?d:()=>d:"",E=n||""!==b,L=f(_.locale)?_.locale:e.locale;g&&function(e){u(e.list)?e.list=e.list.map((e=>f(e)?l(e):e)):p(e.named)&&Object.keys(e.named).forEach((t=>{f(e.named[t])&&(e.named[t]=l(e.named[t]))}))}(_);let[y,N,C]=T?[d,L,i[L]||{}]:Ie(e,d,L,c,h,k),A=y,O=d;if(T||f(A)||ve(A)||E&&(A=b,O=A),!(T||(f(A)||ve(A))&&f(N)))return a?-1:d;let x=!1;const v=ve(A)?A:Se(e,d,N,A,O,(()=>{x=!0}));if(x)return A;const I=function(e,t,n,o){const{modifiers:a,pluralRules:s,messageResolver:c,fallbackLocale:l,fallbackWarn:u,missingWarn:i,fallbackContext:m}=e,p=r=>{let o=c(n,r);if(null==o&&m){const[,,e]=Ie(m,r,t,l,u,i);o=c(e,r)}if(f(o)){let n=!1;const a=Se(e,r,t,o,r,(()=>{n=!0}));return n?xe:a}return ve(o)?o:xe},d={locale:t,modifiers:a,pluralRules:s,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);r(o.plural)&&(d.pluralIndex=o.plural);return d}(e,N,C,_),S=function(e,t,n){return t(n)}(0,v,Z(I));return o?o(S,d):S},e.translateDevTools=ee,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 kazuya kawaguchi

@@ -743,3 +743,3 @@ * Released under the MIT License.

*/
const VERSION = '9.2.0-beta.38';
const VERSION = '9.2.0-beta.39';
const NOT_REOSLVED = -1;

@@ -746,0 +746,0 @@ const DEFAULT_LOCALE = 'en-US';

/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 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]"===g(e),a=e=>p(e)&&0===Object.keys(e).length;function o(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const l=Object.assign;function s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const c=Array.isArray,i=e=>"function"==typeof e,u=e=>"string"==typeof e,m=e=>"boolean"==typeof e,f=e=>null!==e&&"object"==typeof e,_=Object.prototype.toString,g=e=>_.call(e),p=e=>"[object Object]"===g(e),d={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function E(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const N=[];N[0]={w:[0],i:[3,0],"[":[4],o:[7]},N[1]={w:[1],".":[2],"[":[4],o:[7]},N[2]={w:[2],i:[3,0],0:[3,0]},N[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},N[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},N[5]={"'":[4,0],o:8,l:[5,0]},N[6]={'"':[4,0],o:8,l:[6,0]};const A=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function T(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 b(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,A.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function h(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,m=0;const f=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=b(r),!1===r)return!1;f[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=T(n),c=N[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const k=new Map;function y(e,t){return f(e)?e[t]:null}function I(e,t){if(!f(e))return null;let n=k.get(t);if(n||(n=h(t),n&&k.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const L=e=>e,C=e=>"",D="text",F=e=>0===e.length?"":e.join(""),O=e=>null==e?"":c(e)||p(e)&&e.toString===_?JSON.stringify(e,null,2):String(e);function R(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function M(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),a=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?e.pluralRules[t]:R,o=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?R:void 0,l=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function m(t){const n=i(e.messages)?e.messages(t):!!f(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):C)}const _=p(e.processor)&&i(e.processor.normalize)?e.processor.normalize:F,g=p(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:O,d={list:e=>l[e],named:e=>s[e],plural:e=>e[a(r,e.length,o)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?f(r)?(l=r.modifier||l,o=r.type||o):u(r)&&(l=r||l):2===n.length&&(u(r)&&(l=r||l),u(a)&&(o=a||o));let s=m(t)(d);return"vnode"===o&&c(s)&&l&&(s=s[0]),l?(i=l,e.modifiers?e.modifiers[i]:L)(s,o):s;var i},message:m,type:p(e.processor)&&u(e.processor.type)?e.processor.type:"text",interpolate:g,normalize:_};return d}const w="i18n:init";let S=null;function W(e){S=e}function v(){return S}function U(e,t,n){S&&S.emit(w,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const P=x("function:translate");function x(e){return t=>S&&S.emit(e,t)}const $={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},K={[$.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[$.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[$.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[$.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[$.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[$.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function V(t,...n){return function(t,...n){return 1===n.length&&f(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(K[t],...n)}function j(e,t,n){return[...new Set([n,...c(t)?t:f(t)?Object.keys(t):u(t)?[t]:[n]])]}function G(e,t,n){const r=u(n)?n:J,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;c(e);)e=B(o,e,t);const l=c(t)||!p(t)?t:t.default?t.default:null;e=u(l)?[l]:l,c(e)&&B(o,e,!1),a.__localeChainCache.set(r,o)}return o}function B(e,t,n){let r=!0;for(let a=0;a<t.length&&m(r);a++){const o=t[a];u(o)&&(r=H(e,t[a],n))}return r}function H(e,t,n){let r;const a=t.split("-");do{r=X(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function X(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(c(n)||p(n))&&n[a]&&(r=n[a])}return r}const Y="9.2.0-beta.38",z=-1,J="en-US",Z="",Q=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let q,ee,te;function ne(e){q=e}function re(e){ee=e}function ae(e){te=e}let oe=null;const le=e=>{oe=e},se=()=>oe;let ce=null;const ie=e=>{ce=e},ue=()=>ce;let me=0;function fe(e={}){const t=u(e.version)?e.version:"9.2.0-beta.38",n=u(e.locale)?e.locale:J,a=c(e.fallbackLocale)||p(e.fallbackLocale)||u(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=p(e.messages)?e.messages:{[n]:{}},_=p(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},g=p(e.numberFormats)?e.numberFormats:{[n]:{}},d=l({},e.modifiers||{},{upper:(e,t)=>"text"===t&&u(e)?e.toUpperCase():"vnode"===t&&f(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&u(e)?e.toLowerCase():"vnode"===t&&f(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&u(e)?Q(e):"vnode"===t&&f(e)&&"__v_isVNode"in e?Q(e.children):e}),E=e.pluralRules||{},N=i(e.missing)?e.missing:null,A=!m(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,T=!m(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,h=!!e.unresolving,k=i(e.postTranslation)?e.postTranslation:null,I=p(e.processor)?e.processor:null,L=!m(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,D=i(e.messageCompiler)?e.messageCompiler:q,F=i(e.messageResolver)?e.messageResolver:ee||y,O=i(e.localeFallbacker)?e.localeFallbacker:te||j,R=f(e.fallbackContext)?e.fallbackContext:void 0,M=i(e.onWarn)?e.onWarn:o,w=e,S=f(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,W=f(w.__numberFormatters)?w.__numberFormatters:new Map,v=f(w.__meta)?w.__meta:{};me++;const U={version:t,cid:me,locale:n,fallbackLocale:a,messages:s,modifiers:d,pluralRules:E,missing:N,missingWarn:A,fallbackWarn:T,fallbackFormat:b,unresolving:h,postTranslation:k,processor:I,warnHtmlMessage:L,escapeParameter:C,messageCompiler:D,messageResolver:F,localeFallbacker:O,fallbackContext:R,onWarn:M,__meta:v};return U.datetimeFormats=_,U.numberFormats=g,U.__datetimeFormatters=S,U.__numberFormatters=W,U}function _e(e,t){return e instanceof RegExp?e.test(t):e}function ge(e,t){return e instanceof RegExp?e.test(t):e}function pe(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return u(r)?r:t}return t}function de(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ee(){}function Ne(e,t={}){return()=>e}let Ae=d.__EXTEND_POINT__;const Te=()=>++Ae,be={INVALID_ARGUMENT:Ae,INVALID_DATE_ARGUMENT:Te(),INVALID_ISO_DATE_ARGUMENT:Te(),__EXTEND_POINT__:Te()};function he(e){return E(e,null,void 0)}const ke=()=>"",ye=e=>i(e);function Ie(e,...t){const{fallbackFormat:r,postTranslation:a,unresolving:o,messageCompiler:l,fallbackLocale:i,messages:_}=e,[g,p]=De(...t),d=m(p.missingWarn)?p.missingWarn:e.missingWarn,E=m(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,N=m(p.escapeParameter)?p.escapeParameter:e.escapeParameter,A=!!p.resolvedMessage,T=u(p.default)||m(p.default)?m(p.default)?l?g:()=>g:p.default:r?l?g:()=>g:"",b=r||""!==T,h=u(p.locale)?p.locale:e.locale;N&&function(e){c(e.list)?e.list=e.list.map((e=>u(e)?s(e):e)):f(e.named)&&Object.keys(e.named).forEach((t=>{u(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(p);let[k,y,I]=A?[g,h,_[h]||{}]:Le(e,g,h,i,E,d),L=k,C=g;if(A||u(L)||ye(L)||b&&(L=T,C=L),!(A||(u(L)||ye(L))&&u(y)))return o?-1:g;let D=!1;const F=ye(L)?L:Ce(e,g,y,L,C,(()=>{D=!0}));if(D)return L;const O=function(e,t,r,a){const{modifiers:o,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:m,fallbackContext:f}=e,_=n=>{let a=s(r,n);if(null==a&&f){const[,,e]=Le(f,n,t,c,i,m);a=s(e,n)}if(u(a)){let r=!1;const o=Ce(e,n,t,a,n,(()=>{r=!0}));return r?ke:o}return ye(a)?a:ke},g={locale:t,modifiers:o,pluralRules:l,messages:_};e.processor&&(g.processor=e.processor);a.list&&(g.list=a.list);a.named&&(g.named=a.named);n(a.plural)&&(g.pluralIndex=a.plural);return g}(e,y,I,p),R=function(e,t,n){return t(n)}(0,F,M(O));return a?a(R,g):R}function Le(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:m}=e,f=m(e,r,n);let _,g={},p=null;for(let n=0;n<f.length&&(_=f[n],g=l[_]||{},null===(p=c(g,t))&&(p=g[t]),!u(p)&&!i(p));n++){const n=pe(e,t,_,0,"translate");n!==t&&(p=n)}return[p,_,g]}function Ce(e,n,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(ye(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||n,e}if(null==s){const e=()=>a;return e.locale=r,e.key=n,e}const i=s(a,function(e,n,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,o,0,c,l));return i.locale=r,i.key=n,i.source=a,i}function De(...e){const[t,r,o]=e,s={};if(!u(t)&&!n(t)&&!ye(t))throw Error(be.INVALID_ARGUMENT);const i=n(t)?String(t):(ye(t),t);return n(r)?s.plural=r:u(r)?s.default=r:p(r)&&!a(r)?s.named=r:c(r)&&(s.list=r),n(o)?s.plural=o:u(o)?s.default=o:p(o)&&l(s,o),[i,s]}function Fe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__datetimeFormatters:i}=e,[f,_,g,d]=Re(...t);m(g.missingWarn)?g.missingWarn:e.missingWarn;m(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const E=!!g.part,N=u(g.locale)?g.locale:e.locale,A=c(e,o,N);if(!u(f)||""===f)return new Intl.DateTimeFormat(N,d).format(_);let T,b={},h=null;for(let t=0;t<A.length&&(T=A[t],b=n[T]||{},h=b[f],!p(h));t++)pe(e,f,T,0,"datetime format");if(!p(h)||!u(T))return r?-1:f;let k=`${T}__${f}`;a(d)||(k=`${k}__${JSON.stringify(d)}`);let y=i.get(k);return y||(y=new Intl.DateTimeFormat(T,l({},h,d)),i.set(k,y)),E?y.formatToParts(_):y.format(_)}const Oe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Re(...e){const[t,r,a,o]=e,l={};let s,c={};if(u(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(be.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Error(be.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===g(t)){if(isNaN(t.getTime()))throw Error(be.INVALID_DATE_ARGUMENT);s=t}else{if(!n(t))throw Error(be.INVALID_ARGUMENT);s=t}return u(r)?l.key=r:p(r)&&Object.keys(r).forEach((e=>{Oe.includes(e)?c[e]=r[e]:l[e]=r[e]})),u(a)?l.locale=a:p(a)&&(c=a),p(o)&&(c=o),[l.key||"",s,l,c]}function Me(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function we(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__numberFormatters:i}=e,[f,_,g,d]=We(...t);m(g.missingWarn)?g.missingWarn:e.missingWarn;m(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const E=!!g.part,N=u(g.locale)?g.locale:e.locale,A=c(e,o,N);if(!u(f)||""===f)return new Intl.NumberFormat(N,d).format(_);let T,b={},h=null;for(let t=0;t<A.length&&(T=A[t],b=n[T]||{},h=b[f],!p(h));t++)pe(e,f,T,0,"number format");if(!p(h)||!u(T))return r?-1:f;let k=`${T}__${f}`;a(d)||(k=`${k}__${JSON.stringify(d)}`);let y=i.get(k);return y||(y=new Intl.NumberFormat(T,l({},h,d)),i.set(k,y)),E?y.formatToParts(_):y.format(_)}const Se=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function We(...e){const[t,r,a,o]=e,l={};let s={};if(!n(t))throw Error(be.INVALID_ARGUMENT);const c=t;return u(r)?l.key=r:p(r)&&Object.keys(r).forEach((e=>{Se.includes(e)?s[e]=r[e]:l[e]=r[e]})),u(a)?l.locale=a:p(a)&&(s=a),p(o)&&(s=o),[l.key||"",c,l,s]}function ve(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}re(I),ae(G);export{d as CompileErrorCodes,be as CoreErrorCodes,$ as CoreWarnCodes,Oe as DATETIME_FORMAT_OPTIONS_KEYS,J as DEFAULT_LOCALE,D as DEFAULT_MESSAGE_DATA_TYPE,Z as MISSING_RESOLVE_VALUE,z as NOT_REOSLVED,Se as NUMBER_FORMAT_OPTIONS_KEYS,Y as VERSION,Ee as clearCompileCache,Me as clearDateTimeFormat,ve as clearNumberFormat,Ne as compileToFunction,E as createCompileError,fe as createCoreContext,he as createCoreError,M as createMessageContext,Fe as datetime,G as fallbackWithLocaleChain,j as fallbackWithSimple,se as getAdditionalMeta,v as getDevToolsHook,ue as getFallbackContext,V as getWarnMessage,pe as handleMissing,U as initI18nDevTools,ye as isMessageFunction,_e as isTranslateFallbackWarn,ge as isTranslateMissingWarn,we as number,h as parse,Re as parseDateTimeArgs,We as parseNumberArgs,De as parseTranslateArgs,ae as registerLocaleFallbacker,ne as registerMessageCompiler,re as registerMessageResolver,I as resolveValue,y as resolveWithKeyValue,le as setAdditionalMeta,W as setDevToolsHook,ie as setFallbackContext,Ie as translate,P as translateDevTools,de 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]"===g(e),a=e=>p(e)&&0===Object.keys(e).length;function o(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const l=Object.assign;function s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const c=Array.isArray,i=e=>"function"==typeof e,u=e=>"string"==typeof e,m=e=>"boolean"==typeof e,f=e=>null!==e&&"object"==typeof e,_=Object.prototype.toString,g=e=>_.call(e),p=e=>"[object Object]"===g(e),d={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function E(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const N=[];N[0]={w:[0],i:[3,0],"[":[4],o:[7]},N[1]={w:[1],".":[2],"[":[4],o:[7]},N[2]={w:[2],i:[3,0],0:[3,0]},N[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},N[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},N[5]={"'":[4,0],o:8,l:[5,0]},N[6]={'"':[4,0],o:8,l:[6,0]};const A=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function T(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 b(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,A.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function h(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,m=0;const f=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=b(r),!1===r)return!1;f[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=T(n),c=N[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const k=new Map;function y(e,t){return f(e)?e[t]:null}function I(e,t){if(!f(e))return null;let n=k.get(t);if(n||(n=h(t),n&&k.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const L=e=>e,C=e=>"",D="text",F=e=>0===e.length?"":e.join(""),O=e=>null==e?"":c(e)||p(e)&&e.toString===_?JSON.stringify(e,null,2):String(e);function R(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function M(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),a=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?e.pluralRules[t]:R,o=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?R:void 0,l=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function m(t){const n=i(e.messages)?e.messages(t):!!f(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):C)}const _=p(e.processor)&&i(e.processor.normalize)?e.processor.normalize:F,g=p(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:O,d={list:e=>l[e],named:e=>s[e],plural:e=>e[a(r,e.length,o)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?f(r)?(l=r.modifier||l,o=r.type||o):u(r)&&(l=r||l):2===n.length&&(u(r)&&(l=r||l),u(a)&&(o=a||o));let s=m(t)(d);return"vnode"===o&&c(s)&&l&&(s=s[0]),l?(i=l,e.modifiers?e.modifiers[i]:L)(s,o):s;var i},message:m,type:p(e.processor)&&u(e.processor.type)?e.processor.type:"text",interpolate:g,normalize:_};return d}const w="i18n:init";let S=null;function W(e){S=e}function v(){return S}function U(e,t,n){S&&S.emit(w,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const P=x("function:translate");function x(e){return t=>S&&S.emit(e,t)}const $={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},K={[$.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[$.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[$.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[$.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[$.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[$.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function V(t,...n){return function(t,...n){return 1===n.length&&f(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(K[t],...n)}function j(e,t,n){return[...new Set([n,...c(t)?t:f(t)?Object.keys(t):u(t)?[t]:[n]])]}function G(e,t,n){const r=u(n)?n:J,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;c(e);)e=B(o,e,t);const l=c(t)||!p(t)?t:t.default?t.default:null;e=u(l)?[l]:l,c(e)&&B(o,e,!1),a.__localeChainCache.set(r,o)}return o}function B(e,t,n){let r=!0;for(let a=0;a<t.length&&m(r);a++){const o=t[a];u(o)&&(r=H(e,t[a],n))}return r}function H(e,t,n){let r;const a=t.split("-");do{r=X(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function X(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(c(n)||p(n))&&n[a]&&(r=n[a])}return r}const Y="9.2.0-beta.39",z=-1,J="en-US",Z="",Q=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let q,ee,te;function ne(e){q=e}function re(e){ee=e}function ae(e){te=e}let oe=null;const le=e=>{oe=e},se=()=>oe;let ce=null;const ie=e=>{ce=e},ue=()=>ce;let me=0;function fe(e={}){const t=u(e.version)?e.version:"9.2.0-beta.39",n=u(e.locale)?e.locale:J,a=c(e.fallbackLocale)||p(e.fallbackLocale)||u(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=p(e.messages)?e.messages:{[n]:{}},_=p(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},g=p(e.numberFormats)?e.numberFormats:{[n]:{}},d=l({},e.modifiers||{},{upper:(e,t)=>"text"===t&&u(e)?e.toUpperCase():"vnode"===t&&f(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&u(e)?e.toLowerCase():"vnode"===t&&f(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&u(e)?Q(e):"vnode"===t&&f(e)&&"__v_isVNode"in e?Q(e.children):e}),E=e.pluralRules||{},N=i(e.missing)?e.missing:null,A=!m(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,T=!m(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,h=!!e.unresolving,k=i(e.postTranslation)?e.postTranslation:null,I=p(e.processor)?e.processor:null,L=!m(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,D=i(e.messageCompiler)?e.messageCompiler:q,F=i(e.messageResolver)?e.messageResolver:ee||y,O=i(e.localeFallbacker)?e.localeFallbacker:te||j,R=f(e.fallbackContext)?e.fallbackContext:void 0,M=i(e.onWarn)?e.onWarn:o,w=e,S=f(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,W=f(w.__numberFormatters)?w.__numberFormatters:new Map,v=f(w.__meta)?w.__meta:{};me++;const U={version:t,cid:me,locale:n,fallbackLocale:a,messages:s,modifiers:d,pluralRules:E,missing:N,missingWarn:A,fallbackWarn:T,fallbackFormat:b,unresolving:h,postTranslation:k,processor:I,warnHtmlMessage:L,escapeParameter:C,messageCompiler:D,messageResolver:F,localeFallbacker:O,fallbackContext:R,onWarn:M,__meta:v};return U.datetimeFormats=_,U.numberFormats=g,U.__datetimeFormatters=S,U.__numberFormatters=W,U}function _e(e,t){return e instanceof RegExp?e.test(t):e}function ge(e,t){return e instanceof RegExp?e.test(t):e}function pe(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return u(r)?r:t}return t}function de(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ee(){}function Ne(e,t={}){return()=>e}let Ae=d.__EXTEND_POINT__;const Te=()=>++Ae,be={INVALID_ARGUMENT:Ae,INVALID_DATE_ARGUMENT:Te(),INVALID_ISO_DATE_ARGUMENT:Te(),__EXTEND_POINT__:Te()};function he(e){return E(e,null,void 0)}const ke=()=>"",ye=e=>i(e);function Ie(e,...t){const{fallbackFormat:r,postTranslation:a,unresolving:o,messageCompiler:l,fallbackLocale:i,messages:_}=e,[g,p]=De(...t),d=m(p.missingWarn)?p.missingWarn:e.missingWarn,E=m(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,N=m(p.escapeParameter)?p.escapeParameter:e.escapeParameter,A=!!p.resolvedMessage,T=u(p.default)||m(p.default)?m(p.default)?l?g:()=>g:p.default:r?l?g:()=>g:"",b=r||""!==T,h=u(p.locale)?p.locale:e.locale;N&&function(e){c(e.list)?e.list=e.list.map((e=>u(e)?s(e):e)):f(e.named)&&Object.keys(e.named).forEach((t=>{u(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(p);let[k,y,I]=A?[g,h,_[h]||{}]:Le(e,g,h,i,E,d),L=k,C=g;if(A||u(L)||ye(L)||b&&(L=T,C=L),!(A||(u(L)||ye(L))&&u(y)))return o?-1:g;let D=!1;const F=ye(L)?L:Ce(e,g,y,L,C,(()=>{D=!0}));if(D)return L;const O=function(e,t,r,a){const{modifiers:o,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:m,fallbackContext:f}=e,_=n=>{let a=s(r,n);if(null==a&&f){const[,,e]=Le(f,n,t,c,i,m);a=s(e,n)}if(u(a)){let r=!1;const o=Ce(e,n,t,a,n,(()=>{r=!0}));return r?ke:o}return ye(a)?a:ke},g={locale:t,modifiers:o,pluralRules:l,messages:_};e.processor&&(g.processor=e.processor);a.list&&(g.list=a.list);a.named&&(g.named=a.named);n(a.plural)&&(g.pluralIndex=a.plural);return g}(e,y,I,p),R=function(e,t,n){return t(n)}(0,F,M(O));return a?a(R,g):R}function Le(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:m}=e,f=m(e,r,n);let _,g={},p=null;for(let n=0;n<f.length&&(_=f[n],g=l[_]||{},null===(p=c(g,t))&&(p=g[t]),!u(p)&&!i(p));n++){const n=pe(e,t,_,0,"translate");n!==t&&(p=n)}return[p,_,g]}function Ce(e,n,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(ye(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||n,e}if(null==s){const e=()=>a;return e.locale=r,e.key=n,e}const i=s(a,function(e,n,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,o,0,c,l));return i.locale=r,i.key=n,i.source=a,i}function De(...e){const[t,r,o]=e,s={};if(!u(t)&&!n(t)&&!ye(t))throw Error(be.INVALID_ARGUMENT);const i=n(t)?String(t):(ye(t),t);return n(r)?s.plural=r:u(r)?s.default=r:p(r)&&!a(r)?s.named=r:c(r)&&(s.list=r),n(o)?s.plural=o:u(o)?s.default=o:p(o)&&l(s,o),[i,s]}function Fe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__datetimeFormatters:i}=e,[f,_,g,d]=Re(...t);m(g.missingWarn)?g.missingWarn:e.missingWarn;m(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const E=!!g.part,N=u(g.locale)?g.locale:e.locale,A=c(e,o,N);if(!u(f)||""===f)return new Intl.DateTimeFormat(N,d).format(_);let T,b={},h=null;for(let t=0;t<A.length&&(T=A[t],b=n[T]||{},h=b[f],!p(h));t++)pe(e,f,T,0,"datetime format");if(!p(h)||!u(T))return r?-1:f;let k=`${T}__${f}`;a(d)||(k=`${k}__${JSON.stringify(d)}`);let y=i.get(k);return y||(y=new Intl.DateTimeFormat(T,l({},h,d)),i.set(k,y)),E?y.formatToParts(_):y.format(_)}const Oe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Re(...e){const[t,r,a,o]=e,l={};let s,c={};if(u(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(be.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Error(be.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===g(t)){if(isNaN(t.getTime()))throw Error(be.INVALID_DATE_ARGUMENT);s=t}else{if(!n(t))throw Error(be.INVALID_ARGUMENT);s=t}return u(r)?l.key=r:p(r)&&Object.keys(r).forEach((e=>{Oe.includes(e)?c[e]=r[e]:l[e]=r[e]})),u(a)?l.locale=a:p(a)&&(c=a),p(o)&&(c=o),[l.key||"",s,l,c]}function Me(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function we(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__numberFormatters:i}=e,[f,_,g,d]=We(...t);m(g.missingWarn)?g.missingWarn:e.missingWarn;m(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const E=!!g.part,N=u(g.locale)?g.locale:e.locale,A=c(e,o,N);if(!u(f)||""===f)return new Intl.NumberFormat(N,d).format(_);let T,b={},h=null;for(let t=0;t<A.length&&(T=A[t],b=n[T]||{},h=b[f],!p(h));t++)pe(e,f,T,0,"number format");if(!p(h)||!u(T))return r?-1:f;let k=`${T}__${f}`;a(d)||(k=`${k}__${JSON.stringify(d)}`);let y=i.get(k);return y||(y=new Intl.NumberFormat(T,l({},h,d)),i.set(k,y)),E?y.formatToParts(_):y.format(_)}const Se=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function We(...e){const[t,r,a,o]=e,l={};let s={};if(!n(t))throw Error(be.INVALID_ARGUMENT);const c=t;return u(r)?l.key=r:p(r)&&Object.keys(r).forEach((e=>{Se.includes(e)?s[e]=r[e]:l[e]=r[e]})),u(a)?l.locale=a:p(a)&&(s=a),p(o)&&(s=o),[l.key||"",c,l,s]}function ve(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}re(I),ae(G);export{d as CompileErrorCodes,be as CoreErrorCodes,$ as CoreWarnCodes,Oe as DATETIME_FORMAT_OPTIONS_KEYS,J as DEFAULT_LOCALE,D as DEFAULT_MESSAGE_DATA_TYPE,Z as MISSING_RESOLVE_VALUE,z as NOT_REOSLVED,Se as NUMBER_FORMAT_OPTIONS_KEYS,Y as VERSION,Ee as clearCompileCache,Me as clearDateTimeFormat,ve as clearNumberFormat,Ne as compileToFunction,E as createCompileError,fe as createCoreContext,he as createCoreError,M as createMessageContext,Fe as datetime,G as fallbackWithLocaleChain,j as fallbackWithSimple,se as getAdditionalMeta,v as getDevToolsHook,ue as getFallbackContext,V as getWarnMessage,pe as handleMissing,U as initI18nDevTools,ye as isMessageFunction,_e as isTranslateFallbackWarn,ge as isTranslateMissingWarn,we as number,h as parse,Re as parseDateTimeArgs,We as parseNumberArgs,De as parseTranslateArgs,ae as registerLocaleFallbacker,ne as registerMessageCompiler,re as registerMessageResolver,I as resolveValue,y as resolveWithKeyValue,le as setAdditionalMeta,W as setDevToolsHook,ie as setFallbackContext,Ie as translate,P as translateDevTools,de as updateFallbackLocale};
/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.38
* core v9.2.0-beta.39
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var IntlifyCore=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),a=e=>"[object RegExp]"===p(e),o=e=>E(e)&&0===Object.keys(e).length;function l(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function i(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const c=Array.isArray,u=e=>"function"==typeof e,m=e=>"string"==typeof e,f=e=>"boolean"==typeof e,_=e=>null!==e&&"object"==typeof e,g=Object.prototype.toString,p=e=>g.call(e),E=e=>"[object Object]"===p(e),d={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function T(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const A=[];A[0]={w:[0],i:[3,0],"[":[4],o:[7]},A[1]={w:[1],".":[2],"[":[4],o:[7]},A[2]={w:[2],i:[3,0],0:[3,0]},A[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},A[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},A[5]={"'":[4,0],o:8,l:[5,0]},A[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function b(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 C(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,N.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function k(e){const t=[];let n,r,a,o,l,s,i,c=-1,u=0,m=0;const f=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=C(r),!1===r)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(o=b(n),i=A[u],l=i[o]||i.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const F=new Map;function h(e,t){return _(e)?e[t]:null}function D(e,t){if(!_(e))return null;let n=F.get(t);if(n||(n=k(t),n&&F.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const L=e=>e,O=e=>"",I="text",y=e=>0===e.length?"":e.join(""),M=e=>null==e?"":c(e)||E(e)&&e.toString===g?JSON.stringify(e,null,2):String(e);function R(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,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),a=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?e.pluralRules[t]:R,o=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?R:void 0,l=e.list||[],s=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t){const n=u(e.messages)?e.messages(t):!!_(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):O)}const f=E(e.processor)&&u(e.processor.normalize)?e.processor.normalize:y,g=E(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:M,p={list:e=>l[e],named:e=>s[e],plural:e=>e[a(n,e.length,o)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?_(r)?(l=r.modifier||l,o=r.type||o):m(r)&&(l=r||l):2===n.length&&(m(r)&&(l=r||l),m(a)&&(o=a||o));let s=i(t)(p);return"vnode"===o&&c(s)&&l&&(s=s[0]),l?(u=l,e.modifiers?e.modifiers[u]:L)(s,o):s;var u},message:i,type:E(e.processor)&&m(e.processor.type)?e.processor.type:I,interpolate:g,normalize:f};return p}const W="i18n:init";let v=null;const w=U("function:translate");function U(e){return t=>v&&v.emit(e,t)}const P={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},x={[P.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[P.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[P.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[P.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function V(e,t,n){return[...new Set([n,...c(t)?t:_(t)?Object.keys(t):m(t)?[t]:[n]])]}function K(e,t,n){const r=m(n)?n:H,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;c(e);)e=$(o,e,t);const l=c(t)||!E(t)?t:t.default?t.default:null;e=m(l)?[l]:l,c(e)&&$(o,e,!1),a.__localeChainCache.set(r,o)}return o}function $(e,t,n){let r=!0;for(let a=0;a<t.length&&f(r);a++){const o=t[a];m(o)&&(r=G(e,t[a],n))}return r}function G(e,t,n){let r;const a=t.split("-");do{r=j(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function j(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(c(n)||E(n))&&n[a]&&(r=n[a])}return r}const B="9.2.0-beta.38",H="en-US",Y=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let X,z,J;function Z(e){z=e}function Q(e){J=e}let q=null;let ee=null;let te=0;function ne(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return m(r)?r:t}return t}let re=d.__EXTEND_POINT__;const ae=()=>++re,oe={INVALID_ARGUMENT:re,INVALID_DATE_ARGUMENT:ae(),INVALID_ISO_DATE_ARGUMENT:ae(),__EXTEND_POINT__:ae()};const le=()=>"",se=e=>u(e);function ie(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:i,localeFallbacker:c}=e,f=c(e,r,n);let _,g={},p=null;for(let n=0;n<f.length&&(_=f[n],g=l[_]||{},null===(p=i(g,t))&&(p=g[t]),!m(p)&&!u(p));n++){const n=ne(e,t,_,0,"translate");n!==t&&(p=n)}return[p,_,g]}function ce(e,t,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:i}=e;if(se(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==s){const e=()=>a;return e.locale=r,e.key=t,e}const c=s(a,function(e,t,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,o,0,i,l));return c.locale=r,c.key=t,c.source=a,c}function ue(...e){const[t,n,a]=e,l={};if(!m(t)&&!r(t)&&!se(t))throw Error(oe.INVALID_ARGUMENT);const i=r(t)?String(t):(se(t),t);return r(n)?l.plural=n:m(n)?l.default=n:E(n)&&!o(n)?l.named=n:c(n)&&(l.list=n),r(a)?l.plural=a:m(a)?l.default=a:E(a)&&s(l,a),[i,l]}const me=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fe(...e){const[t,n,a,o]=e,l={};let s,i={};if(m(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(oe.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Error(oe.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===p(t)){if(isNaN(t.getTime()))throw Error(oe.INVALID_DATE_ARGUMENT);s=t}else{if(!r(t))throw Error(oe.INVALID_ARGUMENT);s=t}return m(n)?l.key=n:E(n)&&Object.keys(n).forEach((e=>{me.includes(e)?i[e]=n[e]:l[e]=n[e]})),m(a)?l.locale=a:E(a)&&(i=a),E(o)&&(i=o),[l.key||"",s,l,i]}const _e=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ge(...e){const[t,n,a,o]=e,l={};let s={};if(!r(t))throw Error(oe.INVALID_ARGUMENT);const i=t;return m(n)?l.key=n:E(n)&&Object.keys(n).forEach((e=>{_e.includes(e)?s[e]=n[e]:l[e]=n[e]})),m(a)?l.locale=a:E(a)&&(s=a),E(o)&&(s=o),[l.key||"",i,l,s]}return Z(D),Q(K),e.CompileErrorCodes=d,e.CoreErrorCodes=oe,e.CoreWarnCodes=P,e.DATETIME_FORMAT_OPTIONS_KEYS=me,e.DEFAULT_LOCALE=H,e.DEFAULT_MESSAGE_DATA_TYPE=I,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=_e,e.VERSION=B,e.clearCompileCache=function(){},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={}){return()=>e},e.createCompileError=T,e.createCoreContext=function(e={}){const t=m(e.version)?e.version:B,n=m(e.locale)?e.locale:H,r=c(e.fallbackLocale)||E(e.fallbackLocale)||m(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=E(e.messages)?e.messages:{[n]:{}},i=E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},g=E(e.numberFormats)?e.numberFormats:{[n]:{}},p=s({},e.modifiers||{},{upper:(e,t)=>"text"===t&&m(e)?e.toUpperCase():"vnode"===t&&_(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&m(e)?e.toLowerCase():"vnode"===t&&_(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&m(e)?Y(e):"vnode"===t&&_(e)&&"__v_isVNode"in e?Y(e.children):e}),d=e.pluralRules||{},T=u(e.missing)?e.missing:null,A=!f(e.missingWarn)&&!a(e.missingWarn)||e.missingWarn,N=!f(e.fallbackWarn)&&!a(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,C=!!e.unresolving,k=u(e.postTranslation)?e.postTranslation:null,F=E(e.processor)?e.processor:null,D=!f(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter,O=u(e.messageCompiler)?e.messageCompiler:X,I=u(e.messageResolver)?e.messageResolver:z||h,y=u(e.localeFallbacker)?e.localeFallbacker:J||V,M=_(e.fallbackContext)?e.fallbackContext:void 0,R=u(e.onWarn)?e.onWarn:l,S=e,W=_(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,v=_(S.__numberFormatters)?S.__numberFormatters:new Map,w=_(S.__meta)?S.__meta:{};te++;const U={version:t,cid:te,locale:n,fallbackLocale:r,messages:o,modifiers:p,pluralRules:d,missing:T,missingWarn:A,fallbackWarn:N,fallbackFormat:b,unresolving:C,postTranslation:k,processor:F,warnHtmlMessage:D,escapeParameter:L,messageCompiler:O,messageResolver:I,localeFallbacker:y,fallbackContext:M,onWarn:R,__meta:w};return U.datetimeFormats=i,U.numberFormats=g,U.__datetimeFormatters=W,U.__numberFormatters=v,U},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=S,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__datetimeFormatters:c}=e,[u,_,g,p]=fe(...t);f(g.missingWarn)?g.missingWarn:e.missingWarn,f(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const d=!!g.part,T=m(g.locale)?g.locale:e.locale,A=i(e,a,T);if(!m(u)||""===u)return new Intl.DateTimeFormat(T,p).format(_);let N,b={},C=null;for(let t=0;t<A.length&&(N=A[t],b=n[N]||{},C=b[u],!E(C));t++)ne(e,u,N,0,"datetime format");if(!E(C)||!m(N))return r?-1:u;let k=`${N}__${u}`;o(p)||(k=`${k}__${JSON.stringify(p)}`);let F=c.get(k);return F||(F=new Intl.DateTimeFormat(N,s({},C,p)),c.set(k,F)),d?F.formatToParts(_):F.format(_)},e.fallbackWithLocaleChain=K,e.fallbackWithSimple=V,e.getAdditionalMeta=()=>q,e.getDevToolsHook=function(){return v},e.getFallbackContext=()=>ee,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&_(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(x[e],...n)},e.handleMissing=ne,e.initI18nDevTools=function(e,t,n){v&&v.emit(W,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=se,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:a,onWarn:l,localeFallbacker:i}=e,{__numberFormatters:c}=e,[u,_,g,p]=ge(...t);f(g.missingWarn)?g.missingWarn:e.missingWarn,f(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const d=!!g.part,T=m(g.locale)?g.locale:e.locale,A=i(e,a,T);if(!m(u)||""===u)return new Intl.NumberFormat(T,p).format(_);let N,b={},C=null;for(let t=0;t<A.length&&(N=A[t],b=n[N]||{},C=b[u],!E(C));t++)ne(e,u,N,0,"number format");if(!E(C)||!m(N))return r?-1:u;let k=`${N}__${u}`;o(p)||(k=`${k}__${JSON.stringify(p)}`);let F=c.get(k);return F||(F=new Intl.NumberFormat(N,s({},C,p)),c.set(k,F)),d?F.formatToParts(_):F.format(_)},e.parse=k,e.parseDateTimeArgs=fe,e.parseNumberArgs=ge,e.parseTranslateArgs=ue,e.registerLocaleFallbacker=Q,e.registerMessageCompiler=function(e){X=e},e.registerMessageResolver=Z,e.resolveValue=D,e.resolveWithKeyValue=h,e.setAdditionalMeta=e=>{q=e},e.setDevToolsHook=function(e){v=e},e.setFallbackContext=e=>{ee=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:o,messageCompiler:l,fallbackLocale:s,messages:u}=e,[g,p]=ue(...t),E=f(p.missingWarn)?p.missingWarn:e.missingWarn,d=f(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,T=f(p.escapeParameter)?p.escapeParameter:e.escapeParameter,A=!!p.resolvedMessage,N=m(p.default)||f(p.default)?f(p.default)?l?g:()=>g:p.default:n?l?g:()=>g:"",b=n||""!==N,C=m(p.locale)?p.locale:e.locale;T&&function(e){c(e.list)?e.list=e.list.map((e=>m(e)?i(e):e)):_(e.named)&&Object.keys(e.named).forEach((t=>{m(e.named[t])&&(e.named[t]=i(e.named[t]))}))}(p);let[k,F,h]=A?[g,C,u[C]||{}]:ie(e,g,C,s,d,E),D=k,L=g;if(A||m(D)||se(D)||b&&(D=N,L=D),!(A||(m(D)||se(D))&&m(F)))return o?-1:g;let O=!1;const I=se(D)?D:ce(e,g,F,D,L,(()=>{O=!0}));if(O)return D;const y=function(e,t,n,a){const{modifiers:o,pluralRules:l,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:f}=e,_=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=ie(f,r,t,i,c,u);a=s(e,r)}if(m(a)){let n=!1;const o=ce(e,r,t,a,r,(()=>{n=!0}));return n?le:o}return se(a)?a:le},g={locale:t,modifiers:o,pluralRules:l,messages:_};e.processor&&(g.processor=e.processor);a.list&&(g.list=a.list);a.named&&(g.named=a.named);r(a.plural)&&(g.pluralIndex=a.plural);return g}(e,F,h,p),M=function(e,t,n){return t(n)}(0,I,S(y));return a?a(M,g):M},e.translateDevTools=w,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
var IntlifyCore=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),a=e=>"[object RegExp]"===p(e),o=e=>E(e)&&0===Object.keys(e).length;function l(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function i(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const c=Array.isArray,u=e=>"function"==typeof e,m=e=>"string"==typeof e,f=e=>"boolean"==typeof e,_=e=>null!==e&&"object"==typeof e,g=Object.prototype.toString,p=e=>g.call(e),E=e=>"[object Object]"===p(e),d={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function T(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const A=[];A[0]={w:[0],i:[3,0],"[":[4],o:[7]},A[1]={w:[1],".":[2],"[":[4],o:[7]},A[2]={w:[2],i:[3,0],0:[3,0]},A[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},A[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},A[5]={"'":[4,0],o:8,l:[5,0]},A[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function b(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 C(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,N.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function k(e){const t=[];let n,r,a,o,l,s,i,c=-1,u=0,m=0;const f=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=C(r),!1===r)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(o=b(n),i=A[u],l=i[o]||i.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const F=new Map;function h(e,t){return _(e)?e[t]:null}function D(e,t){if(!_(e))return null;let n=F.get(t);if(n||(n=k(t),n&&F.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const L=e=>e,O=e=>"",I="text",y=e=>0===e.length?"":e.join(""),M=e=>null==e?"":c(e)||E(e)&&e.toString===g?JSON.stringify(e,null,2):String(e);function R(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,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),a=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?e.pluralRules[t]:R,o=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?R:void 0,l=e.list||[],s=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t){const n=u(e.messages)?e.messages(t):!!_(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):O)}const f=E(e.processor)&&u(e.processor.normalize)?e.processor.normalize:y,g=E(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:M,p={list:e=>l[e],named:e=>s[e],plural:e=>e[a(n,e.length,o)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?_(r)?(l=r.modifier||l,o=r.type||o):m(r)&&(l=r||l):2===n.length&&(m(r)&&(l=r||l),m(a)&&(o=a||o));let s=i(t)(p);return"vnode"===o&&c(s)&&l&&(s=s[0]),l?(u=l,e.modifiers?e.modifiers[u]:L)(s,o):s;var u},message:i,type:E(e.processor)&&m(e.processor.type)?e.processor.type:I,interpolate:g,normalize:f};return p}const W="i18n:init";let v=null;const w=U("function:translate");function U(e){return t=>v&&v.emit(e,t)}const P={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},x={[P.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[P.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[P.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[P.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function V(e,t,n){return[...new Set([n,...c(t)?t:_(t)?Object.keys(t):m(t)?[t]:[n]])]}function K(e,t,n){const r=m(n)?n:H,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;c(e);)e=$(o,e,t);const l=c(t)||!E(t)?t:t.default?t.default:null;e=m(l)?[l]:l,c(e)&&$(o,e,!1),a.__localeChainCache.set(r,o)}return o}function $(e,t,n){let r=!0;for(let a=0;a<t.length&&f(r);a++){const o=t[a];m(o)&&(r=G(e,t[a],n))}return r}function G(e,t,n){let r;const a=t.split("-");do{r=j(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function j(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(c(n)||E(n))&&n[a]&&(r=n[a])}return r}const B="9.2.0-beta.39",H="en-US",Y=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let X,z,J;function Z(e){z=e}function Q(e){J=e}let q=null;let ee=null;let te=0;function ne(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return m(r)?r:t}return t}let re=d.__EXTEND_POINT__;const ae=()=>++re,oe={INVALID_ARGUMENT:re,INVALID_DATE_ARGUMENT:ae(),INVALID_ISO_DATE_ARGUMENT:ae(),__EXTEND_POINT__:ae()};const le=()=>"",se=e=>u(e);function ie(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:i,localeFallbacker:c}=e,f=c(e,r,n);let _,g={},p=null;for(let n=0;n<f.length&&(_=f[n],g=l[_]||{},null===(p=i(g,t))&&(p=g[t]),!m(p)&&!u(p));n++){const n=ne(e,t,_,0,"translate");n!==t&&(p=n)}return[p,_,g]}function ce(e,t,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:i}=e;if(se(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==s){const e=()=>a;return e.locale=r,e.key=t,e}const c=s(a,function(e,t,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,o,0,i,l));return c.locale=r,c.key=t,c.source=a,c}function ue(...e){const[t,n,a]=e,l={};if(!m(t)&&!r(t)&&!se(t))throw Error(oe.INVALID_ARGUMENT);const i=r(t)?String(t):(se(t),t);return r(n)?l.plural=n:m(n)?l.default=n:E(n)&&!o(n)?l.named=n:c(n)&&(l.list=n),r(a)?l.plural=a:m(a)?l.default=a:E(a)&&s(l,a),[i,l]}const me=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fe(...e){const[t,n,a,o]=e,l={};let s,i={};if(m(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(oe.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Error(oe.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===p(t)){if(isNaN(t.getTime()))throw Error(oe.INVALID_DATE_ARGUMENT);s=t}else{if(!r(t))throw Error(oe.INVALID_ARGUMENT);s=t}return m(n)?l.key=n:E(n)&&Object.keys(n).forEach((e=>{me.includes(e)?i[e]=n[e]:l[e]=n[e]})),m(a)?l.locale=a:E(a)&&(i=a),E(o)&&(i=o),[l.key||"",s,l,i]}const _e=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ge(...e){const[t,n,a,o]=e,l={};let s={};if(!r(t))throw Error(oe.INVALID_ARGUMENT);const i=t;return m(n)?l.key=n:E(n)&&Object.keys(n).forEach((e=>{_e.includes(e)?s[e]=n[e]:l[e]=n[e]})),m(a)?l.locale=a:E(a)&&(s=a),E(o)&&(s=o),[l.key||"",i,l,s]}return Z(D),Q(K),e.CompileErrorCodes=d,e.CoreErrorCodes=oe,e.CoreWarnCodes=P,e.DATETIME_FORMAT_OPTIONS_KEYS=me,e.DEFAULT_LOCALE=H,e.DEFAULT_MESSAGE_DATA_TYPE=I,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=_e,e.VERSION=B,e.clearCompileCache=function(){},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={}){return()=>e},e.createCompileError=T,e.createCoreContext=function(e={}){const t=m(e.version)?e.version:B,n=m(e.locale)?e.locale:H,r=c(e.fallbackLocale)||E(e.fallbackLocale)||m(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=E(e.messages)?e.messages:{[n]:{}},i=E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},g=E(e.numberFormats)?e.numberFormats:{[n]:{}},p=s({},e.modifiers||{},{upper:(e,t)=>"text"===t&&m(e)?e.toUpperCase():"vnode"===t&&_(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&m(e)?e.toLowerCase():"vnode"===t&&_(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&m(e)?Y(e):"vnode"===t&&_(e)&&"__v_isVNode"in e?Y(e.children):e}),d=e.pluralRules||{},T=u(e.missing)?e.missing:null,A=!f(e.missingWarn)&&!a(e.missingWarn)||e.missingWarn,N=!f(e.fallbackWarn)&&!a(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,C=!!e.unresolving,k=u(e.postTranslation)?e.postTranslation:null,F=E(e.processor)?e.processor:null,D=!f(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter,O=u(e.messageCompiler)?e.messageCompiler:X,I=u(e.messageResolver)?e.messageResolver:z||h,y=u(e.localeFallbacker)?e.localeFallbacker:J||V,M=_(e.fallbackContext)?e.fallbackContext:void 0,R=u(e.onWarn)?e.onWarn:l,S=e,W=_(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,v=_(S.__numberFormatters)?S.__numberFormatters:new Map,w=_(S.__meta)?S.__meta:{};te++;const U={version:t,cid:te,locale:n,fallbackLocale:r,messages:o,modifiers:p,pluralRules:d,missing:T,missingWarn:A,fallbackWarn:N,fallbackFormat:b,unresolving:C,postTranslation:k,processor:F,warnHtmlMessage:D,escapeParameter:L,messageCompiler:O,messageResolver:I,localeFallbacker:y,fallbackContext:M,onWarn:R,__meta:w};return U.datetimeFormats=i,U.numberFormats=g,U.__datetimeFormatters=W,U.__numberFormatters=v,U},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=S,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__datetimeFormatters:c}=e,[u,_,g,p]=fe(...t);f(g.missingWarn)?g.missingWarn:e.missingWarn,f(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const d=!!g.part,T=m(g.locale)?g.locale:e.locale,A=i(e,a,T);if(!m(u)||""===u)return new Intl.DateTimeFormat(T,p).format(_);let N,b={},C=null;for(let t=0;t<A.length&&(N=A[t],b=n[N]||{},C=b[u],!E(C));t++)ne(e,u,N,0,"datetime format");if(!E(C)||!m(N))return r?-1:u;let k=`${N}__${u}`;o(p)||(k=`${k}__${JSON.stringify(p)}`);let F=c.get(k);return F||(F=new Intl.DateTimeFormat(N,s({},C,p)),c.set(k,F)),d?F.formatToParts(_):F.format(_)},e.fallbackWithLocaleChain=K,e.fallbackWithSimple=V,e.getAdditionalMeta=()=>q,e.getDevToolsHook=function(){return v},e.getFallbackContext=()=>ee,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&_(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(x[e],...n)},e.handleMissing=ne,e.initI18nDevTools=function(e,t,n){v&&v.emit(W,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=se,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:a,onWarn:l,localeFallbacker:i}=e,{__numberFormatters:c}=e,[u,_,g,p]=ge(...t);f(g.missingWarn)?g.missingWarn:e.missingWarn,f(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const d=!!g.part,T=m(g.locale)?g.locale:e.locale,A=i(e,a,T);if(!m(u)||""===u)return new Intl.NumberFormat(T,p).format(_);let N,b={},C=null;for(let t=0;t<A.length&&(N=A[t],b=n[N]||{},C=b[u],!E(C));t++)ne(e,u,N,0,"number format");if(!E(C)||!m(N))return r?-1:u;let k=`${N}__${u}`;o(p)||(k=`${k}__${JSON.stringify(p)}`);let F=c.get(k);return F||(F=new Intl.NumberFormat(N,s({},C,p)),c.set(k,F)),d?F.formatToParts(_):F.format(_)},e.parse=k,e.parseDateTimeArgs=fe,e.parseNumberArgs=ge,e.parseTranslateArgs=ue,e.registerLocaleFallbacker=Q,e.registerMessageCompiler=function(e){X=e},e.registerMessageResolver=Z,e.resolveValue=D,e.resolveWithKeyValue=h,e.setAdditionalMeta=e=>{q=e},e.setDevToolsHook=function(e){v=e},e.setFallbackContext=e=>{ee=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:o,messageCompiler:l,fallbackLocale:s,messages:u}=e,[g,p]=ue(...t),E=f(p.missingWarn)?p.missingWarn:e.missingWarn,d=f(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,T=f(p.escapeParameter)?p.escapeParameter:e.escapeParameter,A=!!p.resolvedMessage,N=m(p.default)||f(p.default)?f(p.default)?l?g:()=>g:p.default:n?l?g:()=>g:"",b=n||""!==N,C=m(p.locale)?p.locale:e.locale;T&&function(e){c(e.list)?e.list=e.list.map((e=>m(e)?i(e):e)):_(e.named)&&Object.keys(e.named).forEach((t=>{m(e.named[t])&&(e.named[t]=i(e.named[t]))}))}(p);let[k,F,h]=A?[g,C,u[C]||{}]:ie(e,g,C,s,d,E),D=k,L=g;if(A||m(D)||se(D)||b&&(D=N,L=D),!(A||(m(D)||se(D))&&m(F)))return o?-1:g;let O=!1;const I=se(D)?D:ce(e,g,F,D,L,(()=>{O=!0}));if(O)return D;const y=function(e,t,n,a){const{modifiers:o,pluralRules:l,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:f}=e,_=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=ie(f,r,t,i,c,u);a=s(e,r)}if(m(a)){let n=!1;const o=ce(e,r,t,a,r,(()=>{n=!0}));return n?le:o}return se(a)?a:le},g={locale:t,modifiers:o,pluralRules:l,messages:_};e.processor&&(g.processor=e.processor);a.list&&(g.list=a.list);a.named&&(g.named=a.named);r(a.plural)&&(g.pluralIndex=a.plural);return g}(e,F,h,p),M=function(e,t,n){return t(n)}(0,I,S(y));return a?a(M,g):M},e.translateDevTools=w,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
{
"name": "@intlify/core",
"version": "9.2.0-beta.38",
"version": "9.2.0-beta.39",
"description": "@intlify/core",

@@ -37,3 +37,3 @@ "keywords": [

"dependencies": {
"@intlify/core-base": "9.2.0-beta.38"
"@intlify/core-base": "9.2.0-beta.39"
},

@@ -40,0 +40,0 @@ "engines": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc