/*! * shared v11.1.6 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */const Zn=typeof window<"u",zn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),bt=(e,t,n)=>yt({l:e,k:t,s:n}),yt=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),K=e=>typeof e=="number"&&isFinite(e),Pt=e=>Ce(e)==="[object Date]",Re=e=>Ce(e)==="[object RegExp]",ge=e=>k(e)&&Object.keys(e).length===0,Z=Object.assign,kt=Object.create,W=(e=null)=>kt(e);let Me;const ve=()=>Me||(Me=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function we(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Dt=Object.prototype.hasOwnProperty;function te(e,t){return Dt.call(e,t)}const H=Array.isArray,F=e=>typeof e=="function",I=e=>typeof e=="string",V=e=>typeof e=="boolean",R=e=>e!==null&&typeof e=="object",Rt=e=>R(e)&&F(e.then)&&F(e.catch),Be=Object.prototype.toString,Ce=e=>Be.call(e),k=e=>Ce(e)==="[object Object]",Mt=e=>e==null?"":H(e)||k(e)&&e.toString===Be?JSON.stringify(e,null,2):String(e);function Se(e,t=""){return e.reduce((n,s,c)=>c===0?n+s:n+t+s,"")}function vt(e,t){}const oe=e=>!R(e)||H(e);function er(e,t){if(oe(e)||oe(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:c}=n.pop();Object.keys(s).forEach(l=>{l!=="__proto__"&&(R(s[l])&&!R(c[l])&&(c[l]=Array.isArray(s[l])?[]:W()),oe(c[l])||oe(s[l])?c[l]=s[l]:n.push({src:s[l],des:c[l]}))})}}/*! * message-compiler v11.1.6 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function wt(e,t,n){return{line:e,column:t,offset:n}}function pe(e,t,n){return{start:e,end:t}}const P={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Ft=17;function Ie(e,t,n={}){const{domain:s,messages:c,args:l}=n,m=e,_=new SyntaxError(String(m));return _.code=e,t&&(_.location=t),_.domain=s,_}function Ut(e){throw e}const x=" ",Wt="\r",$=` `,$t="\u2028",Kt="\u2029";function Vt(e){const t=e;let n=0,s=1,c=1,l=0;const m=A=>t[A]===Wt&&t[A+1]===$,_=A=>t[A]===$,d=A=>t[A]===Kt,L=A=>t[A]===$t,O=A=>m(A)||_(A)||d(A)||L(A),C=()=>n,N=()=>s,b=()=>c,y=()=>l,S=A=>m(A)||d(A)||L(A)?$:t[A],g=()=>S(n),i=()=>S(n+l);function f(){return l=0,O(n)&&(s++,c=0),m(n)&&n++,n++,c++,t[n]}function E(){return m(n+l)&&l++,l++,t[n+l]}function o(){n=0,s=1,c=1,l=0}function h(A=0){l=A}function p(){const A=n+l;for(;A!==n;)f();l=0}return{index:C,line:N,column:b,peekOffset:y,charAt:S,currentChar:g,currentPeek:i,next:f,peek:E,reset:o,resetPeek:h,skipToPeek:p}}const q=void 0,Yt=".",Fe="'",Gt="tokenizer";function Xt(e,t={}){const n=t.location!==!1,s=Vt(e),c=()=>s.index(),l=()=>wt(s.line(),s.column(),s.index()),m=l(),_=c(),d={currentType:13,offset:_,startLoc:m,endLoc:m,lastType:13,lastOffset:_,lastStartLoc:m,lastEndLoc:m,braceNest:0,inLinked:!1,text:""},L=()=>d,{onError:O}=t;function C(r,a,u,...T){const v=L();if(a.column+=u,a.offset+=u,O){const w=n?pe(v.startLoc,a):null,G=Ie(r,w,{domain:Gt,args:T});O(G)}}function N(r,a,u){r.endLoc=l(),r.currentType=a;const T={type:a};return n&&(T.loc=pe(r.startLoc,r.endLoc)),u!=null&&(T.value=u),T}const b=r=>N(r,13);function y(r,a){return r.currentChar()===a?(r.next(),a):(C(P.EXPECTED_TOKEN,l(),0,a),"")}function S(r){let a="";for(;r.currentPeek()===x||r.currentPeek()===$;)a+=r.currentPeek(),r.peek();return a}function g(r){const a=S(r);return r.skipToPeek(),a}function i(r){if(r===q)return!1;const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a===95}function f(r){if(r===q)return!1;const a=r.charCodeAt(0);return a>=48&&a<=57}function E(r,a){const{currentType:u}=a;if(u!==2)return!1;S(r);const T=i(r.currentPeek());return r.resetPeek(),T}function o(r,a){const{currentType:u}=a;if(u!==2)return!1;S(r);const T=r.currentPeek()==="-"?r.peek():r.currentPeek(),v=f(T);return r.resetPeek(),v}function h(r,a){const{currentType:u}=a;if(u!==2)return!1;S(r);const T=r.currentPeek()===Fe;return r.resetPeek(),T}function p(r,a){const{currentType:u}=a;if(u!==7)return!1;S(r);const T=r.currentPeek()===".";return r.resetPeek(),T}function A(r,a){const{currentType:u}=a;if(u!==8)return!1;S(r);const T=i(r.currentPeek());return r.resetPeek(),T}function D(r,a){const{currentType:u}=a;if(!(u===7||u===11))return!1;S(r);const T=r.currentPeek()===":";return r.resetPeek(),T}function M(r,a){const{currentType:u}=a;if(u!==9)return!1;const T=()=>{const w=r.currentPeek();return w==="{"?i(r.peek()):w==="@"||w==="|"||w===":"||w==="."||w===x||!w?!1:w===$?(r.peek(),T()):B(r,!1)},v=T();return r.resetPeek(),v}function Y(r){S(r);const a=r.currentPeek()==="|";return r.resetPeek(),a}function B(r,a=!0){const u=(v=!1,w="")=>{const G=r.currentPeek();return G==="{"||G==="@"||!G?v:G==="|"?!(w===x||w===$):G===x?(r.peek(),u(!0,x)):G===$?(r.peek(),u(!0,$)):!0},T=u();return a&&r.resetPeek(),T}function U(r,a){const u=r.currentChar();return u===q?q:a(u)?(r.next(),u):null}function ie(r){const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===95||a===36}function ot(r){return U(r,ie)}function ut(r){const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===95||a===36||a===45}function ft(r){return U(r,ut)}function dt(r){const a=r.charCodeAt(0);return a>=48&&a<=57}function mt(r){return U(r,dt)}function _t(r){const a=r.charCodeAt(0);return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function Et(r){return U(r,_t)}function ke(r){let a="",u="";for(;a=mt(r);)u+=a;return u}function Lt(r){let a="";for(;;){const u=r.currentChar();if(u==="{"||u==="}"||u==="@"||u==="|"||!u)break;if(u===x||u===$)if(B(r))a+=u,r.next();else{if(Y(r))break;a+=u,r.next()}else a+=u,r.next()}return a}function ht(r){g(r);let a="",u="";for(;a=ft(r);)u+=a;return r.currentChar()===q&&C(P.UNTERMINATED_CLOSING_BRACE,l(),0),u}function pt(r){g(r);let a="";return r.currentChar()==="-"?(r.next(),a+=`-${ke(r)}`):a+=ke(r),r.currentChar()===q&&C(P.UNTERMINATED_CLOSING_BRACE,l(),0),a}function Nt(r){return r!==Fe&&r!==$}function Tt(r){g(r),y(r,"'");let a="",u="";for(;a=U(r,Nt);)a==="\\"?u+=gt(r):u+=a;const T=r.currentChar();return T===$||T===q?(C(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),T===$&&(r.next(),y(r,"'")),u):(y(r,"'"),u)}function gt(r){const a=r.currentChar();switch(a){case"\\":case"'":return r.next(),`\\${a}`;case"u":return De(r,a,4);case"U":return De(r,a,6);default:return C(P.UNKNOWN_ESCAPE_SEQUENCE,l(),0,a),""}}function De(r,a,u){y(r,a);let T="";for(let v=0;v{const T=r.currentChar();return T==="{"||T==="@"||T==="|"||T==="("||T===")"||!T||T===x?u:(u+=T,r.next(),a(u))};return a("")}function de(r){g(r);const a=y(r,"|");return g(r),a}function me(r,a){let u=null;switch(r.currentChar()){case"{":return a.braceNest>=1&&C(P.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),r.next(),u=N(a,2,"{"),g(r),a.braceNest++,u;case"}":return a.braceNest>0&&a.currentType===2&&C(P.EMPTY_PLACEHOLDER,l(),0),r.next(),u=N(a,3,"}"),a.braceNest--,a.braceNest>0&&g(r),a.inLinked&&a.braceNest===0&&(a.inLinked=!1),u;case"@":return a.braceNest>0&&C(P.UNTERMINATED_CLOSING_BRACE,l(),0),u=ce(r,a)||b(a),a.braceNest=0,u;default:{let v=!0,w=!0,G=!0;if(Y(r))return a.braceNest>0&&C(P.UNTERMINATED_CLOSING_BRACE,l(),0),u=N(a,1,de(r)),a.braceNest=0,a.inLinked=!1,u;if(a.braceNest>0&&(a.currentType===4||a.currentType===5||a.currentType===6))return C(P.UNTERMINATED_CLOSING_BRACE,l(),0),a.braceNest=0,_e(r,a);if(v=E(r,a))return u=N(a,4,ht(r)),g(r),u;if(w=o(r,a))return u=N(a,5,pt(r)),g(r),u;if(G=h(r,a))return u=N(a,6,Tt(r)),g(r),u;if(!v&&!w&&!G)return u=N(a,12,St(r)),C(P.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,u.value),g(r),u;break}}return u}function ce(r,a){const{currentType:u}=a;let T=null;const v=r.currentChar();switch((u===7||u===8||u===11||u===9)&&(v===$||v===x)&&C(P.INVALID_LINKED_FORMAT,l(),0),v){case"@":return r.next(),T=N(a,7,"@"),a.inLinked=!0,T;case".":return g(r),r.next(),N(a,8,".");case":":return g(r),r.next(),N(a,9,":");default:return Y(r)?(T=N(a,1,de(r)),a.braceNest=0,a.inLinked=!1,T):p(r,a)||D(r,a)?(g(r),ce(r,a)):A(r,a)?(g(r),N(a,11,It(r))):M(r,a)?(g(r),v==="{"?me(r,a)||T:N(a,10,Ot(r))):(u===7&&C(P.INVALID_LINKED_FORMAT,l(),0),a.braceNest=0,a.inLinked=!1,_e(r,a))}}function _e(r,a){let u={type:13};if(a.braceNest>0)return me(r,a)||b(a);if(a.inLinked)return ce(r,a)||b(a);switch(r.currentChar()){case"{":return me(r,a)||b(a);case"}":return C(P.UNBALANCED_CLOSING_BRACE,l(),0),r.next(),N(a,3,"}");case"@":return ce(r,a)||b(a);default:{if(Y(r))return u=N(a,1,de(r)),a.braceNest=0,a.inLinked=!1,u;if(B(r))return N(a,0,Lt(r));break}}return u}function At(){const{currentType:r,offset:a,startLoc:u,endLoc:T}=d;return d.lastType=r,d.lastOffset=a,d.lastStartLoc=u,d.lastEndLoc=T,d.offset=c(),d.startLoc=l(),s.currentChar()===q?N(d,13):_e(s,d)}return{nextToken:At,currentOffset:c,currentPosition:l,context:L}}const Ht="parser",jt=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Bt(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function xt(e={}){const t=e.location!==!1,{onError:n}=e;function s(i,f,E,o,...h){const p=i.currentPosition();if(p.offset+=o,p.column+=o,n){const A=t?pe(E,p):null,D=Ie(f,A,{domain:Ht,args:h});n(D)}}function c(i,f,E){const o={type:i};return t&&(o.start=f,o.end=f,o.loc={start:E,end:E}),o}function l(i,f,E,o){t&&(i.end=f,i.loc&&(i.loc.end=E))}function m(i,f){const E=i.context(),o=c(3,E.offset,E.startLoc);return o.value=f,l(o,i.currentOffset(),i.currentPosition()),o}function _(i,f){const E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(5,o,h);return p.index=parseInt(f,10),i.nextToken(),l(p,i.currentOffset(),i.currentPosition()),p}function d(i,f){const E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(4,o,h);return p.key=f,i.nextToken(),l(p,i.currentOffset(),i.currentPosition()),p}function L(i,f){const E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(9,o,h);return p.value=f.replace(jt,Bt),i.nextToken(),l(p,i.currentOffset(),i.currentPosition()),p}function O(i){const f=i.nextToken(),E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(8,o,h);return f.type!==11?(s(i,P.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),p.value="",l(p,o,h),{nextConsumeToken:f,node:p}):(f.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,j(f)),p.value=f.value||"",l(p,i.currentOffset(),i.currentPosition()),{node:p})}function C(i,f){const E=i.context(),o=c(7,E.offset,E.startLoc);return o.value=f,l(o,i.currentOffset(),i.currentPosition()),o}function N(i){const f=i.context(),E=c(6,f.offset,f.startLoc);let o=i.nextToken();if(o.type===8){const h=O(i);E.modifier=h.node,o=h.nextConsumeToken||i.nextToken()}switch(o.type!==9&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),o=i.nextToken(),o.type===2&&(o=i.nextToken()),o.type){case 10:o.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=C(i,o.value||"");break;case 4:o.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=d(i,o.value||"");break;case 5:o.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=_(i,o.value||"");break;case 6:o.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=L(i,o.value||"");break;default:{s(i,P.UNEXPECTED_EMPTY_LINKED_KEY,f.lastStartLoc,0);const h=i.context(),p=c(7,h.offset,h.startLoc);return p.value="",l(p,h.offset,h.startLoc),E.key=p,l(E,h.offset,h.startLoc),{nextConsumeToken:o,node:E}}}return l(E,i.currentOffset(),i.currentPosition()),{node:E}}function b(i){const f=i.context(),E=f.currentType===1?i.currentOffset():f.offset,o=f.currentType===1?f.endLoc:f.startLoc,h=c(2,E,o);h.items=[];let p=null;do{const M=p||i.nextToken();switch(p=null,M.type){case 0:M.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(M)),h.items.push(m(i,M.value||""));break;case 5:M.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(M)),h.items.push(_(i,M.value||""));break;case 4:M.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(M)),h.items.push(d(i,M.value||""));break;case 6:M.value==null&&s(i,P.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(M)),h.items.push(L(i,M.value||""));break;case 7:{const Y=N(i);h.items.push(Y.node),p=Y.nextConsumeToken||null;break}}}while(f.currentType!==13&&f.currentType!==1);const A=f.currentType===1?f.lastOffset:i.currentOffset(),D=f.currentType===1?f.lastEndLoc:i.currentPosition();return l(h,A,D),h}function y(i,f,E,o){const h=i.context();let p=o.items.length===0;const A=c(1,f,E);A.cases=[],A.cases.push(o);do{const D=b(i);p||(p=D.items.length===0),A.cases.push(D)}while(h.currentType!==13);return p&&s(i,P.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),l(A,i.currentOffset(),i.currentPosition()),A}function S(i){const f=i.context(),{offset:E,startLoc:o}=f,h=b(i);return f.currentType===13?h:y(i,E,o,h)}function g(i){const f=Xt(i,Z({},e)),E=f.context(),o=c(0,E.offset,E.startLoc);return t&&o.loc&&(o.loc.source=i),o.body=S(f),e.onCacheKey&&(o.cacheKey=e.onCacheKey(i)),E.currentType!==13&&s(f,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,i[E.offset]||""),l(o,f.currentOffset(),f.currentPosition()),o}return{parse:g}}function j(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 Jt(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:l=>(n.helpers.add(l),l)}}function Ue(e,t){for(let n=0;nWe(n)),e}function We(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;nm;function d(S,g){m.code+=S}function L(S,g=!0){const i=g?s:"";d(c?i+" ".repeat(S):i)}function O(S=!0){const g=++m.indentLevel;S&&L(g)}function C(S=!0){const g=--m.indentLevel;S&&L(g)}function N(){L(m.indentLevel)}return{context:_,push:d,indent:O,deindent:C,newline:N,helper:S=>`_${S}`,needIndent:()=>m.needIndent}}function zt(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),re(e,t.key),t.modifier?(e.push(", "),re(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function en(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const c=t.items.length;for(let l=0;l1){e.push(`${n("plural")}([`),e.indent(s());const c=t.cases.length;for(let l=0;l{const n=I(t.mode)?t.mode:"normal",s=I(t.filename)?t.filename:"message.intl";t.sourceMap;const c=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,l=t.needIndent?t.needIndent:n!=="arrow",m=e.helpers||[],_=Zt(e,{filename:s,breakLineCode:c,needIndent:l});_.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),_.indent(l),m.length>0&&(_.push(`const { ${Se(m.map(O=>`${O}: _${O}`),", ")} } = ctx`),_.newline()),_.push("return "),re(_,e),_.deindent(l),_.push("}"),delete e.helpers;const{code:d,map:L}=_.context();return{ast:e,code:d,map:L?L.toJSON():void 0}};function sn(e,t={}){const n=Z({},t),s=!!n.jit,c=!!n.minify,l=n.optimize==null?!0:n.optimize,_=xt(n).parse(e);return s?(l&&qt(_),c&&ne(_),{ast:_,code:""}):(Qt(_,n),rn(_,n))}/*! * core-base v11.1.6 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function an(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ve().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ve().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return R(e)&&Ae(e)===0&&(te(e,"b")||te(e,"body"))}const xe=["b","body"];function ln(e){return z(e,xe)}const Je=["c","cases"];function cn(e){return z(e,Je,[])}const Qe=["s","static"];function on(e){return z(e,Qe)}const qe=["i","items"];function un(e){return z(e,qe,[])}const Ze=["t","type"];function Ae(e){return z(e,Ze)}const ze=["v","value"];function ue(e,t){const n=z(e,ze);if(n!=null)return n;throw ae(t)}const et=["m","modifier"];function fn(e){return z(e,et)}const tt=["k","key"];function dn(e){const t=z(e,tt);if(t)return t;throw ae(6)}function z(e,t,n){for(let s=0;s_n(n,e)}function _n(e,t){const n=ln(t);if(n==null)throw ae(0);if(Ae(n)===1){const l=cn(n);return e.plural(l.reduce((m,_)=>[...m,$e(e,_)],[]))}else return $e(e,n)}function $e(e,t){const n=on(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=un(t).reduce((c,l)=>[...c,Ne(e,l)],[]);return e.normalize(s)}}function Ne(e,t){const n=Ae(t);switch(n){case 3:return ue(t,n);case 9:return ue(t,n);case 4:{const s=t;if(te(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(te(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw ae(n)}case 5:{const s=t;if(te(s,"i")&&K(s.i))return e.interpolate(e.list(s.i));if(te(s,"index")&&K(s.index))return e.interpolate(e.list(s.index));throw ae(n)}case 6:{const s=t,c=fn(s),l=dn(s);return e.linked(Ne(e,l),c?Ne(e,c):void 0,e.type)}case 7:return ue(t,n);case 8:return ue(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const En=e=>e;let fe=W();function Ln(e,t={}){let n=!1;const s=t.onError||Ut;return t.onError=c=>{n=!0,s(c)},{...sn(e,t),detectError:n}}function tr(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&I(e)){V(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||En)(e),c=fe[s];if(c)return c;const{ast:l,detectError:m}=Ln(e,{...t,location:!1,jit:!0}),_=Ee(l);return m?_:fe[s]=_}else{const n=e.cacheKey;if(n){const s=fe[n];return s||(fe[n]=Ee(e))}else return Ee(e)}}let le=null;function nr(e){le=e}function hn(e,t,n){le&&le.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const pn=Nn("function:translate");function Nn(e){return t=>le&&le.emit(e,t)}const J={INVALID_ARGUMENT:Ft,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},rr=24;function Q(e){return Ie(e,null,void 0)}function be(e,t){return t.locale!=null?Ke(t.locale):Ke(e.locale)}let Le;function Ke(e){if(I(e))return e;if(F(e)){if(e.resolvedOnce&&Le!=null)return Le;if(e.constructor.name==="Function"){const t=e();if(Rt(t))throw Q(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Le=t}else throw Q(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Q(J.NOT_SUPPORT_LOCALE_TYPE)}function Tn(e,t,n){return[...new Set([n,...H(t)?t:R(t)?Object.keys(t):I(t)?[t]:[n]])]}function sr(e,t,n){const s=I(n)?n:Te,c=e;c.__localeChainCache||(c.__localeChainCache=new Map);let l=c.__localeChainCache.get(s);if(!l){l=[];let m=[n];for(;H(m);)m=Ve(l,m,t);const _=H(t)||!k(t)?t:t.default?t.default:null;m=I(_)?[_]:_,H(m)&&Ve(l,m,!1),c.__localeChainCache.set(s,l)}return l}function Ve(e,t,n){let s=!0;for(let c=0;c{m===void 0?m=_:m+=_},N[1]=()=>{m!==void 0&&(t.push(m),m=void 0)},N[2]=()=>{N[0](),c++},N[3]=()=>{if(c>0)c--,s=4,N[0]();else{if(c=0,m===void 0||(m=bn(m),m===!1))return!1;N[1]()}};function b(){const y=e[n+1];if(s===5&&y==="'"||s===6&&y==='"')return n++,_="\\"+y,N[0](),!0}for(;s!==null;)if(n++,l=e[n],!(l==="\\"&&b())){if(d=An(l),C=ee[s],L=C[d]||C.l||8,L===8||(s=L[0],L[1]!==void 0&&(O=N[L[1]],O&&(_=l,O()===!1))))return;if(s===7)return t}}const Ye=new Map;function Pn(e,t){return R(e)?e[t]:null}function ar(e,t){if(!R(e))return null;let n=Ye.get(t);if(n||(n=yn(t),n&&Ye.set(t,n)),!n)return null;const s=n.length;let c=e,l=0;for(;l`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Dn(){return{upper:(e,t)=>t==="text"&&I(e)?e.toUpperCase():t==="vnode"&&R(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&I(e)?e.toLowerCase():t==="vnode"&&R(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&I(e)?Ge(e):t==="vnode"&&R(e)&&"__v_isVNode"in e?Ge(e.children):e}}let nt;function ir(e){nt=e}let rt;function cr(e){rt=e}let st;function or(e){st=e}let at=null;const ur=e=>{at=e},Rn=()=>at;let lt=null;const fr=e=>{lt=e},dr=()=>lt;let Xe=0;function mr(e={}){const t=F(e.onWarn)?e.onWarn:vt,n=I(e.version)?e.version:kn,s=I(e.locale)||F(e.locale)?e.locale:Te,c=F(s)?Te:s,l=H(e.fallbackLocale)||k(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c,m=k(e.messages)?e.messages:he(c),_=k(e.datetimeFormats)?e.datetimeFormats:he(c),d=k(e.numberFormats)?e.numberFormats:he(c),L=Z(W(),e.modifiers,Dn()),O=e.pluralRules||W(),C=F(e.missing)?e.missing:null,N=V(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,b=V(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,S=!!e.unresolving,g=F(e.postTranslation)?e.postTranslation:null,i=k(e.processor)?e.processor:null,f=V(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,o=F(e.messageCompiler)?e.messageCompiler:nt,h=F(e.messageResolver)?e.messageResolver:rt||Pn,p=F(e.localeFallbacker)?e.localeFallbacker:st||Tn,A=R(e.fallbackContext)?e.fallbackContext:void 0,D=e,M=R(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,Y=R(D.__numberFormatters)?D.__numberFormatters:new Map,B=R(D.__meta)?D.__meta:{};Xe++;const U={version:n,cid:Xe,locale:s,fallbackLocale:l,messages:m,modifiers:L,pluralRules:O,missing:C,missingWarn:N,fallbackWarn:b,fallbackFormat:y,unresolving:S,postTranslation:g,processor:i,warnHtmlMessage:f,escapeParameter:E,messageCompiler:o,messageResolver:h,localeFallbacker:p,fallbackContext:A,onWarn:t,__meta:B};return U.datetimeFormats=_,U.numberFormats=d,U.__datetimeFormatters=M,U.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&hn(U,n,B),U}const he=e=>({[e]:W()});function Pe(e,t,n,s,c){const{missing:l,onWarn:m}=e;if(l!==null){const _=l(e,n,t,c);return I(_)?_:t}else return t}function _r(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Mn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function vn(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s{wn.includes(d)?m[d]=n[d]:l[d]=n[d]}),I(s)?l.locale=s:k(s)&&(m=s),k(c)&&(m=c),[l.key||"",_,l,m]}function Lr(e,t,n){const s=e;for(const c in n){const l=`${t}__${c}`;s.__datetimeFormatters.has(l)&&s.__datetimeFormatters.delete(l)}}function hr(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:c,onWarn:l,localeFallbacker:m}=e,{__numberFormatters:_}=e,[d,L,O,C]=Wn(...t),N=V(O.missingWarn)?O.missingWarn:e.missingWarn;V(O.fallbackWarn)?O.fallbackWarn:e.fallbackWarn;const b=!!O.part,y=be(e,O),S=m(e,c,y);if(!I(d)||d==="")return new Intl.NumberFormat(y,C).format(L);let g={},i,f=null;const E="number format";for(let p=0;p{Un.includes(d)?m[d]=n[d]:l[d]=n[d]}),I(s)?l.locale=s:k(s)&&(m=s),k(c)&&(m=c),[l.key||"",_,l,m]}function pr(e,t,n){const s=e;for(const c in n){const l=`${t}__${c}`;s.__numberFormatters.has(l)&&s.__numberFormatters.delete(l)}}const $n=e=>e,Kn=e=>"",Vn="text",Yn=e=>e.length===0?"":Se(e),Gn=Mt;function He(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Xn(e){const t=K(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(K(e.named.count)||K(e.named.n))?K(e.named.count)?e.named.count:K(e.named.n)?e.named.n:t:t}function Hn(e,t){t.count||(t.count=e),t.n||(t.n=e)}function jn(e={}){const t=e.locale,n=Xn(e),s=R(e.pluralRules)&&I(t)&&F(e.pluralRules[t])?e.pluralRules[t]:He,c=R(e.pluralRules)&&I(t)&&F(e.pluralRules[t])?He:void 0,l=i=>i[s(n,i.length,c)],m=e.list||[],_=i=>m[i],d=e.named||W();K(e.pluralIndex)&&Hn(n,d);const L=i=>d[i];function O(i,f){const E=F(e.messages)?e.messages(i,!!f):R(e.messages)?e.messages[i]:!1;return E||(e.parent?e.parent.message(i):Kn)}const C=i=>e.modifiers?e.modifiers[i]:$n,N=k(e.processor)&&F(e.processor.normalize)?e.processor.normalize:Yn,b=k(e.processor)&&F(e.processor.interpolate)?e.processor.interpolate:Gn,y=k(e.processor)&&I(e.processor.type)?e.processor.type:Vn,g={list:_,named:L,plural:l,linked:(i,...f)=>{const[E,o]=f;let h="text",p="";f.length===1?R(E)?(p=E.modifier||p,h=E.type||h):I(E)&&(p=E||p):f.length===2&&(I(E)&&(p=E||p),I(o)&&(h=o||h));const A=O(i,!0)(g),D=h==="vnode"&&H(A)&&p?A[0]:A;return p?C(p)(D,h):D},message:O,type:y,interpolate:b,normalize:N,values:Z(W(),m,d)};return g}const je=()=>"",X=e=>F(e);function Nr(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:c,messageCompiler:l,fallbackLocale:m,messages:_}=e,[d,L]=Jn(...t),O=V(L.missingWarn)?L.missingWarn:e.missingWarn,C=V(L.fallbackWarn)?L.fallbackWarn:e.fallbackWarn,N=V(L.escapeParameter)?L.escapeParameter:e.escapeParameter,b=!!L.resolvedMessage,y=I(L.default)||V(L.default)?V(L.default)?l?d:()=>d:L.default:n?l?d:()=>d:null,S=n||y!=null&&(I(y)||F(y)),g=be(e,L);N&&Bn(L);let[i,f,E]=b?[d,g,_[g]||W()]:it(e,d,g,m,C,O),o=i,h=d;if(!b&&!(I(o)||se(o)||X(o))&&S&&(o=y,h=o),!b&&(!(I(o)||se(o)||X(o))||!I(f)))return c?ye:d;let p=!1;const A=()=>{p=!0},D=X(o)?o:ct(e,d,f,o,h,A);if(p)return o;const M=qn(e,f,E,L),Y=jn(M),B=xn(e,D,Y),U=s?s(B,d):B;if(__INTLIFY_PROD_DEVTOOLS__){const ie={timestamp:Date.now(),key:I(d)?d:X(o)?o.key:"",locale:f||(X(o)?o.locale:""),format:I(o)?o:X(o)?o.source:"",message:U};ie.meta=Z({},e.__meta,Rn()||{}),pn(ie)}return U}function Bn(e){H(e.list)?e.list=e.list.map(t=>I(t)?we(t):t):R(e.named)&&Object.keys(e.named).forEach(t=>{I(e.named[t])&&(e.named[t]=we(e.named[t]))})}function it(e,t,n,s,c,l){const{messages:m,onWarn:_,messageResolver:d,localeFallbacker:L}=e,O=L(e,s,n);let C=W(),N,b=null;const y="translate";for(let S=0;Ss;return L.locale=n,L.key=t,L}const d=m(s,Qn(e,n,c,s,_,l));return d.locale=n,d.key=t,d.source=s,d}function xn(e,t,n){return t(n)}function Jn(...e){const[t,n,s]=e,c=W();if(!I(t)&&!K(t)&&!X(t)&&!se(t))throw Q(J.INVALID_ARGUMENT);const l=K(t)?String(t):(X(t),t);return K(n)?c.plural=n:I(n)?c.default=n:k(n)&&!ge(n)?c.named=n:H(n)&&(c.list=n),K(s)?c.plural=s:I(s)?c.default=s:k(s)&&Z(c,s),[l,c]}function Qn(e,t,n,s,c,l){return{locale:t,key:n,warnHtmlMessage:c,onError:m=>{throw l&&l(m),m},onCacheKey:m=>bt(t,n,m)}}function qn(e,t,n,s){const{modifiers:c,pluralRules:l,messageResolver:m,fallbackLocale:_,fallbackWarn:d,missingWarn:L,fallbackContext:O}=e,N={locale:t,modifiers:c,pluralRules:l,messages:(b,y)=>{let S=m(n,b);if(S==null&&(O||y)){const[,,g]=it(O||e,b,t,_,d,L);S=m(g,b)}if(I(S)||se(S)){let g=!1;const f=ct(e,b,t,S,b,()=>{g=!0});return g?je:f}else return X(S)?S:je}};return e.processor&&(N.processor=e.processor),s.list&&(N.list=s.list),s.named&&(N.named=s.named),K(s.plural)&&(N.pluralIndex=s.plural),N}an();export{mn as A,Nr as B,rr as C,Te as D,Fn as E,Er as F,Wn as G,hr as H,X as I,Un as J,wn as K,ir as L,lr as M,ye as N,cr as O,or as P,ve as Q,nr as R,tr as S,ar as T,Z as a,R as b,Ie as c,W as d,V as e,I as f,H as g,k as h,ge as i,Re as j,F as k,Zn as l,zn as m,er as n,te as o,mr as p,Lr as q,pr as r,se as s,ur as t,_r as u,dr as v,K as w,sr as x,fr as y,Jn as z};