lty-protocol 1.0.14 → 1.0.15
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/dist/components/{IpInput.d.ts → Input.vue.d.ts} +4 -3
- package/dist/components/IpInput.vue.d.ts +21 -0
- package/dist/index.d.ts +2 -2
- package/dist/lty-protocol.mjs +956 -952
- package/dist/lty-protocol.umd.js +6 -6
- package/dist/plugin.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/Input.d.ts +0 -10
package/dist/lty-protocol.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(X,
|
|
2
|
-
`)}function
|
|
3
|
-
`,Qr="\u2028",qr="\u2029";function Zr(e){const t=e;let n=0,r=1,s=1,a=0;const o=E=>t[E]===Jr&&t[E+1]===Z,i=E=>t[E]===Z,u=E=>t[E]===qr,p=E=>t[E]===Qr,I=E=>o(E)||i(E)||u(E)||p(E),b=()=>n,T=()=>r,A=()=>s,k=()=>a,C=E=>o(E)||u(E)||p(E)?Z:t[E],S=()=>C(n),f=()=>C(n+a);function m(){return a=0,I(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function h(){return o(n+a)&&a++,a++,t[n+a]}function d(){n=0,r=1,s=1,a=0}function O(E=0){a=E}function v(){const E=n+a;for(;E!==n;)m();a=0}return{index:b,line:T,column:A,peekOffset:k,charAt:C,currentChar:S,currentPeek:f,next:m,peek:h,reset:d,resetPeek:O,skipToPeek:v}}const pe=void 0,zr=".",dn="'",es="tokenizer";function ts(e,t={}){const n=t.location!==!1,r=Zr(e),s=()=>r.index(),a=()=>Br(r.line(),r.column(),r.index()),o=a(),i=s(),u={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},p=()=>u,{onError:I}=t;function b(l,c,g,...y){const B=p();if(c.column+=g,c.offset+=g,I){const K=n?Et(B.startLoc,c):null,U=ye(l,K,{domain:es,args:y});I(U)}}function T(l,c,g){l.endLoc=a(),l.currentType=c;const y={type:c};return n&&(y.loc=Et(l.startLoc,l.endLoc)),g!=null&&(y.value=g),y}const A=l=>T(l,13);function k(l,c){return l.currentChar()===c?(l.next(),c):(b(D.EXPECTED_TOKEN,a(),0,c),"")}function C(l){let c="";for(;l.currentPeek()===me||l.currentPeek()===Z;)c+=l.currentPeek(),l.peek();return c}function S(l){const c=C(l);return l.skipToPeek(),c}function f(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function m(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function h(l,c){const{currentType:g}=c;if(g!==2)return!1;C(l);const y=f(l.currentPeek());return l.resetPeek(),y}function d(l,c){const{currentType:g}=c;if(g!==2)return!1;C(l);const y=l.currentPeek()==="-"?l.peek():l.currentPeek(),B=m(y);return l.resetPeek(),B}function O(l,c){const{currentType:g}=c;if(g!==2)return!1;C(l);const y=l.currentPeek()===dn;return l.resetPeek(),y}function v(l,c){const{currentType:g}=c;if(g!==7)return!1;C(l);const y=l.currentPeek()===".";return l.resetPeek(),y}function E(l,c){const{currentType:g}=c;if(g!==8)return!1;C(l);const y=f(l.currentPeek());return l.resetPeek(),y}function M(l,c){const{currentType:g}=c;if(!(g===7||g===11))return!1;C(l);const y=l.currentPeek()===":";return l.resetPeek(),y}function $(l,c){const{currentType:g}=c;if(g!==9)return!1;const y=()=>{const K=l.currentPeek();return K==="{"?f(l.peek()):K==="@"||K==="|"||K===":"||K==="."||K===me||!K?!1:K===Z?(l.peek(),y()):ce(l,!1)},B=y();return l.resetPeek(),B}function q(l){C(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function ce(l,c=!0){const g=(B=!1,K="")=>{const U=l.currentPeek();return U==="{"||U==="@"||!U?B:U==="|"?!(K===me||K===Z):U===me?(l.peek(),g(!0,me)):U===Z?(l.peek(),g(!0,Z)):!0},y=g();return c&&l.resetPeek(),y}function Y(l,c){const g=l.currentChar();return g===pe?pe:c(g)?(l.next(),g):null}function Fe(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function Gt(l){return Y(l,Fe)}function Ht(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function Bt(l){return Y(l,Ht)}function xt(l){const c=l.charCodeAt(0);return c>=48&&c<=57}function Yt(l){return Y(l,xt)}function Kt(l){const c=l.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function ge(l){return Y(l,Kt)}function Ke(l){let c="",g="";for(;c=Yt(l);)g+=c;return g}function jt(l){let c="";for(;;){const g=l.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g===me||g===Z)if(ce(l))c+=g,l.next();else{if(q(l))break;c+=g,l.next()}else c+=g,l.next()}return c}function Xt(l){S(l);let c="",g="";for(;c=Bt(l);)g+=c;const y=l.currentChar();if(y&&y!=="}"&&y!==pe&&y!==me&&y!==Z&&y!==" "){const B=ct(l);return b(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g+B),g+B}return l.currentChar()===pe&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g}function Jt(l){S(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${Ke(l)}`):c+=Ke(l),l.currentChar()===pe&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),c}function Qt(l){return l!==dn&&l!==Z}function Lr(l){S(l),k(l,"'");let c="",g="";for(;c=Y(l,Qt);)c==="\\"?g+=qt(l):g+=c;const y=l.currentChar();return y===Z||y===pe?(b(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),y===Z&&(l.next(),k(l,"'")),g):(k(l,"'"),g)}function qt(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return it(l,c,4);case"U":return it(l,c,6);default:return b(D.UNKNOWN_ESCAPE_SEQUENCE,a(),0,c),""}}function it(l,c,g){k(l,c);let y="";for(let B=0;B<g;B++){const K=ge(l);if(!K){b(D.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${c}${y}${l.currentChar()}`);break}y+=K}return`\\${c}${y}`}function Zt(l){return l!=="{"&&l!=="}"&&l!==me&&l!==Z}function ct(l){S(l);let c="",g="";for(;c=Y(l,Zt);)g+=c;return g}function zt(l){let c="",g="";for(;c=Gt(l);)g+=c;return g}function en(l){const c=g=>{const y=l.currentChar();return y==="{"||y==="@"||y==="|"||y==="("||y===")"||!y||y===me?g:(g+=y,l.next(),c(g))};return c("")}function je(l){S(l);const c=k(l,"|");return S(l),c}function Xe(l,c){let g=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&b(D.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),l.next(),g=T(c,2,"{"),S(l),c.braceNest++,g;case"}":return c.braceNest>0&&c.currentType===2&&b(D.EMPTY_PLACEHOLDER,a(),0),l.next(),g=T(c,3,"}"),c.braceNest--,c.braceNest>0&&S(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),g;case"@":return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=ve(l,c)||A(c),c.braceNest=0,g;default:{let B=!0,K=!0,U=!0;if(q(l))return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return b(D.UNTERMINATED_CLOSING_BRACE,a(),0),c.braceNest=0,Je(l,c);if(B=h(l,c))return g=T(c,4,Xt(l)),S(l),g;if(K=d(l,c))return g=T(c,5,Jt(l)),S(l),g;if(U=O(l,c))return g=T(c,6,Lr(l)),S(l),g;if(!B&&!K&&!U)return g=T(c,12,ct(l)),b(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g.value),S(l),g;break}}return g}function ve(l,c){const{currentType:g}=c;let y=null;const B=l.currentChar();switch((g===7||g===8||g===11||g===9)&&(B===Z||B===me)&&b(D.INVALID_LINKED_FORMAT,a(),0),B){case"@":return l.next(),y=T(c,7,"@"),c.inLinked=!0,y;case".":return S(l),l.next(),T(c,8,".");case":":return S(l),l.next(),T(c,9,":");default:return q(l)?(y=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,y):v(l,c)||M(l,c)?(S(l),ve(l,c)):E(l,c)?(S(l),T(c,11,zt(l))):$(l,c)?(S(l),B==="{"?Xe(l,c)||y:T(c,10,en(l))):(g===7&&b(D.INVALID_LINKED_FORMAT,a(),0),c.braceNest=0,c.inLinked=!1,Je(l,c))}}function Je(l,c){let g={type:13};if(c.braceNest>0)return Xe(l,c)||A(c);if(c.inLinked)return ve(l,c)||A(c);switch(l.currentChar()){case"{":return Xe(l,c)||A(c);case"}":return b(D.UNBALANCED_CLOSING_BRACE,a(),0),l.next(),T(c,3,"}");case"@":return ve(l,c)||A(c);default:{if(q(l))return g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(ce(l))return T(c,0,jt(l));break}}return g}function tn(){const{currentType:l,offset:c,startLoc:g,endLoc:y}=u;return u.lastType=l,u.lastOffset=c,u.lastStartLoc=g,u.lastEndLoc=y,u.offset=s(),u.startLoc=a(),r.currentChar()===pe?T(u,13):Je(r,u)}return{nextToken:tn,currentOffset:s,currentPosition:a,context:p}}const ns="parser",rs=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ss(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 as(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,m,h,d,...O){const v=f.currentPosition();if(v.offset+=d,v.column+=d,n){const E=t?Et(h,v):null,M=ye(m,E,{domain:ns,args:O});n(M)}}function s(f,m,h){const d={type:f};return t&&(d.start=m,d.end=m,d.loc={start:h,end:h}),d}function a(f,m,h,d){t&&(f.end=m,f.loc&&(f.loc.end=h))}function o(f,m){const h=f.context(),d=s(3,h.offset,h.startLoc);return d.value=m,a(d,f.currentOffset(),f.currentPosition()),d}function i(f,m){const h=f.context(),{lastOffset:d,lastStartLoc:O}=h,v=s(5,d,O);return v.index=parseInt(m,10),f.nextToken(),a(v,f.currentOffset(),f.currentPosition()),v}function u(f,m){const h=f.context(),{lastOffset:d,lastStartLoc:O}=h,v=s(4,d,O);return v.key=m,f.nextToken(),a(v,f.currentOffset(),f.currentPosition()),v}function p(f,m){const h=f.context(),{lastOffset:d,lastStartLoc:O}=h,v=s(9,d,O);return v.value=m.replace(rs,ss),f.nextToken(),a(v,f.currentOffset(),f.currentPosition()),v}function I(f){const m=f.nextToken(),h=f.context(),{lastOffset:d,lastStartLoc:O}=h,v=s(8,d,O);return m.type!==11?(r(f,D.UNEXPECTED_EMPTY_LINKED_MODIFIER,h.lastStartLoc,0),v.value="",a(v,d,O),{nextConsumeToken:m,node:v}):(m.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,de(m)),v.value=m.value||"",a(v,f.currentOffset(),f.currentPosition()),{node:v})}function b(f,m){const h=f.context(),d=s(7,h.offset,h.startLoc);return d.value=m,a(d,f.currentOffset(),f.currentPosition()),d}function T(f){const m=f.context(),h=s(6,m.offset,m.startLoc);let d=f.nextToken();if(d.type===8){const O=I(f);h.modifier=O.node,d=O.nextConsumeToken||f.nextToken()}switch(d.type!==9&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),d=f.nextToken(),d.type===2&&(d=f.nextToken()),d.type){case 10:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=b(f,d.value||"");break;case 4:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=u(f,d.value||"");break;case 5:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=i(f,d.value||"");break;case 6:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=p(f,d.value||"");break;default:{r(f,D.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const O=f.context(),v=s(7,O.offset,O.startLoc);return v.value="",a(v,O.offset,O.startLoc),h.key=v,a(h,O.offset,O.startLoc),{nextConsumeToken:d,node:h}}}return a(h,f.currentOffset(),f.currentPosition()),{node:h}}function A(f){const m=f.context(),h=m.currentType===1?f.currentOffset():m.offset,d=m.currentType===1?m.endLoc:m.startLoc,O=s(2,h,d);O.items=[];let v=null;do{const $=v||f.nextToken();switch(v=null,$.type){case 0:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),O.items.push(o(f,$.value||""));break;case 5:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),O.items.push(i(f,$.value||""));break;case 4:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),O.items.push(u(f,$.value||""));break;case 6:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),O.items.push(p(f,$.value||""));break;case 7:{const q=T(f);O.items.push(q.node),v=q.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const E=m.currentType===1?m.lastOffset:f.currentOffset(),M=m.currentType===1?m.lastEndLoc:f.currentPosition();return a(O,E,M),O}function k(f,m,h,d){const O=f.context();let v=d.items.length===0;const E=s(1,m,h);E.cases=[],E.cases.push(d);do{const M=A(f);v||(v=M.items.length===0),E.cases.push(M)}while(O.currentType!==13);return v&&r(f,D.MUST_HAVE_MESSAGES_IN_PLURAL,h,0),a(E,f.currentOffset(),f.currentPosition()),E}function C(f){const m=f.context(),{offset:h,startLoc:d}=m,O=A(f);return m.currentType===13?O:k(f,h,d,O)}function S(f){const m=ts(f,Q({},e)),h=m.context(),d=s(0,h.offset,h.startLoc);return t&&d.loc&&(d.loc.source=f),d.body=C(m),e.onCacheKey&&(d.cacheKey=e.onCacheKey(f)),h.currentType!==13&&r(m,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,f[h.offset]||""),a(d,m.currentOffset(),m.currentPosition()),d}return{parse:S}}function de(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 os(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function pn(e,t){for(let n=0;n<e.length;n++)gt(e[n],t)}function gt(e,t){switch(e.type){case 1:pn(e.cases,t),t.helper("plural");break;case 2:pn(e.items,t);break;case 6:{gt(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 ls(e,t={}){const n=os(e);n.helper("normalize"),e.body&>(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function is(e){const t=e.body;return t.type===2?En(t):t.cases.forEach(n=>En(n)),e}function En(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=dt(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 cs="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 ye(D.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:cs,args:[e.type]})}delete e.type}const us="parser";function fs(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,a=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const i=()=>o;function u(C,S){o.code+=C}function p(C,S=!0){const f=S?r:"";u(s?f+" ".repeat(C):f)}function I(C=!0){const S=++o.indentLevel;C&&p(S)}function b(C=!0){const S=--o.indentLevel;C&&p(S)}function T(){p(o.indentLevel)}return{context:i,push:u,indent:I,deindent:b,newline:T,helper:C=>`_${C}`,needIndent:()=>o.needIndent}}function _s(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),De(e,t.key),t.modifier?(e.push(", "),De(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ms(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let a=0;a<s&&(De(e,t.items[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function ds(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let a=0;a<s&&(De(e,t.cases[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function ps(e,t){t.body?De(e,t.body):e.push("null")}function De(e,t){const{helper:n}=e;switch(t.type){case 0:ps(e,t);break;case 1:ds(e,t);break;case 2:ms(e,t);break;case 6:_s(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 ye(D.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:us,args:[t.type]})}}const Es=(e,t={})=>{const n=L(t.mode)?t.mode:"normal",r=L(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
4
|
-
`,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=fs(e,{filename:r,breakLineCode:s,needIndent:a});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(a),o.length>0&&(i.push(`const { ${dt(o.map(I=>`${I}: _${I}`),", ")} } = ctx`),i.newline()),i.push("return "),De(i,e),i.deindent(a),i.push("}"),delete e.helpers;const{code:u,map:p}=i.context();return{ast:e,code:u,map:p?p.toJSON():void 0}};function gs(e,t={}){const n=Q({},t),r=!!n.jit,s=!!n.minify,a=n.optimize==null?!0:n.optimize,i=as(n).parse(e);return r?(a&&is(i),s&&Pe(i),{ast:i,code:""}):(ls(i,n),Es(i,n))}function Ts(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(he().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return F(e)&&Tt(e)===0&&(ie(e,"b")||ie(e,"body"))}const gn=["b","body"];function Ns(e){return Te(e,gn)}const Tn=["c","cases"];function bs(e){return Te(e,Tn,[])}const Nn=["s","static"];function hs(e){return Te(e,Nn)}const bn=["i","items"];function Is(e){return Te(e,bn,[])}const hn=["t","type"];function Tt(e){return Te(e,hn)}const In=["v","value"];function rt(e,t){const n=Te(e,In);if(n!=null)return n;throw Ve(t)}const Ln=["m","modifier"];function Ls(e){return Te(e,Ln)}const On=["k","key"];function Os(e){const t=Te(e,On);if(t)return t;throw Ve(6)}function Te(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(ie(e,s)&&e[s]!=null)return e[s]}return n}const vn=[...gn,...Tn,...Nn,...bn,...On,...Ln,...In,...hn];function Ve(e){return new Error(`unhandled node type: ${e}`)}function Nt(e){return n=>vs(n,e)}function vs(e,t){const n=Ns(t);if(n==null)throw Ve(0);if(Tt(n)===1){const a=bs(n);return e.plural(a.reduce((o,i)=>[...o,Cn(e,i)],[]))}else return Cn(e,n)}function Cn(e,t){const n=hs(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Is(t).reduce((s,a)=>[...s,bt(e,a)],[]);return e.normalize(r)}}function bt(e,t){const n=Tt(t);switch(n){case 3:return rt(t,n);case 9:return rt(t,n);case 4:{const r=t;if(ie(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ie(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ve(n)}case 5:{const r=t;if(ie(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(ie(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw Ve(n)}case 6:{const r=t,s=Ls(r),a=Os(r);return e.linked(bt(e,a),s?bt(e,s):void 0,e.type)}case 7:return rt(t,n);case 8:return rt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Cs="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function As(e,t){t&&Xr(e)&&fe(ze(Cs,{source:e}))}const Ss=e=>e;let st=W();function ys(e,t={}){let n=!1;const r=t.onError||Kr;return t.onError=s=>{n=!0,r(s)},{...gs(e,t),detectError:n}}function Ps(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&L(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&As(e,n);const s=(t.onCacheKey||Ss)(e),a=st[s];if(a)return a;const{ast:o,detectError:i}=ys(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Nt(o);return i?u:st[s]=u}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=st[n];return r||(st[n]=Nt(e))}else return Nt(e)}}let We=null;function Ds(e){We=e}function ks(e,t,n){We&&We.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ms=Rs("function:translate");function Rs(e){return t=>We&&We.emit(e,t)}const z={INVALID_ARGUMENT:xr,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},Fs=24;function Ee(e){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:ws}:void 0)}const ws={[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?An(t.locale):An(e.locale)}let It;function An(e){if(L(e))return e;if(G(e)){if(e.resolvedOnce&&It!=null)return It;if(e.constructor.name==="Function"){const t=e();if(Wr(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 Us(e,t,n){return[...new Set([n,...x(t)?t:F(t)?Object.keys(t):L(t)?[t]:[n]])]}function Sn(e,t,n){const r=L(n)?n:Ge,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let a=s.__localeChainCache.get(r);if(!a){a=[];let o=[n];for(;x(o);)o=yn(a,o,t);const i=x(t)||!R(t)?t:t.default?t.default:null;o=L(i)?[i]:i,x(o)&&yn(a,o,!1),s.__localeChainCache.set(r,a)}return a}function yn(e,t,n){let r=!0;for(let s=0;s<t.length&&w(r);s++){const a=t[s];L(a)&&(r=$s(e,t[s],n))}return r}function $s(e,t,n){let r;const s=t.split("-");do{const a=s.join("-");r=Vs(e,a,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Vs(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(x(n)||R(n))&&n[s]&&(r=n[s])}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 Ws=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Gs(e){return Ws.test(e)}function Hs(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 Bs(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 xs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Gs(t)?Hs(t):"*"+t}function Ys(e){const t=[];let n=-1,r=0,s=0,a,o,i,u,p,I,b;const T=[];T[0]=()=>{o===void 0?o=i:o+=i},T[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},T[2]=()=>{T[0](),s++},T[3]=()=>{if(s>0)s--,r=4,T[0]();else{if(s=0,o===void 0||(o=xs(o),o===!1))return!1;T[1]()}};function A(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,i="\\"+k,T[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&A())){if(u=Bs(a),b=Ne[r],p=b[u]||b.l||8,p===8||(r=p[0],p[1]!==void 0&&(I=T[p[1]],I&&(i=a,I()===!1))))return;if(r===7)return t}}const Pn=new Map;function Ks(e,t){return F(e)?e[t]:null}function js(e,t){if(!F(e))return null;let n=Pn.get(t);if(n||(n=Ys(t),n&&Pn.set(t,n)),!n)return null;const r=n.length;let s=e,a=0;for(;a<r;){const o=n[a];if(vn.includes(o)&&se(s))return null;const i=s[o];if(i===void 0||G(s))return null;s=i,a++}return s}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},Xs=8,Js={[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 ze(Js[e],...t)}const Qs="11.2.8",at=-1,Ge="en-US",ot="",Dn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function qs(){return{upper:(e,t)=>t==="text"&&L(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&L(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&L(e)?Dn(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?Dn(e.children):e}}let kn;function Zs(e){kn=e}let Mn;function zs(e){Mn=e}let Rn;function ea(e){Rn=e}let Fn=null;const ta=e=>{Fn=e},na=()=>Fn;let wn=null;const Un=e=>{wn=e},ra=()=>wn;let $n=0;function sa(e={}){const t=G(e.onWarn)?e.onWarn:fe,n=L(e.version)?e.version:Qs,r=L(e.locale)||G(e.locale)?e.locale:Ge,s=G(r)?Ge:r,a=x(e.fallbackLocale)||R(e.fallbackLocale)||L(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=R(e.messages)?e.messages:Lt(s),i=R(e.datetimeFormats)?e.datetimeFormats:Lt(s),u=R(e.numberFormats)?e.numberFormats:Lt(s),p=Q(W(),e.modifiers,qs()),I=e.pluralRules||W(),b=G(e.missing)?e.missing:null,T=w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,A=w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,C=!!e.unresolving,S=G(e.postTranslation)?e.postTranslation:null,f=R(e.processor)?e.processor:null,m=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,d=G(e.messageCompiler)?e.messageCompiler:kn;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&_t(Ie(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const O=G(e.messageResolver)?e.messageResolver:Mn||Ks,v=G(e.localeFallbacker)?e.localeFallbacker:Rn||Us,E=F(e.fallbackContext)?e.fallbackContext:void 0,M=e,$=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,q=F(M.__numberFormatters)?M.__numberFormatters:new Map,ce=F(M.__meta)?M.__meta:{};$n++;const Y={version:n,cid:$n,locale:r,fallbackLocale:a,messages:o,modifiers:p,pluralRules:I,missing:b,missingWarn:T,fallbackWarn:A,fallbackFormat:k,unresolving:C,postTranslation:S,processor:f,warnHtmlMessage:m,escapeParameter:h,messageCompiler:d,messageResolver:O,localeFallbacker:v,fallbackContext:E,onWarn:t,__meta:ce};return Y.datetimeFormats=i,Y.numberFormats=u,Y.__datetimeFormatters=$,Y.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(Y.__v_emitter=M.__v_emitter!=null?M.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ks(Y,n,ce),Y}const Lt=e=>({[e]:W()});function lt(e,t){return e instanceof RegExp?e.test(t):e}function Vn(e,t){return e instanceof RegExp?e.test(t):e}function Ot(e,t,n,r,s){const{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(a!==null){const i=a(e,n,t,s);return L(i)?i:t}else return process.env.NODE_ENV!=="production"&&Vn(r,t)&&o(Ie(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function He(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Wn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function aa(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Wn(e,t[r]))return!0;return!1}const Gn=typeof Intl<"u",Hn={dateTimeFormat:Gn&&typeof Intl.DateTimeFormat<"u",numberFormat:Gn&&typeof Intl.NumberFormat<"u"};function Bn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Hn.dateTimeFormat)return a(Ie(ee.CANNOT_FORMAT_DATE)),ot;const[u,p,I,b]=vt(...t),T=w(I.missingWarn)?I.missingWarn:e.missingWarn,A=w(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,k=!!I.part,C=ht(e,I),S=o(e,s,C);if(!L(u)||u==="")return new Intl.DateTimeFormat(C,b).format(p);let f={},m,h=null,d=C,O=null;const v="datetime format";for(let $=0;$<S.length;$++){if(m=O=S[$],process.env.NODE_ENV!=="production"&&C!==m&<(A,u)&&a(Ie(ee.FALLBACK_TO_DATE_FORMAT,{key:u,target:m})),process.env.NODE_ENV!=="production"&&C!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:v,key:u,from:d,to:O,groupId:`${v}:${u}`})}if(f=n[m]||{},h=f[u],R(h))break;Ot(e,u,m,T,v),d=O}if(!R(h)||!L(m))return r?at:u;let E=`${m}__${u}`;et(b)||(E=`${E}__${JSON.stringify(b)}`);let M=i.get(E);return M||(M=new Intl.DateTimeFormat(m,Q({},h,b)),i.set(E,M)),k?M.formatToParts(p):M.format(p)}const xn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function vt(...e){const[t,n,r,s]=e,a=W();let o=W(),i;if(L(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const p=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();i=new Date(p);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(wr(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 L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{xn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Yn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function Kn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Hn.numberFormat)return a(Ie(ee.CANNOT_FORMAT_NUMBER)),ot;const[u,p,I,b]=Ct(...t),T=w(I.missingWarn)?I.missingWarn:e.missingWarn,A=w(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,k=!!I.part,C=ht(e,I),S=o(e,s,C);if(!L(u)||u==="")return new Intl.NumberFormat(C,b).format(p);let f={},m,h=null,d=C,O=null;const v="number format";for(let $=0;$<S.length;$++){if(m=O=S[$],process.env.NODE_ENV!=="production"&&C!==m&<(A,u)&&a(Ie(ee.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:m})),process.env.NODE_ENV!=="production"&&C!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:v,key:u,from:d,to:O,groupId:`${v}:${u}`})}if(f=n[m]||{},h=f[u],R(h))break;Ot(e,u,m,T,v),d=O}if(!R(h)||!L(m))return r?at:u;let E=`${m}__${u}`;et(b)||(E=`${E}__${JSON.stringify(b)}`);let M=i.get(E);return M||(M=new Intl.NumberFormat(m,Q({},h,b)),i.set(E,M)),k?M.formatToParts(p):M.format(p)}const jn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ct(...e){const[t,n,r,s]=e,a=W();let o=W();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{jn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Xn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const oa=e=>e,la=e=>"",ia="text",ca=e=>e.length===0?"":dt(e),ua=Gr;function Jn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function fa(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 _a(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ma(e={}){const t=e.locale,n=fa(e),r=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?e.pluralRules[t]:Jn,s=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?Jn:void 0,a=f=>f[r(n,f.length,s)],o=e.list||[],i=f=>o[f],u=e.named||W();J(e.pluralIndex)&&_a(n,u);const p=f=>u[f];function I(f,m){const h=G(e.messages)?e.messages(f,!!m):F(e.messages)?e.messages[f]:!1;return h||(e.parent?e.parent.message(f):la)}const b=f=>e.modifiers?e.modifiers[f]:oa,T=R(e.processor)&&G(e.processor.normalize)?e.processor.normalize:ca,A=R(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:ua,k=R(e.processor)&&L(e.processor.type)?e.processor.type:ia,S={list:i,named:p,plural:a,linked:(f,...m)=>{const[h,d]=m;let O="text",v="";m.length===1?F(h)?(v=h.modifier||v,O=h.type||O):L(h)&&(v=h||v):m.length===2&&(L(h)&&(v=h||v),L(d)&&(O=d||O));const E=I(f,!0)(S),M=O==="vnode"&&x(E)&&v?E[0]:E;return v?b(v)(M,O):M},message:I,type:k,interpolate:A,normalize:T,values:Q(W(),o,u)};return S}const Qn=()=>"",ae=e=>G(e);function qn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:a,fallbackLocale:o,messages:i}=e,[u,p]=At(...t),I=w(p.missingWarn)?p.missingWarn:e.missingWarn,b=w(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,T=w(p.escapeParameter)?p.escapeParameter:e.escapeParameter,A=!!p.resolvedMessage,k=L(p.default)||w(p.default)?w(p.default)?a?u:()=>u:p.default:n?a?u:()=>u:null,C=n||k!=null&&(L(k)||G(k)),S=ht(e,p);T&&da(p);let[f,m,h]=A?[u,S,i[S]||W()]:Zn(e,u,S,o,b,I),d=f,O=u;if(!A&&!(L(d)||se(d)||ae(d))&&C&&(d=k,O=d),!A&&(!(L(d)||se(d)||ae(d))||!L(m)))return s?at:u;if(process.env.NODE_ENV!=="production"&&L(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 '${u}'.`),u;let v=!1;const E=()=>{v=!0},M=ae(d)?d:zn(e,u,m,d,O,E);if(v)return d;const $=Ta(e,m,h,p),q=ma($),ce=pa(e,M,q);let Y=r?r(ce,u):ce;if(T&&L(Y)&&(Y=$r(Y)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Fe={timestamp:Date.now(),key:L(u)?u:ae(d)?d.key:"",locale:m||(ae(d)?d.locale:""),format:L(d)?d:ae(d)?d.source:"",message:Y};Fe.meta=Q({},e.__meta,na()||{}),Ms(Fe)}return Y}function da(e){x(e.list)?e.list=e.list.map(t=>L(t)?un(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{L(e.named[t])&&(e.named[t]=un(e.named[t]))})}function Zn(e,t,n,r,s,a){const{messages:o,onWarn:i,messageResolver:u,localeFallbacker:p}=e,I=p(e,r,n);let b=W(),T,A=null,k=n,C=null;const S="translate";for(let f=0;f<I.length;f++){if(T=C=I[f],process.env.NODE_ENV!=="production"&&n!==T&&!Wn(n,T)&<(s,t)&&i(Ie(ee.FALLBACK_TO_TRANSLATE,{key:t,target:T})),process.env.NODE_ENV!=="production"&&n!==T){const O=e.__v_emitter;O&&O.emit("fallback",{type:S,key:t,from:k,to:C,groupId:`${S}:${t}`})}b=o[T]||W();let m=null,h,d;if(process.env.NODE_ENV!=="production"&&le&&(m=window.performance.now(),h="intlify-message-resolve-start",d="intlify-message-resolve-end",re&&re(h)),(A=u(b,t))===null&&(A=b[t]),process.env.NODE_ENV!=="production"&&le){const O=window.performance.now(),v=e.__v_emitter;v&&m&&A&&v.emit("message-resolve",{type:"message-resolve",key:t,message:A,time:O-m,groupId:`${S}:${t}`}),h&&d&&re&&be&&(re(d),be("intlify message resolve",h,d))}if(L(A)||se(A)||ae(A))break;if(!aa(T,I)){const O=Ot(e,t,T,a,S);O!==t&&(A=O)}k=C}return[A,T,b]}function zn(e,t,n,r,s,a){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ae(r)){const T=r;return T.locale=T.locale||n,T.key=T.key||t,T}if(o==null){const T=(()=>r);return T.locale=n,T.key=t,T}let u=null,p,I;process.env.NODE_ENV!=="production"&&le&&(u=window.performance.now(),p="intlify-message-compilation-start",I="intlify-message-compilation-end",re&&re(p));const b=o(r,Ea(e,n,s,r,i,a));if(process.env.NODE_ENV!=="production"&&le){const T=window.performance.now(),A=e.__v_emitter;A&&u&&A.emit("message-compilation",{type:"message-compilation",message:r,time:T-u,groupId:`translate:${t}`}),p&&I&&re&&be&&(re(I),be("intlify message compilation",p,I))}return b.locale=n,b.key=t,b.source=r,b}function pa(e,t,n){let r=null,s,a;process.env.NODE_ENV!=="production"&&le&&(r=window.performance.now(),s="intlify-message-evaluation-start",a="intlify-message-evaluation-end",re&&re(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&le){const i=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),s&&a&&re&&be&&(re(a),be("intlify message evaluation",s,a))}return o}function At(...e){const[t,n,r]=e,s=W();if(!L(t)&&!J(t)&&!ae(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const a=J(t)?String(t):(ae(t),t);return J(n)?s.plural=n:L(n)?s.default=n:R(n)&&!et(n)?s.named=n:x(n)&&(s.list=n),J(r)?s.plural=r:L(r)?s.default=r:R(r)&&Q(s,r),[a,s]}function Ea(e,t,n,r,s,a){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(a&&a(o),process.env.NODE_ENV!=="production"){const i=ga(r),u=`Message compilation error: ${o.message}`,p=o.location&&i&&Hr(i,o.location.start.offset,o.location.end.offset),I=e.__v_emitter;I&&i&&I.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(p?`${u}
|
|
5
|
-
${
|
|
6
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[oe.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 ze(Pa[e],...t)}function xe(e){if(!F(e)||se(e))return e;for(const t in e)if(ie(e,t))if(!t.includes("."))F(e[t])&&xe(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,a=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&fe(Me(oe.IGNORE_OBJ_FLATTEN,{key:n[o]})),a=!0;break}s=s[n[o]]}if(a||(se(s)?vn.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!se(s)){const o=s[n[r]];F(o)&&xe(o)}}return e}function Mt(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:a}=t,o=R(n)?n:x(r)?W():{[e]:W()};if(x(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:p}=i;u?(o[u]=o[u]||W(),nt(p,o[u])):nt(p,o)}else L(i)&&nt(JSON.parse(i),o)}),s==null&&a)for(const i in o)ie(o,i)&&xe(o[i]);return o}function rr(e){return e.type}function sr(e,t,n){let r=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(r=Mt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(F(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function ar(e){return P.createVNode(P.Text,null,e,0)}function Re(){const e="currentInstance";return e in ft?ft[e]:ft.getCurrentInstance()}const or="__INTLIFY_META__",lr=()=>[],Da=()=>!1;let ir=0;function cr(e){return((t,n,r,s)=>e(n,r,Re()||void 0,s))}const ka=()=>{const e=Re();let t=null;return e&&(t=rr(e)[or])?{[or]:t}:null};function Rt(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,a=le?P.ref:P.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const i=a(t&&o?t.locale.value:L(e.locale)?e.locale:Ge),u=a(t&&o?t.fallbackLocale.value:L(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),p=a(Mt(i.value,e)),I=a(R(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),b=a(R(e.numberFormats)?e.numberFormats:{[i.value]:{}});let T=t?t.missingWarn:w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,A=t?t.fallbackWarn:w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,C=!!e.fallbackFormat,S=G(e.missing)?e.missing:null,f=G(e.missing)?cr(e.missing):null,m=G(e.postTranslation)?e.postTranslation:null,h=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,d=!!e.escapeParameter;const O=t?t.modifiers:R(e.modifiers)?e.modifiers:{};let v=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&Un(null);const _={version:Aa,locale:i.value,fallbackLocale:u.value,messages:p.value,modifiers:O,pluralRules:v,missing:f===null?void 0:f,missingWarn:T,fallbackWarn:A,fallbackFormat:C,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=I.value,_.numberFormats=b.value,_.__datetimeFormatters=R(E)?E.__datetimeFormatters:void 0,_.__numberFormatters=R(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=R(E)?E.__v_emitter:void 0);const N=sa(_);return r&&Un(N),N})(),He(E,i.value,u.value);function $(){return[i.value,u.value,p.value,I.value,b.value]}const q=P.computed({get:()=>i.value,set:_=>{E.locale=_,i.value=_}}),ce=P.computed({get:()=>u.value,set:_=>{E.fallbackLocale=_,u.value=_,He(E,i.value,_)}}),Y=P.computed(()=>p.value),Fe=P.computed(()=>I.value),Gt=P.computed(()=>b.value);function Ht(){return G(m)?m:null}function Bt(_){m=_,E.postTranslation=_}function xt(){return S}function Yt(_){_!==null&&(f=cr(_)),S=_,E.missing=f}function Kt(_,N){return _!=="translate"||!N.resolvedMessage}const ge=(_,N,V,j,Ce,ut)=>{$();let we;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?ra():void 0),we=_(E)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(V!=="translate exists"&&J(we)&&we===at||V==="translate exists"&&!we){const[Ae,_o]=N();if(process.env.NODE_ENV!=="production"&&t&&L(Ae)&&Kt(V,_o)&&(k&&(lt(A,Ae)||Vn(T,Ae))&&fe(Me(oe.FALLBACK_TO_ROOT,{key:Ae,type:V})),process.env.NODE_ENV!=="production")){const{__v_emitter:Or}=E;Or&&k&&Or.emit("fallback",{type:V,key:Ae,to:"global",groupId:`${V}:${Ae}`})}return t&&k?j(t):Ce(Ae)}else{if(ut(we))return we;throw te(H.UNEXPECTED_RETURN_TYPE)}};function Ke(..._){return ge(N=>Reflect.apply(qn,null,[N,..._]),()=>At(..._),"translate",N=>Reflect.apply(N.t,N,[..._]),N=>N,N=>L(N))}function jt(..._){const[N,V,j]=_;if(j&&!F(j))throw te(H.INVALID_ARGUMENT);return Ke(N,V,Q({resolvedMessage:!0},j||{}))}function Xt(..._){return ge(N=>Reflect.apply(Bn,null,[N,..._]),()=>vt(..._),"datetime format",N=>Reflect.apply(N.d,N,[..._]),()=>ot,N=>L(N)||x(N))}function Jt(..._){return ge(N=>Reflect.apply(Kn,null,[N,..._]),()=>Ct(..._),"number format",N=>Reflect.apply(N.n,N,[..._]),()=>ot,N=>L(N)||x(N))}function Qt(_){return _.map(N=>L(N)||J(N)||w(N)?ar(String(N)):N)}const qt={normalize:Qt,interpolate:_=>_,type:"vnode"};function it(..._){return ge(N=>{let V;const j=N;try{j.processor=qt,V=Reflect.apply(qn,null,[j,..._])}finally{j.processor=null}return V},()=>At(..._),"translate",N=>N[yt](..._),N=>[ar(N)],N=>x(N))}function Zt(..._){return ge(N=>Reflect.apply(Kn,null,[N,..._]),()=>Ct(..._),"number format",N=>N[Dt](..._),lr,N=>L(N)||x(N))}function ct(..._){return ge(N=>Reflect.apply(Bn,null,[N,..._]),()=>vt(..._),"datetime format",N=>N[Pt](..._),lr,N=>L(N)||x(N))}function zt(_){v=_,E.pluralRules=v}function en(_,N){return ge(()=>{if(!_)return!1;const V=L(N)?N:i.value,j=ve(V),Ce=E.messageResolver(j,_);return se(Ce)||ae(Ce)||L(Ce)},()=>[_],"translate exists",V=>Reflect.apply(V.te,V,[_,N]),Da,V=>w(V))}function je(_){let N=null;const V=Sn(E,u.value,i.value);for(let j=0;j<V.length;j++){const Ce=p.value[V[j]]||{},ut=E.messageResolver(Ce,_);if(ut!=null){N=ut;break}}return N}function Xe(_){const N=je(_);return N??(t?t.tm(_)||{}:{})}function ve(_){return p.value[_]||{}}function Je(_,N){if(s){const V={[_]:N};for(const j in V)ie(V,j)&&xe(V[j]);N=V[_]}p.value[_]=N,E.messages=p.value}function tn(_,N){p.value[_]=p.value[_]||{};const V={[_]:N};if(s)for(const j in V)ie(V,j)&&xe(V[j]);N=V[_],nt(N,p.value[_]),E.messages=p.value}function l(_){return I.value[_]||{}}function c(_,N){I.value[_]=N,E.datetimeFormats=I.value,Yn(E,_,N)}function g(_,N){I.value[_]=Q(I.value[_]||{},N),E.datetimeFormats=I.value,Yn(E,_,N)}function y(_){return b.value[_]||{}}function B(_,N){b.value[_]=N,E.numberFormats=b.value,Xn(E,_,N)}function K(_,N){b.value[_]=Q(b.value[_]||{},N),E.numberFormats=b.value,Xn(E,_,N)}ir++,t&&le&&(P.watch(t.locale,_=>{o&&(i.value=_,E.locale=_,He(E,i.value,u.value))}),P.watch(t.fallbackLocale,_=>{o&&(u.value=_,E.fallbackLocale=_,He(E,i.value,u.value))}));const U={id:ir,locale:q,fallbackLocale:ce,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,He(E,i.value,u.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:Y,get modifiers(){return O},get pluralRules(){return v||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(_){T=_,E.missingWarn=T},get fallbackWarn(){return A},set fallbackWarn(_){A=_,E.fallbackWarn=A},get fallbackRoot(){return k},set fallbackRoot(_){k=_},get fallbackFormat(){return C},set fallbackFormat(_){C=_,E.fallbackFormat=C},get warnHtmlMessage(){return h},set warnHtmlMessage(_){h=_,E.warnHtmlMessage=_},get escapeParameter(){return d},set escapeParameter(_){d=_,E.escapeParameter=_},t:Ke,getLocaleMessage:ve,setLocaleMessage:Je,mergeLocaleMessage:tn,getPostTranslationHandler:Ht,setPostTranslationHandler:Bt,getMissingHandler:xt,setMissingHandler:Yt,[tr]:zt};return U.datetimeFormats=Fe,U.numberFormats=Gt,U.rt=jt,U.te=en,U.tm=Xe,U.d=Xt,U.n=Jt,U.getDateTimeFormat=l,U.setDateTimeFormat=c,U.mergeDateTimeFormat=g,U.getNumberFormat=y,U.setNumberFormat=B,U.mergeNumberFormat=K,U[nr]=n,U[yt]=it,U[Pt]=ct,U[Dt]=Zt,process.env.NODE_ENV!=="production"&&(U[Le]=_=>{E.__v_emitter=_},U[Be]=()=>{E.__v_emitter=void 0}),U}const ur="vue-i18n: composer properties",Ft={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ma={"vue-i18n-resource-inspector":"Search for scopes ..."},Ra={"vue-i18n-timeline":16764185};let wt;async function Fa(e,t){return new Promise((n,r)=>{try{Ca({id:"vue-devtools-plugin-vue-i18n",label:Ft["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:[ur],app:e},s=>{wt=s,s.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{wa(o,i,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&_r(i,o.__VUE_I18N__):_r(i,o.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Ft["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ma["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ga(o,t)});const a=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Ba(o,t),o.nodeId==="global"){if(!a.has(o.app)){const[i]=await s.getComponentInstances(o.app);a.set(o.app,i)}s.highlightElement(a.get(o.app))}else{const i=Ha(o.nodeId,t);i&&s.highlightElement(i)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ya(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Ft["vue-i18n-timeline"],color:Ra["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function fr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function wa(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const s={label:`i18n (${fr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function _r(e,t){const n=ur;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:Ut(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 Ut(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];G(r)&&"source"in r?t[n]=Wa(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:F(r)?t[n]=Ut(r):t[n]=r}),t}const Ua={"<":"<",">":">",'"':""","&":"&"};function $a(e){return e.replace(/[<>"&]/g,Va)}function Va(e){return Ua[e]||e}function Wa(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${$a(e.source)}")`:"(?)"}`}}}function Ga(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,s]of t.__instances){const a=t.mode==="composition"?s:s.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${fr(r)} Scope`})}}function Ha(e,t){let n=null;if(e!=="global"){for(const[r,s]of t.__instances.entries())if(s.id.toString()===e){n=r;break}}return n}function mr(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 Ba(e,t){const n=mr(e.nodeId,t);return n&&(e.state=xa(n)),null}function xa(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 s="Locale messages info",a=[{type:s,key:"messages",editable:!1,value:Ut(e.messages.value)}];t[s]=a;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const u="Datetime formats info",p=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=p}return t}function Ye(e,t){if(wt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),wt.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 Ya(e,t){const n=mr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&L(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(L(e.state.value)||x(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ka(e){const t=L(e.locale)?e.locale:Ge,n=L(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=G(e.missing)?e.missing:void 0,s=w(e.silentTranslationWarn)||Se(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=w(e.silentFallbackWarn)||Se(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=R(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,I=G(e.postTranslation)?e.postTranslation:void 0,b=L(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,T=!!e.escapeParameterHtml,A=w(e.sync)?e.sync:!0;let k=e.messages;if(R(e.sharedMessages)){const O=e.sharedMessages;k=Object.keys(O).reduce((E,M)=>{const $=E[M]||(E[M]={});return Q($,O[M]),E},k||{})}const{__i18n:C,__root:S,__injectWithOption:f}=e,m=e.datetimeFormats,h=e.numberFormats,d=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:d,datetimeFormats:m,numberFormats:h,missing:r,missingWarn:s,fallbackWarn:a,fallbackRoot:o,fallbackFormat:i,modifiers:u,pluralRules:p,postTranslation:I,warnHtmlMessage:b,escapeParameter:T,messageResolver:e.messageResolver,inheritLocale:A,__i18n:C,__root:S,__injectWithOption:f}}function $t(e={}){const t=Rt(Ka(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},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(s){t.setMissingHandler(s)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=w(s)?!s:s},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=w(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,a){return t.te(s,a)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,a){t.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){t.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,a){t.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){t.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,a){t.setNumberFormat(s,a)},mergeNumberFormat(s,a){t.mergeNumberFormat(s,a)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const a=t;a[Le]&&a[Le](s)},r.__disableEmitter=()=>{const s=t;s[Be]&&s[Be]()}),r}function ja(e,t,n){return{beforeCreate(){const r=Re();if(!r)throw te(H.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const a=s.i18n;if(s.__i18n&&(a.__i18n=s.__i18n),a.__root=t,this===this.$root)this.$i18n=dr(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=$t(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=dr(e,s);else{this.$i18n=$t({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&sr(t,s,s),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Re();if(!r)return;const s=this.$i18n;r.__VUE_I18N__=s.__composer;const a=this.__v_emitter=pt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",Ye)}},unmounted(){const r=Re();if(!r)throw te(H.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ye),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function dr(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[tr](t.pluralizationRules||e.pluralizationRules);const n=Mt(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 Vt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Xa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===P.Fragment?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},W())}function pr(){return P.Fragment}const Er=P.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},Vt),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Wt({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(b=>b[0]!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=L(e.plural)?+e.plural:e.plural);const i=Xa(t,a),u=s[yt](e.keypath,i,o),p=Q(W(),r),I=L(e.tag)||F(e.tag)?e.tag:pr();return P.h(I,p,u)}}});function Ja(e){return x(e)&&!L(e[0])}function gr(e,t,n,r){const{slots:s,attrs:a}=t;return()=>{const o={part:!0};let i=W();e.locale&&(o.locale=e.locale),L(e.format)?o.key=e.format:F(e.format)&&(L(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((T,A)=>n.includes(A)?Q(W(),T,{[A]:e.format[A]}):T,W()));const u=r(e.value,o,i);let p=[o.key];x(u)?p=u.map((T,A)=>{const k=s[T.type],C=k?k({[T.type]:T.value,index:A,parts:u}):[T.value];return Ja(C)&&(C[0].key=`${T.type}-${A}`),C}):L(u)&&(p=[u]);const I=Q(W(),a),b=L(e.tag)||F(e.tag)?e.tag:pr();return P.h(b,I,p)}}const Tr=P.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},Vt),setup(e,t){const n=e.i18n||Wt({useScope:e.scope,__useComponent:!0});return gr(e,t,jn,(...r)=>n[Dt](...r))}});function Qa(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 qa(e){const t=o=>{process.env.NODE_ENV!=="production"&&_t(Me(oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:u}=o;if(!i||!i.$)throw te(H.UNEXPECTED_ERROR);const p=Qa(e,i.$),I=Nr(u);return[Reflect.apply(p.t,p,[...br(I)]),p]};return{created:(o,i)=>{const[u,p]=t(i);le&&e.global===p&&(o.__i18nWatcher=P.watch(p.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=p,o.textContent=u},unmounted:o=>{le&&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 u=o.__composer,p=Nr(i);o.textContent=Reflect.apply(u.t,u,[...br(p)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function Nr(e){if(L(e))return{path:e};if(R(e)){if(!("path"in e))throw te(H.REQUIRED_VALUE,"path");return e}else throw te(H.INVALID_VALUE)}function br(e){const{path:t,locale:n,args:r,choice:s,plural:a}=e,o={},i=r||{};return L(n)&&(o.locale=n),J(s)&&(o.plural=s),J(a)&&(o.plural=a),[t,i,o]}function Za(e,t,...n){const r=R(n[0])?n[0]:{};(!w(r.globalInstall)||r.globalInstall)&&([Er.name,"I18nT"].forEach(a=>e.component(a,Er)),[Tr.name,"I18nN"].forEach(a=>e.component(a,Tr)),[Ir.name,"I18nD"].forEach(a=>e.component(a,Ir))),e.directive("t",qa(t))}const za=_e("global-vue-i18n");function eo(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&_t(Me(oe.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,a]=to(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(b){return r.get(b)||null}function u(b,T){r.set(b,T)}function p(b){r.delete(b)}const I={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(b,...T){if(process.env.NODE_ENV!=="production"&&(b.__VUE_I18N__=I),b.__VUE_I18N_SYMBOL__=o,b.provide(b.__VUE_I18N_SYMBOL__,I),R(T[0])){const C=T[0];I.__composerExtend=C.__composerExtend,I.__vueI18nExtend=C.__vueI18nExtend}let A=null;!t&&n&&(A=co(b,I.global)),__VUE_I18N_FULL_INSTALL__&&Za(b,I,...T),__VUE_I18N_LEGACY_API__&&t&&b.mixin(ja(a,a.__composer,I));const k=b.unmount;if(b.unmount=()=>{A&&A(),I.dispose(),k()},process.env.NODE_ENV!=="production"){if(!await Fa(b,I))throw te(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const S=pt();if(t){const f=a;f.__enableEmitter&&f.__enableEmitter(S)}else{const f=a;f[Le]&&f[Le](S)}S.on("*",Ye)}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:i,__setInstance:u,__deleteInstance:p};return I}function Wt(e={}){const t=Re();if(t==null)throw te(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(H.NOT_INSTALLED);const n=no(t),r=so(n),s=rr(t),a=ro(e,s);if(a==="global")return sr(r,e,s),r;if(a==="parent"){let u=ao(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&fe(Me(oe.NOT_FOUND_PARENT_SCOPE)),u=r),u}const o=n;let i=o.__getInstance(t);if(i==null){const u=Q({},e);"__i18n"in s&&(u.__i18n=s.__i18n),r&&(u.__root=r),i=Rt(u),o.__composerExtend&&(i[kt]=o.__composerExtend(i)),lo(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&a==="local"&&fe(Me(oe.DUPLICATE_USE_I18N_CALLING));return i}function to(e,t){const n=P.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>$t(e)):n.run(()=>Rt(e));if(r==null)throw te(H.UNEXPECTED_ERROR);return[n,r]}function no(e){const t=P.inject(e.isCE?za:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}function ro(e,t){return et(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function so(e){return e.mode==="composition"?e.global:e.global.__composer}function ao(e,t,n=!1){let r=null;const s=t.root;let a=oo(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(a);i!=null&&(r=i.__composer,n&&r&&!r[nr]&&(r=null))}if(r!=null||s===a)break;a=a.parent}return r}function oo(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function lo(e,t,n){let r=null;P.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=pt();const s=n;s[Le]&&s[Le](r),r.on("*",Ye)}},t),P.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ye),s[Be]&&s[Be](),delete t.__VUE_I18N__),e.__deleteInstance(t);const a=s[kt];a&&(a(),delete s[kt])},t)}const io=["locale","fallbackLocale","availableLocales"],hr=["t","rt","d","n","tm","te"];function co(e,t){const n=Object.create(null);return io.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a)throw te(H.UNEXPECTED_ERROR);const o=P.isRef(a.value)?{get(){return a.value.value},set(i){a.value.value=i}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,hr.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a||!a.value)throw te(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,a)}),()=>{delete e.config.globalProperties.$i18n,hr.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Ir=P.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Vt),setup(e,t){const n=e.i18n||Wt({useScope:e.scope,__useComponent:!0});return gr(e,t,xn,(...r)=>n[Pt](...r))}});if(Sa(),Zs(Ps),zs(js),ea(Sn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=he();e.__INTLIFY__=!0,Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Oe=eo({legacy:!1,locale:"zh",fallbackLocale:"en",messages:{zh:{name:"名称",supplier:"供应商",version:"版本",description:"描述",category:"类别",general:"通用",ioMapping:"I/O映射",modbusSlaveChannel:"Modbus从站通道",status:"状态",ethernet:"以太网",modbusTcpServer:"Modbus TCP服务器",modbusTcpClient:"Modbus TCP客户端",modbusTCPSlaveDevice:"Modbus TCP从站设备",company:"成都数字创新科技有限公司",descriptionMap:{ethernet:"一种在以太网上充当Modbus服务器的设备。",modbusTcpServer:"一种在以太网上充当Modbus TCP服务器的设备。",modbusTcpClient:"一种在以太网上充当Modbus TCP客户端的设备。",modbusTCPSlaveDevice:"一种在以太网上充当Modbus TCP从站设备。"},netInterface:"网络接口",ipAddress:"IP地址",subnetMask:"子网掩码",defaultGateway:"默认网关",adaptedOSConfiguration:"适配操作系统配置",busCycleTask:"总线周期任务",defaultTask:"使用父总线循环设置",responseTimeout:"响应超时(ms)",socketTimeout:"Socket超时(ms)",reconnect:"自动重连",slaveIpAddress:"从站IP地址",port:"端口",watchDog:" 看门狗",slavePort:"从站端口",bindToAdapter:"绑定到适配器",holdingRegister:"保持寄存器",writable:"可写入",inputRegister:"输入寄存器",discreteBitArea:"离散位区域",coil:"线圈",discreteInput:"离散输入",dataModel:"数据模型",startAddress:"起始地址"},en:{name:"Name",supplier:"Supplier",version:"Version",description:"Description",category:"Category",general:"General",ioMapping:"I/O Mapping",modbusSlaveChannel:"Modbus Slave Channel",status:"Status",ethernet:"Ethernet",modbusTcpServer:"Modbus TCP Server",modbusTcpClient:"Modbus TCP Client",modbusTCPSlaveDevice:"Modbus TCP Slave Device",company:"Chengdu AIOSYS Innovation Technology Co., Ltd.",descriptionMap:{ethernet:"A device that works as a Modbus Server on Ethernet.",modbusTcpServer:"A device that works as a Modbus TCP Server.",modbusTcpClient:"A device that works as a Modbus TCP Client.",modbusTCPSlaveDevice:"A device that works as a Modbus TCP Slave Device."},netInterface:"Network Interface",ipAddress:"IP Address",subnetMask:"Subnet Mask",defaultGateway:"Default Gateway",adaptedOSConfiguration:"Adapted OS Configuration",busCycleTask:"Bus Cycle Task",defaultTask:"Use Parent Bus Cycle Setting",responseTimeout:"Response Timeout(ms)",socketTimeout:"Socket Timeout(ms)",reconnect:"Reconnect",slaveIpAddress:"Slave IP Address",port:"Port",watchDog:"Watch Dog",slavePort:"Slave Port",bindToAdapter:"Bind to Adapter",holdingRegister:"Holding Register",writable:"Writable",inputRegister:"Input Register",discreteBitArea:"Discrete Bit Area",coil:"Coil",discreteInput:"Discrete Input",dataModel:"Data Model",startAddress:"Start Address"}}});typeof window<"u"&&(window.$t=Oe.global.t.bind(Oe.global),Object.defineProperty(window,"$locale",{get(){return typeof Oe.global.locale=="string"?Oe.global.locale:Oe.global.locale.value},set(e){Oe.global.locale=e}})),P.createApp(kr).use(Oe).mount("#app");const uo=[rn,sn],fo={install(e){uo.forEach(t=>{e.component(t.name,t)})}};X.Button2=sn,X.EthernetProtocolItem=Ue,X.Input=an,X.IpInput=Ar,X.ModbusTCPClientProtocolItem=qe,X.ModbusTCPServerProtocolItem=Qe,X.ModbusTCPSlaveDeviceProtocolItem=Ze,X.MyButton=rn,X.MyLibPlugin=Sr,X.ProtocolCollection=on,X.ProtocolItem=ne,X.ProtocolType=ue,X.default=fo,X.protocolMap=$e,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
1
|
+
(function(X,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],O):(X=typeof globalThis<"u"?globalThis:X||self,O(X["lty-protocol"]={},X.Vue))})(this,(function(X,O){"use strict";function vr(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 _t=vr(O),Cr=O.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(O.openBlock(),O.createElementBlock("button",{class:"my-btn",onClick:r},[O.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),Qe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},rn=Qe(Cr,[["__scopeId","data-v-c654f959"]]),sn=Qe(O.defineComponent({name:"MyButton",__name:"button2",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(O.openBlock(),O.createElementBlock("button",{class:"my-btn",onClick:r},[O.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-1477cfc3"]]),Ar=O.defineComponent({name:"Input",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const n=O.inject("UIComponents").Input,r=O.ref(e.modelValue);return O.watch(()=>e.modelValue,s=>r.value=s),O.watch(r,s=>t("update:modelValue",s)),{Comp:n,internalValue:r}}});function Sr(e,t,n,r,s,a){return O.openBlock(),O.createBlock(O.resolveDynamicComponent(e.Comp),{modelValue:e.internalValue,"onUpdate:modelValue":t[0]||(t[0]=o=>e.internalValue=o)},null,8,["modelValue"])}const an=Qe(Ar,[["render",Sr]]),yr=O.defineComponent({name:"IpInput",components:{Input:an},props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const n=O.ref((e.modelValue||"0.0.0.0").split("."));return O.watch(n,()=>t("update:modelValue",n.value.join(".")),{deep:!0}),O.watch(()=>e.modelValue,r=>n.value=(r||"0.0.0.0").split(".")),{segments:n}}}),Pr={style:{display:"flex",gap:"4px"}};function Dr(e,t,n,r,s,a){const o=O.resolveComponent("Input");return O.openBlock(),O.createElementBlock("div",Pr,[(O.openBlock(!0),O.createElementBlock(O.Fragment,null,O.renderList(e.segments,(i,u)=>(O.openBlock(),O.createBlock(o,{key:u,modelValue:e.segments[u],"onUpdate:modelValue":d=>e.segments[u]=d},null,8,["modelValue","onUpdate:modelValue"]))),128))])}const kr=Qe(yr,[["render",Dr]]);function Mr(e,t){e.provide("UIComponents",t)}class ne{id;deviceId;type;static registry={};constructor(t){this.id=t.id,this.deviceId=t.deviceId}static register(t,n){ne.registry[t]=n}static fromPlain(t){const n=ne.registry[t.type];if(!n)throw new Error(`Unsupported protocol type: ${t.type}`);return n.fromPlain(t)}}class Rr{static getDefaultConfig(t){console.log(1231231,t);const n=t.baseInfo,r=t.configuration,s=t.tab;return{baseInfo:n,config:r,tab:s}}}const Fr={type:"Ethernet",baseInfo:[{key:"name",name:{i18nKey:"name"},defaultValue:"Ethernet"},{key:"supplier",name:{i18nKey:"supplier"},defaultValue:{i18nKey:"company"}},{key:"version",name:{i18nKey:"verison"},defaultValue:"1.0.0.0"},{key:"description",name:{i18nKey:"description"},defaultValue:{i18nKey:"descriptionMap.ethernet"}},{key:"category",name:{i18nKey:"category"},defaultValue:{i18nKey:"ethernet"}}],tab:[{name:{i18nKey:"general"},key:"general"},{name:{i18nKey:"ioMapping"},key:"ioMapping"}],configuration:{general:[{key:"netInterface",name:{i18nKey:"netInterface"},dataType:"string",componentType:"strInput",defaultValue:""},{key:"ipAddress",name:{i18nKey:"ipAddress"},dataType:"string",componentType:"ipInput",defaultValue:"192.168.1.1"},{key:"subnetMask",name:{i18nKey:"subnetMask"},dataType:"string",componentType:"ipInput",defaultValue:"255.255.255.0"},{key:"defaultGateway",name:{i18nKey:"defaultGateway"},dataType:"string",componentType:"ipInput",defaultValue:"0.0.0.0"},{key:"adaptedOSConfiguration",name:{i18nKey:"adaptedOSConfiguration"},dataType:"boolean",componentType:"switch",defaultValue:!1}],ioMapping:[{key:"busCycleTask",name:{i18nKey:"busCycleTask"},dataType:"string",componentType:"select",defaultValue:"-1"}]}};class Ue extends ne{type=ue.ETHERNET;moduleType=$e[ue.ETHERNET];baseInfo;config;tab;constructor(t){super(t);const{baseInfo:n,config:r,tab:s}=Rr.getDefaultConfig(Fr);this.baseInfo=n,this.config=r,this.tab=s}static fromPlain(t){return new Ue(t)}}class qe extends ne{type=ue.MODBUS_TCP_SERVER;moduleType=$e[ue.MODBUS_TCP_SERVER];constructor(t){super(t)}static fromPlain(t){return new qe(t)}}class Ze extends ne{type=ue.MODBUS_TCP_CLIENT;moduleType=$e[ue.MODBUS_TCP_CLIENT];constructor(t){super(t)}static fromPlain(t){return new Ze(t)}}class ze extends ne{type=ue.MODBUS_TCP_SLAVE_DEVICE;moduleType=$e[ue.MODBUS_TCP_SLAVE_DEVICE];constructor(t){super(t)}static fromPlain(t){return new ze(t)}}var ue=(e=>(e.ETHERNET="Ethernet",e.MODBUS_TCP_SERVER="ModbusTCPServer",e.MODBUS_TCP_CLIENT="ModbusTCPClient",e.MODBUS_TCP_SLAVE_DEVICE="ModbusTCPSlaveDevice",e.MODBUS_SERIAL_PORT="ModbusSerialPort",e.MODBUS_MASTER="ModbusMaster",e.MODBUS_SLAVE="ModbusSlave",e.MODBUS_SERIAL="ModbusSerial",e.OPCUA_SERVER="OPCUAServer",e.ETHER_CAT_MASTER="EtherCatMaster",e.ETHER_CAT_SLAVE="EtherCatSlave",e.ETHER_CAT_MODULE="EtherCatModule",e))(ue||{});const $e={Pprogrammable:4096,Protgrammable_Safety:4098,CAN_Master:16,CAN_Slave:17,CAN_Device:18,EtherCat_Master:64,EtherCat_Slave:65,ProfinetIO_Master:80,ProfinetIO_Device:81,EthernetIP_Scanner:100,EthernetIP_Adapter:101,Ethernet:110,ModbusTCPServer:88,ModbusTCPClient:89,ModbusTCPSlaveDevice:115,ModbusSerialPort:92,ModbusMaster:90,ModbusSlave:91,ModbusSerial:94,OPCUAServer:128,EtherCatMaster:64,EtherCatSlave:16384,EtherCatModule:16384};class on{map=new Map;constructor(){ne.register("Ethernet",Ue),ne.register("ModbusTCPServer",qe),ne.register("ModbusTCPClient",Ze),ne.register("ModbusTCPSlaveDevice",ze)}init(t){this.clear(),t.forEach(n=>{const r=ne.fromPlain(n);this.map.set(n.id,r)})}build(t){return""}get(t){const n=Array.isArray(t)?t.map(r=>this.map.get(r)).filter(r=>r!==void 0):this.map.get(t);if(Array.isArray(n)&&!n.length||!n)throw new Error(`Protocol ${t} is not found.`);return n}add(t){this.map.set(t.id,t)}delete(t){Array.isArray(t)?t.forEach(n=>this.map.delete(n)):this.map.delete(t)}clear(){this.map.clear()}}const wr=O.defineComponent({__name:"Ethernet",props:{config:{}},setup(e){return(t,n)=>(O.openBlock(!0),O.createElementBlock(O.Fragment,null,O.renderList(e.config.tab,r=>(O.openBlock(),O.createElementBlock("div",{key:r.key},O.toDisplayString(t.$t(r.name.i18nKey)),1))),128))}}),Ur=O.defineComponent({__name:"App",setup(e){new on;const t=new Ue({id:1,deviceId:1,type:"Ethernet"});return(n,r)=>(O.openBlock(),O.createElementBlock("div",null,[O.createVNode(wr,{config:O.unref(t)},null,8,["config"])]))}});function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ln={};function mt(e){ln[e]||(ln[e]=!0,fe(e))}const le=typeof window<"u";let re,be;if(process.env.NODE_ENV!=="production"){const e=le&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(re=t=>{e.mark(t)},be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const $r=/\{([0-9a-zA-Z]+)\}/g;function et(e,...t){return t.length===1&&F(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace($r,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Vr=(e,t,n)=>Wr({l:e,k:t,s:n}),Wr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),J=e=>typeof e=="number"&&isFinite(e),Gr=e=>dt(e)==="[object Date]",Se=e=>dt(e)==="[object RegExp]",tt=e=>R(e)&&Object.keys(e).length===0,Q=Object.assign,Br=Object.create,W=(e=null)=>Br(e);let cn;const he=()=>cn||(cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function un(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function fn(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Hr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,a)=>`${s}="${fn(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,a)=>`${s}='${fn(a)}'`),/\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 Yr=Object.prototype.hasOwnProperty;function ie(e,t){return Yr.call(e,t)}const Y=Array.isArray,G=e=>typeof e=="function",L=e=>typeof e=="string",w=e=>typeof e=="boolean",F=e=>e!==null&&typeof e=="object",xr=e=>F(e)&&G(e.then)&&G(e.catch),_n=Object.prototype.toString,dt=e=>_n.call(e),R=e=>dt(e)==="[object Object]",Kr=e=>e==null?"":Y(e)||R(e)&&e.toString===_n?JSON.stringify(e,null,2):String(e);function pt(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const mn=2;function jr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const a=[];for(let o=0;o<r.length;o++)if(s+=r[o].length+1,s>=t){for(let i=o-mn;i<=o+mn||n>s;i++){if(i<0||i>=r.length)continue;const u=i+1;a.push(`${u}${" ".repeat(3-String(u).length)}| ${r[i]}`);const d=r[i].length;if(i===o){const I=t-(s-d)+1,b=Math.max(1,n>s?d-I:n-t);a.push(" | "+" ".repeat(I)+"^".repeat(b))}else if(i>o){if(n>s){const I=Math.max(Math.min(n-s,d),1);a.push(" | "+"^".repeat(I))}s+=d+1}}break}return a.join(`
|
|
2
|
+
`)}function Et(){const e=new Map;return{events:e,on(n,r){const s=e.get(n);s&&s.push(r)||e.set(n,[r])},off(n,r){const s=e.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(s=>s(r)),(e.get("*")||[]).slice().map(s=>s(n,r))}}}const nt=e=>!F(e)||Y(e);function rt(e,t){if(nt(e)||nt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(a=>{a!=="__proto__"&&(F(r[a])&&!F(s[a])&&(s[a]=Array.isArray(r[a])?[]:W()),nt(s[a])||nt(r[a])?s[a]=r[a]:n.push({src:r[a],des:s[a]}))})}}function Xr(e,t,n){return{line:e,column:t,offset:n}}function gt(e,t,n){return{start:e,end:t}}const D={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Jr=17,Qr={[D.EXPECTED_TOKEN]:"Expected token: '{0}'",[D.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[D.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[D.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[D.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[D.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[D.EMPTY_PLACEHOLDER]:"Empty placeholder",[D.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[D.INVALID_LINKED_FORMAT]:"Invalid linked format",[D.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[D.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[D.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[D.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[D.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[D.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ye(e,t,n={}){const{domain:r,messages:s,args:a}=n,o=process.env.NODE_ENV!=="production"?et((s||Qr)[e]||"",...a||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function qr(e){throw e}const Zr=/<\/?[\w\s="/.':;#-\/]+>/,zr=e=>Zr.test(e),me=" ",es="\r",Z=`
|
|
3
|
+
`,ts="\u2028",ns="\u2029";function rs(e){const t=e;let n=0,r=1,s=1,a=0;const o=E=>t[E]===es&&t[E+1]===Z,i=E=>t[E]===Z,u=E=>t[E]===ns,d=E=>t[E]===ts,I=E=>o(E)||i(E)||u(E)||d(E),b=()=>n,T=()=>r,S=()=>s,k=()=>a,A=E=>o(E)||u(E)||d(E)?Z:t[E],y=()=>A(n),f=()=>A(n+a);function m(){return a=0,I(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function h(){return o(n+a)&&a++,a++,t[n+a]}function p(){n=0,r=1,s=1,a=0}function v(E=0){a=E}function C(){const E=n+a;for(;E!==n;)m();a=0}return{index:b,line:T,column:S,peekOffset:k,charAt:A,currentChar:y,currentPeek:f,next:m,peek:h,reset:p,resetPeek:v,skipToPeek:C}}const pe=void 0,ss=".",dn="'",as="tokenizer";function os(e,t={}){const n=t.location!==!1,r=rs(e),s=()=>r.index(),a=()=>Xr(r.line(),r.column(),r.index()),o=a(),i=s(),u={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>u,{onError:I}=t;function b(l,c,g,...P){const H=d();if(c.column+=g,c.offset+=g,I){const K=n?gt(H.startLoc,c):null,U=ye(l,K,{domain:as,args:P});I(U)}}function T(l,c,g){l.endLoc=a(),l.currentType=c;const P={type:c};return n&&(P.loc=gt(l.startLoc,l.endLoc)),g!=null&&(P.value=g),P}const S=l=>T(l,13);function k(l,c){return l.currentChar()===c?(l.next(),c):(b(D.EXPECTED_TOKEN,a(),0,c),"")}function A(l){let c="";for(;l.currentPeek()===me||l.currentPeek()===Z;)c+=l.currentPeek(),l.peek();return c}function y(l){const c=A(l);return l.skipToPeek(),c}function f(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function m(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function h(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function p(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),H=m(P);return l.resetPeek(),H}function v(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()===dn;return l.resetPeek(),P}function C(l,c){const{currentType:g}=c;if(g!==7)return!1;A(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function E(l,c){const{currentType:g}=c;if(g!==8)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function M(l,c){const{currentType:g}=c;if(!(g===7||g===11))return!1;A(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function $(l,c){const{currentType:g}=c;if(g!==9)return!1;const P=()=>{const K=l.currentPeek();return K==="{"?f(l.peek()):K==="@"||K==="|"||K===":"||K==="."||K===me||!K?!1:K===Z?(l.peek(),P()):ce(l,!1)},H=P();return l.resetPeek(),H}function q(l){A(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function ce(l,c=!0){const g=(H=!1,K="")=>{const U=l.currentPeek();return U==="{"||U==="@"||!U?H:U==="|"?!(K===me||K===Z):U===me?(l.peek(),g(!0,me)):U===Z?(l.peek(),g(!0,Z)):!0},P=g();return c&&l.resetPeek(),P}function x(l,c){const g=l.currentChar();return g===pe?pe:c(g)?(l.next(),g):null}function Fe(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function Bt(l){return x(l,Fe)}function Ht(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function Yt(l){return x(l,Ht)}function xt(l){const c=l.charCodeAt(0);return c>=48&&c<=57}function Kt(l){return x(l,xt)}function jt(l){const c=l.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function ge(l){return x(l,jt)}function Ke(l){let c="",g="";for(;c=Kt(l);)g+=c;return g}function Xt(l){let c="";for(;;){const g=l.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g===me||g===Z)if(ce(l))c+=g,l.next();else{if(q(l))break;c+=g,l.next()}else c+=g,l.next()}return c}function Jt(l){y(l);let c="",g="";for(;c=Yt(l);)g+=c;const P=l.currentChar();if(P&&P!=="}"&&P!==pe&&P!==me&&P!==Z&&P!==" "){const H=ut(l);return b(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g+H),g+H}return l.currentChar()===pe&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g}function Qt(l){y(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${Ke(l)}`):c+=Ke(l),l.currentChar()===pe&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),c}function qt(l){return l!==dn&&l!==Z}function Lr(l){y(l),k(l,"'");let c="",g="";for(;c=x(l,qt);)c==="\\"?g+=Zt(l):g+=c;const P=l.currentChar();return P===Z||P===pe?(b(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),P===Z&&(l.next(),k(l,"'")),g):(k(l,"'"),g)}function Zt(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return ct(l,c,4);case"U":return ct(l,c,6);default:return b(D.UNKNOWN_ESCAPE_SEQUENCE,a(),0,c),""}}function ct(l,c,g){k(l,c);let P="";for(let H=0;H<g;H++){const K=ge(l);if(!K){b(D.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${c}${P}${l.currentChar()}`);break}P+=K}return`\\${c}${P}`}function zt(l){return l!=="{"&&l!=="}"&&l!==me&&l!==Z}function ut(l){y(l);let c="",g="";for(;c=x(l,zt);)g+=c;return g}function en(l){let c="",g="";for(;c=Bt(l);)g+=c;return g}function tn(l){const c=g=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===me?g:(g+=P,l.next(),c(g))};return c("")}function je(l){y(l);const c=k(l,"|");return y(l),c}function Xe(l,c){let g=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&b(D.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),l.next(),g=T(c,2,"{"),y(l),c.braceNest++,g;case"}":return c.braceNest>0&&c.currentType===2&&b(D.EMPTY_PLACEHOLDER,a(),0),l.next(),g=T(c,3,"}"),c.braceNest--,c.braceNest>0&&y(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),g;case"@":return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=ve(l,c)||S(c),c.braceNest=0,g;default:{let H=!0,K=!0,U=!0;if(q(l))return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return b(D.UNTERMINATED_CLOSING_BRACE,a(),0),c.braceNest=0,Je(l,c);if(H=h(l,c))return g=T(c,4,Jt(l)),y(l),g;if(K=p(l,c))return g=T(c,5,Qt(l)),y(l),g;if(U=v(l,c))return g=T(c,6,Lr(l)),y(l),g;if(!H&&!K&&!U)return g=T(c,12,ut(l)),b(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g.value),y(l),g;break}}return g}function ve(l,c){const{currentType:g}=c;let P=null;const H=l.currentChar();switch((g===7||g===8||g===11||g===9)&&(H===Z||H===me)&&b(D.INVALID_LINKED_FORMAT,a(),0),H){case"@":return l.next(),P=T(c,7,"@"),c.inLinked=!0,P;case".":return y(l),l.next(),T(c,8,".");case":":return y(l),l.next(),T(c,9,":");default:return q(l)?(P=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,P):C(l,c)||M(l,c)?(y(l),ve(l,c)):E(l,c)?(y(l),T(c,11,en(l))):$(l,c)?(y(l),H==="{"?Xe(l,c)||P:T(c,10,tn(l))):(g===7&&b(D.INVALID_LINKED_FORMAT,a(),0),c.braceNest=0,c.inLinked=!1,Je(l,c))}}function Je(l,c){let g={type:13};if(c.braceNest>0)return Xe(l,c)||S(c);if(c.inLinked)return ve(l,c)||S(c);switch(l.currentChar()){case"{":return Xe(l,c)||S(c);case"}":return b(D.UNBALANCED_CLOSING_BRACE,a(),0),l.next(),T(c,3,"}");case"@":return ve(l,c)||S(c);default:{if(q(l))return g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(ce(l))return T(c,0,Xt(l));break}}return g}function nn(){const{currentType:l,offset:c,startLoc:g,endLoc:P}=u;return u.lastType=l,u.lastOffset=c,u.lastStartLoc=g,u.lastEndLoc=P,u.offset=s(),u.startLoc=a(),r.currentChar()===pe?T(u,13):Je(r,u)}return{nextToken:nn,currentOffset:s,currentPosition:a,context:d}}const ls="parser",is=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function cs(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 us(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,m,h,p,...v){const C=f.currentPosition();if(C.offset+=p,C.column+=p,n){const E=t?gt(h,C):null,M=ye(m,E,{domain:ls,args:v});n(M)}}function s(f,m,h){const p={type:f};return t&&(p.start=m,p.end=m,p.loc={start:h,end:h}),p}function a(f,m,h,p){t&&(f.end=m,f.loc&&(f.loc.end=h))}function o(f,m){const h=f.context(),p=s(3,h.offset,h.startLoc);return p.value=m,a(p,f.currentOffset(),f.currentPosition()),p}function i(f,m){const h=f.context(),{lastOffset:p,lastStartLoc:v}=h,C=s(5,p,v);return C.index=parseInt(m,10),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function u(f,m){const h=f.context(),{lastOffset:p,lastStartLoc:v}=h,C=s(4,p,v);return C.key=m,f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function d(f,m){const h=f.context(),{lastOffset:p,lastStartLoc:v}=h,C=s(9,p,v);return C.value=m.replace(is,cs),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function I(f){const m=f.nextToken(),h=f.context(),{lastOffset:p,lastStartLoc:v}=h,C=s(8,p,v);return m.type!==11?(r(f,D.UNEXPECTED_EMPTY_LINKED_MODIFIER,h.lastStartLoc,0),C.value="",a(C,p,v),{nextConsumeToken:m,node:C}):(m.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,de(m)),C.value=m.value||"",a(C,f.currentOffset(),f.currentPosition()),{node:C})}function b(f,m){const h=f.context(),p=s(7,h.offset,h.startLoc);return p.value=m,a(p,f.currentOffset(),f.currentPosition()),p}function T(f){const m=f.context(),h=s(6,m.offset,m.startLoc);let p=f.nextToken();if(p.type===8){const v=I(f);h.modifier=v.node,p=v.nextConsumeToken||f.nextToken()}switch(p.type!==9&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(p)),p=f.nextToken(),p.type===2&&(p=f.nextToken()),p.type){case 10:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(p)),h.key=b(f,p.value||"");break;case 4:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(p)),h.key=u(f,p.value||"");break;case 5:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(p)),h.key=i(f,p.value||"");break;case 6:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(p)),h.key=d(f,p.value||"");break;default:{r(f,D.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const v=f.context(),C=s(7,v.offset,v.startLoc);return C.value="",a(C,v.offset,v.startLoc),h.key=C,a(h,v.offset,v.startLoc),{nextConsumeToken:p,node:h}}}return a(h,f.currentOffset(),f.currentPosition()),{node:h}}function S(f){const m=f.context(),h=m.currentType===1?f.currentOffset():m.offset,p=m.currentType===1?m.endLoc:m.startLoc,v=s(2,h,p);v.items=[];let C=null;do{const $=C||f.nextToken();switch(C=null,$.type){case 0:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(o(f,$.value||""));break;case 5:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(i(f,$.value||""));break;case 4:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(u(f,$.value||""));break;case 6:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(d(f,$.value||""));break;case 7:{const q=T(f);v.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const E=m.currentType===1?m.lastOffset:f.currentOffset(),M=m.currentType===1?m.lastEndLoc:f.currentPosition();return a(v,E,M),v}function k(f,m,h,p){const v=f.context();let C=p.items.length===0;const E=s(1,m,h);E.cases=[],E.cases.push(p);do{const M=S(f);C||(C=M.items.length===0),E.cases.push(M)}while(v.currentType!==13);return C&&r(f,D.MUST_HAVE_MESSAGES_IN_PLURAL,h,0),a(E,f.currentOffset(),f.currentPosition()),E}function A(f){const m=f.context(),{offset:h,startLoc:p}=m,v=S(f);return m.currentType===13?v:k(f,h,p,v)}function y(f){const m=os(f,Q({},e)),h=m.context(),p=s(0,h.offset,h.startLoc);return t&&p.loc&&(p.loc.source=f),p.body=A(m),e.onCacheKey&&(p.cacheKey=e.onCacheKey(f)),h.currentType!==13&&r(m,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,f[h.offset]||""),a(p,m.currentOffset(),m.currentPosition()),p}return{parse:y}}function de(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 fs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function pn(e,t){for(let n=0;n<e.length;n++)Tt(e[n],t)}function Tt(e,t){switch(e.type){case 1:pn(e.cases,t),t.helper("plural");break;case 2:pn(e.items,t);break;case 6:{Tt(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 _s(e,t={}){const n=fs(e);n.helper("normalize"),e.body&&Tt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ms(e){const t=e.body;return t.type===2?En(t):t.cases.forEach(n=>En(n)),e}function En(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=pt(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 ds="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 ye(D.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ds,args:[e.type]})}delete e.type}const ps="parser";function Es(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,a=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const i=()=>o;function u(A,y){o.code+=A}function d(A,y=!0){const f=y?r:"";u(s?f+" ".repeat(A):f)}function I(A=!0){const y=++o.indentLevel;A&&d(y)}function b(A=!0){const y=--o.indentLevel;A&&d(y)}function T(){d(o.indentLevel)}return{context:i,push:u,indent:I,deindent:b,newline:T,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function gs(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),De(e,t.key),t.modifier?(e.push(", "),De(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ts(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let a=0;a<s&&(De(e,t.items[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function Ns(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let a=0;a<s&&(De(e,t.cases[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function bs(e,t){t.body?De(e,t.body):e.push("null")}function De(e,t){const{helper:n}=e;switch(t.type){case 0:bs(e,t);break;case 1:Ns(e,t);break;case 2:Ts(e,t);break;case 6:gs(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 ye(D.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ps,args:[t.type]})}}const hs=(e,t={})=>{const n=L(t.mode)?t.mode:"normal",r=L(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
4
|
+
`,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=Es(e,{filename:r,breakLineCode:s,needIndent:a});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(a),o.length>0&&(i.push(`const { ${pt(o.map(I=>`${I}: _${I}`),", ")} } = ctx`),i.newline()),i.push("return "),De(i,e),i.deindent(a),i.push("}"),delete e.helpers;const{code:u,map:d}=i.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function Is(e,t={}){const n=Q({},t),r=!!n.jit,s=!!n.minify,a=n.optimize==null?!0:n.optimize,i=us(n).parse(e);return r?(a&&ms(i),s&&Pe(i),{ast:i,code:""}):(_s(i,n),hs(i,n))}function Ls(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(he().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return F(e)&&Nt(e)===0&&(ie(e,"b")||ie(e,"body"))}const gn=["b","body"];function Os(e){return Te(e,gn)}const Tn=["c","cases"];function vs(e){return Te(e,Tn,[])}const Nn=["s","static"];function Cs(e){return Te(e,Nn)}const bn=["i","items"];function As(e){return Te(e,bn,[])}const hn=["t","type"];function Nt(e){return Te(e,hn)}const In=["v","value"];function st(e,t){const n=Te(e,In);if(n!=null)return n;throw Ve(t)}const Ln=["m","modifier"];function Ss(e){return Te(e,Ln)}const On=["k","key"];function ys(e){const t=Te(e,On);if(t)return t;throw Ve(6)}function Te(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(ie(e,s)&&e[s]!=null)return e[s]}return n}const vn=[...gn,...Tn,...Nn,...bn,...On,...Ln,...In,...hn];function Ve(e){return new Error(`unhandled node type: ${e}`)}function bt(e){return n=>Ps(n,e)}function Ps(e,t){const n=Os(t);if(n==null)throw Ve(0);if(Nt(n)===1){const a=vs(n);return e.plural(a.reduce((o,i)=>[...o,Cn(e,i)],[]))}else return Cn(e,n)}function Cn(e,t){const n=Cs(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=As(t).reduce((s,a)=>[...s,ht(e,a)],[]);return e.normalize(r)}}function ht(e,t){const n=Nt(t);switch(n){case 3:return st(t,n);case 9:return st(t,n);case 4:{const r=t;if(ie(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ie(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ve(n)}case 5:{const r=t;if(ie(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(ie(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw Ve(n)}case 6:{const r=t,s=Ss(r),a=ys(r);return e.linked(ht(e,a),s?ht(e,s):void 0,e.type)}case 7:return st(t,n);case 8:return st(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ds="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function ks(e,t){t&&zr(e)&&fe(et(Ds,{source:e}))}const Ms=e=>e;let at=W();function Rs(e,t={}){let n=!1;const r=t.onError||qr;return t.onError=s=>{n=!0,r(s)},{...Is(e,t),detectError:n}}function Fs(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&L(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&ks(e,n);const s=(t.onCacheKey||Ms)(e),a=at[s];if(a)return a;const{ast:o,detectError:i}=Rs(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=bt(o);return i?u:at[s]=u}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=at[n];return r||(at[n]=bt(e))}else return bt(e)}}let We=null;function ws(e){We=e}function Us(e,t,n){We&&We.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const $s=Vs("function:translate");function Vs(e){return t=>We&&We.emit(e,t)}const z={INVALID_ARGUMENT:Jr,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},Ws=24;function Ee(e){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:Gs}:void 0)}const Gs={[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 It(e,t){return t.locale!=null?An(t.locale):An(e.locale)}let Lt;function An(e){if(L(e))return e;if(G(e)){if(e.resolvedOnce&&Lt!=null)return Lt;if(e.constructor.name==="Function"){const t=e();if(xr(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Lt=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Bs(e,t,n){return[...new Set([n,...Y(t)?t:F(t)?Object.keys(t):L(t)?[t]:[n]])]}function Sn(e,t,n){const r=L(n)?n:Ge,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let a=s.__localeChainCache.get(r);if(!a){a=[];let o=[n];for(;Y(o);)o=yn(a,o,t);const i=Y(t)||!R(t)?t:t.default?t.default:null;o=L(i)?[i]:i,Y(o)&&yn(a,o,!1),s.__localeChainCache.set(r,a)}return a}function yn(e,t,n){let r=!0;for(let s=0;s<t.length&&w(r);s++){const a=t[s];L(a)&&(r=Hs(e,t[s],n))}return r}function Hs(e,t,n){let r;const s=t.split("-");do{const a=s.join("-");r=Ys(e,a,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Ys(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(Y(n)||R(n))&&n[s]&&(r=n[s])}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 xs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ks(e){return xs.test(e)}function js(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 Xs(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 Js(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ks(t)?js(t):"*"+t}function Qs(e){const t=[];let n=-1,r=0,s=0,a,o,i,u,d,I,b;const T=[];T[0]=()=>{o===void 0?o=i:o+=i},T[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},T[2]=()=>{T[0](),s++},T[3]=()=>{if(s>0)s--,r=4,T[0]();else{if(s=0,o===void 0||(o=Js(o),o===!1))return!1;T[1]()}};function S(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,i="\\"+k,T[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&S())){if(u=Xs(a),b=Ne[r],d=b[u]||b.l||8,d===8||(r=d[0],d[1]!==void 0&&(I=T[d[1]],I&&(i=a,I()===!1))))return;if(r===7)return t}}const Pn=new Map;function qs(e,t){return F(e)?e[t]:null}function Zs(e,t){if(!F(e))return null;let n=Pn.get(t);if(n||(n=Qs(t),n&&Pn.set(t,n)),!n)return null;const r=n.length;let s=e,a=0;for(;a<r;){const o=n[a];if(vn.includes(o)&&se(s))return null;const i=s[o];if(i===void 0||G(s))return null;s=i,a++}return s}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},zs=8,ea={[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 et(ea[e],...t)}const ta="11.2.8",ot=-1,Ge="en-US",lt="",Dn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function na(){return{upper:(e,t)=>t==="text"&&L(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&L(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&L(e)?Dn(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?Dn(e.children):e}}let kn;function ra(e){kn=e}let Mn;function sa(e){Mn=e}let Rn;function aa(e){Rn=e}let Fn=null;const oa=e=>{Fn=e},la=()=>Fn;let wn=null;const Un=e=>{wn=e},ia=()=>wn;let $n=0;function ca(e={}){const t=G(e.onWarn)?e.onWarn:fe,n=L(e.version)?e.version:ta,r=L(e.locale)||G(e.locale)?e.locale:Ge,s=G(r)?Ge:r,a=Y(e.fallbackLocale)||R(e.fallbackLocale)||L(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=R(e.messages)?e.messages:Ot(s),i=R(e.datetimeFormats)?e.datetimeFormats:Ot(s),u=R(e.numberFormats)?e.numberFormats:Ot(s),d=Q(W(),e.modifiers,na()),I=e.pluralRules||W(),b=G(e.missing)?e.missing:null,T=w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,A=!!e.unresolving,y=G(e.postTranslation)?e.postTranslation:null,f=R(e.processor)?e.processor:null,m=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,p=G(e.messageCompiler)?e.messageCompiler:kn;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&mt(Ie(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const v=G(e.messageResolver)?e.messageResolver:Mn||qs,C=G(e.localeFallbacker)?e.localeFallbacker:Rn||Bs,E=F(e.fallbackContext)?e.fallbackContext:void 0,M=e,$=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,q=F(M.__numberFormatters)?M.__numberFormatters:new Map,ce=F(M.__meta)?M.__meta:{};$n++;const x={version:n,cid:$n,locale:r,fallbackLocale:a,messages:o,modifiers:d,pluralRules:I,missing:b,missingWarn:T,fallbackWarn:S,fallbackFormat:k,unresolving:A,postTranslation:y,processor:f,warnHtmlMessage:m,escapeParameter:h,messageCompiler:p,messageResolver:v,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:ce};return x.datetimeFormats=i,x.numberFormats=u,x.__datetimeFormatters=$,x.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(x.__v_emitter=M.__v_emitter!=null?M.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Us(x,n,ce),x}const Ot=e=>({[e]:W()});function it(e,t){return e instanceof RegExp?e.test(t):e}function Vn(e,t){return e instanceof RegExp?e.test(t):e}function vt(e,t,n,r,s){const{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(a!==null){const i=a(e,n,t,s);return L(i)?i:t}else return process.env.NODE_ENV!=="production"&&Vn(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 Wn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ua(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Wn(e,t[r]))return!0;return!1}const Gn=typeof Intl<"u",Bn={dateTimeFormat:Gn&&typeof Intl.DateTimeFormat<"u",numberFormat:Gn&&typeof Intl.NumberFormat<"u"};function Hn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Bn.dateTimeFormat)return a(Ie(ee.CANNOT_FORMAT_DATE)),lt;const[u,d,I,b]=Ct(...t),T=w(I.missingWarn)?I.missingWarn:e.missingWarn,S=w(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,k=!!I.part,A=It(e,I),y=o(e,s,A);if(!L(u)||u==="")return new Intl.DateTimeFormat(A,b).format(d);let f={},m,h=null,p=A,v=null;const C="datetime format";for(let $=0;$<y.length;$++){if(m=v=y[$],process.env.NODE_ENV!=="production"&&A!==m&&it(S,u)&&a(Ie(ee.FALLBACK_TO_DATE_FORMAT,{key:u,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:v,groupId:`${C}:${u}`})}if(f=n[m]||{},h=f[u],R(h))break;vt(e,u,m,T,C),p=v}if(!R(h)||!L(m))return r?ot:u;let E=`${m}__${u}`;tt(b)||(E=`${E}__${JSON.stringify(b)}`);let M=i.get(E);return M||(M=new Intl.DateTimeFormat(m,Q({},h,b)),i.set(E,M)),k?M.formatToParts(d):M.format(d)}const Yn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ct(...e){const[t,n,r,s]=e,a=W();let o=W(),i;if(L(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const d=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();i=new Date(d);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Gr(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 L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{Yn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function xn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function Kn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Bn.numberFormat)return a(Ie(ee.CANNOT_FORMAT_NUMBER)),lt;const[u,d,I,b]=At(...t),T=w(I.missingWarn)?I.missingWarn:e.missingWarn,S=w(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,k=!!I.part,A=It(e,I),y=o(e,s,A);if(!L(u)||u==="")return new Intl.NumberFormat(A,b).format(d);let f={},m,h=null,p=A,v=null;const C="number format";for(let $=0;$<y.length;$++){if(m=v=y[$],process.env.NODE_ENV!=="production"&&A!==m&&it(S,u)&&a(Ie(ee.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:v,groupId:`${C}:${u}`})}if(f=n[m]||{},h=f[u],R(h))break;vt(e,u,m,T,C),p=v}if(!R(h)||!L(m))return r?ot:u;let E=`${m}__${u}`;tt(b)||(E=`${E}__${JSON.stringify(b)}`);let M=i.get(E);return M||(M=new Intl.NumberFormat(m,Q({},h,b)),i.set(E,M)),k?M.formatToParts(d):M.format(d)}const jn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function At(...e){const[t,n,r,s]=e,a=W();let o=W();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{jn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Xn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const fa=e=>e,_a=e=>"",ma="text",da=e=>e.length===0?"":pt(e),pa=Kr;function Jn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ea(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 ga(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ta(e={}){const t=e.locale,n=Ea(e),r=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?e.pluralRules[t]:Jn,s=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?Jn:void 0,a=f=>f[r(n,f.length,s)],o=e.list||[],i=f=>o[f],u=e.named||W();J(e.pluralIndex)&&ga(n,u);const d=f=>u[f];function I(f,m){const h=G(e.messages)?e.messages(f,!!m):F(e.messages)?e.messages[f]:!1;return h||(e.parent?e.parent.message(f):_a)}const b=f=>e.modifiers?e.modifiers[f]:fa,T=R(e.processor)&&G(e.processor.normalize)?e.processor.normalize:da,S=R(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:pa,k=R(e.processor)&&L(e.processor.type)?e.processor.type:ma,y={list:i,named:d,plural:a,linked:(f,...m)=>{const[h,p]=m;let v="text",C="";m.length===1?F(h)?(C=h.modifier||C,v=h.type||v):L(h)&&(C=h||C):m.length===2&&(L(h)&&(C=h||C),L(p)&&(v=p||v));const E=I(f,!0)(y),M=v==="vnode"&&Y(E)&&C?E[0]:E;return C?b(C)(M,v):M},message:I,type:k,interpolate:S,normalize:T,values:Q(W(),o,u)};return y}const Qn=()=>"",ae=e=>G(e);function qn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:a,fallbackLocale:o,messages:i}=e,[u,d]=St(...t),I=w(d.missingWarn)?d.missingWarn:e.missingWarn,b=w(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,T=w(d.escapeParameter)?d.escapeParameter:e.escapeParameter,S=!!d.resolvedMessage,k=L(d.default)||w(d.default)?w(d.default)?a?u:()=>u:d.default:n?a?u:()=>u:null,A=n||k!=null&&(L(k)||G(k)),y=It(e,d);T&&Na(d);let[f,m,h]=S?[u,y,i[y]||W()]:Zn(e,u,y,o,b,I),p=f,v=u;if(!S&&!(L(p)||se(p)||ae(p))&&A&&(p=k,v=p),!S&&(!(L(p)||se(p)||ae(p))||!L(m)))return s?ot:u;if(process.env.NODE_ENV!=="production"&&L(p)&&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 '${u}'.`),u;let C=!1;const E=()=>{C=!0},M=ae(p)?p:zn(e,u,m,p,v,E);if(C)return p;const $=La(e,m,h,d),q=Ta($),ce=ba(e,M,q);let x=r?r(ce,u):ce;if(T&&L(x)&&(x=Hr(x)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Fe={timestamp:Date.now(),key:L(u)?u:ae(p)?p.key:"",locale:m||(ae(p)?p.locale:""),format:L(p)?p:ae(p)?p.source:"",message:x};Fe.meta=Q({},e.__meta,la()||{}),$s(Fe)}return x}function Na(e){Y(e.list)?e.list=e.list.map(t=>L(t)?un(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{L(e.named[t])&&(e.named[t]=un(e.named[t]))})}function Zn(e,t,n,r,s,a){const{messages:o,onWarn:i,messageResolver:u,localeFallbacker:d}=e,I=d(e,r,n);let b=W(),T,S=null,k=n,A=null;const y="translate";for(let f=0;f<I.length;f++){if(T=A=I[f],process.env.NODE_ENV!=="production"&&n!==T&&!Wn(n,T)&&it(s,t)&&i(Ie(ee.FALLBACK_TO_TRANSLATE,{key:t,target:T})),process.env.NODE_ENV!=="production"&&n!==T){const v=e.__v_emitter;v&&v.emit("fallback",{type:y,key:t,from:k,to:A,groupId:`${y}:${t}`})}b=o[T]||W();let m=null,h,p;if(process.env.NODE_ENV!=="production"&&le&&(m=window.performance.now(),h="intlify-message-resolve-start",p="intlify-message-resolve-end",re&&re(h)),(S=u(b,t))===null&&(S=b[t]),process.env.NODE_ENV!=="production"&&le){const v=window.performance.now(),C=e.__v_emitter;C&&m&&S&&C.emit("message-resolve",{type:"message-resolve",key:t,message:S,time:v-m,groupId:`${y}:${t}`}),h&&p&&re&&be&&(re(p),be("intlify message resolve",h,p))}if(L(S)||se(S)||ae(S))break;if(!ua(T,I)){const v=vt(e,t,T,a,y);v!==t&&(S=v)}k=A}return[S,T,b]}function zn(e,t,n,r,s,a){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ae(r)){const T=r;return T.locale=T.locale||n,T.key=T.key||t,T}if(o==null){const T=(()=>r);return T.locale=n,T.key=t,T}let u=null,d,I;process.env.NODE_ENV!=="production"&&le&&(u=window.performance.now(),d="intlify-message-compilation-start",I="intlify-message-compilation-end",re&&re(d));const b=o(r,ha(e,n,s,r,i,a));if(process.env.NODE_ENV!=="production"&&le){const T=window.performance.now(),S=e.__v_emitter;S&&u&&S.emit("message-compilation",{type:"message-compilation",message:r,time:T-u,groupId:`translate:${t}`}),d&&I&&re&&be&&(re(I),be("intlify message compilation",d,I))}return b.locale=n,b.key=t,b.source=r,b}function ba(e,t,n){let r=null,s,a;process.env.NODE_ENV!=="production"&&le&&(r=window.performance.now(),s="intlify-message-evaluation-start",a="intlify-message-evaluation-end",re&&re(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&le){const i=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),s&&a&&re&&be&&(re(a),be("intlify message evaluation",s,a))}return o}function St(...e){const[t,n,r]=e,s=W();if(!L(t)&&!J(t)&&!ae(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const a=J(t)?String(t):(ae(t),t);return J(n)?s.plural=n:L(n)?s.default=n:R(n)&&!tt(n)?s.named=n:Y(n)&&(s.list=n),J(r)?s.plural=r:L(r)?s.default=r:R(r)&&Q(s,r),[a,s]}function ha(e,t,n,r,s,a){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(a&&a(o),process.env.NODE_ENV!=="production"){const i=Ia(r),u=`Message compilation error: ${o.message}`,d=o.location&&i&&jr(i,o.location.start.offset,o.location.end.offset),I=e.__v_emitter;I&&i&&I.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(d?`${u}
|
|
5
|
+
${d}`:u)}else throw o},onCacheKey:o=>Vr(t,n,o)}}function Ia(e){if(L(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function La(e,t,n,r){const{modifiers:s,pluralRules:a,messageResolver:o,fallbackLocale:i,fallbackWarn:u,missingWarn:d,fallbackContext:I}=e,T={locale:t,modifiers:s,pluralRules:a,messages:(S,k)=>{let A=o(n,S);if(A==null&&(I||k)){const[,,y]=Zn(I||e,S,t,i,u,d);A=o(y,S)}if(L(A)||se(A)){let y=!1;const m=zn(e,S,t,A,S,()=>{y=!0});return y?Qn:m}else return ae(A)?A:Qn}};return e.processor&&(T.processor=e.processor),r.list&&(T.list=r.list),r.named&&(T.named=r.named),J(r.plural)&&(T.pluralIndex=r.plural),T}Ls();function Oa(){return er().__VUE_DEVTOOLS_GLOBAL_HOOK__}function er(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const va=typeof Proxy=="function",Ca="devtools-plugin:setup",Aa="plugin:settings:set";let ke,yt;function Sa(){var e;return ke!==void 0||(typeof window<"u"&&window.performance?(ke=!0,yt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ke=!0,yt=globalThis.perf_hooks.performance):ke=!1),ke}function ya(){return Sa()?yt.now():Date.now()}class Pa{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 s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const o=localStorage.getItem(s),i=JSON.parse(o);Object.assign(a,i)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}a=o},now(){return ya()}},n&&n.on(Aa,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(d=>{this.targetQueue.push({method:i,args:u,resolve:d})})})}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 Da(e,t){const n=e,r=er(),s=Oa(),a=va&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(Ca,e,t);else{const o=a?new Pa(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const ka="11.2.8";function Ma(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(he().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(he().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(he().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1)}const B={UNEXPECTED_RETURN_TYPE:Ws,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 ye(e,null,process.env.NODE_ENV!=="production"?{messages:Ra,args:t}:void 0)}const Ra={[B.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[B.INVALID_ARGUMENT]:"Invalid argument",[B.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[B.NOT_INSTALLED]:"Need to install with `app.use` function",[B.UNEXPECTED_ERROR]:"Unexpected error",[B.REQUIRED_VALUE]:"Required in value: {0}",[B.INVALID_VALUE]:"Invalid value",[B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[B.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Pt=_e("__translateVNode"),Dt=_e("__datetimeParts"),kt=_e("__numberParts"),Le=_e("__enableEmitter"),He=_e("__disableEmitter"),tr=_e("__setPluralRules"),nr=_e("__injectWithOption"),Mt=_e("__dispose"),oe={FALLBACK_TO_ROOT:zs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Fa={[oe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[oe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[oe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[oe.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`,[oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[oe.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 et(Fa[e],...t)}function Ye(e){if(!F(e)||se(e))return e;for(const t in e)if(ie(e,t))if(!t.includes("."))F(e[t])&&Ye(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,a=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&fe(Me(oe.IGNORE_OBJ_FLATTEN,{key:n[o]})),a=!0;break}s=s[n[o]]}if(a||(se(s)?vn.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!se(s)){const o=s[n[r]];F(o)&&Ye(o)}}return e}function Rt(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:a}=t,o=R(n)?n:Y(r)?W():{[e]:W()};if(Y(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:d}=i;u?(o[u]=o[u]||W(),rt(d,o[u])):rt(d,o)}else L(i)&&rt(JSON.parse(i),o)}),s==null&&a)for(const i in o)ie(o,i)&&Ye(o[i]);return o}function rr(e){return e.type}function sr(e,t,n){let r=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(r=Rt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(F(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function ar(e){return O.createVNode(O.Text,null,e,0)}function Re(){const e="currentInstance";return e in _t?_t[e]:_t.getCurrentInstance()}const or="__INTLIFY_META__",lr=()=>[],wa=()=>!1;let ir=0;function cr(e){return((t,n,r,s)=>e(n,r,Re()||void 0,s))}const Ua=()=>{const e=Re();let t=null;return e&&(t=rr(e)[or])?{[or]:t}:null};function Ft(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,a=le?O.ref:O.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const i=a(t&&o?t.locale.value:L(e.locale)?e.locale:Ge),u=a(t&&o?t.fallbackLocale.value:L(e.fallbackLocale)||Y(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),d=a(Rt(i.value,e)),I=a(R(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),b=a(R(e.numberFormats)?e.numberFormats:{[i.value]:{}});let T=t?t.missingWarn:w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=t?t.fallbackWarn:w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,y=G(e.missing)?e.missing:null,f=G(e.missing)?cr(e.missing):null,m=G(e.postTranslation)?e.postTranslation:null,h=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const v=t?t.modifiers:R(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&Un(null);const _={version:ka,locale:i.value,fallbackLocale:u.value,messages:d.value,modifiers:v,pluralRules:C,missing:f===null?void 0:f,missingWarn:T,fallbackWarn:S,fallbackFormat:A,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:h,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=I.value,_.numberFormats=b.value,_.__datetimeFormatters=R(E)?E.__datetimeFormatters:void 0,_.__numberFormatters=R(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=R(E)?E.__v_emitter:void 0);const N=ca(_);return r&&Un(N),N})(),Be(E,i.value,u.value);function $(){return[i.value,u.value,d.value,I.value,b.value]}const q=O.computed({get:()=>i.value,set:_=>{E.locale=_,i.value=_}}),ce=O.computed({get:()=>u.value,set:_=>{E.fallbackLocale=_,u.value=_,Be(E,i.value,_)}}),x=O.computed(()=>d.value),Fe=O.computed(()=>I.value),Bt=O.computed(()=>b.value);function Ht(){return G(m)?m:null}function Yt(_){m=_,E.postTranslation=_}function xt(){return y}function Kt(_){_!==null&&(f=cr(_)),y=_,E.missing=f}function jt(_,N){return _!=="translate"||!N.resolvedMessage}const ge=(_,N,V,j,Ce,ft)=>{$();let we;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?ia():void 0),we=_(E)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(V!=="translate exists"&&J(we)&&we===ot||V==="translate exists"&&!we){const[Ae,To]=N();if(process.env.NODE_ENV!=="production"&&t&&L(Ae)&&jt(V,To)&&(k&&(it(S,Ae)||Vn(T,Ae))&&fe(Me(oe.FALLBACK_TO_ROOT,{key:Ae,type:V})),process.env.NODE_ENV!=="production")){const{__v_emitter:Or}=E;Or&&k&&Or.emit("fallback",{type:V,key:Ae,to:"global",groupId:`${V}:${Ae}`})}return t&&k?j(t):Ce(Ae)}else{if(ft(we))return we;throw te(B.UNEXPECTED_RETURN_TYPE)}};function Ke(..._){return ge(N=>Reflect.apply(qn,null,[N,..._]),()=>St(..._),"translate",N=>Reflect.apply(N.t,N,[..._]),N=>N,N=>L(N))}function Xt(..._){const[N,V,j]=_;if(j&&!F(j))throw te(B.INVALID_ARGUMENT);return Ke(N,V,Q({resolvedMessage:!0},j||{}))}function Jt(..._){return ge(N=>Reflect.apply(Hn,null,[N,..._]),()=>Ct(..._),"datetime format",N=>Reflect.apply(N.d,N,[..._]),()=>lt,N=>L(N)||Y(N))}function Qt(..._){return ge(N=>Reflect.apply(Kn,null,[N,..._]),()=>At(..._),"number format",N=>Reflect.apply(N.n,N,[..._]),()=>lt,N=>L(N)||Y(N))}function qt(_){return _.map(N=>L(N)||J(N)||w(N)?ar(String(N)):N)}const Zt={normalize:qt,interpolate:_=>_,type:"vnode"};function ct(..._){return ge(N=>{let V;const j=N;try{j.processor=Zt,V=Reflect.apply(qn,null,[j,..._])}finally{j.processor=null}return V},()=>St(..._),"translate",N=>N[Pt](..._),N=>[ar(N)],N=>Y(N))}function zt(..._){return ge(N=>Reflect.apply(Kn,null,[N,..._]),()=>At(..._),"number format",N=>N[kt](..._),lr,N=>L(N)||Y(N))}function ut(..._){return ge(N=>Reflect.apply(Hn,null,[N,..._]),()=>Ct(..._),"datetime format",N=>N[Dt](..._),lr,N=>L(N)||Y(N))}function en(_){C=_,E.pluralRules=C}function tn(_,N){return ge(()=>{if(!_)return!1;const V=L(N)?N:i.value,j=ve(V),Ce=E.messageResolver(j,_);return se(Ce)||ae(Ce)||L(Ce)},()=>[_],"translate exists",V=>Reflect.apply(V.te,V,[_,N]),wa,V=>w(V))}function je(_){let N=null;const V=Sn(E,u.value,i.value);for(let j=0;j<V.length;j++){const Ce=d.value[V[j]]||{},ft=E.messageResolver(Ce,_);if(ft!=null){N=ft;break}}return N}function Xe(_){const N=je(_);return N??(t?t.tm(_)||{}:{})}function ve(_){return d.value[_]||{}}function Je(_,N){if(s){const V={[_]:N};for(const j in V)ie(V,j)&&Ye(V[j]);N=V[_]}d.value[_]=N,E.messages=d.value}function nn(_,N){d.value[_]=d.value[_]||{};const V={[_]:N};if(s)for(const j in V)ie(V,j)&&Ye(V[j]);N=V[_],rt(N,d.value[_]),E.messages=d.value}function l(_){return I.value[_]||{}}function c(_,N){I.value[_]=N,E.datetimeFormats=I.value,xn(E,_,N)}function g(_,N){I.value[_]=Q(I.value[_]||{},N),E.datetimeFormats=I.value,xn(E,_,N)}function P(_){return b.value[_]||{}}function H(_,N){b.value[_]=N,E.numberFormats=b.value,Xn(E,_,N)}function K(_,N){b.value[_]=Q(b.value[_]||{},N),E.numberFormats=b.value,Xn(E,_,N)}ir++,t&&le&&(O.watch(t.locale,_=>{o&&(i.value=_,E.locale=_,Be(E,i.value,u.value))}),O.watch(t.fallbackLocale,_=>{o&&(u.value=_,E.fallbackLocale=_,Be(E,i.value,u.value))}));const U={id:ir,locale:q,fallbackLocale:ce,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Be(E,i.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:x,get modifiers(){return v},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(_){T=_,E.missingWarn=T},get fallbackWarn(){return S},set fallbackWarn(_){S=_,E.fallbackWarn=S},get fallbackRoot(){return k},set fallbackRoot(_){k=_},get fallbackFormat(){return A},set fallbackFormat(_){A=_,E.fallbackFormat=A},get warnHtmlMessage(){return h},set warnHtmlMessage(_){h=_,E.warnHtmlMessage=_},get escapeParameter(){return p},set escapeParameter(_){p=_,E.escapeParameter=_},t:Ke,getLocaleMessage:ve,setLocaleMessage:Je,mergeLocaleMessage:nn,getPostTranslationHandler:Ht,setPostTranslationHandler:Yt,getMissingHandler:xt,setMissingHandler:Kt,[tr]:en};return U.datetimeFormats=Fe,U.numberFormats=Bt,U.rt=Xt,U.te=tn,U.tm=Xe,U.d=Jt,U.n=Qt,U.getDateTimeFormat=l,U.setDateTimeFormat=c,U.mergeDateTimeFormat=g,U.getNumberFormat=P,U.setNumberFormat=H,U.mergeNumberFormat=K,U[nr]=n,U[Pt]=ct,U[Dt]=ut,U[kt]=zt,process.env.NODE_ENV!=="production"&&(U[Le]=_=>{E.__v_emitter=_},U[He]=()=>{E.__v_emitter=void 0}),U}const ur="vue-i18n: composer properties",wt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},$a={"vue-i18n-resource-inspector":"Search for scopes ..."},Va={"vue-i18n-timeline":16764185};let Ut;async function Wa(e,t){return new Promise((n,r)=>{try{Da({id:"vue-devtools-plugin-vue-i18n",label:wt["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:[ur],app:e},s=>{Ut=s,s.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Ga(o,i,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&_r(i,o.__VUE_I18N__):_r(i,o.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:wt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:$a["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ka(o,t)});const a=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Xa(o,t),o.nodeId==="global"){if(!a.has(o.app)){const[i]=await s.getComponentInstances(o.app);a.set(o.app,i)}s.highlightElement(a.get(o.app))}else{const i=ja(o.nodeId,t);i&&s.highlightElement(i)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Qa(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:wt["vue-i18n-timeline"],color:Va["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function fr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ga(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const s={label:`i18n (${fr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function _r(e,t){const n=ur;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:$t(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 $t(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];G(r)&&"source"in r?t[n]=xa(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:F(r)?t[n]=$t(r):t[n]=r}),t}const Ba={"<":"<",">":">",'"':""","&":"&"};function Ha(e){return e.replace(/[<>"&]/g,Ya)}function Ya(e){return Ba[e]||e}function xa(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Ha(e.source)}")`:"(?)"}`}}}function Ka(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,s]of t.__instances){const a=t.mode==="composition"?s:s.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${fr(r)} Scope`})}}function ja(e,t){let n=null;if(e!=="global"){for(const[r,s]of t.__instances.entries())if(s.id.toString()===e){n=r;break}}return n}function mr(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 Xa(e,t){const n=mr(e.nodeId,t);return n&&(e.state=Ja(n)),null}function Ja(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 s="Locale messages info",a=[{type:s,key:"messages",editable:!1,value:$t(e.messages.value)}];t[s]=a;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const u="Datetime formats info",d=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=d}return t}function xe(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 Qa(e,t){const n=mr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&L(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(L(e.state.value)||Y(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function qa(e){const t=L(e.locale)?e.locale:Ge,n=L(e.fallbackLocale)||Y(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=G(e.missing)?e.missing:void 0,s=w(e.silentTranslationWarn)||Se(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=w(e.silentFallbackWarn)||Se(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=R(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,I=G(e.postTranslation)?e.postTranslation:void 0,b=L(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,T=!!e.escapeParameterHtml,S=w(e.sync)?e.sync:!0;let k=e.messages;if(R(e.sharedMessages)){const v=e.sharedMessages;k=Object.keys(v).reduce((E,M)=>{const $=E[M]||(E[M]={});return Q($,v[M]),E},k||{})}const{__i18n:A,__root:y,__injectWithOption:f}=e,m=e.datetimeFormats,h=e.numberFormats,p=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:p,datetimeFormats:m,numberFormats:h,missing:r,missingWarn:s,fallbackWarn:a,fallbackRoot:o,fallbackFormat:i,modifiers:u,pluralRules:d,postTranslation:I,warnHtmlMessage:b,escapeParameter:T,messageResolver:e.messageResolver,inheritLocale:S,__i18n:A,__root:y,__injectWithOption:f}}function Vt(e={}){const t=Ft(qa(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},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(s){t.setMissingHandler(s)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=w(s)?!s:s},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=w(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,a){return t.te(s,a)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,a){t.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){t.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,a){t.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){t.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,a){t.setNumberFormat(s,a)},mergeNumberFormat(s,a){t.mergeNumberFormat(s,a)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const a=t;a[Le]&&a[Le](s)},r.__disableEmitter=()=>{const s=t;s[He]&&s[He]()}),r}function Za(e,t,n){return{beforeCreate(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const a=s.i18n;if(s.__i18n&&(a.__i18n=s.__i18n),a.__root=t,this===this.$root)this.$i18n=dr(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Vt(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=dr(e,s);else{this.$i18n=Vt({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&sr(t,s,s),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Re();if(!r)return;const s=this.$i18n;r.__VUE_I18N__=s.__composer;const a=this.__v_emitter=Et();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",xe)}},unmounted(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",xe),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function dr(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[tr](t.pluralizationRules||e.pluralizationRules);const n=Rt(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 Wt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function za({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===O.Fragment?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},W())}function pr(){return O.Fragment}const Er=O.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},Wt),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(b=>b[0]!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=L(e.plural)?+e.plural:e.plural);const i=za(t,a),u=s[Pt](e.keypath,i,o),d=Q(W(),r),I=L(e.tag)||F(e.tag)?e.tag:pr();return O.h(I,d,u)}}});function eo(e){return Y(e)&&!L(e[0])}function gr(e,t,n,r){const{slots:s,attrs:a}=t;return()=>{const o={part:!0};let i=W();e.locale&&(o.locale=e.locale),L(e.format)?o.key=e.format:F(e.format)&&(L(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((T,S)=>n.includes(S)?Q(W(),T,{[S]:e.format[S]}):T,W()));const u=r(e.value,o,i);let d=[o.key];Y(u)?d=u.map((T,S)=>{const k=s[T.type],A=k?k({[T.type]:T.value,index:S,parts:u}):[T.value];return eo(A)&&(A[0].key=`${T.type}-${S}`),A}):L(u)&&(d=[u]);const I=Q(W(),a),b=L(e.tag)||F(e.tag)?e.tag:pr();return O.h(b,I,d)}}const Tr=O.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},Wt),setup(e,t){const n=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return gr(e,t,jn,(...r)=>n[kt](...r))}});function to(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 no(e){const t=o=>{process.env.NODE_ENV!=="production"&&mt(Me(oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:u}=o;if(!i||!i.$)throw te(B.UNEXPECTED_ERROR);const d=to(e,i.$),I=Nr(u);return[Reflect.apply(d.t,d,[...br(I)]),d]};return{created:(o,i)=>{const[u,d]=t(i);le&&e.global===d&&(o.__i18nWatcher=O.watch(d.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=d,o.textContent=u},unmounted:o=>{le&&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 u=o.__composer,d=Nr(i);o.textContent=Reflect.apply(u.t,u,[...br(d)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function Nr(e){if(L(e))return{path:e};if(R(e)){if(!("path"in e))throw te(B.REQUIRED_VALUE,"path");return e}else throw te(B.INVALID_VALUE)}function br(e){const{path:t,locale:n,args:r,choice:s,plural:a}=e,o={},i=r||{};return L(n)&&(o.locale=n),J(s)&&(o.plural=s),J(a)&&(o.plural=a),[t,i,o]}function ro(e,t,...n){const r=R(n[0])?n[0]:{};(!w(r.globalInstall)||r.globalInstall)&&([Er.name,"I18nT"].forEach(a=>e.component(a,Er)),[Tr.name,"I18nN"].forEach(a=>e.component(a,Tr)),[Ir.name,"I18nD"].forEach(a=>e.component(a,Ir))),e.directive("t",no(t))}const so=_e("global-vue-i18n");function ao(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&mt(Me(oe.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,a]=oo(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(b){return r.get(b)||null}function u(b,T){r.set(b,T)}function d(b){r.delete(b)}const I={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(b,...T){if(process.env.NODE_ENV!=="production"&&(b.__VUE_I18N__=I),b.__VUE_I18N_SYMBOL__=o,b.provide(b.__VUE_I18N_SYMBOL__,I),R(T[0])){const A=T[0];I.__composerExtend=A.__composerExtend,I.__vueI18nExtend=A.__vueI18nExtend}let S=null;!t&&n&&(S=po(b,I.global)),__VUE_I18N_FULL_INSTALL__&&ro(b,I,...T),__VUE_I18N_LEGACY_API__&&t&&b.mixin(Za(a,a.__composer,I));const k=b.unmount;if(b.unmount=()=>{S&&S(),I.dispose(),k()},process.env.NODE_ENV!=="production"){if(!await Wa(b,I))throw te(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=Et();if(t){const f=a;f.__enableEmitter&&f.__enableEmitter(y)}else{const f=a;f[Le]&&f[Le](y)}y.on("*",xe)}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:i,__setInstance:u,__deleteInstance:d};return I}function Gt(e={}){const t=Re();if(t==null)throw te(B.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(B.NOT_INSTALLED);const n=lo(t),r=co(n),s=rr(t),a=io(e,s);if(a==="global")return sr(r,e,s),r;if(a==="parent"){let u=uo(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&fe(Me(oe.NOT_FOUND_PARENT_SCOPE)),u=r),u}const o=n;let i=o.__getInstance(t);if(i==null){const u=Q({},e);"__i18n"in s&&(u.__i18n=s.__i18n),r&&(u.__root=r),i=Ft(u),o.__composerExtend&&(i[Mt]=o.__composerExtend(i)),_o(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&a==="local"&&fe(Me(oe.DUPLICATE_USE_I18N_CALLING));return i}function oo(e,t){const n=O.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Vt(e)):n.run(()=>Ft(e));if(r==null)throw te(B.UNEXPECTED_ERROR);return[n,r]}function lo(e){const t=O.inject(e.isCE?so:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?B.NOT_INSTALLED_WITH_PROVIDE:B.UNEXPECTED_ERROR);return t}function io(e,t){return tt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function co(e){return e.mode==="composition"?e.global:e.global.__composer}function uo(e,t,n=!1){let r=null;const s=t.root;let a=fo(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(a);i!=null&&(r=i.__composer,n&&r&&!r[nr]&&(r=null))}if(r!=null||s===a)break;a=a.parent}return r}function fo(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _o(e,t,n){let r=null;O.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=Et();const s=n;s[Le]&&s[Le](r),r.on("*",xe)}},t),O.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",xe),s[He]&&s[He](),delete t.__VUE_I18N__),e.__deleteInstance(t);const a=s[Mt];a&&(a(),delete s[Mt])},t)}const mo=["locale","fallbackLocale","availableLocales"],hr=["t","rt","d","n","tm","te"];function po(e,t){const n=Object.create(null);return mo.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a)throw te(B.UNEXPECTED_ERROR);const o=O.isRef(a.value)?{get(){return a.value.value},set(i){a.value.value=i}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,hr.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a||!a.value)throw te(B.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,a)}),()=>{delete e.config.globalProperties.$i18n,hr.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Ir=O.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Wt),setup(e,t){const n=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return gr(e,t,Yn,(...r)=>n[Dt](...r))}});if(Ma(),ra(Fs),sa(Zs),aa(Sn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=he();e.__INTLIFY__=!0,ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Oe=ao({legacy:!1,locale:"zh",fallbackLocale:"en",messages:{zh:{name:"名称",supplier:"供应商",version:"版本",description:"描述",category:"类别",general:"通用",ioMapping:"I/O映射",modbusSlaveChannel:"Modbus从站通道",status:"状态",ethernet:"以太网",modbusTcpServer:"Modbus TCP服务器",modbusTcpClient:"Modbus TCP客户端",modbusTCPSlaveDevice:"Modbus TCP从站设备",company:"成都数字创新科技有限公司",descriptionMap:{ethernet:"一种在以太网上充当Modbus服务器的设备。",modbusTcpServer:"一种在以太网上充当Modbus TCP服务器的设备。",modbusTcpClient:"一种在以太网上充当Modbus TCP客户端的设备。",modbusTCPSlaveDevice:"一种在以太网上充当Modbus TCP从站设备。"},netInterface:"网络接口",ipAddress:"IP地址",subnetMask:"子网掩码",defaultGateway:"默认网关",adaptedOSConfiguration:"适配操作系统配置",busCycleTask:"总线周期任务",defaultTask:"使用父总线循环设置",responseTimeout:"响应超时(ms)",socketTimeout:"Socket超时(ms)",reconnect:"自动重连",slaveIpAddress:"从站IP地址",port:"端口",watchDog:" 看门狗",slavePort:"从站端口",bindToAdapter:"绑定到适配器",holdingRegister:"保持寄存器",writable:"可写入",inputRegister:"输入寄存器",discreteBitArea:"离散位区域",coil:"线圈",discreteInput:"离散输入",dataModel:"数据模型",startAddress:"起始地址"},en:{name:"Name",supplier:"Supplier",version:"Version",description:"Description",category:"Category",general:"General",ioMapping:"I/O Mapping",modbusSlaveChannel:"Modbus Slave Channel",status:"Status",ethernet:"Ethernet",modbusTcpServer:"Modbus TCP Server",modbusTcpClient:"Modbus TCP Client",modbusTCPSlaveDevice:"Modbus TCP Slave Device",company:"Chengdu AIOSYS Innovation Technology Co., Ltd.",descriptionMap:{ethernet:"A device that works as a Modbus Server on Ethernet.",modbusTcpServer:"A device that works as a Modbus TCP Server.",modbusTcpClient:"A device that works as a Modbus TCP Client.",modbusTCPSlaveDevice:"A device that works as a Modbus TCP Slave Device."},netInterface:"Network Interface",ipAddress:"IP Address",subnetMask:"Subnet Mask",defaultGateway:"Default Gateway",adaptedOSConfiguration:"Adapted OS Configuration",busCycleTask:"Bus Cycle Task",defaultTask:"Use Parent Bus Cycle Setting",responseTimeout:"Response Timeout(ms)",socketTimeout:"Socket Timeout(ms)",reconnect:"Reconnect",slaveIpAddress:"Slave IP Address",port:"Port",watchDog:"Watch Dog",slavePort:"Slave Port",bindToAdapter:"Bind to Adapter",holdingRegister:"Holding Register",writable:"Writable",inputRegister:"Input Register",discreteBitArea:"Discrete Bit Area",coil:"Coil",discreteInput:"Discrete Input",dataModel:"Data Model",startAddress:"Start Address"}}});typeof window<"u"&&(window.$t=Oe.global.t.bind(Oe.global),Object.defineProperty(window,"$locale",{get(){return typeof Oe.global.locale=="string"?Oe.global.locale:Oe.global.locale.value},set(e){Oe.global.locale=e}})),O.createApp(Ur).use(Oe).mount("#app");const Eo=[rn,sn],go={install(e){Eo.forEach(t=>{e.component(t.name,t)})}};X.Button2=sn,X.EthernetProtocolItem=Ue,X.Input=an,X.IpInput=kr,X.ModbusTCPClientProtocolItem=Ze,X.ModbusTCPServerProtocolItem=qe,X.ModbusTCPSlaveDeviceProtocolItem=ze,X.MyButton=rn,X.MyLibPlugin=Mr,X.ProtocolCollection=on,X.ProtocolItem=ne,X.ProtocolType=ue,X.default=go,X.protocolMap=$e,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/dist/plugin.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
modelValue: StringConstructor;
|
|
3
|
-
}>, (() => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}>) | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
6
|
-
modelValue: StringConstructor;
|
|
7
|
-
}>> & Readonly<{
|
|
8
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
-
export default _default;
|