|
|
/*! * 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,""").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===$||
`,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<t.length;s++){const c=t[s];if(te(e,c)&&e[c]!=null)return e[c]}return n}const mn=[...xe,...Je,...Qe,...qe,...tt,...et,...ze,...Ze];function ae(e){return new Error(`unhandled node type: ${e}`)}function Ee(e){return n=>_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<t.length&&V(s);c++){const l=t[c];I(l)&&(s=gn(e,t[c],n))}return s}function gn(e,t,n){let s;const c=t.split("-");do{const l=c.join("-");s=Cn(e,l,n),c.splice(-1,1)}while(c.length&&s===!0);return s}function Cn(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const c=t.replace(/!/g,"");e.push(c),(H(n)||k(n))&&n[c]&&(s=n[c])}return s}const ee=[];ee[0]={w:[0],i:[3,0],"[":[4],o:[7]};ee[1]={w:[1],".":[2],"[":[4],o:[7]};ee[2]={w:[2],i:[3,0],0:[3,0]};ee[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ee[4]={"'":[5,0]
|