EasyDarwin/Win/web/assets/js/@intlify-BG2mqeYI.173711024...

16 lines
33 KiB
JavaScript
Raw Permalink Normal View History

2025-01-18 02:18:11 +00:00
/*!
* shared v10.0.5
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/const qn=typeof window<"u",Zn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Nt=(e,t,n)=>Tt({l:e,k:t,s:n}),Tt=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Y=e=>typeof e=="number"&&isFinite(e),gt=e=>Ce(e)==="[object Date]",Re=e=>Ce(e)==="[object RegExp]",ge=e=>k(e)&&Object.keys(e).length===0,Z=Object.assign,Ct=Object.create,W=(e=null)=>Ct(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,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const St=Object.prototype.hasOwnProperty;function te(e,t){return St.call(e,t)}const H=Array.isArray,F=e=>typeof e=="function",I=e=>typeof e=="string",K=e=>typeof e=="boolean",R=e=>e!==null&&typeof e=="object",It=e=>R(e)&&F(e.then)&&F(e.catch),Be=Object.prototype.toString,Ce=e=>Be.call(e),k=e=>Ce(e)==="[object Object]",Ot=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,i)=>i===0?n+s:n+t+s,"")}function At(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const oe=e=>!R(e)||H(e);function zn(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:i}=n.pop();Object.keys(s).forEach(l=>{l!=="__proto__"&&(R(s[l])&&!R(i[l])&&(i[l]=Array.isArray(s[l])?[]:W()),oe(i[l])||oe(s[l])?i[l]=s[l]:n.push({src:s[l],des:i[l]}))})}}/*!
* message-compiler v10.0.5
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function bt(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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},yt=17;function Ie(e,t,n={}){const{domain:s,messages:i,args:l}=n,m=e,_=new SyntaxError(String(m));return _.code=e,t&&(_.location=t),_.domain=s,_}function Pt(e){throw e}const x=" ",kt="\r",$=`
`,Dt="\u2028",Rt="\u2029";function Mt(e){const t=e;let n=0,s=1,i=1,l=0;const m=O=>t[O]===kt&&t[O+1]===$,_=O=>t[O]===$,f=O=>t[O]===Rt,L=O=>t[O]===Dt,S=O=>m(O)||_(O)||f(O)||L(O),C=()=>n,N=()=>s,A=()=>i,y=()=>l,b=O=>m(O)||f(O)||L(O)?$:t[O],T=()=>b(n),c=()=>b(n+l);function d(){return l=0,S(n)&&(s++,i=0),m(n)&&n++,n++,i++,t[n]}function E(){return m(n+l)&&l++,l++,t[n+l]}function o(){n=0,s=1,i=1,l=0}function h(O=0){l=O}function p(){const O=n+l;for(;O!==n;)d();l=0}return{index:C,line:N,column:A,peekOffset:y,charAt:b,currentChar:T,currentPeek:c,next:d,peek:E,reset:o,resetPeek:h,skipToPeek:p}}const q=void 0,vt=".",Fe="'",wt="tokenizer";function Ft(e,t={}){const n=t.location!==!1,s=Mt(e),i=()=>s.index(),l=()=>bt(s.line(),s.column(),s.index()),m=l(),_=i(),f={currentType:13,offset:_,startLoc:m,endLoc:m,lastType:13,lastOffset:_,lastStartLoc:m,lastEndLoc:m,braceNest:0,inLinked:!1,text:""},L=()=>f,{onError:S}=t;function C(r,a,u,...g){const v=L();if(a.column+=u,a.offset+=u,S){const w=n?pe(v.startLoc,a):null,G=Ie(r,w,{domain:wt,args:g});S(G)}}function N(r,a,u){r.endLoc=l(),r.currentType=a;const g={type:a};return n&&(g.loc=pe(r.startLoc,r.endLoc)),u!=null&&(g.value=u),g}const A=r=>N(r,13);function y(r,a){return r.currentChar()===a?(r.next(),a):(C(P.EXPECTED_TOKEN,l(),0,a),"")}function b(r){let a="";for(;r.currentPeek()===x||r.currentPeek()===$;)a+=r.currentPeek(),r.peek();return a}function T(r){const a=b(r);return r.skipToPeek(),a}function c(r){if(r===q)return!1;const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a===95}function d(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;b(r);const g=c(r.currentPeek());return r.resetPeek(),g}function o(r,a){const{currentType:u}=a;if(u!==2)return!1;b(r);const g=r.currentPeek()==="-"?r.peek():r.currentPeek(),v=d(g);return r.resetPeek(),v}function h(r,a){const{currentType:u}=a;if(u!==2)return!1;b(r);const g=r.currentPeek()===Fe;return r.resetPeek(),g}function p(r,a){const{currentType:u}=a;if(u!==7)return!1;b(r);const g=r.currentPeek()===".";return r.resetPeek(),g}function O(r,a){const{currentType:u}=a;if(u!==8)return!1;b(r);const g=c(r.currentPeek());return r.resetPeek(),g}function D(r,a){const{currentType:u}=a;if(!(u===7||u===11))return!1;b(r);const g=r.currentPeek()===":";return r.resetPeek(),g}function M(r,a){const{currentType:u}=a;if(u!==9)return!1;const g=()=>{const w=r.currentPeek();return w==="{"?c(r.peek()):w==="@"||w==="|"||w===":"||w==="."||w===x||!w?!1:w===$?(r.peek(),g()):B(r,!1)},v=g();return r.resetPeek(),v}function V(r){b(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},g=u();return a&&r.resetPeek(),g}function U(r,a){const u=r.currentChar();return u===q?q:a(u)?(r.next(),u):null}function ce(r){const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===95||a===36}function tt(r){return U(r,ce)}function nt(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 rt(r){return U(r,nt)}function st(r){const a=r.charCodeAt(0);return a>=48&&a<=57}function at(r){return U(r,st)}function lt(r){const a=r.charCodeAt(0);return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function ct(r){return U(r,lt)}function ke(r){let a="",u="";for(;a=at(r);)u+=a;return u}function it(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(V(r))break;a+=u,r.next()}else a+=u,r.next()}return a}function ot(r){T(r);let a="",u="";for(;a=rt(r);)u+=a;return r.currentChar()===q&&C(P.UNTERMINATED_CLOSING_BRACE,l(),0),u}function ut(r){T(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 ft(r){return r!==Fe&&r!==$}function dt(r){T(r),y(r,"'");let a="",u="";for(;a=U(r,ft);)a==="\\"?u+=mt(r):u+=a;const g=r.currentChar();return g===$||
`,m=t.needIndent?t.needIndent:n!=="arrow",_=e.helpers||[],f=Xt(e,{mode:n,filename:s,sourceMap:i,breakLineCode:l,needIndent:m});f.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),f.indent(m),_.length>0&&(f.push(`const { ${Se(_.map(C=>`${C}: _${C}`),", ")} } = ctx`),f.newline()),f.push("return "),re(f,e),f.deindent(m),f.push("}"),delete e.helpers;const{code:L,map:S}=f.context();return{ast:e,code:L,map:S?S.toJSON():void 0}};function Qt(e,t={}){const n=Z({},t),s=!!n.jit,i=!!n.minify,l=n.optimize==null?!0:n.optimize,_=Yt(n).parse(e);return s?(l&&Gt(_),i&&ne(_),{ast:_,code:""}):(Vt(_,n),Jt(_,n))}/*!
* core-base v10.0.5
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function qt(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ve().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ve().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Ee(e){return n=>Zt(n,e)}function Zt(e,t){const n=en(t);if(n==null)throw se(0);if(Ae(n)===1){const l=nn(n);return e.plural(l.reduce((m,_)=>[...m,$e(e,_)],[]))}else return $e(e,n)}const zt=["b","body"];function en(e){return z(e,zt)}const tn=["c","cases"];function nn(e){return z(e,tn,[])}function $e(e,t){const n=sn(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=ln(t).reduce((i,l)=>[...i,Ne(e,l)],[]);return e.normalize(s)}}const rn=["s","static"];function sn(e){return z(e,rn)}const an=["i","items"];function ln(e){return z(e,an,[])}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 se(n)}case 5:{const s=t;if(te(s,"i")&&Y(s.i))return e.interpolate(e.list(s.i));if(te(s,"index")&&Y(s.index))return e.interpolate(e.list(s.index));throw se(n)}case 6:{const s=t,i=fn(s),l=mn(s);return e.linked(Ne(e,l),i?Ne(e,i):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 cn=["t","type"];function Ae(e){return z(e,cn)}const on=["v","value"];function ue(e,t){const n=z(e,on);if(n)return n;throw se(t)}const un=["m","modifier"];function fn(e){return z(e,un)}const dn=["k","key"];function mn(e){const t=z(e,dn);if(t)return t;throw se(6)}function z(e,t,n){for(let s=0;s<t.length;s++){const i=t[s];if(te(e,i)&&e[i]!=null)return e[i]}return n}function se(e){return new Error(`unhandled node type: ${e}`)}const _n=e=>e;let fe=W();function ae(e){return R(e)&&Ae(e)===0&&(te(e,"b")||te(e,"body"))}function En(e,t={}){let n=!1;const s=t.onError||Pt;return t.onError=i=>{n=!0,s(i)},{...Qt(e,t),detectError:n}}function er(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&I(e)){K(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||_n)(e),i=fe[s];if(i)return i;const{ast:l,detectError:m}=En(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 tr(e){le=e}function Ln(e,t,n){le&&le.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const hn=pn("function:translate");function pn(e){return t=>le&&le.emit(e,t)}const J={INVALID_ARGUMENT:yt,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},nr=24;function Q(e){return Ie(e,null,void 0)}function be(e,t){return t.locale!=null?Ye(t.locale):Ye(e.locale)}let Le;function Ye(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(It(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 Nn(e,t,n){return[...new Set([n,...H(t)?t:R(t)?Object.keys(t):I(t)?[t]:[n]])]}function rr(e,t,n){const s=I(n)?n:Te,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let l=i.__localeChainCache.get(s);if(!l){l=[];let m=[n];for(;H(m);)m=Ke(l,m,t);const _=H(t)||!k(t)?t:t.default?t.default:null;m=I(_)?[_]:_,H(m)&&Ke(l,m,!1),i.__localeChainCache.set(s,l)}return l}function Ke(e,t,n){let s=!0;for(let i=0;i<t.length&&K(s);i++){const l=t[i];I(l)&&(s=Tn(e,t[i],n))}return s}function Tn(e,t,n){let s;const i=t.split("-");do{const l=i.join("-");s=gn(e,l,n),i.splice(-1,1)}while(i.length&&s===!0);return s}function gn(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(H(n)||k(n))&&n[i]&&(s=n[i])}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],'"':[6,0],"[":[4,2],"]":[1,3],