lty-protocol 1.0.19 → 1.0.21

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,510 @@
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"}})}));
1
+ (function(ie,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(ie=typeof globalThis<"u"?globalThis:ie||self,s(ie["lty-protocol"]={},ie.Vue))})(this,(function(ie,s){"use strict";function Ql(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 Nr=Ql(s),Zl=s.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(o,a)=>(s.openBlock(),s.createElementBlock("button",{class:"my-btn",onClick:r},[s.renderSlot(o.$slots,"default",{},void 0,!0)]))}}),Uo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},zo=Uo(Zl,[["__scopeId","data-v-c654f959"]]),Wo=Uo(s.defineComponent({name:"MyButton",__name:"button2",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(o,a)=>(s.openBlock(),s.createElementBlock("button",{class:"my-btn",onClick:r},[s.renderSlot(o.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-1477cfc3"]]),Gn=s.defineComponent({__name:"Input",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=s.inject("UIComponents").Input,a=s.ref(n.modelValue);return s.watch(()=>n.modelValue,i=>a.value=i),s.watch(a,i=>r("update:modelValue",i)),(i,l)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(o)),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},null,8,["modelValue"]))}}),es={style:{display:"flex",gap:"4px"}},Ar=s.defineComponent({__name:"IpInput",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=s.ref((n.modelValue||"0.0.0.0").split("."));return s.watch(o,()=>r("update:modelValue",o.value.join(".")),{deep:!0}),s.watch(()=>n.modelValue,a=>o.value=(a||"0.0.0.0").split(".")),(a,i)=>(s.openBlock(),s.createElementBlock("div",es,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,(l,c)=>(s.openBlock(),s.createBlock(Gn,{key:c,modelValue:o.value[c],"onUpdate:modelValue":m=>o.value[c]=m},null,8,["modelValue","onUpdate:modelValue"]))),128))]))}}),jo=s.defineComponent({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,a=s.inject("UIComponents",{}).Input,i=a?.modelProp||"modelValue",l=a?.modelEvent||"update:modelValue",c=s.computed(()=>({[i]:n.modelValue,[l]:p=>r("update:modelValue",p)})),m=a?.component;return(p,_)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(m)),s.normalizeProps(s.guardReactiveProps(c.value)),null,16))}});function Go(e,t){e.provide("UIComponents",t)}function ts(e){let t=".",n="__",r="--",o;if(e){let g=e.blockPrefix;g&&(t=g),g=e.elementPrefix,g&&(n=g),g=e.modifierPrefix,g&&(r=g)}const a={install(g){o=g.c;const T=g.context;T.bem={},T.bem.b=null,T.bem.els=null}};function i(g){let T,x;return{before(h){T=h.bem.b,x=h.bem.els,h.bem.els=null},after(h){h.bem.b=T,h.bem.els=x},$({context:h,props:y}){return g=typeof g=="string"?g:g({context:h,props:y}),h.bem.b=g,`${y?.bPrefix||t}${h.bem.b}`}}}function l(g){let T;return{before(x){T=x.bem.els},after(x){x.bem.els=T},$({context:x,props:h}){return g=typeof g=="string"?g:g({context:x,props:h}),x.bem.els=g.split(",").map(y=>y.trim()),x.bem.els.map(y=>`${h?.bPrefix||t}${x.bem.b}${n}${y}`).join(", ")}}}function c(g){return{$({context:T,props:x}){g=typeof g=="string"?g:g({context:T,props:x});const h=g.split(",").map(v=>v.trim());function y(v){return h.map(O=>`&${x?.bPrefix||t}${T.bem.b}${v!==void 0?`${n}${v}`:""}${r}${O}`).join(", ")}const I=T.bem.els;if(I!==null){if(process.env.NODE_ENV!=="production"&&I.length>=2)throw Error(`[css-render/plugin-bem]: m(${g}) is invalid, using modifier inside multiple elements is not allowed`);return y(I[0])}else return y()}}}function m(g){return{$({context:T,props:x}){g=typeof g=="string"?g:g({context:T,props:x});const h=T.bem.els;if(process.env.NODE_ENV!=="production"&&h!==null&&h.length>=2)throw Error(`[css-render/plugin-bem]: notM(${g}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${x?.bPrefix||t}${T.bem.b}${h!==null&&h.length>0?`${n}${h[0]}`:""}${r}${g})`}}}return Object.assign(a,{cB:((...g)=>o(i(g[0]),g[1],g[2])),cE:((...g)=>o(l(g[0]),g[1],g[2])),cM:((...g)=>o(c(g[0]),g[1],g[2])),cNotM:((...g)=>o(m(g[0]),g[1],g[2]))}),a}function ns(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Yo=/\s*,(?![^(]*\))\s*/g,rs=/\s+/g;function os(e,t){const n=[];return t.split(Yo).forEach(r=>{let o=ns(r);if(o){if(o===1){e.forEach(i=>{n.push(r.replace("&",i))});return}}else{e.forEach(i=>{n.push((i&&i+" ")+r)});return}let a=[r];for(;o--;){const i=[];a.forEach(l=>{e.forEach(c=>{i.push(l.replace("&",c))})}),a=i}a.forEach(i=>n.push(i))}),n}function as(e,t){const n=[];return t.split(Yo).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function is(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=os(t,n):t=as(t,n))}),t.join(", ").replace(rs," ")}function Ko(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Yn(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ls(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Kn(e){return e?/^\s*@(s|m)/.test(e):!1}const ss=/[A-Z]/g;function Xo(e){return e.replace(ss,t=>"-"+t.toLowerCase())}function cs(e,t=" "){return typeof e=="object"&&e!==null?` {
2
+ `+Object.entries(e).map(n=>t+` ${Xo(n[0])}: ${n[1]};`).join(`
3
+ `)+`
4
+ `+t+"}":`: ${e};`}function us(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function qo(e,t,n,r){if(!t)return"";const o=us(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
5
+ ${o}
6
+ }`;const a=Object.keys(o);if(a.length===0)return n.config.keepEmptyBlock?e+` {
7
+ }`:"";const i=e?[e+" {"]:[];return a.forEach(l=>{const c=o[l];if(l==="raw"){i.push(`
8
+ `+c+`
9
+ `);return}l=Xo(l),c!=null&&i.push(` ${l}${cs(c)}`)}),e&&i.push("}"),i.join(`
10
+ `)}function Rr(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Rr(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Rr(o,t,n):o&&n(o)}else r&&n(r)})}function Vo(e,t,n,r,o){const a=e.$;let i="";if(!a||typeof a=="string")Kn(a)?i=a:t.push(a);else if(typeof a=="function"){const m=a({context:r.context,props:o});Kn(m)?i=m:t.push(m)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")Kn(a.$)?i=a.$:t.push(a.$);else if(a.$){const m=a.$({context:r.context,props:o});Kn(m)?i=m:t.push(m)}const l=is(t),c=qo(l,e.props,r,o);i?n.push(`${i} {`):c.length&&n.push(c),e.children&&Rr(e.children,{context:r.context,props:o},m=>{if(typeof m=="string"){const p=qo(l,{raw:m},r,o);n.push(p)}else Vo(m,t,n,r,o)}),t.pop(),i&&n.push("}"),a&&a.after&&a.after(r.context)}function ds(e,t,n){const r=[];return Vo(e,[],r,t,n),r.join(`
11
+
12
+ `)}function Dr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function fs(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(Ko),t.els=[];else{const a=Yn(n,r);a&&o.includes(a)&&(Ko(a),t.els=o.filter(i=>i!==a))}}function Jo(e,t){e.push(t)}function hs(e,t,n,r,o,a,i,l,c){let m;if(n===void 0&&(m=t.render(r),n=Dr(m)),c){c.adapter(n,m??t.render(r));return}l===void 0&&(l=document.head);const p=Yn(n,l);if(p!==null&&!a)return p;const _=p??ls(n);if(m===void 0&&(m=t.render(r)),_.textContent=m,p!==null)return p;if(i){const E=l.querySelector(`meta[name="${i}"]`);if(E)return l.insertBefore(_,E),Jo(t.els,_),_}return o?l.insertBefore(_,l.querySelector("style, link")):l.appendChild(_),Jo(t.els,_),_}function ms(e){return ds(this,this.instance,e)}function ps(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:a=!1,anchorMetaName:i,parent:l}=e;return hs(this.instance,this,t,r,o,a,i,l,n)}function gs(e={}){const{id:t,parent:n}=e;fs(this.instance,this,t,n)}const Xn=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:ms,mount:ps,unmount:gs}},vs=function(e,t,n,r){return Array.isArray(t)?Xn(e,{$:null},null,t):Array.isArray(n)?Xn(e,t,null,n):Array.isArray(r)?Xn(e,t,n,r):Xn(e,t,n,null)};function bs(e={}){const t={c:((...n)=>vs(t,...n)),use:(n,...r)=>n.install(t,...r),find:Yn,context:{},config:e};return t}function _s(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Yn(e)!==null}const ys=".n-",Es="__",Cs="--",Qo=bs(),Zo=ts({blockPrefix:ys,elementPrefix:Es,modifierPrefix:Cs});Qo.use(Zo);const{c:W,find:yv}=Qo,{cB:ce,cE:H,cM:he,cNotM:Ht}=Zo;function Q(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}function Ts(e){return e.composedPath()[0]||null}function ea(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function rn(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return r}const ta={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function xs(e,t,n){t/=100,n/=100;let r=(o,a=(o+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function ws(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(a,i=(a+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const ft="^\\s*",ht="\\s*$",At="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Ve="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Ut="([0-9A-Fa-f])",zt="([0-9A-Fa-f]{2})",na=new RegExp(`${ft}hsl\\s*\\(${Ve},${At},${At}\\)${ht}`),ra=new RegExp(`${ft}hsv\\s*\\(${Ve},${At},${At}\\)${ht}`),oa=new RegExp(`${ft}hsla\\s*\\(${Ve},${At},${At},${Ve}\\)${ht}`),aa=new RegExp(`${ft}hsva\\s*\\(${Ve},${At},${At},${Ve}\\)${ht}`),Ss=new RegExp(`${ft}rgb\\s*\\(${Ve},${Ve},${Ve}\\)${ht}`),Ps=new RegExp(`${ft}rgba\\s*\\(${Ve},${Ve},${Ve},${Ve}\\)${ht}`),Is=new RegExp(`${ft}#${Ut}${Ut}${Ut}${ht}`),Os=new RegExp(`${ft}#${zt}${zt}${zt}${ht}`),Ns=new RegExp(`${ft}#${Ut}${Ut}${Ut}${Ut}${ht}`),As=new RegExp(`${ft}#${zt}${zt}${zt}${zt}${ht}`);function Ye(e){return parseInt(e,16)}function Rs(e){try{let t;if(t=oa.exec(e))return[Vn(t[1]),Dt(t[5]),Dt(t[9]),jt(t[13])];if(t=na.exec(e))return[Vn(t[1]),Dt(t[5]),Dt(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Ds(e){try{let t;if(t=aa.exec(e))return[Vn(t[1]),Dt(t[5]),Dt(t[9]),jt(t[13])];if(t=ra.exec(e))return[Vn(t[1]),Dt(t[5]),Dt(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Rt(e){try{let t;if(t=Os.exec(e))return[Ye(t[1]),Ye(t[2]),Ye(t[3]),1];if(t=Ss.exec(e))return[$e(t[1]),$e(t[5]),$e(t[9]),1];if(t=Ps.exec(e))return[$e(t[1]),$e(t[5]),$e(t[9]),jt(t[13])];if(t=Is.exec(e))return[Ye(t[1]+t[1]),Ye(t[2]+t[2]),Ye(t[3]+t[3]),1];if(t=As.exec(e))return[Ye(t[1]),Ye(t[2]),Ye(t[3]),jt(Ye(t[4])/255)];if(t=Ns.exec(e))return[Ye(t[1]+t[1]),Ye(t[2]+t[2]),Ye(t[3]+t[3]),jt(Ye(t[4]+t[4])/255)];if(e in ta)return Rt(ta[e]);if(na.test(e)||oa.test(e)){const[n,r,o,a]=Rs(e);return[...ws(n,r,o),a]}else if(ra.test(e)||aa.test(e)){const[n,r,o,a]=Ds(e);return[...xs(n,r,o),a]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Ls(e){return e>1?1:e<0?0:e}function Lr(e,t,n,r){return`rgba(${$e(e)}, ${$e(t)}, ${$e(n)}, ${Ls(r)})`}function $r(e,t,n,r,o){return $e((e*t*(1-r)+n*r)/o)}function Mr(e,t){Array.isArray(e)||(e=Rt(e)),Array.isArray(t)||(t=Rt(t));const n=e[3],r=t[3],o=jt(n+r-n*r);return Lr($r(e[0],n,t[0],r,o),$r(e[1],n,t[1],r,o),$r(e[2],n,t[2],r,o),o)}function Wt(e,t){const[n,r,o,a=1]=Array.isArray(e)?e:Rt(e);return typeof t.alpha=="number"?Lr(n,r,o,t.alpha):Lr(n,r,o,a)}function qn(e,t){const[n,r,o,a=1]=Array.isArray(e)?e:Rt(e),{lightness:i=1,alpha:l=1}=t;return $s([n*i,r*i,o*i,a*l])}function jt(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Vn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function $e(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Dt(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function $s(e){const[t,n,r]=e;return 3 in e?`rgba(${$e(t)}, ${$e(n)}, ${$e(r)}, ${jt(e[3])})`:`rgba(${$e(t)}, ${$e(n)}, ${$e(r)}, 1)`}function Jn(e){return e.composedPath()[0]}const Ms={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Fs(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Jn(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=i=>{r=!t.contains(Jn(i))},a=i=>{r&&(t.contains(Jn(i))||n(i))};return{mousedown:o,mouseup:a,touchstart:o,touchend:a}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function ia(e,t,n){const r=Ms[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let a=o.get(n);return a===void 0&&o.set(n,a=Fs(e,t,n)),a}function ks(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=ia(e,t,n);return Object.keys(o).forEach(a=>{Ct(a,document,o[a],r)}),!0}return!1}function Bs(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=ia(e,t,n);return Object.keys(o).forEach(a=>{Tt(a,document,o[a],r)}),!0}return!1}function Hs(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(d,P,A){const k=d[P];return d[P]=function(){return A.apply(d,arguments),k.apply(d,arguments)},d}function a(d,P){d[P]=Event.prototype[P]}const i=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function c(){var d;return(d=i.get(this))!==null&&d!==void 0?d:null}function m(d,P){l!==void 0&&Object.defineProperty(d,"currentTarget",{configurable:!0,enumerable:!0,get:P??l.get})}const p={bubble:{},capture:{}},_={};function E(){const d=function(P){const{type:A,eventPhase:k,bubbles:z}=P,B=Jn(P);if(k===2)return;const ae=k===1?"capture":"bubble";let re=B;const se=[];for(;re===null&&(re=window),se.push(re),re!==window;)re=re.parentNode||null;const ne=p.capture[A],Y=p.bubble[A];if(o(P,"stopPropagation",n),o(P,"stopImmediatePropagation",r),m(P,c),ae==="capture"){if(ne===void 0)return;for(let ve=se.length-1;ve>=0&&!e.has(P);--ve){const Ie=se[ve],de=ne.get(Ie);if(de!==void 0){i.set(P,Ie);for(const Oe of de){if(t.has(P))break;Oe(P)}}if(ve===0&&!z&&Y!==void 0){const Oe=Y.get(Ie);if(Oe!==void 0)for(const We of Oe){if(t.has(P))break;We(P)}}}}else if(ae==="bubble"){if(Y===void 0)return;for(let ve=0;ve<se.length&&!e.has(P);++ve){const Ie=se[ve],de=Y.get(Ie);if(de!==void 0){i.set(P,Ie);for(const Oe of de){if(t.has(P))break;Oe(P)}}}}a(P,"stopPropagation"),a(P,"stopImmediatePropagation"),m(P)};return d.displayName="evtdUnifiedHandler",d}function S(){const d=function(P){const{type:A,eventPhase:k}=P;if(k!==2)return;const z=_[A];z!==void 0&&z.forEach(B=>B(P))};return d.displayName="evtdUnifiedWindowEventHandler",d}const g=E(),T=S();function x(d,P){const A=p[d];return A[P]===void 0&&(A[P]=new Map,window.addEventListener(P,g,d==="capture")),A[P]}function h(d){return _[d]===void 0&&(_[d]=new Set,window.addEventListener(d,T)),_[d]}function y(d,P){let A=d.get(P);return A===void 0&&d.set(P,A=new Set),A}function I(d,P,A,k){const z=p[P][A];if(z!==void 0){const B=z.get(d);if(B!==void 0&&B.has(k))return!0}return!1}function v(d,P){const A=_[d];return!!(A!==void 0&&A.has(P))}function O(d,P,A,k){let z;if(typeof k=="object"&&k.once===!0?z=ne=>{N(d,P,z,k),A(ne)}:z=A,ks(d,P,z,k))return;const ae=k===!0||typeof k=="object"&&k.capture===!0?"capture":"bubble",re=x(ae,d),se=y(re,P);if(se.has(z)||se.add(z),P===window){const ne=h(d);ne.has(z)||ne.add(z)}}function N(d,P,A,k){if(Bs(d,P,A,k))return;const B=k===!0||typeof k=="object"&&k.capture===!0,ae=B?"capture":"bubble",re=x(ae,d),se=y(re,P);if(P===window&&!I(P,B?"bubble":"capture",d,A)&&v(d,A)){const Y=_[d];Y.delete(A),Y.size===0&&(window.removeEventListener(d,T),_[d]=void 0)}se.has(A)&&se.delete(A),se.size===0&&re.delete(P),re.size===0&&(window.removeEventListener(d,g,ae==="capture"),p[ae][d]=void 0)}return{on:O,off:N}}const{on:Ct,off:Tt}=Hs();function mt(e){const t=s.computed(e),n=s.ref(t.value);return s.watch(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function la(e,t){return s.watch(e,n=>{n!==void 0&&(t.value=n)}),s.computed(()=>e.value===void 0?t.value:e.value)}function Us(){const e=s.ref(!1);return s.onMounted(()=>{e.value=!0}),s.readonly(e)}const zs=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Ws(){return zs}function Ev(e){return e}const Qn=typeof document<"u"&&typeof window<"u";function js(e){const t={isDeactivated:!1};let n=!1;return s.onActivated(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),s.onDeactivated(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const Gs="@css-render/vue3-ssr";function Ys(e,t){return`<style cssr-id="${e}">
13
+ ${t}
14
+ </style>`}function Ks(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(Ys(e,t)))}const Xs=typeof document<"u";function Zn(){if(Xs)return;const e=s.inject(Gs,null);if(e!==null)return{adapter:(t,n)=>Ks(t,n,e),context:e}}function sa(e,t){console.error(`[vueuc/${e}]: ${t}`)}var Gt=[],qs=function(){return Gt.some(function(e){return e.activeTargets.length>0})},Vs=function(){return Gt.some(function(e){return e.skippedTargets.length>0})},ca="ResizeObserver loop completed with undelivered notifications.",Js=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ca}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ca),window.dispatchEvent(e)},Cn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Cn||(Cn={}));var Yt=function(e){return Object.freeze(e)},Qs=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Yt(this)}return e})(),ua=(function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Yt(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,a=t.right,i=t.bottom,l=t.left,c=t.width,m=t.height;return{x:n,y:r,top:o,right:a,bottom:i,left:l,width:c,height:m}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),Fr=function(e){return e instanceof SVGElement&&"getBBox"in e},da=function(e){if(Fr(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,a=o.offsetWidth,i=o.offsetHeight;return!(a||i||e.getClientRects().length)},fa=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Zs=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Tn=typeof window<"u"?window:{},er=new WeakMap,ha=/auto|scroll/,ec=/^tb|vertical/,tc=/msie|trident/i.test(Tn.navigator&&Tn.navigator.userAgent),pt=function(e){return parseFloat(e||"0")},on=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Qs((n?t:e)||0,(n?e:t)||0)},ma=Yt({devicePixelContentBoxSize:on(),borderBoxSize:on(),contentBoxSize:on(),contentRect:new ua(0,0,0,0)}),pa=function(e,t){if(t===void 0&&(t=!1),er.has(e)&&!t)return er.get(e);if(da(e))return er.set(e,ma),ma;var n=getComputedStyle(e),r=Fr(e)&&e.ownerSVGElement&&e.getBBox(),o=!tc&&n.boxSizing==="border-box",a=ec.test(n.writingMode||""),i=!r&&ha.test(n.overflowY||""),l=!r&&ha.test(n.overflowX||""),c=r?0:pt(n.paddingTop),m=r?0:pt(n.paddingRight),p=r?0:pt(n.paddingBottom),_=r?0:pt(n.paddingLeft),E=r?0:pt(n.borderTopWidth),S=r?0:pt(n.borderRightWidth),g=r?0:pt(n.borderBottomWidth),T=r?0:pt(n.borderLeftWidth),x=_+m,h=c+p,y=T+S,I=E+g,v=l?e.offsetHeight-I-e.clientHeight:0,O=i?e.offsetWidth-y-e.clientWidth:0,N=o?x+y:0,d=o?h+I:0,P=r?r.width:pt(n.width)-N-O,A=r?r.height:pt(n.height)-d-v,k=P+x+O+y,z=A+h+v+I,B=Yt({devicePixelContentBoxSize:on(Math.round(P*devicePixelRatio),Math.round(A*devicePixelRatio),a),borderBoxSize:on(k,z,a),contentBoxSize:on(P,A,a),contentRect:new ua(_,c,P,A)});return er.set(e,B),B},ga=function(e,t,n){var r=pa(e,n),o=r.borderBoxSize,a=r.contentBoxSize,i=r.devicePixelContentBoxSize;switch(t){case Cn.DEVICE_PIXEL_CONTENT_BOX:return i;case Cn.BORDER_BOX:return o;default:return a}},nc=(function(){function e(t){var n=pa(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Yt([n.borderBoxSize]),this.contentBoxSize=Yt([n.contentBoxSize]),this.devicePixelContentBoxSize=Yt([n.devicePixelContentBoxSize])}return e})(),va=function(e){if(da(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},rc=function(){var e=1/0,t=[];Gt.forEach(function(i){if(i.activeTargets.length!==0){var l=[];i.activeTargets.forEach(function(m){var p=new nc(m.target),_=va(m.target);l.push(p),m.lastReportedSize=ga(m.target,m.observedBox),_<e&&(e=_)}),t.push(function(){i.callback.call(i.observer,l,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},ba=function(e){Gt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(va(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},oc=function(){var e=0;for(ba(e);qs();)e=rc(),ba(e);return Vs()&&Js(),e>0},kr,_a=[],ac=function(){return _a.splice(0).forEach(function(e){return e()})},ic=function(e){if(!kr){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return ac()}).observe(n,r),kr=function(){n.textContent="".concat(t?t--:t++)}}_a.push(e),kr()},lc=function(e){ic(function(){requestAnimationFrame(e)})},tr=0,sc=function(){return!!tr},cc=250,uc={attributes:!0,characterData:!0,childList:!0,subtree:!0},ya=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ea=function(e){return e===void 0&&(e=0),Date.now()+e},Br=!1,dc=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=cc),!Br){Br=!0;var r=Ea(t);lc(function(){var o=!1;try{o=oc()}finally{if(Br=!1,t=r-Ea(),!sc())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,uc)};document.body?n():Tn.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ya.forEach(function(n){return Tn.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ya.forEach(function(n){return Tn.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e})(),Hr=new dc,Ca=function(e){!tr&&e>0&&Hr.start(),tr+=e,!tr&&Hr.stop()},fc=function(e){return!Fr(e)&&!Zs(e)&&getComputedStyle(e).display==="inline"},hc=(function(){function e(t,n){this.target=t,this.observedBox=n||Cn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ga(this.target,this.observedBox,!0);return fc(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),mc=(function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e})(),nr=new WeakMap,Ta=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},rr=(function(){function e(){}return e.connect=function(t,n){var r=new mc(t,n);nr.set(t,r)},e.observe=function(t,n,r){var o=nr.get(t),a=o.observationTargets.length===0;Ta(o.observationTargets,n)<0&&(a&&Gt.push(o),o.observationTargets.push(new hc(n,r&&r.box)),Ca(1),Hr.schedule())},e.unobserve=function(t,n){var r=nr.get(t),o=Ta(r.observationTargets,n),a=r.observationTargets.length===1;o>=0&&(a&&Gt.splice(Gt.indexOf(r),1),r.observationTargets.splice(o,1),Ca(-1))},e.disconnect=function(t){var n=this,r=nr.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),pc=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");rr.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!fa(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");rr.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!fa(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");rr.unobserve(this,t)},e.prototype.disconnect=function(){rr.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();class gc{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||pc)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const xa=new gc,Ur=s.defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=s.getCurrentInstance().proxy;function r(o){const{onResize:a}=e;a!==void 0&&a(o)}s.onMounted(()=>{const o=n.$el;if(o===void 0){sa("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){sa("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(xa.registerHandler(o.nextElementSibling,r),t=!0)}),s.onBeforeUnmount(()=>{t&&xa.unregisterHandler(n.$el.nextElementSibling)})},render(){return s.renderSlot(this.$slots,"default")}});function wa(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Sa(e){const{left:t,right:n,top:r,bottom:o}=rn(e);return`${r} ${t} ${o} ${n}`}const Pa=new Set;function Ia(e,t){const n=`[naive/${e}]: ${t}`;Pa.has(n)||(Pa.add(n),console.error(n))}function Oa(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Te(e,...t){if(Array.isArray(e))e.forEach(n=>Te(n,...t));else return e(...t)}function xn(e){return e.some(t=>s.isVNode(t)?!(t.type===s.Comment||t.type===s.Fragment&&!xn(t.children)):!0)?e:null}function Kt(e,t){return e&&xn(e())||t()}function vc(e,t,n){return e&&xn(e(t))||n(t)}function Lt(e,t){const n=e&&xn(e());return t(n||null)}function bc(e){return!(e&&xn(e()))}const Na=s.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Xt="n-config-provider",_c="n";function or(e={},t={defaultBordered:!0}){const n=s.inject(Xt,null);return{inlineThemeDisabled:n?.inlineThemeDisabled,mergedRtlRef:n?.mergedRtlRef,mergedComponentPropsRef:n?.mergedComponentPropsRef,mergedBreakpointsRef:n?.mergedBreakpointsRef,mergedBorderedRef:s.computed(()=>{var r,o;const{bordered:a}=e;return a!==void 0?a:(o=(r=n?.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:s.shallowRef(_c),namespaceRef:s.computed(()=>n?.mergedNamespaceRef.value)}}function zr(e,t,n,r){n||Oa("useThemeClass","cssVarsRef is not passed");const o=s.inject(Xt,null),a=o?.mergedThemeHashRef,i=o?.styleMountTarget,l=s.ref(""),c=Zn();let m;const p=`__${e}`,_=()=>{let E=p;const S=t?t.value:void 0,g=a?.value;g&&(E+=`-${g}`),S&&(E+=`-${S}`);const{themeOverrides:T,builtinThemeOverrides:x}=r;T&&(E+=`-${Dr(JSON.stringify(T))}`),x&&(E+=`-${Dr(JSON.stringify(x))}`),l.value=E,m=()=>{const h=n.value;let y="";for(const I in h)y+=`${I}: ${h[I]};`;W(`.${E}`,y).mount({id:E,ssr:c,parent:i}),m=void 0}};return s.watchEffect(()=>{_()}),{themeClass:l,onRender:()=>{m?.()}}}const Aa="n-form-item";function Wr(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=s.inject(Aa,null);s.provide(Aa,null);const a=s.computed(n?()=>n(o):()=>{const{size:c}=e;if(c)return c;if(o){const{mergedSize:m}=o;if(m.value!==void 0)return m.value}return t}),i=s.computed(r?()=>r(o):()=>{const{disabled:c}=e;return c!==void 0?c:o?o.disabled.value:!1}),l=s.computed(()=>{const{status:c}=e;return c||o?.mergedValidationStatus.value});return s.onBeforeUnmount(()=>{o&&o.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:i,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}const yc={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}};function jr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function wn(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}function Sn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Cc(l,_=>_.test(i)):Ec(l,_=>_.test(i));let m;m=e.valueCallback?e.valueCallback(c):c,m=n.valueCallback?n.valueCallback(m):m;const p=t.slice(i.length);return{value:m,rest:p}}}function Ec(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Cc(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Tc(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const l=t.slice(o.length);return{value:i,rest:l}}}const xc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wc=(e,t,n)=>{let r;const o=xc[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},Sc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pc=(e,t,n,r)=>Sc[e],Ic={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Oc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Nc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ac={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Rc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Dc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Lc={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:wn({values:Ic,defaultWidth:"wide"}),quarter:wn({values:Oc,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wn({values:Nc,defaultWidth:"wide"}),day:wn({values:Ac,defaultWidth:"wide"}),dayPeriod:wn({values:Rc,defaultWidth:"wide",formattingValues:Dc,defaultFormattingWidth:"wide"})},$c=/^(\d+)(th|st|nd|rd)?/i,Mc=/\d+/i,Fc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},kc={any:[/^b/i,/^(a|c)/i]},Bc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hc={any:[/1/i,/2/i,/3/i,/4/i]},Uc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Wc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Gc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Yc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kc={ordinalNumber:Tc({matchPattern:$c,parsePattern:Mc,valueCallback:e=>parseInt(e,10)}),era:Sn({matchPatterns:Fc,defaultMatchWidth:"wide",parsePatterns:kc,defaultParseWidth:"any"}),quarter:Sn({matchPatterns:Bc,defaultMatchWidth:"wide",parsePatterns:Hc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Sn({matchPatterns:Uc,defaultMatchWidth:"wide",parsePatterns:zc,defaultParseWidth:"any"}),day:Sn({matchPatterns:Wc,defaultMatchWidth:"wide",parsePatterns:jc,defaultParseWidth:"any"}),dayPeriod:Sn({matchPatterns:Gc,defaultMatchWidth:"any",parsePatterns:Yc,defaultParseWidth:"any"})},Xc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jc={date:jr({formats:Xc,defaultWidth:"full"}),time:jr({formats:qc,defaultWidth:"full"}),dateTime:jr({formats:Vc,defaultWidth:"full"})},Qc={name:"en-US",locale:{code:"en-US",formatDistance:wc,formatLong:Jc,formatRelative:Pc,localize:Lc,match:Kc,options:{weekStartsOn:0,firstWeekContainsDate:1}}};var Ra=typeof global=="object"&&global&&global.Object===Object&&global,Zc=typeof self=="object"&&self&&self.Object===Object&&self,an=Ra||Zc||Function("return this")(),ln=an.Symbol,Da=Object.prototype,eu=Da.hasOwnProperty,tu=Da.toString,Pn=ln?ln.toStringTag:void 0;function nu(e){var t=eu.call(e,Pn),n=e[Pn];try{e[Pn]=void 0;var r=!0}catch{}var o=tu.call(e);return r&&(t?e[Pn]=n:delete e[Pn]),o}var ru=Object.prototype,ou=ru.toString;function au(e){return ou.call(e)}var iu="[object Null]",lu="[object Undefined]",La=ln?ln.toStringTag:void 0;function In(e){return e==null?e===void 0?lu:iu:La&&La in Object(e)?nu(e):au(e)}function sn(e){return e!=null&&typeof e=="object"}var su="[object Symbol]";function cu(e){return typeof e=="symbol"||sn(e)&&In(e)==su}function uu(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ar=Array.isArray,$a=ln?ln.prototype:void 0,Ma=$a?$a.toString:void 0;function Fa(e){if(typeof e=="string")return e;if(ar(e))return uu(e,Fa)+"";if(cu(e))return Ma?Ma.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ka(e){return e}var du="[object AsyncFunction]",fu="[object Function]",hu="[object GeneratorFunction]",mu="[object Proxy]";function Gr(e){if(!qt(e))return!1;var t=In(e);return t==fu||t==hu||t==du||t==mu}var Yr=an["__core-js_shared__"],Ba=(function(){var e=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function pu(e){return!!Ba&&Ba in e}var gu=Function.prototype,vu=gu.toString;function bu(e){if(e!=null){try{return vu.call(e)}catch{}try{return e+""}catch{}}return""}var _u=/[\\^$.*+?()[\]{}|]/g,yu=/^\[object .+?Constructor\]$/,Eu=Function.prototype,Cu=Object.prototype,Tu=Eu.toString,xu=Cu.hasOwnProperty,wu=RegExp("^"+Tu.call(xu).replace(_u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Su(e){if(!qt(e)||pu(e))return!1;var t=Gr(e)?wu:yu;return t.test(bu(e))}function Pu(e,t){return e?.[t]}function Kr(e,t){var n=Pu(e,t);return Su(n)?n:void 0}var Ha=Object.create,Iu=(function(){function e(){}return function(t){if(!qt(t))return{};if(Ha)return Ha(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function Ou(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Nu(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Au=800,Ru=16,Du=Date.now;function Lu(e){var t=0,n=0;return function(){var r=Du(),o=Ru-(r-n);if(n=r,o>0){if(++t>=Au)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function $u(e){return function(){return e}}var ir=(function(){try{var e=Kr(Object,"defineProperty");return e({},"",{}),e}catch{}})(),Mu=ir?function(e,t){return ir(e,"toString",{configurable:!0,enumerable:!1,value:$u(t),writable:!0})}:ka,Fu=Lu(Mu),ku=9007199254740991,Bu=/^(?:0|[1-9]\d*)$/;function Ua(e,t){var n=typeof e;return t=t??ku,!!t&&(n=="number"||n!="symbol"&&Bu.test(e))&&e>-1&&e%1==0&&e<t}function Xr(e,t,n){t=="__proto__"&&ir?ir(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){return e===t||e!==e&&t!==t}var Hu=Object.prototype,Uu=Hu.hasOwnProperty;function zu(e,t,n){var r=e[t];(!(Uu.call(e,t)&&lr(r,n))||n===void 0&&!(t in e))&&Xr(e,t,n)}function Wu(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var l=t[a],c=void 0;c===void 0&&(c=e[l]),o?Xr(n,l,c):zu(n,l,c)}return n}var za=Math.max;function ju(e,t,n){return t=za(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=za(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(i),Ou(e,this,l)}}function Gu(e,t){return Fu(ju(e,t,ka),e+"")}var Yu=9007199254740991;function Wa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yu}function qr(e){return e!=null&&Wa(e.length)&&!Gr(e)}function Ku(e,t,n){if(!qt(n))return!1;var r=typeof t;return(r=="number"?qr(n)&&Ua(t,n.length):r=="string"&&t in n)?lr(n[t],e):!1}function Xu(e){return Gu(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Ku(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}var qu=Object.prototype;function ja(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qu;return e===n}function Vu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Ju="[object Arguments]";function Ga(e){return sn(e)&&In(e)==Ju}var Ya=Object.prototype,Qu=Ya.hasOwnProperty,Zu=Ya.propertyIsEnumerable,Vr=Ga((function(){return arguments})())?Ga:function(e){return sn(e)&&Qu.call(e,"callee")&&!Zu.call(e,"callee")};function ed(){return!1}var Ka=typeof ie=="object"&&ie&&!ie.nodeType&&ie,Xa=Ka&&typeof module=="object"&&module&&!module.nodeType&&module,td=Xa&&Xa.exports===Ka,qa=td?an.Buffer:void 0,nd=qa?qa.isBuffer:void 0,Va=nd||ed,rd="[object Arguments]",od="[object Array]",ad="[object Boolean]",id="[object Date]",ld="[object Error]",sd="[object Function]",cd="[object Map]",ud="[object Number]",dd="[object Object]",fd="[object RegExp]",hd="[object Set]",md="[object String]",pd="[object WeakMap]",gd="[object ArrayBuffer]",vd="[object DataView]",bd="[object Float32Array]",_d="[object Float64Array]",yd="[object Int8Array]",Ed="[object Int16Array]",Cd="[object Int32Array]",Td="[object Uint8Array]",xd="[object Uint8ClampedArray]",wd="[object Uint16Array]",Sd="[object Uint32Array]",Ee={};Ee[bd]=Ee[_d]=Ee[yd]=Ee[Ed]=Ee[Cd]=Ee[Td]=Ee[xd]=Ee[wd]=Ee[Sd]=!0,Ee[rd]=Ee[od]=Ee[gd]=Ee[ad]=Ee[vd]=Ee[id]=Ee[ld]=Ee[sd]=Ee[cd]=Ee[ud]=Ee[dd]=Ee[fd]=Ee[hd]=Ee[md]=Ee[pd]=!1;function Pd(e){return sn(e)&&Wa(e.length)&&!!Ee[In(e)]}function Id(e){return function(t){return e(t)}}var Ja=typeof ie=="object"&&ie&&!ie.nodeType&&ie,On=Ja&&typeof module=="object"&&module&&!module.nodeType&&module,Od=On&&On.exports===Ja,Jr=Od&&Ra.process,Qa=(function(){try{var e=On&&On.require&&On.require("util").types;return e||Jr&&Jr.binding&&Jr.binding("util")}catch{}})(),Za=Qa&&Qa.isTypedArray,ei=Za?Id(Za):Pd;function Nd(e,t){var n=ar(e),r=!n&&Vr(e),o=!n&&!r&&Va(e),a=!n&&!r&&!o&&ei(e),i=n||r||o||a,l=i?Vu(e.length,String):[],c=l.length;for(var m in e)i&&(m=="length"||o&&(m=="offset"||m=="parent")||a&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||Ua(m,c))||l.push(m);return l}function Ad(e,t){return function(n){return e(t(n))}}function Rd(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Dd=Object.prototype,Ld=Dd.hasOwnProperty;function $d(e){if(!qt(e))return Rd(e);var t=ja(e),n=[];for(var r in e)r=="constructor"&&(t||!Ld.call(e,r))||n.push(r);return n}function ti(e){return qr(e)?Nd(e):$d(e)}var Nn=Kr(Object,"create");function Md(){this.__data__=Nn?Nn(null):{},this.size=0}function Fd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kd="__lodash_hash_undefined__",Bd=Object.prototype,Hd=Bd.hasOwnProperty;function Ud(e){var t=this.__data__;if(Nn){var n=t[e];return n===kd?void 0:n}return Hd.call(t,e)?t[e]:void 0}var zd=Object.prototype,Wd=zd.hasOwnProperty;function jd(e){var t=this.__data__;return Nn?t[e]!==void 0:Wd.call(t,e)}var Gd="__lodash_hash_undefined__";function Yd(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===void 0?Gd:t,this}function Vt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vt.prototype.clear=Md,Vt.prototype.delete=Fd,Vt.prototype.get=Ud,Vt.prototype.has=jd,Vt.prototype.set=Yd;function Kd(){this.__data__=[],this.size=0}function sr(e,t){for(var n=e.length;n--;)if(lr(e[n][0],t))return n;return-1}var Xd=Array.prototype,qd=Xd.splice;function Vd(e){var t=this.__data__,n=sr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():qd.call(t,n,1),--this.size,!0}function Jd(e){var t=this.__data__,n=sr(t,e);return n<0?void 0:t[n][1]}function Qd(e){return sr(this.__data__,e)>-1}function Zd(e,t){var n=this.__data__,r=sr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xt.prototype.clear=Kd,xt.prototype.delete=Vd,xt.prototype.get=Jd,xt.prototype.has=Qd,xt.prototype.set=Zd;var ni=Kr(an,"Map");function ef(){this.size=0,this.__data__={hash:new Vt,map:new(ni||xt),string:new Vt}}function tf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cr(e,t){var n=e.__data__;return tf(t)?n[typeof t=="string"?"string":"hash"]:n.map}function nf(e){var t=cr(this,e).delete(e);return this.size-=t?1:0,t}function rf(e){return cr(this,e).get(e)}function of(e){return cr(this,e).has(e)}function af(e,t){var n=cr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function cn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cn.prototype.clear=ef,cn.prototype.delete=nf,cn.prototype.get=rf,cn.prototype.has=of,cn.prototype.set=af;function lf(e){return e==null?"":Fa(e)}var ri=Ad(Object.getPrototypeOf,Object),sf="[object Object]",cf=Function.prototype,uf=Object.prototype,oi=cf.toString,df=uf.hasOwnProperty,ff=oi.call(Object);function hf(e){if(!sn(e)||In(e)!=sf)return!1;var t=ri(e);if(t===null)return!0;var n=df.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&oi.call(n)==ff}function mf(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}function pf(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:mf(e,t,n)}var gf="\\ud800-\\udfff",vf="\\u0300-\\u036f",bf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",yf=vf+bf+_f,Ef="\\ufe0e\\ufe0f",Cf="\\u200d",Tf=RegExp("["+Cf+gf+yf+Ef+"]");function ai(e){return Tf.test(e)}function xf(e){return e.split("")}var ii="\\ud800-\\udfff",wf="\\u0300-\\u036f",Sf="\\ufe20-\\ufe2f",Pf="\\u20d0-\\u20ff",If=wf+Sf+Pf,Of="\\ufe0e\\ufe0f",Nf="["+ii+"]",Qr="["+If+"]",Zr="\\ud83c[\\udffb-\\udfff]",Af="(?:"+Qr+"|"+Zr+")",li="[^"+ii+"]",si="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",Rf="\\u200d",ui=Af+"?",di="["+Of+"]?",Df="(?:"+Rf+"(?:"+[li,si,ci].join("|")+")"+di+ui+")*",Lf=di+ui+Df,$f="(?:"+[li+Qr+"?",Qr,si,ci,Nf].join("|")+")",Mf=RegExp(Zr+"(?="+Zr+")|"+$f+Lf,"g");function Ff(e){return e.match(Mf)||[]}function kf(e){return ai(e)?Ff(e):xf(e)}function Bf(e){return function(t){t=lf(t);var n=ai(t)?kf(t):void 0,r=n?n[0]:t.charAt(0),o=n?pf(n,1).join(""):t.slice(1);return r[e]()+o}}var Hf=Bf("toUpperCase");function Uf(){this.__data__=new xt,this.size=0}function zf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Wf(e){return this.__data__.get(e)}function jf(e){return this.__data__.has(e)}var Gf=200;function Yf(e,t){var n=this.__data__;if(n instanceof xt){var r=n.__data__;if(!ni||r.length<Gf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cn(r)}return n.set(e,t),this.size=n.size,this}function un(e){var t=this.__data__=new xt(e);this.size=t.size}un.prototype.clear=Uf,un.prototype.delete=zf,un.prototype.get=Wf,un.prototype.has=jf,un.prototype.set=Yf;var fi=typeof ie=="object"&&ie&&!ie.nodeType&&ie,hi=fi&&typeof module=="object"&&module&&!module.nodeType&&module,Kf=hi&&hi.exports===fi,mi=Kf?an.Buffer:void 0;mi&&mi.allocUnsafe;function Xf(e,t){return e.slice()}var pi=an.Uint8Array;function qf(e){var t=new e.constructor(e.byteLength);return new pi(t).set(new pi(e)),t}function Vf(e,t){var n=qf(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function Jf(e){return typeof e.constructor=="function"&&!ja(e)?Iu(ri(e)):{}}function Qf(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var c=i[++o];if(n(a[c],c,a)===!1)break}return t}}var Zf=Qf();function eo(e,t,n){(n!==void 0&&!lr(e[t],n)||n===void 0&&!(t in e))&&Xr(e,t,n)}function eh(e){return sn(e)&&qr(e)}function to(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function th(e){return Wu(e,ti(e))}function nh(e,t,n,r,o,a,i){var l=to(e,n),c=to(t,n),m=i.get(c);if(m){eo(e,n,m);return}var p=a?a(l,c,n+"",e,t,i):void 0,_=p===void 0;if(_){var E=ar(c),S=!E&&Va(c),g=!E&&!S&&ei(c);p=c,E||S||g?ar(l)?p=l:eh(l)?p=Nu(l):S?(_=!1,p=Xf(c)):g?(_=!1,p=Vf(c)):p=[]:hf(c)||Vr(c)?(p=l,Vr(l)?p=th(l):(!qt(l)||Gr(l))&&(p=Jf(c))):_=!1}_&&(i.set(c,p),o(p,c,r,a,i),i.delete(c)),eo(e,n,p)}function gi(e,t,n,r,o){e!==t&&Zf(t,function(a,i){if(o||(o=new un),qt(a))nh(e,t,i,n,gi,r,o);else{var l=r?r(to(e,i),a,i+"",e,t,o):void 0;l===void 0&&(l=a),eo(e,i,l)}},ti)}var ur=Xu(function(e,t,n){gi(e,t,n)});function vi(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=s.inject(Xt,null)||{},r=s.computed(()=>{var a,i;return(i=(a=t?.value)===null||a===void 0?void 0:a[e])!==null&&i!==void 0?i:yc[e]});return{dateLocaleRef:s.computed(()=>{var a;return(a=n?.value)!==null&&a!==void 0?a:Qc}),localeRef:r}}const An="naive-ui-style";function dr(e,t,n){if(!t)return;const r=Zn(),o=s.computed(()=>{const{value:l}=t;if(!l)return;const c=l[e];if(c)return c}),a=s.inject(Xt,null),i=()=>{s.watchEffect(()=>{const{value:l}=n,c=`${l}${e}Rtl`;if(_s(c,r))return;const{value:m}=o;m&&m.style.mount({id:c,head:!0,anchorMetaName:An,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:a?.styleMountTarget})})};return r?i():s.onBeforeMount(i),o}const Rn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:rh,fontFamily:oh,lineHeight:ah}=Rn,bi=W("body",`
15
+ margin: 0;
16
+ font-size: ${rh};
17
+ font-family: ${oh};
18
+ line-height: ${ah};
19
+ -webkit-text-size-adjust: 100%;
20
+ -webkit-tap-highlight-color: transparent;
21
+ `,[W("input",`
22
+ font-family: inherit;
23
+ font-size: inherit;
24
+ `)]);function Dn(e,t,n){if(!t){process.env.NODE_ENV!=="production"&&Oa("use-style","No style is specified.");return}const r=Zn(),o=s.inject(Xt,null),a=()=>{const i=n.value;t.mount({id:i===void 0?e:i+e,head:!0,anchorMetaName:An,props:{bPrefix:i?`.${i}-`:void 0},ssr:r,parent:o?.styleMountTarget}),o?.preflightStyleDisabled||bi.mount({id:"n-global",head:!0,anchorMetaName:An,ssr:r,parent:o?.styleMountTarget})};r?a():s.onBeforeMount(a)}function xv(e){return e}function wt(e,t,n,r,o,a){const i=Zn(),l=s.inject(Xt,null);if(n){const m=()=>{const p=a?.value;n.mount({id:p===void 0?t:p+t,head:!0,props:{bPrefix:p?`.${p}-`:void 0},anchorMetaName:An,ssr:i,parent:l?.styleMountTarget}),l?.preflightStyleDisabled||bi.mount({id:"n-global",head:!0,anchorMetaName:An,ssr:i,parent:l?.styleMountTarget})};i?m():s.onBeforeMount(m)}return s.computed(()=>{var m;const{theme:{common:p,self:_,peers:E={}}={},themeOverrides:S={},builtinThemeOverrides:g={}}=o,{common:T,peers:x}=S,{common:h=void 0,[e]:{common:y=void 0,self:I=void 0,peers:v={}}={}}=l?.mergedThemeRef.value||{},{common:O=void 0,[e]:N={}}=l?.mergedThemeOverridesRef.value||{},{common:d,peers:P={}}=N,A=ur({},p||y||h||r.common,O,d,T),k=ur((m=_||I||r.self)===null||m===void 0?void 0:m(A),g,N,S);return{common:A,self:k,peers:ur({},r.peers,v,E),peerOverrides:ur({},g.peers,P,x)}})}wt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ih=ce("base-icon",`
25
+ height: 1em;
26
+ width: 1em;
27
+ line-height: 1em;
28
+ text-align: center;
29
+ display: inline-block;
30
+ position: relative;
31
+ fill: currentColor;
32
+ `,[W("svg",`
33
+ height: 1em;
34
+ width: 1em;
35
+ `)]),dn=s.defineComponent({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Dn("-base-icon",ih,s.toRef(e,"clsPrefix"))},render(){return s.h("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),no=s.defineComponent({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Us();return()=>s.h(s.Transition,{name:"icon-switch-transition",appear:n.value},t)}}),lh=s.defineComponent({name:"Add",render(){return s.h("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function sh(e,t){const n=s.defineComponent({render(){return t()}});return s.defineComponent({name:Hf(e),setup(){var r;const o=(r=s.inject(Xt,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var a;const i=(a=o?.value)===null||a===void 0?void 0:a[e];return i?i():s.h(n,null)}}})}const ch=s.defineComponent({name:"ChevronDown",render(){return s.h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),uh=sh("clear",()=>s.h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s.h("g",{fill:"currentColor","fill-rule":"nonzero"},s.h("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),dh=s.defineComponent({name:"Eye",render(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s.h("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),s.h("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),fh=s.defineComponent({name:"EyeOff",render(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s.h("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),s.h("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),s.h("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),s.h("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),s.h("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),hh=s.defineComponent({name:"Remove",render(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s.h("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
36
+ fill: none;
37
+ stroke: currentColor;
38
+ stroke-linecap: round;
39
+ stroke-linejoin: round;
40
+ stroke-width: 32px;
41
+ `}))}}),{cubicBezierEaseInOut:mh}=Rn;function fr({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${mh} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const ph=ce("base-clear",`
42
+ flex-shrink: 0;
43
+ height: 1em;
44
+ width: 1em;
45
+ position: relative;
46
+ `,[W(">",[H("clear",`
47
+ font-size: var(--n-clear-size);
48
+ height: 1em;
49
+ width: 1em;
50
+ cursor: pointer;
51
+ color: var(--n-clear-color);
52
+ transition: color .3s var(--n-bezier);
53
+ display: flex;
54
+ `,[W("&:hover",`
55
+ color: var(--n-clear-color-hover)!important;
56
+ `),W("&:active",`
57
+ color: var(--n-clear-color-pressed)!important;
58
+ `)]),H("placeholder",`
59
+ display: flex;
60
+ `),H("clear, placeholder",`
61
+ position: absolute;
62
+ left: 50%;
63
+ top: 50%;
64
+ transform: translateX(-50%) translateY(-50%);
65
+ `,[fr({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),ro=s.defineComponent({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Dn("-base-clear",ph,s.toRef(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return s.h("div",{class:`${e}-base-clear`},s.h(no,null,{default:()=>{var t,n;return this.show?s.h("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Kt(this.$slots.icon,()=>[s.h(dn,{clsPrefix:e},{default:()=>s.h(uh,null)})])):s.h("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),gh=s.defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:c}=e;c&&c()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:c}=e;c&&c()}function a(l){if(l.style.transition="none",e.width){const c=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${c}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const c=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${c}px`}l.offsetWidth}function i(l){var c;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(c=e.onAfterEnter)===null||c===void 0||c.call(e)}return()=>{const{group:l,width:c,appear:m,mode:p}=e,_=l?s.TransitionGroup:s.Transition,E={name:c?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:m,onEnter:a,onAfterEnter:i,onBeforeLeave:n,onLeave:r,onAfterLeave:o};return l||(E.mode=p),s.h(_,E,t)}}}),vh=W([W("@keyframes rotator",`
66
+ 0% {
67
+ -webkit-transform: rotate(0deg);
68
+ transform: rotate(0deg);
69
+ }
70
+ 100% {
71
+ -webkit-transform: rotate(360deg);
72
+ transform: rotate(360deg);
73
+ }`),ce("base-loading",`
74
+ position: relative;
75
+ line-height: 0;
76
+ width: 1em;
77
+ height: 1em;
78
+ `,[H("transition-wrapper",`
79
+ position: absolute;
80
+ width: 100%;
81
+ height: 100%;
82
+ `,[fr()]),H("placeholder",`
83
+ position: absolute;
84
+ left: 50%;
85
+ top: 50%;
86
+ transform: translateX(-50%) translateY(-50%);
87
+ `,[fr({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),H("container",`
88
+ animation: rotator 3s linear infinite both;
89
+ `,[H("icon",`
90
+ height: 1em;
91
+ width: 1em;
92
+ `)])])]),oo="1.6s",bh={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},_i=s.defineComponent({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},bh),setup(e){Dn("-base-loading",vh,s.toRef(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,a=t/o;return s.h("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},s.h(no,null,{default:()=>this.show?s.h("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},s.h("div",{class:`${e}-base-loading__container`},s.h("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},s.h("g",null,s.h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${a} ${a};270 ${a} ${a}`,begin:"0s",dur:oo,fill:"freeze",repeatCount:"indefinite"}),s.h("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:a,cy:a,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},s.h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:"0s",dur:oo,fill:"freeze",repeatCount:"indefinite"}),s.h("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:oo,fill:"freeze",repeatCount:"indefinite"})))))):s.h("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:yi}=Rn;function _h({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=yi,leaveCubicBezier:o=yi}={}){return[W(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),W(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),W(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const j={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},yh=Rt(j.neutralBase),Ei=Rt(j.neutralInvertBase),Eh=`rgba(${Ei.slice(0,3).join(", ")}, `;function Ci(e){return`${Eh+String(e)})`}function Me(e){const t=Array.from(Ei);return t[3]=Number(e),Mr(yh,t)}const hr=Object.assign(Object.assign({name:"common"},Rn),{baseColor:j.neutralBase,primaryColor:j.primaryDefault,primaryColorHover:j.primaryHover,primaryColorPressed:j.primaryActive,primaryColorSuppl:j.primarySuppl,infoColor:j.infoDefault,infoColorHover:j.infoHover,infoColorPressed:j.infoActive,infoColorSuppl:j.infoSuppl,successColor:j.successDefault,successColorHover:j.successHover,successColorPressed:j.successActive,successColorSuppl:j.successSuppl,warningColor:j.warningDefault,warningColorHover:j.warningHover,warningColorPressed:j.warningActive,warningColorSuppl:j.warningSuppl,errorColor:j.errorDefault,errorColorHover:j.errorHover,errorColorPressed:j.errorActive,errorColorSuppl:j.errorSuppl,textColorBase:j.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Me(j.alpha4),placeholderColor:Me(j.alpha4),placeholderColorDisabled:Me(j.alpha5),iconColor:Me(j.alpha4),iconColorHover:qn(Me(j.alpha4),{lightness:.75}),iconColorPressed:qn(Me(j.alpha4),{lightness:.9}),iconColorDisabled:Me(j.alpha5),opacity1:j.alpha1,opacity2:j.alpha2,opacity3:j.alpha3,opacity4:j.alpha4,opacity5:j.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Me(Number(j.alphaClose)),closeIconColorHover:Me(Number(j.alphaClose)),closeIconColorPressed:Me(Number(j.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Me(j.alpha4),clearColorHover:qn(Me(j.alpha4),{lightness:.75}),clearColorPressed:qn(Me(j.alpha4),{lightness:.9}),scrollbarColor:Ci(j.alphaScrollbar),scrollbarColorHover:Ci(j.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Me(j.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:j.neutralPopover,tableColor:j.neutralCard,cardColor:j.neutralCard,modalColor:j.neutralModal,bodyColor:j.neutralBody,tagColor:"#eee",avatarColor:Me(j.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Me(j.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:j.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Ch={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function Th(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:o,scrollbarBorderRadius:a}=e;return Object.assign(Object.assign({},Ch),{height:r,width:o,borderRadius:a,color:t,colorHover:n})}const Ti={name:"Scrollbar",common:hr,self:Th},xh=ce("scrollbar",`
93
+ overflow: hidden;
94
+ position: relative;
95
+ z-index: auto;
96
+ height: 100%;
97
+ width: 100%;
98
+ `,[W(">",[ce("scrollbar-container",`
99
+ width: 100%;
100
+ overflow: scroll;
101
+ height: 100%;
102
+ min-height: inherit;
103
+ max-height: inherit;
104
+ scrollbar-width: none;
105
+ `,[W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
106
+ width: 0;
107
+ height: 0;
108
+ display: none;
109
+ `),W(">",[ce("scrollbar-content",`
110
+ box-sizing: border-box;
111
+ min-width: 100%;
112
+ `)])])]),W(">, +",[ce("scrollbar-rail",`
113
+ position: absolute;
114
+ pointer-events: none;
115
+ user-select: none;
116
+ background: var(--n-scrollbar-rail-color);
117
+ -webkit-user-select: none;
118
+ `,[he("horizontal",`
119
+ height: var(--n-scrollbar-height);
120
+ `,[W(">",[H("scrollbar",`
121
+ height: var(--n-scrollbar-height);
122
+ border-radius: var(--n-scrollbar-border-radius);
123
+ right: 0;
124
+ `)])]),he("horizontal--top",`
125
+ top: var(--n-scrollbar-rail-top-horizontal-top);
126
+ right: var(--n-scrollbar-rail-right-horizontal-top);
127
+ bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
128
+ left: var(--n-scrollbar-rail-left-horizontal-top);
129
+ `),he("horizontal--bottom",`
130
+ top: var(--n-scrollbar-rail-top-horizontal-bottom);
131
+ right: var(--n-scrollbar-rail-right-horizontal-bottom);
132
+ bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
133
+ left: var(--n-scrollbar-rail-left-horizontal-bottom);
134
+ `),he("vertical",`
135
+ width: var(--n-scrollbar-width);
136
+ `,[W(">",[H("scrollbar",`
137
+ width: var(--n-scrollbar-width);
138
+ border-radius: var(--n-scrollbar-border-radius);
139
+ bottom: 0;
140
+ `)])]),he("vertical--left",`
141
+ top: var(--n-scrollbar-rail-top-vertical-left);
142
+ right: var(--n-scrollbar-rail-right-vertical-left);
143
+ bottom: var(--n-scrollbar-rail-bottom-vertical-left);
144
+ left: var(--n-scrollbar-rail-left-vertical-left);
145
+ `),he("vertical--right",`
146
+ top: var(--n-scrollbar-rail-top-vertical-right);
147
+ right: var(--n-scrollbar-rail-right-vertical-right);
148
+ bottom: var(--n-scrollbar-rail-bottom-vertical-right);
149
+ left: var(--n-scrollbar-rail-left-vertical-right);
150
+ `),he("disabled",[W(">",[H("scrollbar","pointer-events: none;")])]),W(">",[H("scrollbar",`
151
+ z-index: 1;
152
+ position: absolute;
153
+ cursor: pointer;
154
+ pointer-events: all;
155
+ background-color: var(--n-scrollbar-color);
156
+ transition: background-color .2s var(--n-scrollbar-bezier);
157
+ `,[_h(),W("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),wh=Object.assign(Object.assign({},wt.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Sh=s.defineComponent({name:"Scrollbar",props:wh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=or(e),o=dr("Scrollbar",r,t),a=s.ref(null),i=s.ref(null),l=s.ref(null),c=s.ref(null),m=s.ref(null),p=s.ref(null),_=s.ref(null),E=s.ref(null),S=s.ref(null),g=s.ref(null),T=s.ref(null),x=s.ref(0),h=s.ref(0),y=s.ref(!1),I=s.ref(!1);let v=!1,O=!1,N,d,P=0,A=0,k=0,z=0;const B=Ws(),ae=wt("Scrollbar","-scrollbar",xh,Ti,e,t),re=s.computed(()=>{const{value:M}=E,{value:U}=p,{value:X}=g;return M===null||U===null||X===null?0:Math.min(M,X*M/U+ea(ae.value.self.width)*1.5)}),se=s.computed(()=>`${re.value}px`),ne=s.computed(()=>{const{value:M}=S,{value:U}=_,{value:X}=T;return M===null||U===null||X===null?0:X*M/U+ea(ae.value.self.height)*1.5}),Y=s.computed(()=>`${ne.value}px`),ve=s.computed(()=>{const{value:M}=E,{value:U}=x,{value:X}=p,{value:_e}=g;if(M===null||X===null||_e===null)return 0;{const Se=X-M;return Se?U/Se*(_e-re.value):0}}),Ie=s.computed(()=>`${ve.value}px`),de=s.computed(()=>{const{value:M}=S,{value:U}=h,{value:X}=_,{value:_e}=T;if(M===null||X===null||_e===null)return 0;{const Se=X-M;return Se?U/Se*(_e-ne.value):0}}),Oe=s.computed(()=>`${de.value}px`),We=s.computed(()=>{const{value:M}=E,{value:U}=p;return M!==null&&U!==null&&U>M}),Be=s.computed(()=>{const{value:M}=S,{value:U}=_;return M!==null&&U!==null&&U>M}),Ae=s.computed(()=>{const{trigger:M}=e;return M==="none"||y.value}),De=s.computed(()=>{const{trigger:M}=e;return M==="none"||I.value}),te=s.computed(()=>{const{container:M}=e;return M?M():i.value}),Le=s.computed(()=>{const{content:M}=e;return M?M():l.value}),He=(M,U)=>{if(!e.scrollable)return;if(typeof M=="number"){Re(M,U??0,0,!1,"auto");return}const{left:X,top:_e,index:Se,elSize:Ue,position:nt,behavior:Ce,el:ze,debounce:Et=!0}=M;(X!==void 0||_e!==void 0)&&Re(X??0,_e??0,0,!1,Ce),ze!==void 0?Re(0,ze.offsetTop,ze.offsetHeight,Et,Ce):Se!==void 0&&Ue!==void 0?Re(0,Se*Ue,Ue,Et,Ce):nt==="bottom"?Re(0,Number.MAX_SAFE_INTEGER,0,!1,Ce):nt==="top"&&Re(0,0,0,!1,Ce)},J=js(()=>{e.container||He({top:x.value,left:h.value})}),qe=()=>{J.isDeactivated||w()},Ze=M=>{if(J.isDeactivated)return;const{onResize:U}=e;U&&U(M),w()},ut=(M,U)=>{if(!e.scrollable)return;const{value:X}=te;X&&(typeof M=="object"?X.scrollBy(M):X.scrollBy(M,U||0))};function Re(M,U,X,_e,Se){const{value:Ue}=te;if(Ue){if(_e){const{scrollTop:nt,offsetHeight:Ce}=Ue;if(U>nt){U+X<=nt+Ce||Ue.scrollTo({left:M,top:U+X-Ce,behavior:Se});return}}Ue.scrollTo({left:M,top:U,behavior:Se})}}function et(){f(),C(),w()}function je(){Ge()}function Ge(){$(),u()}function $(){d!==void 0&&window.clearTimeout(d),d=window.setTimeout(()=>{I.value=!1},e.duration)}function u(){N!==void 0&&window.clearTimeout(N),N=window.setTimeout(()=>{y.value=!1},e.duration)}function f(){N!==void 0&&window.clearTimeout(N),y.value=!0}function C(){d!==void 0&&window.clearTimeout(d),I.value=!0}function L(M){const{onScroll:U}=e;U&&U(M),V()}function V(){const{value:M}=te;M&&(x.value=M.scrollTop,h.value=M.scrollLeft*(o?.value?-1:1))}function ue(){const{value:M}=Le;M&&(p.value=M.offsetHeight,_.value=M.offsetWidth);const{value:U}=te;U&&(E.value=U.offsetHeight,S.value=U.offsetWidth);const{value:X}=m,{value:_e}=c;X&&(T.value=X.offsetWidth),_e&&(g.value=_e.offsetHeight)}function q(){const{value:M}=te;M&&(x.value=M.scrollTop,h.value=M.scrollLeft*(o?.value?-1:1),E.value=M.offsetHeight,S.value=M.offsetWidth,p.value=M.scrollHeight,_.value=M.scrollWidth);const{value:U}=m,{value:X}=c;U&&(T.value=U.offsetWidth),X&&(g.value=X.offsetHeight)}function w(){e.scrollable&&(e.useUnifiedContainer?q():(ue(),V()))}function D(M){var U;return!(!((U=a.value)===null||U===void 0)&&U.contains(Ts(M)))}function Z(M){M.preventDefault(),M.stopPropagation(),O=!0,Ct("mousemove",window,be,!0),Ct("mouseup",window,it,!0),A=h.value,k=o?.value?window.innerWidth-M.clientX:M.clientX}function be(M){if(!O)return;N!==void 0&&window.clearTimeout(N),d!==void 0&&window.clearTimeout(d);const{value:U}=S,{value:X}=_,{value:_e}=ne;if(U===null||X===null)return;const Ue=(o?.value?window.innerWidth-M.clientX-k:M.clientX-k)*(X-U)/(U-_e),nt=X-U;let Ce=A+Ue;Ce=Math.min(nt,Ce),Ce=Math.max(Ce,0);const{value:ze}=te;if(ze){ze.scrollLeft=Ce*(o?.value?-1:1);const{internalOnUpdateScrollLeft:Et}=e;Et&&Et(Ce)}}function it(M){M.preventDefault(),M.stopPropagation(),Tt("mousemove",window,be,!0),Tt("mouseup",window,it,!0),O=!1,w(),D(M)&&Ge()}function kt(M){M.preventDefault(),M.stopPropagation(),v=!0,Ct("mousemove",window,lt,!0),Ct("mouseup",window,tt,!0),P=x.value,z=M.clientY}function lt(M){if(!v)return;N!==void 0&&window.clearTimeout(N),d!==void 0&&window.clearTimeout(d);const{value:U}=E,{value:X}=p,{value:_e}=re;if(U===null||X===null)return;const Ue=(M.clientY-z)*(X-U)/(U-_e),nt=X-U;let Ce=P+Ue;Ce=Math.min(nt,Ce),Ce=Math.max(Ce,0);const{value:ze}=te;ze&&(ze.scrollTop=Ce)}function tt(M){M.preventDefault(),M.stopPropagation(),Tt("mousemove",window,lt,!0),Tt("mouseup",window,tt,!0),v=!1,w(),D(M)&&Ge()}s.watchEffect(()=>{const{value:M}=Be,{value:U}=We,{value:X}=t,{value:_e}=m,{value:Se}=c;_e&&(M?_e.classList.remove(`${X}-scrollbar-rail--disabled`):_e.classList.add(`${X}-scrollbar-rail--disabled`)),Se&&(U?Se.classList.remove(`${X}-scrollbar-rail--disabled`):Se.classList.add(`${X}-scrollbar-rail--disabled`))}),s.onMounted(()=>{e.container||w()}),s.onBeforeUnmount(()=>{N!==void 0&&window.clearTimeout(N),d!==void 0&&window.clearTimeout(d),Tt("mousemove",window,lt,!0),Tt("mouseup",window,tt,!0)});const _n=s.computed(()=>{const{common:{cubicBezierEaseInOut:M},self:{color:U,colorHover:X,height:_e,width:Se,borderRadius:Ue,railInsetHorizontalTop:nt,railInsetHorizontalBottom:Ce,railInsetVerticalRight:ze,railInsetVerticalLeft:Et,railColor:Ir}}=ae.value,{top:Fo,right:yn,bottom:En,left:ko}=rn(nt),{top:Bo,right:Or,bottom:Bt,left:b}=rn(Ce),{top:R,right:G,bottom:pe,left:xe}=rn(o?.value?Sa(ze):ze),{top:fe,right:It,bottom:Ot,left:Nt}=rn(o?.value?Sa(Et):Et);return{"--n-scrollbar-bezier":M,"--n-scrollbar-color":U,"--n-scrollbar-color-hover":X,"--n-scrollbar-border-radius":Ue,"--n-scrollbar-width":Se,"--n-scrollbar-height":_e,"--n-scrollbar-rail-top-horizontal-top":Fo,"--n-scrollbar-rail-right-horizontal-top":yn,"--n-scrollbar-rail-bottom-horizontal-top":En,"--n-scrollbar-rail-left-horizontal-top":ko,"--n-scrollbar-rail-top-horizontal-bottom":Bo,"--n-scrollbar-rail-right-horizontal-bottom":Or,"--n-scrollbar-rail-bottom-horizontal-bottom":Bt,"--n-scrollbar-rail-left-horizontal-bottom":b,"--n-scrollbar-rail-top-vertical-right":R,"--n-scrollbar-rail-right-vertical-right":G,"--n-scrollbar-rail-bottom-vertical-right":pe,"--n-scrollbar-rail-left-vertical-right":xe,"--n-scrollbar-rail-top-vertical-left":fe,"--n-scrollbar-rail-right-vertical-left":It,"--n-scrollbar-rail-bottom-vertical-left":Ot,"--n-scrollbar-rail-left-vertical-left":Nt,"--n-scrollbar-rail-color":Ir}}),dt=n?zr("scrollbar",void 0,_n,e):void 0;return Object.assign(Object.assign({},{scrollTo:He,scrollBy:ut,sync:w,syncUnifiedContainer:q,handleMouseEnterWrapper:et,handleMouseLeaveWrapper:je}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:x,wrapperRef:a,containerRef:i,contentRef:l,yRailRef:c,xRailRef:m,needYBar:We,needXBar:Be,yBarSizePx:se,xBarSizePx:Y,yBarTopPx:Ie,xBarLeftPx:Oe,isShowXBar:Ae,isShowYBar:De,isIos:B,handleScroll:L,handleContentResize:qe,handleContainerResize:Ze,handleYScrollMouseDown:kt,handleXScrollMouseDown:Z,cssVars:n?void 0:_n,themeClass:dt?.themeClass,onRender:dt?.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:a,yPlacement:i,xPlacement:l,xScrollable:c}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const m=this.trigger==="none",p=(S,g)=>s.h("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,`${n}-scrollbar-rail--vertical--${i}`,S],"data-scrollbar-rail":!0,style:[g||"",this.verticalRailStyle],"aria-hidden":!0},s.h(m?Na:s.Transition,m?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?s.h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),_=()=>{var S,g;return(S=this.onRender)===null||S===void 0||S.call(this),s.h("div",s.mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(g=t.default)===null||g===void 0?void 0:g.call(t):s.h("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},s.h(Ur,{onResize:this.handleContentResize},{default:()=>s.h("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),a?null:p(void 0,void 0),c&&s.h("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`,`${n}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},s.h(m?Na:s.Transition,m?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?s.h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},E=this.container?_():s.h(Ur,{onResize:this.handleContainerResize},{default:_});return a?s.h(s.Fragment,null,E,p(this.themeClass,this.cssVars)):E}}),Ph=s.defineComponent({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return s.h(_i,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?s.h(ro,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>s.h(dn,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>Kt(t.default,()=>[s.h(ch,null)])})}):null})}}}),{cubicBezierEaseInOut:$t}=Rn;function Ih({duration:e=".2s",delay:t=".1s"}={}){return[W("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),W("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
158
+ opacity: 0!important;
159
+ margin-left: 0!important;
160
+ margin-right: 0!important;
161
+ `),W("&.fade-in-width-expand-transition-leave-active",`
162
+ overflow: hidden;
163
+ transition:
164
+ opacity ${e} ${$t},
165
+ max-width ${e} ${$t} ${t},
166
+ margin-left ${e} ${$t} ${t},
167
+ margin-right ${e} ${$t} ${t};
168
+ `),W("&.fade-in-width-expand-transition-enter-active",`
169
+ overflow: hidden;
170
+ transition:
171
+ opacity ${e} ${$t} ${t},
172
+ max-width ${e} ${$t},
173
+ margin-left ${e} ${$t},
174
+ margin-right ${e} ${$t};
175
+ `)]}const Oh=ce("base-wave",`
176
+ position: absolute;
177
+ left: 0;
178
+ right: 0;
179
+ top: 0;
180
+ bottom: 0;
181
+ border-radius: inherit;
182
+ `),Nh=s.defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Dn("-base-wave",Oh,s.toRef(e,"clsPrefix"));const t=s.ref(null),n=s.ref(!1);let r=null;return s.onBeforeUnmount(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),s.nextTick(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return s.h("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),Ah=Qn&&"chrome"in window;Qn&&navigator.userAgent.includes("Firefox");const xi=Qn&&navigator.userAgent.includes("Safari")&&!Ah,Rh={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function Dh(e){const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:a,inputColor:i,inputColorDisabled:l,borderColor:c,warningColor:m,warningColorHover:p,errorColor:_,errorColorHover:E,borderRadius:S,lineHeight:g,fontSizeTiny:T,fontSizeSmall:x,fontSizeMedium:h,fontSizeLarge:y,heightTiny:I,heightSmall:v,heightMedium:O,heightLarge:N,actionColor:d,clearColor:P,clearColorHover:A,clearColorPressed:k,placeholderColor:z,placeholderColorDisabled:B,iconColor:ae,iconColorDisabled:re,iconColorHover:se,iconColorPressed:ne,fontWeight:Y}=e;return Object.assign(Object.assign({},Rh),{fontWeight:Y,countTextColorDisabled:r,countTextColor:n,heightTiny:I,heightSmall:v,heightMedium:O,heightLarge:N,fontSizeTiny:T,fontSizeSmall:x,fontSizeMedium:h,fontSizeLarge:y,lineHeight:g,lineHeightTextarea:g,borderRadius:S,iconSize:"16px",groupLabelColor:d,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:z,placeholderColorDisabled:B,color:i,colorDisabled:l,colorFocus:i,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${Wt(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:m,borderWarning:`1px solid ${m}`,borderHoverWarning:`1px solid ${p}`,colorFocusWarning:i,borderFocusWarning:`1px solid ${p}`,boxShadowFocusWarning:`0 0 0 2px ${Wt(m,{alpha:.2})}`,caretColorWarning:m,loadingColorError:_,borderError:`1px solid ${_}`,borderHoverError:`1px solid ${E}`,colorFocusError:i,borderFocusError:`1px solid ${E}`,boxShadowFocusError:`0 0 0 2px ${Wt(_,{alpha:.2})}`,caretColorError:_,clearColor:P,clearColorHover:A,clearColorPressed:k,iconColor:ae,iconColorDisabled:re,iconColorHover:se,iconColorPressed:ne,suffixTextColor:t})}const wi={name:"Input",common:hr,peers:{Scrollbar:Ti},self:Dh},Si="n-input",Lh=ce("input",`
183
+ max-width: 100%;
184
+ cursor: text;
185
+ line-height: 1.5;
186
+ z-index: auto;
187
+ outline: none;
188
+ box-sizing: border-box;
189
+ position: relative;
190
+ display: inline-flex;
191
+ border-radius: var(--n-border-radius);
192
+ background-color: var(--n-color);
193
+ transition: background-color .3s var(--n-bezier);
194
+ font-size: var(--n-font-size);
195
+ font-weight: var(--n-font-weight);
196
+ --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
197
+ `,[H("input, textarea",`
198
+ overflow: hidden;
199
+ flex-grow: 1;
200
+ position: relative;
201
+ `),H("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
202
+ box-sizing: border-box;
203
+ font-size: inherit;
204
+ line-height: 1.5;
205
+ font-family: inherit;
206
+ border: none;
207
+ outline: none;
208
+ background-color: #0000;
209
+ text-align: inherit;
210
+ transition:
211
+ -webkit-text-fill-color .3s var(--n-bezier),
212
+ caret-color .3s var(--n-bezier),
213
+ color .3s var(--n-bezier),
214
+ text-decoration-color .3s var(--n-bezier);
215
+ `),H("input-el, textarea-el",`
216
+ -webkit-appearance: none;
217
+ scrollbar-width: none;
218
+ width: 100%;
219
+ min-width: 0;
220
+ text-decoration-color: var(--n-text-decoration-color);
221
+ color: var(--n-text-color);
222
+ caret-color: var(--n-caret-color);
223
+ background-color: transparent;
224
+ `,[W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
225
+ width: 0;
226
+ height: 0;
227
+ display: none;
228
+ `),W("&::placeholder",`
229
+ color: #0000;
230
+ -webkit-text-fill-color: transparent !important;
231
+ `),W("&:-webkit-autofill ~",[H("placeholder","display: none;")])]),he("round",[Ht("textarea","border-radius: calc(var(--n-height) / 2);")]),H("placeholder",`
232
+ pointer-events: none;
233
+ position: absolute;
234
+ left: 0;
235
+ right: 0;
236
+ top: 0;
237
+ bottom: 0;
238
+ overflow: hidden;
239
+ color: var(--n-placeholder-color);
240
+ `,[W("span",`
241
+ width: 100%;
242
+ display: inline-block;
243
+ `)]),he("textarea",[H("placeholder","overflow: visible;")]),Ht("autosize","width: 100%;"),he("autosize",[H("textarea-el, input-el",`
244
+ position: absolute;
245
+ top: 0;
246
+ left: 0;
247
+ height: 100%;
248
+ `)]),ce("input-wrapper",`
249
+ overflow: hidden;
250
+ display: inline-flex;
251
+ flex-grow: 1;
252
+ position: relative;
253
+ padding-left: var(--n-padding-left);
254
+ padding-right: var(--n-padding-right);
255
+ `),H("input-mirror",`
256
+ padding: 0;
257
+ height: var(--n-height);
258
+ line-height: var(--n-height);
259
+ overflow: hidden;
260
+ visibility: hidden;
261
+ position: static;
262
+ white-space: pre;
263
+ pointer-events: none;
264
+ `),H("input-el",`
265
+ padding: 0;
266
+ height: var(--n-height);
267
+ line-height: var(--n-height);
268
+ `,[W("&[type=password]::-ms-reveal","display: none;"),W("+",[H("placeholder",`
269
+ display: flex;
270
+ align-items: center;
271
+ `)])]),Ht("textarea",[H("placeholder","white-space: nowrap;")]),H("eye",`
272
+ display: flex;
273
+ align-items: center;
274
+ justify-content: center;
275
+ transition: color .3s var(--n-bezier);
276
+ `),he("textarea","width: 100%;",[ce("input-word-count",`
277
+ position: absolute;
278
+ right: var(--n-padding-right);
279
+ bottom: var(--n-padding-vertical);
280
+ `),he("resizable",[ce("input-wrapper",`
281
+ resize: vertical;
282
+ min-height: var(--n-height);
283
+ `)]),H("textarea-el, textarea-mirror, placeholder",`
284
+ height: 100%;
285
+ padding-left: 0;
286
+ padding-right: 0;
287
+ padding-top: var(--n-padding-vertical);
288
+ padding-bottom: var(--n-padding-vertical);
289
+ word-break: break-word;
290
+ display: inline-block;
291
+ vertical-align: bottom;
292
+ box-sizing: border-box;
293
+ line-height: var(--n-line-height-textarea);
294
+ margin: 0;
295
+ resize: none;
296
+ white-space: pre-wrap;
297
+ scroll-padding-block-end: var(--n-padding-vertical);
298
+ `),H("textarea-mirror",`
299
+ width: 100%;
300
+ pointer-events: none;
301
+ overflow: hidden;
302
+ visibility: hidden;
303
+ position: static;
304
+ white-space: pre-wrap;
305
+ overflow-wrap: break-word;
306
+ `)]),he("pair",[H("input-el, placeholder","text-align: center;"),H("separator",`
307
+ display: flex;
308
+ align-items: center;
309
+ transition: color .3s var(--n-bezier);
310
+ color: var(--n-text-color);
311
+ white-space: nowrap;
312
+ `,[ce("icon",`
313
+ color: var(--n-icon-color);
314
+ `),ce("base-icon",`
315
+ color: var(--n-icon-color);
316
+ `)])]),he("disabled",`
317
+ cursor: not-allowed;
318
+ background-color: var(--n-color-disabled);
319
+ `,[H("border","border: var(--n-border-disabled);"),H("input-el, textarea-el",`
320
+ cursor: not-allowed;
321
+ color: var(--n-text-color-disabled);
322
+ text-decoration-color: var(--n-text-color-disabled);
323
+ `),H("placeholder","color: var(--n-placeholder-color-disabled);"),H("separator","color: var(--n-text-color-disabled);",[ce("icon",`
324
+ color: var(--n-icon-color-disabled);
325
+ `),ce("base-icon",`
326
+ color: var(--n-icon-color-disabled);
327
+ `)]),ce("input-word-count",`
328
+ color: var(--n-count-text-color-disabled);
329
+ `),H("suffix, prefix","color: var(--n-text-color-disabled);",[ce("icon",`
330
+ color: var(--n-icon-color-disabled);
331
+ `),ce("internal-icon",`
332
+ color: var(--n-icon-color-disabled);
333
+ `)])]),Ht("disabled",[H("eye",`
334
+ color: var(--n-icon-color);
335
+ cursor: pointer;
336
+ `,[W("&:hover",`
337
+ color: var(--n-icon-color-hover);
338
+ `),W("&:active",`
339
+ color: var(--n-icon-color-pressed);
340
+ `)]),W("&:hover",[H("state-border","border: var(--n-border-hover);")]),he("focus","background-color: var(--n-color-focus);",[H("state-border",`
341
+ border: var(--n-border-focus);
342
+ box-shadow: var(--n-box-shadow-focus);
343
+ `)])]),H("border, state-border",`
344
+ box-sizing: border-box;
345
+ position: absolute;
346
+ left: 0;
347
+ right: 0;
348
+ top: 0;
349
+ bottom: 0;
350
+ pointer-events: none;
351
+ border-radius: inherit;
352
+ border: var(--n-border);
353
+ transition:
354
+ box-shadow .3s var(--n-bezier),
355
+ border-color .3s var(--n-bezier);
356
+ `),H("state-border",`
357
+ border-color: #0000;
358
+ z-index: 1;
359
+ `),H("prefix","margin-right: 4px;"),H("suffix",`
360
+ margin-left: 4px;
361
+ `),H("suffix, prefix",`
362
+ transition: color .3s var(--n-bezier);
363
+ flex-wrap: nowrap;
364
+ flex-shrink: 0;
365
+ line-height: var(--n-height);
366
+ white-space: nowrap;
367
+ display: inline-flex;
368
+ align-items: center;
369
+ justify-content: center;
370
+ color: var(--n-suffix-text-color);
371
+ `,[ce("base-loading",`
372
+ font-size: var(--n-icon-size);
373
+ margin: 0 2px;
374
+ color: var(--n-loading-color);
375
+ `),ce("base-clear",`
376
+ font-size: var(--n-icon-size);
377
+ `,[H("placeholder",[ce("base-icon",`
378
+ transition: color .3s var(--n-bezier);
379
+ color: var(--n-icon-color);
380
+ font-size: var(--n-icon-size);
381
+ `)])]),W(">",[ce("icon",`
382
+ transition: color .3s var(--n-bezier);
383
+ color: var(--n-icon-color);
384
+ font-size: var(--n-icon-size);
385
+ `)]),ce("base-icon",`
386
+ font-size: var(--n-icon-size);
387
+ `)]),ce("input-word-count",`
388
+ pointer-events: none;
389
+ line-height: 1.5;
390
+ font-size: .85em;
391
+ color: var(--n-count-text-color);
392
+ transition: color .3s var(--n-bezier);
393
+ margin-left: 4px;
394
+ font-variant: tabular-nums;
395
+ `),["warning","error"].map(e=>he(`${e}-status`,[Ht("disabled",[ce("base-loading",`
396
+ color: var(--n-loading-color-${e})
397
+ `),H("input-el, textarea-el",`
398
+ caret-color: var(--n-caret-color-${e});
399
+ `),H("state-border",`
400
+ border: var(--n-border-${e});
401
+ `),W("&:hover",[H("state-border",`
402
+ border: var(--n-border-hover-${e});
403
+ `)]),W("&:focus",`
404
+ background-color: var(--n-color-focus-${e});
405
+ `,[H("state-border",`
406
+ box-shadow: var(--n-box-shadow-focus-${e});
407
+ border: var(--n-border-focus-${e});
408
+ `)]),he("focus",`
409
+ background-color: var(--n-color-focus-${e});
410
+ `,[H("state-border",`
411
+ box-shadow: var(--n-box-shadow-focus-${e});
412
+ border: var(--n-border-focus-${e});
413
+ `)])])]))]),$h=ce("input",[he("disabled",[H("input-el, textarea-el",`
414
+ -webkit-text-fill-color: var(--n-text-color-disabled);
415
+ `)])]);function Mh(e){let t=0;for(const n of e)t++;return t}function mr(e){return e===""||e==null}function Fh(e){const t=s.ref(null);function n(){const{value:a}=e;if(!a?.focus){o();return}const{selectionStart:i,selectionEnd:l,value:c}=a;if(i==null||l==null){o();return}t.value={start:i,end:l,beforeText:c.slice(0,i),afterText:c.slice(l)}}function r(){var a;const{value:i}=t,{value:l}=e;if(!i||!l)return;const{value:c}=l,{start:m,beforeText:p,afterText:_}=i;let E=c.length;if(c.endsWith(_))E=c.length-_.length;else if(c.startsWith(p))E=p.length;else{const S=p[m-1],g=c.indexOf(S,m-1);g!==-1&&(E=g+1)}(a=l.setSelectionRange)===null||a===void 0||a.call(l,E,E)}function o(){t.value=null}return s.watch(e,o),{recordCursor:n,restoreCursor:r}}const Pi=s.defineComponent({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:a}=s.inject(Si),i=s.computed(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(a.value||Mh)(l)});return()=>{const{value:l}=r,{value:c}=n;return s.h("span",{class:`${o.value}-input-word-count`},vc(t.default,{value:c===null||Array.isArray(c)?"":c},()=>[l===void 0?i.value:`${i.value} / ${l}`]))}}}),kh=Object.assign(Object.assign({},wt.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Ii=s.defineComponent({name:"Input",props:kh,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=or(e),a=wt("Input","-input",Lh,wi,e,t);xi&&Dn("-input-safari",$h,t);const i=s.ref(null),l=s.ref(null),c=s.ref(null),m=s.ref(null),p=s.ref(null),_=s.ref(null),E=s.ref(null),S=Fh(E),g=s.ref(null),{localeRef:T}=vi("Input"),x=s.ref(e.defaultValue),h=s.toRef(e,"value"),y=la(h,x),I=Wr(e),{mergedSizeRef:v,mergedDisabledRef:O,mergedStatusRef:N}=I,d=s.ref(!1),P=s.ref(!1),A=s.ref(!1),k=s.ref(!1);let z=null;const B=s.computed(()=>{const{placeholder:b,pair:R}=e;return R?Array.isArray(b)?b:b===void 0?["",""]:[b,b]:b===void 0?[T.value.placeholder]:[b]}),ae=s.computed(()=>{const{value:b}=A,{value:R}=y,{value:G}=B;return!b&&(mr(R)||Array.isArray(R)&&mr(R[0]))&&G[0]}),re=s.computed(()=>{const{value:b}=A,{value:R}=y,{value:G}=B;return!b&&G[1]&&(mr(R)||Array.isArray(R)&&mr(R[1]))}),se=mt(()=>e.internalForceFocus||d.value),ne=mt(()=>{if(O.value||e.readonly||!e.clearable||!se.value&&!P.value)return!1;const{value:b}=y,{value:R}=se;return e.pair?!!(Array.isArray(b)&&(b[0]||b[1]))&&(P.value||R):!!b&&(P.value||R)}),Y=s.computed(()=>{const{showPasswordOn:b}=e;if(b)return b;if(e.showPasswordToggle)return"click"}),ve=s.ref(!1),Ie=s.computed(()=>{const{textDecoration:b}=e;return b?Array.isArray(b)?b.map(R=>({textDecoration:R})):[{textDecoration:b}]:["",""]}),de=s.ref(void 0),Oe=()=>{var b,R;if(e.type==="textarea"){const{autosize:G}=e;if(G&&(de.value=(R=(b=g.value)===null||b===void 0?void 0:b.$el)===null||R===void 0?void 0:R.offsetWidth),!l.value||typeof G=="boolean")return;const{paddingTop:pe,paddingBottom:xe,lineHeight:fe}=window.getComputedStyle(l.value),It=Number(pe.slice(0,-2)),Ot=Number(xe.slice(0,-2)),Nt=Number(fe.slice(0,-2)),{value:Wn}=c;if(!Wn)return;if(G.minRows){const jn=Math.max(G.minRows,1),Ho=`${It+Ot+Nt*jn}px`;Wn.style.minHeight=Ho}if(G.maxRows){const jn=`${It+Ot+Nt*G.maxRows}px`;Wn.style.maxHeight=jn}}},We=s.computed(()=>{const{maxlength:b}=e;return b===void 0?void 0:Number(b)});s.onMounted(()=>{const{value:b}=y;Array.isArray(b)||ze(b)});const Be=s.getCurrentInstance().proxy;function Ae(b,R){const{onUpdateValue:G,"onUpdate:value":pe,onInput:xe}=e,{nTriggerFormInput:fe}=I;G&&Te(G,b,R),pe&&Te(pe,b,R),xe&&Te(xe,b,R),x.value=b,fe()}function De(b,R){const{onChange:G}=e,{nTriggerFormChange:pe}=I;G&&Te(G,b,R),x.value=b,pe()}function te(b){const{onBlur:R}=e,{nTriggerFormBlur:G}=I;R&&Te(R,b),G()}function Le(b){const{onFocus:R}=e,{nTriggerFormFocus:G}=I;R&&Te(R,b),G()}function He(b){const{onClear:R}=e;R&&Te(R,b)}function J(b){const{onInputBlur:R}=e;R&&Te(R,b)}function qe(b){const{onInputFocus:R}=e;R&&Te(R,b)}function Ze(){const{onDeactivate:b}=e;b&&Te(b)}function ut(){const{onActivate:b}=e;b&&Te(b)}function Re(b){const{onClick:R}=e;R&&Te(R,b)}function et(b){const{onWrapperFocus:R}=e;R&&Te(R,b)}function je(b){const{onWrapperBlur:R}=e;R&&Te(R,b)}function Ge(){A.value=!0}function $(b){A.value=!1,b.target===_.value?u(b,1):u(b,0)}function u(b,R=0,G="input"){const pe=b.target.value;if(ze(pe),b instanceof InputEvent&&!b.isComposing&&(A.value=!1),e.type==="textarea"){const{value:fe}=g;fe&&fe.syncUnifiedContainer()}if(z=pe,A.value)return;S.recordCursor();const xe=f(pe);if(xe)if(!e.pair)G==="input"?Ae(pe,{source:R}):De(pe,{source:R});else{let{value:fe}=y;Array.isArray(fe)?fe=[fe[0],fe[1]]:fe=["",""],fe[R]=pe,G==="input"?Ae(fe,{source:R}):De(fe,{source:R})}Be.$forceUpdate(),xe||s.nextTick(S.restoreCursor)}function f(b){const{countGraphemes:R,maxlength:G,minlength:pe}=e;if(R){let fe;if(G!==void 0&&(fe===void 0&&(fe=R(b)),fe>Number(G))||pe!==void 0&&(fe===void 0&&(fe=R(b)),fe<Number(G)))return!1}const{allowInput:xe}=e;return typeof xe=="function"?xe(b):!0}function C(b){J(b),b.relatedTarget===i.value&&Ze(),b.relatedTarget!==null&&(b.relatedTarget===p.value||b.relatedTarget===_.value||b.relatedTarget===l.value)||(k.value=!1),q(b,"blur"),E.value=null}function L(b,R){qe(b),d.value=!0,k.value=!0,ut(),q(b,"focus"),R===0?E.value=p.value:R===1?E.value=_.value:R===2&&(E.value=l.value)}function V(b){e.passivelyActivated&&(je(b),q(b,"blur"))}function ue(b){e.passivelyActivated&&(d.value=!0,et(b),q(b,"focus"))}function q(b,R){b.relatedTarget!==null&&(b.relatedTarget===p.value||b.relatedTarget===_.value||b.relatedTarget===l.value||b.relatedTarget===i.value)||(R==="focus"?(Le(b),d.value=!0):R==="blur"&&(te(b),d.value=!1))}function w(b,R){u(b,R,"change")}function D(b){Re(b)}function Z(b){He(b),be()}function be(){e.pair?(Ae(["",""],{source:"clear"}),De(["",""],{source:"clear"})):(Ae("",{source:"clear"}),De("",{source:"clear"}))}function it(b){const{onMousedown:R}=e;R&&R(b);const{tagName:G}=b.target;if(G!=="INPUT"&&G!=="TEXTAREA"){if(e.resizable){const{value:pe}=i;if(pe){const{left:xe,top:fe,width:It,height:Ot}=pe.getBoundingClientRect(),Nt=14;if(xe+It-Nt<b.clientX&&b.clientX<xe+It&&fe+Ot-Nt<b.clientY&&b.clientY<fe+Ot)return}}b.preventDefault(),d.value||X()}}function kt(){var b;P.value=!0,e.type==="textarea"&&((b=g.value)===null||b===void 0||b.handleMouseEnterWrapper())}function lt(){var b;P.value=!1,e.type==="textarea"&&((b=g.value)===null||b===void 0||b.handleMouseLeaveWrapper())}function tt(){O.value||Y.value==="click"&&(ve.value=!ve.value)}function _n(b){if(O.value)return;b.preventDefault();const R=pe=>{pe.preventDefault(),Tt("mouseup",document,R)};if(Ct("mouseup",document,R),Y.value!=="mousedown")return;ve.value=!0;const G=()=>{ve.value=!1,Tt("mouseup",document,G)};Ct("mouseup",document,G)}function dt(b){e.onKeyup&&Te(e.onKeyup,b)}function Jl(b){switch(e.onKeydown&&Te(e.onKeydown,b),b.key){case"Escape":U();break;case"Enter":M(b);break}}function M(b){var R,G;if(e.passivelyActivated){const{value:pe}=k;if(pe){e.internalDeactivateOnEnter&&U();return}b.preventDefault(),e.type==="textarea"?(R=l.value)===null||R===void 0||R.focus():(G=p.value)===null||G===void 0||G.focus()}}function U(){e.passivelyActivated&&(k.value=!1,s.nextTick(()=>{var b;(b=i.value)===null||b===void 0||b.focus()}))}function X(){var b,R,G;O.value||(e.passivelyActivated?(b=i.value)===null||b===void 0||b.focus():((R=l.value)===null||R===void 0||R.focus(),(G=p.value)===null||G===void 0||G.focus()))}function _e(){var b;!((b=i.value)===null||b===void 0)&&b.contains(document.activeElement)&&document.activeElement.blur()}function Se(){var b,R;(b=l.value)===null||b===void 0||b.select(),(R=p.value)===null||R===void 0||R.select()}function Ue(){O.value||(l.value?l.value.focus():p.value&&p.value.focus())}function nt(){const{value:b}=i;b?.contains(document.activeElement)&&b!==document.activeElement&&U()}function Ce(b){if(e.type==="textarea"){const{value:R}=l;R?.scrollTo(b)}else{const{value:R}=p;R?.scrollTo(b)}}function ze(b){const{type:R,pair:G,autosize:pe}=e;if(!G&&pe)if(R==="textarea"){const{value:xe}=c;xe&&(xe.textContent=`${b??""}\r
416
+ `)}else{const{value:xe}=m;xe&&(b?xe.textContent=b:xe.innerHTML="&nbsp;")}}function Et(){Oe()}const Ir=s.ref({top:"0"});function Fo(b){var R;const{scrollTop:G}=b.target;Ir.value.top=`${-G}px`,(R=g.value)===null||R===void 0||R.syncUnifiedContainer()}let yn=null;s.watchEffect(()=>{const{autosize:b,type:R}=e;b&&R==="textarea"?yn=s.watch(y,G=>{!Array.isArray(G)&&G!==z&&ze(G)}):yn?.()});let En=null;s.watchEffect(()=>{e.type==="textarea"?En=s.watch(y,b=>{var R;!Array.isArray(b)&&b!==z&&((R=g.value)===null||R===void 0||R.syncUnifiedContainer())}):En?.()}),s.provide(Si,{mergedValueRef:y,maxlengthRef:We,mergedClsPrefixRef:t,countGraphemesRef:s.toRef(e,"countGraphemes")});const ko={wrapperElRef:i,inputElRef:p,textareaElRef:l,isCompositing:A,clear:be,focus:X,blur:_e,select:Se,deactivate:nt,activate:Ue,scrollTo:Ce},Bo=dr("Input",o,t),Or=s.computed(()=>{const{value:b}=v,{common:{cubicBezierEaseInOut:R},self:{color:G,borderRadius:pe,textColor:xe,caretColor:fe,caretColorError:It,caretColorWarning:Ot,textDecorationColor:Nt,border:Wn,borderDisabled:jn,borderHover:Ho,borderFocus:Dg,placeholderColor:Lg,placeholderColorDisabled:$g,lineHeightTextarea:Mg,colorDisabled:Fg,colorFocus:kg,textColorDisabled:Bg,boxShadowFocus:Hg,iconSize:Ug,colorFocusWarning:zg,boxShadowFocusWarning:Wg,borderWarning:jg,borderFocusWarning:Gg,borderHoverWarning:Yg,colorFocusError:Kg,boxShadowFocusError:Xg,borderError:qg,borderFocusError:Vg,borderHoverError:Jg,clearSize:Qg,clearColor:Zg,clearColorHover:ev,clearColorPressed:tv,iconColor:nv,iconColorDisabled:rv,suffixTextColor:ov,countTextColor:av,countTextColorDisabled:iv,iconColorHover:lv,iconColorPressed:sv,loadingColor:cv,loadingColorError:uv,loadingColorWarning:dv,fontWeight:fv,[Q("padding",b)]:hv,[Q("fontSize",b)]:mv,[Q("height",b)]:pv}}=a.value,{left:gv,right:vv}=rn(hv);return{"--n-bezier":R,"--n-count-text-color":av,"--n-count-text-color-disabled":iv,"--n-color":G,"--n-font-size":mv,"--n-font-weight":fv,"--n-border-radius":pe,"--n-height":pv,"--n-padding-left":gv,"--n-padding-right":vv,"--n-text-color":xe,"--n-caret-color":fe,"--n-text-decoration-color":Nt,"--n-border":Wn,"--n-border-disabled":jn,"--n-border-hover":Ho,"--n-border-focus":Dg,"--n-placeholder-color":Lg,"--n-placeholder-color-disabled":$g,"--n-icon-size":Ug,"--n-line-height-textarea":Mg,"--n-color-disabled":Fg,"--n-color-focus":kg,"--n-text-color-disabled":Bg,"--n-box-shadow-focus":Hg,"--n-loading-color":cv,"--n-caret-color-warning":Ot,"--n-color-focus-warning":zg,"--n-box-shadow-focus-warning":Wg,"--n-border-warning":jg,"--n-border-focus-warning":Gg,"--n-border-hover-warning":Yg,"--n-loading-color-warning":dv,"--n-caret-color-error":It,"--n-color-focus-error":Kg,"--n-box-shadow-focus-error":Xg,"--n-border-error":qg,"--n-border-focus-error":Vg,"--n-border-hover-error":Jg,"--n-loading-color-error":uv,"--n-clear-color":Zg,"--n-clear-size":Qg,"--n-clear-color-hover":ev,"--n-clear-color-pressed":tv,"--n-icon-color":nv,"--n-icon-color-hover":lv,"--n-icon-color-pressed":sv,"--n-icon-color-disabled":rv,"--n-suffix-text-color":ov}}),Bt=r?zr("input",s.computed(()=>{const{value:b}=v;return b[0]}),Or,e):void 0;return Object.assign(Object.assign({},ko),{wrapperElRef:i,inputElRef:p,inputMirrorElRef:m,inputEl2Ref:_,textareaElRef:l,textareaMirrorElRef:c,textareaScrollbarInstRef:g,rtlEnabled:Bo,uncontrolledValue:x,mergedValue:y,passwordVisible:ve,mergedPlaceholder:B,showPlaceholder1:ae,showPlaceholder2:re,mergedFocus:se,isComposing:A,activated:k,showClearButton:ne,mergedSize:v,mergedDisabled:O,textDecorationStyle:Ie,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:Y,placeholderStyle:Ir,mergedStatus:N,textAreaScrollContainerWidth:de,handleTextAreaScroll:Fo,handleCompositionStart:Ge,handleCompositionEnd:$,handleInput:u,handleInputBlur:C,handleInputFocus:L,handleWrapperBlur:V,handleWrapperFocus:ue,handleMouseEnter:kt,handleMouseLeave:lt,handleMouseDown:it,handleChange:w,handleClick:D,handleClear:Z,handlePasswordToggleClick:tt,handlePasswordToggleMousedown:_n,handleWrapperKeydown:Jl,handleWrapperKeyup:dt,handleTextAreaMirrorResize:Et,getTextareaScrollContainer:()=>l.value,mergedTheme:a,cssVars:r?void 0:Or,themeClass:Bt?.themeClass,onRender:Bt?.onRender})},render(){var e,t,n,r,o,a,i;const{mergedClsPrefix:l,mergedStatus:c,themeClass:m,type:p,countGraphemes:_,onRender:E}=this,S=this.$slots;return E?.(),s.h("div",{ref:"wrapperElRef",class:[`${l}-input`,m,c&&`${l}-input--${c}-status`,{[`${l}-input--rtl`]:this.rtlEnabled,[`${l}-input--disabled`]:this.mergedDisabled,[`${l}-input--textarea`]:p==="textarea",[`${l}-input--resizable`]:this.resizable&&!this.autosize,[`${l}-input--autosize`]:this.autosize,[`${l}-input--round`]:this.round&&p!=="textarea",[`${l}-input--pair`]:this.pair,[`${l}-input--focus`]:this.mergedFocus,[`${l}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},s.h("div",{class:`${l}-input-wrapper`},Lt(S.prefix,g=>g&&s.h("div",{class:`${l}-input__prefix`},g)),p==="textarea"?s.h(Sh,{ref:"textareaScrollbarInstRef",class:`${l}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(r=(n=this.themeOverrides)===null||n===void 0?void 0:n.peers)===null||r===void 0?void 0:r.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var g,T;const{textAreaScrollContainerWidth:x}=this,h={width:this.autosize&&x&&`${x}px`};return s.h(s.Fragment,null,s.h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${l}-input__textarea-el`,(g=this.inputProps)===null||g===void 0?void 0:g.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:_?void 0:this.maxlength,minlength:_?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(T=this.inputProps)===null||T===void 0?void 0:T.style,h],onBlur:this.handleInputBlur,onFocus:y=>{this.handleInputFocus(y,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?s.h("div",{class:`${l}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?s.h(Ur,{onResize:this.handleTextAreaMirrorResize},{default:()=>s.h("div",{ref:"textareaMirrorElRef",class:`${l}-input__textarea-mirror`,key:"mirror"})}):null)}}):s.h("div",{class:`${l}-input__input`},s.h("input",Object.assign({type:p==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":p},this.inputProps,{ref:"inputElRef",class:[`${l}-input__input-el`,(o=this.inputProps)===null||o===void 0?void 0:o.class],style:[this.textDecorationStyle[0],(a=this.inputProps)===null||a===void 0?void 0:a.style],tabindex:this.passivelyActivated&&!this.activated?-1:(i=this.inputProps)===null||i===void 0?void 0:i.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:_?void 0:this.maxlength,minlength:_?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:g=>{this.handleInputFocus(g,0)},onInput:g=>{this.handleInput(g,0)},onChange:g=>{this.handleChange(g,0)}})),this.showPlaceholder1?s.h("div",{class:`${l}-input__placeholder`},s.h("span",null,this.mergedPlaceholder[0])):null,this.autosize?s.h("div",{class:`${l}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Lt(S.suffix,g=>g||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?s.h("div",{class:`${l}-input__suffix`},[Lt(S["clear-icon-placeholder"],T=>(this.clearable||T)&&s.h(ro,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>T,icon:()=>{var x,h;return(h=(x=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(x)}})),this.internalLoadingBeforeSuffix?null:g,this.loading!==void 0?s.h(Ph,{clsPrefix:l,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?g:null,this.showCount&&this.type!=="textarea"?s.h(Pi,null,{default:T=>{var x;const{renderCount:h}=this;return h?h(T):(x=S.count)===null||x===void 0?void 0:x.call(S,T)}}):null,this.mergedShowPasswordOn&&this.type==="password"?s.h("div",{class:`${l}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Kt(S["password-visible-icon"],()=>[s.h(dn,{clsPrefix:l},{default:()=>s.h(dh,null)})]):Kt(S["password-invisible-icon"],()=>[s.h(dn,{clsPrefix:l},{default:()=>s.h(fh,null)})])):null]):null)),this.pair?s.h("span",{class:`${l}-input__separator`},Kt(S.separator,()=>[this.separator])):null,this.pair?s.h("div",{class:`${l}-input-wrapper`},s.h("div",{class:`${l}-input__input`},s.h("input",{ref:"inputEl2Ref",type:this.type,class:`${l}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:_?void 0:this.maxlength,minlength:_?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:g=>{this.handleInputFocus(g,1)},onInput:g=>{this.handleInput(g,1)},onChange:g=>{this.handleChange(g,1)}}),this.showPlaceholder2?s.h("div",{class:`${l}-input__placeholder`},s.h("span",null,this.mergedPlaceholder[1])):null),Lt(S.suffix,g=>(this.clearable||g)&&s.h("div",{class:`${l}-input__suffix`},[this.clearable&&s.h(ro,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var T;return(T=S["clear-icon"])===null||T===void 0?void 0:T.call(S)},placeholder:()=>{var T;return(T=S["clear-icon-placeholder"])===null||T===void 0?void 0:T.call(S)}}),g]))):null,this.mergedBordered?s.h("div",{class:`${l}-input__border`}):null,this.mergedBordered?s.h("div",{class:`${l}-input__state-border`}):null,this.showCount&&p==="textarea"?s.h(Pi,null,{default:g=>{var T;const{renderCount:x}=this;return x?x(g):(T=S.count)===null||T===void 0?void 0:T.call(S,g)}}):null)}});function Jt(e){return Mr(e,[255,255,255,.16])}function pr(e){return Mr(e,[0,0,0,.12])}const Bh="n-button-group",Hh={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function Uh(e){const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:a,fontSizeTiny:i,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:m,opacityDisabled:p,textColor2:_,textColor3:E,primaryColorHover:S,primaryColorPressed:g,borderColor:T,primaryColor:x,baseColor:h,infoColor:y,infoColorHover:I,infoColorPressed:v,successColor:O,successColorHover:N,successColorPressed:d,warningColor:P,warningColorHover:A,warningColorPressed:k,errorColor:z,errorColorHover:B,errorColorPressed:ae,fontWeight:re,buttonColor2:se,buttonColor2Hover:ne,buttonColor2Pressed:Y,fontWeightStrong:ve}=e;return Object.assign(Object.assign({},Hh),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:i,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:m,opacityDisabled:p,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:se,colorSecondaryHover:ne,colorSecondaryPressed:Y,colorTertiary:se,colorTertiaryHover:ne,colorTertiaryPressed:Y,colorQuaternary:"#0000",colorQuaternaryHover:ne,colorQuaternaryPressed:Y,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:_,textColorTertiary:E,textColorHover:S,textColorPressed:g,textColorFocus:S,textColorDisabled:_,textColorText:_,textColorTextHover:S,textColorTextPressed:g,textColorTextFocus:S,textColorTextDisabled:_,textColorGhost:_,textColorGhostHover:S,textColorGhostPressed:g,textColorGhostFocus:S,textColorGhostDisabled:_,border:`1px solid ${T}`,borderHover:`1px solid ${S}`,borderPressed:`1px solid ${g}`,borderFocus:`1px solid ${S}`,borderDisabled:`1px solid ${T}`,rippleColor:x,colorPrimary:x,colorHoverPrimary:S,colorPressedPrimary:g,colorFocusPrimary:S,colorDisabledPrimary:x,textColorPrimary:h,textColorHoverPrimary:h,textColorPressedPrimary:h,textColorFocusPrimary:h,textColorDisabledPrimary:h,textColorTextPrimary:x,textColorTextHoverPrimary:S,textColorTextPressedPrimary:g,textColorTextFocusPrimary:S,textColorTextDisabledPrimary:_,textColorGhostPrimary:x,textColorGhostHoverPrimary:S,textColorGhostPressedPrimary:g,textColorGhostFocusPrimary:S,textColorGhostDisabledPrimary:x,borderPrimary:`1px solid ${x}`,borderHoverPrimary:`1px solid ${S}`,borderPressedPrimary:`1px solid ${g}`,borderFocusPrimary:`1px solid ${S}`,borderDisabledPrimary:`1px solid ${x}`,rippleColorPrimary:x,colorInfo:y,colorHoverInfo:I,colorPressedInfo:v,colorFocusInfo:I,colorDisabledInfo:y,textColorInfo:h,textColorHoverInfo:h,textColorPressedInfo:h,textColorFocusInfo:h,textColorDisabledInfo:h,textColorTextInfo:y,textColorTextHoverInfo:I,textColorTextPressedInfo:v,textColorTextFocusInfo:I,textColorTextDisabledInfo:_,textColorGhostInfo:y,textColorGhostHoverInfo:I,textColorGhostPressedInfo:v,textColorGhostFocusInfo:I,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${I}`,borderPressedInfo:`1px solid ${v}`,borderFocusInfo:`1px solid ${I}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:O,colorHoverSuccess:N,colorPressedSuccess:d,colorFocusSuccess:N,colorDisabledSuccess:O,textColorSuccess:h,textColorHoverSuccess:h,textColorPressedSuccess:h,textColorFocusSuccess:h,textColorDisabledSuccess:h,textColorTextSuccess:O,textColorTextHoverSuccess:N,textColorTextPressedSuccess:d,textColorTextFocusSuccess:N,textColorTextDisabledSuccess:_,textColorGhostSuccess:O,textColorGhostHoverSuccess:N,textColorGhostPressedSuccess:d,textColorGhostFocusSuccess:N,textColorGhostDisabledSuccess:O,borderSuccess:`1px solid ${O}`,borderHoverSuccess:`1px solid ${N}`,borderPressedSuccess:`1px solid ${d}`,borderFocusSuccess:`1px solid ${N}`,borderDisabledSuccess:`1px solid ${O}`,rippleColorSuccess:O,colorWarning:P,colorHoverWarning:A,colorPressedWarning:k,colorFocusWarning:A,colorDisabledWarning:P,textColorWarning:h,textColorHoverWarning:h,textColorPressedWarning:h,textColorFocusWarning:h,textColorDisabledWarning:h,textColorTextWarning:P,textColorTextHoverWarning:A,textColorTextPressedWarning:k,textColorTextFocusWarning:A,textColorTextDisabledWarning:_,textColorGhostWarning:P,textColorGhostHoverWarning:A,textColorGhostPressedWarning:k,textColorGhostFocusWarning:A,textColorGhostDisabledWarning:P,borderWarning:`1px solid ${P}`,borderHoverWarning:`1px solid ${A}`,borderPressedWarning:`1px solid ${k}`,borderFocusWarning:`1px solid ${A}`,borderDisabledWarning:`1px solid ${P}`,rippleColorWarning:P,colorError:z,colorHoverError:B,colorPressedError:ae,colorFocusError:B,colorDisabledError:z,textColorError:h,textColorHoverError:h,textColorPressedError:h,textColorFocusError:h,textColorDisabledError:h,textColorTextError:z,textColorTextHoverError:B,textColorTextPressedError:ae,textColorTextFocusError:B,textColorTextDisabledError:_,textColorGhostError:z,textColorGhostHoverError:B,textColorGhostPressedError:ae,textColorGhostFocusError:B,textColorGhostDisabledError:z,borderError:`1px solid ${z}`,borderHoverError:`1px solid ${B}`,borderPressedError:`1px solid ${ae}`,borderFocusError:`1px solid ${B}`,borderDisabledError:`1px solid ${z}`,rippleColorError:z,waveOpacity:"0.6",fontWeight:re,fontWeightStrong:ve})}const Oi={name:"Button",common:hr,self:Uh},zh=W([ce("button",`
417
+ margin: 0;
418
+ font-weight: var(--n-font-weight);
419
+ line-height: 1;
420
+ font-family: inherit;
421
+ padding: var(--n-padding);
422
+ height: var(--n-height);
423
+ font-size: var(--n-font-size);
424
+ border-radius: var(--n-border-radius);
425
+ color: var(--n-text-color);
426
+ background-color: var(--n-color);
427
+ width: var(--n-width);
428
+ white-space: nowrap;
429
+ outline: none;
430
+ position: relative;
431
+ z-index: auto;
432
+ border: none;
433
+ display: inline-flex;
434
+ flex-wrap: nowrap;
435
+ flex-shrink: 0;
436
+ align-items: center;
437
+ justify-content: center;
438
+ user-select: none;
439
+ -webkit-user-select: none;
440
+ text-align: center;
441
+ cursor: pointer;
442
+ text-decoration: none;
443
+ transition:
444
+ color .3s var(--n-bezier),
445
+ background-color .3s var(--n-bezier),
446
+ opacity .3s var(--n-bezier),
447
+ border-color .3s var(--n-bezier);
448
+ `,[he("color",[H("border",{borderColor:"var(--n-border-color)"}),he("disabled",[H("border",{borderColor:"var(--n-border-color-disabled)"})]),Ht("disabled",[W("&:focus",[H("state-border",{borderColor:"var(--n-border-color-focus)"})]),W("&:hover",[H("state-border",{borderColor:"var(--n-border-color-hover)"})]),W("&:active",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})]),he("pressed",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),he("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[H("border",{border:"var(--n-border-disabled)"})]),Ht("disabled",[W("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[H("state-border",{border:"var(--n-border-focus)"})]),W("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[H("state-border",{border:"var(--n-border-hover)"})]),W("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})]),he("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})])]),he("loading","cursor: wait;"),ce("base-wave",`
449
+ pointer-events: none;
450
+ top: 0;
451
+ right: 0;
452
+ bottom: 0;
453
+ left: 0;
454
+ animation-iteration-count: 1;
455
+ animation-duration: var(--n-ripple-duration);
456
+ animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
457
+ `,[he("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Qn&&"MozBoxSizing"in document.createElement("div").style?W("&::moz-focus-inner",{border:0}):null,H("border, state-border",`
458
+ position: absolute;
459
+ left: 0;
460
+ top: 0;
461
+ right: 0;
462
+ bottom: 0;
463
+ border-radius: inherit;
464
+ transition: border-color .3s var(--n-bezier);
465
+ pointer-events: none;
466
+ `),H("border",`
467
+ border: var(--n-border);
468
+ `),H("state-border",`
469
+ border: var(--n-border);
470
+ border-color: #0000;
471
+ z-index: 1;
472
+ `),H("icon",`
473
+ margin: var(--n-icon-margin);
474
+ margin-left: 0;
475
+ height: var(--n-icon-size);
476
+ width: var(--n-icon-size);
477
+ max-width: var(--n-icon-size);
478
+ font-size: var(--n-icon-size);
479
+ position: relative;
480
+ flex-shrink: 0;
481
+ `,[ce("icon-slot",`
482
+ height: var(--n-icon-size);
483
+ width: var(--n-icon-size);
484
+ position: absolute;
485
+ left: 0;
486
+ top: 50%;
487
+ transform: translateY(-50%);
488
+ display: flex;
489
+ align-items: center;
490
+ justify-content: center;
491
+ `,[fr({top:"50%",originalTransform:"translateY(-50%)"})]),Ih()]),H("content",`
492
+ display: flex;
493
+ align-items: center;
494
+ flex-wrap: nowrap;
495
+ min-width: 0;
496
+ `,[W("~",[H("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),he("block",`
497
+ display: flex;
498
+ width: 100%;
499
+ `),he("dashed",[H("border, state-border",{borderStyle:"dashed !important"})]),he("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),W("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),W("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Wh=Object.assign(Object.assign({},wt.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!xi}}),Ni=s.defineComponent({name:"Button",props:Wh,slots:Object,setup(e){process.env.NODE_ENV!=="production"&&s.watchEffect(()=>{const{dashed:v,ghost:O,text:N,secondary:d,tertiary:P,quaternary:A}=e;(v||O||N)&&(d||P||A)&&Ia("button","`dashed`, `ghost` and `text` props can't be used along with `secondary`, `tertiary` and `quaternary` props.")});const t=s.ref(null),n=s.ref(null),r=s.ref(!1),o=mt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=s.inject(Bh,{}),{mergedSizeRef:i}=Wr({},{defaultSize:"medium",mergedSize:v=>{const{size:O}=e;if(O)return O;const{size:N}=a;if(N)return N;const{mergedSize:d}=v||{};return d?d.value:"medium"}}),l=s.computed(()=>e.focusable&&!e.disabled),c=v=>{var O;l.value||v.preventDefault(),!e.nativeFocusBehavior&&(v.preventDefault(),!e.disabled&&l.value&&((O=t.value)===null||O===void 0||O.focus({preventScroll:!0})))},m=v=>{var O;if(!e.disabled&&!e.loading){const{onClick:N}=e;N&&Te(N,v),e.text||(O=n.value)===null||O===void 0||O.play()}},p=v=>{switch(v.key){case"Enter":if(!e.keyboard)return;r.value=!1}},_=v=>{switch(v.key){case"Enter":if(!e.keyboard||e.loading){v.preventDefault();return}r.value=!0}},E=()=>{r.value=!1},{inlineThemeDisabled:S,mergedClsPrefixRef:g,mergedRtlRef:T}=or(e),x=wt("Button","-button",zh,Oi,e,g),h=dr("Button",T,g),y=s.computed(()=>{const v=x.value,{common:{cubicBezierEaseInOut:O,cubicBezierEaseOut:N},self:d}=v,{rippleDuration:P,opacityDisabled:A,fontWeight:k,fontWeightStrong:z}=d,B=i.value,{dashed:ae,type:re,ghost:se,text:ne,color:Y,round:ve,circle:Ie,textColor:de,secondary:Oe,tertiary:We,quaternary:Be,strong:Ae}=e,De={"--n-font-weight":Ae?z:k};let te={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const Le=re==="tertiary",He=re==="default",J=Le?"default":re;if(ne){const C=de||Y;te={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":C||d[Q("textColorText",J)],"--n-text-color-hover":C?Jt(C):d[Q("textColorTextHover",J)],"--n-text-color-pressed":C?pr(C):d[Q("textColorTextPressed",J)],"--n-text-color-focus":C?Jt(C):d[Q("textColorTextHover",J)],"--n-text-color-disabled":C||d[Q("textColorTextDisabled",J)]}}else if(se||ae){const C=de||Y;te={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":Y||d[Q("rippleColor",J)],"--n-text-color":C||d[Q("textColorGhost",J)],"--n-text-color-hover":C?Jt(C):d[Q("textColorGhostHover",J)],"--n-text-color-pressed":C?pr(C):d[Q("textColorGhostPressed",J)],"--n-text-color-focus":C?Jt(C):d[Q("textColorGhostHover",J)],"--n-text-color-disabled":C||d[Q("textColorGhostDisabled",J)]}}else if(Oe){const C=He?d.textColor:Le?d.textColorTertiary:d[Q("color",J)],L=Y||C,V=re!=="default"&&re!=="tertiary";te={"--n-color":V?Wt(L,{alpha:Number(d.colorOpacitySecondary)}):d.colorSecondary,"--n-color-hover":V?Wt(L,{alpha:Number(d.colorOpacitySecondaryHover)}):d.colorSecondaryHover,"--n-color-pressed":V?Wt(L,{alpha:Number(d.colorOpacitySecondaryPressed)}):d.colorSecondaryPressed,"--n-color-focus":V?Wt(L,{alpha:Number(d.colorOpacitySecondaryHover)}):d.colorSecondaryHover,"--n-color-disabled":d.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":L,"--n-text-color-hover":L,"--n-text-color-pressed":L,"--n-text-color-focus":L,"--n-text-color-disabled":L}}else if(We||Be){const C=He?d.textColor:Le?d.textColorTertiary:d[Q("color",J)],L=Y||C;We?(te["--n-color"]=d.colorTertiary,te["--n-color-hover"]=d.colorTertiaryHover,te["--n-color-pressed"]=d.colorTertiaryPressed,te["--n-color-focus"]=d.colorSecondaryHover,te["--n-color-disabled"]=d.colorTertiary):(te["--n-color"]=d.colorQuaternary,te["--n-color-hover"]=d.colorQuaternaryHover,te["--n-color-pressed"]=d.colorQuaternaryPressed,te["--n-color-focus"]=d.colorQuaternaryHover,te["--n-color-disabled"]=d.colorQuaternary),te["--n-ripple-color"]="#0000",te["--n-text-color"]=L,te["--n-text-color-hover"]=L,te["--n-text-color-pressed"]=L,te["--n-text-color-focus"]=L,te["--n-text-color-disabled"]=L}else te={"--n-color":Y||d[Q("color",J)],"--n-color-hover":Y?Jt(Y):d[Q("colorHover",J)],"--n-color-pressed":Y?pr(Y):d[Q("colorPressed",J)],"--n-color-focus":Y?Jt(Y):d[Q("colorFocus",J)],"--n-color-disabled":Y||d[Q("colorDisabled",J)],"--n-ripple-color":Y||d[Q("rippleColor",J)],"--n-text-color":de||(Y?d.textColorPrimary:Le?d.textColorTertiary:d[Q("textColor",J)]),"--n-text-color-hover":de||(Y?d.textColorHoverPrimary:d[Q("textColorHover",J)]),"--n-text-color-pressed":de||(Y?d.textColorPressedPrimary:d[Q("textColorPressed",J)]),"--n-text-color-focus":de||(Y?d.textColorFocusPrimary:d[Q("textColorFocus",J)]),"--n-text-color-disabled":de||(Y?d.textColorDisabledPrimary:d[Q("textColorDisabled",J)])};let qe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};ne?qe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:qe={"--n-border":d[Q("border",J)],"--n-border-hover":d[Q("borderHover",J)],"--n-border-pressed":d[Q("borderPressed",J)],"--n-border-focus":d[Q("borderFocus",J)],"--n-border-disabled":d[Q("borderDisabled",J)]};const{[Q("height",B)]:Ze,[Q("fontSize",B)]:ut,[Q("padding",B)]:Re,[Q("paddingRound",B)]:et,[Q("iconSize",B)]:je,[Q("borderRadius",B)]:Ge,[Q("iconMargin",B)]:$,waveOpacity:u}=d,f={"--n-width":Ie&&!ne?Ze:"initial","--n-height":ne?"initial":Ze,"--n-font-size":ut,"--n-padding":Ie||ne?"initial":ve?et:Re,"--n-icon-size":je,"--n-icon-margin":$,"--n-border-radius":ne?"initial":Ie||ve?Ze:Ge};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":O,"--n-bezier-ease-out":N,"--n-ripple-duration":P,"--n-opacity-disabled":A,"--n-wave-opacity":u},De),te),qe),f)}),I=S?zr("button",s.computed(()=>{let v="";const{dashed:O,type:N,ghost:d,text:P,color:A,round:k,circle:z,textColor:B,secondary:ae,tertiary:re,quaternary:se,strong:ne}=e;O&&(v+="a"),d&&(v+="b"),P&&(v+="c"),k&&(v+="d"),z&&(v+="e"),ae&&(v+="f"),re&&(v+="g"),se&&(v+="h"),ne&&(v+="i"),A&&(v+=`j${wa(A)}`),B&&(v+=`k${wa(B)}`);const{value:Y}=i;return v+=`l${Y[0]}`,v+=`m${N[0]}`,v}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:g,mergedFocusable:l,mergedSize:i,showBorder:o,enterPressed:r,rtlEnabled:h,handleMousedown:c,handleKeydown:_,handleBlur:E,handleKeyup:p,handleClick:m,customColorCssVars:s.computed(()=>{const{color:v}=e;if(!v)return null;const O=Jt(v);return{"--n-border-color":v,"--n-border-color-hover":O,"--n-border-color-pressed":pr(v),"--n-border-color-focus":O,"--n-border-color-disabled":v}}),cssVars:S?void 0:y,themeClass:I?.themeClass,onRender:I?.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();const r=Lt(this.$slots.default,o=>o&&s.h("span",{class:`${e}-button__content`},o));return s.h(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,s.h(gh,{width:!0},{default:()=>Lt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&s.h("span",{class:`${e}-button__icon`,style:{margin:bc(this.$slots.default)?"0":""}},s.h(no,null,{default:()=>this.loading?s.h(_i,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):s.h("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:s.h(Nh,{ref:"waveElRef",clsPrefix:e}),this.showBorder?s.h("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?s.h("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}});function jh(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const Gh={name:"InputNumber",common:hr,peers:{Button:Oi,Input:wi},self:jh},Yh=W([ce("input-number-suffix",`
500
+ display: inline-block;
501
+ margin-right: 10px;
502
+ `),ce("input-number-prefix",`
503
+ display: inline-block;
504
+ margin-left: 10px;
505
+ `)]);function Kh(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Xh(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function ao(e){return e==null?!0:!Number.isNaN(e)}function Ai(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function io(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Ri=800,Di=100,qh=Object.assign(Object.assign({},wt.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Vh=s.defineComponent({name:"InputNumber",props:qh,slots:Object,setup(e){process.env.NODE_ENV!=="production"&&s.watchEffect(()=>{e.onChange!==void 0&&Ia("input-number","`on-change` is deprecated, please use `on-update:value` instead")});const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=or(e),o=wt("InputNumber","-input-number",Yh,Gh,e,n),{localeRef:a}=vi("InputNumber"),i=Wr(e),{mergedSizeRef:l,mergedDisabledRef:c,mergedStatusRef:m}=i,p=s.ref(null),_=s.ref(null),E=s.ref(null),S=s.ref(e.defaultValue),g=s.toRef(e,"value"),T=la(g,S),x=s.ref(""),h=$=>{const u=String($).split(".")[1];return u?u.length:0},y=$=>{const u=[e.min,e.max,e.step,$].map(f=>f===void 0?0:h(f));return Math.max(...u)},I=mt(()=>{const{placeholder:$}=e;return $!==void 0?$:a.value.placeholder}),v=mt(()=>{const $=io(e.step);return $!==null?$===0?1:Math.abs($):1}),O=mt(()=>{const $=io(e.min);return $!==null?$:null}),N=mt(()=>{const $=io(e.max);return $!==null?$:null}),d=()=>{const{value:$}=T;if(ao($)){const{format:u,precision:f}=e;u?x.value=u($):$===null||f===void 0||h($)>f?x.value=Ai($,void 0):x.value=Ai($,f)}else x.value=String($)};d();const P=$=>{const{value:u}=T;if($===u){d();return}const{"onUpdate:value":f,onUpdateValue:C,onChange:L}=e,{nTriggerFormInput:V,nTriggerFormChange:ue}=i;L&&Te(L,$),C&&Te(C,$),f&&Te(f,$),S.value=$,V(),ue()},A=({offset:$,doUpdateIfValid:u,fixPrecision:f,isInputing:C})=>{const{value:L}=x;if(C&&Xh(L))return!1;const V=(e.parse||Kh)(L);if(V===null)return u&&P(null),null;if(ao(V)){const ue=h(V),{precision:q}=e;if(q!==void 0&&q<ue&&!f)return!1;let w=Number.parseFloat((V+$).toFixed(q??y(V)));if(ao(w)){const{value:D}=N,{value:Z}=O;if(D!==null&&w>D){if(!u||C)return!1;w=D}if(Z!==null&&w<Z){if(!u||C)return!1;w=Z}return e.validator&&!e.validator(w)?!1:(u&&P(w),w)}}return!1},k=mt(()=>A({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),z=mt(()=>{const{value:$}=T;if(e.validator&&$===null)return!1;const{value:u}=v;return A({offset:-u,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),B=mt(()=>{const{value:$}=T;if(e.validator&&$===null)return!1;const{value:u}=v;return A({offset:+u,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function ae($){const{onFocus:u}=e,{nTriggerFormFocus:f}=i;u&&Te(u,$),f()}function re($){var u,f;if($.target===((u=p.value)===null||u===void 0?void 0:u.wrapperElRef))return;const C=A({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(C!==!1){const ue=(f=p.value)===null||f===void 0?void 0:f.inputElRef;ue&&(ue.value=String(C||"")),T.value===C&&d()}else d();const{onBlur:L}=e,{nTriggerFormBlur:V}=i;L&&Te(L,$),V(),s.nextTick(()=>{d()})}function se($){const{onClear:u}=e;u&&Te(u,$)}function ne(){const{value:$}=B;if(!$){He();return}const{value:u}=T;if(u===null)e.validator||P(de());else{const{value:f}=v;A({offset:f,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function Y(){const{value:$}=z;if(!$){te();return}const{value:u}=T;if(u===null)e.validator||P(de());else{const{value:f}=v;A({offset:-f,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const ve=ae,Ie=re;function de(){if(e.validator)return null;const{value:$}=O,{value:u}=N;return $!==null?Math.max(0,$):u!==null?Math.min(0,u):0}function Oe($){se($),P(null)}function We($){var u,f,C;!((u=E.value)===null||u===void 0)&&u.$el.contains($.target)&&$.preventDefault(),!((f=_.value)===null||f===void 0)&&f.$el.contains($.target)&&$.preventDefault(),(C=p.value)===null||C===void 0||C.activate()}let Be=null,Ae=null,De=null;function te(){De&&(window.clearTimeout(De),De=null),Be&&(window.clearInterval(Be),Be=null)}let Le=null;function He(){Le&&(window.clearTimeout(Le),Le=null),Ae&&(window.clearInterval(Ae),Ae=null)}function J(){te(),De=window.setTimeout(()=>{Be=window.setInterval(()=>{Y()},Di)},Ri),Ct("mouseup",document,te,{once:!0})}function qe(){He(),Le=window.setTimeout(()=>{Ae=window.setInterval(()=>{ne()},Di)},Ri),Ct("mouseup",document,He,{once:!0})}const Ze=()=>{Ae||ne()},ut=()=>{Be||Y()};function Re($){var u,f;if($.key==="Enter"){if($.target===((u=p.value)===null||u===void 0?void 0:u.wrapperElRef))return;A({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((f=p.value)===null||f===void 0||f.deactivate())}else if($.key==="ArrowUp"){if(!B.value||e.keyboard.ArrowUp===!1)return;$.preventDefault(),A({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ne()}else if($.key==="ArrowDown"){if(!z.value||e.keyboard.ArrowDown===!1)return;$.preventDefault(),A({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&Y()}}function et($){x.value=$,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&A({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}s.watch(T,()=>{d()});const je={focus:()=>{var $;return($=p.value)===null||$===void 0?void 0:$.focus()},blur:()=>{var $;return($=p.value)===null||$===void 0?void 0:$.blur()},select:()=>{var $;return($=p.value)===null||$===void 0?void 0:$.select()}},Ge=dr("InputNumber",r,n);return Object.assign(Object.assign({},je),{rtlEnabled:Ge,inputInstRef:p,minusButtonInstRef:_,addButtonInstRef:E,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:S,mergedValue:T,mergedPlaceholder:I,displayedValueInvalid:k,mergedSize:l,mergedDisabled:c,displayedValue:x,addable:B,minusable:z,mergedStatus:m,handleFocus:ve,handleBlur:Ie,handleClear:Oe,handleMouseDown:We,handleAddClick:Ze,handleMinusClick:ut,handleAddMousedown:qe,handleMinusMousedown:J,handleKeyDown:Re,handleUpdateDisplayedValue:et,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:s.computed(()=>{const{self:{iconColorDisabled:$}}=o.value,[u,f,C,L]=Rt($);return{textColorTextDisabled:`rgb(${u}, ${f}, ${C})`,opacityDisabled:`${L}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>s.h(Ni,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>Kt(t["minus-icon"],()=>[s.h(dn,{clsPrefix:e},{default:()=>s.h(hh,null)})])}),r=()=>s.h(Ni,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>Kt(t["add-icon"],()=>[s.h(dn,{clsPrefix:e},{default:()=>s.h(lh,null)})])});return s.h("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},s.h(Ii,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Lt(t.prefix,a=>a?s.h("span",{class:`${e}-input-number-prefix`},a):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Lt(t.suffix,a=>a?s.h("span",{class:`${e}-input-number-suffix`},a):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}});class Je{id;deviceId;type;static registry={};constructor(t){this.id=t.id,this.deviceId=t.deviceId}static register(t,n){Je.registry[t]=n}static fromPlain(t){const n=Je.registry[t.type];if(!n)throw new Error(`Unsupported protocol type: ${t.type}`);return n.fromPlain(t)}}class Jh{static getDefaultConfig(t){console.log(1231231,t);const n=t.baseInfo,r=t.configuration,o=t.tab;return{baseInfo:n,config:r,tab:o}}}const Qh={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 Ln extends Je{type=gt.ETHERNET;moduleType=$n[gt.ETHERNET];baseInfo;config;tab;constructor(t){super(t);const{baseInfo:n,config:r,tab:o}=Jh.getDefaultConfig(Qh);this.baseInfo=n,this.config=r,this.tab=o}static fromPlain(t){return new Ln(t)}}class gr extends Je{type=gt.MODBUS_TCP_SERVER;moduleType=$n[gt.MODBUS_TCP_SERVER];constructor(t){super(t)}static fromPlain(t){return new gr(t)}}class vr extends Je{type=gt.MODBUS_TCP_CLIENT;moduleType=$n[gt.MODBUS_TCP_CLIENT];constructor(t){super(t)}static fromPlain(t){return new vr(t)}}class br extends Je{type=gt.MODBUS_TCP_SLAVE_DEVICE;moduleType=$n[gt.MODBUS_TCP_SLAVE_DEVICE];constructor(t){super(t)}static fromPlain(t){return new br(t)}}var gt=(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))(gt||{});const $n={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 Li{map=new Map;constructor(){Je.register("Ethernet",Ln),Je.register("ModbusTCPServer",gr),Je.register("ModbusTCPClient",vr),Je.register("ModbusTCPSlaveDevice",br)}init(t){this.clear(),t.forEach(n=>{const r=Je.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 Zh=s.defineComponent({__name:"App",setup(e){const t=s.ref("192.168.1.1"),n=s.ref("123");return new Li,new Ln({id:1,deviceId:1,type:"Ethernet"}),(r,o)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(Ar,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=a=>t.value=a)},null,8,["modelValue"]),s.createVNode(Gn,{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=a=>n.value=a)},null,8,["modelValue"])]))}});function vt(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const $i={};function lo(e){$i[e]||($i[e]=!0,vt(e))}const st=typeof window<"u";let Qe,Qt;if(process.env.NODE_ENV!=="production"){const e=st&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Qe=t=>{e.mark(t)},Qt=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const em=/\{([0-9a-zA-Z]+)\}/g;function _r(e,...t){return t.length===1&&oe(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(em,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const bt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),tm=(e,t,n)=>nm({l:e,k:t,s:n}),nm=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Pe=e=>typeof e=="number"&&isFinite(e),rm=e=>so(e)==="[object Date]",fn=e=>so(e)==="[object RegExp]",yr=e=>ee(e)&&Object.keys(e).length===0,Ne=Object.assign,om=Object.create,me=(e=null)=>om(e);let Mi;const Zt=()=>Mi||(Mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:me());function Fi(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 ki(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 am(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,o,a)=>`${o}="${ki(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,o,a)=>`${o}='${ki(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&vt("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 im=Object.prototype.hasOwnProperty;function ct(e,t){return im.call(e,t)}const we=Array.isArray,ge=e=>typeof e=="function",F=e=>typeof e=="string",le=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",lm=e=>oe(e)&&ge(e.then)&&ge(e.catch),Bi=Object.prototype.toString,so=e=>Bi.call(e),ee=e=>so(e)==="[object Object]",sm=e=>e==null?"":we(e)||ee(e)&&e.toString===Bi?JSON.stringify(e,null,2):String(e);function co(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}const Hi=2;function cm(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const a=[];for(let i=0;i<r.length;i++)if(o+=r[i].length+1,o>=t){for(let l=i-Hi;l<=i+Hi||n>o;l++){if(l<0||l>=r.length)continue;const c=l+1;a.push(`${c}${" ".repeat(3-String(c).length)}| ${r[l]}`);const m=r[l].length;if(l===i){const p=t-(o-m)+1,_=Math.max(1,n>o?m-p:n-t);a.push(" | "+" ".repeat(p)+"^".repeat(_))}else if(l>i){if(n>o){const p=Math.max(Math.min(n-o,m),1);a.push(" | "+"^".repeat(p))}o+=m+1}}break}return a.join(`
506
+ `)}function uo(){const e=new Map;return{events:e,on(n,r){const o=e.get(n);o&&o.push(r)||e.set(n,[r])},off(n,r){const o=e.get(n);o&&o.splice(o.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(o=>o(r)),(e.get("*")||[]).slice().map(o=>o(n,r))}}}const Er=e=>!oe(e)||we(e);function Cr(e,t){if(Er(e)||Er(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(a=>{a!=="__proto__"&&(oe(r[a])&&!oe(o[a])&&(o[a]=Array.isArray(r[a])?[]:me()),Er(o[a])||Er(r[a])?o[a]=r[a]:n.push({src:r[a],des:o[a]}))})}}function um(e,t,n){return{line:e,column:t,offset:n}}function fo(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},dm=17,fm={[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 hn(e,t,n={}){const{domain:r,messages:o,args:a}=n,i=process.env.NODE_ENV!=="production"?_r((o||fm)[e]||"",...a||[]):e,l=new SyntaxError(String(i));return l.code=e,t&&(l.location=t),l.domain=r,l}function hm(e){throw e}const mm=/<\/?[\w\s="/.':;#-\/]+>/,pm=e=>mm.test(e),_t=" ",gm="\r",Fe=`
507
+ `,vm="\u2028",bm="\u2029";function _m(e){const t=e;let n=0,r=1,o=1,a=0;const i=d=>t[d]===gm&&t[d+1]===Fe,l=d=>t[d]===Fe,c=d=>t[d]===bm,m=d=>t[d]===vm,p=d=>i(d)||l(d)||c(d)||m(d),_=()=>n,E=()=>r,S=()=>o,g=()=>a,T=d=>i(d)||c(d)||m(d)?Fe:t[d],x=()=>T(n),h=()=>T(n+a);function y(){return a=0,p(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function I(){return i(n+a)&&a++,a++,t[n+a]}function v(){n=0,r=1,o=1,a=0}function O(d=0){a=d}function N(){const d=n+a;for(;d!==n;)y();a=0}return{index:_,line:E,column:S,peekOffset:g,charAt:T,currentChar:x,currentPeek:h,next:y,peek:I,reset:v,resetPeek:O,skipToPeek:N}}const St=void 0,ym=".",Ui="'",Em="tokenizer";function Cm(e,t={}){const n=t.location!==!1,r=_m(e),o=()=>r.index(),a=()=>um(r.line(),r.column(),r.index()),i=a(),l=o(),c={currentType:13,offset:l,startLoc:i,endLoc:i,lastType:13,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},m=()=>c,{onError:p}=t;function _(u,f,C,...L){const V=m();if(f.column+=C,f.offset+=C,p){const ue=n?fo(V.startLoc,f):null,q=hn(u,ue,{domain:Em,args:L});p(q)}}function E(u,f,C){u.endLoc=a(),u.currentType=f;const L={type:f};return n&&(L.loc=fo(u.startLoc,u.endLoc)),C!=null&&(L.value=C),L}const S=u=>E(u,13);function g(u,f){return u.currentChar()===f?(u.next(),f):(_(K.EXPECTED_TOKEN,a(),0,f),"")}function T(u){let f="";for(;u.currentPeek()===_t||u.currentPeek()===Fe;)f+=u.currentPeek(),u.peek();return f}function x(u){const f=T(u);return u.skipToPeek(),f}function h(u){if(u===St)return!1;const f=u.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function y(u){if(u===St)return!1;const f=u.charCodeAt(0);return f>=48&&f<=57}function I(u,f){const{currentType:C}=f;if(C!==2)return!1;T(u);const L=h(u.currentPeek());return u.resetPeek(),L}function v(u,f){const{currentType:C}=f;if(C!==2)return!1;T(u);const L=u.currentPeek()==="-"?u.peek():u.currentPeek(),V=y(L);return u.resetPeek(),V}function O(u,f){const{currentType:C}=f;if(C!==2)return!1;T(u);const L=u.currentPeek()===Ui;return u.resetPeek(),L}function N(u,f){const{currentType:C}=f;if(C!==7)return!1;T(u);const L=u.currentPeek()===".";return u.resetPeek(),L}function d(u,f){const{currentType:C}=f;if(C!==8)return!1;T(u);const L=h(u.currentPeek());return u.resetPeek(),L}function P(u,f){const{currentType:C}=f;if(!(C===7||C===11))return!1;T(u);const L=u.currentPeek()===":";return u.resetPeek(),L}function A(u,f){const{currentType:C}=f;if(C!==9)return!1;const L=()=>{const ue=u.currentPeek();return ue==="{"?h(u.peek()):ue==="@"||ue==="|"||ue===":"||ue==="."||ue===_t||!ue?!1:ue===Fe?(u.peek(),L()):z(u,!1)},V=L();return u.resetPeek(),V}function k(u){T(u);const f=u.currentPeek()==="|";return u.resetPeek(),f}function z(u,f=!0){const C=(V=!1,ue="")=>{const q=u.currentPeek();return q==="{"||q==="@"||!q?V:q==="|"?!(ue===_t||ue===Fe):q===_t?(u.peek(),C(!0,_t)):q===Fe?(u.peek(),C(!0,Fe)):!0},L=C();return f&&u.resetPeek(),L}function B(u,f){const C=u.currentChar();return C===St?St:f(C)?(u.next(),C):null}function ae(u){const f=u.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function re(u){return B(u,ae)}function se(u){const f=u.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function ne(u){return B(u,se)}function Y(u){const f=u.charCodeAt(0);return f>=48&&f<=57}function ve(u){return B(u,Y)}function Ie(u){const f=u.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function de(u){return B(u,Ie)}function Oe(u){let f="",C="";for(;f=ve(u);)C+=f;return C}function We(u){let f="";for(;;){const C=u.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C===_t||C===Fe)if(z(u))f+=C,u.next();else{if(k(u))break;f+=C,u.next()}else f+=C,u.next()}return f}function Be(u){x(u);let f="",C="";for(;f=ne(u);)C+=f;const L=u.currentChar();if(L&&L!=="}"&&L!==St&&L!==_t&&L!==Fe&&L!==" "){const V=qe(u);return _(K.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,C+V),C+V}return u.currentChar()===St&&_(K.UNTERMINATED_CLOSING_BRACE,a(),0),C}function Ae(u){x(u);let f="";return u.currentChar()==="-"?(u.next(),f+=`-${Oe(u)}`):f+=Oe(u),u.currentChar()===St&&_(K.UNTERMINATED_CLOSING_BRACE,a(),0),f}function De(u){return u!==Ui&&u!==Fe}function te(u){x(u),g(u,"'");let f="",C="";for(;f=B(u,De);)f==="\\"?C+=Le(u):C+=f;const L=u.currentChar();return L===Fe||L===St?(_(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),L===Fe&&(u.next(),g(u,"'")),C):(g(u,"'"),C)}function Le(u){const f=u.currentChar();switch(f){case"\\":case"'":return u.next(),`\\${f}`;case"u":return He(u,f,4);case"U":return He(u,f,6);default:return _(K.UNKNOWN_ESCAPE_SEQUENCE,a(),0,f),""}}function He(u,f,C){g(u,f);let L="";for(let V=0;V<C;V++){const ue=de(u);if(!ue){_(K.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${f}${L}${u.currentChar()}`);break}L+=ue}return`\\${f}${L}`}function J(u){return u!=="{"&&u!=="}"&&u!==_t&&u!==Fe}function qe(u){x(u);let f="",C="";for(;f=B(u,J);)C+=f;return C}function Ze(u){let f="",C="";for(;f=re(u);)C+=f;return C}function ut(u){const f=C=>{const L=u.currentChar();return L==="{"||L==="@"||L==="|"||L==="("||L===")"||!L||L===_t?C:(C+=L,u.next(),f(C))};return f("")}function Re(u){x(u);const f=g(u,"|");return x(u),f}function et(u,f){let C=null;switch(u.currentChar()){case"{":return f.braceNest>=1&&_(K.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),u.next(),C=E(f,2,"{"),x(u),f.braceNest++,C;case"}":return f.braceNest>0&&f.currentType===2&&_(K.EMPTY_PLACEHOLDER,a(),0),u.next(),C=E(f,3,"}"),f.braceNest--,f.braceNest>0&&x(u),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),C;case"@":return f.braceNest>0&&_(K.UNTERMINATED_CLOSING_BRACE,a(),0),C=je(u,f)||S(f),f.braceNest=0,C;default:{let V=!0,ue=!0,q=!0;if(k(u))return f.braceNest>0&&_(K.UNTERMINATED_CLOSING_BRACE,a(),0),C=E(f,1,Re(u)),f.braceNest=0,f.inLinked=!1,C;if(f.braceNest>0&&(f.currentType===4||f.currentType===5||f.currentType===6))return _(K.UNTERMINATED_CLOSING_BRACE,a(),0),f.braceNest=0,Ge(u,f);if(V=I(u,f))return C=E(f,4,Be(u)),x(u),C;if(ue=v(u,f))return C=E(f,5,Ae(u)),x(u),C;if(q=O(u,f))return C=E(f,6,te(u)),x(u),C;if(!V&&!ue&&!q)return C=E(f,12,qe(u)),_(K.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,C.value),x(u),C;break}}return C}function je(u,f){const{currentType:C}=f;let L=null;const V=u.currentChar();switch((C===7||C===8||C===11||C===9)&&(V===Fe||V===_t)&&_(K.INVALID_LINKED_FORMAT,a(),0),V){case"@":return u.next(),L=E(f,7,"@"),f.inLinked=!0,L;case".":return x(u),u.next(),E(f,8,".");case":":return x(u),u.next(),E(f,9,":");default:return k(u)?(L=E(f,1,Re(u)),f.braceNest=0,f.inLinked=!1,L):N(u,f)||P(u,f)?(x(u),je(u,f)):d(u,f)?(x(u),E(f,11,Ze(u))):A(u,f)?(x(u),V==="{"?et(u,f)||L:E(f,10,ut(u))):(C===7&&_(K.INVALID_LINKED_FORMAT,a(),0),f.braceNest=0,f.inLinked=!1,Ge(u,f))}}function Ge(u,f){let C={type:13};if(f.braceNest>0)return et(u,f)||S(f);if(f.inLinked)return je(u,f)||S(f);switch(u.currentChar()){case"{":return et(u,f)||S(f);case"}":return _(K.UNBALANCED_CLOSING_BRACE,a(),0),u.next(),E(f,3,"}");case"@":return je(u,f)||S(f);default:{if(k(u))return C=E(f,1,Re(u)),f.braceNest=0,f.inLinked=!1,C;if(z(u))return E(f,0,We(u));break}}return C}function $(){const{currentType:u,offset:f,startLoc:C,endLoc:L}=c;return c.lastType=u,c.lastOffset=f,c.lastStartLoc=C,c.lastEndLoc=L,c.offset=o(),c.startLoc=a(),r.currentChar()===St?E(c,13):Ge(r,c)}return{nextToken:$,currentOffset:o,currentPosition:a,context:m}}const Tm="parser",xm=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function wm(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 Sm(e={}){const t=e.location!==!1,{onError:n}=e;function r(h,y,I,v,...O){const N=h.currentPosition();if(N.offset+=v,N.column+=v,n){const d=t?fo(I,N):null,P=hn(y,d,{domain:Tm,args:O});n(P)}}function o(h,y,I){const v={type:h};return t&&(v.start=y,v.end=y,v.loc={start:I,end:I}),v}function a(h,y,I,v){t&&(h.end=y,h.loc&&(h.loc.end=I))}function i(h,y){const I=h.context(),v=o(3,I.offset,I.startLoc);return v.value=y,a(v,h.currentOffset(),h.currentPosition()),v}function l(h,y){const I=h.context(),{lastOffset:v,lastStartLoc:O}=I,N=o(5,v,O);return N.index=parseInt(y,10),h.nextToken(),a(N,h.currentOffset(),h.currentPosition()),N}function c(h,y){const I=h.context(),{lastOffset:v,lastStartLoc:O}=I,N=o(4,v,O);return N.key=y,h.nextToken(),a(N,h.currentOffset(),h.currentPosition()),N}function m(h,y){const I=h.context(),{lastOffset:v,lastStartLoc:O}=I,N=o(9,v,O);return N.value=y.replace(xm,wm),h.nextToken(),a(N,h.currentOffset(),h.currentPosition()),N}function p(h){const y=h.nextToken(),I=h.context(),{lastOffset:v,lastStartLoc:O}=I,N=o(8,v,O);return y.type!==11?(r(h,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,I.lastStartLoc,0),N.value="",a(N,v,O),{nextConsumeToken:y,node:N}):(y.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,yt(y)),N.value=y.value||"",a(N,h.currentOffset(),h.currentPosition()),{node:N})}function _(h,y){const I=h.context(),v=o(7,I.offset,I.startLoc);return v.value=y,a(v,h.currentOffset(),h.currentPosition()),v}function E(h){const y=h.context(),I=o(6,y.offset,y.startLoc);let v=h.nextToken();if(v.type===8){const O=p(h);I.modifier=O.node,v=O.nextConsumeToken||h.nextToken()}switch(v.type!==9&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(v)),v=h.nextToken(),v.type===2&&(v=h.nextToken()),v.type){case 10:v.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(v)),I.key=_(h,v.value||"");break;case 4:v.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(v)),I.key=c(h,v.value||"");break;case 5:v.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(v)),I.key=l(h,v.value||"");break;case 6:v.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(v)),I.key=m(h,v.value||"");break;default:{r(h,K.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const O=h.context(),N=o(7,O.offset,O.startLoc);return N.value="",a(N,O.offset,O.startLoc),I.key=N,a(I,O.offset,O.startLoc),{nextConsumeToken:v,node:I}}}return a(I,h.currentOffset(),h.currentPosition()),{node:I}}function S(h){const y=h.context(),I=y.currentType===1?h.currentOffset():y.offset,v=y.currentType===1?y.endLoc:y.startLoc,O=o(2,I,v);O.items=[];let N=null;do{const A=N||h.nextToken();switch(N=null,A.type){case 0:A.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(A)),O.items.push(i(h,A.value||""));break;case 5:A.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(A)),O.items.push(l(h,A.value||""));break;case 4:A.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(A)),O.items.push(c(h,A.value||""));break;case 6:A.value==null&&r(h,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,yt(A)),O.items.push(m(h,A.value||""));break;case 7:{const k=E(h);O.items.push(k.node),N=k.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const d=y.currentType===1?y.lastOffset:h.currentOffset(),P=y.currentType===1?y.lastEndLoc:h.currentPosition();return a(O,d,P),O}function g(h,y,I,v){const O=h.context();let N=v.items.length===0;const d=o(1,y,I);d.cases=[],d.cases.push(v);do{const P=S(h);N||(N=P.items.length===0),d.cases.push(P)}while(O.currentType!==13);return N&&r(h,K.MUST_HAVE_MESSAGES_IN_PLURAL,I,0),a(d,h.currentOffset(),h.currentPosition()),d}function T(h){const y=h.context(),{offset:I,startLoc:v}=y,O=S(h);return y.currentType===13?O:g(h,I,v,O)}function x(h){const y=Cm(h,Ne({},e)),I=y.context(),v=o(0,I.offset,I.startLoc);return t&&v.loc&&(v.loc.source=h),v.body=T(y),e.onCacheKey&&(v.cacheKey=e.onCacheKey(h)),I.currentType!==13&&r(y,K.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,h[I.offset]||""),a(v,y.currentOffset(),y.currentPosition()),v}return{parse:x}}function yt(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 Pm(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function zi(e,t){for(let n=0;n<e.length;n++)ho(e[n],t)}function ho(e,t){switch(e.type){case 1:zi(e.cases,t),t.helper("plural");break;case 2:zi(e.items,t);break;case 6:{ho(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 Im(e,t={}){const n=Pm(e);n.helper("normalize"),e.body&&ho(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Om(e){const t=e.body;return t.type===2?Wi(t):t.cases.forEach(n=>Wi(n)),e}function Wi(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=co(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 Nm="minifier";function mn(e){switch(e.t=e.type,e.type){case 0:{const t=e;mn(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++)mn(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++)mn(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;mn(t.key),t.k=t.key,delete t.key,t.modifier&&(mn(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 hn(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Nm,args:[e.type]})}delete e.type}const Am="parser";function Rm(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,a=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};a&&e.loc&&(i.source=e.loc.source);const l=()=>i;function c(T,x){i.code+=T}function m(T,x=!0){const h=x?r:"";c(o?h+" ".repeat(T):h)}function p(T=!0){const x=++i.indentLevel;T&&m(x)}function _(T=!0){const x=--i.indentLevel;T&&m(x)}function E(){m(i.indentLevel)}return{context:l,push:c,indent:p,deindent:_,newline:E,helper:T=>`_${T}`,needIndent:()=>i.needIndent}}function Dm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),pn(e,t.key),t.modifier?(e.push(", "),pn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Lm(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let a=0;a<o&&(pn(e,t.items[a]),a!==o-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function $m(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let a=0;a<o&&(pn(e,t.cases[a]),a!==o-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function Mm(e,t){t.body?pn(e,t.body):e.push("null")}function pn(e,t){const{helper:n}=e;switch(t.type){case 0:Mm(e,t);break;case 1:$m(e,t);break;case 2:Lm(e,t);break;case 6:Dm(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 hn(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Am,args:[t.type]})}}const Fm=(e,t={})=>{const n=F(t.mode)?t.mode:"normal",r=F(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
508
+ `,a=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],l=Rm(e,{filename:r,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),i.length>0&&(l.push(`const { ${co(i.map(p=>`${p}: _${p}`),", ")} } = ctx`),l.newline()),l.push("return "),pn(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:m}=l.context();return{ast:e,code:c,map:m?m.toJSON():void 0}};function km(e,t={}){const n=Ne({},t),r=!!n.jit,o=!!n.minify,a=n.optimize==null?!0:n.optimize,l=Sm(n).parse(e);return r?(a&&Om(l),o&&mn(l),{ast:l,code:""}):(Im(l,n),Fm(l,n))}function Bm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function rt(e){return oe(e)&&mo(e)===0&&(ct(e,"b")||ct(e,"body"))}const ji=["b","body"];function Hm(e){return Mt(e,ji)}const Gi=["c","cases"];function Um(e){return Mt(e,Gi,[])}const Yi=["s","static"];function zm(e){return Mt(e,Yi)}const Ki=["i","items"];function Wm(e){return Mt(e,Ki,[])}const Xi=["t","type"];function mo(e){return Mt(e,Xi)}const qi=["v","value"];function Tr(e,t){const n=Mt(e,qi);if(n!=null)return n;throw Mn(t)}const Vi=["m","modifier"];function jm(e){return Mt(e,Vi)}const Ji=["k","key"];function Gm(e){const t=Mt(e,Ji);if(t)return t;throw Mn(6)}function Mt(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(ct(e,o)&&e[o]!=null)return e[o]}return n}const Qi=[...ji,...Gi,...Yi,...Ki,...Ji,...Vi,...qi,...Xi];function Mn(e){return new Error(`unhandled node type: ${e}`)}function po(e){return n=>Ym(n,e)}function Ym(e,t){const n=Hm(t);if(n==null)throw Mn(0);if(mo(n)===1){const a=Um(n);return e.plural(a.reduce((i,l)=>[...i,Zi(e,l)],[]))}else return Zi(e,n)}function Zi(e,t){const n=zm(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Wm(t).reduce((o,a)=>[...o,go(e,a)],[]);return e.normalize(r)}}function go(e,t){const n=mo(t);switch(n){case 3:return Tr(t,n);case 9:return Tr(t,n);case 4:{const r=t;if(ct(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ct(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Mn(n)}case 5:{const r=t;if(ct(r,"i")&&Pe(r.i))return e.interpolate(e.list(r.i));if(ct(r,"index")&&Pe(r.index))return e.interpolate(e.list(r.index));throw Mn(n)}case 6:{const r=t,o=jm(r),a=Gm(r);return e.linked(go(e,a),o?go(e,o):void 0,e.type)}case 7:return Tr(t,n);case 8:return Tr(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Km="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Xm(e,t){t&&pm(e)&&vt(_r(Km,{source:e}))}const qm=e=>e;let xr=me();function Vm(e,t={}){let n=!1;const r=t.onError||hm;return t.onError=o=>{n=!0,r(o)},{...km(e,t),detectError:n}}function Jm(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&F(e)){const n=le(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Xm(e,n);const o=(t.onCacheKey||qm)(e),a=xr[o];if(a)return a;const{ast:i,detectError:l}=Vm(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=po(i);return l?c:xr[o]=c}else{if(process.env.NODE_ENV!=="production"&&!rt(e))return vt(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=xr[n];return r||(xr[n]=po(e))}else return po(e)}}let Fn=null;function Qm(e){Fn=e}function Zm(e,t,n){Fn&&Fn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ep=tp("function:translate");function tp(e){return t=>Fn&&Fn.emit(e,t)}const ke={INVALID_ARGUMENT:dm,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},np=24;function Pt(e){return hn(e,null,process.env.NODE_ENV!=="production"?{messages:rp}:void 0)}const rp={[ke.INVALID_ARGUMENT]:"Invalid arguments",[ke.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ke.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ke.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ke.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function vo(e,t){return t.locale!=null?el(t.locale):el(e.locale)}let bo;function el(e){if(F(e))return e;if(ge(e)){if(e.resolvedOnce&&bo!=null)return bo;if(e.constructor.name==="Function"){const t=e();if(lm(t))throw Pt(ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return bo=t}else throw Pt(ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Pt(ke.NOT_SUPPORT_LOCALE_TYPE)}function op(e,t,n){return[...new Set([n,...we(t)?t:oe(t)?Object.keys(t):F(t)?[t]:[n]])]}function tl(e,t,n){const r=F(n)?n:kn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let i=[n];for(;we(i);)i=nl(a,i,t);const l=we(t)||!ee(t)?t:t.default?t.default:null;i=F(l)?[l]:l,we(i)&&nl(a,i,!1),o.__localeChainCache.set(r,a)}return a}function nl(e,t,n){let r=!0;for(let o=0;o<t.length&&le(r);o++){const a=t[o];F(a)&&(r=ap(e,t[o],n))}return r}function ap(e,t,n){let r;const o=t.split("-");do{const a=o.join("-");r=ip(e,a,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function ip(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(we(n)||ee(n))&&n[o]&&(r=n[o])}return r}const Ft=[];Ft[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ft[1]={w:[1],".":[2],"[":[4],o:[7]},Ft[2]={w:[2],i:[3,0],0:[3,0]},Ft[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ft[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ft[5]={"'":[4,0],o:8,l:[5,0]},Ft[6]={'"':[4,0],o:8,l:[6,0]};const lp=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function sp(e){return lp.test(e)}function cp(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 up(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 dp(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:sp(t)?cp(t):"*"+t}function fp(e){const t=[];let n=-1,r=0,o=0,a,i,l,c,m,p,_;const E=[];E[0]=()=>{i===void 0?i=l:i+=l},E[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},E[2]=()=>{E[0](),o++},E[3]=()=>{if(o>0)o--,r=4,E[0]();else{if(o=0,i===void 0||(i=dp(i),i===!1))return!1;E[1]()}};function S(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,l="\\"+g,E[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&S())){if(c=up(a),_=Ft[r],m=_[c]||_.l||8,m===8||(r=m[0],m[1]!==void 0&&(p=E[m[1]],p&&(l=a,p()===!1))))return;if(r===7)return t}}const rl=new Map;function hp(e,t){return oe(e)?e[t]:null}function mp(e,t){if(!oe(e))return null;let n=rl.get(t);if(n||(n=fp(t),n&&rl.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const i=n[a];if(Qi.includes(i)&&rt(o))return null;const l=o[i];if(l===void 0||ge(o))return null;o=l,a++}return o}const Ke={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},pp=8,gp={[Ke.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ke.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ke.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ke.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ke.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ke.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ke.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 en(e,...t){return _r(gp[e],...t)}const vp="11.2.8",wr=-1,kn="en-US",Sr="",ol=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function bp(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?ol(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?ol(e.children):e}}let al;function _p(e){al=e}let il;function yp(e){il=e}let ll;function Ep(e){ll=e}let sl=null;const Cp=e=>{sl=e},Tp=()=>sl;let cl=null;const ul=e=>{cl=e},xp=()=>cl;let dl=0;function wp(e={}){const t=ge(e.onWarn)?e.onWarn:vt,n=F(e.version)?e.version:vp,r=F(e.locale)||ge(e.locale)?e.locale:kn,o=ge(r)?kn:r,a=we(e.fallbackLocale)||ee(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=ee(e.messages)?e.messages:_o(o),l=ee(e.datetimeFormats)?e.datetimeFormats:_o(o),c=ee(e.numberFormats)?e.numberFormats:_o(o),m=Ne(me(),e.modifiers,bp()),p=e.pluralRules||me(),_=ge(e.missing)?e.missing:null,E=le(e.missingWarn)||fn(e.missingWarn)?e.missingWarn:!0,S=le(e.fallbackWarn)||fn(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,T=!!e.unresolving,x=ge(e.postTranslation)?e.postTranslation:null,h=ee(e.processor)?e.processor:null,y=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter,v=ge(e.messageCompiler)?e.messageCompiler:al;process.env.NODE_ENV!=="production"&&ge(e.messageCompiler)&&lo(en(Ke.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const O=ge(e.messageResolver)?e.messageResolver:il||hp,N=ge(e.localeFallbacker)?e.localeFallbacker:ll||op,d=oe(e.fallbackContext)?e.fallbackContext:void 0,P=e,A=oe(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,k=oe(P.__numberFormatters)?P.__numberFormatters:new Map,z=oe(P.__meta)?P.__meta:{};dl++;const B={version:n,cid:dl,locale:r,fallbackLocale:a,messages:i,modifiers:m,pluralRules:p,missing:_,missingWarn:E,fallbackWarn:S,fallbackFormat:g,unresolving:T,postTranslation:x,processor:h,warnHtmlMessage:y,escapeParameter:I,messageCompiler:v,messageResolver:O,localeFallbacker:N,fallbackContext:d,onWarn:t,__meta:z};return B.datetimeFormats=l,B.numberFormats=c,B.__datetimeFormatters=A,B.__numberFormatters=k,process.env.NODE_ENV!=="production"&&(B.__v_emitter=P.__v_emitter!=null?P.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Zm(B,n,z),B}const _o=e=>({[e]:me()});function Pr(e,t){return e instanceof RegExp?e.test(t):e}function fl(e,t){return e instanceof RegExp?e.test(t):e}function yo(e,t,n,r,o){const{missing:a,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(a!==null){const l=a(e,n,t,o);return F(l)?l:t}else return process.env.NODE_ENV!=="production"&&fl(r,t)&&i(en(Ke.NOT_FOUND_KEY,{key:t,locale:n})),t}function Bn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function hl(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Sp(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(hl(e,t[r]))return!0;return!1}const ml=typeof Intl<"u",pl={dateTimeFormat:ml&&typeof Intl.DateTimeFormat<"u",numberFormat:ml&&typeof Intl.NumberFormat<"u"};function gl(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:i}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!pl.dateTimeFormat)return a(en(Ke.CANNOT_FORMAT_DATE)),Sr;const[c,m,p,_]=Eo(...t),E=le(p.missingWarn)?p.missingWarn:e.missingWarn,S=le(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,g=!!p.part,T=vo(e,p),x=i(e,o,T);if(!F(c)||c==="")return new Intl.DateTimeFormat(T,_).format(m);let h={},y,I=null,v=T,O=null;const N="datetime format";for(let A=0;A<x.length;A++){if(y=O=x[A],process.env.NODE_ENV!=="production"&&T!==y&&Pr(S,c)&&a(en(Ke.FALLBACK_TO_DATE_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&T!==y){const k=e.__v_emitter;k&&k.emit("fallback",{type:N,key:c,from:v,to:O,groupId:`${N}:${c}`})}if(h=n[y]||{},I=h[c],ee(I))break;yo(e,c,y,E,N),v=O}if(!ee(I)||!F(y))return r?wr:c;let d=`${y}__${c}`;yr(_)||(d=`${d}__${JSON.stringify(_)}`);let P=l.get(d);return P||(P=new Intl.DateTimeFormat(y,Ne({},I,_)),l.set(d,P)),g?P.formatToParts(m):P.format(m)}const vl=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Eo(...e){const[t,n,r,o]=e,a=me();let i=me(),l;if(F(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Pt(ke.INVALID_ISO_DATE_ARGUMENT);const m=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(m);try{l.toISOString()}catch{throw Pt(ke.INVALID_ISO_DATE_ARGUMENT)}}else if(rm(t)){if(isNaN(t.getTime()))throw Pt(ke.INVALID_DATE_ARGUMENT);l=t}else if(Pe(t))l=t;else throw Pt(ke.INVALID_ARGUMENT);return F(n)?a.key=n:ee(n)&&Object.keys(n).forEach(c=>{vl.includes(c)?i[c]=n[c]:a[c]=n[c]}),F(r)?a.locale=r:ee(r)&&(i=r),ee(o)&&(i=o),[a.key||"",l,a,i]}function bl(e,t,n){const r=e;for(const o in n){const a=`${t}__${o}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function _l(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:i}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!pl.numberFormat)return a(en(Ke.CANNOT_FORMAT_NUMBER)),Sr;const[c,m,p,_]=Co(...t),E=le(p.missingWarn)?p.missingWarn:e.missingWarn,S=le(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,g=!!p.part,T=vo(e,p),x=i(e,o,T);if(!F(c)||c==="")return new Intl.NumberFormat(T,_).format(m);let h={},y,I=null,v=T,O=null;const N="number format";for(let A=0;A<x.length;A++){if(y=O=x[A],process.env.NODE_ENV!=="production"&&T!==y&&Pr(S,c)&&a(en(Ke.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&T!==y){const k=e.__v_emitter;k&&k.emit("fallback",{type:N,key:c,from:v,to:O,groupId:`${N}:${c}`})}if(h=n[y]||{},I=h[c],ee(I))break;yo(e,c,y,E,N),v=O}if(!ee(I)||!F(y))return r?wr:c;let d=`${y}__${c}`;yr(_)||(d=`${d}__${JSON.stringify(_)}`);let P=l.get(d);return P||(P=new Intl.NumberFormat(y,Ne({},I,_)),l.set(d,P)),g?P.formatToParts(m):P.format(m)}const yl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Co(...e){const[t,n,r,o]=e,a=me();let i=me();if(!Pe(t))throw Pt(ke.INVALID_ARGUMENT);const l=t;return F(n)?a.key=n:ee(n)&&Object.keys(n).forEach(c=>{yl.includes(c)?i[c]=n[c]:a[c]=n[c]}),F(r)?a.locale=r:ee(r)&&(i=r),ee(o)&&(i=o),[a.key||"",l,a,i]}function El(e,t,n){const r=e;for(const o in n){const a=`${t}__${o}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const Pp=e=>e,Ip=e=>"",Op="text",Np=e=>e.length===0?"":co(e),Ap=sm;function Cl(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Rp(e){const t=Pe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Pe(e.named.count)||Pe(e.named.n))?Pe(e.named.count)?e.named.count:Pe(e.named.n)?e.named.n:t:t}function Dp(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Lp(e={}){const t=e.locale,n=Rp(e),r=oe(e.pluralRules)&&F(t)&&ge(e.pluralRules[t])?e.pluralRules[t]:Cl,o=oe(e.pluralRules)&&F(t)&&ge(e.pluralRules[t])?Cl:void 0,a=h=>h[r(n,h.length,o)],i=e.list||[],l=h=>i[h],c=e.named||me();Pe(e.pluralIndex)&&Dp(n,c);const m=h=>c[h];function p(h,y){const I=ge(e.messages)?e.messages(h,!!y):oe(e.messages)?e.messages[h]:!1;return I||(e.parent?e.parent.message(h):Ip)}const _=h=>e.modifiers?e.modifiers[h]:Pp,E=ee(e.processor)&&ge(e.processor.normalize)?e.processor.normalize:Np,S=ee(e.processor)&&ge(e.processor.interpolate)?e.processor.interpolate:Ap,g=ee(e.processor)&&F(e.processor.type)?e.processor.type:Op,x={list:l,named:m,plural:a,linked:(h,...y)=>{const[I,v]=y;let O="text",N="";y.length===1?oe(I)?(N=I.modifier||N,O=I.type||O):F(I)&&(N=I||N):y.length===2&&(F(I)&&(N=I||N),F(v)&&(O=v||O));const d=p(h,!0)(x),P=O==="vnode"&&we(d)&&N?d[0]:d;return N?_(N)(P,O):P},message:p,type:g,interpolate:S,normalize:E,values:Ne(me(),i,c)};return x}const Tl=()=>"",ot=e=>ge(e);function xl(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:i,messages:l}=e,[c,m]=To(...t),p=le(m.missingWarn)?m.missingWarn:e.missingWarn,_=le(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,E=le(m.escapeParameter)?m.escapeParameter:e.escapeParameter,S=!!m.resolvedMessage,g=F(m.default)||le(m.default)?le(m.default)?a?c:()=>c:m.default:n?a?c:()=>c:null,T=n||g!=null&&(F(g)||ge(g)),x=vo(e,m);E&&$p(m);let[h,y,I]=S?[c,x,l[x]||me()]:wl(e,c,x,i,_,p),v=h,O=c;if(!S&&!(F(v)||rt(v)||ot(v))&&T&&(v=g,O=v),!S&&(!(F(v)||rt(v)||ot(v))||!F(y)))return o?wr:c;if(process.env.NODE_ENV!=="production"&&F(v)&&e.messageCompiler==null)return vt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let N=!1;const d=()=>{N=!0},P=ot(v)?v:Sl(e,c,y,v,O,d);if(N)return v;const A=Bp(e,y,I,m),k=Lp(A),z=Mp(e,P,k);let B=r?r(z,c):z;if(E&&F(B)&&(B=am(B)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ae={timestamp:Date.now(),key:F(c)?c:ot(v)?v.key:"",locale:y||(ot(v)?v.locale:""),format:F(v)?v:ot(v)?v.source:"",message:B};ae.meta=Ne({},e.__meta,Tp()||{}),ep(ae)}return B}function $p(e){we(e.list)?e.list=e.list.map(t=>F(t)?Fi(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{F(e.named[t])&&(e.named[t]=Fi(e.named[t]))})}function wl(e,t,n,r,o,a){const{messages:i,onWarn:l,messageResolver:c,localeFallbacker:m}=e,p=m(e,r,n);let _=me(),E,S=null,g=n,T=null;const x="translate";for(let h=0;h<p.length;h++){if(E=T=p[h],process.env.NODE_ENV!=="production"&&n!==E&&!hl(n,E)&&Pr(o,t)&&l(en(Ke.FALLBACK_TO_TRANSLATE,{key:t,target:E})),process.env.NODE_ENV!=="production"&&n!==E){const O=e.__v_emitter;O&&O.emit("fallback",{type:x,key:t,from:g,to:T,groupId:`${x}:${t}`})}_=i[E]||me();let y=null,I,v;if(process.env.NODE_ENV!=="production"&&st&&(y=window.performance.now(),I="intlify-message-resolve-start",v="intlify-message-resolve-end",Qe&&Qe(I)),(S=c(_,t))===null&&(S=_[t]),process.env.NODE_ENV!=="production"&&st){const O=window.performance.now(),N=e.__v_emitter;N&&y&&S&&N.emit("message-resolve",{type:"message-resolve",key:t,message:S,time:O-y,groupId:`${x}:${t}`}),I&&v&&Qe&&Qt&&(Qe(v),Qt("intlify message resolve",I,v))}if(F(S)||rt(S)||ot(S))break;if(!Sp(E,p)){const O=yo(e,t,E,a,x);O!==t&&(S=O)}g=T}return[S,E,_]}function Sl(e,t,n,r,o,a){const{messageCompiler:i,warnHtmlMessage:l}=e;if(ot(r)){const E=r;return E.locale=E.locale||n,E.key=E.key||t,E}if(i==null){const E=(()=>r);return E.locale=n,E.key=t,E}let c=null,m,p;process.env.NODE_ENV!=="production"&&st&&(c=window.performance.now(),m="intlify-message-compilation-start",p="intlify-message-compilation-end",Qe&&Qe(m));const _=i(r,Fp(e,n,o,r,l,a));if(process.env.NODE_ENV!=="production"&&st){const E=window.performance.now(),S=e.__v_emitter;S&&c&&S.emit("message-compilation",{type:"message-compilation",message:r,time:E-c,groupId:`translate:${t}`}),m&&p&&Qe&&Qt&&(Qe(p),Qt("intlify message compilation",m,p))}return _.locale=n,_.key=t,_.source=r,_}function Mp(e,t,n){let r=null,o,a;process.env.NODE_ENV!=="production"&&st&&(r=window.performance.now(),o="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Qe&&Qe(o));const i=t(n);if(process.env.NODE_ENV!=="production"&&st){const l=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:l-r,groupId:`translate:${t.key}`}),o&&a&&Qe&&Qt&&(Qe(a),Qt("intlify message evaluation",o,a))}return i}function To(...e){const[t,n,r]=e,o=me();if(!F(t)&&!Pe(t)&&!ot(t)&&!rt(t))throw Pt(ke.INVALID_ARGUMENT);const a=Pe(t)?String(t):(ot(t),t);return Pe(n)?o.plural=n:F(n)?o.default=n:ee(n)&&!yr(n)?o.named=n:we(n)&&(o.list=n),Pe(r)?o.plural=r:F(r)?o.default=r:ee(r)&&Ne(o,r),[a,o]}function Fp(e,t,n,r,o,a){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{if(a&&a(i),process.env.NODE_ENV!=="production"){const l=kp(r),c=`Message compilation error: ${i.message}`,m=i.location&&l&&cm(l,i.location.start.offset,i.location.end.offset),p=e.__v_emitter;p&&l&&p.emit("compile-error",{message:l,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${c}
509
+ ${m}`:c)}else throw i},onCacheKey:i=>tm(t,n,i)}}function kp(e){if(F(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Bp(e,t,n,r){const{modifiers:o,pluralRules:a,messageResolver:i,fallbackLocale:l,fallbackWarn:c,missingWarn:m,fallbackContext:p}=e,E={locale:t,modifiers:o,pluralRules:a,messages:(S,g)=>{let T=i(n,S);if(T==null&&(p||g)){const[,,x]=wl(p||e,S,t,l,c,m);T=i(x,S)}if(F(T)||rt(T)){let x=!1;const y=Sl(e,S,t,T,S,()=>{x=!0});return x?Tl:y}else return ot(T)?T:Tl}};return e.processor&&(E.processor=e.processor),r.list&&(E.list=r.list),r.named&&(E.named=r.named),Pe(r.plural)&&(E.pluralIndex=r.plural),E}Bm();function Hp(){return Pl().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Pl(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Up=typeof Proxy=="function",zp="devtools-plugin:setup",Wp="plugin:settings:set";let gn,xo;function jp(){var e;return gn!==void 0||(typeof window<"u"&&window.performance?(gn=!0,xo=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(gn=!0,xo=globalThis.perf_hooks.performance):gn=!1),gn}function Gp(){return jp()?xo.now():Date.now()}class Yp{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const l=t.settings[i];r[i]=l.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const i=localStorage.getItem(o),l=JSON.parse(i);Object.assign(a,l)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}a=i},now(){return Gp()}},n&&n.on(Wp,(i,l)=>{i===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(i,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(m=>{this.targetQueue.push({method:l,args:c,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 Kp(e,t){const n=e,r=Pl(),o=Hp(),a=Up&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(zp,e,t);else{const i=a?new Yp(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}const Xp="11.2.8";function qp(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Zt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Zt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zt().__INTLIFY_PROD_DEVTOOLS__=!1)}const ye={UNEXPECTED_RETURN_TYPE:np,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 Xe(e,...t){return hn(e,null,process.env.NODE_ENV!=="production"?{messages:Vp,args:t}:void 0)}const Vp={[ye.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ye.INVALID_ARGUMENT]:"Invalid argument",[ye.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ye.NOT_INSTALLED]:"Need to install with `app.use` function",[ye.UNEXPECTED_ERROR]:"Unexpected error",[ye.REQUIRED_VALUE]:"Required in value: {0}",[ye.INVALID_VALUE]:"Invalid value",[ye.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ye.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ye.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},wo=bt("__translateVNode"),So=bt("__datetimeParts"),Po=bt("__numberParts"),tn=bt("__enableEmitter"),Hn=bt("__disableEmitter"),Il=bt("__setPluralRules"),Ol=bt("__injectWithOption"),Io=bt("__dispose"),at={FALLBACK_TO_ROOT:pp,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Jp={[at.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[at.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[at.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[at.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
510
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[at.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[at.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 vn(e,...t){return _r(Jp[e],...t)}function Un(e){if(!oe(e)||rt(e))return e;for(const t in e)if(ct(e,t))if(!t.includes("."))oe(e[t])&&Un(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,a=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in o||(o[n[i]]=me()),!oe(o[n[i]])){process.env.NODE_ENV!=="production"&&vt(vn(at.IGNORE_OBJ_FLATTEN,{key:n[i]})),a=!0;break}o=o[n[i]]}if(a||(rt(o)?Qi.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!rt(o)){const i=o[n[r]];oe(i)&&Un(i)}}return e}function Oo(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:a}=t,i=ee(n)?n:we(r)?me():{[e]:me()};if(we(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:m}=l;c?(i[c]=i[c]||me(),Cr(m,i[c])):Cr(m,i)}else F(l)&&Cr(JSON.parse(l),i)}),o==null&&a)for(const l in i)ct(i,l)&&Un(i[l]);return i}function Nl(e){return e.type}function Al(e,t,n){let r=oe(t.messages)?t.messages:me();"__i18nGlobal"in n&&(r=Oo(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(oe(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(oe(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Rl(e){return s.createVNode(s.Text,null,e,0)}function bn(){const e="currentInstance";return e in Nr?Nr[e]:Nr.getCurrentInstance()}const Dl="__INTLIFY_META__",Ll=()=>[],Qp=()=>!1;let $l=0;function Ml(e){return((t,n,r,o)=>e(n,r,bn()||void 0,o))}const Zp=()=>{const e=bn();let t=null;return e&&(t=Nl(e)[Dl])?{[Dl]:t}:null};function No(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,a=st?s.ref:s.shallowRef;let i=le(e.inheritLocale)?e.inheritLocale:!0;const l=a(t&&i?t.locale.value:F(e.locale)?e.locale:kn),c=a(t&&i?t.fallbackLocale.value:F(e.fallbackLocale)||we(e.fallbackLocale)||ee(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),m=a(Oo(l.value,e)),p=a(ee(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),_=a(ee(e.numberFormats)?e.numberFormats:{[l.value]:{}});let E=t?t.missingWarn:le(e.missingWarn)||fn(e.missingWarn)?e.missingWarn:!0,S=t?t.fallbackWarn:le(e.fallbackWarn)||fn(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,x=ge(e.missing)?e.missing:null,h=ge(e.missing)?Ml(e.missing):null,y=ge(e.postTranslation)?e.postTranslation:null,I=t?t.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const O=t?t.modifiers:ee(e.modifiers)?e.modifiers:{};let N=e.pluralRules||t&&t.pluralRules,d;d=(()=>{r&&ul(null);const w={version:Xp,locale:l.value,fallbackLocale:c.value,messages:m.value,modifiers:O,pluralRules:N,missing:h===null?void 0:h,missingWarn:E,fallbackWarn:S,fallbackFormat:T,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:I,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};w.datetimeFormats=p.value,w.numberFormats=_.value,w.__datetimeFormatters=ee(d)?d.__datetimeFormatters:void 0,w.__numberFormatters=ee(d)?d.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(w.__v_emitter=ee(d)?d.__v_emitter:void 0);const D=wp(w);return r&&ul(D),D})(),Bn(d,l.value,c.value);function A(){return[l.value,c.value,m.value,p.value,_.value]}const k=s.computed({get:()=>l.value,set:w=>{d.locale=w,l.value=w}}),z=s.computed({get:()=>c.value,set:w=>{d.fallbackLocale=w,c.value=w,Bn(d,l.value,w)}}),B=s.computed(()=>m.value),ae=s.computed(()=>p.value),re=s.computed(()=>_.value);function se(){return ge(y)?y:null}function ne(w){y=w,d.postTranslation=w}function Y(){return x}function ve(w){w!==null&&(h=Ml(w)),x=w,d.missing=h}function Ie(w,D){return w!=="translate"||!D.resolvedMessage}const de=(w,D,Z,be,it,kt)=>{A();let lt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(d.fallbackContext=t?xp():void 0),lt=w(d)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(d.fallbackContext=void 0)}if(Z!=="translate exists"&&Pe(lt)&&lt===wr||Z==="translate exists"&&!lt){const[tt,_n]=D();if(process.env.NODE_ENV!=="production"&&t&&F(tt)&&Ie(Z,_n)&&(g&&(Pr(S,tt)||fl(E,tt))&&vt(vn(at.FALLBACK_TO_ROOT,{key:tt,type:Z})),process.env.NODE_ENV!=="production")){const{__v_emitter:dt}=d;dt&&g&&dt.emit("fallback",{type:Z,key:tt,to:"global",groupId:`${Z}:${tt}`})}return t&&g?be(t):it(tt)}else{if(kt(lt))return lt;throw Xe(ye.UNEXPECTED_RETURN_TYPE)}};function Oe(...w){return de(D=>Reflect.apply(xl,null,[D,...w]),()=>To(...w),"translate",D=>Reflect.apply(D.t,D,[...w]),D=>D,D=>F(D))}function We(...w){const[D,Z,be]=w;if(be&&!oe(be))throw Xe(ye.INVALID_ARGUMENT);return Oe(D,Z,Ne({resolvedMessage:!0},be||{}))}function Be(...w){return de(D=>Reflect.apply(gl,null,[D,...w]),()=>Eo(...w),"datetime format",D=>Reflect.apply(D.d,D,[...w]),()=>Sr,D=>F(D)||we(D))}function Ae(...w){return de(D=>Reflect.apply(_l,null,[D,...w]),()=>Co(...w),"number format",D=>Reflect.apply(D.n,D,[...w]),()=>Sr,D=>F(D)||we(D))}function De(w){return w.map(D=>F(D)||Pe(D)||le(D)?Rl(String(D)):D)}const Le={normalize:De,interpolate:w=>w,type:"vnode"};function He(...w){return de(D=>{let Z;const be=D;try{be.processor=Le,Z=Reflect.apply(xl,null,[be,...w])}finally{be.processor=null}return Z},()=>To(...w),"translate",D=>D[wo](...w),D=>[Rl(D)],D=>we(D))}function J(...w){return de(D=>Reflect.apply(_l,null,[D,...w]),()=>Co(...w),"number format",D=>D[Po](...w),Ll,D=>F(D)||we(D))}function qe(...w){return de(D=>Reflect.apply(gl,null,[D,...w]),()=>Eo(...w),"datetime format",D=>D[So](...w),Ll,D=>F(D)||we(D))}function Ze(w){N=w,d.pluralRules=N}function ut(w,D){return de(()=>{if(!w)return!1;const Z=F(D)?D:l.value,be=je(Z),it=d.messageResolver(be,w);return rt(it)||ot(it)||F(it)},()=>[w],"translate exists",Z=>Reflect.apply(Z.te,Z,[w,D]),Qp,Z=>le(Z))}function Re(w){let D=null;const Z=tl(d,c.value,l.value);for(let be=0;be<Z.length;be++){const it=m.value[Z[be]]||{},kt=d.messageResolver(it,w);if(kt!=null){D=kt;break}}return D}function et(w){const D=Re(w);return D??(t?t.tm(w)||{}:{})}function je(w){return m.value[w]||{}}function Ge(w,D){if(o){const Z={[w]:D};for(const be in Z)ct(Z,be)&&Un(Z[be]);D=Z[w]}m.value[w]=D,d.messages=m.value}function $(w,D){m.value[w]=m.value[w]||{};const Z={[w]:D};if(o)for(const be in Z)ct(Z,be)&&Un(Z[be]);D=Z[w],Cr(D,m.value[w]),d.messages=m.value}function u(w){return p.value[w]||{}}function f(w,D){p.value[w]=D,d.datetimeFormats=p.value,bl(d,w,D)}function C(w,D){p.value[w]=Ne(p.value[w]||{},D),d.datetimeFormats=p.value,bl(d,w,D)}function L(w){return _.value[w]||{}}function V(w,D){_.value[w]=D,d.numberFormats=_.value,El(d,w,D)}function ue(w,D){_.value[w]=Ne(_.value[w]||{},D),d.numberFormats=_.value,El(d,w,D)}$l++,t&&st&&(s.watch(t.locale,w=>{i&&(l.value=w,d.locale=w,Bn(d,l.value,c.value))}),s.watch(t.fallbackLocale,w=>{i&&(c.value=w,d.fallbackLocale=w,Bn(d,l.value,c.value))}));const q={id:$l,locale:k,fallbackLocale:z,get inheritLocale(){return i},set inheritLocale(w){i=w,w&&t&&(l.value=t.locale.value,c.value=t.fallbackLocale.value,Bn(d,l.value,c.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:B,get modifiers(){return O},get pluralRules(){return N||{}},get isGlobal(){return r},get missingWarn(){return E},set missingWarn(w){E=w,d.missingWarn=E},get fallbackWarn(){return S},set fallbackWarn(w){S=w,d.fallbackWarn=S},get fallbackRoot(){return g},set fallbackRoot(w){g=w},get fallbackFormat(){return T},set fallbackFormat(w){T=w,d.fallbackFormat=T},get warnHtmlMessage(){return I},set warnHtmlMessage(w){I=w,d.warnHtmlMessage=w},get escapeParameter(){return v},set escapeParameter(w){v=w,d.escapeParameter=w},t:Oe,getLocaleMessage:je,setLocaleMessage:Ge,mergeLocaleMessage:$,getPostTranslationHandler:se,setPostTranslationHandler:ne,getMissingHandler:Y,setMissingHandler:ve,[Il]:Ze};return q.datetimeFormats=ae,q.numberFormats=re,q.rt=We,q.te=ut,q.tm=et,q.d=Be,q.n=Ae,q.getDateTimeFormat=u,q.setDateTimeFormat=f,q.mergeDateTimeFormat=C,q.getNumberFormat=L,q.setNumberFormat=V,q.mergeNumberFormat=ue,q[Ol]=n,q[wo]=He,q[So]=qe,q[Po]=J,process.env.NODE_ENV!=="production"&&(q[tn]=w=>{d.__v_emitter=w},q[Hn]=()=>{d.__v_emitter=void 0}),q}const Fl="vue-i18n: composer properties",Ao={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},eg={"vue-i18n-resource-inspector":"Search for scopes ..."},tg={"vue-i18n-timeline":16764185};let Ro;async function ng(e,t){return new Promise((n,r)=>{try{Kp({id:"vue-devtools-plugin-vue-i18n",label:Ao["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:[Fl],app:e},o=>{Ro=o,o.on.visitComponentTree(({componentInstance:i,treeNode:l})=>{rg(i,l,t)}),o.on.inspectComponent(({componentInstance:i,instanceData:l})=>{i.__VUE_I18N__&&l&&(t.mode==="legacy"?i.__VUE_I18N__!==t.global.__composer&&Bl(l,i.__VUE_I18N__):Bl(l,i.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:Ao["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:eg["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&sg(i,t)});const a=new Map;o.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),ug(i,t),i.nodeId==="global"){if(!a.has(i.app)){const[l]=await o.getComponentInstances(i.app);a.set(i.app,l)}o.highlightElement(a.get(i.app))}else{const l=cg(i.nodeId,t);l&&o.highlightElement(l)}}),o.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&fg(i,t)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:Ao["vue-i18n-timeline"],color:tg["vue-i18n-timeline"]}),n(!0)})}catch(o){console.error(o),r(!1)}})}function kl(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function rg(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const o={label:`i18n (${kl(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(o)}}function Bl(e,t){const n=Fl;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:Do(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 Do(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ge(r)&&"source"in r?t[n]=lg(r):rt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:oe(r)?t[n]=Do(r):t[n]=r}),t}const og={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function ag(e){return e.replace(/[<>"&]/g,ig)}function ig(e){return og[e]||e}function lg(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${ag(e.source)}")`:"(?)"}`}}}function sg(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,o]of t.__instances){const a=t.mode==="composition"?o:o.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${kl(r)} Scope`})}}function cg(e,t){let n=null;if(e!=="global"){for(const[r,o]of t.__instances.entries())if(o.id.toString()===e){n=r;break}}return n}function Hl(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 ug(e,t){const n=Hl(e.nodeId,t);return n&&(e.state=dg(n)),null}function dg(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 o="Locale messages info",a=[{type:o,key:"messages",editable:!1,value:Do(e.messages.value)}];t[o]=a;{const i="Datetime formats info",l=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=l;const c="Datetime formats info",m=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=m}return t}function zn(e,t){if(Ro){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ro.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 fg(e,t){const n=Hl(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&F(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(F(e.state.value)||we(e.state.value)||oe(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&le(e.state.value)&&(n.inheritLocale=e.state.value)}}function hg(e){const t=F(e.locale)?e.locale:kn,n=F(e.fallbackLocale)||we(e.fallbackLocale)||ee(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ge(e.missing)?e.missing:void 0,o=le(e.silentTranslationWarn)||fn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=le(e.silentFallbackWarn)||fn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=le(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=ee(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,p=ge(e.postTranslation)?e.postTranslation:void 0,_=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,E=!!e.escapeParameterHtml,S=le(e.sync)?e.sync:!0;let g=e.messages;if(ee(e.sharedMessages)){const O=e.sharedMessages;g=Object.keys(O).reduce((d,P)=>{const A=d[P]||(d[P]={});return Ne(A,O[P]),d},g||{})}const{__i18n:T,__root:x,__injectWithOption:h}=e,y=e.datetimeFormats,I=e.numberFormats,v=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:v,datetimeFormats:y,numberFormats:I,missing:r,missingWarn:o,fallbackWarn:a,fallbackRoot:i,fallbackFormat:l,modifiers:c,pluralRules:m,postTranslation:p,warnHtmlMessage:_,escapeParameter:E,messageResolver:e.messageResolver,inheritLocale:S,__i18n:T,__root:x,__injectWithOption:h}}function Lo(e={}){const t=No(hg(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},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(o){t.setMissingHandler(o)},get silentTranslationWarn(){return le(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=le(o)?!o:o},get silentFallbackWarn(){return le(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=le(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,a){return t.te(o,a)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,a){t.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){t.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,a){t.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){t.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,a){t.setNumberFormat(o,a)},mergeNumberFormat(o,a){t.mergeNumberFormat(o,a)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const a=t;a[tn]&&a[tn](o)},r.__disableEmitter=()=>{const o=t;o[Hn]&&o[Hn]()}),r}function mg(e,t,n){return{beforeCreate(){const r=bn();if(!r)throw Xe(ye.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const a=o.i18n;if(o.__i18n&&(a.__i18n=o.__i18n),a.__root=t,this===this.$root)this.$i18n=Ul(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Lo(a);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Ul(e,o);else{this.$i18n=Lo({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Al(t,o,o),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,i)=>this.$i18n.te(a,i),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=bn();if(!r)return;const o=this.$i18n;r.__VUE_I18N__=o.__composer;const a=this.__v_emitter=uo();o.__enableEmitter&&o.__enableEmitter(a),a.on("*",zn)}},unmounted(){const r=bn();if(!r)throw Xe(ye.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",zn),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Ul(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[Il](t.pluralizationRules||e.pluralizationRules);const n=Oo(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 $o={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function pg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===s.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},me())}function zl(){return s.Fragment}const Wl=s.defineComponent({name:"i18n-t",props:Ne({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Pe(e)||!isNaN(e)}},$o),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Mo({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(_=>_[0]!=="_"),i=me();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=F(e.plural)?+e.plural:e.plural);const l=pg(t,a),c=o[wo](e.keypath,l,i),m=Ne(me(),r),p=F(e.tag)||oe(e.tag)?e.tag:zl();return s.h(p,m,c)}}});function gg(e){return we(e)&&!F(e[0])}function jl(e,t,n,r){const{slots:o,attrs:a}=t;return()=>{const i={part:!0};let l=me();e.locale&&(i.locale=e.locale),F(e.format)?i.key=e.format:oe(e.format)&&(F(e.format.key)&&(i.key=e.format.key),l=Object.keys(e.format).reduce((E,S)=>n.includes(S)?Ne(me(),E,{[S]:e.format[S]}):E,me()));const c=r(e.value,i,l);let m=[i.key];we(c)?m=c.map((E,S)=>{const g=o[E.type],T=g?g({[E.type]:E.value,index:S,parts:c}):[E.value];return gg(T)&&(T[0].key=`${E.type}-${S}`),T}):F(c)&&(m=[c]);const p=Ne(me(),a),_=F(e.tag)||oe(e.tag)?e.tag:zl();return s.h(_,p,m)}}const Gl=s.defineComponent({name:"i18n-n",props:Ne({value:{type:Number,required:!0},format:{type:[String,Object]}},$o),setup(e,t){const n=e.i18n||Mo({useScope:e.scope,__useComponent:!0});return jl(e,t,yl,(...r)=>n[Po](...r))}});function vg(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 bg(e){const t=i=>{process.env.NODE_ENV!=="production"&&lo(vn(at.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:l,value:c}=i;if(!l||!l.$)throw Xe(ye.UNEXPECTED_ERROR);const m=vg(e,l.$),p=Yl(c);return[Reflect.apply(m.t,m,[...Kl(p)]),m]};return{created:(i,l)=>{const[c,m]=t(l);st&&e.global===m&&(i.__i18nWatcher=s.watch(m.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=m,i.textContent=c},unmounted:i=>{st&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:l})=>{if(i.__composer){const c=i.__composer,m=Yl(l);i.textContent=Reflect.apply(c.t,c,[...Kl(m)])}},getSSRProps:i=>{const[l]=t(i);return{textContent:l}}}}function Yl(e){if(F(e))return{path:e};if(ee(e)){if(!("path"in e))throw Xe(ye.REQUIRED_VALUE,"path");return e}else throw Xe(ye.INVALID_VALUE)}function Kl(e){const{path:t,locale:n,args:r,choice:o,plural:a}=e,i={},l=r||{};return F(n)&&(i.locale=n),Pe(o)&&(i.plural=o),Pe(a)&&(i.plural=a),[t,l,i]}function _g(e,t,...n){const r=ee(n[0])?n[0]:{};(!le(r.globalInstall)||r.globalInstall)&&([Wl.name,"I18nT"].forEach(a=>e.component(a,Wl)),[Gl.name,"I18nN"].forEach(a=>e.component(a,Gl)),[ql.name,"I18nD"].forEach(a=>e.component(a,ql))),e.directive("t",bg(t))}const yg=bt("global-vue-i18n");function Eg(e={}){const t=__VUE_I18N_LEGACY_API__&&le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&lo(vn(at.DEPRECATE_LEGACY_MODE));const n=le(e.globalInjection)?e.globalInjection:!0,r=new Map,[o,a]=Cg(e,t),i=bt(process.env.NODE_ENV!=="production"?"vue-i18n":"");function l(_){return r.get(_)||null}function c(_,E){r.set(_,E)}function m(_){r.delete(_)}const p={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(_,...E){if(process.env.NODE_ENV!=="production"&&(_.__VUE_I18N__=p),_.__VUE_I18N_SYMBOL__=i,_.provide(_.__VUE_I18N_SYMBOL__,p),ee(E[0])){const T=E[0];p.__composerExtend=T.__composerExtend,p.__vueI18nExtend=T.__vueI18nExtend}let S=null;!t&&n&&(S=Ng(_,p.global)),__VUE_I18N_FULL_INSTALL__&&_g(_,p,...E),__VUE_I18N_LEGACY_API__&&t&&_.mixin(mg(a,a.__composer,p));const g=_.unmount;if(_.unmount=()=>{S&&S(),p.dispose(),g()},process.env.NODE_ENV!=="production"){if(!await ng(_,p))throw Xe(ye.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const x=uo();if(t){const h=a;h.__enableEmitter&&h.__enableEmitter(x)}else{const h=a;h[tn]&&h[tn](x)}x.on("*",zn)}},get global(){return a},dispose(){o.stop()},__instances:r,__getInstance:l,__setInstance:c,__deleteInstance:m};return p}function Mo(e={}){const t=bn();if(t==null)throw Xe(ye.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Xe(ye.NOT_INSTALLED);const n=Tg(t),r=wg(n),o=Nl(t),a=xg(e,o);if(a==="global")return Al(r,e,o),r;if(a==="parent"){let c=Sg(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&vt(vn(at.NOT_FOUND_PARENT_SCOPE)),c=r),c}const i=n;let l=i.__getInstance(t);if(l==null){const c=Ne({},e);"__i18n"in o&&(c.__i18n=o.__i18n),r&&(c.__root=r),l=No(c),i.__composerExtend&&(l[Io]=i.__composerExtend(l)),Ig(i,t,l),i.__setInstance(t,l)}else process.env.NODE_ENV!=="production"&&a==="local"&&vt(vn(at.DUPLICATE_USE_I18N_CALLING));return l}function Cg(e,t){const n=s.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Lo(e)):n.run(()=>No(e));if(r==null)throw Xe(ye.UNEXPECTED_ERROR);return[n,r]}function Tg(e){const t=s.inject(e.isCE?yg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Xe(e.isCE?ye.NOT_INSTALLED_WITH_PROVIDE:ye.UNEXPECTED_ERROR);return t}function xg(e,t){return yr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function wg(e){return e.mode==="composition"?e.global:e.global.__composer}function Sg(e,t,n=!1){let r=null;const o=t.root;let a=Pg(t,n);for(;a!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(a);l!=null&&(r=l.__composer,n&&r&&!r[Ol]&&(r=null))}if(r!=null||o===a)break;a=a.parent}return r}function Pg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Ig(e,t,n){let r=null;s.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=uo();const o=n;o[tn]&&o[tn](r),r.on("*",zn)}},t),s.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",zn),o[Hn]&&o[Hn](),delete t.__VUE_I18N__),e.__deleteInstance(t);const a=o[Io];a&&(a(),delete o[Io])},t)}const Og=["locale","fallbackLocale","availableLocales"],Xl=["t","rt","d","n","tm","te"];function Ng(e,t){const n=Object.create(null);return Og.forEach(o=>{const a=Object.getOwnPropertyDescriptor(t,o);if(!a)throw Xe(ye.UNEXPECTED_ERROR);const i=s.isRef(a.value)?{get(){return a.value.value},set(l){a.value.value=l}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Xl.forEach(o=>{const a=Object.getOwnPropertyDescriptor(t,o);if(!a||!a.value)throw Xe(ye.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,a)}),()=>{delete e.config.globalProperties.$i18n,Xl.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const ql=s.defineComponent({name:"i18n-d",props:Ne({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$o),setup(e,t){const n=e.i18n||Mo({useScope:e.scope,__useComponent:!0});return jl(e,t,vl,(...r)=>n[So](...r))}});if(qp(),_p(Jm),yp(mp),Ep(tl),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Zt();e.__INTLIFY__=!0,Qm(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const nn=Eg({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=nn.global.t.bind(nn.global),Object.defineProperty(window,"$locale",{get(){return typeof nn.global.locale=="string"?nn.global.locale:nn.global.locale.value},set(e){nn.global.locale=e}}));const Vl=s.createApp(Zh).use(nn);Vl.use(Go,{Input:{component:Ii,modelProp:"value",modelEvent:"update:value"},InputNumber:{component:Vh,modelProp:"value",modelEvent:"update:value"}}),Vl.mount("#app");const Ag=[zo,Wo,Gn,jo,Ar],Rg={install(e){Ag.forEach(t=>{e.component(t.name,t)})}};ie.Button2=Wo,ie.EthernetProtocolItem=Ln,ie.Input=Gn,ie.InputNumber=jo,ie.IpInput=Ar,ie.ModbusTCPClientProtocolItem=vr,ie.ModbusTCPServerProtocolItem=gr,ie.ModbusTCPSlaveDeviceProtocolItem=br,ie.MyButton=zo,ie.MyLibPlugin=Go,ie.ProtocolCollection=Li,ie.ProtocolItem=Je,ie.ProtocolType=gt,ie.default=Rg,ie.protocolMap=$n,Object.defineProperties(ie,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));