mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
25 lines
82 KiB
JavaScript
25 lines
82 KiB
JavaScript
|
import{s as nr,u as xe,f as vs,i as Ne,n as ht,d as rr,r as sr,c as ee,h as or,p as Lt,j as se,w as We,k as ar,m as ir,l as Os,e as rt,q as cr,v as Ss,x as lr,y as ur,t as Ns,g as bs,o as Ts,z as fr,a as As}from"./arco.b087a425.js";/*!
|
||
|
* vue-router v4.4.3
|
||
|
* (c) 2024 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/const Ue=typeof document<"u";function Cs(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const x=Object.assign;function Pt(e,t){const n={};for(const r in t){const s=t[r];n[r]=ue(s)?s.map(e):e(s)}return n}const et=()=>{},ue=Array.isArray,dr=/#/g,Ls=/&/g,Ps=/\//g,ws=/=/g,Rs=/\?/g,mr=/\+/g,Is=/%5B/g,ks=/%5D/g,pr=/%5E/g,Ms=/%60/g,hr=/%7B/g,Ds=/%7C/g,_r=/%7D/g,Fs=/%20/g;function Bt(e){return encodeURI(""+e).replace(Ds,"|").replace(Is,"[").replace(ks,"]")}function $s(e){return Bt(e).replace(hr,"{").replace(_r,"}").replace(pr,"^")}function Dt(e){return Bt(e).replace(mr,"%2B").replace(Fs,"+").replace(dr,"%23").replace(Ls,"%26").replace(Ms,"`").replace(hr,"{").replace(_r,"}").replace(pr,"^")}function Us(e){return Dt(e).replace(ws,"%3D")}function js(e){return Bt(e).replace(dr,"%23").replace(Rs,"%3F")}function xs(e){return e==null?"":js(e).replace(Ps,"%2F")}function st(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ws=/\/$/,Ks=e=>e.replace(Ws,"");function wt(e,t,n="/"){let r,s={},o="",i="";const c=t.indexOf("#");let a=t.indexOf("?");return c<a&&c>=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,c>-1?c:t.length),s=e(o)),c>-1&&(r=r||t.slice(0,c),i=t.slice(c,t.length)),r=Bs(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:st(i)}}function Hs(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function sn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gs(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ke(t.matched[r],n.matched[s])&&gr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ke(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Vs(e[n],t[n]))return!1;return!0}function Vs(e,t){return ue(e)?on(e,t):ue(t)?on(t,e):e===t}function on(e,t){return ue(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Bs(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,c;for(i=0;i<r.length;i++)if(c=r[i],c!==".")if(c==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const ye={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ot;(function(e){e.pop="pop",e.push="push"})(ot||(ot={}));var tt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tt||(tt={}));function Xs(e){if(!e)if(Ue){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ks(e)}const Ys=/^[^#]+#/;function qs(e,t){return e.replace(Ys,"#")+t}function Qs(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const _t=()=>({left:window.scrollX,top:window.scrollY});function Js(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Qs(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function an(e,t){return(history.state?history.state.position-t:-1)+e}const Ft=new Map;function Zs(e,t){Ft.set(e,t)}function zs(e){const t=Ft.get(e);return Ft.delete(e),t}let eo=()=>location.protocol+"//"+location.host;function Er(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let c=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(c);return a[0]!=="/"&&(a="/"+a),sn(a,"")}return sn(n,e)+r+s}function to(e,t,n,r){let s=[],o=[],i=null;const c=({state:m})=>{const _=Er(e,location),C=n.value,A=t.value;let N=0;if(m){if(n.value=_,t.value=m,i&&i===C){i=null;return}N=A?m.position-A.position:0}else r(_);s.forEach(L=>{L(n.value,C,{delta:N,type:ot.pop,direction:N?N>0?tt.forward:tt.back:tt.u
|
||
|
* pinia v2.2.2
|
||
|
* (c) 2024 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/let Nr;const Et=e=>Nr=e,br=Symbol();function Ut(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var nt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(nt||(nt={}));function Rc(){const e=ar(!0),t=e.run(()=>se({}));let n=[],r=[];const s=ir({install(o){Et(s),s._a=o,o.provide(br,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Ro?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Tr=()=>{};function On(e,t,n,r=Tr){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&lr()&&ur(s),s}function $e(e,...t){e.slice().forEach(n=>{n(...t)})}const Io=e=>e(),Sn=Symbol(),It=Symbol();function jt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Ut(s)&&Ut(r)&&e.hasOwnProperty(n)&&!rt(r)&&!cr(r)?e[n]=jt(s,r):e[n]=r}return e}const ko=Symbol();function Mo(e){return!Ut(e)||!e.hasOwnProperty(ko)}const{assign:Oe}=Object;function Do(e){return!!(rt(e)&&e.effect)}function Fo(e,t,n,r){const{state:s,actions:o,getters:i}=t,c=n.state.value[e];let a;function f(){c||(n.state.value[e]=s?s():{});const p=Ns(n.state.value[e]);return Oe(p,o,Object.keys(i||{}).reduce((d,m)=>(d[m]=ir(ee(()=>{Et(n);const _=n._s.get(e);return i[m].call(_,_)})),d),{}))}return a=Ar(e,f,t,n,r,!0),a}function Ar(e,t,n={},r,s,o){let i;const c=Oe({actions:{}},n),a={deep:!0};let f,p,d=[],m=[],_;const C=r.state.value[e];!o&&!C&&(r.state.value[e]={}),se({});let A;function N(E){let P;f=p=!1,typeof E=="function"?(E(r.state.value[e]),P={type:nt.patchFunction,storeId:e,events:_}):(jt(r.state.value[e],E),P={type:nt.patchObject,payload:E,storeId:e,events:_});const F=A=Symbol();ht().then(()=>{A===F&&(f=!0)}),p=!0,$e(d,P,r.state.value[e])}const L=o?function(){const{state:P}=n,F=P?P():{};this.$patch(Y=>{Oe(Y,F)})}:Tr;function T(){i.stop(),d=[],m=[],r._s.delete(e)}const h=(E,P="")=>{if(Sn in E)return E[It]=P,E;const F=function(){Et(r);const Y=Array.from(arguments),U=[],V=[];function qe(q){U.push(q)}function Ce(q){V.push(q)}$e(m,{args:Y,name:F[It],store:S,after:qe,onError:Ce});let fe;try{fe=E.apply(this&&this.$id===e?this:S,Y)}catch(q){throw $e(V,q),q}return fe instanceof Promise?fe.then(q=>($e(U,q),q)).catch(q=>($e(V,q),Promise.reject(q))):($e(U,fe),fe)};return F[Sn]=!0,F[It]=P,F},g={_p:r,$id:e,$onAction:On.bind(null,m),$patch:N,$reset:L,$subscribe(E,P={}){const F=On(d,E,P.detached,()=>Y()),Y=i.run(()=>We(()=>r.state.value[e],U=>{(P.flush==="sync"?p:f)&&E({storeId:e,type:nt.direct,events:_},U)},Oe({},a,P)));return F},$dispose:T},S=sr(g);r._s.set(e,S);const v=(r._a&&r._a.runWithContext||Io)(()=>r._e.run(()=>(i=ar()).run(()=>t({action:h}))));for(const E in v){const P=v[E];if(rt(P)&&!Do(P)||cr(P))o||(C&&Mo(P)&&(rt(P)?P.value=C[E]:jt(P,C[E])),r.state.value[e][E]=P);else if(typeof P=="function"){const F=h(P,E);v[E]=F,c.actions[E]=P}}return Oe(S,v),Oe(Ss(S),v),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:E=>{N(P=>{Oe(P,E)})}}),r._p.forEach(E=>{Oe(S,i.run(()=>E({store:S,app:r._a,pinia:r,options:c})))}),C&&o&&n.hydrate&&n.hydrate(S.$state,C),f=!0,p=!0,S}function Ic(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(c,a){const f=Os();return c=c||(f?Ne(br,null):null),c&&Et(c),c=Nr,c._s.has(r)||(o?Ar(r,t,s,c):Fo(r,s,c)),c._s.get(r)}return i.$id=r,i}/*!
|
||
|
* shared v9.14.0
|
||
|
* (c) 2024 kazuya kawaguchi
|
||
|
* Released under the MIT License.
|
||
|
*/const Cr=typeof window<"u";let Lr,Pr;{const e=Cr&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Lr=t=>{e.mark(t)},Pr=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const $o=/\{([0-9a-zA-Z]+)\}/g;function Uo(e,...t){return t.length===1&&at(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace($o,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const jo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),xo=(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"),Wo=e=>typeof e=="number"&&isFinite(e),Ko=e=>Qt(e)==="[object Date]",Ho=e=>Qt(e)==="[object RegExp]",Go=e=>Jt(e)&&Object.keys(e).length===0,Vo=Object.assign;let Nn;const Bo=()=>Nn||(Nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xo(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Yo=Object.prototype.hasOwnProperty;function qo(e,t){return Yo.call(e,t)}const Yt=Array.isArray,xt=e=>typeof e=="function",Qo=e=>typeof e=="string",Jo=e=>typeof e=="boolean",Zo=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",zo=e=>at(e)&&xt(e.then)&&xt(e.catch),qt=Object.prototype.toString,Qt=e=>qt.call(e),Jt=e=>{if(!at(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},ea=e=>e==null?"":Yt(e)||Jt(e)&&e.toString===qt?JSON.stringify(e,null,2):String(e);function ta(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const bn=2;function na(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const o=[];for(let i=0;i<r.length;i++)if(s+=r[i].length+1,s>=t){for(let c=i-bn;c<=i+bn||n>s;c++){if(c<0||c>=r.length)continue;const a=c+1;o.push(`${a}${" ".repeat(3-String(a).length)}| ${r[c]}`);const f=r[c].length;if(c===i){const p=t-(s-f)+1,d=Math.max(1,n>s?f-p:n-t);o.push(" | "+" ".repeat(p)+"^".repeat(d))}else if(c>i){if(n>s){const p=Math.max(Math.min(n-s,f),1);o.push(" | "+"^".repeat(p))}s+=f+1}}break}return o.join(`
|
||
|
`)}function ra(e){let t=e;return()=>++t}function Rr(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Tn={};function sa(e){Tn[e]||(Tn[e]=!0,Rr(e))}function oa(){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 ut=e=>!at(e)||Yt(e);function aa(e,t){if(ut(e)||ut(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(o=>{ut(r[o])||ut(s[o])?s[o]=r[o]:n.push({src:r[o],des:s[o]})})}}const kc=Object.freeze(Object.defineProperty({__proto__:null,assign:Vo,createEmitter:oa,deepCopy:aa,escapeHtml:Xo,format:Uo,friendlyJSONstringify:wr,generateCodeFrame:na,generateFormatCacheKey:xo,getGlobalThis:Bo,hasOwn:qo,inBrowser:Cr,incrementer:ra,isArray:Yt,isBoolean:Jo,isDate:Ko,isEmptyObject:Go,isFunction:xt,isNumber:Wo,isObject:at,isPlainObject:Jt,isPromise:zo,isRegExp:Ho,isString:Qo,isSymbol:Zo,join:ta,makeSymbol:jo,get mark(){return Lr},get measure(){return Pr},objectToString:qt,toDisplayString:ea,toTypeString:Qt,warn:Rr,warnOnce:sa},Symbol.toStringTag,{value:"Module"}));/*!
|
||
|
* core-base v9.14.0
|
||
|
* (c) 2024 kazuya kawaguchi
|
||
|
* Released under the MIT License.
|
||
|
*/const ke=typeof window<"u";let ae,Me;{const e=ke&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ae=t=>{e.mark(t)},Me=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const ia=/\{([0-9a-zA-Z]+)\}/g;function yt(e,...t){return t.length===1&&Z(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ia,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const ca=(e,t,n)=>la({l:e,k:t,s:n}),la=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),oe=e=>typeof e=="number"&&isFinite(e),ua=e=>kr(e)==="[object Date]",An=e=>kr(e)==="[object RegExp]",Zt=e=>H(e)&&Object.keys(e).length===0,Te=Object.assign;function Cn(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const de=Array.isArray,J=e=>typeof e=="function",D=e=>typeof e=="string",re=e=>typeof e=="boolean",Z=e=>e!==null&&typeof e=="object",fa=e=>Z(e)&&J(e.then)&&J(e.catch),Ir=Object.prototype.toString,kr=e=>Ir.call(e),H=e=>{if(!Z(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},da=e=>e==null?"":de(e)||H(e)&&e.toString===Ir?JSON.stringify(e,null,2):String(e);function zt(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Ln=2;function ma(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const o=[];for(let i=0;i<r.length;i++)if(s+=r[i].length+1,s>=t){for(let c=i-Ln;c<=i+Ln||n>s;c++){if(c<0||c>=r.length)continue;const a=c+1;o.push(`${a}${" ".repeat(3-String(a).length)}| ${r[c]}`);const f=r[c].length;if(c===i){const p=t-(s-f)+1,d=Math.max(1,n>s?f-p:n-t);o.push(" | "+" ".repeat(p)+"^".repeat(d))}else if(c>i){if(n>s){const p=Math.max(Math.min(n-s,f),1);o.push(" | "+"^".repeat(p))}s+=f+1}}break}return o.join(`
|
||
|
`)}function Mr(e){let t=e;return()=>++t}function Xe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Pn={};function pa(e){Pn[e]||(Pn[e]=!0,Xe(e))}function ha(e,t,n){return{line:e,column:t,offset:n}}function ft(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const vt={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},_a={[vt.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function ga(e,t,...n){const r=yt(_a[e]||"",...n||[]),s={message:String(r),code:e};return t&&(s.location=t),s}const M={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,__EXTEND_POINT__:17},Ea={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ye(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=yt((s||Ea)[e]||"",...o||[]),c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=r,c}function ya(e){throw e}const va=/<\/?[\w\s="/.':;#-\/]+>/,Oa=e=>va.test(e),he=" ",Sa="\r",te=`
|
||
|
`,Na=String.fromCharCode(8232),ba=String.fromCharCode(8233);function Ta(e){const t=e;let n=0,r=1,s=1,o=0;const i=v=>t[v]===Sa&&t[v+1]===te,c=v=>t[v]===te,a=v=>t[v]===ba,f=v=>t[v]===Na,p=v=>i(v)||c(v)||a(v)||f(v),d=()=>n,m=()=>r,_=()=>s,C=()=>o,A=v=>i(v)||a(v)||f(v)?te:t[v],N=()=>A(n),L=()=>A(n+o);function T(){return o=0,p(n)&&(r++,s=0),i(n)&&n++,n++,s++,t[n]}function h(){return i(n+o)&&o++,o++,t[n+o]}function g(){n=0,r=1,s=1,o=0}function S(v=0){o=v}function y(){const v=n+o;for(;v!==n;)T();o=0}return{index:d,line:m,column:_,peekOffset:C,charAt:A,currentChar:N,currentPeek:L,next:T,peek:h,reset:g,resetPeek:S,skipToPeek:y}}const ve=void 0,Aa=".",wn="'",Ca="tokenizer";function La(e,t={}){const n=t.location!==!1,r=Ta(e),s=()=>r.index(),o=()=>ha(r.line(),r.column(),r.index()),i=o(),c=s(),a={currentType:14,offset:c,startLoc:i,endLoc:i,lastType:14,lastOffset:c,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},f=()=>a,{onError:p}=t;function d(l,u,b,...k){const X=f();if(u.column+=b,u.offset+=b,p){const K=n?ft(X.startLoc,u):null,Ee=Ye(l,K,{domain:Ca,args:k});p(Ee)}}function m(l,u,b){l.endLoc=o(),l.currentType=u;const k={type:u};return n&&(k.loc=ft(l.startLoc,l.endLoc)),b!=null&&(k.value=b),k}const _=l=>m(l,14);function C(l,u){return l.currentChar()===u?(l.next(),u):(d(M.EXPECTED_TOKEN,o(),0,u),"")}function A(l){let u="";for(;l.currentPeek()===he||l.currentPeek()===te;)u+=l.currentPeek(),l.peek();return u}function N(l){const u=A(l);return l.skipToPeek(),u}function L(l){if(l===ve)return!1;const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function T(l){if(l===ve)return!1;const u=l.charCodeAt(0);return u>=48&&u<=57}function h(l,u){const{currentType:b}=u;if(b!==2)return!1;A(l);const k=L(l.currentPeek());return l.resetPeek(),k}function g(l,u){const{currentType:b}=u;if(b!==2)return!1;A(l);const k=l.currentPeek()==="-"?l.peek():l.currentPeek(),X=T(k);return l.resetPeek(),X}function S(l,u){const{currentType:b}=u;if(b!==2)return!1;A(l);const k=l.currentPeek()===wn;return l.resetPeek(),k}function y(l,u){const{currentType:b}=u;if(b!==8)return!1;A(l);const k=l.currentPeek()===".";return l.resetPeek(),k}function v(l,u){const{currentType:b}=u;if(b!==9)return!1;A(l);const k=L(l.currentPeek());return l.resetPeek(),k}function E(l,u){const{currentType:b}=u;if(!(b===8||b===12))return!1;A(l);const k=l.currentPeek()===":";return l.resetPeek(),k}function P(l,u){const{currentType:b}=u;if(b!==10)return!1;const k=()=>{const K=l.currentPeek();return K==="{"?L(l.peek()):K==="@"||K==="%"||K==="|"||K===":"||K==="."||K===he||!K?!1:K===te?(l.peek(),k()):U(l,!1)},X=k();return l.resetPeek(),X}function F(l){A(l);const u=l.currentPeek()==="|";return l.resetPeek(),u}function Y(l){const u=A(l),b=l.currentPeek()==="%"&&l.peek()==="{";return l.resetPeek(),{isModulo:b,hasSpace:u.length>0}}function U(l,u=!0){const b=(X=!1,K="",Ee=!1)=>{const Pe=l.currentPeek();return Pe==="{"?K==="%"?!1:X:Pe==="@"||!Pe?K==="%"?!0:X:Pe==="%"?(l.peek(),b(X,"%",!0)):Pe==="|"?K==="%"||Ee?!0:!(K===he||K===te):Pe===he?(l.peek(),b(!0,he,Ee)):Pe===te?(l.peek(),b(!0,te,Ee)):!0},k=b();return u&&l.resetPeek(),k}function V(l,u){const b=l.currentChar();return b===ve?ve:u(b)?(l.next(),b):null}function qe(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36}function Ce(l){return V(l,qe)}function fe(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36||u===45}function q(l){return V(l,fe)}function Qe(l){const u=l.charCodeAt(0);return u>=48&&u<=57}function At(l){return V(l,Qe)}function Je(l){const u=l.charCodeAt(0);return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function ct(l){return V(l,Je)}function Fe(l){let u="",b="";for(;u=At(l);)b+=u;return b}function Ze(l){N(l);const u=l.currentChar();return u!=="%"&&d(M.EXPECTED_TOKEN,o(),0,u),l.next(),"%"}function Le(l){let u="";for(;;){const b=l.currentChar();if(b==="{"||b==="}"||b==="@"||b==="|"||!b)break;if(b==="%")if(U(l))u+=b,l.next();else break;else if(b===he||b===te)if(U(l))u+=b,l.next();else{if(F(l))break;u+=b,l.next()}else u+=b,l.next()}return u}functi
|
||
|
`,i=t.needIndent?t.needIndent:n!=="arrow",c=e.helpers||[],a=Ua(e,{mode:n,filename:r,sourceMap:s,breakLineCode:o,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),c.length>0&&(a.push(`const { ${zt(c.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),Ge(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:f,map:p}=a.context();return{ast:e,code:f,map:p?p.toJSON():void 0}};function Ga(e,t={}){const n=Te({},t),r=!!n.jit,s=!!n.minify,o=n.optimize==null?!0:n.optimize,c=Ia(n).parse(e);return r?(o&&Da(c),s&&je(c),{ast:c,code:""}):(Ma(c,n),Ha(c,n))}const Ae=[];Ae[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Ae[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Ae[2]={w:[2],i:[3,0],[0]:[3,0]};Ae[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Ae[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Ae[5]={["'"]:[4,0],o:8,l:[5,0]};Ae[6]={['"']:[4,0],o:8,l:[6,0]};const Va=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ba(e){return Va.test(e)}function Xa(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 Ya(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 qa(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ba(t)?Xa(t):"*"+t}function Dr(e){const t=[];let n=-1,r=0,s=0,o,i,c,a,f,p,d;const m=[];m[0]=()=>{i===void 0?i=c:i+=c},m[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},m[2]=()=>{m[0](),s++},m[3]=()=>{if(s>0)s--,r=4,m[0]();else{if(s=0,i===void 0||(i=qa(i),i===!1))return!1;m[1]()}};function _(){const C=e[n+1];if(r===5&&C==="'"||r===6&&C==='"')return n++,c="\\"+C,m[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&_())){if(a=Ya(o),d=Ae[r],f=d[a]||d.l||8,f===8||(r=f[0],f[1]!==void 0&&(p=m[f[1]],p&&(c=o,p()===!1))))return;if(r===7)return t}}const kn=new Map;function Fr(e,t){return Z(e)?e[t]:null}function Qa(e,t){if(!Z(e))return null;let n=kn.get(t);if(n||(n=Dr(t),n&&kn.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o<r;){const i=s[n[o]];if(i===void 0||J(s))return null;s=i,o++}return s}const Ja=e=>e,Za=e=>"",$r="text",za=e=>e.length===0?"":zt(e),ei=da;function Mn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ti(e){const t=oe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(oe(e.named.count)||oe(e.named.n))?oe(e.named.count)?e.named.count:oe(e.named.n)?e.named.n:t:t}function ni(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ur(e={}){const t=e.locale,n=ti(e),r=Z(e.pluralRules)&&D(t)&&J(e.pluralRules[t])?e.pluralRules[t]:Mn,s=Z(e.pluralRules)&&D(t)&&J(e.pluralRules[t])?Mn:void 0,o=L=>L[r(n,L.length,s)],i=e.list||[],c=L=>i[L],a=e.named||{};oe(e.pluralIndex)&&ni(n,a);const f=L=>a[L];function p(L){const T=J(e.messages)?e.messages(L):Z(e.messages)?e.messages[L]:!1;return T||(e.parent?e.parent.message(L):Za)}const d=L=>e.modifiers?e.modifiers[L]:Ja,m=H(e.processor)&&J(e.processor.normalize)?e.processor.normalize:za,_=H(e.processor)&&J(e.processor.interpolate)?e.processor.interpolate:ei,C=H(e.processor)&&D(e.processor.type)?e.processor.type:$r,N={list:c,named:f,plural:o,linked:(L,...T)=>{const[h,g]=T;let S="text",y="";T.length===1?Z(h)?(y=h.modifier||y,S=h.type||S):D(h)&&(y=h||y):T.length===2&&(D(h)&&(y=h||y),D(g)&&(S=g||S));const v=p(L)(N),E=S==="vnode"&&de(v)&&y?v[0]:v;return y?d(y)(E,S):E},message:p,type:C,interpolate:_,normalize:m,values:Te({},i,a)};return N}let Ve=null;function ri(e){Ve=e}function si(){return Ve}function jr(e,t,n){Ve&&Ve.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const xr=oi("function:translate");function oi(e){return t=>Ve&&Ve.emit(e,t)}const Wr=vt.__EXTEND_POINT__,we=Mr(Wr),ne={NOT_FOUND_KEY:Wr,FALLBACK_TO_TRANSLATE:we(),CANNOT_FORMAT_NUMBER:we(),FALLBACK_TO_NUMBER_FORMAT:we(),CANNOT_FORMAT_DATE:we(),FALLBACK_TO_DATE_FORMAT:we(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:we(),__EXTEND_POINT__:we()},ai={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale
|
||
|
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
||
|
(message compiler warning message: ${e.message})`)}function Si(){Ie=Object.create(null)}const De=e=>Z(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function ns(e,t={}){let n=!1;const r=t.onError||ya;return t.onError=s=>{n=!0,r(s)},{...Ga(e,t),detectError:n}}const Ni=(e,t)=>{if(!D(e))throw le(z.NOT_SUPPORT_NON_STRING_MESSAGE);t.onWarn=ts;{const n=re(t.warnHtmlMessage)?t.warnHtmlMessage:!0;zr(e,n);const s=(t.onCacheKey||es)(e),o=Ie[s];if(o)return o;const{code:i,detectError:c}=ns(e,t),a=new Function(`return ${i}`)();return c?a:Ie[s]=a}};function bi(e,t){if(t.onWarn=ts,D(e)){const n=re(t.warnHtmlMessage)?t.warnHtmlMessage:!0;zr(e,n);const s=(t.onCacheKey||es)(e),o=Ie[s];if(o)return o;const{ast:i,detectError:c}=ns(e,{...t,location:!0,jit:!0}),a=Mt(i);return c?a:Ie[s]=a}else{if(!De(e))return Xe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Ie[n];return r||(Ie[n]=Mt(e))}else return Mt(e)}}const jn=()=>"",ie=e=>J(e);function Ti(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:c}=e,[a,f]=os(...t),p=re(f.missingWarn)?f.missingWarn:e.missingWarn,d=re(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,m=re(f.escapeParameter)?f.escapeParameter:e.escapeParameter,_=!!f.resolvedMessage,C=D(f.default)||re(f.default)?re(f.default)?o?a:()=>a:f.default:n?o?a:()=>a:"",A=n||C!=="",N=Ot(e,f);m&&Ai(f);let[L,T,h]=_?[a,N,c[N]||{}]:rs(e,a,N,i,d,p),g=L,S=a;if(!_&&!(D(g)||De(g)||ie(g))&&A&&(g=C,S=g),!_&&(!(D(g)||De(g)||ie(g))||!D(T)))return s?St:a;if(D(g)&&e.messageCompiler==null)return Xe(`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 '${a}'.`),a;let y=!1;const v=()=>{y=!0},E=ie(g)?g:ss(e,a,T,g,S,v);if(y)return g;const P=wi(e,T,h,f),F=Ur(P),Y=Ci(e,E,F),U=r?r(Y,a):Y;{const V={timestamp:Date.now(),key:D(a)?a:ie(g)?g.key:"",locale:T||(ie(g)?g.locale:""),format:D(g)?g:ie(g)?g.source:"",message:U};V.meta=Te({},e.__meta,qr()||{}),xr(V)}return U}function Ai(e){de(e.list)?e.list=e.list.map(t=>D(t)?Cn(t):t):Z(e.named)&&Object.keys(e.named).forEach(t=>{D(e.named[t])&&(e.named[t]=Cn(e.named[t]))})}function rs(e,t,n,r,s,o){const{messages:i,onWarn:c,messageResolver:a,localeFallbacker:f}=e,p=f(e,r,n);let d={},m,_=null,C=n,A=null;const N="translate";for(let L=0;L<p.length;L++){if(m=A=p[L],n!==m&&!nn(n,m)&&Nt(s,t)&&c(be(ne.FALLBACK_TO_TRANSLATE,{key:t,target:m})),n!==m){const S=e.__v_emitter;S&&S.emit("fallback",{type:N,key:t,from:C,to:A,groupId:`${N}:${t}`})}d=i[m]||{};let T=null,h,g;if(ke&&(T=window.performance.now(),h="intlify-message-resolve-start",g="intlify-message-resolve-end",ae&&ae(h)),(_=a(d,t))===null&&(_=d[t]),ke){const S=window.performance.now(),y=e.__v_emitter;y&&T&&_&&y.emit("message-resolve",{type:"message-resolve",key:t,message:_,time:S-T,groupId:`${N}:${t}`}),h&&g&&ae&&Me&&(ae(g),Me("intlify message resolve",h,g))}if(D(_)||De(_)||ie(_))break;if(!Zr(m,p)){const S=bt(e,t,m,o,N);S!==t&&(_=S)}C=A}return[_,m,d]}function ss(e,t,n,r,s,o){const{messageCompiler:i,warnHtmlMessage:c}=e;if(ie(r)){const m=r;return m.locale=m.locale||n,m.key=m.key||t,m}if(i==null){const m=()=>r;return m.locale=n,m.key=t,m}let a=null,f,p;ke&&(a=window.performance.now(),f="intlify-message-compilation-start",p="intlify-message-compilation-end",ae&&ae(f));const d=i(r,Li(e,n,s,r,c,o));if(ke){const m=window.performance.now(),_=e.__v_emitter;_&&a&&_.emit("message-compilation",{type:"message-compilation",message:r,time:m-a,groupId:`translate:${t}`}),f&&p&&ae&&Me&&(ae(p),Me("intlify message compilation",f,p))}return d.locale=n,d.key=t,d.source=r,d}function Ci(e,t,n){let r=null,s,o;ke&&(r=window.performance.now(),s="intlify-message-evaluation-start",o="intlify-message-evaluation-end",ae&&ae(s));const i=t(n);if(ke){const c=window.performance.now(),a=e.__v_emitter;a&&r&&a.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-r,groupId:`translate:${t.key}`}),s&&o&&ae&&Me&&(ae(o),Me("intlify message evaluatio
|
||
|
${f}`:a)}},onCacheKey:i=>ca(t,n,i)}}function Pi(e){if(D(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function wi(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:c,fallbackWarn:a,missingWarn:f,fallbackContext:p}=e,m={locale:t,modifiers:s,pluralRules:o,messages:_=>{let C=i(n,_);if(C==null&&p){const[,,A]=rs(p,_,t,c,a,f);C=i(A,_)}if(D(C)||De(C)){let A=!1;const L=ss(e,_,t,C,_,()=>{A=!0});return A?jn:L}else return ie(C)?C:jn}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),oe(r.plural)&&(m.pluralIndex=r.plural),m}const xn=typeof Intl<"u",as={dateTimeFormat:xn&&typeof Intl.DateTimeFormat<"u",numberFormat:xn&&typeof Intl.NumberFormat<"u"};function Ri(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(!as.dateTimeFormat)return o(be(ne.CANNOT_FORMAT_DATE)),tn;const[a,f,p,d]=cs(...t),m=re(p.missingWarn)?p.missingWarn:e.missingWarn,_=re(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,C=!!p.part,A=Ot(e,p),N=i(e,s,A);if(!D(a)||a==="")return new Intl.DateTimeFormat(A,d).format(f);let L={},T,h=null,g=A,S=null;const y="datetime format";for(let P=0;P<N.length;P++){if(T=S=N[P],A!==T&&Nt(_,a)&&o(be(ne.FALLBACK_TO_DATE_FORMAT,{key:a,target:T})),A!==T){const F=e.__v_emitter;F&&F.emit("fallback",{type:y,key:a,from:g,to:S,groupId:`${y}:${a}`})}if(L=n[T]||{},h=L[a],H(h))break;bt(e,a,T,m,y),g=S}if(!H(h)||!D(T))return r?St:a;let v=`${T}__${a}`;Zt(d)||(v=`${v}__${JSON.stringify(d)}`);let E=c.get(v);return E||(E=new Intl.DateTimeFormat(T,Te({},h,d)),c.set(v,E)),C?E.formatToParts(f):E.format(f)}const is=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cs(...e){const[t,n,r,s]=e,o={};let i={},c;if(D(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw le(z.INVALID_ISO_DATE_ARGUMENT);const f=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();c=new Date(f);try{c.toISOString()}catch{throw le(z.INVALID_ISO_DATE_ARGUMENT)}}else if(ua(t)){if(isNaN(t.getTime()))throw le(z.INVALID_DATE_ARGUMENT);c=t}else if(oe(t))c=t;else throw le(z.INVALID_ARGUMENT);return D(n)?o.key=n:H(n)&&Object.keys(n).forEach(a=>{is.includes(a)?i[a]=n[a]:o[a]=n[a]}),D(r)?o.locale=r:H(r)&&(i=r),H(s)&&(i=s),[o.key||"",c,o,i]}function Ii(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__datetimeFormatters.has(o)||r.__datetimeFormatters.delete(o)}}function ki(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(!as.numberFormat)return o(be(ne.CANNOT_FORMAT_NUMBER)),tn;const[a,f,p,d]=us(...t),m=re(p.missingWarn)?p.missingWarn:e.missingWarn,_=re(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,C=!!p.part,A=Ot(e,p),N=i(e,s,A);if(!D(a)||a==="")return new Intl.NumberFormat(A,d).format(f);let L={},T,h=null,g=A,S=null;const y="number format";for(let P=0;P<N.length;P++){if(T=S=N[P],A!==T&&Nt(_,a)&&o(be(ne.FALLBACK_TO_NUMBER_FORMAT,{key:a,target:T})),A!==T){const F=e.__v_emitter;F&&F.emit("fallback",{type:y,key:a,from:g,to:S,groupId:`${y}:${a}`})}if(L=n[T]||{},h=L[a],H(h))break;bt(e,a,T,m,y),g=S}if(!H(h)||!D(T))return r?St:a;let v=`${T}__${a}`;Zt(d)||(v=`${v}__${JSON.stringify(d)}`);let E=c.get(v);return E||(E=new Intl.NumberFormat(T,Te({},h,d)),c.set(v,E)),C?E.formatToParts(f):E.format(f)}const ls=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function us(...e){const[t,n,r,s]=e,o={};let i={};if(!oe(t))throw le(z.INVALID_ARGUMENT);const c=t;return D(n)?o.key=n:H(n)&&Object.keys(n).forEach(a=>{ls.includes(a)?i[a]=n[a]:o
|