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

vue-i18n-bridge

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-i18n-bridge - npm Package Compare versions

Comparing version 9.2.0-beta.20 to 9.2.0-beta.21

78

dist/vue-i18n-bridge.cjs.js
/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi

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

*/
const VERSION = '9.2.0-beta.20';
const VERSION = '9.2.0-beta.21';

@@ -214,2 +214,39 @@ let code$1 = coreBase.CoreWarnCodes.__EXTEND_POINT__;

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = shared.isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (shared.isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (shared.isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
/* eslint-enable @typescript-eslint/no-explicit-any */

@@ -1137,39 +1174,2 @@

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = shared.isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (shared.isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (shared.isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
function getComposer(i18n, target, useComponent = false) {

@@ -1176,0 +1176,0 @@ let composer = null;

/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi

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

*/
const VERSION = '9.2.0-beta.20';
const VERSION = '9.2.0-beta.21';

@@ -174,2 +174,39 @@ let code = coreBase.CompileErrorCodes.__EXTEND_POINT__;

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = shared.isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (shared.isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (shared.isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
/* eslint-enable @typescript-eslint/no-explicit-any */

@@ -1048,39 +1085,2 @@

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = shared.isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (shared.isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (shared.isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
function getComposer(i18n, target, useComponent = false) {

@@ -1087,0 +1087,0 @@ let composer = null;

/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref as e,getCurrentInstance as t,computed as n,watch as r,onBeforeMount as a,onUnmounted as o}from"@vue/composition-api";const s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=e=>s?Symbol(e):e,c=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),i=e=>"number"==typeof e&&isFinite(e),u=e=>"[object RegExp]"===E(e),f=e=>T(e)&&0===Object.keys(e).length;function m(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _=Object.assign;function p(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const d=Object.prototype.hasOwnProperty;function g(e,t){return d.call(e,t)}const h=Array.isArray,b=e=>"function"==typeof e,k=e=>"string"==typeof e,v=e=>"boolean"==typeof e,L=e=>null!==e&&"object"==typeof e,y=Object.prototype.toString,E=e=>y.call(e),T=e=>"[object Object]"===E(e),N=15;function I(e){throw e}function C(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const O=String.fromCharCode(8232),F=String.fromCharCode(8233);function R(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&"\n"===t[e+1],l=e=>t[e]===F,c=e=>t[e]===O,i=e=>s(e)||(e=>"\n"===t[e])(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?"\n":t[e];function f(){return o=0,i(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:f,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const w=void 0;function P(e,t={}){const n=!1!==t.location,r=R(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=C(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function _(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function p(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===w)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;p(e);const r=function(e){if(e===w)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(" "===r||"\n"===r):" "===o?(e.peek(),n(!0," ",a)):"\n"!==o||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===w?w:t(n)?(e.next(),n):null}function L(e){return v(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 y(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function E(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=y(e);)n+=t;return n}function N(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return o(),""}}function I(e,t,n){_(e,t);let r="";for(let t=0;t<n;t++){const t=E(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){d(e);const t=_(e,"|");return d(e),t}function F(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=P(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,W(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){d(e);let t="",n="";for(;t=L(e);)n+=t;return e.currentChar()===w&&o(),n}(e)),d(e),n;if(a=h(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${T(e)}`):t+=T(e),e.currentChar()===w&&o(),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),_(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=v(e,r);)n+="\\"===t?N(e):t;const a=e.currentChar();return"\n"===a||a===w?(o(),"\n"===a&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,d(e),n}return n}function P(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==a&&" "!==a||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,9,".");case":":return d(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(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;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),P(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,12,function(e){let t="",n="";for(;t=L(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?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?F(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?" "===a?r:"\n"===a?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,W(e,t))}}function W(e,t){let n={type:14};if(t.braceNest>0)return F(e,t)||m(t);if(t.inLinked)return P(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return F(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return P(e,t)||m(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===w?f(c,14):W(r,c)},currentOffset:a,currentPosition:o,context:i}}const W=/(?:\\\\|\\'|\\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 x(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(W,A),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 12!==t.type?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,$(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,$(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,$(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 5:null==o.value&&(t.lastStartLoc,$(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,$(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,$(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.startLoc),{nextConsumeToken:o,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function u(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 u=null;do{const r=u||e.nextToken();switch(u=null,r.type){case 0:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:o}=t,s=u(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=u(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=P(n,_({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function $(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 S(e,t){for(let n=0;n<e.length;n++)D(e[n],t)}function D(e,t){switch(e.type){case 1:S(e.cases,t),t.helper("plural");break;case 2:S(e.items,t);break;case 6:D(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function M(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&&D(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function U(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?U(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 a=t.cases.length;for(let n=0;n<a&&(U(e,t.cases[n]),n!==a-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 a=t.items.length;for(let n=0;n<a&&(U(e,t.items[n]),n!==a-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")}(`),U(e,t.key),t.modifier&&(e.push(", "),U(e,t.modifier)),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 V(e,t={}){const n=_({},t),r=x(n).parse(e);return M(r,n),((e,t={})=>{const n=k(t.mode)?t.mode:"normal",r=k(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),U(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const j=[];j[0]={w:[0],i:[3,0],"[":[4],o:[7]},j[1]={w:[1],".":[2],"[":[4],o:[7]},j[2]={w:[2],i:[3,0],0:[3,0]},j[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},j[5]={"'":[4,0],o:8,l:[5,0]},j[6]={'"':[4,0],o:8,l:[6,0]};const G=/^\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 H(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,G.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}const J=new Map;function z(e,t){return L(e)?e[t]:null}const Y=e=>e,X=e=>"",K=e=>0===e.length?"":e.join(""),q=e=>null==e?"":h(e)||T(e)&&e.toString===y?JSON.stringify(e,null,2):String(e);function Q(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=i(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(i(e.named.count)||i(e.named.n))?i(e.named.count)?e.named.count:i(e.named.n)?e.named.n:t:t}(e),r=L(e.pluralRules)&&k(t)&&b(e.pluralRules[t])?e.pluralRules[t]:Q,a=L(e.pluralRules)&&k(t)&&b(e.pluralRules[t])?Q:void 0,o=e.list||[],s=e.named||{};i(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function l(t){const n=b(e.messages)?e.messages(t):!!L(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):X)}const c=T(e.processor)&&b(e.processor.normalize)?e.processor.normalize:K,u=T(e.processor)&&b(e.processor.interpolate)?e.processor.interpolate:q,f={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=l(t)(f);return k(n)?(a=n,e.modifiers?e.modifiers[a]:Y)(r):r;var a},message:l,type:T(e.processor)&&k(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return f}function ee(e,t,n){return[...new Set([n,...h(t)?t:L(t)?Object.keys(t):k(t)?[t]:[n]])]}function te(e,t,n){const r=k(n)?n:oe,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;h(e);)e=ne(o,e,t);const s=h(t)||!T(t)?t:t.default?t.default:null;e=k(s)?[s]:s,h(e)&&ne(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ne(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];k(o)&&(r=re(e,t[a],n))}return r}function re(e,t,n){let r;const a=t.split("-");do{r=ae(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ae(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),(h(n)||T(n))&&n[a]&&(r=n[a])}return r}const oe="en-US";let se,le,ce;let ie=0;function ue(e={}){const t=k(e.version)?e.version:"9.2.0-beta.20",n=k(e.locale)?e.locale:oe,r=h(e.fallbackLocale)||T(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=T(e.messages)?e.messages:{[n]:{}},o=T(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=T(e.numberFormats)?e.numberFormats:{[n]:{}},l=_({},e.modifiers||{},{upper:e=>k(e)?e.toUpperCase():e,lower:e=>k(e)?e.toLowerCase():e,capitalize:e=>k(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},i=b(e.missing)?e.missing:null,f=!v(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,p=!v(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,d=!!e.fallbackFormat,g=!!e.unresolving,y=b(e.postTranslation)?e.postTranslation:null,E=T(e.processor)?e.processor:null,N=!v(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,C=b(e.messageCompiler)?e.messageCompiler:se,O=b(e.messageResolver)?e.messageResolver:le||z,F=b(e.localeFallbacker)?e.localeFallbacker:ce||ee,R=b(e.onWarn)?e.onWarn:m,w=e,P=L(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,W=L(w.__numberFormatters)?w.__numberFormatters:new Map,A=L(w.__meta)?w.__meta:{};ie++;const x={version:t,cid:ie,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:i,missingWarn:f,fallbackWarn:p,fallbackFormat:d,unresolving:g,postTranslation:y,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:C,messageResolver:O,localeFallbacker:F,onWarn:R,__meta:A};return x.datetimeFormats=o,x.numberFormats=s,x.__datetimeFormatters=P,x.__numberFormatters=W,x}function fe(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return k(r)?r:t}return t}function me(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const _e=e=>e;let pe=Object.create(null);let de=N;const ge=()=>de++,he={INVALID_ARGUMENT:de,INVALID_DATE_ARGUMENT:ge(),INVALID_ISO_DATE_ARGUMENT:ge(),__EXTEND_POINT__:ge()},be=()=>"",ke=e=>b(e);function ve(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[c,u]=ye(...t),f=(v(u.missingWarn)?u.missingWarn:e.missingWarn,v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,v(u.escapeParameter)?u.escapeParameter:e.escapeParameter),m=!!u.resolvedMessage,_=k(u.default)||v(u.default)?v(u.default)?c:u.default:n?o?c:()=>c:"",d=n||""!==_,g=k(u.locale)?u.locale:e.locale;f&&function(e){h(e.list)?e.list=e.list.map((e=>k(e)?p(e):e)):L(e.named)&&Object.keys(e.named).forEach((t=>{k(e.named[t])&&(e.named[t]=p(e.named[t]))}))}(u);let[y,E,T]=m?[c,g,l[g]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},_=null;const p="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(_=c(m,t))&&(_=m[t]),!k(_)&&!b(_));n++){const n=fe(e,t,f,0,p);n!==t&&(_=n)}return[_,f,m]}(e,c,g,s),N=y,I=c;if(m||k(N)||ke(N)||d&&(N=_,I=N),!(m||(k(N)||ke(N))&&k(E)))return a?-1:c;let C=!1;const O=ke(N)?N:Le(e,c,E,N,I,(()=>{C=!0}));if(C)return N;const F=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s}=e,l=r=>{const a=s(n,r);if(k(a)){let n=!1;const o=Le(e,r,t,a,r,(()=>{n=!0}));return n?be:o}return ke(a)?a:be},c={locale:t,modifiers:a,pluralRules:o,messages:l};e.processor&&(c.processor=e.processor);r.list&&(c.list=r.list);r.named&&(c.named=r.named);i(r.plural)&&(c.pluralIndex=r.plural);return c}(e,E,T,u),R=function(e,t,n){return t(n)}(0,O,Z(F));return r?r(R):R}function Le(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(ke(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const i=s(r,function(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>c({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,l,o));return i.locale=n,i.key=t,i.source=r,i}function ye(...e){const[t,n,r]=e,a={};if(!k(t)&&!i(t)&&!ke(t))throw Error(he.INVALID_ARGUMENT);const o=i(t)?String(t):(ke(t),t);return i(n)?a.plural=n:k(n)?a.default=n:T(n)&&!f(n)?a.named=n:h(n)&&(a.list=n),i(r)?a.plural=r:k(r)?a.default=r:T(r)&&_(a,r),[o,a]}function Ee(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[c,i,u,m]=Te(...t);v(u.missingWarn)?u.missingWarn:e.missingWarn;v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=k(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!k(c)||""===c)return new Intl.DateTimeFormat(d).format(i);let h,b={},L=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},L=b[c],!T(L));t++)fe(e,c,h,0,"datetime format");if(!T(L)||!k(h))return r?-1:c;let y=`${h}__${c}`;f(m)||(y=`${y}__${JSON.stringify(m)}`);let E=l.get(y);return E||(E=new Intl.DateTimeFormat(h,_({},L,m)),l.set(y,E)),p?E.formatToParts(i):E.format(i)}function Te(...e){const[t,n,r,a]=e;let o,s={},l={};if(k(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(he.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();o=new Date(n);try{o.toISOString()}catch(e){throw Error(he.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===E(t)){if(isNaN(t.getTime()))throw Error(he.INVALID_DATE_ARGUMENT);o=t}else{if(!i(t))throw Error(he.INVALID_ARGUMENT);o=t}return k(n)?s.key=n:T(n)&&(s=n),k(r)?s.locale=r:T(r)&&(l=r),T(a)&&(l=a),[s.key||"",o,s,l]}function Ne(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ie(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,i,u,m]=Ce(...t);v(u.missingWarn)?u.missingWarn:e.missingWarn;v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=k(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!k(c)||""===c)return new Intl.NumberFormat(d).format(i);let h,b={},L=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},L=b[c],!T(L));t++)fe(e,c,h,0,"number format");if(!T(L)||!k(h))return r?-1:c;let y=`${h}__${c}`;f(m)||(y=`${y}__${JSON.stringify(m)}`);let E=l.get(y);return E||(E=new Intl.NumberFormat(h,_({},L,m)),l.set(y,E)),p?E.formatToParts(i):E.format(i)}function Ce(...e){const[t,n,r,a]=e;let o={},s={};if(!i(t))throw Error(he.INVALID_ARGUMENT);const l=t;return k(n)?o.key=n:T(n)&&(o=n),k(r)?o.locale=r:T(r)&&(s=r),T(a)&&(s=a),[o.key||"",l,o,s]}function Oe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Fe="9.2.0-beta.20";let Re=N;const we=()=>Re++,Pe={UNEXPECTED_RETURN_TYPE:Re,INVALID_ARGUMENT:we(),MUST_BE_CALL_SETUP_TOP:we(),NOT_INSLALLED:we(),NOT_AVAILABLE_IN_LEGACY_MODE:we(),REQUIRED_VALUE:we(),INVALID_VALUE:we(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:we(),NOT_INSLALLED_WITH_PROVIDE:we(),UNEXPECTED_ERROR:we(),NOT_COMPATIBLE_LEGACY_VUE_I18N:we(),BRIDGE_SUPPORT_VUE_2_ONLY:we(),__EXTEND_POINT__:we()},We=l("__setPluralRules"),Ae=l("__legacyVueI18n"),xe=l("__injectWithOption");function $e(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Se(e){if(!L(e))return e;for(const t in e)if(g(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],L(a[n[r]])&&Se(a[n[r]])}else L(e[t])&&Se(e[t]);return e}function De(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=T(n)?n:h(r)?{}:{[e]:{}};if(h(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},Ue(n,s[t])):Ue(n,s)}else k(e)&&Ue(JSON.parse(e),s)})),null==a&&o)for(const e in s)g(s,e)&&Se(s[e]);return s}const Me=e=>!L(e)||h(e);function Ue(e,t){if(Me(e)||Me(t))throw Error(Pe.INVALID_VALUE);for(const n in e)g(e,n)&&(Me(e[n])||Me(t[n])?t[n]=e[n]:Ue(e[n],t[n]))}let Ve=0;function je(e){return(n,r,a,o)=>e(r,a,t()||void 0,o)}function Ge(t={},a){const{__root:o}=t,s=void 0===o;let l=!v(t.inheritLocale)||t.inheritLocale;const c=e(o&&l?o.locale.value:k(t.locale)?t.locale:oe),f=e(o&&l?o.fallbackLocale.value:k(t.fallbackLocale)||h(t.fallbackLocale)||T(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:c.value),m=e(De(c.value,t)),p=e(T(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),d=e(T(t.numberFormats)?t.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:!v(t.missingWarn)&&!u(t.missingWarn)||t.missingWarn,y=o?o.fallbackWarn:!v(t.fallbackWarn)&&!u(t.fallbackWarn)||t.fallbackWarn,E=o?o.fallbackRoot:!v(t.fallbackRoot)||t.fallbackRoot,N=!!t.fallbackFormat,I=b(t.missing)?t.missing:null,C=b(t.missing)?je(t.missing):null,O=b(t.postTranslation)?t.postTranslation:null,F=!v(t.warnHtmlMessage)||t.warnHtmlMessage,R=!!t.escapeParameter;const w=o?o.modifiers:T(t.modifiers)?t.modifiers:{};let P,W,A=t.pluralRules||o&&o.pluralRules;{$e(a);const e={locale:c.value,fallbackLocale:f.value,messages:m.value,dateTimeFormats:p.value,numberFormats:d.value,modifiers:w,missing:I,fallbackRoot:E,postTranslation:O,pluralizationRules:A,escapeParameterHtml:R,sync:l,silentFallbackWarn:v(y)?!y:y,silentTranslationWarn:v(g)?!g:g,formatFallbackMessages:v(N)?!N:N,warnHtmlInMessage:v(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};P=new a(e)}W=function(){const e={version:"9.2.0-beta.20",locale:c.value,fallbackLocale:f.value,messages:m.value,modifiers:w,pluralRules:A,missing:null===C?void 0:C,missingWarn:g,fallbackWarn:y,fallbackFormat:N,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:F,escapeParameter:R,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=p.value,e.numberFormats=d.value,e.__datetimeFormatters=T(W)?W.__datetimeFormatters:void 0,e.__numberFormatters=T(W)?W.__numberFormatters:void 0,ue(e)}(),me(W,c.value,f.value);const x=n({get:()=>c.value,set:e=>{c.value=e,P&&!s&&(P.locale=e),W.locale=c.value}}),$=n({get:()=>f.value,set:e=>{f.value=e,P&&!s&&(P.fallbackLocale=e),W.fallbackLocale=f.value,me(W,c.value,e)}}),S=n((()=>m.value)),D=n((()=>p.value)),M=n((()=>d.value));function U(e,t,n,r,a,s){let l;if(c.value,f.value,m.value,p.value,d.value,l=e(W),i(l)&&-1===l){const[e,n]=t();return o&&E?r(o):a(e)}if(s(l))return l;throw Error(Pe.UNEXPECTED_RETURN_TYPE)}function V(...e){return U((t=>Reflect.apply(ve,null,[t,...e])),(()=>ye(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>k(e)))}function j(e){return m.value[e]||{}}Ve++,o&&(r(o.locale,(e=>{l&&(c.value=e,P&&!s&&(P.locale=e),W.locale=e,me(W,c.value,f.value))})),r(o.fallbackLocale,(e=>{l&&(f.value=e,P&&!s&&(P.fallbackLocale=e),W.fallbackLocale=e,me(W,c.value,f.value))})));const G={id:Ve,locale:x,fallbackLocale:$,get inheritLocale(){return l},set inheritLocale(e){l=e,P&&(P._sync=e),e&&o&&(c.value=o.locale.value,f.value=o.fallbackLocale.value,P&&(P.locale=o.locale.value,P.fallbackLocale=o.fallbackLocale.value),me(W,c.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:S,get modifiers(){return w},get pluralRules(){return A||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(e){g=e,W.missingWarn=g},get fallbackWarn(){return y},set fallbackWarn(e){y=e,W.fallbackWarn=y},get fallbackRoot(){return E},set fallbackRoot(e){E=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,W.fallbackFormat=N},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,W.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,W.escapeParameter=e},t:V,getLocaleMessage:j,setLocaleMessage:function(e,t){m.value[e]=t,P&&P.setLocaleMessage(e,t),W.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},P&&P.mergeLocaleMessage(e,t),Ue(t,m.value[e]),W.messages=m.value},getPostTranslationHandler:function(){return b(O)?O:null},setPostTranslationHandler:function(e){O=e,W.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(C=je(e)),I=e,W.missing=C},[We]:function(e){A=e,W.pluralRules=A}};return G.datetimeFormats=D,G.numberFormats=M,G.rt=function(...e){const[t,n,r]=e;if(r&&!L(r))throw Error(Pe.INVALID_ARGUMENT);return V(t,n,_({resolvedMessage:!0},r||{}))},G.te=function(e,t){const n=j(k(t)?t:c.value);return null!==W.messageResolver(n,e)},G.tm=function(e){const t=function(e){let t=null;const n=te(W,f.value,c.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=W.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:o&&o.tm(e)||{}},G.d=function(...e){return U((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Te(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>k(e)))},G.n=function(...e){return U((t=>Reflect.apply(Ie,null,[t,...e])),(()=>Ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>k(e)))},G.getDateTimeFormat=function(e){return p.value[e]||{}},G.setDateTimeFormat=function(e,t){p.value[e]=t,P&&P.setDateTimeFormat(e,t),W.datetimeFormats=p.value,Ne(W,e,t)},G.mergeDateTimeFormat=function(e,t){p.value[e]=_(p.value[e]||{},t),P&&P.mergeDateTimeFormat(e,t),W.datetimeFormats=p.value,Ne(W,e,t)},G.getNumberFormat=function(e){return d.value[e]||{}},G.setNumberFormat=function(e,t){d.value[e]=t,P&&P.setNumberFormat(e,t),W.numberFormats=d.value,Oe(W,e,t)},G.mergeNumberFormat=function(e,t){d.value[e]=_(d.value[e]||{},t),P&&P.mergeNumberFormat(e,t),W.numberFormats=d.value,Oe(W,e,t)},G[xe]=t.__injectWithOption,G[Ae]=P,G}let Be=null,He=null;const Je=l("global-vue-i18n");function ze(e={},t){if(He)return He;Be=t;const n=!v(e.legacy)||e.legacy,r=!v(e.globalInjection)||e.globalInjection,a=new Map,o=function(e,t,n){if(!$e(n))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Ge(e,n)}(e,0,t);l("");{const e=o[Ae];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>a}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Pe.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&r&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,o),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ue(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(T(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ue(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&T(r)&&Ue(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||T(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Be))}});const t={__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),He=e,e}}function Ye(e={}){const n=t();if(null==n)throw Error(Pe.MUST_BE_CALL_SETUP_TOP);if(null==Be||null==He)throw Error(Pe.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Pe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=He),!n)throw Error(Pe.NOT_INSLALLED);return n}}(n),s=function(e){return e.global}(r),l=function(e){return e.proxy.$options}(n),c=function(e,t){return f(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===c)return function(e,t,n){let r=L(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=De(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])}));if(L(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(L(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(s,e,l),s;if("parent"===c){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[xe]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=s),t}if("legacy"===r.mode)throw Error(Pe.NOT_AVAILABLE_IN_LEGACY_MODE);const i=r;let u=i.__getInstance(n);if(null==u){const t=_({},e);"__i18n"in l&&(t.__i18n=l.__i18n),s&&(t.__root=s),u=Ge(t,Be),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(Pe.UNEXPECTED_ERROR);const s=n[Ae];if(s===e)throw Error(Pe.UNEXPECTED_ERROR);r._i18n=s,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let l=!1;a((()=>{r._i18n.subscribeDataChanging(r),l=!0}),t),o((()=>{l&&(r._i18n.unsubscribeDataChanging(r),l=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),t)}}(i,n,u),i.__setInstance(n,u)}return u}const Xe=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var Ke;Ke=function(e,t={}){{const n=(t.onCacheKey||_e)(e),r=pe[n];if(r)return r;let a=!1;const o=t.onError||I;t.onError=e=>{a=!0,o(e)};const{code:s}=V(e,t),l=new Function(`return ${s}`)();return a?l:pe[n]=l}},se=Ke,le=function(e,t){if(!L(e))return null;let n=J.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=H(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=B(n),c=j[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&J.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},ce=te;export{Je as I18nInjectionKey,Fe as VERSION,Xe as castToVueI18n,ze as createI18n,Ye as useI18n};
import{ref as e,getCurrentInstance as t,computed as n,watch as r,onBeforeMount as a,onUnmounted as o}from"@vue/composition-api";const s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=e=>s?Symbol(e):e,c=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),i=e=>"number"==typeof e&&isFinite(e),u=e=>"[object RegExp]"===E(e),f=e=>T(e)&&0===Object.keys(e).length;function m(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _=Object.assign;function p(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const d=Object.prototype.hasOwnProperty;function g(e,t){return d.call(e,t)}const h=Array.isArray,b=e=>"function"==typeof e,k=e=>"string"==typeof e,v=e=>"boolean"==typeof e,L=e=>null!==e&&"object"==typeof e,y=Object.prototype.toString,E=e=>y.call(e),T=e=>"[object Object]"===E(e),N=15;function I(e){throw e}function C(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const O=String.fromCharCode(8232),F=String.fromCharCode(8233);function R(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&"\n"===t[e+1],l=e=>t[e]===F,c=e=>t[e]===O,i=e=>s(e)||(e=>"\n"===t[e])(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?"\n":t[e];function f(){return o=0,i(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:f,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const w=void 0;function P(e,t={}){const n=!1!==t.location,r=R(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=C(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function _(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function p(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===w)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;p(e);const r=function(e){if(e===w)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(" "===r||"\n"===r):" "===o?(e.peek(),n(!0," ",a)):"\n"!==o||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===w?w:t(n)?(e.next(),n):null}function L(e){return v(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 y(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function E(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=y(e);)n+=t;return n}function N(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return o(),""}}function I(e,t,n){_(e,t);let r="";for(let t=0;t<n;t++){const t=E(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){d(e);const t=_(e,"|");return d(e),t}function F(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=P(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,W(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){d(e);let t="",n="";for(;t=L(e);)n+=t;return e.currentChar()===w&&o(),n}(e)),d(e),n;if(a=h(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${T(e)}`):t+=T(e),e.currentChar()===w&&o(),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),_(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=v(e,r);)n+="\\"===t?N(e):t;const a=e.currentChar();return"\n"===a||a===w?(o(),"\n"===a&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,d(e),n}return n}function P(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==a&&" "!==a||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,9,".");case":":return d(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(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;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),P(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,12,function(e){let t="",n="";for(;t=L(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?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?F(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?" "===a?r:"\n"===a?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,W(e,t))}}function W(e,t){let n={type:14};if(t.braceNest>0)return F(e,t)||m(t);if(t.inLinked)return P(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return F(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return P(e,t)||m(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===w?f(c,14):W(r,c)},currentOffset:a,currentPosition:o,context:i}}const W=/(?:\\\\|\\'|\\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 x(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(W,A),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 12!==t.type?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,$(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,$(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,$(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 5:null==o.value&&(t.lastStartLoc,$(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,$(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,$(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.startLoc),{nextConsumeToken:o,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function u(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 u=null;do{const r=u||e.nextToken();switch(u=null,r.type){case 0:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:o}=t,s=u(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=u(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=P(n,_({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function $(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 S(e,t){for(let n=0;n<e.length;n++)D(e[n],t)}function D(e,t){switch(e.type){case 1:S(e.cases,t),t.helper("plural");break;case 2:S(e.items,t);break;case 6:D(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function M(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&&D(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function U(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?U(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 a=t.cases.length;for(let n=0;n<a&&(U(e,t.cases[n]),n!==a-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 a=t.items.length;for(let n=0;n<a&&(U(e,t.items[n]),n!==a-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")}(`),U(e,t.key),t.modifier&&(e.push(", "),U(e,t.modifier)),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 V(e,t={}){const n=_({},t),r=x(n).parse(e);return M(r,n),((e,t={})=>{const n=k(t.mode)?t.mode:"normal",r=k(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),U(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const j=[];j[0]={w:[0],i:[3,0],"[":[4],o:[7]},j[1]={w:[1],".":[2],"[":[4],o:[7]},j[2]={w:[2],i:[3,0],0:[3,0]},j[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},j[5]={"'":[4,0],o:8,l:[5,0]},j[6]={'"':[4,0],o:8,l:[6,0]};const G=/^\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 H(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,G.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}const J=new Map;function z(e,t){return L(e)?e[t]:null}const Y=e=>e,X=e=>"",K=e=>0===e.length?"":e.join(""),q=e=>null==e?"":h(e)||T(e)&&e.toString===y?JSON.stringify(e,null,2):String(e);function Q(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=i(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(i(e.named.count)||i(e.named.n))?i(e.named.count)?e.named.count:i(e.named.n)?e.named.n:t:t}(e),r=L(e.pluralRules)&&k(t)&&b(e.pluralRules[t])?e.pluralRules[t]:Q,a=L(e.pluralRules)&&k(t)&&b(e.pluralRules[t])?Q:void 0,o=e.list||[],s=e.named||{};i(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function l(t){const n=b(e.messages)?e.messages(t):!!L(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):X)}const c=T(e.processor)&&b(e.processor.normalize)?e.processor.normalize:K,u=T(e.processor)&&b(e.processor.interpolate)?e.processor.interpolate:q,f={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=l(t)(f);return k(n)?(a=n,e.modifiers?e.modifiers[a]:Y)(r):r;var a},message:l,type:T(e.processor)&&k(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return f}function ee(e,t,n){return[...new Set([n,...h(t)?t:L(t)?Object.keys(t):k(t)?[t]:[n]])]}function te(e,t,n){const r=k(n)?n:oe,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;h(e);)e=ne(o,e,t);const s=h(t)||!T(t)?t:t.default?t.default:null;e=k(s)?[s]:s,h(e)&&ne(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ne(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];k(o)&&(r=re(e,t[a],n))}return r}function re(e,t,n){let r;const a=t.split("-");do{r=ae(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ae(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),(h(n)||T(n))&&n[a]&&(r=n[a])}return r}const oe="en-US";let se,le,ce;let ie=0;function ue(e={}){const t=k(e.version)?e.version:"9.2.0-beta.21",n=k(e.locale)?e.locale:oe,r=h(e.fallbackLocale)||T(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=T(e.messages)?e.messages:{[n]:{}},o=T(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=T(e.numberFormats)?e.numberFormats:{[n]:{}},l=_({},e.modifiers||{},{upper:e=>k(e)?e.toUpperCase():e,lower:e=>k(e)?e.toLowerCase():e,capitalize:e=>k(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},i=b(e.missing)?e.missing:null,f=!v(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,p=!v(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,d=!!e.fallbackFormat,g=!!e.unresolving,y=b(e.postTranslation)?e.postTranslation:null,E=T(e.processor)?e.processor:null,N=!v(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,C=b(e.messageCompiler)?e.messageCompiler:se,O=b(e.messageResolver)?e.messageResolver:le||z,F=b(e.localeFallbacker)?e.localeFallbacker:ce||ee,R=b(e.onWarn)?e.onWarn:m,w=e,P=L(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,W=L(w.__numberFormatters)?w.__numberFormatters:new Map,A=L(w.__meta)?w.__meta:{};ie++;const x={version:t,cid:ie,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:i,missingWarn:f,fallbackWarn:p,fallbackFormat:d,unresolving:g,postTranslation:y,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:C,messageResolver:O,localeFallbacker:F,onWarn:R,__meta:A};return x.datetimeFormats=o,x.numberFormats=s,x.__datetimeFormatters=P,x.__numberFormatters=W,x}function fe(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return k(r)?r:t}return t}function me(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const _e=e=>e;let pe=Object.create(null);let de=N;const ge=()=>de++,he={INVALID_ARGUMENT:de,INVALID_DATE_ARGUMENT:ge(),INVALID_ISO_DATE_ARGUMENT:ge(),__EXTEND_POINT__:ge()},be=()=>"",ke=e=>b(e);function ve(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[c,u]=ye(...t),f=(v(u.missingWarn)?u.missingWarn:e.missingWarn,v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,v(u.escapeParameter)?u.escapeParameter:e.escapeParameter),m=!!u.resolvedMessage,_=k(u.default)||v(u.default)?v(u.default)?c:u.default:n?o?c:()=>c:"",d=n||""!==_,g=k(u.locale)?u.locale:e.locale;f&&function(e){h(e.list)?e.list=e.list.map((e=>k(e)?p(e):e)):L(e.named)&&Object.keys(e.named).forEach((t=>{k(e.named[t])&&(e.named[t]=p(e.named[t]))}))}(u);let[y,E,T]=m?[c,g,l[g]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},_=null;const p="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(_=c(m,t))&&(_=m[t]),!k(_)&&!b(_));n++){const n=fe(e,t,f,0,p);n!==t&&(_=n)}return[_,f,m]}(e,c,g,s),N=y,I=c;if(m||k(N)||ke(N)||d&&(N=_,I=N),!(m||(k(N)||ke(N))&&k(E)))return a?-1:c;let C=!1;const O=ke(N)?N:Le(e,c,E,N,I,(()=>{C=!0}));if(C)return N;const F=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s}=e,l=r=>{const a=s(n,r);if(k(a)){let n=!1;const o=Le(e,r,t,a,r,(()=>{n=!0}));return n?be:o}return ke(a)?a:be},c={locale:t,modifiers:a,pluralRules:o,messages:l};e.processor&&(c.processor=e.processor);r.list&&(c.list=r.list);r.named&&(c.named=r.named);i(r.plural)&&(c.pluralIndex=r.plural);return c}(e,E,T,u),R=function(e,t,n){return t(n)}(0,O,Z(F));return r?r(R):R}function Le(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(ke(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const i=s(r,function(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>c({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,l,o));return i.locale=n,i.key=t,i.source=r,i}function ye(...e){const[t,n,r]=e,a={};if(!k(t)&&!i(t)&&!ke(t))throw Error(he.INVALID_ARGUMENT);const o=i(t)?String(t):(ke(t),t);return i(n)?a.plural=n:k(n)?a.default=n:T(n)&&!f(n)?a.named=n:h(n)&&(a.list=n),i(r)?a.plural=r:k(r)?a.default=r:T(r)&&_(a,r),[o,a]}function Ee(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[c,i,u,m]=Te(...t);v(u.missingWarn)?u.missingWarn:e.missingWarn;v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=k(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!k(c)||""===c)return new Intl.DateTimeFormat(d).format(i);let h,b={},L=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},L=b[c],!T(L));t++)fe(e,c,h,0,"datetime format");if(!T(L)||!k(h))return r?-1:c;let y=`${h}__${c}`;f(m)||(y=`${y}__${JSON.stringify(m)}`);let E=l.get(y);return E||(E=new Intl.DateTimeFormat(h,_({},L,m)),l.set(y,E)),p?E.formatToParts(i):E.format(i)}function Te(...e){const[t,n,r,a]=e;let o,s={},l={};if(k(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(he.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();o=new Date(n);try{o.toISOString()}catch(e){throw Error(he.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===E(t)){if(isNaN(t.getTime()))throw Error(he.INVALID_DATE_ARGUMENT);o=t}else{if(!i(t))throw Error(he.INVALID_ARGUMENT);o=t}return k(n)?s.key=n:T(n)&&(s=n),k(r)?s.locale=r:T(r)&&(l=r),T(a)&&(l=a),[s.key||"",o,s,l]}function Ne(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ie(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,i,u,m]=Ce(...t);v(u.missingWarn)?u.missingWarn:e.missingWarn;v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=k(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!k(c)||""===c)return new Intl.NumberFormat(d).format(i);let h,b={},L=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},L=b[c],!T(L));t++)fe(e,c,h,0,"number format");if(!T(L)||!k(h))return r?-1:c;let y=`${h}__${c}`;f(m)||(y=`${y}__${JSON.stringify(m)}`);let E=l.get(y);return E||(E=new Intl.NumberFormat(h,_({},L,m)),l.set(y,E)),p?E.formatToParts(i):E.format(i)}function Ce(...e){const[t,n,r,a]=e;let o={},s={};if(!i(t))throw Error(he.INVALID_ARGUMENT);const l=t;return k(n)?o.key=n:T(n)&&(o=n),k(r)?o.locale=r:T(r)&&(s=r),T(a)&&(s=a),[o.key||"",l,o,s]}function Oe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Fe="9.2.0-beta.21";let Re=N;const we=()=>Re++,Pe={UNEXPECTED_RETURN_TYPE:Re,INVALID_ARGUMENT:we(),MUST_BE_CALL_SETUP_TOP:we(),NOT_INSLALLED:we(),NOT_AVAILABLE_IN_LEGACY_MODE:we(),REQUIRED_VALUE:we(),INVALID_VALUE:we(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:we(),NOT_INSLALLED_WITH_PROVIDE:we(),UNEXPECTED_ERROR:we(),NOT_COMPATIBLE_LEGACY_VUE_I18N:we(),BRIDGE_SUPPORT_VUE_2_ONLY:we(),__EXTEND_POINT__:we()},We=l("__setPluralRules"),Ae=l("__legacyVueI18n"),xe=l("__injectWithOption");function $e(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Se(e){if(!L(e))return e;for(const t in e)if(g(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],L(a[n[r]])&&Se(a[n[r]])}else L(e[t])&&Se(e[t]);return e}function De(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=T(n)?n:h(r)?{}:{[e]:{}};if(h(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},Ue(n,s[t])):Ue(n,s)}else k(e)&&Ue(JSON.parse(e),s)})),null==a&&o)for(const e in s)g(s,e)&&Se(s[e]);return s}const Me=e=>!L(e)||h(e);function Ue(e,t){if(Me(e)||Me(t))throw Error(Pe.INVALID_VALUE);for(const n in e)g(e,n)&&(Me(e[n])||Me(t[n])?t[n]=e[n]:Ue(e[n],t[n]))}let Ve=0;function je(e){return(n,r,a,o)=>e(r,a,t()||void 0,o)}function Ge(t={},a){const{__root:o}=t,s=void 0===o;let l=!v(t.inheritLocale)||t.inheritLocale;const c=e(o&&l?o.locale.value:k(t.locale)?t.locale:oe),f=e(o&&l?o.fallbackLocale.value:k(t.fallbackLocale)||h(t.fallbackLocale)||T(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:c.value),m=e(De(c.value,t)),p=e(T(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),d=e(T(t.numberFormats)?t.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:!v(t.missingWarn)&&!u(t.missingWarn)||t.missingWarn,y=o?o.fallbackWarn:!v(t.fallbackWarn)&&!u(t.fallbackWarn)||t.fallbackWarn,E=o?o.fallbackRoot:!v(t.fallbackRoot)||t.fallbackRoot,N=!!t.fallbackFormat,I=b(t.missing)?t.missing:null,C=b(t.missing)?je(t.missing):null,O=b(t.postTranslation)?t.postTranslation:null,F=!v(t.warnHtmlMessage)||t.warnHtmlMessage,R=!!t.escapeParameter;const w=o?o.modifiers:T(t.modifiers)?t.modifiers:{};let P,W,A=t.pluralRules||o&&o.pluralRules;{$e(a);const e={locale:c.value,fallbackLocale:f.value,messages:m.value,dateTimeFormats:p.value,numberFormats:d.value,modifiers:w,missing:I,fallbackRoot:E,postTranslation:O,pluralizationRules:A,escapeParameterHtml:R,sync:l,silentFallbackWarn:v(y)?!y:y,silentTranslationWarn:v(g)?!g:g,formatFallbackMessages:v(N)?!N:N,warnHtmlInMessage:v(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};P=new a(e)}W=function(){const e={version:"9.2.0-beta.21",locale:c.value,fallbackLocale:f.value,messages:m.value,modifiers:w,pluralRules:A,missing:null===C?void 0:C,missingWarn:g,fallbackWarn:y,fallbackFormat:N,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:F,escapeParameter:R,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=p.value,e.numberFormats=d.value,e.__datetimeFormatters=T(W)?W.__datetimeFormatters:void 0,e.__numberFormatters=T(W)?W.__numberFormatters:void 0,ue(e)}(),me(W,c.value,f.value);const x=n({get:()=>c.value,set:e=>{c.value=e,P&&!s&&(P.locale=e),W.locale=c.value}}),$=n({get:()=>f.value,set:e=>{f.value=e,P&&!s&&(P.fallbackLocale=e),W.fallbackLocale=f.value,me(W,c.value,e)}}),S=n((()=>m.value)),D=n((()=>p.value)),M=n((()=>d.value));function U(e,t,n,r,a,s){let l;if(c.value,f.value,m.value,p.value,d.value,l=e(W),i(l)&&-1===l){const[e,n]=t();return o&&E?r(o):a(e)}if(s(l))return l;throw Error(Pe.UNEXPECTED_RETURN_TYPE)}function V(...e){return U((t=>Reflect.apply(ve,null,[t,...e])),(()=>ye(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>k(e)))}function j(e){return m.value[e]||{}}Ve++,o&&(r(o.locale,(e=>{l&&(c.value=e,P&&!s&&(P.locale=e),W.locale=e,me(W,c.value,f.value))})),r(o.fallbackLocale,(e=>{l&&(f.value=e,P&&!s&&(P.fallbackLocale=e),W.fallbackLocale=e,me(W,c.value,f.value))})));const G={id:Ve,locale:x,fallbackLocale:$,get inheritLocale(){return l},set inheritLocale(e){l=e,P&&(P._sync=e),e&&o&&(c.value=o.locale.value,f.value=o.fallbackLocale.value,P&&(P.locale=o.locale.value,P.fallbackLocale=o.fallbackLocale.value),me(W,c.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:S,get modifiers(){return w},get pluralRules(){return A||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(e){g=e,W.missingWarn=g},get fallbackWarn(){return y},set fallbackWarn(e){y=e,W.fallbackWarn=y},get fallbackRoot(){return E},set fallbackRoot(e){E=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,W.fallbackFormat=N},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,W.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,W.escapeParameter=e},t:V,getLocaleMessage:j,setLocaleMessage:function(e,t){m.value[e]=t,P&&P.setLocaleMessage(e,t),W.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},P&&P.mergeLocaleMessage(e,t),Ue(t,m.value[e]),W.messages=m.value},getPostTranslationHandler:function(){return b(O)?O:null},setPostTranslationHandler:function(e){O=e,W.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(C=je(e)),I=e,W.missing=C},[We]:function(e){A=e,W.pluralRules=A}};return G.datetimeFormats=D,G.numberFormats=M,G.rt=function(...e){const[t,n,r]=e;if(r&&!L(r))throw Error(Pe.INVALID_ARGUMENT);return V(t,n,_({resolvedMessage:!0},r||{}))},G.te=function(e,t){const n=j(k(t)?t:c.value);return null!==W.messageResolver(n,e)},G.tm=function(e){const t=function(e){let t=null;const n=te(W,f.value,c.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=W.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:o&&o.tm(e)||{}},G.d=function(...e){return U((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Te(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>k(e)))},G.n=function(...e){return U((t=>Reflect.apply(Ie,null,[t,...e])),(()=>Ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>k(e)))},G.getDateTimeFormat=function(e){return p.value[e]||{}},G.setDateTimeFormat=function(e,t){p.value[e]=t,P&&P.setDateTimeFormat(e,t),W.datetimeFormats=p.value,Ne(W,e,t)},G.mergeDateTimeFormat=function(e,t){p.value[e]=_(p.value[e]||{},t),P&&P.mergeDateTimeFormat(e,t),W.datetimeFormats=p.value,Ne(W,e,t)},G.getNumberFormat=function(e){return d.value[e]||{}},G.setNumberFormat=function(e,t){d.value[e]=t,P&&P.setNumberFormat(e,t),W.numberFormats=d.value,Oe(W,e,t)},G.mergeNumberFormat=function(e,t){d.value[e]=_(d.value[e]||{},t),P&&P.mergeNumberFormat(e,t),W.numberFormats=d.value,Oe(W,e,t)},G[xe]=t.__injectWithOption,G[Ae]=P,G}let Be=null,He=null;const Je=l("global-vue-i18n");function ze(e={},t){if(He)return He;Be=t;const n=!v(e.legacy)||e.legacy,r=!v(e.globalInjection)||e.globalInjection,a=new Map,o=function(e,t,n){if(!$e(n))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Ge(e,n)}(e,0,t);l("");{const e=o[Ae];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>a}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Pe.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&r&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,o),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ue(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(T(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ue(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&T(r)&&Ue(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||T(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Be))}});const t={__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),He=e,e}}function Ye(e={}){const n=t();if(null==n)throw Error(Pe.MUST_BE_CALL_SETUP_TOP);if(null==Be||null==He)throw Error(Pe.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Pe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=He),!n)throw Error(Pe.NOT_INSLALLED);return n}}(n),s=function(e){return e.global}(r),l=function(e){return e.proxy.$options}(n),c=function(e,t){return f(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===c)return function(e,t,n){let r=L(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=De(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),L(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(L(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(s,e,l),s;if("parent"===c){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[xe]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=s),t}if("legacy"===r.mode)throw Error(Pe.NOT_AVAILABLE_IN_LEGACY_MODE);const i=r;let u=i.__getInstance(n);if(null==u){const t=_({},e);"__i18n"in l&&(t.__i18n=l.__i18n),s&&(t.__root=s),u=Ge(t,Be),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(Pe.UNEXPECTED_ERROR);const s=n[Ae];if(s===e)throw Error(Pe.UNEXPECTED_ERROR);r._i18n=s,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let l=!1;a((()=>{r._i18n.subscribeDataChanging(r),l=!0}),t),o((()=>{l&&(r._i18n.unsubscribeDataChanging(r),l=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),t)}}(i,n,u),i.__setInstance(n,u)}return u}const Xe=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var Ke;Ke=function(e,t={}){{const n=(t.onCacheKey||_e)(e),r=pe[n];if(r)return r;let a=!1;const o=t.onError||I;t.onError=e=>{a=!0,o(e)};const{code:s}=V(e,t),l=new Function(`return ${s}`)();return a?l:pe[n]=l}},se=Ke,le=function(e,t){if(!L(e))return null;let n=J.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=H(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=B(n),c=j[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&J.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},ce=te;export{Je as I18nInjectionKey,Fe as VERSION,Xe as castToVueI18n,ze as createI18n,Ye as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import { getGlobalThis, format, makeSymbol, isPlainObject, isArray, isString, hasOwn, isObject, isBoolean, isRegExp, isFunction, assign, isNumber, warn, isEmptyObject } from '@intlify/shared';
import { getGlobalThis, format, makeSymbol, isObject, isArray, hasOwn, isPlainObject, isString, isBoolean, isRegExp, isFunction, assign, isNumber, warn, isEmptyObject } from '@intlify/shared';
import { CoreWarnCodes, createCompileError, CompileErrorCodes, DEFAULT_LOCALE, createCoreContext, updateFallbackLocale, clearDateTimeFormat, clearNumberFormat, setAdditionalMeta, NOT_REOSLVED, isTranslateFallbackWarn, isTranslateMissingWarn, parseTranslateArgs, translate, MISSING_RESOLVE_VALUE, parseDateTimeArgs, datetime, parseNumberArgs, number, fallbackWithLocaleChain, registerMessageCompiler, compileToFunction, registerMessageResolver, resolveValue, registerLocaleFallbacker, setDevToolsHook } from '@intlify/core-base';

@@ -18,3 +18,3 @@ import { ref, getCurrentInstance, computed, watch, onBeforeMount, onUnmounted } from '@vue/composition-api';

*/
const VERSION = '9.2.0-beta.20';
const VERSION = '9.2.0-beta.21';
/**

@@ -233,2 +233,39 @@ * This is only called in esm-bundler builds.

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
/* eslint-enable @typescript-eslint/no-explicit-any */

@@ -1161,39 +1198,2 @@

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
function getComposer(i18n, target, useComponent = false) {

@@ -1200,0 +1200,0 @@ let composer = null;

/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=e=>n?Symbol(e):e,a=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object RegExp]"===k(e),l=e=>v(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const i=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}const p=Array.isArray,_=e=>"function"==typeof e,d=e=>"string"==typeof e,g=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,b=Object.prototype.toString,k=e=>b.call(e),v=e=>"[object Object]"===k(e),L=15;function y(e){throw e}function E(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const T=" ",N="\n",I=String.fromCharCode(8232),C=String.fromCharCode(8233);function O(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&t[e+1]===N,l=e=>t[e]===C,c=e=>t[e]===I,i=e=>s(e)||(e=>t[e]===N)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?N:t[e];function f(){return o=0,i(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:f,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const w=void 0;function F(e,t={}){const n=!1!==t.location,r=O(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=E(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function _(e){let t="";for(;e.currentPeek()===T||e.currentPeek()===N;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=_(e);return e.skipToPeek(),t}function g(e){if(e===w)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;_(e);const r=function(e){if(e===w)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){_(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(r===T||r===N):o===T?(e.peek(),n(!0,T,a)):o!==N||(e.peek(),n(!0,N,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===w?w:t(n)?(e.next(),n):null}function L(e){return v(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 y(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function I(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function C(e){let t="",n="";for(;t=y(e);)n+=t;return n}function F(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return P(e,t,4);case"U":return P(e,t,6);default:return o(),""}}function P(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=I(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function R(e){d(e);const t=p(e,"|");return d(e),t}function W(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=A(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,$(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){d(e);let t="",n="";for(;t=L(e);)n+=t;return e.currentChar()===w&&o(),n}(e)),d(e),n;if(a=h(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${C(e)}`):t+=C(e),e.currentChar()===w&&o(),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==N;for(;t=v(e,r);)n+="\\"===t?F(e):t;const a=e.currentChar();return a===N||a===w?(o(),a===N&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==T&&e!==N;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,d(e),n}return n}function A(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==N&&a!==T||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,9,".");case":":return d(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;_(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;_(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),A(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;_(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,12,function(e){let t="",n="";for(;t=L(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?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===T||!t)&&(t===N?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?W(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===T?r:a===N?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,$(e,t))}}function $(e,t){let n={type:14};if(t.braceNest>0)return W(e,t)||m(t);if(t.inLinked)return A(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return W(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return A(e,t)||m(t);default:if(b(e))return n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(n===T||n===N)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===w?f(c,14):$(r,c)},currentOffset:a,currentPosition:o,context:i}}const P=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function R(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 W(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(P,R),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 12!==t.type?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,A(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,A(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,A(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 5:null==o.value&&(t.lastStartLoc,A(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,A(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,A(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.startLoc),{nextConsumeToken:o,node:n}}return a(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 i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(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:o}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=F(n,i({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function A(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 $(e,t){for(let n=0;n<e.length;n++)x(e[n],t)}function x(e,t){switch(e.type){case 1:$(e.cases,t),t.helper("plural");break;case 2:$(e.items,t);break;case 6:x(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function S(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&&x(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 a=t.cases.length;for(let n=0;n<a&&(M(e,t.cases[n]),n!==a-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 a=t.items.length;for(let n=0;n<a&&(M(e,t.items[n]),n!==a-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(")")}(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 D(e,t={}){const n=i({},t),r=W(n).parse(e);return S(r,n),((e,t={})=>{const n=d(t.mode)?t.mode:"normal",r=d(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),M(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const U=[];U[0]={w:[0],i:[3,0],"[":[4],o:[7]},U[1]={w:[1],".":[2],"[":[4],o:[7]},U[2]={w:[2],i:[3,0],0:[3,0]},U[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},U[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},U[5]={"'":[4,0],o:8,l:[5,0]},U[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function j(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 G(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,V.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}const B=new Map;function H(e,t){return h(e)?e[t]:null}const J=e=>e,z=e=>"",Y=e=>0===e.length?"":e.join(""),X=e=>null==e?"":p(e)||v(e)&&e.toString===b?JSON.stringify(e,null,2):String(e);function K(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function q(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=h(e.pluralRules)&&d(t)&&_(e.pluralRules[t])?e.pluralRules[t]:K,a=h(e.pluralRules)&&d(t)&&_(e.pluralRules[t])?K:void 0,s=e.list||[],l=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t){const n=_(e.messages)?e.messages(t):!!h(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const i=v(e.processor)&&_(e.processor.normalize)?e.processor.normalize:Y,u=v(e.processor)&&_(e.processor.interpolate)?e.processor.interpolate:X,f={list:e=>s[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=c(t)(f);return d(n)?(a=n,e.modifiers?e.modifiers[a]:J)(r):r;var a},message:c,type:v(e.processor)&&d(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return f}function Q(e,t,n){return[...new Set([n,...p(t)?t:h(t)?Object.keys(t):d(t)?[t]:[n]])]}function Z(e,t,n){const r=d(n)?n:re,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=ee(o,e,t);const s=p(t)||!v(t)?t:t.default?t.default:null;e=d(s)?[s]:s,p(e)&&ee(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ee(e,t,n){let r=!0;for(let a=0;a<t.length&&g(r);a++){const o=t[a];d(o)&&(r=te(e,t[a],n))}return r}function te(e,t,n){let r;const a=t.split("-");do{r=ne(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ne(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),(p(n)||v(n))&&n[a]&&(r=n[a])}return r}const re="en-US";let ae,oe,se;let le=0;function ce(e={}){const t=d(e.version)?e.version:"9.2.0-beta.20",n=d(e.locale)?e.locale:re,r=p(e.fallbackLocale)||v(e.fallbackLocale)||d(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=v(e.messages)?e.messages:{[n]:{}},o=v(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=v(e.numberFormats)?e.numberFormats:{[n]:{}},u=i({},e.modifiers||{},{upper:e=>d(e)?e.toUpperCase():e,lower:e=>d(e)?e.toLowerCase():e,capitalize:e=>d(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),f=e.pluralRules||{},m=_(e.missing)?e.missing:null,b=!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,k=!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,y=!!e.unresolving,E=_(e.postTranslation)?e.postTranslation:null,T=v(e.processor)?e.processor:null,N=!g(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,C=_(e.messageCompiler)?e.messageCompiler:ae,O=_(e.messageResolver)?e.messageResolver:oe||H,w=_(e.localeFallbacker)?e.localeFallbacker:se||Q,F=_(e.onWarn)?e.onWarn:c,P=e,R=h(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,W=h(P.__numberFormatters)?P.__numberFormatters:new Map,A=h(P.__meta)?P.__meta:{};le++;const $={version:t,cid:le,locale:n,fallbackLocale:r,messages:a,modifiers:u,pluralRules:f,missing:m,missingWarn:b,fallbackWarn:k,fallbackFormat:L,unresolving:y,postTranslation:E,processor:T,warnHtmlMessage:N,escapeParameter:I,messageCompiler:C,messageResolver:O,localeFallbacker:w,onWarn:F,__meta:A};return $.datetimeFormats=o,$.numberFormats=l,$.__datetimeFormatters=R,$.__numberFormatters=W,$}function ie(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return d(r)?r:t}return t}function ue(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const fe=e=>e;let me=Object.create(null);let pe=L;const _e=()=>pe++,de={INVALID_ARGUMENT:pe,INVALID_DATE_ARGUMENT:_e(),INVALID_ISO_DATE_ARGUMENT:_e(),__EXTEND_POINT__:_e()},ge=()=>"",he=e=>_(e);function be(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:l,messages:c}=e,[i,f]=ve(...t),m=(g(f.missingWarn)?f.missingWarn:e.missingWarn,g(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,g(f.escapeParameter)?f.escapeParameter:e.escapeParameter),b=!!f.resolvedMessage,k=d(f.default)||g(f.default)?g(f.default)?i:f.default:n?s?i:()=>i:"",v=n||""!==k,L=d(f.locale)?f.locale:e.locale;m&&function(e){p(e.list)?e.list=e.list.map((e=>d(e)?u(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{d(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(f);let[y,E,T]=b?[i,L,c[L]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;const g="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(p=c(m,t))&&(p=m[t]),!d(p)&&!_(p));n++){const n=ie(e,t,f,0,g);n!==t&&(p=n)}return[p,f,m]}(e,i,L,l),N=y,I=i;if(b||d(N)||he(N)||v&&(N=k,I=N),!(b||(d(N)||he(N))&&d(E)))return a?-1:i;let C=!1;const O=he(N)?N:ke(e,i,E,N,I,(()=>{C=!0}));if(C)return N;const w=function(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:l}=e,c=r=>{const a=l(n,r);if(d(a)){let n=!1;const o=ke(e,r,t,a,r,(()=>{n=!0}));return n?ge:o}return he(a)?a:ge},i={locale:t,modifiers:a,pluralRules:s,messages:c};e.processor&&(i.processor=e.processor);r.list&&(i.list=r.list);r.named&&(i.named=r.named);o(r.plural)&&(i.pluralIndex=r.plural);return i}(e,E,T,f),F=function(e,t,n){return t(n)}(0,O,q(w));return r?r(F):F}function ke(e,t,n,r,o,s){const{messageCompiler:l,warnHtmlMessage:c}=e;if(he(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const i=l(r,function(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,n)=>a({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function ve(...e){const[t,n,r]=e,a={};if(!d(t)&&!o(t)&&!he(t))throw Error(de.INVALID_ARGUMENT);const s=o(t)?String(t):(he(t),t);return o(n)?a.plural=n:d(n)?a.default=n:v(n)&&!l(n)?a.named=n:p(n)&&(a.list=n),o(r)?a.plural=r:d(r)?a.default=r:v(r)&&i(a,r),[s,a]}function Le(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:c}=e,[u,f,m,p]=ye(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const _=!!m.part,h=d(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!d(u)||""===u)return new Intl.DateTimeFormat(h).format(f);let k,L={},y=null;for(let t=0;t<b.length&&(k=b[t],L=n[k]||{},y=L[u],!v(y));t++)ie(e,u,k,0,"datetime format");if(!v(y)||!d(k))return r?-1:u;let E=`${k}__${u}`;l(p)||(E=`${E}__${JSON.stringify(p)}`);let T=c.get(E);return T||(T=new Intl.DateTimeFormat(k,i({},y,p)),c.set(E,T)),_?T.formatToParts(f):T.format(f)}function ye(...e){const[t,n,r,a]=e;let s,l={},c={};if(d(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(de.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(de.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(de.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(de.INVALID_ARGUMENT);s=t}return d(n)?l.key=n:v(n)&&(l=n),d(r)?l.locale=r:v(r)&&(c=r),v(a)&&(c=a),[l.key||"",s,l,c]}function Ee(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Te(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:c}=e,[u,f,m,p]=Ne(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const _=!!m.part,h=d(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!d(u)||""===u)return new Intl.NumberFormat(h).format(f);let k,L={},y=null;for(let t=0;t<b.length&&(k=b[t],L=n[k]||{},y=L[u],!v(y));t++)ie(e,u,k,0,"number format");if(!v(y)||!d(k))return r?-1:u;let E=`${k}__${u}`;l(p)||(E=`${E}__${JSON.stringify(p)}`);let T=c.get(E);return T||(T=new Intl.NumberFormat(k,i({},y,p)),c.set(E,T)),_?T.formatToParts(f):T.format(f)}function Ne(...e){const[t,n,r,a]=e;let s={},l={};if(!o(t))throw Error(de.INVALID_ARGUMENT);const c=t;return d(n)?s.key=n:v(n)&&(s=n),d(r)?s.locale=r:v(r)&&(l=r),v(a)&&(l=a),[s.key||"",c,s,l]}function Ie(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Ce="9.2.0-beta.20";let Oe=L;const we=()=>Oe++,Fe={UNEXPECTED_RETURN_TYPE:Oe,INVALID_ARGUMENT:we(),MUST_BE_CALL_SETUP_TOP:we(),NOT_INSLALLED:we(),NOT_AVAILABLE_IN_LEGACY_MODE:we(),REQUIRED_VALUE:we(),INVALID_VALUE:we(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:we(),NOT_INSLALLED_WITH_PROVIDE:we(),UNEXPECTED_ERROR:we(),NOT_COMPATIBLE_LEGACY_VUE_I18N:we(),BRIDGE_SUPPORT_VUE_2_ONLY:we(),__EXTEND_POINT__:we()},Pe=r("__setPluralRules"),Re=r("__legacyVueI18n"),We=r("__injectWithOption"),Ae="__VUE_I18N_BRIDGE__";function $e(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function xe(e){if(!h(e))return e;for(const t in e)if(m(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],h(a[n[r]])&&xe(a[n[r]])}else h(e[t])&&xe(e[t]);return e}function Se(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=v(n)?n:p(r)?{}:{[e]:{}};if(p(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},De(n,s[t])):De(n,s)}else d(e)&&De(JSON.parse(e),s)})),null==a&&o)for(const e in s)m(s,e)&&xe(s[e]);return s}const Me=e=>!h(e)||p(e);function De(e,t){if(Me(e)||Me(t))throw Error(Fe.INVALID_VALUE);for(const n in e)m(e,n)&&(Me(e[n])||Me(t[n])?t[n]=e[n]:De(e[n],t[n]))}let Ue=0;function Ve(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function je(e={},n){const{__root:r}=e,a=void 0===r;let l=!g(e.inheritLocale)||e.inheritLocale;const c=t.ref(r&&l?r.locale.value:d(e.locale)?e.locale:re),u=t.ref(r&&l?r.fallbackLocale.value:d(e.fallbackLocale)||p(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=t.ref(Se(c.value,e)),m=t.ref(v(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),b=t.ref(v(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=r?r.missingWarn:!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,L=r?r.fallbackWarn:!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,y=r?r.fallbackRoot:!g(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,T=_(e.missing)?e.missing:null,N=_(e.missing)?Ve(e.missing):null,I=_(e.postTranslation)?e.postTranslation:null,C=!g(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const w=r?r.modifiers:v(e.modifiers)?e.modifiers:{};let F,P,R=e.pluralRules||r&&r.pluralRules;{$e(n);const e={locale:c.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:m.value,numberFormats:b.value,modifiers:w,missing:T,fallbackRoot:y,postTranslation:I,pluralizationRules:R,escapeParameterHtml:O,sync:l,silentFallbackWarn:g(L)?!L:L,silentTranslationWarn:g(k)?!k:k,formatFallbackMessages:g(E)?!E:E,warnHtmlInMessage:g(C)&&C?"warn":"off",__VUE_I18N_BRIDGE__:Ae};F=new n(e)}P=function(){const t={version:Ce,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:w,pluralRules:R,missing:null===N?void 0:N,missingWarn:k,fallbackWarn:L,fallbackFormat:E,unresolving:!0,postTranslation:null===I?void 0:I,warnHtmlMessage:C,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=m.value,t.numberFormats=b.value,t.__datetimeFormatters=v(P)?P.__datetimeFormatters:void 0,t.__numberFormatters=v(P)?P.__numberFormatters:void 0,ce(t)}(),ue(P,c.value,u.value);const W=t.computed({get:()=>c.value,set:e=>{c.value=e,F&&!a&&(F.locale=e),P.locale=c.value}}),A=t.computed({get:()=>u.value,set:e=>{u.value=e,F&&!a&&(F.fallbackLocale=e),P.fallbackLocale=u.value,ue(P,c.value,e)}}),$=t.computed((()=>f.value)),x=t.computed((()=>m.value)),S=t.computed((()=>b.value));function M(e,t,n,a,s,l){let i;if(c.value,u.value,f.value,m.value,b.value,i=e(P),o(i)&&-1===i){const[e,n]=t();return r&&y?a(r):s(e)}if(l(i))return i;throw Error(Fe.UNEXPECTED_RETURN_TYPE)}function D(...e){return M((t=>Reflect.apply(be,null,[t,...e])),(()=>ve(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>d(e)))}function U(e){return f.value[e]||{}}Ue++,r&&(t.watch(r.locale,(e=>{l&&(c.value=e,F&&!a&&(F.locale=e),P.locale=e,ue(P,c.value,u.value))})),t.watch(r.fallbackLocale,(e=>{l&&(u.value=e,F&&!a&&(F.fallbackLocale=e),P.fallbackLocale=e,ue(P,c.value,u.value))})));const V={id:Ue,locale:W,fallbackLocale:A,get inheritLocale(){return l},set inheritLocale(e){l=e,F&&(F._sync=e),e&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,F&&(F.locale=r.locale.value,F.fallbackLocale=r.fallbackLocale.value),ue(P,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:$,get modifiers(){return w},get pluralRules(){return R||{}},get isGlobal(){return a},get missingWarn(){return k},set missingWarn(e){k=e,P.missingWarn=k},get fallbackWarn(){return L},set fallbackWarn(e){L=e,P.fallbackWarn=L},get fallbackRoot(){return y},set fallbackRoot(e){y=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,P.fallbackFormat=E},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,P.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,P.escapeParameter=e},t:D,getLocaleMessage:U,setLocaleMessage:function(e,t){f.value[e]=t,F&&F.setLocaleMessage(e,t),P.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},F&&F.mergeLocaleMessage(e,t),De(t,f.value[e]),P.messages=f.value},getPostTranslationHandler:function(){return _(I)?I:null},setPostTranslationHandler:function(e){I=e,P.postTranslation=e},getMissingHandler:function(){return T},setMissingHandler:function(e){null!==e&&(N=Ve(e)),T=e,P.missing=N},[Pe]:function(e){R=e,P.pluralRules=R}};return V.datetimeFormats=x,V.numberFormats=S,V.rt=function(...e){const[t,n,r]=e;if(r&&!h(r))throw Error(Fe.INVALID_ARGUMENT);return D(t,n,i({resolvedMessage:!0},r||{}))},V.te=function(e,t){const n=U(d(t)?t:c.value);return null!==P.messageResolver(n,e)},V.tm=function(e){const t=function(e){let t=null;const n=Z(P,u.value,c.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},o=P.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:r&&r.tm(e)||{}},V.d=function(...e){return M((t=>Reflect.apply(Le,null,[t,...e])),(()=>ye(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>d(e)))},V.n=function(...e){return M((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ne(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>d(e)))},V.getDateTimeFormat=function(e){return m.value[e]||{}},V.setDateTimeFormat=function(e,t){m.value[e]=t,F&&F.setDateTimeFormat(e,t),P.datetimeFormats=m.value,Ee(P,e,t)},V.mergeDateTimeFormat=function(e,t){m.value[e]=i(m.value[e]||{},t),F&&F.mergeDateTimeFormat(e,t),P.datetimeFormats=m.value,Ee(P,e,t)},V.getNumberFormat=function(e){return b.value[e]||{}},V.setNumberFormat=function(e,t){b.value[e]=t,F&&F.setNumberFormat(e,t),P.numberFormats=b.value,Ie(P,e,t)},V.mergeNumberFormat=function(e,t){b.value[e]=i(b.value[e]||{},t),F&&F.mergeNumberFormat(e,t),P.numberFormats=b.value,Ie(P,e,t)},V[We]=e.__injectWithOption,V[Re]=F,V}let Ge=null,Be=null;const He=r("global-vue-i18n");var Je;return Je=function(e,t={}){{const n=(t.onCacheKey||fe)(e),r=me[n];if(r)return r;let a=!1;const o=t.onError||y;t.onError=e=>{a=!0,o(e)};const{code:s}=D(e,t),l=new Function(`return ${s}`)();return a?l:me[n]=l}},ae=Je,oe=function(e,t){if(!h(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function p(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=G(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=j(n),c=U[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&B.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},se=Z,e.I18nInjectionKey=He,e.VERSION=Ce,e.castToVueI18n=e=>{if(!(Ae in e))throw Error(Fe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(Be)return Be;Ge=t;const n=!g(e.legacy)||e.legacy,a=!g(e.globalInjection)||e.globalInjection,o=new Map,s=function(e,t,n){if(!$e(n))throw Error(Fe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return je(e,n)}(e,0,t);r("");{const e=s[Re];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Fe.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&a&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,s),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>De(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(v(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>De(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&v(r)&&De(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||v(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Ge))}});const t={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Be=e,e}},e.useI18n=function(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Fe.MUST_BE_CALL_SETUP_TOP);if(null==Ge||null==Be)throw Error(Fe.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Fe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Be),!n)throw Error(Fe.NOT_INSLALLED);return n}}(n),a=function(e){return e.global}(r),o=function(e){return e.proxy.$options}(n),s=function(e,t){return l(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return function(e,t,n){let r=h(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Se(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])}));if(h(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(h(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(a,e,o),a;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[We]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}if("legacy"===r.mode)throw Error(Fe.NOT_AVAILABLE_IN_LEGACY_MODE);const c=r;let u=c.__getInstance(n);if(null==u){const r=i({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),u=je(r,Ge),function(e,n,r){{const a=n.proxy;if(null==a)throw Error(Fe.UNEXPECTED_ERROR);const o=r[Re];if(o===e)throw Error(Fe.UNEXPECTED_ERROR);a._i18n=o,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;t.onBeforeMount((()=>{a._i18n.subscribeDataChanging(a),s=!0}),n),t.onUnmounted((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),n)}}(c,n,u),c.__setInstance(n,u)}return u},Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=e=>n?Symbol(e):e,a=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object RegExp]"===k(e),l=e=>v(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const i=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}const p=Array.isArray,_=e=>"function"==typeof e,d=e=>"string"==typeof e,g=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,b=Object.prototype.toString,k=e=>b.call(e),v=e=>"[object Object]"===k(e),L=15;function y(e){throw e}function E(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const T=" ",N="\n",I=String.fromCharCode(8232),C=String.fromCharCode(8233);function O(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&t[e+1]===N,l=e=>t[e]===C,c=e=>t[e]===I,i=e=>s(e)||(e=>t[e]===N)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?N:t[e];function f(){return o=0,i(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:f,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const w=void 0;function F(e,t={}){const n=!1!==t.location,r=O(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=E(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function _(e){let t="";for(;e.currentPeek()===T||e.currentPeek()===N;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=_(e);return e.skipToPeek(),t}function g(e){if(e===w)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;_(e);const r=function(e){if(e===w)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){_(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(r===T||r===N):o===T?(e.peek(),n(!0,T,a)):o!==N||(e.peek(),n(!0,N,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===w?w:t(n)?(e.next(),n):null}function L(e){return v(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 y(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function I(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function C(e){let t="",n="";for(;t=y(e);)n+=t;return n}function F(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return P(e,t,4);case"U":return P(e,t,6);default:return o(),""}}function P(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=I(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function R(e){d(e);const t=p(e,"|");return d(e),t}function W(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=A(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,$(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){d(e);let t="",n="";for(;t=L(e);)n+=t;return e.currentChar()===w&&o(),n}(e)),d(e),n;if(a=h(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${C(e)}`):t+=C(e),e.currentChar()===w&&o(),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==N;for(;t=v(e,r);)n+="\\"===t?F(e):t;const a=e.currentChar();return a===N||a===w?(o(),a===N&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==T&&e!==N;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,d(e),n}return n}function A(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==N&&a!==T||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,9,".");case":":return d(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;_(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;_(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),A(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;_(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,12,function(e){let t="",n="";for(;t=L(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?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===T||!t)&&(t===N?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?W(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===T?r:a===N?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,$(e,t))}}function $(e,t){let n={type:14};if(t.braceNest>0)return W(e,t)||m(t);if(t.inLinked)return A(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return W(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return A(e,t)||m(t);default:if(b(e))return n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(n===T||n===N)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===w?f(c,14):$(r,c)},currentOffset:a,currentPosition:o,context:i}}const P=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function R(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 W(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(P,R),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 12!==t.type?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,A(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,A(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,A(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 5:null==o.value&&(t.lastStartLoc,A(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,A(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,A(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.startLoc),{nextConsumeToken:o,node:n}}return a(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 i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,A(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(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:o}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=F(n,i({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function A(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 $(e,t){for(let n=0;n<e.length;n++)x(e[n],t)}function x(e,t){switch(e.type){case 1:$(e.cases,t),t.helper("plural");break;case 2:$(e.items,t);break;case 6:x(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function S(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&&x(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 a=t.cases.length;for(let n=0;n<a&&(M(e,t.cases[n]),n!==a-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 a=t.items.length;for(let n=0;n<a&&(M(e,t.items[n]),n!==a-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(")")}(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 D(e,t={}){const n=i({},t),r=W(n).parse(e);return S(r,n),((e,t={})=>{const n=d(t.mode)?t.mode:"normal",r=d(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),M(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const U=[];U[0]={w:[0],i:[3,0],"[":[4],o:[7]},U[1]={w:[1],".":[2],"[":[4],o:[7]},U[2]={w:[2],i:[3,0],0:[3,0]},U[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},U[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},U[5]={"'":[4,0],o:8,l:[5,0]},U[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function j(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 G(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,V.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}const B=new Map;function H(e,t){return h(e)?e[t]:null}const J=e=>e,z=e=>"",Y=e=>0===e.length?"":e.join(""),X=e=>null==e?"":p(e)||v(e)&&e.toString===b?JSON.stringify(e,null,2):String(e);function K(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function q(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=h(e.pluralRules)&&d(t)&&_(e.pluralRules[t])?e.pluralRules[t]:K,a=h(e.pluralRules)&&d(t)&&_(e.pluralRules[t])?K:void 0,s=e.list||[],l=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t){const n=_(e.messages)?e.messages(t):!!h(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const i=v(e.processor)&&_(e.processor.normalize)?e.processor.normalize:Y,u=v(e.processor)&&_(e.processor.interpolate)?e.processor.interpolate:X,f={list:e=>s[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=c(t)(f);return d(n)?(a=n,e.modifiers?e.modifiers[a]:J)(r):r;var a},message:c,type:v(e.processor)&&d(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return f}function Q(e,t,n){return[...new Set([n,...p(t)?t:h(t)?Object.keys(t):d(t)?[t]:[n]])]}function Z(e,t,n){const r=d(n)?n:re,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=ee(o,e,t);const s=p(t)||!v(t)?t:t.default?t.default:null;e=d(s)?[s]:s,p(e)&&ee(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ee(e,t,n){let r=!0;for(let a=0;a<t.length&&g(r);a++){const o=t[a];d(o)&&(r=te(e,t[a],n))}return r}function te(e,t,n){let r;const a=t.split("-");do{r=ne(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ne(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),(p(n)||v(n))&&n[a]&&(r=n[a])}return r}const re="en-US";let ae,oe,se;let le=0;function ce(e={}){const t=d(e.version)?e.version:"9.2.0-beta.21",n=d(e.locale)?e.locale:re,r=p(e.fallbackLocale)||v(e.fallbackLocale)||d(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=v(e.messages)?e.messages:{[n]:{}},o=v(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=v(e.numberFormats)?e.numberFormats:{[n]:{}},u=i({},e.modifiers||{},{upper:e=>d(e)?e.toUpperCase():e,lower:e=>d(e)?e.toLowerCase():e,capitalize:e=>d(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),f=e.pluralRules||{},m=_(e.missing)?e.missing:null,b=!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,k=!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,y=!!e.unresolving,E=_(e.postTranslation)?e.postTranslation:null,T=v(e.processor)?e.processor:null,N=!g(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,C=_(e.messageCompiler)?e.messageCompiler:ae,O=_(e.messageResolver)?e.messageResolver:oe||H,w=_(e.localeFallbacker)?e.localeFallbacker:se||Q,F=_(e.onWarn)?e.onWarn:c,P=e,R=h(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,W=h(P.__numberFormatters)?P.__numberFormatters:new Map,A=h(P.__meta)?P.__meta:{};le++;const $={version:t,cid:le,locale:n,fallbackLocale:r,messages:a,modifiers:u,pluralRules:f,missing:m,missingWarn:b,fallbackWarn:k,fallbackFormat:L,unresolving:y,postTranslation:E,processor:T,warnHtmlMessage:N,escapeParameter:I,messageCompiler:C,messageResolver:O,localeFallbacker:w,onWarn:F,__meta:A};return $.datetimeFormats=o,$.numberFormats=l,$.__datetimeFormatters=R,$.__numberFormatters=W,$}function ie(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return d(r)?r:t}return t}function ue(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const fe=e=>e;let me=Object.create(null);let pe=L;const _e=()=>pe++,de={INVALID_ARGUMENT:pe,INVALID_DATE_ARGUMENT:_e(),INVALID_ISO_DATE_ARGUMENT:_e(),__EXTEND_POINT__:_e()},ge=()=>"",he=e=>_(e);function be(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:l,messages:c}=e,[i,f]=ve(...t),m=(g(f.missingWarn)?f.missingWarn:e.missingWarn,g(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,g(f.escapeParameter)?f.escapeParameter:e.escapeParameter),b=!!f.resolvedMessage,k=d(f.default)||g(f.default)?g(f.default)?i:f.default:n?s?i:()=>i:"",v=n||""!==k,L=d(f.locale)?f.locale:e.locale;m&&function(e){p(e.list)?e.list=e.list.map((e=>d(e)?u(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{d(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(f);let[y,E,T]=b?[i,L,c[L]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;const g="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(p=c(m,t))&&(p=m[t]),!d(p)&&!_(p));n++){const n=ie(e,t,f,0,g);n!==t&&(p=n)}return[p,f,m]}(e,i,L,l),N=y,I=i;if(b||d(N)||he(N)||v&&(N=k,I=N),!(b||(d(N)||he(N))&&d(E)))return a?-1:i;let C=!1;const O=he(N)?N:ke(e,i,E,N,I,(()=>{C=!0}));if(C)return N;const w=function(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:l}=e,c=r=>{const a=l(n,r);if(d(a)){let n=!1;const o=ke(e,r,t,a,r,(()=>{n=!0}));return n?ge:o}return he(a)?a:ge},i={locale:t,modifiers:a,pluralRules:s,messages:c};e.processor&&(i.processor=e.processor);r.list&&(i.list=r.list);r.named&&(i.named=r.named);o(r.plural)&&(i.pluralIndex=r.plural);return i}(e,E,T,f),F=function(e,t,n){return t(n)}(0,O,q(w));return r?r(F):F}function ke(e,t,n,r,o,s){const{messageCompiler:l,warnHtmlMessage:c}=e;if(he(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const i=l(r,function(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,n)=>a({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function ve(...e){const[t,n,r]=e,a={};if(!d(t)&&!o(t)&&!he(t))throw Error(de.INVALID_ARGUMENT);const s=o(t)?String(t):(he(t),t);return o(n)?a.plural=n:d(n)?a.default=n:v(n)&&!l(n)?a.named=n:p(n)&&(a.list=n),o(r)?a.plural=r:d(r)?a.default=r:v(r)&&i(a,r),[s,a]}function Le(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:c}=e,[u,f,m,p]=ye(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const _=!!m.part,h=d(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!d(u)||""===u)return new Intl.DateTimeFormat(h).format(f);let k,L={},y=null;for(let t=0;t<b.length&&(k=b[t],L=n[k]||{},y=L[u],!v(y));t++)ie(e,u,k,0,"datetime format");if(!v(y)||!d(k))return r?-1:u;let E=`${k}__${u}`;l(p)||(E=`${E}__${JSON.stringify(p)}`);let T=c.get(E);return T||(T=new Intl.DateTimeFormat(k,i({},y,p)),c.set(E,T)),_?T.formatToParts(f):T.format(f)}function ye(...e){const[t,n,r,a]=e;let s,l={},c={};if(d(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(de.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(de.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(de.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(de.INVALID_ARGUMENT);s=t}return d(n)?l.key=n:v(n)&&(l=n),d(r)?l.locale=r:v(r)&&(c=r),v(a)&&(c=a),[l.key||"",s,l,c]}function Ee(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Te(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:c}=e,[u,f,m,p]=Ne(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const _=!!m.part,h=d(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!d(u)||""===u)return new Intl.NumberFormat(h).format(f);let k,L={},y=null;for(let t=0;t<b.length&&(k=b[t],L=n[k]||{},y=L[u],!v(y));t++)ie(e,u,k,0,"number format");if(!v(y)||!d(k))return r?-1:u;let E=`${k}__${u}`;l(p)||(E=`${E}__${JSON.stringify(p)}`);let T=c.get(E);return T||(T=new Intl.NumberFormat(k,i({},y,p)),c.set(E,T)),_?T.formatToParts(f):T.format(f)}function Ne(...e){const[t,n,r,a]=e;let s={},l={};if(!o(t))throw Error(de.INVALID_ARGUMENT);const c=t;return d(n)?s.key=n:v(n)&&(s=n),d(r)?s.locale=r:v(r)&&(l=r),v(a)&&(l=a),[s.key||"",c,s,l]}function Ie(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Ce="9.2.0-beta.21";let Oe=L;const we=()=>Oe++,Fe={UNEXPECTED_RETURN_TYPE:Oe,INVALID_ARGUMENT:we(),MUST_BE_CALL_SETUP_TOP:we(),NOT_INSLALLED:we(),NOT_AVAILABLE_IN_LEGACY_MODE:we(),REQUIRED_VALUE:we(),INVALID_VALUE:we(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:we(),NOT_INSLALLED_WITH_PROVIDE:we(),UNEXPECTED_ERROR:we(),NOT_COMPATIBLE_LEGACY_VUE_I18N:we(),BRIDGE_SUPPORT_VUE_2_ONLY:we(),__EXTEND_POINT__:we()},Pe=r("__setPluralRules"),Re=r("__legacyVueI18n"),We=r("__injectWithOption"),Ae="__VUE_I18N_BRIDGE__";function $e(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function xe(e){if(!h(e))return e;for(const t in e)if(m(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],h(a[n[r]])&&xe(a[n[r]])}else h(e[t])&&xe(e[t]);return e}function Se(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=v(n)?n:p(r)?{}:{[e]:{}};if(p(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},De(n,s[t])):De(n,s)}else d(e)&&De(JSON.parse(e),s)})),null==a&&o)for(const e in s)m(s,e)&&xe(s[e]);return s}const Me=e=>!h(e)||p(e);function De(e,t){if(Me(e)||Me(t))throw Error(Fe.INVALID_VALUE);for(const n in e)m(e,n)&&(Me(e[n])||Me(t[n])?t[n]=e[n]:De(e[n],t[n]))}let Ue=0;function Ve(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function je(e={},n){const{__root:r}=e,a=void 0===r;let l=!g(e.inheritLocale)||e.inheritLocale;const c=t.ref(r&&l?r.locale.value:d(e.locale)?e.locale:re),u=t.ref(r&&l?r.fallbackLocale.value:d(e.fallbackLocale)||p(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=t.ref(Se(c.value,e)),m=t.ref(v(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),b=t.ref(v(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=r?r.missingWarn:!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,L=r?r.fallbackWarn:!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,y=r?r.fallbackRoot:!g(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,T=_(e.missing)?e.missing:null,N=_(e.missing)?Ve(e.missing):null,I=_(e.postTranslation)?e.postTranslation:null,C=!g(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const w=r?r.modifiers:v(e.modifiers)?e.modifiers:{};let F,P,R=e.pluralRules||r&&r.pluralRules;{$e(n);const e={locale:c.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:m.value,numberFormats:b.value,modifiers:w,missing:T,fallbackRoot:y,postTranslation:I,pluralizationRules:R,escapeParameterHtml:O,sync:l,silentFallbackWarn:g(L)?!L:L,silentTranslationWarn:g(k)?!k:k,formatFallbackMessages:g(E)?!E:E,warnHtmlInMessage:g(C)&&C?"warn":"off",__VUE_I18N_BRIDGE__:Ae};F=new n(e)}P=function(){const t={version:Ce,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:w,pluralRules:R,missing:null===N?void 0:N,missingWarn:k,fallbackWarn:L,fallbackFormat:E,unresolving:!0,postTranslation:null===I?void 0:I,warnHtmlMessage:C,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=m.value,t.numberFormats=b.value,t.__datetimeFormatters=v(P)?P.__datetimeFormatters:void 0,t.__numberFormatters=v(P)?P.__numberFormatters:void 0,ce(t)}(),ue(P,c.value,u.value);const W=t.computed({get:()=>c.value,set:e=>{c.value=e,F&&!a&&(F.locale=e),P.locale=c.value}}),A=t.computed({get:()=>u.value,set:e=>{u.value=e,F&&!a&&(F.fallbackLocale=e),P.fallbackLocale=u.value,ue(P,c.value,e)}}),$=t.computed((()=>f.value)),x=t.computed((()=>m.value)),S=t.computed((()=>b.value));function M(e,t,n,a,s,l){let i;if(c.value,u.value,f.value,m.value,b.value,i=e(P),o(i)&&-1===i){const[e,n]=t();return r&&y?a(r):s(e)}if(l(i))return i;throw Error(Fe.UNEXPECTED_RETURN_TYPE)}function D(...e){return M((t=>Reflect.apply(be,null,[t,...e])),(()=>ve(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>d(e)))}function U(e){return f.value[e]||{}}Ue++,r&&(t.watch(r.locale,(e=>{l&&(c.value=e,F&&!a&&(F.locale=e),P.locale=e,ue(P,c.value,u.value))})),t.watch(r.fallbackLocale,(e=>{l&&(u.value=e,F&&!a&&(F.fallbackLocale=e),P.fallbackLocale=e,ue(P,c.value,u.value))})));const V={id:Ue,locale:W,fallbackLocale:A,get inheritLocale(){return l},set inheritLocale(e){l=e,F&&(F._sync=e),e&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,F&&(F.locale=r.locale.value,F.fallbackLocale=r.fallbackLocale.value),ue(P,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:$,get modifiers(){return w},get pluralRules(){return R||{}},get isGlobal(){return a},get missingWarn(){return k},set missingWarn(e){k=e,P.missingWarn=k},get fallbackWarn(){return L},set fallbackWarn(e){L=e,P.fallbackWarn=L},get fallbackRoot(){return y},set fallbackRoot(e){y=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,P.fallbackFormat=E},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,P.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,P.escapeParameter=e},t:D,getLocaleMessage:U,setLocaleMessage:function(e,t){f.value[e]=t,F&&F.setLocaleMessage(e,t),P.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},F&&F.mergeLocaleMessage(e,t),De(t,f.value[e]),P.messages=f.value},getPostTranslationHandler:function(){return _(I)?I:null},setPostTranslationHandler:function(e){I=e,P.postTranslation=e},getMissingHandler:function(){return T},setMissingHandler:function(e){null!==e&&(N=Ve(e)),T=e,P.missing=N},[Pe]:function(e){R=e,P.pluralRules=R}};return V.datetimeFormats=x,V.numberFormats=S,V.rt=function(...e){const[t,n,r]=e;if(r&&!h(r))throw Error(Fe.INVALID_ARGUMENT);return D(t,n,i({resolvedMessage:!0},r||{}))},V.te=function(e,t){const n=U(d(t)?t:c.value);return null!==P.messageResolver(n,e)},V.tm=function(e){const t=function(e){let t=null;const n=Z(P,u.value,c.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},o=P.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:r&&r.tm(e)||{}},V.d=function(...e){return M((t=>Reflect.apply(Le,null,[t,...e])),(()=>ye(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>d(e)))},V.n=function(...e){return M((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ne(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>d(e)))},V.getDateTimeFormat=function(e){return m.value[e]||{}},V.setDateTimeFormat=function(e,t){m.value[e]=t,F&&F.setDateTimeFormat(e,t),P.datetimeFormats=m.value,Ee(P,e,t)},V.mergeDateTimeFormat=function(e,t){m.value[e]=i(m.value[e]||{},t),F&&F.mergeDateTimeFormat(e,t),P.datetimeFormats=m.value,Ee(P,e,t)},V.getNumberFormat=function(e){return b.value[e]||{}},V.setNumberFormat=function(e,t){b.value[e]=t,F&&F.setNumberFormat(e,t),P.numberFormats=b.value,Ie(P,e,t)},V.mergeNumberFormat=function(e,t){b.value[e]=i(b.value[e]||{},t),F&&F.mergeNumberFormat(e,t),P.numberFormats=b.value,Ie(P,e,t)},V[We]=e.__injectWithOption,V[Re]=F,V}let Ge=null,Be=null;const He=r("global-vue-i18n");var Je;return Je=function(e,t={}){{const n=(t.onCacheKey||fe)(e),r=me[n];if(r)return r;let a=!1;const o=t.onError||y;t.onError=e=>{a=!0,o(e)};const{code:s}=D(e,t),l=new Function(`return ${s}`)();return a?l:me[n]=l}},ae=Je,oe=function(e,t){if(!h(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function p(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=G(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=j(n),c=U[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&B.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},se=Z,e.I18nInjectionKey=He,e.VERSION=Ce,e.castToVueI18n=e=>{if(!(Ae in e))throw Error(Fe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(Be)return Be;Ge=t;const n=!g(e.legacy)||e.legacy,a=!g(e.globalInjection)||e.globalInjection,o=new Map,s=function(e,t,n){if(!$e(n))throw Error(Fe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return je(e,n)}(e,0,t);r("");{const e=s[Re];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Fe.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&a&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,s),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>De(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(v(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>De(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&v(r)&&De(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||v(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Ge))}});const t={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Be=e,e}},e.useI18n=function(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Fe.MUST_BE_CALL_SETUP_TOP);if(null==Ge||null==Be)throw Error(Fe.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Fe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Be),!n)throw Error(Fe.NOT_INSLALLED);return n}}(n),a=function(e){return e.global}(r),o=function(e){return e.proxy.$options}(n),s=function(e,t){return l(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return function(e,t,n){let r=h(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Se(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),h(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(h(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(a,e,o),a;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[We]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}if("legacy"===r.mode)throw Error(Fe.NOT_AVAILABLE_IN_LEGACY_MODE);const c=r;let u=c.__getInstance(n);if(null==u){const r=i({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),u=je(r,Ge),function(e,n,r){{const a=n.proxy;if(null==a)throw Error(Fe.UNEXPECTED_ERROR);const o=r[Re];if(o===e)throw Error(Fe.UNEXPECTED_ERROR);a._i18n=o,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;t.onBeforeMount((()=>{a._i18n.subscribeDataChanging(a),s=!0}),n),t.onUnmounted((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),n)}}(c,n,u),c.__setInstance(n,u)}return u},Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref as e,getCurrentInstance as t,computed as n,watch as a,onBeforeMount as r,onUnmounted as l}from"@vue/composition-api";const o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=e=>o?Symbol(e):e,i=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),c=e=>"number"==typeof e&&isFinite(e),u=e=>"[object RegExp]"===N(e),m=e=>T(e)&&0===Object.keys(e).length;function f(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _=Object.assign;function g(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const p=Object.prototype.hasOwnProperty;function b(e,t){return p.call(e,t)}const h=Array.isArray,d=e=>"function"==typeof e,v=e=>"string"==typeof e,E=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,L=Object.prototype.toString,N=e=>L.call(e),T=e=>"[object Object]"===N(e),I=15,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 F=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function y(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function W(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,F.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}const w=new Map;function A(e,t){return k(e)?e[t]:null}const O=e=>e,D=e=>"",M=e=>0===e.length?"":e.join(""),C=e=>null==e?"":h(e)||T(e)&&e.toString===L?JSON.stringify(e,null,2):String(e);function $(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function P(e={}){const t=e.locale,n=function(e){const t=c(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(c(e.named.count)||c(e.named.n))?c(e.named.count)?e.named.count:c(e.named.n)?e.named.n:t:t}(e),a=k(e.pluralRules)&&v(t)&&d(e.pluralRules[t])?e.pluralRules[t]:$,r=k(e.pluralRules)&&v(t)&&d(e.pluralRules[t])?$:void 0,l=e.list||[],o=e.named||{};c(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,o);function s(t){const n=d(e.messages)?e.messages(t):!!k(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):D)}const i=T(e.processor)&&d(e.processor.normalize)?e.processor.normalize:M,u=T(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:C,m={list:e=>l[e],named:e=>o[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=s(t)(m);return v(n)?(r=n,e.modifiers?e.modifiers[r]:O)(a):a;var r},message:s,type:T(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return m}function U(e,t,n){return[...new Set([n,...h(t)?t:k(t)?Object.keys(t):v(t)?[t]:[n]])]}function S(e,t,n){const a=v(n)?n:B,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;h(e);)e=V(l,e,t);const o=h(t)||!T(t)?t:t.default?t.default:null;e=v(o)?[o]:o,h(e)&&V(l,e,!1),r.__localeChainCache.set(a,l)}return l}function V(e,t,n){let a=!0;for(let r=0;r<t.length&&E(a);r++){const l=t[r];v(l)&&(a=j(e,t[r],n))}return a}function j(e,t,n){let a;const r=t.split("-");do{a=G(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function G(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(h(n)||T(n))&&n[r]&&(a=n[r])}return a}const B="en-US";let H,x;let Y=0;function J(e={}){const t=v(e.version)?e.version:"9.2.0-beta.20",n=v(e.locale)?e.locale:B,a=h(e.fallbackLocale)||T(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=T(e.messages)?e.messages:{[n]:{}},l=T(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=T(e.numberFormats)?e.numberFormats:{[n]:{}},s=_({},e.modifiers||{},{upper:e=>v(e)?e.toUpperCase():e,lower:e=>v(e)?e.toLowerCase():e,capitalize:e=>v(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),i=e.pluralRules||{},c=d(e.missing)?e.missing:null,m=!E(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,g=!E(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,b=!!e.unresolving,L=d(e.postTranslation)?e.postTranslation:null,N=T(e.processor)?e.processor:null,I=!E(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,F=d(e.messageCompiler)?e.messageCompiler:undefined,y=d(e.messageResolver)?e.messageResolver:H||A,W=d(e.localeFallbacker)?e.localeFallbacker:x||U,w=d(e.onWarn)?e.onWarn:f,O=e,D=k(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,M=k(O.__numberFormatters)?O.__numberFormatters:new Map,C=k(O.__meta)?O.__meta:{};Y++;const $={version:t,cid:Y,locale:n,fallbackLocale:a,messages:r,modifiers:s,pluralRules:i,missing:c,missingWarn:m,fallbackWarn:g,fallbackFormat:p,unresolving:b,postTranslation:L,processor:N,warnHtmlMessage:I,escapeParameter:R,messageCompiler:F,messageResolver:y,localeFallbacker:W,onWarn:w,__meta:C};return $.datetimeFormats=l,$.numberFormats=o,$.__datetimeFormatters=D,$.__numberFormatters=M,$}function X(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return v(a)?a:t}return t}function z(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let q=I;const K=()=>q++,Q={INVALID_ARGUMENT:q,INVALID_DATE_ARGUMENT:K(),INVALID_ISO_DATE_ARGUMENT:K(),__EXTEND_POINT__:K()},Z=()=>"",ee=e=>d(e);function te(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=e,[i,u]=ae(...t),m=(E(u.missingWarn)?u.missingWarn:e.missingWarn,E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,E(u.escapeParameter)?u.escapeParameter:e.escapeParameter),f=!!u.resolvedMessage,_=v(u.default)||E(u.default)?E(u.default)?i:u.default:n?l?i:()=>i:"",p=n||""!==_,b=v(u.locale)?u.locale:e.locale;m&&function(e){h(e.list)?e.list=e.list.map((e=>v(e)?g(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=g(e.named[t]))}))}(u);let[L,N,T]=f?[i,b,s[b]||{}]:function(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const g="translate";for(let n=0;n<u.length&&(m=u[n],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!v(_)&&!d(_));n++){const n=X(e,t,m,0,g);n!==t&&(_=n)}return[_,m,f]}(e,i,b,o),I=L,R=i;if(f||v(I)||ee(I)||p&&(I=_,R=I),!(f||(v(I)||ee(I))&&v(N)))return r?-1:i;let F=!1;const y=ee(I)?I:ne(e,i,N,I,R,(()=>{F=!0}));if(F)return I;const W=function(e,t,n,a){const{modifiers:r,pluralRules:l,messageResolver:o}=e,s=a=>{const r=o(n,a);if(v(r)){let n=!1;const l=ne(e,a,t,r,a,(()=>{n=!0}));return n?Z:l}return ee(r)?r:Z},i={locale:t,modifiers:r,pluralRules:l,messages:s};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);c(a.plural)&&(i.pluralIndex=a.plural);return i}(e,N,T,u),w=function(e,t,n){return t(n)}(0,y,P(W));return a?a(w):w}function ne(e,t,n,a,r,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(ee(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const c=o(a,function(e,t,n,a,r,l){return{warnHtmlMessage:r,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>i({l:e,k:t,s:n}))(t,n,e)}}(0,n,r,0,s,l));return c.locale=n,c.key=t,c.source=a,c}function ae(...e){const[t,n,a]=e,r={};if(!v(t)&&!c(t)&&!ee(t))throw Error(Q.INVALID_ARGUMENT);const l=c(t)?String(t):(ee(t),t);return c(n)?r.plural=n:v(n)?r.default=n:T(n)&&!m(n)?r.named=n:h(n)&&(r.list=n),c(a)?r.plural=a:v(a)?r.default=a:T(a)&&_(r,a),[l,r]}function re(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,f]=le(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const g=!!u.part,p=v(u.locale)?u.locale:e.locale,b=o(e,r,p);if(!v(i)||""===i)return new Intl.DateTimeFormat(p).format(c);let h,d={},k=null;for(let t=0;t<b.length&&(h=b[t],d=n[h]||{},k=d[i],!T(k));t++)X(e,i,h,0,"datetime format");if(!T(k)||!v(h))return a?-1:i;let L=`${h}__${i}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let N=s.get(L);return N||(N=new Intl.DateTimeFormat(h,_({},k,f)),s.set(L,N)),g?N.formatToParts(c):N.format(c)}function le(...e){const[t,n,a,r]=e;let l,o={},s={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Q.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Q.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===N(t)){if(isNaN(t.getTime()))throw Error(Q.INVALID_DATE_ARGUMENT);l=t}else{if(!c(t))throw Error(Q.INVALID_ARGUMENT);l=t}return v(n)?o.key=n:T(n)&&(o=n),v(a)?o.locale=a:T(a)&&(s=a),T(r)&&(s=r),[o.key||"",l,o,s]}function oe(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function se(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,f]=ie(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const g=!!u.part,p=v(u.locale)?u.locale:e.locale,b=o(e,r,p);if(!v(i)||""===i)return new Intl.NumberFormat(p).format(c);let h,d={},k=null;for(let t=0;t<b.length&&(h=b[t],d=n[h]||{},k=d[i],!T(k));t++)X(e,i,h,0,"number format");if(!T(k)||!v(h))return a?-1:i;let L=`${h}__${i}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let N=s.get(L);return N||(N=new Intl.NumberFormat(h,_({},k,f)),s.set(L,N)),g?N.formatToParts(c):N.format(c)}function ie(...e){const[t,n,a,r]=e;let l={},o={};if(!c(t))throw Error(Q.INVALID_ARGUMENT);const s=t;return v(n)?l.key=n:T(n)&&(l=n),v(a)?l.locale=a:T(a)&&(o=a),T(r)&&(o=r),[l.key||"",s,l,o]}function ce(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const ue="9.2.0-beta.20";let me=I;const fe=()=>me++,_e={UNEXPECTED_RETURN_TYPE:me,INVALID_ARGUMENT:fe(),MUST_BE_CALL_SETUP_TOP:fe(),NOT_INSLALLED:fe(),NOT_AVAILABLE_IN_LEGACY_MODE:fe(),REQUIRED_VALUE:fe(),INVALID_VALUE:fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:fe(),NOT_INSLALLED_WITH_PROVIDE:fe(),UNEXPECTED_ERROR:fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:fe(),BRIDGE_SUPPORT_VUE_2_ONLY:fe(),__EXTEND_POINT__:fe()},ge=s("__setPluralRules"),pe=s("__legacyVueI18n"),be=s("__injectWithOption");function he(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function de(e){if(!k(e))return e;for(const t in e)if(b(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],k(r[n[a]])&&de(r[n[a]])}else k(e[t])&&de(e[t]);return e}function ve(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=T(n)?n:h(a)?{}:{[e]:{}};if(h(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},ke(n,o[t])):ke(n,o)}else v(e)&&ke(JSON.parse(e),o)})),null==r&&l)for(const e in o)b(o,e)&&de(o[e]);return o}const Ee=e=>!k(e)||h(e);function ke(e,t){if(Ee(e)||Ee(t))throw Error(_e.INVALID_VALUE);for(const n in e)b(e,n)&&(Ee(e[n])||Ee(t[n])?t[n]=e[n]:ke(e[n],t[n]))}let Le=0;function Ne(e){return(n,a,r,l)=>e(a,r,t()||void 0,l)}function Te(t={},r){const{__root:l}=t,o=void 0===l;let s=!E(t.inheritLocale)||t.inheritLocale;const i=e(l&&s?l.locale.value:v(t.locale)?t.locale:B),m=e(l&&s?l.fallbackLocale.value:v(t.fallbackLocale)||h(t.fallbackLocale)||T(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:i.value),f=e(ve(i.value,t)),g=e(T(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),p=e(T(t.numberFormats)?t.numberFormats:{[i.value]:{}});let b=l?l.missingWarn:!E(t.missingWarn)&&!u(t.missingWarn)||t.missingWarn,L=l?l.fallbackWarn:!E(t.fallbackWarn)&&!u(t.fallbackWarn)||t.fallbackWarn,N=l?l.fallbackRoot:!E(t.fallbackRoot)||t.fallbackRoot,I=!!t.fallbackFormat,R=d(t.missing)?t.missing:null,F=d(t.missing)?Ne(t.missing):null,y=d(t.postTranslation)?t.postTranslation:null,W=!E(t.warnHtmlMessage)||t.warnHtmlMessage,w=!!t.escapeParameter;const A=l?l.modifiers:T(t.modifiers)?t.modifiers:{};let O,D,M=t.pluralRules||l&&l.pluralRules;{he(r);const e={locale:i.value,fallbackLocale:m.value,messages:f.value,dateTimeFormats:g.value,numberFormats:p.value,modifiers:A,missing:R,fallbackRoot:N,postTranslation:y,pluralizationRules:M,escapeParameterHtml:w,sync:s,silentFallbackWarn:E(L)?!L:L,silentTranslationWarn:E(b)?!b:b,formatFallbackMessages:E(I)?!I:I,warnHtmlInMessage:E(W)&&W?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};O=new r(e)}D=function(){const e={version:"9.2.0-beta.20",locale:i.value,fallbackLocale:m.value,messages:f.value,modifiers:A,pluralRules:M,missing:null===F?void 0:F,missingWarn:b,fallbackWarn:L,fallbackFormat:I,unresolving:!0,postTranslation:null===y?void 0:y,warnHtmlMessage:W,escapeParameter:w,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=g.value,e.numberFormats=p.value,e.__datetimeFormatters=T(D)?D.__datetimeFormatters:void 0,e.__numberFormatters=T(D)?D.__numberFormatters:void 0,J(e)}(),z(D,i.value,m.value);const C=n({get:()=>i.value,set:e=>{i.value=e,O&&!o&&(O.locale=e),D.locale=i.value}}),$=n({get:()=>m.value,set:e=>{m.value=e,O&&!o&&(O.fallbackLocale=e),D.fallbackLocale=m.value,z(D,i.value,e)}}),P=n((()=>f.value)),U=n((()=>g.value)),V=n((()=>p.value));function j(e,t,n,a,r,o){let s;if(i.value,m.value,f.value,g.value,p.value,s=e(D),c(s)&&-1===s){const[e,n]=t();return l&&N?a(l):r(e)}if(o(s))return s;throw Error(_e.UNEXPECTED_RETURN_TYPE)}function G(...e){return j((t=>Reflect.apply(te,null,[t,...e])),(()=>ae(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}function H(e){return f.value[e]||{}}Le++,l&&(a(l.locale,(e=>{s&&(i.value=e,O&&!o&&(O.locale=e),D.locale=e,z(D,i.value,m.value))})),a(l.fallbackLocale,(e=>{s&&(m.value=e,O&&!o&&(O.fallbackLocale=e),D.fallbackLocale=e,z(D,i.value,m.value))})));const x={id:Le,locale:C,fallbackLocale:$,get inheritLocale(){return s},set inheritLocale(e){s=e,O&&(O._sync=e),e&&l&&(i.value=l.locale.value,m.value=l.fallbackLocale.value,O&&(O.locale=l.locale.value,O.fallbackLocale=l.fallbackLocale.value),z(D,i.value,m.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:P,get modifiers(){return A},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return b},set missingWarn(e){b=e,D.missingWarn=b},get fallbackWarn(){return L},set fallbackWarn(e){L=e,D.fallbackWarn=L},get fallbackRoot(){return N},set fallbackRoot(e){N=e},get fallbackFormat(){return I},set fallbackFormat(e){I=e,D.fallbackFormat=I},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,D.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,D.escapeParameter=e},t:G,getLocaleMessage:H,setLocaleMessage:function(e,t){f.value[e]=t,O&&O.setLocaleMessage(e,t),D.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},O&&O.mergeLocaleMessage(e,t),ke(t,f.value[e]),D.messages=f.value},getPostTranslationHandler:function(){return d(y)?y:null},setPostTranslationHandler:function(e){y=e,D.postTranslation=e},getMissingHandler:function(){return R},setMissingHandler:function(e){null!==e&&(F=Ne(e)),R=e,D.missing=F},[ge]:function(e){M=e,D.pluralRules=M}};return x.datetimeFormats=U,x.numberFormats=V,x.rt=function(...e){const[t,n,a]=e;if(a&&!k(a))throw Error(_e.INVALID_ARGUMENT);return G(t,n,_({resolvedMessage:!0},a||{}))},x.te=function(e,t){const n=H(v(t)?t:i.value);return null!==D.messageResolver(n,e)},x.tm=function(e){const t=function(e){let t=null;const n=S(D,m.value,i.value);for(let a=0;a<n.length;a++){const r=f.value[n[a]]||{},l=D.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},x.d=function(...e){return j((t=>Reflect.apply(re,null,[t,...e])),(()=>le(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>v(e)))},x.n=function(...e){return j((t=>Reflect.apply(se,null,[t,...e])),(()=>ie(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>v(e)))},x.getDateTimeFormat=function(e){return g.value[e]||{}},x.setDateTimeFormat=function(e,t){g.value[e]=t,O&&O.setDateTimeFormat(e,t),D.datetimeFormats=g.value,oe(D,e,t)},x.mergeDateTimeFormat=function(e,t){g.value[e]=_(g.value[e]||{},t),O&&O.mergeDateTimeFormat(e,t),D.datetimeFormats=g.value,oe(D,e,t)},x.getNumberFormat=function(e){return p.value[e]||{}},x.setNumberFormat=function(e,t){p.value[e]=t,O&&O.setNumberFormat(e,t),D.numberFormats=p.value,ce(D,e,t)},x.mergeNumberFormat=function(e,t){p.value[e]=_(p.value[e]||{},t),O&&O.mergeNumberFormat(e,t),D.numberFormats=p.value,ce(D,e,t)},x[be]=t.__injectWithOption,x[pe]=O,x}let Ie=null,Re=null;const Fe=s("global-vue-i18n");function ye(e={},t){if(Re)return Re;Ie=t;const n=!E(e.legacy)||e.legacy,a=!E(e.globalInjection)||e.globalInjection,r=new Map,l=function(e,t,n){if(!he(n))throw Error(_e.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Te(e,n)}(e,0,t);s("");{const e=l[pe];Object.defineProperty(e,"global",{get:()=>l}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>r}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(_e.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&a&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,l),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>ke(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(T(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>ke(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&T(a)&&ke(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||T(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Ie))}});const t={__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Re=e,e}}function We(e={}){const n=t();if(null==n)throw Error(_e.MUST_BE_CALL_SETUP_TOP);if(null==Ie||null==Re)throw Error(_e.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(_e.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Re),!n)throw Error(_e.NOT_INSLALLED);return n}}(n),o=function(e){return e.global}(a),s=function(e){return e.proxy.$options}(n),i=function(e,t){return m(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,s);if("global"===i)return function(e,t,n){let a=k(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=ve(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])}));if(k(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(k(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(o,e,s),o;if("parent"===i){let t=function(e,t,n=!1){let a=null;const r=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[be]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=o),t}if("legacy"===a.mode)throw Error(_e.NOT_AVAILABLE_IN_LEGACY_MODE);const c=a;let u=c.__getInstance(n);if(null==u){const t=_({},e);"__i18n"in s&&(t.__i18n=s.__i18n),o&&(t.__root=o),u=Te(t,Ie),function(e,t,n){{const a=t.proxy;if(null==a)throw Error(_e.UNEXPECTED_ERROR);const o=n[pe];if(o===e)throw Error(_e.UNEXPECTED_ERROR);a._i18n=o,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;r((()=>{a._i18n.subscribeDataChanging(a),s=!0}),t),l((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),t)}}(c,n,u),c.__setInstance(n,u)}return u}const we=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(_e.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};H=function(e,t){if(!k(e))return null;let n=w.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,o,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=W(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=y(n),i=R[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&w.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;r=e,l++}return r},x=S;export{Fe as I18nInjectionKey,ue as VERSION,we as castToVueI18n,ye as createI18n,We as useI18n};
import{ref as e,getCurrentInstance as t,computed as n,watch as a,onBeforeMount as r,onUnmounted as l}from"@vue/composition-api";const o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=e=>o?Symbol(e):e,i=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),c=e=>"number"==typeof e&&isFinite(e),u=e=>"[object RegExp]"===N(e),m=e=>T(e)&&0===Object.keys(e).length;function f(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _=Object.assign;function g(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const p=Object.prototype.hasOwnProperty;function b(e,t){return p.call(e,t)}const h=Array.isArray,d=e=>"function"==typeof e,v=e=>"string"==typeof e,E=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,L=Object.prototype.toString,N=e=>L.call(e),T=e=>"[object Object]"===N(e),I=15,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 F=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function y(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function W(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,F.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}const w=new Map;function A(e,t){return k(e)?e[t]:null}const O=e=>e,D=e=>"",M=e=>0===e.length?"":e.join(""),C=e=>null==e?"":h(e)||T(e)&&e.toString===L?JSON.stringify(e,null,2):String(e);function $(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function P(e={}){const t=e.locale,n=function(e){const t=c(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(c(e.named.count)||c(e.named.n))?c(e.named.count)?e.named.count:c(e.named.n)?e.named.n:t:t}(e),a=k(e.pluralRules)&&v(t)&&d(e.pluralRules[t])?e.pluralRules[t]:$,r=k(e.pluralRules)&&v(t)&&d(e.pluralRules[t])?$:void 0,l=e.list||[],o=e.named||{};c(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,o);function s(t){const n=d(e.messages)?e.messages(t):!!k(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):D)}const i=T(e.processor)&&d(e.processor.normalize)?e.processor.normalize:M,u=T(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:C,m={list:e=>l[e],named:e=>o[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=s(t)(m);return v(n)?(r=n,e.modifiers?e.modifiers[r]:O)(a):a;var r},message:s,type:T(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return m}function U(e,t,n){return[...new Set([n,...h(t)?t:k(t)?Object.keys(t):v(t)?[t]:[n]])]}function S(e,t,n){const a=v(n)?n:B,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;h(e);)e=V(l,e,t);const o=h(t)||!T(t)?t:t.default?t.default:null;e=v(o)?[o]:o,h(e)&&V(l,e,!1),r.__localeChainCache.set(a,l)}return l}function V(e,t,n){let a=!0;for(let r=0;r<t.length&&E(a);r++){const l=t[r];v(l)&&(a=j(e,t[r],n))}return a}function j(e,t,n){let a;const r=t.split("-");do{a=G(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function G(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(h(n)||T(n))&&n[r]&&(a=n[r])}return a}const B="en-US";let H,x;let Y=0;function J(e={}){const t=v(e.version)?e.version:"9.2.0-beta.21",n=v(e.locale)?e.locale:B,a=h(e.fallbackLocale)||T(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=T(e.messages)?e.messages:{[n]:{}},l=T(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=T(e.numberFormats)?e.numberFormats:{[n]:{}},s=_({},e.modifiers||{},{upper:e=>v(e)?e.toUpperCase():e,lower:e=>v(e)?e.toLowerCase():e,capitalize:e=>v(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),i=e.pluralRules||{},c=d(e.missing)?e.missing:null,m=!E(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,g=!E(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,b=!!e.unresolving,L=d(e.postTranslation)?e.postTranslation:null,N=T(e.processor)?e.processor:null,I=!E(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,F=d(e.messageCompiler)?e.messageCompiler:undefined,y=d(e.messageResolver)?e.messageResolver:H||A,W=d(e.localeFallbacker)?e.localeFallbacker:x||U,w=d(e.onWarn)?e.onWarn:f,O=e,D=k(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,M=k(O.__numberFormatters)?O.__numberFormatters:new Map,C=k(O.__meta)?O.__meta:{};Y++;const $={version:t,cid:Y,locale:n,fallbackLocale:a,messages:r,modifiers:s,pluralRules:i,missing:c,missingWarn:m,fallbackWarn:g,fallbackFormat:p,unresolving:b,postTranslation:L,processor:N,warnHtmlMessage:I,escapeParameter:R,messageCompiler:F,messageResolver:y,localeFallbacker:W,onWarn:w,__meta:C};return $.datetimeFormats=l,$.numberFormats=o,$.__datetimeFormatters=D,$.__numberFormatters=M,$}function X(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return v(a)?a:t}return t}function z(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let q=I;const K=()=>q++,Q={INVALID_ARGUMENT:q,INVALID_DATE_ARGUMENT:K(),INVALID_ISO_DATE_ARGUMENT:K(),__EXTEND_POINT__:K()},Z=()=>"",ee=e=>d(e);function te(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=e,[i,u]=ae(...t),m=(E(u.missingWarn)?u.missingWarn:e.missingWarn,E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,E(u.escapeParameter)?u.escapeParameter:e.escapeParameter),f=!!u.resolvedMessage,_=v(u.default)||E(u.default)?E(u.default)?i:u.default:n?l?i:()=>i:"",p=n||""!==_,b=v(u.locale)?u.locale:e.locale;m&&function(e){h(e.list)?e.list=e.list.map((e=>v(e)?g(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=g(e.named[t]))}))}(u);let[L,N,T]=f?[i,b,s[b]||{}]:function(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const g="translate";for(let n=0;n<u.length&&(m=u[n],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!v(_)&&!d(_));n++){const n=X(e,t,m,0,g);n!==t&&(_=n)}return[_,m,f]}(e,i,b,o),I=L,R=i;if(f||v(I)||ee(I)||p&&(I=_,R=I),!(f||(v(I)||ee(I))&&v(N)))return r?-1:i;let F=!1;const y=ee(I)?I:ne(e,i,N,I,R,(()=>{F=!0}));if(F)return I;const W=function(e,t,n,a){const{modifiers:r,pluralRules:l,messageResolver:o}=e,s=a=>{const r=o(n,a);if(v(r)){let n=!1;const l=ne(e,a,t,r,a,(()=>{n=!0}));return n?Z:l}return ee(r)?r:Z},i={locale:t,modifiers:r,pluralRules:l,messages:s};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);c(a.plural)&&(i.pluralIndex=a.plural);return i}(e,N,T,u),w=function(e,t,n){return t(n)}(0,y,P(W));return a?a(w):w}function ne(e,t,n,a,r,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(ee(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const c=o(a,function(e,t,n,a,r,l){return{warnHtmlMessage:r,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>i({l:e,k:t,s:n}))(t,n,e)}}(0,n,r,0,s,l));return c.locale=n,c.key=t,c.source=a,c}function ae(...e){const[t,n,a]=e,r={};if(!v(t)&&!c(t)&&!ee(t))throw Error(Q.INVALID_ARGUMENT);const l=c(t)?String(t):(ee(t),t);return c(n)?r.plural=n:v(n)?r.default=n:T(n)&&!m(n)?r.named=n:h(n)&&(r.list=n),c(a)?r.plural=a:v(a)?r.default=a:T(a)&&_(r,a),[l,r]}function re(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,f]=le(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const g=!!u.part,p=v(u.locale)?u.locale:e.locale,b=o(e,r,p);if(!v(i)||""===i)return new Intl.DateTimeFormat(p).format(c);let h,d={},k=null;for(let t=0;t<b.length&&(h=b[t],d=n[h]||{},k=d[i],!T(k));t++)X(e,i,h,0,"datetime format");if(!T(k)||!v(h))return a?-1:i;let L=`${h}__${i}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let N=s.get(L);return N||(N=new Intl.DateTimeFormat(h,_({},k,f)),s.set(L,N)),g?N.formatToParts(c):N.format(c)}function le(...e){const[t,n,a,r]=e;let l,o={},s={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Q.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Q.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===N(t)){if(isNaN(t.getTime()))throw Error(Q.INVALID_DATE_ARGUMENT);l=t}else{if(!c(t))throw Error(Q.INVALID_ARGUMENT);l=t}return v(n)?o.key=n:T(n)&&(o=n),v(a)?o.locale=a:T(a)&&(s=a),T(r)&&(s=r),[o.key||"",l,o,s]}function oe(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function se(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,f]=ie(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const g=!!u.part,p=v(u.locale)?u.locale:e.locale,b=o(e,r,p);if(!v(i)||""===i)return new Intl.NumberFormat(p).format(c);let h,d={},k=null;for(let t=0;t<b.length&&(h=b[t],d=n[h]||{},k=d[i],!T(k));t++)X(e,i,h,0,"number format");if(!T(k)||!v(h))return a?-1:i;let L=`${h}__${i}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let N=s.get(L);return N||(N=new Intl.NumberFormat(h,_({},k,f)),s.set(L,N)),g?N.formatToParts(c):N.format(c)}function ie(...e){const[t,n,a,r]=e;let l={},o={};if(!c(t))throw Error(Q.INVALID_ARGUMENT);const s=t;return v(n)?l.key=n:T(n)&&(l=n),v(a)?l.locale=a:T(a)&&(o=a),T(r)&&(o=r),[l.key||"",s,l,o]}function ce(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const ue="9.2.0-beta.21";let me=I;const fe=()=>me++,_e={UNEXPECTED_RETURN_TYPE:me,INVALID_ARGUMENT:fe(),MUST_BE_CALL_SETUP_TOP:fe(),NOT_INSLALLED:fe(),NOT_AVAILABLE_IN_LEGACY_MODE:fe(),REQUIRED_VALUE:fe(),INVALID_VALUE:fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:fe(),NOT_INSLALLED_WITH_PROVIDE:fe(),UNEXPECTED_ERROR:fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:fe(),BRIDGE_SUPPORT_VUE_2_ONLY:fe(),__EXTEND_POINT__:fe()},ge=s("__setPluralRules"),pe=s("__legacyVueI18n"),be=s("__injectWithOption");function he(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function de(e){if(!k(e))return e;for(const t in e)if(b(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],k(r[n[a]])&&de(r[n[a]])}else k(e[t])&&de(e[t]);return e}function ve(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=T(n)?n:h(a)?{}:{[e]:{}};if(h(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},ke(n,o[t])):ke(n,o)}else v(e)&&ke(JSON.parse(e),o)})),null==r&&l)for(const e in o)b(o,e)&&de(o[e]);return o}const Ee=e=>!k(e)||h(e);function ke(e,t){if(Ee(e)||Ee(t))throw Error(_e.INVALID_VALUE);for(const n in e)b(e,n)&&(Ee(e[n])||Ee(t[n])?t[n]=e[n]:ke(e[n],t[n]))}let Le=0;function Ne(e){return(n,a,r,l)=>e(a,r,t()||void 0,l)}function Te(t={},r){const{__root:l}=t,o=void 0===l;let s=!E(t.inheritLocale)||t.inheritLocale;const i=e(l&&s?l.locale.value:v(t.locale)?t.locale:B),m=e(l&&s?l.fallbackLocale.value:v(t.fallbackLocale)||h(t.fallbackLocale)||T(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:i.value),f=e(ve(i.value,t)),g=e(T(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),p=e(T(t.numberFormats)?t.numberFormats:{[i.value]:{}});let b=l?l.missingWarn:!E(t.missingWarn)&&!u(t.missingWarn)||t.missingWarn,L=l?l.fallbackWarn:!E(t.fallbackWarn)&&!u(t.fallbackWarn)||t.fallbackWarn,N=l?l.fallbackRoot:!E(t.fallbackRoot)||t.fallbackRoot,I=!!t.fallbackFormat,R=d(t.missing)?t.missing:null,F=d(t.missing)?Ne(t.missing):null,y=d(t.postTranslation)?t.postTranslation:null,W=!E(t.warnHtmlMessage)||t.warnHtmlMessage,w=!!t.escapeParameter;const A=l?l.modifiers:T(t.modifiers)?t.modifiers:{};let O,D,M=t.pluralRules||l&&l.pluralRules;{he(r);const e={locale:i.value,fallbackLocale:m.value,messages:f.value,dateTimeFormats:g.value,numberFormats:p.value,modifiers:A,missing:R,fallbackRoot:N,postTranslation:y,pluralizationRules:M,escapeParameterHtml:w,sync:s,silentFallbackWarn:E(L)?!L:L,silentTranslationWarn:E(b)?!b:b,formatFallbackMessages:E(I)?!I:I,warnHtmlInMessage:E(W)&&W?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};O=new r(e)}D=function(){const e={version:"9.2.0-beta.21",locale:i.value,fallbackLocale:m.value,messages:f.value,modifiers:A,pluralRules:M,missing:null===F?void 0:F,missingWarn:b,fallbackWarn:L,fallbackFormat:I,unresolving:!0,postTranslation:null===y?void 0:y,warnHtmlMessage:W,escapeParameter:w,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=g.value,e.numberFormats=p.value,e.__datetimeFormatters=T(D)?D.__datetimeFormatters:void 0,e.__numberFormatters=T(D)?D.__numberFormatters:void 0,J(e)}(),z(D,i.value,m.value);const C=n({get:()=>i.value,set:e=>{i.value=e,O&&!o&&(O.locale=e),D.locale=i.value}}),$=n({get:()=>m.value,set:e=>{m.value=e,O&&!o&&(O.fallbackLocale=e),D.fallbackLocale=m.value,z(D,i.value,e)}}),P=n((()=>f.value)),U=n((()=>g.value)),V=n((()=>p.value));function j(e,t,n,a,r,o){let s;if(i.value,m.value,f.value,g.value,p.value,s=e(D),c(s)&&-1===s){const[e,n]=t();return l&&N?a(l):r(e)}if(o(s))return s;throw Error(_e.UNEXPECTED_RETURN_TYPE)}function G(...e){return j((t=>Reflect.apply(te,null,[t,...e])),(()=>ae(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}function H(e){return f.value[e]||{}}Le++,l&&(a(l.locale,(e=>{s&&(i.value=e,O&&!o&&(O.locale=e),D.locale=e,z(D,i.value,m.value))})),a(l.fallbackLocale,(e=>{s&&(m.value=e,O&&!o&&(O.fallbackLocale=e),D.fallbackLocale=e,z(D,i.value,m.value))})));const x={id:Le,locale:C,fallbackLocale:$,get inheritLocale(){return s},set inheritLocale(e){s=e,O&&(O._sync=e),e&&l&&(i.value=l.locale.value,m.value=l.fallbackLocale.value,O&&(O.locale=l.locale.value,O.fallbackLocale=l.fallbackLocale.value),z(D,i.value,m.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:P,get modifiers(){return A},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return b},set missingWarn(e){b=e,D.missingWarn=b},get fallbackWarn(){return L},set fallbackWarn(e){L=e,D.fallbackWarn=L},get fallbackRoot(){return N},set fallbackRoot(e){N=e},get fallbackFormat(){return I},set fallbackFormat(e){I=e,D.fallbackFormat=I},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,D.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,D.escapeParameter=e},t:G,getLocaleMessage:H,setLocaleMessage:function(e,t){f.value[e]=t,O&&O.setLocaleMessage(e,t),D.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},O&&O.mergeLocaleMessage(e,t),ke(t,f.value[e]),D.messages=f.value},getPostTranslationHandler:function(){return d(y)?y:null},setPostTranslationHandler:function(e){y=e,D.postTranslation=e},getMissingHandler:function(){return R},setMissingHandler:function(e){null!==e&&(F=Ne(e)),R=e,D.missing=F},[ge]:function(e){M=e,D.pluralRules=M}};return x.datetimeFormats=U,x.numberFormats=V,x.rt=function(...e){const[t,n,a]=e;if(a&&!k(a))throw Error(_e.INVALID_ARGUMENT);return G(t,n,_({resolvedMessage:!0},a||{}))},x.te=function(e,t){const n=H(v(t)?t:i.value);return null!==D.messageResolver(n,e)},x.tm=function(e){const t=function(e){let t=null;const n=S(D,m.value,i.value);for(let a=0;a<n.length;a++){const r=f.value[n[a]]||{},l=D.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},x.d=function(...e){return j((t=>Reflect.apply(re,null,[t,...e])),(()=>le(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>v(e)))},x.n=function(...e){return j((t=>Reflect.apply(se,null,[t,...e])),(()=>ie(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>v(e)))},x.getDateTimeFormat=function(e){return g.value[e]||{}},x.setDateTimeFormat=function(e,t){g.value[e]=t,O&&O.setDateTimeFormat(e,t),D.datetimeFormats=g.value,oe(D,e,t)},x.mergeDateTimeFormat=function(e,t){g.value[e]=_(g.value[e]||{},t),O&&O.mergeDateTimeFormat(e,t),D.datetimeFormats=g.value,oe(D,e,t)},x.getNumberFormat=function(e){return p.value[e]||{}},x.setNumberFormat=function(e,t){p.value[e]=t,O&&O.setNumberFormat(e,t),D.numberFormats=p.value,ce(D,e,t)},x.mergeNumberFormat=function(e,t){p.value[e]=_(p.value[e]||{},t),O&&O.mergeNumberFormat(e,t),D.numberFormats=p.value,ce(D,e,t)},x[be]=t.__injectWithOption,x[pe]=O,x}let Ie=null,Re=null;const Fe=s("global-vue-i18n");function ye(e={},t){if(Re)return Re;Ie=t;const n=!E(e.legacy)||e.legacy,a=!E(e.globalInjection)||e.globalInjection,r=new Map,l=function(e,t,n){if(!he(n))throw Error(_e.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Te(e,n)}(e,0,t);s("");{const e=l[pe];Object.defineProperty(e,"global",{get:()=>l}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>r}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(_e.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&a&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,l),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>ke(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(T(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>ke(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&T(a)&&ke(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||T(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Ie))}});const t={__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Re=e,e}}function We(e={}){const n=t();if(null==n)throw Error(_e.MUST_BE_CALL_SETUP_TOP);if(null==Ie||null==Re)throw Error(_e.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(_e.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Re),!n)throw Error(_e.NOT_INSLALLED);return n}}(n),o=function(e){return e.global}(a),s=function(e){return e.proxy.$options}(n),i=function(e,t){return m(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,s);if("global"===i)return function(e,t,n){let a=k(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=ve(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),k(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(k(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(o,e,s),o;if("parent"===i){let t=function(e,t,n=!1){let a=null;const r=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[be]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=o),t}if("legacy"===a.mode)throw Error(_e.NOT_AVAILABLE_IN_LEGACY_MODE);const c=a;let u=c.__getInstance(n);if(null==u){const t=_({},e);"__i18n"in s&&(t.__i18n=s.__i18n),o&&(t.__root=o),u=Te(t,Ie),function(e,t,n){{const a=t.proxy;if(null==a)throw Error(_e.UNEXPECTED_ERROR);const o=n[pe];if(o===e)throw Error(_e.UNEXPECTED_ERROR);a._i18n=o,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;r((()=>{a._i18n.subscribeDataChanging(a),s=!0}),t),l((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),t)}}(c,n,u),c.__setInstance(n,u)}return u}const we=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(_e.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};H=function(e,t){if(!k(e))return null;let n=w.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,o,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=W(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=y(n),i=R[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&w.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;r=e,l++}return r},x=S;export{Fe as I18nInjectionKey,ue as VERSION,we as castToVueI18n,ye as createI18n,We as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import { getGlobalThis, format, makeSymbol, isPlainObject, isArray, isString, hasOwn, isObject, isBoolean, isRegExp, isFunction, assign, isNumber, warn, isEmptyObject } from '@intlify/shared';
import { getGlobalThis, format, makeSymbol, isObject, isArray, hasOwn, isPlainObject, isString, isBoolean, isRegExp, isFunction, assign, isNumber, warn, isEmptyObject } from '@intlify/shared';
import { CoreWarnCodes, createCompileError, CompileErrorCodes, DEFAULT_LOCALE, createCoreContext, updateFallbackLocale, clearDateTimeFormat, clearNumberFormat, setAdditionalMeta, NOT_REOSLVED, isTranslateFallbackWarn, isTranslateMissingWarn, parseTranslateArgs, translate, MISSING_RESOLVE_VALUE, parseDateTimeArgs, datetime, parseNumberArgs, number, fallbackWithLocaleChain, registerMessageResolver, resolveValue, registerLocaleFallbacker, setDevToolsHook } from '@intlify/core-base';

@@ -18,3 +18,3 @@ import { ref, getCurrentInstance, computed, watch, onBeforeMount, onUnmounted } from '@vue/composition-api';

*/
const VERSION = '9.2.0-beta.20';
const VERSION = '9.2.0-beta.21';
/**

@@ -233,2 +233,39 @@ * This is only called in esm-bundler builds.

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
/* eslint-enable @typescript-eslint/no-explicit-any */

@@ -1161,39 +1198,2 @@

}
function adjustI18nResources(global, options, componentOptions // eslint-disable-line @typescript-eslint/no-explicit-any
) {
let messages = isObject(options.messages) ? options.messages : {};
if ('__i18nGlobal' in componentOptions) {
messages = getLocaleMessages(global.locale.value, {
messages,
__i18n: componentOptions.__i18nGlobal
});
}
// merge locale messages
const locales = Object.keys(messages);
if (locales.length) {
locales.forEach(locale => {
global.mergeLocaleMessage(locale, messages[locale]);
});
}
{
// merge datetime formats
if (isObject(options.datetimeFormats)) {
const locales = Object.keys(options.datetimeFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeDateTimeFormat(locale, options.datetimeFormats[locale]);
});
}
}
// merge number formats
if (isObject(options.numberFormats)) {
const locales = Object.keys(options.numberFormats);
if (locales.length) {
locales.forEach(locale => {
global.mergeNumberFormat(locale, options.numberFormats[locale]);
});
}
}
}
}
function getComposer(i18n, target, useComponent = false) {

@@ -1200,0 +1200,0 @@ let composer = null;

/*!
* vue-i18n-bridge v9.2.0-beta.20
* vue-i18n-bridge v9.2.0-beta.21
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>n?Symbol(e):e,r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===v(e),s=e=>E(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function f(e,t){return m.call(e,t)}const _=Array.isArray,g=e=>"function"==typeof e,p=e=>"string"==typeof e,b=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,v=e=>h.call(e),E=e=>"[object Object]"===v(e),k=15,I=[];I[0]={w:[0],i:[3,0],"[":[4],o:[7]},I[1]={w:[1],".":[2],"[":[4],o:[7]},I[2]={w:[2],i:[3,0],0:[3,0]},I[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},I[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},I[5]={"'":[4,0],o:8,l:[5,0]},I[6]={'"':[4,0],o:8,l:[6,0]};const L=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function N(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function T(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,L.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}const R=new Map;function F(e,t){return d(e)?e[t]:null}const y=e=>e,W=e=>"",w=e=>0===e.length?"":e.join(""),A=e=>null==e?"":_(e)||E(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function O(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function D(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),a=d(e.pluralRules)&&p(t)&&g(e.pluralRules[t])?e.pluralRules[t]:O,r=d(e.pluralRules)&&p(t)&&g(e.pluralRules[t])?O:void 0,o=e.list||[],s=e.named||{};l(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t){const n=g(e.messages)?e.messages(t):!!d(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):W)}const c=E(e.processor)&&g(e.processor.normalize)?e.processor.normalize:w,u=E(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:A,m={list:e=>o[e],named:e=>s[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=i(t)(m);return p(n)?(r=n,e.modifiers?e.modifiers[r]:y)(a):a;var r},message:i,type:E(e.processor)&&p(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function M(e,t,n){return[...new Set([n,..._(t)?t:d(t)?Object.keys(t):p(t)?[t]:[n]])]}function C(e,t,n){const a=p(n)?n:S,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;_(e);)e=$(l,e,t);const o=_(t)||!E(t)?t:t.default?t.default:null;e=p(o)?[o]:o,_(e)&&$(l,e,!1),r.__localeChainCache.set(a,l)}return l}function $(e,t,n){let a=!0;for(let r=0;r<t.length&&b(a);r++){const l=t[r];p(l)&&(a=P(e,t[r],n))}return a}function P(e,t,n){let a;const r=t.split("-");do{a=U(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function U(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(_(n)||E(n))&&n[r]&&(a=n[r])}return a}const S="en-US";let V,j;let G=0;function B(e={}){const t=p(e.version)?e.version:"9.2.0-beta.20",n=p(e.locale)?e.locale:S,a=_(e.fallbackLocale)||E(e.fallbackLocale)||p(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=E(e.messages)?e.messages:{[n]:{}},l=E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=E(e.numberFormats)?e.numberFormats:{[n]:{}},u=c({},e.modifiers||{},{upper:e=>p(e)?e.toUpperCase():e,lower:e=>p(e)?e.toLowerCase():e,capitalize:e=>p(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),m=e.pluralRules||{},f=g(e.missing)?e.missing:null,h=!b(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,v=!b(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,I=!!e.unresolving,L=g(e.postTranslation)?e.postTranslation:null,N=E(e.processor)?e.processor:null,T=!b(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,y=g(e.messageCompiler)?e.messageCompiler:undefined,W=g(e.messageResolver)?e.messageResolver:V||F,w=g(e.localeFallbacker)?e.localeFallbacker:j||M,A=g(e.onWarn)?e.onWarn:i,O=e,D=d(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,C=d(O.__numberFormatters)?O.__numberFormatters:new Map,$=d(O.__meta)?O.__meta:{};G++;const P={version:t,cid:G,locale:n,fallbackLocale:a,messages:r,modifiers:u,pluralRules:m,missing:f,missingWarn:h,fallbackWarn:v,fallbackFormat:k,unresolving:I,postTranslation:L,processor:N,warnHtmlMessage:T,escapeParameter:R,messageCompiler:y,messageResolver:W,localeFallbacker:w,onWarn:A,__meta:$};return P.datetimeFormats=l,P.numberFormats=s,P.__datetimeFormatters=D,P.__numberFormatters=C,P}function H(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return p(a)?a:t}return t}function x(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Y=k;const J=()=>Y++,X={INVALID_ARGUMENT:Y,INVALID_DATE_ARGUMENT:J(),INVALID_ISO_DATE_ARGUMENT:J(),__EXTEND_POINT__:J()},z=()=>"",K=e=>g(e);function q(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:o,fallbackLocale:s,messages:i}=e,[c,m]=Z(...t),f=(b(m.missingWarn)?m.missingWarn:e.missingWarn,b(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,b(m.escapeParameter)?m.escapeParameter:e.escapeParameter),h=!!m.resolvedMessage,v=p(m.default)||b(m.default)?b(m.default)?c:m.default:n?o?c:()=>c:"",E=n||""!==v,k=p(m.locale)?m.locale:e.locale;f&&function(e){_(e.list)?e.list=e.list.map((e=>p(e)?u(e):e)):d(e.named)&&Object.keys(e.named).forEach((t=>{p(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(m);let[I,L,N]=h?[c,k,i[k]||{}]:function(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const b="translate";for(let n=0;n<u.length&&(m=u[n],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!p(_)&&!g(_));n++){const n=H(e,t,m,0,b);n!==t&&(_=n)}return[_,m,f]}(e,c,k,s),T=I,R=c;if(h||p(T)||K(T)||E&&(T=v,R=T),!(h||(p(T)||K(T))&&p(L)))return r?-1:c;let F=!1;const y=K(T)?T:Q(e,c,L,T,R,(()=>{F=!0}));if(F)return T;const W=function(e,t,n,a){const{modifiers:r,pluralRules:o,messageResolver:s}=e,i=a=>{const r=s(n,a);if(p(r)){let n=!1;const l=Q(e,a,t,r,a,(()=>{n=!0}));return n?z:l}return K(r)?r:z},c={locale:t,modifiers:r,pluralRules:o,messages:i};e.processor&&(c.processor=e.processor);a.list&&(c.list=a.list);a.named&&(c.named=a.named);l(a.plural)&&(c.pluralIndex=a.plural);return c}(e,L,N,m),w=function(e,t,n){return t(n)}(0,y,D(W));return a?a(w):w}function Q(e,t,n,a,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(K(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const c=s(a,function(e,t,n,a,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>r({l:e,k:t,s:n}))(t,n,e)}}(0,n,l,0,i,o));return c.locale=n,c.key=t,c.source=a,c}function Z(...e){const[t,n,a]=e,r={};if(!p(t)&&!l(t)&&!K(t))throw Error(X.INVALID_ARGUMENT);const o=l(t)?String(t):(K(t),t);return l(n)?r.plural=n:p(n)?r.default=n:E(n)&&!s(n)?r.named=n:_(n)&&(r.list=n),l(a)?r.plural=a:p(a)?r.default=a:E(a)&&c(r,a),[o,r]}function ee(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:i}=e,[u,m,f,_]=te(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,d=p(f.locale)?f.locale:e.locale,h=o(e,r,d);if(!p(u)||""===u)return new Intl.DateTimeFormat(d).format(m);let v,k={},I=null;for(let t=0;t<h.length&&(v=h[t],k=n[v]||{},I=k[u],!E(I));t++)H(e,u,v,0,"datetime format");if(!E(I)||!p(v))return a?-1:u;let L=`${v}__${u}`;s(_)||(L=`${L}__${JSON.stringify(_)}`);let N=i.get(L);return N||(N=new Intl.DateTimeFormat(v,c({},I,_)),i.set(L,N)),g?N.formatToParts(m):N.format(m)}function te(...e){const[t,n,a,r]=e;let o,s={},i={};if(p(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(X.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();o=new Date(n);try{o.toISOString()}catch(e){throw Error(X.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===v(t)){if(isNaN(t.getTime()))throw Error(X.INVALID_DATE_ARGUMENT);o=t}else{if(!l(t))throw Error(X.INVALID_ARGUMENT);o=t}return p(n)?s.key=n:E(n)&&(s=n),p(a)?s.locale=a:E(a)&&(i=a),E(r)&&(i=r),[s.key||"",o,s,i]}function ne(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function ae(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:i}=e,[u,m,f,_]=re(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,d=p(f.locale)?f.locale:e.locale,h=o(e,r,d);if(!p(u)||""===u)return new Intl.NumberFormat(d).format(m);let v,k={},I=null;for(let t=0;t<h.length&&(v=h[t],k=n[v]||{},I=k[u],!E(I));t++)H(e,u,v,0,"number format");if(!E(I)||!p(v))return a?-1:u;let L=`${v}__${u}`;s(_)||(L=`${L}__${JSON.stringify(_)}`);let N=i.get(L);return N||(N=new Intl.NumberFormat(v,c({},I,_)),i.set(L,N)),g?N.formatToParts(m):N.format(m)}function re(...e){const[t,n,a,r]=e;let o={},s={};if(!l(t))throw Error(X.INVALID_ARGUMENT);const i=t;return p(n)?o.key=n:E(n)&&(o=n),p(a)?o.locale=a:E(a)&&(s=a),E(r)&&(s=r),[o.key||"",i,o,s]}function le(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const oe="9.2.0-beta.20";let se=k;const ie=()=>se++,ce={UNEXPECTED_RETURN_TYPE:se,INVALID_ARGUMENT:ie(),MUST_BE_CALL_SETUP_TOP:ie(),NOT_INSLALLED:ie(),NOT_AVAILABLE_IN_LEGACY_MODE:ie(),REQUIRED_VALUE:ie(),INVALID_VALUE:ie(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ie(),NOT_INSLALLED_WITH_PROVIDE:ie(),UNEXPECTED_ERROR:ie(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ie(),BRIDGE_SUPPORT_VUE_2_ONLY:ie(),__EXTEND_POINT__:ie()},ue=a("__setPluralRules"),me=a("__legacyVueI18n"),fe=a("__injectWithOption"),_e="__VUE_I18N_BRIDGE__";function ge(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function pe(e){if(!d(e))return e;for(const t in e)if(f(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],d(r[n[a]])&&pe(r[n[a]])}else d(e[t])&&pe(e[t]);return e}function be(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=E(n)?n:_(a)?{}:{[e]:{}};if(_(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},he(n,o[t])):he(n,o)}else p(e)&&he(JSON.parse(e),o)})),null==r&&l)for(const e in o)f(o,e)&&pe(o[e]);return o}const de=e=>!d(e)||_(e);function he(e,t){if(de(e)||de(t))throw Error(ce.INVALID_VALUE);for(const n in e)f(e,n)&&(de(e[n])||de(t[n])?t[n]=e[n]:he(e[n],t[n]))}let ve=0;function Ee(e){return(n,a,r,l)=>e(a,r,t.getCurrentInstance()||void 0,l)}function ke(e={},n){const{__root:a}=e,r=void 0===a;let s=!b(e.inheritLocale)||e.inheritLocale;const i=t.ref(a&&s?a.locale.value:p(e.locale)?e.locale:S),u=t.ref(a&&s?a.fallbackLocale.value:p(e.fallbackLocale)||_(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),m=t.ref(be(i.value,e)),f=t.ref(E(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),h=t.ref(E(e.numberFormats)?e.numberFormats:{[i.value]:{}});let v=a?a.missingWarn:!b(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,k=a?a.fallbackWarn:!b(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,I=a?a.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,L=!!e.fallbackFormat,N=g(e.missing)?e.missing:null,T=g(e.missing)?Ee(e.missing):null,R=g(e.postTranslation)?e.postTranslation:null,F=!b(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const W=a?a.modifiers:E(e.modifiers)?e.modifiers:{};let w,A,O=e.pluralRules||a&&a.pluralRules;{ge(n);const e={locale:i.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:f.value,numberFormats:h.value,modifiers:W,missing:N,fallbackRoot:I,postTranslation:R,pluralizationRules:O,escapeParameterHtml:y,sync:s,silentFallbackWarn:b(k)?!k:k,silentTranslationWarn:b(v)?!v:v,formatFallbackMessages:b(L)?!L:L,warnHtmlInMessage:b(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:_e};w=new n(e)}A=function(){const t={version:oe,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:W,pluralRules:O,missing:null===T?void 0:T,missingWarn:v,fallbackWarn:k,fallbackFormat:L,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:F,escapeParameter:y,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=f.value,t.numberFormats=h.value,t.__datetimeFormatters=E(A)?A.__datetimeFormatters:void 0,t.__numberFormatters=E(A)?A.__numberFormatters:void 0,B(t)}(),x(A,i.value,u.value);const D=t.computed({get:()=>i.value,set:e=>{i.value=e,w&&!r&&(w.locale=e),A.locale=i.value}}),M=t.computed({get:()=>u.value,set:e=>{u.value=e,w&&!r&&(w.fallbackLocale=e),A.fallbackLocale=u.value,x(A,i.value,e)}}),$=t.computed((()=>m.value)),P=t.computed((()=>f.value)),U=t.computed((()=>h.value));function V(e,t,n,r,o,s){let c;if(i.value,u.value,m.value,f.value,h.value,c=e(A),l(c)&&-1===c){const[e,n]=t();return a&&I?r(a):o(e)}if(s(c))return c;throw Error(ce.UNEXPECTED_RETURN_TYPE)}function j(...e){return V((t=>Reflect.apply(q,null,[t,...e])),(()=>Z(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>p(e)))}function G(e){return m.value[e]||{}}ve++,a&&(t.watch(a.locale,(e=>{s&&(i.value=e,w&&!r&&(w.locale=e),A.locale=e,x(A,i.value,u.value))})),t.watch(a.fallbackLocale,(e=>{s&&(u.value=e,w&&!r&&(w.fallbackLocale=e),A.fallbackLocale=e,x(A,i.value,u.value))})));const H={id:ve,locale:D,fallbackLocale:M,get inheritLocale(){return s},set inheritLocale(e){s=e,w&&(w._sync=e),e&&a&&(i.value=a.locale.value,u.value=a.fallbackLocale.value,w&&(w.locale=a.locale.value,w.fallbackLocale=a.fallbackLocale.value),x(A,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return W},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return v},set missingWarn(e){v=e,A.missingWarn=v},get fallbackWarn(){return k},set fallbackWarn(e){k=e,A.fallbackWarn=k},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return L},set fallbackFormat(e){L=e,A.fallbackFormat=L},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,A.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,A.escapeParameter=e},t:j,getLocaleMessage:G,setLocaleMessage:function(e,t){m.value[e]=t,w&&w.setLocaleMessage(e,t),A.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},w&&w.mergeLocaleMessage(e,t),he(t,m.value[e]),A.messages=m.value},getPostTranslationHandler:function(){return g(R)?R:null},setPostTranslationHandler:function(e){R=e,A.postTranslation=e},getMissingHandler:function(){return N},setMissingHandler:function(e){null!==e&&(T=Ee(e)),N=e,A.missing=T},[ue]:function(e){O=e,A.pluralRules=O}};return H.datetimeFormats=P,H.numberFormats=U,H.rt=function(...e){const[t,n,a]=e;if(a&&!d(a))throw Error(ce.INVALID_ARGUMENT);return j(t,n,c({resolvedMessage:!0},a||{}))},H.te=function(e,t){const n=G(p(t)?t:i.value);return null!==A.messageResolver(n,e)},H.tm=function(e){const t=function(e){let t=null;const n=C(A,u.value,i.value);for(let a=0;a<n.length;a++){const r=m.value[n[a]]||{},l=A.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},H.d=function(...e){return V((t=>Reflect.apply(ee,null,[t,...e])),(()=>te(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>p(e)))},H.n=function(...e){return V((t=>Reflect.apply(ae,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>p(e)))},H.getDateTimeFormat=function(e){return f.value[e]||{}},H.setDateTimeFormat=function(e,t){f.value[e]=t,w&&w.setDateTimeFormat(e,t),A.datetimeFormats=f.value,ne(A,e,t)},H.mergeDateTimeFormat=function(e,t){f.value[e]=c(f.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),A.datetimeFormats=f.value,ne(A,e,t)},H.getNumberFormat=function(e){return h.value[e]||{}},H.setNumberFormat=function(e,t){h.value[e]=t,w&&w.setNumberFormat(e,t),A.numberFormats=h.value,le(A,e,t)},H.mergeNumberFormat=function(e,t){h.value[e]=c(h.value[e]||{},t),w&&w.mergeNumberFormat(e,t),A.numberFormats=h.value,le(A,e,t)},H[fe]=e.__injectWithOption,H[me]=w,H}let Ie=null,Le=null;const Ne=a("global-vue-i18n");return V=function(e,t){if(!d(e))return null;let n=R.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,o,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=T(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=N(n),i=I[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&R.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;r=e,l++}return r},j=C,e.I18nInjectionKey=Ne,e.VERSION=oe,e.castToVueI18n=e=>{if(!(_e in e))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(Le)return Le;Ie=t;const n=!b(e.legacy)||e.legacy,r=!b(e.globalInjection)||e.globalInjection,l=new Map,o=function(e,t,n){if(!ge(n))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return ke(e,n)}(e,0,t);a("");{const e=o[me];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(ce.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&r&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,o),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>he(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(E(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>he(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&E(a)&&he(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||E(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Ie))}});const t={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Le=e,e}},e.useI18n=function(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(ce.MUST_BE_CALL_SETUP_TOP);if(null==Ie||null==Le)throw Error(ce.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(ce.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Le),!n)throw Error(ce.NOT_INSLALLED);return n}}(n),r=function(e){return e.global}(a),l=function(e){return e.proxy.$options}(n),o=function(e,t){return s(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===o)return function(e,t,n){let a=d(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=be(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])}));if(d(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(d(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(r,e,l),r;if("parent"===o){let t=function(e,t,n=!1){let a=null;const r=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[fe]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}if("legacy"===a.mode)throw Error(ce.NOT_AVAILABLE_IN_LEGACY_MODE);const i=a;let u=i.__getInstance(n);if(null==u){const a=c({},e);"__i18n"in l&&(a.__i18n=l.__i18n),r&&(a.__root=r),u=ke(a,Ie),function(e,n,a){{const r=n.proxy;if(null==r)throw Error(ce.UNEXPECTED_ERROR);const l=a[me];if(l===e)throw Error(ce.UNEXPECTED_ERROR);r._i18n=l,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let o=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),o=!0}),n),t.onUnmounted((()=>{o&&(r._i18n.unsubscribeDataChanging(r),o=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),n)}}(i,n,u),i.__setInstance(n,u)}return u},Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>n?Symbol(e):e,r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===v(e),s=e=>E(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function f(e,t){return m.call(e,t)}const _=Array.isArray,g=e=>"function"==typeof e,p=e=>"string"==typeof e,b=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,v=e=>h.call(e),E=e=>"[object Object]"===v(e),k=15,I=[];I[0]={w:[0],i:[3,0],"[":[4],o:[7]},I[1]={w:[1],".":[2],"[":[4],o:[7]},I[2]={w:[2],i:[3,0],0:[3,0]},I[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},I[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},I[5]={"'":[4,0],o:8,l:[5,0]},I[6]={'"':[4,0],o:8,l:[6,0]};const L=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function N(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function T(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,L.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}const R=new Map;function F(e,t){return d(e)?e[t]:null}const y=e=>e,W=e=>"",w=e=>0===e.length?"":e.join(""),A=e=>null==e?"":_(e)||E(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function O(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function D(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),a=d(e.pluralRules)&&p(t)&&g(e.pluralRules[t])?e.pluralRules[t]:O,r=d(e.pluralRules)&&p(t)&&g(e.pluralRules[t])?O:void 0,o=e.list||[],s=e.named||{};l(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t){const n=g(e.messages)?e.messages(t):!!d(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):W)}const c=E(e.processor)&&g(e.processor.normalize)?e.processor.normalize:w,u=E(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:A,m={list:e=>o[e],named:e=>s[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=i(t)(m);return p(n)?(r=n,e.modifiers?e.modifiers[r]:y)(a):a;var r},message:i,type:E(e.processor)&&p(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function M(e,t,n){return[...new Set([n,..._(t)?t:d(t)?Object.keys(t):p(t)?[t]:[n]])]}function C(e,t,n){const a=p(n)?n:S,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;_(e);)e=$(l,e,t);const o=_(t)||!E(t)?t:t.default?t.default:null;e=p(o)?[o]:o,_(e)&&$(l,e,!1),r.__localeChainCache.set(a,l)}return l}function $(e,t,n){let a=!0;for(let r=0;r<t.length&&b(a);r++){const l=t[r];p(l)&&(a=P(e,t[r],n))}return a}function P(e,t,n){let a;const r=t.split("-");do{a=U(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function U(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(_(n)||E(n))&&n[r]&&(a=n[r])}return a}const S="en-US";let V,j;let G=0;function B(e={}){const t=p(e.version)?e.version:"9.2.0-beta.21",n=p(e.locale)?e.locale:S,a=_(e.fallbackLocale)||E(e.fallbackLocale)||p(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=E(e.messages)?e.messages:{[n]:{}},l=E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=E(e.numberFormats)?e.numberFormats:{[n]:{}},u=c({},e.modifiers||{},{upper:e=>p(e)?e.toUpperCase():e,lower:e=>p(e)?e.toLowerCase():e,capitalize:e=>p(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),m=e.pluralRules||{},f=g(e.missing)?e.missing:null,h=!b(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,v=!b(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,I=!!e.unresolving,L=g(e.postTranslation)?e.postTranslation:null,N=E(e.processor)?e.processor:null,T=!b(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,y=g(e.messageCompiler)?e.messageCompiler:undefined,W=g(e.messageResolver)?e.messageResolver:V||F,w=g(e.localeFallbacker)?e.localeFallbacker:j||M,A=g(e.onWarn)?e.onWarn:i,O=e,D=d(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,C=d(O.__numberFormatters)?O.__numberFormatters:new Map,$=d(O.__meta)?O.__meta:{};G++;const P={version:t,cid:G,locale:n,fallbackLocale:a,messages:r,modifiers:u,pluralRules:m,missing:f,missingWarn:h,fallbackWarn:v,fallbackFormat:k,unresolving:I,postTranslation:L,processor:N,warnHtmlMessage:T,escapeParameter:R,messageCompiler:y,messageResolver:W,localeFallbacker:w,onWarn:A,__meta:$};return P.datetimeFormats=l,P.numberFormats=s,P.__datetimeFormatters=D,P.__numberFormatters=C,P}function H(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return p(a)?a:t}return t}function x(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Y=k;const J=()=>Y++,X={INVALID_ARGUMENT:Y,INVALID_DATE_ARGUMENT:J(),INVALID_ISO_DATE_ARGUMENT:J(),__EXTEND_POINT__:J()},z=()=>"",K=e=>g(e);function q(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:o,fallbackLocale:s,messages:i}=e,[c,m]=Z(...t),f=(b(m.missingWarn)?m.missingWarn:e.missingWarn,b(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,b(m.escapeParameter)?m.escapeParameter:e.escapeParameter),h=!!m.resolvedMessage,v=p(m.default)||b(m.default)?b(m.default)?c:m.default:n?o?c:()=>c:"",E=n||""!==v,k=p(m.locale)?m.locale:e.locale;f&&function(e){_(e.list)?e.list=e.list.map((e=>p(e)?u(e):e)):d(e.named)&&Object.keys(e.named).forEach((t=>{p(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(m);let[I,L,N]=h?[c,k,i[k]||{}]:function(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const b="translate";for(let n=0;n<u.length&&(m=u[n],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!p(_)&&!g(_));n++){const n=H(e,t,m,0,b);n!==t&&(_=n)}return[_,m,f]}(e,c,k,s),T=I,R=c;if(h||p(T)||K(T)||E&&(T=v,R=T),!(h||(p(T)||K(T))&&p(L)))return r?-1:c;let F=!1;const y=K(T)?T:Q(e,c,L,T,R,(()=>{F=!0}));if(F)return T;const W=function(e,t,n,a){const{modifiers:r,pluralRules:o,messageResolver:s}=e,i=a=>{const r=s(n,a);if(p(r)){let n=!1;const l=Q(e,a,t,r,a,(()=>{n=!0}));return n?z:l}return K(r)?r:z},c={locale:t,modifiers:r,pluralRules:o,messages:i};e.processor&&(c.processor=e.processor);a.list&&(c.list=a.list);a.named&&(c.named=a.named);l(a.plural)&&(c.pluralIndex=a.plural);return c}(e,L,N,m),w=function(e,t,n){return t(n)}(0,y,D(W));return a?a(w):w}function Q(e,t,n,a,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(K(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const c=s(a,function(e,t,n,a,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>r({l:e,k:t,s:n}))(t,n,e)}}(0,n,l,0,i,o));return c.locale=n,c.key=t,c.source=a,c}function Z(...e){const[t,n,a]=e,r={};if(!p(t)&&!l(t)&&!K(t))throw Error(X.INVALID_ARGUMENT);const o=l(t)?String(t):(K(t),t);return l(n)?r.plural=n:p(n)?r.default=n:E(n)&&!s(n)?r.named=n:_(n)&&(r.list=n),l(a)?r.plural=a:p(a)?r.default=a:E(a)&&c(r,a),[o,r]}function ee(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:i}=e,[u,m,f,_]=te(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,d=p(f.locale)?f.locale:e.locale,h=o(e,r,d);if(!p(u)||""===u)return new Intl.DateTimeFormat(d).format(m);let v,k={},I=null;for(let t=0;t<h.length&&(v=h[t],k=n[v]||{},I=k[u],!E(I));t++)H(e,u,v,0,"datetime format");if(!E(I)||!p(v))return a?-1:u;let L=`${v}__${u}`;s(_)||(L=`${L}__${JSON.stringify(_)}`);let N=i.get(L);return N||(N=new Intl.DateTimeFormat(v,c({},I,_)),i.set(L,N)),g?N.formatToParts(m):N.format(m)}function te(...e){const[t,n,a,r]=e;let o,s={},i={};if(p(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(X.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();o=new Date(n);try{o.toISOString()}catch(e){throw Error(X.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===v(t)){if(isNaN(t.getTime()))throw Error(X.INVALID_DATE_ARGUMENT);o=t}else{if(!l(t))throw Error(X.INVALID_ARGUMENT);o=t}return p(n)?s.key=n:E(n)&&(s=n),p(a)?s.locale=a:E(a)&&(i=a),E(r)&&(i=r),[s.key||"",o,s,i]}function ne(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function ae(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:i}=e,[u,m,f,_]=re(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,d=p(f.locale)?f.locale:e.locale,h=o(e,r,d);if(!p(u)||""===u)return new Intl.NumberFormat(d).format(m);let v,k={},I=null;for(let t=0;t<h.length&&(v=h[t],k=n[v]||{},I=k[u],!E(I));t++)H(e,u,v,0,"number format");if(!E(I)||!p(v))return a?-1:u;let L=`${v}__${u}`;s(_)||(L=`${L}__${JSON.stringify(_)}`);let N=i.get(L);return N||(N=new Intl.NumberFormat(v,c({},I,_)),i.set(L,N)),g?N.formatToParts(m):N.format(m)}function re(...e){const[t,n,a,r]=e;let o={},s={};if(!l(t))throw Error(X.INVALID_ARGUMENT);const i=t;return p(n)?o.key=n:E(n)&&(o=n),p(a)?o.locale=a:E(a)&&(s=a),E(r)&&(s=r),[o.key||"",i,o,s]}function le(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const oe="9.2.0-beta.21";let se=k;const ie=()=>se++,ce={UNEXPECTED_RETURN_TYPE:se,INVALID_ARGUMENT:ie(),MUST_BE_CALL_SETUP_TOP:ie(),NOT_INSLALLED:ie(),NOT_AVAILABLE_IN_LEGACY_MODE:ie(),REQUIRED_VALUE:ie(),INVALID_VALUE:ie(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ie(),NOT_INSLALLED_WITH_PROVIDE:ie(),UNEXPECTED_ERROR:ie(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ie(),BRIDGE_SUPPORT_VUE_2_ONLY:ie(),__EXTEND_POINT__:ie()},ue=a("__setPluralRules"),me=a("__legacyVueI18n"),fe=a("__injectWithOption"),_e="__VUE_I18N_BRIDGE__";function ge(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function pe(e){if(!d(e))return e;for(const t in e)if(f(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],d(r[n[a]])&&pe(r[n[a]])}else d(e[t])&&pe(e[t]);return e}function be(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=E(n)?n:_(a)?{}:{[e]:{}};if(_(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},he(n,o[t])):he(n,o)}else p(e)&&he(JSON.parse(e),o)})),null==r&&l)for(const e in o)f(o,e)&&pe(o[e]);return o}const de=e=>!d(e)||_(e);function he(e,t){if(de(e)||de(t))throw Error(ce.INVALID_VALUE);for(const n in e)f(e,n)&&(de(e[n])||de(t[n])?t[n]=e[n]:he(e[n],t[n]))}let ve=0;function Ee(e){return(n,a,r,l)=>e(a,r,t.getCurrentInstance()||void 0,l)}function ke(e={},n){const{__root:a}=e,r=void 0===a;let s=!b(e.inheritLocale)||e.inheritLocale;const i=t.ref(a&&s?a.locale.value:p(e.locale)?e.locale:S),u=t.ref(a&&s?a.fallbackLocale.value:p(e.fallbackLocale)||_(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),m=t.ref(be(i.value,e)),f=t.ref(E(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),h=t.ref(E(e.numberFormats)?e.numberFormats:{[i.value]:{}});let v=a?a.missingWarn:!b(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,k=a?a.fallbackWarn:!b(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,I=a?a.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,L=!!e.fallbackFormat,N=g(e.missing)?e.missing:null,T=g(e.missing)?Ee(e.missing):null,R=g(e.postTranslation)?e.postTranslation:null,F=!b(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const W=a?a.modifiers:E(e.modifiers)?e.modifiers:{};let w,A,O=e.pluralRules||a&&a.pluralRules;{ge(n);const e={locale:i.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:f.value,numberFormats:h.value,modifiers:W,missing:N,fallbackRoot:I,postTranslation:R,pluralizationRules:O,escapeParameterHtml:y,sync:s,silentFallbackWarn:b(k)?!k:k,silentTranslationWarn:b(v)?!v:v,formatFallbackMessages:b(L)?!L:L,warnHtmlInMessage:b(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:_e};w=new n(e)}A=function(){const t={version:oe,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:W,pluralRules:O,missing:null===T?void 0:T,missingWarn:v,fallbackWarn:k,fallbackFormat:L,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:F,escapeParameter:y,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=f.value,t.numberFormats=h.value,t.__datetimeFormatters=E(A)?A.__datetimeFormatters:void 0,t.__numberFormatters=E(A)?A.__numberFormatters:void 0,B(t)}(),x(A,i.value,u.value);const D=t.computed({get:()=>i.value,set:e=>{i.value=e,w&&!r&&(w.locale=e),A.locale=i.value}}),M=t.computed({get:()=>u.value,set:e=>{u.value=e,w&&!r&&(w.fallbackLocale=e),A.fallbackLocale=u.value,x(A,i.value,e)}}),$=t.computed((()=>m.value)),P=t.computed((()=>f.value)),U=t.computed((()=>h.value));function V(e,t,n,r,o,s){let c;if(i.value,u.value,m.value,f.value,h.value,c=e(A),l(c)&&-1===c){const[e,n]=t();return a&&I?r(a):o(e)}if(s(c))return c;throw Error(ce.UNEXPECTED_RETURN_TYPE)}function j(...e){return V((t=>Reflect.apply(q,null,[t,...e])),(()=>Z(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>p(e)))}function G(e){return m.value[e]||{}}ve++,a&&(t.watch(a.locale,(e=>{s&&(i.value=e,w&&!r&&(w.locale=e),A.locale=e,x(A,i.value,u.value))})),t.watch(a.fallbackLocale,(e=>{s&&(u.value=e,w&&!r&&(w.fallbackLocale=e),A.fallbackLocale=e,x(A,i.value,u.value))})));const H={id:ve,locale:D,fallbackLocale:M,get inheritLocale(){return s},set inheritLocale(e){s=e,w&&(w._sync=e),e&&a&&(i.value=a.locale.value,u.value=a.fallbackLocale.value,w&&(w.locale=a.locale.value,w.fallbackLocale=a.fallbackLocale.value),x(A,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return W},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return v},set missingWarn(e){v=e,A.missingWarn=v},get fallbackWarn(){return k},set fallbackWarn(e){k=e,A.fallbackWarn=k},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return L},set fallbackFormat(e){L=e,A.fallbackFormat=L},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,A.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,A.escapeParameter=e},t:j,getLocaleMessage:G,setLocaleMessage:function(e,t){m.value[e]=t,w&&w.setLocaleMessage(e,t),A.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},w&&w.mergeLocaleMessage(e,t),he(t,m.value[e]),A.messages=m.value},getPostTranslationHandler:function(){return g(R)?R:null},setPostTranslationHandler:function(e){R=e,A.postTranslation=e},getMissingHandler:function(){return N},setMissingHandler:function(e){null!==e&&(T=Ee(e)),N=e,A.missing=T},[ue]:function(e){O=e,A.pluralRules=O}};return H.datetimeFormats=P,H.numberFormats=U,H.rt=function(...e){const[t,n,a]=e;if(a&&!d(a))throw Error(ce.INVALID_ARGUMENT);return j(t,n,c({resolvedMessage:!0},a||{}))},H.te=function(e,t){const n=G(p(t)?t:i.value);return null!==A.messageResolver(n,e)},H.tm=function(e){const t=function(e){let t=null;const n=C(A,u.value,i.value);for(let a=0;a<n.length;a++){const r=m.value[n[a]]||{},l=A.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},H.d=function(...e){return V((t=>Reflect.apply(ee,null,[t,...e])),(()=>te(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>p(e)))},H.n=function(...e){return V((t=>Reflect.apply(ae,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>p(e)))},H.getDateTimeFormat=function(e){return f.value[e]||{}},H.setDateTimeFormat=function(e,t){f.value[e]=t,w&&w.setDateTimeFormat(e,t),A.datetimeFormats=f.value,ne(A,e,t)},H.mergeDateTimeFormat=function(e,t){f.value[e]=c(f.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),A.datetimeFormats=f.value,ne(A,e,t)},H.getNumberFormat=function(e){return h.value[e]||{}},H.setNumberFormat=function(e,t){h.value[e]=t,w&&w.setNumberFormat(e,t),A.numberFormats=h.value,le(A,e,t)},H.mergeNumberFormat=function(e,t){h.value[e]=c(h.value[e]||{},t),w&&w.mergeNumberFormat(e,t),A.numberFormats=h.value,le(A,e,t)},H[fe]=e.__injectWithOption,H[me]=w,H}let Ie=null,Le=null;const Ne=a("global-vue-i18n");return V=function(e,t){if(!d(e))return null;let n=R.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,o,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=T(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=N(n),i=I[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&R.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;r=e,l++}return r},j=C,e.I18nInjectionKey=Ne,e.VERSION=oe,e.castToVueI18n=e=>{if(!(_e in e))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(Le)return Le;Ie=t;const n=!b(e.legacy)||e.legacy,r=!b(e.globalInjection)||e.globalInjection,l=new Map,o=function(e,t,n){if(!ge(n))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return ke(e,n)}(e,0,t);a("");{const e=o[me];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{value:t=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(ce.BRIDGE_SUPPORT_VUE_2_ONLY);!n&&r&&function(e,t,n){t.watchLocale(n),e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])}}(t,e,o),t.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>he(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(E(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>he(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&E(a)&&he(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||E(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Ie))}});const t={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Le=e,e}},e.useI18n=function(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(ce.MUST_BE_CALL_SETUP_TOP);if(null==Ie||null==Le)throw Error(ce.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(ce.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Le),!n)throw Error(ce.NOT_INSLALLED);return n}}(n),r=function(e){return e.global}(a),l=function(e){return e.proxy.$options}(n),o=function(e,t){return s(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===o)return function(e,t,n){let a=d(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=be(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),d(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(d(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(r,e,l),r;if("parent"===o){let t=function(e,t,n=!1){let a=null;const r=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[fe]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}if("legacy"===a.mode)throw Error(ce.NOT_AVAILABLE_IN_LEGACY_MODE);const i=a;let u=i.__getInstance(n);if(null==u){const a=c({},e);"__i18n"in l&&(a.__i18n=l.__i18n),r&&(a.__root=r),u=ke(a,Ie),function(e,n,a){{const r=n.proxy;if(null==r)throw Error(ce.UNEXPECTED_ERROR);const l=a[me];if(l===e)throw Error(ce.UNEXPECTED_ERROR);r._i18n=l,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let o=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),o=!0}),n),t.onUnmounted((()=>{o&&(r._i18n.unsubscribeDataChanging(r),o=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),n)}}(i,n,u),i.__setInstance(n,u)}return u},Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
{
"name": "vue-i18n-bridge",
"version": "9.2.0-beta.20",
"version": "9.2.0-beta.21",
"description": "A bridge for Vue I18n Legacy",

@@ -40,5 +40,5 @@ "keywords": [

"dependencies": {
"@intlify/core-base": "9.2.0-beta.20",
"@intlify/shared": "9.2.0-beta.20",
"@intlify/vue-devtools": "9.2.0-beta.20",
"@intlify/core-base": "9.2.0-beta.21",
"@intlify/shared": "9.2.0-beta.21",
"@intlify/vue-devtools": "9.2.0-beta.21",
"@vue/composition-api": "^1.2.1",

@@ -48,3 +48,3 @@ "@vue/devtools-api": "^6.0.0-beta.13"

"devDependencies": {
"@intlify/devtools-if": "9.2.0-beta.20"
"@intlify/devtools-if": "9.2.0-beta.21"
},

@@ -51,0 +51,0 @@ "peerDependencies": {

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

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