lty-protocol 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(K,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],L):(K=typeof globalThis<"u"?globalThis:K||self,L(K["lty-protocol"]={},K.Vue))})(this,(function(K,L){"use strict";function Ar(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ft=Ar(L),Sr=L.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(L.openBlock(),L.createElementBlock("button",{class:"my-btn",onClick:r},[L.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),rn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},sn=rn(Sr,[["__scopeId","data-v-c654f959"]]),an=rn(L.defineComponent({name:"MyButton",__name:"button2",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(L.openBlock(),L.createElementBlock("button",{class:"my-btn",onClick:r},[L.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-1477cfc3"]]),_t=L.defineComponent({__name:"Input",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L.inject("UIComponents").Input,a=L.ref(n.modelValue);return L.watch(()=>n.modelValue,o=>a.value=o),L.watch(a,o=>r("update:modelValue",o)),(o,i)=>(L.openBlock(),L.createBlock(L.resolveDynamicComponent(L.unref(s)),{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=u=>a.value=u)},null,8,["modelValue"]))}}),on=L.defineComponent({name:"IpInput",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const n=L.ref((e.modelValue||"0.0.0.0").split(".")),r=(s,a)=>{n.value[s]=a,t("update:modelValue",n.value.join("."))};return()=>L.h("div",{style:{display:"flex",gap:"4px"}},n.value.map((s,a)=>L.h(_t,{key:a,modelValue:s,"onUpdate:modelValue":o=>r(a,o)})))}}),ln=L.defineComponent({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L.inject("UIComponents").Input,a=L.ref(n.modelValue);return L.watch(()=>n.modelValue,o=>a.value=o),L.watch(a,o=>r("update:modelValue",o)),(o,i)=>(L.openBlock(),L.createBlock(L.resolveDynamicComponent(L.unref(s)),{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=u=>a.value=u)},null,8,["modelValue"]))}});function yr(e,t){e.provide("UIComponents",t)}class ne{id;deviceId;type;static registry={};constructor(t){this.id=t.id,this.deviceId=t.deviceId}static register(t,n){ne.registry[t]=n}static fromPlain(t){const n=ne.registry[t.type];if(!n)throw new Error(`Unsupported protocol type: ${t.type}`);return n.fromPlain(t)}}class Pr{static getDefaultConfig(t){console.log(1231231,t);const n=t.baseInfo,r=t.configuration,s=t.tab;return{baseInfo:n,config:r,tab:s}}}const Dr={type:"Ethernet",baseInfo:[{key:"name",name:{i18nKey:"name"},defaultValue:"Ethernet"},{key:"supplier",name:{i18nKey:"supplier"},defaultValue:{i18nKey:"company"}},{key:"version",name:{i18nKey:"verison"},defaultValue:"1.0.0.0"},{key:"description",name:{i18nKey:"description"},defaultValue:{i18nKey:"descriptionMap.ethernet"}},{key:"category",name:{i18nKey:"category"},defaultValue:{i18nKey:"ethernet"}}],tab:[{name:{i18nKey:"general"},key:"general"},{name:{i18nKey:"ioMapping"},key:"ioMapping"}],configuration:{general:[{key:"netInterface",name:{i18nKey:"netInterface"},dataType:"string",componentType:"strInput",defaultValue:""},{key:"ipAddress",name:{i18nKey:"ipAddress"},dataType:"string",componentType:"ipInput",defaultValue:"192.168.1.1"},{key:"subnetMask",name:{i18nKey:"subnetMask"},dataType:"string",componentType:"ipInput",defaultValue:"255.255.255.0"},{key:"defaultGateway",name:{i18nKey:"defaultGateway"},dataType:"string",componentType:"ipInput",defaultValue:"0.0.0.0"},{key:"adaptedOSConfiguration",name:{i18nKey:"adaptedOSConfiguration"},dataType:"boolean",componentType:"switch",defaultValue:!1}],ioMapping:[{key:"busCycleTask",name:{i18nKey:"busCycleTask"},dataType:"string",componentType:"select",defaultValue:"-1"}]}};class Ue extends ne{type=ue.ETHERNET;moduleType=$e[ue.ETHERNET];baseInfo;config;tab;constructor(t){super(t);const{baseInfo:n,config:r,tab:s}=Pr.getDefaultConfig(Dr);this.baseInfo=n,this.config=r,this.tab=s}static fromPlain(t){return new Ue(t)}}class Qe extends ne{type=ue.MODBUS_TCP_SERVER;moduleType=$e[ue.MODBUS_TCP_SERVER];constructor(t){super(t)}static fromPlain(t){return new Qe(t)}}class qe extends ne{type=ue.MODBUS_TCP_CLIENT;moduleType=$e[ue.MODBUS_TCP_CLIENT];constructor(t){super(t)}static fromPlain(t){return new qe(t)}}class Ze extends ne{type=ue.MODBUS_TCP_SLAVE_DEVICE;moduleType=$e[ue.MODBUS_TCP_SLAVE_DEVICE];constructor(t){super(t)}static fromPlain(t){return new Ze(t)}}var ue=(e=>(e.ETHERNET="Ethernet",e.MODBUS_TCP_SERVER="ModbusTCPServer",e.MODBUS_TCP_CLIENT="ModbusTCPClient",e.MODBUS_TCP_SLAVE_DEVICE="ModbusTCPSlaveDevice",e.MODBUS_SERIAL_PORT="ModbusSerialPort",e.MODBUS_MASTER="ModbusMaster",e.MODBUS_SLAVE="ModbusSlave",e.MODBUS_SERIAL="ModbusSerial",e.OPCUA_SERVER="OPCUAServer",e.ETHER_CAT_MASTER="EtherCatMaster",e.ETHER_CAT_SLAVE="EtherCatSlave",e.ETHER_CAT_MODULE="EtherCatModule",e))(ue||{});const $e={Pprogrammable:4096,Protgrammable_Safety:4098,CAN_Master:16,CAN_Slave:17,CAN_Device:18,EtherCat_Master:64,EtherCat_Slave:65,ProfinetIO_Master:80,ProfinetIO_Device:81,EthernetIP_Scanner:100,EthernetIP_Adapter:101,Ethernet:110,ModbusTCPServer:88,ModbusTCPClient:89,ModbusTCPSlaveDevice:115,ModbusSerialPort:92,ModbusMaster:90,ModbusSlave:91,ModbusSerial:94,OPCUAServer:128,EtherCatMaster:64,EtherCatSlave:16384,EtherCatModule:16384};class cn{map=new Map;constructor(){ne.register("Ethernet",Ue),ne.register("ModbusTCPServer",Qe),ne.register("ModbusTCPClient",qe),ne.register("ModbusTCPSlaveDevice",Ze)}init(t){this.clear(),t.forEach(n=>{const r=ne.fromPlain(n);this.map.set(n.id,r)})}build(t){return""}get(t){const n=Array.isArray(t)?t.map(r=>this.map.get(r)).filter(r=>r!==void 0):this.map.get(t);if(Array.isArray(n)&&!n.length||!n)throw new Error(`Protocol ${t} is not found.`);return n}add(t){this.map.set(t.id,t)}delete(t){Array.isArray(t)?t.forEach(n=>this.map.delete(n)):this.map.delete(t)}clear(){this.map.clear()}}const kr=L.defineComponent({__name:"Ethernet",props:{config:{}},setup(e){return(t,n)=>(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(e.config.tab,r=>(L.openBlock(),L.createElementBlock("div",{key:r.key},L.toDisplayString(t.$t(r.name.i18nKey)),1))),128))}}),Mr=L.defineComponent({__name:"App",setup(e){new cn;const t=new Ue({id:1,deviceId:1,type:"Ethernet"});return(n,r)=>(L.openBlock(),L.createElementBlock("div",null,[L.createVNode(kr,{config:L.unref(t)},null,8,["config"])]))}});function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const un={};function mt(e){un[e]||(un[e]=!0,fe(e))}const le=typeof window<"u";let re,be;if(process.env.NODE_ENV!=="production"){const e=le&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(re=t=>{e.mark(t)},be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Rr=/\{([0-9a-zA-Z]+)\}/g;function ze(e,...t){return t.length===1&&F(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Rr,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Fr=(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"),J=e=>typeof e=="number"&&isFinite(e),Ur=e=>dt(e)==="[object Date]",Se=e=>dt(e)==="[object RegExp]",et=e=>R(e)&&Object.keys(e).length===0,Q=Object.assign,$r=Object.create,W=(e=null)=>$r(e);let fn;const he=()=>fn||(fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function _n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function mn(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Vr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,a)=>`${s}="${mn(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,a)=>`${s}='${mn(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Wr=Object.prototype.hasOwnProperty;function ie(e,t){return Wr.call(e,t)}const x=Array.isArray,G=e=>typeof e=="function",O=e=>typeof e=="string",w=e=>typeof e=="boolean",F=e=>e!==null&&typeof e=="object",Gr=e=>F(e)&&G(e.then)&&G(e.catch),dn=Object.prototype.toString,dt=e=>dn.call(e),R=e=>dt(e)==="[object Object]",Br=e=>e==null?"":x(e)||R(e)&&e.toString===dn?JSON.stringify(e,null,2):String(e);function pt(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const pn=2;function Hr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const a=[];for(let o=0;o<r.length;o++)if(s+=r[o].length+1,s>=t){for(let i=o-pn;i<=o+pn||n>s;i++){if(i<0||i>=r.length)continue;const u=i+1;a.push(`${u}${" ".repeat(3-String(u).length)}| ${r[i]}`);const p=r[i].length;if(i===o){const I=t-(s-p)+1,b=Math.max(1,n>s?p-I:n-t);a.push(" | "+" ".repeat(I)+"^".repeat(b))}else if(i>o){if(n>s){const I=Math.max(Math.min(n-s,p),1);a.push(" | "+"^".repeat(I))}s+=p+1}}break}return a.join(`
2
- `)}function Et(){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 tt=e=>!F(e)||x(e);function nt(e,t){if(tt(e)||tt(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(a=>{a!=="__proto__"&&(F(r[a])&&!F(s[a])&&(s[a]=Array.isArray(r[a])?[]:W()),tt(s[a])||tt(r[a])?s[a]=r[a]:n.push({src:r[a],des:s[a]}))})}}function xr(e,t,n){return{line:e,column:t,offset:n}}function gt(e,t,n){return{start:e,end:t}}const D={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},Yr=17,Kr={[D.EXPECTED_TOKEN]:"Expected token: '{0}'",[D.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[D.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[D.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[D.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[D.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[D.EMPTY_PLACEHOLDER]:"Empty placeholder",[D.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[D.INVALID_LINKED_FORMAT]:"Invalid linked format",[D.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[D.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[D.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[D.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[D.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[D.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ye(e,t,n={}){const{domain:r,messages:s,args:a}=n,o=process.env.NODE_ENV!=="production"?ze((s||Kr)[e]||"",...a||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function jr(e){throw e}const Xr=/<\/?[\w\s="/.':;#-\/]+>/,Jr=e=>Xr.test(e),me=" ",Qr="\r",Z=`
3
- `,qr="\u2028",Zr="\u2029";function zr(e){const t=e;let n=0,r=1,s=1,a=0;const o=E=>t[E]===Qr&&t[E+1]===Z,i=E=>t[E]===Z,u=E=>t[E]===Zr,p=E=>t[E]===qr,I=E=>o(E)||i(E)||u(E)||p(E),b=()=>n,T=()=>r,S=()=>s,k=()=>a,A=E=>o(E)||u(E)||p(E)?Z:t[E],y=()=>A(n),f=()=>A(n+a);function m(){return a=0,I(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function h(){return o(n+a)&&a++,a++,t[n+a]}function d(){n=0,r=1,s=1,a=0}function v(E=0){a=E}function C(){const E=n+a;for(;E!==n;)m();a=0}return{index:b,line:T,column:S,peekOffset:k,charAt:A,currentChar:y,currentPeek:f,next:m,peek:h,reset:d,resetPeek:v,skipToPeek:C}}const pe=void 0,es=".",En="'",ts="tokenizer";function ns(e,t={}){const n=t.location!==!1,r=zr(e),s=()=>r.index(),a=()=>xr(r.line(),r.column(),r.index()),o=a(),i=s(),u={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},p=()=>u,{onError:I}=t;function b(l,c,g,...P){const H=p();if(c.column+=g,c.offset+=g,I){const j=n?gt(H.startLoc,c):null,U=ye(l,j,{domain:ts,args:P});I(U)}}function T(l,c,g){l.endLoc=a(),l.currentType=c;const P={type:c};return n&&(P.loc=gt(l.startLoc,l.endLoc)),g!=null&&(P.value=g),P}const S=l=>T(l,13);function k(l,c){return l.currentChar()===c?(l.next(),c):(b(D.EXPECTED_TOKEN,a(),0,c),"")}function A(l){let c="";for(;l.currentPeek()===me||l.currentPeek()===Z;)c+=l.currentPeek(),l.peek();return c}function y(l){const c=A(l);return l.skipToPeek(),c}function f(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function m(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function h(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function d(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),H=m(P);return l.resetPeek(),H}function v(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()===En;return l.resetPeek(),P}function C(l,c){const{currentType:g}=c;if(g!==7)return!1;A(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function E(l,c){const{currentType:g}=c;if(g!==8)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function M(l,c){const{currentType:g}=c;if(!(g===7||g===11))return!1;A(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function $(l,c){const{currentType:g}=c;if(g!==9)return!1;const P=()=>{const j=l.currentPeek();return j==="{"?f(l.peek()):j==="@"||j==="|"||j===":"||j==="."||j===me||!j?!1:j===Z?(l.peek(),P()):ce(l,!1)},H=P();return l.resetPeek(),H}function q(l){A(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function ce(l,c=!0){const g=(H=!1,j="")=>{const U=l.currentPeek();return U==="{"||U==="@"||!U?H:U==="|"?!(j===me||j===Z):U===me?(l.peek(),g(!0,me)):U===Z?(l.peek(),g(!0,Z)):!0},P=g();return c&&l.resetPeek(),P}function Y(l,c){const g=l.currentChar();return g===pe?pe:c(g)?(l.next(),g):null}function Fe(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function Bt(l){return Y(l,Fe)}function Ht(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function xt(l){return Y(l,Ht)}function Yt(l){const c=l.charCodeAt(0);return c>=48&&c<=57}function Kt(l){return Y(l,Yt)}function jt(l){const c=l.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function ge(l){return Y(l,jt)}function Ke(l){let c="",g="";for(;c=Kt(l);)g+=c;return g}function Xt(l){let c="";for(;;){const g=l.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g===me||g===Z)if(ce(l))c+=g,l.next();else{if(q(l))break;c+=g,l.next()}else c+=g,l.next()}return c}function Jt(l){y(l);let c="",g="";for(;c=xt(l);)g+=c;const P=l.currentChar();if(P&&P!=="}"&&P!==pe&&P!==me&&P!==Z&&P!==" "){const H=ct(l);return b(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g+H),g+H}return l.currentChar()===pe&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g}function Qt(l){y(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${Ke(l)}`):c+=Ke(l),l.currentChar()===pe&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),c}function qt(l){return l!==En&&l!==Z}function vr(l){y(l),k(l,"'");let c="",g="";for(;c=Y(l,qt);)c==="\\"?g+=Zt(l):g+=c;const P=l.currentChar();return P===Z||P===pe?(b(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),P===Z&&(l.next(),k(l,"'")),g):(k(l,"'"),g)}function Zt(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return it(l,c,4);case"U":return it(l,c,6);default:return b(D.UNKNOWN_ESCAPE_SEQUENCE,a(),0,c),""}}function it(l,c,g){k(l,c);let P="";for(let H=0;H<g;H++){const j=ge(l);if(!j){b(D.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${c}${P}${l.currentChar()}`);break}P+=j}return`\\${c}${P}`}function zt(l){return l!=="{"&&l!=="}"&&l!==me&&l!==Z}function ct(l){y(l);let c="",g="";for(;c=Y(l,zt);)g+=c;return g}function en(l){let c="",g="";for(;c=Bt(l);)g+=c;return g}function tn(l){const c=g=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===me?g:(g+=P,l.next(),c(g))};return c("")}function je(l){y(l);const c=k(l,"|");return y(l),c}function Xe(l,c){let g=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&b(D.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),l.next(),g=T(c,2,"{"),y(l),c.braceNest++,g;case"}":return c.braceNest>0&&c.currentType===2&&b(D.EMPTY_PLACEHOLDER,a(),0),l.next(),g=T(c,3,"}"),c.braceNest--,c.braceNest>0&&y(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),g;case"@":return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=ve(l,c)||S(c),c.braceNest=0,g;default:{let H=!0,j=!0,U=!0;if(q(l))return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return b(D.UNTERMINATED_CLOSING_BRACE,a(),0),c.braceNest=0,Je(l,c);if(H=h(l,c))return g=T(c,4,Jt(l)),y(l),g;if(j=d(l,c))return g=T(c,5,Qt(l)),y(l),g;if(U=v(l,c))return g=T(c,6,vr(l)),y(l),g;if(!H&&!j&&!U)return g=T(c,12,ct(l)),b(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g.value),y(l),g;break}}return g}function ve(l,c){const{currentType:g}=c;let P=null;const H=l.currentChar();switch((g===7||g===8||g===11||g===9)&&(H===Z||H===me)&&b(D.INVALID_LINKED_FORMAT,a(),0),H){case"@":return l.next(),P=T(c,7,"@"),c.inLinked=!0,P;case".":return y(l),l.next(),T(c,8,".");case":":return y(l),l.next(),T(c,9,":");default:return q(l)?(P=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,P):C(l,c)||M(l,c)?(y(l),ve(l,c)):E(l,c)?(y(l),T(c,11,en(l))):$(l,c)?(y(l),H==="{"?Xe(l,c)||P:T(c,10,tn(l))):(g===7&&b(D.INVALID_LINKED_FORMAT,a(),0),c.braceNest=0,c.inLinked=!1,Je(l,c))}}function Je(l,c){let g={type:13};if(c.braceNest>0)return Xe(l,c)||S(c);if(c.inLinked)return ve(l,c)||S(c);switch(l.currentChar()){case"{":return Xe(l,c)||S(c);case"}":return b(D.UNBALANCED_CLOSING_BRACE,a(),0),l.next(),T(c,3,"}");case"@":return ve(l,c)||S(c);default:{if(q(l))return g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(ce(l))return T(c,0,Xt(l));break}}return g}function nn(){const{currentType:l,offset:c,startLoc:g,endLoc:P}=u;return u.lastType=l,u.lastOffset=c,u.lastStartLoc=g,u.lastEndLoc=P,u.offset=s(),u.startLoc=a(),r.currentChar()===pe?T(u,13):Je(r,u)}return{nextToken:nn,currentOffset:s,currentPosition:a,context:p}}const rs="parser",ss=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function as(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function os(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,m,h,d,...v){const C=f.currentPosition();if(C.offset+=d,C.column+=d,n){const E=t?gt(h,C):null,M=ye(m,E,{domain:rs,args:v});n(M)}}function s(f,m,h){const d={type:f};return t&&(d.start=m,d.end=m,d.loc={start:h,end:h}),d}function a(f,m,h,d){t&&(f.end=m,f.loc&&(f.loc.end=h))}function o(f,m){const h=f.context(),d=s(3,h.offset,h.startLoc);return d.value=m,a(d,f.currentOffset(),f.currentPosition()),d}function i(f,m){const h=f.context(),{lastOffset:d,lastStartLoc:v}=h,C=s(5,d,v);return C.index=parseInt(m,10),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function u(f,m){const h=f.context(),{lastOffset:d,lastStartLoc:v}=h,C=s(4,d,v);return C.key=m,f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function p(f,m){const h=f.context(),{lastOffset:d,lastStartLoc:v}=h,C=s(9,d,v);return C.value=m.replace(ss,as),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function I(f){const m=f.nextToken(),h=f.context(),{lastOffset:d,lastStartLoc:v}=h,C=s(8,d,v);return m.type!==11?(r(f,D.UNEXPECTED_EMPTY_LINKED_MODIFIER,h.lastStartLoc,0),C.value="",a(C,d,v),{nextConsumeToken:m,node:C}):(m.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,de(m)),C.value=m.value||"",a(C,f.currentOffset(),f.currentPosition()),{node:C})}function b(f,m){const h=f.context(),d=s(7,h.offset,h.startLoc);return d.value=m,a(d,f.currentOffset(),f.currentPosition()),d}function T(f){const m=f.context(),h=s(6,m.offset,m.startLoc);let d=f.nextToken();if(d.type===8){const v=I(f);h.modifier=v.node,d=v.nextConsumeToken||f.nextToken()}switch(d.type!==9&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),d=f.nextToken(),d.type===2&&(d=f.nextToken()),d.type){case 10:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=b(f,d.value||"");break;case 4:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=u(f,d.value||"");break;case 5:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=i(f,d.value||"");break;case 6:d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de(d)),h.key=p(f,d.value||"");break;default:{r(f,D.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const v=f.context(),C=s(7,v.offset,v.startLoc);return C.value="",a(C,v.offset,v.startLoc),h.key=C,a(h,v.offset,v.startLoc),{nextConsumeToken:d,node:h}}}return a(h,f.currentOffset(),f.currentPosition()),{node:h}}function S(f){const m=f.context(),h=m.currentType===1?f.currentOffset():m.offset,d=m.currentType===1?m.endLoc:m.startLoc,v=s(2,h,d);v.items=[];let C=null;do{const $=C||f.nextToken();switch(C=null,$.type){case 0:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(o(f,$.value||""));break;case 5:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(i(f,$.value||""));break;case 4:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(u(f,$.value||""));break;case 6:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,de($)),v.items.push(p(f,$.value||""));break;case 7:{const q=T(f);v.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const E=m.currentType===1?m.lastOffset:f.currentOffset(),M=m.currentType===1?m.lastEndLoc:f.currentPosition();return a(v,E,M),v}function k(f,m,h,d){const v=f.context();let C=d.items.length===0;const E=s(1,m,h);E.cases=[],E.cases.push(d);do{const M=S(f);C||(C=M.items.length===0),E.cases.push(M)}while(v.currentType!==13);return C&&r(f,D.MUST_HAVE_MESSAGES_IN_PLURAL,h,0),a(E,f.currentOffset(),f.currentPosition()),E}function A(f){const m=f.context(),{offset:h,startLoc:d}=m,v=S(f);return m.currentType===13?v:k(f,h,d,v)}function y(f){const m=ns(f,Q({},e)),h=m.context(),d=s(0,h.offset,h.startLoc);return t&&d.loc&&(d.loc.source=f),d.body=A(m),e.onCacheKey&&(d.cacheKey=e.onCacheKey(f)),h.currentType!==13&&r(m,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,f[h.offset]||""),a(d,m.currentOffset(),m.currentPosition()),d}return{parse:y}}function de(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 ls(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function gn(e,t){for(let n=0;n<e.length;n++)Tt(e[n],t)}function Tt(e,t){switch(e.type){case 1:gn(e.cases,t),t.helper("plural");break;case 2:gn(e.items,t);break;case 6:{Tt(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 is(e,t={}){const n=ls(e);n.helper("normalize"),e.body&&Tt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function cs(e){const t=e.body;return t.type===2?Tn(t):t.cases.forEach(n=>Tn(n)),e}function Tn(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=pt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const us="minifier";function Pe(e){switch(e.t=e.type,e.type){case 0:{const t=e;Pe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Pe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Pe(n[r]);t.i=n,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;Pe(t.key),t.k=t.key,delete t.key,t.modifier&&(Pe(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 ye(D.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:us,args:[e.type]})}delete e.type}const fs="parser";function _s(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,a=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const i=()=>o;function u(A,y){o.code+=A}function p(A,y=!0){const f=y?r:"";u(s?f+" ".repeat(A):f)}function I(A=!0){const y=++o.indentLevel;A&&p(y)}function b(A=!0){const y=--o.indentLevel;A&&p(y)}function T(){p(o.indentLevel)}return{context:i,push:u,indent:I,deindent:b,newline:T,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function ms(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),De(e,t.key),t.modifier?(e.push(", "),De(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ds(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let a=0;a<s&&(De(e,t.items[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function ps(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let a=0;a<s&&(De(e,t.cases[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function Es(e,t){t.body?De(e,t.body):e.push("null")}function De(e,t){const{helper:n}=e;switch(t.type){case 0:Es(e,t);break;case 1:ps(e,t);break;case 2:ds(e,t);break;case 6:ms(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(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("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 ye(D.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:fs,args:[t.type]})}}const gs=(e,t={})=>{const n=O(t.mode)?t.mode:"normal",r=O(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
4
- `,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=_s(e,{filename:r,breakLineCode:s,needIndent:a});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(a),o.length>0&&(i.push(`const { ${pt(o.map(I=>`${I}: _${I}`),", ")} } = ctx`),i.newline()),i.push("return "),De(i,e),i.deindent(a),i.push("}"),delete e.helpers;const{code:u,map:p}=i.context();return{ast:e,code:u,map:p?p.toJSON():void 0}};function Ts(e,t={}){const n=Q({},t),r=!!n.jit,s=!!n.minify,a=n.optimize==null?!0:n.optimize,i=os(n).parse(e);return r?(a&&cs(i),s&&Pe(i),{ast:i,code:""}):(is(i,n),gs(i,n))}function Ns(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(he().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return F(e)&&Nt(e)===0&&(ie(e,"b")||ie(e,"body"))}const Nn=["b","body"];function bs(e){return Te(e,Nn)}const bn=["c","cases"];function hs(e){return Te(e,bn,[])}const hn=["s","static"];function Is(e){return Te(e,hn)}const In=["i","items"];function Ls(e){return Te(e,In,[])}const Ln=["t","type"];function Nt(e){return Te(e,Ln)}const On=["v","value"];function rt(e,t){const n=Te(e,On);if(n!=null)return n;throw Ve(t)}const vn=["m","modifier"];function Os(e){return Te(e,vn)}const Cn=["k","key"];function vs(e){const t=Te(e,Cn);if(t)return t;throw Ve(6)}function Te(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(ie(e,s)&&e[s]!=null)return e[s]}return n}const An=[...Nn,...bn,...hn,...In,...Cn,...vn,...On,...Ln];function Ve(e){return new Error(`unhandled node type: ${e}`)}function bt(e){return n=>Cs(n,e)}function Cs(e,t){const n=bs(t);if(n==null)throw Ve(0);if(Nt(n)===1){const a=hs(n);return e.plural(a.reduce((o,i)=>[...o,Sn(e,i)],[]))}else return Sn(e,n)}function Sn(e,t){const n=Is(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Ls(t).reduce((s,a)=>[...s,ht(e,a)],[]);return e.normalize(r)}}function ht(e,t){const n=Nt(t);switch(n){case 3:return rt(t,n);case 9:return rt(t,n);case 4:{const r=t;if(ie(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ie(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ve(n)}case 5:{const r=t;if(ie(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(ie(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw Ve(n)}case 6:{const r=t,s=Os(r),a=vs(r);return e.linked(ht(e,a),s?ht(e,s):void 0,e.type)}case 7:return rt(t,n);case 8:return rt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const As="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ss(e,t){t&&Jr(e)&&fe(ze(As,{source:e}))}const ys=e=>e;let st=W();function Ps(e,t={}){let n=!1;const r=t.onError||jr;return t.onError=s=>{n=!0,r(s)},{...Ts(e,t),detectError:n}}function Ds(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ss(e,n);const s=(t.onCacheKey||ys)(e),a=st[s];if(a)return a;const{ast:o,detectError:i}=Ps(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=bt(o);return i?u:st[s]=u}else{if(process.env.NODE_ENV!=="production"&&!se(e))return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=st[n];return r||(st[n]=bt(e))}else return bt(e)}}let We=null;function ks(e){We=e}function Ms(e,t,n){We&&We.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Rs=Fs("function:translate");function Fs(e){return t=>We&&We.emit(e,t)}const z={INVALID_ARGUMENT:Yr,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},ws=24;function Ee(e){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:Us}:void 0)}const Us={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function It(e,t){return t.locale!=null?yn(t.locale):yn(e.locale)}let Lt;function yn(e){if(O(e))return e;if(G(e)){if(e.resolvedOnce&&Lt!=null)return Lt;if(e.constructor.name==="Function"){const t=e();if(Gr(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Lt=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function $s(e,t,n){return[...new Set([n,...x(t)?t:F(t)?Object.keys(t):O(t)?[t]:[n]])]}function Pn(e,t,n){const r=O(n)?n:Ge,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let a=s.__localeChainCache.get(r);if(!a){a=[];let o=[n];for(;x(o);)o=Dn(a,o,t);const i=x(t)||!R(t)?t:t.default?t.default:null;o=O(i)?[i]:i,x(o)&&Dn(a,o,!1),s.__localeChainCache.set(r,a)}return a}function Dn(e,t,n){let r=!0;for(let s=0;s<t.length&&w(r);s++){const a=t[s];O(a)&&(r=Vs(e,t[s],n))}return r}function Vs(e,t,n){let r;const s=t.split("-");do{const a=s.join("-");r=Ws(e,a,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Ws(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(x(n)||R(n))&&n[s]&&(r=n[s])}return r}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Gs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Bs(e){return Gs.test(e)}function Hs(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 xs(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 Ys(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Bs(t)?Hs(t):"*"+t}function Ks(e){const t=[];let n=-1,r=0,s=0,a,o,i,u,p,I,b;const T=[];T[0]=()=>{o===void 0?o=i:o+=i},T[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},T[2]=()=>{T[0](),s++},T[3]=()=>{if(s>0)s--,r=4,T[0]();else{if(s=0,o===void 0||(o=Ys(o),o===!1))return!1;T[1]()}};function S(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,i="\\"+k,T[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&S())){if(u=xs(a),b=Ne[r],p=b[u]||b.l||8,p===8||(r=p[0],p[1]!==void 0&&(I=T[p[1]],I&&(i=a,I()===!1))))return;if(r===7)return t}}const kn=new Map;function js(e,t){return F(e)?e[t]:null}function Xs(e,t){if(!F(e))return null;let n=kn.get(t);if(n||(n=Ks(t),n&&kn.set(t,n)),!n)return null;const r=n.length;let s=e,a=0;for(;a<r;){const o=n[a];if(An.includes(o)&&se(s))return null;const i=s[o];if(i===void 0||G(s))return null;s=i,a++}return s}const ee={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},Js=8,Qs={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.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 Ie(e,...t){return ze(Qs[e],...t)}const qs="11.2.8",at=-1,Ge="en-US",ot="",Mn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Zs(){return{upper:(e,t)=>t==="text"&&O(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&O(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&O(e)?Mn(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?Mn(e.children):e}}let Rn;function zs(e){Rn=e}let Fn;function ea(e){Fn=e}let wn;function ta(e){wn=e}let Un=null;const na=e=>{Un=e},ra=()=>Un;let $n=null;const Vn=e=>{$n=e},sa=()=>$n;let Wn=0;function aa(e={}){const t=G(e.onWarn)?e.onWarn:fe,n=O(e.version)?e.version:qs,r=O(e.locale)||G(e.locale)?e.locale:Ge,s=G(r)?Ge:r,a=x(e.fallbackLocale)||R(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=R(e.messages)?e.messages:Ot(s),i=R(e.datetimeFormats)?e.datetimeFormats:Ot(s),u=R(e.numberFormats)?e.numberFormats:Ot(s),p=Q(W(),e.modifiers,Zs()),I=e.pluralRules||W(),b=G(e.missing)?e.missing:null,T=w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,A=!!e.unresolving,y=G(e.postTranslation)?e.postTranslation:null,f=R(e.processor)?e.processor:null,m=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,d=G(e.messageCompiler)?e.messageCompiler:Rn;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&mt(Ie(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const v=G(e.messageResolver)?e.messageResolver:Fn||js,C=G(e.localeFallbacker)?e.localeFallbacker:wn||$s,E=F(e.fallbackContext)?e.fallbackContext:void 0,M=e,$=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,q=F(M.__numberFormatters)?M.__numberFormatters:new Map,ce=F(M.__meta)?M.__meta:{};Wn++;const Y={version:n,cid:Wn,locale:r,fallbackLocale:a,messages:o,modifiers:p,pluralRules:I,missing:b,missingWarn:T,fallbackWarn:S,fallbackFormat:k,unresolving:A,postTranslation:y,processor:f,warnHtmlMessage:m,escapeParameter:h,messageCompiler:d,messageResolver:v,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:ce};return Y.datetimeFormats=i,Y.numberFormats=u,Y.__datetimeFormatters=$,Y.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(Y.__v_emitter=M.__v_emitter!=null?M.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ms(Y,n,ce),Y}const Ot=e=>({[e]:W()});function lt(e,t){return e instanceof RegExp?e.test(t):e}function Gn(e,t){return e instanceof RegExp?e.test(t):e}function vt(e,t,n,r,s){const{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(a!==null){const i=a(e,n,t,s);return O(i)?i:t}else return process.env.NODE_ENV!=="production"&&Gn(r,t)&&o(Ie(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function Be(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Bn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function oa(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Bn(e,t[r]))return!0;return!1}const Hn=typeof Intl<"u",xn={dateTimeFormat:Hn&&typeof Intl.DateTimeFormat<"u",numberFormat:Hn&&typeof Intl.NumberFormat<"u"};function Yn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!xn.dateTimeFormat)return a(Ie(ee.CANNOT_FORMAT_DATE)),ot;const[u,p,I,b]=Ct(...t),T=w(I.missingWarn)?I.missingWarn:e.missingWarn,S=w(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,k=!!I.part,A=It(e,I),y=o(e,s,A);if(!O(u)||u==="")return new Intl.DateTimeFormat(A,b).format(p);let f={},m,h=null,d=A,v=null;const C="datetime format";for(let $=0;$<y.length;$++){if(m=v=y[$],process.env.NODE_ENV!=="production"&&A!==m&&lt(S,u)&&a(Ie(ee.FALLBACK_TO_DATE_FORMAT,{key:u,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:d,to:v,groupId:`${C}:${u}`})}if(f=n[m]||{},h=f[u],R(h))break;vt(e,u,m,T,C),d=v}if(!R(h)||!O(m))return r?at:u;let E=`${m}__${u}`;et(b)||(E=`${E}__${JSON.stringify(b)}`);let M=i.get(E);return M||(M=new Intl.DateTimeFormat(m,Q({},h,b)),i.set(E,M)),k?M.formatToParts(p):M.format(p)}const Kn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ct(...e){const[t,n,r,s]=e,a=W();let o=W(),i;if(O(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const p=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();i=new Date(p);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Ur(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);i=t}else if(J(t))i=t;else throw Ee(z.INVALID_ARGUMENT);return O(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{Kn.includes(u)?o[u]=n[u]:a[u]=n[u]}),O(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function jn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function Xn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!xn.numberFormat)return a(Ie(ee.CANNOT_FORMAT_NUMBER)),ot;const[u,p,I,b]=At(...t),T=w(I.missingWarn)?I.missingWarn:e.missingWarn,S=w(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,k=!!I.part,A=It(e,I),y=o(e,s,A);if(!O(u)||u==="")return new Intl.NumberFormat(A,b).format(p);let f={},m,h=null,d=A,v=null;const C="number format";for(let $=0;$<y.length;$++){if(m=v=y[$],process.env.NODE_ENV!=="production"&&A!==m&&lt(S,u)&&a(Ie(ee.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:d,to:v,groupId:`${C}:${u}`})}if(f=n[m]||{},h=f[u],R(h))break;vt(e,u,m,T,C),d=v}if(!R(h)||!O(m))return r?at:u;let E=`${m}__${u}`;et(b)||(E=`${E}__${JSON.stringify(b)}`);let M=i.get(E);return M||(M=new Intl.NumberFormat(m,Q({},h,b)),i.set(E,M)),k?M.formatToParts(p):M.format(p)}const Jn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function At(...e){const[t,n,r,s]=e,a=W();let o=W();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return O(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{Jn.includes(u)?o[u]=n[u]:a[u]=n[u]}),O(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Qn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const la=e=>e,ia=e=>"",ca="text",ua=e=>e.length===0?"":pt(e),fa=Br;function qn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function _a(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function ma(e,t){t.count||(t.count=e),t.n||(t.n=e)}function da(e={}){const t=e.locale,n=_a(e),r=F(e.pluralRules)&&O(t)&&G(e.pluralRules[t])?e.pluralRules[t]:qn,s=F(e.pluralRules)&&O(t)&&G(e.pluralRules[t])?qn:void 0,a=f=>f[r(n,f.length,s)],o=e.list||[],i=f=>o[f],u=e.named||W();J(e.pluralIndex)&&ma(n,u);const p=f=>u[f];function I(f,m){const h=G(e.messages)?e.messages(f,!!m):F(e.messages)?e.messages[f]:!1;return h||(e.parent?e.parent.message(f):ia)}const b=f=>e.modifiers?e.modifiers[f]:la,T=R(e.processor)&&G(e.processor.normalize)?e.processor.normalize:ua,S=R(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:fa,k=R(e.processor)&&O(e.processor.type)?e.processor.type:ca,y={list:i,named:p,plural:a,linked:(f,...m)=>{const[h,d]=m;let v="text",C="";m.length===1?F(h)?(C=h.modifier||C,v=h.type||v):O(h)&&(C=h||C):m.length===2&&(O(h)&&(C=h||C),O(d)&&(v=d||v));const E=I(f,!0)(y),M=v==="vnode"&&x(E)&&C?E[0]:E;return C?b(C)(M,v):M},message:I,type:k,interpolate:S,normalize:T,values:Q(W(),o,u)};return y}const Zn=()=>"",ae=e=>G(e);function zn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:a,fallbackLocale:o,messages:i}=e,[u,p]=St(...t),I=w(p.missingWarn)?p.missingWarn:e.missingWarn,b=w(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,T=w(p.escapeParameter)?p.escapeParameter:e.escapeParameter,S=!!p.resolvedMessage,k=O(p.default)||w(p.default)?w(p.default)?a?u:()=>u:p.default:n?a?u:()=>u:null,A=n||k!=null&&(O(k)||G(k)),y=It(e,p);T&&pa(p);let[f,m,h]=S?[u,y,i[y]||W()]:er(e,u,y,o,b,I),d=f,v=u;if(!S&&!(O(d)||se(d)||ae(d))&&A&&(d=k,v=d),!S&&(!(O(d)||se(d)||ae(d))||!O(m)))return s?at:u;if(process.env.NODE_ENV!=="production"&&O(d)&&e.messageCompiler==null)return fe(`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 '${u}'.`),u;let C=!1;const E=()=>{C=!0},M=ae(d)?d:tr(e,u,m,d,v,E);if(C)return d;const $=Na(e,m,h,p),q=da($),ce=Ea(e,M,q);let Y=r?r(ce,u):ce;if(T&&O(Y)&&(Y=Vr(Y)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Fe={timestamp:Date.now(),key:O(u)?u:ae(d)?d.key:"",locale:m||(ae(d)?d.locale:""),format:O(d)?d:ae(d)?d.source:"",message:Y};Fe.meta=Q({},e.__meta,ra()||{}),Rs(Fe)}return Y}function pa(e){x(e.list)?e.list=e.list.map(t=>O(t)?_n(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{O(e.named[t])&&(e.named[t]=_n(e.named[t]))})}function er(e,t,n,r,s,a){const{messages:o,onWarn:i,messageResolver:u,localeFallbacker:p}=e,I=p(e,r,n);let b=W(),T,S=null,k=n,A=null;const y="translate";for(let f=0;f<I.length;f++){if(T=A=I[f],process.env.NODE_ENV!=="production"&&n!==T&&!Bn(n,T)&&lt(s,t)&&i(Ie(ee.FALLBACK_TO_TRANSLATE,{key:t,target:T})),process.env.NODE_ENV!=="production"&&n!==T){const v=e.__v_emitter;v&&v.emit("fallback",{type:y,key:t,from:k,to:A,groupId:`${y}:${t}`})}b=o[T]||W();let m=null,h,d;if(process.env.NODE_ENV!=="production"&&le&&(m=window.performance.now(),h="intlify-message-resolve-start",d="intlify-message-resolve-end",re&&re(h)),(S=u(b,t))===null&&(S=b[t]),process.env.NODE_ENV!=="production"&&le){const v=window.performance.now(),C=e.__v_emitter;C&&m&&S&&C.emit("message-resolve",{type:"message-resolve",key:t,message:S,time:v-m,groupId:`${y}:${t}`}),h&&d&&re&&be&&(re(d),be("intlify message resolve",h,d))}if(O(S)||se(S)||ae(S))break;if(!oa(T,I)){const v=vt(e,t,T,a,y);v!==t&&(S=v)}k=A}return[S,T,b]}function tr(e,t,n,r,s,a){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ae(r)){const T=r;return T.locale=T.locale||n,T.key=T.key||t,T}if(o==null){const T=(()=>r);return T.locale=n,T.key=t,T}let u=null,p,I;process.env.NODE_ENV!=="production"&&le&&(u=window.performance.now(),p="intlify-message-compilation-start",I="intlify-message-compilation-end",re&&re(p));const b=o(r,ga(e,n,s,r,i,a));if(process.env.NODE_ENV!=="production"&&le){const T=window.performance.now(),S=e.__v_emitter;S&&u&&S.emit("message-compilation",{type:"message-compilation",message:r,time:T-u,groupId:`translate:${t}`}),p&&I&&re&&be&&(re(I),be("intlify message compilation",p,I))}return b.locale=n,b.key=t,b.source=r,b}function Ea(e,t,n){let r=null,s,a;process.env.NODE_ENV!=="production"&&le&&(r=window.performance.now(),s="intlify-message-evaluation-start",a="intlify-message-evaluation-end",re&&re(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&le){const i=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),s&&a&&re&&be&&(re(a),be("intlify message evaluation",s,a))}return o}function St(...e){const[t,n,r]=e,s=W();if(!O(t)&&!J(t)&&!ae(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const a=J(t)?String(t):(ae(t),t);return J(n)?s.plural=n:O(n)?s.default=n:R(n)&&!et(n)?s.named=n:x(n)&&(s.list=n),J(r)?s.plural=r:O(r)?s.default=r:R(r)&&Q(s,r),[a,s]}function ga(e,t,n,r,s,a){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(a&&a(o),process.env.NODE_ENV!=="production"){const i=Ta(r),u=`Message compilation error: ${o.message}`,p=o.location&&i&&Hr(i,o.location.start.offset,o.location.end.offset),I=e.__v_emitter;I&&i&&I.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(p?`${u}
5
- ${p}`:u)}else throw o},onCacheKey:o=>Fr(t,n,o)}}function Ta(e){if(O(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Na(e,t,n,r){const{modifiers:s,pluralRules:a,messageResolver:o,fallbackLocale:i,fallbackWarn:u,missingWarn:p,fallbackContext:I}=e,T={locale:t,modifiers:s,pluralRules:a,messages:(S,k)=>{let A=o(n,S);if(A==null&&(I||k)){const[,,y]=er(I||e,S,t,i,u,p);A=o(y,S)}if(O(A)||se(A)){let y=!1;const m=tr(e,S,t,A,S,()=>{y=!0});return y?Zn:m}else return ae(A)?A:Zn}};return e.processor&&(T.processor=e.processor),r.list&&(T.list=r.list),r.named&&(T.named=r.named),J(r.plural)&&(T.pluralIndex=r.plural),T}Ns();function ba(){return nr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function nr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const ha=typeof Proxy=="function",Ia="devtools-plugin:setup",La="plugin:settings:set";let ke,yt;function Oa(){var e;return ke!==void 0||(typeof window<"u"&&window.performance?(ke=!0,yt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ke=!0,yt=globalThis.perf_hooks.performance):ke=!1),ke}function va(){return Oa()?yt.now():Date.now()}class Ca{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const i=t.settings[o];r[o]=i.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const o=localStorage.getItem(s),i=JSON.parse(o);Object.assign(a,i)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}a=o},now(){return va()}},n&&n.on(La,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(p=>{this.targetQueue.push({method:i,args:u,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Aa(e,t){const n=e,r=nr(),s=ba(),a=ha&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(Ia,e,t);else{const o=a?new Ca(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const Sa="11.2.8";function ya(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(he().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(he().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(he().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1)}const B={UNEXPECTED_RETURN_TYPE:ws,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function te(e,...t){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:Pa,args:t}:void 0)}const Pa={[B.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[B.INVALID_ARGUMENT]:"Invalid argument",[B.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[B.NOT_INSTALLED]:"Need to install with `app.use` function",[B.UNEXPECTED_ERROR]:"Unexpected error",[B.REQUIRED_VALUE]:"Required in value: {0}",[B.INVALID_VALUE]:"Invalid value",[B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[B.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Pt=_e("__translateVNode"),Dt=_e("__datetimeParts"),kt=_e("__numberParts"),Le=_e("__enableEmitter"),He=_e("__disableEmitter"),rr=_e("__setPluralRules"),sr=_e("__injectWithOption"),Mt=_e("__dispose"),oe={FALLBACK_TO_ROOT:Js,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Da={[oe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[oe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[oe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[oe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
6
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[oe.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Me(e,...t){return ze(Da[e],...t)}function xe(e){if(!F(e)||se(e))return e;for(const t in e)if(ie(e,t))if(!t.includes("."))F(e[t])&&xe(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,a=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&fe(Me(oe.IGNORE_OBJ_FLATTEN,{key:n[o]})),a=!0;break}s=s[n[o]]}if(a||(se(s)?An.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!se(s)){const o=s[n[r]];F(o)&&xe(o)}}return e}function Rt(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:a}=t,o=R(n)?n:x(r)?W():{[e]:W()};if(x(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:p}=i;u?(o[u]=o[u]||W(),nt(p,o[u])):nt(p,o)}else O(i)&&nt(JSON.parse(i),o)}),s==null&&a)for(const i in o)ie(o,i)&&xe(o[i]);return o}function ar(e){return e.type}function or(e,t,n){let r=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(r=Rt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(F(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function lr(e){return L.createVNode(L.Text,null,e,0)}function Re(){const e="currentInstance";return e in ft?ft[e]:ft.getCurrentInstance()}const ir="__INTLIFY_META__",cr=()=>[],ka=()=>!1;let ur=0;function fr(e){return((t,n,r,s)=>e(n,r,Re()||void 0,s))}const Ma=()=>{const e=Re();let t=null;return e&&(t=ar(e)[ir])?{[ir]:t}:null};function Ft(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,a=le?L.ref:L.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const i=a(t&&o?t.locale.value:O(e.locale)?e.locale:Ge),u=a(t&&o?t.fallbackLocale.value:O(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),p=a(Rt(i.value,e)),I=a(R(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),b=a(R(e.numberFormats)?e.numberFormats:{[i.value]:{}});let T=t?t.missingWarn:w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=t?t.fallbackWarn:w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,y=G(e.missing)?e.missing:null,f=G(e.missing)?fr(e.missing):null,m=G(e.postTranslation)?e.postTranslation:null,h=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,d=!!e.escapeParameter;const v=t?t.modifiers:R(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&Vn(null);const _={version:Sa,locale:i.value,fallbackLocale:u.value,messages:p.value,modifiers:v,pluralRules:C,missing:f===null?void 0:f,missingWarn:T,fallbackWarn:S,fallbackFormat:A,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=I.value,_.numberFormats=b.value,_.__datetimeFormatters=R(E)?E.__datetimeFormatters:void 0,_.__numberFormatters=R(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=R(E)?E.__v_emitter:void 0);const N=aa(_);return r&&Vn(N),N})(),Be(E,i.value,u.value);function $(){return[i.value,u.value,p.value,I.value,b.value]}const q=L.computed({get:()=>i.value,set:_=>{E.locale=_,i.value=_}}),ce=L.computed({get:()=>u.value,set:_=>{E.fallbackLocale=_,u.value=_,Be(E,i.value,_)}}),Y=L.computed(()=>p.value),Fe=L.computed(()=>I.value),Bt=L.computed(()=>b.value);function Ht(){return G(m)?m:null}function xt(_){m=_,E.postTranslation=_}function Yt(){return y}function Kt(_){_!==null&&(f=fr(_)),y=_,E.missing=f}function jt(_,N){return _!=="translate"||!N.resolvedMessage}const ge=(_,N,V,X,Ce,ut)=>{$();let we;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?sa():void 0),we=_(E)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(V!=="translate exists"&&J(we)&&we===at||V==="translate exists"&&!we){const[Ae,mo]=N();if(process.env.NODE_ENV!=="production"&&t&&O(Ae)&&jt(V,mo)&&(k&&(lt(S,Ae)||Gn(T,Ae))&&fe(Me(oe.FALLBACK_TO_ROOT,{key:Ae,type:V})),process.env.NODE_ENV!=="production")){const{__v_emitter:Cr}=E;Cr&&k&&Cr.emit("fallback",{type:V,key:Ae,to:"global",groupId:`${V}:${Ae}`})}return t&&k?X(t):Ce(Ae)}else{if(ut(we))return we;throw te(B.UNEXPECTED_RETURN_TYPE)}};function Ke(..._){return ge(N=>Reflect.apply(zn,null,[N,..._]),()=>St(..._),"translate",N=>Reflect.apply(N.t,N,[..._]),N=>N,N=>O(N))}function Xt(..._){const[N,V,X]=_;if(X&&!F(X))throw te(B.INVALID_ARGUMENT);return Ke(N,V,Q({resolvedMessage:!0},X||{}))}function Jt(..._){return ge(N=>Reflect.apply(Yn,null,[N,..._]),()=>Ct(..._),"datetime format",N=>Reflect.apply(N.d,N,[..._]),()=>ot,N=>O(N)||x(N))}function Qt(..._){return ge(N=>Reflect.apply(Xn,null,[N,..._]),()=>At(..._),"number format",N=>Reflect.apply(N.n,N,[..._]),()=>ot,N=>O(N)||x(N))}function qt(_){return _.map(N=>O(N)||J(N)||w(N)?lr(String(N)):N)}const Zt={normalize:qt,interpolate:_=>_,type:"vnode"};function it(..._){return ge(N=>{let V;const X=N;try{X.processor=Zt,V=Reflect.apply(zn,null,[X,..._])}finally{X.processor=null}return V},()=>St(..._),"translate",N=>N[Pt](..._),N=>[lr(N)],N=>x(N))}function zt(..._){return ge(N=>Reflect.apply(Xn,null,[N,..._]),()=>At(..._),"number format",N=>N[kt](..._),cr,N=>O(N)||x(N))}function ct(..._){return ge(N=>Reflect.apply(Yn,null,[N,..._]),()=>Ct(..._),"datetime format",N=>N[Dt](..._),cr,N=>O(N)||x(N))}function en(_){C=_,E.pluralRules=C}function tn(_,N){return ge(()=>{if(!_)return!1;const V=O(N)?N:i.value,X=ve(V),Ce=E.messageResolver(X,_);return se(Ce)||ae(Ce)||O(Ce)},()=>[_],"translate exists",V=>Reflect.apply(V.te,V,[_,N]),ka,V=>w(V))}function je(_){let N=null;const V=Pn(E,u.value,i.value);for(let X=0;X<V.length;X++){const Ce=p.value[V[X]]||{},ut=E.messageResolver(Ce,_);if(ut!=null){N=ut;break}}return N}function Xe(_){const N=je(_);return N??(t?t.tm(_)||{}:{})}function ve(_){return p.value[_]||{}}function Je(_,N){if(s){const V={[_]:N};for(const X in V)ie(V,X)&&xe(V[X]);N=V[_]}p.value[_]=N,E.messages=p.value}function nn(_,N){p.value[_]=p.value[_]||{};const V={[_]:N};if(s)for(const X in V)ie(V,X)&&xe(V[X]);N=V[_],nt(N,p.value[_]),E.messages=p.value}function l(_){return I.value[_]||{}}function c(_,N){I.value[_]=N,E.datetimeFormats=I.value,jn(E,_,N)}function g(_,N){I.value[_]=Q(I.value[_]||{},N),E.datetimeFormats=I.value,jn(E,_,N)}function P(_){return b.value[_]||{}}function H(_,N){b.value[_]=N,E.numberFormats=b.value,Qn(E,_,N)}function j(_,N){b.value[_]=Q(b.value[_]||{},N),E.numberFormats=b.value,Qn(E,_,N)}ur++,t&&le&&(L.watch(t.locale,_=>{o&&(i.value=_,E.locale=_,Be(E,i.value,u.value))}),L.watch(t.fallbackLocale,_=>{o&&(u.value=_,E.fallbackLocale=_,Be(E,i.value,u.value))}));const U={id:ur,locale:q,fallbackLocale:ce,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Be(E,i.value,u.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:Y,get modifiers(){return v},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(_){T=_,E.missingWarn=T},get fallbackWarn(){return S},set fallbackWarn(_){S=_,E.fallbackWarn=S},get fallbackRoot(){return k},set fallbackRoot(_){k=_},get fallbackFormat(){return A},set fallbackFormat(_){A=_,E.fallbackFormat=A},get warnHtmlMessage(){return h},set warnHtmlMessage(_){h=_,E.warnHtmlMessage=_},get escapeParameter(){return d},set escapeParameter(_){d=_,E.escapeParameter=_},t:Ke,getLocaleMessage:ve,setLocaleMessage:Je,mergeLocaleMessage:nn,getPostTranslationHandler:Ht,setPostTranslationHandler:xt,getMissingHandler:Yt,setMissingHandler:Kt,[rr]:en};return U.datetimeFormats=Fe,U.numberFormats=Bt,U.rt=Xt,U.te=tn,U.tm=Xe,U.d=Jt,U.n=Qt,U.getDateTimeFormat=l,U.setDateTimeFormat=c,U.mergeDateTimeFormat=g,U.getNumberFormat=P,U.setNumberFormat=H,U.mergeNumberFormat=j,U[sr]=n,U[Pt]=it,U[Dt]=ct,U[kt]=zt,process.env.NODE_ENV!=="production"&&(U[Le]=_=>{E.__v_emitter=_},U[He]=()=>{E.__v_emitter=void 0}),U}const _r="vue-i18n: composer properties",wt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ra={"vue-i18n-resource-inspector":"Search for scopes ..."},Fa={"vue-i18n-timeline":16764185};let Ut;async function wa(e,t){return new Promise((n,r)=>{try{Aa({id:"vue-devtools-plugin-vue-i18n",label:wt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[_r],app:e},s=>{Ut=s,s.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Ua(o,i,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&dr(i,o.__VUE_I18N__):dr(i,o.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:wt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ra["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ba(o,t)});const a=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),xa(o,t),o.nodeId==="global"){if(!a.has(o.app)){const[i]=await s.getComponentInstances(o.app);a.set(o.app,i)}s.highlightElement(a.get(o.app))}else{const i=Ha(o.nodeId,t);i&&s.highlightElement(i)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ka(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:wt["vue-i18n-timeline"],color:Fa["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function mr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ua(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const s={label:`i18n (${mr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function dr(e,t){const n=_r;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:$t(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function $t(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];G(r)&&"source"in r?t[n]=Ga(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:F(r)?t[n]=$t(r):t[n]=r}),t}const $a={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Va(e){return e.replace(/[<>"&]/g,Wa)}function Wa(e){return $a[e]||e}function Ga(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Va(e.source)}")`:"(?)"}`}}}function Ba(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,s]of t.__instances){const a=t.mode==="composition"?s:s.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${mr(r)} Scope`})}}function Ha(e,t){let n=null;if(e!=="global"){for(const[r,s]of t.__instances.entries())if(s.id.toString()===e){n=r;break}}return n}function pr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function xa(e,t){const n=pr(e.nodeId,t);return n&&(e.state=Ya(n)),null}function Ya(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const s="Locale messages info",a=[{type:s,key:"messages",editable:!1,value:$t(e.messages.value)}];t[s]=a;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const u="Datetime formats info",p=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=p}return t}function Ye(e,t){if(Ut){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ut.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ka(e,t){const n=pr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&O(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(O(e.state.value)||x(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function ja(e){const t=O(e.locale)?e.locale:Ge,n=O(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=G(e.missing)?e.missing:void 0,s=w(e.silentTranslationWarn)||Se(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=w(e.silentFallbackWarn)||Se(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=R(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,I=G(e.postTranslation)?e.postTranslation:void 0,b=O(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,T=!!e.escapeParameterHtml,S=w(e.sync)?e.sync:!0;let k=e.messages;if(R(e.sharedMessages)){const v=e.sharedMessages;k=Object.keys(v).reduce((E,M)=>{const $=E[M]||(E[M]={});return Q($,v[M]),E},k||{})}const{__i18n:A,__root:y,__injectWithOption:f}=e,m=e.datetimeFormats,h=e.numberFormats,d=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:d,datetimeFormats:m,numberFormats:h,missing:r,missingWarn:s,fallbackWarn:a,fallbackRoot:o,fallbackFormat:i,modifiers:u,pluralRules:p,postTranslation:I,warnHtmlMessage:b,escapeParameter:T,messageResolver:e.messageResolver,inheritLocale:S,__i18n:A,__root:y,__injectWithOption:f}}function Vt(e={}){const t=Ft(ja(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=w(s)?!s:s},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=w(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,a){return t.te(s,a)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,a){t.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){t.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,a){t.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){t.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,a){t.setNumberFormat(s,a)},mergeNumberFormat(s,a){t.mergeNumberFormat(s,a)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const a=t;a[Le]&&a[Le](s)},r.__disableEmitter=()=>{const s=t;s[He]&&s[He]()}),r}function Xa(e,t,n){return{beforeCreate(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const a=s.i18n;if(s.__i18n&&(a.__i18n=s.__i18n),a.__root=t,this===this.$root)this.$i18n=Er(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Vt(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Er(e,s);else{this.$i18n=Vt({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&or(t,s,s),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Re();if(!r)return;const s=this.$i18n;r.__VUE_I18N__=s.__composer;const a=this.__v_emitter=Et();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",Ye)}},unmounted(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ye),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Er(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rr](t.pluralizationRules||e.pluralizationRules);const n=Rt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Wt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ja({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===L.Fragment?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},W())}function gr(){return L.Fragment}const Tr=L.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},Wt),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(b=>b[0]!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=O(e.plural)?+e.plural:e.plural);const i=Ja(t,a),u=s[Pt](e.keypath,i,o),p=Q(W(),r),I=O(e.tag)||F(e.tag)?e.tag:gr();return L.h(I,p,u)}}});function Qa(e){return x(e)&&!O(e[0])}function Nr(e,t,n,r){const{slots:s,attrs:a}=t;return()=>{const o={part:!0};let i=W();e.locale&&(o.locale=e.locale),O(e.format)?o.key=e.format:F(e.format)&&(O(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((T,S)=>n.includes(S)?Q(W(),T,{[S]:e.format[S]}):T,W()));const u=r(e.value,o,i);let p=[o.key];x(u)?p=u.map((T,S)=>{const k=s[T.type],A=k?k({[T.type]:T.value,index:S,parts:u}):[T.value];return Qa(A)&&(A[0].key=`${T.type}-${S}`),A}):O(u)&&(p=[u]);const I=Q(W(),a),b=O(e.tag)||F(e.tag)?e.tag:gr();return L.h(b,I,p)}}const br=L.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},Wt),setup(e,t){const n=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return Nr(e,t,Jn,(...r)=>n[kt](...r))}});function qa(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Za(e){const t=o=>{process.env.NODE_ENV!=="production"&&mt(Me(oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:u}=o;if(!i||!i.$)throw te(B.UNEXPECTED_ERROR);const p=qa(e,i.$),I=hr(u);return[Reflect.apply(p.t,p,[...Ir(I)]),p]};return{created:(o,i)=>{const[u,p]=t(i);le&&e.global===p&&(o.__i18nWatcher=L.watch(p.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=p,o.textContent=u},unmounted:o=>{le&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const u=o.__composer,p=hr(i);o.textContent=Reflect.apply(u.t,u,[...Ir(p)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function hr(e){if(O(e))return{path:e};if(R(e)){if(!("path"in e))throw te(B.REQUIRED_VALUE,"path");return e}else throw te(B.INVALID_VALUE)}function Ir(e){const{path:t,locale:n,args:r,choice:s,plural:a}=e,o={},i=r||{};return O(n)&&(o.locale=n),J(s)&&(o.plural=s),J(a)&&(o.plural=a),[t,i,o]}function za(e,t,...n){const r=R(n[0])?n[0]:{};(!w(r.globalInstall)||r.globalInstall)&&([Tr.name,"I18nT"].forEach(a=>e.component(a,Tr)),[br.name,"I18nN"].forEach(a=>e.component(a,br)),[Or.name,"I18nD"].forEach(a=>e.component(a,Or))),e.directive("t",Za(t))}const eo=_e("global-vue-i18n");function to(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&mt(Me(oe.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,a]=no(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(b){return r.get(b)||null}function u(b,T){r.set(b,T)}function p(b){r.delete(b)}const I={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(b,...T){if(process.env.NODE_ENV!=="production"&&(b.__VUE_I18N__=I),b.__VUE_I18N_SYMBOL__=o,b.provide(b.__VUE_I18N_SYMBOL__,I),R(T[0])){const A=T[0];I.__composerExtend=A.__composerExtend,I.__vueI18nExtend=A.__vueI18nExtend}let S=null;!t&&n&&(S=uo(b,I.global)),__VUE_I18N_FULL_INSTALL__&&za(b,I,...T),__VUE_I18N_LEGACY_API__&&t&&b.mixin(Xa(a,a.__composer,I));const k=b.unmount;if(b.unmount=()=>{S&&S(),I.dispose(),k()},process.env.NODE_ENV!=="production"){if(!await wa(b,I))throw te(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=Et();if(t){const f=a;f.__enableEmitter&&f.__enableEmitter(y)}else{const f=a;f[Le]&&f[Le](y)}y.on("*",Ye)}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:i,__setInstance:u,__deleteInstance:p};return I}function Gt(e={}){const t=Re();if(t==null)throw te(B.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(B.NOT_INSTALLED);const n=ro(t),r=ao(n),s=ar(t),a=so(e,s);if(a==="global")return or(r,e,s),r;if(a==="parent"){let u=oo(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&fe(Me(oe.NOT_FOUND_PARENT_SCOPE)),u=r),u}const o=n;let i=o.__getInstance(t);if(i==null){const u=Q({},e);"__i18n"in s&&(u.__i18n=s.__i18n),r&&(u.__root=r),i=Ft(u),o.__composerExtend&&(i[Mt]=o.__composerExtend(i)),io(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&a==="local"&&fe(Me(oe.DUPLICATE_USE_I18N_CALLING));return i}function no(e,t){const n=L.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Vt(e)):n.run(()=>Ft(e));if(r==null)throw te(B.UNEXPECTED_ERROR);return[n,r]}function ro(e){const t=L.inject(e.isCE?eo:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?B.NOT_INSTALLED_WITH_PROVIDE:B.UNEXPECTED_ERROR);return t}function so(e,t){return et(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ao(e){return e.mode==="composition"?e.global:e.global.__composer}function oo(e,t,n=!1){let r=null;const s=t.root;let a=lo(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(a);i!=null&&(r=i.__composer,n&&r&&!r[sr]&&(r=null))}if(r!=null||s===a)break;a=a.parent}return r}function lo(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function io(e,t,n){let r=null;L.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=Et();const s=n;s[Le]&&s[Le](r),r.on("*",Ye)}},t),L.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ye),s[He]&&s[He](),delete t.__VUE_I18N__),e.__deleteInstance(t);const a=s[Mt];a&&(a(),delete s[Mt])},t)}const co=["locale","fallbackLocale","availableLocales"],Lr=["t","rt","d","n","tm","te"];function uo(e,t){const n=Object.create(null);return co.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a)throw te(B.UNEXPECTED_ERROR);const o=L.isRef(a.value)?{get(){return a.value.value},set(i){a.value.value=i}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,Lr.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a||!a.value)throw te(B.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,a)}),()=>{delete e.config.globalProperties.$i18n,Lr.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Or=L.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Wt),setup(e,t){const n=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return Nr(e,t,Kn,(...r)=>n[Dt](...r))}});if(ya(),zs(Ds),ea(Xs),ta(Pn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=he();e.__INTLIFY__=!0,ks(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Oe=to({legacy:!1,locale:"zh",fallbackLocale:"en",messages:{zh:{name:"名称",supplier:"供应商",version:"版本",description:"描述",category:"类别",general:"通用",ioMapping:"I/O映射",modbusSlaveChannel:"Modbus从站通道",status:"状态",ethernet:"以太网",modbusTcpServer:"Modbus TCP服务器",modbusTcpClient:"Modbus TCP客户端",modbusTCPSlaveDevice:"Modbus TCP从站设备",company:"成都数字创新科技有限公司",descriptionMap:{ethernet:"一种在以太网上充当Modbus服务器的设备。",modbusTcpServer:"一种在以太网上充当Modbus TCP服务器的设备。",modbusTcpClient:"一种在以太网上充当Modbus TCP客户端的设备。",modbusTCPSlaveDevice:"一种在以太网上充当Modbus TCP从站设备。"},netInterface:"网络接口",ipAddress:"IP地址",subnetMask:"子网掩码",defaultGateway:"默认网关",adaptedOSConfiguration:"适配操作系统配置",busCycleTask:"总线周期任务",defaultTask:"使用父总线循环设置",responseTimeout:"响应超时(ms)",socketTimeout:"Socket超时(ms)",reconnect:"自动重连",slaveIpAddress:"从站IP地址",port:"端口",watchDog:" 看门狗",slavePort:"从站端口",bindToAdapter:"绑定到适配器",holdingRegister:"保持寄存器",writable:"可写入",inputRegister:"输入寄存器",discreteBitArea:"离散位区域",coil:"线圈",discreteInput:"离散输入",dataModel:"数据模型",startAddress:"起始地址"},en:{name:"Name",supplier:"Supplier",version:"Version",description:"Description",category:"Category",general:"General",ioMapping:"I/O Mapping",modbusSlaveChannel:"Modbus Slave Channel",status:"Status",ethernet:"Ethernet",modbusTcpServer:"Modbus TCP Server",modbusTcpClient:"Modbus TCP Client",modbusTCPSlaveDevice:"Modbus TCP Slave Device",company:"Chengdu AIOSYS Innovation Technology Co., Ltd.",descriptionMap:{ethernet:"A device that works as a Modbus Server on Ethernet.",modbusTcpServer:"A device that works as a Modbus TCP Server.",modbusTcpClient:"A device that works as a Modbus TCP Client.",modbusTCPSlaveDevice:"A device that works as a Modbus TCP Slave Device."},netInterface:"Network Interface",ipAddress:"IP Address",subnetMask:"Subnet Mask",defaultGateway:"Default Gateway",adaptedOSConfiguration:"Adapted OS Configuration",busCycleTask:"Bus Cycle Task",defaultTask:"Use Parent Bus Cycle Setting",responseTimeout:"Response Timeout(ms)",socketTimeout:"Socket Timeout(ms)",reconnect:"Reconnect",slaveIpAddress:"Slave IP Address",port:"Port",watchDog:"Watch Dog",slavePort:"Slave Port",bindToAdapter:"Bind to Adapter",holdingRegister:"Holding Register",writable:"Writable",inputRegister:"Input Register",discreteBitArea:"Discrete Bit Area",coil:"Coil",discreteInput:"Discrete Input",dataModel:"Data Model",startAddress:"Start Address"}}});typeof window<"u"&&(window.$t=Oe.global.t.bind(Oe.global),Object.defineProperty(window,"$locale",{get(){return typeof Oe.global.locale=="string"?Oe.global.locale:Oe.global.locale.value},set(e){Oe.global.locale=e}})),L.createApp(Mr).use(Oe).mount("#app");const fo=[sn,an,_t,ln,on],_o={install(e){fo.forEach(t=>{e.component(t.name,t)})}};K.Button2=an,K.EthernetProtocolItem=Ue,K.Input=_t,K.InputNumber=ln,K.IpInput=on,K.ModbusTCPClientProtocolItem=qe,K.ModbusTCPServerProtocolItem=Qe,K.ModbusTCPSlaveDeviceProtocolItem=Ze,K.MyButton=sn,K.MyLibPlugin=yr,K.ProtocolCollection=cn,K.ProtocolItem=ne,K.ProtocolType=ue,K.default=_o,K.protocolMap=$e,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(K,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],L):(K=typeof globalThis<"u"?globalThis:K||self,L(K["lty-protocol"]={},K.Vue))})(this,(function(K,L){"use strict";function Ar(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ft=Ar(L),Sr=L.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(L.openBlock(),L.createElementBlock("button",{class:"my-btn",onClick:r},[L.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),rn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},sn=rn(Sr,[["__scopeId","data-v-c654f959"]]),an=rn(L.defineComponent({name:"MyButton",__name:"button2",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(L.openBlock(),L.createElementBlock("button",{class:"my-btn",onClick:r},[L.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-1477cfc3"]]),_t=L.defineComponent({__name:"Input",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,a=L.inject("UIComponents",{}).Input,o=a?.modelProp||"modelValue",i=a?.modelEvent||"update:modelValue",u=L.computed(()=>({[o]:n.modelValue,[i]:N=>r("update:modelValue",N)})),m=a?.component;return(N,h)=>(L.openBlock(),L.createBlock(L.resolveDynamicComponent(L.unref(m)),L.normalizeProps(L.guardReactiveProps(u.value)),null,16))}}),yr={style:{display:"flex",gap:"4px"}},on=L.defineComponent({__name:"IpInput",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L.ref((n.modelValue||"0.0.0.0").split("."));return L.watch(s,()=>r("update:modelValue",s.value.join(".")),{deep:!0}),L.watch(()=>n.modelValue,a=>s.value=(a||"0.0.0.0").split(".")),(a,o)=>(L.openBlock(),L.createElementBlock("div",yr,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(s.value,(i,u)=>(L.openBlock(),L.createBlock(_t,{key:u,modelValue:s.value[u],"onUpdate:modelValue":m=>s.value[u]=m},null,8,["modelValue","onUpdate:modelValue"]))),128))]))}}),ln=L.defineComponent({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,a=L.inject("UIComponents",{}).Input,o=a?.modelProp||"modelValue",i=a?.modelEvent||"update:modelValue",u=L.computed(()=>({[o]:n.modelValue,[i]:N=>r("update:modelValue",N)})),m=a?.component;return(N,h)=>(L.openBlock(),L.createBlock(L.resolveDynamicComponent(L.unref(m)),L.normalizeProps(L.guardReactiveProps(u.value)),null,16))}});function Pr(e,t){e.provide("UIComponents",t)}class ne{id;deviceId;type;static registry={};constructor(t){this.id=t.id,this.deviceId=t.deviceId}static register(t,n){ne.registry[t]=n}static fromPlain(t){const n=ne.registry[t.type];if(!n)throw new Error(`Unsupported protocol type: ${t.type}`);return n.fromPlain(t)}}class kr{static getDefaultConfig(t){console.log(1231231,t);const n=t.baseInfo,r=t.configuration,s=t.tab;return{baseInfo:n,config:r,tab:s}}}const Dr={type:"Ethernet",baseInfo:[{key:"name",name:{i18nKey:"name"},defaultValue:"Ethernet"},{key:"supplier",name:{i18nKey:"supplier"},defaultValue:{i18nKey:"company"}},{key:"version",name:{i18nKey:"verison"},defaultValue:"1.0.0.0"},{key:"description",name:{i18nKey:"description"},defaultValue:{i18nKey:"descriptionMap.ethernet"}},{key:"category",name:{i18nKey:"category"},defaultValue:{i18nKey:"ethernet"}}],tab:[{name:{i18nKey:"general"},key:"general"},{name:{i18nKey:"ioMapping"},key:"ioMapping"}],configuration:{general:[{key:"netInterface",name:{i18nKey:"netInterface"},dataType:"string",componentType:"strInput",defaultValue:""},{key:"ipAddress",name:{i18nKey:"ipAddress"},dataType:"string",componentType:"ipInput",defaultValue:"192.168.1.1"},{key:"subnetMask",name:{i18nKey:"subnetMask"},dataType:"string",componentType:"ipInput",defaultValue:"255.255.255.0"},{key:"defaultGateway",name:{i18nKey:"defaultGateway"},dataType:"string",componentType:"ipInput",defaultValue:"0.0.0.0"},{key:"adaptedOSConfiguration",name:{i18nKey:"adaptedOSConfiguration"},dataType:"boolean",componentType:"switch",defaultValue:!1}],ioMapping:[{key:"busCycleTask",name:{i18nKey:"busCycleTask"},dataType:"string",componentType:"select",defaultValue:"-1"}]}};class Ue extends ne{type=ue.ETHERNET;moduleType=$e[ue.ETHERNET];baseInfo;config;tab;constructor(t){super(t);const{baseInfo:n,config:r,tab:s}=kr.getDefaultConfig(Dr);this.baseInfo=n,this.config=r,this.tab=s}static fromPlain(t){return new Ue(t)}}class Qe extends ne{type=ue.MODBUS_TCP_SERVER;moduleType=$e[ue.MODBUS_TCP_SERVER];constructor(t){super(t)}static fromPlain(t){return new Qe(t)}}class qe extends ne{type=ue.MODBUS_TCP_CLIENT;moduleType=$e[ue.MODBUS_TCP_CLIENT];constructor(t){super(t)}static fromPlain(t){return new qe(t)}}class Ze extends ne{type=ue.MODBUS_TCP_SLAVE_DEVICE;moduleType=$e[ue.MODBUS_TCP_SLAVE_DEVICE];constructor(t){super(t)}static fromPlain(t){return new Ze(t)}}var ue=(e=>(e.ETHERNET="Ethernet",e.MODBUS_TCP_SERVER="ModbusTCPServer",e.MODBUS_TCP_CLIENT="ModbusTCPClient",e.MODBUS_TCP_SLAVE_DEVICE="ModbusTCPSlaveDevice",e.MODBUS_SERIAL_PORT="ModbusSerialPort",e.MODBUS_MASTER="ModbusMaster",e.MODBUS_SLAVE="ModbusSlave",e.MODBUS_SERIAL="ModbusSerial",e.OPCUA_SERVER="OPCUAServer",e.ETHER_CAT_MASTER="EtherCatMaster",e.ETHER_CAT_SLAVE="EtherCatSlave",e.ETHER_CAT_MODULE="EtherCatModule",e))(ue||{});const $e={Pprogrammable:4096,Protgrammable_Safety:4098,CAN_Master:16,CAN_Slave:17,CAN_Device:18,EtherCat_Master:64,EtherCat_Slave:65,ProfinetIO_Master:80,ProfinetIO_Device:81,EthernetIP_Scanner:100,EthernetIP_Adapter:101,Ethernet:110,ModbusTCPServer:88,ModbusTCPClient:89,ModbusTCPSlaveDevice:115,ModbusSerialPort:92,ModbusMaster:90,ModbusSlave:91,ModbusSerial:94,OPCUAServer:128,EtherCatMaster:64,EtherCatSlave:16384,EtherCatModule:16384};class cn{map=new Map;constructor(){ne.register("Ethernet",Ue),ne.register("ModbusTCPServer",Qe),ne.register("ModbusTCPClient",qe),ne.register("ModbusTCPSlaveDevice",Ze)}init(t){this.clear(),t.forEach(n=>{const r=ne.fromPlain(n);this.map.set(n.id,r)})}build(t){return""}get(t){const n=Array.isArray(t)?t.map(r=>this.map.get(r)).filter(r=>r!==void 0):this.map.get(t);if(Array.isArray(n)&&!n.length||!n)throw new Error(`Protocol ${t} is not found.`);return n}add(t){this.map.set(t.id,t)}delete(t){Array.isArray(t)?t.forEach(n=>this.map.delete(n)):this.map.delete(t)}clear(){this.map.clear()}}const Mr=L.defineComponent({__name:"Ethernet",props:{config:{}},setup(e){return(t,n)=>(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(e.config.tab,r=>(L.openBlock(),L.createElementBlock("div",{key:r.key},L.toDisplayString(t.$t(r.name.i18nKey)),1))),128))}}),Rr=L.defineComponent({__name:"App",setup(e){new cn;const t=new Ue({id:1,deviceId:1,type:"Ethernet"});return(n,r)=>(L.openBlock(),L.createElementBlock("div",null,[L.createVNode(Mr,{config:L.unref(t)},null,8,["config"])]))}});function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const un={};function mt(e){un[e]||(un[e]=!0,fe(e))}const le=typeof window<"u";let re,be;if(process.env.NODE_ENV!=="production"){const e=le&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(re=t=>{e.mark(t)},be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Fr=/\{([0-9a-zA-Z]+)\}/g;function ze(e,...t){return t.length===1&&F(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Fr,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wr=(e,t,n)=>Ur({l:e,k:t,s:n}),Ur=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),J=e=>typeof e=="number"&&isFinite(e),$r=e=>dt(e)==="[object Date]",Se=e=>dt(e)==="[object RegExp]",et=e=>R(e)&&Object.keys(e).length===0,Q=Object.assign,Vr=Object.create,W=(e=null)=>Vr(e);let fn;const he=()=>fn||(fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function _n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function mn(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Wr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,a)=>`${s}="${mn(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,a)=>`${s}='${mn(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Gr=Object.prototype.hasOwnProperty;function ie(e,t){return Gr.call(e,t)}const x=Array.isArray,G=e=>typeof e=="function",O=e=>typeof e=="string",w=e=>typeof e=="boolean",F=e=>e!==null&&typeof e=="object",Br=e=>F(e)&&G(e.then)&&G(e.catch),dn=Object.prototype.toString,dt=e=>dn.call(e),R=e=>dt(e)==="[object Object]",Hr=e=>e==null?"":x(e)||R(e)&&e.toString===dn?JSON.stringify(e,null,2):String(e);function pt(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const pn=2;function xr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const a=[];for(let o=0;o<r.length;o++)if(s+=r[o].length+1,s>=t){for(let i=o-pn;i<=o+pn||n>s;i++){if(i<0||i>=r.length)continue;const u=i+1;a.push(`${u}${" ".repeat(3-String(u).length)}| ${r[i]}`);const m=r[i].length;if(i===o){const N=t-(s-m)+1,h=Math.max(1,n>s?m-N:n-t);a.push(" | "+" ".repeat(N)+"^".repeat(h))}else if(i>o){if(n>s){const N=Math.max(Math.min(n-s,m),1);a.push(" | "+"^".repeat(N))}s+=m+1}}break}return a.join(`
2
+ `)}function Et(){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 tt=e=>!F(e)||x(e);function nt(e,t){if(tt(e)||tt(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(a=>{a!=="__proto__"&&(F(r[a])&&!F(s[a])&&(s[a]=Array.isArray(r[a])?[]:W()),tt(s[a])||tt(r[a])?s[a]=r[a]:n.push({src:r[a],des:s[a]}))})}}function Yr(e,t,n){return{line:e,column:t,offset:n}}function gt(e,t,n){return{start:e,end:t}}const k={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},Kr=17,jr={[k.EXPECTED_TOKEN]:"Expected token: '{0}'",[k.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[k.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[k.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[k.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[k.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[k.EMPTY_PLACEHOLDER]:"Empty placeholder",[k.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[k.INVALID_LINKED_FORMAT]:"Invalid linked format",[k.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[k.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[k.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[k.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[k.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[k.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ye(e,t,n={}){const{domain:r,messages:s,args:a}=n,o=process.env.NODE_ENV!=="production"?ze((s||jr)[e]||"",...a||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function Xr(e){throw e}const Jr=/<\/?[\w\s="/.':;#-\/]+>/,Qr=e=>Jr.test(e),me=" ",qr="\r",Z=`
3
+ `,Zr="\u2028",zr="\u2029";function es(e){const t=e;let n=0,r=1,s=1,a=0;const o=E=>t[E]===qr&&t[E+1]===Z,i=E=>t[E]===Z,u=E=>t[E]===zr,m=E=>t[E]===Zr,N=E=>o(E)||i(E)||u(E)||m(E),h=()=>n,T=()=>r,S=()=>s,D=()=>a,A=E=>o(E)||u(E)||m(E)?Z:t[E],y=()=>A(n),f=()=>A(n+a);function d(){return a=0,N(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function I(){return o(n+a)&&a++,a++,t[n+a]}function p(){n=0,r=1,s=1,a=0}function v(E=0){a=E}function C(){const E=n+a;for(;E!==n;)d();a=0}return{index:h,line:T,column:S,peekOffset:D,charAt:A,currentChar:y,currentPeek:f,next:d,peek:I,reset:p,resetPeek:v,skipToPeek:C}}const pe=void 0,ts=".",En="'",ns="tokenizer";function rs(e,t={}){const n=t.location!==!1,r=es(e),s=()=>r.index(),a=()=>Yr(r.line(),r.column(),r.index()),o=a(),i=s(),u={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},m=()=>u,{onError:N}=t;function h(l,c,g,...P){const H=m();if(c.column+=g,c.offset+=g,N){const j=n?gt(H.startLoc,c):null,U=ye(l,j,{domain:ns,args:P});N(U)}}function T(l,c,g){l.endLoc=a(),l.currentType=c;const P={type:c};return n&&(P.loc=gt(l.startLoc,l.endLoc)),g!=null&&(P.value=g),P}const S=l=>T(l,13);function D(l,c){return l.currentChar()===c?(l.next(),c):(h(k.EXPECTED_TOKEN,a(),0,c),"")}function A(l){let c="";for(;l.currentPeek()===me||l.currentPeek()===Z;)c+=l.currentPeek(),l.peek();return c}function y(l){const c=A(l);return l.skipToPeek(),c}function f(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function d(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function I(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function p(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),H=d(P);return l.resetPeek(),H}function v(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()===En;return l.resetPeek(),P}function C(l,c){const{currentType:g}=c;if(g!==7)return!1;A(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function E(l,c){const{currentType:g}=c;if(g!==8)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function M(l,c){const{currentType:g}=c;if(!(g===7||g===11))return!1;A(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function $(l,c){const{currentType:g}=c;if(g!==9)return!1;const P=()=>{const j=l.currentPeek();return j==="{"?f(l.peek()):j==="@"||j==="|"||j===":"||j==="."||j===me||!j?!1:j===Z?(l.peek(),P()):ce(l,!1)},H=P();return l.resetPeek(),H}function q(l){A(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function ce(l,c=!0){const g=(H=!1,j="")=>{const U=l.currentPeek();return U==="{"||U==="@"||!U?H:U==="|"?!(j===me||j===Z):U===me?(l.peek(),g(!0,me)):U===Z?(l.peek(),g(!0,Z)):!0},P=g();return c&&l.resetPeek(),P}function Y(l,c){const g=l.currentChar();return g===pe?pe:c(g)?(l.next(),g):null}function Fe(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function Bt(l){return Y(l,Fe)}function Ht(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function xt(l){return Y(l,Ht)}function Yt(l){const c=l.charCodeAt(0);return c>=48&&c<=57}function Kt(l){return Y(l,Yt)}function jt(l){const c=l.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function ge(l){return Y(l,jt)}function Ke(l){let c="",g="";for(;c=Kt(l);)g+=c;return g}function Xt(l){let c="";for(;;){const g=l.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g===me||g===Z)if(ce(l))c+=g,l.next();else{if(q(l))break;c+=g,l.next()}else c+=g,l.next()}return c}function Jt(l){y(l);let c="",g="";for(;c=xt(l);)g+=c;const P=l.currentChar();if(P&&P!=="}"&&P!==pe&&P!==me&&P!==Z&&P!==" "){const H=ct(l);return h(k.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g+H),g+H}return l.currentChar()===pe&&h(k.UNTERMINATED_CLOSING_BRACE,a(),0),g}function Qt(l){y(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${Ke(l)}`):c+=Ke(l),l.currentChar()===pe&&h(k.UNTERMINATED_CLOSING_BRACE,a(),0),c}function qt(l){return l!==En&&l!==Z}function vr(l){y(l),D(l,"'");let c="",g="";for(;c=Y(l,qt);)c==="\\"?g+=Zt(l):g+=c;const P=l.currentChar();return P===Z||P===pe?(h(k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),P===Z&&(l.next(),D(l,"'")),g):(D(l,"'"),g)}function Zt(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return it(l,c,4);case"U":return it(l,c,6);default:return h(k.UNKNOWN_ESCAPE_SEQUENCE,a(),0,c),""}}function it(l,c,g){D(l,c);let P="";for(let H=0;H<g;H++){const j=ge(l);if(!j){h(k.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${c}${P}${l.currentChar()}`);break}P+=j}return`\\${c}${P}`}function zt(l){return l!=="{"&&l!=="}"&&l!==me&&l!==Z}function ct(l){y(l);let c="",g="";for(;c=Y(l,zt);)g+=c;return g}function en(l){let c="",g="";for(;c=Bt(l);)g+=c;return g}function tn(l){const c=g=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===me?g:(g+=P,l.next(),c(g))};return c("")}function je(l){y(l);const c=D(l,"|");return y(l),c}function Xe(l,c){let g=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&h(k.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),l.next(),g=T(c,2,"{"),y(l),c.braceNest++,g;case"}":return c.braceNest>0&&c.currentType===2&&h(k.EMPTY_PLACEHOLDER,a(),0),l.next(),g=T(c,3,"}"),c.braceNest--,c.braceNest>0&&y(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),g;case"@":return c.braceNest>0&&h(k.UNTERMINATED_CLOSING_BRACE,a(),0),g=ve(l,c)||S(c),c.braceNest=0,g;default:{let H=!0,j=!0,U=!0;if(q(l))return c.braceNest>0&&h(k.UNTERMINATED_CLOSING_BRACE,a(),0),g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return h(k.UNTERMINATED_CLOSING_BRACE,a(),0),c.braceNest=0,Je(l,c);if(H=I(l,c))return g=T(c,4,Jt(l)),y(l),g;if(j=p(l,c))return g=T(c,5,Qt(l)),y(l),g;if(U=v(l,c))return g=T(c,6,vr(l)),y(l),g;if(!H&&!j&&!U)return g=T(c,12,ct(l)),h(k.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g.value),y(l),g;break}}return g}function ve(l,c){const{currentType:g}=c;let P=null;const H=l.currentChar();switch((g===7||g===8||g===11||g===9)&&(H===Z||H===me)&&h(k.INVALID_LINKED_FORMAT,a(),0),H){case"@":return l.next(),P=T(c,7,"@"),c.inLinked=!0,P;case".":return y(l),l.next(),T(c,8,".");case":":return y(l),l.next(),T(c,9,":");default:return q(l)?(P=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,P):C(l,c)||M(l,c)?(y(l),ve(l,c)):E(l,c)?(y(l),T(c,11,en(l))):$(l,c)?(y(l),H==="{"?Xe(l,c)||P:T(c,10,tn(l))):(g===7&&h(k.INVALID_LINKED_FORMAT,a(),0),c.braceNest=0,c.inLinked=!1,Je(l,c))}}function Je(l,c){let g={type:13};if(c.braceNest>0)return Xe(l,c)||S(c);if(c.inLinked)return ve(l,c)||S(c);switch(l.currentChar()){case"{":return Xe(l,c)||S(c);case"}":return h(k.UNBALANCED_CLOSING_BRACE,a(),0),l.next(),T(c,3,"}");case"@":return ve(l,c)||S(c);default:{if(q(l))return g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(ce(l))return T(c,0,Xt(l));break}}return g}function nn(){const{currentType:l,offset:c,startLoc:g,endLoc:P}=u;return u.lastType=l,u.lastOffset=c,u.lastStartLoc=g,u.lastEndLoc=P,u.offset=s(),u.startLoc=a(),r.currentChar()===pe?T(u,13):Je(r,u)}return{nextToken:nn,currentOffset:s,currentPosition:a,context:m}}const ss="parser",as=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function os(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ls(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,d,I,p,...v){const C=f.currentPosition();if(C.offset+=p,C.column+=p,n){const E=t?gt(I,C):null,M=ye(d,E,{domain:ss,args:v});n(M)}}function s(f,d,I){const p={type:f};return t&&(p.start=d,p.end=d,p.loc={start:I,end:I}),p}function a(f,d,I,p){t&&(f.end=d,f.loc&&(f.loc.end=I))}function o(f,d){const I=f.context(),p=s(3,I.offset,I.startLoc);return p.value=d,a(p,f.currentOffset(),f.currentPosition()),p}function i(f,d){const I=f.context(),{lastOffset:p,lastStartLoc:v}=I,C=s(5,p,v);return C.index=parseInt(d,10),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function u(f,d){const I=f.context(),{lastOffset:p,lastStartLoc:v}=I,C=s(4,p,v);return C.key=d,f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function m(f,d){const I=f.context(),{lastOffset:p,lastStartLoc:v}=I,C=s(9,p,v);return C.value=d.replace(as,os),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function N(f){const d=f.nextToken(),I=f.context(),{lastOffset:p,lastStartLoc:v}=I,C=s(8,p,v);return d.type!==11?(r(f,k.UNEXPECTED_EMPTY_LINKED_MODIFIER,I.lastStartLoc,0),C.value="",a(C,p,v),{nextConsumeToken:d,node:C}):(d.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,de(d)),C.value=d.value||"",a(C,f.currentOffset(),f.currentPosition()),{node:C})}function h(f,d){const I=f.context(),p=s(7,I.offset,I.startLoc);return p.value=d,a(p,f.currentOffset(),f.currentPosition()),p}function T(f){const d=f.context(),I=s(6,d.offset,d.startLoc);let p=f.nextToken();if(p.type===8){const v=N(f);I.modifier=v.node,p=v.nextConsumeToken||f.nextToken()}switch(p.type!==9&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),p=f.nextToken(),p.type===2&&(p=f.nextToken()),p.type){case 10:p.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),I.key=h(f,p.value||"");break;case 4:p.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),I.key=u(f,p.value||"");break;case 5:p.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),I.key=i(f,p.value||"");break;case 6:p.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),I.key=m(f,p.value||"");break;default:{r(f,k.UNEXPECTED_EMPTY_LINKED_KEY,d.lastStartLoc,0);const v=f.context(),C=s(7,v.offset,v.startLoc);return C.value="",a(C,v.offset,v.startLoc),I.key=C,a(I,v.offset,v.startLoc),{nextConsumeToken:p,node:I}}}return a(I,f.currentOffset(),f.currentPosition()),{node:I}}function S(f){const d=f.context(),I=d.currentType===1?f.currentOffset():d.offset,p=d.currentType===1?d.endLoc:d.startLoc,v=s(2,I,p);v.items=[];let C=null;do{const $=C||f.nextToken();switch(C=null,$.type){case 0:$.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),v.items.push(o(f,$.value||""));break;case 5:$.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),v.items.push(i(f,$.value||""));break;case 4:$.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),v.items.push(u(f,$.value||""));break;case 6:$.value==null&&r(f,k.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),v.items.push(m(f,$.value||""));break;case 7:{const q=T(f);v.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(d.currentType!==13&&d.currentType!==1);const E=d.currentType===1?d.lastOffset:f.currentOffset(),M=d.currentType===1?d.lastEndLoc:f.currentPosition();return a(v,E,M),v}function D(f,d,I,p){const v=f.context();let C=p.items.length===0;const E=s(1,d,I);E.cases=[],E.cases.push(p);do{const M=S(f);C||(C=M.items.length===0),E.cases.push(M)}while(v.currentType!==13);return C&&r(f,k.MUST_HAVE_MESSAGES_IN_PLURAL,I,0),a(E,f.currentOffset(),f.currentPosition()),E}function A(f){const d=f.context(),{offset:I,startLoc:p}=d,v=S(f);return d.currentType===13?v:D(f,I,p,v)}function y(f){const d=rs(f,Q({},e)),I=d.context(),p=s(0,I.offset,I.startLoc);return t&&p.loc&&(p.loc.source=f),p.body=A(d),e.onCacheKey&&(p.cacheKey=e.onCacheKey(f)),I.currentType!==13&&r(d,k.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,f[I.offset]||""),a(p,d.currentOffset(),d.currentPosition()),p}return{parse:y}}function de(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 is(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function gn(e,t){for(let n=0;n<e.length;n++)Tt(e[n],t)}function Tt(e,t){switch(e.type){case 1:gn(e.cases,t),t.helper("plural");break;case 2:gn(e.items,t);break;case 6:{Tt(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 cs(e,t={}){const n=is(e);n.helper("normalize"),e.body&&Tt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function us(e){const t=e.body;return t.type===2?Tn(t):t.cases.forEach(n=>Tn(n)),e}function Tn(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=pt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const fs="minifier";function Pe(e){switch(e.t=e.type,e.type){case 0:{const t=e;Pe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Pe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Pe(n[r]);t.i=n,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;Pe(t.key),t.k=t.key,delete t.key,t.modifier&&(Pe(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 ye(k.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:fs,args:[e.type]})}delete e.type}const _s="parser";function ms(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,a=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const i=()=>o;function u(A,y){o.code+=A}function m(A,y=!0){const f=y?r:"";u(s?f+" ".repeat(A):f)}function N(A=!0){const y=++o.indentLevel;A&&m(y)}function h(A=!0){const y=--o.indentLevel;A&&m(y)}function T(){m(o.indentLevel)}return{context:i,push:u,indent:N,deindent:h,newline:T,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function ds(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ke(e,t.key),t.modifier?(e.push(", "),ke(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ps(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let a=0;a<s&&(ke(e,t.items[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function Es(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let a=0;a<s&&(ke(e,t.cases[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function gs(e,t){t.body?ke(e,t.body):e.push("null")}function ke(e,t){const{helper:n}=e;switch(t.type){case 0:gs(e,t);break;case 1:Es(e,t);break;case 2:ps(e,t);break;case 6:ds(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(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("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 ye(k.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:_s,args:[t.type]})}}const Ts=(e,t={})=>{const n=O(t.mode)?t.mode:"normal",r=O(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
4
+ `,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=ms(e,{filename:r,breakLineCode:s,needIndent:a});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(a),o.length>0&&(i.push(`const { ${pt(o.map(N=>`${N}: _${N}`),", ")} } = ctx`),i.newline()),i.push("return "),ke(i,e),i.deindent(a),i.push("}"),delete e.helpers;const{code:u,map:m}=i.context();return{ast:e,code:u,map:m?m.toJSON():void 0}};function Ns(e,t={}){const n=Q({},t),r=!!n.jit,s=!!n.minify,a=n.optimize==null?!0:n.optimize,i=ls(n).parse(e);return r?(a&&us(i),s&&Pe(i),{ast:i,code:""}):(cs(i,n),Ts(i,n))}function bs(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(he().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return F(e)&&Nt(e)===0&&(ie(e,"b")||ie(e,"body"))}const Nn=["b","body"];function hs(e){return Te(e,Nn)}const bn=["c","cases"];function Is(e){return Te(e,bn,[])}const hn=["s","static"];function Ls(e){return Te(e,hn)}const In=["i","items"];function Os(e){return Te(e,In,[])}const Ln=["t","type"];function Nt(e){return Te(e,Ln)}const On=["v","value"];function rt(e,t){const n=Te(e,On);if(n!=null)return n;throw Ve(t)}const vn=["m","modifier"];function vs(e){return Te(e,vn)}const Cn=["k","key"];function Cs(e){const t=Te(e,Cn);if(t)return t;throw Ve(6)}function Te(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(ie(e,s)&&e[s]!=null)return e[s]}return n}const An=[...Nn,...bn,...hn,...In,...Cn,...vn,...On,...Ln];function Ve(e){return new Error(`unhandled node type: ${e}`)}function bt(e){return n=>As(n,e)}function As(e,t){const n=hs(t);if(n==null)throw Ve(0);if(Nt(n)===1){const a=Is(n);return e.plural(a.reduce((o,i)=>[...o,Sn(e,i)],[]))}else return Sn(e,n)}function Sn(e,t){const n=Ls(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Os(t).reduce((s,a)=>[...s,ht(e,a)],[]);return e.normalize(r)}}function ht(e,t){const n=Nt(t);switch(n){case 3:return rt(t,n);case 9:return rt(t,n);case 4:{const r=t;if(ie(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ie(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ve(n)}case 5:{const r=t;if(ie(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(ie(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw Ve(n)}case 6:{const r=t,s=vs(r),a=Cs(r);return e.linked(ht(e,a),s?ht(e,s):void 0,e.type)}case 7:return rt(t,n);case 8:return rt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ss="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function ys(e,t){t&&Qr(e)&&fe(ze(Ss,{source:e}))}const Ps=e=>e;let st=W();function ks(e,t={}){let n=!1;const r=t.onError||Xr;return t.onError=s=>{n=!0,r(s)},{...Ns(e,t),detectError:n}}function Ds(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&ys(e,n);const s=(t.onCacheKey||Ps)(e),a=st[s];if(a)return a;const{ast:o,detectError:i}=ks(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=bt(o);return i?u:st[s]=u}else{if(process.env.NODE_ENV!=="production"&&!se(e))return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=st[n];return r||(st[n]=bt(e))}else return bt(e)}}let We=null;function Ms(e){We=e}function Rs(e,t,n){We&&We.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Fs=ws("function:translate");function ws(e){return t=>We&&We.emit(e,t)}const z={INVALID_ARGUMENT:Kr,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},Us=24;function Ee(e){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:$s}:void 0)}const $s={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function It(e,t){return t.locale!=null?yn(t.locale):yn(e.locale)}let Lt;function yn(e){if(O(e))return e;if(G(e)){if(e.resolvedOnce&&Lt!=null)return Lt;if(e.constructor.name==="Function"){const t=e();if(Br(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Lt=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Vs(e,t,n){return[...new Set([n,...x(t)?t:F(t)?Object.keys(t):O(t)?[t]:[n]])]}function Pn(e,t,n){const r=O(n)?n:Ge,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let a=s.__localeChainCache.get(r);if(!a){a=[];let o=[n];for(;x(o);)o=kn(a,o,t);const i=x(t)||!R(t)?t:t.default?t.default:null;o=O(i)?[i]:i,x(o)&&kn(a,o,!1),s.__localeChainCache.set(r,a)}return a}function kn(e,t,n){let r=!0;for(let s=0;s<t.length&&w(r);s++){const a=t[s];O(a)&&(r=Ws(e,t[s],n))}return r}function Ws(e,t,n){let r;const s=t.split("-");do{const a=s.join("-");r=Gs(e,a,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Gs(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(x(n)||R(n))&&n[s]&&(r=n[s])}return r}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Bs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Hs(e){return Bs.test(e)}function xs(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 Ys(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 Ks(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Hs(t)?xs(t):"*"+t}function js(e){const t=[];let n=-1,r=0,s=0,a,o,i,u,m,N,h;const T=[];T[0]=()=>{o===void 0?o=i:o+=i},T[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},T[2]=()=>{T[0](),s++},T[3]=()=>{if(s>0)s--,r=4,T[0]();else{if(s=0,o===void 0||(o=Ks(o),o===!1))return!1;T[1]()}};function S(){const D=e[n+1];if(r===5&&D==="'"||r===6&&D==='"')return n++,i="\\"+D,T[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&S())){if(u=Ys(a),h=Ne[r],m=h[u]||h.l||8,m===8||(r=m[0],m[1]!==void 0&&(N=T[m[1]],N&&(i=a,N()===!1))))return;if(r===7)return t}}const Dn=new Map;function Xs(e,t){return F(e)?e[t]:null}function Js(e,t){if(!F(e))return null;let n=Dn.get(t);if(n||(n=js(t),n&&Dn.set(t,n)),!n)return null;const r=n.length;let s=e,a=0;for(;a<r;){const o=n[a];if(An.includes(o)&&se(s))return null;const i=s[o];if(i===void 0||G(s))return null;s=i,a++}return s}const ee={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},Qs=8,qs={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.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 Ie(e,...t){return ze(qs[e],...t)}const Zs="11.2.8",at=-1,Ge="en-US",ot="",Mn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function zs(){return{upper:(e,t)=>t==="text"&&O(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&O(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&O(e)?Mn(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?Mn(e.children):e}}let Rn;function ea(e){Rn=e}let Fn;function ta(e){Fn=e}let wn;function na(e){wn=e}let Un=null;const ra=e=>{Un=e},sa=()=>Un;let $n=null;const Vn=e=>{$n=e},aa=()=>$n;let Wn=0;function oa(e={}){const t=G(e.onWarn)?e.onWarn:fe,n=O(e.version)?e.version:Zs,r=O(e.locale)||G(e.locale)?e.locale:Ge,s=G(r)?Ge:r,a=x(e.fallbackLocale)||R(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=R(e.messages)?e.messages:Ot(s),i=R(e.datetimeFormats)?e.datetimeFormats:Ot(s),u=R(e.numberFormats)?e.numberFormats:Ot(s),m=Q(W(),e.modifiers,zs()),N=e.pluralRules||W(),h=G(e.missing)?e.missing:null,T=w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,D=!!e.fallbackFormat,A=!!e.unresolving,y=G(e.postTranslation)?e.postTranslation:null,f=R(e.processor)?e.processor:null,d=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter,p=G(e.messageCompiler)?e.messageCompiler:Rn;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&mt(Ie(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const v=G(e.messageResolver)?e.messageResolver:Fn||Xs,C=G(e.localeFallbacker)?e.localeFallbacker:wn||Vs,E=F(e.fallbackContext)?e.fallbackContext:void 0,M=e,$=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,q=F(M.__numberFormatters)?M.__numberFormatters:new Map,ce=F(M.__meta)?M.__meta:{};Wn++;const Y={version:n,cid:Wn,locale:r,fallbackLocale:a,messages:o,modifiers:m,pluralRules:N,missing:h,missingWarn:T,fallbackWarn:S,fallbackFormat:D,unresolving:A,postTranslation:y,processor:f,warnHtmlMessage:d,escapeParameter:I,messageCompiler:p,messageResolver:v,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:ce};return Y.datetimeFormats=i,Y.numberFormats=u,Y.__datetimeFormatters=$,Y.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(Y.__v_emitter=M.__v_emitter!=null?M.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Rs(Y,n,ce),Y}const Ot=e=>({[e]:W()});function lt(e,t){return e instanceof RegExp?e.test(t):e}function Gn(e,t){return e instanceof RegExp?e.test(t):e}function vt(e,t,n,r,s){const{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(a!==null){const i=a(e,n,t,s);return O(i)?i:t}else return process.env.NODE_ENV!=="production"&&Gn(r,t)&&o(Ie(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function Be(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Bn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function la(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Bn(e,t[r]))return!0;return!1}const Hn=typeof Intl<"u",xn={dateTimeFormat:Hn&&typeof Intl.DateTimeFormat<"u",numberFormat:Hn&&typeof Intl.NumberFormat<"u"};function Yn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!xn.dateTimeFormat)return a(Ie(ee.CANNOT_FORMAT_DATE)),ot;const[u,m,N,h]=Ct(...t),T=w(N.missingWarn)?N.missingWarn:e.missingWarn,S=w(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,D=!!N.part,A=It(e,N),y=o(e,s,A);if(!O(u)||u==="")return new Intl.DateTimeFormat(A,h).format(m);let f={},d,I=null,p=A,v=null;const C="datetime format";for(let $=0;$<y.length;$++){if(d=v=y[$],process.env.NODE_ENV!=="production"&&A!==d&&lt(S,u)&&a(Ie(ee.FALLBACK_TO_DATE_FORMAT,{key:u,target:d})),process.env.NODE_ENV!=="production"&&A!==d){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:v,groupId:`${C}:${u}`})}if(f=n[d]||{},I=f[u],R(I))break;vt(e,u,d,T,C),p=v}if(!R(I)||!O(d))return r?at:u;let E=`${d}__${u}`;et(h)||(E=`${E}__${JSON.stringify(h)}`);let M=i.get(E);return M||(M=new Intl.DateTimeFormat(d,Q({},I,h)),i.set(E,M)),D?M.formatToParts(m):M.format(m)}const Kn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ct(...e){const[t,n,r,s]=e,a=W();let o=W(),i;if(O(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const m=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();i=new Date(m);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if($r(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);i=t}else if(J(t))i=t;else throw Ee(z.INVALID_ARGUMENT);return O(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{Kn.includes(u)?o[u]=n[u]:a[u]=n[u]}),O(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function jn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function Xn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!xn.numberFormat)return a(Ie(ee.CANNOT_FORMAT_NUMBER)),ot;const[u,m,N,h]=At(...t),T=w(N.missingWarn)?N.missingWarn:e.missingWarn,S=w(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,D=!!N.part,A=It(e,N),y=o(e,s,A);if(!O(u)||u==="")return new Intl.NumberFormat(A,h).format(m);let f={},d,I=null,p=A,v=null;const C="number format";for(let $=0;$<y.length;$++){if(d=v=y[$],process.env.NODE_ENV!=="production"&&A!==d&&lt(S,u)&&a(Ie(ee.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:d})),process.env.NODE_ENV!=="production"&&A!==d){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:v,groupId:`${C}:${u}`})}if(f=n[d]||{},I=f[u],R(I))break;vt(e,u,d,T,C),p=v}if(!R(I)||!O(d))return r?at:u;let E=`${d}__${u}`;et(h)||(E=`${E}__${JSON.stringify(h)}`);let M=i.get(E);return M||(M=new Intl.NumberFormat(d,Q({},I,h)),i.set(E,M)),D?M.formatToParts(m):M.format(m)}const Jn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function At(...e){const[t,n,r,s]=e,a=W();let o=W();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return O(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{Jn.includes(u)?o[u]=n[u]:a[u]=n[u]}),O(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Qn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const ia=e=>e,ca=e=>"",ua="text",fa=e=>e.length===0?"":pt(e),_a=Hr;function qn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ma(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function da(e,t){t.count||(t.count=e),t.n||(t.n=e)}function pa(e={}){const t=e.locale,n=ma(e),r=F(e.pluralRules)&&O(t)&&G(e.pluralRules[t])?e.pluralRules[t]:qn,s=F(e.pluralRules)&&O(t)&&G(e.pluralRules[t])?qn:void 0,a=f=>f[r(n,f.length,s)],o=e.list||[],i=f=>o[f],u=e.named||W();J(e.pluralIndex)&&da(n,u);const m=f=>u[f];function N(f,d){const I=G(e.messages)?e.messages(f,!!d):F(e.messages)?e.messages[f]:!1;return I||(e.parent?e.parent.message(f):ca)}const h=f=>e.modifiers?e.modifiers[f]:ia,T=R(e.processor)&&G(e.processor.normalize)?e.processor.normalize:fa,S=R(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:_a,D=R(e.processor)&&O(e.processor.type)?e.processor.type:ua,y={list:i,named:m,plural:a,linked:(f,...d)=>{const[I,p]=d;let v="text",C="";d.length===1?F(I)?(C=I.modifier||C,v=I.type||v):O(I)&&(C=I||C):d.length===2&&(O(I)&&(C=I||C),O(p)&&(v=p||v));const E=N(f,!0)(y),M=v==="vnode"&&x(E)&&C?E[0]:E;return C?h(C)(M,v):M},message:N,type:D,interpolate:S,normalize:T,values:Q(W(),o,u)};return y}const Zn=()=>"",ae=e=>G(e);function zn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:a,fallbackLocale:o,messages:i}=e,[u,m]=St(...t),N=w(m.missingWarn)?m.missingWarn:e.missingWarn,h=w(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,T=w(m.escapeParameter)?m.escapeParameter:e.escapeParameter,S=!!m.resolvedMessage,D=O(m.default)||w(m.default)?w(m.default)?a?u:()=>u:m.default:n?a?u:()=>u:null,A=n||D!=null&&(O(D)||G(D)),y=It(e,m);T&&Ea(m);let[f,d,I]=S?[u,y,i[y]||W()]:er(e,u,y,o,h,N),p=f,v=u;if(!S&&!(O(p)||se(p)||ae(p))&&A&&(p=D,v=p),!S&&(!(O(p)||se(p)||ae(p))||!O(d)))return s?at:u;if(process.env.NODE_ENV!=="production"&&O(p)&&e.messageCompiler==null)return fe(`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 '${u}'.`),u;let C=!1;const E=()=>{C=!0},M=ae(p)?p:tr(e,u,d,p,v,E);if(C)return p;const $=ba(e,d,I,m),q=pa($),ce=ga(e,M,q);let Y=r?r(ce,u):ce;if(T&&O(Y)&&(Y=Wr(Y)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Fe={timestamp:Date.now(),key:O(u)?u:ae(p)?p.key:"",locale:d||(ae(p)?p.locale:""),format:O(p)?p:ae(p)?p.source:"",message:Y};Fe.meta=Q({},e.__meta,sa()||{}),Fs(Fe)}return Y}function Ea(e){x(e.list)?e.list=e.list.map(t=>O(t)?_n(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{O(e.named[t])&&(e.named[t]=_n(e.named[t]))})}function er(e,t,n,r,s,a){const{messages:o,onWarn:i,messageResolver:u,localeFallbacker:m}=e,N=m(e,r,n);let h=W(),T,S=null,D=n,A=null;const y="translate";for(let f=0;f<N.length;f++){if(T=A=N[f],process.env.NODE_ENV!=="production"&&n!==T&&!Bn(n,T)&&lt(s,t)&&i(Ie(ee.FALLBACK_TO_TRANSLATE,{key:t,target:T})),process.env.NODE_ENV!=="production"&&n!==T){const v=e.__v_emitter;v&&v.emit("fallback",{type:y,key:t,from:D,to:A,groupId:`${y}:${t}`})}h=o[T]||W();let d=null,I,p;if(process.env.NODE_ENV!=="production"&&le&&(d=window.performance.now(),I="intlify-message-resolve-start",p="intlify-message-resolve-end",re&&re(I)),(S=u(h,t))===null&&(S=h[t]),process.env.NODE_ENV!=="production"&&le){const v=window.performance.now(),C=e.__v_emitter;C&&d&&S&&C.emit("message-resolve",{type:"message-resolve",key:t,message:S,time:v-d,groupId:`${y}:${t}`}),I&&p&&re&&be&&(re(p),be("intlify message resolve",I,p))}if(O(S)||se(S)||ae(S))break;if(!la(T,N)){const v=vt(e,t,T,a,y);v!==t&&(S=v)}D=A}return[S,T,h]}function tr(e,t,n,r,s,a){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ae(r)){const T=r;return T.locale=T.locale||n,T.key=T.key||t,T}if(o==null){const T=(()=>r);return T.locale=n,T.key=t,T}let u=null,m,N;process.env.NODE_ENV!=="production"&&le&&(u=window.performance.now(),m="intlify-message-compilation-start",N="intlify-message-compilation-end",re&&re(m));const h=o(r,Ta(e,n,s,r,i,a));if(process.env.NODE_ENV!=="production"&&le){const T=window.performance.now(),S=e.__v_emitter;S&&u&&S.emit("message-compilation",{type:"message-compilation",message:r,time:T-u,groupId:`translate:${t}`}),m&&N&&re&&be&&(re(N),be("intlify message compilation",m,N))}return h.locale=n,h.key=t,h.source=r,h}function ga(e,t,n){let r=null,s,a;process.env.NODE_ENV!=="production"&&le&&(r=window.performance.now(),s="intlify-message-evaluation-start",a="intlify-message-evaluation-end",re&&re(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&le){const i=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),s&&a&&re&&be&&(re(a),be("intlify message evaluation",s,a))}return o}function St(...e){const[t,n,r]=e,s=W();if(!O(t)&&!J(t)&&!ae(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const a=J(t)?String(t):(ae(t),t);return J(n)?s.plural=n:O(n)?s.default=n:R(n)&&!et(n)?s.named=n:x(n)&&(s.list=n),J(r)?s.plural=r:O(r)?s.default=r:R(r)&&Q(s,r),[a,s]}function Ta(e,t,n,r,s,a){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(a&&a(o),process.env.NODE_ENV!=="production"){const i=Na(r),u=`Message compilation error: ${o.message}`,m=o.location&&i&&xr(i,o.location.start.offset,o.location.end.offset),N=e.__v_emitter;N&&i&&N.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${u}
5
+ ${m}`:u)}else throw o},onCacheKey:o=>wr(t,n,o)}}function Na(e){if(O(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ba(e,t,n,r){const{modifiers:s,pluralRules:a,messageResolver:o,fallbackLocale:i,fallbackWarn:u,missingWarn:m,fallbackContext:N}=e,T={locale:t,modifiers:s,pluralRules:a,messages:(S,D)=>{let A=o(n,S);if(A==null&&(N||D)){const[,,y]=er(N||e,S,t,i,u,m);A=o(y,S)}if(O(A)||se(A)){let y=!1;const d=tr(e,S,t,A,S,()=>{y=!0});return y?Zn:d}else return ae(A)?A:Zn}};return e.processor&&(T.processor=e.processor),r.list&&(T.list=r.list),r.named&&(T.named=r.named),J(r.plural)&&(T.pluralIndex=r.plural),T}bs();function ha(){return nr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function nr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Ia=typeof Proxy=="function",La="devtools-plugin:setup",Oa="plugin:settings:set";let De,yt;function va(){var e;return De!==void 0||(typeof window<"u"&&window.performance?(De=!0,yt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(De=!0,yt=globalThis.perf_hooks.performance):De=!1),De}function Ca(){return va()?yt.now():Date.now()}class Aa{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const i=t.settings[o];r[o]=i.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const o=localStorage.getItem(s),i=JSON.parse(o);Object.assign(a,i)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}a=o},now(){return Ca()}},n&&n.on(Oa,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(m=>{this.targetQueue.push({method:i,args:u,resolve:m})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Sa(e,t){const n=e,r=nr(),s=ha(),a=Ia&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(La,e,t);else{const o=a?new Aa(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const ya="11.2.8";function Pa(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(he().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(he().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(he().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1)}const B={UNEXPECTED_RETURN_TYPE:Us,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function te(e,...t){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:ka,args:t}:void 0)}const ka={[B.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[B.INVALID_ARGUMENT]:"Invalid argument",[B.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[B.NOT_INSTALLED]:"Need to install with `app.use` function",[B.UNEXPECTED_ERROR]:"Unexpected error",[B.REQUIRED_VALUE]:"Required in value: {0}",[B.INVALID_VALUE]:"Invalid value",[B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[B.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Pt=_e("__translateVNode"),kt=_e("__datetimeParts"),Dt=_e("__numberParts"),Le=_e("__enableEmitter"),He=_e("__disableEmitter"),rr=_e("__setPluralRules"),sr=_e("__injectWithOption"),Mt=_e("__dispose"),oe={FALLBACK_TO_ROOT:Qs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Da={[oe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[oe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[oe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[oe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
6
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[oe.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Me(e,...t){return ze(Da[e],...t)}function xe(e){if(!F(e)||se(e))return e;for(const t in e)if(ie(e,t))if(!t.includes("."))F(e[t])&&xe(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,a=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&fe(Me(oe.IGNORE_OBJ_FLATTEN,{key:n[o]})),a=!0;break}s=s[n[o]]}if(a||(se(s)?An.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!se(s)){const o=s[n[r]];F(o)&&xe(o)}}return e}function Rt(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:a}=t,o=R(n)?n:x(r)?W():{[e]:W()};if(x(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:m}=i;u?(o[u]=o[u]||W(),nt(m,o[u])):nt(m,o)}else O(i)&&nt(JSON.parse(i),o)}),s==null&&a)for(const i in o)ie(o,i)&&xe(o[i]);return o}function ar(e){return e.type}function or(e,t,n){let r=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(r=Rt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(F(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function lr(e){return L.createVNode(L.Text,null,e,0)}function Re(){const e="currentInstance";return e in ft?ft[e]:ft.getCurrentInstance()}const ir="__INTLIFY_META__",cr=()=>[],Ma=()=>!1;let ur=0;function fr(e){return((t,n,r,s)=>e(n,r,Re()||void 0,s))}const Ra=()=>{const e=Re();let t=null;return e&&(t=ar(e)[ir])?{[ir]:t}:null};function Ft(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,a=le?L.ref:L.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const i=a(t&&o?t.locale.value:O(e.locale)?e.locale:Ge),u=a(t&&o?t.fallbackLocale.value:O(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),m=a(Rt(i.value,e)),N=a(R(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),h=a(R(e.numberFormats)?e.numberFormats:{[i.value]:{}});let T=t?t.missingWarn:w(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=t?t.fallbackWarn:w(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,D=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,y=G(e.missing)?e.missing:null,f=G(e.missing)?fr(e.missing):null,d=G(e.postTranslation)?e.postTranslation:null,I=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const v=t?t.modifiers:R(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&Vn(null);const _={version:ya,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:v,pluralRules:C,missing:f===null?void 0:f,missingWarn:T,fallbackWarn:S,fallbackFormat:A,unresolving:!0,postTranslation:d===null?void 0:d,warnHtmlMessage:I,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=N.value,_.numberFormats=h.value,_.__datetimeFormatters=R(E)?E.__datetimeFormatters:void 0,_.__numberFormatters=R(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=R(E)?E.__v_emitter:void 0);const b=oa(_);return r&&Vn(b),b})(),Be(E,i.value,u.value);function $(){return[i.value,u.value,m.value,N.value,h.value]}const q=L.computed({get:()=>i.value,set:_=>{E.locale=_,i.value=_}}),ce=L.computed({get:()=>u.value,set:_=>{E.fallbackLocale=_,u.value=_,Be(E,i.value,_)}}),Y=L.computed(()=>m.value),Fe=L.computed(()=>N.value),Bt=L.computed(()=>h.value);function Ht(){return G(d)?d:null}function xt(_){d=_,E.postTranslation=_}function Yt(){return y}function Kt(_){_!==null&&(f=fr(_)),y=_,E.missing=f}function jt(_,b){return _!=="translate"||!b.resolvedMessage}const ge=(_,b,V,X,Ce,ut)=>{$();let we;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?aa():void 0),we=_(E)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(V!=="translate exists"&&J(we)&&we===at||V==="translate exists"&&!we){const[Ae,po]=b();if(process.env.NODE_ENV!=="production"&&t&&O(Ae)&&jt(V,po)&&(D&&(lt(S,Ae)||Gn(T,Ae))&&fe(Me(oe.FALLBACK_TO_ROOT,{key:Ae,type:V})),process.env.NODE_ENV!=="production")){const{__v_emitter:Cr}=E;Cr&&D&&Cr.emit("fallback",{type:V,key:Ae,to:"global",groupId:`${V}:${Ae}`})}return t&&D?X(t):Ce(Ae)}else{if(ut(we))return we;throw te(B.UNEXPECTED_RETURN_TYPE)}};function Ke(..._){return ge(b=>Reflect.apply(zn,null,[b,..._]),()=>St(..._),"translate",b=>Reflect.apply(b.t,b,[..._]),b=>b,b=>O(b))}function Xt(..._){const[b,V,X]=_;if(X&&!F(X))throw te(B.INVALID_ARGUMENT);return Ke(b,V,Q({resolvedMessage:!0},X||{}))}function Jt(..._){return ge(b=>Reflect.apply(Yn,null,[b,..._]),()=>Ct(..._),"datetime format",b=>Reflect.apply(b.d,b,[..._]),()=>ot,b=>O(b)||x(b))}function Qt(..._){return ge(b=>Reflect.apply(Xn,null,[b,..._]),()=>At(..._),"number format",b=>Reflect.apply(b.n,b,[..._]),()=>ot,b=>O(b)||x(b))}function qt(_){return _.map(b=>O(b)||J(b)||w(b)?lr(String(b)):b)}const Zt={normalize:qt,interpolate:_=>_,type:"vnode"};function it(..._){return ge(b=>{let V;const X=b;try{X.processor=Zt,V=Reflect.apply(zn,null,[X,..._])}finally{X.processor=null}return V},()=>St(..._),"translate",b=>b[Pt](..._),b=>[lr(b)],b=>x(b))}function zt(..._){return ge(b=>Reflect.apply(Xn,null,[b,..._]),()=>At(..._),"number format",b=>b[Dt](..._),cr,b=>O(b)||x(b))}function ct(..._){return ge(b=>Reflect.apply(Yn,null,[b,..._]),()=>Ct(..._),"datetime format",b=>b[kt](..._),cr,b=>O(b)||x(b))}function en(_){C=_,E.pluralRules=C}function tn(_,b){return ge(()=>{if(!_)return!1;const V=O(b)?b:i.value,X=ve(V),Ce=E.messageResolver(X,_);return se(Ce)||ae(Ce)||O(Ce)},()=>[_],"translate exists",V=>Reflect.apply(V.te,V,[_,b]),Ma,V=>w(V))}function je(_){let b=null;const V=Pn(E,u.value,i.value);for(let X=0;X<V.length;X++){const Ce=m.value[V[X]]||{},ut=E.messageResolver(Ce,_);if(ut!=null){b=ut;break}}return b}function Xe(_){const b=je(_);return b??(t?t.tm(_)||{}:{})}function ve(_){return m.value[_]||{}}function Je(_,b){if(s){const V={[_]:b};for(const X in V)ie(V,X)&&xe(V[X]);b=V[_]}m.value[_]=b,E.messages=m.value}function nn(_,b){m.value[_]=m.value[_]||{};const V={[_]:b};if(s)for(const X in V)ie(V,X)&&xe(V[X]);b=V[_],nt(b,m.value[_]),E.messages=m.value}function l(_){return N.value[_]||{}}function c(_,b){N.value[_]=b,E.datetimeFormats=N.value,jn(E,_,b)}function g(_,b){N.value[_]=Q(N.value[_]||{},b),E.datetimeFormats=N.value,jn(E,_,b)}function P(_){return h.value[_]||{}}function H(_,b){h.value[_]=b,E.numberFormats=h.value,Qn(E,_,b)}function j(_,b){h.value[_]=Q(h.value[_]||{},b),E.numberFormats=h.value,Qn(E,_,b)}ur++,t&&le&&(L.watch(t.locale,_=>{o&&(i.value=_,E.locale=_,Be(E,i.value,u.value))}),L.watch(t.fallbackLocale,_=>{o&&(u.value=_,E.fallbackLocale=_,Be(E,i.value,u.value))}));const U={id:ur,locale:q,fallbackLocale:ce,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Be(E,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:Y,get modifiers(){return v},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(_){T=_,E.missingWarn=T},get fallbackWarn(){return S},set fallbackWarn(_){S=_,E.fallbackWarn=S},get fallbackRoot(){return D},set fallbackRoot(_){D=_},get fallbackFormat(){return A},set fallbackFormat(_){A=_,E.fallbackFormat=A},get warnHtmlMessage(){return I},set warnHtmlMessage(_){I=_,E.warnHtmlMessage=_},get escapeParameter(){return p},set escapeParameter(_){p=_,E.escapeParameter=_},t:Ke,getLocaleMessage:ve,setLocaleMessage:Je,mergeLocaleMessage:nn,getPostTranslationHandler:Ht,setPostTranslationHandler:xt,getMissingHandler:Yt,setMissingHandler:Kt,[rr]:en};return U.datetimeFormats=Fe,U.numberFormats=Bt,U.rt=Xt,U.te=tn,U.tm=Xe,U.d=Jt,U.n=Qt,U.getDateTimeFormat=l,U.setDateTimeFormat=c,U.mergeDateTimeFormat=g,U.getNumberFormat=P,U.setNumberFormat=H,U.mergeNumberFormat=j,U[sr]=n,U[Pt]=it,U[kt]=ct,U[Dt]=zt,process.env.NODE_ENV!=="production"&&(U[Le]=_=>{E.__v_emitter=_},U[He]=()=>{E.__v_emitter=void 0}),U}const _r="vue-i18n: composer properties",wt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Fa={"vue-i18n-resource-inspector":"Search for scopes ..."},wa={"vue-i18n-timeline":16764185};let Ut;async function Ua(e,t){return new Promise((n,r)=>{try{Sa({id:"vue-devtools-plugin-vue-i18n",label:wt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[_r],app:e},s=>{Ut=s,s.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{$a(o,i,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&dr(i,o.__VUE_I18N__):dr(i,o.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:wt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Fa["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ha(o,t)});const a=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Ya(o,t),o.nodeId==="global"){if(!a.has(o.app)){const[i]=await s.getComponentInstances(o.app);a.set(o.app,i)}s.highlightElement(a.get(o.app))}else{const i=xa(o.nodeId,t);i&&s.highlightElement(i)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ja(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:wt["vue-i18n-timeline"],color:wa["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function mr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function $a(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const s={label:`i18n (${mr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function dr(e,t){const n=_r;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:$t(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function $t(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];G(r)&&"source"in r?t[n]=Ba(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:F(r)?t[n]=$t(r):t[n]=r}),t}const Va={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Wa(e){return e.replace(/[<>"&]/g,Ga)}function Ga(e){return Va[e]||e}function Ba(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Wa(e.source)}")`:"(?)"}`}}}function Ha(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,s]of t.__instances){const a=t.mode==="composition"?s:s.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${mr(r)} Scope`})}}function xa(e,t){let n=null;if(e!=="global"){for(const[r,s]of t.__instances.entries())if(s.id.toString()===e){n=r;break}}return n}function pr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Ya(e,t){const n=pr(e.nodeId,t);return n&&(e.state=Ka(n)),null}function Ka(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const s="Locale messages info",a=[{type:s,key:"messages",editable:!1,value:$t(e.messages.value)}];t[s]=a;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const u="Datetime formats info",m=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=m}return t}function Ye(e,t){if(Ut){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ut.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ja(e,t){const n=pr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&O(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(O(e.state.value)||x(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function Xa(e){const t=O(e.locale)?e.locale:Ge,n=O(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=G(e.missing)?e.missing:void 0,s=w(e.silentTranslationWarn)||Se(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=w(e.silentFallbackWarn)||Se(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=R(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,N=G(e.postTranslation)?e.postTranslation:void 0,h=O(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,T=!!e.escapeParameterHtml,S=w(e.sync)?e.sync:!0;let D=e.messages;if(R(e.sharedMessages)){const v=e.sharedMessages;D=Object.keys(v).reduce((E,M)=>{const $=E[M]||(E[M]={});return Q($,v[M]),E},D||{})}const{__i18n:A,__root:y,__injectWithOption:f}=e,d=e.datetimeFormats,I=e.numberFormats,p=e.flatJson;return{locale:t,fallbackLocale:n,messages:D,flatJson:p,datetimeFormats:d,numberFormats:I,missing:r,missingWarn:s,fallbackWarn:a,fallbackRoot:o,fallbackFormat:i,modifiers:u,pluralRules:m,postTranslation:N,warnHtmlMessage:h,escapeParameter:T,messageResolver:e.messageResolver,inheritLocale:S,__i18n:A,__root:y,__injectWithOption:f}}function Vt(e={}){const t=Ft(Xa(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=w(s)?!s:s},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=w(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,a){return t.te(s,a)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,a){t.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){t.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,a){t.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){t.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,a){t.setNumberFormat(s,a)},mergeNumberFormat(s,a){t.mergeNumberFormat(s,a)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const a=t;a[Le]&&a[Le](s)},r.__disableEmitter=()=>{const s=t;s[He]&&s[He]()}),r}function Ja(e,t,n){return{beforeCreate(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const a=s.i18n;if(s.__i18n&&(a.__i18n=s.__i18n),a.__root=t,this===this.$root)this.$i18n=Er(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Vt(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Er(e,s);else{this.$i18n=Vt({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&or(t,s,s),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Re();if(!r)return;const s=this.$i18n;r.__VUE_I18N__=s.__composer;const a=this.__v_emitter=Et();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",Ye)}},unmounted(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ye),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Er(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rr](t.pluralizationRules||e.pluralizationRules);const n=Rt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Wt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Qa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===L.Fragment?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},W())}function gr(){return L.Fragment}const Tr=L.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},Wt),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(h=>h[0]!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=O(e.plural)?+e.plural:e.plural);const i=Qa(t,a),u=s[Pt](e.keypath,i,o),m=Q(W(),r),N=O(e.tag)||F(e.tag)?e.tag:gr();return L.h(N,m,u)}}});function qa(e){return x(e)&&!O(e[0])}function Nr(e,t,n,r){const{slots:s,attrs:a}=t;return()=>{const o={part:!0};let i=W();e.locale&&(o.locale=e.locale),O(e.format)?o.key=e.format:F(e.format)&&(O(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((T,S)=>n.includes(S)?Q(W(),T,{[S]:e.format[S]}):T,W()));const u=r(e.value,o,i);let m=[o.key];x(u)?m=u.map((T,S)=>{const D=s[T.type],A=D?D({[T.type]:T.value,index:S,parts:u}):[T.value];return qa(A)&&(A[0].key=`${T.type}-${S}`),A}):O(u)&&(m=[u]);const N=Q(W(),a),h=O(e.tag)||F(e.tag)?e.tag:gr();return L.h(h,N,m)}}const br=L.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},Wt),setup(e,t){const n=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return Nr(e,t,Jn,(...r)=>n[Dt](...r))}});function Za(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function za(e){const t=o=>{process.env.NODE_ENV!=="production"&&mt(Me(oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:u}=o;if(!i||!i.$)throw te(B.UNEXPECTED_ERROR);const m=Za(e,i.$),N=hr(u);return[Reflect.apply(m.t,m,[...Ir(N)]),m]};return{created:(o,i)=>{const[u,m]=t(i);le&&e.global===m&&(o.__i18nWatcher=L.watch(m.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=m,o.textContent=u},unmounted:o=>{le&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const u=o.__composer,m=hr(i);o.textContent=Reflect.apply(u.t,u,[...Ir(m)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function hr(e){if(O(e))return{path:e};if(R(e)){if(!("path"in e))throw te(B.REQUIRED_VALUE,"path");return e}else throw te(B.INVALID_VALUE)}function Ir(e){const{path:t,locale:n,args:r,choice:s,plural:a}=e,o={},i=r||{};return O(n)&&(o.locale=n),J(s)&&(o.plural=s),J(a)&&(o.plural=a),[t,i,o]}function eo(e,t,...n){const r=R(n[0])?n[0]:{};(!w(r.globalInstall)||r.globalInstall)&&([Tr.name,"I18nT"].forEach(a=>e.component(a,Tr)),[br.name,"I18nN"].forEach(a=>e.component(a,br)),[Or.name,"I18nD"].forEach(a=>e.component(a,Or))),e.directive("t",za(t))}const to=_e("global-vue-i18n");function no(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&mt(Me(oe.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,a]=ro(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(h){return r.get(h)||null}function u(h,T){r.set(h,T)}function m(h){r.delete(h)}const N={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(h,...T){if(process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=N),h.__VUE_I18N_SYMBOL__=o,h.provide(h.__VUE_I18N_SYMBOL__,N),R(T[0])){const A=T[0];N.__composerExtend=A.__composerExtend,N.__vueI18nExtend=A.__vueI18nExtend}let S=null;!t&&n&&(S=fo(h,N.global)),__VUE_I18N_FULL_INSTALL__&&eo(h,N,...T),__VUE_I18N_LEGACY_API__&&t&&h.mixin(Ja(a,a.__composer,N));const D=h.unmount;if(h.unmount=()=>{S&&S(),N.dispose(),D()},process.env.NODE_ENV!=="production"){if(!await Ua(h,N))throw te(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=Et();if(t){const f=a;f.__enableEmitter&&f.__enableEmitter(y)}else{const f=a;f[Le]&&f[Le](y)}y.on("*",Ye)}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:i,__setInstance:u,__deleteInstance:m};return N}function Gt(e={}){const t=Re();if(t==null)throw te(B.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(B.NOT_INSTALLED);const n=so(t),r=oo(n),s=ar(t),a=ao(e,s);if(a==="global")return or(r,e,s),r;if(a==="parent"){let u=lo(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&fe(Me(oe.NOT_FOUND_PARENT_SCOPE)),u=r),u}const o=n;let i=o.__getInstance(t);if(i==null){const u=Q({},e);"__i18n"in s&&(u.__i18n=s.__i18n),r&&(u.__root=r),i=Ft(u),o.__composerExtend&&(i[Mt]=o.__composerExtend(i)),co(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&a==="local"&&fe(Me(oe.DUPLICATE_USE_I18N_CALLING));return i}function ro(e,t){const n=L.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Vt(e)):n.run(()=>Ft(e));if(r==null)throw te(B.UNEXPECTED_ERROR);return[n,r]}function so(e){const t=L.inject(e.isCE?to:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?B.NOT_INSTALLED_WITH_PROVIDE:B.UNEXPECTED_ERROR);return t}function ao(e,t){return et(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function oo(e){return e.mode==="composition"?e.global:e.global.__composer}function lo(e,t,n=!1){let r=null;const s=t.root;let a=io(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(a);i!=null&&(r=i.__composer,n&&r&&!r[sr]&&(r=null))}if(r!=null||s===a)break;a=a.parent}return r}function io(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function co(e,t,n){let r=null;L.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=Et();const s=n;s[Le]&&s[Le](r),r.on("*",Ye)}},t),L.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ye),s[He]&&s[He](),delete t.__VUE_I18N__),e.__deleteInstance(t);const a=s[Mt];a&&(a(),delete s[Mt])},t)}const uo=["locale","fallbackLocale","availableLocales"],Lr=["t","rt","d","n","tm","te"];function fo(e,t){const n=Object.create(null);return uo.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a)throw te(B.UNEXPECTED_ERROR);const o=L.isRef(a.value)?{get(){return a.value.value},set(i){a.value.value=i}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,Lr.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a||!a.value)throw te(B.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,a)}),()=>{delete e.config.globalProperties.$i18n,Lr.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Or=L.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Wt),setup(e,t){const n=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return Nr(e,t,Kn,(...r)=>n[kt](...r))}});if(Pa(),ea(Ds),ta(Js),na(Pn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=he();e.__INTLIFY__=!0,Ms(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Oe=no({legacy:!1,locale:"zh",fallbackLocale:"en",messages:{zh:{name:"名称",supplier:"供应商",version:"版本",description:"描述",category:"类别",general:"通用",ioMapping:"I/O映射",modbusSlaveChannel:"Modbus从站通道",status:"状态",ethernet:"以太网",modbusTcpServer:"Modbus TCP服务器",modbusTcpClient:"Modbus TCP客户端",modbusTCPSlaveDevice:"Modbus TCP从站设备",company:"成都数字创新科技有限公司",descriptionMap:{ethernet:"一种在以太网上充当Modbus服务器的设备。",modbusTcpServer:"一种在以太网上充当Modbus TCP服务器的设备。",modbusTcpClient:"一种在以太网上充当Modbus TCP客户端的设备。",modbusTCPSlaveDevice:"一种在以太网上充当Modbus TCP从站设备。"},netInterface:"网络接口",ipAddress:"IP地址",subnetMask:"子网掩码",defaultGateway:"默认网关",adaptedOSConfiguration:"适配操作系统配置",busCycleTask:"总线周期任务",defaultTask:"使用父总线循环设置",responseTimeout:"响应超时(ms)",socketTimeout:"Socket超时(ms)",reconnect:"自动重连",slaveIpAddress:"从站IP地址",port:"端口",watchDog:" 看门狗",slavePort:"从站端口",bindToAdapter:"绑定到适配器",holdingRegister:"保持寄存器",writable:"可写入",inputRegister:"输入寄存器",discreteBitArea:"离散位区域",coil:"线圈",discreteInput:"离散输入",dataModel:"数据模型",startAddress:"起始地址"},en:{name:"Name",supplier:"Supplier",version:"Version",description:"Description",category:"Category",general:"General",ioMapping:"I/O Mapping",modbusSlaveChannel:"Modbus Slave Channel",status:"Status",ethernet:"Ethernet",modbusTcpServer:"Modbus TCP Server",modbusTcpClient:"Modbus TCP Client",modbusTCPSlaveDevice:"Modbus TCP Slave Device",company:"Chengdu AIOSYS Innovation Technology Co., Ltd.",descriptionMap:{ethernet:"A device that works as a Modbus Server on Ethernet.",modbusTcpServer:"A device that works as a Modbus TCP Server.",modbusTcpClient:"A device that works as a Modbus TCP Client.",modbusTCPSlaveDevice:"A device that works as a Modbus TCP Slave Device."},netInterface:"Network Interface",ipAddress:"IP Address",subnetMask:"Subnet Mask",defaultGateway:"Default Gateway",adaptedOSConfiguration:"Adapted OS Configuration",busCycleTask:"Bus Cycle Task",defaultTask:"Use Parent Bus Cycle Setting",responseTimeout:"Response Timeout(ms)",socketTimeout:"Socket Timeout(ms)",reconnect:"Reconnect",slaveIpAddress:"Slave IP Address",port:"Port",watchDog:"Watch Dog",slavePort:"Slave Port",bindToAdapter:"Bind to Adapter",holdingRegister:"Holding Register",writable:"Writable",inputRegister:"Input Register",discreteBitArea:"Discrete Bit Area",coil:"Coil",discreteInput:"Discrete Input",dataModel:"Data Model",startAddress:"Start Address"}}});typeof window<"u"&&(window.$t=Oe.global.t.bind(Oe.global),Object.defineProperty(window,"$locale",{get(){return typeof Oe.global.locale=="string"?Oe.global.locale:Oe.global.locale.value},set(e){Oe.global.locale=e}})),L.createApp(Rr).use(Oe).mount("#app");const _o=[sn,an,_t,ln,on],mo={install(e){_o.forEach(t=>{e.component(t.name,t)})}};K.Button2=an,K.EthernetProtocolItem=Ue,K.Input=_t,K.InputNumber=ln,K.IpInput=on,K.ModbusTCPClientProtocolItem=qe,K.ModbusTCPServerProtocolItem=Qe,K.ModbusTCPSlaveDeviceProtocolItem=Ze,K.MyButton=sn,K.MyLibPlugin=Pr,K.ProtocolCollection=cn,K.ProtocolItem=ne,K.ProtocolType=ue,K.default=mo,K.protocolMap=$e,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/dist/plugin.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { App } from 'vue';
2
- export interface UIComponentsMap {
3
- Input?: any;
4
- Button?: any;
5
- InputNumber?: any;
6
- [key: string]: any;
2
+ export interface ComponentModelConfig {
3
+ component: any;
4
+ modelProp?: string;
5
+ modelEvent?: string;
7
6
  }
7
+ export type UIComponentsMap = Record<string, ComponentModelConfig>;
8
8
  export declare function MyLibPlugin(app: App, components: UIComponentsMap): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lty-protocol",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "main": "dist/lty-protocol.umd.js",
5
5
  "module": "dist/lty-protocol.mjs",
6
6
  "style": "dist/lty-protocol.css",
@@ -1,10 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- modelValue: StringConstructor;
3
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
6
- modelValue: StringConstructor;
7
- }>> & Readonly<{
8
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
- export default _default;