vue-component-toolkit
Version:
A Vue3 component toolkit library
17 lines • 168 kB
JavaScript
(function(I,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(I=typeof globalThis<"u"?globalThis:I||self,n(I["Vue Component Toolkit"]={},I.Vue))})(this,function(I,n){"use strict";var Yu=Object.defineProperty;var Ku=(I,n,We)=>n in I?Yu(I,n,{enumerable:!0,configurable:!0,writable:!0,value:We}):I[n]=We;var ue=(I,n,We)=>Ku(I,typeof n!="symbol"?n+"":n,We);function We(e){return e.alignX?e.alignX==="stretch"?void 0:e.alignX:e.align}function Ro(e){return e.alignY?e.alignY==="stretch"?void 0:e.alignY:e.align}function qn(e,t){e.padding&&(t.padding="16px"),e.paddingOn&&(t.padding="16px"),e.paddingOff&&(t.padding=void 0)}function Do(e,t){e.gap&&(t.gap="16px")}const $=(e,t)=>{const r=e.__vccOpts||e;for(const[o,l]of t)r[o]=l;return r},Po=$({__name:"Accordion",props:{selected:{type:Number,default:0},padding:{type:[Boolean],default:!0,required:!1},paddingOn:{type:[Boolean],default:void 0,required:!1},paddingOff:{type:[Boolean],default:void 0,required:!1}},setup(e){const t=e,r=n.useSlots(),o=n.ref(null),l=n.ref(t.selected),a=i=>{l.value=i},s=n.computed(()=>{let i={};return qn(t,i),i});return n.onMounted(()=>{var i;o.value=(i=r.default)==null?void 0:i.call(r)}),(i,c)=>(n.openBlock(),n.createElementBlock("div",{class:"comp-accordion bg-gray-100 rounded-lg shadow-md flex flex-col",style:n.normalizeStyle(s.value)},[o.value?n.createCommentVNode("",!0):n.renderSlot(i.$slots,"default",{key:0},void 0,!0),o.value?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(o.value,(f,d)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f),n.mergeProps({key:d,ref_for:!0},f.props,{id:d,selected:d===l.value,onSelect:a}),null,16,["id","selected"]))),128)):n.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-1fb69b9c"]]),Fo=["disabled"],$o={class:"horizontal"},Mo=$({__name:"Button",props:{variant:{type:String,default:"primary"},size:{type:String,default:"md"},disabled:{type:Boolean,default:!1},off:{type:Boolean,default:!1},text:{type:String},onClick:{type:Function},icon:{type:Object},style:{type:Object}},setup(e){const t=e,r=n.computed(()=>t.style),o=n.computed(()=>t.text?"px-4":"px-2"),l=n.computed(()=>{const s={primary:"bg-blue-500 text-white hover:bg-blue-600 active:bg-blue-700 focus:ring-blue-500",secondary:"bg-gray-500 text-white hover:bg-gray-600 active:bg-gray-700 focus:ring-gray-500",danger:"bg-red-500 text-white hover:bg-red-600 active:bg-red-700 focus:ring-red-500"};return s[t.variant]||s.primary}),a=n.computed(()=>{const s={sm:"text-sm",md:"text-base",lg:"text-lg"};return s[t.size]||s.md});return(s,i)=>(n.openBlock(),n.createElementBlock("button",{style:n.normalizeStyle(r.value),class:n.normalizeClass(["py-2 rounded-lg font-medium rounded-md transition-colors duration-300 active:opacity-80 active:scale-95",o.value,l.value,a.value,{"opacity-50 cursor-not-allowed":e.disabled},{"opacity-50 ":e.off}]),disabled:e.disabled,onClick:i[0]||(i[0]=c=>!e.disabled&&s.$emit("click"))},[n.createElementVNode("div",$o,[n.createTextVNode(n.toDisplayString(e.text)+" ",1),e.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.icon),{key:0,class:"px-1"})):n.createCommentVNode("",!0)])],14,Fo))}},[["__scopeId","data-v-b0896a09"]]),Uo={class:"comp-card w-full p-6 border rounded-lg bg-gray-100 shadow flex flex-col"},jo={key:0,class:"text-xl font-semibold text-gray-800"},qo={key:1,class:"text-gray-600 mt-2"},Ho=$({__name:"Card",props:{title:{type:String,required:!1},description:{type:String,required:!1}},setup(e){const t=e;return(r,o)=>(n.openBlock(),n.createElementBlock("div",Uo,[t.title?(n.openBlock(),n.createElementBlock("h3",jo,n.toDisplayString(t.title),1)):n.createCommentVNode("",!0),t.description?(n.openBlock(),n.createElementBlock("p",qo,n.toDisplayString(t.description),1)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"slot",style:n.normalizeStyle(t.title||t.description?{"margin-top":"16px"}:{})},[n.renderSlot(r.$slots,"default",{},void 0,!0)],4)]))}},[["__scopeId","data-v-55aff5c1"]]),zo={class:"flex flex-col items-center w-full"},vo={class:"relative w-40 h-40"},Wo={class:"w-full h-full transform -rotate-90"},Go=["r"],Yo=["stroke-dasharray","stroke-dashoffset","r"],Ko={class:"absolute inset-0 flex flex-col items-center justify-center"},Xo={class:"text-2xl font-bold text-gray-800"},Jo={class:"text-sm text-gray-500"},Qo={key:0,class:"mt-4 flex items-center gap-4"},Gt=10,Zo={__name:"CircularGauge",props:{color:{default:null,type:String},format:{default:e=>e,type:Function},minColor:{default:"#00C853",type:String},maxColor:{default:"#D32F2F",type:String},min:{default:1,type:Number},max:{default:100,type:Number},modelValue:{},value:{},readOnly:{default:!1,type:Boolean},radius:{default:40,type:Number},step:{default:5,type:Number},unit:{default:"",type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t;r.radius*2+Gt;const l=n.computed(()=>2*Math.PI*r.radius),a=n.computed({get(){return r.readOnly?r.value:r.modelValue},set(d){r.readOnly||o("update:modelValue",d)}}),s=(d,_,u,h,b)=>{const N=(d-_)/(u-_),E=(w,x)=>Math.round(w+(x-w)*N).toString(16).padStart(2,"0"),m=E(parseInt(h.slice(1,3),16),parseInt(b.slice(1,3),16)),y=E(parseInt(h.slice(3,5),16),parseInt(b.slice(3,5),16)),k=E(parseInt(h.slice(5,7),16),parseInt(b.slice(5,7),16));return`#${m}${y}${k}`},i=n.computed(()=>r.color?r.color:s(a.value,r.min,r.max,r.minColor,r.maxColor)),c=()=>{a.value=Math.min(r.max,a.value+r.step)},f=()=>{a.value=Math.max(r.min,a.value-r.step)};return(d,_)=>(n.openBlock(),n.createElementBlock("div",zo,[n.createElementVNode("div",vo,[(n.openBlock(),n.createElementBlock("svg",Wo,[n.createElementVNode("circle",{class:"text-gray-300",stroke:"currentColor","stroke-width":Gt,fill:"transparent",r:e.radius,cx:"50%",cy:"50%"},null,8,Go),n.createElementVNode("circle",{style:n.normalizeStyle({stroke:i.value}),class:"transition-all duration-300","stroke-dasharray":l.value,"stroke-dashoffset":l.value-a.value/e.max*l.value,"stroke-width":Gt,fill:"transparent",r:e.radius,cx:"50%",cy:"50%"},null,12,Yo)])),n.createElementVNode("div",Ko,[n.createElementVNode("span",Xo,n.toDisplayString(a.value),1),n.createElementVNode("span",Jo,n.toDisplayString(e.unit),1)])]),e.readOnly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Qo,[n.createElementVNode("button",{onClick:f,class:"px-4 py-2 bg-gray-300 rounded-full hover:bg-gray-400 transition"}," - "),n.createElementVNode("button",{onClick:c,class:"px-4 py-2 text-white rounded-full transition",style:n.normalizeStyle({backgroundColor:i.value})}," + ",4)]))]))}},el={class:"flex flex-col items-center w-full"},tl={class:"relative w-40 h-40"},nl={class:"w-full h-full",viewBox:"0 0 100 100"},rl=["x","y"],ol=["x2","y2"],ll=["x2","y2"],al=["x2","y2"],sl={class:"mt-4 text-xl font-semibold text-gray-800"},il={__name:"Clock",setup(e){const t=n.ref(new Date),r=()=>{t.value=new Date};n.onMounted(()=>{setInterval(r,1e3)});const o=(u,h)=>{const b=(u-90)*(Math.PI/180);return{x:50+h*Math.cos(b),y:50+h*Math.sin(b)}},l=u=>50+38*Math.cos((u*30-90)*(Math.PI/180)),a=u=>50+38*Math.sin((u*30-90)*(Math.PI/180))+2,s=n.ref({}),i=n.ref({}),c=n.ref({}),f=()=>{const u=t.value,h=u.getHours()%12,b=u.getMinutes(),N=u.getSeconds();s.value=o((h+b/60)*30,20),i.value=o(b*6,30),c.value=o(N*6,38)};f(),setInterval(f,1e3);const d=n.ref("");return setInterval(()=>{d.value=t.value.toLocaleTimeString()},1e3),(u,h)=>(n.openBlock(),n.createElementBlock("div",el,[n.createElementVNode("div",tl,[(n.openBlock(),n.createElementBlock("svg",nl,[h[0]||(h[0]=n.createElementVNode("circle",{cx:"50",cy:"50",r:"48",stroke:"currentColor","stroke-width":"4",fill:"transparent",class:"text-gray-300"},null,-1)),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(12,b=>n.createElementVNode("text",{key:b,x:l(b),y:a(b),"text-anchor":"middle",class:"text-sm font-bold text-gray-800"},n.toDisplayString(b),9,rl)),64)),n.createElementVNode("line",{x1:50,y1:50,x2:s.value.x,y2:s.value.y,stroke:"currentColor","stroke-width":"4",class:"text-gray-700 transition-all duration-300"},null,8,ol),n.createElementVNode("line",{x1:50,y1:50,x2:i.value.x,y2:i.value.y,stroke:"currentColor","stroke-width":"3",class:"text-gray-900 transition-all duration-300"},null,8,ll),n.createElementVNode("line",{x1:50,y1:50,x2:c.value.x,y2:c.value.y,stroke:"red","stroke-width":"2",class:"transition-all duration-100"},null,8,al),h[1]||(h[1]=n.createElementVNode("circle",{cx:"50",cy:"50",r:"2",fill:"black"},null,-1))]))]),n.createElementVNode("div",sl,n.toDisplayString(d.value),1)]))}};/*!
* shared v11.0.0-beta.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/const Se=typeof window<"u";let fe,Re;if(process.env.NODE_ENV!=="production"){const e=Se&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(fe=t=>{e.mark(t)},Re=(t,r,o)=>{e.measure(t,r,o),e.clearMarks(r),e.clearMarks(o)})}const cl=/\{([0-9a-zA-Z]+)\}/g;function kt(e,...t){return t.length===1&&j(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(cl,(r,o)=>t.hasOwnProperty(o)?t[o]:"")}const Oe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),dl=(e,t,r)=>ul({l:e,k:t,s:r}),ul=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),te=e=>typeof e=="number"&&isFinite(e),fl=e=>Yt(e)==="[object Date]",Nt=e=>Yt(e)==="[object RegExp]",wt=e=>q(e)&&Object.keys(e).length===0,ne=Object.assign,ml=Object.create,v=(e=null)=>ml(e);let Hn;const De=()=>Hn||(Hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:v());function zn(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const pl=Object.prototype.hasOwnProperty;function ye(e,t){return pl.call(e,t)}const Z=Array.isArray,G=e=>typeof e=="function",B=e=>typeof e=="string",Y=e=>typeof e=="boolean",j=e=>e!==null&&typeof e=="object",hl=e=>j(e)&&G(e.then)&&G(e.catch),vn=Object.prototype.toString,Yt=e=>vn.call(e),q=e=>Yt(e)==="[object Object]",_l=e=>e==null?"":Z(e)||q(e)&&e.toString===vn?JSON.stringify(e,null,2):String(e);function Kt(e,t=""){return e.reduce((r,o,l)=>l===0?r+o:r+t+o,"")}const Wn=2;function gl(e,t=0,r=e.length){const o=e.split(/\r?\n/);let l=0;const a=[];for(let s=0;s<o.length;s++)if(l+=o[s].length+1,l>=t){for(let i=s-Wn;i<=s+Wn||r>l;i++){if(i<0||i>=o.length)continue;const c=i+1;a.push(`${c}${" ".repeat(3-String(c).length)}| ${o[i]}`);const f=o[i].length;if(i===s){const d=t-(l-f)+1,_=Math.max(1,r>l?f-d:r-t);a.push(" | "+" ".repeat(d)+"^".repeat(_))}else if(i>s){if(r>l){const d=Math.max(Math.min(r-l,f),1);a.push(" | "+"^".repeat(d))}l+=f+1}}break}return a.join(`
`)}function xe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Gn={};function yl(e){Gn[e]||(Gn[e]=!0,xe(e))}function El(){const e=new Map;return{events:e,on(r,o){const l=e.get(r);l&&l.push(o)||e.set(r,[o])},off(r,o){const l=e.get(r);l&&l.splice(l.indexOf(o)>>>0,1)},emit(r,o){(e.get(r)||[]).slice().map(l=>l(o)),(e.get("*")||[]).slice().map(l=>l(r,o))}}}const Ct=e=>!j(e)||Z(e);function St(e,t){if(Ct(e)||Ct(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:o,des:l}=r.pop();Object.keys(o).forEach(a=>{a!=="__proto__"&&(j(o[a])&&!j(l[a])&&(l[a]=Array.isArray(o[a])?[]:v()),Ct(l[a])||Ct(o[a])?l[a]=o[a]:r.push({src:o[a],des:l[a]}))})}}/*!
* message-compiler v11.0.0-beta.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function bl(e,t,r){return{line:e,column:t,offset:r}}function Xt(e,t,r){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},kl=17,Nl={[P.EXPECTED_TOKEN]:"Expected token: '{0}'",[P.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[P.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[P.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[P.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[P.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[P.EMPTY_PLACEHOLDER]:"Empty placeholder",[P.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[P.INVALID_LINKED_FORMAT]:"Invalid linked format",[P.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[P.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[P.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[P.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[P.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[P.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ge(e,t,r={}){const{domain:o,messages:l,args:a}=r,s=process.env.NODE_ENV!=="production"?kt((l||Nl)[e]||"",...a||[]):e,i=new SyntaxError(String(s));return i.code=e,t&&(i.location=t),i.domain=o,i}function wl(e){throw e}const Cl=/<\/?[\w\s="/.':;#-\/]+>/,Sl=e=>Cl.test(e),Te=" ",Ol="\r",se=`
`,Tl="\u2028",Ll="\u2029";function xl(e){const t=e;let r=0,o=1,l=1,a=0;const s=S=>t[S]===Ol&&t[S+1]===se,i=S=>t[S]===se,c=S=>t[S]===Ll,f=S=>t[S]===Tl,d=S=>s(S)||i(S)||c(S)||f(S),_=()=>r,u=()=>o,h=()=>l,b=()=>a,N=S=>s(S)||c(S)||f(S)?se:t[S],E=()=>N(r),m=()=>N(r+a);function y(){return a=0,d(r)&&(o++,l=0),s(r)&&r++,r++,l++,t[r]}function k(){return s(r+a)&&a++,a++,t[r+a]}function w(){r=0,o=1,l=1,a=0}function x(S=0){a=S}function T(){const S=r+a;for(;S!==r;)y();a=0}return{index:_,line:u,column:h,peekOffset:b,charAt:N,currentChar:E,currentPeek:m,next:y,peek:k,reset:w,resetPeek:x,skipToPeek:T}}const Ae=void 0,Al=".",Yn="'",Bl="tokenizer";function Il(e,t={}){const r=t.location!==!1,o=xl(e),l=()=>o.index(),a=()=>bl(o.line(),o.column(),o.index()),s=a(),i=l(),c={currentType:13,offset:i,startLoc:s,endLoc:s,lastType:13,lastOffset:i,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},f=()=>c,{onError:d}=t;function _(p,g,L,...R){const K=f();if(g.column+=L,g.offset+=L,d){const X=r?Xt(K.startLoc,g):null,H=Ge(p,X,{domain:Bl,args:R});d(H)}}function u(p,g,L){p.endLoc=a(),p.currentType=g;const R={type:g};return r&&(R.loc=Xt(p.startLoc,p.endLoc)),L!=null&&(R.value=L),R}const h=p=>u(p,13);function b(p,g){return p.currentChar()===g?(p.next(),g):(_(P.EXPECTED_TOKEN,a(),0,g),"")}function N(p){let g="";for(;p.currentPeek()===Te||p.currentPeek()===se;)g+=p.currentPeek(),p.peek();return g}function E(p){const g=N(p);return p.skipToPeek(),g}function m(p){if(p===Ae)return!1;const g=p.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g===95}function y(p){if(p===Ae)return!1;const g=p.charCodeAt(0);return g>=48&&g<=57}function k(p,g){const{currentType:L}=g;if(L!==2)return!1;N(p);const R=m(p.currentPeek());return p.resetPeek(),R}function w(p,g){const{currentType:L}=g;if(L!==2)return!1;N(p);const R=p.currentPeek()==="-"?p.peek():p.currentPeek(),K=y(R);return p.resetPeek(),K}function x(p,g){const{currentType:L}=g;if(L!==2)return!1;N(p);const R=p.currentPeek()===Yn;return p.resetPeek(),R}function T(p,g){const{currentType:L}=g;if(L!==7)return!1;N(p);const R=p.currentPeek()===".";return p.resetPeek(),R}function S(p,g){const{currentType:L}=g;if(L!==8)return!1;N(p);const R=m(p.currentPeek());return p.resetPeek(),R}function V(p,g){const{currentType:L}=g;if(!(L===7||L===11))return!1;N(p);const R=p.currentPeek()===":";return p.resetPeek(),R}function M(p,g){const{currentType:L}=g;if(L!==9)return!1;const R=()=>{const X=p.currentPeek();return X==="{"?m(p.peek()):X==="@"||X==="|"||X===":"||X==="."||X===Te||!X?!1:X===se?(p.peek(),R()):ee(p,!1)},K=R();return p.resetPeek(),K}function U(p){N(p);const g=p.currentPeek()==="|";return p.resetPeek(),g}function ee(p,g=!0){const L=(K=!1,X="")=>{const H=p.currentPeek();return H==="{"||H==="@"||!H?K:H==="|"?!(X===Te||X===se):H===Te?(p.peek(),L(!0,Te)):H===se?(p.peek(),L(!0,se)):!0},R=L();return g&&p.resetPeek(),R}function W(p,g){const L=p.currentChar();return L===Ae?Ae:g(L)?(p.next(),L):null}function ae(p){const g=p.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36}function _e(p){return W(p,ae)}function be(p){const g=p.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36||g===45}function Ve(p){return W(p,be)}function D(p){const g=p.charCodeAt(0);return g>=48&&g<=57}function ie(p){return W(p,D)}function ge(p){const g=p.charCodeAt(0);return g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102}function ke(p){return W(p,ge)}function qe(p){let g="",L="";for(;g=ie(p);)L+=g;return L}function pt(p){let g="";for(;;){const L=p.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L===Te||L===se)if(ee(p))g+=L,p.next();else{if(U(p))break;g+=L,p.next()}else g+=L,p.next()}return g}function ht(p){E(p);let g="",L="";for(;g=Ve(p);)L+=g;return p.currentChar()===Ae&&_(P.UNTERMINATED_CLOSING_BRACE,a(),0),L}function _t(p){E(p);let g="";return p.currentChar()==="-"?(p.next(),g+=`-${qe(p)}`):g+=qe(p),p.currentChar()===Ae&&_(P.UNTERMINATED_CLOSING_BRACE,a(),0),g}function gt(p){return p!==Yn&&p!==se}function Io(p){E(p),b(p,"'");let g="",L="";for(;g=W(p,gt);)g==="\\"?L+=Pn(p):L+=g;const R=p.currentChar();return R===se||R===Ae?(_(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),R===se&&(p.next(),b(p,"'")),L):(b(p,"'"),L)}function Pn(p){const g=p.currentChar();switch(g){case"\\":case"'":return p.next(),`\\${g}`;case"u":return vt(p,g,4);case"U":return vt(p,g,6);default:return _(P.UNKNOWN_ESCAPE_SEQUENCE,a(),0,g),""}}function vt(p,g,L){b(p,g);let R="";for(let K=0;K<L;K++){const X=ke(p);if(!X){_(P.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${g}${R}${p.currentChar()}`);break}R+=X}return`\\${g}${R}`}function Fn(p){return p!=="{"&&p!=="}"&&p!==Te&&p!==se}function $n(p){E(p);let g="",L="";for(;g=W(p,Fn);)L+=g;return L}function Mn(p){let g="",L="";for(;g=_e(p);)L+=g;return L}function Un(p){const g=L=>{const R=p.currentChar();return R==="{"||R==="@"||R==="|"||R==="("||R===")"||!R||R===Te?L:(L+=R,p.next(),g(L))};return g("")}function yt(p){E(p);const g=b(p,"|");return E(p),g}function Et(p,g){let L=null;switch(p.currentChar()){case"{":return g.braceNest>=1&&_(P.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),p.next(),L=u(g,2,"{"),E(p),g.braceNest++,L;case"}":return g.braceNest>0&&g.currentType===2&&_(P.EMPTY_PLACEHOLDER,a(),0),p.next(),L=u(g,3,"}"),g.braceNest--,g.braceNest>0&&E(p),g.inLinked&&g.braceNest===0&&(g.inLinked=!1),L;case"@":return g.braceNest>0&&_(P.UNTERMINATED_CLOSING_BRACE,a(),0),L=He(p,g)||h(g),g.braceNest=0,L;default:{let K=!0,X=!0,H=!0;if(U(p))return g.braceNest>0&&_(P.UNTERMINATED_CLOSING_BRACE,a(),0),L=u(g,1,yt(p)),g.braceNest=0,g.inLinked=!1,L;if(g.braceNest>0&&(g.currentType===4||g.currentType===5||g.currentType===6))return _(P.UNTERMINATED_CLOSING_BRACE,a(),0),g.braceNest=0,bt(p,g);if(K=k(p,g))return L=u(g,4,ht(p)),E(p),L;if(X=w(p,g))return L=u(g,5,_t(p)),E(p),L;if(H=x(p,g))return L=u(g,6,Io(p)),E(p),L;if(!K&&!X&&!H)return L=u(g,12,$n(p)),_(P.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,L.value),E(p),L;break}}return L}function He(p,g){const{currentType:L}=g;let R=null;const K=p.currentChar();switch((L===7||L===8||L===11||L===9)&&(K===se||K===Te)&&_(P.INVALID_LINKED_FORMAT,a(),0),K){case"@":return p.next(),R=u(g,7,"@"),g.inLinked=!0,R;case".":return E(p),p.next(),u(g,8,".");case":":return E(p),p.next(),u(g,9,":");default:return U(p)?(R=u(g,1,yt(p)),g.braceNest=0,g.inLinked=!1,R):T(p,g)||V(p,g)?(E(p),He(p,g)):S(p,g)?(E(p),u(g,11,Mn(p))):M(p,g)?(E(p),K==="{"?Et(p,g)||R:u(g,10,Un(p))):(L===7&&_(P.INVALID_LINKED_FORMAT,a(),0),g.braceNest=0,g.inLinked=!1,bt(p,g))}}function bt(p,g){let L={type:13};if(g.braceNest>0)return Et(p,g)||h(g);if(g.inLinked)return He(p,g)||h(g);switch(p.currentChar()){case"{":return Et(p,g)||h(g);case"}":return _(P.UNBALANCED_CLOSING_BRACE,a(),0),p.next(),u(g,3,"}");case"@":return He(p,g)||h(g);default:{if(U(p))return L=u(g,1,yt(p)),g.braceNest=0,g.inLinked=!1,L;if(ee(p))return u(g,0,pt(p));break}}return L}function jn(){const{currentType:p,offset:g,startLoc:L,endLoc:R}=c;return c.lastType=p,c.lastOffset=g,c.lastStartLoc=L,c.lastEndLoc=R,c.offset=l(),c.startLoc=a(),o.currentChar()===Ae?u(c,13):bt(o,c)}return{nextToken:jn,currentOffset:l,currentPosition:a,context:f}}const Vl="parser",Rl=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Dl(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||r,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function Pl(e={}){const t=e.location!==!1,{onError:r}=e;function o(m,y,k,w,...x){const T=m.currentPosition();if(T.offset+=w,T.column+=w,r){const S=t?Xt(k,T):null,V=Ge(y,S,{domain:Vl,args:x});r(V)}}function l(m,y,k){const w={type:m};return t&&(w.start=y,w.end=y,w.loc={start:k,end:k}),w}function a(m,y,k,w){t&&(m.end=y,m.loc&&(m.loc.end=k))}function s(m,y){const k=m.context(),w=l(3,k.offset,k.startLoc);return w.value=y,a(w,m.currentOffset(),m.currentPosition()),w}function i(m,y){const k=m.context(),{lastOffset:w,lastStartLoc:x}=k,T=l(5,w,x);return T.index=parseInt(y,10),m.nextToken(),a(T,m.currentOffset(),m.currentPosition()),T}function c(m,y){const k=m.context(),{lastOffset:w,lastStartLoc:x}=k,T=l(4,w,x);return T.key=y,m.nextToken(),a(T,m.currentOffset(),m.currentPosition()),T}function f(m,y){const k=m.context(),{lastOffset:w,lastStartLoc:x}=k,T=l(9,w,x);return T.value=y.replace(Rl,Dl),m.nextToken(),a(T,m.currentOffset(),m.currentPosition()),T}function d(m){const y=m.nextToken(),k=m.context(),{lastOffset:w,lastStartLoc:x}=k,T=l(8,w,x);return y.type!==11?(o(m,P.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),T.value="",a(T,w,x),{nextConsumeToken:y,node:T}):(y.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Ne(y)),T.value=y.value||"",a(T,m.currentOffset(),m.currentPosition()),{node:T})}function _(m,y){const k=m.context(),w=l(7,k.offset,k.startLoc);return w.value=y,a(w,m.currentOffset(),m.currentPosition()),w}function u(m){const y=m.context(),k=l(6,y.offset,y.startLoc);let w=m.nextToken();if(w.type===8){const x=d(m);k.modifier=x.node,w=x.nextConsumeToken||m.nextToken()}switch(w.type!==9&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(w)),w=m.nextToken(),w.type===2&&(w=m.nextToken()),w.type){case 10:w.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(w)),k.key=_(m,w.value||"");break;case 4:w.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(w)),k.key=c(m,w.value||"");break;case 5:w.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(w)),k.key=i(m,w.value||"");break;case 6:w.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(w)),k.key=f(m,w.value||"");break;default:{o(m,P.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const x=m.context(),T=l(7,x.offset,x.startLoc);return T.value="",a(T,x.offset,x.startLoc),k.key=T,a(k,x.offset,x.startLoc),{nextConsumeToken:w,node:k}}}return a(k,m.currentOffset(),m.currentPosition()),{node:k}}function h(m){const y=m.context(),k=y.currentType===1?m.currentOffset():y.offset,w=y.currentType===1?y.endLoc:y.startLoc,x=l(2,k,w);x.items=[];let T=null;do{const M=T||m.nextToken();switch(T=null,M.type){case 0:M.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(M)),x.items.push(s(m,M.value||""));break;case 5:M.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(M)),x.items.push(i(m,M.value||""));break;case 4:M.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(M)),x.items.push(c(m,M.value||""));break;case 6:M.value==null&&o(m,P.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ne(M)),x.items.push(f(m,M.value||""));break;case 7:{const U=u(m);x.items.push(U.node),T=U.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const S=y.currentType===1?y.lastOffset:m.currentOffset(),V=y.currentType===1?y.lastEndLoc:m.currentPosition();return a(x,S,V),x}function b(m,y,k,w){const x=m.context();let T=w.items.length===0;const S=l(1,y,k);S.cases=[],S.cases.push(w);do{const V=h(m);T||(T=V.items.length===0),S.cases.push(V)}while(x.currentType!==13);return T&&o(m,P.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),a(S,m.currentOffset(),m.currentPosition()),S}function N(m){const y=m.context(),{offset:k,startLoc:w}=y,x=h(m);return y.currentType===13?x:b(m,k,w,x)}function E(m){const y=Il(m,ne({},e)),k=y.context(),w=l(0,k.offset,k.startLoc);return t&&w.loc&&(w.loc.source=m),w.body=N(y),e.onCacheKey&&(w.cacheKey=e.onCacheKey(m)),k.currentType!==13&&o(y,P.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,m[k.offset]||""),a(w,y.currentOffset(),y.currentPosition()),w}return{parse:E}}function Ne(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 Fl(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function Kn(e,t){for(let r=0;r<e.length;r++)Jt(e[r],t)}function Jt(e,t){switch(e.type){case 1:Kn(e.cases,t),t.helper("plural");break;case 2:Kn(e.items,t);break;case 6:{Jt(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 $l(e,t={}){const r=Fl(e);r.helper("normalize"),e.body&&Jt(e.body,r);const o=r.context();e.helpers=Array.from(o.helpers)}function Ml(e){const t=e.body;return t.type===2?Xn(t):t.cases.forEach(r=>Xn(r)),e}function Xn(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 r=0;r<e.items.length;r++){const o=e.items[r];if(!(o.type===3||o.type===9)||o.value==null)break;t.push(o.value)}if(t.length===e.items.length){e.static=Kt(t);for(let r=0;r<e.items.length;r++){const o=e.items[r];(o.type===3||o.type===9)&&delete o.value}}}}const Ul="minifier";function Ye(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ye(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,r=t.cases;for(let o=0;o<r.length;o++)Ye(r[o]);t.c=r,delete t.cases;break}case 2:{const t=e,r=t.items;for(let o=0;o<r.length;o++)Ye(r[o]);t.i=r,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;Ye(t.key),t.k=t.key,delete t.key,t.modifier&&(Ye(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 Ge(P.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ul,args:[e.type]})}delete e.type}const jl="parser";function ql(e,t){const{sourceMap:r,filename:o,breakLineCode:l,needIndent:a}=t,s=t.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:a,indentLevel:0};s&&e.loc&&(i.source=e.loc.source);const c=()=>i;function f(E,m){i.code+=E}function d(E,m=!0){const y=m?l:"";f(a?y+" ".repeat(E):y)}function _(E=!0){const m=++i.indentLevel;E&&d(m)}function u(E=!0){const m=--i.indentLevel;E&&d(m)}function h(){d(i.indentLevel)}return{context:c,push:f,indent:_,deindent:u,newline:h,helper:E=>`_${E}`,needIndent:()=>i.needIndent}}function Hl(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),Ke(e,t.key),t.modifier?(e.push(", "),Ke(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function zl(e,t){const{helper:r,needIndent:o}=e;e.push(`${r("normalize")}([`),e.indent(o());const l=t.items.length;for(let a=0;a<l&&(Ke(e,t.items[a]),a!==l-1);a++)e.push(", ");e.deindent(o()),e.push("])")}function vl(e,t){const{helper:r,needIndent:o}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(o());const l=t.cases.length;for(let a=0;a<l&&(Ke(e,t.cases[a]),a!==l-1);a++)e.push(", ");e.deindent(o()),e.push("])")}}function Wl(e,t){t.body?Ke(e,t.body):e.push("null")}function Ke(e,t){const{helper:r}=e;switch(t.type){case 0:Wl(e,t);break;case 1:vl(e,t);break;case 2:zl(e,t);break;case 6:Hl(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(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("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 Ge(P.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:jl,args:[t.type]})}}const Gl=(e,t={})=>{const r=B(t.mode)?t.mode:"normal",o=B(t.filename)?t.filename:"message.intl",l=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
`,s=t.needIndent?t.needIndent:r!=="arrow",i=e.helpers||[],c=ql(e,{mode:r,filename:o,sourceMap:l,breakLineCode:a,needIndent:s});c.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),i.length>0&&(c.push(`const { ${Kt(i.map(_=>`${_}: _${_}`),", ")} } = ctx`),c.newline()),c.push("return "),Ke(c,e),c.deindent(s),c.push("}"),delete e.helpers;const{code:f,map:d}=c.context();return{ast:e,code:f,map:d?d.toJSON():void 0}};function Yl(e,t={}){const r=ne({},t),o=!!r.jit,l=!!r.minify,a=r.optimize==null?!0:r.optimize,i=Pl(r).parse(e);return o?(a&&Ml(i),l&&Ye(i),{ast:i,code:""}):($l(i,r),Gl(i,r))}/*!
* core-base v11.0.0-beta.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function Kl(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(De().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(De().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Qt(e){return r=>Xl(r,e)}function Xl(e,t){const r=Ql(t);if(r==null)throw et(0);if(en(r)===1){const a=ea(r);return e.plural(a.reduce((s,i)=>[...s,Jn(e,i)],[]))}else return Jn(e,r)}const Jl=["b","body"];function Ql(e){return Be(e,Jl)}const Zl=["c","cases"];function ea(e){return Be(e,Zl,[])}function Jn(e,t){const r=na(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const o=oa(t).reduce((l,a)=>[...l,Zt(e,a)],[]);return e.normalize(o)}}const ta=["s","static"];function na(e){return Be(e,ta)}const ra=["i","items"];function oa(e){return Be(e,ra,[])}function Zt(e,t){const r=en(t);switch(r){case 3:return Ot(t,r);case 9:return Ot(t,r);case 4:{const o=t;if(ye(o,"k")&&o.k)return e.interpolate(e.named(o.k));if(ye(o,"key")&&o.key)return e.interpolate(e.named(o.key));throw et(r)}case 5:{const o=t;if(ye(o,"i")&&te(o.i))return e.interpolate(e.list(o.i));if(ye(o,"index")&&te(o.index))return e.interpolate(e.list(o.index));throw et(r)}case 6:{const o=t,l=ia(o),a=da(o);return e.linked(Zt(e,a),l?Zt(e,l):void 0,e.type)}case 7:return Ot(t,r);case 8:return Ot(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const la=["t","type"];function en(e){return Be(e,la)}const aa=["v","value"];function Ot(e,t){const r=Be(e,aa);if(r)return r;throw et(t)}const sa=["m","modifier"];function ia(e){return Be(e,sa)}const ca=["k","key"];function da(e){const t=Be(e,ca);if(t)return t;throw et(6)}function Be(e,t,r){for(let o=0;o<t.length;o++){const l=t[o];if(ye(e,l)&&e[l]!=null)return e[l]}return r}function et(e){return new Error(`unhandled node type: ${e}`)}const ua="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function fa(e,t){t&&Sl(e)&&xe(kt(ua,{source:e}))}const ma=e=>e;let Tt=v();function Pe(e){return j(e)&&en(e)===0&&(ye(e,"b")||ye(e,"body"))}function pa(e,t={}){let r=!1;const o=t.onError||wl;return t.onError=l=>{r=!0,o(l)},{...Yl(e,t),detectError:r}}function ha(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&B(e)){const r=Y(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&fa(e,r);const l=(t.onCacheKey||ma)(e),a=Tt[l];if(a)return a;const{ast:s,detectError:i}=pa(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Qt(s);return i?c:Tt[l]=c}else{if(process.env.NODE_ENV!=="production"&&!Pe(e))return xe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const r=e.cacheKey;if(r){const o=Tt[r];return o||(Tt[r]=Qt(e))}else return Qt(e)}}let tt=null;function _a(e){tt=e}function ga(e,t,r){tt&&tt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const ya=Ea("function:translate");function Ea(e){return t=>tt&&tt.emit(e,t)}const oe={INVALID_ARGUMENT:kl,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},ba=24;function Le(e){return Ge(e,null,process.env.NODE_ENV!=="production"?{messages:ka}:void 0)}const ka={[oe.INVALID_ARGUMENT]:"Invalid arguments",[oe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[oe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[oe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[oe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function tn(e,t){return t.locale!=null?Qn(t.locale):Qn(e.locale)}let nn;function Qn(e){if(B(e))return e;if(G(e)){if(e.resolvedOnce&&nn!=null)return nn;if(e.constructor.name==="Function"){const t=e();if(hl(t))throw Le(oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nn=t}else throw Le(oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Le(oe.NOT_SUPPORT_LOCALE_TYPE)}function Na(e,t,r){return[...new Set([r,...Z(t)?t:j(t)?Object.keys(t):B(t)?[t]:[r]])]}function Zn(e,t,r){const o=B(r)?r:xt,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let a=l.__localeChainCache.get(o);if(!a){a=[];let s=[r];for(;Z(s);)s=er(a,s,t);const i=Z(t)||!q(t)?t:t.default?t.default:null;s=B(i)?[i]:i,Z(s)&&er(a,s,!1),l.__localeChainCache.set(o,a)}return a}function er(e,t,r){let o=!0;for(let l=0;l<t.length&&Y(o);l++){const a=t[l];B(a)&&(o=wa(e,t[l],r))}return o}function wa(e,t,r){let o;const l=t.split("-");do{const a=l.join("-");o=Ca(e,a,r),l.splice(-1,1)}while(l.length&&o===!0);return o}function Ca(e,t,r){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const l=t.replace(/!/g,"");e.push(l),(Z(r)||q(r))&&r[l]&&(o=r[l])}return o}const Ie=[];Ie[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ie[1]={w:[1],".":[2],"[":[4],o:[7]},Ie[2]={w:[2],i:[3,0],0:[3,0]},Ie[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ie[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ie[5]={"'":[4,0],o:8,l:[5,0]},Ie[6]={'"':[4,0],o:8,l:[6,0]};const Sa=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Oa(e){return Sa.test(e)}function Ta(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function La(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 xa(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Oa(t)?Ta(t):"*"+t}function Aa(e){const t=[];let r=-1,o=0,l=0,a,s,i,c,f,d,_;const u=[];u[0]=()=>{s===void 0?s=i:s+=i},u[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},u[2]=()=>{u[0](),l++},u[3]=()=>{if(l>0)l--,o=4,u[0]();else{if(l=0,s===void 0||(s=xa(s),s===!1))return!1;u[1]()}};function h(){const b=e[r+1];if(o===5&&b==="'"||o===6&&b==='"')return r++,i="\\"+b,u[0](),!0}for(;o!==null;)if(r++,a=e[r],!(a==="\\"&&h())){if(c=La(a),_=Ie[o],f=_[c]||_.l||8,f===8||(o=f[0],f[1]!==void 0&&(d=u[f[1]],d&&(i=a,d()===!1))))return;if(o===7)return t}}const tr=new Map;function Ba(e,t){return j(e)?e[t]:null}function Ia(e,t){if(!j(e))return null;let r=tr.get(t);if(r||(r=Aa(t),r&&tr.set(t,r)),!r)return null;const o=r.length;let l=e,a=0;for(;a<o;){const s=l[r[a]];if(s===void 0||G(l))return null;l=s,a++}return l}const ce={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},Va=8,Ra={[ce.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ce.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ce.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ce.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ce.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ce.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ce.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 Fe(e,...t){return kt(Ra[e],...t)}const Da="11.0.0-beta.2",Lt=-1,xt="en-US",At="",nr=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Pa(){return{upper:(e,t)=>t==="text"&&B(e)?e.toUpperCase():t==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&B(e)?e.toLowerCase():t==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&B(e)?nr(e):t==="vnode"&&j(e)&&"__v_isVNode"in e?nr(e.children):e}}let rr;function Fa(e){rr=e}let or;function $a(e){or=e}let lr;function Ma(e){lr=e}let ar=null;const Ua=e=>{ar=e},ja=()=>ar;let sr=null;const ir=e=>{sr=e},qa=()=>sr;let cr=0;function Ha(e={}){const t=G(e.onWarn)?e.onWarn:xe,r=B(e.version)?e.version:Da,o=B(e.locale)||G(e.locale)?e.locale:xt,l=G(o)?xt:o,a=Z(e.fallbackLocale)||q(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l,s=q(e.messages)?e.messages:rn(l),i=q(e.datetimeFormats)?e.datetimeFormats:rn(l),c=q(e.numberFormats)?e.numberFormats:rn(l),f=ne(v(),e.modifiers,Pa()),d=e.pluralRules||v(),_=G(e.missing)?e.missing:null,u=Y(e.missingWarn)||Nt(e.missingWarn)?e.missingWarn:!0,h=Y(e.fallbackWarn)||Nt(e.fallbackWarn)?e.fallbackWarn:!0,b=!!e.fallbackFormat,N=!!e.unresolving,E=G(e.postTranslation)?e.postTranslation:null,m=q(e.processor)?e.processor:null,y=Y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter,w=G(e.messageCompiler)?e.messageCompiler:rr;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&yl(Fe(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const x=G(e.messageResolver)?e.messageResolver:or||Ba,T=G(e.localeFallbacker)?e.localeFallbacker:lr||Na,S=j(e.fallbackContext)?e.fallbackContext:void 0,V=e,M=j(V.__datetimeFormatters)?V.__datetimeFormatters:new Map,U=j(V.__numberFormatters)?V.__numberFormatters:new Map,ee=j(V.__meta)?V.__meta:{};cr++;const W={version:r,cid:cr,locale:o,fallbackLocale:a,messages:s,modifiers:f,pluralRules:d,missing:_,missingWarn:u,fallbackWarn:h,fallbackFormat:b,unresolving:N,postTranslation:E,processor:m,warnHtmlMessage:y,escapeParameter:k,messageCompiler:w,messageResolver:x,localeFallbacker:T,fallbackContext:S,onWarn:t,__meta:ee};return W.datetimeFormats=i,W.numberFormats=c,W.__datetimeFormatters=M,W.__numberFormatters=U,process.env.NODE_ENV!=="production"&&(W.__v_emitter=V.__v_emitter!=null?V.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ga(W,r,ee),W}const rn=e=>({[e]:v()});function Bt(e,t){return e instanceof RegExp?e.test(t):e}function dr(e,t){return e instanceof RegExp?e.test(t):e}function on(e,t,r,o,l){const{missing:a,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:r,key:t,type:l,groupId:`${l}:${t}`})}if(a!==null){const i=a(e,r,t,l);return B(i)?i:t}else return process.env.NODE_ENV!=="production"&&dr(o,t)&&s(Fe(ce.NOT_FOUND_KEY,{key:t,locale:r})),t}function nt(e,t,r){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function ur(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function za(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let o=r+1;o<t.length;o++)if(ur(e,t[o]))return!0;return!1}const fr=typeof Intl<"u",mr={dateTimeFormat:fr&&typeof Intl.DateTimeFormat<"u",numberFormat:fr&&typeof Intl.NumberFormat<"u"};function pr(e,...t){const{datetimeFormats:r,unresolving:o,fallbackLocale:l,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!mr.dateTimeFormat)return a(Fe(ce.CANNOT_FORMAT_DATE)),At;const[c,f,d,_]=ln(...t),u=Y(d.missingWarn)?d.missingWarn:e.missingWarn,h=Y(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,b=!!d.part,N=tn(e,d),E=s(e,l,N);if(!B(c)||c==="")return new Intl.DateTimeFormat(N,_).format(f);let m={},y,k=null,w=N,x=null;const T="datetime format";for(let M=0;M<E.length;M++){if(y=x=E[M],process.env.NODE_ENV!=="production"&&N!==y&&Bt(h,c)&&a(Fe(ce.FALLBACK_TO_DATE_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&N!==y){const U=e.__v_emitter;U&&U.emit("fallback",{type:T,key:c,from:w,to:x,groupId:`${T}:${c}`})}if(m=r[y]||{},k=m[c],q(k))break;on(e,c,y,u,T),w=x}if(!q(k)||!B(y))return o?Lt:c;let S=`${y}__${c}`;wt(_)||(S=`${S}__${JSON.stringify(_)}`);let V=i.get(S);return V||(V=new Intl.DateTimeFormat(y,ne({},k,_)),i.set(S,V)),b?V.formatToParts(f):V.format(f)}const hr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ln(...e){const[t,r,o,l]=e,a=v();let s=v(),i;if(B(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Le(oe.INVALID_ISO_DATE_ARGUMENT);const f=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();i=new Date(f);try{i.toISOString()}catch{throw Le(oe.INVALID_ISO_DATE_ARGUMENT)}}else if(fl(t)){if(isNaN(t.getTime()))throw Le(oe.INVALID_DATE_ARGUMENT);i=t}else if(te(t))i=t;else throw Le(oe.INVALID_ARGUMENT);return B(r)?a.key=r:q(r)&&Object.keys(r).forEach(c=>{hr.includes(c)?s[c]=r[c]:a[c]=r[c]}),B(o)?a.locale=o:q(o)&&(s=o),q(l)&&(s=l),[a.key||"",i,a,s]}function _r(e,t,r){const o=e;for(const l in r){const a=`${t}__${l}`;o.__datetimeFormatters.has(a)&&o.__datetimeFormatters.delete(a)}}function gr(e,...t){const{numberFormats:r,unresolving:o,fallbackLocale:l,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!mr.numberFormat)return a(Fe(ce.CANNOT_FORMAT_NUMBER)),At;const[c,f,d,_]=an(...t),u=Y(d.missingWarn)?d.missingWarn:e.missingWarn,h=Y(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,b=!!d.part,N=tn(e,d),E=s(e,l,N);if(!B(c)||c==="")return new Intl.NumberFormat(N,_).format(f);let m={},y,k=null,w=N,x=null;const T="number format";for(let M=0;M<E.length;M++){if(y=x=E[M],process.env.NODE_ENV!=="production"&&N!==y&&Bt(h,c)&&a(Fe(ce.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&N!==y){const U=e.__v_emitter;U&&U.emit("fallback",{type:T,key:c,from:w,to:x,groupId:`${T}:${c}`})}if(m=r[y]||{},k=m[c],q(k))break;on(e,c,y,u,T),w=x}if(!q(k)||!B(y))return o?Lt:c;let S=`${y}__${c}`;wt(_)||(S=`${S}__${JSON.stringify(_)}`);let V=i.get(S);return V||(V=new Intl.NumberFormat(y,ne({},k,_)),i.set(S,V)),b?V.formatToParts(f):V.format(f)}const yr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function an(...e){const[t,r,o,l]=e,a=v();let s=v();if(!te(t))throw Le(oe.INVALID_ARGUMENT);const i=t;return B(r)?a.key=r:q(r)&&Object.keys(r).forEach(c=>{yr.includes(c)?s[c]=r[c]:a[c]=r[c]}),B(o)?a.locale=o:q(o)&&(s=o),q(l)&&(s=l),[a.key||"",i,a,s]}function Er(e,t,r){const o=e;for(const l in r){const a=`${t}__${l}`;o.__numberFormatters.has(a)&&o.__numberFormatters.delete(a)}}const va=e=>e,Wa=e=>"",Ga="text",Ya=e=>e.length===0?"":Kt(e),Ka=_l;function br(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Xa(e){const t=te(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(te(e.named.count)||te(e.named.n))?te(e.named.count)?e.named.count:te(e.named.n)?e.named.n:t:t}function Ja(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Qa(e={}){const t=e.locale,r=Xa(e),o=j(e.pluralRules)&&B(t)&&G(e.pluralRules[t])?e.pluralRules[t]:br,l=j(e.pluralRules)&&B(t)&&G(e.pluralRules[t])?br:void 0,a=m=>m[o(r,m.length,l)],s=e.list||[],i=m=>s[m],c=e.named||v();te(e.pluralIndex)&&Ja(r,c);const f=m=>c[m];function d(m,y){const k=G(e.messages)?e.messages(m,!!y):j(e.messages)?e.messages[m]:!1;return k||(e.parent?e.parent.message(m):Wa)}const _=m=>e.modifiers?e.modifiers[m]:va,u=q(e.processor)&&G(e.processor.normalize)?e.processor.normalize:Ya,h=q(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:Ka,b=q(e.processor)&&B(e.processor.type)?e.processor.type:Ga,E={list:i,named:f,plural:a,linked:(m,...y)=>{const[k,w]=y;let x="text",T="";y.length===1?j(k)?(T=k.modifier||T,x=k.type||x):B(k)&&(T=k||T):y.length===2&&(B(k)&&(T=k||T),B(w)&&(x=w||x));const S=d(m,!0)(E),V=x==="vnode"&&Z(S)&&T?S[0]:S;return T?_(T)(V,x):V},message:d,type:b,interpolate:h,normalize:u,values:ne(v(),s,c)};return E}const kr=()=>"",he=e=>G(e);function Nr(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:l,messageCompiler:a,fallbackLocale:s,messages:i}=e,[c,f]=sn(...t),d=Y(f.missingWarn)?f.missingWarn:e.missingWarn,_=Y(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,u=Y(f.escapeParameter)?f.escapeParameter:e.escapeParameter,h=!!f.resolvedMessage,b=B(f.default)||Y(f.default)?Y(f.default)?a?c:()=>c:f.default:r?a?c:()=>c:null,N=r||b!=null&&(B(b)||G(b)),E=tn(e,f);u&&Za(f);let[m,y,k]=h?[c,E,i[E]||v()]:wr(e,c,E,s,_,d),w=m,x=c;if(!h&&!(B(w)||Pe(w)||he(w))&&N&&(w=b,x=w),!h&&(!(B(w)||Pe(w)||he(w))||!B(y)))return l?Lt:c;if(process.env.NODE_ENV!=="production"&&B(w)&&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 '${c}'.`),c;let T=!1;const S=()=>{T=!0},V=he(w)?w:Cr(e,c,y,w,x,S);if(T)return w;const M=rs(e,y,k,f),U=Qa(M),ee=es(e,V,U),W=o?o(ee,c):ee;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ae={timestamp:Date.now(),key:B(c)?c:he(w)?w.key:"",locale:y||(he(w)?w.locale:""),format:B(w)?w:he(w)?w.source:"",message:W};ae.meta=ne({},e.__meta,ja()||{}),ya(ae)}return W}function Za(e){Z(e.list)?e.list=e.list.map(t=>B(t)?zn(t):t):j(e.named)&&Object.keys(e.named).forEach(t=>{B(e.named[t])&&(e.named[t]=zn(e.named[t]))})}function wr(e,t,r,o,l,a){const{messages:s,onWarn:i,messageResolver:c,localeFallbacker:f}=e,d=f(e,o,r);let _=v(),u,h=null,b=r,N=null;const E="translate";for(let m=0;m<d.length;m++){if(u=N=d[m],process.env.NODE_ENV!=="production"&&r!==u&&!ur(r,u)&&Bt(l,t)&&i(Fe(ce.FALLBACK_TO_TRANSLATE,{key:t,target:u})),process.env.NODE_ENV!=="production"&&r!==u){const x=e.__v_emitter;x&&x.emit("fallback",{type:E,key:t,from:b,to:N,groupId:`${E}:${t}`})}_=s[u]||v();let y=null,k,w;if(process.env.NODE_ENV!=="production"&&Se&&(y=window.performance.now(),k="intlify-message-resolve-start",w="intlify-message-resolve-end",fe&&fe(k)),(h=c(_,t))===null&&(h=_[t]),process.env.NODE_ENV!=="production"&&Se){const x=window.performance.now(),T=e.__v_emitter;T&&y&&h&&T.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:x-y,groupId:`${E}:${t}`}),k&&w&&fe&&Re&&(fe(w),Re("intlify message resolve",k,w))}if(B(h)||Pe(h)||he(h))break;if(!za(u,d)){const x=on(e,t,u,a,E);x!==t&&(h=x)}b=N}return[h,u,_]}function Cr(e,t,r,o,l,a){const{messageCompiler:s,warnHtmlMessage:i}=e;if(he(o)){const u=o;return u.locale=u.locale||r,u.key=u.key||t,u}if(s==null){const u=()=>o;return u.locale=r,u.key=t,u}let c=null,f,d;process.env.NODE_ENV!=="production"&&Se&&(c=window.performance.now(),f="intlify-message-compilation-start",d="intlify-message-compilation-end",fe&&fe(f));const _=s(o,ts(e,r,l,o,i,a));if(process.env.NODE_ENV!=="production"&&Se){const u=window.performance.now(),h=e.__v_emitter;h&&c&&h.emit("message-compilation",{type:"message-compilation",message:o,time:u-c,groupId:`translate:${t}`}),f&&d&&fe&&Re&&(fe(d),Re("intlify message compilation",f,d))}return _.locale=r,_.key=t,_.source=o,_}function es(e,t,r){let o=null,l,a;process.env.NODE_ENV!=="production"&&Se&&(o=window.performance.now(),l="intlify-message-evaluation-start",a="intlify-message-evaluation-end",fe&&fe(l));const s=t(r);if(process.env.NODE_ENV!=="production"&&Se){const i=window.performance.now(),c=e.__v_emitter;c&&o&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:i-o,groupId:`translate:${t.key}`}),l&&a&&fe&&Re&&(fe(a),Re("intlify message evaluation",l,a))}return s}function sn(...e){const[t,r,o]=e,l=v();if(!B(t)&&!te(t)&&!he(t)&&!Pe(t))throw Le(oe.INVALID_ARGUMENT);const a=te(t)?String(t):(he(t),t);return te(r)?l.plural=r:B(r)?l.default=r:q(r)&&!wt(r)?l.named=r:Z(r)&&(l.list=r),te(o)?l.plural=o:B(o)?l.default=o:q(o)&&ne(l,o),[a,l]}function ts(e,t,r,o,l,a){return{locale:t,key:r,warnHtmlMessage:l,onError:s=>{if(a&&a(s),process.env.NODE_ENV!=="production"){const i=ns(o),c=`Message compilation error: ${s.message}`,f=s.location&&i&&gl(i,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&i&&d.emit("compile-error",{message:i,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${r}`}),console.error(f?`${c}
${f}`:c)}else throw s},onCacheKey:s=>dl(t,r,s)}}function ns(e){if(B(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function rs(e,t,r,o){const{modifiers:l,pluralRules:a,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:f,fallbackContext:d}=e,u={locale:t,modifiers:l,pluralRules:a,messages:(h,b)=>{let N=s(r,h);if(N==null&&(d||b)){const[,,E]=wr(d||e,h,t,i,c,f);N=s(E,h)}if(B(N)||Pe(N)){let E=!1;con