china-mobile-international-custom-components 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AvailableRangeSetting.mjs +3 -1
- package/es/PageContainer.mjs +230 -177
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/index.css +1 -1
- package/es/index.mjs +323 -317
- package/index.css +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/index.css +1 -1
- package/lib/index.js +6 -6
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Vn=require("./CustomToggle.js"),xn=require("./CustomTitle.js"),
|
|
2
|
-
`)}function Wt(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const
|
|
3
|
-
`,Yr="\u2028",Gr="\u2029";function Hr(e){const t=e;let n=0,r=1,a=1,s=0;const o=g=>t[g]===Wr&&t[g+1]===Z,i=g=>t[g]===Z,c=g=>t[g]===Gr,E=g=>t[g]===Yr,b=g=>o(g)||i(g)||c(g)||E(g),T=()=>n,N=()=>r,A=()=>a,y=()=>s,v=g=>o(g)||c(g)||E(g)?Z:t[g],D=()=>v(n),f=()=>v(n+s);function m(){return s=0,b(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function L(){return o(n+s)&&s++,s++,t[n+s]}function d(){n=0,r=1,a=1,s=0}function I(g=0){s=g}function C(){const g=n+s;for(;g!==n;)m();s=0}return{index:T,line:N,column:A,peekOffset:y,charAt:v,currentChar:D,currentPeek:f,next:m,peek:L,reset:d,resetPeek:I,skipToPeek:C}}const de=void 0,Kr=".",on="'",jr="tokenizer";function Xr(e,t={}){const n=t.location!==!1,r=Hr(e),a=()=>r.index(),s=()=>wr(r.line(),r.column(),r.index()),o=s(),i=a(),c={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},E=()=>c,{onError:b}=t;function T(l,u,p,...P){const G=E();if(u.column+=p,u.offset+=p,b){const j=n?At(G.startLoc,u):null,U=ke(l,j,{domain:jr,args:P});b(U)}}function N(l,u,p){l.endLoc=s(),l.currentType=u;const P={type:u};return n&&(P.loc=At(l.startLoc,l.endLoc)),p!=null&&(P.value=p),P}const A=l=>N(l,13);function y(l,u){return l.currentChar()===u?(l.next(),u):(T(S.EXPECTED_TOKEN,s(),0,u),"")}function v(l){let u="";for(;l.currentPeek()===ue||l.currentPeek()===Z;)u+=l.currentPeek(),l.peek();return u}function D(l){const u=v(l);return l.skipToPeek(),u}function f(l){if(l===de)return!1;const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function m(l){if(l===de)return!1;const u=l.charCodeAt(0);return u>=48&&u<=57}function L(l,u){const{currentType:p}=u;if(p!==2)return!1;v(l);const P=f(l.currentPeek());return l.resetPeek(),P}function d(l,u){const{currentType:p}=u;if(p!==2)return!1;v(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),G=m(P);return l.resetPeek(),G}function I(l,u){const{currentType:p}=u;if(p!==2)return!1;v(l);const P=l.currentPeek()===on;return l.resetPeek(),P}function C(l,u){const{currentType:p}=u;if(p!==7)return!1;v(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function g(l,u){const{currentType:p}=u;if(p!==8)return!1;v(l);const P=f(l.currentPeek());return l.resetPeek(),P}function R(l,u){const{currentType:p}=u;if(!(p===7||p===11))return!1;v(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function V(l,u){const{currentType:p}=u;if(p!==9)return!1;const P=()=>{const j=l.currentPeek();return j==="{"?f(l.peek()):j==="@"||j==="|"||j===":"||j==="."||j===ue||!j?!1:j===Z?(l.peek(),P()):oe(l,!1)},G=P();return l.resetPeek(),G}function q(l){v(l);const u=l.currentPeek()==="|";return l.resetPeek(),u}function oe(l,u=!0){const p=(G=!1,j="")=>{const U=l.currentPeek();return U==="{"||U==="@"||!U?G:U==="|"?!(j===ue||j===Z):U===ue?(l.peek(),p(!0,ue)):U===Z?(l.peek(),p(!0,Z)):!0},P=p();return u&&l.resetPeek(),P}function K(l,u){const p=l.currentChar();return p===de?de:u(p)?(l.next(),p):null}function ve(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36}function ot(l){return K(l,ve)}function lt(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36||u===45}function it(l){return K(l,lt)}function ut(l){const u=l.charCodeAt(0);return u>=48&&u<=57}function ct(l){return K(l,ut)}function ft(l){const u=l.charCodeAt(0);return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function me(l){return K(l,ft)}function Me(l){let u="",p="";for(;u=ct(l);)p+=u;return p}function _t(l){let u="";for(;;){const p=l.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p===ue||p===Z)if(oe(l))u+=p,l.next();else{if(q(l))break;u+=p,l.next()}else u+=p,l.next()}return u}function mt(l){D(l);let u="",p="";for(;u=it(l);)p+=u;const P=l.currentChar();if(P&&P!=="}"&&P!==de&&P!==ue&&P!==Z&&P!==" "){const G=je(l);return T(S.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p+G),p+G}return l.currentChar()===de&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p}function dt(l){D(l);let u="";return l.currentChar()==="-"?(l.next(),u+=`-${Me(l)}`):u+=Me(l),l.currentChar()===de&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),u}function Et(l){return l!==on&&l!==Z}function zt(l){D(l),y(l,"'");let u="",p="";for(;u=K(l,Et);)u==="\\"?p+=gt(l):p+=u;const P=l.currentChar();return P===Z||P===de?(T(S.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),P===Z&&(l.next(),y(l,"'")),p):(y(l,"'"),p)}function gt(l){const u=l.currentChar();switch(u){case"\\":case"'":return l.next(),`\\${u}`;case"u":return Ke(l,u,4);case"U":return Ke(l,u,6);default:return T(S.UNKNOWN_ESCAPE_SEQUENCE,s(),0,u),""}}function Ke(l,u,p){y(l,u);let P="";for(let G=0;G<p;G++){const j=me(l);if(!j){T(S.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${u}${P}${l.currentChar()}`);break}P+=j}return`\\${u}${P}`}function pt(l){return l!=="{"&&l!=="}"&&l!==ue&&l!==Z}function je(l){D(l);let u="",p="";for(;u=K(l,pt);)p+=u;return p}function Nt(l){let u="",p="";for(;u=ot(l);)p+=u;return p}function ht(l){const u=p=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===ue?p:(p+=P,l.next(),u(p))};return u("")}function we(l){D(l);const u=y(l,"|");return D(l),u}function Ue(l,u){let p=null;switch(l.currentChar()){case"{":return u.braceNest>=1&&T(S.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),p=N(u,2,"{"),D(l),u.braceNest++,p;case"}":return u.braceNest>0&&u.currentType===2&&T(S.EMPTY_PLACEHOLDER,s(),0),l.next(),p=N(u,3,"}"),u.braceNest--,u.braceNest>0&&D(l),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),p;case"@":return u.braceNest>0&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p=Ne(l,u)||A(u),u.braceNest=0,p;default:{let G=!0,j=!0,U=!0;if(q(l))return u.braceNest>0&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p=N(u,1,we(l)),u.braceNest=0,u.inLinked=!1,p;if(u.braceNest>0&&(u.currentType===4||u.currentType===5||u.currentType===6))return T(S.UNTERMINATED_CLOSING_BRACE,s(),0),u.braceNest=0,Ve(l,u);if(G=L(l,u))return p=N(u,4,mt(l)),D(l),p;if(j=d(l,u))return p=N(u,5,dt(l)),D(l),p;if(U=I(l,u))return p=N(u,6,zt(l)),D(l),p;if(!G&&!j&&!U)return p=N(u,12,je(l)),T(S.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p.value),D(l),p;break}}return p}function Ne(l,u){const{currentType:p}=u;let P=null;const G=l.currentChar();switch((p===7||p===8||p===11||p===9)&&(G===Z||G===ue)&&T(S.INVALID_LINKED_FORMAT,s(),0),G){case"@":return l.next(),P=N(u,7,"@"),u.inLinked=!0,P;case".":return D(l),l.next(),N(u,8,".");case":":return D(l),l.next(),N(u,9,":");default:return q(l)?(P=N(u,1,we(l)),u.braceNest=0,u.inLinked=!1,P):C(l,u)||R(l,u)?(D(l),Ne(l,u)):g(l,u)?(D(l),N(u,11,Nt(l))):V(l,u)?(D(l),G==="{"?Ue(l,u)||P:N(u,10,ht(l))):(p===7&&T(S.INVALID_LINKED_FORMAT,s(),0),u.braceNest=0,u.inLinked=!1,Ve(l,u))}}function Ve(l,u){let p={type:13};if(u.braceNest>0)return Ue(l,u)||A(u);if(u.inLinked)return Ne(l,u)||A(u);switch(l.currentChar()){case"{":return Ue(l,u)||A(u);case"}":return T(S.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(u,3,"}");case"@":return Ne(l,u)||A(u);default:{if(q(l))return p=N(u,1,we(l)),u.braceNest=0,u.inLinked=!1,p;if(oe(l))return N(u,0,_t(l));break}}return p}function Tt(){const{currentType:l,offset:u,startLoc:p,endLoc:P}=c;return c.lastType=l,c.lastOffset=u,c.lastStartLoc=p,c.lastEndLoc=P,c.offset=a(),c.startLoc=s(),r.currentChar()===de?N(c,13):Ve(r,c)}return{nextToken:Tt,currentOffset:a,currentPosition:s,context:E}}const Jr="parser",qr=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Qr(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Zr(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,m,L,d,...I){const C=f.currentPosition();if(C.offset+=d,C.column+=d,n){const g=t?At(L,C):null,R=ke(m,g,{domain:Jr,args:I});n(R)}}function a(f,m,L){const d={type:f};return t&&(d.start=m,d.end=m,d.loc={start:L,end:L}),d}function s(f,m,L,d){t&&(f.end=m,f.loc&&(f.loc.end=L))}function o(f,m){const L=f.context(),d=a(3,L.offset,L.startLoc);return d.value=m,s(d,f.currentOffset(),f.currentPosition()),d}function i(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(5,d,I);return C.index=parseInt(m,10),f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function c(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(4,d,I);return C.key=m,f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function E(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(9,d,I);return C.value=m.replace(qr,Qr),f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function b(f){const m=f.nextToken(),L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(8,d,I);return m.type!==11?(r(f,S.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),C.value="",s(C,d,I),{nextConsumeToken:m,node:C}):(m.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,ce(m)),C.value=m.value||"",s(C,f.currentOffset(),f.currentPosition()),{node:C})}function T(f,m){const L=f.context(),d=a(7,L.offset,L.startLoc);return d.value=m,s(d,f.currentOffset(),f.currentPosition()),d}function N(f){const m=f.context(),L=a(6,m.offset,m.startLoc);let d=f.nextToken();if(d.type===8){const I=b(f);L.modifier=I.node,d=I.nextConsumeToken||f.nextToken()}switch(d.type!==9&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),d=f.nextToken(),d.type===2&&(d=f.nextToken()),d.type){case 10:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=T(f,d.value||"");break;case 4:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=c(f,d.value||"");break;case 5:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=i(f,d.value||"");break;case 6:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=E(f,d.value||"");break;default:{r(f,S.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const I=f.context(),C=a(7,I.offset,I.startLoc);return C.value="",s(C,I.offset,I.startLoc),L.key=C,s(L,I.offset,I.startLoc),{nextConsumeToken:d,node:L}}}return s(L,f.currentOffset(),f.currentPosition()),{node:L}}function A(f){const m=f.context(),L=m.currentType===1?f.currentOffset():m.offset,d=m.currentType===1?m.endLoc:m.startLoc,I=a(2,L,d);I.items=[];let C=null;do{const V=C||f.nextToken();switch(C=null,V.type){case 0:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(o(f,V.value||""));break;case 5:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(i(f,V.value||""));break;case 4:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(c(f,V.value||""));break;case 6:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(E(f,V.value||""));break;case 7:{const q=N(f);I.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const g=m.currentType===1?m.lastOffset:f.currentOffset(),R=m.currentType===1?m.lastEndLoc:f.currentPosition();return s(I,g,R),I}function y(f,m,L,d){const I=f.context();let C=d.items.length===0;const g=a(1,m,L);g.cases=[],g.cases.push(d);do{const R=A(f);C||(C=R.items.length===0),g.cases.push(R)}while(I.currentType!==13);return C&&r(f,S.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),s(g,f.currentOffset(),f.currentPosition()),g}function v(f){const m=f.context(),{offset:L,startLoc:d}=m,I=A(f);return m.currentType===13?I:y(f,L,d,I)}function D(f){const m=Xr(f,Q({},e)),L=m.context(),d=a(0,L.offset,L.startLoc);return t&&d.loc&&(d.loc.source=f),d.body=v(m),e.onCacheKey&&(d.cacheKey=e.onCacheKey(f)),L.currentType!==13&&r(m,S.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,f[L.offset]||""),s(d,m.currentOffset(),m.currentPosition()),d}return{parse:D}}function ce(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function zr(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function ln(e,t){for(let n=0;n<e.length;n++)Yt(e[n],t)}function Yt(e,t){switch(e.type){case 1:ln(e.cases,t),t.helper("plural");break;case 2:ln(e.items,t);break;case 6:{Yt(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");break}}function ea(e,t={}){const n=zr(e);n.helper("normalize"),e.body&&Yt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ta(e){const t=e.body;return t.type===2?un(t):t.cases.forEach(n=>un(n)),e}function un(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(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(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Bt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const na="minifier";function Pe(e){switch(e.t=e.type,e.type){case 0:{const t=e;Pe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Pe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Pe(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Pe(t.key),t.k=t.key,delete t.key,t.modifier&&(Pe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw ke(S.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:na,args:[e.type]})}delete e.type}const ra="parser";function aa(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,s=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};s&&e.loc&&(o.source=e.loc.source);const i=()=>o;function c(v,D){o.code+=v}function E(v,D=!0){const f=D?r:"";c(a?f+" ".repeat(v):f)}function b(v=!0){const D=++o.indentLevel;v&&E(D)}function T(v=!0){const D=--o.indentLevel;v&&E(D)}function N(){E(o.indentLevel)}return{context:i,push:c,indent:b,deindent:T,newline:N,helper:v=>`_${v}`,needIndent:()=>o.needIndent}}function sa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Fe(e,t.key),t.modifier?(e.push(", "),Fe(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function oa(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s<a&&(Fe(e,t.items[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function la(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 s=0;s<a&&(Fe(e,t.cases[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function ia(e,t){t.body?Fe(e,t.body):e.push("null")}function Fe(e,t){const{helper:n}=e;switch(t.type){case 0:ia(e,t);break;case 1:la(e,t);break;case 2:oa(e,t);break;case 6:sa(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw ke(S.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ra,args:[t.type]})}}const ua=(e,t={})=>{const n=O(t.mode)?t.mode:"normal",r=O(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
4
|
-
`,s=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=aa(e,{filename:r,breakLineCode:a,needIndent:s});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(s),o.length>0&&(i.push(`const { ${Bt(o.map(b=>`${b}: _${b}`),", ")} } = ctx`),i.newline()),i.push("return "),Fe(i,e),i.deindent(s),i.push("}"),delete e.helpers;const{code:c,map:E}=i.context();return{ast:e,code:c,map:E?E.toJSON():void 0}};function ca(e,t={}){const n=Q({},t),r=!!n.jit,a=!!n.minify,s=n.optimize==null?!0:n.optimize,i=Zr(n).parse(e);return r?(s&&ta(i),a&&Pe(i),{ast:i,code:""}):(ea(i,n),ua(i,n))}function fa(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Le().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Le().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return M(e)&&Gt(e)===0&&(le(e,"b")||le(e,"body"))}const Yn=["b","body"];function _a(e){return ge(e,Yn)}const Gn=["c","cases"];function ma(e){return ge(e,Gn,[])}const Hn=["s","static"];function da(e){return ge(e,Hn)}const Kn=["i","items"];function Ea(e){return ge(e,Kn,[])}const jn=["t","type"];function Gt(e){return ge(e,jn)}const Xn=["v","value"];function qe(e,t){const n=ge(e,Xn);if(n!=null)return n;throw $e(t)}const Jn=["m","modifier"];function ga(e){return ge(e,Jn)}const qn=["k","key"];function pa(e){const t=ge(e,qn);if(t)return t;throw $e(6)}function ge(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(le(e,a)&&e[a]!=null)return e[a]}return n}const Qn=[...Yn,...Gn,...Hn,...Kn,...qn,...Jn,...Xn,...jn];function $e(e){return new Error(`unhandled node type: ${e}`)}function Ot(e){return n=>Na(n,e)}function Na(e,t){const n=_a(t);if(n==null)throw $e(0);if(Gt(n)===1){const s=ma(n);return e.plural(s.reduce((o,i)=>[...o,cn(e,i)],[]))}else return cn(e,n)}function cn(e,t){const n=da(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Ea(t).reduce((a,s)=>[...a,Dt(e,s)],[]);return e.normalize(r)}}function Dt(e,t){const n=Gt(t);switch(n){case 3:return qe(t,n);case 9:return qe(t,n);case 4:{const r=t;if(le(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(le(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw $e(n)}case 5:{const r=t;if(le(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(le(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw $e(n)}case 6:{const r=t,a=ga(r),s=pa(r);return e.linked(Dt(e,s),a?Dt(e,a):void 0,e.type)}case 7:return qe(t,n);case 8:return qe(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ha="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ta(e,t){t&&Br(e)&&fe(nt(ha,{source:e}))}const La=e=>e;let Qe=$();function ba(e,t={}){let n=!1;const r=t.onError||xr;return t.onError=a=>{n=!0,r(a)},{...ca(e,t),detectError:n}}function Oa(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ta(e,n);const a=(t.onCacheKey||La)(e),s=Qe[a];if(s)return s;const{ast:o,detectError:i}=ba(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Ot(o);return i?c:Qe[a]=c}else{if(process.env.NODE_ENV!=="production"&&!se(e))return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=Qe[n];return r||(Qe[n]=Ot(e))}else return Ot(e)}}let Be=null;function Ia(e){Be=e}function Ca(e,t,n){Be&&Be.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const va=Aa("function:translate");function Aa(e){return t=>Be&&Be.emit(e,t)}const z={INVALID_ARGUMENT:Ur,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Da=24;function Ee(e){return ke(e,null,process.env.NODE_ENV!=="production"?{messages:Pa}:void 0)}const Pa={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Ht(e,t){return t.locale!=null?fn(t.locale):fn(e.locale)}let It;function fn(e){if(O(e))return e;if(B(e)){if(e.resolvedOnce&&It!=null)return It;if(e.constructor.name==="Function"){const t=e();if(Rr(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return It=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Sa(e,t,n){return[...new Set([n,...H(t)?t:M(t)?Object.keys(t):O(t)?[t]:[n]])]}function Zn(e,t,n){const r=O(n)?n:We,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;H(o);)o=_n(s,o,t);const i=H(t)||!k(t)?t:t.default?t.default:null;o=O(i)?[i]:i,H(o)&&_n(s,o,!1),a.__localeChainCache.set(r,s)}return s}function _n(e,t,n){let r=!0;for(let a=0;a<t.length&&w(r);a++){const s=t[a];O(s)&&(r=ya(e,t[a],n))}return r}function ya(e,t,n){let r;const a=t.split("-");do{const s=a.join("-");r=Fa(e,s,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function Fa(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(H(n)||k(n))&&n[a]&&(r=n[a])}return r}const pe=[];pe[0]={w:[0],i:[3,0],"[":[4],o:[7]};pe[1]={w:[1],".":[2],"[":[4],o:[7]};pe[2]={w:[2],i:[3,0],0:[3,0]};pe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pe[5]={"'":[4,0],o:8,l:[5,0]};pe[6]={'"':[4,0],o:8,l:[6,0]};const Ra=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ka(e){return Ra.test(e)}function Ma(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function wa(e){if(e==null)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 Ua(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ka(t)?Ma(t):"*"+t}function Va(e){const t=[];let n=-1,r=0,a=0,s,o,i,c,E,b,T;const N=[];N[0]=()=>{o===void 0?o=i:o+=i},N[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},N[2]=()=>{N[0](),a++},N[3]=()=>{if(a>0)a--,r=4,N[0]();else{if(a=0,o===void 0||(o=Ua(o),o===!1))return!1;N[1]()}};function A(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,i="\\"+y,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&A())){if(c=wa(s),T=pe[r],E=T[c]||T.l||8,E===8||(r=E[0],E[1]!==void 0&&(b=N[E[1]],b&&(i=s,b()===!1))))return;if(r===7)return t}}const mn=new Map;function xa(e,t){return M(e)?e[t]:null}function $a(e,t){if(!M(e))return null;let n=mn.get(t);if(n||(n=Va(t),n&&mn.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s<r;){const o=n[s];if(Qn.includes(o)&&se(a))return null;const i=a[o];if(i===void 0||B(a))return null;a=i,s++}return a}const ee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Ba=8,Wa={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Oe(e,...t){return nt(Wa[e],...t)}const Ya="11.2.7",at=-1,We="en-US",tt="",dn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ga(){return{upper:(e,t)=>t==="text"&&O(e)?e.toUpperCase():t==="vnode"&&M(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&O(e)?e.toLowerCase():t==="vnode"&&M(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&O(e)?dn(e):t==="vnode"&&M(e)&&"__v_isVNode"in e?dn(e.children):e}}let zn;function Ha(e){zn=e}let er;function Ka(e){er=e}let tr;function ja(e){tr=e}let nr=null;const Xa=e=>{nr=e},Ja=()=>nr;let rr=null;const En=e=>{rr=e},qa=()=>rr;let gn=0;function Qa(e={}){const t=B(e.onWarn)?e.onWarn:fe,n=O(e.version)?e.version:Ya,r=O(e.locale)||B(e.locale)?e.locale:We,a=B(r)?We:r,s=H(e.fallbackLocale)||k(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=k(e.messages)?e.messages:Ct(a),i=k(e.datetimeFormats)?e.datetimeFormats:Ct(a),c=k(e.numberFormats)?e.numberFormats:Ct(a),E=Q($(),e.modifiers,Ga()),b=e.pluralRules||$(),T=B(e.missing)?e.missing:null,N=w(e.missingWarn)||ye(e.missingWarn)?e.missingWarn:!0,A=w(e.fallbackWarn)||ye(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,v=!!e.unresolving,D=B(e.postTranslation)?e.postTranslation:null,f=k(e.processor)?e.processor:null,m=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,d=B(e.messageCompiler)?e.messageCompiler:zn;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&xt(Oe(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const I=B(e.messageResolver)?e.messageResolver:er||xa,C=B(e.localeFallbacker)?e.localeFallbacker:tr||Sa,g=M(e.fallbackContext)?e.fallbackContext:void 0,R=e,V=M(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,q=M(R.__numberFormatters)?R.__numberFormatters:new Map,oe=M(R.__meta)?R.__meta:{};gn++;const K={version:n,cid:gn,locale:r,fallbackLocale:s,messages:o,modifiers:E,pluralRules:b,missing:T,missingWarn:N,fallbackWarn:A,fallbackFormat:y,unresolving:v,postTranslation:D,processor:f,warnHtmlMessage:m,escapeParameter:L,messageCompiler:d,messageResolver:I,localeFallbacker:C,fallbackContext:g,onWarn:t,__meta:oe};return K.datetimeFormats=i,K.numberFormats=c,K.__datetimeFormatters=V,K.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(K.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ca(K,n,oe),K}const Ct=e=>({[e]:$()});function st(e,t){return e instanceof RegExp?e.test(t):e}function ar(e,t){return e instanceof RegExp?e.test(t):e}function Kt(e,t,n,r,a){const{missing:s,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(s!==null){const i=s(e,n,t,a);return O(i)?i:t}else return process.env.NODE_ENV!=="production"&&ar(r,t)&&o(Oe(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function xe(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function sr(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Za(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(sr(e,t[r]))return!0;return!1}const pn=typeof Intl<"u",or={dateTimeFormat:pn&&typeof Intl.DateTimeFormat<"u",numberFormat:pn&&typeof Intl.NumberFormat<"u"};function Nn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!or.dateTimeFormat)return s(Oe(ee.CANNOT_FORMAT_DATE)),tt;const[c,E,b,T]=Pt(...t),N=w(b.missingWarn)?b.missingWarn:e.missingWarn,A=w(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,y=!!b.part,v=Ht(e,b),D=o(e,a,v);if(!O(c)||c==="")return new Intl.DateTimeFormat(v,T).format(E);let f={},m,L=null,d=v,I=null;const C="datetime format";for(let V=0;V<D.length;V++){if(m=I=D[V],process.env.NODE_ENV!=="production"&&v!==m&&st(A,c)&&s(Oe(ee.FALLBACK_TO_DATE_FORMAT,{key:c,target:m})),process.env.NODE_ENV!=="production"&&v!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:c,from:d,to:I,groupId:`${C}:${c}`})}if(f=n[m]||{},L=f[c],k(L))break;Kt(e,c,m,N,C),d=I}if(!k(L)||!O(m))return r?at:c;let g=`${m}__${c}`;rt(T)||(g=`${g}__${JSON.stringify(T)}`);let R=i.get(g);return R||(R=new Intl.DateTimeFormat(m,Q({},L,T)),i.set(g,R)),y?R.formatToParts(E):R.format(E)}const lr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Pt(...e){const[t,n,r,a]=e,s=$();let o=$(),i;if(O(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const E=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();i=new Date(E);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Pr(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);i=t}else if(J(t))i=t;else throw Ee(z.INVALID_ARGUMENT);return O(n)?s.key=n:k(n)&&Object.keys(n).forEach(c=>{lr.includes(c)?o[c]=n[c]:s[c]=n[c]}),O(r)?s.locale=r:k(r)&&(o=r),k(a)&&(o=a),[s.key||"",i,s,o]}function hn(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Tn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!or.numberFormat)return s(Oe(ee.CANNOT_FORMAT_NUMBER)),tt;const[c,E,b,T]=St(...t),N=w(b.missingWarn)?b.missingWarn:e.missingWarn,A=w(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,y=!!b.part,v=Ht(e,b),D=o(e,a,v);if(!O(c)||c==="")return new Intl.NumberFormat(v,T).format(E);let f={},m,L=null,d=v,I=null;const C="number format";for(let V=0;V<D.length;V++){if(m=I=D[V],process.env.NODE_ENV!=="production"&&v!==m&&st(A,c)&&s(Oe(ee.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:m})),process.env.NODE_ENV!=="production"&&v!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:c,from:d,to:I,groupId:`${C}:${c}`})}if(f=n[m]||{},L=f[c],k(L))break;Kt(e,c,m,N,C),d=I}if(!k(L)||!O(m))return r?at:c;let g=`${m}__${c}`;rt(T)||(g=`${g}__${JSON.stringify(T)}`);let R=i.get(g);return R||(R=new Intl.NumberFormat(m,Q({},L,T)),i.set(g,R)),y?R.formatToParts(E):R.format(E)}const ir=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function St(...e){const[t,n,r,a]=e,s=$();let o=$();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return O(n)?s.key=n:k(n)&&Object.keys(n).forEach(c=>{ir.includes(c)?o[c]=n[c]:s[c]=n[c]}),O(r)?s.locale=r:k(r)&&(o=r),k(a)&&(o=a),[s.key||"",i,s,o]}function Ln(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const za=e=>e,es=e=>"",ts="text",ns=e=>e.length===0?"":Bt(e),rs=kr;function bn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function as(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function ss(e,t){t.count||(t.count=e),t.n||(t.n=e)}function os(e={}){const t=e.locale,n=as(e),r=M(e.pluralRules)&&O(t)&&B(e.pluralRules[t])?e.pluralRules[t]:bn,a=M(e.pluralRules)&&O(t)&&B(e.pluralRules[t])?bn:void 0,s=f=>f[r(n,f.length,a)],o=e.list||[],i=f=>o[f],c=e.named||$();J(e.pluralIndex)&&ss(n,c);const E=f=>c[f];function b(f,m){const L=B(e.messages)?e.messages(f,!!m):M(e.messages)?e.messages[f]:!1;return L||(e.parent?e.parent.message(f):es)}const T=f=>e.modifiers?e.modifiers[f]:za,N=k(e.processor)&&B(e.processor.normalize)?e.processor.normalize:ns,A=k(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:rs,y=k(e.processor)&&O(e.processor.type)?e.processor.type:ts,D={list:i,named:E,plural:s,linked:(f,...m)=>{const[L,d]=m;let I="text",C="";m.length===1?M(L)?(C=L.modifier||C,I=L.type||I):O(L)&&(C=L||C):m.length===2&&(O(L)&&(C=L||C),O(d)&&(I=d||I));const g=b(f,!0)(D),R=I==="vnode"&&H(g)&&C?g[0]:g;return C?T(C)(R,I):R},message:b,type:y,interpolate:A,normalize:N,values:Q($(),o,c)};return D}const On=()=>"",re=e=>B(e);function In(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:o,messages:i}=e,[c,E]=yt(...t),b=w(E.missingWarn)?E.missingWarn:e.missingWarn,T=w(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,N=w(E.escapeParameter)?E.escapeParameter:e.escapeParameter,A=!!E.resolvedMessage,y=O(E.default)||w(E.default)?w(E.default)?s?c:()=>c:E.default:n?s?c:()=>c:null,v=n||y!=null&&(O(y)||B(y)),D=Ht(e,E);N&&ls(E);let[f,m,L]=A?[c,D,i[D]||$()]:ur(e,c,D,o,T,b),d=f,I=c;if(!A&&!(O(d)||se(d)||re(d))&&v&&(d=y,I=d),!A&&(!(O(d)||se(d)||re(d))||!O(m)))return a?at:c;if(process.env.NODE_ENV!=="production"&&O(d)&&e.messageCompiler==null)return fe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let C=!1;const g=()=>{C=!0},R=re(d)?d:cr(e,c,m,d,I,g);if(C)return d;const V=fs(e,m,L,E),q=os(V),oe=is(e,R,q);let K=r?r(oe,c):oe;if(N&&O(K)&&(K=yr(K)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ve={timestamp:Date.now(),key:O(c)?c:re(d)?d.key:"",locale:m||(re(d)?d.locale:""),format:O(d)?d:re(d)?d.source:"",message:K};ve.meta=Q({},e.__meta,Ja()||{}),va(ve)}return K}function ls(e){H(e.list)?e.list=e.list.map(t=>O(t)?rn(t):t):M(e.named)&&Object.keys(e.named).forEach(t=>{O(e.named[t])&&(e.named[t]=rn(e.named[t]))})}function ur(e,t,n,r,a,s){const{messages:o,onWarn:i,messageResolver:c,localeFallbacker:E}=e,b=E(e,r,n);let T=$(),N,A=null,y=n,v=null;const D="translate";for(let f=0;f<b.length;f++){if(N=v=b[f],process.env.NODE_ENV!=="production"&&n!==N&&!sr(n,N)&&st(a,t)&&i(Oe(ee.FALLBACK_TO_TRANSLATE,{key:t,target:N})),process.env.NODE_ENV!=="production"&&n!==N){const I=e.__v_emitter;I&&I.emit("fallback",{type:D,key:t,from:y,to:v,groupId:`${D}:${t}`})}T=o[N]||$();let m=null,L,d;if(process.env.NODE_ENV!=="production"&&ie&&(m=window.performance.now(),L="intlify-message-resolve-start",d="intlify-message-resolve-end",ne&&ne(L)),(A=c(T,t))===null&&(A=T[t]),process.env.NODE_ENV!=="production"&&ie){const I=window.performance.now(),C=e.__v_emitter;C&&m&&A&&C.emit("message-resolve",{type:"message-resolve",key:t,message:A,time:I-m,groupId:`${D}:${t}`}),L&&d&&ne&&be&&(ne(d),be("intlify message resolve",L,d))}if(O(A)||se(A)||re(A))break;if(!Za(N,b)){const I=Kt(e,t,N,s,D);I!==t&&(A=I)}y=v}return[A,N,T]}function cr(e,t,n,r,a,s){const{messageCompiler:o,warnHtmlMessage:i}=e;if(re(r)){const N=r;return N.locale=N.locale||n,N.key=N.key||t,N}if(o==null){const N=(()=>r);return N.locale=n,N.key=t,N}let c=null,E,b;process.env.NODE_ENV!=="production"&&ie&&(c=window.performance.now(),E="intlify-message-compilation-start",b="intlify-message-compilation-end",ne&&ne(E));const T=o(r,us(e,n,a,r,i,s));if(process.env.NODE_ENV!=="production"&&ie){const N=window.performance.now(),A=e.__v_emitter;A&&c&&A.emit("message-compilation",{type:"message-compilation",message:r,time:N-c,groupId:`translate:${t}`}),E&&b&&ne&&be&&(ne(b),be("intlify message compilation",E,b))}return T.locale=n,T.key=t,T.source=r,T}function is(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&ie&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="intlify-message-evaluation-end",ne&&ne(a));const o=t(n);if(process.env.NODE_ENV!=="production"&&ie){const i=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),a&&s&&ne&&be&&(ne(s),be("intlify message evaluation",a,s))}return o}function yt(...e){const[t,n,r]=e,a=$();if(!O(t)&&!J(t)&&!re(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const s=J(t)?String(t):(re(t),t);return J(n)?a.plural=n:O(n)?a.default=n:k(n)&&!rt(n)?a.named=n:H(n)&&(a.list=n),J(r)?a.plural=r:O(r)?a.default=r:k(r)&&Q(a,r),[s,a]}function us(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{if(s&&s(o),process.env.NODE_ENV!=="production"){const i=cs(r),c=`Message compilation error: ${o.message}`,E=o.location&&i&&Mr(i,o.location.start.offset,o.location.end.offset),b=e.__v_emitter;b&&i&&b.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(E?`${c}
|
|
5
|
-
${E}`:c)}else throw o},onCacheKey:o=>
|
|
6
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[ae.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[ae.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Re(e,...t){return nt(Os[e],...t)}function Ge(e){if(!M(e)||se(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))M(e[t])&&Ge(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,s=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in a||(a[n[o]]=$()),!M(a[n[o]])){process.env.NODE_ENV!=="production"&&fe(Re(ae.IGNORE_OBJ_FLATTEN,{key:n[o]})),s=!0;break}a=a[n[o]]}if(s||(se(a)?Qn.includes(n[r])||delete e[t]:(a[n[r]]=e[t],delete e[t])),!se(a)){const o=a[n[r]];M(o)&&Ge(o)}}return e}function jt(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:s}=t,o=k(n)?n:H(r)?$():{[e]:$()};if(H(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:c,resource:E}=i;c?(o[c]=o[c]||$(),Ze(E,o[c])):Ze(E,o)}else O(i)&&Ze(JSON.parse(i),o)}),a==null&&s)for(const i in o)le(o,i)&&Ge(o[i]);return o}function dr(e){return e.type}function Er(e,t,n){let r=M(t.messages)?t.messages:$();"__i18nGlobal"in n&&(r=jt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(M(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(M(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Cn(e){return Y.createVNode(Y.Text,null,e,0)}function Se(){const e="currentInstance";return e in Lt?Lt[e]:Lt.getCurrentInstance()}const vn="__INTLIFY_META__",An=()=>[],Is=()=>!1;let Dn=0;function Pn(e){return((t,n,r,a)=>e(n,r,Se()||void 0,a))}const Cs=()=>{const e=Se();let t=null;return e&&(t=dr(e)[vn])?{[vn]:t}:null};function Xt(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,s=ie?Y.ref:Y.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const i=s(t&&o?t.locale.value:O(e.locale)?e.locale:We),c=s(t&&o?t.fallbackLocale.value:O(e.fallbackLocale)||H(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),E=s(jt(i.value,e)),b=s(k(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),T=s(k(e.numberFormats)?e.numberFormats:{[i.value]:{}});let N=t?t.missingWarn:w(e.missingWarn)||ye(e.missingWarn)?e.missingWarn:!0,A=t?t.fallbackWarn:w(e.fallbackWarn)||ye(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,D=B(e.missing)?e.missing:null,f=B(e.missing)?Pn(e.missing):null,m=B(e.postTranslation)?e.postTranslation:null,L=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,d=!!e.escapeParameter;const I=t?t.modifiers:k(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,g;g=(()=>{r&&En(null);const _={version:Ts,locale:i.value,fallbackLocale:c.value,messages:E.value,modifiers:I,pluralRules:C,missing:f===null?void 0:f,missingWarn:N,fallbackWarn:A,fallbackFormat:v,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:L,escapeParameter:d,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=b.value,_.numberFormats=T.value,_.__datetimeFormatters=k(g)?g.__datetimeFormatters:void 0,_.__numberFormatters=k(g)?g.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=k(g)?g.__v_emitter:void 0);const h=Qa(_);return r&&En(h),h})(),xe(g,i.value,c.value);function V(){return[i.value,c.value,E.value,b.value,T.value]}const q=Y.computed({get:()=>i.value,set:_=>{g.locale=_,i.value=_}}),oe=Y.computed({get:()=>c.value,set:_=>{g.fallbackLocale=_,c.value=_,xe(g,i.value,_)}}),K=Y.computed(()=>E.value),ve=Y.computed(()=>b.value),ot=Y.computed(()=>T.value);function lt(){return B(m)?m:null}function it(_){m=_,g.postTranslation=_}function ut(){return D}function ct(_){_!==null&&(f=Pn(_)),D=_,g.missing=f}function ft(_,h){return _!=="translate"||!h.resolvedMessage}const me=(_,h,x,X,he,Xe)=>{V();let Ae;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=t?qa():void 0),Ae=_(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=void 0)}if(x!=="translate exists"&&J(Ae)&&Ae===at||x==="translate exists"&&!Ae){const[Te,Ir]=h();if(process.env.NODE_ENV!=="production"&&t&&O(Te)&&ft(x,Ir)&&(y&&(st(A,Te)||ar(N,Te))&&fe(Re(ae.FALLBACK_TO_ROOT,{key:Te,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:en}=g;en&&y&&en.emit("fallback",{type:x,key:Te,to:"global",groupId:`${x}:${Te}`})}return t&&y?X(t):he(Te)}else{if(Xe(Ae))return Ae;throw te(W.UNEXPECTED_RETURN_TYPE)}};function Me(..._){return me(h=>Reflect.apply(In,null,[h,..._]),()=>yt(..._),"translate",h=>Reflect.apply(h.t,h,[..._]),h=>h,h=>O(h))}function _t(..._){const[h,x,X]=_;if(X&&!M(X))throw te(W.INVALID_ARGUMENT);return Me(h,x,Q({resolvedMessage:!0},X||{}))}function mt(..._){return me(h=>Reflect.apply(Nn,null,[h,..._]),()=>Pt(..._),"datetime format",h=>Reflect.apply(h.d,h,[..._]),()=>tt,h=>O(h)||H(h))}function dt(..._){return me(h=>Reflect.apply(Tn,null,[h,..._]),()=>St(..._),"number format",h=>Reflect.apply(h.n,h,[..._]),()=>tt,h=>O(h)||H(h))}function Et(_){return _.map(h=>O(h)||J(h)||w(h)?Cn(String(h)):h)}const gt={normalize:Et,interpolate:_=>_,type:"vnode"};function Ke(..._){return me(h=>{let x;const X=h;try{X.processor=gt,x=Reflect.apply(In,null,[X,..._])}finally{X.processor=null}return x},()=>yt(..._),"translate",h=>h[Rt](..._),h=>[Cn(h)],h=>H(h))}function pt(..._){return me(h=>Reflect.apply(Tn,null,[h,..._]),()=>St(..._),"number format",h=>h[Mt](..._),An,h=>O(h)||H(h))}function je(..._){return me(h=>Reflect.apply(Nn,null,[h,..._]),()=>Pt(..._),"datetime format",h=>h[kt](..._),An,h=>O(h)||H(h))}function Nt(_){C=_,g.pluralRules=C}function ht(_,h){return me(()=>{if(!_)return!1;const x=O(h)?h:i.value,X=Ne(x),he=g.messageResolver(X,_);return se(he)||re(he)||O(he)},()=>[_],"translate exists",x=>Reflect.apply(x.te,x,[_,h]),Is,x=>w(x))}function we(_){let h=null;const x=Zn(g,c.value,i.value);for(let X=0;X<x.length;X++){const he=E.value[x[X]]||{},Xe=g.messageResolver(he,_);if(Xe!=null){h=Xe;break}}return h}function Ue(_){const h=we(_);return h??(t?t.tm(_)||{}:{})}function Ne(_){return E.value[_]||{}}function Ve(_,h){if(a){const x={[_]:h};for(const X in x)le(x,X)&&Ge(x[X]);h=x[_]}E.value[_]=h,g.messages=E.value}function Tt(_,h){E.value[_]=E.value[_]||{};const x={[_]:h};if(a)for(const X in x)le(x,X)&&Ge(x[X]);h=x[_],Ze(h,E.value[_]),g.messages=E.value}function l(_){return b.value[_]||{}}function u(_,h){b.value[_]=h,g.datetimeFormats=b.value,hn(g,_,h)}function p(_,h){b.value[_]=Q(b.value[_]||{},h),g.datetimeFormats=b.value,hn(g,_,h)}function P(_){return T.value[_]||{}}function G(_,h){T.value[_]=h,g.numberFormats=T.value,Ln(g,_,h)}function j(_,h){T.value[_]=Q(T.value[_]||{},h),g.numberFormats=T.value,Ln(g,_,h)}Dn++,t&&ie&&(Y.watch(t.locale,_=>{o&&(i.value=_,g.locale=_,xe(g,i.value,c.value))}),Y.watch(t.fallbackLocale,_=>{o&&(c.value=_,g.fallbackLocale=_,xe(g,i.value,c.value))}));const U={id:Dn,locale:q,fallbackLocale:oe,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,c.value=t.fallbackLocale.value,xe(g,i.value,c.value))},get availableLocales(){return Object.keys(E.value).sort()},messages:K,get modifiers(){return I},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return N},set missingWarn(_){N=_,g.missingWarn=N},get fallbackWarn(){return A},set fallbackWarn(_){A=_,g.fallbackWarn=A},get fallbackRoot(){return y},set fallbackRoot(_){y=_},get fallbackFormat(){return v},set fallbackFormat(_){v=_,g.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(_){L=_,g.warnHtmlMessage=_},get escapeParameter(){return d},set escapeParameter(_){d=_,g.escapeParameter=_},t:Me,getLocaleMessage:Ne,setLocaleMessage:Ve,mergeLocaleMessage:Tt,getPostTranslationHandler:lt,setPostTranslationHandler:it,getMissingHandler:ut,setMissingHandler:ct,[_r]:Nt};return U.datetimeFormats=ve,U.numberFormats=ot,U.rt=_t,U.te=ht,U.tm=Ue,U.d=mt,U.n=dt,U.getDateTimeFormat=l,U.setDateTimeFormat=u,U.mergeDateTimeFormat=p,U.getNumberFormat=P,U.setNumberFormat=G,U.mergeNumberFormat=j,U[mr]=n,U[Rt]=Ke,U[kt]=je,U[Mt]=pt,process.env.NODE_ENV!=="production"&&(U[Ie]=_=>{g.__v_emitter=_},U[Ye]=()=>{g.__v_emitter=void 0}),U}const gr="vue-i18n: composer properties",vt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},vs={"vue-i18n-resource-inspector":"Search for scopes ..."},As={"vue-i18n-timeline":16764185};let Ut;async function Ds(e,t){return new Promise((n,r)=>{try{hs({id:"vue-devtools-plugin-vue-i18n",label:vt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[gr],app:e},a=>{Ut=a,a.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Ps(o,i,t)}),a.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&Sn(i,o.__VUE_I18N__):Sn(i,o.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:vt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:vs["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ks(o,t)});const s=new Map;a.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),ws(o,t),o.nodeId==="global"){if(!s.has(o.app)){const[i]=await a.getComponentInstances(o.app);s.set(o.app,i)}a.highlightElement(s.get(o.app))}else{const i=Ms(o.nodeId,t);i&&a.highlightElement(i)}}),a.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Vs(o,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:vt["vue-i18n-timeline"],color:As["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function pr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ps(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const a={label:`i18n (${pr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Sn(e,t){const n=gr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Jt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Jt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];B(r)&&"source"in r?t[n]=Rs(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:M(r)?t[n]=Jt(r):t[n]=r}),t}const Ss={"<":"<",">":">",'"':""","&":"&"};function ys(e){return e.replace(/[<>"&]/g,Fs)}function Fs(e){return Ss[e]||e}function Rs(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${ys(e.source)}")`:"(?)"}`}}}function ks(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const s=t.mode==="composition"?a:a.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${pr(r)} Scope`})}}function Ms(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function Nr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ws(e,t){const n=Nr(e.nodeId,t);return n&&(e.state=Us(n)),null}function Us(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",s=[{type:a,key:"messages",editable:!1,value:Jt(e.messages.value)}];t[a]=s;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const c="Datetime formats info",E=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=E}return t}function He(e,t){if(Ut){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ut.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Vs(e,t){const n=Nr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&O(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(O(e.state.value)||H(e.state.value)||M(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function xs(e){const t=O(e.locale)?e.locale:We,n=O(e.fallbackLocale)||H(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=B(e.missing)?e.missing:void 0,a=w(e.silentTranslationWarn)||ye(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=w(e.silentFallbackWarn)||ye(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,c=k(e.modifiers)?e.modifiers:{},E=e.pluralizationRules,b=B(e.postTranslation)?e.postTranslation:void 0,T=O(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,N=!!e.escapeParameterHtml,A=w(e.sync)?e.sync:!0;let y=e.messages;if(k(e.sharedMessages)){const I=e.sharedMessages;y=Object.keys(I).reduce((g,R)=>{const V=g[R]||(g[R]={});return Q(V,I[R]),g},y||{})}const{__i18n:v,__root:D,__injectWithOption:f}=e,m=e.datetimeFormats,L=e.numberFormats,d=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:d,datetimeFormats:m,numberFormats:L,missing:r,missingWarn:a,fallbackWarn:s,fallbackRoot:o,fallbackFormat:i,modifiers:c,pluralRules:E,postTranslation:b,warnHtmlMessage:T,escapeParameter:N,messageResolver:e.messageResolver,inheritLocale:A,__i18n:v,__root:D,__injectWithOption:f}}function Vt(e={}){const t=Xt(xs(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=w(a)?!a:a},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=w(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,s){return t.te(a,s)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,s){t.setLocaleMessage(a,s)},mergeLocaleMessage(a,s){t.mergeLocaleMessage(a,s)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,s){t.setDateTimeFormat(a,s)},mergeDateTimeFormat(a,s){t.mergeDateTimeFormat(a,s)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,s){t.setNumberFormat(a,s)},mergeNumberFormat(a,s){t.mergeNumberFormat(a,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const s=t;s[Ie]&&s[Ie](a)},r.__disableEmitter=()=>{const a=t;a[Ye]&&a[Ye]()}),r}function $s(e,t,n){return{beforeCreate(){const r=Se();if(!r)throw te(W.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const s=a.i18n;if(a.__i18n&&(s.__i18n=a.__i18n),s.__root=t,this===this.$root)this.$i18n=yn(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Vt(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=yn(e,a);else{this.$i18n=Vt({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Er(t,a,a),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Se();if(!r)return;const a=this.$i18n;r.__VUE_I18N__=a.__composer;const s=this.__v_emitter=Wt();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",He)}},unmounted(){const r=Se();if(!r)throw te(W.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",He),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function yn(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[_r](t.pluralizationRules||e.pluralizationRules);const n=jt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const qt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bs({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===Y.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},$())}function hr(){return Y.Fragment}const Ws=Y.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},qt),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Qt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(T=>T[0]!=="_"),o=$();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=O(e.plural)?+e.plural:e.plural);const i=Bs(t,s),c=a[Rt](e.keypath,i,o),E=Q($(),r),b=O(e.tag)||M(e.tag)?e.tag:hr();return Y.h(b,E,c)}}}),Fn=Ws;function Ys(e){return H(e)&&!O(e[0])}function Tr(e,t,n,r){const{slots:a,attrs:s}=t;return()=>{const o={part:!0};let i=$();e.locale&&(o.locale=e.locale),O(e.format)?o.key=e.format:M(e.format)&&(O(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((N,A)=>n.includes(A)?Q($(),N,{[A]:e.format[A]}):N,$()));const c=r(e.value,o,i);let E=[o.key];H(c)?E=c.map((N,A)=>{const y=a[N.type],v=y?y({[N.type]:N.value,index:A,parts:c}):[N.value];return Ys(v)&&(v[0].key=`${N.type}-${A}`),v}):O(c)&&(E=[c]);const b=Q($(),s),T=O(e.tag)||M(e.tag)?e.tag:hr();return Y.h(T,b,E)}}const Gs=Y.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},qt),setup(e,t){const n=e.i18n||Qt({useScope:e.scope,__useComponent:!0});return Tr(e,t,ir,(...r)=>n[Mt](...r))}}),Rn=Gs;function Hs(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ks(e){const t=o=>{process.env.NODE_ENV!=="production"&&xt(Re(ae.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:c}=o;if(!i||!i.$)throw te(W.UNEXPECTED_ERROR);const E=Hs(e,i.$),b=kn(c);return[Reflect.apply(E.t,E,[...Mn(b)]),E]};return{created:(o,i)=>{const[c,E]=t(i);ie&&e.global===E&&(o.__i18nWatcher=Y.watch(E.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=E,o.textContent=c},unmounted:o=>{ie&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const c=o.__composer,E=kn(i);o.textContent=Reflect.apply(c.t,c,[...Mn(E)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function kn(e){if(O(e))return{path:e};if(k(e)){if(!("path"in e))throw te(W.REQUIRED_VALUE,"path");return e}else throw te(W.INVALID_VALUE)}function Mn(e){const{path:t,locale:n,args:r,choice:a,plural:s}=e,o={},i=r||{};return O(n)&&(o.locale=n),J(a)&&(o.plural=a),J(s)&&(o.plural=s),[t,i,o]}function js(e,t,...n){const r=k(n[0])?n[0]:{};(!w(r.globalInstall)||r.globalInstall)&&([Fn.name,"I18nT"].forEach(s=>e.component(s,Fn)),[Rn.name,"I18nN"].forEach(s=>e.component(s,Rn)),[Un.name,"I18nD"].forEach(s=>e.component(s,Un))),e.directive("t",Ks(t))}const Xs=_e("global-vue-i18n");function Js(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&xt(Re(ae.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,s]=qs(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(T){return r.get(T)||null}function c(T,N){r.set(T,N)}function E(T){r.delete(T)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(T,...N){if(process.env.NODE_ENV!=="production"&&(T.__VUE_I18N__=b),T.__VUE_I18N_SYMBOL__=o,T.provide(T.__VUE_I18N_SYMBOL__,b),k(N[0])){const v=N[0];b.__composerExtend=v.__composerExtend,b.__vueI18nExtend=v.__vueI18nExtend}let A=null;!t&&n&&(A=ao(T,b.global)),__VUE_I18N_FULL_INSTALL__&&js(T,b,...N),__VUE_I18N_LEGACY_API__&&t&&T.mixin($s(s,s.__composer,b));const y=T.unmount;if(T.unmount=()=>{A&&A(),b.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await Ds(T,b))throw te(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const D=Wt();if(t){const f=s;f.__enableEmitter&&f.__enableEmitter(D)}else{const f=s;f[Ie]&&f[Ie](D)}D.on("*",He)}},get global(){return s},dispose(){a.stop()},__instances:r,__getInstance:i,__setInstance:c,__deleteInstance:E};return b}function Qt(e={}){const t=Se();if(t==null)throw te(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(W.NOT_INSTALLED);const n=Qs(t),r=zs(n),a=dr(t),s=Zs(e,a);if(s==="global")return Er(r,e,a),r;if(s==="parent"){let c=eo(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&fe(Re(ae.NOT_FOUND_PARENT_SCOPE)),c=r),c}const o=n;let i=o.__getInstance(t);if(i==null){const c=Q({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),i=Xt(c),o.__composerExtend&&(i[wt]=o.__composerExtend(i)),no(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&s==="local"&&fe(Re(ae.DUPLICATE_USE_I18N_CALLING));return i}function qs(e,t){const n=Y.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Vt(e)):n.run(()=>Xt(e));if(r==null)throw te(W.UNEXPECTED_ERROR);return[n,r]}function Qs(e){const t=Y.inject(e.isCE?Xs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}function Zs(e,t){return rt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function zs(e){return e.mode==="composition"?e.global:e.global.__composer}function eo(e,t,n=!1){let r=null;const a=t.root;let s=to(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(s);i!=null&&(r=i.__composer,n&&r&&!r[mr]&&(r=null))}if(r!=null||a===s)break;s=s.parent}return r}function to(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function no(e,t,n){let r=null;Y.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=Wt();const a=n;a[Ie]&&a[Ie](r),r.on("*",He)}},t),Y.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",He),a[Ye]&&a[Ye](),delete t.__VUE_I18N__),e.__deleteInstance(t);const s=a[wt];s&&(s(),delete a[wt])},t)}const ro=["locale","fallbackLocale","availableLocales"],wn=["t","rt","d","n","tm","te"];function ao(e,t){const n=Object.create(null);return ro.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw te(W.UNEXPECTED_ERROR);const o=Y.isRef(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,wn.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw te(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)}),()=>{delete e.config.globalProperties.$i18n,wn.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const so=Y.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qt),setup(e,t){const n=e.i18n||Qt({useScope:e.scope,__useComponent:!0});return Tr(e,t,lr,(...r)=>n[kt](...r))}}),Un=so;Ls();Ha(Oa);Ka($a);ja(Zn);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Le();e.__INTLIFY__=!0,Ia(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var Lr={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};var oo={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Ce={zhCn:"zh-cn",en:"en"},br={[Ce.zhCn]:Lr,[Ce.en]:oo},Zt=()=>(navigator?.language||navigator?.userLanguage)?.startsWith("zh")?Ce.zhCn:Ce.en,lo=()=>{const e=Zt()||Ce.en;return br[e]||Lr},io=(e={})=>Js({legacy:!1,locale:Zt(),fallbackLocale:Ce.zhCn,messages:e,globalInjection:!0}),uo=e=>(t,n={})=>e.global.t(t,n),Or=()=>{setTimeout(async()=>{Bn.ElMessageBox.confirm("语言设置已更新<br/>是否重新加载页面以应用新的语言设置","重新加载提醒",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,customClass:"language-change-confirm"}).then(()=>{window.location.reload()})},0)},co=()=>{window.addEventListener("languagechange",Or)},fo=()=>{window.removeEventListener("languagechange",Or)},_o=()=>{const{t:e}=Y.getCurrentInstance().appContext.config.globalProperties;return{t:e}};Bn.dayjs.en.weekStart=1;const mo=e=>{for(const t in bt)bt[t].install&&e.use(bt[t])},Eo={install:mo};exports.CustomToggle=Vn.CustomToggle;exports.CustomTitle=xn.CustomTitle;exports.COLUMN_TYPES=ze.COLUMN_TYPES;exports.PageContainer=ze.PageContainer;exports.CustomSidebar=F.layout;exports.MENU_COLOR_STRATEGY=F.MENU_COLOR_STRATEGY;exports.MENU_LOADING_STATES=F.MENU_LOADING_STATES;exports.MENU_TYPE=F.MENU_TYPE;exports.NODE_CLICK_TYPES=F.NODE_CLICK_TYPES;exports.SPECIAL_ROUTES=F.SPECIAL_ROUTES;exports.TREE_PROPS=F.TREE_PROPS;exports.collapseNodeKeys=F.collapseNodeKeys;exports.expandNodeKeys=F.expandNodeKeys;exports.findExpandPath=F.findExpandPath;exports.findExpandPathById=F.findExpandPathById;exports.findMenuByPath=F.findMenuByPath;exports.getFirstLeafMenu=F.getFirstLeafMenu;exports.getMenuIconColorById=F.getMenuIconColorById;exports.getParentNodeIdsById=F.getParentNodeIdsById;exports.isParentMenuActive=F.isParentMenuActive;exports.isParentRouteActive=F.isParentRouteActive;exports.isPathInMenu=F.isPathInMenu;exports.processMenuTreeWithLeaf=F.processMenuTreeWithLeaf;exports.transformMenuData=F.transformMenuData;exports.AvailableRangeSetting=$n.AvailableRangeSetting;exports.AvailableRangePreview=et.AvailableRangePreview;exports.TagList=et.TagList;exports.cancelLanguageChangeListener=fo;exports.createI18nInstance=io;exports.createTranslationHelper=uo;exports.default=Eo;exports.getBrowserLanguage=Zt;exports.getCurrentLocale=lo;exports.languageMap=Ce;exports.localeMap=br;exports.setupLanguageChangeListener=co;exports.useI18n=_o;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Vn=require("./CustomToggle.js"),xn=require("./CustomTitle.js"),ye=require("./PageContainer.js"),F=require("./chunks/layout.D0zeFdw9.js"),$n=require("./AvailableRangeSetting.js"),ge=require("./chunks/index.DsmgWFv8.js"),Bn=require("element-plus"),Y=require("vue");function Cr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Lt=Cr(Y),bt=Object.freeze(Object.defineProperty({__proto__:null,AvailableRangePreview:ge.AvailableRangePreview,AvailableRangeSetting:$n.AvailableRangeSetting,COLUMN_TYPES:ye.COLUMN_TYPES,CustomSidebar:F.layout,CustomTitle:xn.CustomTitle,CustomToggle:Vn.CustomToggle,MENU_COLOR_STRATEGY:F.MENU_COLOR_STRATEGY,MENU_LOADING_STATES:F.MENU_LOADING_STATES,MENU_TYPE:F.MENU_TYPE,MODES:ye.MODES,NODE_CLICK_TYPES:F.NODE_CLICK_TYPES,PageContainer:ye.PageContainer,RANGE_TYPES:ge.RANGE_TYPES,SPECIAL_ROUTES:F.SPECIAL_ROUTES,TREE_PROPS:F.TREE_PROPS,TagList:ge.TagList,collapseNodeKeys:F.collapseNodeKeys,expandNodeKeys:F.expandNodeKeys,findExpandPath:F.findExpandPath,findExpandPathById:F.findExpandPathById,findMenuByPath:F.findMenuByPath,getFirstLeafMenu:F.getFirstLeafMenu,getMenuIconColorById:F.getMenuIconColorById,getParentNodeIdsById:F.getParentNodeIdsById,isParentMenuActive:F.isParentMenuActive,isParentRouteActive:F.isParentRouteActive,isPathInMenu:F.isPathInMenu,processMenuTreeWithLeaf:F.processMenuTreeWithLeaf,rangeOptions:ge.rangeOptions,transformMenuData:F.transformMenuData},Symbol.toStringTag,{value:"Module"}));function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const tn={};function xt(e){tn[e]||(tn[e]=!0,fe(e))}const ie=typeof window<"u";let ne,Oe;if(process.env.NODE_ENV!=="production"){const e=ie&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ne=t=>{e.mark(t)},Oe=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Ar=/\{([0-9a-zA-Z]+)\}/g;function nt(e,...t){return t.length===1&&M(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ar,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),vr=(e,t,n)=>Dr({l:e,k:t,s:n}),Dr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),J=e=>typeof e=="number"&&isFinite(e),Pr=e=>$t(e)==="[object Date]",Re=e=>$t(e)==="[object RegExp]",rt=e=>k(e)&&Object.keys(e).length===0,Q=Object.assign,Sr=Object.create,$=(e=null)=>Sr(e);let nn;const be=()=>nn||(nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:$());function rn(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function an(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function yr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,a,s)=>`${a}="${an(s)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,a,s)=>`${a}='${an(s)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const Fr=Object.prototype.hasOwnProperty;function le(e,t){return Fr.call(e,t)}const H=Array.isArray,B=e=>typeof e=="function",O=e=>typeof e=="string",w=e=>typeof e=="boolean",M=e=>e!==null&&typeof e=="object",Rr=e=>M(e)&&B(e.then)&&B(e.catch),Wn=Object.prototype.toString,$t=e=>Wn.call(e),k=e=>$t(e)==="[object Object]",kr=e=>e==null?"":H(e)||k(e)&&e.toString===Wn?JSON.stringify(e,null,2):String(e);function Bt(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const sn=2;function Mr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const s=[];for(let o=0;o<r.length;o++)if(a+=r[o].length+1,a>=t){for(let i=o-sn;i<=o+sn||n>a;i++){if(i<0||i>=r.length)continue;const c=i+1;s.push(`${c}${" ".repeat(3-String(c).length)}| ${r[i]}`);const E=r[i].length;if(i===o){const b=t-(a-E)+1,T=Math.max(1,n>a?E-b:n-t);s.push(" | "+" ".repeat(b)+"^".repeat(T))}else if(i>o){if(n>a){const b=Math.max(Math.min(n-a,E),1);s.push(" | "+"^".repeat(b))}a+=E+1}}break}return s.join(`
|
|
2
|
+
`)}function Wt(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const Qe=e=>!M(e)||H(e);function et(e,t){if(Qe(e)||Qe(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(M(r[s])&&!M(a[s])&&(a[s]=Array.isArray(r[s])?[]:$()),Qe(a[s])||Qe(r[s])?a[s]=r[s]:n.push({src:r[s],des:a[s]}))})}}function wr(e,t,n){return{line:e,column:t,offset:n}}function vt(e,t,n){return{start:e,end:t}}const S={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},Ur=17,Vr={[S.EXPECTED_TOKEN]:"Expected token: '{0}'",[S.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[S.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[S.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[S.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[S.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[S.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[S.EMPTY_PLACEHOLDER]:"Empty placeholder",[S.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[S.INVALID_LINKED_FORMAT]:"Invalid linked format",[S.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[S.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[S.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[S.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[S.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[S.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function we(e,t,n={}){const{domain:r,messages:a,args:s}=n,o=process.env.NODE_ENV!=="production"?nt((a||Vr)[e]||"",...s||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function xr(e){throw e}const $r=/<\/?[\w\s="/.':;#-\/]+>/,Br=e=>$r.test(e),ue=" ",Wr="\r",Z=`
|
|
3
|
+
`,Yr="\u2028",Gr="\u2029";function Hr(e){const t=e;let n=0,r=1,a=1,s=0;const o=g=>t[g]===Wr&&t[g+1]===Z,i=g=>t[g]===Z,c=g=>t[g]===Gr,E=g=>t[g]===Yr,b=g=>o(g)||i(g)||c(g)||E(g),T=()=>n,N=()=>r,v=()=>a,y=()=>s,A=g=>o(g)||c(g)||E(g)?Z:t[g],D=()=>A(n),f=()=>A(n+s);function m(){return s=0,b(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function L(){return o(n+s)&&s++,s++,t[n+s]}function d(){n=0,r=1,a=1,s=0}function I(g=0){s=g}function C(){const g=n+s;for(;g!==n;)m();s=0}return{index:T,line:N,column:v,peekOffset:y,charAt:A,currentChar:D,currentPeek:f,next:m,peek:L,reset:d,resetPeek:I,skipToPeek:C}}const de=void 0,Kr=".",on="'",jr="tokenizer";function Xr(e,t={}){const n=t.location!==!1,r=Hr(e),a=()=>r.index(),s=()=>wr(r.line(),r.column(),r.index()),o=s(),i=a(),c={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},E=()=>c,{onError:b}=t;function T(l,u,p,...P){const G=E();if(u.column+=p,u.offset+=p,b){const j=n?vt(G.startLoc,u):null,U=we(l,j,{domain:jr,args:P});b(U)}}function N(l,u,p){l.endLoc=s(),l.currentType=u;const P={type:u};return n&&(P.loc=vt(l.startLoc,l.endLoc)),p!=null&&(P.value=p),P}const v=l=>N(l,13);function y(l,u){return l.currentChar()===u?(l.next(),u):(T(S.EXPECTED_TOKEN,s(),0,u),"")}function A(l){let u="";for(;l.currentPeek()===ue||l.currentPeek()===Z;)u+=l.currentPeek(),l.peek();return u}function D(l){const u=A(l);return l.skipToPeek(),u}function f(l){if(l===de)return!1;const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function m(l){if(l===de)return!1;const u=l.charCodeAt(0);return u>=48&&u<=57}function L(l,u){const{currentType:p}=u;if(p!==2)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function d(l,u){const{currentType:p}=u;if(p!==2)return!1;A(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),G=m(P);return l.resetPeek(),G}function I(l,u){const{currentType:p}=u;if(p!==2)return!1;A(l);const P=l.currentPeek()===on;return l.resetPeek(),P}function C(l,u){const{currentType:p}=u;if(p!==7)return!1;A(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function g(l,u){const{currentType:p}=u;if(p!==8)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function R(l,u){const{currentType:p}=u;if(!(p===7||p===11))return!1;A(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function V(l,u){const{currentType:p}=u;if(p!==9)return!1;const P=()=>{const j=l.currentPeek();return j==="{"?f(l.peek()):j==="@"||j==="|"||j===":"||j==="."||j===ue||!j?!1:j===Z?(l.peek(),P()):oe(l,!1)},G=P();return l.resetPeek(),G}function q(l){A(l);const u=l.currentPeek()==="|";return l.resetPeek(),u}function oe(l,u=!0){const p=(G=!1,j="")=>{const U=l.currentPeek();return U==="{"||U==="@"||!U?G:U==="|"?!(j===ue||j===Z):U===ue?(l.peek(),p(!0,ue)):U===Z?(l.peek(),p(!0,Z)):!0},P=p();return u&&l.resetPeek(),P}function K(l,u){const p=l.currentChar();return p===de?de:u(p)?(l.next(),p):null}function ve(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36}function ot(l){return K(l,ve)}function lt(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36||u===45}function it(l){return K(l,lt)}function ut(l){const u=l.charCodeAt(0);return u>=48&&u<=57}function ct(l){return K(l,ut)}function ft(l){const u=l.charCodeAt(0);return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function me(l){return K(l,ft)}function Ue(l){let u="",p="";for(;u=ct(l);)p+=u;return p}function _t(l){let u="";for(;;){const p=l.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p===ue||p===Z)if(oe(l))u+=p,l.next();else{if(q(l))break;u+=p,l.next()}else u+=p,l.next()}return u}function mt(l){D(l);let u="",p="";for(;u=it(l);)p+=u;const P=l.currentChar();if(P&&P!=="}"&&P!==de&&P!==ue&&P!==Z&&P!==" "){const G=Je(l);return T(S.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p+G),p+G}return l.currentChar()===de&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p}function dt(l){D(l);let u="";return l.currentChar()==="-"?(l.next(),u+=`-${Ue(l)}`):u+=Ue(l),l.currentChar()===de&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),u}function Et(l){return l!==on&&l!==Z}function zt(l){D(l),y(l,"'");let u="",p="";for(;u=K(l,Et);)u==="\\"?p+=gt(l):p+=u;const P=l.currentChar();return P===Z||P===de?(T(S.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),P===Z&&(l.next(),y(l,"'")),p):(y(l,"'"),p)}function gt(l){const u=l.currentChar();switch(u){case"\\":case"'":return l.next(),`\\${u}`;case"u":return Xe(l,u,4);case"U":return Xe(l,u,6);default:return T(S.UNKNOWN_ESCAPE_SEQUENCE,s(),0,u),""}}function Xe(l,u,p){y(l,u);let P="";for(let G=0;G<p;G++){const j=me(l);if(!j){T(S.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${u}${P}${l.currentChar()}`);break}P+=j}return`\\${u}${P}`}function pt(l){return l!=="{"&&l!=="}"&&l!==ue&&l!==Z}function Je(l){D(l);let u="",p="";for(;u=K(l,pt);)p+=u;return p}function Nt(l){let u="",p="";for(;u=ot(l);)p+=u;return p}function ht(l){const u=p=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===ue?p:(p+=P,l.next(),u(p))};return u("")}function Ve(l){D(l);const u=y(l,"|");return D(l),u}function xe(l,u){let p=null;switch(l.currentChar()){case"{":return u.braceNest>=1&&T(S.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),p=N(u,2,"{"),D(l),u.braceNest++,p;case"}":return u.braceNest>0&&u.currentType===2&&T(S.EMPTY_PLACEHOLDER,s(),0),l.next(),p=N(u,3,"}"),u.braceNest--,u.braceNest>0&&D(l),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),p;case"@":return u.braceNest>0&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p=he(l,u)||v(u),u.braceNest=0,p;default:{let G=!0,j=!0,U=!0;if(q(l))return u.braceNest>0&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p=N(u,1,Ve(l)),u.braceNest=0,u.inLinked=!1,p;if(u.braceNest>0&&(u.currentType===4||u.currentType===5||u.currentType===6))return T(S.UNTERMINATED_CLOSING_BRACE,s(),0),u.braceNest=0,$e(l,u);if(G=L(l,u))return p=N(u,4,mt(l)),D(l),p;if(j=d(l,u))return p=N(u,5,dt(l)),D(l),p;if(U=I(l,u))return p=N(u,6,zt(l)),D(l),p;if(!G&&!j&&!U)return p=N(u,12,Je(l)),T(S.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p.value),D(l),p;break}}return p}function he(l,u){const{currentType:p}=u;let P=null;const G=l.currentChar();switch((p===7||p===8||p===11||p===9)&&(G===Z||G===ue)&&T(S.INVALID_LINKED_FORMAT,s(),0),G){case"@":return l.next(),P=N(u,7,"@"),u.inLinked=!0,P;case".":return D(l),l.next(),N(u,8,".");case":":return D(l),l.next(),N(u,9,":");default:return q(l)?(P=N(u,1,Ve(l)),u.braceNest=0,u.inLinked=!1,P):C(l,u)||R(l,u)?(D(l),he(l,u)):g(l,u)?(D(l),N(u,11,Nt(l))):V(l,u)?(D(l),G==="{"?xe(l,u)||P:N(u,10,ht(l))):(p===7&&T(S.INVALID_LINKED_FORMAT,s(),0),u.braceNest=0,u.inLinked=!1,$e(l,u))}}function $e(l,u){let p={type:13};if(u.braceNest>0)return xe(l,u)||v(u);if(u.inLinked)return he(l,u)||v(u);switch(l.currentChar()){case"{":return xe(l,u)||v(u);case"}":return T(S.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(u,3,"}");case"@":return he(l,u)||v(u);default:{if(q(l))return p=N(u,1,Ve(l)),u.braceNest=0,u.inLinked=!1,p;if(oe(l))return N(u,0,_t(l));break}}return p}function Tt(){const{currentType:l,offset:u,startLoc:p,endLoc:P}=c;return c.lastType=l,c.lastOffset=u,c.lastStartLoc=p,c.lastEndLoc=P,c.offset=a(),c.startLoc=s(),r.currentChar()===de?N(c,13):$e(r,c)}return{nextToken:Tt,currentOffset:a,currentPosition:s,context:E}}const Jr="parser",qr=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Qr(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Zr(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,m,L,d,...I){const C=f.currentPosition();if(C.offset+=d,C.column+=d,n){const g=t?vt(L,C):null,R=we(m,g,{domain:Jr,args:I});n(R)}}function a(f,m,L){const d={type:f};return t&&(d.start=m,d.end=m,d.loc={start:L,end:L}),d}function s(f,m,L,d){t&&(f.end=m,f.loc&&(f.loc.end=L))}function o(f,m){const L=f.context(),d=a(3,L.offset,L.startLoc);return d.value=m,s(d,f.currentOffset(),f.currentPosition()),d}function i(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(5,d,I);return C.index=parseInt(m,10),f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function c(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(4,d,I);return C.key=m,f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function E(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(9,d,I);return C.value=m.replace(qr,Qr),f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function b(f){const m=f.nextToken(),L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(8,d,I);return m.type!==11?(r(f,S.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),C.value="",s(C,d,I),{nextConsumeToken:m,node:C}):(m.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,ce(m)),C.value=m.value||"",s(C,f.currentOffset(),f.currentPosition()),{node:C})}function T(f,m){const L=f.context(),d=a(7,L.offset,L.startLoc);return d.value=m,s(d,f.currentOffset(),f.currentPosition()),d}function N(f){const m=f.context(),L=a(6,m.offset,m.startLoc);let d=f.nextToken();if(d.type===8){const I=b(f);L.modifier=I.node,d=I.nextConsumeToken||f.nextToken()}switch(d.type!==9&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),d=f.nextToken(),d.type===2&&(d=f.nextToken()),d.type){case 10:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=T(f,d.value||"");break;case 4:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=c(f,d.value||"");break;case 5:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=i(f,d.value||"");break;case 6:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=E(f,d.value||"");break;default:{r(f,S.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const I=f.context(),C=a(7,I.offset,I.startLoc);return C.value="",s(C,I.offset,I.startLoc),L.key=C,s(L,I.offset,I.startLoc),{nextConsumeToken:d,node:L}}}return s(L,f.currentOffset(),f.currentPosition()),{node:L}}function v(f){const m=f.context(),L=m.currentType===1?f.currentOffset():m.offset,d=m.currentType===1?m.endLoc:m.startLoc,I=a(2,L,d);I.items=[];let C=null;do{const V=C||f.nextToken();switch(C=null,V.type){case 0:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(o(f,V.value||""));break;case 5:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(i(f,V.value||""));break;case 4:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(c(f,V.value||""));break;case 6:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(E(f,V.value||""));break;case 7:{const q=N(f);I.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const g=m.currentType===1?m.lastOffset:f.currentOffset(),R=m.currentType===1?m.lastEndLoc:f.currentPosition();return s(I,g,R),I}function y(f,m,L,d){const I=f.context();let C=d.items.length===0;const g=a(1,m,L);g.cases=[],g.cases.push(d);do{const R=v(f);C||(C=R.items.length===0),g.cases.push(R)}while(I.currentType!==13);return C&&r(f,S.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),s(g,f.currentOffset(),f.currentPosition()),g}function A(f){const m=f.context(),{offset:L,startLoc:d}=m,I=v(f);return m.currentType===13?I:y(f,L,d,I)}function D(f){const m=Xr(f,Q({},e)),L=m.context(),d=a(0,L.offset,L.startLoc);return t&&d.loc&&(d.loc.source=f),d.body=A(m),e.onCacheKey&&(d.cacheKey=e.onCacheKey(f)),L.currentType!==13&&r(m,S.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,f[L.offset]||""),s(d,m.currentOffset(),m.currentPosition()),d}return{parse:D}}function ce(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function zr(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function ln(e,t){for(let n=0;n<e.length;n++)Yt(e[n],t)}function Yt(e,t){switch(e.type){case 1:ln(e.cases,t),t.helper("plural");break;case 2:ln(e.items,t);break;case 6:{Yt(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");break}}function ea(e,t={}){const n=zr(e);n.helper("normalize"),e.body&&Yt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ta(e){const t=e.body;return t.type===2?un(t):t.cases.forEach(n=>un(n)),e}function un(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(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(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Bt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const na="minifier";function Se(e){switch(e.t=e.type,e.type){case 0:{const t=e;Se(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Se(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Se(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Se(t.key),t.k=t.key,delete t.key,t.modifier&&(Se(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw we(S.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:na,args:[e.type]})}delete e.type}const ra="parser";function aa(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,s=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};s&&e.loc&&(o.source=e.loc.source);const i=()=>o;function c(A,D){o.code+=A}function E(A,D=!0){const f=D?r:"";c(a?f+" ".repeat(A):f)}function b(A=!0){const D=++o.indentLevel;A&&E(D)}function T(A=!0){const D=--o.indentLevel;A&&E(D)}function N(){E(o.indentLevel)}return{context:i,push:c,indent:b,deindent:T,newline:N,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function sa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ke(e,t.key),t.modifier?(e.push(", "),ke(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function oa(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s<a&&(ke(e,t.items[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function la(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 s=0;s<a&&(ke(e,t.cases[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function ia(e,t){t.body?ke(e,t.body):e.push("null")}function ke(e,t){const{helper:n}=e;switch(t.type){case 0:ia(e,t);break;case 1:la(e,t);break;case 2:oa(e,t);break;case 6:sa(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw we(S.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ra,args:[t.type]})}}const ua=(e,t={})=>{const n=O(t.mode)?t.mode:"normal",r=O(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
4
|
+
`,s=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=aa(e,{filename:r,breakLineCode:a,needIndent:s});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(s),o.length>0&&(i.push(`const { ${Bt(o.map(b=>`${b}: _${b}`),", ")} } = ctx`),i.newline()),i.push("return "),ke(i,e),i.deindent(s),i.push("}"),delete e.helpers;const{code:c,map:E}=i.context();return{ast:e,code:c,map:E?E.toJSON():void 0}};function ca(e,t={}){const n=Q({},t),r=!!n.jit,a=!!n.minify,s=n.optimize==null?!0:n.optimize,i=Zr(n).parse(e);return r?(s&&ta(i),a&&Se(i),{ast:i,code:""}):(ea(i,n),ua(i,n))}function fa(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(be().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return M(e)&&Gt(e)===0&&(le(e,"b")||le(e,"body"))}const Yn=["b","body"];function _a(e){return pe(e,Yn)}const Gn=["c","cases"];function ma(e){return pe(e,Gn,[])}const Hn=["s","static"];function da(e){return pe(e,Hn)}const Kn=["i","items"];function Ea(e){return pe(e,Kn,[])}const jn=["t","type"];function Gt(e){return pe(e,jn)}const Xn=["v","value"];function Ze(e,t){const n=pe(e,Xn);if(n!=null)return n;throw We(t)}const Jn=["m","modifier"];function ga(e){return pe(e,Jn)}const qn=["k","key"];function pa(e){const t=pe(e,qn);if(t)return t;throw We(6)}function pe(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(le(e,a)&&e[a]!=null)return e[a]}return n}const Qn=[...Yn,...Gn,...Hn,...Kn,...qn,...Jn,...Xn,...jn];function We(e){return new Error(`unhandled node type: ${e}`)}function Ot(e){return n=>Na(n,e)}function Na(e,t){const n=_a(t);if(n==null)throw We(0);if(Gt(n)===1){const s=ma(n);return e.plural(s.reduce((o,i)=>[...o,cn(e,i)],[]))}else return cn(e,n)}function cn(e,t){const n=da(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Ea(t).reduce((a,s)=>[...a,Dt(e,s)],[]);return e.normalize(r)}}function Dt(e,t){const n=Gt(t);switch(n){case 3:return Ze(t,n);case 9:return Ze(t,n);case 4:{const r=t;if(le(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(le(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw We(n)}case 5:{const r=t;if(le(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(le(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw We(n)}case 6:{const r=t,a=ga(r),s=pa(r);return e.linked(Dt(e,s),a?Dt(e,a):void 0,e.type)}case 7:return Ze(t,n);case 8:return Ze(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ha="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ta(e,t){t&&Br(e)&&fe(nt(ha,{source:e}))}const La=e=>e;let ze=$();function ba(e,t={}){let n=!1;const r=t.onError||xr;return t.onError=a=>{n=!0,r(a)},{...ca(e,t),detectError:n}}function Oa(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ta(e,n);const a=(t.onCacheKey||La)(e),s=ze[a];if(s)return s;const{ast:o,detectError:i}=ba(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Ot(o);return i?c:ze[a]=c}else{if(process.env.NODE_ENV!=="production"&&!se(e))return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=ze[n];return r||(ze[n]=Ot(e))}else return Ot(e)}}let Ye=null;function Ia(e){Ye=e}function Ca(e,t,n){Ye&&Ye.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Aa=va("function:translate");function va(e){return t=>Ye&&Ye.emit(e,t)}const z={INVALID_ARGUMENT:Ur,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Da=24;function Ee(e){return we(e,null,process.env.NODE_ENV!=="production"?{messages:Pa}:void 0)}const Pa={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Ht(e,t){return t.locale!=null?fn(t.locale):fn(e.locale)}let It;function fn(e){if(O(e))return e;if(B(e)){if(e.resolvedOnce&&It!=null)return It;if(e.constructor.name==="Function"){const t=e();if(Rr(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return It=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Sa(e,t,n){return[...new Set([n,...H(t)?t:M(t)?Object.keys(t):O(t)?[t]:[n]])]}function Zn(e,t,n){const r=O(n)?n:Ge,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;H(o);)o=_n(s,o,t);const i=H(t)||!k(t)?t:t.default?t.default:null;o=O(i)?[i]:i,H(o)&&_n(s,o,!1),a.__localeChainCache.set(r,s)}return s}function _n(e,t,n){let r=!0;for(let a=0;a<t.length&&w(r);a++){const s=t[a];O(s)&&(r=ya(e,t[a],n))}return r}function ya(e,t,n){let r;const a=t.split("-");do{const s=a.join("-");r=Fa(e,s,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function Fa(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(H(n)||k(n))&&n[a]&&(r=n[a])}return r}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ne[1]={w:[1],".":[2],"[":[4],o:[7]};Ne[2]={w:[2],i:[3,0],0:[3,0]};Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ne[5]={"'":[4,0],o:8,l:[5,0]};Ne[6]={'"':[4,0],o:8,l:[6,0]};const Ra=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ka(e){return Ra.test(e)}function Ma(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function wa(e){if(e==null)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 Ua(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ka(t)?Ma(t):"*"+t}function Va(e){const t=[];let n=-1,r=0,a=0,s,o,i,c,E,b,T;const N=[];N[0]=()=>{o===void 0?o=i:o+=i},N[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},N[2]=()=>{N[0](),a++},N[3]=()=>{if(a>0)a--,r=4,N[0]();else{if(a=0,o===void 0||(o=Ua(o),o===!1))return!1;N[1]()}};function v(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,i="\\"+y,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&v())){if(c=wa(s),T=Ne[r],E=T[c]||T.l||8,E===8||(r=E[0],E[1]!==void 0&&(b=N[E[1]],b&&(i=s,b()===!1))))return;if(r===7)return t}}const mn=new Map;function xa(e,t){return M(e)?e[t]:null}function $a(e,t){if(!M(e))return null;let n=mn.get(t);if(n||(n=Va(t),n&&mn.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s<r;){const o=n[s];if(Qn.includes(o)&&se(a))return null;const i=a[o];if(i===void 0||B(a))return null;a=i,s++}return a}const ee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Ba=8,Wa={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ie(e,...t){return nt(Wa[e],...t)}const Ya="11.2.7",at=-1,Ge="en-US",tt="",dn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ga(){return{upper:(e,t)=>t==="text"&&O(e)?e.toUpperCase():t==="vnode"&&M(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&O(e)?e.toLowerCase():t==="vnode"&&M(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&O(e)?dn(e):t==="vnode"&&M(e)&&"__v_isVNode"in e?dn(e.children):e}}let zn;function Ha(e){zn=e}let er;function Ka(e){er=e}let tr;function ja(e){tr=e}let nr=null;const Xa=e=>{nr=e},Ja=()=>nr;let rr=null;const En=e=>{rr=e},qa=()=>rr;let gn=0;function Qa(e={}){const t=B(e.onWarn)?e.onWarn:fe,n=O(e.version)?e.version:Ya,r=O(e.locale)||B(e.locale)?e.locale:Ge,a=B(r)?Ge:r,s=H(e.fallbackLocale)||k(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=k(e.messages)?e.messages:Ct(a),i=k(e.datetimeFormats)?e.datetimeFormats:Ct(a),c=k(e.numberFormats)?e.numberFormats:Ct(a),E=Q($(),e.modifiers,Ga()),b=e.pluralRules||$(),T=B(e.missing)?e.missing:null,N=w(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,v=w(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,A=!!e.unresolving,D=B(e.postTranslation)?e.postTranslation:null,f=k(e.processor)?e.processor:null,m=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,d=B(e.messageCompiler)?e.messageCompiler:zn;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&xt(Ie(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const I=B(e.messageResolver)?e.messageResolver:er||xa,C=B(e.localeFallbacker)?e.localeFallbacker:tr||Sa,g=M(e.fallbackContext)?e.fallbackContext:void 0,R=e,V=M(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,q=M(R.__numberFormatters)?R.__numberFormatters:new Map,oe=M(R.__meta)?R.__meta:{};gn++;const K={version:n,cid:gn,locale:r,fallbackLocale:s,messages:o,modifiers:E,pluralRules:b,missing:T,missingWarn:N,fallbackWarn:v,fallbackFormat:y,unresolving:A,postTranslation:D,processor:f,warnHtmlMessage:m,escapeParameter:L,messageCompiler:d,messageResolver:I,localeFallbacker:C,fallbackContext:g,onWarn:t,__meta:oe};return K.datetimeFormats=i,K.numberFormats=c,K.__datetimeFormatters=V,K.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(K.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ca(K,n,oe),K}const Ct=e=>({[e]:$()});function st(e,t){return e instanceof RegExp?e.test(t):e}function ar(e,t){return e instanceof RegExp?e.test(t):e}function Kt(e,t,n,r,a){const{missing:s,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(s!==null){const i=s(e,n,t,a);return O(i)?i:t}else return process.env.NODE_ENV!=="production"&&ar(r,t)&&o(Ie(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function Be(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function sr(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Za(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(sr(e,t[r]))return!0;return!1}const pn=typeof Intl<"u",or={dateTimeFormat:pn&&typeof Intl.DateTimeFormat<"u",numberFormat:pn&&typeof Intl.NumberFormat<"u"};function Nn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!or.dateTimeFormat)return s(Ie(ee.CANNOT_FORMAT_DATE)),tt;const[c,E,b,T]=Pt(...t),N=w(b.missingWarn)?b.missingWarn:e.missingWarn,v=w(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,y=!!b.part,A=Ht(e,b),D=o(e,a,A);if(!O(c)||c==="")return new Intl.DateTimeFormat(A,T).format(E);let f={},m,L=null,d=A,I=null;const C="datetime format";for(let V=0;V<D.length;V++){if(m=I=D[V],process.env.NODE_ENV!=="production"&&A!==m&&st(v,c)&&s(Ie(ee.FALLBACK_TO_DATE_FORMAT,{key:c,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:c,from:d,to:I,groupId:`${C}:${c}`})}if(f=n[m]||{},L=f[c],k(L))break;Kt(e,c,m,N,C),d=I}if(!k(L)||!O(m))return r?at:c;let g=`${m}__${c}`;rt(T)||(g=`${g}__${JSON.stringify(T)}`);let R=i.get(g);return R||(R=new Intl.DateTimeFormat(m,Q({},L,T)),i.set(g,R)),y?R.formatToParts(E):R.format(E)}const lr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Pt(...e){const[t,n,r,a]=e,s=$();let o=$(),i;if(O(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const E=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();i=new Date(E);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Pr(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);i=t}else if(J(t))i=t;else throw Ee(z.INVALID_ARGUMENT);return O(n)?s.key=n:k(n)&&Object.keys(n).forEach(c=>{lr.includes(c)?o[c]=n[c]:s[c]=n[c]}),O(r)?s.locale=r:k(r)&&(o=r),k(a)&&(o=a),[s.key||"",i,s,o]}function hn(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Tn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!or.numberFormat)return s(Ie(ee.CANNOT_FORMAT_NUMBER)),tt;const[c,E,b,T]=St(...t),N=w(b.missingWarn)?b.missingWarn:e.missingWarn,v=w(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,y=!!b.part,A=Ht(e,b),D=o(e,a,A);if(!O(c)||c==="")return new Intl.NumberFormat(A,T).format(E);let f={},m,L=null,d=A,I=null;const C="number format";for(let V=0;V<D.length;V++){if(m=I=D[V],process.env.NODE_ENV!=="production"&&A!==m&&st(v,c)&&s(Ie(ee.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:c,from:d,to:I,groupId:`${C}:${c}`})}if(f=n[m]||{},L=f[c],k(L))break;Kt(e,c,m,N,C),d=I}if(!k(L)||!O(m))return r?at:c;let g=`${m}__${c}`;rt(T)||(g=`${g}__${JSON.stringify(T)}`);let R=i.get(g);return R||(R=new Intl.NumberFormat(m,Q({},L,T)),i.set(g,R)),y?R.formatToParts(E):R.format(E)}const ir=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function St(...e){const[t,n,r,a]=e,s=$();let o=$();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return O(n)?s.key=n:k(n)&&Object.keys(n).forEach(c=>{ir.includes(c)?o[c]=n[c]:s[c]=n[c]}),O(r)?s.locale=r:k(r)&&(o=r),k(a)&&(o=a),[s.key||"",i,s,o]}function Ln(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const za=e=>e,es=e=>"",ts="text",ns=e=>e.length===0?"":Bt(e),rs=kr;function bn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function as(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function ss(e,t){t.count||(t.count=e),t.n||(t.n=e)}function os(e={}){const t=e.locale,n=as(e),r=M(e.pluralRules)&&O(t)&&B(e.pluralRules[t])?e.pluralRules[t]:bn,a=M(e.pluralRules)&&O(t)&&B(e.pluralRules[t])?bn:void 0,s=f=>f[r(n,f.length,a)],o=e.list||[],i=f=>o[f],c=e.named||$();J(e.pluralIndex)&&ss(n,c);const E=f=>c[f];function b(f,m){const L=B(e.messages)?e.messages(f,!!m):M(e.messages)?e.messages[f]:!1;return L||(e.parent?e.parent.message(f):es)}const T=f=>e.modifiers?e.modifiers[f]:za,N=k(e.processor)&&B(e.processor.normalize)?e.processor.normalize:ns,v=k(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:rs,y=k(e.processor)&&O(e.processor.type)?e.processor.type:ts,D={list:i,named:E,plural:s,linked:(f,...m)=>{const[L,d]=m;let I="text",C="";m.length===1?M(L)?(C=L.modifier||C,I=L.type||I):O(L)&&(C=L||C):m.length===2&&(O(L)&&(C=L||C),O(d)&&(I=d||I));const g=b(f,!0)(D),R=I==="vnode"&&H(g)&&C?g[0]:g;return C?T(C)(R,I):R},message:b,type:y,interpolate:v,normalize:N,values:Q($(),o,c)};return D}const On=()=>"",re=e=>B(e);function In(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:o,messages:i}=e,[c,E]=yt(...t),b=w(E.missingWarn)?E.missingWarn:e.missingWarn,T=w(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,N=w(E.escapeParameter)?E.escapeParameter:e.escapeParameter,v=!!E.resolvedMessage,y=O(E.default)||w(E.default)?w(E.default)?s?c:()=>c:E.default:n?s?c:()=>c:null,A=n||y!=null&&(O(y)||B(y)),D=Ht(e,E);N&&ls(E);let[f,m,L]=v?[c,D,i[D]||$()]:ur(e,c,D,o,T,b),d=f,I=c;if(!v&&!(O(d)||se(d)||re(d))&&A&&(d=y,I=d),!v&&(!(O(d)||se(d)||re(d))||!O(m)))return a?at:c;if(process.env.NODE_ENV!=="production"&&O(d)&&e.messageCompiler==null)return fe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let C=!1;const g=()=>{C=!0},R=re(d)?d:cr(e,c,m,d,I,g);if(C)return d;const V=fs(e,m,L,E),q=os(V),oe=is(e,R,q);let K=r?r(oe,c):oe;if(N&&O(K)&&(K=yr(K)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ve={timestamp:Date.now(),key:O(c)?c:re(d)?d.key:"",locale:m||(re(d)?d.locale:""),format:O(d)?d:re(d)?d.source:"",message:K};ve.meta=Q({},e.__meta,Ja()||{}),Aa(ve)}return K}function ls(e){H(e.list)?e.list=e.list.map(t=>O(t)?rn(t):t):M(e.named)&&Object.keys(e.named).forEach(t=>{O(e.named[t])&&(e.named[t]=rn(e.named[t]))})}function ur(e,t,n,r,a,s){const{messages:o,onWarn:i,messageResolver:c,localeFallbacker:E}=e,b=E(e,r,n);let T=$(),N,v=null,y=n,A=null;const D="translate";for(let f=0;f<b.length;f++){if(N=A=b[f],process.env.NODE_ENV!=="production"&&n!==N&&!sr(n,N)&&st(a,t)&&i(Ie(ee.FALLBACK_TO_TRANSLATE,{key:t,target:N})),process.env.NODE_ENV!=="production"&&n!==N){const I=e.__v_emitter;I&&I.emit("fallback",{type:D,key:t,from:y,to:A,groupId:`${D}:${t}`})}T=o[N]||$();let m=null,L,d;if(process.env.NODE_ENV!=="production"&&ie&&(m=window.performance.now(),L="intlify-message-resolve-start",d="intlify-message-resolve-end",ne&&ne(L)),(v=c(T,t))===null&&(v=T[t]),process.env.NODE_ENV!=="production"&&ie){const I=window.performance.now(),C=e.__v_emitter;C&&m&&v&&C.emit("message-resolve",{type:"message-resolve",key:t,message:v,time:I-m,groupId:`${D}:${t}`}),L&&d&&ne&&Oe&&(ne(d),Oe("intlify message resolve",L,d))}if(O(v)||se(v)||re(v))break;if(!Za(N,b)){const I=Kt(e,t,N,s,D);I!==t&&(v=I)}y=A}return[v,N,T]}function cr(e,t,n,r,a,s){const{messageCompiler:o,warnHtmlMessage:i}=e;if(re(r)){const N=r;return N.locale=N.locale||n,N.key=N.key||t,N}if(o==null){const N=(()=>r);return N.locale=n,N.key=t,N}let c=null,E,b;process.env.NODE_ENV!=="production"&&ie&&(c=window.performance.now(),E="intlify-message-compilation-start",b="intlify-message-compilation-end",ne&&ne(E));const T=o(r,us(e,n,a,r,i,s));if(process.env.NODE_ENV!=="production"&&ie){const N=window.performance.now(),v=e.__v_emitter;v&&c&&v.emit("message-compilation",{type:"message-compilation",message:r,time:N-c,groupId:`translate:${t}`}),E&&b&&ne&&Oe&&(ne(b),Oe("intlify message compilation",E,b))}return T.locale=n,T.key=t,T.source=r,T}function is(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&ie&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="intlify-message-evaluation-end",ne&&ne(a));const o=t(n);if(process.env.NODE_ENV!=="production"&&ie){const i=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),a&&s&&ne&&Oe&&(ne(s),Oe("intlify message evaluation",a,s))}return o}function yt(...e){const[t,n,r]=e,a=$();if(!O(t)&&!J(t)&&!re(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const s=J(t)?String(t):(re(t),t);return J(n)?a.plural=n:O(n)?a.default=n:k(n)&&!rt(n)?a.named=n:H(n)&&(a.list=n),J(r)?a.plural=r:O(r)?a.default=r:k(r)&&Q(a,r),[s,a]}function us(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{if(s&&s(o),process.env.NODE_ENV!=="production"){const i=cs(r),c=`Message compilation error: ${o.message}`,E=o.location&&i&&Mr(i,o.location.start.offset,o.location.end.offset),b=e.__v_emitter;b&&i&&b.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(E?`${c}
|
|
5
|
+
${E}`:c)}else throw o},onCacheKey:o=>vr(t,n,o)}}function cs(e){if(O(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function fs(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:o,fallbackLocale:i,fallbackWarn:c,missingWarn:E,fallbackContext:b}=e,N={locale:t,modifiers:a,pluralRules:s,messages:(v,y)=>{let A=o(n,v);if(A==null&&(b||y)){const[,,D]=ur(b||e,v,t,i,c,E);A=o(D,v)}if(O(A)||se(A)){let D=!1;const m=cr(e,v,t,A,v,()=>{D=!0});return D?On:m}else return re(A)?A:On}};return e.processor&&(N.processor=e.processor),r.list&&(N.list=r.list),r.named&&(N.named=r.named),J(r.plural)&&(N.pluralIndex=r.plural),N}fa();function _s(){return fr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function fr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const ms=typeof Proxy=="function",ds="devtools-plugin:setup",Es="plugin:settings:set";let Pe,Ft;function gs(){var e;return Pe!==void 0||(typeof window<"u"&&window.performance?(Pe=!0,Ft=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Pe=!0,Ft=globalThis.perf_hooks.performance):Pe=!1),Pe}function ps(){return gs()?Ft.now():Date.now()}class Ns{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const i=t.settings[o];r[o]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(a),i=JSON.parse(o);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(a,JSON.stringify(o))}catch{}s=o},now(){return ps()}},n&&n.on(Es,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...c)=>{this.onQueue.push({method:i,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...c)=>(this.targetQueue.push({method:i,args:c,resolve:()=>{}}),this.fallbacks[i](...c)):(...c)=>new Promise(E=>{this.targetQueue.push({method:i,args:c,resolve:E})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function hs(e,t){const n=e,r=fr(),a=_s(),s=ms&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(ds,e,t);else{const o=s?new Ns(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const Ts="11.2.7";function Ls(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(be().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(be().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(be().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1)}const W={UNEXPECTED_RETURN_TYPE:Da,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function te(e,...t){return we(e,null,process.env.NODE_ENV!=="production"?{messages:bs,args:t}:void 0)}const bs={[W.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[W.INVALID_ARGUMENT]:"Invalid argument",[W.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[W.NOT_INSTALLED]:"Need to install with `app.use` function",[W.UNEXPECTED_ERROR]:"Unexpected error",[W.REQUIRED_VALUE]:"Required in value: {0}",[W.INVALID_VALUE]:"Invalid value",[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[W.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Rt=_e("__translateVNode"),kt=_e("__datetimeParts"),Mt=_e("__numberParts"),Ce=_e("__enableEmitter"),He=_e("__disableEmitter"),_r=_e("__setPluralRules"),mr=_e("__injectWithOption"),wt=_e("__dispose"),ae={FALLBACK_TO_ROOT:Ba,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Os={[ae.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ae.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[ae.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[ae.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
6
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[ae.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[ae.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Me(e,...t){return nt(Os[e],...t)}function Ke(e){if(!M(e)||se(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))M(e[t])&&Ke(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,s=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in a||(a[n[o]]=$()),!M(a[n[o]])){process.env.NODE_ENV!=="production"&&fe(Me(ae.IGNORE_OBJ_FLATTEN,{key:n[o]})),s=!0;break}a=a[n[o]]}if(s||(se(a)?Qn.includes(n[r])||delete e[t]:(a[n[r]]=e[t],delete e[t])),!se(a)){const o=a[n[r]];M(o)&&Ke(o)}}return e}function jt(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:s}=t,o=k(n)?n:H(r)?$():{[e]:$()};if(H(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:c,resource:E}=i;c?(o[c]=o[c]||$(),et(E,o[c])):et(E,o)}else O(i)&&et(JSON.parse(i),o)}),a==null&&s)for(const i in o)le(o,i)&&Ke(o[i]);return o}function dr(e){return e.type}function Er(e,t,n){let r=M(t.messages)?t.messages:$();"__i18nGlobal"in n&&(r=jt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(M(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(M(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Cn(e){return Y.createVNode(Y.Text,null,e,0)}function Fe(){const e="currentInstance";return e in Lt?Lt[e]:Lt.getCurrentInstance()}const An="__INTLIFY_META__",vn=()=>[],Is=()=>!1;let Dn=0;function Pn(e){return((t,n,r,a)=>e(n,r,Fe()||void 0,a))}const Cs=()=>{const e=Fe();let t=null;return e&&(t=dr(e)[An])?{[An]:t}:null};function Xt(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,s=ie?Y.ref:Y.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const i=s(t&&o?t.locale.value:O(e.locale)?e.locale:Ge),c=s(t&&o?t.fallbackLocale.value:O(e.fallbackLocale)||H(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),E=s(jt(i.value,e)),b=s(k(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),T=s(k(e.numberFormats)?e.numberFormats:{[i.value]:{}});let N=t?t.missingWarn:w(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,v=t?t.fallbackWarn:w(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,D=B(e.missing)?e.missing:null,f=B(e.missing)?Pn(e.missing):null,m=B(e.postTranslation)?e.postTranslation:null,L=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,d=!!e.escapeParameter;const I=t?t.modifiers:k(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,g;g=(()=>{r&&En(null);const _={version:Ts,locale:i.value,fallbackLocale:c.value,messages:E.value,modifiers:I,pluralRules:C,missing:f===null?void 0:f,missingWarn:N,fallbackWarn:v,fallbackFormat:A,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:L,escapeParameter:d,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=b.value,_.numberFormats=T.value,_.__datetimeFormatters=k(g)?g.__datetimeFormatters:void 0,_.__numberFormatters=k(g)?g.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=k(g)?g.__v_emitter:void 0);const h=Qa(_);return r&&En(h),h})(),Be(g,i.value,c.value);function V(){return[i.value,c.value,E.value,b.value,T.value]}const q=Y.computed({get:()=>i.value,set:_=>{g.locale=_,i.value=_}}),oe=Y.computed({get:()=>c.value,set:_=>{g.fallbackLocale=_,c.value=_,Be(g,i.value,_)}}),K=Y.computed(()=>E.value),ve=Y.computed(()=>b.value),ot=Y.computed(()=>T.value);function lt(){return B(m)?m:null}function it(_){m=_,g.postTranslation=_}function ut(){return D}function ct(_){_!==null&&(f=Pn(_)),D=_,g.missing=f}function ft(_,h){return _!=="translate"||!h.resolvedMessage}const me=(_,h,x,X,Te,qe)=>{V();let De;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=t?qa():void 0),De=_(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=void 0)}if(x!=="translate exists"&&J(De)&&De===at||x==="translate exists"&&!De){const[Le,Ir]=h();if(process.env.NODE_ENV!=="production"&&t&&O(Le)&&ft(x,Ir)&&(y&&(st(v,Le)||ar(N,Le))&&fe(Me(ae.FALLBACK_TO_ROOT,{key:Le,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:en}=g;en&&y&&en.emit("fallback",{type:x,key:Le,to:"global",groupId:`${x}:${Le}`})}return t&&y?X(t):Te(Le)}else{if(qe(De))return De;throw te(W.UNEXPECTED_RETURN_TYPE)}};function Ue(..._){return me(h=>Reflect.apply(In,null,[h,..._]),()=>yt(..._),"translate",h=>Reflect.apply(h.t,h,[..._]),h=>h,h=>O(h))}function _t(..._){const[h,x,X]=_;if(X&&!M(X))throw te(W.INVALID_ARGUMENT);return Ue(h,x,Q({resolvedMessage:!0},X||{}))}function mt(..._){return me(h=>Reflect.apply(Nn,null,[h,..._]),()=>Pt(..._),"datetime format",h=>Reflect.apply(h.d,h,[..._]),()=>tt,h=>O(h)||H(h))}function dt(..._){return me(h=>Reflect.apply(Tn,null,[h,..._]),()=>St(..._),"number format",h=>Reflect.apply(h.n,h,[..._]),()=>tt,h=>O(h)||H(h))}function Et(_){return _.map(h=>O(h)||J(h)||w(h)?Cn(String(h)):h)}const gt={normalize:Et,interpolate:_=>_,type:"vnode"};function Xe(..._){return me(h=>{let x;const X=h;try{X.processor=gt,x=Reflect.apply(In,null,[X,..._])}finally{X.processor=null}return x},()=>yt(..._),"translate",h=>h[Rt](..._),h=>[Cn(h)],h=>H(h))}function pt(..._){return me(h=>Reflect.apply(Tn,null,[h,..._]),()=>St(..._),"number format",h=>h[Mt](..._),vn,h=>O(h)||H(h))}function Je(..._){return me(h=>Reflect.apply(Nn,null,[h,..._]),()=>Pt(..._),"datetime format",h=>h[kt](..._),vn,h=>O(h)||H(h))}function Nt(_){C=_,g.pluralRules=C}function ht(_,h){return me(()=>{if(!_)return!1;const x=O(h)?h:i.value,X=he(x),Te=g.messageResolver(X,_);return se(Te)||re(Te)||O(Te)},()=>[_],"translate exists",x=>Reflect.apply(x.te,x,[_,h]),Is,x=>w(x))}function Ve(_){let h=null;const x=Zn(g,c.value,i.value);for(let X=0;X<x.length;X++){const Te=E.value[x[X]]||{},qe=g.messageResolver(Te,_);if(qe!=null){h=qe;break}}return h}function xe(_){const h=Ve(_);return h??(t?t.tm(_)||{}:{})}function he(_){return E.value[_]||{}}function $e(_,h){if(a){const x={[_]:h};for(const X in x)le(x,X)&&Ke(x[X]);h=x[_]}E.value[_]=h,g.messages=E.value}function Tt(_,h){E.value[_]=E.value[_]||{};const x={[_]:h};if(a)for(const X in x)le(x,X)&&Ke(x[X]);h=x[_],et(h,E.value[_]),g.messages=E.value}function l(_){return b.value[_]||{}}function u(_,h){b.value[_]=h,g.datetimeFormats=b.value,hn(g,_,h)}function p(_,h){b.value[_]=Q(b.value[_]||{},h),g.datetimeFormats=b.value,hn(g,_,h)}function P(_){return T.value[_]||{}}function G(_,h){T.value[_]=h,g.numberFormats=T.value,Ln(g,_,h)}function j(_,h){T.value[_]=Q(T.value[_]||{},h),g.numberFormats=T.value,Ln(g,_,h)}Dn++,t&&ie&&(Y.watch(t.locale,_=>{o&&(i.value=_,g.locale=_,Be(g,i.value,c.value))}),Y.watch(t.fallbackLocale,_=>{o&&(c.value=_,g.fallbackLocale=_,Be(g,i.value,c.value))}));const U={id:Dn,locale:q,fallbackLocale:oe,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,c.value=t.fallbackLocale.value,Be(g,i.value,c.value))},get availableLocales(){return Object.keys(E.value).sort()},messages:K,get modifiers(){return I},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return N},set missingWarn(_){N=_,g.missingWarn=N},get fallbackWarn(){return v},set fallbackWarn(_){v=_,g.fallbackWarn=v},get fallbackRoot(){return y},set fallbackRoot(_){y=_},get fallbackFormat(){return A},set fallbackFormat(_){A=_,g.fallbackFormat=A},get warnHtmlMessage(){return L},set warnHtmlMessage(_){L=_,g.warnHtmlMessage=_},get escapeParameter(){return d},set escapeParameter(_){d=_,g.escapeParameter=_},t:Ue,getLocaleMessage:he,setLocaleMessage:$e,mergeLocaleMessage:Tt,getPostTranslationHandler:lt,setPostTranslationHandler:it,getMissingHandler:ut,setMissingHandler:ct,[_r]:Nt};return U.datetimeFormats=ve,U.numberFormats=ot,U.rt=_t,U.te=ht,U.tm=xe,U.d=mt,U.n=dt,U.getDateTimeFormat=l,U.setDateTimeFormat=u,U.mergeDateTimeFormat=p,U.getNumberFormat=P,U.setNumberFormat=G,U.mergeNumberFormat=j,U[mr]=n,U[Rt]=Xe,U[kt]=Je,U[Mt]=pt,process.env.NODE_ENV!=="production"&&(U[Ce]=_=>{g.__v_emitter=_},U[He]=()=>{g.__v_emitter=void 0}),U}const gr="vue-i18n: composer properties",At={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},As={"vue-i18n-resource-inspector":"Search for scopes ..."},vs={"vue-i18n-timeline":16764185};let Ut;async function Ds(e,t){return new Promise((n,r)=>{try{hs({id:"vue-devtools-plugin-vue-i18n",label:At["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[gr],app:e},a=>{Ut=a,a.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Ps(o,i,t)}),a.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&Sn(i,o.__VUE_I18N__):Sn(i,o.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:At["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:As["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ks(o,t)});const s=new Map;a.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),ws(o,t),o.nodeId==="global"){if(!s.has(o.app)){const[i]=await a.getComponentInstances(o.app);s.set(o.app,i)}a.highlightElement(s.get(o.app))}else{const i=Ms(o.nodeId,t);i&&a.highlightElement(i)}}),a.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Vs(o,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:At["vue-i18n-timeline"],color:vs["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function pr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ps(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const a={label:`i18n (${pr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Sn(e,t){const n=gr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Jt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Jt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];B(r)&&"source"in r?t[n]=Rs(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:M(r)?t[n]=Jt(r):t[n]=r}),t}const Ss={"<":"<",">":">",'"':""","&":"&"};function ys(e){return e.replace(/[<>"&]/g,Fs)}function Fs(e){return Ss[e]||e}function Rs(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${ys(e.source)}")`:"(?)"}`}}}function ks(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const s=t.mode==="composition"?a:a.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${pr(r)} Scope`})}}function Ms(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function Nr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ws(e,t){const n=Nr(e.nodeId,t);return n&&(e.state=Us(n)),null}function Us(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",s=[{type:a,key:"messages",editable:!1,value:Jt(e.messages.value)}];t[a]=s;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const c="Datetime formats info",E=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=E}return t}function je(e,t){if(Ut){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ut.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Vs(e,t){const n=Nr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&O(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(O(e.state.value)||H(e.state.value)||M(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function xs(e){const t=O(e.locale)?e.locale:Ge,n=O(e.fallbackLocale)||H(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=B(e.missing)?e.missing:void 0,a=w(e.silentTranslationWarn)||Re(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=w(e.silentFallbackWarn)||Re(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,c=k(e.modifiers)?e.modifiers:{},E=e.pluralizationRules,b=B(e.postTranslation)?e.postTranslation:void 0,T=O(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,N=!!e.escapeParameterHtml,v=w(e.sync)?e.sync:!0;let y=e.messages;if(k(e.sharedMessages)){const I=e.sharedMessages;y=Object.keys(I).reduce((g,R)=>{const V=g[R]||(g[R]={});return Q(V,I[R]),g},y||{})}const{__i18n:A,__root:D,__injectWithOption:f}=e,m=e.datetimeFormats,L=e.numberFormats,d=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:d,datetimeFormats:m,numberFormats:L,missing:r,missingWarn:a,fallbackWarn:s,fallbackRoot:o,fallbackFormat:i,modifiers:c,pluralRules:E,postTranslation:b,warnHtmlMessage:T,escapeParameter:N,messageResolver:e.messageResolver,inheritLocale:v,__i18n:A,__root:D,__injectWithOption:f}}function Vt(e={}){const t=Xt(xs(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=w(a)?!a:a},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=w(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,s){return t.te(a,s)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,s){t.setLocaleMessage(a,s)},mergeLocaleMessage(a,s){t.mergeLocaleMessage(a,s)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,s){t.setDateTimeFormat(a,s)},mergeDateTimeFormat(a,s){t.mergeDateTimeFormat(a,s)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,s){t.setNumberFormat(a,s)},mergeNumberFormat(a,s){t.mergeNumberFormat(a,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const s=t;s[Ce]&&s[Ce](a)},r.__disableEmitter=()=>{const a=t;a[He]&&a[He]()}),r}function $s(e,t,n){return{beforeCreate(){const r=Fe();if(!r)throw te(W.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const s=a.i18n;if(a.__i18n&&(s.__i18n=a.__i18n),s.__root=t,this===this.$root)this.$i18n=yn(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Vt(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=yn(e,a);else{this.$i18n=Vt({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Er(t,a,a),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Fe();if(!r)return;const a=this.$i18n;r.__VUE_I18N__=a.__composer;const s=this.__v_emitter=Wt();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",je)}},unmounted(){const r=Fe();if(!r)throw te(W.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",je),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function yn(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[_r](t.pluralizationRules||e.pluralizationRules);const n=jt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const qt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bs({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===Y.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},$())}function hr(){return Y.Fragment}const Ws=Y.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},qt),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Qt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(T=>T[0]!=="_"),o=$();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=O(e.plural)?+e.plural:e.plural);const i=Bs(t,s),c=a[Rt](e.keypath,i,o),E=Q($(),r),b=O(e.tag)||M(e.tag)?e.tag:hr();return Y.h(b,E,c)}}}),Fn=Ws;function Ys(e){return H(e)&&!O(e[0])}function Tr(e,t,n,r){const{slots:a,attrs:s}=t;return()=>{const o={part:!0};let i=$();e.locale&&(o.locale=e.locale),O(e.format)?o.key=e.format:M(e.format)&&(O(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((N,v)=>n.includes(v)?Q($(),N,{[v]:e.format[v]}):N,$()));const c=r(e.value,o,i);let E=[o.key];H(c)?E=c.map((N,v)=>{const y=a[N.type],A=y?y({[N.type]:N.value,index:v,parts:c}):[N.value];return Ys(A)&&(A[0].key=`${N.type}-${v}`),A}):O(c)&&(E=[c]);const b=Q($(),s),T=O(e.tag)||M(e.tag)?e.tag:hr();return Y.h(T,b,E)}}const Gs=Y.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},qt),setup(e,t){const n=e.i18n||Qt({useScope:e.scope,__useComponent:!0});return Tr(e,t,ir,(...r)=>n[Mt](...r))}}),Rn=Gs;function Hs(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ks(e){const t=o=>{process.env.NODE_ENV!=="production"&&xt(Me(ae.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:c}=o;if(!i||!i.$)throw te(W.UNEXPECTED_ERROR);const E=Hs(e,i.$),b=kn(c);return[Reflect.apply(E.t,E,[...Mn(b)]),E]};return{created:(o,i)=>{const[c,E]=t(i);ie&&e.global===E&&(o.__i18nWatcher=Y.watch(E.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=E,o.textContent=c},unmounted:o=>{ie&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const c=o.__composer,E=kn(i);o.textContent=Reflect.apply(c.t,c,[...Mn(E)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function kn(e){if(O(e))return{path:e};if(k(e)){if(!("path"in e))throw te(W.REQUIRED_VALUE,"path");return e}else throw te(W.INVALID_VALUE)}function Mn(e){const{path:t,locale:n,args:r,choice:a,plural:s}=e,o={},i=r||{};return O(n)&&(o.locale=n),J(a)&&(o.plural=a),J(s)&&(o.plural=s),[t,i,o]}function js(e,t,...n){const r=k(n[0])?n[0]:{};(!w(r.globalInstall)||r.globalInstall)&&([Fn.name,"I18nT"].forEach(s=>e.component(s,Fn)),[Rn.name,"I18nN"].forEach(s=>e.component(s,Rn)),[Un.name,"I18nD"].forEach(s=>e.component(s,Un))),e.directive("t",Ks(t))}const Xs=_e("global-vue-i18n");function Js(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&xt(Me(ae.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,s]=qs(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(T){return r.get(T)||null}function c(T,N){r.set(T,N)}function E(T){r.delete(T)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(T,...N){if(process.env.NODE_ENV!=="production"&&(T.__VUE_I18N__=b),T.__VUE_I18N_SYMBOL__=o,T.provide(T.__VUE_I18N_SYMBOL__,b),k(N[0])){const A=N[0];b.__composerExtend=A.__composerExtend,b.__vueI18nExtend=A.__vueI18nExtend}let v=null;!t&&n&&(v=ao(T,b.global)),__VUE_I18N_FULL_INSTALL__&&js(T,b,...N),__VUE_I18N_LEGACY_API__&&t&&T.mixin($s(s,s.__composer,b));const y=T.unmount;if(T.unmount=()=>{v&&v(),b.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await Ds(T,b))throw te(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const D=Wt();if(t){const f=s;f.__enableEmitter&&f.__enableEmitter(D)}else{const f=s;f[Ce]&&f[Ce](D)}D.on("*",je)}},get global(){return s},dispose(){a.stop()},__instances:r,__getInstance:i,__setInstance:c,__deleteInstance:E};return b}function Qt(e={}){const t=Fe();if(t==null)throw te(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(W.NOT_INSTALLED);const n=Qs(t),r=zs(n),a=dr(t),s=Zs(e,a);if(s==="global")return Er(r,e,a),r;if(s==="parent"){let c=eo(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&fe(Me(ae.NOT_FOUND_PARENT_SCOPE)),c=r),c}const o=n;let i=o.__getInstance(t);if(i==null){const c=Q({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),i=Xt(c),o.__composerExtend&&(i[wt]=o.__composerExtend(i)),no(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&s==="local"&&fe(Me(ae.DUPLICATE_USE_I18N_CALLING));return i}function qs(e,t){const n=Y.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Vt(e)):n.run(()=>Xt(e));if(r==null)throw te(W.UNEXPECTED_ERROR);return[n,r]}function Qs(e){const t=Y.inject(e.isCE?Xs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}function Zs(e,t){return rt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function zs(e){return e.mode==="composition"?e.global:e.global.__composer}function eo(e,t,n=!1){let r=null;const a=t.root;let s=to(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(s);i!=null&&(r=i.__composer,n&&r&&!r[mr]&&(r=null))}if(r!=null||a===s)break;s=s.parent}return r}function to(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function no(e,t,n){let r=null;Y.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=Wt();const a=n;a[Ce]&&a[Ce](r),r.on("*",je)}},t),Y.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",je),a[He]&&a[He](),delete t.__VUE_I18N__),e.__deleteInstance(t);const s=a[wt];s&&(s(),delete a[wt])},t)}const ro=["locale","fallbackLocale","availableLocales"],wn=["t","rt","d","n","tm","te"];function ao(e,t){const n=Object.create(null);return ro.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw te(W.UNEXPECTED_ERROR);const o=Y.isRef(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,wn.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw te(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)}),()=>{delete e.config.globalProperties.$i18n,wn.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const so=Y.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qt),setup(e,t){const n=e.i18n||Qt({useScope:e.scope,__useComponent:!0});return Tr(e,t,lr,(...r)=>n[kt](...r))}}),Un=so;Ls();Ha(Oa);Ka($a);ja(Zn);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=be();e.__INTLIFY__=!0,Ia(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var Lr={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};var oo={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Ae={zhCn:"zh-cn",en:"en"},br={[Ae.zhCn]:Lr,[Ae.en]:oo},Zt=()=>(navigator?.language||navigator?.userLanguage)?.startsWith("zh")?Ae.zhCn:Ae.en,lo=()=>{const e=Zt()||Ae.en;return br[e]||Lr},io=(e={})=>Js({legacy:!1,locale:Zt(),fallbackLocale:Ae.zhCn,messages:e,globalInjection:!0}),uo=e=>(t,n={})=>e.global.t(t,n),Or=()=>{setTimeout(async()=>{Bn.ElMessageBox.confirm("语言设置已更新<br/>是否重新加载页面以应用新的语言设置","重新加载提醒",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,customClass:"language-change-confirm"}).then(()=>{window.location.reload()})},0)},co=()=>{window.addEventListener("languagechange",Or)},fo=()=>{window.removeEventListener("languagechange",Or)},_o=()=>{const{t:e}=Y.getCurrentInstance().appContext.config.globalProperties;return{t:e}};Bn.dayjs.en.weekStart=1;const mo=e=>{for(const t in bt)bt[t].install&&e.use(bt[t])},Eo={install:mo};exports.CustomToggle=Vn.CustomToggle;exports.CustomTitle=xn.CustomTitle;exports.COLUMN_TYPES=ye.COLUMN_TYPES;exports.MODES=ye.MODES;exports.PageContainer=ye.PageContainer;exports.CustomSidebar=F.layout;exports.MENU_COLOR_STRATEGY=F.MENU_COLOR_STRATEGY;exports.MENU_LOADING_STATES=F.MENU_LOADING_STATES;exports.MENU_TYPE=F.MENU_TYPE;exports.NODE_CLICK_TYPES=F.NODE_CLICK_TYPES;exports.SPECIAL_ROUTES=F.SPECIAL_ROUTES;exports.TREE_PROPS=F.TREE_PROPS;exports.collapseNodeKeys=F.collapseNodeKeys;exports.expandNodeKeys=F.expandNodeKeys;exports.findExpandPath=F.findExpandPath;exports.findExpandPathById=F.findExpandPathById;exports.findMenuByPath=F.findMenuByPath;exports.getFirstLeafMenu=F.getFirstLeafMenu;exports.getMenuIconColorById=F.getMenuIconColorById;exports.getParentNodeIdsById=F.getParentNodeIdsById;exports.isParentMenuActive=F.isParentMenuActive;exports.isParentRouteActive=F.isParentRouteActive;exports.isPathInMenu=F.isPathInMenu;exports.processMenuTreeWithLeaf=F.processMenuTreeWithLeaf;exports.transformMenuData=F.transformMenuData;exports.AvailableRangeSetting=$n.AvailableRangeSetting;exports.AvailableRangePreview=ge.AvailableRangePreview;exports.RANGE_TYPES=ge.RANGE_TYPES;exports.TagList=ge.TagList;exports.rangeOptions=ge.rangeOptions;exports.cancelLanguageChangeListener=fo;exports.createI18nInstance=io;exports.createTranslationHelper=uo;exports.default=Eo;exports.getBrowserLanguage=Zt;exports.getCurrentLocale=lo;exports.languageMap=Ae;exports.localeMap=br;exports.setupLanguageChangeListener=co;exports.useI18n=_o;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "china-mobile-international-custom-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"components",
|
|
6
6
|
"vue",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"axios": "^1.8.2",
|
|
107
107
|
"vue": "^3.5.26",
|
|
108
|
+
"color-message-lingyun-vue": "0.0.30",
|
|
108
109
|
"color-star-atom-style": "0.0.2",
|
|
109
110
|
"color-message-aibox-vue": "0.0.80",
|
|
110
|
-
"color-message-lingyun-vue": "0.0.30",
|
|
111
111
|
"color-star-custom-methods": "0.0.17",
|
|
112
112
|
"color-star-custom-components": "0.0.18"
|
|
113
113
|
},
|