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.14.1 to 9.14.2

4

dist/vue-i18n-bridge.global.prod.js
/*!
* vue-i18n-bridge v9.14.1
* vue-i18n-bridge v9.14.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===k(e),c=e=>"[object RegExp]"===k(e),i=e=>L(e)&&0===Object.keys(e).length,u=Object.assign;function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function _(e,t){return m.call(e,t)}const p=Array.isArray,d=e=>"function"==typeof e,g=e=>"string"==typeof e,E=e=>"boolean"==typeof e,v=e=>null!==e&&"object"==typeof e,b=e=>v(e)&&d(e.then)&&d(e.catch),h=Object.prototype.toString,k=e=>h.call(e),L=e=>{if(!v(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function N(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function y(e){let t=e;return()=>++t}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const I=e=>!v(e)||p(e);function C(e,t){if(I(e)||I(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{v(e[r])&&!v(t[r])&&(t[r]=Array.isArray(e[r])?[]:{}),I(t[r])||I(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}}function O(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const A={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2};const P={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function S(e){throw e}const D=" ",R="\r",F="\n",M=String.fromCharCode(8232),w=String.fromCharCode(8233);function U(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>t[e]===R&&t[e+1]===F,s=e=>t[e]===w,c=e=>t[e]===M,i=e=>l(e)||(e=>t[e]===F)(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?F:t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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 l(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,x="'";function $(e,t={}){const n=!1!==t.location,r=U(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},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,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=O(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):(P.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===D||e.currentPeek()===F;)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 E(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 v(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(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===D||r===F):o===D?(e.peek(),n(!0,D,a)):o!==F||(e.peek(),n(!0,F,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function h(e,t){const n=e.currentChar();return n===W?W:t(n)?(e.next(),n):null}function k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function L(e){return h(e,k)}function N(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function y(e){return h(e,N)}function T(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return h(e,T)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function A(e){return h(e,C)}function S(e){let t="",n="";for(;t=I(e);)n+=t;return n}function R(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(n===D||n===F)if(b(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function M(e){return e!==x&&e!==F}function w(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return $(e,t,4);case"U":return $(e,t,6);default:return P.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function $(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=A(e);if(!t){P.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function V(e){return"{"!==e&&"}"!==e&&e!==D&&e!==F}function H(e){d(e);const t=_(e,"|");return d(e),t}function j(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(P.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(P.EMPTY_PLACEHOLDER,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&&(P.UNTERMINATED_CLOSING_BRACE,o()),n=X(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,a=!0,l=!0;if(v(e))return t.braceNest>0&&(P.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return P.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,G(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=y(e);)n+=t;return e.currentChar()===W&&(P.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=E(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${S(e)}`):t+=S(e),e.currentChar()===W&&(P.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===x;return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),_(e,"'");let t="",n="";for(;t=h(e,M);)n+="\\"===t?w(e):t;const r=e.currentChar();return r===F||r===W?(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===F&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){d(e);let t="",n="";for(;t=h(e,V);)n+=t;return n}(e)),P.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(e),n;break}}return n}function X(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==F&&a!==D||(P.INVALID_LINKED_FORMAT,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 v(e)?(r=f(t,1,H(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),X(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===D||!t)&&(t===F?(e.peek(),r()):b(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?j(e,t)||r:f(t,11,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===D?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(8===n&&(P.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,G(e,t))}}function G(e,t){let n={type:14};if(t.braceNest>0)return j(e,t)||m(t);if(t.inLinked)return X(e,t)||m(t);switch(e.currentChar()){case"{":return j(e,t)||m(t);case"}":return P.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return X(e,t)||m(t);default:{if(v(e))return n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=p(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,R(e)):f(t,4,function(e){d(e);const t=e.currentChar();return"%"!==t&&(P.EXPECTED_TOKEN,o()),e.next(),"%"}(e));if(b(e))return f(t,0,R(e));break}}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===W?f(c,14):G(r,c)},currentOffset:a,currentPosition:o,context:i}}const V=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function H(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 j(e={}){const t=!1!==e.location,{onError:n,onWarn:r}=e;function a(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function o(e,n,r,a){a&&(e.type=a),t&&(e.end=n,e.loc&&(e.loc.end=r))}function l(e,t){const n=e.context(),r=a(3,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:l}=n,s=a(5,r,l);return s.index=parseInt(t,10),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function c(e,t,n){const r=e.context(),{lastOffset:l,lastStartLoc:s}=r,c=a(4,l,s);return c.key=t,!0===n&&(c.modulo=!0),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function i(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:l}=n,s=a(9,r,l);return s.value=t.replace(V,H),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function f(e){const t=e.context(),n=a(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:l}=n,s=a(8,r,l);return 12!==t.type?(P.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",o(s,r,l),{nextConsumeToken:t,node:s}):(null==t.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,X(t)),s.value=t.value||"",o(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.key=function(e,t){const n=e.context(),r=a(7,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 5:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.key=c(e,r.value||"");break;case 6:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.key=s(e,r.value||"");break;case 7:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.key=i(e,r.value||"");break;default:{P.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const l=e.context(),s=a(7,l.offset,l.startLoc);return s.value="",o(s,l.offset,l.startLoc),n.key=s,o(n,l.offset,l.startLoc),{nextConsumeToken:r,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function m(e){const t=e.context(),n=a(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let r=null,u=null;do{const a=r||e.nextToken();switch(r=null,a.type){case 0:null==a.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(a)),n.items.push(l(e,a.value||""));break;case 6:null==a.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(a)),n.items.push(s(e,a.value||""));break;case 4:u=!0;break;case 5:null==a.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(a)),n.items.push(c(e,a.value||"",!!u)),u&&(A.USE_MODULO_SYNTAX,t.lastStartLoc,X(a),u=null);break;case 7:null==a.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(a)),n.items.push(i(e,a.value||""));break;case 8:{const t=f(e);n.items.push(t.node),r=t.nextConsumeToken||null;break}}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function _(e){const t=e.context(),{offset:n,startLoc:r}=t,l=m(e);return 14===t.currentType?l:function(e,t,n,r){const l=e.context();let s=0===r.items.length;const c=a(1,t,n);c.cases=[],c.cases.push(r);do{const t=m(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return o(c,e.currentOffset(),e.currentPosition()),c}(e,n,r,l)}return{parse:function(n){const r=$(n,u({},e)),l=r.context(),s=a(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=_(r),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==l.currentType&&(P.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,n[l.offset]),o(s,r.currentOffset(),r.currentPosition()),s}}}function X(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function G(e,t){for(let n=0;n<e.length;n++)Y(e[n],t)}function Y(e,t){switch(e.type){case 1:G(e.cases,t),t.helper("plural");break;case 2:G(e.items,t);break;case 6:Y(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function B(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Y(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function K(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=N(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function z(e){switch(e.t=e.type,e.type){case 0:{const t=e;z(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)z(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)z(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;z(t.key),t.k=t.key,delete t.key,t.modifier&&(z(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function J(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?J(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&&(J(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 o=0;o<a&&(J(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),J(e,t.key),t.modifier?(e.push(", "),J(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}const Q=(e,t={})=>{const n=g(t.mode)?t.mode:"normal",r=g(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){s.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return l&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&i(t)},newline:function(){i(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${N(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),J(c,e),c.deindent(l),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function q(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,l=j(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?K(t):t.cases.forEach((e=>K(e)))}(l),a&&z(l),{ast:l,code:""}):(B(l,n),Q(l,n))}const Z=[];Z[0]={w:[0],i:[3,0],"[":[4],o:[7]},Z[1]={w:[1],".":[2],"[":[4],o:[7]},Z[2]={w:[2],i:[3,0],0:[3,0]},Z[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Z[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Z[5]={"'":[4,0],o:8,l:[5,0]},Z[6]={'"':[4,0],o:8,l:[6,0]};const ee=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function te(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ne(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,ee.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 re=new Map;function ae(e,t){return v(e)?e[t]:null}const oe=e=>e,le=e=>"",se="text",ce=e=>0===e.length?"":N(e),ie=e=>null==e?"":p(e)||L(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function ue(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function fe(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),r=v(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?e.pluralRules[t]:ue,a=v(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?ue: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 c(t){const n=d(e.messages)?e.messages(t):!!v(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):le)}const i=L(e.processor)&&d(e.processor.normalize)?e.processor.normalize:ce,f=L(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:ie,m={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?v(r)?(l=r.modifier||l,o=r.type||o):g(r)&&(l=r||l):2===n.length&&(g(r)&&(l=r||l),g(a)&&(o=a||o));const s=c(t)(m),i="vnode"===o&&p(s)&&l?s[0]:s;return l?(u=l,e.modifiers?e.modifiers[u]:oe)(i,o):i;var u},message:c,type:L(e.processor)&&g(e.processor.type)?e.processor.type:se,interpolate:f,normalize:i,values:u({},o,s)};return m}const me=P.__EXTEND_POINT__,_e=y(me),pe={INVALID_ARGUMENT:me,INVALID_DATE_ARGUMENT:_e(),INVALID_ISO_DATE_ARGUMENT:_e(),NOT_SUPPORT_NON_STRING_MESSAGE:_e(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:_e(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:_e(),NOT_SUPPORT_LOCALE_TYPE:_e(),__EXTEND_POINT__:_e()};function de(e,t){return null!=t.locale?Ee(t.locale):Ee(e.locale)}let ge;function Ee(e){if(g(e))return e;if(d(e)){if(e.resolvedOnce&&null!=ge)return ge;if("Function"===e.constructor.name){const t=e();if(b(t))throw Error(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ge=t}throw Error(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(pe.NOT_SUPPORT_LOCALE_TYPE)}function ve(e,t,n){return[...new Set([n,...p(t)?t:v(t)?Object.keys(t):g(t)?[t]:[n]])]}function be(e,t,n){const r=g(n)?n:Te,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=he(o,e,t);const l=p(t)||!L(t)?t:t.default?t.default:null;e=g(l)?[l]:l,p(e)&&he(o,e,!1),a.__localeChainCache.set(r,o)}return o}function he(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const o=t[a];g(o)&&(r=ke(e,t[a],n))}return r}function ke(e,t,n){let r;const a=t.split("-");do{r=Le(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function Le(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(p(n)||L(n))&&n[a]&&(r=n[a])}return r}const Ne="9.14.1",ye=-1,Te="en-US",Ie="",Ce=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Oe,Ae,Pe;let Se=null;const De=e=>{Se=e},Re=()=>Se;let Fe=0;function Me(e={}){const t=d(e.onWarn)?e.onWarn:T,n=g(e.version)?e.version:Ne,r=g(e.locale)||d(e.locale)?e.locale:Te,a=d(r)?Te:r,o=p(e.fallbackLocale)||L(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=L(e.messages)?e.messages:{[a]:{}},s=L(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},i=L(e.numberFormats)?e.numberFormats:{[a]:{}},f=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&g(e)?e.toUpperCase():"vnode"===t&&v(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&g(e)?e.toLowerCase():"vnode"===t&&v(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&g(e)?Ce(e):"vnode"===t&&v(e)&&"__v_isVNode"in e?Ce(e.children):e}),m=e.pluralRules||{},_=d(e.missing)?e.missing:null,b=!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,h=!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,N=!!e.unresolving,y=d(e.postTranslation)?e.postTranslation:null,I=L(e.processor)?e.processor:null,C=!E(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=d(e.messageCompiler)?e.messageCompiler:Oe,P=d(e.messageResolver)?e.messageResolver:Ae||ae,S=d(e.localeFallbacker)?e.localeFallbacker:Pe||ve,D=v(e.fallbackContext)?e.fallbackContext:void 0,R=e,F=v(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,M=v(R.__numberFormatters)?R.__numberFormatters:new Map,w=v(R.__meta)?R.__meta:{};Fe++;const U={version:n,cid:Fe,locale:r,fallbackLocale:o,messages:l,modifiers:f,pluralRules:m,missing:_,missingWarn:b,fallbackWarn:h,fallbackFormat:k,unresolving:N,postTranslation:y,processor:I,warnHtmlMessage:C,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:S,fallbackContext:D,onWarn:t,__meta:w};return U.datetimeFormats=s,U.numberFormats=i,U.__datetimeFormatters=F,U.__numberFormatters=M,U}function we(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return g(r)?r:t}return t}function Ue(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function We(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let o=n+1;o<t.length;o++)if(r=e,a=t[o],r!==a&&r.split("-")[0]===a.split("-")[0])return!0;var r,a;return!1}function xe(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,$e(e,n)]),[]))}return $e(e,n)}(t,e)}function $e(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,Ve(e,n)]),[]);return e.normalize(n)}}function Ve(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,r=n.m||n.modifier;return e.linked(Ve(e,n.k||n.key),r?Ve(e,r):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const He=e=>e;let je=Object.create(null);const Xe=e=>v(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const Ge=()=>"",Ye=e=>d(e);function Be(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[i,u]=Je(...t),m=E(u.missingWarn)?u.missingWarn:e.missingWarn,_=E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=E(u.escapeParameter)?u.escapeParameter:e.escapeParameter,b=!!u.resolvedMessage,h=g(u.default)||E(u.default)?E(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:"",k=n||""!==h,L=de(e,u);d&&function(e){p(e.list)?e.list=e.list.map((e=>g(e)?f(e):e)):v(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[N,y,T]=b?[i,L,c[L]||{}]:Ke(e,i,L,s,_,m),I=N,C=i;if(b||g(I)||Xe(I)||Ye(I)||k&&(I=h,C=I),!(b||(g(I)||Xe(I)||Ye(I))&&g(y)))return a?ye:i;let O=!1;const A=Ye(I)?I:ze(e,i,y,I,C,(()=>{O=!0}));if(O)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=Ke(f,r,t,c,i,u);a=s(e,r)}if(g(a)||Xe(a)){let n=!1;const o=ze(e,r,t,a,r,(()=>{n=!0}));return n?Ge:o}return Ye(a)?a:Ge},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);l(r.plural)&&(_.pluralIndex=r.plural);return _}(e,y,T,u),S=function(e,t,n){const r=t(n);return r}(0,A,fe(P));return r?r(S,i):S}function Ke(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},_=null;for(let p=0;p<u.length&&(f=u[p],m=l[f]||{},null===(_=c(m,t))&&(_=m[t]),!(g(_)||Xe(_)||Ye(_)));p++)if(!We(f,u)){const n=we(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function ze(e,t,n,r,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Ye(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const i=s(r,function(e,t,n,r,o,l){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,l));return i.locale=n,i.key=t,i.source=r,i}function Je(...e){const[t,n,r]=e,a={};if(!(g(t)||l(t)||Ye(t)||Xe(t)))throw Error(pe.INVALID_ARGUMENT);const o=l(t)?String(t):(Ye(t),t);return l(n)?a.plural=n:g(n)?a.default=n:L(n)&&!i(n)?a.named=n:p(n)&&(a.list=n),l(r)?a.plural=r:g(r)?a.default=r:L(r)&&u(a,r),[o,a]}function Qe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[c,f,m,_]=Ze(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=de(e,m),v=l(e,a,d);if(!g(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let b,h={},k=null;for(let i=0;i<v.length&&(b=v[i],h=n[b]||{},k=h[c],!L(k));i++)we(e,c,b,0,"datetime format");if(!L(k)||!g(b))return r?ye:c;let N=`${b}__${c}`;i(_)||(N=`${N}__${JSON.stringify(_)}`);let y=s.get(N);return y||(y=new Intl.DateTimeFormat(b,u({},k,_)),s.set(N,y)),p?y.formatToParts(f):y.format(f)}const qe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ze(...e){const[t,n,r,a]=e,o={};let c,i={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(pe.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(n);try{c.toISOString()}catch(u){throw Error(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(pe.INVALID_DATE_ARGUMENT);c=t}else{if(!l(t))throw Error(pe.INVALID_ARGUMENT);c=t}return g(n)?o.key=n:L(n)&&Object.keys(n).forEach((e=>{qe.includes(e)?i[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:L(r)&&(i=r),L(a)&&(i=a),[o.key||"",c,o,i]}function et(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function tt(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[c,f,m,_]=rt(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=de(e,m),v=l(e,a,d);if(!g(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let b,h={},k=null;for(let i=0;i<v.length&&(b=v[i],h=n[b]||{},k=h[c],!L(k));i++)we(e,c,b,0,"number format");if(!L(k)||!g(b))return r?ye:c;let N=`${b}__${c}`;i(_)||(N=`${N}__${JSON.stringify(_)}`);let y=s.get(N);return y||(y=new Intl.NumberFormat(b,u({},k,_)),s.set(N,y)),p?y.formatToParts(f):y.format(f)}const nt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function rt(...e){const[t,n,r,a]=e,o={};let s={};if(!l(t))throw Error(pe.INVALID_ARGUMENT);const c=t;return g(n)?o.key=n:L(n)&&Object.keys(n).forEach((e=>{nt.includes(e)?s[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:L(r)&&(s=r),L(a)&&(s=a),[o.key||"",c,o,s]}function at(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const ot="9.14.1",lt=pe.__EXTEND_POINT__,st=y(lt),ct={UNEXPECTED_RETURN_TYPE:lt,INVALID_ARGUMENT:st(),MUST_BE_CALL_SETUP_TOP:st(),NOT_INSTALLED:st(),NOT_AVAILABLE_IN_LEGACY_MODE:st(),REQUIRED_VALUE:st(),INVALID_VALUE:st(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:st(),NOT_INSTALLED_WITH_PROVIDE:st(),UNEXPECTED_ERROR:st(),NOT_COMPATIBLE_LEGACY_VUE_I18N:st(),BRIDGE_SUPPORT_VUE_2_ONLY:st(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:st(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:st(),__EXTEND_POINT__:st()},it=r("__translateVNode"),ut=r("__datetimeParts"),ft=r("__numberParts"),mt=r("__setPluralRules"),_t=r("__legacyVueI18n"),pt=r("__injectWithOption"),dt=r("__dispose"),gt="__VUE_I18N_BRIDGE__";function Et(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function vt(e){if(!v(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let e=0;e<r;e++){if(n[e]in a||(a[n[e]]={}),!v(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),v(a[n[r]])&&vt(a[n[r]])}else v(e[t])&&vt(e[t]);return e}function bt(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=L(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?(l[t]=l[t]||{},C(n,l[t])):C(n,l)}else g(e)&&C(JSON.parse(e),l)})),null==a&&o)for(const s in l)_(l,s)&&vt(l[s]);return l}function ht(e){return e.proxy.$options}function kt(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const Lt=()=>[],Nt=()=>!1;let yt=0;function Tt(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function It(e={},r){const{__root:a,__injectWithOption:o}=e,s=void 0===a,i=e.flatJson,f=n?t.ref:t.shallowRef,m=!!e.translateExistCompatible;let b=!E(e.inheritLocale)||e.inheritLocale;const h=f(a&&b?a.locale.value:g(e.locale)?e.locale:Te),k=f(a&&b?a.fallbackLocale.value:g(e.fallbackLocale)||p(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:h.value),N=f(bt(h.value,e)),y=f(L(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),T=f(L(e.numberFormats)?e.numberFormats:{[h.value]:{}});let I=a?a.missingWarn:!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,O=a?a.fallbackWarn:!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,A=a?a.fallbackRoot:!E(e.fallbackRoot)||e.fallbackRoot,P=!!e.fallbackFormat,S=d(e.missing)?e.missing:null,D=d(e.missing)?Tt(e.missing):null,R=d(e.postTranslation)?e.postTranslation:null,F=a?a.warnHtmlMessage:!E(e.warnHtmlMessage)||e.warnHtmlMessage,M=!!e.escapeParameter;const w=a?a.modifiers:L(e.modifiers)?e.modifiers:{};let U,W,x=e.pluralRules||a&&a.pluralRules;{Et(r);const e={locale:h.value,fallbackLocale:k.value,messages:N.value,dateTimeFormats:y.value,numberFormats:T.value,modifiers:w,missing:S,fallbackRoot:A,postTranslation:R,pluralizationRules:x,escapeParameterHtml:M,sync:b,silentFallbackWarn:E(O)?!O:O,silentTranslationWarn:E(I)?!I:I,formatFallbackMessages:E(P)?!P:P,warnHtmlInMessage:E(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:gt};U=new r(e)}W=(()=>{s&&De(null);const t={version:ot,locale:h.value,fallbackLocale:k.value,messages:N.value,modifiers:w,pluralRules:x,missing:null===D?void 0:D,missingWarn:I,fallbackWarn:O,fallbackFormat:P,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:F,escapeParameter:M,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=y.value,t.numberFormats=T.value,t.__datetimeFormatters=L(W)?W.__datetimeFormatters:void 0,t.__numberFormatters=L(W)?W.__numberFormatters:void 0;const n=Me(t);return s&&De(n),n})(),Ue(W,h.value,k.value);const $=t.computed({get:()=>h.value,set:e=>{h.value=e,U&&!s&&(U.locale=e),W.locale=h.value}}),V=t.computed({get:()=>k.value,set:e=>{k.value=e,U&&!s&&(U.fallbackLocale=e),W.fallbackLocale=k.value,Ue(W,h.value,e)}}),H=t.computed((()=>N.value)),j=t.computed((()=>y.value)),X=t.computed((()=>T.value));const G=(e,t,n,r,o,c)=>{let i;h.value,k.value,N.value,y.value,T.value;try{0,s||(W.fallbackContext=a?Re():void 0),i=e(W)}finally{s||(W.fallbackContext=void 0)}if("translate exists"!==n&&l(i)&&i===ye||"translate exists"===n&&!i){const[e,n]=t();return a&&A?r(a):o(e)}if(c(i))return i;throw Error(ct.UNEXPECTED_RETURN_TYPE)};function Y(...e){return G((t=>Reflect.apply(Be,null,[t,...e])),(()=>Je(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const B={normalize:function(e){return e.map((e=>g(e)||l(e)||E(e)?kt(String(e)):e))},interpolate:e=>e,type:"vnode"};function K(e){return N.value[e]||{}}yt++,a&&n&&(t.watch(a.locale,(e=>{b&&(h.value=e,U&&!s&&(U.locale=e),W.locale=e,Ue(W,h.value,k.value))})),t.watch(a.fallbackLocale,(e=>{b&&(k.value=e,U&&!s&&(U.fallbackLocale=e),W.fallbackLocale=e,Ue(W,h.value,k.value))})));const z={id:yt,locale:$,fallbackLocale:V,get inheritLocale(){return b},set inheritLocale(e){b=e,U&&(U._sync=e),e&&a&&(h.value=a.locale.value,k.value=a.fallbackLocale.value,U&&(U.locale=a.locale.value,U.fallbackLocale=a.fallbackLocale.value),Ue(W,h.value,k.value))},get availableLocales(){return Object.keys(N.value).sort()},messages:H,get modifiers(){return w},get pluralRules(){return x||{}},get isGlobal(){return s},get missingWarn(){return I},set missingWarn(e){I=e,W.missingWarn=I},get fallbackWarn(){return O},set fallbackWarn(e){O=e,W.fallbackWarn=O},get fallbackRoot(){return A},set fallbackRoot(e){A=e},get fallbackFormat(){return P},set fallbackFormat(e){P=e,W.fallbackFormat=P},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,W.warnHtmlMessage=e},get escapeParameter(){return M},set escapeParameter(e){M=e,W.escapeParameter=e},t:Y,getLocaleMessage:K,setLocaleMessage:function(e,t){if(i){const n={[e]:t};for(const e in n)_(n,e)&&vt(n[e]);t=n[e]}N.value[e]=t,U&&U.setLocaleMessage(e,t),W.messages=N.value},mergeLocaleMessage:function(e,t){N.value[e]=N.value[e]||{},U&&U.mergeLocaleMessage(e,t);const n={[e]:t};if(i)for(const r in n)_(n,r)&&vt(n[r]);C(t=n[e],N.value[e]),W.messages=N.value},getPostTranslationHandler:function(){return d(R)?R:null},setPostTranslationHandler:function(e){R=e,W.postTranslation=e},getMissingHandler:function(){return S},setMissingHandler:function(e){null!==e&&(D=Tt(e)),S=e,W.missing=D},[mt]:function(e){x=e,W.pluralRules=x}};return z.datetimeFormats=j,z.numberFormats=X,z.rt=function(...e){const[t,n,r]=e;if(r&&!v(r))throw Error(ct.INVALID_ARGUMENT);return Y(t,n,u({resolvedMessage:!0},r||{}))},z.te=function(e,t){return G((()=>{if(!e)return!1;const n=K(g(t)?t:h.value),r=W.messageResolver(n,e);return m?null!=r:Xe(r)||Ye(r)||g(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Nt,(e=>E(e)))},z.tm=function(e){const t=function(e){let t=null;const n=be(W,k.value,h.value);for(let r=0;r<n.length;r++){const a=N.value[n[r]]||{},o=W.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},z.d=function(...e){return G((t=>Reflect.apply(Qe,null,[t,...e])),(()=>Ze(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Ie),(e=>g(e)))},z.n=function(...e){return G((t=>Reflect.apply(tt,null,[t,...e])),(()=>rt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Ie),(e=>g(e)))},z.getDateTimeFormat=function(e){return y.value[e]||{}},z.setDateTimeFormat=function(e,t){y.value[e]=t,U&&U.setDateTimeFormat(e,t),W.datetimeFormats=y.value,et(W,e,t)},z.mergeDateTimeFormat=function(e,t){y.value[e]=u(y.value[e]||{},t),U&&U.mergeDateTimeFormat(e,t),W.datetimeFormats=y.value,et(W,e,t)},z.getNumberFormat=function(e){return T.value[e]||{}},z.setNumberFormat=function(e,t){T.value[e]=t,U&&U.setNumberFormat(e,t),W.numberFormats=T.value,at(W,e,t)},z.mergeNumberFormat=function(e,t){T.value[e]=u(T.value[e]||{},t),U&&U.mergeNumberFormat(e,t),W.numberFormats=T.value,at(W,e,t)},z[pt]=o,z[it]=function(...e){return G((t=>{let n;const r=t;try{r.processor=B,n=Reflect.apply(Be,null,[r,...e])}finally{r.processor=null}return n}),(()=>Je(...e)),"translate",(t=>t[it](...e)),(e=>[kt(e)]),(e=>p(e)))},z[ut]=function(...e){return G((t=>Reflect.apply(Qe,null,[t,...e])),(()=>Ze(...e)),"datetime format",(t=>t[ut](...e)),Lt,(e=>g(e)||p(e)))},z[ft]=function(...e){return G((t=>Reflect.apply(tt,null,[t,...e])),(()=>rt(...e)),"number format",(t=>t[ft](...e)),Lt,(e=>g(e)||p(e)))},z[_t]=U,z}const Ct={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Ot=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Ct),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(r).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=g(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,l),i=o[it](e.keypath,c,s),f=u({},a),m=g(e.tag)||v(e.tag)?e.tag:"span";return t.h(m,f,i)}}}),At=Ot;function Pt(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),g(e.format)?n.key=e.format:v(e.format)&&(g(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let i=[n.key];p(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return p(a=r)&&!g(a[0])&&(r[0].key=`${e.type}-${t}`),r})):g(c)&&(i=[c]);const f=u({},l),m=g(e.tag)||v(e.tag)?e.tag:"span";return t.h(m,f,i)}}const St=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Ct),setup(e,t){const n=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return Pt(e,t,nt,((...e)=>n[ft](...e)))}}),Dt=St,Rt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ct),setup(e,t){const n=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return Pt(e,t,qe,((...e)=>n[ut](...e)))}}),Ft=Rt;let Mt=null;const wt=r("global-vue-i18n");function Ut(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(ct.MUST_BE_CALL_SETUP_TOP);if(null==Mt)throw Error(ct.NOT_INSTALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(ct.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(ct.NOT_INSTALLED);return n}}(r),o=function(e){return e.global}(a),l=ht(r),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(ct.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(ct.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=E(a.inheritLocale)?a.inheritLocale:!g(a.locale),i=t.ref(!o||s?r.locale.value:g(a.locale)?a.locale:Te),u=t.ref(!o||s?r.fallbackLocale.value:g(a.fallbackLocale)||p(a.fallbackLocale)||L(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:i.value),f=t.ref(bt(i.value,a)),m=t.ref(L(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),_=t.ref(L(a.numberFormats)?a.numberFormats:{[i.value]:{}}),v=o?r.missingWarn:!E(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,b=o?r.fallbackWarn:!E(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,h=o?r.fallbackRoot:!E(a.fallbackRoot)||a.fallbackRoot,k=!!a.fallbackFormat,N=d(a.missing)?a.missing:null,y=d(a.postTranslation)?a.postTranslation:null,T=o?r.warnHtmlMessage:!E(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,C=o?r.modifiers:L(a.modifiers)?a.modifiers:{},O=a.pluralRules||o&&r.pluralRules;function A(){return[i.value,u.value,f.value,m.value,_.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:i.value,set:e=>{l.value&&(l.value.locale.value=e),i.value=e}}),S=t.computed({get:()=>l.value?l.value.fallbackLocale.value:u.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),u.value=e}}),D=t.computed((()=>l.value?l.value.messages.value:f.value)),R=t.computed((()=>m.value)),F=t.computed((()=>_.value));function M(){return l.value?l.value.getPostTranslationHandler():y}function w(e){l.value&&l.value.setPostTranslationHandler(e)}function U(){return l.value?l.value.getMissingHandler():N}function W(e){l.value&&l.value.setMissingHandler(e)}function x(e){return A(),e()}function $(...e){return l.value?x((()=>Reflect.apply(l.value.t,null,[...e]))):x((()=>""))}function V(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function H(...e){return l.value?x((()=>Reflect.apply(l.value.d,null,[...e]))):x((()=>""))}function j(...e){return l.value?x((()=>Reflect.apply(l.value.n,null,[...e]))):x((()=>""))}function X(e){return l.value?l.value.tm(e):{}}function G(e,t){return!!l.value&&l.value.te(e,t)}function Y(e){return l.value?l.value.getLocaleMessage(e):{}}function B(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function z(e){return l.value?l.value.getDateTimeFormat(e):{}}function J(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function q(e){return l.value?l.value.getNumberFormat(e):{}}function Z(e,t){l.value&&(l.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:S,messages:D,datetimeFormats:R,numberFormats:F,get inheritLocale(){return l.value?l.value.inheritLocale:s},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(f.value)},get modifiers(){return l.value?l.value.modifiers:C},get pluralRules(){return l.value?l.value.pluralRules:O},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:v},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:b},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:h},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:k},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:T},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:$,getPostTranslationHandler:M,setPostTranslationHandler:w,getMissingHandler:U,setMissingHandler:W,rt:V,d:H,n:j,tm:X,te:G,getLocaleMessage:Y,setLocaleMessage:B,mergeLocaleMessage:K,getDateTimeFormat:z,setDateTimeFormat:J,mergeDateTimeFormat:Q,getNumberFormat:q,setNumberFormat:Z,mergeNumberFormat:ee};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=I,e.fallbackFormat=k,e.fallbackRoot=h,e.fallbackWarn=b,e.missingWarn=v,e.warnHtmlMessage=T}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(ct.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(i.value=t.locale.value,u.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):o&&ne(t)})),te}(r,s,o,e)}if("global"===s)return function(e,t,n){let r=v(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=bt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),v(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(v(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(o,e,l),o;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=function(e,t=!1){if(null==e)return null;return e.parent}(t,n);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[pt]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let m=f.__getInstance(r);if(null==m){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),m=It(a,Mt),f.__composerExtend&&(m[dt]=f.__composerExtend(m)),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(ct.UNEXPECTED_ERROR);const l=a[_t];if(l===e)throw Error(ct.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0})),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}))}}(f,r,m),f.__setInstance(r,m)}return m}return Oe=function(e,t){if(g(e)){!E(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||He)(e),r=je[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||S;return t.onError=e=>{n=!0,r(e)},{...q(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),l=xe(a);return o?l:je[n]=l}{const t=e.cacheKey;return t?je[t]||(je[t]=xe(e)):xe(e)}},Ae=function(e,t){if(!v(e))return null;let n=re.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=ne(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=te(n),c=Z[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&re.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;if(d(a))return null;a=e,o++}return a},Pe=be,e.DatetimeFormat=Rt,e.I18nD=Ft,e.I18nInjectionKey=wt,e.I18nN=Dt,e.I18nT=At,e.NumberFormat=St,e.Translation=Ot,e.VERSION=ot,e.castToVueI18n=e=>{if(!(gt in e))throw Error(ct.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){Mt=n;const r=!E(e.legacy)||e.legacy,a=!E(e.globalInjection)||e.globalInjection,o=!r||!!e.allowComposition,l=new Map,[s,c]=function(e,n,r){const a=t.effectScope();{if(!Et(r))throw Error(ct.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=a.run((()=>It(e,r)));if(null==t)throw Error(ct.UNEXPECTED_ERROR);return[a,t]}}(e,0,n);{const e=c[_t];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>r?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(n,...o)=>{if(2!==(n&&n.version&&Number(n.version.split(".")[0])||-1))throw Error(ct.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=L(t[0])?t[0]:{};(!E(n.globalInstall)||n.globalInstall)&&(e.component(Ot.name,Ot),e.component(St.name,St),e.component(Rt.name,Rt))}(n,...o),!r&&a&&(t=function(e,t,n){const r=t.watchLocale(n);return 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])},r}(n,e,c)),n.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=>C(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(r){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(L(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=>C(JSON.parse(t),e))),n.i18n.messages=e}catch(r){}const{sharedMessages:a}=n.i18n;a&&L(a)&&C(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||L(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,Mt))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const n={__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(n).forEach((t=>Object.defineProperty(e,t,{value:n[t]}))),e}},e.useI18n=Ut,e}({},VueDemi);
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===N(e),c=e=>"[object RegExp]"===N(e),i=e=>y(e)&&0===Object.keys(e).length,u=Object.assign,f=Object.create,m=(e=null)=>f(e);function _(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const p=Object.prototype.hasOwnProperty;function d(e,t){return p.call(e,t)}const g=Array.isArray,E=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,k=e=>h(e)&&E(e.then)&&E(e.catch),L=Object.prototype.toString,N=e=>L.call(e),y=e=>{if(!h(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function T(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function I(e){let t=e;return()=>++t}function C(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const O=e=>!h(e)||g(e);function A(e,t){if(O(e)||O(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{"__proto__"!==r&&(h(e[r])&&!h(t[r])&&(t[r]=Array.isArray(e[r])?[]:m()),O(t[r])||O(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}function P(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const S={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2};const D={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function R(e){throw e}const F=" ",w="\r",M="\n",U=String.fromCharCode(8232),x=String.fromCharCode(8233);function W(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>t[e]===w&&t[e+1]===M,s=e=>t[e]===x,c=e=>t[e]===U,i=e=>l(e)||(e=>t[e]===M)(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?M:t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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 l(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 $=void 0,V="'";function H(e,t={}){const n=!1!==t.location,r=W(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},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,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=P(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):(D.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===F||e.currentPeek()===M;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===$)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===$)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function v(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(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===F||r===M):o===F?(e.peek(),n(!0,F,a)):o!==M||(e.peek(),n(!0,M,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function h(e,t){const n=e.currentChar();return n===$?$:t(n)?(e.next(),n):null}function k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function L(e){return h(e,k)}function N(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function y(e){return h(e,N)}function T(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return h(e,T)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O(e){return h(e,C)}function A(e){let t="",n="";for(;t=I(e);)n+=t;return n}function S(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(n===F||n===M)if(b(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function R(e){return e!==V&&e!==M}function w(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return U(e,t,4);case"U":return U(e,t,6);default:return D.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function U(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=O(e);if(!t){D.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function x(e){return"{"!==e&&"}"!==e&&e!==F&&e!==M}function H(e){d(e);const t=_(e,"|");return d(e),t}function j(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(D.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(D.EMPTY_PLACEHOLDER,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&&(D.UNTERMINATED_CLOSING_BRACE,o()),n=X(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,a=!0,l=!0;if(v(e))return t.braceNest>0&&(D.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return D.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,G(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=y(e);)n+=t;return e.currentChar()===$&&(D.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=E(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${A(e)}`):t+=A(e),e.currentChar()===$&&(D.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===V;return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),_(e,"'");let t="",n="";for(;t=h(e,R);)n+="\\"===t?w(e):t;const r=e.currentChar();return r===M||r===$?(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===M&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){d(e);let t="",n="";for(;t=h(e,x);)n+=t;return n}(e)),D.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(e),n;break}}return n}function X(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==M&&a!==F||(D.INVALID_LINKED_FORMAT,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 v(e)?(r=f(t,1,H(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),X(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===F||!t)&&(t===M?(e.peek(),r()):b(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?j(e,t)||r:f(t,11,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===F?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(8===n&&(D.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,G(e,t))}}function G(e,t){let n={type:14};if(t.braceNest>0)return j(e,t)||m(t);if(t.inLinked)return X(e,t)||m(t);switch(e.currentChar()){case"{":return j(e,t)||m(t);case"}":return D.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return X(e,t)||m(t);default:{if(v(e))return n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=p(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,S(e)):f(t,4,function(e){d(e);const t=e.currentChar();return"%"!==t&&(D.EXPECTED_TOKEN,o()),e.next(),"%"}(e));if(b(e))return f(t,0,S(e));break}}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===$?f(c,14):G(r,c)},currentOffset:a,currentPosition:o,context:i}}const j=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function X(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 G(e={}){const t=!1!==e.location,{onError:n,onWarn:r}=e;function a(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function o(e,n,r,a){a&&(e.type=a),t&&(e.end=n,e.loc&&(e.loc.end=r))}function l(e,t){const n=e.context(),r=a(3,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:l}=n,s=a(5,r,l);return s.index=parseInt(t,10),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function c(e,t,n){const r=e.context(),{lastOffset:l,lastStartLoc:s}=r,c=a(4,l,s);return c.key=t,!0===n&&(c.modulo=!0),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function i(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:l}=n,s=a(9,r,l);return s.value=t.replace(j,X),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function f(e){const t=e.context(),n=a(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:l}=n,s=a(8,r,l);return 12!==t.type?(D.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",o(s,r,l),{nextConsumeToken:t,node:s}):(null==t.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,Y(t)),s.value=t.value||"",o(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(r)),n.key=function(e,t){const n=e.context(),r=a(7,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 5:null==r.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(r)),n.key=c(e,r.value||"");break;case 6:null==r.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(r)),n.key=s(e,r.value||"");break;case 7:null==r.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(r)),n.key=i(e,r.value||"");break;default:{D.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const l=e.context(),s=a(7,l.offset,l.startLoc);return s.value="",o(s,l.offset,l.startLoc),n.key=s,o(n,l.offset,l.startLoc),{nextConsumeToken:r,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function m(e){const t=e.context(),n=a(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let r=null,u=null;do{const a=r||e.nextToken();switch(r=null,a.type){case 0:null==a.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(a)),n.items.push(l(e,a.value||""));break;case 6:null==a.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(a)),n.items.push(s(e,a.value||""));break;case 4:u=!0;break;case 5:null==a.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(a)),n.items.push(c(e,a.value||"",!!u)),u&&(S.USE_MODULO_SYNTAX,t.lastStartLoc,Y(a),u=null);break;case 7:null==a.value&&(D.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Y(a)),n.items.push(i(e,a.value||""));break;case 8:{const t=f(e);n.items.push(t.node),r=t.nextConsumeToken||null;break}}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function _(e){const t=e.context(),{offset:n,startLoc:r}=t,l=m(e);return 14===t.currentType?l:function(e,t,n,r){const l=e.context();let s=0===r.items.length;const c=a(1,t,n);c.cases=[],c.cases.push(r);do{const t=m(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return o(c,e.currentOffset(),e.currentPosition()),c}(e,n,r,l)}return{parse:function(n){const r=H(n,u({},e)),l=r.context(),s=a(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=_(r),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==l.currentType&&(D.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,n[l.offset]),o(s,r.currentOffset(),r.currentPosition()),s}}}function Y(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 B(e,t){for(let n=0;n<e.length;n++)K(e[n],t)}function K(e,t){switch(e.type){case 1:B(e.cases,t),t.helper("plural");break;case 2:B(e.items,t);break;case 6:K(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function z(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&K(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function J(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=T(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function Q(e){switch(e.t=e.type,e.type){case 0:{const t=e;Q(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)Q(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)Q(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Q(t.key),t.k=t.key,delete t.key,t.modifier&&(Q(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function q(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?q(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&&(q(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 o=0;o<a&&(q(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),q(e,t.key),t.modifier?(e.push(", "),q(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}const Z=(e,t={})=>{const n=v(t.mode)?t.mode:"normal",r=v(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){s.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return l&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&i(t)},newline:function(){i(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${T(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),q(c,e),c.deindent(l),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function ee(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,l=G(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?J(t):t.cases.forEach((e=>J(e)))}(l),a&&Q(l),{ast:l,code:""}):(z(l,n),Z(l,n))}const te=[];te[0]={w:[0],i:[3,0],"[":[4],o:[7]},te[1]={w:[1],".":[2],"[":[4],o:[7]},te[2]={w:[2],i:[3,0],0:[3,0]},te[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},te[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},te[5]={"'":[4,0],o:8,l:[5,0]},te[6]={'"':[4,0],o:8,l:[6,0]};const ne=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function re(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 ae(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,ne.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 oe=new Map;function le(e,t){return h(e)?e[t]:null}const se=e=>e,ce=e=>"",ie="text",ue=e=>0===e.length?"":T(e),fe=e=>null==e?"":g(e)||y(e)&&e.toString===L?JSON.stringify(e,null,2):String(e);function me(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function _e(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),r=h(e.pluralRules)&&v(t)&&E(e.pluralRules[t])?e.pluralRules[t]:me,a=h(e.pluralRules)&&v(t)&&E(e.pluralRules[t])?me:void 0,o=e.list||[],s=e.named||m();l(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=E(e.messages)?e.messages(t):!!h(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):ce)}const i=y(e.processor)&&E(e.processor.normalize)?e.processor.normalize:ue,f=y(e.processor)&&E(e.processor.interpolate)?e.processor.interpolate:fe,_={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?h(r)?(l=r.modifier||l,o=r.type||o):v(r)&&(l=r||l):2===n.length&&(v(r)&&(l=r||l),v(a)&&(o=a||o));const s=c(t)(_),i="vnode"===o&&g(s)&&l?s[0]:s;return l?(u=l,e.modifiers?e.modifiers[u]:se)(i,o):i;var u},message:c,type:y(e.processor)&&v(e.processor.type)?e.processor.type:ie,interpolate:f,normalize:i,values:u(m(),o,s)};return _}const pe=D.__EXTEND_POINT__,de=I(pe),ge={INVALID_ARGUMENT:pe,INVALID_DATE_ARGUMENT:de(),INVALID_ISO_DATE_ARGUMENT:de(),NOT_SUPPORT_NON_STRING_MESSAGE:de(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:de(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:de(),NOT_SUPPORT_LOCALE_TYPE:de(),__EXTEND_POINT__:de()};function Ee(e,t){return null!=t.locale?be(t.locale):be(e.locale)}let ve;function be(e){if(v(e))return e;if(E(e)){if(e.resolvedOnce&&null!=ve)return ve;if("Function"===e.constructor.name){const t=e();if(k(t))throw Error(ge.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ve=t}throw Error(ge.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(ge.NOT_SUPPORT_LOCALE_TYPE)}function he(e,t,n){return[...new Set([n,...g(t)?t:h(t)?Object.keys(t):v(t)?[t]:[n]])]}function ke(e,t,n){const r=v(n)?n:Ce,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;g(e);)e=Le(o,e,t);const l=g(t)||!y(t)?t:t.default?t.default:null;e=v(l)?[l]:l,g(e)&&Le(o,e,!1),a.__localeChainCache.set(r,o)}return o}function Le(e,t,n){let r=!0;for(let a=0;a<t.length&&b(r);a++){const o=t[a];v(o)&&(r=Ne(e,t[a],n))}return r}function Ne(e,t,n){let r;const a=t.split("-");do{r=ye(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ye(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),(g(n)||y(n))&&n[a]&&(r=n[a])}return r}const Te="9.14.2",Ie=-1,Ce="en-US",Oe="",Ae=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Pe,Se,De;let Re=null;const Fe=e=>{Re=e},we=()=>Re;let Me=0;function Ue(e={}){const t=E(e.onWarn)?e.onWarn:C,n=v(e.version)?e.version:Te,r=v(e.locale)||E(e.locale)?e.locale:Ce,a=E(r)?Ce:r,o=g(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=y(e.messages)?e.messages:xe(a),s=y(e.datetimeFormats)?e.datetimeFormats:xe(a),i=y(e.numberFormats)?e.numberFormats:xe(a),f=u(m(),e.modifiers,{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&h(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&h(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?Ae(e):"vnode"===t&&h(e)&&"__v_isVNode"in e?Ae(e.children):e}),_=e.pluralRules||m(),p=E(e.missing)?e.missing:null,d=!b(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,k=!b(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,N=!!e.unresolving,T=E(e.postTranslation)?e.postTranslation:null,I=y(e.processor)?e.processor:null,O=!b(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,P=E(e.messageCompiler)?e.messageCompiler:Pe,S=E(e.messageResolver)?e.messageResolver:Se||le,D=E(e.localeFallbacker)?e.localeFallbacker:De||he,R=h(e.fallbackContext)?e.fallbackContext:void 0,F=e,w=h(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,M=h(F.__numberFormatters)?F.__numberFormatters:new Map,U=h(F.__meta)?F.__meta:{};Me++;const x={version:n,cid:Me,locale:r,fallbackLocale:o,messages:l,modifiers:f,pluralRules:_,missing:p,missingWarn:d,fallbackWarn:k,fallbackFormat:L,unresolving:N,postTranslation:T,processor:I,warnHtmlMessage:O,escapeParameter:A,messageCompiler:P,messageResolver:S,localeFallbacker:D,fallbackContext:R,onWarn:t,__meta:U};return x.datetimeFormats=s,x.numberFormats=i,x.__datetimeFormatters=w,x.__numberFormatters=M,x}const xe=e=>({[e]:m()});function We(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return v(r)?r:t}return t}function $e(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ve(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let o=n+1;o<t.length;o++)if(r=e,a=t[o],r!==a&&r.split("-")[0]===a.split("-")[0])return!0;var r,a;return!1}function He(e){return t=>function(e,t){const n=(r=t,tt(r,je));var r;if(null==n)throw nt(0);if(1===Je(n)){const t=function(e){return tt(e,Xe,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,Ge(e,n)]),[]))}return Ge(e,n)}(t,e)}const je=["b","body"];const Xe=["c","cases"];function Ge(e,t){const n=function(e){return tt(e,Ye)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return tt(e,Be,[])}(t).reduce(((t,n)=>[...t,Ke(e,n)]),[]);return e.normalize(n)}}const Ye=["s","static"];const Be=["i","items"];function Ke(e,t){const n=Je(t);switch(n){case 3:case 9:case 7:case 8:return qe(t,n);case 4:{const r=t;if(d(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(d(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw nt(n)}case 5:{const r=t;if(d(r,"i")&&l(r.i))return e.interpolate(e.list(r.i));if(d(r,"index")&&l(r.index))return e.interpolate(e.list(r.index));throw nt(n)}case 6:{const n=t,r=function(e){return tt(e,Ze)}(n),a=function(e){const t=tt(e,et);if(t)return t;throw nt(6)}(n);return e.linked(Ke(e,a),r?Ke(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const ze=["t","type"];function Je(e){return tt(e,ze)}const Qe=["v","value"];function qe(e,t){const n=tt(e,Qe);if(n)return n;throw nt(t)}const Ze=["m","modifier"];const et=["k","key"];function tt(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(d(e,n)&&null!=e[n])return e[n]}return n}function nt(e){return new Error(`unhandled node type: ${e}`)}const rt=e=>e;let at=m();function ot(e){return h(e)&&0===Je(e)&&(d(e,"b")||d(e,"body"))}const lt=()=>"",st=e=>E(e);function ct(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[i,u]=ft(...t),f=b(u.missingWarn)?u.missingWarn:e.missingWarn,p=b(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=b(u.escapeParameter)?u.escapeParameter:e.escapeParameter,E=!!u.resolvedMessage,k=v(u.default)||b(u.default)?b(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:"",L=n||""!==k,N=Ee(e,u);d&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?_(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=_(e.named[t]))}))}(u);let[y,T,I]=E?[i,N,c[N]||m()]:it(e,i,N,s,p,f),C=y,O=i;if(E||v(C)||ot(C)||st(C)||L&&(C=k,O=C),!(E||(v(C)||ot(C)||st(C))&&v(T)))return a?Ie:i;let A=!1;const P=st(C)?C:ut(e,i,T,C,O,(()=>{A=!0}));if(A)return C;const S=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=it(f,r,t,c,i,u);a=s(e,r)}if(v(a)||ot(a)){let n=!1;const o=ut(e,r,t,a,r,(()=>{n=!0}));return n?lt:o}return st(a)?a:lt},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);l(r.plural)&&(_.pluralIndex=r.plural);return _}(e,T,I,u),D=function(e,t,n){const r=t(n);return r}(0,P,_e(S));return r?r(D,i):D}function it(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,_=m(),p=null;for(let d=0;d<u.length&&(f=u[d],_=l[f]||m(),null===(p=c(_,t))&&(p=_[t]),!(v(p)||ot(p)||st(p)));d++)if(!Ve(f,u)){const n=We(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,_]}function ut(e,t,n,r,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(st(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const i=s(r,function(e,t,n,r,o,l){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,l));return i.locale=n,i.key=t,i.source=r,i}function ft(...e){const[t,n,r]=e,a=m();if(!(v(t)||l(t)||st(t)||ot(t)))throw Error(ge.INVALID_ARGUMENT);const o=l(t)?String(t):(st(t),t);return l(n)?a.plural=n:v(n)?a.default=n:y(n)&&!i(n)?a.named=n:g(n)&&(a.list=n),l(r)?a.plural=r:v(r)?a.default=r:y(r)&&u(a,r),[o,a]}function mt(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[c,f,m,_]=pt(...t);b(m.missingWarn)?m.missingWarn:e.missingWarn;b(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=Ee(e,m),g=l(e,a,d);if(!v(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let E,h={},k=null;for(let i=0;i<g.length&&(E=g[i],h=n[E]||{},k=h[c],!y(k));i++)We(e,c,E,0,"datetime format");if(!y(k)||!v(E))return r?Ie:c;let L=`${E}__${c}`;i(_)||(L=`${L}__${JSON.stringify(_)}`);let N=s.get(L);return N||(N=new Intl.DateTimeFormat(E,u({},k,_)),s.set(L,N)),p?N.formatToParts(f):N.format(f)}const _t=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function pt(...e){const[t,n,r,a]=e,o=m();let c,i=m();if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ge.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(n);try{c.toISOString()}catch(u){throw Error(ge.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(ge.INVALID_DATE_ARGUMENT);c=t}else{if(!l(t))throw Error(ge.INVALID_ARGUMENT);c=t}return v(n)?o.key=n:y(n)&&Object.keys(n).forEach((e=>{_t.includes(e)?i[e]=n[e]:o[e]=n[e]})),v(r)?o.locale=r:y(r)&&(i=r),y(a)&&(i=a),[o.key||"",c,o,i]}function dt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function gt(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[c,f,m,_]=vt(...t);b(m.missingWarn)?m.missingWarn:e.missingWarn;b(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=Ee(e,m),g=l(e,a,d);if(!v(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let E,h={},k=null;for(let i=0;i<g.length&&(E=g[i],h=n[E]||{},k=h[c],!y(k));i++)We(e,c,E,0,"number format");if(!y(k)||!v(E))return r?Ie:c;let L=`${E}__${c}`;i(_)||(L=`${L}__${JSON.stringify(_)}`);let N=s.get(L);return N||(N=new Intl.NumberFormat(E,u({},k,_)),s.set(L,N)),p?N.formatToParts(f):N.format(f)}const Et=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function vt(...e){const[t,n,r,a]=e,o=m();let s=m();if(!l(t))throw Error(ge.INVALID_ARGUMENT);const c=t;return v(n)?o.key=n:y(n)&&Object.keys(n).forEach((e=>{Et.includes(e)?s[e]=n[e]:o[e]=n[e]})),v(r)?o.locale=r:y(r)&&(s=r),y(a)&&(s=a),[o.key||"",c,o,s]}function bt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const ht="9.14.2",kt=ge.__EXTEND_POINT__,Lt=I(kt),Nt={UNEXPECTED_RETURN_TYPE:kt,INVALID_ARGUMENT:Lt(),MUST_BE_CALL_SETUP_TOP:Lt(),NOT_INSTALLED:Lt(),NOT_AVAILABLE_IN_LEGACY_MODE:Lt(),REQUIRED_VALUE:Lt(),INVALID_VALUE:Lt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Lt(),NOT_INSTALLED_WITH_PROVIDE:Lt(),UNEXPECTED_ERROR:Lt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Lt(),BRIDGE_SUPPORT_VUE_2_ONLY:Lt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Lt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Lt(),__EXTEND_POINT__:Lt()},yt=r("__translateVNode"),Tt=r("__datetimeParts"),It=r("__numberParts"),Ct=r("__setPluralRules"),Ot=r("__legacyVueI18n"),At=r("__injectWithOption"),Pt=r("__dispose"),St="__VUE_I18N_BRIDGE__";function Dt(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Rt(e){if(!h(e))return e;for(const t in e)if(d(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let e=0;e<r;e++){if(n[e]in a||(a[n[e]]=m()),!h(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),h(a[n[r]])&&Rt(a[n[r]])}else h(e[t])&&Rt(e[t]);return e}function Ft(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=y(n)?n:g(r)?m():{[e]:m()};if(g(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||m(),A(n,l[t])):A(n,l)}else v(e)&&A(JSON.parse(e),l)})),null==a&&o)for(const s in l)d(l,s)&&Rt(l[s]);return l}function wt(e){return e.proxy.$options}function Mt(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const Ut=()=>[],xt=()=>!1;let Wt=0;function $t(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Vt(e={},r){const{__root:a,__injectWithOption:o}=e,s=void 0===a,i=e.flatJson,f=n?t.ref:t.shallowRef,m=!!e.translateExistCompatible;let _=!b(e.inheritLocale)||e.inheritLocale;const p=f(a&&_?a.locale.value:v(e.locale)?e.locale:Ce),k=f(a&&_?a.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:p.value),L=f(Ft(p.value,e)),N=f(y(e.datetimeFormats)?e.datetimeFormats:{[p.value]:{}}),T=f(y(e.numberFormats)?e.numberFormats:{[p.value]:{}});let I=a?a.missingWarn:!b(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,C=a?a.fallbackWarn:!b(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,O=a?a.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,P=!!e.fallbackFormat,S=E(e.missing)?e.missing:null,D=E(e.missing)?$t(e.missing):null,R=E(e.postTranslation)?e.postTranslation:null,F=a?a.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,w=!!e.escapeParameter;const M=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let U,x,W=e.pluralRules||a&&a.pluralRules;{Dt(r);const e={locale:p.value,fallbackLocale:k.value,messages:L.value,dateTimeFormats:N.value,numberFormats:T.value,modifiers:M,missing:S,fallbackRoot:O,postTranslation:R,pluralizationRules:W,escapeParameterHtml:w,sync:_,silentFallbackWarn:b(C)?!C:C,silentTranslationWarn:b(I)?!I:I,formatFallbackMessages:b(P)?!P:P,warnHtmlInMessage:b(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:St};U=new r(e)}x=(()=>{s&&Fe(null);const t={version:ht,locale:p.value,fallbackLocale:k.value,messages:L.value,modifiers:M,pluralRules:W,missing:null===D?void 0:D,missingWarn:I,fallbackWarn:C,fallbackFormat:P,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:F,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=N.value,t.numberFormats=T.value,t.__datetimeFormatters=y(x)?x.__datetimeFormatters:void 0,t.__numberFormatters=y(x)?x.__numberFormatters:void 0;const n=Ue(t);return s&&Fe(n),n})(),$e(x,p.value,k.value);const $=t.computed({get:()=>p.value,set:e=>{p.value=e,U&&!s&&(U.locale=e),x.locale=p.value}}),V=t.computed({get:()=>k.value,set:e=>{k.value=e,U&&!s&&(U.fallbackLocale=e),x.fallbackLocale=k.value,$e(x,p.value,e)}}),H=t.computed((()=>L.value)),j=t.computed((()=>N.value)),X=t.computed((()=>T.value));const G=(e,t,n,r,o,c)=>{let i;p.value,k.value,L.value,N.value,T.value;try{0,s||(x.fallbackContext=a?we():void 0),i=e(x)}finally{s||(x.fallbackContext=void 0)}if("translate exists"!==n&&l(i)&&i===Ie||"translate exists"===n&&!i){const[e,n]=t();return a&&O?r(a):o(e)}if(c(i))return i;throw Error(Nt.UNEXPECTED_RETURN_TYPE)};function Y(...e){return G((t=>Reflect.apply(ct,null,[t,...e])),(()=>ft(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const B={normalize:function(e){return e.map((e=>v(e)||l(e)||b(e)?Mt(String(e)):e))},interpolate:e=>e,type:"vnode"};function K(e){return L.value[e]||{}}Wt++,a&&n&&(t.watch(a.locale,(e=>{_&&(p.value=e,U&&!s&&(U.locale=e),x.locale=e,$e(x,p.value,k.value))})),t.watch(a.fallbackLocale,(e=>{_&&(k.value=e,U&&!s&&(U.fallbackLocale=e),x.fallbackLocale=e,$e(x,p.value,k.value))})));const z={id:Wt,locale:$,fallbackLocale:V,get inheritLocale(){return _},set inheritLocale(e){_=e,U&&(U._sync=e),e&&a&&(p.value=a.locale.value,k.value=a.fallbackLocale.value,U&&(U.locale=a.locale.value,U.fallbackLocale=a.fallbackLocale.value),$e(x,p.value,k.value))},get availableLocales(){return Object.keys(L.value).sort()},messages:H,get modifiers(){return M},get pluralRules(){return W||{}},get isGlobal(){return s},get missingWarn(){return I},set missingWarn(e){I=e,x.missingWarn=I},get fallbackWarn(){return C},set fallbackWarn(e){C=e,x.fallbackWarn=C},get fallbackRoot(){return O},set fallbackRoot(e){O=e},get fallbackFormat(){return P},set fallbackFormat(e){P=e,x.fallbackFormat=P},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,x.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,x.escapeParameter=e},t:Y,getLocaleMessage:K,setLocaleMessage:function(e,t){if(i){const n={[e]:t};for(const e in n)d(n,e)&&Rt(n[e]);t=n[e]}L.value[e]=t,U&&U.setLocaleMessage(e,t),x.messages=L.value},mergeLocaleMessage:function(e,t){L.value[e]=L.value[e]||{},U&&U.mergeLocaleMessage(e,t);const n={[e]:t};if(i)for(const r in n)d(n,r)&&Rt(n[r]);A(t=n[e],L.value[e]),x.messages=L.value},getPostTranslationHandler:function(){return E(R)?R:null},setPostTranslationHandler:function(e){R=e,x.postTranslation=e},getMissingHandler:function(){return S},setMissingHandler:function(e){null!==e&&(D=$t(e)),S=e,x.missing=D},[Ct]:function(e){W=e,x.pluralRules=W}};return z.datetimeFormats=j,z.numberFormats=X,z.rt=function(...e){const[t,n,r]=e;if(r&&!h(r))throw Error(Nt.INVALID_ARGUMENT);return Y(t,n,u({resolvedMessage:!0},r||{}))},z.te=function(e,t){return G((()=>{if(!e)return!1;const n=K(v(t)?t:p.value),r=x.messageResolver(n,e);return m?null!=r:ot(r)||st(r)||v(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),xt,(e=>b(e)))},z.tm=function(e){const t=function(e){let t=null;const n=ke(x,k.value,p.value);for(let r=0;r<n.length;r++){const a=L.value[n[r]]||{},o=x.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},z.d=function(...e){return G((t=>Reflect.apply(mt,null,[t,...e])),(()=>pt(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Oe),(e=>v(e)))},z.n=function(...e){return G((t=>Reflect.apply(gt,null,[t,...e])),(()=>vt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Oe),(e=>v(e)))},z.getDateTimeFormat=function(e){return N.value[e]||{}},z.setDateTimeFormat=function(e,t){N.value[e]=t,U&&U.setDateTimeFormat(e,t),x.datetimeFormats=N.value,dt(x,e,t)},z.mergeDateTimeFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),U&&U.mergeDateTimeFormat(e,t),x.datetimeFormats=N.value,dt(x,e,t)},z.getNumberFormat=function(e){return T.value[e]||{}},z.setNumberFormat=function(e,t){T.value[e]=t,U&&U.setNumberFormat(e,t),x.numberFormats=T.value,bt(x,e,t)},z.mergeNumberFormat=function(e,t){T.value[e]=u(T.value[e]||{},t),U&&U.mergeNumberFormat(e,t),x.numberFormats=T.value,bt(x,e,t)},z[At]=o,z[yt]=function(...e){return G((t=>{let n;const r=t;try{r.processor=B,n=Reflect.apply(ct,null,[r,...e])}finally{r.processor=null}return n}),(()=>ft(...e)),"translate",(t=>t[yt](...e)),(e=>[Mt(e)]),(e=>g(e)))},z[Tt]=function(...e){return G((t=>Reflect.apply(mt,null,[t,...e])),(()=>pt(...e)),"datetime format",(t=>t[Tt](...e)),Ut,(e=>v(e)||g(e)))},z[It]=function(...e){return G((t=>Reflect.apply(gt,null,[t,...e])),(()=>vt(...e)),"number format",(t=>t[It](...e)),Ut,(e=>v(e)||g(e)))},z[Ot]=U,z}const Ht={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const jt=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Ht),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||qt({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(r).filter((e=>"_"!==e)),s=m();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=v(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),m())}(n,l),i=o[yt](e.keypath,c,s),f=u(m(),a),_=v(e.tag)||h(e.tag)?e.tag:"span";return t.h(_,f,i)}}}),Xt=jt;function Gt(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s=m();e.locale&&(n.locale=e.locale),v(e.format)?n.key=e.format:h(e.format)&&(v(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u(m(),t,{[n]:e.format[n]}):t),m()));const c=a(e.value,n,s);let i=[n.key];g(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return g(a=r)&&!v(a[0])&&(r[0].key=`${e.type}-${t}`),r})):v(c)&&(i=[c]);const f=u(m(),l),_=v(e.tag)||h(e.tag)?e.tag:"span";return t.h(_,f,i)}}const Yt=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Ht),setup(e,t){const n=e.i18n||qt({useScope:e.scope,__useComponent:!0});return Gt(e,t,Et,((...e)=>n[It](...e)))}}),Bt=Yt,Kt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ht),setup(e,t){const n=e.i18n||qt({useScope:e.scope,__useComponent:!0});return Gt(e,t,_t,((...e)=>n[Tt](...e)))}}),zt=Kt;let Jt=null;const Qt=r("global-vue-i18n");function qt(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(Nt.MUST_BE_CALL_SETUP_TOP);if(null==Jt)throw Error(Nt.NOT_INSTALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(Nt.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(Nt.NOT_INSTALLED);return n}}(r),o=function(e){return e.global}(a),l=wt(r),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(Nt.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(Nt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=b(a.inheritLocale)?a.inheritLocale:!v(a.locale),i=t.ref(!o||s?r.locale.value:v(a.locale)?a.locale:Ce),u=t.ref(!o||s?r.fallbackLocale.value:v(a.fallbackLocale)||g(a.fallbackLocale)||y(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:i.value),f=t.ref(Ft(i.value,a)),m=t.ref(y(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),_=t.ref(y(a.numberFormats)?a.numberFormats:{[i.value]:{}}),p=o?r.missingWarn:!b(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,d=o?r.fallbackWarn:!b(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,h=o?r.fallbackRoot:!b(a.fallbackRoot)||a.fallbackRoot,k=!!a.fallbackFormat,L=E(a.missing)?a.missing:null,N=E(a.postTranslation)?a.postTranslation:null,T=o?r.warnHtmlMessage:!b(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,C=o?r.modifiers:y(a.modifiers)?a.modifiers:{},O=a.pluralRules||o&&r.pluralRules;function A(){return[i.value,u.value,f.value,m.value,_.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:i.value,set:e=>{l.value&&(l.value.locale.value=e),i.value=e}}),S=t.computed({get:()=>l.value?l.value.fallbackLocale.value:u.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),u.value=e}}),D=t.computed((()=>l.value?l.value.messages.value:f.value)),R=t.computed((()=>m.value)),F=t.computed((()=>_.value));function w(){return l.value?l.value.getPostTranslationHandler():N}function M(e){l.value&&l.value.setPostTranslationHandler(e)}function U(){return l.value?l.value.getMissingHandler():L}function x(e){l.value&&l.value.setMissingHandler(e)}function W(e){return A(),e()}function $(...e){return l.value?W((()=>Reflect.apply(l.value.t,null,[...e]))):W((()=>""))}function V(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function H(...e){return l.value?W((()=>Reflect.apply(l.value.d,null,[...e]))):W((()=>""))}function j(...e){return l.value?W((()=>Reflect.apply(l.value.n,null,[...e]))):W((()=>""))}function X(e){return l.value?l.value.tm(e):{}}function G(e,t){return!!l.value&&l.value.te(e,t)}function Y(e){return l.value?l.value.getLocaleMessage(e):{}}function B(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function z(e){return l.value?l.value.getDateTimeFormat(e):{}}function J(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function q(e){return l.value?l.value.getNumberFormat(e):{}}function Z(e,t){l.value&&(l.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:S,messages:D,datetimeFormats:R,numberFormats:F,get inheritLocale(){return l.value?l.value.inheritLocale:s},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(f.value)},get modifiers(){return l.value?l.value.modifiers:C},get pluralRules(){return l.value?l.value.pluralRules:O},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:p},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:d},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:h},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:k},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:T},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:$,getPostTranslationHandler:w,setPostTranslationHandler:M,getMissingHandler:U,setMissingHandler:x,rt:V,d:H,n:j,tm:X,te:G,getLocaleMessage:Y,setLocaleMessage:B,mergeLocaleMessage:K,getDateTimeFormat:z,setDateTimeFormat:J,mergeDateTimeFormat:Q,getNumberFormat:q,setNumberFormat:Z,mergeNumberFormat:ee};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=I,e.fallbackFormat=k,e.fallbackRoot=h,e.fallbackWarn=d,e.missingWarn=p,e.warnHtmlMessage=T}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Nt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(i.value=t.locale.value,u.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):o&&ne(t)})),te}(r,s,o,e)}if("global"===s)return function(e,t,n){let r=h(t.messages)?t.messages:m();"__i18nGlobal"in n&&(r=Ft(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])}))}}(o,e,l),o;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=function(e,t=!1){if(null==e)return null;return e.parent}(t,n);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[At]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let _=f.__getInstance(r);if(null==_){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),_=Vt(a,Jt),f.__composerExtend&&(_[Pt]=f.__composerExtend(_)),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(Nt.UNEXPECTED_ERROR);const l=a[Ot];if(l===e)throw Error(Nt.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0})),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}))}}(f,r,_),f.__setInstance(r,_)}return _}return Pe=function(e,t){if(v(e)){!b(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||rt)(e),r=at[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||R;return t.onError=e=>{n=!0,r(e)},{...ee(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),l=He(a);return o?l:at[n]=l}{const t=e.cacheKey;return t?at[t]||(at[t]=He(e)):He(e)}},Se=function(e,t){if(!h(e))return null;let n=oe.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=ae(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=re(n),c=te[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&oe.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;if(E(a))return null;a=e,o++}return a},De=ke,e.DatetimeFormat=Kt,e.I18nD=zt,e.I18nInjectionKey=Qt,e.I18nN=Bt,e.I18nT=Xt,e.NumberFormat=Yt,e.Translation=jt,e.VERSION=ht,e.castToVueI18n=e=>{if(!(St in e))throw Error(Nt.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){Jt=n;const r=!b(e.legacy)||e.legacy,a=!b(e.globalInjection)||e.globalInjection,o=!r||!!e.allowComposition,l=new Map,[s,c]=function(e,n,r){const a=t.effectScope();{if(!Dt(r))throw Error(Nt.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=a.run((()=>Vt(e,r)));if(null==t)throw Error(Nt.UNEXPECTED_ERROR);return[a,t]}}(e,0,n);{const e=c[Ot];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>r?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(n,...o)=>{if(2!==(n&&n.version&&Number(n.version.split(".")[0])||-1))throw Error(Nt.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=y(t[0])?t[0]:{};(!b(n.globalInstall)||n.globalInstall)&&(e.component(jt.name,jt),e.component(Yt.name,Yt),e.component(Kt.name,Kt))}(n,...o),!r&&a&&(t=function(e,t,n){const r=t.watchLocale(n);return 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])},r}(n,e,c)),n.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=>A(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(r){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(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=>A(JSON.parse(t),e))),n.i18n.messages=e}catch(r){}const{sharedMessages:a}=n.i18n;a&&y(a)&&A(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||y(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,Jt))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const n={__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(n).forEach((t=>Object.defineProperty(e,t,{value:n[t]}))),e}},e.useI18n=qt,e}({},VueDemi);
/*!
* vue-i18n-bridge v9.14.1
* vue-i18n-bridge v9.14.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/
import{computed,watch,getCurrentInstance,ref,shallowRef,defineComponent,h,effectScope,onBeforeMount,onUnmounted}from"vue-demi";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,a)=>friendlyJSONstringify({l:e,k:t,s:a}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}function incrementer(e){let t=e;return()=>++t}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("Invalid value");const a=[{src:e,des:t}];for(;a.length;){const{src:e,des:t}=a.pop();Object.keys(e).forEach((n=>{isObject(e[n])&&!isObject(t[n])&&(t[n]=Array.isArray(e[n])?[]:{}),isNotObjectOrIsArray(t[n])||isNotObjectOrIsArray(e[n])?t[n]=e[n]:a.push({src:e[n],des:t[n]})}))}}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let a,n,r,l,o,s,i,c=-1,u=0,m=0;const g=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,g[0](),!0}for(g[0]=()=>{void 0===n?n=r:n+=r},g[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},g[2]=()=>{g[0](),m++},g[3]=()=>{if(m>0)m--,u=4,g[0]();else{if(m=0,void 0===n)return!1;if(n=formatSubPath(n),!1===n)return!1;g[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(l=getPathCharType(a),i=pathStateMachine[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=g[o[1]],s&&(r=a,!1===s())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let a=cache.get(t);if(a||(a=parse(t),a&&cache.set(t,a)),!a)return null;const n=a.length;let r=e,l=0;for(;l<n;){const e=r[a[l]];if(void 0===e)return null;if(isFunction(r))return null;r=e,l++}return r}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,a=getPluralIndex(e),n=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,l=e.list||[],o=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,o);function s(t){const a=isFunction(e.messages)?e.messages(t):!!isObject(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>l[e],named:e=>o[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let l="text",o="";1===a.length?isObject(n)?(o=n.modifier||o,l=n.type||l):isString(n)&&(o=n||o):2===a.length&&(isString(n)&&(o=n||o),isString(r)&&(l=r||l));const i=s(t)(u),c="vnode"===l&&isArray(i)&&o?i[0]:i;return o?(m=o,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,l):c;var m},message:s,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign({},l,o)};return u}const code$1=CompileErrorCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$1(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$1(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$1(),NOT_SUPPORT_LOCALE_TYPE:inc$1(),__EXTEND_POINT__:inc$1()};function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,a){return[...new Set([a,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[a]])]}function fallbackWithLocaleChain(e,t,a){const n=isString(a)?a:DEFAULT_LOCALE,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(n);if(!l){l=[];let e=[a];for(;isArray(e);)e=appendBlockToChain(l,e,t);const o=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(o)?[o]:o,isArray(e)&&appendBlockToChain(l,e,!1),r.__localeChainCache.set(n,l)}return l}function appendBlockToChain(e,t,a){let n=!0;for(let r=0;r<t.length&&isBoolean(n);r++){const l=t[r];isString(l)&&(n=appendLocaleToChain(e,t[r],a))}return n}function appendLocaleToChain(e,t,a){let n;const r=t.split("-");do{n=appendItemToChain(e,r.join("-"),a),r.splice(-1,1)}while(r.length&&!0===n);return n}function appendItemToChain(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(isArray(a)||isPlainObject(a))&&a[r]&&(n=a[r])}return n}const VERSION$1="9.14.1",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,a=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,r=isFunction(n)?DEFAULT_LOCALE:n,l=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=isPlainObject(e.messages)?e.messages:{[r]:{}},s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},i=isPlainObject(e.numberFormats)?e.numberFormats:{[r]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,g=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,_=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,p=!!e.unresolving,b=isFunction(e.postTranslation)?e.postTranslation:null,d=isPlainObject(e.processor)?e.processor:null,E=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,v=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,N=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,T=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,S=isObject(e.fallbackContext)?e.fallbackContext:void 0,h=e,I=isObject(h.__datetimeFormatters)?h.__datetimeFormatters:new Map,y=isObject(h.__numberFormatters)?h.__numberFormatters:new Map,L=isObject(h.__meta)?h.__meta:{};_cid++;const F={version:a,cid:_cid,locale:n,fallbackLocale:l,messages:o,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:_,fallbackFormat:f,unresolving:p,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:O,messageCompiler:v,messageResolver:N,localeFallbacker:T,fallbackContext:S,onWarn:t,__meta:L};return F.datetimeFormats=s,F.numberFormats=i,F.__datetimeFormatters=I,F.__numberFormatters=y,F}function handleMissing(e,t,a,n,r){const{missing:l,onWarn:o}=e;if(null!==l){const n=l(e,a,t,r);return isString(n)?n:t}return t}function updateFallbackLocale(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}function isAlmostSameLocale(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function isImplicitFallback(e,t){const a=t.indexOf(e);if(-1===a)return!1;for(let n=a+1;n<t.length;n++)if(isAlmostSameLocale(e,t[n]))return!0;return!1}const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,g=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,_=!!c.resolvedMessage,f=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?l?i:()=>i:c.default:a?l?i:()=>i:"",p=a||""!==f,b=getLocale(e,c);g&&escapeParams(c);let[d,E,O]=_?[i,b,s[b]||{}]:resolveMessageFormat(e,i,b,o,m,u),v=d,N=i;if(_||isString(v)||isMessageAST(v)||isMessageFunction(v)||p&&(v=f,N=v),!(_||(isString(v)||isMessageAST(v)||isMessageFunction(v))&&isString(E)))return r?NOT_REOSLVED:i;let T=!1;const S=isMessageFunction(v)?v:compileMessageFormat(e,i,E,v,N,(()=>{T=!0}));if(T)return v;const h=evaluateMessage(e,S,createMessageContext(getMessageContextOptions(e,E,O,c)));return n?n(h,i):h}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,a,n,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g={},_=null;for(let f=0;f<u.length&&(m=u[f],g=o[m]||{},null===(_=i(g,t))&&(_=g[t]),!(isString(_)||isMessageAST(_)||isMessageFunction(_)));f++)if(!isImplicitFallback(m,u)){const a=handleMissing(e,t,m,l,"translate");a!==t&&(_=a)}return[_,m,g]}function compileMessageFormat(e,t,a,n,r,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==o){const e=()=>n;return e.locale=a,e.key=t,e}const i=o(n,getCompileContext(e,a,r,n,s,l));return i.locale=a,i.key=t,i.source=n,i}function evaluateMessage(e,t,a){return t(a)}function parseTranslateArgs(...e){const[t,a,n]=e,r={};if(!(isString(t)||isNumber(t)||isMessageFunction(t)||isMessageAST(t)))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const l=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(a)?r.plural=a:isString(a)?r.default=a:isPlainObject(a)&&!isEmptyObject(a)?r.named=a:isArray(a)&&(r.list=a),isNumber(n)?r.plural=n:isString(n)?r.default=n:isPlainObject(n)&&assign(r,n),[l,r]}function getCompileContext(e,t,a,n,r,l){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw l&&l(e),e},onCacheKey:e=>generateFormatCacheKey(t,a,e)}}function getMessageContextOptions(e,t,a,n){const{modifiers:r,pluralRules:l,messageResolver:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:l,messages:n=>{let r=o(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,s,i,c);r=o(e,n)}if(isString(r)||isMessageAST(r)){let a=!1;const l=compileMessageFormat(e,n,t,r,n,(()=>{a=!0}));return a?NOOP_MESSAGE_FUNCTION:l}return isMessageFunction(r)?r:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),isNumber(n.plural)&&(m.pluralIndex=n.plural),m}function datetime(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=parseDateTimeArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,f=getLocale(e,u),p=o(e,r,f);if(!isString(i)||""===i)return new Intl.DateTimeFormat(f,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let v=s.get(O);return v||(v=new Intl.DateTimeFormat(b,assign({},E,m)),s.set(O,v)),_?v.formatToParts(c):v.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,a,n,r]=e,l={};let o,s={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const a=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(a);try{o.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);o=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);o=t}return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?s[e]=a[e]:l[e]=a[e]})),isString(n)?l.locale=n:isPlainObject(n)&&(s=n),isPlainObject(r)&&(s=r),[l.key||"",o,l,s]}function clearDateTimeFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=parseNumberArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,f=getLocale(e,u),p=o(e,r,f);if(!isString(i)||""===i)return new Intl.NumberFormat(f,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let v=s.get(O);return v||(v=new Intl.NumberFormat(b,assign({},E,m)),s.set(O,v)),_?v.formatToParts(c):v.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,a,n,r]=e,l={};let o={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const s=t;return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?o[e]=a[e]:l[e]=a[e]})),isString(n)?l.locale=n:isPlainObject(n)&&(o=n),isPlainObject(r)&&(o=r),[l.key||"",s,l,o]}function clearNumberFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const VERSION="9.14.1",code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),LegacyInstanceSymbol=makeSymbol("__legacyVueI18n"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function isLegacyVueI18n(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let r=e,l=!1;for(let e=0;e<n;e++){if(a[e]in r||(r[a[e]]={}),!isObject(r[a[e]])){l=!0;break}r=r[a[e]]}l||(r[a[n]]=e[t],delete e[t]),isObject(r[a[n]])&&handleFlatJson(r[a[n]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:a,__i18n:n,messageResolver:r,flatJson:l}=t,o=isPlainObject(a)?a:isArray(n)?{}:{[e]:{}};if(isArray(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},deepCopy(a,o[t])):deepCopy(a,o)}else isString(e)&&deepCopy(JSON.parse(e),o)})),null==r&&l)for(const s in o)hasOwn(o,s)&&handleFlatJson(o[s]);return o}function getComponentOptions(e){return e.proxy.$options}function adjustI18nResources(e,t,a){let n=isObject(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=getLocaleMessages(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),isObject(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(isObject(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function createTextNode(e){return createVNodeVue2Compatible(e)}function createVNodeVue2Compatible(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:a,__injectWithOption:n}=e,r=void 0===a,l=e.flatJson,o=inBrowser?ref:shallowRef,s=!!e.translateExistCompatible;let i=!isBoolean(e.inheritLocale)||e.inheritLocale;const c=o(a&&i?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),u=o(a&&i?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),m=o(getLocaleMessages(c.value,e)),g=o(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),_=o(isPlainObject(e.numberFormats)?e.numberFormats:{[c.value]:{}});let f=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,b=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,d=!!e.fallbackFormat,E=isFunction(e.missing)?e.missing:null,O=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,v=isFunction(e.postTranslation)?e.postTranslation:null,N=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,T=!!e.escapeParameter;const S=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let h,I,y=e.pluralRules||a&&a.pluralRules;{isLegacyVueI18n(t);const e={locale:c.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:g.value,numberFormats:_.value,modifiers:S,missing:E,fallbackRoot:b,postTranslation:v,pluralizationRules:y,escapeParameterHtml:T,sync:i,silentFallbackWarn:isBoolean(p)?!p:p,silentTranslationWarn:isBoolean(f)?!f:f,formatFallbackMessages:isBoolean(d)?!d:d,warnHtmlInMessage:isBoolean(N)&&N?"warn":"off",__VUE_I18N_BRIDGE__:__VUE_I18N_BRIDGE__};h=new t(e)}I=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:c.value,fallbackLocale:u.value,messages:m.value,modifiers:S,pluralRules:y,missing:null===O?void 0:O,missingWarn:f,fallbackWarn:p,fallbackFormat:d,unresolving:!0,postTranslation:null===v?void 0:v,warnHtmlMessage:N,escapeParameter:T,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=g.value,t.numberFormats=_.value,t.__datetimeFormatters=isPlainObject(I)?I.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(I)?I.__numberFormatters:void 0;const a=createCoreContext(t);return r&&setFallbackContext(a),a})(),updateFallbackLocale(I,c.value,u.value);const L=computed({get:()=>c.value,set:e=>{c.value=e,h&&!r&&(h.locale=e),I.locale=c.value}}),F=computed({get:()=>u.value,set:e=>{u.value=e,h&&!r&&(h.fallbackLocale=e),I.fallbackLocale=u.value,updateFallbackLocale(I,c.value,e)}}),C=computed((()=>m.value)),A=computed((()=>g.value)),k=computed((()=>_.value));const R=(e,t,n,l,o,s)=>{let i;c.value,u.value,m.value,g.value,_.value;try{0,r||(I.fallbackContext=a?getFallbackContext():void 0),i=e(I)}finally{r||(I.fallbackContext=void 0)}if("translate exists"!==n&&isNumber(i)&&i===NOT_REOSLVED||"translate exists"===n&&!i){const[e,n]=t();return a&&b?l(a):o(e)}if(s(i))return i;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function P(...e){return R((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const M={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function D(e){return m.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{i&&(c.value=e,h&&!r&&(h.locale=e),I.locale=e,updateFallbackLocale(I,c.value,u.value))})),watch(a.fallbackLocale,(e=>{i&&(u.value=e,h&&!r&&(h.fallbackLocale=e),I.fallbackLocale=e,updateFallbackLocale(I,c.value,u.value))})));const j={id:composerID,locale:L,fallbackLocale:F,get inheritLocale(){return i},set inheritLocale(e){i=e,h&&(h._sync=e),e&&a&&(c.value=a.locale.value,u.value=a.fallbackLocale.value,h&&(h.locale=a.locale.value,h.fallbackLocale=a.fallbackLocale.value),updateFallbackLocale(I,c.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:C,get modifiers(){return S},get pluralRules(){return y||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,I.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,I.fallbackWarn=p},get fallbackRoot(){return b},set fallbackRoot(e){b=e},get fallbackFormat(){return d},set fallbackFormat(e){d=e,I.fallbackFormat=d},get warnHtmlMessage(){return N},set warnHtmlMessage(e){N=e,I.warnHtmlMessage=e},get escapeParameter(){return T},set escapeParameter(e){T=e,I.escapeParameter=e},t:P,getLocaleMessage:D,setLocaleMessage:function(e,t){if(l){const a={[e]:t};for(const e in a)hasOwn(a,e)&&handleFlatJson(a[e]);t=a[e]}m.value[e]=t,h&&h.setLocaleMessage(e,t),I.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},h&&h.mergeLocaleMessage(e,t);const a={[e]:t};if(l)for(const n in a)hasOwn(a,n)&&handleFlatJson(a[n]);deepCopy(t=a[e],m.value[e]),I.messages=m.value},getPostTranslationHandler:function(){return isFunction(v)?v:null},setPostTranslationHandler:function(e){v=e,I.postTranslation=e},getMissingHandler:function(){return E},setMissingHandler:function(e){null!==e&&(O=defineCoreMissingHandler(e)),E=e,I.missing=O},[SetPluralRulesSymbol]:function(e){y=e,I.pluralRules=y}};return j.datetimeFormats=A,j.numberFormats=k,j.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return P(t,a,assign({resolvedMessage:!0},n||{}))},j.te=function(e,t){return R((()=>{if(!e)return!1;const a=D(isString(t)?t:c.value),n=I.messageResolver(a,e);return s?null!=n:isMessageAST(n)||isMessageFunction(n)||isString(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},j.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(I,u.value,c.value);for(let n=0;n<a.length;n++){const r=m.value[a[n]]||{},l=I.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},j.d=function(...e){return R((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},j.n=function(...e){return R((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},j.getDateTimeFormat=function(e){return g.value[e]||{}},j.setDateTimeFormat=function(e,t){g.value[e]=t,h&&h.setDateTimeFormat(e,t),I.datetimeFormats=g.value,clearDateTimeFormat(I,e,t)},j.mergeDateTimeFormat=function(e,t){g.value[e]=assign(g.value[e]||{},t),h&&h.mergeDateTimeFormat(e,t),I.datetimeFormats=g.value,clearDateTimeFormat(I,e,t)},j.getNumberFormat=function(e){return _.value[e]||{}},j.setNumberFormat=function(e,t){_.value[e]=t,h&&h.setNumberFormat(e,t),I.numberFormats=_.value,clearNumberFormat(I,e,t)},j.mergeNumberFormat=function(e,t){_.value[e]=assign(_.value[e]||{},t),h&&h.mergeNumberFormat(e,t),I.numberFormats=_.value,clearNumberFormat(I,e,t)},j[InejctWithOptionSymbol]=n,j[TranslateVNodeSymbol]=function(...e){return R((t=>{let a;const n=t;try{n.processor=M,a=Reflect.apply(translate,null,[n,...e])}finally{n.processor=null}return a}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},j[DatetimePartsSymbol]=function(...e){return R((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},j[NumberPartsSymbol]=function(...e){return R((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},j[LegacyInstanceSymbol]=h,j}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(e){return e}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:a,attrs:n}=t,r=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(a).filter((e=>"_"!==e)),o={};e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=isString(e.plural)?+e.plural:e.plural);const s=getInterpolateArg(t,l),i=r[TranslateVNodeSymbol](e.keypath,s,o),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,a,n){const{slots:r,attrs:l}=t;return()=>{const t={part:!0};let o={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const s=n(e.value,t,o);let i=[t.key];isArray(s)?i=s.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:s}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(s)&&(i=[s]);const c=assign({},l),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>a[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function apply(e,...t){const a=isPlainObject(t[0])?t[0]:{};(!isBoolean(a.globalInstall)||a.globalInstall)&&(e.component(Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat))}function defineMixin(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(isPlainObject(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:r}=a.i18n;r&&isPlainObject(r)&&deepCopy(r,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.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:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||isPlainObject(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.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)}))}}}let _legacyVueI18n=null;const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){_legacyVueI18n=t;const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,l=new Map,[o,s]=createGlobal(e,a,t);{const e=s[LegacyInstanceSymbol];let t=null;Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>a?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(r,...l)=>{if(2!==(r&&r.version&&Number(r.version.split(".")[0])||-1))throw Error(I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY);apply(r,...l),!a&&n&&(t=injectGlobalFieldsForBridge(r,e,s)),r.mixin(defineMixin(e,_legacyVueI18n))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),o.stop()}});const i={__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(i).forEach((t=>Object.defineProperty(e,t,{value:i[t]}))),e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(null==_legacyVueI18n)throw Error(I18nErrorCodes.NOT_INSTALLED);const a=getI18nInstance(t),n=getGlobalComposer(a),r=getComponentOptions(t),l=getScope(e,r);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,l,n,e)}if("global"===l)return adjustI18nResources(n,e,r),n;if("parent"===l){let r=getComposer(a,t,e.__useComponent);return null==r&&(r=n),r}const o=a;let s=o.__getInstance(t);if(null==s){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),s=createComposer(a,_legacyVueI18n),o.__composerExtend&&(s[DisposeSymbol]=o.__composerExtend(s)),setupLifeCycle(o,t,s),o.__setInstance(t,s)}return s}const castToVueI18n=e=>{if(!(__VUE_I18N_BRIDGE__ in e))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function createGlobal(e,t,a){const n=effectScope();{if(!isLegacyVueI18n(a))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=n.run((()=>createComposer(e,a)));if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,t]}}function getI18nInstance(e){{const t=e.proxy;if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(I18nErrorCodes.NOT_INSTALLED);return a}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.global}function getComposer(e,t,a=!1){let n=null;const r=t.root;let l=getParentComponentInstance(t,a);for(;null!=l;){const t=e;if("composition"===e.mode)n=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(n=e.__composer,a&&n&&!n[InejctWithOptionSymbol]&&(n=null))}if(null!=n)break;if(r===l)break;l=l.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:e.parent}function setupLifeCycle(e,t,a){{const n=t.proxy;if(null==n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=a[LegacyInstanceSymbol];if(r===e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);n._i18n=r,n._i18n_bridge=!0,inBrowser&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let l=!1;onBeforeMount((()=>{n._i18n.subscribeDataChanging(n),l=!0})),onUnmounted((()=>{l&&(n._i18n.unsubscribeDataChanging(n),l=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}))}}function useI18nForLegacy(e,t,a,n={}){const r="local"===t,l=shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),s=ref(!r||o?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||o?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:s.value),c=ref(getLocaleMessages(s.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[s.value]:{}}),g=r?a.missingWarn:!isBoolean(n.missingWarn)&&!isRegExp(n.missingWarn)||n.missingWarn,_=r?a.fallbackWarn:!isBoolean(n.fallbackWarn)&&!isRegExp(n.fallbackWarn)||n.fallbackWarn,f=r?a.fallbackRoot:!isBoolean(n.fallbackRoot)||n.fallbackRoot,p=!!n.fallbackFormat,b=isFunction(n.missing)?n.missing:null,d=isFunction(n.postTranslation)?n.postTranslation:null,E=r?a.warnHtmlMessage:!isBoolean(n.warnHtmlMessage)||n.warnHtmlMessage,O=!!n.escapeParameter,v=r?a.modifiers:isPlainObject(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&a.pluralRules;function T(e){return s.value,i.value,c.value,u.value,m.value,e()}const S={get id(){return l.value?l.value.id:-1},locale:computed({get:()=>l.value?l.value.locale.value:s.value,set:e=>{l.value&&(l.value.locale.value=e),s.value=e}}),fallbackLocale:computed({get:()=>l.value?l.value.fallbackLocale.value:i.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),i.value=e}}),messages:computed((()=>l.value?l.value.messages.value:c.value)),datetimeFormats:computed((()=>u.value)),numberFormats:computed((()=>m.value)),get inheritLocale(){return l.value?l.value.inheritLocale:o},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(c.value)},get modifiers(){return l.value?l.value.modifiers:v},get pluralRules(){return l.value?l.value.pluralRules:N},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:g},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:_},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:f},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:p},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:E},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:O},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:function(...e){return l.value?T((()=>Reflect.apply(l.value.t,null,[...e]))):T((()=>""))},getPostTranslationHandler:function(){return l.value?l.value.getPostTranslationHandler():d},setPostTranslationHandler:function(e){l.value&&l.value.setPostTranslationHandler(e)},getMissingHandler:function(){return l.value?l.value.getMissingHandler():b},setMissingHandler:function(e){l.value&&l.value.setMissingHandler(e)},rt:function(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""},d:function(...e){return l.value?T((()=>Reflect.apply(l.value.d,null,[...e]))):T((()=>""))},n:function(...e){return l.value?T((()=>Reflect.apply(l.value.n,null,[...e]))):T((()=>""))},tm:function(e){return l.value?l.value.tm(e):{}},te:function(e,t){return!!l.value&&l.value.te(e,t)},getLocaleMessage:function(e){return l.value?l.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){l.value&&(l.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){l.value&&l.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return l.value?l.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){l.value&&(l.value.setDateTimeFormat(e,t),u.value[e]=t)},mergeDateTimeFormat:function(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return l.value?l.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){l.value&&(l.value.setNumberFormat(e,t),m.value[e]=t)},mergeNumberFormat:function(e,t){l.value&&l.value.mergeNumberFormat(e,t)}};return onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=l.value=e.proxy.$i18n.__composer;"global"===t?(s.value=a.locale.value,i.value=a.fallbackLocale.value,c.value=a.messages.value,u.value=a.datetimeFormats.value,m.value=a.numberFormats.value):r&&function(e){e.locale.value=s.value,e.fallbackLocale.value=i.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(u.value).forEach((t=>{e.mergeDateTimeFormat(t,u.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeNumberFormat(t,m.value[t])})),e.escapeParameter=O,e.fallbackFormat=p,e.fallbackRoot=f,e.fallbackWarn=_,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),S}function injectGlobalFieldsForBridge(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n};
import{computed,watch,getCurrentInstance,ref,shallowRef,defineComponent,h,effectScope,onBeforeMount,onUnmounted}from"vue-demi";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,a)=>friendlyJSONstringify({l:e,k:t,s:a}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length,assign=Object.assign,_create=Object.create,create=(e=null)=>_create(e);function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}function incrementer(e){let t=e;return()=>++t}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("Invalid value");const a=[{src:e,des:t}];for(;a.length;){const{src:e,des:t}=a.pop();Object.keys(e).forEach((n=>{"__proto__"!==n&&(isObject(e[n])&&!isObject(t[n])&&(t[n]=Array.isArray(e[n])?[]:create()),isNotObjectOrIsArray(t[n])||isNotObjectOrIsArray(e[n])?t[n]=e[n]:a.push({src:e[n],des:t[n]}))}))}}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let a,n,r,l,o,s,i,c=-1,u=0,m=0;const g=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,g[0](),!0}for(g[0]=()=>{void 0===n?n=r:n+=r},g[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},g[2]=()=>{g[0](),m++},g[3]=()=>{if(m>0)m--,u=4,g[0]();else{if(m=0,void 0===n)return!1;if(n=formatSubPath(n),!1===n)return!1;g[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(l=getPathCharType(a),i=pathStateMachine[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=g[o[1]],s&&(r=a,!1===s())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let a=cache.get(t);if(a||(a=parse(t),a&&cache.set(t,a)),!a)return null;const n=a.length;let r=e,l=0;for(;l<n;){const e=r[a[l]];if(void 0===e)return null;if(isFunction(r))return null;r=e,l++}return r}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,a=getPluralIndex(e),n=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,l=e.list||[],o=e.named||create();isNumber(e.pluralIndex)&&normalizeNamed(a,o);function s(t){const a=isFunction(e.messages)?e.messages(t):!!isObject(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>l[e],named:e=>o[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let l="text",o="";1===a.length?isObject(n)?(o=n.modifier||o,l=n.type||l):isString(n)&&(o=n||o):2===a.length&&(isString(n)&&(o=n||o),isString(r)&&(l=r||l));const i=s(t)(u),c="vnode"===l&&isArray(i)&&o?i[0]:i;return o?(m=o,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,l):c;var m},message:s,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign(create(),l,o)};return u}const code$1=CompileErrorCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$1(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$1(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$1(),NOT_SUPPORT_LOCALE_TYPE:inc$1(),__EXTEND_POINT__:inc$1()};function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,a){return[...new Set([a,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[a]])]}function fallbackWithLocaleChain(e,t,a){const n=isString(a)?a:DEFAULT_LOCALE,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(n);if(!l){l=[];let e=[a];for(;isArray(e);)e=appendBlockToChain(l,e,t);const o=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(o)?[o]:o,isArray(e)&&appendBlockToChain(l,e,!1),r.__localeChainCache.set(n,l)}return l}function appendBlockToChain(e,t,a){let n=!0;for(let r=0;r<t.length&&isBoolean(n);r++){const l=t[r];isString(l)&&(n=appendLocaleToChain(e,t[r],a))}return n}function appendLocaleToChain(e,t,a){let n;const r=t.split("-");do{n=appendItemToChain(e,r.join("-"),a),r.splice(-1,1)}while(r.length&&!0===n);return n}function appendItemToChain(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(isArray(a)||isPlainObject(a))&&a[r]&&(n=a[r])}return n}const VERSION$1="9.14.2",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,a=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,r=isFunction(n)?DEFAULT_LOCALE:n,l=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=isPlainObject(e.messages)?e.messages:createResources(r),s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:createResources(r),i=isPlainObject(e.numberFormats)?e.numberFormats:createResources(r),c=assign(create(),e.modifiers,getDefaultLinkedModifiers()),u=e.pluralRules||create(),m=isFunction(e.missing)?e.missing:null,g=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,_=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,p=!!e.unresolving,b=isFunction(e.postTranslation)?e.postTranslation:null,d=isPlainObject(e.processor)?e.processor:null,E=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,v=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,N=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,T=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,S=isObject(e.fallbackContext)?e.fallbackContext:void 0,h=e,I=isObject(h.__datetimeFormatters)?h.__datetimeFormatters:new Map,y=isObject(h.__numberFormatters)?h.__numberFormatters:new Map,L=isObject(h.__meta)?h.__meta:{};_cid++;const F={version:a,cid:_cid,locale:n,fallbackLocale:l,messages:o,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:_,fallbackFormat:f,unresolving:p,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:O,messageCompiler:v,messageResolver:N,localeFallbacker:T,fallbackContext:S,onWarn:t,__meta:L};return F.datetimeFormats=s,F.numberFormats=i,F.__datetimeFormatters=I,F.__numberFormatters=y,F}const createResources=e=>({[e]:create()});function handleMissing(e,t,a,n,r){const{missing:l,onWarn:o}=e;if(null!==l){const n=l(e,a,t,r);return isString(n)?n:t}return t}function updateFallbackLocale(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}function isAlmostSameLocale(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function isImplicitFallback(e,t){const a=t.indexOf(e);if(-1===a)return!1;for(let n=a+1;n<t.length;n++)if(isAlmostSameLocale(e,t[n]))return!0;return!1}const PROPS_TYPE=["t","type"];function resolveType(e){return resolveProps(e,PROPS_TYPE)}function resolveProps(e,t,a){for(let n=0;n<t.length;n++){const a=t[n];if(hasOwn(e,a)&&null!=e[a])return e[a]}return a}function isMessageAST(e){return isObject(e)&&0===resolveType(e)&&(hasOwn(e,"b")||hasOwn(e,"body"))}create();const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,g=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,_=!!c.resolvedMessage,f=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?l?i:()=>i:c.default:a?l?i:()=>i:"",p=a||""!==f,b=getLocale(e,c);g&&escapeParams(c);let[d,E,O]=_?[i,b,s[b]||create()]:resolveMessageFormat(e,i,b,o,m,u),v=d,N=i;if(_||isString(v)||isMessageAST(v)||isMessageFunction(v)||p&&(v=f,N=v),!(_||(isString(v)||isMessageAST(v)||isMessageFunction(v))&&isString(E)))return r?NOT_REOSLVED:i;let T=!1;const S=isMessageFunction(v)?v:compileMessageFormat(e,i,E,v,N,(()=>{T=!0}));if(T)return v;const h=evaluateMessage(e,S,createMessageContext(getMessageContextOptions(e,E,O,c)));return n?n(h,i):h}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,a,n,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g=create(),_=null;for(let f=0;f<u.length&&(m=u[f],g=o[m]||create(),null===(_=i(g,t))&&(_=g[t]),!(isString(_)||isMessageAST(_)||isMessageFunction(_)));f++)if(!isImplicitFallback(m,u)){const a=handleMissing(e,t,m,l,"translate");a!==t&&(_=a)}return[_,m,g]}function compileMessageFormat(e,t,a,n,r,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==o){const e=()=>n;return e.locale=a,e.key=t,e}const i=o(n,getCompileContext(e,a,r,n,s,l));return i.locale=a,i.key=t,i.source=n,i}function evaluateMessage(e,t,a){return t(a)}function parseTranslateArgs(...e){const[t,a,n]=e,r=create();if(!(isString(t)||isNumber(t)||isMessageFunction(t)||isMessageAST(t)))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const l=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(a)?r.plural=a:isString(a)?r.default=a:isPlainObject(a)&&!isEmptyObject(a)?r.named=a:isArray(a)&&(r.list=a),isNumber(n)?r.plural=n:isString(n)?r.default=n:isPlainObject(n)&&assign(r,n),[l,r]}function getCompileContext(e,t,a,n,r,l){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw l&&l(e),e},onCacheKey:e=>generateFormatCacheKey(t,a,e)}}function getMessageContextOptions(e,t,a,n){const{modifiers:r,pluralRules:l,messageResolver:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:l,messages:n=>{let r=o(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,s,i,c);r=o(e,n)}if(isString(r)||isMessageAST(r)){let a=!1;const l=compileMessageFormat(e,n,t,r,n,(()=>{a=!0}));return a?NOOP_MESSAGE_FUNCTION:l}return isMessageFunction(r)?r:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),isNumber(n.plural)&&(m.pluralIndex=n.plural),m}function datetime(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=parseDateTimeArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,f=getLocale(e,u),p=o(e,r,f);if(!isString(i)||""===i)return new Intl.DateTimeFormat(f,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let v=s.get(O);return v||(v=new Intl.DateTimeFormat(b,assign({},E,m)),s.set(O,v)),_?v.formatToParts(c):v.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,a,n,r]=e,l=create();let o,s=create();if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const a=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(a);try{o.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);o=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);o=t}return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?s[e]=a[e]:l[e]=a[e]})),isString(n)?l.locale=n:isPlainObject(n)&&(s=n),isPlainObject(r)&&(s=r),[l.key||"",o,l,s]}function clearDateTimeFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=parseNumberArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,f=getLocale(e,u),p=o(e,r,f);if(!isString(i)||""===i)return new Intl.NumberFormat(f,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let v=s.get(O);return v||(v=new Intl.NumberFormat(b,assign({},E,m)),s.set(O,v)),_?v.formatToParts(c):v.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,a,n,r]=e,l=create();let o=create();if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const s=t;return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?o[e]=a[e]:l[e]=a[e]})),isString(n)?l.locale=n:isPlainObject(n)&&(o=n),isPlainObject(r)&&(o=r),[l.key||"",s,l,o]}function clearNumberFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const VERSION="9.14.2",code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),LegacyInstanceSymbol=makeSymbol("__legacyVueI18n"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function isLegacyVueI18n(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let r=e,l=!1;for(let e=0;e<n;e++){if(a[e]in r||(r[a[e]]=create()),!isObject(r[a[e]])){l=!0;break}r=r[a[e]]}l||(r[a[n]]=e[t],delete e[t]),isObject(r[a[n]])&&handleFlatJson(r[a[n]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:a,__i18n:n,messageResolver:r,flatJson:l}=t,o=isPlainObject(a)?a:isArray(n)?create():{[e]:create()};if(isArray(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||create(),deepCopy(a,o[t])):deepCopy(a,o)}else isString(e)&&deepCopy(JSON.parse(e),o)})),null==r&&l)for(const s in o)hasOwn(o,s)&&handleFlatJson(o[s]);return o}function getComponentOptions(e){return e.proxy.$options}function adjustI18nResources(e,t,a){let n=isObject(t.messages)?t.messages:create();"__i18nGlobal"in a&&(n=getLocaleMessages(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),isObject(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(isObject(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function createTextNode(e){return createVNodeVue2Compatible(e)}function createVNodeVue2Compatible(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:a,__injectWithOption:n}=e,r=void 0===a,l=e.flatJson,o=inBrowser?ref:shallowRef,s=!!e.translateExistCompatible;let i=!isBoolean(e.inheritLocale)||e.inheritLocale;const c=o(a&&i?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),u=o(a&&i?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),m=o(getLocaleMessages(c.value,e)),g=o(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),_=o(isPlainObject(e.numberFormats)?e.numberFormats:{[c.value]:{}});let f=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,b=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,d=!!e.fallbackFormat,E=isFunction(e.missing)?e.missing:null,O=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,v=isFunction(e.postTranslation)?e.postTranslation:null,N=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,T=!!e.escapeParameter;const S=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let h,I,y=e.pluralRules||a&&a.pluralRules;{isLegacyVueI18n(t);const e={locale:c.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:g.value,numberFormats:_.value,modifiers:S,missing:E,fallbackRoot:b,postTranslation:v,pluralizationRules:y,escapeParameterHtml:T,sync:i,silentFallbackWarn:isBoolean(p)?!p:p,silentTranslationWarn:isBoolean(f)?!f:f,formatFallbackMessages:isBoolean(d)?!d:d,warnHtmlInMessage:isBoolean(N)&&N?"warn":"off",__VUE_I18N_BRIDGE__:__VUE_I18N_BRIDGE__};h=new t(e)}I=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:c.value,fallbackLocale:u.value,messages:m.value,modifiers:S,pluralRules:y,missing:null===O?void 0:O,missingWarn:f,fallbackWarn:p,fallbackFormat:d,unresolving:!0,postTranslation:null===v?void 0:v,warnHtmlMessage:N,escapeParameter:T,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=g.value,t.numberFormats=_.value,t.__datetimeFormatters=isPlainObject(I)?I.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(I)?I.__numberFormatters:void 0;const a=createCoreContext(t);return r&&setFallbackContext(a),a})(),updateFallbackLocale(I,c.value,u.value);const L=computed({get:()=>c.value,set:e=>{c.value=e,h&&!r&&(h.locale=e),I.locale=c.value}}),F=computed({get:()=>u.value,set:e=>{u.value=e,h&&!r&&(h.fallbackLocale=e),I.fallbackLocale=u.value,updateFallbackLocale(I,c.value,e)}}),C=computed((()=>m.value)),A=computed((()=>g.value)),k=computed((()=>_.value));const P=(e,t,n,l,o,s)=>{let i;c.value,u.value,m.value,g.value,_.value;try{0,r||(I.fallbackContext=a?getFallbackContext():void 0),i=e(I)}finally{r||(I.fallbackContext=void 0)}if("translate exists"!==n&&isNumber(i)&&i===NOT_REOSLVED||"translate exists"===n&&!i){const[e,n]=t();return a&&b?l(a):o(e)}if(s(i))return i;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function R(...e){return P((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const M={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function D(e){return m.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{i&&(c.value=e,h&&!r&&(h.locale=e),I.locale=e,updateFallbackLocale(I,c.value,u.value))})),watch(a.fallbackLocale,(e=>{i&&(u.value=e,h&&!r&&(h.fallbackLocale=e),I.fallbackLocale=e,updateFallbackLocale(I,c.value,u.value))})));const j={id:composerID,locale:L,fallbackLocale:F,get inheritLocale(){return i},set inheritLocale(e){i=e,h&&(h._sync=e),e&&a&&(c.value=a.locale.value,u.value=a.fallbackLocale.value,h&&(h.locale=a.locale.value,h.fallbackLocale=a.fallbackLocale.value),updateFallbackLocale(I,c.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:C,get modifiers(){return S},get pluralRules(){return y||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,I.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,I.fallbackWarn=p},get fallbackRoot(){return b},set fallbackRoot(e){b=e},get fallbackFormat(){return d},set fallbackFormat(e){d=e,I.fallbackFormat=d},get warnHtmlMessage(){return N},set warnHtmlMessage(e){N=e,I.warnHtmlMessage=e},get escapeParameter(){return T},set escapeParameter(e){T=e,I.escapeParameter=e},t:R,getLocaleMessage:D,setLocaleMessage:function(e,t){if(l){const a={[e]:t};for(const e in a)hasOwn(a,e)&&handleFlatJson(a[e]);t=a[e]}m.value[e]=t,h&&h.setLocaleMessage(e,t),I.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},h&&h.mergeLocaleMessage(e,t);const a={[e]:t};if(l)for(const n in a)hasOwn(a,n)&&handleFlatJson(a[n]);deepCopy(t=a[e],m.value[e]),I.messages=m.value},getPostTranslationHandler:function(){return isFunction(v)?v:null},setPostTranslationHandler:function(e){v=e,I.postTranslation=e},getMissingHandler:function(){return E},setMissingHandler:function(e){null!==e&&(O=defineCoreMissingHandler(e)),E=e,I.missing=O},[SetPluralRulesSymbol]:function(e){y=e,I.pluralRules=y}};return j.datetimeFormats=A,j.numberFormats=k,j.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return R(t,a,assign({resolvedMessage:!0},n||{}))},j.te=function(e,t){return P((()=>{if(!e)return!1;const a=D(isString(t)?t:c.value),n=I.messageResolver(a,e);return s?null!=n:isMessageAST(n)||isMessageFunction(n)||isString(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},j.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(I,u.value,c.value);for(let n=0;n<a.length;n++){const r=m.value[a[n]]||{},l=I.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},j.d=function(...e){return P((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},j.n=function(...e){return P((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},j.getDateTimeFormat=function(e){return g.value[e]||{}},j.setDateTimeFormat=function(e,t){g.value[e]=t,h&&h.setDateTimeFormat(e,t),I.datetimeFormats=g.value,clearDateTimeFormat(I,e,t)},j.mergeDateTimeFormat=function(e,t){g.value[e]=assign(g.value[e]||{},t),h&&h.mergeDateTimeFormat(e,t),I.datetimeFormats=g.value,clearDateTimeFormat(I,e,t)},j.getNumberFormat=function(e){return _.value[e]||{}},j.setNumberFormat=function(e,t){_.value[e]=t,h&&h.setNumberFormat(e,t),I.numberFormats=_.value,clearNumberFormat(I,e,t)},j.mergeNumberFormat=function(e,t){_.value[e]=assign(_.value[e]||{},t),h&&h.mergeNumberFormat(e,t),I.numberFormats=_.value,clearNumberFormat(I,e,t)},j[InejctWithOptionSymbol]=n,j[TranslateVNodeSymbol]=function(...e){return P((t=>{let a;const n=t;try{n.processor=M,a=Reflect.apply(translate,null,[n,...e])}finally{n.processor=null}return a}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},j[DatetimePartsSymbol]=function(...e){return P((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},j[NumberPartsSymbol]=function(...e){return P((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},j[LegacyInstanceSymbol]=h,j}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),create())}function getFragmentableTag(e){return e}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:a,attrs:n}=t,r=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(a).filter((e=>"_"!==e)),o=create();e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=isString(e.plural)?+e.plural:e.plural);const s=getInterpolateArg(t,l),i=r[TranslateVNodeSymbol](e.keypath,s,o),c=assign(create(),n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,a,n){const{slots:r,attrs:l}=t;return()=>{const t={part:!0};let o=create();e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign(create(),t,{[n]:e.format[n]}):t),create()));const s=n(e.value,t,o);let i=[t.key];isArray(s)?i=s.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:s}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(s)&&(i=[s]);const c=assign(create(),l),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>a[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function apply(e,...t){const a=isPlainObject(t[0])?t[0]:{};(!isBoolean(a.globalInstall)||a.globalInstall)&&(e.component(Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat))}function defineMixin(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(isPlainObject(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:r}=a.i18n;r&&isPlainObject(r)&&deepCopy(r,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.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:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||isPlainObject(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.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)}))}}}let _legacyVueI18n=null;const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){_legacyVueI18n=t;const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,l=new Map,[o,s]=createGlobal(e,a,t);{const e=s[LegacyInstanceSymbol];let t=null;Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>a?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(r,...l)=>{if(2!==(r&&r.version&&Number(r.version.split(".")[0])||-1))throw Error(I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY);apply(r,...l),!a&&n&&(t=injectGlobalFieldsForBridge(r,e,s)),r.mixin(defineMixin(e,_legacyVueI18n))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),o.stop()}});const i={__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(i).forEach((t=>Object.defineProperty(e,t,{value:i[t]}))),e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(null==_legacyVueI18n)throw Error(I18nErrorCodes.NOT_INSTALLED);const a=getI18nInstance(t),n=getGlobalComposer(a),r=getComponentOptions(t),l=getScope(e,r);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,l,n,e)}if("global"===l)return adjustI18nResources(n,e,r),n;if("parent"===l){let r=getComposer(a,t,e.__useComponent);return null==r&&(r=n),r}const o=a;let s=o.__getInstance(t);if(null==s){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),s=createComposer(a,_legacyVueI18n),o.__composerExtend&&(s[DisposeSymbol]=o.__composerExtend(s)),setupLifeCycle(o,t,s),o.__setInstance(t,s)}return s}const castToVueI18n=e=>{if(!(__VUE_I18N_BRIDGE__ in e))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function createGlobal(e,t,a){const n=effectScope();{if(!isLegacyVueI18n(a))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=n.run((()=>createComposer(e,a)));if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,t]}}function getI18nInstance(e){{const t=e.proxy;if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(I18nErrorCodes.NOT_INSTALLED);return a}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.global}function getComposer(e,t,a=!1){let n=null;const r=t.root;let l=getParentComponentInstance(t,a);for(;null!=l;){const t=e;if("composition"===e.mode)n=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(n=e.__composer,a&&n&&!n[InejctWithOptionSymbol]&&(n=null))}if(null!=n)break;if(r===l)break;l=l.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:e.parent}function setupLifeCycle(e,t,a){{const n=t.proxy;if(null==n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=a[LegacyInstanceSymbol];if(r===e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);n._i18n=r,n._i18n_bridge=!0,inBrowser&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let l=!1;onBeforeMount((()=>{n._i18n.subscribeDataChanging(n),l=!0})),onUnmounted((()=>{l&&(n._i18n.unsubscribeDataChanging(n),l=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}))}}function useI18nForLegacy(e,t,a,n={}){const r="local"===t,l=shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),s=ref(!r||o?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||o?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:s.value),c=ref(getLocaleMessages(s.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[s.value]:{}}),g=r?a.missingWarn:!isBoolean(n.missingWarn)&&!isRegExp(n.missingWarn)||n.missingWarn,_=r?a.fallbackWarn:!isBoolean(n.fallbackWarn)&&!isRegExp(n.fallbackWarn)||n.fallbackWarn,f=r?a.fallbackRoot:!isBoolean(n.fallbackRoot)||n.fallbackRoot,p=!!n.fallbackFormat,b=isFunction(n.missing)?n.missing:null,d=isFunction(n.postTranslation)?n.postTranslation:null,E=r?a.warnHtmlMessage:!isBoolean(n.warnHtmlMessage)||n.warnHtmlMessage,O=!!n.escapeParameter,v=r?a.modifiers:isPlainObject(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&a.pluralRules;function T(e){return s.value,i.value,c.value,u.value,m.value,e()}const S={get id(){return l.value?l.value.id:-1},locale:computed({get:()=>l.value?l.value.locale.value:s.value,set:e=>{l.value&&(l.value.locale.value=e),s.value=e}}),fallbackLocale:computed({get:()=>l.value?l.value.fallbackLocale.value:i.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),i.value=e}}),messages:computed((()=>l.value?l.value.messages.value:c.value)),datetimeFormats:computed((()=>u.value)),numberFormats:computed((()=>m.value)),get inheritLocale(){return l.value?l.value.inheritLocale:o},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(c.value)},get modifiers(){return l.value?l.value.modifiers:v},get pluralRules(){return l.value?l.value.pluralRules:N},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:g},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:_},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:f},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:p},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:E},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:O},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:function(...e){return l.value?T((()=>Reflect.apply(l.value.t,null,[...e]))):T((()=>""))},getPostTranslationHandler:function(){return l.value?l.value.getPostTranslationHandler():d},setPostTranslationHandler:function(e){l.value&&l.value.setPostTranslationHandler(e)},getMissingHandler:function(){return l.value?l.value.getMissingHandler():b},setMissingHandler:function(e){l.value&&l.value.setMissingHandler(e)},rt:function(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""},d:function(...e){return l.value?T((()=>Reflect.apply(l.value.d,null,[...e]))):T((()=>""))},n:function(...e){return l.value?T((()=>Reflect.apply(l.value.n,null,[...e]))):T((()=>""))},tm:function(e){return l.value?l.value.tm(e):{}},te:function(e,t){return!!l.value&&l.value.te(e,t)},getLocaleMessage:function(e){return l.value?l.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){l.value&&(l.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){l.value&&l.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return l.value?l.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){l.value&&(l.value.setDateTimeFormat(e,t),u.value[e]=t)},mergeDateTimeFormat:function(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return l.value?l.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){l.value&&(l.value.setNumberFormat(e,t),m.value[e]=t)},mergeNumberFormat:function(e,t){l.value&&l.value.mergeNumberFormat(e,t)}};return onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=l.value=e.proxy.$i18n.__composer;"global"===t?(s.value=a.locale.value,i.value=a.fallbackLocale.value,c.value=a.messages.value,u.value=a.datetimeFormats.value,m.value=a.numberFormats.value):r&&function(e){e.locale.value=s.value,e.fallbackLocale.value=i.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(u.value).forEach((t=>{e.mergeDateTimeFormat(t,u.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeNumberFormat(t,m.value[t])})),e.escapeParameter=O,e.fallbackFormat=p,e.fallbackRoot=f,e.fallbackWarn=_,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),S}function injectGlobalFieldsForBridge(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n};
/*!
* vue-i18n-bridge v9.14.1
* vue-i18n-bridge v9.14.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const a="undefined"!=typeof window,n=(e,t=!1)=>t?Symbol.for(e):Symbol(e),l=(e,t,a)=>r({l:e,k:t,s:a}),r=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 Date]"===k(e),i=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const g=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,d=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=e=>b(e)&&p(e.then)&&p(e.catch),E=Object.prototype.toString,k=e=>E.call(e),y=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function N(e){let t=e;return()=>++t}function L(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const T=e=>!b(e)||g(e);function O(e,t){if(T(e)||T(t))throw new Error("Invalid value");const a=[{src:e,des:t}];for(;a.length;){const{src:e,des:t}=a.pop();Object.keys(e).forEach((n=>{b(e[n])&&!b(t[n])&&(t[n]=Array.isArray(e[n])?[]:{}),T(t[n])||T(e[n])?t[n]=e[n]:a.push({src:e[n],des:t[n]})}))}}const 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 R=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function F(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)))&&(a=t,R.test(a)?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 a}const C=new Map;function w(e,t){return b(e)?e[t]:null}const M=e=>e,P=e=>"",A="text",D=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),S=e=>null==e?"":g(e)||y(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function U(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function $(e={}){const t=e.locale,a=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),n=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?e.pluralRules[t]:U,l=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?U:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,s);function i(t){const a=p(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):P)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:D,m=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:S,f={list:e=>r[e],named:e=>s[e],plural:e=>e[n(a,e.length,l)],linked:(t,...a)=>{const[n,l]=a;let r="text",o="";1===a.length?b(n)?(o=n.modifier||o,r=n.type||r):v(n)&&(o=n||o):2===a.length&&(v(n)&&(o=n||o),v(l)&&(r=l||r));const s=i(t)(f),c="vnode"===r&&g(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:M)(c,r):c;var u},message:i,type:y(e.processor)&&v(e.processor.type)?e.processor.type:A,interpolate:m,normalize:c,values:u({},r,s)};return f}const V=N(17),j={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:V(),INVALID_ISO_DATE_ARGUMENT:V(),NOT_SUPPORT_NON_STRING_MESSAGE:V(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:V(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:V(),NOT_SUPPORT_LOCALE_TYPE:V(),__EXTEND_POINT__:V()};function x(e,t){return null!=t.locale?G(t.locale):G(e.locale)}let H;function G(e){if(v(e))return e;if(p(e)){if(e.resolvedOnce&&null!=H)return H;if("Function"===e.constructor.name){const t=e();if(h(t))throw Error(j.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return H=t}throw Error(j.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(j.NOT_SUPPORT_LOCALE_TYPE)}function B(e,t,a){return[...new Set([a,...g(t)?t:b(t)?Object.keys(t):v(t)?[t]:[a]])]}function Y(e,t,a){const n=v(a)?a:K,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=X(r,e,t);const o=g(t)||!y(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&X(r,e,!1),l.__localeChainCache.set(n,r)}return r}function X(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];v(r)&&(n=J(e,t[l],a))}return n}function J(e,t,a){let n;const l=t.split("-");do{n=z(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function z(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const l=t.replace(/!/g,"");e.push(l),(g(a)||y(a))&&a[l]&&(n=a[l])}return n}const q="9.14.1",Z=-1,K="en-US",Q="",ee=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let te,ae,ne;let le=null;const re=e=>{le=e},oe=()=>le;let se=0;function ie(e={}){const t=p(e.onWarn)?e.onWarn:L,a=v(e.version)?e.version:q,n=v(e.locale)||p(e.locale)?e.locale:K,l=p(n)?K:n,r=g(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l,o=y(e.messages)?e.messages:{[l]:{}},s=y(e.datetimeFormats)?e.datetimeFormats:{[l]:{}},c=y(e.numberFormats)?e.numberFormats:{[l]:{}},m=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?ee(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?ee(e.children):e}),f=e.pluralRules||{},_=p(e.missing)?e.missing:null,h=!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,E=!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,N=!!e.unresolving,T=p(e.postTranslation)?e.postTranslation:null,O=y(e.processor)?e.processor:null,I=!d(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,F=p(e.messageCompiler)?e.messageCompiler:te,W=p(e.messageResolver)?e.messageResolver:ae||w,C=p(e.localeFallbacker)?e.localeFallbacker:ne||B,M=b(e.fallbackContext)?e.fallbackContext:void 0,P=e,A=b(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,D=b(P.__numberFormatters)?P.__numberFormatters:new Map,S=b(P.__meta)?P.__meta:{};se++;const U={version:a,cid:se,locale:n,fallbackLocale:r,messages:o,modifiers:m,pluralRules:f,missing:_,missingWarn:h,fallbackWarn:E,fallbackFormat:k,unresolving:N,postTranslation:T,processor:O,warnHtmlMessage:I,escapeParameter:R,messageCompiler:F,messageResolver:W,localeFallbacker:C,fallbackContext:M,onWarn:t,__meta:S};return U.datetimeFormats=s,U.numberFormats=c,U.__datetimeFormatters=A,U.__numberFormatters=D,U}function ce(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return v(n)?n:t}return t}function ue(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}function me(e,t){const a=t.indexOf(e);if(-1===a)return!1;for(let r=a+1;r<t.length;r++)if(n=e,l=t[r],n!==l&&n.split("-")[0]===l.split("-")[0])return!0;var n,l;return!1}const fe=e=>b(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),_e=()=>"",ge=e=>p(e);function pe(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=be(...t),f=d(u.missingWarn)?u.missingWarn:e.missingWarn,_=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,E=v(u.default)||d(u.default)?d(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",k=a||""!==E,y=x(e,u);p&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?m(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(u);let[N,L,T]=h?[c,y,i[y]||{}]:ve(e,c,y,s,_,f),O=N,I=c;if(h||v(O)||fe(O)||ge(O)||k&&(O=E,I=O),!(h||(v(O)||fe(O)||ge(O))&&v(L)))return l?Z:c;let R=!1;const F=ge(O)?O:de(e,c,L,O,I,(()=>{R=!0}));if(R)return O;const W=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=ve(m,n,t,i,c,u);l=s(e,n)}if(v(l)||fe(l)){let a=!1;const r=de(e,n,t,l,n,(()=>{a=!0}));return a?_e:r}return ge(l)?l:_e},_={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);o(n.plural)&&(_.pluralIndex=n.plural);return _}(e,L,T,u),C=function(e,t,a){const n=t(a);return n}(0,F,$(W));return n?n(C,c):C}function ve(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,f={},_=null;for(let g=0;g<u.length&&(m=u[g],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!(v(_)||fe(_)||ge(_)));g++)if(!me(m,u)){const a=ce(e,t,m,0,"translate");a!==t&&(_=a)}return[_,m,f]}function de(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(ge(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==s){const e=()=>n;return e.locale=a,e.key=t,e}const c=s(n,function(e,t,a,n,r,o){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>l(t,a,e)}}(0,a,r,0,i,o));return c.locale=a,c.key=t,c.source=n,c}function be(...e){const[t,a,n]=e,l={};if(!(v(t)||o(t)||ge(t)||fe(t)))throw Error(j.INVALID_ARGUMENT);const r=o(t)?String(t):(ge(t),t);return o(a)?l.plural=a:v(a)?l.default=a:y(a)&&!c(a)?l.named=a:g(a)&&(l.list=a),o(n)?l.plural=n:v(n)?l.default=n:y(n)&&u(l,n),[r,l]}function he(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,m,f,_]=ke(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=x(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.DateTimeFormat(p,_).format(m);let h,E={},k=null;for(let c=0;c<b.length&&(h=b[c],E=a[h]||{},k=E[i],!y(k));c++)ce(e,i,h,0,"datetime format");if(!y(k)||!v(h))return n?Z:i;let N=`${h}__${i}`;c(_)||(N=`${N}__${JSON.stringify(_)}`);let L=s.get(N);return L||(L=new Intl.DateTimeFormat(h,u({},k,_)),s.set(N,L)),g?L.formatToParts(m):L.format(m)}const Ee=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ke(...e){const[t,a,n,l]=e,r={};let i,c={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(j.INVALID_ISO_DATE_ARGUMENT);const a=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(a);try{i.toISOString()}catch(u){throw Error(j.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(j.INVALID_DATE_ARGUMENT);i=t}else{if(!o(t))throw Error(j.INVALID_ARGUMENT);i=t}return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{Ee.includes(e)?c[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(c=n),y(l)&&(c=l),[r.key||"",i,r,c]}function ye(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function Ne(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,m,f,_]=Te(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=x(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.NumberFormat(p,_).format(m);let h,E={},k=null;for(let c=0;c<b.length&&(h=b[c],E=a[h]||{},k=E[i],!y(k));c++)ce(e,i,h,0,"number format");if(!y(k)||!v(h))return n?Z:i;let N=`${h}__${i}`;c(_)||(N=`${N}__${JSON.stringify(_)}`);let L=s.get(N);return L||(L=new Intl.NumberFormat(h,u({},k,_)),s.set(N,L)),g?L.formatToParts(m):L.format(m)}const Le=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Te(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(j.INVALID_ARGUMENT);const i=t;return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{Le.includes(e)?s[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(s=n),y(l)&&(s=l),[r.key||"",i,r,s]}function Oe(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const Ie="9.14.1",Re=j.__EXTEND_POINT__,Fe=N(Re),We={UNEXPECTED_RETURN_TYPE:Re,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSTALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSTALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fe(),__EXTEND_POINT__:Fe()},Ce=n("__translateVNode"),we=n("__datetimeParts"),Me=n("__numberParts"),Pe=n("__setPluralRules"),Ae=n("__legacyVueI18n"),De=n("__injectWithOption"),Se=n("__dispose"),Ue="__VUE_I18N_BRIDGE__";function $e(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Ve(e){if(!b(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let l=e,r=!1;for(let e=0;e<n;e++){if(a[e]in l||(l[a[e]]={}),!b(l[a[e]])){r=!0;break}l=l[a[e]]}r||(l[a[n]]=e[t],delete e[t]),b(l[a[n]])&&Ve(l[a[n]])}else b(e[t])&&Ve(e[t]);return e}function je(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=y(a)?a:g(n)?{}:{[e]:{}};if(g(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},O(a,o[t])):O(a,o)}else v(e)&&O(JSON.parse(e),o)})),null==l&&r)for(const s in o)_(o,s)&&Ve(o[s]);return o}function xe(e){return e.proxy.$options}function He(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const Ge=()=>[],Be=()=>!1;let Ye=0;function Xe(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Je(e={},n){const{__root:l,__injectWithOption:r}=e,s=void 0===l,c=e.flatJson,m=a?t.ref:t.shallowRef,f=!!e.translateExistCompatible;let h=!d(e.inheritLocale)||e.inheritLocale;const E=m(l&&h?l.locale.value:v(e.locale)?e.locale:K),k=m(l&&h?l.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:E.value),N=m(je(E.value,e)),L=m(y(e.datetimeFormats)?e.datetimeFormats:{[E.value]:{}}),T=m(y(e.numberFormats)?e.numberFormats:{[E.value]:{}});let I=l?l.missingWarn:!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,R=l?l.fallbackWarn:!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,F=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,W=!!e.fallbackFormat,C=p(e.missing)?e.missing:null,w=p(e.missing)?Xe(e.missing):null,M=p(e.postTranslation)?e.postTranslation:null,P=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter;const D=l?l.modifiers:y(e.modifiers)?e.modifiers:{};let S,U,$=e.pluralRules||l&&l.pluralRules;{$e(n);const e={locale:E.value,fallbackLocale:k.value,messages:N.value,dateTimeFormats:L.value,numberFormats:T.value,modifiers:D,missing:C,fallbackRoot:F,postTranslation:M,pluralizationRules:$,escapeParameterHtml:A,sync:h,silentFallbackWarn:d(R)?!R:R,silentTranslationWarn:d(I)?!I:I,formatFallbackMessages:d(W)?!W:W,warnHtmlInMessage:d(P)&&P?"warn":"off",__VUE_I18N_BRIDGE__:Ue};S=new n(e)}U=(()=>{s&&re(null);const t={version:Ie,locale:E.value,fallbackLocale:k.value,messages:N.value,modifiers:D,pluralRules:$,missing:null===w?void 0:w,missingWarn:I,fallbackWarn:R,fallbackFormat:W,unresolving:!0,postTranslation:null===M?void 0:M,warnHtmlMessage:P,escapeParameter:A,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=L.value,t.numberFormats=T.value,t.__datetimeFormatters=y(U)?U.__datetimeFormatters:void 0,t.__numberFormatters=y(U)?U.__numberFormatters:void 0;const a=ie(t);return s&&re(a),a})(),ue(U,E.value,k.value);const V=t.computed({get:()=>E.value,set:e=>{E.value=e,S&&!s&&(S.locale=e),U.locale=E.value}}),j=t.computed({get:()=>k.value,set:e=>{k.value=e,S&&!s&&(S.fallbackLocale=e),U.fallbackLocale=k.value,ue(U,E.value,e)}}),x=t.computed((()=>N.value)),H=t.computed((()=>L.value)),G=t.computed((()=>T.value));const B=(e,t,a,n,r,i)=>{let c;E.value,k.value,N.value,L.value,T.value;try{0,s||(U.fallbackContext=l?oe():void 0),c=e(U)}finally{s||(U.fallbackContext=void 0)}if("translate exists"!==a&&o(c)&&c===Z||"translate exists"===a&&!c){const[e,a]=t();return l&&F?n(l):r(e)}if(i(c))return c;throw Error(We.UNEXPECTED_RETURN_TYPE)};function X(...e){return B((t=>Reflect.apply(pe,null,[t,...e])),(()=>be(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const J={normalize:function(e){return e.map((e=>v(e)||o(e)||d(e)?He(String(e)):e))},interpolate:e=>e,type:"vnode"};function z(e){return N.value[e]||{}}Ye++,l&&a&&(t.watch(l.locale,(e=>{h&&(E.value=e,S&&!s&&(S.locale=e),U.locale=e,ue(U,E.value,k.value))})),t.watch(l.fallbackLocale,(e=>{h&&(k.value=e,S&&!s&&(S.fallbackLocale=e),U.fallbackLocale=e,ue(U,E.value,k.value))})));const q={id:Ye,locale:V,fallbackLocale:j,get inheritLocale(){return h},set inheritLocale(e){h=e,S&&(S._sync=e),e&&l&&(E.value=l.locale.value,k.value=l.fallbackLocale.value,S&&(S.locale=l.locale.value,S.fallbackLocale=l.fallbackLocale.value),ue(U,E.value,k.value))},get availableLocales(){return Object.keys(N.value).sort()},messages:x,get modifiers(){return D},get pluralRules(){return $||{}},get isGlobal(){return s},get missingWarn(){return I},set missingWarn(e){I=e,U.missingWarn=I},get fallbackWarn(){return R},set fallbackWarn(e){R=e,U.fallbackWarn=R},get fallbackRoot(){return F},set fallbackRoot(e){F=e},get fallbackFormat(){return W},set fallbackFormat(e){W=e,U.fallbackFormat=W},get warnHtmlMessage(){return P},set warnHtmlMessage(e){P=e,U.warnHtmlMessage=e},get escapeParameter(){return A},set escapeParameter(e){A=e,U.escapeParameter=e},t:X,getLocaleMessage:z,setLocaleMessage:function(e,t){if(c){const a={[e]:t};for(const e in a)_(a,e)&&Ve(a[e]);t=a[e]}N.value[e]=t,S&&S.setLocaleMessage(e,t),U.messages=N.value},mergeLocaleMessage:function(e,t){N.value[e]=N.value[e]||{},S&&S.mergeLocaleMessage(e,t);const a={[e]:t};if(c)for(const n in a)_(a,n)&&Ve(a[n]);O(t=a[e],N.value[e]),U.messages=N.value},getPostTranslationHandler:function(){return p(M)?M:null},setPostTranslationHandler:function(e){M=e,U.postTranslation=e},getMissingHandler:function(){return C},setMissingHandler:function(e){null!==e&&(w=Xe(e)),C=e,U.missing=w},[Pe]:function(e){$=e,U.pluralRules=$}};return q.datetimeFormats=H,q.numberFormats=G,q.rt=function(...e){const[t,a,n]=e;if(n&&!b(n))throw Error(We.INVALID_ARGUMENT);return X(t,a,u({resolvedMessage:!0},n||{}))},q.te=function(e,t){return B((()=>{if(!e)return!1;const a=z(v(t)?t:E.value),n=U.messageResolver(a,e);return f?null!=n:fe(n)||ge(n)||v(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),Be,(e=>d(e)))},q.tm=function(e){const t=function(e){let t=null;const a=Y(U,k.value,E.value);for(let n=0;n<a.length;n++){const l=N.value[a[n]]||{},r=U.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},q.d=function(...e){return B((t=>Reflect.apply(he,null,[t,...e])),(()=>ke(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Q),(e=>v(e)))},q.n=function(...e){return B((t=>Reflect.apply(Ne,null,[t,...e])),(()=>Te(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Q),(e=>v(e)))},q.getDateTimeFormat=function(e){return L.value[e]||{}},q.setDateTimeFormat=function(e,t){L.value[e]=t,S&&S.setDateTimeFormat(e,t),U.datetimeFormats=L.value,ye(U,e,t)},q.mergeDateTimeFormat=function(e,t){L.value[e]=u(L.value[e]||{},t),S&&S.mergeDateTimeFormat(e,t),U.datetimeFormats=L.value,ye(U,e,t)},q.getNumberFormat=function(e){return T.value[e]||{}},q.setNumberFormat=function(e,t){T.value[e]=t,S&&S.setNumberFormat(e,t),U.numberFormats=T.value,Oe(U,e,t)},q.mergeNumberFormat=function(e,t){T.value[e]=u(T.value[e]||{},t),S&&S.mergeNumberFormat(e,t),U.numberFormats=T.value,Oe(U,e,t)},q[De]=r,q[Ce]=function(...e){return B((t=>{let a;const n=t;try{n.processor=J,a=Reflect.apply(pe,null,[n,...e])}finally{n.processor=null}return a}),(()=>be(...e)),"translate",(t=>t[Ce](...e)),(e=>[He(e)]),(e=>g(e)))},q[we]=function(...e){return B((t=>Reflect.apply(he,null,[t,...e])),(()=>ke(...e)),"datetime format",(t=>t[we](...e)),Ge,(e=>v(e)||g(e)))},q[Me]=function(...e){return B((t=>Reflect.apply(Ne,null,[t,...e])),(()=>Te(...e)),"number format",(t=>t[Me](...e)),Ge,(e=>v(e)||g(e)))},q[Ae]=S,q}const ze={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const qe=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},ze),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||rt({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=v(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),c=r[Ce](e.keypath,i,s),m=u({},l),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}}),Ze=qe;function Ke(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),v(e.format)?a.key=e.format:b(e.format)&&(v(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?u({},t,{[a]:e.format[a]}):t),{}));const i=l(e.value,a,s);let c=[a.key];g(i)?c=i.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:i}):[e.value];var l;return g(l=n)&&!v(l[0])&&(n[0].key=`${e.type}-${t}`),n})):v(i)&&(c=[i]);const m=u({},o),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}const Qe=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},ze),setup(e,t){const a=e.i18n||rt({useScope:e.scope,__useComponent:!0});return Ke(e,t,Le,((...e)=>a[Me](...e)))}}),et=Qe,tt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ze),setup(e,t){const a=e.i18n||rt({useScope:e.scope,__useComponent:!0});return Ke(e,t,Ee,((...e)=>a[we](...e)))}}),at=tt;let nt=null;const lt=n("global-vue-i18n");function rt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(We.MUST_BE_CALL_SETUP_TOP);if(null==nt)throw Error(We.NOT_INSTALLED);const l=function(e){{const t=e.proxy;if(null==t)throw Error(We.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(We.NOT_INSTALLED);return a}}(n),r=function(e){return e.global}(l),o=xe(n),s=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(We.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,a,n,l={}){const r="local"===a,o=t.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(We.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=d(l.inheritLocale)?l.inheritLocale:!v(l.locale),c=t.ref(!r||s?n.locale.value:v(l.locale)?l.locale:K),u=t.ref(!r||s?n.fallbackLocale.value:v(l.fallbackLocale)||g(l.fallbackLocale)||y(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(je(c.value,l)),f=t.ref(y(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(y(l.numberFormats)?l.numberFormats:{[c.value]:{}}),b=r?n.missingWarn:!d(l.missingWarn)&&!i(l.missingWarn)||l.missingWarn,h=r?n.fallbackWarn:!d(l.fallbackWarn)&&!i(l.fallbackWarn)||l.fallbackWarn,E=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,k=!!l.fallbackFormat,N=p(l.missing)?l.missing:null,L=p(l.postTranslation)?l.postTranslation:null,T=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,O=!!l.escapeParameter,I=r?n.modifiers:y(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function F(){return[c.value,u.value,m.value,f.value,_.value]}const W=t.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),C=t.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),w=t.computed((()=>o.value?o.value.messages.value:m.value)),M=t.computed((()=>f.value)),P=t.computed((()=>_.value));function A(){return o.value?o.value.getPostTranslationHandler():L}function D(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():N}function U(e){o.value&&o.value.setMissingHandler(e)}function $(e){return F(),e()}function V(...e){return o.value?$((()=>Reflect.apply(o.value.t,null,[...e]))):$((()=>""))}function j(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function x(...e){return o.value?$((()=>Reflect.apply(o.value.d,null,[...e]))):$((()=>""))}function H(...e){return o.value?$((()=>Reflect.apply(o.value.n,null,[...e]))):$((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function B(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function X(e,t){o.value&&(o.value.setLocaleMessage(e,t),m.value[e]=t)}function J(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function z(e){return o.value?o.value.getDateTimeFormat(e):{}}function q(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function Z(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function Q(e){return o.value?o.value.getNumberFormat(e):{}}function ee(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function te(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const ae={get id(){return o.value?o.value.id:-1},locale:W,fallbackLocale:C,messages:w,datetimeFormats:M,numberFormats:P,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:I},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:b},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:E},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:k},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:T},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:O},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:V,getPostTranslationHandler:A,setPostTranslationHandler:D,getMissingHandler:S,setMissingHandler:U,rt:j,d:x,n:H,tm:G,te:B,getLocaleMessage:Y,setLocaleMessage:X,mergeLocaleMessage:J,getDateTimeFormat:z,setDateTimeFormat:q,mergeDateTimeFormat:Z,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:te};function ne(e){e.locale.value=c.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((t=>{e.mergeLocaleMessage(t,m.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=O,e.fallbackFormat=k,e.fallbackRoot=E,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=T}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(We.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(c.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,_.value=t.numberFormats.value):r&&ne(t)})),ae}(n,s,r,e)}if("global"===s)return function(e,t,a){let n=b(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=je(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),b(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(b(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}(r,e,o),r;if("parent"===s){let t=function(e,t,a=!1){let n=null;const l=t.root;let r=function(e,t=!1){if(null==e)return null;return e.parent}(t,a);for(;null!=r;){const t=e;if("composition"===e.mode)n=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(n=e.__composer,a&&n&&!n[De]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==t&&(t=r),t}const m=l;let f=m.__getInstance(n);if(null==f){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),f=Je(l,nt),m.__composerExtend&&(f[Se]=m.__composerExtend(f)),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(We.UNEXPECTED_ERROR);const o=l[Ae];if(o===e)throw Error(We.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,a&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0})),t.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!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}))}}(m,n,f),m.__setInstance(n,f)}return f}return ae=function(e,t){if(!b(e))return null;let a=C.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,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++,l="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=W(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=F(a),i=I[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=a,!1===s())))return;if(7===u)return t}}(t),a&&C.set(t,a)),!a)return null;const n=a.length;let l=e,r=0;for(;r<n;){const e=l[a[r]];if(void 0===e)return null;if(p(l))return null;l=e,r++}return l},ne=Y,e.DatetimeFormat=tt,e.I18nD=at,e.I18nInjectionKey=lt,e.I18nN=et,e.I18nT=Ze,e.NumberFormat=Qe,e.Translation=qe,e.VERSION=Ie,e.castToVueI18n=e=>{if(!(Ue in e))throw Error(We.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){nt=a;const n=!d(e.legacy)||e.legacy,l=!d(e.globalInjection)||e.globalInjection,r=!n||!!e.allowComposition,o=new Map,[s,i]=function(e,a,n){const l=t.effectScope();{if(!$e(n))throw Error(We.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=l.run((()=>Je(e,n)));if(null==t)throw Error(We.UNEXPECTED_ERROR);return[l,t]}}(e,0,a);{const e=i[Ae];let t=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(a,...r)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(We.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const a=y(t[0])?t[0]:{};(!d(a.globalInstall)||a.globalInstall)&&(e.component(qe.name,qe),e.component(Qe.name,Qe),e.component(tt.name,tt))}(a,...r),!n&&l&&(t=function(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}(a,e,i)),a.mixin(function(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>O(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>O(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:l}=a.i18n;l&&y(l)&&O(l,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.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:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||y(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.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,nt))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const a={__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(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),e}},e.useI18n=rt,e}({},VueDemi);
var VueI18nBridge=function(e,t){"use strict";const a="undefined"!=typeof window,n=(e,t=!1)=>t?Symbol.for(e):Symbol(e),l=(e,t,a)=>r({l:e,k:t,s:a}),r=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 Date]"===N(e),i=e=>"[object RegExp]"===N(e),c=e=>L(e)&&0===Object.keys(e).length,u=Object.assign,m=Object.create,f=(e=null)=>m(e);function _(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const g=Object.prototype.hasOwnProperty;function p(e,t){return g.call(e,t)}const v=Array.isArray,d=e=>"function"==typeof e,b=e=>"string"==typeof e,h=e=>"boolean"==typeof e,E=e=>null!==e&&"object"==typeof e,k=e=>E(e)&&d(e.then)&&d(e.catch),y=Object.prototype.toString,N=e=>y.call(e),L=e=>{if(!E(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function T(e){let t=e;return()=>++t}function O(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const I=e=>!E(e)||v(e);function R(e,t){if(I(e)||I(t))throw new Error("Invalid value");const a=[{src:e,des:t}];for(;a.length;){const{src:e,des:t}=a.pop();Object.keys(e).forEach((n=>{"__proto__"!==n&&(E(e[n])&&!E(t[n])&&(t[n]=Array.isArray(e[n])?[]:f()),I(t[n])||I(e[n])?t[n]=e[n]:a.push({src:e[n],des:t[n]}))}))}}const F=[];F[0]={w:[0],i:[3,0],"[":[4],o:[7]},F[1]={w:[1],".":[2],"[":[4],o:[7]},F[2]={w:[2],i:[3,0],0:[3,0]},F[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},F[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},F[5]={"'":[4,0],o:8,l:[5,0]},F[6]={'"':[4,0],o:8,l:[6,0]};const W=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function C(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function w(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,W.test(a)?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 a}const M=new Map;function P(e,t){return E(e)?e[t]:null}const A=e=>e,D=e=>"",S="text",U=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),$=e=>null==e?"":v(e)||L(e)&&e.toString===y?JSON.stringify(e,null,2):String(e);function j(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function V(e={}){const t=e.locale,a=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),n=E(e.pluralRules)&&b(t)&&d(e.pluralRules[t])?e.pluralRules[t]:j,l=E(e.pluralRules)&&b(t)&&d(e.pluralRules[t])?j:void 0,r=e.list||[],s=e.named||f();o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,s);function i(t){const a=d(e.messages)?e.messages(t):!!E(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):D)}const c=L(e.processor)&&d(e.processor.normalize)?e.processor.normalize:U,m=L(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:$,_={list:e=>r[e],named:e=>s[e],plural:e=>e[n(a,e.length,l)],linked:(t,...a)=>{const[n,l]=a;let r="text",o="";1===a.length?E(n)?(o=n.modifier||o,r=n.type||r):b(n)&&(o=n||o):2===a.length&&(b(n)&&(o=n||o),b(l)&&(r=l||r));const s=i(t)(_),c="vnode"===r&&v(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:A)(c,r):c;var u},message:i,type:L(e.processor)&&b(e.processor.type)?e.processor.type:S,interpolate:m,normalize:c,values:u(f(),r,s)};return _}const x=T(17),H={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:x(),INVALID_ISO_DATE_ARGUMENT:x(),NOT_SUPPORT_NON_STRING_MESSAGE:x(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:x(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:x(),NOT_SUPPORT_LOCALE_TYPE:x(),__EXTEND_POINT__:x()};function G(e,t){return null!=t.locale?Y(t.locale):Y(e.locale)}let B;function Y(e){if(b(e))return e;if(d(e)){if(e.resolvedOnce&&null!=B)return B;if("Function"===e.constructor.name){const t=e();if(k(t))throw Error(H.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return B=t}throw Error(H.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(H.NOT_SUPPORT_LOCALE_TYPE)}function X(e,t,a){return[...new Set([a,...v(t)?t:E(t)?Object.keys(t):b(t)?[t]:[a]])]}function J(e,t,a){const n=b(a)?a:ee,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;v(e);)e=z(r,e,t);const o=v(t)||!L(t)?t:t.default?t.default:null;e=b(o)?[o]:o,v(e)&&z(r,e,!1),l.__localeChainCache.set(n,r)}return r}function z(e,t,a){let n=!0;for(let l=0;l<t.length&&h(n);l++){const r=t[l];b(r)&&(n=q(e,t[l],a))}return n}function q(e,t,a){let n;const l=t.split("-");do{n=Z(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function Z(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const l=t.replace(/!/g,"");e.push(l),(v(a)||L(a))&&a[l]&&(n=a[l])}return n}const K="9.14.2",Q=-1,ee="en-US",te="",ae=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let ne,le,re;let oe=null;const se=e=>{oe=e},ie=()=>oe;let ce=0;function ue(e={}){const t=d(e.onWarn)?e.onWarn:O,a=b(e.version)?e.version:K,n=b(e.locale)||d(e.locale)?e.locale:ee,l=d(n)?ee:n,r=v(e.fallbackLocale)||L(e.fallbackLocale)||b(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l,o=L(e.messages)?e.messages:me(l),s=L(e.datetimeFormats)?e.datetimeFormats:me(l),c=L(e.numberFormats)?e.numberFormats:me(l),m=u(f(),e.modifiers,{upper:(e,t)=>"text"===t&&b(e)?e.toUpperCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&b(e)?e.toLowerCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&b(e)?ae(e):"vnode"===t&&E(e)&&"__v_isVNode"in e?ae(e.children):e}),_=e.pluralRules||f(),g=d(e.missing)?e.missing:null,p=!h(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,k=!h(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,N=!!e.unresolving,T=d(e.postTranslation)?e.postTranslation:null,I=L(e.processor)?e.processor:null,R=!h(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,W=d(e.messageCompiler)?e.messageCompiler:ne,C=d(e.messageResolver)?e.messageResolver:le||P,w=d(e.localeFallbacker)?e.localeFallbacker:re||X,M=E(e.fallbackContext)?e.fallbackContext:void 0,A=e,D=E(A.__datetimeFormatters)?A.__datetimeFormatters:new Map,S=E(A.__numberFormatters)?A.__numberFormatters:new Map,U=E(A.__meta)?A.__meta:{};ce++;const $={version:a,cid:ce,locale:n,fallbackLocale:r,messages:o,modifiers:m,pluralRules:_,missing:g,missingWarn:p,fallbackWarn:k,fallbackFormat:y,unresolving:N,postTranslation:T,processor:I,warnHtmlMessage:R,escapeParameter:F,messageCompiler:W,messageResolver:C,localeFallbacker:w,fallbackContext:M,onWarn:t,__meta:U};return $.datetimeFormats=s,$.numberFormats=c,$.__datetimeFormatters=D,$.__numberFormatters=S,$}const me=e=>({[e]:f()});function fe(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return b(n)?n:t}return t}function _e(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}function ge(e,t){const a=t.indexOf(e);if(-1===a)return!1;for(let r=a+1;r<t.length;r++)if(n=e,l=t[r],n!==l&&n.split("-")[0]===l.split("-")[0])return!0;var n,l;return!1}const pe=["t","type"];function ve(e){return function(e,t,a){for(let n=0;n<t.length;n++){const a=t[n];if(p(e,a)&&null!=e[a])return e[a]}return a}(e,pe)}function de(e){return E(e)&&0===ve(e)&&(p(e,"b")||p(e,"body"))}f();const be=()=>"",he=e=>d(e);function Ee(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=Ne(...t),m=h(u.missingWarn)?u.missingWarn:e.missingWarn,g=h(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=h(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,k=b(u.default)||h(u.default)?h(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",y=a||""!==k,N=G(e,u);p&&function(e){v(e.list)?e.list=e.list.map((e=>b(e)?_(e):e)):E(e.named)&&Object.keys(e.named).forEach((t=>{b(e.named[t])&&(e.named[t]=_(e.named[t]))}))}(u);let[L,T,O]=d?[c,N,i[N]||f()]:ke(e,c,N,s,g,m),I=L,R=c;if(d||b(I)||de(I)||he(I)||y&&(I=k,R=I),!(d||(b(I)||de(I)||he(I))&&b(T)))return l?Q:c;let F=!1;const W=he(I)?I:ye(e,c,T,I,R,(()=>{F=!0}));if(F)return I;const C=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=ke(m,n,t,i,c,u);l=s(e,n)}if(b(l)||de(l)){let a=!1;const r=ye(e,n,t,l,n,(()=>{a=!0}));return a?be:r}return he(l)?l:be},_={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);o(n.plural)&&(_.pluralIndex=n.plural);return _}(e,T,O,u),w=function(e,t,a){const n=t(a);return n}(0,W,V(C));return n?n(w,c):w}function ke(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,_=f(),g=null;for(let p=0;p<u.length&&(m=u[p],_=o[m]||f(),null===(g=i(_,t))&&(g=_[t]),!(b(g)||de(g)||he(g)));p++)if(!ge(m,u)){const a=fe(e,t,m,0,"translate");a!==t&&(g=a)}return[g,m,_]}function ye(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(he(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==s){const e=()=>n;return e.locale=a,e.key=t,e}const c=s(n,function(e,t,a,n,r,o){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>l(t,a,e)}}(0,a,r,0,i,o));return c.locale=a,c.key=t,c.source=n,c}function Ne(...e){const[t,a,n]=e,l=f();if(!(b(t)||o(t)||he(t)||de(t)))throw Error(H.INVALID_ARGUMENT);const r=o(t)?String(t):(he(t),t);return o(a)?l.plural=a:b(a)?l.default=a:L(a)&&!c(a)?l.named=a:v(a)&&(l.list=a),o(n)?l.plural=n:b(n)?l.default=n:L(n)&&u(l,n),[r,l]}function Le(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,m,f,_]=Oe(...t);h(f.missingWarn)?f.missingWarn:e.missingWarn;h(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=G(e,f),v=o(e,l,p);if(!b(i)||""===i)return new Intl.DateTimeFormat(p,_).format(m);let d,E={},k=null;for(let c=0;c<v.length&&(d=v[c],E=a[d]||{},k=E[i],!L(k));c++)fe(e,i,d,0,"datetime format");if(!L(k)||!b(d))return n?Q:i;let y=`${d}__${i}`;c(_)||(y=`${y}__${JSON.stringify(_)}`);let N=s.get(y);return N||(N=new Intl.DateTimeFormat(d,u({},k,_)),s.set(y,N)),g?N.formatToParts(m):N.format(m)}const Te=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Oe(...e){const[t,a,n,l]=e,r=f();let i,c=f();if(b(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(H.INVALID_ISO_DATE_ARGUMENT);const a=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(a);try{i.toISOString()}catch(u){throw Error(H.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(H.INVALID_DATE_ARGUMENT);i=t}else{if(!o(t))throw Error(H.INVALID_ARGUMENT);i=t}return b(a)?r.key=a:L(a)&&Object.keys(a).forEach((e=>{Te.includes(e)?c[e]=a[e]:r[e]=a[e]})),b(n)?r.locale=n:L(n)&&(c=n),L(l)&&(c=l),[r.key||"",i,r,c]}function Ie(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function Re(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,m,f,_]=We(...t);h(f.missingWarn)?f.missingWarn:e.missingWarn;h(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=G(e,f),v=o(e,l,p);if(!b(i)||""===i)return new Intl.NumberFormat(p,_).format(m);let d,E={},k=null;for(let c=0;c<v.length&&(d=v[c],E=a[d]||{},k=E[i],!L(k));c++)fe(e,i,d,0,"number format");if(!L(k)||!b(d))return n?Q:i;let y=`${d}__${i}`;c(_)||(y=`${y}__${JSON.stringify(_)}`);let N=s.get(y);return N||(N=new Intl.NumberFormat(d,u({},k,_)),s.set(y,N)),g?N.formatToParts(m):N.format(m)}const Fe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function We(...e){const[t,a,n,l]=e,r=f();let s=f();if(!o(t))throw Error(H.INVALID_ARGUMENT);const i=t;return b(a)?r.key=a:L(a)&&Object.keys(a).forEach((e=>{Fe.includes(e)?s[e]=a[e]:r[e]=a[e]})),b(n)?r.locale=n:L(n)&&(s=n),L(l)&&(s=l),[r.key||"",i,r,s]}function Ce(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const we="9.14.2",Me=H.__EXTEND_POINT__,Pe=T(Me),Ae={UNEXPECTED_RETURN_TYPE:Me,INVALID_ARGUMENT:Pe(),MUST_BE_CALL_SETUP_TOP:Pe(),NOT_INSTALLED:Pe(),NOT_AVAILABLE_IN_LEGACY_MODE:Pe(),REQUIRED_VALUE:Pe(),INVALID_VALUE:Pe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Pe(),NOT_INSTALLED_WITH_PROVIDE:Pe(),UNEXPECTED_ERROR:Pe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Pe(),BRIDGE_SUPPORT_VUE_2_ONLY:Pe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Pe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Pe(),__EXTEND_POINT__:Pe()},De=n("__translateVNode"),Se=n("__datetimeParts"),Ue=n("__numberParts"),$e=n("__setPluralRules"),je=n("__legacyVueI18n"),Ve=n("__injectWithOption"),xe=n("__dispose"),He="__VUE_I18N_BRIDGE__";function Ge(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Be(e){if(!E(e))return e;for(const t in e)if(p(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let l=e,r=!1;for(let e=0;e<n;e++){if(a[e]in l||(l[a[e]]=f()),!E(l[a[e]])){r=!0;break}l=l[a[e]]}r||(l[a[n]]=e[t],delete e[t]),E(l[a[n]])&&Be(l[a[n]])}else E(e[t])&&Be(e[t]);return e}function Ye(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=L(a)?a:v(n)?f():{[e]:f()};if(v(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||f(),R(a,o[t])):R(a,o)}else b(e)&&R(JSON.parse(e),o)})),null==l&&r)for(const s in o)p(o,s)&&Be(o[s]);return o}function Xe(e){return e.proxy.$options}function Je(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const ze=()=>[],qe=()=>!1;let Ze=0;function Ke(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Qe(e={},n){const{__root:l,__injectWithOption:r}=e,s=void 0===l,c=e.flatJson,m=a?t.ref:t.shallowRef,f=!!e.translateExistCompatible;let _=!h(e.inheritLocale)||e.inheritLocale;const g=m(l&&_?l.locale.value:b(e.locale)?e.locale:ee),k=m(l&&_?l.fallbackLocale.value:b(e.fallbackLocale)||v(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:g.value),y=m(Ye(g.value,e)),N=m(L(e.datetimeFormats)?e.datetimeFormats:{[g.value]:{}}),T=m(L(e.numberFormats)?e.numberFormats:{[g.value]:{}});let O=l?l.missingWarn:!h(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,I=l?l.fallbackWarn:!h(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,F=l?l.fallbackRoot:!h(e.fallbackRoot)||e.fallbackRoot,W=!!e.fallbackFormat,C=d(e.missing)?e.missing:null,w=d(e.missing)?Ke(e.missing):null,M=d(e.postTranslation)?e.postTranslation:null,P=l?l.warnHtmlMessage:!h(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter;const D=l?l.modifiers:L(e.modifiers)?e.modifiers:{};let S,U,$=e.pluralRules||l&&l.pluralRules;{Ge(n);const e={locale:g.value,fallbackLocale:k.value,messages:y.value,dateTimeFormats:N.value,numberFormats:T.value,modifiers:D,missing:C,fallbackRoot:F,postTranslation:M,pluralizationRules:$,escapeParameterHtml:A,sync:_,silentFallbackWarn:h(I)?!I:I,silentTranslationWarn:h(O)?!O:O,formatFallbackMessages:h(W)?!W:W,warnHtmlInMessage:h(P)&&P?"warn":"off",__VUE_I18N_BRIDGE__:He};S=new n(e)}U=(()=>{s&&se(null);const t={version:we,locale:g.value,fallbackLocale:k.value,messages:y.value,modifiers:D,pluralRules:$,missing:null===w?void 0:w,missingWarn:O,fallbackWarn:I,fallbackFormat:W,unresolving:!0,postTranslation:null===M?void 0:M,warnHtmlMessage:P,escapeParameter:A,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=N.value,t.numberFormats=T.value,t.__datetimeFormatters=L(U)?U.__datetimeFormatters:void 0,t.__numberFormatters=L(U)?U.__numberFormatters:void 0;const a=ue(t);return s&&se(a),a})(),_e(U,g.value,k.value);const j=t.computed({get:()=>g.value,set:e=>{g.value=e,S&&!s&&(S.locale=e),U.locale=g.value}}),V=t.computed({get:()=>k.value,set:e=>{k.value=e,S&&!s&&(S.fallbackLocale=e),U.fallbackLocale=k.value,_e(U,g.value,e)}}),x=t.computed((()=>y.value)),H=t.computed((()=>N.value)),G=t.computed((()=>T.value));const B=(e,t,a,n,r,i)=>{let c;g.value,k.value,y.value,N.value,T.value;try{0,s||(U.fallbackContext=l?ie():void 0),c=e(U)}finally{s||(U.fallbackContext=void 0)}if("translate exists"!==a&&o(c)&&c===Q||"translate exists"===a&&!c){const[e,a]=t();return l&&F?n(l):r(e)}if(i(c))return c;throw Error(Ae.UNEXPECTED_RETURN_TYPE)};function Y(...e){return B((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ne(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>b(e)))}const X={normalize:function(e){return e.map((e=>b(e)||o(e)||h(e)?Je(String(e)):e))},interpolate:e=>e,type:"vnode"};function z(e){return y.value[e]||{}}Ze++,l&&a&&(t.watch(l.locale,(e=>{_&&(g.value=e,S&&!s&&(S.locale=e),U.locale=e,_e(U,g.value,k.value))})),t.watch(l.fallbackLocale,(e=>{_&&(k.value=e,S&&!s&&(S.fallbackLocale=e),U.fallbackLocale=e,_e(U,g.value,k.value))})));const q={id:Ze,locale:j,fallbackLocale:V,get inheritLocale(){return _},set inheritLocale(e){_=e,S&&(S._sync=e),e&&l&&(g.value=l.locale.value,k.value=l.fallbackLocale.value,S&&(S.locale=l.locale.value,S.fallbackLocale=l.fallbackLocale.value),_e(U,g.value,k.value))},get availableLocales(){return Object.keys(y.value).sort()},messages:x,get modifiers(){return D},get pluralRules(){return $||{}},get isGlobal(){return s},get missingWarn(){return O},set missingWarn(e){O=e,U.missingWarn=O},get fallbackWarn(){return I},set fallbackWarn(e){I=e,U.fallbackWarn=I},get fallbackRoot(){return F},set fallbackRoot(e){F=e},get fallbackFormat(){return W},set fallbackFormat(e){W=e,U.fallbackFormat=W},get warnHtmlMessage(){return P},set warnHtmlMessage(e){P=e,U.warnHtmlMessage=e},get escapeParameter(){return A},set escapeParameter(e){A=e,U.escapeParameter=e},t:Y,getLocaleMessage:z,setLocaleMessage:function(e,t){if(c){const a={[e]:t};for(const e in a)p(a,e)&&Be(a[e]);t=a[e]}y.value[e]=t,S&&S.setLocaleMessage(e,t),U.messages=y.value},mergeLocaleMessage:function(e,t){y.value[e]=y.value[e]||{},S&&S.mergeLocaleMessage(e,t);const a={[e]:t};if(c)for(const n in a)p(a,n)&&Be(a[n]);R(t=a[e],y.value[e]),U.messages=y.value},getPostTranslationHandler:function(){return d(M)?M:null},setPostTranslationHandler:function(e){M=e,U.postTranslation=e},getMissingHandler:function(){return C},setMissingHandler:function(e){null!==e&&(w=Ke(e)),C=e,U.missing=w},[$e]:function(e){$=e,U.pluralRules=$}};return q.datetimeFormats=H,q.numberFormats=G,q.rt=function(...e){const[t,a,n]=e;if(n&&!E(n))throw Error(Ae.INVALID_ARGUMENT);return Y(t,a,u({resolvedMessage:!0},n||{}))},q.te=function(e,t){return B((()=>{if(!e)return!1;const a=z(b(t)?t:g.value),n=U.messageResolver(a,e);return f?null!=n:de(n)||he(n)||b(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),qe,(e=>h(e)))},q.tm=function(e){const t=function(e){let t=null;const a=J(U,k.value,g.value);for(let n=0;n<a.length;n++){const l=y.value[a[n]]||{},r=U.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},q.d=function(...e){return B((t=>Reflect.apply(Le,null,[t,...e])),(()=>Oe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>te),(e=>b(e)))},q.n=function(...e){return B((t=>Reflect.apply(Re,null,[t,...e])),(()=>We(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>te),(e=>b(e)))},q.getDateTimeFormat=function(e){return N.value[e]||{}},q.setDateTimeFormat=function(e,t){N.value[e]=t,S&&S.setDateTimeFormat(e,t),U.datetimeFormats=N.value,Ie(U,e,t)},q.mergeDateTimeFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),S&&S.mergeDateTimeFormat(e,t),U.datetimeFormats=N.value,Ie(U,e,t)},q.getNumberFormat=function(e){return T.value[e]||{}},q.setNumberFormat=function(e,t){T.value[e]=t,S&&S.setNumberFormat(e,t),U.numberFormats=T.value,Ce(U,e,t)},q.mergeNumberFormat=function(e,t){T.value[e]=u(T.value[e]||{},t),S&&S.mergeNumberFormat(e,t),U.numberFormats=T.value,Ce(U,e,t)},q[Ve]=r,q[De]=function(...e){return B((t=>{let a;const n=t;try{n.processor=X,a=Reflect.apply(Ee,null,[n,...e])}finally{n.processor=null}return a}),(()=>Ne(...e)),"translate",(t=>t[De](...e)),(e=>[Je(e)]),(e=>v(e)))},q[Se]=function(...e){return B((t=>Reflect.apply(Le,null,[t,...e])),(()=>Oe(...e)),"datetime format",(t=>t[Se](...e)),ze,(e=>b(e)||v(e)))},q[Ue]=function(...e){return B((t=>Reflect.apply(Re,null,[t,...e])),(()=>We(...e)),"number format",(t=>t[Ue](...e)),ze,(e=>b(e)||v(e)))},q[je]=S,q}const et={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const tt=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},et),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||ut({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s=f();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=b(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),f())}(a,o),c=r[De](e.keypath,i,s),m=u(f(),l),_=b(e.tag)||E(e.tag)?e.tag:"span";return t.h(_,m,c)}}}),at=tt;function nt(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s=f();e.locale&&(a.locale=e.locale),b(e.format)?a.key=e.format:E(e.format)&&(b(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?u(f(),t,{[a]:e.format[a]}):t),f()));const i=l(e.value,a,s);let c=[a.key];v(i)?c=i.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:i}):[e.value];var l;return v(l=n)&&!b(l[0])&&(n[0].key=`${e.type}-${t}`),n})):b(i)&&(c=[i]);const m=u(f(),o),_=b(e.tag)||E(e.tag)?e.tag:"span";return t.h(_,m,c)}}const lt=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},et),setup(e,t){const a=e.i18n||ut({useScope:e.scope,__useComponent:!0});return nt(e,t,Fe,((...e)=>a[Ue](...e)))}}),rt=lt,ot=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},et),setup(e,t){const a=e.i18n||ut({useScope:e.scope,__useComponent:!0});return nt(e,t,Te,((...e)=>a[Se](...e)))}}),st=ot;let it=null;const ct=n("global-vue-i18n");function ut(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Ae.MUST_BE_CALL_SETUP_TOP);if(null==it)throw Error(Ae.NOT_INSTALLED);const l=function(e){{const t=e.proxy;if(null==t)throw Error(Ae.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(Ae.NOT_INSTALLED);return a}}(n),r=function(e){return e.global}(l),o=Xe(n),s=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(Ae.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,a,n,l={}){const r="local"===a,o=t.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(Ae.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=h(l.inheritLocale)?l.inheritLocale:!b(l.locale),c=t.ref(!r||s?n.locale.value:b(l.locale)?l.locale:ee),u=t.ref(!r||s?n.fallbackLocale.value:b(l.fallbackLocale)||v(l.fallbackLocale)||L(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(Ye(c.value,l)),f=t.ref(L(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(L(l.numberFormats)?l.numberFormats:{[c.value]:{}}),g=r?n.missingWarn:!h(l.missingWarn)&&!i(l.missingWarn)||l.missingWarn,p=r?n.fallbackWarn:!h(l.fallbackWarn)&&!i(l.fallbackWarn)||l.fallbackWarn,E=r?n.fallbackRoot:!h(l.fallbackRoot)||l.fallbackRoot,k=!!l.fallbackFormat,y=d(l.missing)?l.missing:null,N=d(l.postTranslation)?l.postTranslation:null,T=r?n.warnHtmlMessage:!h(l.warnHtmlMessage)||l.warnHtmlMessage,O=!!l.escapeParameter,I=r?n.modifiers:L(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function F(){return[c.value,u.value,m.value,f.value,_.value]}const W=t.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),C=t.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),w=t.computed((()=>o.value?o.value.messages.value:m.value)),M=t.computed((()=>f.value)),P=t.computed((()=>_.value));function A(){return o.value?o.value.getPostTranslationHandler():N}function D(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():y}function U(e){o.value&&o.value.setMissingHandler(e)}function $(e){return F(),e()}function j(...e){return o.value?$((()=>Reflect.apply(o.value.t,null,[...e]))):$((()=>""))}function V(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function x(...e){return o.value?$((()=>Reflect.apply(o.value.d,null,[...e]))):$((()=>""))}function H(...e){return o.value?$((()=>Reflect.apply(o.value.n,null,[...e]))):$((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function B(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function X(e,t){o.value&&(o.value.setLocaleMessage(e,t),m.value[e]=t)}function J(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function z(e){return o.value?o.value.getDateTimeFormat(e):{}}function q(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function Z(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function K(e){return o.value?o.value.getNumberFormat(e):{}}function Q(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function te(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const ae={get id(){return o.value?o.value.id:-1},locale:W,fallbackLocale:C,messages:w,datetimeFormats:M,numberFormats:P,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:I},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:g},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:p},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:E},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:k},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:T},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:O},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:j,getPostTranslationHandler:A,setPostTranslationHandler:D,getMissingHandler:S,setMissingHandler:U,rt:V,d:x,n:H,tm:G,te:B,getLocaleMessage:Y,setLocaleMessage:X,mergeLocaleMessage:J,getDateTimeFormat:z,setDateTimeFormat:q,mergeDateTimeFormat:Z,getNumberFormat:K,setNumberFormat:Q,mergeNumberFormat:te};function ne(e){e.locale.value=c.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((t=>{e.mergeLocaleMessage(t,m.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=O,e.fallbackFormat=k,e.fallbackRoot=E,e.fallbackWarn=p,e.missingWarn=g,e.warnHtmlMessage=T}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Ae.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(c.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,_.value=t.numberFormats.value):r&&ne(t)})),ae}(n,s,r,e)}if("global"===s)return function(e,t,a){let n=E(t.messages)?t.messages:f();"__i18nGlobal"in a&&(n=Ye(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),E(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(E(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}(r,e,o),r;if("parent"===s){let t=function(e,t,a=!1){let n=null;const l=t.root;let r=function(e,t=!1){if(null==e)return null;return e.parent}(t,a);for(;null!=r;){const t=e;if("composition"===e.mode)n=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(n=e.__composer,a&&n&&!n[Ve]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==t&&(t=r),t}const m=l;let _=m.__getInstance(n);if(null==_){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),_=Qe(l,it),m.__composerExtend&&(_[xe]=m.__composerExtend(_)),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(Ae.UNEXPECTED_ERROR);const o=l[je];if(o===e)throw Error(Ae.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,a&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0})),t.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!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}))}}(m,n,_),m.__setInstance(n,_)}return _}return le=function(e,t){if(!E(e))return null;let a=M.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,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++,l="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=w(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=C(a),i=F[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=a,!1===s())))return;if(7===u)return t}}(t),a&&M.set(t,a)),!a)return null;const n=a.length;let l=e,r=0;for(;r<n;){const e=l[a[r]];if(void 0===e)return null;if(d(l))return null;l=e,r++}return l},re=J,e.DatetimeFormat=ot,e.I18nD=st,e.I18nInjectionKey=ct,e.I18nN=rt,e.I18nT=at,e.NumberFormat=lt,e.Translation=tt,e.VERSION=we,e.castToVueI18n=e=>{if(!(He in e))throw Error(Ae.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){it=a;const n=!h(e.legacy)||e.legacy,l=!h(e.globalInjection)||e.globalInjection,r=!n||!!e.allowComposition,o=new Map,[s,i]=function(e,a,n){const l=t.effectScope();{if(!Ge(n))throw Error(Ae.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=l.run((()=>Qe(e,n)));if(null==t)throw Error(Ae.UNEXPECTED_ERROR);return[l,t]}}(e,0,a);{const e=i[je];let t=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(a,...r)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(Ae.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const a=L(t[0])?t[0]:{};(!h(a.globalInstall)||a.globalInstall)&&(e.component(tt.name,tt),e.component(lt.name,lt),e.component(ot.name,ot))}(a,...r),!n&&l&&(t=function(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}(a,e,i)),a.mixin(function(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>R(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(L(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>R(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:l}=a.i18n;l&&L(l)&&R(l,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.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:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||L(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.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,it))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const a={__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(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),e}},e.useI18n=ut,e}({},VueDemi);
{
"name": "vue-i18n-bridge",
"version": "9.14.1",
"version": "9.14.2",
"description": "A bridge for Vue I18n Legacy",

@@ -41,8 +41,8 @@ "keywords": [

"vue-demi": "^0.14.0",
"@intlify/vue-devtools": "9.14.1",
"@intlify/shared": "9.14.1",
"@intlify/core-base": "9.14.1"
"@intlify/core-base": "9.14.2",
"@intlify/vue-devtools": "9.14.2",
"@intlify/shared": "9.14.2"
},
"devDependencies": {
"@intlify/devtools-if": "9.14.1"
"@intlify/devtools-if": "9.14.2"
},

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

Sorry, the diff of this file is not supported yet

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 not supported yet

Sorry, the diff of this file is not supported yet

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 not supported yet

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