Comparing version 9.5.0 to 9.6.0
/*! | ||
* vue-i18n v9.5.0 | ||
* vue-i18n v9.6.0 | ||
* (c) 2023 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>l({l:e,k:t,s:n}),l=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),c=e=>"[object RegExp]"===k(e),u=e=>h(e)&&0===Object.keys(e).length,i=Object.assign;function f(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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=Object.prototype.toString,k=e=>b.call(e),h=e=>{if(!v(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function L(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function N(e){let t=e;return()=>++t}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function y(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const I={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 C(e,t,n={}){const{domain:r,messages:a,args:l}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function O(e){throw e}const A=" ",P="\r",F="\n",R=String.fromCharCode(8232),D=String.fromCharCode(8233);function S(e){const t=e;let n=0,r=1,a=1,l=0;const o=e=>t[e]===P&&t[e+1]===F,s=e=>t[e]===D,c=e=>t[e]===R,u=e=>o(e)||(e=>t[e]===F)(e)||s(e)||c(e),i=e=>o(e)||s(e)||c(e)?F:t[e];function f(){return l=0,u(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>l,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+l),next:f,peek:function(){return o(n+l)&&l++,l++,t[n+l]},reset:function(){n=0,r=1,a=1,l=0},resetPeek:function(e=0){l=e},skipToPeek:function(){const e=n+l;for(;e!==n;)f();l=0}}}const M=void 0,w=".",x="'";function W(e,t={}){const n=!1!==t.location,r=S(e),a=()=>r.index(),l=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=l(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=l(),e.currentType=t;const a={type:t};return n&&(a.loc=y(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):(I.EXPECTED_TOKEN,l(),"")}function p(e){let t="";for(;e.currentPeek()===A||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===M)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===M)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 l=e.currentPeek();return"{"===l?"%"!==r&&t:"@"!==l&&l?"%"===l?(e.peek(),n(t,"%",!0)):"|"===l?!("%"!==r&&!a)||!(r===A||r===F):l===A?(e.peek(),n(!0,A,a)):l!==F||(e.peek(),n(!0,F,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===M?M:t(n)?(e.next(),n):null}function h(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function L(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function N(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=L(e);)n+=t;return n}function C(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===A||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 O(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return P(e,t,4);case"U":return P(e,t,6);default:return I.UNKNOWN_ESCAPE_SEQUENCE,l(),""}}function P(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=N(e);if(!t){I.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),e.currentChar();break}r+=t}return`\\${t}${r}`}function R(e){d(e);const t=_(e,"|");return d(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(I.NOT_ALLOW_NEST_PLACEHOLDER,l()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(I.EMPTY_PLACEHOLDER,l()),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&&(I.UNTERMINATED_CLOSING_BRACE,l()),n=W(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,o=!0;if(v(e))return t.braceNest>0&&(I.UNTERMINATED_CLOSING_BRACE,l()),n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return I.UNTERMINATED_CLOSING_BRACE,l(),t.braceNest=0,U(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=h(e);)n+=t;return e.currentChar()===M&&(I.UNTERMINATED_CLOSING_BRACE,l()),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+=`-${T(e)}`):t+=T(e),e.currentChar()===M&&(I.UNTERMINATED_CLOSING_BRACE,l()),t}(e)),d(e),n;if(o=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="";const r=e=>e!==x&&e!==F;for(;t=k(e,r);)n+="\\"===t?O(e):t;const a=e.currentChar();return a===F||a===M?(I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),a===F&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!o)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==A&&e!==F;for(;t=k(e,r);)n+=t;return n}(e)),I.INVALID_TOKEN_IN_PLACEHOLDER,l(),n.value,d(e),n}return n}function W(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!==A||(I.INVALID_LINKED_FORMAT,l()),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,R(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),W(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=h(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===A||!t)&&(t===F?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?D(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===A?r:a===F||a===w?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(I.INVALID_LINKED_FORMAT,l()),t.braceNest=0,t.inLinked=!1,U(e,t))}}function U(e,t){let n={type:14};if(t.braceNest>0)return D(e,t)||m(t);if(t.inLinked)return W(e,t)||m(t);switch(e.currentChar()){case"{":return D(e,t)||m(t);case"}":return I.UNBALANCED_CLOSING_BRACE,l(),e.next(),f(t,3,"}");case"@":return W(e,t)||m(t);default:if(v(e))return n=f(t,1,R(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,C(e)):f(t,4,function(e){d(e);const t=e.currentChar();return"%"!==t&&(I.EXPECTED_TOKEN,l()),e.next(),"%"}(e));if(b(e))return f(t,0,C(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=a(),c.startLoc=l(),r.currentChar()===M?f(c,14):U(r,c)},currentOffset:a,currentPosition:l,context:u}}const U=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function H(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function a(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(),l=r(3,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}function o(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(5,l,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(4,l,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(9,l,o);return s.value=t.replace(U,$),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let l=e.nextToken();if(9===l.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(8,l,o);return 12!==t.type?(I.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",a(s,l,o),{nextConsumeToken:t,node:s}):(null==t.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,V(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,l=t.nextConsumeToken||e.nextToken()}switch(10!==l.type&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),l=e.nextToken(),2===l.type&&(l=e.nextToken()),l.type){case 11:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=function(e,t){const n=e.context(),l=r(7,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}(e,l.value||"");break;case 5:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=s(e,l.value||"");break;case 6:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=o(e,l.value||"");break;case 7:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=c(e,l.value||"");break;default:I.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const u=e.context(),i=r(7,u.offset,u.startLoc);return i.value="",a(i,u.offset,u.startLoc),n.key=i,a(n,u.offset,u.startLoc),{nextConsumeToken:l,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:l}=t,o=f(e);return 14===t.currentType?o:function(e,t,n,l){const o=e.context();let s=0===l.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(l);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==o.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,l,o)}return{parse:function(n){const l=W(n,i({},e)),o=l.context(),s=r(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(l),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==o.currentType&&(I.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,n[o.offset]),a(s,l.currentOffset(),l.currentPosition()),s}}}function V(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 j(e,t){for(let n=0;n<e.length;n++)X(e[n],t)}function X(e,t){switch(e.type){case 1:j(e.cases,t),t.helper("plural");break;case 2:j(e.items,t);break;case 6:X(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 G(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&X(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Y(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=L(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 B(e){switch(e.t=e.type,e.type){case 0:const t=e;B(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)B(r[e]);n.c=r,delete n.cases;break;case 2:const a=e,l=a.items;for(let e=0;e<l.length;e++)B(l[e]);a.i=l,delete a.items,a.static&&(a.s=a.static,delete a.static);break;case 3:case 9:case 8:case 7:const o=e;o.value&&(o.v=o.value,delete o.value);break;case 6:const s=e;B(s.key),s.k=s.key,delete s.key,s.modifier&&(B(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key}delete e.type}function K(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?K(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&&(K(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 l=0;l<a&&(K(e,t.items[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),K(e,t.key),t.modifier?(e.push(", "),K(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=g(t.mode)?t.mode:"normal",r=g(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,l=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:l}=t,o=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:l,indentLevel:0};function c(e,t){s.code+=e}function u(e,t=!0){const n=t?a:"";c(l?n+" ".repeat(e):n)}return o&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&u(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&u(t)},newline:function(){u(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:l,needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${L(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),K(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:u,map:i}=c.context();return{ast:e,code:u,map:i?i.toJSON():void 0}};function J(e,t={}){const n=i({},t),r=!!n.jit,a=!!n.minify,l=null==n.optimize||n.optimize,o=H(n).parse(e);return r?(l&&function(e){const t=e.body;2===t.type?Y(t):t.cases.forEach((e=>Y(e)))}(o),a&&B(o),{ast:o,code:""}):(G(o,n),z(o,n))}const Q=[];Q[0]={w:[0],i:[3,0],"[":[4],o:[7]},Q[1]={w:[1],".":[2],"[":[4],o:[7]},Q[2]={w:[2],i:[3,0],0:[3,0]},Q[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Q[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Q[5]={"'":[4,0],o:8,l:[5,0]},Q[6]={'"':[4,0],o:8,l:[6,0]};const q=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Z(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 ee(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,q.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 te=new Map;function ne(e,t){return v(e)?e[t]:null}const re=e=>e,ae=e=>"",le="text",oe=e=>0===e.length?"":L(e),se=e=>null==e?"":p(e)||h(e)&&e.toString===b?JSON.stringify(e,null,2):String(e);function ce(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ue(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=v(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?e.pluralRules[t]:ce,a=v(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?ce:void 0,l=e.list||[],s=e.named||{};o(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):ae)}const u=h(e.processor)&&d(e.processor.normalize)?e.processor.normalize:oe,f=h(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:se,m={list:e=>l[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let l="text",o="";1===n.length?v(r)?(o=r.modifier||o,l=r.type||l):g(r)&&(o=r||o):2===n.length&&(g(r)&&(o=r||o),g(a)&&(l=a||l));const s=c(t)(m),u="vnode"===l&&p(s)&&o?s[0]:s;return o?(i=o,e.modifiers?e.modifiers[i]:re)(u,l):u;var i},message:c,type:h(e.processor)&&g(e.processor.type)?e.processor.type:le,interpolate:f,normalize:u,values:i({},l,s)};return m}function ie(e,t){return null!=t.locale?me(t.locale):me(e.locale)}let fe;function me(e){return g(e)?e:null!=fe&&e.resolvedOnce?fe:fe=e()}function _e(e,t,n){return[...new Set([n,...p(t)?t:v(t)?Object.keys(t):g(t)?[t]:[n]])]}function pe(e,t,n){const r=g(n)?n:ke,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let e=[n];for(;p(e);)e=de(l,e,t);const o=p(t)||!h(t)?t:t.default?t.default:null;e=g(o)?[o]:o,p(e)&&de(l,e,!1),a.__localeChainCache.set(r,l)}return l}function de(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const l=t[a];g(l)&&(r=ge(e,t[a],n))}return r}function ge(e,t,n){let r;const a=t.split("-");do{r=Ee(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function Ee(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(p(n)||h(n))&&n[a]&&(r=n[a])}return r}const ve="9.5.0",be=-1,ke="en-US",he="",Le=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Ne,Te,ye;let Ie=null;const Ce=e=>{Ie=e},Oe=()=>Ie;let Ae=0;function Pe(e={}){const t=d(e.onWarn)?e.onWarn:T,n=g(e.version)?e.version:ve,r=g(e.locale)||d(e.locale)?e.locale:ke,a=d(r)?ke:r,l=p(e.fallbackLocale)||h(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,o=h(e.messages)?e.messages:{[a]:{}},s=h(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},u=h(e.numberFormats)?e.numberFormats:{[a]:{}},f=i({},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)?Le(e):"vnode"===t&&v(e)&&"__v_isVNode"in e?Le(e.children):e}),m=e.pluralRules||{},_=d(e.missing)?e.missing:null,b=!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,k=!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,N=!!e.unresolving,y=d(e.postTranslation)?e.postTranslation:null,I=h(e.processor)?e.processor:null,C=!E(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=d(e.messageCompiler)?e.messageCompiler:Ne,P=d(e.messageResolver)?e.messageResolver:Te||ne,F=d(e.localeFallbacker)?e.localeFallbacker:ye||_e,R=v(e.fallbackContext)?e.fallbackContext:void 0,D=e,S=v(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,M=v(D.__numberFormatters)?D.__numberFormatters:new Map,w=v(D.__meta)?D.__meta:{};Ae++;const x={version:n,cid:Ae,locale:r,fallbackLocale:l,messages:o,modifiers:f,pluralRules:m,missing:_,missingWarn:b,fallbackWarn:k,fallbackFormat:L,unresolving:N,postTranslation:y,processor:I,warnHtmlMessage:C,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:F,fallbackContext:R,onWarn:t,__meta:w};return x.datetimeFormats=s,x.numberFormats=u,x.__datetimeFormatters=S,x.__numberFormatters=M,x}function Fe(e,t,n,r,a){const{missing:l,onWarn:o}=e;if(null!==l){const r=l(e,n,t,a);return g(r)?r:t}return t}function Re(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function De(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,Se(e,n)]),[]))}return Se(e,n)}(t,e)}function Se(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,Me(e,n)]),[]);return e.normalize(n)}}function Me(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const l=t;return e.interpolate(e.named(l.k||l.key));case 5:const o=t;return e.interpolate(e.list(null!=o.i?o.i:o.index));case 6:const s=t,c=s.m||s.modifier;return e.linked(Me(e,s.k||s.key),c?Me(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const i=t;return i.v||i.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const we=I.__EXTEND_POINT__,xe=N(we),We={INVALID_ARGUMENT:we,INVALID_DATE_ARGUMENT:xe(),INVALID_ISO_DATE_ARGUMENT:xe(),NOT_SUPPORT_NON_STRING_MESSAGE:xe(),__EXTEND_POINT__:xe()},Ue=e=>e;let $e=Object.create(null);const He=e=>v(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const Ve=()=>"",je=e=>d(e);function Xe(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:s,messages:c}=e,[u,i]=Be(...t),m=E(i.missingWarn)?i.missingWarn:e.missingWarn,_=E(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,d=E(i.escapeParameter)?i.escapeParameter:e.escapeParameter,b=!!i.resolvedMessage,k=g(i.default)||E(i.default)?E(i.default)?l?u:()=>u:i.default:n?l?u:()=>u:"",h=n||""!==k,L=ie(e,i);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]))}))}(i);let[N,T,y]=b?[u,L,c[L]||{}]:Ge(e,u,L,s,_,m),I=N,C=u;if(b||g(I)||He(I)||je(I)||h&&(I=k,C=I),!(b||(g(I)||He(I)||je(I))&&g(T)))return a?be:u;let O=!1;const A=je(I)?I:Ye(e,u,T,I,C,(()=>{O=!0}));if(O)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:u,missingWarn:i,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=Ge(f,r,t,c,u,i);a=s(e,r)}if(g(a)||He(a)){let n=!1;const l=Ye(e,r,t,a,r,(()=>{n=!0}));return n?Ve:l}return je(a)?a:Ve},_={locale:t,modifiers:a,pluralRules:l,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);o(r.plural)&&(_.pluralIndex=r.plural);return _}(e,T,y,i),F=function(e,t,n){const r=t(n);return r}(0,A,ue(P));return r?r(F,u):F}function Ge(e,t,n,r,a,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:u}=e,i=u(e,r,n);let f,m={},_=null;for(let p=0;p<i.length&&(f=i[p],m=o[f]||{},null===(_=c(m,t))&&(_=m[t]),!(g(_)||He(_)||je(_)));p++){const n=Fe(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Ye(e,t,n,r,l,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(je(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 u=s(r,function(e,t,n,r,l,o){return{locale:t,key:n,warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,l,0,c,o));return u.locale=n,u.key=t,u.source=r,u}function Be(...e){const[t,n,r]=e,a={};if(!(g(t)||o(t)||je(t)||He(t)))throw Error(We.INVALID_ARGUMENT);const l=o(t)?String(t):(je(t),t);return o(n)?a.plural=n:g(n)?a.default=n:h(n)&&!u(n)?a.named=n:p(n)&&(a.list=n),o(r)?a.plural=r:g(r)?a.default=r:h(r)&&i(a,r),[l,a]}function Ke(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,f,m,_]=Je(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ie(e,m),v=o(e,a,d);if(!g(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let b,k={},L=null;for(let u=0;u<v.length&&(b=v[u],k=n[b]||{},L=k[c],!h(L));u++)Fe(e,c,b,0,"datetime format");if(!h(L)||!g(b))return r?be:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.DateTimeFormat(b,i({},L,_)),s.set(N,T)),p?T.formatToParts(f):T.format(f)}const ze=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Je(...e){const[t,n,r,a]=e,l={};let c,u={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(We.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(i){throw Error(We.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(We.INVALID_DATE_ARGUMENT);c=t}else{if(!o(t))throw Error(We.INVALID_ARGUMENT);c=t}return g(n)?l.key=n:h(n)&&Object.keys(n).forEach((e=>{ze.includes(e)?u[e]=n[e]:l[e]=n[e]})),g(r)?l.locale=r:h(r)&&(u=r),h(a)&&(u=a),[l.key||"",c,l,u]}function Qe(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function qe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,f,m,_]=et(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ie(e,m),v=o(e,a,d);if(!g(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let b,k={},L=null;for(let u=0;u<v.length&&(b=v[u],k=n[b]||{},L=k[c],!h(L));u++)Fe(e,c,b,0,"number format");if(!h(L)||!g(b))return r?be:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.NumberFormat(b,i({},L,_)),s.set(N,T)),p?T.formatToParts(f):T.format(f)}const Ze=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function et(...e){const[t,n,r,a]=e,l={};let s={};if(!o(t))throw Error(We.INVALID_ARGUMENT);const c=t;return g(n)?l.key=n:h(n)&&Object.keys(n).forEach((e=>{Ze.includes(e)?s[e]=n[e]:l[e]=n[e]})),g(r)?l.locale=r:h(r)&&(s=r),h(a)&&(s=a),[l.key||"",c,l,s]}function tt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const nt="9.5.0",rt=We.__EXTEND_POINT__,at=N(rt),lt={UNEXPECTED_RETURN_TYPE:rt,INVALID_ARGUMENT:at(),MUST_BE_CALL_SETUP_TOP:at(),NOT_INSTALLED:at(),NOT_AVAILABLE_IN_LEGACY_MODE:at(),REQUIRED_VALUE:at(),INVALID_VALUE:at(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:at(),NOT_INSTALLED_WITH_PROVIDE:at(),UNEXPECTED_ERROR:at(),NOT_COMPATIBLE_LEGACY_VUE_I18N:at(),BRIDGE_SUPPORT_VUE_2_ONLY:at(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:at(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:at(),__EXTEND_POINT__:at()};const ot=r("__translateVNode"),st=r("__datetimeParts"),ct=r("__numberParts"),ut=r("__setPluralRules"),it=r("__injectWithOption"),ft=r("__dispose");function mt(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,l=!1;for(let e=0;e<r;e++){if(n[e]in a||(a[n[e]]={}),!v(a[n[e]])){l=!0;break}a=a[n[e]]}l||(a[n[r]]=e[t],delete e[t]),v(a[n[r]])&&mt(a[n[r]])}else v(e[t])&&mt(e[t]);return e}function _t(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:l}=t,o=h(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?(o[t]=o[t]||{},dt(n,o[t])):dt(n,o)}else g(e)&&dt(JSON.parse(e),o)})),null==a&&l)for(const s in o)_(o,s)&&mt(o[s]);return o}const pt=e=>!v(e)||p(e);function dt(e,t){if(pt(e)||pt(t))throw Error(lt.INVALID_VALUE);for(const n in e)_(e,n)&&(pt(e[n])||pt(t[n])?t[n]=e[n]:dt(e[n],t[n]))}function gt(e){return e.type}function Et(e,t,n){let r=v(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=_t(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])}))}}function vt(e){return t.createVNode(t.Text,null,e,0)}let bt=0;function kt(e){return(n,r,a,l)=>e(r,a,t.getCurrentInstance()||void 0,l)}function ht(e={},r){const{__root:a,__injectWithOption:l}=e,s=void 0===a;let u=!E(e.inheritLocale)||e.inheritLocale;const f=t.ref(a&&u?a.locale.value:g(e.locale)?e.locale:ke),m=t.ref(a&&u?a.fallbackLocale.value:g(e.fallbackLocale)||p(e.fallbackLocale)||h(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),_=t.ref(_t(f.value,e)),b=t.ref(h(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),k=t.ref(h(e.numberFormats)?e.numberFormats:{[f.value]:{}});let L=a?a.missingWarn:!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,N=a?a.fallbackWarn:!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,T=a?a.fallbackRoot:!E(e.fallbackRoot)||e.fallbackRoot,y=!!e.fallbackFormat,I=d(e.missing)?e.missing:null,C=d(e.missing)?kt(e.missing):null,O=d(e.postTranslation)?e.postTranslation:null,A=a?a.warnHtmlMessage:!E(e.warnHtmlMessage)||e.warnHtmlMessage,P=!!e.escapeParameter;const F=a?a.modifiers:h(e.modifiers)?e.modifiers:{};let R,D=e.pluralRules||a&&a.pluralRules;R=(()=>{s&&Ce(null);const t={version:nt,locale:f.value,fallbackLocale:m.value,messages:_.value,modifiers:F,pluralRules:D,missing:null===C?void 0:C,missingWarn:L,fallbackWarn:N,fallbackFormat:y,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:A,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=b.value,t.numberFormats=k.value,t.__datetimeFormatters=h(R)?R.__datetimeFormatters:void 0,t.__numberFormatters=h(R)?R.__numberFormatters:void 0;const n=Pe(t);return s&&Ce(n),n})(),Re(R,f.value,m.value);const S=t.computed({get:()=>f.value,set:e=>{f.value=e,R.locale=f.value}}),M=t.computed({get:()=>m.value,set:e=>{m.value=e,R.fallbackLocale=m.value,Re(R,f.value,e)}}),w=t.computed((()=>_.value)),x=t.computed((()=>b.value)),W=t.computed((()=>k.value));const U=(e,t,n,r,l,c)=>{let u;f.value,m.value,_.value,b.value,k.value;try{0,s||(R.fallbackContext=a?Oe():void 0),u=e(R)}finally{s||(R.fallbackContext=void 0)}if(o(u)&&u===be){const[e,n]=t();return a&&T?r(a):l(e)}if(c(u))return u;throw Error(lt.UNEXPECTED_RETURN_TYPE)};function $(...e){return U((t=>Reflect.apply(Xe,null,[t,...e])),(()=>Be(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const H={normalize:function(e){return e.map((e=>g(e)||o(e)||E(e)?vt(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return _.value[e]||{}}bt++,a&&n&&(t.watch(a.locale,(e=>{u&&(f.value=e,R.locale=e,Re(R,f.value,m.value))})),t.watch(a.fallbackLocale,(e=>{u&&(m.value=e,R.fallbackLocale=e,Re(R,f.value,m.value))})));const j={id:bt,locale:S,fallbackLocale:M,get inheritLocale(){return u},set inheritLocale(e){u=e,e&&a&&(f.value=a.locale.value,m.value=a.fallbackLocale.value,Re(R,f.value,m.value))},get availableLocales(){return Object.keys(_.value).sort()},messages:w,get modifiers(){return F},get pluralRules(){return D||{}},get isGlobal(){return s},get missingWarn(){return L},set missingWarn(e){L=e,R.missingWarn=L},get fallbackWarn(){return N},set fallbackWarn(e){N=e,R.fallbackWarn=N},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return y},set fallbackFormat(e){y=e,R.fallbackFormat=y},get warnHtmlMessage(){return A},set warnHtmlMessage(e){A=e,R.warnHtmlMessage=e},get escapeParameter(){return P},set escapeParameter(e){P=e,R.escapeParameter=e},t:$,getLocaleMessage:V,setLocaleMessage:function(e,t){_.value[e]=t,R.messages=_.value},mergeLocaleMessage:function(e,t){_.value[e]=_.value[e]||{},dt(t,_.value[e]),R.messages=_.value},getPostTranslationHandler:function(){return d(O)?O:null},setPostTranslationHandler:function(e){O=e,R.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(C=kt(e)),I=e,R.missing=C},[ut]:function(e){D=e,R.pluralRules=D}};return j.datetimeFormats=x,j.numberFormats=W,j.rt=function(...e){const[t,n,r]=e;if(r&&!v(r))throw Error(lt.INVALID_ARGUMENT);return $(t,n,i({resolvedMessage:!0},r||{}))},j.te=function(e,t){if(!e)return!1;const n=V(g(t)?t:f.value);return null!==R.messageResolver(n,e)},j.tm=function(e){const t=function(e){let t=null;const n=pe(R,m.value,f.value);for(let r=0;r<n.length;r++){const a=_.value[n[r]]||{},l=R.messageResolver(a,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},j.d=function(...e){return U((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Je(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>he),(e=>g(e)))},j.n=function(...e){return U((t=>Reflect.apply(qe,null,[t,...e])),(()=>et(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>he),(e=>g(e)))},j.getDateTimeFormat=function(e){return b.value[e]||{}},j.setDateTimeFormat=function(e,t){b.value[e]=t,R.datetimeFormats=b.value,Qe(R,e,t)},j.mergeDateTimeFormat=function(e,t){b.value[e]=i(b.value[e]||{},t),R.datetimeFormats=b.value,Qe(R,e,t)},j.getNumberFormat=function(e){return k.value[e]||{}},j.setNumberFormat=function(e,t){k.value[e]=t,R.numberFormats=k.value,tt(R,e,t)},j.mergeNumberFormat=function(e,t){k.value[e]=i(k.value[e]||{},t),R.numberFormats=k.value,tt(R,e,t)},j[it]=l,j[ot]=function(...e){return U((t=>{let n;const r=t;try{r.processor=H,n=Reflect.apply(Xe,null,[r,...e])}finally{r.processor=null}return n}),(()=>Be(...e)),"translate",(t=>t[ot](...e)),(e=>[vt(e)]),(e=>p(e)))},j[st]=function(...e){return U((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Je(...e)),"datetime format",(t=>t[st](...e)),(()=>[]),(e=>g(e)||p(e)))},j[ct]=function(...e){return U((t=>Reflect.apply(qe,null,[t,...e])),(()=>et(...e)),"number format",(t=>t[ct](...e)),(()=>[]),(e=>g(e)||p(e)))},j}function Lt(e={},t){{const t=ht(function(e){const t=g(e.locale)?e.locale:ke,n=g(e.fallbackLocale)||p(e.fallbackLocale)||h(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=d(e.missing)?e.missing:void 0,a=!E(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!E(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!E(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,u=h(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,m=d(e.postTranslation)?e.postTranslation:void 0,_=!g(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,v=!!e.escapeParameterHtml,b=!E(e.sync)||e.sync;let k=e.messages;if(h(e.sharedMessages)){const t=e.sharedMessages;k=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return i(r,t[n]),e}),k||{})}const{__i18n:L,__root:N,__injectWithOption:T}=e,y=e.datetimeFormats,I=e.numberFormats;return{locale:t,fallbackLocale:n,messages:k,flatJson:e.flatJson,datetimeFormats:y,numberFormats:I,missing:r,missingWarn:a,fallbackWarn:l,fallbackRoot:o,fallbackFormat:s,modifiers:u,pluralRules:f,postTranslation:m,warnHtmlMessage:_,escapeParameter:v,messageResolver:e.messageResolver,inheritLocale:b,__i18n:L,__root:N,__injectWithOption:T}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return E(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=E(e)?!e:e},get silentFallbackWarn(){return E(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=E(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,a]=e,l={};let o=null,s=null;if(!g(n))throw Error(lt.INVALID_ARGUMENT);const c=n;return g(r)?l.locale=r:p(r)?o=r:h(r)&&(s=r),p(a)?o=a:h(a)&&(s=a),Reflect.apply(t.t,t,[c,o||s||{},l])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,a]=e,l={plural:1};let s=null,c=null;if(!g(n))throw Error(lt.INVALID_ARGUMENT);const u=n;return g(r)?l.locale=r:o(r)?l.plural=r:p(r)?s=r:h(r)&&(c=r),g(a)?l.locale=a:p(a)?s=a:h(a)&&(c=a),Reflect.apply(t.t,t,[u,s||c||{},l])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1};return r.__extender=n,r}}const Nt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Tt(e){return t.Fragment}const yt=t.defineComponent({name:"i18n-t",props:i({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Nt),setup(e,n){const{slots:r,attrs:a}=n,l=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const o=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},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,o),u=l[ot](e.keypath,c,s),f=i({},a),m=g(e.tag)||v(e.tag)?e.tag:Tt();return t.h(m,f,u)}}}),It=yt;function Ct(e,n,r,a){const{slots:l,attrs:o}=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)?i({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let u=[n.key];p(c)?u=c.map(((e,t)=>{const n=l[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)&&(u=[c]);const f=i({},o),m=g(e.tag)||v(e.tag)?e.tag:Tt();return t.h(m,f,u)}}const Ot=t.defineComponent({name:"i18n-n",props:i({value:{type:Number,required:!0},format:{type:[String,Object]}},Nt),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return Ct(e,t,Ze,((...e)=>n[ct](...e)))}}),At=Ot,Pt=t.defineComponent({name:"i18n-d",props:i({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Nt),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return Ct(e,t,ze,((...e)=>n[st](...e)))}}),Ft=Pt;function Rt(e){const r=t=>{const{instance:n,modifiers:r,value:a}=t;if(!n||!n.$)throw Error(lt.UNEXPECTED_ERROR);const l=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),o=Dt(a);return[Reflect.apply(l.t,l,[...St(o)]),l]};return{created:(a,l)=>{const[o,s]=r(l);n&&e.global===s&&(a.__i18nWatcher=t.watch(s.locale,(()=>{l.instance&&l.instance.$forceUpdate()}))),a.__composer=s,a.textContent=o},unmounted:e=>{n&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=Dt(t);e.textContent=Reflect.apply(n.t,n,[...St(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function Dt(e){if(g(e))return{path:e};if(h(e)){if(!("path"in e))throw Error(lt.REQUIRED_VALUE,"path");return e}throw Error(lt.INVALID_VALUE)}function St(e){const{path:t,locale:n,args:r,choice:a,plural:l}=e,s={},c=r||{};return g(n)&&(s.locale=n),o(a)&&(s.plural=a),o(l)&&(s.plural=l),[t,c,s]}function Mt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ut](t.pluralizationRules||e.pluralizationRules);const n=_t(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const wt=r("global-vue-i18n");function xt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(lt.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(lt.NOT_INSTALLED);const r=function(e){{const n=t.inject(e.isCE?wt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw function(e,...t){return C(e,null,void 0)}(e.isCE?lt.NOT_INSTALLED_WITH_PROVIDE:lt.UNEXPECTED_ERROR);return n}}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),l=gt(n),o=function(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===r.mode&&!e.__useComponent){if(!r.allowComposition)throw Error(lt.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const l="local"===n,o=t.shallowRef(null);if(l&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(lt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=E(a.inheritLocale)?a.inheritLocale:!g(a.locale),u=t.ref(!l||s?r.locale.value:g(a.locale)?a.locale:ke),i=t.ref(!l||s?r.fallbackLocale.value:g(a.fallbackLocale)||p(a.fallbackLocale)||h(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:u.value),f=t.ref(_t(u.value,a)),m=t.ref(h(a.datetimeFormats)?a.datetimeFormats:{[u.value]:{}}),_=t.ref(h(a.numberFormats)?a.numberFormats:{[u.value]:{}}),v=l?r.missingWarn:!E(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,b=l?r.fallbackWarn:!E(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,k=l?r.fallbackRoot:!E(a.fallbackRoot)||a.fallbackRoot,L=!!a.fallbackFormat,N=d(a.missing)?a.missing:null,T=d(a.postTranslation)?a.postTranslation:null,y=l?r.warnHtmlMessage:!E(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,C=l?r.modifiers:h(a.modifiers)?a.modifiers:{},O=a.pluralRules||l&&r.pluralRules;function A(){return[u.value,i.value,f.value,m.value,_.value]}const P=t.computed({get:()=>o.value?o.value.locale.value:u.value,set:e=>{o.value&&(o.value.locale.value=e),u.value=e}}),F=t.computed({get:()=>o.value?o.value.fallbackLocale.value:i.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),i.value=e}}),R=t.computed((()=>o.value?o.value.messages.value:f.value)),D=t.computed((()=>m.value)),S=t.computed((()=>_.value));function M(){return o.value?o.value.getPostTranslationHandler():T}function w(e){o.value&&o.value.setPostTranslationHandler(e)}function x(){return o.value?o.value.getMissingHandler():N}function W(e){o.value&&o.value.setMissingHandler(e)}function U(e){return A(),e()}function $(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function V(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function j(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function X(e){return o.value?o.value.tm(e):{}}function G(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function B(e,t){o.value&&(o.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function z(e){return o.value?o.value.getDateTimeFormat(e):{}}function J(e,t){o.value&&(o.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function q(e){return o.value?o.value.getNumberFormat(e):{}}function Z(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const te={get id(){return o.value?o.value.id:-1},locale:P,fallbackLocale:F,messages:R,datetimeFormats:D,numberFormats:S,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(f.value)},get modifiers(){return o.value?o.value.modifiers:C},get pluralRules(){return o.value?o.value.pluralRules:O},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:v},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:b},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:k},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:L},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:y},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:I},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:$,getPostTranslationHandler:M,setPostTranslationHandler:w,getMissingHandler:x,setMissingHandler:W,rt:H,d:V,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=u.value,e.fallbackLocale.value=i.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=L,e.fallbackRoot=k,e.fallbackWarn=b,e.missingWarn=v,e.warnHtmlMessage=y}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(lt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===n?(u.value=t.locale.value,i.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):l&&ne(t)})),te}(n,o,a,e)}if("global"===o)return Et(a,e,l),a;if("parent"===o){let t=function(e,t,n=!1){let r=null;const a=t.root;let l=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=l;){const t=e;if("composition"===e.mode)r=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(r=e.__composer,n&&r&&!r[it]&&(r=null))}if(null!=r)break;if(a===l)break;l=l.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const s=r;let f=s.__getInstance(n);if(null==f){const r=i({},e);"__i18n"in l&&(r.__i18n=l.__i18n),a&&(r.__root=a),f=ht(r),s.__composerExtend&&(f[ft]=s.__composerExtend(f)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[ft];a&&(a(),delete t[ft])}),n)}(s,n,f),s.__setInstance(n,f)}return f}const Wt=["locale","fallbackLocale","availableLocales"],Ut=["t","rt","d","n","tm","te"];return Ne=function(e,t){if(g(e)){!E(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Ue)(e),r=$e[n];if(r)return r;const{ast:a,detectError:l}=function(e,t={}){let n=!1;const r=t.onError||O;return t.onError=e=>{n=!0,r(e)},{...J(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),o=De(a);return l?o:$e[n]=o}{const t=e.cacheKey;return t?$e[t]||($e[t]=De(e)):De(e)}},Te=function(e,t){if(!v(e))return null;let n=te.get(t);if(n||(n=function(e){const t=[];let n,r,a,l,o,s,c,u=-1,i=0,f=0;const m=[];function _(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,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--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=ee(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!_()){if(l=Z(n),c=Q[i],o=c[l]||c.l||8,8===o)return;if(i=o[0],void 0!==o[1]&&(s=m[o[1]],s&&(a=n,!1===s())))return;if(7===i)return t}}(t),n&&te.set(t,n)),!n)return null;const r=n.length;let a=e,l=0;for(;l<r;){const e=a[n[l]];if(void 0===e)return null;a=e,l++}return a},ye=pe,e.DatetimeFormat=Pt,e.I18nD=Ft,e.I18nInjectionKey=wt,e.I18nN=At,e.I18nT=It,e.NumberFormat=Ot,e.Translation=yt,e.VERSION=nt,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(lt.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){const a=!E(e.legacy)||e.legacy,l=!E(e.globalInjection)||e.globalInjection,o=!a||!!e.allowComposition,s=new Map,[c,u]=function(e,n,r){const a=t.effectScope();{const t=n?a.run((()=>Lt(e))):a.run((()=>ht(e)));if(null==t)throw Error(lt.UNEXPECTED_ERROR);return[a,t]}}(e,a),i=r("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return o},async install(n,...r){if(n.__VUE_I18N_SYMBOL__=i,n.provide(n.__VUE_I18N_SYMBOL__,e),h(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let o=null;!a&&l&&(o=function(e,n){const r=Object.create(null);Wt.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(lt.UNEXPECTED_ERROR);const l=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,l)})),e.config.globalProperties.$i18n=r,Ut.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(lt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,Ut.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(n,e.global)),function(e,t,...n){const r=h(n[0])?n[0]:{},a=!!r.useI18nComponentName;(!E(r.globalInstall)||r.globalInstall)&&([a?"i18n":yt.name,"I18nT"].forEach((t=>e.component(t,yt))),[Ot.name,"I18nN"].forEach((t=>e.component(t,Ot))),[Pt.name,"I18nD"].forEach((t=>e.component(t,Pt)))),e.directive("t",Rt(t))}(n,e,...r),a&&n.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(lt.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const t=l.i18n;if(l.__i18n&&(t.__i18n=l.__i18n),t.__root=n,this===this.$root)this.$i18n=Mt(e,t);else{t.__injectWithOption=!0,t.__extender=r.__vueI18nExtend,this.$i18n=Lt(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(l.__i18n)if(this===this.$root)this.$i18n=Mt(e,l);else{this.$i18n=Lt({__i18n:l.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;l.__i18nGlobal&&Et(n,l,l),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),r.__setInstance(a,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(lt.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(e),delete this.$i18n}}}(u,u.__composer,e));const s=n.unmount;n.unmount=()=>{o&&o(),e.dispose(),s()}},get global(){return u},dispose(){c.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=xt,e.vTDirective=Rt,e}({},Vue); | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>l({l:e,k:t,s:n}),l=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),c=e=>"[object RegExp]"===k(e),u=e=>h(e)&&0===Object.keys(e).length,i=Object.assign;function f(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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=Object.prototype.toString,k=e=>b.call(e),h=e=>{if(!v(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function L(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function N(e){let t=e;return()=>++t}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function y(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const I={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 C(e,t,n={}){const{domain:r,messages:a,args:l}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function O(e){throw e}const A=" ",P="\r",F="\n",R=String.fromCharCode(8232),D=String.fromCharCode(8233);function S(e){const t=e;let n=0,r=1,a=1,l=0;const o=e=>t[e]===P&&t[e+1]===F,s=e=>t[e]===D,c=e=>t[e]===R,u=e=>o(e)||(e=>t[e]===F)(e)||s(e)||c(e),i=e=>o(e)||s(e)||c(e)?F:t[e];function f(){return l=0,u(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>l,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+l),next:f,peek:function(){return o(n+l)&&l++,l++,t[n+l]},reset:function(){n=0,r=1,a=1,l=0},resetPeek:function(e=0){l=e},skipToPeek:function(){const e=n+l;for(;e!==n;)f();l=0}}}const M=void 0,w=".",x="'";function W(e,t={}){const n=!1!==t.location,r=S(e),a=()=>r.index(),l=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=l(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=l(),e.currentType=t;const a={type:t};return n&&(a.loc=y(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):(I.EXPECTED_TOKEN,l(),"")}function p(e){let t="";for(;e.currentPeek()===A||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===M)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===M)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 l=e.currentPeek();return"{"===l?"%"!==r&&t:"@"!==l&&l?"%"===l?(e.peek(),n(t,"%",!0)):"|"===l?!("%"!==r&&!a)||!(r===A||r===F):l===A?(e.peek(),n(!0,A,a)):l!==F||(e.peek(),n(!0,F,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===M?M:t(n)?(e.next(),n):null}function h(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function L(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function N(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=L(e);)n+=t;return n}function C(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===A||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 O(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return P(e,t,4);case"U":return P(e,t,6);default:return I.UNKNOWN_ESCAPE_SEQUENCE,l(),""}}function P(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=N(e);if(!t){I.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),e.currentChar();break}r+=t}return`\\${t}${r}`}function R(e){d(e);const t=_(e,"|");return d(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(I.NOT_ALLOW_NEST_PLACEHOLDER,l()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(I.EMPTY_PLACEHOLDER,l()),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&&(I.UNTERMINATED_CLOSING_BRACE,l()),n=W(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,o=!0;if(v(e))return t.braceNest>0&&(I.UNTERMINATED_CLOSING_BRACE,l()),n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return I.UNTERMINATED_CLOSING_BRACE,l(),t.braceNest=0,U(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=h(e);)n+=t;return e.currentChar()===M&&(I.UNTERMINATED_CLOSING_BRACE,l()),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+=`-${T(e)}`):t+=T(e),e.currentChar()===M&&(I.UNTERMINATED_CLOSING_BRACE,l()),t}(e)),d(e),n;if(o=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="";const r=e=>e!==x&&e!==F;for(;t=k(e,r);)n+="\\"===t?O(e):t;const a=e.currentChar();return a===F||a===M?(I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),a===F&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!o)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==A&&e!==F;for(;t=k(e,r);)n+=t;return n}(e)),I.INVALID_TOKEN_IN_PLACEHOLDER,l(),n.value,d(e),n}return n}function W(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!==A||(I.INVALID_LINKED_FORMAT,l()),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,R(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),W(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=h(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===A||!t)&&(t===F?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?D(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===A?r:a===F||a===w?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(I.INVALID_LINKED_FORMAT,l()),t.braceNest=0,t.inLinked=!1,U(e,t))}}function U(e,t){let n={type:14};if(t.braceNest>0)return D(e,t)||m(t);if(t.inLinked)return W(e,t)||m(t);switch(e.currentChar()){case"{":return D(e,t)||m(t);case"}":return I.UNBALANCED_CLOSING_BRACE,l(),e.next(),f(t,3,"}");case"@":return W(e,t)||m(t);default:if(v(e))return n=f(t,1,R(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,C(e)):f(t,4,function(e){d(e);const t=e.currentChar();return"%"!==t&&(I.EXPECTED_TOKEN,l()),e.next(),"%"}(e));if(b(e))return f(t,0,C(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=a(),c.startLoc=l(),r.currentChar()===M?f(c,14):U(r,c)},currentOffset:a,currentPosition:l,context:u}}const U=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function H(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function a(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(),l=r(3,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}function o(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(5,l,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(4,l,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(9,l,o);return s.value=t.replace(U,$),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let l=e.nextToken();if(9===l.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(8,l,o);return 12!==t.type?(I.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",a(s,l,o),{nextConsumeToken:t,node:s}):(null==t.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,V(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,l=t.nextConsumeToken||e.nextToken()}switch(10!==l.type&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),l=e.nextToken(),2===l.type&&(l=e.nextToken()),l.type){case 11:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=function(e,t){const n=e.context(),l=r(7,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}(e,l.value||"");break;case 5:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=s(e,l.value||"");break;case 6:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=o(e,l.value||"");break;case 7:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(l)),n.key=c(e,l.value||"");break;default:I.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const u=e.context(),i=r(7,u.offset,u.startLoc);return i.value="",a(i,u.offset,u.startLoc),n.key=i,a(n,u.offset,u.startLoc),{nextConsumeToken:l,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:l}=t,o=f(e);return 14===t.currentType?o:function(e,t,n,l){const o=e.context();let s=0===l.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(l);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==o.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,l,o)}return{parse:function(n){const l=W(n,i({},e)),o=l.context(),s=r(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(l),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==o.currentType&&(I.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,n[o.offset]),a(s,l.currentOffset(),l.currentPosition()),s}}}function V(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 j(e,t){for(let n=0;n<e.length;n++)X(e[n],t)}function X(e,t){switch(e.type){case 1:j(e.cases,t),t.helper("plural");break;case 2:j(e.items,t);break;case 6:X(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 G(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&X(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Y(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=L(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 B(e){switch(e.t=e.type,e.type){case 0:const t=e;B(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)B(r[e]);n.c=r,delete n.cases;break;case 2:const a=e,l=a.items;for(let e=0;e<l.length;e++)B(l[e]);a.i=l,delete a.items,a.static&&(a.s=a.static,delete a.static);break;case 3:case 9:case 8:case 7:const o=e;o.value&&(o.v=o.value,delete o.value);break;case 6:const s=e;B(s.key),s.k=s.key,delete s.key,s.modifier&&(B(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key}delete e.type}function K(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?K(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&&(K(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 l=0;l<a&&(K(e,t.items[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),K(e,t.key),t.modifier?(e.push(", "),K(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=g(t.mode)?t.mode:"normal",r=g(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,l=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:l}=t,o=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:l,indentLevel:0};function c(e,t){s.code+=e}function u(e,t=!0){const n=t?a:"";c(l?n+" ".repeat(e):n)}return o&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&u(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&u(t)},newline:function(){u(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:l,needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${L(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),K(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:u,map:i}=c.context();return{ast:e,code:u,map:i?i.toJSON():void 0}};function J(e,t={}){const n=i({},t),r=!!n.jit,a=!!n.minify,l=null==n.optimize||n.optimize,o=H(n).parse(e);return r?(l&&function(e){const t=e.body;2===t.type?Y(t):t.cases.forEach((e=>Y(e)))}(o),a&&B(o),{ast:o,code:""}):(G(o,n),z(o,n))}const Q=[];Q[0]={w:[0],i:[3,0],"[":[4],o:[7]},Q[1]={w:[1],".":[2],"[":[4],o:[7]},Q[2]={w:[2],i:[3,0],0:[3,0]},Q[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Q[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Q[5]={"'":[4,0],o:8,l:[5,0]},Q[6]={'"':[4,0],o:8,l:[6,0]};const q=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Z(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 ee(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,q.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 te=new Map;function ne(e,t){return v(e)?e[t]:null}const re=e=>e,ae=e=>"",le="text",oe=e=>0===e.length?"":L(e),se=e=>null==e?"":p(e)||h(e)&&e.toString===b?JSON.stringify(e,null,2):String(e);function ce(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ue(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=v(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?e.pluralRules[t]:ce,a=v(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?ce:void 0,l=e.list||[],s=e.named||{};o(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):ae)}const u=h(e.processor)&&d(e.processor.normalize)?e.processor.normalize:oe,f=h(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:se,m={list:e=>l[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let l="text",o="";1===n.length?v(r)?(o=r.modifier||o,l=r.type||l):g(r)&&(o=r||o):2===n.length&&(g(r)&&(o=r||o),g(a)&&(l=a||l));const s=c(t)(m),u="vnode"===l&&p(s)&&o?s[0]:s;return o?(i=o,e.modifiers?e.modifiers[i]:re)(u,l):u;var i},message:c,type:h(e.processor)&&g(e.processor.type)?e.processor.type:le,interpolate:f,normalize:u,values:i({},l,s)};return m}function ie(e,t){return null!=t.locale?me(t.locale):me(e.locale)}let fe;function me(e){return g(e)?e:null!=fe&&e.resolvedOnce?fe:fe=e()}function _e(e,t,n){return[...new Set([n,...p(t)?t:v(t)?Object.keys(t):g(t)?[t]:[n]])]}function pe(e,t,n){const r=g(n)?n:ke,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let e=[n];for(;p(e);)e=de(l,e,t);const o=p(t)||!h(t)?t:t.default?t.default:null;e=g(o)?[o]:o,p(e)&&de(l,e,!1),a.__localeChainCache.set(r,l)}return l}function de(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const l=t[a];g(l)&&(r=ge(e,t[a],n))}return r}function ge(e,t,n){let r;const a=t.split("-");do{r=Ee(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function Ee(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(p(n)||h(n))&&n[a]&&(r=n[a])}return r}const ve="9.6.0",be=-1,ke="en-US",he="",Le=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Ne,Te,ye;let Ie=null;const Ce=e=>{Ie=e},Oe=()=>Ie;let Ae=0;function Pe(e={}){const t=d(e.onWarn)?e.onWarn:T,n=g(e.version)?e.version:ve,r=g(e.locale)||d(e.locale)?e.locale:ke,a=d(r)?ke:r,l=p(e.fallbackLocale)||h(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,o=h(e.messages)?e.messages:{[a]:{}},s=h(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},u=h(e.numberFormats)?e.numberFormats:{[a]:{}},f=i({},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)?Le(e):"vnode"===t&&v(e)&&"__v_isVNode"in e?Le(e.children):e}),m=e.pluralRules||{},_=d(e.missing)?e.missing:null,b=!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,k=!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,N=!!e.unresolving,y=d(e.postTranslation)?e.postTranslation:null,I=h(e.processor)?e.processor:null,C=!E(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=d(e.messageCompiler)?e.messageCompiler:Ne,P=d(e.messageResolver)?e.messageResolver:Te||ne,F=d(e.localeFallbacker)?e.localeFallbacker:ye||_e,R=v(e.fallbackContext)?e.fallbackContext:void 0,D=e,S=v(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,M=v(D.__numberFormatters)?D.__numberFormatters:new Map,w=v(D.__meta)?D.__meta:{};Ae++;const x={version:n,cid:Ae,locale:r,fallbackLocale:l,messages:o,modifiers:f,pluralRules:m,missing:_,missingWarn:b,fallbackWarn:k,fallbackFormat:L,unresolving:N,postTranslation:y,processor:I,warnHtmlMessage:C,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:F,fallbackContext:R,onWarn:t,__meta:w};return x.datetimeFormats=s,x.numberFormats=u,x.__datetimeFormatters=S,x.__numberFormatters=M,x}function Fe(e,t,n,r,a){const{missing:l,onWarn:o}=e;if(null!==l){const r=l(e,n,t,a);return g(r)?r:t}return t}function Re(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function De(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,Se(e,n)]),[]))}return Se(e,n)}(t,e)}function Se(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,Me(e,n)]),[]);return e.normalize(n)}}function Me(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const l=t;return e.interpolate(e.named(l.k||l.key));case 5:const o=t;return e.interpolate(e.list(null!=o.i?o.i:o.index));case 6:const s=t,c=s.m||s.modifier;return e.linked(Me(e,s.k||s.key),c?Me(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const i=t;return i.v||i.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const we=I.__EXTEND_POINT__,xe=N(we),We={INVALID_ARGUMENT:we,INVALID_DATE_ARGUMENT:xe(),INVALID_ISO_DATE_ARGUMENT:xe(),NOT_SUPPORT_NON_STRING_MESSAGE:xe(),__EXTEND_POINT__:xe()},Ue=e=>e;let $e=Object.create(null);const He=e=>v(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const Ve=()=>"",je=e=>d(e);function Xe(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:s,messages:c}=e,[u,i]=Be(...t),m=E(i.missingWarn)?i.missingWarn:e.missingWarn,_=E(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,d=E(i.escapeParameter)?i.escapeParameter:e.escapeParameter,b=!!i.resolvedMessage,k=g(i.default)||E(i.default)?E(i.default)?l?u:()=>u:i.default:n?l?u:()=>u:"",h=n||""!==k,L=ie(e,i);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]))}))}(i);let[N,T,y]=b?[u,L,c[L]||{}]:Ge(e,u,L,s,_,m),I=N,C=u;if(b||g(I)||He(I)||je(I)||h&&(I=k,C=I),!(b||(g(I)||He(I)||je(I))&&g(T)))return a?be:u;let O=!1;const A=je(I)?I:Ye(e,u,T,I,C,(()=>{O=!0}));if(O)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:u,missingWarn:i,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=Ge(f,r,t,c,u,i);a=s(e,r)}if(g(a)||He(a)){let n=!1;const l=Ye(e,r,t,a,r,(()=>{n=!0}));return n?Ve:l}return je(a)?a:Ve},_={locale:t,modifiers:a,pluralRules:l,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);o(r.plural)&&(_.pluralIndex=r.plural);return _}(e,T,y,i),F=function(e,t,n){const r=t(n);return r}(0,A,ue(P));return r?r(F,u):F}function Ge(e,t,n,r,a,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:u}=e,i=u(e,r,n);let f,m={},_=null;for(let p=0;p<i.length&&(f=i[p],m=o[f]||{},null===(_=c(m,t))&&(_=m[t]),!(g(_)||He(_)||je(_)));p++){const n=Fe(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Ye(e,t,n,r,l,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(je(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 u=s(r,function(e,t,n,r,l,o){return{locale:t,key:n,warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,l,0,c,o));return u.locale=n,u.key=t,u.source=r,u}function Be(...e){const[t,n,r]=e,a={};if(!(g(t)||o(t)||je(t)||He(t)))throw Error(We.INVALID_ARGUMENT);const l=o(t)?String(t):(je(t),t);return o(n)?a.plural=n:g(n)?a.default=n:h(n)&&!u(n)?a.named=n:p(n)&&(a.list=n),o(r)?a.plural=r:g(r)?a.default=r:h(r)&&i(a,r),[l,a]}function Ke(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,f,m,_]=Je(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ie(e,m),v=o(e,a,d);if(!g(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let b,k={},L=null;for(let u=0;u<v.length&&(b=v[u],k=n[b]||{},L=k[c],!h(L));u++)Fe(e,c,b,0,"datetime format");if(!h(L)||!g(b))return r?be:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.DateTimeFormat(b,i({},L,_)),s.set(N,T)),p?T.formatToParts(f):T.format(f)}const ze=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Je(...e){const[t,n,r,a]=e,l={};let c,u={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(We.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(i){throw Error(We.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(We.INVALID_DATE_ARGUMENT);c=t}else{if(!o(t))throw Error(We.INVALID_ARGUMENT);c=t}return g(n)?l.key=n:h(n)&&Object.keys(n).forEach((e=>{ze.includes(e)?u[e]=n[e]:l[e]=n[e]})),g(r)?l.locale=r:h(r)&&(u=r),h(a)&&(u=a),[l.key||"",c,l,u]}function Qe(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function qe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,f,m,_]=et(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ie(e,m),v=o(e,a,d);if(!g(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let b,k={},L=null;for(let u=0;u<v.length&&(b=v[u],k=n[b]||{},L=k[c],!h(L));u++)Fe(e,c,b,0,"number format");if(!h(L)||!g(b))return r?be:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.NumberFormat(b,i({},L,_)),s.set(N,T)),p?T.formatToParts(f):T.format(f)}const Ze=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function et(...e){const[t,n,r,a]=e,l={};let s={};if(!o(t))throw Error(We.INVALID_ARGUMENT);const c=t;return g(n)?l.key=n:h(n)&&Object.keys(n).forEach((e=>{Ze.includes(e)?s[e]=n[e]:l[e]=n[e]})),g(r)?l.locale=r:h(r)&&(s=r),h(a)&&(s=a),[l.key||"",c,l,s]}function tt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const nt="9.6.0",rt=We.__EXTEND_POINT__,at=N(rt),lt={UNEXPECTED_RETURN_TYPE:rt,INVALID_ARGUMENT:at(),MUST_BE_CALL_SETUP_TOP:at(),NOT_INSTALLED:at(),NOT_AVAILABLE_IN_LEGACY_MODE:at(),REQUIRED_VALUE:at(),INVALID_VALUE:at(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:at(),NOT_INSTALLED_WITH_PROVIDE:at(),UNEXPECTED_ERROR:at(),NOT_COMPATIBLE_LEGACY_VUE_I18N:at(),BRIDGE_SUPPORT_VUE_2_ONLY:at(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:at(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:at(),__EXTEND_POINT__:at()};const ot=r("__translateVNode"),st=r("__datetimeParts"),ct=r("__numberParts"),ut=r("__setPluralRules"),it=r("__injectWithOption"),ft=r("__dispose");function mt(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,l=!1;for(let e=0;e<r;e++){if(n[e]in a||(a[n[e]]={}),!v(a[n[e]])){l=!0;break}a=a[n[e]]}l||(a[n[r]]=e[t],delete e[t]),v(a[n[r]])&&mt(a[n[r]])}else v(e[t])&&mt(e[t]);return e}function _t(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:l}=t,o=h(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?(o[t]=o[t]||{},dt(n,o[t])):dt(n,o)}else g(e)&&dt(JSON.parse(e),o)})),null==a&&l)for(const s in o)_(o,s)&&mt(o[s]);return o}const pt=e=>!v(e)||p(e);function dt(e,t){if(pt(e)||pt(t))throw Error(lt.INVALID_VALUE);for(const n in e)_(e,n)&&(pt(e[n])||pt(t[n])?t[n]=e[n]:dt(e[n],t[n]))}function gt(e){return e.type}function Et(e,t,n){let r=v(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=_t(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])}))}}function vt(e){return t.createVNode(t.Text,null,e,0)}let bt=0;function kt(e){return(n,r,a,l)=>e(r,a,t.getCurrentInstance()||void 0,l)}function ht(e={},r){const{__root:a,__injectWithOption:l}=e,s=void 0===a,u=e.flatJson;let f=!E(e.inheritLocale)||e.inheritLocale;const m=t.ref(a&&f?a.locale.value:g(e.locale)?e.locale:ke),b=t.ref(a&&f?a.fallbackLocale.value:g(e.fallbackLocale)||p(e.fallbackLocale)||h(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),k=t.ref(_t(m.value,e)),L=t.ref(h(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),N=t.ref(h(e.numberFormats)?e.numberFormats:{[m.value]:{}});let T=a?a.missingWarn:!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,y=a?a.fallbackWarn:!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,I=a?a.fallbackRoot:!E(e.fallbackRoot)||e.fallbackRoot,C=!!e.fallbackFormat,O=d(e.missing)?e.missing:null,A=d(e.missing)?kt(e.missing):null,P=d(e.postTranslation)?e.postTranslation:null,F=a?a.warnHtmlMessage:!E(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter;const D=a?a.modifiers:h(e.modifiers)?e.modifiers:{};let S,M=e.pluralRules||a&&a.pluralRules;S=(()=>{s&&Ce(null);const t={version:nt,locale:m.value,fallbackLocale:b.value,messages:k.value,modifiers:D,pluralRules:M,missing:null===A?void 0:A,missingWarn:T,fallbackWarn:y,fallbackFormat:C,unresolving:!0,postTranslation:null===P?void 0:P,warnHtmlMessage:F,escapeParameter:R,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=L.value,t.numberFormats=N.value,t.__datetimeFormatters=h(S)?S.__datetimeFormatters:void 0,t.__numberFormatters=h(S)?S.__numberFormatters:void 0;const n=Pe(t);return s&&Ce(n),n})(),Re(S,m.value,b.value);const w=t.computed({get:()=>m.value,set:e=>{m.value=e,S.locale=m.value}}),x=t.computed({get:()=>b.value,set:e=>{b.value=e,S.fallbackLocale=b.value,Re(S,m.value,e)}}),W=t.computed((()=>k.value)),U=t.computed((()=>L.value)),$=t.computed((()=>N.value));const H=(e,t,n,r,l,c)=>{let u;m.value,b.value,k.value,L.value,N.value;try{0,s||(S.fallbackContext=a?Oe():void 0),u=e(S)}finally{s||(S.fallbackContext=void 0)}if(o(u)&&u===be){const[e,n]=t();return a&&I?r(a):l(e)}if(c(u))return u;throw Error(lt.UNEXPECTED_RETURN_TYPE)};function V(...e){return H((t=>Reflect.apply(Xe,null,[t,...e])),(()=>Be(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const j={normalize:function(e){return e.map((e=>g(e)||o(e)||E(e)?vt(String(e)):e))},interpolate:e=>e,type:"vnode"};function X(e){return k.value[e]||{}}bt++,a&&n&&(t.watch(a.locale,(e=>{f&&(m.value=e,S.locale=e,Re(S,m.value,b.value))})),t.watch(a.fallbackLocale,(e=>{f&&(b.value=e,S.fallbackLocale=e,Re(S,m.value,b.value))})));const G={id:bt,locale:w,fallbackLocale:x,get inheritLocale(){return f},set inheritLocale(e){f=e,e&&a&&(m.value=a.locale.value,b.value=a.fallbackLocale.value,Re(S,m.value,b.value))},get availableLocales(){return Object.keys(k.value).sort()},messages:W,get modifiers(){return D},get pluralRules(){return M||{}},get isGlobal(){return s},get missingWarn(){return T},set missingWarn(e){T=e,S.missingWarn=T},get fallbackWarn(){return y},set fallbackWarn(e){y=e,S.fallbackWarn=y},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return C},set fallbackFormat(e){C=e,S.fallbackFormat=C},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,S.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,S.escapeParameter=e},t:V,getLocaleMessage:X,setLocaleMessage:function(e,t){if(u){const n={[e]:t};for(const e in n)_(n,e)&&mt(n[e]);t=n[e]}k.value[e]=t,S.messages=k.value},mergeLocaleMessage:function(e,t){k.value[e]=k.value[e]||{};const n={[e]:t};for(const r in n)_(n,r)&&mt(n[r]);dt(t=n[e],k.value[e]),S.messages=k.value},getPostTranslationHandler:function(){return d(P)?P:null},setPostTranslationHandler:function(e){P=e,S.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(A=kt(e)),O=e,S.missing=A},[ut]:function(e){M=e,S.pluralRules=M}};return G.datetimeFormats=U,G.numberFormats=$,G.rt=function(...e){const[t,n,r]=e;if(r&&!v(r))throw Error(lt.INVALID_ARGUMENT);return V(t,n,i({resolvedMessage:!0},r||{}))},G.te=function(e,t){if(!e)return!1;const n=X(g(t)?t:m.value);return g(S.messageResolver(n,e))},G.tm=function(e){const t=function(e){let t=null;const n=pe(S,b.value,m.value);for(let r=0;r<n.length;r++){const a=k.value[n[r]]||{},l=S.messageResolver(a,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},G.d=function(...e){return H((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Je(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>he),(e=>g(e)))},G.n=function(...e){return H((t=>Reflect.apply(qe,null,[t,...e])),(()=>et(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>he),(e=>g(e)))},G.getDateTimeFormat=function(e){return L.value[e]||{}},G.setDateTimeFormat=function(e,t){L.value[e]=t,S.datetimeFormats=L.value,Qe(S,e,t)},G.mergeDateTimeFormat=function(e,t){L.value[e]=i(L.value[e]||{},t),S.datetimeFormats=L.value,Qe(S,e,t)},G.getNumberFormat=function(e){return N.value[e]||{}},G.setNumberFormat=function(e,t){N.value[e]=t,S.numberFormats=N.value,tt(S,e,t)},G.mergeNumberFormat=function(e,t){N.value[e]=i(N.value[e]||{},t),S.numberFormats=N.value,tt(S,e,t)},G[it]=l,G[ot]=function(...e){return H((t=>{let n;const r=t;try{r.processor=j,n=Reflect.apply(Xe,null,[r,...e])}finally{r.processor=null}return n}),(()=>Be(...e)),"translate",(t=>t[ot](...e)),(e=>[vt(e)]),(e=>p(e)))},G[st]=function(...e){return H((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Je(...e)),"datetime format",(t=>t[st](...e)),(()=>[]),(e=>g(e)||p(e)))},G[ct]=function(...e){return H((t=>Reflect.apply(qe,null,[t,...e])),(()=>et(...e)),"number format",(t=>t[ct](...e)),(()=>[]),(e=>g(e)||p(e)))},G}function Lt(e={},t){{const t=ht(function(e){const t=g(e.locale)?e.locale:ke,n=g(e.fallbackLocale)||p(e.fallbackLocale)||h(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=d(e.missing)?e.missing:void 0,a=!E(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!E(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!E(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,u=h(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,m=d(e.postTranslation)?e.postTranslation:void 0,_=!g(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,v=!!e.escapeParameterHtml,b=!E(e.sync)||e.sync;let k=e.messages;if(h(e.sharedMessages)){const t=e.sharedMessages;k=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return i(r,t[n]),e}),k||{})}const{__i18n:L,__root:N,__injectWithOption:T}=e,y=e.datetimeFormats,I=e.numberFormats;return{locale:t,fallbackLocale:n,messages:k,flatJson:e.flatJson,datetimeFormats:y,numberFormats:I,missing:r,missingWarn:a,fallbackWarn:l,fallbackRoot:o,fallbackFormat:s,modifiers:u,pluralRules:f,postTranslation:m,warnHtmlMessage:_,escapeParameter:v,messageResolver:e.messageResolver,inheritLocale:b,__i18n:L,__root:N,__injectWithOption:T}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return E(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=E(e)?!e:e},get silentFallbackWarn(){return E(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=E(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,a]=e,l={};let o=null,s=null;if(!g(n))throw Error(lt.INVALID_ARGUMENT);const c=n;return g(r)?l.locale=r:p(r)?o=r:h(r)&&(s=r),p(a)?o=a:h(a)&&(s=a),Reflect.apply(t.t,t,[c,o||s||{},l])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,a]=e,l={plural:1};let s=null,c=null;if(!g(n))throw Error(lt.INVALID_ARGUMENT);const u=n;return g(r)?l.locale=r:o(r)?l.plural=r:p(r)?s=r:h(r)&&(c=r),g(a)?l.locale=a:p(a)?s=a:h(a)&&(c=a),Reflect.apply(t.t,t,[u,s||c||{},l])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1};return r.__extender=n,r}}const Nt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Tt(e){return t.Fragment}const yt=t.defineComponent({name:"i18n-t",props:i({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Nt),setup(e,n){const{slots:r,attrs:a}=n,l=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const o=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},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,o),u=l[ot](e.keypath,c,s),f=i({},a),m=g(e.tag)||v(e.tag)?e.tag:Tt();return t.h(m,f,u)}}}),It=yt;function Ct(e,n,r,a){const{slots:l,attrs:o}=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)?i({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let u=[n.key];p(c)?u=c.map(((e,t)=>{const n=l[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)&&(u=[c]);const f=i({},o),m=g(e.tag)||v(e.tag)?e.tag:Tt();return t.h(m,f,u)}}const Ot=t.defineComponent({name:"i18n-n",props:i({value:{type:Number,required:!0},format:{type:[String,Object]}},Nt),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return Ct(e,t,Ze,((...e)=>n[ct](...e)))}}),At=Ot,Pt=t.defineComponent({name:"i18n-d",props:i({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Nt),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return Ct(e,t,ze,((...e)=>n[st](...e)))}}),Ft=Pt;function Rt(e){const r=t=>{const{instance:n,modifiers:r,value:a}=t;if(!n||!n.$)throw Error(lt.UNEXPECTED_ERROR);const l=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),o=Dt(a);return[Reflect.apply(l.t,l,[...St(o)]),l]};return{created:(a,l)=>{const[o,s]=r(l);n&&e.global===s&&(a.__i18nWatcher=t.watch(s.locale,(()=>{l.instance&&l.instance.$forceUpdate()}))),a.__composer=s,a.textContent=o},unmounted:e=>{n&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=Dt(t);e.textContent=Reflect.apply(n.t,n,[...St(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function Dt(e){if(g(e))return{path:e};if(h(e)){if(!("path"in e))throw Error(lt.REQUIRED_VALUE,"path");return e}throw Error(lt.INVALID_VALUE)}function St(e){const{path:t,locale:n,args:r,choice:a,plural:l}=e,s={},c=r||{};return g(n)&&(s.locale=n),o(a)&&(s.plural=a),o(l)&&(s.plural=l),[t,c,s]}function Mt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ut](t.pluralizationRules||e.pluralizationRules);const n=_t(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const wt=r("global-vue-i18n");function xt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(lt.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(lt.NOT_INSTALLED);const r=function(e){{const n=t.inject(e.isCE?wt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw function(e,...t){return C(e,null,void 0)}(e.isCE?lt.NOT_INSTALLED_WITH_PROVIDE:lt.UNEXPECTED_ERROR);return n}}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),l=gt(n),o=function(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===r.mode&&!e.__useComponent){if(!r.allowComposition)throw Error(lt.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const l="local"===n,o=t.shallowRef(null);if(l&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(lt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=E(a.inheritLocale)?a.inheritLocale:!g(a.locale),u=t.ref(!l||s?r.locale.value:g(a.locale)?a.locale:ke),i=t.ref(!l||s?r.fallbackLocale.value:g(a.fallbackLocale)||p(a.fallbackLocale)||h(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:u.value),f=t.ref(_t(u.value,a)),m=t.ref(h(a.datetimeFormats)?a.datetimeFormats:{[u.value]:{}}),_=t.ref(h(a.numberFormats)?a.numberFormats:{[u.value]:{}}),v=l?r.missingWarn:!E(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,b=l?r.fallbackWarn:!E(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,k=l?r.fallbackRoot:!E(a.fallbackRoot)||a.fallbackRoot,L=!!a.fallbackFormat,N=d(a.missing)?a.missing:null,T=d(a.postTranslation)?a.postTranslation:null,y=l?r.warnHtmlMessage:!E(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,C=l?r.modifiers:h(a.modifiers)?a.modifiers:{},O=a.pluralRules||l&&r.pluralRules;function A(){return[u.value,i.value,f.value,m.value,_.value]}const P=t.computed({get:()=>o.value?o.value.locale.value:u.value,set:e=>{o.value&&(o.value.locale.value=e),u.value=e}}),F=t.computed({get:()=>o.value?o.value.fallbackLocale.value:i.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),i.value=e}}),R=t.computed((()=>o.value?o.value.messages.value:f.value)),D=t.computed((()=>m.value)),S=t.computed((()=>_.value));function M(){return o.value?o.value.getPostTranslationHandler():T}function w(e){o.value&&o.value.setPostTranslationHandler(e)}function x(){return o.value?o.value.getMissingHandler():N}function W(e){o.value&&o.value.setMissingHandler(e)}function U(e){return A(),e()}function $(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function V(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function j(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function X(e){return o.value?o.value.tm(e):{}}function G(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function B(e,t){o.value&&(o.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function z(e){return o.value?o.value.getDateTimeFormat(e):{}}function J(e,t){o.value&&(o.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function q(e){return o.value?o.value.getNumberFormat(e):{}}function Z(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const te={get id(){return o.value?o.value.id:-1},locale:P,fallbackLocale:F,messages:R,datetimeFormats:D,numberFormats:S,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(f.value)},get modifiers(){return o.value?o.value.modifiers:C},get pluralRules(){return o.value?o.value.pluralRules:O},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:v},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:b},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:k},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:L},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:y},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:I},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:$,getPostTranslationHandler:M,setPostTranslationHandler:w,getMissingHandler:x,setMissingHandler:W,rt:H,d:V,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=u.value,e.fallbackLocale.value=i.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=L,e.fallbackRoot=k,e.fallbackWarn=b,e.missingWarn=v,e.warnHtmlMessage=y}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(lt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===n?(u.value=t.locale.value,i.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):l&&ne(t)})),te}(n,o,a,e)}if("global"===o)return Et(a,e,l),a;if("parent"===o){let t=function(e,t,n=!1){let r=null;const a=t.root;let l=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=l;){const t=e;if("composition"===e.mode)r=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(r=e.__composer,n&&r&&!r[it]&&(r=null))}if(null!=r)break;if(a===l)break;l=l.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const s=r;let f=s.__getInstance(n);if(null==f){const r=i({},e);"__i18n"in l&&(r.__i18n=l.__i18n),a&&(r.__root=a),f=ht(r),s.__composerExtend&&(f[ft]=s.__composerExtend(f)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[ft];a&&(a(),delete t[ft])}),n)}(s,n,f),s.__setInstance(n,f)}return f}const Wt=["locale","fallbackLocale","availableLocales"],Ut=["t","rt","d","n","tm","te"];return Ne=function(e,t){if(g(e)){!E(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Ue)(e),r=$e[n];if(r)return r;const{ast:a,detectError:l}=function(e,t={}){let n=!1;const r=t.onError||O;return t.onError=e=>{n=!0,r(e)},{...J(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),o=De(a);return l?o:$e[n]=o}{const t=e.cacheKey;return t?$e[t]||($e[t]=De(e)):De(e)}},Te=function(e,t){if(!v(e))return null;let n=te.get(t);if(n||(n=function(e){const t=[];let n,r,a,l,o,s,c,u=-1,i=0,f=0;const m=[];function _(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,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--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=ee(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!_()){if(l=Z(n),c=Q[i],o=c[l]||c.l||8,8===o)return;if(i=o[0],void 0!==o[1]&&(s=m[o[1]],s&&(a=n,!1===s())))return;if(7===i)return t}}(t),n&&te.set(t,n)),!n)return null;const r=n.length;let a=e,l=0;for(;l<r;){const e=a[n[l]];if(void 0===e)return null;a=e,l++}return a},ye=pe,e.DatetimeFormat=Pt,e.I18nD=Ft,e.I18nInjectionKey=wt,e.I18nN=At,e.I18nT=It,e.NumberFormat=Ot,e.Translation=yt,e.VERSION=nt,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(lt.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){const a=!E(e.legacy)||e.legacy,l=!E(e.globalInjection)||e.globalInjection,o=!a||!!e.allowComposition,s=new Map,[c,u]=function(e,n,r){const a=t.effectScope();{const t=n?a.run((()=>Lt(e))):a.run((()=>ht(e)));if(null==t)throw Error(lt.UNEXPECTED_ERROR);return[a,t]}}(e,a),i=r("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return o},async install(n,...r){if(n.__VUE_I18N_SYMBOL__=i,n.provide(n.__VUE_I18N_SYMBOL__,e),h(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let o=null;!a&&l&&(o=function(e,n){const r=Object.create(null);Wt.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(lt.UNEXPECTED_ERROR);const l=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,l)})),e.config.globalProperties.$i18n=r,Ut.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(lt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,Ut.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(n,e.global)),function(e,t,...n){const r=h(n[0])?n[0]:{},a=!!r.useI18nComponentName;(!E(r.globalInstall)||r.globalInstall)&&([a?"i18n":yt.name,"I18nT"].forEach((t=>e.component(t,yt))),[Ot.name,"I18nN"].forEach((t=>e.component(t,Ot))),[Pt.name,"I18nD"].forEach((t=>e.component(t,Pt)))),e.directive("t",Rt(t))}(n,e,...r),a&&n.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(lt.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const t=l.i18n;if(l.__i18n&&(t.__i18n=l.__i18n),t.__root=n,this===this.$root)this.$i18n=Mt(e,t);else{t.__injectWithOption=!0,t.__extender=r.__vueI18nExtend,this.$i18n=Lt(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(l.__i18n)if(this===this.$root)this.$i18n=Mt(e,l);else{this.$i18n=Lt({__i18n:l.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;l.__i18nGlobal&&Et(n,l,l),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),r.__setInstance(a,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(lt.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(e),delete this.$i18n}}}(u,u.__composer,e));const s=n.unmount;n.unmount=()=>{o&&o(),e.dispose(),s()}},get global(){return u},dispose(){c.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=xt,e.vTDirective=Rt,e}({},Vue); |
/*! | ||
* vue-i18n v9.5.0 | ||
* vue-i18n v9.6.0 | ||
* (c) 2023 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
import{createVNode,Text,ref,computed,watch,getCurrentInstance,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,shallowRef,onBeforeMount,isRef}from"vue";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,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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,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 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};function createCompileError(e,t,a={}){const{domain:n,messages:r,args:l}=a,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=n,s}const 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,s,o,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],s=i[l]||i.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(o=g[s[1]],o&&(r=a,!1===o())))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;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||[],s=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,s);function o(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=>s[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let l="text",s="";1===a.length?isObject(n)?(s=n.modifier||s,l=n.type||l):isString(n)&&(s=n||s):2===a.length&&(isString(n)&&(s=n||s),isString(r)&&(l=r||l));const i=o(t)(u),c="vnode"===l&&isArray(i)&&s?i[0]:i;return s?(m=s,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,l):c;var m},message:o,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign({},l,s)};return u}function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){return isString(e)?e:null!=_resolveLocale&&e.resolvedOnce?_resolveLocale:_resolveLocale=e()}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 s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(s)?[s]:s,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.5.0",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,s=isPlainObject(e.messages)?e.messages:{[r]:{}},o=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,v=!!e.escapeParameter,O=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,I=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,T=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,N=isObject(e.fallbackContext)?e.fallbackContext:void 0,F=e,S=isObject(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,L=isObject(F.__numberFormatters)?F.__numberFormatters:new Map,h=isObject(F.__meta)?F.__meta:{};_cid++;const y={version:a,cid:_cid,locale:n,fallbackLocale:l,messages:s,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:_,fallbackFormat:f,unresolving:p,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:v,messageCompiler:O,messageResolver:I,localeFallbacker:T,fallbackContext:N,onWarn:t,__meta:h};return y.datetimeFormats=o,y.numberFormats=i,y.__datetimeFormatters=S,y.__numberFormatters=L,y}function handleMissing(e,t,a,n,r){const{missing:l,onWarn:s}=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)}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(),__EXTEND_POINT__:inc$1()},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:s,messages:o}=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,v]=_?[i,b,o[b]||{}]:resolveMessageFormat(e,i,b,s,m,u),O=d,I=i;if(_||isString(O)||isMessageAST(O)||isMessageFunction(O)||p&&(O=f,I=O),!(_||(isString(O)||isMessageAST(O)||isMessageFunction(O))&&isString(E)))return r?NOT_REOSLVED:i;let T=!1;const N=isMessageFunction(O)?O:compileMessageFormat(e,i,E,O,I,(()=>{T=!0}));if(T)return O;const F=evaluateMessage(e,N,createMessageContext(getMessageContextOptions(e,E,v,c)));return n?n(F,i):F}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:s,onWarn:o,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=s[m]||{},null===(_=i(g,t))&&(_=g[t]),!(isString(_)||isMessageAST(_)||isMessageFunction(_)));f++){const a=handleMissing(e,t,m,l,"translate");a!==t&&(_=a)}return[_,m,g]}function compileMessageFormat(e,t,a,n,r,l){const{messageCompiler:s,warnHtmlMessage:o}=e;if(isMessageFunction(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 i=s(n,getCompileContext(e,a,r,n,o,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:s,fallbackLocale:o,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:l,messages:n=>{let r=s(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,o,i,c);r=s(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:s}=e,{__datetimeFormatters:o}=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=s(e,r,f);if(!isString(i)||""===i)return new Intl.DateTimeFormat(f,m).format(c);let b,d={},E=null;for(let I=0;I<p.length&&(b=p[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.DateTimeFormat(b,assign({},E,m)),o.set(v,O)),_?O.formatToParts(c):O.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 s,o={};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();s=new Date(a);try{s.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);s=t}return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_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 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:s}=e,{__numberFormatters:o}=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=s(e,r,f);if(!isString(i)||""===i)return new Intl.NumberFormat(f,m).format(c);let b,d={},E=null;for(let I=0;I<p.length&&(b=p[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.NumberFormat(b,assign({},E,m)),o.set(v,O)),_?O.formatToParts(c):O.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 s={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=t;return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_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 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.5.0",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()};function createI18nError(e,...t){return createCompileError(e,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";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,s=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?(s[t]=s[t]||{},deepCopy(a,s[t])):deepCopy(a,s)}else isString(e)&&deepCopy(JSON.parse(e),s)})),null==r&&l)for(const o in s)hasOwn(s,o)&&handleFlatJson(s[o]);return s}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw Error(I18nErrorCodes.INVALID_VALUE);for(const a in e)hasOwn(e,a)&&(isNotObjectOrIsArray(e[a])||isNotObjectOrIsArray(t[a])?t[a]=e[a]:deepCopy(e[a],t[a]))}function getComponentOptions(e){return e.type}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 createVNode(Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__";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;let l=!isBoolean(e.inheritLocale)||e.inheritLocale;const s=ref(a&&l?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),o=ref(a&&l?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),i=ref(getLocaleMessages(s.value,e)),c=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),u=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let m=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,g=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,_=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,f=!!e.fallbackFormat,p=isFunction(e.missing)?e.missing:null,b=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,d=isFunction(e.postTranslation)?e.postTranslation:null,E=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter;const O=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let I,T=e.pluralRules||a&&a.pluralRules;I=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:s.value,fallbackLocale:o.value,messages:i.value,modifiers:O,pluralRules:T,missing:null===b?void 0:b,missingWarn:m,fallbackWarn:g,fallbackFormat:f,unresolving:!0,postTranslation:null===d?void 0:d,warnHtmlMessage:E,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=c.value,t.numberFormats=u.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,s.value,o.value);const N=computed({get:()=>s.value,set:e=>{s.value=e,I.locale=s.value}}),F=computed({get:()=>o.value,set:e=>{o.value=e,I.fallbackLocale=o.value,updateFallbackLocale(I,s.value,e)}}),S=computed((()=>i.value)),L=computed((()=>c.value)),h=computed((()=>u.value));const y=(e,t,n,l,m,g)=>{let f;s.value,o.value,i.value,c.value,u.value;try{0,r||(I.fallbackContext=a?getFallbackContext():void 0),f=e(I)}finally{r||(I.fallbackContext=void 0)}if(isNumber(f)&&f===NOT_REOSLVED){const[e,n]=t();return a&&_?l(a):m(e)}if(g(f))return f;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function k(...e){return y((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const C={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function M(e){return i.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{l&&(s.value=e,I.locale=e,updateFallbackLocale(I,s.value,o.value))})),watch(a.fallbackLocale,(e=>{l&&(o.value=e,I.fallbackLocale=e,updateFallbackLocale(I,s.value,o.value))})));const A={id:composerID,locale:N,fallbackLocale:F,get inheritLocale(){return l},set inheritLocale(e){l=e,e&&a&&(s.value=a.locale.value,o.value=a.fallbackLocale.value,updateFallbackLocale(I,s.value,o.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:S,get modifiers(){return O},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(e){m=e,I.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(e){g=e,I.fallbackWarn=g},get fallbackRoot(){return _},set fallbackRoot(e){_=e},get fallbackFormat(){return f},set fallbackFormat(e){f=e,I.fallbackFormat=f},get warnHtmlMessage(){return E},set warnHtmlMessage(e){E=e,I.warnHtmlMessage=e},get escapeParameter(){return v},set escapeParameter(e){v=e,I.escapeParameter=e},t:k,getLocaleMessage:M,setLocaleMessage:function(e,t){i.value[e]=t,I.messages=i.value},mergeLocaleMessage:function(e,t){i.value[e]=i.value[e]||{},deepCopy(t,i.value[e]),I.messages=i.value},getPostTranslationHandler:function(){return isFunction(d)?d:null},setPostTranslationHandler:function(e){d=e,I.postTranslation=e},getMissingHandler:function(){return p},setMissingHandler:function(e){null!==e&&(b=defineCoreMissingHandler(e)),p=e,I.missing=b},[SetPluralRulesSymbol]:function(e){T=e,I.pluralRules=T}};return A.datetimeFormats=L,A.numberFormats=h,A.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return k(t,a,assign({resolvedMessage:!0},n||{}))},A.te=function(e,t){if(!e)return!1;const a=M(isString(t)?t:s.value);return null!==I.messageResolver(a,e)},A.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(I,o.value,s.value);for(let n=0;n<a.length;n++){const r=i.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)||{}},A.d=function(...e){return y((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},A.n=function(...e){return y((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},A.getDateTimeFormat=function(e){return c.value[e]||{}},A.setDateTimeFormat=function(e,t){c.value[e]=t,I.datetimeFormats=c.value,clearDateTimeFormat(I,e,t)},A.mergeDateTimeFormat=function(e,t){c.value[e]=assign(c.value[e]||{},t),I.datetimeFormats=c.value,clearDateTimeFormat(I,e,t)},A.getNumberFormat=function(e){return u.value[e]||{}},A.setNumberFormat=function(e,t){u.value[e]=t,I.numberFormats=u.value,clearNumberFormat(I,e,t)},A.mergeNumberFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),I.numberFormats=u.value,clearNumberFormat(I,e,t)},A[InejctWithOptionSymbol]=n,A[TranslateVNodeSymbol]=function(...e){return y((t=>{let a;const n=t;try{n.processor=C,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)))},A[DatetimePartsSymbol]=function(...e){return y((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},A[NumberPartsSymbol]=function(...e){return y((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},A}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,a=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=isFunction(e.missing)?e.missing:void 0,r=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!isBoolean(e.fallbackRoot)||e.fallbackRoot,o=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,_=!isBoolean(e.sync)||e.sync;let f=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return assign(n,t[a]),e}),f||{})}const{__i18n:p,__root:b,__injectWithOption:d}=e,E=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:a,messages:f,flatJson:e.flatJson,datetimeFormats:E,numberFormats:v,missing:n,missingWarn:r,fallbackWarn:l,fallbackRoot:s,fallbackFormat:o,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:_,__i18n:p,__root:b,__injectWithOption:d}}function createVueI18n(e={},t){{const t=createComposer(convertComposerOptions(e)),{__extender:a}=e,n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,r]=e,l={};let s=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?l.locale=n:isArray(n)?s=n:isPlainObject(n)&&(o=n),isArray(r)?s=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,s||o||{},l])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,r]=e,l={plural:1};let s=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?l.locale=n:isNumber(n)?l.plural=n:isArray(n)?s=n:isPlainObject(n)&&(o=n),isString(r)?l.locale=r:isArray(r)?s=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,s||o||{},l])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1};return n.__extender=a,n}}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.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(e){return Fragment}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)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=isString(e.plural)?+e.plural:e.plural);const o=getInterpolateArg(t,l),i=r[TranslateVNodeSymbol](e.keypath,o,s),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();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 s={};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),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const o=n(e.value,t,s);let i=[t.key];isArray(o)?i=o.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:o}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(o)&&(i=[o]);const c=assign({},l),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();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:"parent",__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:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:a,modifiers:n,value:r}=t;if(!a||!a.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const l=getComposer$1(e,a.$),s=parseValue(r);return[Reflect.apply(l.t,l,[...makeParams(s)]),l]};return{created:(a,n)=>{const[r,l]=t(n);inBrowser&&e.global===l&&(a.__i18nWatcher=watch(l.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),a.__composer=l,a.textContent=r},unmounted:e=>{inBrowser&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const a=e.__composer,n=parseValue(t);e.textContent=Reflect.apply(a.t,a,[...makeParams(n)])}},getSSRProps:e=>{const[a]=t(e);return{textContent:a}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:a,args:n,choice:r,plural:l}=e,s={},o=n||{};return isString(a)&&(s.locale=a),isNumber(r)&&(s.plural=r),isNumber(l)&&(s.plural=l),[t,o,s]}function apply(e,t,...a){const n=isPlainObject(a[0])?a[0]:{},r=!!n.useI18nComponentName;(!isBoolean(n.globalInstall)||n.globalInstall)&&([r?"i18n":Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}function defineMixin(e,t,a){return{beforeCreate(){const n=getCurrentInstance();if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const n=r.i18n;if(r.__i18n&&(n.__i18n=r.__i18n),n.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,n);else{n.__injectWithOption=!0,n.__extender=a.__vueI18nExtend,this.$i18n=createVueI18n(n);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,r);else{this.$i18n=createVueI18n({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&adjustI18nResources(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),a.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),a.__deleteInstance(e),delete this.$i18n}}}function mergeToGlobal(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const a=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,l=new Map,[s,o]=createGlobal(e,a),i=makeSymbol("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return r},async install(t,...r){if(t.__VUE_I18N_SYMBOL__=i,t.provide(t.__VUE_I18N_SYMBOL__,e),isPlainObject(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let l=null;!a&&n&&(l=injectGlobalFields(t,e.global)),apply(t,e,...r),a&&t.mixin(defineMixin(o,o.__composer,e));const s=t.unmount;t.unmount=()=>{l&&l(),e.dispose(),s()}},get global(){return o},dispose(){s.stop()},__instances:l,__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)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 s=a;let o=s.__getInstance(t);if(null==o){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),o=createComposer(a),s.__composerExtend&&(o[DisposeSymbol]=s.__composerExtend(o)),setupLifeCycle(s,t,o),s.__setInstance(t,o)}return o}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();{const a=t?n.run((()=>createVueI18n(e))):n.run((()=>createComposer(e)));if(null==a)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,a]}}function getI18nInstance(e){{const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}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:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,a){onMounted((()=>{}),t),onUnmounted((()=>{const n=a;e.__deleteInstance(t);const r=n[DisposeSymbol];r&&(r(),delete n[DisposeSymbol])}),t)}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 s=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),o=ref(!r||s?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||s?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:o.value),c=ref(getLocaleMessages(o.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[o.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[o.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,v=!!n.escapeParameter,O=r?a.modifiers:isPlainObject(n.modifiers)?n.modifiers:{},I=n.pluralRules||r&&a.pluralRules;function T(e){return o.value,i.value,c.value,u.value,m.value,e()}const N={get id(){return l.value?l.value.id:-1},locale:computed({get:()=>l.value?l.value.locale.value:o.value,set:e=>{l.value&&(l.value.locale.value=e),o.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:s},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:O},get pluralRules(){return l.value?l.value.pluralRules:I},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:v},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?(o.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=o.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=v,e.fallbackFormat=p,e.fallbackRoot=f,e.fallbackWarn=_,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),N}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const a=Object.create(null);globalExportProps.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=isRef(n.value)?{get:()=>n.value.value,set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,globalExportMethods.forEach((a=>{const n=Object.getOwnPropertyDescriptor(t,a);if(!n||!n.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,n)}));return()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n,vTDirective}; | ||
import{createVNode,Text,ref,computed,watch,getCurrentInstance,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,shallowRef,onBeforeMount,isRef}from"vue";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,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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,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 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};function createCompileError(e,t,a={}){const{domain:n,messages:r,args:l}=a,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=n,s}const 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,s,o,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],s=i[l]||i.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(o=g[s[1]],o&&(r=a,!1===o())))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;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||[],s=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,s);function o(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=>s[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let l="text",s="";1===a.length?isObject(n)?(s=n.modifier||s,l=n.type||l):isString(n)&&(s=n||s):2===a.length&&(isString(n)&&(s=n||s),isString(r)&&(l=r||l));const i=o(t)(u),c="vnode"===l&&isArray(i)&&s?i[0]:i;return s?(m=s,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,l):c;var m},message:o,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign({},l,s)};return u}function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){return isString(e)?e:null!=_resolveLocale&&e.resolvedOnce?_resolveLocale:_resolveLocale=e()}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 s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(s)?[s]:s,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.6.0",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,s=isPlainObject(e.messages)?e.messages:{[r]:{}},o=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,v=!!e.escapeParameter,O=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,I=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,T=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,F=isObject(e.fallbackContext)?e.fallbackContext:void 0,N=e,S=isObject(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,L=isObject(N.__numberFormatters)?N.__numberFormatters:new Map,h=isObject(N.__meta)?N.__meta:{};_cid++;const y={version:a,cid:_cid,locale:n,fallbackLocale:l,messages:s,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:_,fallbackFormat:f,unresolving:p,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:v,messageCompiler:O,messageResolver:I,localeFallbacker:T,fallbackContext:F,onWarn:t,__meta:h};return y.datetimeFormats=o,y.numberFormats=i,y.__datetimeFormatters=S,y.__numberFormatters=L,y}function handleMissing(e,t,a,n,r){const{missing:l,onWarn:s}=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)}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(),__EXTEND_POINT__:inc$1()},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:s,messages:o}=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,v]=_?[i,b,o[b]||{}]:resolveMessageFormat(e,i,b,s,m,u),O=d,I=i;if(_||isString(O)||isMessageAST(O)||isMessageFunction(O)||p&&(O=f,I=O),!(_||(isString(O)||isMessageAST(O)||isMessageFunction(O))&&isString(E)))return r?NOT_REOSLVED:i;let T=!1;const F=isMessageFunction(O)?O:compileMessageFormat(e,i,E,O,I,(()=>{T=!0}));if(T)return O;const N=evaluateMessage(e,F,createMessageContext(getMessageContextOptions(e,E,v,c)));return n?n(N,i):N}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:s,onWarn:o,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=s[m]||{},null===(_=i(g,t))&&(_=g[t]),!(isString(_)||isMessageAST(_)||isMessageFunction(_)));f++){const a=handleMissing(e,t,m,l,"translate");a!==t&&(_=a)}return[_,m,g]}function compileMessageFormat(e,t,a,n,r,l){const{messageCompiler:s,warnHtmlMessage:o}=e;if(isMessageFunction(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 i=s(n,getCompileContext(e,a,r,n,o,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:s,fallbackLocale:o,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:l,messages:n=>{let r=s(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,o,i,c);r=s(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:s}=e,{__datetimeFormatters:o}=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=s(e,r,f);if(!isString(i)||""===i)return new Intl.DateTimeFormat(f,m).format(c);let b,d={},E=null;for(let I=0;I<p.length&&(b=p[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.DateTimeFormat(b,assign({},E,m)),o.set(v,O)),_?O.formatToParts(c):O.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 s,o={};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();s=new Date(a);try{s.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);s=t}return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_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 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:s}=e,{__numberFormatters:o}=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=s(e,r,f);if(!isString(i)||""===i)return new Intl.NumberFormat(f,m).format(c);let b,d={},E=null;for(let I=0;I<p.length&&(b=p[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.NumberFormat(b,assign({},E,m)),o.set(v,O)),_?O.formatToParts(c):O.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 s={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=t;return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_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 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.6.0",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()};function createI18nError(e,...t){return createCompileError(e,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";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,s=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?(s[t]=s[t]||{},deepCopy(a,s[t])):deepCopy(a,s)}else isString(e)&&deepCopy(JSON.parse(e),s)})),null==r&&l)for(const o in s)hasOwn(s,o)&&handleFlatJson(s[o]);return s}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw Error(I18nErrorCodes.INVALID_VALUE);for(const a in e)hasOwn(e,a)&&(isNotObjectOrIsArray(e[a])||isNotObjectOrIsArray(t[a])?t[a]=e[a]:deepCopy(e[a],t[a]))}function getComponentOptions(e){return e.type}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 createVNode(Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__";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;let s=!isBoolean(e.inheritLocale)||e.inheritLocale;const o=ref(a&&s?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),i=ref(a&&s?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),c=ref(getLocaleMessages(o.value,e)),u=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),m=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[o.value]:{}});let g=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,_=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,p=!!e.fallbackFormat,b=isFunction(e.missing)?e.missing:null,d=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,E=isFunction(e.postTranslation)?e.postTranslation:null,v=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const I=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let T,F=e.pluralRules||a&&a.pluralRules;T=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:o.value,fallbackLocale:i.value,messages:c.value,modifiers:I,pluralRules:F,missing:null===d?void 0:d,missingWarn:g,fallbackWarn:_,fallbackFormat:p,unresolving:!0,postTranslation:null===E?void 0:E,warnHtmlMessage:v,escapeParameter:O,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(T)?T.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(T)?T.__numberFormatters:void 0;const a=createCoreContext(t);return r&&setFallbackContext(a),a})(),updateFallbackLocale(T,o.value,i.value);const N=computed({get:()=>o.value,set:e=>{o.value=e,T.locale=o.value}}),S=computed({get:()=>i.value,set:e=>{i.value=e,T.fallbackLocale=i.value,updateFallbackLocale(T,o.value,e)}}),L=computed((()=>c.value)),h=computed((()=>u.value)),y=computed((()=>m.value));const k=(e,t,n,l,s,g)=>{let _;o.value,i.value,c.value,u.value,m.value;try{0,r||(T.fallbackContext=a?getFallbackContext():void 0),_=e(T)}finally{r||(T.fallbackContext=void 0)}if(isNumber(_)&&_===NOT_REOSLVED){const[e,n]=t();return a&&f?l(a):s(e)}if(g(_))return _;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function C(...e){return k((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 A(e){return c.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{s&&(o.value=e,T.locale=e,updateFallbackLocale(T,o.value,i.value))})),watch(a.fallbackLocale,(e=>{s&&(i.value=e,T.fallbackLocale=e,updateFallbackLocale(T,o.value,i.value))})));const P={id:composerID,locale:N,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&a&&(o.value=a.locale.value,i.value=a.fallbackLocale.value,updateFallbackLocale(T,o.value,i.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:L,get modifiers(){return I},get pluralRules(){return F||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(e){g=e,T.missingWarn=g},get fallbackWarn(){return _},set fallbackWarn(e){_=e,T.fallbackWarn=_},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return p},set fallbackFormat(e){p=e,T.fallbackFormat=p},get warnHtmlMessage(){return v},set warnHtmlMessage(e){v=e,T.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,T.escapeParameter=e},t:C,getLocaleMessage:A,setLocaleMessage:function(e,t){if(l){const a={[e]:t};for(const e in a)hasOwn(a,e)&&handleFlatJson(a[e]);t=a[e]}c.value[e]=t,T.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const a={[e]:t};for(const n in a)hasOwn(a,n)&&handleFlatJson(a[n]);deepCopy(t=a[e],c.value[e]),T.messages=c.value},getPostTranslationHandler:function(){return isFunction(E)?E:null},setPostTranslationHandler:function(e){E=e,T.postTranslation=e},getMissingHandler:function(){return b},setMissingHandler:function(e){null!==e&&(d=defineCoreMissingHandler(e)),b=e,T.missing=d},[SetPluralRulesSymbol]:function(e){F=e,T.pluralRules=F}};return P.datetimeFormats=h,P.numberFormats=y,P.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return C(t,a,assign({resolvedMessage:!0},n||{}))},P.te=function(e,t){if(!e)return!1;const a=A(isString(t)?t:o.value);return isString(T.messageResolver(a,e))},P.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(T,i.value,o.value);for(let n=0;n<a.length;n++){const r=c.value[a[n]]||{},l=T.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},P.d=function(...e){return k((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},P.n=function(...e){return k((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},P.getDateTimeFormat=function(e){return u.value[e]||{}},P.setDateTimeFormat=function(e,t){u.value[e]=t,T.datetimeFormats=u.value,clearDateTimeFormat(T,e,t)},P.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),T.datetimeFormats=u.value,clearDateTimeFormat(T,e,t)},P.getNumberFormat=function(e){return m.value[e]||{}},P.setNumberFormat=function(e,t){m.value[e]=t,T.numberFormats=m.value,clearNumberFormat(T,e,t)},P.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),T.numberFormats=m.value,clearNumberFormat(T,e,t)},P[InejctWithOptionSymbol]=n,P[TranslateVNodeSymbol]=function(...e){return k((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)))},P[DatetimePartsSymbol]=function(...e){return k((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},P[NumberPartsSymbol]=function(...e){return k((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},P}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,a=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=isFunction(e.missing)?e.missing:void 0,r=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!isBoolean(e.fallbackRoot)||e.fallbackRoot,o=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,_=!isBoolean(e.sync)||e.sync;let f=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return assign(n,t[a]),e}),f||{})}const{__i18n:p,__root:b,__injectWithOption:d}=e,E=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:a,messages:f,flatJson:e.flatJson,datetimeFormats:E,numberFormats:v,missing:n,missingWarn:r,fallbackWarn:l,fallbackRoot:s,fallbackFormat:o,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:_,__i18n:p,__root:b,__injectWithOption:d}}function createVueI18n(e={},t){{const t=createComposer(convertComposerOptions(e)),{__extender:a}=e,n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,r]=e,l={};let s=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?l.locale=n:isArray(n)?s=n:isPlainObject(n)&&(o=n),isArray(r)?s=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,s||o||{},l])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,r]=e,l={plural:1};let s=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?l.locale=n:isNumber(n)?l.plural=n:isArray(n)?s=n:isPlainObject(n)&&(o=n),isString(r)?l.locale=r:isArray(r)?s=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,s||o||{},l])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1};return n.__extender=a,n}}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.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(e){return Fragment}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)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=isString(e.plural)?+e.plural:e.plural);const o=getInterpolateArg(t,l),i=r[TranslateVNodeSymbol](e.keypath,o,s),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();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 s={};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),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const o=n(e.value,t,s);let i=[t.key];isArray(o)?i=o.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:o}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(o)&&(i=[o]);const c=assign({},l),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();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:"parent",__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:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:a,modifiers:n,value:r}=t;if(!a||!a.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const l=getComposer$1(e,a.$),s=parseValue(r);return[Reflect.apply(l.t,l,[...makeParams(s)]),l]};return{created:(a,n)=>{const[r,l]=t(n);inBrowser&&e.global===l&&(a.__i18nWatcher=watch(l.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),a.__composer=l,a.textContent=r},unmounted:e=>{inBrowser&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const a=e.__composer,n=parseValue(t);e.textContent=Reflect.apply(a.t,a,[...makeParams(n)])}},getSSRProps:e=>{const[a]=t(e);return{textContent:a}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:a,args:n,choice:r,plural:l}=e,s={},o=n||{};return isString(a)&&(s.locale=a),isNumber(r)&&(s.plural=r),isNumber(l)&&(s.plural=l),[t,o,s]}function apply(e,t,...a){const n=isPlainObject(a[0])?a[0]:{},r=!!n.useI18nComponentName;(!isBoolean(n.globalInstall)||n.globalInstall)&&([r?"i18n":Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}function defineMixin(e,t,a){return{beforeCreate(){const n=getCurrentInstance();if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const n=r.i18n;if(r.__i18n&&(n.__i18n=r.__i18n),n.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,n);else{n.__injectWithOption=!0,n.__extender=a.__vueI18nExtend,this.$i18n=createVueI18n(n);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,r);else{this.$i18n=createVueI18n({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&adjustI18nResources(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),a.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),a.__deleteInstance(e),delete this.$i18n}}}function mergeToGlobal(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const a=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,l=new Map,[s,o]=createGlobal(e,a),i=makeSymbol("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return r},async install(t,...r){if(t.__VUE_I18N_SYMBOL__=i,t.provide(t.__VUE_I18N_SYMBOL__,e),isPlainObject(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let l=null;!a&&n&&(l=injectGlobalFields(t,e.global)),apply(t,e,...r),a&&t.mixin(defineMixin(o,o.__composer,e));const s=t.unmount;t.unmount=()=>{l&&l(),e.dispose(),s()}},get global(){return o},dispose(){s.stop()},__instances:l,__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)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 s=a;let o=s.__getInstance(t);if(null==o){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),o=createComposer(a),s.__composerExtend&&(o[DisposeSymbol]=s.__composerExtend(o)),setupLifeCycle(s,t,o),s.__setInstance(t,o)}return o}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();{const a=t?n.run((()=>createVueI18n(e))):n.run((()=>createComposer(e)));if(null==a)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,a]}}function getI18nInstance(e){{const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}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:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,a){onMounted((()=>{}),t),onUnmounted((()=>{const n=a;e.__deleteInstance(t);const r=n[DisposeSymbol];r&&(r(),delete n[DisposeSymbol])}),t)}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 s=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),o=ref(!r||s?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||s?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:o.value),c=ref(getLocaleMessages(o.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[o.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[o.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,v=!!n.escapeParameter,O=r?a.modifiers:isPlainObject(n.modifiers)?n.modifiers:{},I=n.pluralRules||r&&a.pluralRules;function T(e){return o.value,i.value,c.value,u.value,m.value,e()}const F={get id(){return l.value?l.value.id:-1},locale:computed({get:()=>l.value?l.value.locale.value:o.value,set:e=>{l.value&&(l.value.locale.value=e),o.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:s},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:O},get pluralRules(){return l.value?l.value.pluralRules:I},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:v},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?(o.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=o.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=v,e.fallbackFormat=p,e.fallbackRoot=f,e.fallbackWarn=_,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),F}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const a=Object.create(null);globalExportProps.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=isRef(n.value)?{get:()=>n.value.value,set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,globalExportMethods.forEach((a=>{const n=Object.getOwnPropertyDescriptor(t,a);if(!n||!n.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,n)}));return()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n,vTDirective}; |
/*! | ||
* vue-i18n v9.5.0 | ||
* vue-i18n v9.6.0 | ||
* (c) 2023 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
var VueI18n=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]"===h(e),i=e=>"[object RegExp]"===h(e),c=e=>E(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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,k=Object.prototype.toString,h=e=>k.call(e),E=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function F(e){let t=e;return()=>++t}function L(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function y(e,t,a={}){const{domain:n,messages:l,args:r}=a,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=n,o}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 T=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function N(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function R(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,T.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 O=new Map;function W(e,t){return b(e)?e[t]:null}const M=e=>e,w=e=>"",D="text",C=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),P=e=>null==e?"":g(e)||E(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function A(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]:A,l=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?A: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):w)}const c=E(e.processor)&&p(e.processor.normalize)?e.processor.normalize:C,m=E(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:P,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:E(e.processor)&&v(e.processor.type)?e.processor.type:D,interpolate:m,normalize:c,values:u({},r,s)};return f}function S(e,t){return null!=t.locale?H(t.locale):H(e.locale)}let U;function H(e){return v(e)?e:null!=U&&e.resolvedOnce?U:U=e()}function x(e,t,a){return[...new Set([a,...g(t)?t:b(t)?Object.keys(t):v(t)?[t]:[a]])]}function j(e,t,a){const n=v(a)?a:z,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=V(r,e,t);const o=g(t)||!E(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&V(r,e,!1),l.__localeChainCache.set(n,r)}return r}function V(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];v(r)&&(n=G(e,t[l],a))}return n}function G(e,t,a){let n;const l=t.split("-");do{n=B(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function B(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)||E(a))&&a[l]&&(n=a[l])}return n}const X="9.5.0",Y=-1,z="en-US",J="",q=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Z,K,Q;let ee=null;const te=e=>{ee=e},ae=()=>ee;let ne=0;function le(e={}){const t=p(e.onWarn)?e.onWarn:L,a=v(e.version)?e.version:X,n=v(e.locale)||p(e.locale)?e.locale:z,l=p(n)?z:n,r=g(e.fallbackLocale)||E(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l,o=E(e.messages)?e.messages:{[l]:{}},s=E(e.datetimeFormats)?e.datetimeFormats:{[l]:{}},c=E(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)?q(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?q(e.children):e}),f=e.pluralRules||{},_=p(e.missing)?e.missing:null,k=!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,h=!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,F=!!e.fallbackFormat,y=!!e.unresolving,I=p(e.postTranslation)?e.postTranslation:null,T=E(e.processor)?e.processor:null,N=!d(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,O=p(e.messageCompiler)?e.messageCompiler:Z,M=p(e.messageResolver)?e.messageResolver:K||W,w=p(e.localeFallbacker)?e.localeFallbacker:Q||x,D=b(e.fallbackContext)?e.fallbackContext:void 0,C=e,P=b(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,A=b(C.__numberFormatters)?C.__numberFormatters:new Map,$=b(C.__meta)?C.__meta:{};ne++;const S={version:a,cid:ne,locale:n,fallbackLocale:r,messages:o,modifiers:m,pluralRules:f,missing:_,missingWarn:k,fallbackWarn:h,fallbackFormat:F,unresolving:y,postTranslation:I,processor:T,warnHtmlMessage:N,escapeParameter:R,messageCompiler:O,messageResolver:M,localeFallbacker:w,fallbackContext:D,onWarn:t,__meta:$};return S.datetimeFormats=s,S.numberFormats=c,S.__datetimeFormatters=P,S.__numberFormatters=A,S}function re(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 oe(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}const se=F(17),ie={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:se(),INVALID_ISO_DATE_ARGUMENT:se(),NOT_SUPPORT_NON_STRING_MESSAGE:se(),__EXTEND_POINT__:se()},ce=e=>b(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),ue=()=>"",me=e=>p(e);function fe(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=pe(...t),f=d(u.missingWarn)?u.missingWarn:e.missingWarn,_=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,k=!!u.resolvedMessage,h=v(u.default)||d(u.default)?d(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",E=a||""!==h,F=S(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[L,y,I]=k?[c,F,i[F]||{}]:_e(e,c,F,s,_,f),T=L,N=c;if(k||v(T)||ce(T)||me(T)||E&&(T=h,N=T),!(k||(v(T)||ce(T)||me(T))&&v(y)))return l?Y:c;let R=!1;const O=me(T)?T:ge(e,c,y,T,N,(()=>{R=!0}));if(R)return T;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]=_e(m,n,t,i,c,u);l=s(e,n)}if(v(l)||ce(l)){let a=!1;const r=ge(e,n,t,l,n,(()=>{a=!0}));return a?ue:r}return me(l)?l:ue},_={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,y,I,u),M=function(e,t,a){const n=t(a);return n}(0,O,$(W));return n?n(M,c):M}function _e(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(_)||ce(_)||me(_)));g++){const a=re(e,t,m,0,"translate");a!==t&&(_=a)}return[_,m,f]}function ge(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(me(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 pe(...e){const[t,a,n]=e,l={};if(!(v(t)||o(t)||me(t)||ce(t)))throw Error(ie.INVALID_ARGUMENT);const r=o(t)?String(t):(me(t),t);return o(a)?l.plural=a:v(a)?l.default=a:E(a)&&!c(a)?l.named=a:g(a)&&(l.list=a),o(n)?l.plural=n:v(n)?l.default=n:E(n)&&u(l,n),[r,l]}function ve(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,m,f,_]=be(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=S(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.DateTimeFormat(p,_).format(m);let k,h={},F=null;for(let c=0;c<b.length&&(k=b[c],h=a[k]||{},F=h[i],!E(F));c++)re(e,i,k,0,"datetime format");if(!E(F)||!v(k))return n?Y:i;let L=`${k}__${i}`;c(_)||(L=`${L}__${JSON.stringify(_)}`);let y=s.get(L);return y||(y=new Intl.DateTimeFormat(k,u({},F,_)),s.set(L,y)),g?y.formatToParts(m):y.format(m)}const de=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function be(...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(ie.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(ie.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(ie.INVALID_DATE_ARGUMENT);i=t}else{if(!o(t))throw Error(ie.INVALID_ARGUMENT);i=t}return v(a)?r.key=a:E(a)&&Object.keys(a).forEach((e=>{de.includes(e)?c[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:E(n)&&(c=n),E(l)&&(c=l),[r.key||"",i,r,c]}function ke(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function he(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,m,f,_]=Fe(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=S(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.NumberFormat(p,_).format(m);let k,h={},F=null;for(let c=0;c<b.length&&(k=b[c],h=a[k]||{},F=h[i],!E(F));c++)re(e,i,k,0,"number format");if(!E(F)||!v(k))return n?Y:i;let L=`${k}__${i}`;c(_)||(L=`${L}__${JSON.stringify(_)}`);let y=s.get(L);return y||(y=new Intl.NumberFormat(k,u({},F,_)),s.set(L,y)),g?y.formatToParts(m):y.format(m)}const Ee=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Fe(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(ie.INVALID_ARGUMENT);const i=t;return v(a)?r.key=a:E(a)&&Object.keys(a).forEach((e=>{Ee.includes(e)?s[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:E(n)&&(s=n),E(l)&&(s=l),[r.key||"",i,r,s]}function Le(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const ye="9.5.0",Ie=ie.__EXTEND_POINT__,Te=F(Ie),Ne={UNEXPECTED_RETURN_TYPE:Ie,INVALID_ARGUMENT:Te(),MUST_BE_CALL_SETUP_TOP:Te(),NOT_INSTALLED:Te(),NOT_AVAILABLE_IN_LEGACY_MODE:Te(),REQUIRED_VALUE:Te(),INVALID_VALUE:Te(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Te(),NOT_INSTALLED_WITH_PROVIDE:Te(),UNEXPECTED_ERROR:Te(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Te(),BRIDGE_SUPPORT_VUE_2_ONLY:Te(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Te(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Te(),__EXTEND_POINT__:Te()};const Re=n("__translateVNode"),Oe=n("__datetimeParts"),We=n("__numberParts"),Me=n("__setPluralRules"),we=n("__injectWithOption"),De=n("__dispose");function Ce(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]])&&Ce(l[a[n]])}else b(e[t])&&Ce(e[t]);return e}function Pe(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=E(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]||{},$e(a,o[t])):$e(a,o)}else v(e)&&$e(JSON.parse(e),o)})),null==l&&r)for(const s in o)_(o,s)&&Ce(o[s]);return o}const Ae=e=>!b(e)||g(e);function $e(e,t){if(Ae(e)||Ae(t))throw Error(Ne.INVALID_VALUE);for(const a in e)_(e,a)&&(Ae(e[a])||Ae(t[a])?t[a]=e[a]:$e(e[a],t[a]))}function Se(e){return e.type}function Ue(e,t,a){let n=b(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=Pe(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])}))}}function He(e){return t.createVNode(t.Text,null,e,0)}let xe=0;function je(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Ve(e={},n){const{__root:l,__injectWithOption:r}=e,s=void 0===l;let c=!d(e.inheritLocale)||e.inheritLocale;const m=t.ref(l&&c?l.locale.value:v(e.locale)?e.locale:z),f=t.ref(l&&c?l.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),_=t.ref(Pe(m.value,e)),k=t.ref(E(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),h=t.ref(E(e.numberFormats)?e.numberFormats:{[m.value]:{}});let F=l?l.missingWarn:!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,L=l?l.fallbackWarn:!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,y=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,I=!!e.fallbackFormat,T=p(e.missing)?e.missing:null,N=p(e.missing)?je(e.missing):null,R=p(e.postTranslation)?e.postTranslation:null,O=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,W=!!e.escapeParameter;const M=l?l.modifiers:E(e.modifiers)?e.modifiers:{};let w,D=e.pluralRules||l&&l.pluralRules;w=(()=>{s&&te(null);const t={version:ye,locale:m.value,fallbackLocale:f.value,messages:_.value,modifiers:M,pluralRules:D,missing:null===N?void 0:N,missingWarn:F,fallbackWarn:L,fallbackFormat:I,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:O,escapeParameter:W,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=k.value,t.numberFormats=h.value,t.__datetimeFormatters=E(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=E(w)?w.__numberFormatters:void 0;const a=le(t);return s&&te(a),a})(),oe(w,m.value,f.value);const C=t.computed({get:()=>m.value,set:e=>{m.value=e,w.locale=m.value}}),P=t.computed({get:()=>f.value,set:e=>{f.value=e,w.fallbackLocale=f.value,oe(w,m.value,e)}}),A=t.computed((()=>_.value)),$=t.computed((()=>k.value)),S=t.computed((()=>h.value));const U=(e,t,a,n,r,i)=>{let c;m.value,f.value,_.value,k.value,h.value;try{0,s||(w.fallbackContext=l?ae():void 0),c=e(w)}finally{s||(w.fallbackContext=void 0)}if(o(c)&&c===Y){const[e,a]=t();return l&&y?n(l):r(e)}if(i(c))return c;throw Error(Ne.UNEXPECTED_RETURN_TYPE)};function H(...e){return U((t=>Reflect.apply(fe,null,[t,...e])),(()=>pe(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const x={normalize:function(e){return e.map((e=>v(e)||o(e)||d(e)?He(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return _.value[e]||{}}xe++,l&&a&&(t.watch(l.locale,(e=>{c&&(m.value=e,w.locale=e,oe(w,m.value,f.value))})),t.watch(l.fallbackLocale,(e=>{c&&(f.value=e,w.fallbackLocale=e,oe(w,m.value,f.value))})));const G={id:xe,locale:C,fallbackLocale:P,get inheritLocale(){return c},set inheritLocale(e){c=e,e&&l&&(m.value=l.locale.value,f.value=l.fallbackLocale.value,oe(w,m.value,f.value))},get availableLocales(){return Object.keys(_.value).sort()},messages:A,get modifiers(){return M},get pluralRules(){return D||{}},get isGlobal(){return s},get missingWarn(){return F},set missingWarn(e){F=e,w.missingWarn=F},get fallbackWarn(){return L},set fallbackWarn(e){L=e,w.fallbackWarn=L},get fallbackRoot(){return y},set fallbackRoot(e){y=e},get fallbackFormat(){return I},set fallbackFormat(e){I=e,w.fallbackFormat=I},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,w.warnHtmlMessage=e},get escapeParameter(){return W},set escapeParameter(e){W=e,w.escapeParameter=e},t:H,getLocaleMessage:V,setLocaleMessage:function(e,t){_.value[e]=t,w.messages=_.value},mergeLocaleMessage:function(e,t){_.value[e]=_.value[e]||{},$e(t,_.value[e]),w.messages=_.value},getPostTranslationHandler:function(){return p(R)?R:null},setPostTranslationHandler:function(e){R=e,w.postTranslation=e},getMissingHandler:function(){return T},setMissingHandler:function(e){null!==e&&(N=je(e)),T=e,w.missing=N},[Me]:function(e){D=e,w.pluralRules=D}};return G.datetimeFormats=$,G.numberFormats=S,G.rt=function(...e){const[t,a,n]=e;if(n&&!b(n))throw Error(Ne.INVALID_ARGUMENT);return H(t,a,u({resolvedMessage:!0},n||{}))},G.te=function(e,t){if(!e)return!1;const a=V(v(t)?t:m.value);return null!==w.messageResolver(a,e)},G.tm=function(e){const t=function(e){let t=null;const a=j(w,f.value,m.value);for(let n=0;n<a.length;n++){const l=_.value[a[n]]||{},r=w.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},G.d=function(...e){return U((t=>Reflect.apply(ve,null,[t,...e])),(()=>be(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>J),(e=>v(e)))},G.n=function(...e){return U((t=>Reflect.apply(he,null,[t,...e])),(()=>Fe(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>J),(e=>v(e)))},G.getDateTimeFormat=function(e){return k.value[e]||{}},G.setDateTimeFormat=function(e,t){k.value[e]=t,w.datetimeFormats=k.value,ke(w,e,t)},G.mergeDateTimeFormat=function(e,t){k.value[e]=u(k.value[e]||{},t),w.datetimeFormats=k.value,ke(w,e,t)},G.getNumberFormat=function(e){return h.value[e]||{}},G.setNumberFormat=function(e,t){h.value[e]=t,w.numberFormats=h.value,Le(w,e,t)},G.mergeNumberFormat=function(e,t){h.value[e]=u(h.value[e]||{},t),w.numberFormats=h.value,Le(w,e,t)},G[we]=r,G[Re]=function(...e){return U((t=>{let a;const n=t;try{n.processor=x,a=Reflect.apply(fe,null,[n,...e])}finally{n.processor=null}return a}),(()=>pe(...e)),"translate",(t=>t[Re](...e)),(e=>[He(e)]),(e=>g(e)))},G[Oe]=function(...e){return U((t=>Reflect.apply(ve,null,[t,...e])),(()=>be(...e)),"datetime format",(t=>t[Oe](...e)),(()=>[]),(e=>v(e)||g(e)))},G[We]=function(...e){return U((t=>Reflect.apply(he,null,[t,...e])),(()=>Fe(...e)),"number format",(t=>t[We](...e)),(()=>[]),(e=>v(e)||g(e)))},G}function Ge(e={},t){{const t=Ve(function(e){const t=v(e.locale)?e.locale:z,a=v(e.fallbackLocale)||g(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=p(e.missing)?e.missing:void 0,l=!d(e.silentTranslationWarn)&&!i(e.silentTranslationWarn)||!e.silentTranslationWarn,r=!d(e.silentFallbackWarn)&&!i(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!d(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,c=E(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,f=p(e.postTranslation)?e.postTranslation:void 0,_=!v(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,b=!!e.escapeParameterHtml,k=!d(e.sync)||e.sync;let h=e.messages;if(E(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return u(n,t[a]),e}),h||{})}const{__i18n:F,__root:L,__injectWithOption:y}=e,I=e.datetimeFormats,T=e.numberFormats;return{locale:t,fallbackLocale:a,messages:h,flatJson:e.flatJson,datetimeFormats:I,numberFormats:T,missing:n,missingWarn:l,fallbackWarn:r,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:m,postTranslation:f,warnHtmlMessage:_,escapeParameter:b,messageResolver:e.messageResolver,inheritLocale:k,__i18n:F,__root:L,__injectWithOption:y}}(e)),{__extender:a}=e,n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return d(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=d(e)?!e:e},get silentFallbackWarn(){return d(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=d(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,l]=e,r={};let o=null,s=null;if(!v(a))throw Error(Ne.INVALID_ARGUMENT);const i=a;return v(n)?r.locale=n:g(n)?o=n:E(n)&&(s=n),g(l)?o=l:E(l)&&(s=l),Reflect.apply(t.t,t,[i,o||s||{},r])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,l]=e,r={plural:1};let s=null,i=null;if(!v(a))throw Error(Ne.INVALID_ARGUMENT);const c=a;return v(n)?r.locale=n:o(n)?r.plural=n:g(n)?s=n:E(n)&&(i=n),v(l)?r.locale=l:g(l)?s=l:E(l)&&(i=l),Reflect.apply(t.t,t,[c,s||i||{},r])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1};return n.__extender=a,n}}const Be={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Xe(e){return t.Fragment}const Ye=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Be),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},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...a.type===t.Fragment?a.children:[a]]),[]);return a.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),c=r[Re](e.keypath,i,s),m=u({},l),f=v(e.tag)||b(e.tag)?e.tag:Xe();return t.h(f,m,c)}}}),ze=Ye;function Je(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:Xe();return t.h(f,m,c)}}const qe=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Be),setup(e,t){const a=e.i18n||rt({useScope:"parent",__useComponent:!0});return Je(e,t,Ee,((...e)=>a[We](...e)))}}),Ze=qe,Ke=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Be),setup(e,t){const a=e.i18n||rt({useScope:"parent",__useComponent:!0});return Je(e,t,de,((...e)=>a[Oe](...e)))}}),Qe=Ke;function et(e){const n=t=>{const{instance:a,modifiers:n,value:l}=t;if(!a||!a.$)throw Error(Ne.UNEXPECTED_ERROR);const r=function(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}(e,a.$),o=tt(l);return[Reflect.apply(r.t,r,[...at(o)]),r]};return{created:(l,r)=>{const[o,s]=n(r);a&&e.global===s&&(l.__i18nWatcher=t.watch(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),l.__composer=s,l.textContent=o},unmounted:e=>{a&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const a=e.__composer,n=tt(t);e.textContent=Reflect.apply(a.t,a,[...at(n)])}},getSSRProps:e=>{const[t]=n(e);return{textContent:t}}}}function tt(e){if(v(e))return{path:e};if(E(e)){if(!("path"in e))throw Error(Ne.REQUIRED_VALUE,"path");return e}throw Error(Ne.INVALID_VALUE)}function at(e){const{path:t,locale:a,args:n,choice:l,plural:r}=e,s={},i=n||{};return v(a)&&(s.locale=a),o(l)&&(s.plural=l),o(r)&&(s.plural=r),[t,i,s]}function nt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Me](t.pluralizationRules||e.pluralizationRules);const a=Pe(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const lt=n("global-vue-i18n");function rt(e={}){const a=t.getCurrentInstance();if(null==a)throw Error(Ne.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&null!=a.appContext.app&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Ne.NOT_INSTALLED);const n=function(e){{const a=t.inject(e.isCE?lt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw function(e,...t){return y(e,null,void 0)}(e.isCE?Ne.NOT_INSTALLED_WITH_PROVIDE:Ne.UNEXPECTED_ERROR);return a}}(a),l=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),r=Se(a),o=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw Error(Ne.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(Ne.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:z),u=t.ref(!r||s?n.fallbackLocale.value:v(l.fallbackLocale)||g(l.fallbackLocale)||E(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(Pe(c.value,l)),f=t.ref(E(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(E(l.numberFormats)?l.numberFormats:{[c.value]:{}}),b=r?n.missingWarn:!d(l.missingWarn)&&!i(l.missingWarn)||l.missingWarn,k=r?n.fallbackWarn:!d(l.fallbackWarn)&&!i(l.fallbackWarn)||l.fallbackWarn,h=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,F=!!l.fallbackFormat,L=p(l.missing)?l.missing:null,y=p(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,T=!!l.escapeParameter,N=r?n.modifiers:E(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function O(){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}}),M=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)),D=t.computed((()=>f.value)),C=t.computed((()=>_.value));function P(){return o.value?o.value.getPostTranslationHandler():y}function A(e){o.value&&o.value.setPostTranslationHandler(e)}function $(){return o.value?o.value.getMissingHandler():L}function S(e){o.value&&o.value.setMissingHandler(e)}function U(e){return O(),e()}function H(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function x(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function j(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function V(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function B(e,t){return!!o.value&&o.value.te(e,t)}function X(e){return o.value?o.value.getLocaleMessage(e):{}}function Y(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 q(e){return o.value?o.value.getDateTimeFormat(e):{}}function Z(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function K(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:M,messages:w,datetimeFormats:D,numberFormats:C,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:N},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:k},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:h},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:F},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:T},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:H,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:$,setMissingHandler:S,rt:x,d:j,n:V,tm:G,te:B,getLocaleMessage:X,setLocaleMessage:Y,mergeLocaleMessage:J,getDateTimeFormat:q,setDateTimeFormat:Z,mergeDateTimeFormat:K,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=T,e.fallbackFormat=F,e.fallbackRoot=h,e.fallbackWarn=k,e.missingWarn=b,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Ne.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}(a,o,l,e)}if("global"===o)return Ue(l,e,r),l;if("parent"===o){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 t&&e.vnode.ctx||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[we]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(n,a,e.__useComponent);return null==t&&(t=l),t}const s=n;let m=s.__getInstance(a);if(null==m){const n=u({},e);"__i18n"in r&&(n.__i18n=r.__i18n),l&&(n.__root=l),m=Ve(n),s.__composerExtend&&(m[De]=s.__composerExtend(m)),function(e,a,n){t.onMounted((()=>{}),a),t.onUnmounted((()=>{const t=n;e.__deleteInstance(a);const l=t[De];l&&(l(),delete t[De])}),a)}(s,a,m),s.__setInstance(a,m)}return m}const ot=["locale","fallbackLocale","availableLocales"],st=["t","rt","d","n","tm","te"];return K=function(e,t){if(!b(e))return null;let a=O.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=R(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=N(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&&O.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;l=e,r++}return l},Q=j,e.DatetimeFormat=Ke,e.I18nD=Qe,e.I18nInjectionKey=lt,e.I18nN=Ze,e.I18nT=ze,e.NumberFormat=qe,e.Translation=Ye,e.VERSION=ye,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Ne.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){const l=!d(e.legacy)||e.legacy,r=!d(e.globalInjection)||e.globalInjection,o=!l||!!e.allowComposition,s=new Map,[i,c]=function(e,a,n){const l=t.effectScope();{const t=a?l.run((()=>Ge(e))):l.run((()=>Ve(e)));if(null==t)throw Error(Ne.UNEXPECTED_ERROR);return[l,t]}}(e,l),u=n("");{const e={get mode(){return l?"legacy":"composition"},get allowComposition(){return o},async install(a,...n){if(a.__VUE_I18N_SYMBOL__=u,a.provide(a.__VUE_I18N_SYMBOL__,e),E(n[0])){const t=n[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let o=null;!l&&r&&(o=function(e,a){const n=Object.create(null);ot.forEach((e=>{const l=Object.getOwnPropertyDescriptor(a,e);if(!l)throw Error(Ne.UNEXPECTED_ERROR);const r=t.isRef(l.value)?{get:()=>l.value.value,set(e){l.value.value=e}}:{get:()=>l.get&&l.get()};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,st.forEach((t=>{const n=Object.getOwnPropertyDescriptor(a,t);if(!n||!n.value)throw Error(Ne.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,n)}));const l=()=>{delete e.config.globalProperties.$i18n,st.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return l}(a,e.global)),function(e,t,...a){const n=E(a[0])?a[0]:{},l=!!n.useI18nComponentName;(!d(n.globalInstall)||n.globalInstall)&&([l?"i18n":Ye.name,"I18nT"].forEach((t=>e.component(t,Ye))),[qe.name,"I18nN"].forEach((t=>e.component(t,qe))),[Ke.name,"I18nD"].forEach((t=>e.component(t,Ke)))),e.directive("t",et(t))}(a,e,...n),l&&a.mixin(function(e,a,n){return{beforeCreate(){const l=t.getCurrentInstance();if(!l)throw Error(Ne.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const t=r.i18n;if(r.__i18n&&(t.__i18n=r.__i18n),t.__root=a,this===this.$root)this.$i18n=nt(e,t);else{t.__injectWithOption=!0,t.__extender=n.__vueI18nExtend,this.$i18n=Ge(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=nt(e,r);else{this.$i18n=Ge({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:a});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Ue(a,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(l,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(Ne.UNEXPECTED_ERROR);const a=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(e),delete this.$i18n}}}(c,c.__composer,e));const s=a.unmount;a.unmount=()=>{o&&o(),e.dispose(),s()}},get global(){return c},dispose(){i.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=rt,e.vTDirective=et,e}({},Vue); | ||
var VueI18n=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]"===h(e),i=e=>"[object RegExp]"===h(e),c=e=>E(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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,k=Object.prototype.toString,h=e=>k.call(e),E=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function F(e){let t=e;return()=>++t}function L(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function y(e,t,a={}){const{domain:n,messages:l,args:r}=a,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=n,o}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 T=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function N(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function R(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,T.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 O=new Map;function W(e,t){return b(e)?e[t]:null}const M=e=>e,w=e=>"",D="text",C=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),P=e=>null==e?"":g(e)||E(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function A(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]:A,l=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?A: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):w)}const c=E(e.processor)&&p(e.processor.normalize)?e.processor.normalize:C,m=E(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:P,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:E(e.processor)&&v(e.processor.type)?e.processor.type:D,interpolate:m,normalize:c,values:u({},r,s)};return f}function S(e,t){return null!=t.locale?H(t.locale):H(e.locale)}let U;function H(e){return v(e)?e:null!=U&&e.resolvedOnce?U:U=e()}function x(e,t,a){return[...new Set([a,...g(t)?t:b(t)?Object.keys(t):v(t)?[t]:[a]])]}function j(e,t,a){const n=v(a)?a:z,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=V(r,e,t);const o=g(t)||!E(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&V(r,e,!1),l.__localeChainCache.set(n,r)}return r}function V(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];v(r)&&(n=G(e,t[l],a))}return n}function G(e,t,a){let n;const l=t.split("-");do{n=B(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function B(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)||E(a))&&a[l]&&(n=a[l])}return n}const X="9.6.0",Y=-1,z="en-US",J="",q=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Z,K,Q;let ee=null;const te=e=>{ee=e},ae=()=>ee;let ne=0;function le(e={}){const t=p(e.onWarn)?e.onWarn:L,a=v(e.version)?e.version:X,n=v(e.locale)||p(e.locale)?e.locale:z,l=p(n)?z:n,r=g(e.fallbackLocale)||E(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l,o=E(e.messages)?e.messages:{[l]:{}},s=E(e.datetimeFormats)?e.datetimeFormats:{[l]:{}},c=E(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)?q(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?q(e.children):e}),f=e.pluralRules||{},_=p(e.missing)?e.missing:null,k=!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,h=!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,F=!!e.fallbackFormat,y=!!e.unresolving,I=p(e.postTranslation)?e.postTranslation:null,T=E(e.processor)?e.processor:null,N=!d(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,O=p(e.messageCompiler)?e.messageCompiler:Z,M=p(e.messageResolver)?e.messageResolver:K||W,w=p(e.localeFallbacker)?e.localeFallbacker:Q||x,D=b(e.fallbackContext)?e.fallbackContext:void 0,C=e,P=b(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,A=b(C.__numberFormatters)?C.__numberFormatters:new Map,$=b(C.__meta)?C.__meta:{};ne++;const S={version:a,cid:ne,locale:n,fallbackLocale:r,messages:o,modifiers:m,pluralRules:f,missing:_,missingWarn:k,fallbackWarn:h,fallbackFormat:F,unresolving:y,postTranslation:I,processor:T,warnHtmlMessage:N,escapeParameter:R,messageCompiler:O,messageResolver:M,localeFallbacker:w,fallbackContext:D,onWarn:t,__meta:$};return S.datetimeFormats=s,S.numberFormats=c,S.__datetimeFormatters=P,S.__numberFormatters=A,S}function re(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 oe(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}const se=F(17),ie={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:se(),INVALID_ISO_DATE_ARGUMENT:se(),NOT_SUPPORT_NON_STRING_MESSAGE:se(),__EXTEND_POINT__:se()},ce=e=>b(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),ue=()=>"",me=e=>p(e);function fe(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=pe(...t),f=d(u.missingWarn)?u.missingWarn:e.missingWarn,_=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,k=!!u.resolvedMessage,h=v(u.default)||d(u.default)?d(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",E=a||""!==h,F=S(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[L,y,I]=k?[c,F,i[F]||{}]:_e(e,c,F,s,_,f),T=L,N=c;if(k||v(T)||ce(T)||me(T)||E&&(T=h,N=T),!(k||(v(T)||ce(T)||me(T))&&v(y)))return l?Y:c;let R=!1;const O=me(T)?T:ge(e,c,y,T,N,(()=>{R=!0}));if(R)return T;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]=_e(m,n,t,i,c,u);l=s(e,n)}if(v(l)||ce(l)){let a=!1;const r=ge(e,n,t,l,n,(()=>{a=!0}));return a?ue:r}return me(l)?l:ue},_={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,y,I,u),M=function(e,t,a){const n=t(a);return n}(0,O,$(W));return n?n(M,c):M}function _e(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(_)||ce(_)||me(_)));g++){const a=re(e,t,m,0,"translate");a!==t&&(_=a)}return[_,m,f]}function ge(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(me(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 pe(...e){const[t,a,n]=e,l={};if(!(v(t)||o(t)||me(t)||ce(t)))throw Error(ie.INVALID_ARGUMENT);const r=o(t)?String(t):(me(t),t);return o(a)?l.plural=a:v(a)?l.default=a:E(a)&&!c(a)?l.named=a:g(a)&&(l.list=a),o(n)?l.plural=n:v(n)?l.default=n:E(n)&&u(l,n),[r,l]}function ve(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,m,f,_]=be(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=S(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.DateTimeFormat(p,_).format(m);let k,h={},F=null;for(let c=0;c<b.length&&(k=b[c],h=a[k]||{},F=h[i],!E(F));c++)re(e,i,k,0,"datetime format");if(!E(F)||!v(k))return n?Y:i;let L=`${k}__${i}`;c(_)||(L=`${L}__${JSON.stringify(_)}`);let y=s.get(L);return y||(y=new Intl.DateTimeFormat(k,u({},F,_)),s.set(L,y)),g?y.formatToParts(m):y.format(m)}const de=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function be(...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(ie.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(ie.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(ie.INVALID_DATE_ARGUMENT);i=t}else{if(!o(t))throw Error(ie.INVALID_ARGUMENT);i=t}return v(a)?r.key=a:E(a)&&Object.keys(a).forEach((e=>{de.includes(e)?c[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:E(n)&&(c=n),E(l)&&(c=l),[r.key||"",i,r,c]}function ke(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function he(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,m,f,_]=Fe(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=S(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.NumberFormat(p,_).format(m);let k,h={},F=null;for(let c=0;c<b.length&&(k=b[c],h=a[k]||{},F=h[i],!E(F));c++)re(e,i,k,0,"number format");if(!E(F)||!v(k))return n?Y:i;let L=`${k}__${i}`;c(_)||(L=`${L}__${JSON.stringify(_)}`);let y=s.get(L);return y||(y=new Intl.NumberFormat(k,u({},F,_)),s.set(L,y)),g?y.formatToParts(m):y.format(m)}const Ee=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Fe(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(ie.INVALID_ARGUMENT);const i=t;return v(a)?r.key=a:E(a)&&Object.keys(a).forEach((e=>{Ee.includes(e)?s[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:E(n)&&(s=n),E(l)&&(s=l),[r.key||"",i,r,s]}function Le(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const ye="9.6.0",Ie=ie.__EXTEND_POINT__,Te=F(Ie),Ne={UNEXPECTED_RETURN_TYPE:Ie,INVALID_ARGUMENT:Te(),MUST_BE_CALL_SETUP_TOP:Te(),NOT_INSTALLED:Te(),NOT_AVAILABLE_IN_LEGACY_MODE:Te(),REQUIRED_VALUE:Te(),INVALID_VALUE:Te(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Te(),NOT_INSTALLED_WITH_PROVIDE:Te(),UNEXPECTED_ERROR:Te(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Te(),BRIDGE_SUPPORT_VUE_2_ONLY:Te(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Te(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Te(),__EXTEND_POINT__:Te()};const Re=n("__translateVNode"),Oe=n("__datetimeParts"),We=n("__numberParts"),Me=n("__setPluralRules"),we=n("__injectWithOption"),De=n("__dispose");function Ce(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]])&&Ce(l[a[n]])}else b(e[t])&&Ce(e[t]);return e}function Pe(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=E(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]||{},$e(a,o[t])):$e(a,o)}else v(e)&&$e(JSON.parse(e),o)})),null==l&&r)for(const s in o)_(o,s)&&Ce(o[s]);return o}const Ae=e=>!b(e)||g(e);function $e(e,t){if(Ae(e)||Ae(t))throw Error(Ne.INVALID_VALUE);for(const a in e)_(e,a)&&(Ae(e[a])||Ae(t[a])?t[a]=e[a]:$e(e[a],t[a]))}function Se(e){return e.type}function Ue(e,t,a){let n=b(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=Pe(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])}))}}function He(e){return t.createVNode(t.Text,null,e,0)}let xe=0;function je(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Ve(e={},n){const{__root:l,__injectWithOption:r}=e,s=void 0===l,c=e.flatJson;let m=!d(e.inheritLocale)||e.inheritLocale;const f=t.ref(l&&m?l.locale.value:v(e.locale)?e.locale:z),k=t.ref(l&&m?l.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),h=t.ref(Pe(f.value,e)),F=t.ref(E(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),L=t.ref(E(e.numberFormats)?e.numberFormats:{[f.value]:{}});let y=l?l.missingWarn:!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,I=l?l.fallbackWarn:!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,T=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,R=p(e.missing)?e.missing:null,O=p(e.missing)?je(e.missing):null,W=p(e.postTranslation)?e.postTranslation:null,M=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,w=!!e.escapeParameter;const D=l?l.modifiers:E(e.modifiers)?e.modifiers:{};let C,P=e.pluralRules||l&&l.pluralRules;C=(()=>{s&&te(null);const t={version:ye,locale:f.value,fallbackLocale:k.value,messages:h.value,modifiers:D,pluralRules:P,missing:null===O?void 0:O,missingWarn:y,fallbackWarn:I,fallbackFormat:N,unresolving:!0,postTranslation:null===W?void 0:W,warnHtmlMessage:M,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=F.value,t.numberFormats=L.value,t.__datetimeFormatters=E(C)?C.__datetimeFormatters:void 0,t.__numberFormatters=E(C)?C.__numberFormatters:void 0;const a=le(t);return s&&te(a),a})(),oe(C,f.value,k.value);const A=t.computed({get:()=>f.value,set:e=>{f.value=e,C.locale=f.value}}),$=t.computed({get:()=>k.value,set:e=>{k.value=e,C.fallbackLocale=k.value,oe(C,f.value,e)}}),S=t.computed((()=>h.value)),U=t.computed((()=>F.value)),H=t.computed((()=>L.value));const x=(e,t,a,n,r,i)=>{let c;f.value,k.value,h.value,F.value,L.value;try{0,s||(C.fallbackContext=l?ae():void 0),c=e(C)}finally{s||(C.fallbackContext=void 0)}if(o(c)&&c===Y){const[e,a]=t();return l&&T?n(l):r(e)}if(i(c))return c;throw Error(Ne.UNEXPECTED_RETURN_TYPE)};function V(...e){return x((t=>Reflect.apply(fe,null,[t,...e])),(()=>pe(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const G={normalize:function(e){return e.map((e=>v(e)||o(e)||d(e)?He(String(e)):e))},interpolate:e=>e,type:"vnode"};function B(e){return h.value[e]||{}}xe++,l&&a&&(t.watch(l.locale,(e=>{m&&(f.value=e,C.locale=e,oe(C,f.value,k.value))})),t.watch(l.fallbackLocale,(e=>{m&&(k.value=e,C.fallbackLocale=e,oe(C,f.value,k.value))})));const X={id:xe,locale:A,fallbackLocale:$,get inheritLocale(){return m},set inheritLocale(e){m=e,e&&l&&(f.value=l.locale.value,k.value=l.fallbackLocale.value,oe(C,f.value,k.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:S,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(e){y=e,C.missingWarn=y},get fallbackWarn(){return I},set fallbackWarn(e){I=e,C.fallbackWarn=I},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,C.fallbackFormat=N},get warnHtmlMessage(){return M},set warnHtmlMessage(e){M=e,C.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,C.escapeParameter=e},t:V,getLocaleMessage:B,setLocaleMessage:function(e,t){if(c){const a={[e]:t};for(const e in a)_(a,e)&&Ce(a[e]);t=a[e]}h.value[e]=t,C.messages=h.value},mergeLocaleMessage:function(e,t){h.value[e]=h.value[e]||{};const a={[e]:t};for(const n in a)_(a,n)&&Ce(a[n]);$e(t=a[e],h.value[e]),C.messages=h.value},getPostTranslationHandler:function(){return p(W)?W:null},setPostTranslationHandler:function(e){W=e,C.postTranslation=e},getMissingHandler:function(){return R},setMissingHandler:function(e){null!==e&&(O=je(e)),R=e,C.missing=O},[Me]:function(e){P=e,C.pluralRules=P}};return X.datetimeFormats=U,X.numberFormats=H,X.rt=function(...e){const[t,a,n]=e;if(n&&!b(n))throw Error(Ne.INVALID_ARGUMENT);return V(t,a,u({resolvedMessage:!0},n||{}))},X.te=function(e,t){if(!e)return!1;const a=B(v(t)?t:f.value);return v(C.messageResolver(a,e))},X.tm=function(e){const t=function(e){let t=null;const a=j(C,k.value,f.value);for(let n=0;n<a.length;n++){const l=h.value[a[n]]||{},r=C.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},X.d=function(...e){return x((t=>Reflect.apply(ve,null,[t,...e])),(()=>be(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>J),(e=>v(e)))},X.n=function(...e){return x((t=>Reflect.apply(he,null,[t,...e])),(()=>Fe(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>J),(e=>v(e)))},X.getDateTimeFormat=function(e){return F.value[e]||{}},X.setDateTimeFormat=function(e,t){F.value[e]=t,C.datetimeFormats=F.value,ke(C,e,t)},X.mergeDateTimeFormat=function(e,t){F.value[e]=u(F.value[e]||{},t),C.datetimeFormats=F.value,ke(C,e,t)},X.getNumberFormat=function(e){return L.value[e]||{}},X.setNumberFormat=function(e,t){L.value[e]=t,C.numberFormats=L.value,Le(C,e,t)},X.mergeNumberFormat=function(e,t){L.value[e]=u(L.value[e]||{},t),C.numberFormats=L.value,Le(C,e,t)},X[we]=r,X[Re]=function(...e){return x((t=>{let a;const n=t;try{n.processor=G,a=Reflect.apply(fe,null,[n,...e])}finally{n.processor=null}return a}),(()=>pe(...e)),"translate",(t=>t[Re](...e)),(e=>[He(e)]),(e=>g(e)))},X[Oe]=function(...e){return x((t=>Reflect.apply(ve,null,[t,...e])),(()=>be(...e)),"datetime format",(t=>t[Oe](...e)),(()=>[]),(e=>v(e)||g(e)))},X[We]=function(...e){return x((t=>Reflect.apply(he,null,[t,...e])),(()=>Fe(...e)),"number format",(t=>t[We](...e)),(()=>[]),(e=>v(e)||g(e)))},X}function Ge(e={},t){{const t=Ve(function(e){const t=v(e.locale)?e.locale:z,a=v(e.fallbackLocale)||g(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=p(e.missing)?e.missing:void 0,l=!d(e.silentTranslationWarn)&&!i(e.silentTranslationWarn)||!e.silentTranslationWarn,r=!d(e.silentFallbackWarn)&&!i(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!d(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,c=E(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,f=p(e.postTranslation)?e.postTranslation:void 0,_=!v(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,b=!!e.escapeParameterHtml,k=!d(e.sync)||e.sync;let h=e.messages;if(E(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return u(n,t[a]),e}),h||{})}const{__i18n:F,__root:L,__injectWithOption:y}=e,I=e.datetimeFormats,T=e.numberFormats;return{locale:t,fallbackLocale:a,messages:h,flatJson:e.flatJson,datetimeFormats:I,numberFormats:T,missing:n,missingWarn:l,fallbackWarn:r,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:m,postTranslation:f,warnHtmlMessage:_,escapeParameter:b,messageResolver:e.messageResolver,inheritLocale:k,__i18n:F,__root:L,__injectWithOption:y}}(e)),{__extender:a}=e,n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return d(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=d(e)?!e:e},get silentFallbackWarn(){return d(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=d(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,l]=e,r={};let o=null,s=null;if(!v(a))throw Error(Ne.INVALID_ARGUMENT);const i=a;return v(n)?r.locale=n:g(n)?o=n:E(n)&&(s=n),g(l)?o=l:E(l)&&(s=l),Reflect.apply(t.t,t,[i,o||s||{},r])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,l]=e,r={plural:1};let s=null,i=null;if(!v(a))throw Error(Ne.INVALID_ARGUMENT);const c=a;return v(n)?r.locale=n:o(n)?r.plural=n:g(n)?s=n:E(n)&&(i=n),v(l)?r.locale=l:g(l)?s=l:E(l)&&(i=l),Reflect.apply(t.t,t,[c,s||i||{},r])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1};return n.__extender=a,n}}const Be={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Xe(e){return t.Fragment}const Ye=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Be),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},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...a.type===t.Fragment?a.children:[a]]),[]);return a.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),c=r[Re](e.keypath,i,s),m=u({},l),f=v(e.tag)||b(e.tag)?e.tag:Xe();return t.h(f,m,c)}}}),ze=Ye;function Je(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:Xe();return t.h(f,m,c)}}const qe=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Be),setup(e,t){const a=e.i18n||rt({useScope:"parent",__useComponent:!0});return Je(e,t,Ee,((...e)=>a[We](...e)))}}),Ze=qe,Ke=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Be),setup(e,t){const a=e.i18n||rt({useScope:"parent",__useComponent:!0});return Je(e,t,de,((...e)=>a[Oe](...e)))}}),Qe=Ke;function et(e){const n=t=>{const{instance:a,modifiers:n,value:l}=t;if(!a||!a.$)throw Error(Ne.UNEXPECTED_ERROR);const r=function(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}(e,a.$),o=tt(l);return[Reflect.apply(r.t,r,[...at(o)]),r]};return{created:(l,r)=>{const[o,s]=n(r);a&&e.global===s&&(l.__i18nWatcher=t.watch(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),l.__composer=s,l.textContent=o},unmounted:e=>{a&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const a=e.__composer,n=tt(t);e.textContent=Reflect.apply(a.t,a,[...at(n)])}},getSSRProps:e=>{const[t]=n(e);return{textContent:t}}}}function tt(e){if(v(e))return{path:e};if(E(e)){if(!("path"in e))throw Error(Ne.REQUIRED_VALUE,"path");return e}throw Error(Ne.INVALID_VALUE)}function at(e){const{path:t,locale:a,args:n,choice:l,plural:r}=e,s={},i=n||{};return v(a)&&(s.locale=a),o(l)&&(s.plural=l),o(r)&&(s.plural=r),[t,i,s]}function nt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Me](t.pluralizationRules||e.pluralizationRules);const a=Pe(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const lt=n("global-vue-i18n");function rt(e={}){const a=t.getCurrentInstance();if(null==a)throw Error(Ne.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&null!=a.appContext.app&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Ne.NOT_INSTALLED);const n=function(e){{const a=t.inject(e.isCE?lt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw function(e,...t){return y(e,null,void 0)}(e.isCE?Ne.NOT_INSTALLED_WITH_PROVIDE:Ne.UNEXPECTED_ERROR);return a}}(a),l=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),r=Se(a),o=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw Error(Ne.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(Ne.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:z),u=t.ref(!r||s?n.fallbackLocale.value:v(l.fallbackLocale)||g(l.fallbackLocale)||E(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(Pe(c.value,l)),f=t.ref(E(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(E(l.numberFormats)?l.numberFormats:{[c.value]:{}}),b=r?n.missingWarn:!d(l.missingWarn)&&!i(l.missingWarn)||l.missingWarn,k=r?n.fallbackWarn:!d(l.fallbackWarn)&&!i(l.fallbackWarn)||l.fallbackWarn,h=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,F=!!l.fallbackFormat,L=p(l.missing)?l.missing:null,y=p(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,T=!!l.escapeParameter,N=r?n.modifiers:E(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function O(){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}}),M=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)),D=t.computed((()=>f.value)),C=t.computed((()=>_.value));function P(){return o.value?o.value.getPostTranslationHandler():y}function A(e){o.value&&o.value.setPostTranslationHandler(e)}function $(){return o.value?o.value.getMissingHandler():L}function S(e){o.value&&o.value.setMissingHandler(e)}function U(e){return O(),e()}function H(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function x(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function j(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function V(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function B(e,t){return!!o.value&&o.value.te(e,t)}function X(e){return o.value?o.value.getLocaleMessage(e):{}}function Y(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 q(e){return o.value?o.value.getDateTimeFormat(e):{}}function Z(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function K(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:M,messages:w,datetimeFormats:D,numberFormats:C,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:N},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:k},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:h},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:F},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:T},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:H,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:$,setMissingHandler:S,rt:x,d:j,n:V,tm:G,te:B,getLocaleMessage:X,setLocaleMessage:Y,mergeLocaleMessage:J,getDateTimeFormat:q,setDateTimeFormat:Z,mergeDateTimeFormat:K,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=T,e.fallbackFormat=F,e.fallbackRoot=h,e.fallbackWarn=k,e.missingWarn=b,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Ne.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}(a,o,l,e)}if("global"===o)return Ue(l,e,r),l;if("parent"===o){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 t&&e.vnode.ctx||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[we]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(n,a,e.__useComponent);return null==t&&(t=l),t}const s=n;let m=s.__getInstance(a);if(null==m){const n=u({},e);"__i18n"in r&&(n.__i18n=r.__i18n),l&&(n.__root=l),m=Ve(n),s.__composerExtend&&(m[De]=s.__composerExtend(m)),function(e,a,n){t.onMounted((()=>{}),a),t.onUnmounted((()=>{const t=n;e.__deleteInstance(a);const l=t[De];l&&(l(),delete t[De])}),a)}(s,a,m),s.__setInstance(a,m)}return m}const ot=["locale","fallbackLocale","availableLocales"],st=["t","rt","d","n","tm","te"];return K=function(e,t){if(!b(e))return null;let a=O.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=R(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=N(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&&O.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;l=e,r++}return l},Q=j,e.DatetimeFormat=Ke,e.I18nD=Qe,e.I18nInjectionKey=lt,e.I18nN=Ze,e.I18nT=ze,e.NumberFormat=qe,e.Translation=Ye,e.VERSION=ye,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Ne.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){const l=!d(e.legacy)||e.legacy,r=!d(e.globalInjection)||e.globalInjection,o=!l||!!e.allowComposition,s=new Map,[i,c]=function(e,a,n){const l=t.effectScope();{const t=a?l.run((()=>Ge(e))):l.run((()=>Ve(e)));if(null==t)throw Error(Ne.UNEXPECTED_ERROR);return[l,t]}}(e,l),u=n("");{const e={get mode(){return l?"legacy":"composition"},get allowComposition(){return o},async install(a,...n){if(a.__VUE_I18N_SYMBOL__=u,a.provide(a.__VUE_I18N_SYMBOL__,e),E(n[0])){const t=n[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let o=null;!l&&r&&(o=function(e,a){const n=Object.create(null);ot.forEach((e=>{const l=Object.getOwnPropertyDescriptor(a,e);if(!l)throw Error(Ne.UNEXPECTED_ERROR);const r=t.isRef(l.value)?{get:()=>l.value.value,set(e){l.value.value=e}}:{get:()=>l.get&&l.get()};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,st.forEach((t=>{const n=Object.getOwnPropertyDescriptor(a,t);if(!n||!n.value)throw Error(Ne.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,n)}));const l=()=>{delete e.config.globalProperties.$i18n,st.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return l}(a,e.global)),function(e,t,...a){const n=E(a[0])?a[0]:{},l=!!n.useI18nComponentName;(!d(n.globalInstall)||n.globalInstall)&&([l?"i18n":Ye.name,"I18nT"].forEach((t=>e.component(t,Ye))),[qe.name,"I18nN"].forEach((t=>e.component(t,qe))),[Ke.name,"I18nD"].forEach((t=>e.component(t,Ke)))),e.directive("t",et(t))}(a,e,...n),l&&a.mixin(function(e,a,n){return{beforeCreate(){const l=t.getCurrentInstance();if(!l)throw Error(Ne.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const t=r.i18n;if(r.__i18n&&(t.__i18n=r.__i18n),t.__root=a,this===this.$root)this.$i18n=nt(e,t);else{t.__injectWithOption=!0,t.__extender=n.__vueI18nExtend,this.$i18n=Ge(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=nt(e,r);else{this.$i18n=Ge({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:a});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Ue(a,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(l,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(Ne.UNEXPECTED_ERROR);const a=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(e),delete this.$i18n}}}(c,c.__composer,e));const s=a.unmount;a.unmount=()=>{o&&o(),e.dispose(),s()}},get global(){return c},dispose(){i.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=rt,e.vTDirective=et,e}({},Vue); |
{ | ||
"name": "vue-i18n", | ||
"version": "9.5.0", | ||
"version": "9.6.0", | ||
"description": "Internationalization plugin for Vue.js", | ||
@@ -39,8 +39,8 @@ "keywords": [ | ||
"@vue/devtools-api": "^6.5.0", | ||
"@intlify/core-base": "9.5.0", | ||
"@intlify/shared": "9.5.0" | ||
"@intlify/shared": "9.6.0", | ||
"@intlify/core-base": "9.6.0" | ||
}, | ||
"devDependencies": { | ||
"@intlify/devtools-if": "9.5.0", | ||
"@intlify/vue-devtools": "9.5.0" | ||
"@intlify/devtools-if": "9.6.0", | ||
"@intlify/vue-devtools": "9.6.0" | ||
}, | ||
@@ -47,0 +47,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 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1593342
38412
+ Added@intlify/core-base@9.6.0(transitive)
+ Added@intlify/message-compiler@9.6.0(transitive)
+ Added@intlify/shared@9.6.0(transitive)
- Removed@intlify/core-base@9.5.0(transitive)
- Removed@intlify/message-compiler@9.5.0(transitive)
- Removed@intlify/shared@9.5.0(transitive)
Updated@intlify/core-base@9.6.0
Updated@intlify/shared@9.6.0